@monoform-ui/react 0.0.0-stage → 0.2.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +228 -2
- package/THIRD_PARTY_NOTICES.md +37 -0
- package/dist/actions.d.ts +80 -0
- package/dist/advanced-forms.d.ts +107 -0
- package/dist/advanced-inputs.d.ts +103 -0
- package/dist/agent-chat.d.ts +98 -0
- package/dist/agent-input.d.ts +54 -0
- package/dist/ai-creation-input.d.ts +71 -0
- package/dist/ai-interactions.d.ts +90 -0
- package/dist/ai-status.d.ts +17 -0
- package/dist/ai.cjs +2 -0
- package/dist/ai.cjs.map +1 -0
- package/dist/ai.d.ts +6 -0
- package/dist/ai.js +29 -0
- package/dist/ai.js.map +1 -0
- package/dist/app-shell.d.ts +69 -0
- package/dist/assets/backgrounds/monolith-field-dark-desktop.avif +0 -0
- package/dist/assets/backgrounds/monolith-field-dark-desktop.webp +0 -0
- package/dist/assets/backgrounds/monolith-field-dark-mobile.avif +0 -0
- package/dist/assets/backgrounds/monolith-field-dark-mobile.webp +0 -0
- package/dist/assets/backgrounds/monolith-field-dark.svg +58 -0
- package/dist/assets/backgrounds/monolith-field-light-desktop.avif +0 -0
- package/dist/assets/backgrounds/monolith-field-light-desktop.webp +0 -0
- package/dist/assets/backgrounds/monolith-field-light-mobile.avif +0 -0
- package/dist/assets/backgrounds/monolith-field-light-mobile.webp +0 -0
- package/dist/assets/backgrounds/monolith-field-light.svg +58 -0
- package/dist/assets/backgrounds/optical-fog-dark-desktop.avif +0 -0
- package/dist/assets/backgrounds/optical-fog-dark-desktop.webp +0 -0
- package/dist/assets/backgrounds/optical-fog-dark-mobile.avif +0 -0
- package/dist/assets/backgrounds/optical-fog-dark-mobile.webp +0 -0
- package/dist/assets/backgrounds/optical-fog-dark.svg +50 -0
- package/dist/assets/backgrounds/optical-fog-light-desktop.avif +0 -0
- package/dist/assets/backgrounds/optical-fog-light-desktop.webp +0 -0
- package/dist/assets/backgrounds/optical-fog-light-mobile.avif +0 -0
- package/dist/assets/backgrounds/optical-fog-light-mobile.webp +0 -0
- package/dist/assets/backgrounds/optical-fog-light.svg +50 -0
- package/dist/assets/backgrounds/orbital-field-dark-desktop.avif +0 -0
- package/dist/assets/backgrounds/orbital-field-dark-desktop.webp +0 -0
- package/dist/assets/backgrounds/orbital-field-dark-mobile.avif +0 -0
- package/dist/assets/backgrounds/orbital-field-dark-mobile.webp +0 -0
- package/dist/assets/backgrounds/orbital-field-dark.svg +49 -0
- package/dist/assets/backgrounds/orbital-field-light-desktop.avif +0 -0
- package/dist/assets/backgrounds/orbital-field-light-desktop.webp +0 -0
- package/dist/assets/backgrounds/orbital-field-light-mobile.avif +0 -0
- package/dist/assets/backgrounds/orbital-field-light-mobile.webp +0 -0
- package/dist/assets/backgrounds/orbital-field-light.svg +49 -0
- package/dist/assets/backgrounds/signal-lattice-dark-desktop.avif +0 -0
- package/dist/assets/backgrounds/signal-lattice-dark-desktop.webp +0 -0
- package/dist/assets/backgrounds/signal-lattice-dark-mobile.avif +0 -0
- package/dist/assets/backgrounds/signal-lattice-dark-mobile.webp +0 -0
- package/dist/assets/backgrounds/signal-lattice-dark.svg +39 -0
- package/dist/assets/backgrounds/signal-lattice-light-desktop.avif +0 -0
- package/dist/assets/backgrounds/signal-lattice-light-desktop.webp +0 -0
- package/dist/assets/backgrounds/signal-lattice-light-mobile.avif +0 -0
- package/dist/assets/backgrounds/signal-lattice-light-mobile.webp +0 -0
- package/dist/assets/backgrounds/signal-lattice-light.svg +39 -0
- package/dist/background-assets.d.ts +144 -0
- package/dist/backgrounds.cjs +2 -0
- package/dist/backgrounds.cjs.map +1 -0
- package/dist/backgrounds.css +463 -0
- package/dist/backgrounds.d.ts +44 -0
- package/dist/backgrounds.js +256 -0
- package/dist/backgrounds.js.map +1 -0
- package/dist/catalog.cjs +2 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.ts +27 -0
- package/dist/catalog.js +307 -0
- package/dist/catalog.js.map +1 -0
- package/dist/collections-CXPc6huw.cjs +2 -0
- package/dist/collections-CXPc6huw.cjs.map +1 -0
- package/dist/collections-GglQdMPr.js +1308 -0
- package/dist/collections-GglQdMPr.js.map +1 -0
- package/dist/collections.d.ts +52 -0
- package/dist/command-palette-B4r2GzmF.cjs +2 -0
- package/dist/command-palette-B4r2GzmF.cjs.map +1 -0
- package/dist/command-palette-DwfgljM2.js +2773 -0
- package/dist/command-palette-DwfgljM2.js.map +1 -0
- package/dist/command-palette.d.ts +26 -0
- package/dist/core.cjs +2 -0
- package/dist/core.cjs.map +1 -0
- package/dist/core.css +8659 -0
- package/dist/core.d.ts +19 -0
- package/dist/core.js +176 -0
- package/dist/core.js.map +1 -0
- package/dist/data-grid.d.ts +62 -0
- package/dist/data-workbench.d.ts +103 -0
- package/dist/data.cjs +2 -0
- package/dist/data.cjs.map +1 -0
- package/dist/data.d.ts +6 -0
- package/dist/data.js +19 -0
- package/dist/data.js.map +1 -0
- package/dist/description-list.d.ts +8 -0
- package/dist/effects.cjs +2 -0
- package/dist/effects.cjs.map +1 -0
- package/dist/effects.css +442 -0
- package/dist/effects.d.ts +2 -0
- package/dist/effects.js +19 -0
- package/dist/effects.js.map +1 -0
- package/dist/feedback.d.ts +40 -0
- package/dist/forms.d.ts +89 -0
- package/dist/harness-D7tlTUb2.cjs +2 -0
- package/dist/harness-D7tlTUb2.cjs.map +1 -0
- package/dist/harness-Dcqe3-AP.js +2282 -0
- package/dist/harness-Dcqe3-AP.js.map +1 -0
- package/dist/harness.d.ts +89 -0
- package/dist/hooks.d.ts +6 -0
- package/dist/image-effects-BaXRloLB.js +164 -0
- package/dist/image-effects-BaXRloLB.js.map +1 -0
- package/dist/image-effects-D57JACXp.cjs +2 -0
- package/dist/image-effects-D57JACXp.cjs.map +1 -0
- package/dist/image-effects.d.ts +14 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +239 -0
- package/dist/index.js.map +1 -0
- package/dist/locale.d.ts +358 -0
- package/dist/motion-effects-C1Rs4a2H.js +449 -0
- package/dist/motion-effects-C1Rs4a2H.js.map +1 -0
- package/dist/motion-effects-ze3SOVGs.cjs +2 -0
- package/dist/motion-effects-ze3SOVGs.cjs.map +1 -0
- package/dist/motion-effects.d.ts +76 -0
- package/dist/nav-menu.d.ts +45 -0
- package/dist/navigation-BG-qLyKt.cjs +2 -0
- package/dist/navigation-BG-qLyKt.cjs.map +1 -0
- package/dist/navigation-Bp7q1n-5.js +252 -0
- package/dist/navigation-Bp7q1n-5.js.map +1 -0
- package/dist/navigation.d.ts +53 -0
- package/dist/overlays-BhrWwlkN.js +1288 -0
- package/dist/overlays-BhrWwlkN.js.map +1 -0
- package/dist/overlays-DvozzH8D.cjs +2 -0
- package/dist/overlays-DvozzH8D.cjs.map +1 -0
- package/dist/overlays.d.ts +92 -0
- package/dist/people-picker.d.ts +65 -0
- package/dist/portal.d.ts +3 -0
- package/dist/primitives-Bb7v-uZh.js +217 -0
- package/dist/primitives-Bb7v-uZh.js.map +1 -0
- package/dist/primitives-CEcOVwUM.cjs +2 -0
- package/dist/primitives-CEcOVwUM.cjs.map +1 -0
- package/dist/primitives.d.ts +66 -0
- package/dist/rounded-card-border-B3d1HqwY.js +185 -0
- package/dist/rounded-card-border-B3d1HqwY.js.map +1 -0
- package/dist/rounded-card-border-CMiEPJIF.cjs +2 -0
- package/dist/rounded-card-border-CMiEPJIF.cjs.map +1 -0
- package/dist/rounded-card-border.d.ts +3 -0
- package/dist/sizes.d.ts +4 -0
- package/dist/status-toast.d.ts +20 -0
- package/dist/styles.css +9566 -0
- package/dist/theme-C3i6xkHd.cjs +2 -0
- package/dist/theme-C3i6xkHd.cjs.map +1 -0
- package/dist/theme-CHYnSgLv.js +914 -0
- package/dist/theme-CHYnSgLv.js.map +1 -0
- package/dist/theme.d.ts +24 -0
- package/dist/timeline.d.ts +15 -0
- package/dist/tree-view-Djlqyml-.js +132 -0
- package/dist/tree-view-Djlqyml-.js.map +1 -0
- package/dist/tree-view-iVh5jMNt.cjs +2 -0
- package/dist/tree-view-iVh5jMNt.cjs.map +1 -0
- package/dist/tree-view.d.ts +18 -0
- package/dist/utils.d.ts +2 -0
- package/package.json +162 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overlays-BhrWwlkN.js","sources":["../src/hooks.ts","../src/sizes.ts","../src/forms.tsx","../src/actions.tsx","../src/feedback.tsx","../src/portal.tsx","../src/overlays.tsx"],"sourcesContent":["import { useCallback, useRef, useState } from \"react\";\n\nexport interface UseControllableStateOptions<T> {\n value?: T;\n defaultValue: T;\n onChange?: (value: T) => void;\n}\n\nexport function useControllableState<T>({\n value,\n defaultValue,\n onChange,\n}: UseControllableStateOptions<T>) {\n const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue);\n const isControlled = value !== undefined;\n const currentValue = isControlled ? value : uncontrolledValue;\n const valueRef = useRef(currentValue);\n valueRef.current = currentValue;\n\n const setValue = useCallback(\n (nextValue: T | ((previousValue: T) => T)) => {\n const next =\n typeof nextValue === \"function\"\n ? (nextValue as (previousValue: T) => T)(valueRef.current)\n : nextValue;\n valueRef.current = next;\n if (!isControlled) setUncontrolledValue(next);\n onChange?.(next);\n },\n [isControlled, onChange],\n );\n\n return [currentValue, setValue] as const;\n}\n","export type ControlSize = \"sm\" | \"md\" | \"lg\";\nexport type SurfaceSize = ControlSize | \"full\";\n\nexport function controlSizeClass(size?: ControlSize) {\n return size ? `mf-control-size-${size}` : undefined;\n}\n\nexport function surfaceSizeClass(size?: SurfaceSize) {\n return size ? `mf-surface-size-${size}` : undefined;\n}\n","import {\n Children,\n cloneElement,\n forwardRef,\n isValidElement,\n useId,\n useState,\n type InputHTMLAttributes,\n type ReactElement,\n type ReactNode,\n type TextareaHTMLAttributes,\n} from \"react\";\nimport * as CheckboxPrimitive from \"@radix-ui/react-checkbox\";\nimport * as RadioGroupPrimitive from \"@radix-ui/react-radio-group\";\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\nimport * as SwitchPrimitive from \"@radix-ui/react-switch\";\nimport { Check, ChevronDown, Eye, EyeOff, Minus, Plus, Search, X } from \"lucide-react\";\nimport { useControllableState } from \"./hooks\";\nimport { useLocale } from \"./locale\";\nimport { controlSizeClass, type ControlSize } from \"./sizes\";\nimport { useTheme } from \"./theme\";\nimport { cn } from \"./utils\";\n\nexport interface FieldProps {\n label?: ReactNode;\n hint?: ReactNode;\n error?: ReactNode;\n required?: boolean;\n htmlFor?: string;\n className?: string;\n children: ReactElement;\n}\n\nexport function Field({\n label,\n hint,\n error,\n required,\n htmlFor,\n className,\n children,\n}: FieldProps) {\n const generatedId = useId();\n const id = htmlFor ?? generatedId;\n const hintId = hint ? `${id}-hint` : undefined;\n const errorId = error ? `${id}-error` : undefined;\n const child = Children.only(children);\n\n if (!isValidElement(child)) return children;\n\n const childProps = child.props as {\n \"aria-describedby\"?: string;\n \"aria-invalid\"?: boolean;\n \"aria-required\"?: boolean;\n width?: \"full\" | \"auto\";\n };\n const describedBy = [childProps[\"aria-describedby\"], hintId, errorId]\n .filter(Boolean)\n .join(\" \");\n const control = cloneElement(child, {\n id,\n \"aria-describedby\": describedBy || undefined,\n \"aria-invalid\": error ? true : childProps[\"aria-invalid\"],\n \"aria-required\": required || childProps[\"aria-required\"],\n ...(child.type === Select && childProps.width === undefined\n ? { width: \"full\" as const }\n : {}),\n } as Record<string, unknown>);\n\n return (\n <div className={cn(\"mf-field\", className)}>\n {label ? (\n <label className=\"mf-field__label\" htmlFor={id}>\n {label}\n {required ? (\n <span className=\"mf-field__required\" aria-hidden=\"true\">\n *\n </span>\n ) : null}\n </label>\n ) : null}\n {control}\n {error ? (\n <p className=\"mf-field__error\" id={errorId} role=\"alert\">\n {error}\n </p>\n ) : null}\n {hint ? (\n <p className=\"mf-field__hint\" id={hintId}>\n {hint}\n </p>\n ) : null}\n </div>\n );\n}\n\nexport interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, \"size\"> {\n invalid?: boolean;\n size?: ControlSize;\n}\n\nexport const Input = forwardRef<HTMLInputElement, InputProps>(\n ({ invalid, size, className, ...props }, ref) => (\n <input\n ref={ref}\n className={cn(\n \"mf-input\",\n controlSizeClass(size),\n invalid && \"mf-input--invalid\",\n className,\n )}\n aria-invalid={invalid || undefined}\n {...props}\n />\n ),\n);\nInput.displayName = \"Input\";\n\nexport interface TextareaProps extends Omit<\n TextareaHTMLAttributes<HTMLTextAreaElement>,\n \"size\"\n> {\n invalid?: boolean;\n size?: ControlSize;\n}\n\nexport const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(\n ({ invalid, size, className, ...props }, ref) => (\n <textarea\n ref={ref}\n className={cn(\n \"mf-textarea\",\n controlSizeClass(size),\n invalid && \"mf-input--invalid\",\n className,\n )}\n aria-invalid={invalid || undefined}\n {...props}\n />\n ),\n);\nTextarea.displayName = \"Textarea\";\n\nexport interface SearchInputProps extends Omit<\n InputHTMLAttributes<HTMLInputElement>,\n \"onChange\" | \"value\" | \"defaultValue\" | \"size\"\n> {\n value?: string;\n defaultValue?: string;\n onValueChange?: (value: string) => void;\n onClear?: () => void;\n size?: ControlSize;\n}\n\nexport const SearchInput = forwardRef<HTMLInputElement, SearchInputProps>(\n (\n {\n value,\n defaultValue = \"\",\n onValueChange,\n onClear,\n placeholder,\n size,\n className,\n disabled,\n ...props\n },\n ref,\n ) => {\n const { messages } = useLocale();\n const [currentValue, setCurrentValue] = useControllableState({\n value,\n defaultValue,\n onChange: onValueChange,\n });\n\n return (\n <div\n className={cn(\n \"mf-search\",\n controlSizeClass(size),\n disabled && \"is-disabled\",\n className,\n )}\n >\n <Search className=\"mf-search__icon\" size={15} aria-hidden=\"true\" />\n <input\n ref={ref}\n type=\"search\"\n className=\"mf-search__input\"\n value={currentValue}\n placeholder={placeholder ?? messages.forms.searchPlaceholder}\n disabled={disabled}\n onChange={(event) => setCurrentValue(event.target.value)}\n {...props}\n />\n {currentValue ? (\n <button\n type=\"button\"\n className=\"mf-search__clear\"\n aria-label={messages.forms.clearSearch}\n onClick={() => {\n setCurrentValue(\"\");\n onClear?.();\n }}\n >\n <X size={13} aria-hidden=\"true\" />\n </button>\n ) : null}\n </div>\n );\n },\n);\nSearchInput.displayName = \"SearchInput\";\n\nexport interface PasswordInputProps extends Omit<InputProps, \"type\"> {\n visibleLabel?: string;\n hiddenLabel?: string;\n}\n\nexport const PasswordInput = forwardRef<HTMLInputElement, PasswordInputProps>(\n ({ className, visibleLabel, hiddenLabel, disabled, size, ...props }, ref) => {\n const { messages } = useLocale();\n const [visible, setVisible] = useState(false);\n return (\n <div\n className={cn(\n \"mf-password\",\n controlSizeClass(size),\n disabled && \"is-disabled\",\n className,\n )}\n >\n <Input\n ref={ref}\n type={visible ? \"text\" : \"password\"}\n className=\"mf-password__input\"\n disabled={disabled}\n size={size}\n {...props}\n />\n <button\n type=\"button\"\n className=\"mf-password__toggle\"\n aria-label={\n visible\n ? (visibleLabel ?? messages.forms.hidePassword)\n : (hiddenLabel ?? messages.forms.showPassword)\n }\n aria-pressed={visible}\n disabled={disabled}\n onClick={() => setVisible((value) => !value)}\n >\n {visible ? (\n <EyeOff size={15} aria-hidden=\"true\" />\n ) : (\n <Eye size={15} aria-hidden=\"true\" />\n )}\n </button>\n </div>\n );\n },\n);\nPasswordInput.displayName = \"PasswordInput\";\n\nexport interface NumberInputProps extends Omit<\n InputHTMLAttributes<HTMLInputElement>,\n \"type\" | \"value\" | \"defaultValue\" | \"onChange\" | \"size\"\n> {\n value?: number;\n defaultValue?: number;\n onValueChange?: (value: number) => void;\n min?: number;\n max?: number;\n step?: number;\n size?: ControlSize;\n invalid?: boolean;\n}\n\nexport const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(\n (\n {\n value,\n defaultValue,\n onValueChange,\n min,\n max,\n step = 1,\n size,\n invalid,\n className,\n disabled,\n ...props\n },\n ref,\n ) => {\n const { messages } = useLocale();\n const [currentValue, setCurrentValue] = useControllableState({\n value,\n defaultValue: defaultValue ?? min ?? 0,\n onChange: onValueChange,\n });\n const clamp = (next: number) =>\n Math.min(\n max ?? Number.POSITIVE_INFINITY,\n Math.max(min ?? Number.NEGATIVE_INFINITY, next),\n );\n const setValue = (next: number) =>\n setCurrentValue(clamp(Number.isFinite(next) ? next : 0));\n\n return (\n <div\n className={cn(\n \"mf-number\",\n controlSizeClass(size),\n invalid && \"mf-input--invalid\",\n disabled && \"is-disabled\",\n className,\n )}\n >\n <button\n type=\"button\"\n className=\"mf-number__button\"\n aria-label={messages.forms.decreaseValue}\n disabled={disabled || (min !== undefined && currentValue <= min)}\n onClick={() => setValue(currentValue - step)}\n >\n <Minus size={13} aria-hidden=\"true\" />\n </button>\n <input\n ref={ref}\n type=\"number\"\n className=\"mf-number__input\"\n value={currentValue}\n min={min}\n max={max}\n step={step}\n disabled={disabled}\n aria-invalid={invalid || undefined}\n onChange={(event) => setValue(Number(event.target.value))}\n {...props}\n />\n <button\n type=\"button\"\n className=\"mf-number__button\"\n aria-label={messages.forms.increaseValue}\n disabled={disabled || (max !== undefined && currentValue >= max)}\n onClick={() => setValue(currentValue + step)}\n >\n <Plus size={13} aria-hidden=\"true\" />\n </button>\n </div>\n );\n },\n);\nNumberInput.displayName = \"NumberInput\";\n\nexport interface CheckboxProps extends Omit<\n React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>,\n \"size\"\n> {\n size?: ControlSize;\n}\n\nexport const Checkbox = forwardRef<\n React.ElementRef<typeof CheckboxPrimitive.Root>,\n CheckboxProps\n>(({ className, children, size, ...props }, ref) => (\n <label className={cn(\"mf-checkbox-row\", controlSizeClass(size), className)}>\n <CheckboxPrimitive.Root ref={ref} className=\"mf-checkbox\" {...props}>\n <CheckboxPrimitive.Indicator className=\"mf-checkbox__indicator\">\n <Check size={12} strokeWidth={2.4} aria-hidden=\"true\" />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n {children ? <span className=\"mf-checkbox__label\">{children}</span> : null}\n </label>\n));\nCheckbox.displayName = \"Checkbox\";\n\nexport interface SwitchProps extends Omit<\n React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root>,\n \"size\"\n> {\n size?: ControlSize;\n}\n\nexport const Switch = forwardRef<\n React.ElementRef<typeof SwitchPrimitive.Root>,\n SwitchProps\n>(({ className, size, ...props }, ref) => (\n <SwitchPrimitive.Root\n ref={ref}\n className={cn(\"mf-switch\", controlSizeClass(size), className)}\n {...props}\n >\n <SwitchPrimitive.Thumb className=\"mf-switch__thumb\" />\n </SwitchPrimitive.Root>\n));\nSwitch.displayName = \"Switch\";\n\nexport interface RadioGroupProps extends Omit<\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>,\n \"size\"\n> {\n size?: ControlSize;\n}\n\nexport const RadioGroup = forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Root>,\n RadioGroupProps\n>(({ className, size, ...props }, ref) => (\n <RadioGroupPrimitive.Root\n ref={ref}\n className={cn(\"mf-radio-group\", controlSizeClass(size), className)}\n {...props}\n />\n));\nRadioGroup.displayName = \"RadioGroup\";\n\nexport interface RadioGroupItemProps extends React.ComponentPropsWithoutRef<\n typeof RadioGroupPrimitive.Item\n> {\n label: ReactNode;\n description?: ReactNode;\n size?: ControlSize;\n}\n\nexport const RadioGroupItem = forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Item>,\n RadioGroupItemProps\n>(({ label, description, className, id, value, size, ...props }, ref) => {\n const generatedId = useId();\n const itemId = id ?? generatedId;\n return (\n <div className={cn(\"mf-radio-row\", controlSizeClass(size), className)}>\n <RadioGroupPrimitive.Item\n ref={ref}\n id={itemId}\n value={value}\n className=\"mf-radio\"\n {...props}\n >\n <RadioGroupPrimitive.Indicator className=\"mf-radio__indicator\" />\n </RadioGroupPrimitive.Item>\n <label htmlFor={itemId} className=\"mf-radio__copy\">\n <span className=\"mf-radio__label\">{label}</span>\n {description ? (\n <span className=\"mf-radio__description\">{description}</span>\n ) : null}\n </label>\n </div>\n );\n});\nRadioGroupItem.displayName = \"RadioGroupItem\";\n\nexport interface SelectOption {\n value: string;\n label: string;\n disabled?: boolean;\n}\n\nexport interface SelectProps {\n options: SelectOption[];\n value?: string;\n defaultValue?: string;\n onValueChange?: (value: string) => void;\n placeholder?: string;\n disabled?: boolean;\n size?: ControlSize;\n width?: \"full\" | \"auto\";\n name?: string;\n id?: string;\n className?: string;\n \"aria-label\"?: string;\n \"aria-describedby\"?: string;\n \"aria-invalid\"?: boolean;\n}\n\nexport function Select({\n options,\n value,\n defaultValue,\n onValueChange,\n placeholder,\n disabled,\n size,\n width = \"auto\",\n name,\n id,\n className,\n ...ariaProps\n}: SelectProps) {\n const { resolvedMode, density, colorScheme } = useTheme();\n const { messages } = useLocale();\n return (\n <SelectPrimitive.Root\n value={value}\n defaultValue={defaultValue}\n onValueChange={onValueChange}\n disabled={disabled}\n name={name}\n >\n <SelectPrimitive.Trigger\n id={id}\n className={cn(\n \"mf-select__trigger\",\n width === \"auto\" && \"mf-select--auto\",\n controlSizeClass(size),\n className,\n )}\n {...ariaProps}\n >\n <SelectPrimitive.Value placeholder={placeholder ?? messages.forms.selectOption} />\n <SelectPrimitive.Icon className=\"mf-select__icon\">\n <ChevronDown size={14} aria-hidden=\"true\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n <SelectPrimitive.Portal>\n <div\n className=\"mf-root\"\n data-mf-theme={resolvedMode}\n data-mf-density={density}\n data-mf-color-scheme={colorScheme}\n >\n <SelectPrimitive.Content\n className=\"mf-select__content\"\n position=\"popper\"\n sideOffset={6}\n >\n <SelectPrimitive.Viewport className=\"mf-select__viewport\">\n {options.map((option) => (\n <SelectPrimitive.Item\n key={option.value}\n value={option.value}\n disabled={option.disabled}\n className=\"mf-select__item\"\n >\n <SelectPrimitive.ItemText>{option.label}</SelectPrimitive.ItemText>\n <SelectPrimitive.ItemIndicator className=\"mf-select__item-indicator\">\n <Check size={13} aria-hidden=\"true\" />\n </SelectPrimitive.ItemIndicator>\n </SelectPrimitive.Item>\n ))}\n </SelectPrimitive.Viewport>\n </SelectPrimitive.Content>\n </div>\n </SelectPrimitive.Portal>\n </SelectPrimitive.Root>\n );\n}\n","import {\n forwardRef,\n useEffect,\n useState,\n type ButtonHTMLAttributes,\n type HTMLAttributes,\n type ReactNode,\n} from \"react\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { Check, X } from \"lucide-react\";\nimport { useControllableState } from \"./hooks\";\nimport { useLocale } from \"./locale\";\nimport { CardCornerBorder } from \"./rounded-card-border\";\nimport { controlSizeClass, type ControlSize } from \"./sizes\";\nimport { cn } from \"./utils\";\n\n/* eslint-disable react/button-has-type -- This module owns the configurable Button contract. */\n\nconst buttonVariants = cva(\"mf-button\", {\n variants: {\n variant: {\n primary: \"mf-button--primary\",\n secondary: \"mf-button--secondary\",\n ghost: \"mf-button--ghost\",\n danger: \"mf-button--danger\",\n },\n size: {\n sm: \"mf-button--sm\",\n md: \"mf-button--md\",\n lg: \"mf-button--lg\",\n },\n },\n defaultVariants: {\n variant: \"secondary\",\n },\n});\n\nexport interface ButtonProps\n extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {\n loading?: boolean;\n leadingIcon?: ReactNode;\n trailingIcon?: ReactNode;\n}\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(\n (\n {\n variant,\n size,\n loading = false,\n leadingIcon,\n trailingIcon,\n disabled,\n type,\n className,\n children,\n ...props\n },\n ref,\n ) => (\n <button\n ref={ref}\n type={type ?? \"button\"}\n className={cn(\n buttonVariants({ variant, size }),\n size && controlSizeClass(size),\n className,\n )}\n disabled={disabled || loading}\n aria-busy={loading || undefined}\n {...props}\n >\n {loading ? <span className=\"mf-button__spinner\" aria-hidden=\"true\" /> : leadingIcon}\n <span className=\"mf-button__label\">{children}</span>\n {!loading ? trailingIcon : null}\n </button>\n ),\n);\nButton.displayName = \"Button\";\n\nexport interface IconButtonProps extends Omit<ButtonProps, \"children\"> {\n label: string;\n children: ReactNode;\n}\n\nexport const IconButton = forwardRef<HTMLButtonElement, IconButtonProps>(\n ({ label, children, className, variant = \"ghost\", size, ...props }, ref) => (\n <Button\n ref={ref}\n aria-label={label}\n className={cn(\"mf-icon-button\", className)}\n variant={variant}\n size={size}\n {...props}\n >\n {children}\n </Button>\n ),\n);\nIconButton.displayName = \"IconButton\";\n\nexport interface SegmentedOption<T extends string> {\n value: T;\n label: ReactNode;\n disabled?: boolean;\n}\n\nexport interface SegmentedControlProps<\n T extends string,\n> extends HTMLAttributes<HTMLDivElement> {\n options: Array<SegmentedOption<T>>;\n value?: T;\n defaultValue?: T;\n onValueChange?: (value: T) => void;\n size?: ControlSize;\n disabled?: boolean;\n /**\n * @deprecated Use the native `aria-label` prop instead.\n */\n ariaLabel?: string;\n}\n\nexport function SegmentedControl<T extends string>({\n options,\n value,\n defaultValue,\n onValueChange,\n size,\n disabled,\n ariaLabel,\n className,\n \"aria-label\": nativeAriaLabel,\n ...props\n}: SegmentedControlProps<T>) {\n const { messages } = useLocale();\n const [currentValue, setCurrentValue] = useControllableState<T>({\n value,\n defaultValue: (defaultValue ?? options[0]?.value) as T,\n onChange: onValueChange,\n });\n return (\n <div\n className={cn(\"mf-segmented\", controlSizeClass(size), className)}\n role=\"group\"\n aria-label={nativeAriaLabel ?? ariaLabel ?? messages.forms.options}\n {...props}\n >\n {options.map((option) => (\n <button\n key={option.value}\n type=\"button\"\n className=\"mf-segmented__item\"\n aria-pressed={currentValue === option.value}\n disabled={disabled || option.disabled}\n onClick={() => setCurrentValue(option.value)}\n >\n {currentValue === option.value ? (\n <CardCornerBorder className=\"mf-segmented__corner-border\" />\n ) : null}\n {option.label}\n </button>\n ))}\n </div>\n );\n}\n\nexport interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {\n tone?: \"neutral\" | \"success\" | \"warning\" | \"danger\" | \"info\";\n dot?: boolean;\n size?: ControlSize;\n}\n\nexport function Badge({\n tone = \"neutral\",\n dot = false,\n size,\n className,\n children,\n ...props\n}: BadgeProps) {\n return (\n <span\n className={cn(\"mf-badge\", `mf-badge--${tone}`, controlSizeClass(size), className)}\n {...props}\n >\n {dot ? <span className=\"mf-badge__dot\" aria-hidden=\"true\" /> : null}\n {children}\n </span>\n );\n}\n\nexport interface TagProps extends HTMLAttributes<HTMLSpanElement> {\n onRemove?: () => void;\n removeLabel?: string;\n size?: ControlSize;\n}\n\nexport function Tag({\n onRemove,\n removeLabel,\n size,\n className,\n children,\n ...props\n}: TagProps) {\n const { messages } = useLocale();\n return (\n <span className={cn(\"mf-tag\", controlSizeClass(size), className)} {...props}>\n <span className=\"mf-tag__label\">{children}</span>\n {onRemove ? (\n <button\n type=\"button\"\n className=\"mf-tag__remove\"\n aria-label={\n removeLabel ??\n (typeof children === \"string\"\n ? messages.forms.removeTag(children)\n : messages.common.clear)\n }\n onClick={onRemove}\n >\n <X size={11} aria-hidden=\"true\" />\n </button>\n ) : null}\n </span>\n );\n}\n\nexport interface AvatarProps extends HTMLAttributes<HTMLSpanElement> {\n src?: string;\n alt?: string;\n fallback: string;\n size?: \"sm\" | \"md\" | \"lg\";\n status?: \"online\" | \"busy\" | \"offline\";\n}\n\nexport function Avatar({\n src,\n alt = \"\",\n fallback,\n size = \"md\",\n status,\n className,\n ...props\n}: AvatarProps) {\n const { messages } = useLocale();\n const [imageFailed, setImageFailed] = useState(false);\n useEffect(() => setImageFailed(false), [src]);\n const statusLabel = status ? messages.common.status[status] : undefined;\n return (\n <span className={cn(\"mf-avatar\", `mf-avatar--${size}`, className)} {...props}>\n {src && !imageFailed ? (\n <img\n className=\"mf-avatar__image\"\n src={src}\n alt={alt}\n onError={() => setImageFailed(true)}\n />\n ) : (\n <span aria-hidden=\"true\">{fallback}</span>\n )}\n {status ? (\n <span\n className={cn(\"mf-avatar__status\", `mf-avatar__status--${status}`)}\n role=\"img\"\n aria-label={statusLabel ? messages.common.statusLabel(statusLabel) : undefined}\n />\n ) : null}\n </span>\n );\n}\n\nexport interface AvatarGroupProps extends HTMLAttributes<HTMLDivElement> {\n max?: number;\n children: ReactNode;\n}\n\nexport function AvatarGroup({\n max = 3,\n children,\n className,\n ...props\n}: AvatarGroupProps) {\n const items = Array.isArray(children) ? children : [children];\n const visible = items.slice(0, max);\n const overflow = Math.max(0, items.length - max);\n return (\n <div className={cn(\"mf-avatar-group\", className)} {...props}>\n {visible}\n {overflow > 0 ? (\n <span className=\"mf-avatar mf-avatar--md mf-avatar--more\">+{overflow}</span>\n ) : null}\n </div>\n );\n}\n\nexport const Card = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(\n ({ className, children, ...props }, ref) => (\n <div ref={ref} className={cn(\"mf-card\", className)} {...props}>\n <CardCornerBorder />\n {children}\n </div>\n ),\n);\nCard.displayName = \"Card\";\n\nexport function CardHeader({ className, ...props }: HTMLAttributes<HTMLDivElement>) {\n return <div className={cn(\"mf-card__header\", className)} {...props} />;\n}\n\nexport function CardTitle({ className, ...props }: HTMLAttributes<HTMLHeadingElement>) {\n const { children, ...rest } = props;\n return (\n <h3 className={cn(\"mf-card__title\", className)} {...rest}>\n {children}\n </h3>\n );\n}\n\nexport function CardDescription({\n className,\n ...props\n}: HTMLAttributes<HTMLParagraphElement>) {\n return <p className={cn(\"mf-card__description\", className)} {...props} />;\n}\n\nexport function CardContent({ className, ...props }: HTMLAttributes<HTMLDivElement>) {\n return <div className={cn(\"mf-card__content\", className)} {...props} />;\n}\n\nexport function CardFooter({ className, ...props }: HTMLAttributes<HTMLDivElement>) {\n return <div className={cn(\"mf-card__footer\", className)} {...props} />;\n}\n\nexport interface StatusDotProps extends HTMLAttributes<HTMLSpanElement> {\n tone?: \"online\" | \"busy\" | \"offline\" | \"neutral\" | \"danger\";\n pulse?: boolean;\n}\n\nexport function StatusDot({\n tone = \"neutral\",\n pulse = false,\n className,\n ...props\n}: StatusDotProps) {\n return (\n <span\n className={cn(\n \"mf-status-dot\",\n `mf-status-dot--${tone}`,\n pulse && \"mf-status-dot--pulse\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport interface CheckListProps {\n items: Array<{ label: string; complete?: boolean }>;\n}\n\nexport function CheckList({ items }: CheckListProps) {\n return (\n <ul className=\"mf-check-list\">\n {items.map((item) => (\n <li key={item.label} className=\"mf-check-list__item\">\n <span className={cn(\"mf-check-list__mark\", item.complete && \"is-complete\")}>\n {item.complete ? <Check size={11} aria-hidden=\"true\" /> : null}\n </span>\n <span>{item.label}</span>\n </li>\n ))}\n </ul>\n );\n}\n","import { forwardRef, type HTMLAttributes, type ReactNode } from \"react\";\nimport * as TabsPrimitive from \"@radix-ui/react-tabs\";\nimport { AlertCircle, CheckCircle2, Info, TriangleAlert } from \"lucide-react\";\nimport { useLocale } from \"./locale\";\nimport { controlSizeClass, type ControlSize } from \"./sizes\";\nimport { cn } from \"./utils\";\n\nexport interface SpinnerProps extends HTMLAttributes<HTMLSpanElement> {\n size?: \"sm\" | \"md\" | \"lg\";\n label?: string;\n}\n\nexport function Spinner({ size = \"md\", label, className, ...props }: SpinnerProps) {\n const { messages } = useLocale();\n return (\n <span\n className={cn(\"mf-spinner\", `mf-spinner--${size}`, className)}\n role=\"status\"\n aria-label={label ?? messages.common.loading}\n {...props}\n />\n );\n}\n\nexport interface SkeletonProps extends HTMLAttributes<HTMLDivElement> {\n width?: string | number;\n height?: string | number;\n circle?: boolean;\n}\n\nexport function Skeleton({\n width,\n height,\n circle = false,\n className,\n style,\n ...props\n}: SkeletonProps) {\n return (\n <div\n className={cn(\"mf-skeleton\", circle && \"mf-skeleton--circle\", className)}\n style={{ width, height, ...style }}\n aria-hidden=\"true\"\n {...props}\n />\n );\n}\n\nexport interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, \"title\"> {\n tone?: \"neutral\" | \"info\" | \"success\" | \"warning\" | \"danger\";\n title?: ReactNode;\n icon?: ReactNode;\n}\n\nconst alertIcons = {\n neutral: Info,\n info: Info,\n success: CheckCircle2,\n warning: TriangleAlert,\n danger: AlertCircle,\n};\n\nexport function Alert({\n tone = \"neutral\",\n title,\n icon,\n className,\n children,\n ...props\n}: AlertProps) {\n const Icon = alertIcons[tone];\n return (\n <div\n className={cn(\"mf-alert\", `mf-alert--${tone}`, className)}\n role={tone === \"danger\" ? \"alert\" : \"status\"}\n {...props}\n >\n <span className=\"mf-alert__icon\">\n {icon ?? <Icon size={16} aria-hidden=\"true\" />}\n </span>\n <div className=\"mf-alert__content\">\n {title ? <strong className=\"mf-alert__title\">{title}</strong> : null}\n {children ? <div className=\"mf-alert__description\">{children}</div> : null}\n </div>\n </div>\n );\n}\n\nexport interface EmptyStateProps extends Omit<HTMLAttributes<HTMLDivElement>, \"title\"> {\n icon?: ReactNode;\n title: ReactNode;\n description?: ReactNode;\n action?: ReactNode;\n}\n\nexport function EmptyState({\n icon,\n title,\n description,\n action,\n className,\n ...props\n}: EmptyStateProps) {\n return (\n <div className={cn(\"mf-empty-state\", className)} {...props}>\n {icon ? <div className=\"mf-empty-state__icon\">{icon}</div> : null}\n <h3 className=\"mf-empty-state__title\">{title}</h3>\n {description ? <p className=\"mf-empty-state__description\">{description}</p> : null}\n {action ? <div className=\"mf-empty-state__action\">{action}</div> : null}\n </div>\n );\n}\n\nexport interface ProgressProps extends HTMLAttributes<HTMLDivElement> {\n value: number;\n max?: number;\n label?: string;\n}\n\nexport function Progress({\n value,\n max = 100,\n label,\n className,\n ...props\n}: ProgressProps) {\n const { messages } = useLocale();\n const safeMax = Number.isFinite(max) && max > 0 ? max : 100;\n const safeValue = Number.isFinite(value) ? Math.max(0, Math.min(safeMax, value)) : 0;\n const percentage = (safeValue / safeMax) * 100;\n return (\n <div\n className={cn(\"mf-progress\", className)}\n role=\"progressbar\"\n aria-label={label ?? messages.common.progress}\n aria-valuemin={0}\n aria-valuemax={safeMax}\n aria-valuenow={safeValue}\n {...props}\n >\n <div className=\"mf-progress__bar\" style={{ width: `${percentage}%` }} />\n </div>\n );\n}\n\nexport const Tabs = TabsPrimitive.Root;\n\nexport interface TabsListProps extends React.ComponentPropsWithoutRef<\n typeof TabsPrimitive.List\n> {\n size?: ControlSize;\n}\n\nexport const TabsList = forwardRef<\n React.ElementRef<typeof TabsPrimitive.List>,\n TabsListProps\n>(({ className, size, ...props }, ref) => (\n <TabsPrimitive.List\n ref={ref}\n className={cn(\"mf-tabs__list\", controlSizeClass(size), className)}\n {...props}\n />\n));\nTabsList.displayName = \"TabsList\";\n\nexport const TabsTrigger = forwardRef<\n React.ElementRef<typeof TabsPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(\"mf-tabs__trigger\", className)}\n {...props}\n />\n));\nTabsTrigger.displayName = \"TabsTrigger\";\n\nexport const TabsContent = forwardRef<\n React.ElementRef<typeof TabsPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Content\n ref={ref}\n className={cn(\"mf-tabs__content\", className)}\n {...props}\n />\n));\nTabsContent.displayName = \"TabsContent\";\n","import type { HTMLAttributes } from \"react\";\nimport { useLocale } from \"./locale\";\nimport { useTheme } from \"./theme\";\nimport { cn } from \"./utils\";\n\nexport type ThemePortalProps = HTMLAttributes<HTMLDivElement>;\n\nexport function ThemePortal({ className, ...props }: ThemePortalProps) {\n const { resolvedMode, density, colorScheme } = useTheme();\n const { locale } = useLocale();\n return (\n <div\n className={cn(\"mf-root\", \"mf-portal-surface\", className)}\n data-mf-theme={resolvedMode}\n data-mf-density={density}\n data-mf-color-scheme={colorScheme}\n lang={locale}\n {...props}\n />\n );\n}\n","import {\n forwardRef,\n type ComponentPropsWithoutRef,\n type ElementRef,\n type HTMLAttributes,\n type ReactNode,\n} from \"react\";\nimport * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\";\nimport * as ContextMenuPrimitive from \"@radix-ui/react-context-menu\";\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\";\nimport * as HoverCardPrimitive from \"@radix-ui/react-hover-card\";\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\";\nimport * as ToastPrimitive from \"@radix-ui/react-toast\";\nimport * as TooltipPrimitive from \"@radix-ui/react-tooltip\";\nimport { Check, ChevronRight, X } from \"lucide-react\";\nimport { useLocale } from \"./locale\";\nimport { ThemePortal } from \"./portal\";\nimport { surfaceSizeClass, type SurfaceSize } from \"./sizes\";\nimport { cn } from \"./utils\";\n\nfunction DialogCloseButton() {\n const { messages } = useLocale();\n return (\n <DialogPrimitive.Close\n className=\"mf-overlay__close\"\n aria-label={messages.overlays.closeDialog}\n >\n <X size={15} aria-hidden=\"true\" />\n </DialogPrimitive.Close>\n );\n}\n\nexport const Dialog = DialogPrimitive.Root;\nexport const DialogTrigger = DialogPrimitive.Trigger;\nexport const DialogClose = DialogPrimitive.Close;\n\nexport const DialogContent = forwardRef<\n ElementRef<typeof DialogPrimitive.Content>,\n ComponentPropsWithoutRef<typeof DialogPrimitive.Content> & {\n size?: SurfaceSize;\n }\n>(({ className, children, size, ...props }, ref) => (\n <DialogPrimitive.Portal>\n <ThemePortal>\n <DialogPrimitive.Overlay className=\"mf-overlay__backdrop\" />\n <DialogPrimitive.Content\n ref={ref}\n className={cn(\"mf-dialog__content\", surfaceSizeClass(size), className)}\n {...props}\n >\n {children}\n <DialogCloseButton />\n </DialogPrimitive.Content>\n </ThemePortal>\n </DialogPrimitive.Portal>\n));\nDialogContent.displayName = \"DialogContent\";\n\nexport function DialogHeader({ className, ...props }: HTMLAttributes<HTMLDivElement>) {\n return <div className={cn(\"mf-overlay__header\", className)} {...props} />;\n}\n\nexport const DialogTitle = forwardRef<\n ElementRef<typeof DialogPrimitive.Title>,\n ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Title\n ref={ref}\n className={cn(\"mf-overlay__title\", className)}\n {...props}\n />\n));\nDialogTitle.displayName = \"DialogTitle\";\n\nexport const DialogDescription = forwardRef<\n ElementRef<typeof DialogPrimitive.Description>,\n ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Description\n ref={ref}\n className={cn(\"mf-overlay__description\", className)}\n {...props}\n />\n));\nDialogDescription.displayName = \"DialogDescription\";\n\nexport function DialogFooter({ className, ...props }: HTMLAttributes<HTMLDivElement>) {\n return <div className={cn(\"mf-overlay__footer\", className)} {...props} />;\n}\n\nexport const AlertDialog = AlertDialogPrimitive.Root;\nexport const AlertDialogTrigger = AlertDialogPrimitive.Trigger;\nexport const AlertDialogCancel = AlertDialogPrimitive.Cancel;\nexport const AlertDialogAction = AlertDialogPrimitive.Action;\n\nexport const AlertDialogContent = forwardRef<\n ElementRef<typeof AlertDialogPrimitive.Content>,\n ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content> & {\n size?: SurfaceSize;\n }\n>(({ className, children, size, ...props }, ref) => {\n const { messages } = useLocale();\n return (\n <AlertDialogPrimitive.Portal>\n <ThemePortal>\n <AlertDialogPrimitive.Overlay className=\"mf-overlay__backdrop\" />\n <AlertDialogPrimitive.Content\n ref={ref}\n className={cn(\n \"mf-dialog__content\",\n \"mf-alert-dialog__content\",\n surfaceSizeClass(size),\n className,\n )}\n {...props}\n >\n {children}\n <AlertDialogPrimitive.Cancel\n className=\"mf-overlay__close\"\n aria-label={messages.overlays.closeAlert}\n >\n <X size={15} aria-hidden=\"true\" />\n </AlertDialogPrimitive.Cancel>\n </AlertDialogPrimitive.Content>\n </ThemePortal>\n </AlertDialogPrimitive.Portal>\n );\n});\nAlertDialogContent.displayName = \"AlertDialogContent\";\n\nexport function AlertDialogHeader({\n className,\n ...props\n}: HTMLAttributes<HTMLDivElement>) {\n return <div className={cn(\"mf-overlay__header\", className)} {...props} />;\n}\n\nexport const AlertDialogTitle = forwardRef<\n ElementRef<typeof AlertDialogPrimitive.Title>,\n ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Title\n ref={ref}\n className={cn(\"mf-overlay__title\", className)}\n {...props}\n />\n));\nAlertDialogTitle.displayName = \"AlertDialogTitle\";\n\nexport const AlertDialogDescription = forwardRef<\n ElementRef<typeof AlertDialogPrimitive.Description>,\n ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Description\n ref={ref}\n className={cn(\"mf-overlay__description\", className)}\n {...props}\n />\n));\nAlertDialogDescription.displayName = \"AlertDialogDescription\";\n\nexport function AlertDialogFooter({\n className,\n ...props\n}: HTMLAttributes<HTMLDivElement>) {\n return <div className={cn(\"mf-overlay__footer\", className)} {...props} />;\n}\n\nexport const Drawer = DialogPrimitive.Root;\nexport const DrawerTrigger = DialogPrimitive.Trigger;\nexport const DrawerClose = DialogPrimitive.Close;\n\nexport const DrawerContent = forwardRef<\n ElementRef<typeof DialogPrimitive.Content>,\n ComponentPropsWithoutRef<typeof DialogPrimitive.Content> & {\n side?: \"left\" | \"right\";\n size?: SurfaceSize;\n }\n>(({ className, children, side = \"right\", size, ...props }, ref) => (\n <DialogPrimitive.Portal>\n <ThemePortal>\n <DialogPrimitive.Overlay className=\"mf-overlay__backdrop\" />\n <DialogPrimitive.Content\n ref={ref}\n className={cn(\n \"mf-drawer__content\",\n `mf-drawer__content--${side}`,\n surfaceSizeClass(size),\n className,\n )}\n {...props}\n >\n {children}\n <DialogCloseButton />\n </DialogPrimitive.Content>\n </ThemePortal>\n </DialogPrimitive.Portal>\n));\nDrawerContent.displayName = \"DrawerContent\";\n\nexport const DrawerHeader = DialogHeader;\nexport const DrawerTitle = DialogTitle;\nexport const DrawerDescription = DialogDescription;\nexport const DrawerFooter = DialogFooter;\n\nexport const Popover = PopoverPrimitive.Root;\nexport const PopoverTrigger = PopoverPrimitive.Trigger;\nexport const PopoverAnchor = PopoverPrimitive.Anchor;\nexport const PopoverClose = PopoverPrimitive.Close;\n\nexport const PopoverContent = forwardRef<\n ElementRef<typeof PopoverPrimitive.Content>,\n ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 7, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <ThemePortal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\"mf-popover__content\", className)}\n {...props}\n />\n </ThemePortal>\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = \"PopoverContent\";\n\nexport const TooltipProvider = TooltipPrimitive.Provider;\nexport const Tooltip = TooltipPrimitive.Root;\nexport const TooltipTrigger = TooltipPrimitive.Trigger;\n\nexport const TooltipContent = forwardRef<\n ElementRef<typeof TooltipPrimitive.Content>,\n ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>\n>(({ className, sideOffset = 6, ...props }, ref) => (\n <TooltipPrimitive.Portal>\n <ThemePortal>\n <TooltipPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\"mf-tooltip__content\", className)}\n {...props}\n />\n </ThemePortal>\n </TooltipPrimitive.Portal>\n));\nTooltipContent.displayName = \"TooltipContent\";\n\nexport const DropdownMenu = DropdownMenuPrimitive.Root;\nexport const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\nexport const DropdownMenuGroup = DropdownMenuPrimitive.Group;\nexport const DropdownMenuSub = DropdownMenuPrimitive.Sub;\nexport const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\nexport const DropdownMenuItemIndicator = DropdownMenuPrimitive.ItemIndicator;\n\nexport const DropdownMenuContent = forwardRef<\n ElementRef<typeof DropdownMenuPrimitive.Content>,\n ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, sideOffset = 6, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <ThemePortal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\"mf-menu__content\", className)}\n {...props}\n />\n </ThemePortal>\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = \"DropdownMenuContent\";\n\nexport const DropdownMenuItem = forwardRef<\n ElementRef<typeof DropdownMenuPrimitive.Item>,\n ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\"mf-menu__item\", className)}\n {...props}\n />\n));\nDropdownMenuItem.displayName = \"DropdownMenuItem\";\n\nexport const DropdownMenuCheckboxItem = forwardRef<\n ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\"mf-menu__item\", \"mf-menu__item--check\", className)}\n {...props}\n >\n <DropdownMenuPrimitive.ItemIndicator className=\"mf-menu__indicator\">\n <Check size={12} aria-hidden=\"true\" />\n </DropdownMenuPrimitive.ItemIndicator>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n));\nDropdownMenuCheckboxItem.displayName = \"DropdownMenuCheckboxItem\";\n\nexport const DropdownMenuRadioItem = forwardRef<\n ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\"mf-menu__item\", \"mf-menu__item--check\", className)}\n {...props}\n >\n <DropdownMenuPrimitive.ItemIndicator className=\"mf-menu__indicator\">\n <Check size={12} aria-hidden=\"true\" />\n </DropdownMenuPrimitive.ItemIndicator>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n));\nDropdownMenuRadioItem.displayName = \"DropdownMenuRadioItem\";\n\nexport const DropdownMenuLabel = forwardRef<\n ElementRef<typeof DropdownMenuPrimitive.Label>,\n ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn(\"mf-menu__label\", className)}\n {...props}\n />\n));\nDropdownMenuLabel.displayName = \"DropdownMenuLabel\";\n\nexport const DropdownMenuSeparator = forwardRef<\n ElementRef<typeof DropdownMenuPrimitive.Separator>,\n ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator\n ref={ref}\n className={cn(\"mf-menu__separator\", className)}\n {...props}\n />\n));\nDropdownMenuSeparator.displayName = \"DropdownMenuSeparator\";\n\nexport const DropdownMenuSubTrigger = forwardRef<\n ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger>\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\"mf-menu__item\", className)}\n {...props}\n >\n {children}\n <ChevronRight size={13} className=\"mf-menu__sub-icon\" aria-hidden=\"true\" />\n </DropdownMenuPrimitive.SubTrigger>\n));\nDropdownMenuSubTrigger.displayName = \"DropdownMenuSubTrigger\";\n\nexport const DropdownMenuSubContent = forwardRef<\n ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <ThemePortal>\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(\"mf-menu__content\", className)}\n {...props}\n />\n </ThemePortal>\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuSubContent.displayName = \"DropdownMenuSubContent\";\n\nexport const ContextMenu = ContextMenuPrimitive.Root;\nexport const ContextMenuTrigger = ContextMenuPrimitive.Trigger;\nexport const ContextMenuGroup = ContextMenuPrimitive.Group;\nexport const ContextMenuSub = ContextMenuPrimitive.Sub;\nexport const ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;\nexport const ContextMenuItemIndicator = ContextMenuPrimitive.ItemIndicator;\n\nexport const ContextMenuContent = forwardRef<\n ElementRef<typeof ContextMenuPrimitive.Content>,\n ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <ContextMenuPrimitive.Portal>\n <ThemePortal>\n <ContextMenuPrimitive.Content\n ref={ref}\n className={cn(\"mf-menu__content\", className)}\n {...props}\n />\n </ThemePortal>\n </ContextMenuPrimitive.Portal>\n));\nContextMenuContent.displayName = \"ContextMenuContent\";\n\nexport const ContextMenuItem = forwardRef<\n ElementRef<typeof ContextMenuPrimitive.Item>,\n ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <ContextMenuPrimitive.Item\n ref={ref}\n className={cn(\"mf-menu__item\", className)}\n {...props}\n />\n));\nContextMenuItem.displayName = \"ContextMenuItem\";\n\nexport const ContextMenuCheckboxItem = forwardRef<\n ElementRef<typeof ContextMenuPrimitive.CheckboxItem>,\n ComponentPropsWithoutRef<typeof ContextMenuPrimitive.CheckboxItem>\n>(({ className, children, ...props }, ref) => (\n <ContextMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\"mf-menu__item\", \"mf-menu__item--check\", className)}\n {...props}\n >\n <ContextMenuPrimitive.ItemIndicator className=\"mf-menu__indicator\">\n <Check size={12} aria-hidden=\"true\" />\n </ContextMenuPrimitive.ItemIndicator>\n {children}\n </ContextMenuPrimitive.CheckboxItem>\n));\nContextMenuCheckboxItem.displayName = \"ContextMenuCheckboxItem\";\n\nexport const ContextMenuRadioItem = forwardRef<\n ElementRef<typeof ContextMenuPrimitive.RadioItem>,\n ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <ContextMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\"mf-menu__item\", \"mf-menu__item--check\", className)}\n {...props}\n >\n <ContextMenuPrimitive.ItemIndicator className=\"mf-menu__indicator\">\n <Check size={12} aria-hidden=\"true\" />\n </ContextMenuPrimitive.ItemIndicator>\n {children}\n </ContextMenuPrimitive.RadioItem>\n));\nContextMenuRadioItem.displayName = \"ContextMenuRadioItem\";\n\nexport const ContextMenuLabel = forwardRef<\n ElementRef<typeof ContextMenuPrimitive.Label>,\n ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Label>\n>(({ className, ...props }, ref) => (\n <ContextMenuPrimitive.Label\n ref={ref}\n className={cn(\"mf-menu__label\", className)}\n {...props}\n />\n));\nContextMenuLabel.displayName = \"ContextMenuLabel\";\n\nexport const ContextMenuSeparator = forwardRef<\n ElementRef<typeof ContextMenuPrimitive.Separator>,\n ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <ContextMenuPrimitive.Separator\n ref={ref}\n className={cn(\"mf-menu__separator\", className)}\n {...props}\n />\n));\nContextMenuSeparator.displayName = \"ContextMenuSeparator\";\n\nexport const ContextMenuSubTrigger = forwardRef<\n ElementRef<typeof ContextMenuPrimitive.SubTrigger>,\n ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubTrigger>\n>(({ className, children, ...props }, ref) => (\n <ContextMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\"mf-menu__item\", className)}\n {...props}\n >\n {children}\n <ChevronRight size={13} className=\"mf-menu__sub-icon\" aria-hidden=\"true\" />\n </ContextMenuPrimitive.SubTrigger>\n));\nContextMenuSubTrigger.displayName = \"ContextMenuSubTrigger\";\n\nexport const ContextMenuSubContent = forwardRef<\n ElementRef<typeof ContextMenuPrimitive.SubContent>,\n ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <ContextMenuPrimitive.Portal>\n <ThemePortal>\n <ContextMenuPrimitive.SubContent\n ref={ref}\n className={cn(\"mf-menu__content\", className)}\n {...props}\n />\n </ThemePortal>\n </ContextMenuPrimitive.Portal>\n));\nContextMenuSubContent.displayName = \"ContextMenuSubContent\";\n\nexport const HoverCard = HoverCardPrimitive.Root;\nexport const HoverCardTrigger = HoverCardPrimitive.Trigger;\n\nexport const HoverCardContent = forwardRef<\n ElementRef<typeof HoverCardPrimitive.Content>,\n ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 7, ...props }, ref) => (\n <HoverCardPrimitive.Portal>\n <ThemePortal>\n <HoverCardPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\"mf-popover__content\", className)}\n {...props}\n />\n </ThemePortal>\n </HoverCardPrimitive.Portal>\n));\nHoverCardContent.displayName = \"HoverCardContent\";\n\nexport const Toast = forwardRef<\n ElementRef<typeof ToastPrimitive.Root>,\n ComponentPropsWithoutRef<typeof ToastPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <ToastPrimitive.Root ref={ref} className={cn(\"mf-toast\", className)} {...props} />\n));\nToast.displayName = \"Toast\";\nexport const ToastTitle = forwardRef<\n ElementRef<typeof ToastPrimitive.Title>,\n ComponentPropsWithoutRef<typeof ToastPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <ToastPrimitive.Title\n ref={ref}\n className={cn(\"mf-toast__title\", className)}\n {...props}\n />\n));\nToastTitle.displayName = \"ToastTitle\";\n\nexport const ToastDescription = forwardRef<\n ElementRef<typeof ToastPrimitive.Description>,\n ComponentPropsWithoutRef<typeof ToastPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <ToastPrimitive.Description\n ref={ref}\n className={cn(\"mf-toast__description\", className)}\n {...props}\n />\n));\nToastDescription.displayName = \"ToastDescription\";\n\nexport const ToastAction = ToastPrimitive.Action;\nexport const ToastClose = forwardRef<\n ElementRef<typeof ToastPrimitive.Close>,\n ComponentPropsWithoutRef<typeof ToastPrimitive.Close>\n>(({ className, ...props }, ref) => {\n const { messages } = useLocale();\n return (\n <ToastPrimitive.Close\n ref={ref}\n className={cn(\"mf-toast__close\", className)}\n aria-label={messages.overlays.closeNotification}\n {...props}\n />\n );\n});\nToastClose.displayName = \"ToastClose\";\n\nexport function ToastProvider({\n children,\n duration = 4500,\n label,\n}: {\n children: ReactNode;\n duration?: number;\n label?: string;\n}) {\n const { messages } = useLocale();\n return (\n <ToastPrimitive.Provider\n duration={duration}\n label={label ?? messages.common.notification}\n swipeDirection=\"right\"\n >\n {children}\n <ToastPrimitive.Viewport className=\"mf-toast__viewport\" />\n </ToastPrimitive.Provider>\n );\n}\n"],"names":["useControllableState","value","defaultValue","onChange","uncontrolledValue","setUncontrolledValue","useState","isControlled","currentValue","valueRef","useRef","setValue","useCallback","nextValue","next","controlSizeClass","size","surfaceSizeClass","Field","label","hint","error","required","htmlFor","className","children","generatedId","useId","id","hintId","errorId","child","Children","isValidElement","childProps","describedBy","control","cloneElement","Select","cn","jsxs","jsx","Input","forwardRef","invalid","props","ref","Textarea","SearchInput","onValueChange","onClear","placeholder","disabled","messages","useLocale","setCurrentValue","Search","event","X","PasswordInput","visibleLabel","hiddenLabel","visible","setVisible","EyeOff","Eye","NumberInput","min","max","step","clamp","Minus","Plus","Checkbox","CheckboxPrimitive","Check","Switch","SwitchPrimitive","RadioGroup","RadioGroupPrimitive","RadioGroupItem","description","itemId","options","width","name","ariaProps","resolvedMode","density","colorScheme","useTheme","SelectPrimitive","ChevronDown","option","buttonVariants","cva","Button","variant","loading","leadingIcon","trailingIcon","type","IconButton","SegmentedControl","ariaLabel","nativeAriaLabel","CardCornerBorder","Badge","tone","dot","Tag","onRemove","removeLabel","Avatar","src","alt","fallback","status","imageFailed","setImageFailed","useEffect","statusLabel","AvatarGroup","items","overflow","Card","CardHeader","CardTitle","rest","CardDescription","CardContent","CardFooter","StatusDot","pulse","CheckList","item","Spinner","Skeleton","height","circle","style","alertIcons","Info","CheckCircle2","TriangleAlert","AlertCircle","Alert","title","icon","Icon","EmptyState","action","Progress","safeMax","safeValue","percentage","Tabs","TabsPrimitive","TabsList","TabsTrigger","TabsContent","ThemePortal","locale","DialogCloseButton","DialogPrimitive","Dialog","DialogTrigger","DialogClose","DialogContent","DialogHeader","DialogTitle","DialogDescription","DialogFooter","AlertDialog","AlertDialogPrimitive","AlertDialogTrigger","AlertDialogCancel","AlertDialogAction","AlertDialogContent","AlertDialogHeader","AlertDialogTitle","AlertDialogDescription","AlertDialogFooter","Drawer","DrawerTrigger","DrawerClose","DrawerContent","side","DrawerHeader","DrawerTitle","DrawerDescription","DrawerFooter","Popover","PopoverPrimitive","PopoverTrigger","PopoverAnchor","PopoverClose","PopoverContent","align","sideOffset","TooltipProvider","TooltipPrimitive","Tooltip","TooltipTrigger","TooltipContent","DropdownMenu","DropdownMenuPrimitive","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuSub","DropdownMenuRadioGroup","DropdownMenuItemIndicator","DropdownMenuContent","DropdownMenuItem","DropdownMenuCheckboxItem","DropdownMenuRadioItem","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuSubTrigger","ChevronRight","DropdownMenuSubContent","ContextMenu","ContextMenuPrimitive","ContextMenuTrigger","ContextMenuGroup","ContextMenuSub","ContextMenuRadioGroup","ContextMenuItemIndicator","ContextMenuContent","ContextMenuItem","ContextMenuCheckboxItem","ContextMenuRadioItem","ContextMenuLabel","ContextMenuSeparator","ContextMenuSubTrigger","ContextMenuSubContent","HoverCard","HoverCardPrimitive","HoverCardTrigger","HoverCardContent","Toast","ToastPrimitive","ToastTitle","ToastDescription","ToastAction","ToastClose","ToastProvider","duration"],"mappings":";;;;;;;;;;;;;;;;;;;AAQO,SAASA,EAAwB;AAAA,EACtC,OAAAC;AAAA,EACA,cAAAC;AAAA,EACA,UAAAC;AACF,GAAmC;AACjC,QAAM,CAACC,GAAmBC,CAAoB,IAAIC,EAASJ,CAAY,GACjEK,IAAeN,MAAU,QACzBO,IAAeD,IAAeN,IAAQG,GACtCK,IAAWC,EAAOF,CAAY;AACpC,EAAAC,EAAS,UAAUD;AAEnB,QAAMG,IAAWC;AAAA,IACf,CAACC,MAA6C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ime"),i=require("react"),Ve=require("@radix-ui/react-checkbox"),Ge=require("@radix-ui/react-radio-group"),ze=require("@radix-ui/react-select"),qe=require("@radix-ui/react-switch"),f=require("lucide-react"),r=require("./theme-C3i6xkHd.cjs"),Fe=require("class-variance-authority"),$=require("./rounded-card-border-CMiEPJIF.cjs"),He=require("@radix-ui/react-tabs"),Be=require("@radix-ui/react-alert-dialog"),Oe=require("@radix-ui/react-context-menu"),$e=require("@radix-ui/react-dialog"),Ee=require("@radix-ui/react-dropdown-menu"),Xe=require("@radix-ui/react-hover-card"),Ye=require("@radix-ui/react-popover"),Ue=require("@radix-ui/react-toast"),We=require("@radix-ui/react-tooltip");function b(a){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const s in a)if(s!=="default"){const n=Object.getOwnPropertyDescriptor(a,s);Object.defineProperty(t,s,n.get?n:{enumerable:!0,get:()=>a[s]})}}return t.default=a,Object.freeze(t)}const B=b(Ve),V=b(Ge),w=b(ze),O=b(qe),k=b(He),D=b(Be),x=b(Oe),N=b($e),h=b(Ee),S=b(Xe),M=b(Ye),y=b(Ue),P=b(We);function A({value:a,defaultValue:t,onChange:s}){const[n,o]=i.useState(t),c=a!==void 0,l=c?a:n,m=i.useRef(l);m.current=l;const d=i.useCallback(u=>{const p=typeof u=="function"?u(m.current):u;m.current=p,c||o(p),s?.(p)},[c,s]);return[l,d]}function g(a){return a?`mf-control-size-${a}`:void 0}function G(a){return a?`mf-surface-size-${a}`:void 0}function Je({label:a,hint:t,error:s,required:n,htmlFor:o,className:c,children:l}){const m=i.useId(),d=o??m,u=t?`${d}-hint`:void 0,p=s?`${d}-error`:void 0,j=i.Children.only(l);if(!i.isValidElement(j))return l;const C=j.props,_=[C["aria-describedby"],u,p].filter(Boolean).join(" "),R=i.cloneElement(j,{id:d,"aria-describedby":_||void 0,"aria-invalid":s?!0:C["aria-invalid"],"aria-required":n||C["aria-required"],...j.type===Z&&C.width===void 0?{width:"full"}:{}});return e.jsxs("div",{className:r.cn("mf-field",c),children:[a?e.jsxs("label",{className:"mf-field__label",htmlFor:d,children:[a,n?e.jsx("span",{className:"mf-field__required","aria-hidden":"true",children:"*"}):null]}):null,R,s?e.jsx("p",{className:"mf-field__error",id:p,role:"alert",children:s}):null,t?e.jsx("p",{className:"mf-field__hint",id:u,children:t}):null]})}const z=i.forwardRef(({invalid:a,size:t,className:s,...n},o)=>e.jsx("input",{ref:o,className:r.cn("mf-input",g(t),a&&"mf-input--invalid",s),"aria-invalid":a||void 0,...n}));z.displayName="Input";const E=i.forwardRef(({invalid:a,size:t,className:s,...n},o)=>e.jsx("textarea",{ref:o,className:r.cn("mf-textarea",g(t),a&&"mf-input--invalid",s),"aria-invalid":a||void 0,...n}));E.displayName="Textarea";const X=i.forwardRef(({value:a,defaultValue:t="",onValueChange:s,onClear:n,placeholder:o,size:c,className:l,disabled:m,...d},u)=>{const{messages:p}=r.useLocale(),[j,C]=A({value:a,defaultValue:t,onChange:s});return e.jsxs("div",{className:r.cn("mf-search",g(c),m&&"is-disabled",l),children:[e.jsx(f.Search,{className:"mf-search__icon",size:15,"aria-hidden":"true"}),e.jsx("input",{ref:u,type:"search",className:"mf-search__input",value:j,placeholder:o??p.forms.searchPlaceholder,disabled:m,onChange:_=>C(_.target.value),...d}),j?e.jsx("button",{type:"button",className:"mf-search__clear","aria-label":p.forms.clearSearch,onClick:()=>{C(""),n?.()},children:e.jsx(f.X,{size:13,"aria-hidden":"true"})}):null]})});X.displayName="SearchInput";const Y=i.forwardRef(({className:a,visibleLabel:t,hiddenLabel:s,disabled:n,size:o,...c},l)=>{const{messages:m}=r.useLocale(),[d,u]=i.useState(!1);return e.jsxs("div",{className:r.cn("mf-password",g(o),n&&"is-disabled",a),children:[e.jsx(z,{ref:l,type:d?"text":"password",className:"mf-password__input",disabled:n,size:o,...c}),e.jsx("button",{type:"button",className:"mf-password__toggle","aria-label":d?t??m.forms.hidePassword:s??m.forms.showPassword,"aria-pressed":d,disabled:n,onClick:()=>u(p=>!p),children:d?e.jsx(f.EyeOff,{size:15,"aria-hidden":"true"}):e.jsx(f.Eye,{size:15,"aria-hidden":"true"})})]})});Y.displayName="PasswordInput";const U=i.forwardRef(({value:a,defaultValue:t,onValueChange:s,min:n,max:o,step:c=1,size:l,invalid:m,className:d,disabled:u,...p},j)=>{const{messages:C}=r.useLocale(),[_,R]=A({value:a,defaultValue:t??n??0,onChange:s}),L=I=>Math.min(o??Number.POSITIVE_INFINITY,Math.max(n??Number.NEGATIVE_INFINITY,I)),T=I=>R(L(Number.isFinite(I)?I:0));return e.jsxs("div",{className:r.cn("mf-number",g(l),m&&"mf-input--invalid",u&&"is-disabled",d),children:[e.jsx("button",{type:"button",className:"mf-number__button","aria-label":C.forms.decreaseValue,disabled:u||n!==void 0&&_<=n,onClick:()=>T(_-c),children:e.jsx(f.Minus,{size:13,"aria-hidden":"true"})}),e.jsx("input",{ref:j,type:"number",className:"mf-number__input",value:_,min:n,max:o,step:c,disabled:u,"aria-invalid":m||void 0,onChange:I=>T(Number(I.target.value)),...p}),e.jsx("button",{type:"button",className:"mf-number__button","aria-label":C.forms.increaseValue,disabled:u||o!==void 0&&_>=o,onClick:()=>T(_+c),children:e.jsx(f.Plus,{size:13,"aria-hidden":"true"})})]})});U.displayName="NumberInput";const W=i.forwardRef(({className:a,children:t,size:s,...n},o)=>e.jsxs("label",{className:r.cn("mf-checkbox-row",g(s),a),children:[e.jsx(B.Root,{ref:o,className:"mf-checkbox",...n,children:e.jsx(B.Indicator,{className:"mf-checkbox__indicator",children:e.jsx(f.Check,{size:12,strokeWidth:2.4,"aria-hidden":"true"})})}),t?e.jsx("span",{className:"mf-checkbox__label",children:t}):null]}));W.displayName="Checkbox";const J=i.forwardRef(({className:a,size:t,...s},n)=>e.jsx(O.Root,{ref:n,className:r.cn("mf-switch",g(t),a),...s,children:e.jsx(O.Thumb,{className:"mf-switch__thumb"})}));J.displayName="Switch";const K=i.forwardRef(({className:a,size:t,...s},n)=>e.jsx(V.Root,{ref:n,className:r.cn("mf-radio-group",g(t),a),...s}));K.displayName="RadioGroup";const Q=i.forwardRef(({label:a,description:t,className:s,id:n,value:o,size:c,...l},m)=>{const d=i.useId(),u=n??d;return e.jsxs("div",{className:r.cn("mf-radio-row",g(c),s),children:[e.jsx(V.Item,{ref:m,id:u,value:o,className:"mf-radio",...l,children:e.jsx(V.Indicator,{className:"mf-radio__indicator"})}),e.jsxs("label",{htmlFor:u,className:"mf-radio__copy",children:[e.jsx("span",{className:"mf-radio__label",children:a}),t?e.jsx("span",{className:"mf-radio__description",children:t}):null]})]})});Q.displayName="RadioGroupItem";function Z({options:a,value:t,defaultValue:s,onValueChange:n,placeholder:o,disabled:c,size:l,width:m="auto",name:d,id:u,className:p,...j}){const{resolvedMode:C,density:_,colorScheme:R}=r.useTheme(),{messages:L}=r.useLocale();return e.jsxs(w.Root,{value:t,defaultValue:s,onValueChange:n,disabled:c,name:d,children:[e.jsxs(w.Trigger,{id:u,className:r.cn("mf-select__trigger",m==="auto"&&"mf-select--auto",g(l),p),...j,children:[e.jsx(w.Value,{placeholder:o??L.forms.selectOption}),e.jsx(w.Icon,{className:"mf-select__icon",children:e.jsx(f.ChevronDown,{size:14,"aria-hidden":"true"})})]}),e.jsx(w.Portal,{children:e.jsx("div",{className:"mf-root","data-mf-theme":C,"data-mf-density":_,"data-mf-color-scheme":R,children:e.jsx(w.Content,{className:"mf-select__content",position:"popper",sideOffset:6,children:e.jsx(w.Viewport,{className:"mf-select__viewport",children:a.map(T=>e.jsxs(w.Item,{value:T.value,disabled:T.disabled,className:"mf-select__item",children:[e.jsx(w.ItemText,{children:T.label}),e.jsx(w.ItemIndicator,{className:"mf-select__item-indicator",children:e.jsx(f.Check,{size:13,"aria-hidden":"true"})})]},T.value))})})})})]})}const Ke=Fe.cva("mf-button",{variants:{variant:{primary:"mf-button--primary",secondary:"mf-button--secondary",ghost:"mf-button--ghost",danger:"mf-button--danger"},size:{sm:"mf-button--sm",md:"mf-button--md",lg:"mf-button--lg"}},defaultVariants:{variant:"secondary"}}),q=i.forwardRef(({variant:a,size:t,loading:s=!1,leadingIcon:n,trailingIcon:o,disabled:c,type:l,className:m,children:d,...u},p)=>e.jsxs("button",{ref:p,type:l??"button",className:r.cn(Ke({variant:a,size:t}),t&&g(t),m),disabled:c||s,"aria-busy":s||void 0,...u,children:[s?e.jsx("span",{className:"mf-button__spinner","aria-hidden":"true"}):n,e.jsx("span",{className:"mf-button__label",children:d}),s?null:o]}));q.displayName="Button";const ee=i.forwardRef(({label:a,children:t,className:s,variant:n="ghost",size:o,...c},l)=>e.jsx(q,{ref:l,"aria-label":a,className:r.cn("mf-icon-button",s),variant:n,size:o,...c,children:t}));ee.displayName="IconButton";function Qe({options:a,value:t,defaultValue:s,onValueChange:n,size:o,disabled:c,ariaLabel:l,className:m,"aria-label":d,...u}){const{messages:p}=r.useLocale(),[j,C]=A({value:t,defaultValue:s??a[0]?.value,onChange:n});return e.jsx("div",{className:r.cn("mf-segmented",g(o),m),role:"group","aria-label":d??l??p.forms.options,...u,children:a.map(_=>e.jsxs("button",{type:"button",className:"mf-segmented__item","aria-pressed":j===_.value,disabled:c||_.disabled,onClick:()=>C(_.value),children:[j===_.value?e.jsx($.CardCornerBorder,{className:"mf-segmented__corner-border"}):null,_.label]},_.value))})}function Ze({tone:a="neutral",dot:t=!1,size:s,className:n,children:o,...c}){return e.jsxs("span",{className:r.cn("mf-badge",`mf-badge--${a}`,g(s),n),...c,children:[t?e.jsx("span",{className:"mf-badge__dot","aria-hidden":"true"}):null,o]})}function ea({onRemove:a,removeLabel:t,size:s,className:n,children:o,...c}){const{messages:l}=r.useLocale();return e.jsxs("span",{className:r.cn("mf-tag",g(s),n),...c,children:[e.jsx("span",{className:"mf-tag__label",children:o}),a?e.jsx("button",{type:"button",className:"mf-tag__remove","aria-label":t??(typeof o=="string"?l.forms.removeTag(o):l.common.clear),onClick:a,children:e.jsx(f.X,{size:11,"aria-hidden":"true"})}):null]})}function aa({src:a,alt:t="",fallback:s,size:n="md",status:o,className:c,...l}){const{messages:m}=r.useLocale(),[d,u]=i.useState(!1);i.useEffect(()=>u(!1),[a]);const p=o?m.common.status[o]:void 0;return e.jsxs("span",{className:r.cn("mf-avatar",`mf-avatar--${n}`,c),...l,children:[a&&!d?e.jsx("img",{className:"mf-avatar__image",src:a,alt:t,onError:()=>u(!0)}):e.jsx("span",{"aria-hidden":"true",children:s}),o?e.jsx("span",{className:r.cn("mf-avatar__status",`mf-avatar__status--${o}`),role:"img","aria-label":p?m.common.statusLabel(p):void 0}):null]})}function ta({max:a=3,children:t,className:s,...n}){const o=Array.isArray(t)?t:[t],c=o.slice(0,a),l=Math.max(0,o.length-a);return e.jsxs("div",{className:r.cn("mf-avatar-group",s),...n,children:[c,l>0?e.jsxs("span",{className:"mf-avatar mf-avatar--md mf-avatar--more",children:["+",l]}):null]})}const ae=i.forwardRef(({className:a,children:t,...s},n)=>e.jsxs("div",{ref:n,className:r.cn("mf-card",a),...s,children:[e.jsx($.CardCornerBorder,{}),t]}));ae.displayName="Card";function sa({className:a,...t}){return e.jsx("div",{className:r.cn("mf-card__header",a),...t})}function na({className:a,...t}){const{children:s,...n}=t;return e.jsx("h3",{className:r.cn("mf-card__title",a),...n,children:s})}function ra({className:a,...t}){return e.jsx("p",{className:r.cn("mf-card__description",a),...t})}function oa({className:a,...t}){return e.jsx("div",{className:r.cn("mf-card__content",a),...t})}function ia({className:a,...t}){return e.jsx("div",{className:r.cn("mf-card__footer",a),...t})}function ca({tone:a="neutral",pulse:t=!1,className:s,...n}){return e.jsx("span",{className:r.cn("mf-status-dot",`mf-status-dot--${a}`,t&&"mf-status-dot--pulse",s),...n})}function la({items:a}){return e.jsx("ul",{className:"mf-check-list",children:a.map(t=>e.jsxs("li",{className:"mf-check-list__item",children:[e.jsx("span",{className:r.cn("mf-check-list__mark",t.complete&&"is-complete"),children:t.complete?e.jsx(f.Check,{size:11,"aria-hidden":"true"}):null}),e.jsx("span",{children:t.label})]},t.label))})}function ma({size:a="md",label:t,className:s,...n}){const{messages:o}=r.useLocale();return e.jsx("span",{className:r.cn("mf-spinner",`mf-spinner--${a}`,s),role:"status","aria-label":t??o.common.loading,...n})}function da({width:a,height:t,circle:s=!1,className:n,style:o,...c}){return e.jsx("div",{className:r.cn("mf-skeleton",s&&"mf-skeleton--circle",n),style:{width:a,height:t,...o},"aria-hidden":"true",...c})}const ua={neutral:f.Info,info:f.Info,success:f.CheckCircle2,warning:f.TriangleAlert,danger:f.AlertCircle};function fa({tone:a="neutral",title:t,icon:s,className:n,children:o,...c}){const l=ua[a];return e.jsxs("div",{className:r.cn("mf-alert",`mf-alert--${a}`,n),role:a==="danger"?"alert":"status",...c,children:[e.jsx("span",{className:"mf-alert__icon",children:s??e.jsx(l,{size:16,"aria-hidden":"true"})}),e.jsxs("div",{className:"mf-alert__content",children:[t?e.jsx("strong",{className:"mf-alert__title",children:t}):null,o?e.jsx("div",{className:"mf-alert__description",children:o}):null]})]})}function pa({icon:a,title:t,description:s,action:n,className:o,...c}){return e.jsxs("div",{className:r.cn("mf-empty-state",o),...c,children:[a?e.jsx("div",{className:"mf-empty-state__icon",children:a}):null,e.jsx("h3",{className:"mf-empty-state__title",children:t}),s?e.jsx("p",{className:"mf-empty-state__description",children:s}):null,n?e.jsx("div",{className:"mf-empty-state__action",children:n}):null]})}function _a({value:a,max:t=100,label:s,className:n,...o}){const{messages:c}=r.useLocale(),l=Number.isFinite(t)&&t>0?t:100,m=Number.isFinite(a)?Math.max(0,Math.min(l,a)):0,d=m/l*100;return e.jsx("div",{className:r.cn("mf-progress",n),role:"progressbar","aria-label":s??c.common.progress,"aria-valuemin":0,"aria-valuemax":l,"aria-valuenow":m,...o,children:e.jsx("div",{className:"mf-progress__bar",style:{width:`${d}%`}})})}const xa=k.Root,te=i.forwardRef(({className:a,size:t,...s},n)=>e.jsx(k.List,{ref:n,className:r.cn("mf-tabs__list",g(t),a),...s}));te.displayName="TabsList";const se=i.forwardRef(({className:a,...t},s)=>e.jsx(k.Trigger,{ref:s,className:r.cn("mf-tabs__trigger",a),...t}));se.displayName="TabsTrigger";const ne=i.forwardRef(({className:a,...t},s)=>e.jsx(k.Content,{ref:s,className:r.cn("mf-tabs__content",a),...t}));ne.displayName="TabsContent";function v({className:a,...t}){const{resolvedMode:s,density:n,colorScheme:o}=r.useTheme(),{locale:c}=r.useLocale();return e.jsx("div",{className:r.cn("mf-root","mf-portal-surface",a),"data-mf-theme":s,"data-mf-density":n,"data-mf-color-scheme":o,lang:c,...t})}function re(){const{messages:a}=r.useLocale();return e.jsx(N.Close,{className:"mf-overlay__close","aria-label":a.overlays.closeDialog,children:e.jsx(f.X,{size:15,"aria-hidden":"true"})})}const ha=N.Root,ga=N.Trigger,Na=N.Close,oe=i.forwardRef(({className:a,children:t,size:s,...n},o)=>e.jsx(N.Portal,{children:e.jsxs(v,{children:[e.jsx(N.Overlay,{className:"mf-overlay__backdrop"}),e.jsxs(N.Content,{ref:o,className:r.cn("mf-dialog__content",G(s),a),...n,children:[t,e.jsx(re,{})]})]})}));oe.displayName="DialogContent";function ie({className:a,...t}){return e.jsx("div",{className:r.cn("mf-overlay__header",a),...t})}const F=i.forwardRef(({className:a,...t},s)=>e.jsx(N.Title,{ref:s,className:r.cn("mf-overlay__title",a),...t}));F.displayName="DialogTitle";const H=i.forwardRef(({className:a,...t},s)=>e.jsx(N.Description,{ref:s,className:r.cn("mf-overlay__description",a),...t}));H.displayName="DialogDescription";function ce({className:a,...t}){return e.jsx("div",{className:r.cn("mf-overlay__footer",a),...t})}const ja=D.Root,Ca=D.Trigger,ba=D.Cancel,va=D.Action,le=i.forwardRef(({className:a,children:t,size:s,...n},o)=>{const{messages:c}=r.useLocale();return e.jsx(D.Portal,{children:e.jsxs(v,{children:[e.jsx(D.Overlay,{className:"mf-overlay__backdrop"}),e.jsxs(D.Content,{ref:o,className:r.cn("mf-dialog__content","mf-alert-dialog__content",G(s),a),...n,children:[t,e.jsx(D.Cancel,{className:"mf-overlay__close","aria-label":c.overlays.closeAlert,children:e.jsx(f.X,{size:15,"aria-hidden":"true"})})]})]})})});le.displayName="AlertDialogContent";function wa({className:a,...t}){return e.jsx("div",{className:r.cn("mf-overlay__header",a),...t})}const me=i.forwardRef(({className:a,...t},s)=>e.jsx(D.Title,{ref:s,className:r.cn("mf-overlay__title",a),...t}));me.displayName="AlertDialogTitle";const de=i.forwardRef(({className:a,...t},s)=>e.jsx(D.Description,{ref:s,className:r.cn("mf-overlay__description",a),...t}));de.displayName="AlertDialogDescription";function Da({className:a,...t}){return e.jsx("div",{className:r.cn("mf-overlay__footer",a),...t})}const Ta=N.Root,ya=N.Trigger,Ia=N.Close,ue=i.forwardRef(({className:a,children:t,side:s="right",size:n,...o},c)=>e.jsx(N.Portal,{children:e.jsxs(v,{children:[e.jsx(N.Overlay,{className:"mf-overlay__backdrop"}),e.jsxs(N.Content,{ref:c,className:r.cn("mf-drawer__content",`mf-drawer__content--${s}`,G(n),a),...o,children:[t,e.jsx(re,{})]})]})}));ue.displayName="DrawerContent";const Ma=ie,Ra=F,Pa=H,Sa=ce,ka=M.Root,Aa=M.Trigger,La=M.Anchor,Va=M.Close,fe=i.forwardRef(({className:a,align:t="center",sideOffset:s=7,...n},o)=>e.jsx(M.Portal,{children:e.jsx(v,{children:e.jsx(M.Content,{ref:o,align:t,sideOffset:s,className:r.cn("mf-popover__content",a),...n})})}));fe.displayName="PopoverContent";const Ga=P.Provider,za=P.Root,qa=P.Trigger,pe=i.forwardRef(({className:a,sideOffset:t=6,...s},n)=>e.jsx(P.Portal,{children:e.jsx(v,{children:e.jsx(P.Content,{ref:n,sideOffset:t,className:r.cn("mf-tooltip__content",a),...s})})}));pe.displayName="TooltipContent";const Fa=h.Root,Ha=h.Trigger,Ba=h.Group,Oa=h.Sub,$a=h.RadioGroup,Ea=h.ItemIndicator,_e=i.forwardRef(({className:a,sideOffset:t=6,...s},n)=>e.jsx(h.Portal,{children:e.jsx(v,{children:e.jsx(h.Content,{ref:n,sideOffset:t,className:r.cn("mf-menu__content",a),...s})})}));_e.displayName="DropdownMenuContent";const xe=i.forwardRef(({className:a,...t},s)=>e.jsx(h.Item,{ref:s,className:r.cn("mf-menu__item",a),...t}));xe.displayName="DropdownMenuItem";const he=i.forwardRef(({className:a,children:t,...s},n)=>e.jsxs(h.CheckboxItem,{ref:n,className:r.cn("mf-menu__item","mf-menu__item--check",a),...s,children:[e.jsx(h.ItemIndicator,{className:"mf-menu__indicator",children:e.jsx(f.Check,{size:12,"aria-hidden":"true"})}),t]}));he.displayName="DropdownMenuCheckboxItem";const ge=i.forwardRef(({className:a,children:t,...s},n)=>e.jsxs(h.RadioItem,{ref:n,className:r.cn("mf-menu__item","mf-menu__item--check",a),...s,children:[e.jsx(h.ItemIndicator,{className:"mf-menu__indicator",children:e.jsx(f.Check,{size:12,"aria-hidden":"true"})}),t]}));ge.displayName="DropdownMenuRadioItem";const Ne=i.forwardRef(({className:a,...t},s)=>e.jsx(h.Label,{ref:s,className:r.cn("mf-menu__label",a),...t}));Ne.displayName="DropdownMenuLabel";const je=i.forwardRef(({className:a,...t},s)=>e.jsx(h.Separator,{ref:s,className:r.cn("mf-menu__separator",a),...t}));je.displayName="DropdownMenuSeparator";const Ce=i.forwardRef(({className:a,children:t,...s},n)=>e.jsxs(h.SubTrigger,{ref:n,className:r.cn("mf-menu__item",a),...s,children:[t,e.jsx(f.ChevronRight,{size:13,className:"mf-menu__sub-icon","aria-hidden":"true"})]}));Ce.displayName="DropdownMenuSubTrigger";const be=i.forwardRef(({className:a,...t},s)=>e.jsx(h.Portal,{children:e.jsx(v,{children:e.jsx(h.SubContent,{ref:s,className:r.cn("mf-menu__content",a),...t})})}));be.displayName="DropdownMenuSubContent";const Xa=x.Root,Ya=x.Trigger,Ua=x.Group,Wa=x.Sub,Ja=x.RadioGroup,Ka=x.ItemIndicator,ve=i.forwardRef(({className:a,...t},s)=>e.jsx(x.Portal,{children:e.jsx(v,{children:e.jsx(x.Content,{ref:s,className:r.cn("mf-menu__content",a),...t})})}));ve.displayName="ContextMenuContent";const we=i.forwardRef(({className:a,...t},s)=>e.jsx(x.Item,{ref:s,className:r.cn("mf-menu__item",a),...t}));we.displayName="ContextMenuItem";const De=i.forwardRef(({className:a,children:t,...s},n)=>e.jsxs(x.CheckboxItem,{ref:n,className:r.cn("mf-menu__item","mf-menu__item--check",a),...s,children:[e.jsx(x.ItemIndicator,{className:"mf-menu__indicator",children:e.jsx(f.Check,{size:12,"aria-hidden":"true"})}),t]}));De.displayName="ContextMenuCheckboxItem";const Te=i.forwardRef(({className:a,children:t,...s},n)=>e.jsxs(x.RadioItem,{ref:n,className:r.cn("mf-menu__item","mf-menu__item--check",a),...s,children:[e.jsx(x.ItemIndicator,{className:"mf-menu__indicator",children:e.jsx(f.Check,{size:12,"aria-hidden":"true"})}),t]}));Te.displayName="ContextMenuRadioItem";const ye=i.forwardRef(({className:a,...t},s)=>e.jsx(x.Label,{ref:s,className:r.cn("mf-menu__label",a),...t}));ye.displayName="ContextMenuLabel";const Ie=i.forwardRef(({className:a,...t},s)=>e.jsx(x.Separator,{ref:s,className:r.cn("mf-menu__separator",a),...t}));Ie.displayName="ContextMenuSeparator";const Me=i.forwardRef(({className:a,children:t,...s},n)=>e.jsxs(x.SubTrigger,{ref:n,className:r.cn("mf-menu__item",a),...s,children:[t,e.jsx(f.ChevronRight,{size:13,className:"mf-menu__sub-icon","aria-hidden":"true"})]}));Me.displayName="ContextMenuSubTrigger";const Re=i.forwardRef(({className:a,...t},s)=>e.jsx(x.Portal,{children:e.jsx(v,{children:e.jsx(x.SubContent,{ref:s,className:r.cn("mf-menu__content",a),...t})})}));Re.displayName="ContextMenuSubContent";const Qa=S.Root,Za=S.Trigger,Pe=i.forwardRef(({className:a,align:t="center",sideOffset:s=7,...n},o)=>e.jsx(S.Portal,{children:e.jsx(v,{children:e.jsx(S.Content,{ref:o,align:t,sideOffset:s,className:r.cn("mf-popover__content",a),...n})})}));Pe.displayName="HoverCardContent";const Se=i.forwardRef(({className:a,...t},s)=>e.jsx(y.Root,{ref:s,className:r.cn("mf-toast",a),...t}));Se.displayName="Toast";const ke=i.forwardRef(({className:a,...t},s)=>e.jsx(y.Title,{ref:s,className:r.cn("mf-toast__title",a),...t}));ke.displayName="ToastTitle";const Ae=i.forwardRef(({className:a,...t},s)=>e.jsx(y.Description,{ref:s,className:r.cn("mf-toast__description",a),...t}));Ae.displayName="ToastDescription";const et=y.Action,Le=i.forwardRef(({className:a,...t},s)=>{const{messages:n}=r.useLocale();return e.jsx(y.Close,{ref:s,className:r.cn("mf-toast__close",a),"aria-label":n.overlays.closeNotification,...t})});Le.displayName="ToastClose";function at({children:a,duration:t=4500,label:s}){const{messages:n}=r.useLocale();return e.jsxs(y.Provider,{duration:t,label:s??n.common.notification,swipeDirection:"right",children:[a,e.jsx(y.Viewport,{className:"mf-toast__viewport"})]})}exports.Alert=fa;exports.AlertDialog=ja;exports.AlertDialogAction=va;exports.AlertDialogCancel=ba;exports.AlertDialogContent=le;exports.AlertDialogDescription=de;exports.AlertDialogFooter=Da;exports.AlertDialogHeader=wa;exports.AlertDialogTitle=me;exports.AlertDialogTrigger=Ca;exports.Avatar=aa;exports.AvatarGroup=ta;exports.Badge=Ze;exports.Button=q;exports.Card=ae;exports.CardContent=oa;exports.CardDescription=ra;exports.CardFooter=ia;exports.CardHeader=sa;exports.CardTitle=na;exports.CheckList=la;exports.Checkbox=W;exports.ContextMenu=Xa;exports.ContextMenuCheckboxItem=De;exports.ContextMenuContent=ve;exports.ContextMenuGroup=Ua;exports.ContextMenuItem=we;exports.ContextMenuItemIndicator=Ka;exports.ContextMenuLabel=ye;exports.ContextMenuRadioGroup=Ja;exports.ContextMenuRadioItem=Te;exports.ContextMenuSeparator=Ie;exports.ContextMenuSub=Wa;exports.ContextMenuSubContent=Re;exports.ContextMenuSubTrigger=Me;exports.ContextMenuTrigger=Ya;exports.Dialog=ha;exports.DialogClose=Na;exports.DialogContent=oe;exports.DialogDescription=H;exports.DialogFooter=ce;exports.DialogHeader=ie;exports.DialogTitle=F;exports.DialogTrigger=ga;exports.Drawer=Ta;exports.DrawerClose=Ia;exports.DrawerContent=ue;exports.DrawerDescription=Pa;exports.DrawerFooter=Sa;exports.DrawerHeader=Ma;exports.DrawerTitle=Ra;exports.DrawerTrigger=ya;exports.DropdownMenu=Fa;exports.DropdownMenuCheckboxItem=he;exports.DropdownMenuContent=_e;exports.DropdownMenuGroup=Ba;exports.DropdownMenuItem=xe;exports.DropdownMenuItemIndicator=Ea;exports.DropdownMenuLabel=Ne;exports.DropdownMenuRadioGroup=$a;exports.DropdownMenuRadioItem=ge;exports.DropdownMenuSeparator=je;exports.DropdownMenuSub=Oa;exports.DropdownMenuSubContent=be;exports.DropdownMenuSubTrigger=Ce;exports.DropdownMenuTrigger=Ha;exports.EmptyState=pa;exports.Field=Je;exports.HoverCard=Qa;exports.HoverCardContent=Pe;exports.HoverCardTrigger=Za;exports.IconButton=ee;exports.Input=z;exports.NumberInput=U;exports.PasswordInput=Y;exports.Popover=ka;exports.PopoverAnchor=La;exports.PopoverClose=Va;exports.PopoverContent=fe;exports.PopoverTrigger=Aa;exports.Progress=_a;exports.RadioGroup=K;exports.RadioGroupItem=Q;exports.SearchInput=X;exports.SegmentedControl=Qe;exports.Select=Z;exports.Skeleton=da;exports.Spinner=ma;exports.StatusDot=ca;exports.Switch=J;exports.Tabs=xa;exports.TabsContent=ne;exports.TabsList=te;exports.TabsTrigger=se;exports.Tag=ea;exports.Textarea=E;exports.ThemePortal=v;exports.Toast=Se;exports.ToastAction=et;exports.ToastClose=Le;exports.ToastDescription=Ae;exports.ToastProvider=at;exports.ToastTitle=ke;exports.Tooltip=za;exports.TooltipContent=pe;exports.TooltipProvider=Ga;exports.TooltipTrigger=qa;exports.controlSizeClass=g;exports.useControllableState=A;
|
|
2
|
+
//# sourceMappingURL=overlays-DvozzH8D.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overlays-DvozzH8D.cjs","sources":["../src/hooks.ts","../src/sizes.ts","../src/forms.tsx","../src/actions.tsx","../src/feedback.tsx","../src/portal.tsx","../src/overlays.tsx"],"sourcesContent":["import { useCallback, useRef, useState } from \"react\";\n\nexport interface UseControllableStateOptions<T> {\n value?: T;\n defaultValue: T;\n onChange?: (value: T) => void;\n}\n\nexport function useControllableState<T>({\n value,\n defaultValue,\n onChange,\n}: UseControllableStateOptions<T>) {\n const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue);\n const isControlled = value !== undefined;\n const currentValue = isControlled ? value : uncontrolledValue;\n const valueRef = useRef(currentValue);\n valueRef.current = currentValue;\n\n const setValue = useCallback(\n (nextValue: T | ((previousValue: T) => T)) => {\n const next =\n typeof nextValue === \"function\"\n ? (nextValue as (previousValue: T) => T)(valueRef.current)\n : nextValue;\n valueRef.current = next;\n if (!isControlled) setUncontrolledValue(next);\n onChange?.(next);\n },\n [isControlled, onChange],\n );\n\n return [currentValue, setValue] as const;\n}\n","export type ControlSize = \"sm\" | \"md\" | \"lg\";\nexport type SurfaceSize = ControlSize | \"full\";\n\nexport function controlSizeClass(size?: ControlSize) {\n return size ? `mf-control-size-${size}` : undefined;\n}\n\nexport function surfaceSizeClass(size?: SurfaceSize) {\n return size ? `mf-surface-size-${size}` : undefined;\n}\n","import {\n Children,\n cloneElement,\n forwardRef,\n isValidElement,\n useId,\n useState,\n type InputHTMLAttributes,\n type ReactElement,\n type ReactNode,\n type TextareaHTMLAttributes,\n} from \"react\";\nimport * as CheckboxPrimitive from \"@radix-ui/react-checkbox\";\nimport * as RadioGroupPrimitive from \"@radix-ui/react-radio-group\";\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\nimport * as SwitchPrimitive from \"@radix-ui/react-switch\";\nimport { Check, ChevronDown, Eye, EyeOff, Minus, Plus, Search, X } from \"lucide-react\";\nimport { useControllableState } from \"./hooks\";\nimport { useLocale } from \"./locale\";\nimport { controlSizeClass, type ControlSize } from \"./sizes\";\nimport { useTheme } from \"./theme\";\nimport { cn } from \"./utils\";\n\nexport interface FieldProps {\n label?: ReactNode;\n hint?: ReactNode;\n error?: ReactNode;\n required?: boolean;\n htmlFor?: string;\n className?: string;\n children: ReactElement;\n}\n\nexport function Field({\n label,\n hint,\n error,\n required,\n htmlFor,\n className,\n children,\n}: FieldProps) {\n const generatedId = useId();\n const id = htmlFor ?? generatedId;\n const hintId = hint ? `${id}-hint` : undefined;\n const errorId = error ? `${id}-error` : undefined;\n const child = Children.only(children);\n\n if (!isValidElement(child)) return children;\n\n const childProps = child.props as {\n \"aria-describedby\"?: string;\n \"aria-invalid\"?: boolean;\n \"aria-required\"?: boolean;\n width?: \"full\" | \"auto\";\n };\n const describedBy = [childProps[\"aria-describedby\"], hintId, errorId]\n .filter(Boolean)\n .join(\" \");\n const control = cloneElement(child, {\n id,\n \"aria-describedby\": describedBy || undefined,\n \"aria-invalid\": error ? true : childProps[\"aria-invalid\"],\n \"aria-required\": required || childProps[\"aria-required\"],\n ...(child.type === Select && childProps.width === undefined\n ? { width: \"full\" as const }\n : {}),\n } as Record<string, unknown>);\n\n return (\n <div className={cn(\"mf-field\", className)}>\n {label ? (\n <label className=\"mf-field__label\" htmlFor={id}>\n {label}\n {required ? (\n <span className=\"mf-field__required\" aria-hidden=\"true\">\n *\n </span>\n ) : null}\n </label>\n ) : null}\n {control}\n {error ? (\n <p className=\"mf-field__error\" id={errorId} role=\"alert\">\n {error}\n </p>\n ) : null}\n {hint ? (\n <p className=\"mf-field__hint\" id={hintId}>\n {hint}\n </p>\n ) : null}\n </div>\n );\n}\n\nexport interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, \"size\"> {\n invalid?: boolean;\n size?: ControlSize;\n}\n\nexport const Input = forwardRef<HTMLInputElement, InputProps>(\n ({ invalid, size, className, ...props }, ref) => (\n <input\n ref={ref}\n className={cn(\n \"mf-input\",\n controlSizeClass(size),\n invalid && \"mf-input--invalid\",\n className,\n )}\n aria-invalid={invalid || undefined}\n {...props}\n />\n ),\n);\nInput.displayName = \"Input\";\n\nexport interface TextareaProps extends Omit<\n TextareaHTMLAttributes<HTMLTextAreaElement>,\n \"size\"\n> {\n invalid?: boolean;\n size?: ControlSize;\n}\n\nexport const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(\n ({ invalid, size, className, ...props }, ref) => (\n <textarea\n ref={ref}\n className={cn(\n \"mf-textarea\",\n controlSizeClass(size),\n invalid && \"mf-input--invalid\",\n className,\n )}\n aria-invalid={invalid || undefined}\n {...props}\n />\n ),\n);\nTextarea.displayName = \"Textarea\";\n\nexport interface SearchInputProps extends Omit<\n InputHTMLAttributes<HTMLInputElement>,\n \"onChange\" | \"value\" | \"defaultValue\" | \"size\"\n> {\n value?: string;\n defaultValue?: string;\n onValueChange?: (value: string) => void;\n onClear?: () => void;\n size?: ControlSize;\n}\n\nexport const SearchInput = forwardRef<HTMLInputElement, SearchInputProps>(\n (\n {\n value,\n defaultValue = \"\",\n onValueChange,\n onClear,\n placeholder,\n size,\n className,\n disabled,\n ...props\n },\n ref,\n ) => {\n const { messages } = useLocale();\n const [currentValue, setCurrentValue] = useControllableState({\n value,\n defaultValue,\n onChange: onValueChange,\n });\n\n return (\n <div\n className={cn(\n \"mf-search\",\n controlSizeClass(size),\n disabled && \"is-disabled\",\n className,\n )}\n >\n <Search className=\"mf-search__icon\" size={15} aria-hidden=\"true\" />\n <input\n ref={ref}\n type=\"search\"\n className=\"mf-search__input\"\n value={currentValue}\n placeholder={placeholder ?? messages.forms.searchPlaceholder}\n disabled={disabled}\n onChange={(event) => setCurrentValue(event.target.value)}\n {...props}\n />\n {currentValue ? (\n <button\n type=\"button\"\n className=\"mf-search__clear\"\n aria-label={messages.forms.clearSearch}\n onClick={() => {\n setCurrentValue(\"\");\n onClear?.();\n }}\n >\n <X size={13} aria-hidden=\"true\" />\n </button>\n ) : null}\n </div>\n );\n },\n);\nSearchInput.displayName = \"SearchInput\";\n\nexport interface PasswordInputProps extends Omit<InputProps, \"type\"> {\n visibleLabel?: string;\n hiddenLabel?: string;\n}\n\nexport const PasswordInput = forwardRef<HTMLInputElement, PasswordInputProps>(\n ({ className, visibleLabel, hiddenLabel, disabled, size, ...props }, ref) => {\n const { messages } = useLocale();\n const [visible, setVisible] = useState(false);\n return (\n <div\n className={cn(\n \"mf-password\",\n controlSizeClass(size),\n disabled && \"is-disabled\",\n className,\n )}\n >\n <Input\n ref={ref}\n type={visible ? \"text\" : \"password\"}\n className=\"mf-password__input\"\n disabled={disabled}\n size={size}\n {...props}\n />\n <button\n type=\"button\"\n className=\"mf-password__toggle\"\n aria-label={\n visible\n ? (visibleLabel ?? messages.forms.hidePassword)\n : (hiddenLabel ?? messages.forms.showPassword)\n }\n aria-pressed={visible}\n disabled={disabled}\n onClick={() => setVisible((value) => !value)}\n >\n {visible ? (\n <EyeOff size={15} aria-hidden=\"true\" />\n ) : (\n <Eye size={15} aria-hidden=\"true\" />\n )}\n </button>\n </div>\n );\n },\n);\nPasswordInput.displayName = \"PasswordInput\";\n\nexport interface NumberInputProps extends Omit<\n InputHTMLAttributes<HTMLInputElement>,\n \"type\" | \"value\" | \"defaultValue\" | \"onChange\" | \"size\"\n> {\n value?: number;\n defaultValue?: number;\n onValueChange?: (value: number) => void;\n min?: number;\n max?: number;\n step?: number;\n size?: ControlSize;\n invalid?: boolean;\n}\n\nexport const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(\n (\n {\n value,\n defaultValue,\n onValueChange,\n min,\n max,\n step = 1,\n size,\n invalid,\n className,\n disabled,\n ...props\n },\n ref,\n ) => {\n const { messages } = useLocale();\n const [currentValue, setCurrentValue] = useControllableState({\n value,\n defaultValue: defaultValue ?? min ?? 0,\n onChange: onValueChange,\n });\n const clamp = (next: number) =>\n Math.min(\n max ?? Number.POSITIVE_INFINITY,\n Math.max(min ?? Number.NEGATIVE_INFINITY, next),\n );\n const setValue = (next: number) =>\n setCurrentValue(clamp(Number.isFinite(next) ? next : 0));\n\n return (\n <div\n className={cn(\n \"mf-number\",\n controlSizeClass(size),\n invalid && \"mf-input--invalid\",\n disabled && \"is-disabled\",\n className,\n )}\n >\n <button\n type=\"button\"\n className=\"mf-number__button\"\n aria-label={messages.forms.decreaseValue}\n disabled={disabled || (min !== undefined && currentValue <= min)}\n onClick={() => setValue(currentValue - step)}\n >\n <Minus size={13} aria-hidden=\"true\" />\n </button>\n <input\n ref={ref}\n type=\"number\"\n className=\"mf-number__input\"\n value={currentValue}\n min={min}\n max={max}\n step={step}\n disabled={disabled}\n aria-invalid={invalid || undefined}\n onChange={(event) => setValue(Number(event.target.value))}\n {...props}\n />\n <button\n type=\"button\"\n className=\"mf-number__button\"\n aria-label={messages.forms.increaseValue}\n disabled={disabled || (max !== undefined && currentValue >= max)}\n onClick={() => setValue(currentValue + step)}\n >\n <Plus size={13} aria-hidden=\"true\" />\n </button>\n </div>\n );\n },\n);\nNumberInput.displayName = \"NumberInput\";\n\nexport interface CheckboxProps extends Omit<\n React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>,\n \"size\"\n> {\n size?: ControlSize;\n}\n\nexport const Checkbox = forwardRef<\n React.ElementRef<typeof CheckboxPrimitive.Root>,\n CheckboxProps\n>(({ className, children, size, ...props }, ref) => (\n <label className={cn(\"mf-checkbox-row\", controlSizeClass(size), className)}>\n <CheckboxPrimitive.Root ref={ref} className=\"mf-checkbox\" {...props}>\n <CheckboxPrimitive.Indicator className=\"mf-checkbox__indicator\">\n <Check size={12} strokeWidth={2.4} aria-hidden=\"true\" />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n {children ? <span className=\"mf-checkbox__label\">{children}</span> : null}\n </label>\n));\nCheckbox.displayName = \"Checkbox\";\n\nexport interface SwitchProps extends Omit<\n React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root>,\n \"size\"\n> {\n size?: ControlSize;\n}\n\nexport const Switch = forwardRef<\n React.ElementRef<typeof SwitchPrimitive.Root>,\n SwitchProps\n>(({ className, size, ...props }, ref) => (\n <SwitchPrimitive.Root\n ref={ref}\n className={cn(\"mf-switch\", controlSizeClass(size), className)}\n {...props}\n >\n <SwitchPrimitive.Thumb className=\"mf-switch__thumb\" />\n </SwitchPrimitive.Root>\n));\nSwitch.displayName = \"Switch\";\n\nexport interface RadioGroupProps extends Omit<\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>,\n \"size\"\n> {\n size?: ControlSize;\n}\n\nexport const RadioGroup = forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Root>,\n RadioGroupProps\n>(({ className, size, ...props }, ref) => (\n <RadioGroupPrimitive.Root\n ref={ref}\n className={cn(\"mf-radio-group\", controlSizeClass(size), className)}\n {...props}\n />\n));\nRadioGroup.displayName = \"RadioGroup\";\n\nexport interface RadioGroupItemProps extends React.ComponentPropsWithoutRef<\n typeof RadioGroupPrimitive.Item\n> {\n label: ReactNode;\n description?: ReactNode;\n size?: ControlSize;\n}\n\nexport const RadioGroupItem = forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Item>,\n RadioGroupItemProps\n>(({ label, description, className, id, value, size, ...props }, ref) => {\n const generatedId = useId();\n const itemId = id ?? generatedId;\n return (\n <div className={cn(\"mf-radio-row\", controlSizeClass(size), className)}>\n <RadioGroupPrimitive.Item\n ref={ref}\n id={itemId}\n value={value}\n className=\"mf-radio\"\n {...props}\n >\n <RadioGroupPrimitive.Indicator className=\"mf-radio__indicator\" />\n </RadioGroupPrimitive.Item>\n <label htmlFor={itemId} className=\"mf-radio__copy\">\n <span className=\"mf-radio__label\">{label}</span>\n {description ? (\n <span className=\"mf-radio__description\">{description}</span>\n ) : null}\n </label>\n </div>\n );\n});\nRadioGroupItem.displayName = \"RadioGroupItem\";\n\nexport interface SelectOption {\n value: string;\n label: string;\n disabled?: boolean;\n}\n\nexport interface SelectProps {\n options: SelectOption[];\n value?: string;\n defaultValue?: string;\n onValueChange?: (value: string) => void;\n placeholder?: string;\n disabled?: boolean;\n size?: ControlSize;\n width?: \"full\" | \"auto\";\n name?: string;\n id?: string;\n className?: string;\n \"aria-label\"?: string;\n \"aria-describedby\"?: string;\n \"aria-invalid\"?: boolean;\n}\n\nexport function Select({\n options,\n value,\n defaultValue,\n onValueChange,\n placeholder,\n disabled,\n size,\n width = \"auto\",\n name,\n id,\n className,\n ...ariaProps\n}: SelectProps) {\n const { resolvedMode, density, colorScheme } = useTheme();\n const { messages } = useLocale();\n return (\n <SelectPrimitive.Root\n value={value}\n defaultValue={defaultValue}\n onValueChange={onValueChange}\n disabled={disabled}\n name={name}\n >\n <SelectPrimitive.Trigger\n id={id}\n className={cn(\n \"mf-select__trigger\",\n width === \"auto\" && \"mf-select--auto\",\n controlSizeClass(size),\n className,\n )}\n {...ariaProps}\n >\n <SelectPrimitive.Value placeholder={placeholder ?? messages.forms.selectOption} />\n <SelectPrimitive.Icon className=\"mf-select__icon\">\n <ChevronDown size={14} aria-hidden=\"true\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n <SelectPrimitive.Portal>\n <div\n className=\"mf-root\"\n data-mf-theme={resolvedMode}\n data-mf-density={density}\n data-mf-color-scheme={colorScheme}\n >\n <SelectPrimitive.Content\n className=\"mf-select__content\"\n position=\"popper\"\n sideOffset={6}\n >\n <SelectPrimitive.Viewport className=\"mf-select__viewport\">\n {options.map((option) => (\n <SelectPrimitive.Item\n key={option.value}\n value={option.value}\n disabled={option.disabled}\n className=\"mf-select__item\"\n >\n <SelectPrimitive.ItemText>{option.label}</SelectPrimitive.ItemText>\n <SelectPrimitive.ItemIndicator className=\"mf-select__item-indicator\">\n <Check size={13} aria-hidden=\"true\" />\n </SelectPrimitive.ItemIndicator>\n </SelectPrimitive.Item>\n ))}\n </SelectPrimitive.Viewport>\n </SelectPrimitive.Content>\n </div>\n </SelectPrimitive.Portal>\n </SelectPrimitive.Root>\n );\n}\n","import {\n forwardRef,\n useEffect,\n useState,\n type ButtonHTMLAttributes,\n type HTMLAttributes,\n type ReactNode,\n} from \"react\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { Check, X } from \"lucide-react\";\nimport { useControllableState } from \"./hooks\";\nimport { useLocale } from \"./locale\";\nimport { CardCornerBorder } from \"./rounded-card-border\";\nimport { controlSizeClass, type ControlSize } from \"./sizes\";\nimport { cn } from \"./utils\";\n\n/* eslint-disable react/button-has-type -- This module owns the configurable Button contract. */\n\nconst buttonVariants = cva(\"mf-button\", {\n variants: {\n variant: {\n primary: \"mf-button--primary\",\n secondary: \"mf-button--secondary\",\n ghost: \"mf-button--ghost\",\n danger: \"mf-button--danger\",\n },\n size: {\n sm: \"mf-button--sm\",\n md: \"mf-button--md\",\n lg: \"mf-button--lg\",\n },\n },\n defaultVariants: {\n variant: \"secondary\",\n },\n});\n\nexport interface ButtonProps\n extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {\n loading?: boolean;\n leadingIcon?: ReactNode;\n trailingIcon?: ReactNode;\n}\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(\n (\n {\n variant,\n size,\n loading = false,\n leadingIcon,\n trailingIcon,\n disabled,\n type,\n className,\n children,\n ...props\n },\n ref,\n ) => (\n <button\n ref={ref}\n type={type ?? \"button\"}\n className={cn(\n buttonVariants({ variant, size }),\n size && controlSizeClass(size),\n className,\n )}\n disabled={disabled || loading}\n aria-busy={loading || undefined}\n {...props}\n >\n {loading ? <span className=\"mf-button__spinner\" aria-hidden=\"true\" /> : leadingIcon}\n <span className=\"mf-button__label\">{children}</span>\n {!loading ? trailingIcon : null}\n </button>\n ),\n);\nButton.displayName = \"Button\";\n\nexport interface IconButtonProps extends Omit<ButtonProps, \"children\"> {\n label: string;\n children: ReactNode;\n}\n\nexport const IconButton = forwardRef<HTMLButtonElement, IconButtonProps>(\n ({ label, children, className, variant = \"ghost\", size, ...props }, ref) => (\n <Button\n ref={ref}\n aria-label={label}\n className={cn(\"mf-icon-button\", className)}\n variant={variant}\n size={size}\n {...props}\n >\n {children}\n </Button>\n ),\n);\nIconButton.displayName = \"IconButton\";\n\nexport interface SegmentedOption<T extends string> {\n value: T;\n label: ReactNode;\n disabled?: boolean;\n}\n\nexport interface SegmentedControlProps<\n T extends string,\n> extends HTMLAttributes<HTMLDivElement> {\n options: Array<SegmentedOption<T>>;\n value?: T;\n defaultValue?: T;\n onValueChange?: (value: T) => void;\n size?: ControlSize;\n disabled?: boolean;\n /**\n * @deprecated Use the native `aria-label` prop instead.\n */\n ariaLabel?: string;\n}\n\nexport function SegmentedControl<T extends string>({\n options,\n value,\n defaultValue,\n onValueChange,\n size,\n disabled,\n ariaLabel,\n className,\n \"aria-label\": nativeAriaLabel,\n ...props\n}: SegmentedControlProps<T>) {\n const { messages } = useLocale();\n const [currentValue, setCurrentValue] = useControllableState<T>({\n value,\n defaultValue: (defaultValue ?? options[0]?.value) as T,\n onChange: onValueChange,\n });\n return (\n <div\n className={cn(\"mf-segmented\", controlSizeClass(size), className)}\n role=\"group\"\n aria-label={nativeAriaLabel ?? ariaLabel ?? messages.forms.options}\n {...props}\n >\n {options.map((option) => (\n <button\n key={option.value}\n type=\"button\"\n className=\"mf-segmented__item\"\n aria-pressed={currentValue === option.value}\n disabled={disabled || option.disabled}\n onClick={() => setCurrentValue(option.value)}\n >\n {currentValue === option.value ? (\n <CardCornerBorder className=\"mf-segmented__corner-border\" />\n ) : null}\n {option.label}\n </button>\n ))}\n </div>\n );\n}\n\nexport interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {\n tone?: \"neutral\" | \"success\" | \"warning\" | \"danger\" | \"info\";\n dot?: boolean;\n size?: ControlSize;\n}\n\nexport function Badge({\n tone = \"neutral\",\n dot = false,\n size,\n className,\n children,\n ...props\n}: BadgeProps) {\n return (\n <span\n className={cn(\"mf-badge\", `mf-badge--${tone}`, controlSizeClass(size), className)}\n {...props}\n >\n {dot ? <span className=\"mf-badge__dot\" aria-hidden=\"true\" /> : null}\n {children}\n </span>\n );\n}\n\nexport interface TagProps extends HTMLAttributes<HTMLSpanElement> {\n onRemove?: () => void;\n removeLabel?: string;\n size?: ControlSize;\n}\n\nexport function Tag({\n onRemove,\n removeLabel,\n size,\n className,\n children,\n ...props\n}: TagProps) {\n const { messages } = useLocale();\n return (\n <span className={cn(\"mf-tag\", controlSizeClass(size), className)} {...props}>\n <span className=\"mf-tag__label\">{children}</span>\n {onRemove ? (\n <button\n type=\"button\"\n className=\"mf-tag__remove\"\n aria-label={\n removeLabel ??\n (typeof children === \"string\"\n ? messages.forms.removeTag(children)\n : messages.common.clear)\n }\n onClick={onRemove}\n >\n <X size={11} aria-hidden=\"true\" />\n </button>\n ) : null}\n </span>\n );\n}\n\nexport interface AvatarProps extends HTMLAttributes<HTMLSpanElement> {\n src?: string;\n alt?: string;\n fallback: string;\n size?: \"sm\" | \"md\" | \"lg\";\n status?: \"online\" | \"busy\" | \"offline\";\n}\n\nexport function Avatar({\n src,\n alt = \"\",\n fallback,\n size = \"md\",\n status,\n className,\n ...props\n}: AvatarProps) {\n const { messages } = useLocale();\n const [imageFailed, setImageFailed] = useState(false);\n useEffect(() => setImageFailed(false), [src]);\n const statusLabel = status ? messages.common.status[status] : undefined;\n return (\n <span className={cn(\"mf-avatar\", `mf-avatar--${size}`, className)} {...props}>\n {src && !imageFailed ? (\n <img\n className=\"mf-avatar__image\"\n src={src}\n alt={alt}\n onError={() => setImageFailed(true)}\n />\n ) : (\n <span aria-hidden=\"true\">{fallback}</span>\n )}\n {status ? (\n <span\n className={cn(\"mf-avatar__status\", `mf-avatar__status--${status}`)}\n role=\"img\"\n aria-label={statusLabel ? messages.common.statusLabel(statusLabel) : undefined}\n />\n ) : null}\n </span>\n );\n}\n\nexport interface AvatarGroupProps extends HTMLAttributes<HTMLDivElement> {\n max?: number;\n children: ReactNode;\n}\n\nexport function AvatarGroup({\n max = 3,\n children,\n className,\n ...props\n}: AvatarGroupProps) {\n const items = Array.isArray(children) ? children : [children];\n const visible = items.slice(0, max);\n const overflow = Math.max(0, items.length - max);\n return (\n <div className={cn(\"mf-avatar-group\", className)} {...props}>\n {visible}\n {overflow > 0 ? (\n <span className=\"mf-avatar mf-avatar--md mf-avatar--more\">+{overflow}</span>\n ) : null}\n </div>\n );\n}\n\nexport const Card = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(\n ({ className, children, ...props }, ref) => (\n <div ref={ref} className={cn(\"mf-card\", className)} {...props}>\n <CardCornerBorder />\n {children}\n </div>\n ),\n);\nCard.displayName = \"Card\";\n\nexport function CardHeader({ className, ...props }: HTMLAttributes<HTMLDivElement>) {\n return <div className={cn(\"mf-card__header\", className)} {...props} />;\n}\n\nexport function CardTitle({ className, ...props }: HTMLAttributes<HTMLHeadingElement>) {\n const { children, ...rest } = props;\n return (\n <h3 className={cn(\"mf-card__title\", className)} {...rest}>\n {children}\n </h3>\n );\n}\n\nexport function CardDescription({\n className,\n ...props\n}: HTMLAttributes<HTMLParagraphElement>) {\n return <p className={cn(\"mf-card__description\", className)} {...props} />;\n}\n\nexport function CardContent({ className, ...props }: HTMLAttributes<HTMLDivElement>) {\n return <div className={cn(\"mf-card__content\", className)} {...props} />;\n}\n\nexport function CardFooter({ className, ...props }: HTMLAttributes<HTMLDivElement>) {\n return <div className={cn(\"mf-card__footer\", className)} {...props} />;\n}\n\nexport interface StatusDotProps extends HTMLAttributes<HTMLSpanElement> {\n tone?: \"online\" | \"busy\" | \"offline\" | \"neutral\" | \"danger\";\n pulse?: boolean;\n}\n\nexport function StatusDot({\n tone = \"neutral\",\n pulse = false,\n className,\n ...props\n}: StatusDotProps) {\n return (\n <span\n className={cn(\n \"mf-status-dot\",\n `mf-status-dot--${tone}`,\n pulse && \"mf-status-dot--pulse\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport interface CheckListProps {\n items: Array<{ label: string; complete?: boolean }>;\n}\n\nexport function CheckList({ items }: CheckListProps) {\n return (\n <ul className=\"mf-check-list\">\n {items.map((item) => (\n <li key={item.label} className=\"mf-check-list__item\">\n <span className={cn(\"mf-check-list__mark\", item.complete && \"is-complete\")}>\n {item.complete ? <Check size={11} aria-hidden=\"true\" /> : null}\n </span>\n <span>{item.label}</span>\n </li>\n ))}\n </ul>\n );\n}\n","import { forwardRef, type HTMLAttributes, type ReactNode } from \"react\";\nimport * as TabsPrimitive from \"@radix-ui/react-tabs\";\nimport { AlertCircle, CheckCircle2, Info, TriangleAlert } from \"lucide-react\";\nimport { useLocale } from \"./locale\";\nimport { controlSizeClass, type ControlSize } from \"./sizes\";\nimport { cn } from \"./utils\";\n\nexport interface SpinnerProps extends HTMLAttributes<HTMLSpanElement> {\n size?: \"sm\" | \"md\" | \"lg\";\n label?: string;\n}\n\nexport function Spinner({ size = \"md\", label, className, ...props }: SpinnerProps) {\n const { messages } = useLocale();\n return (\n <span\n className={cn(\"mf-spinner\", `mf-spinner--${size}`, className)}\n role=\"status\"\n aria-label={label ?? messages.common.loading}\n {...props}\n />\n );\n}\n\nexport interface SkeletonProps extends HTMLAttributes<HTMLDivElement> {\n width?: string | number;\n height?: string | number;\n circle?: boolean;\n}\n\nexport function Skeleton({\n width,\n height,\n circle = false,\n className,\n style,\n ...props\n}: SkeletonProps) {\n return (\n <div\n className={cn(\"mf-skeleton\", circle && \"mf-skeleton--circle\", className)}\n style={{ width, height, ...style }}\n aria-hidden=\"true\"\n {...props}\n />\n );\n}\n\nexport interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, \"title\"> {\n tone?: \"neutral\" | \"info\" | \"success\" | \"warning\" | \"danger\";\n title?: ReactNode;\n icon?: ReactNode;\n}\n\nconst alertIcons = {\n neutral: Info,\n info: Info,\n success: CheckCircle2,\n warning: TriangleAlert,\n danger: AlertCircle,\n};\n\nexport function Alert({\n tone = \"neutral\",\n title,\n icon,\n className,\n children,\n ...props\n}: AlertProps) {\n const Icon = alertIcons[tone];\n return (\n <div\n className={cn(\"mf-alert\", `mf-alert--${tone}`, className)}\n role={tone === \"danger\" ? \"alert\" : \"status\"}\n {...props}\n >\n <span className=\"mf-alert__icon\">\n {icon ?? <Icon size={16} aria-hidden=\"true\" />}\n </span>\n <div className=\"mf-alert__content\">\n {title ? <strong className=\"mf-alert__title\">{title}</strong> : null}\n {children ? <div className=\"mf-alert__description\">{children}</div> : null}\n </div>\n </div>\n );\n}\n\nexport interface EmptyStateProps extends Omit<HTMLAttributes<HTMLDivElement>, \"title\"> {\n icon?: ReactNode;\n title: ReactNode;\n description?: ReactNode;\n action?: ReactNode;\n}\n\nexport function EmptyState({\n icon,\n title,\n description,\n action,\n className,\n ...props\n}: EmptyStateProps) {\n return (\n <div className={cn(\"mf-empty-state\", className)} {...props}>\n {icon ? <div className=\"mf-empty-state__icon\">{icon}</div> : null}\n <h3 className=\"mf-empty-state__title\">{title}</h3>\n {description ? <p className=\"mf-empty-state__description\">{description}</p> : null}\n {action ? <div className=\"mf-empty-state__action\">{action}</div> : null}\n </div>\n );\n}\n\nexport interface ProgressProps extends HTMLAttributes<HTMLDivElement> {\n value: number;\n max?: number;\n label?: string;\n}\n\nexport function Progress({\n value,\n max = 100,\n label,\n className,\n ...props\n}: ProgressProps) {\n const { messages } = useLocale();\n const safeMax = Number.isFinite(max) && max > 0 ? max : 100;\n const safeValue = Number.isFinite(value) ? Math.max(0, Math.min(safeMax, value)) : 0;\n const percentage = (safeValue / safeMax) * 100;\n return (\n <div\n className={cn(\"mf-progress\", className)}\n role=\"progressbar\"\n aria-label={label ?? messages.common.progress}\n aria-valuemin={0}\n aria-valuemax={safeMax}\n aria-valuenow={safeValue}\n {...props}\n >\n <div className=\"mf-progress__bar\" style={{ width: `${percentage}%` }} />\n </div>\n );\n}\n\nexport const Tabs = TabsPrimitive.Root;\n\nexport interface TabsListProps extends React.ComponentPropsWithoutRef<\n typeof TabsPrimitive.List\n> {\n size?: ControlSize;\n}\n\nexport const TabsList = forwardRef<\n React.ElementRef<typeof TabsPrimitive.List>,\n TabsListProps\n>(({ className, size, ...props }, ref) => (\n <TabsPrimitive.List\n ref={ref}\n className={cn(\"mf-tabs__list\", controlSizeClass(size), className)}\n {...props}\n />\n));\nTabsList.displayName = \"TabsList\";\n\nexport const TabsTrigger = forwardRef<\n React.ElementRef<typeof TabsPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(\"mf-tabs__trigger\", className)}\n {...props}\n />\n));\nTabsTrigger.displayName = \"TabsTrigger\";\n\nexport const TabsContent = forwardRef<\n React.ElementRef<typeof TabsPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Content\n ref={ref}\n className={cn(\"mf-tabs__content\", className)}\n {...props}\n />\n));\nTabsContent.displayName = \"TabsContent\";\n","import type { HTMLAttributes } from \"react\";\nimport { useLocale } from \"./locale\";\nimport { useTheme } from \"./theme\";\nimport { cn } from \"./utils\";\n\nexport type ThemePortalProps = HTMLAttributes<HTMLDivElement>;\n\nexport function ThemePortal({ className, ...props }: ThemePortalProps) {\n const { resolvedMode, density, colorScheme } = useTheme();\n const { locale } = useLocale();\n return (\n <div\n className={cn(\"mf-root\", \"mf-portal-surface\", className)}\n data-mf-theme={resolvedMode}\n data-mf-density={density}\n data-mf-color-scheme={colorScheme}\n lang={locale}\n {...props}\n />\n );\n}\n","import {\n forwardRef,\n type ComponentPropsWithoutRef,\n type ElementRef,\n type HTMLAttributes,\n type ReactNode,\n} from \"react\";\nimport * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\";\nimport * as ContextMenuPrimitive from \"@radix-ui/react-context-menu\";\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\";\nimport * as HoverCardPrimitive from \"@radix-ui/react-hover-card\";\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\";\nimport * as ToastPrimitive from \"@radix-ui/react-toast\";\nimport * as TooltipPrimitive from \"@radix-ui/react-tooltip\";\nimport { Check, ChevronRight, X } from \"lucide-react\";\nimport { useLocale } from \"./locale\";\nimport { ThemePortal } from \"./portal\";\nimport { surfaceSizeClass, type SurfaceSize } from \"./sizes\";\nimport { cn } from \"./utils\";\n\nfunction DialogCloseButton() {\n const { messages } = useLocale();\n return (\n <DialogPrimitive.Close\n className=\"mf-overlay__close\"\n aria-label={messages.overlays.closeDialog}\n >\n <X size={15} aria-hidden=\"true\" />\n </DialogPrimitive.Close>\n );\n}\n\nexport const Dialog = DialogPrimitive.Root;\nexport const DialogTrigger = DialogPrimitive.Trigger;\nexport const DialogClose = DialogPrimitive.Close;\n\nexport const DialogContent = forwardRef<\n ElementRef<typeof DialogPrimitive.Content>,\n ComponentPropsWithoutRef<typeof DialogPrimitive.Content> & {\n size?: SurfaceSize;\n }\n>(({ className, children, size, ...props }, ref) => (\n <DialogPrimitive.Portal>\n <ThemePortal>\n <DialogPrimitive.Overlay className=\"mf-overlay__backdrop\" />\n <DialogPrimitive.Content\n ref={ref}\n className={cn(\"mf-dialog__content\", surfaceSizeClass(size), className)}\n {...props}\n >\n {children}\n <DialogCloseButton />\n </DialogPrimitive.Content>\n </ThemePortal>\n </DialogPrimitive.Portal>\n));\nDialogContent.displayName = \"DialogContent\";\n\nexport function DialogHeader({ className, ...props }: HTMLAttributes<HTMLDivElement>) {\n return <div className={cn(\"mf-overlay__header\", className)} {...props} />;\n}\n\nexport const DialogTitle = forwardRef<\n ElementRef<typeof DialogPrimitive.Title>,\n ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Title\n ref={ref}\n className={cn(\"mf-overlay__title\", className)}\n {...props}\n />\n));\nDialogTitle.displayName = \"DialogTitle\";\n\nexport const DialogDescription = forwardRef<\n ElementRef<typeof DialogPrimitive.Description>,\n ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Description\n ref={ref}\n className={cn(\"mf-overlay__description\", className)}\n {...props}\n />\n));\nDialogDescription.displayName = \"DialogDescription\";\n\nexport function DialogFooter({ className, ...props }: HTMLAttributes<HTMLDivElement>) {\n return <div className={cn(\"mf-overlay__footer\", className)} {...props} />;\n}\n\nexport const AlertDialog = AlertDialogPrimitive.Root;\nexport const AlertDialogTrigger = AlertDialogPrimitive.Trigger;\nexport const AlertDialogCancel = AlertDialogPrimitive.Cancel;\nexport const AlertDialogAction = AlertDialogPrimitive.Action;\n\nexport const AlertDialogContent = forwardRef<\n ElementRef<typeof AlertDialogPrimitive.Content>,\n ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content> & {\n size?: SurfaceSize;\n }\n>(({ className, children, size, ...props }, ref) => {\n const { messages } = useLocale();\n return (\n <AlertDialogPrimitive.Portal>\n <ThemePortal>\n <AlertDialogPrimitive.Overlay className=\"mf-overlay__backdrop\" />\n <AlertDialogPrimitive.Content\n ref={ref}\n className={cn(\n \"mf-dialog__content\",\n \"mf-alert-dialog__content\",\n surfaceSizeClass(size),\n className,\n )}\n {...props}\n >\n {children}\n <AlertDialogPrimitive.Cancel\n className=\"mf-overlay__close\"\n aria-label={messages.overlays.closeAlert}\n >\n <X size={15} aria-hidden=\"true\" />\n </AlertDialogPrimitive.Cancel>\n </AlertDialogPrimitive.Content>\n </ThemePortal>\n </AlertDialogPrimitive.Portal>\n );\n});\nAlertDialogContent.displayName = \"AlertDialogContent\";\n\nexport function AlertDialogHeader({\n className,\n ...props\n}: HTMLAttributes<HTMLDivElement>) {\n return <div className={cn(\"mf-overlay__header\", className)} {...props} />;\n}\n\nexport const AlertDialogTitle = forwardRef<\n ElementRef<typeof AlertDialogPrimitive.Title>,\n ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Title\n ref={ref}\n className={cn(\"mf-overlay__title\", className)}\n {...props}\n />\n));\nAlertDialogTitle.displayName = \"AlertDialogTitle\";\n\nexport const AlertDialogDescription = forwardRef<\n ElementRef<typeof AlertDialogPrimitive.Description>,\n ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Description\n ref={ref}\n className={cn(\"mf-overlay__description\", className)}\n {...props}\n />\n));\nAlertDialogDescription.displayName = \"AlertDialogDescription\";\n\nexport function AlertDialogFooter({\n className,\n ...props\n}: HTMLAttributes<HTMLDivElement>) {\n return <div className={cn(\"mf-overlay__footer\", className)} {...props} />;\n}\n\nexport const Drawer = DialogPrimitive.Root;\nexport const DrawerTrigger = DialogPrimitive.Trigger;\nexport const DrawerClose = DialogPrimitive.Close;\n\nexport const DrawerContent = forwardRef<\n ElementRef<typeof DialogPrimitive.Content>,\n ComponentPropsWithoutRef<typeof DialogPrimitive.Content> & {\n side?: \"left\" | \"right\";\n size?: SurfaceSize;\n }\n>(({ className, children, side = \"right\", size, ...props }, ref) => (\n <DialogPrimitive.Portal>\n <ThemePortal>\n <DialogPrimitive.Overlay className=\"mf-overlay__backdrop\" />\n <DialogPrimitive.Content\n ref={ref}\n className={cn(\n \"mf-drawer__content\",\n `mf-drawer__content--${side}`,\n surfaceSizeClass(size),\n className,\n )}\n {...props}\n >\n {children}\n <DialogCloseButton />\n </DialogPrimitive.Content>\n </ThemePortal>\n </DialogPrimitive.Portal>\n));\nDrawerContent.displayName = \"DrawerContent\";\n\nexport const DrawerHeader = DialogHeader;\nexport const DrawerTitle = DialogTitle;\nexport const DrawerDescription = DialogDescription;\nexport const DrawerFooter = DialogFooter;\n\nexport const Popover = PopoverPrimitive.Root;\nexport const PopoverTrigger = PopoverPrimitive.Trigger;\nexport const PopoverAnchor = PopoverPrimitive.Anchor;\nexport const PopoverClose = PopoverPrimitive.Close;\n\nexport const PopoverContent = forwardRef<\n ElementRef<typeof PopoverPrimitive.Content>,\n ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 7, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <ThemePortal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\"mf-popover__content\", className)}\n {...props}\n />\n </ThemePortal>\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = \"PopoverContent\";\n\nexport const TooltipProvider = TooltipPrimitive.Provider;\nexport const Tooltip = TooltipPrimitive.Root;\nexport const TooltipTrigger = TooltipPrimitive.Trigger;\n\nexport const TooltipContent = forwardRef<\n ElementRef<typeof TooltipPrimitive.Content>,\n ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>\n>(({ className, sideOffset = 6, ...props }, ref) => (\n <TooltipPrimitive.Portal>\n <ThemePortal>\n <TooltipPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\"mf-tooltip__content\", className)}\n {...props}\n />\n </ThemePortal>\n </TooltipPrimitive.Portal>\n));\nTooltipContent.displayName = \"TooltipContent\";\n\nexport const DropdownMenu = DropdownMenuPrimitive.Root;\nexport const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\nexport const DropdownMenuGroup = DropdownMenuPrimitive.Group;\nexport const DropdownMenuSub = DropdownMenuPrimitive.Sub;\nexport const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\nexport const DropdownMenuItemIndicator = DropdownMenuPrimitive.ItemIndicator;\n\nexport const DropdownMenuContent = forwardRef<\n ElementRef<typeof DropdownMenuPrimitive.Content>,\n ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, sideOffset = 6, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <ThemePortal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\"mf-menu__content\", className)}\n {...props}\n />\n </ThemePortal>\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = \"DropdownMenuContent\";\n\nexport const DropdownMenuItem = forwardRef<\n ElementRef<typeof DropdownMenuPrimitive.Item>,\n ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\"mf-menu__item\", className)}\n {...props}\n />\n));\nDropdownMenuItem.displayName = \"DropdownMenuItem\";\n\nexport const DropdownMenuCheckboxItem = forwardRef<\n ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\"mf-menu__item\", \"mf-menu__item--check\", className)}\n {...props}\n >\n <DropdownMenuPrimitive.ItemIndicator className=\"mf-menu__indicator\">\n <Check size={12} aria-hidden=\"true\" />\n </DropdownMenuPrimitive.ItemIndicator>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n));\nDropdownMenuCheckboxItem.displayName = \"DropdownMenuCheckboxItem\";\n\nexport const DropdownMenuRadioItem = forwardRef<\n ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\"mf-menu__item\", \"mf-menu__item--check\", className)}\n {...props}\n >\n <DropdownMenuPrimitive.ItemIndicator className=\"mf-menu__indicator\">\n <Check size={12} aria-hidden=\"true\" />\n </DropdownMenuPrimitive.ItemIndicator>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n));\nDropdownMenuRadioItem.displayName = \"DropdownMenuRadioItem\";\n\nexport const DropdownMenuLabel = forwardRef<\n ElementRef<typeof DropdownMenuPrimitive.Label>,\n ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn(\"mf-menu__label\", className)}\n {...props}\n />\n));\nDropdownMenuLabel.displayName = \"DropdownMenuLabel\";\n\nexport const DropdownMenuSeparator = forwardRef<\n ElementRef<typeof DropdownMenuPrimitive.Separator>,\n ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator\n ref={ref}\n className={cn(\"mf-menu__separator\", className)}\n {...props}\n />\n));\nDropdownMenuSeparator.displayName = \"DropdownMenuSeparator\";\n\nexport const DropdownMenuSubTrigger = forwardRef<\n ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger>\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\"mf-menu__item\", className)}\n {...props}\n >\n {children}\n <ChevronRight size={13} className=\"mf-menu__sub-icon\" aria-hidden=\"true\" />\n </DropdownMenuPrimitive.SubTrigger>\n));\nDropdownMenuSubTrigger.displayName = \"DropdownMenuSubTrigger\";\n\nexport const DropdownMenuSubContent = forwardRef<\n ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <ThemePortal>\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(\"mf-menu__content\", className)}\n {...props}\n />\n </ThemePortal>\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuSubContent.displayName = \"DropdownMenuSubContent\";\n\nexport const ContextMenu = ContextMenuPrimitive.Root;\nexport const ContextMenuTrigger = ContextMenuPrimitive.Trigger;\nexport const ContextMenuGroup = ContextMenuPrimitive.Group;\nexport const ContextMenuSub = ContextMenuPrimitive.Sub;\nexport const ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;\nexport const ContextMenuItemIndicator = ContextMenuPrimitive.ItemIndicator;\n\nexport const ContextMenuContent = forwardRef<\n ElementRef<typeof ContextMenuPrimitive.Content>,\n ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <ContextMenuPrimitive.Portal>\n <ThemePortal>\n <ContextMenuPrimitive.Content\n ref={ref}\n className={cn(\"mf-menu__content\", className)}\n {...props}\n />\n </ThemePortal>\n </ContextMenuPrimitive.Portal>\n));\nContextMenuContent.displayName = \"ContextMenuContent\";\n\nexport const ContextMenuItem = forwardRef<\n ElementRef<typeof ContextMenuPrimitive.Item>,\n ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <ContextMenuPrimitive.Item\n ref={ref}\n className={cn(\"mf-menu__item\", className)}\n {...props}\n />\n));\nContextMenuItem.displayName = \"ContextMenuItem\";\n\nexport const ContextMenuCheckboxItem = forwardRef<\n ElementRef<typeof ContextMenuPrimitive.CheckboxItem>,\n ComponentPropsWithoutRef<typeof ContextMenuPrimitive.CheckboxItem>\n>(({ className, children, ...props }, ref) => (\n <ContextMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\"mf-menu__item\", \"mf-menu__item--check\", className)}\n {...props}\n >\n <ContextMenuPrimitive.ItemIndicator className=\"mf-menu__indicator\">\n <Check size={12} aria-hidden=\"true\" />\n </ContextMenuPrimitive.ItemIndicator>\n {children}\n </ContextMenuPrimitive.CheckboxItem>\n));\nContextMenuCheckboxItem.displayName = \"ContextMenuCheckboxItem\";\n\nexport const ContextMenuRadioItem = forwardRef<\n ElementRef<typeof ContextMenuPrimitive.RadioItem>,\n ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <ContextMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\"mf-menu__item\", \"mf-menu__item--check\", className)}\n {...props}\n >\n <ContextMenuPrimitive.ItemIndicator className=\"mf-menu__indicator\">\n <Check size={12} aria-hidden=\"true\" />\n </ContextMenuPrimitive.ItemIndicator>\n {children}\n </ContextMenuPrimitive.RadioItem>\n));\nContextMenuRadioItem.displayName = \"ContextMenuRadioItem\";\n\nexport const ContextMenuLabel = forwardRef<\n ElementRef<typeof ContextMenuPrimitive.Label>,\n ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Label>\n>(({ className, ...props }, ref) => (\n <ContextMenuPrimitive.Label\n ref={ref}\n className={cn(\"mf-menu__label\", className)}\n {...props}\n />\n));\nContextMenuLabel.displayName = \"ContextMenuLabel\";\n\nexport const ContextMenuSeparator = forwardRef<\n ElementRef<typeof ContextMenuPrimitive.Separator>,\n ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <ContextMenuPrimitive.Separator\n ref={ref}\n className={cn(\"mf-menu__separator\", className)}\n {...props}\n />\n));\nContextMenuSeparator.displayName = \"ContextMenuSeparator\";\n\nexport const ContextMenuSubTrigger = forwardRef<\n ElementRef<typeof ContextMenuPrimitive.SubTrigger>,\n ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubTrigger>\n>(({ className, children, ...props }, ref) => (\n <ContextMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\"mf-menu__item\", className)}\n {...props}\n >\n {children}\n <ChevronRight size={13} className=\"mf-menu__sub-icon\" aria-hidden=\"true\" />\n </ContextMenuPrimitive.SubTrigger>\n));\nContextMenuSubTrigger.displayName = \"ContextMenuSubTrigger\";\n\nexport const ContextMenuSubContent = forwardRef<\n ElementRef<typeof ContextMenuPrimitive.SubContent>,\n ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <ContextMenuPrimitive.Portal>\n <ThemePortal>\n <ContextMenuPrimitive.SubContent\n ref={ref}\n className={cn(\"mf-menu__content\", className)}\n {...props}\n />\n </ThemePortal>\n </ContextMenuPrimitive.Portal>\n));\nContextMenuSubContent.displayName = \"ContextMenuSubContent\";\n\nexport const HoverCard = HoverCardPrimitive.Root;\nexport const HoverCardTrigger = HoverCardPrimitive.Trigger;\n\nexport const HoverCardContent = forwardRef<\n ElementRef<typeof HoverCardPrimitive.Content>,\n ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 7, ...props }, ref) => (\n <HoverCardPrimitive.Portal>\n <ThemePortal>\n <HoverCardPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\"mf-popover__content\", className)}\n {...props}\n />\n </ThemePortal>\n </HoverCardPrimitive.Portal>\n));\nHoverCardContent.displayName = \"HoverCardContent\";\n\nexport const Toast = forwardRef<\n ElementRef<typeof ToastPrimitive.Root>,\n ComponentPropsWithoutRef<typeof ToastPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <ToastPrimitive.Root ref={ref} className={cn(\"mf-toast\", className)} {...props} />\n));\nToast.displayName = \"Toast\";\nexport const ToastTitle = forwardRef<\n ElementRef<typeof ToastPrimitive.Title>,\n ComponentPropsWithoutRef<typeof ToastPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <ToastPrimitive.Title\n ref={ref}\n className={cn(\"mf-toast__title\", className)}\n {...props}\n />\n));\nToastTitle.displayName = \"ToastTitle\";\n\nexport const ToastDescription = forwardRef<\n ElementRef<typeof ToastPrimitive.Description>,\n ComponentPropsWithoutRef<typeof ToastPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <ToastPrimitive.Description\n ref={ref}\n className={cn(\"mf-toast__description\", className)}\n {...props}\n />\n));\nToastDescription.displayName = \"ToastDescription\";\n\nexport const ToastAction = ToastPrimitive.Action;\nexport const ToastClose = forwardRef<\n ElementRef<typeof ToastPrimitive.Close>,\n ComponentPropsWithoutRef<typeof ToastPrimitive.Close>\n>(({ className, ...props }, ref) => {\n const { messages } = useLocale();\n return (\n <ToastPrimitive.Close\n ref={ref}\n className={cn(\"mf-toast__close\", className)}\n aria-label={messages.overlays.closeNotification}\n {...props}\n />\n );\n});\nToastClose.displayName = \"ToastClose\";\n\nexport function ToastProvider({\n children,\n duration = 4500,\n label,\n}: {\n children: ReactNode;\n duration?: number;\n label?: string;\n}) {\n const { messages } = useLocale();\n return (\n <ToastPrimitive.Provider\n duration={duration}\n label={label ?? messages.common.notification}\n swipeDirection=\"right\"\n >\n {children}\n <ToastPrimitive.Viewport className=\"mf-toast__viewport\" />\n </ToastPrimitive.Provider>\n );\n}\n"],"names":["useControllableState","value","defaultValue","onChange","uncontrolledValue","setUncontrolledValue","useState","isControlled","currentValue","valueRef","useRef","setValue","useCallback","nextValue","next","controlSizeClass","size","surfaceSizeClass","Field","label","hint","error","required","htmlFor","className","children","generatedId","useId","id","hintId","errorId","child","Children","isValidElement","childProps","describedBy","control","cloneElement","Select","cn","jsxs","jsx","Input","forwardRef","invalid","props","ref","Textarea","SearchInput","onValueChange","onClear","placeholder","disabled","messages","useLocale","setCurrentValue","Search","event","X","PasswordInput","visibleLabel","hiddenLabel","visible","setVisible","EyeOff","Eye","NumberInput","min","max","step","clamp","Minus","Plus","Checkbox","CheckboxPrimitive","Check","Switch","SwitchPrimitive","RadioGroup","RadioGroupPrimitive","RadioGroupItem","description","itemId","options","width","name","ariaProps","resolvedMode","density","colorScheme","useTheme","SelectPrimitive","ChevronDown","option","buttonVariants","cva","Button","variant","loading","leadingIcon","trailingIcon","type","IconButton","SegmentedControl","ariaLabel","nativeAriaLabel","CardCornerBorder","Badge","tone","dot","Tag","onRemove","removeLabel","Avatar","src","alt","fallback","status","imageFailed","setImageFailed","useEffect","statusLabel","AvatarGroup","items","overflow","Card","CardHeader","CardTitle","rest","CardDescription","CardContent","CardFooter","StatusDot","pulse","CheckList","item","Spinner","Skeleton","height","circle","style","alertIcons","Info","CheckCircle2","TriangleAlert","AlertCircle","Alert","title","icon","Icon","EmptyState","action","Progress","safeMax","safeValue","percentage","Tabs","TabsPrimitive","TabsList","TabsTrigger","TabsContent","ThemePortal","locale","DialogCloseButton","DialogPrimitive","Dialog","DialogTrigger","DialogClose","DialogContent","DialogHeader","DialogTitle","DialogDescription","DialogFooter","AlertDialog","AlertDialogPrimitive","AlertDialogTrigger","AlertDialogCancel","AlertDialogAction","AlertDialogContent","AlertDialogHeader","AlertDialogTitle","AlertDialogDescription","AlertDialogFooter","Drawer","DrawerTrigger","DrawerClose","DrawerContent","side","DrawerHeader","DrawerTitle","DrawerDescription","DrawerFooter","Popover","PopoverPrimitive","PopoverTrigger","PopoverAnchor","PopoverClose","PopoverContent","align","sideOffset","TooltipProvider","TooltipPrimitive","Tooltip","TooltipTrigger","TooltipContent","DropdownMenu","DropdownMenuPrimitive","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuSub","DropdownMenuRadioGroup","DropdownMenuItemIndicator","DropdownMenuContent","DropdownMenuItem","DropdownMenuCheckboxItem","DropdownMenuRadioItem","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuSubTrigger","ChevronRight","DropdownMenuSubContent","ContextMenu","ContextMenuPrimitive","ContextMenuTrigger","ContextMenuGroup","ContextMenuSub","ContextMenuRadioGroup","ContextMenuItemIndicator","ContextMenuContent","ContextMenuItem","ContextMenuCheckboxItem","ContextMenuRadioItem","ContextMenuLabel","ContextMenuSeparator","ContextMenuSubTrigger","ContextMenuSubContent","HoverCard","HoverCardPrimitive","HoverCardTrigger","HoverCardContent","Toast","ToastPrimitive","ToastTitle","ToastDescription","ToastAction","ToastClose","ToastProvider","duration"],"mappings":"ilCAQO,SAASA,EAAwB,CACtC,MAAAC,EACA,aAAAC,EACA,SAAAC,CACF,EAAmC,CACjC,KAAM,CAACC,EAAmBC,CAAoB,EAAIC,EAAAA,SAASJ,CAAY,EACjEK,EAAeN,IAAU,OACzBO,EAAeD,EAAeN,EAAQG,EACtCK,EAAWC,EAAAA,OAAOF,CAAY,EACpCC,EAAS,QAAUD,EAEnB,MAAMG,EAAWC,EAAAA,YACdC,GAA6C,CAC5C,MAAMC,EACJ,OAAOD,GAAc,WAChBA,EAAsCJ,EAAS,OAAO,EACvDI,EACNJ,EAAS,QAAUK,EACdP,GAAcF,EAAqBS,CAAI,EAC5CX,IAAWW,CAAI,CACjB,EACA,CAACP,EAAcJ,CAAQ,CAAA,EAGzB,MAAO,CAACK,EAAcG,CAAQ,CAChC,CC9BO,SAASI,EAAiBC,EAAoB,CACnD,OAAOA,EAAO,mBAAmBA,CAAI,GAAK,MAC5C,CAEO,SAASC,EAAiBD,E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