{error}
} +``` + +--- + +### AccountIdentity + +**Import:** `@/components/common/AccountIdentity` + +```tsx +import { AccountIdentity } from '@/components/common/AccountIdentity'; + +// Badge - minimal inline (no avatar) +{error}
-)} -``` - -### Input Styling Guidelines - -- Always use `bg-hovered` for background -- Standard height: `h-10` -- Always use `rounded` (not `rounded-sm`) -- Standard padding: `p-2` -- Focus state: `focus:border-primary focus:outline-none` -- Error state: `border border-red-500 focus:border-red-500` -- Error text: `text-sm text-red-500` - -## Toast - -Use `useStyledToast` hook to create toasts. - -```typescript -import { useStyledToast } from '@/hooks/useStyledToast'; - -const { success, error } = useStyledToast(); - -success('Success', 'Detail of the success'); -error('Error', 'Detail of the error'); -``` - -### Typography Notes - -- Avoid bold weights for emphasis. Use color, size, or layout treatments (e.g., `text-secondary`, `text-primary`, spacing) instead of `font-semibold`/`font-bold`. -- Prefer `font-zen` for vault UI surfaces; keep typography consistent with existing components. diff --git a/src/components/ui/icon-switch.tsx b/src/components/ui/icon-switch.tsx index 1ae86074..800d94c4 100644 --- a/src/components/ui/icon-switch.tsx +++ b/src/components/ui/icon-switch.tsx @@ -11,7 +11,7 @@ export type IconSwitchProps = { size?: 'xs' | 'sm' | 'md' | 'lg'; color?: 'primary' | 'secondary' | 'accent' | 'destructive'; onChange?: (selected: boolean) => void; - thumbIcon?: React.ComponentType<{ className?: string; isSelected?: boolean }> | null; + thumbIcon?: React.ComponentType<{ className?: string }> | null; thumbIconOn?: React.ComponentType<{ className?: string }>; thumbIconOff?: React.ComponentType<{ className?: string }>; classNames?: { @@ -241,11 +241,7 @@ export function IconSwitch({ classNames?.thumbIcon, )} > - {thumbIconOn && thumbIconOff ? ( -