@clasing/ui 0.1.124 → 0.1.126

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.
Files changed (105) hide show
  1. package/dist/components/accordion.d.ts +7 -0
  2. package/dist/components/alert-dialog.d.ts +14 -0
  3. package/dist/components/alert.d.ts +15 -0
  4. package/dist/components/avatar.d.ts +6 -0
  5. package/dist/components/badge.d.ts +18 -0
  6. package/dist/components/blocks/date-picker.d.ts +30 -0
  7. package/dist/components/blocks/date-range-picker.cjs.js +1 -1
  8. package/dist/components/blocks/date-range-picker.d.ts +29 -0
  9. package/dist/components/blocks/date-range-picker.es.js +46 -38
  10. package/dist/components/blocks/interactive-card.d.ts +26 -0
  11. package/dist/components/blocks/selectable-chips.d.ts +16 -0
  12. package/dist/components/breadcrumb.d.ts +11 -0
  13. package/dist/components/button.d.ts +39 -0
  14. package/dist/components/calendar.d.ts +15 -0
  15. package/dist/components/card.d.ts +9 -0
  16. package/dist/components/chart.d.ts +43 -0
  17. package/dist/components/checkbox.cjs.js +1 -1
  18. package/dist/components/checkbox.d.ts +4 -0
  19. package/dist/components/checkbox.es.js +1 -1
  20. package/dist/components/chip.d.ts +25 -0
  21. package/dist/components/collapsible.d.ts +5 -0
  22. package/dist/components/command.d.ts +18 -0
  23. package/dist/components/context-menu.d.ts +25 -0
  24. package/dist/components/dialog.d.ts +15 -0
  25. package/dist/components/divider.d.ts +6 -0
  26. package/dist/components/drawer.d.ts +13 -0
  27. package/dist/components/dropdown-menu.d.ts +25 -0
  28. package/dist/components/hover-card.d.ts +6 -0
  29. package/dist/components/icon-component.d.ts +12 -0
  30. package/dist/components/input-otp.d.ts +11 -0
  31. package/dist/components/input.d.ts +32 -0
  32. package/dist/components/label.d.ts +4 -0
  33. package/dist/components/menubar.d.ts +26 -0
  34. package/dist/components/multi-select.cjs.js +1 -1
  35. package/dist/components/multi-select.d.ts +33 -0
  36. package/dist/components/multi-select.es.js +89 -83
  37. package/dist/components/navigation-menu.d.ts +14 -0
  38. package/dist/components/phone-input.d.ts +14 -0
  39. package/dist/components/popover.d.ts +7 -0
  40. package/dist/components/progress.d.ts +4 -0
  41. package/dist/components/resizable.d.ts +8 -0
  42. package/dist/components/scroll-area.d.ts +5 -0
  43. package/dist/components/select.d.ts +15 -0
  44. package/dist/components/sheet.d.ts +13 -0
  45. package/dist/components/skeleton.d.ts +2 -0
  46. package/dist/components/slider.d.ts +4 -0
  47. package/dist/components/sonner.d.ts +3 -0
  48. package/dist/components/switch.d.ts +11 -0
  49. package/dist/components/table.d.ts +10 -0
  50. package/dist/components/toggle-group.d.ts +7 -0
  51. package/dist/components/toggle.d.ts +9 -0
  52. package/dist/components/tooltip.d.ts +7 -0
  53. package/dist/entries/accordion.d.ts +2 -0
  54. package/dist/entries/alert-dialog.d.ts +2 -0
  55. package/dist/entries/alert.d.ts +2 -0
  56. package/dist/entries/avatar.d.ts +2 -0
  57. package/dist/entries/badge.d.ts +2 -0
  58. package/dist/entries/blocks/date-picker.d.ts +2 -0
  59. package/dist/entries/blocks/date-range-picker.d.ts +2 -0
  60. package/dist/entries/blocks/interactive-card.d.ts +2 -0
  61. package/dist/entries/blocks/selectable-chips.d.ts +2 -0
  62. package/dist/entries/breadcrumb.d.ts +2 -0
  63. package/dist/entries/button.d.ts +2 -0
  64. package/dist/entries/calendar.d.ts +2 -0
  65. package/dist/entries/card.d.ts +2 -0
  66. package/dist/entries/chart.d.ts +2 -0
  67. package/dist/entries/checkbox.d.ts +2 -0
  68. package/dist/entries/chip.d.ts +2 -0
  69. package/dist/entries/collapsible.d.ts +2 -0
  70. package/dist/entries/command.d.ts +2 -0
  71. package/dist/entries/context-menu.d.ts +2 -0
  72. package/dist/entries/dialog.d.ts +2 -0
  73. package/dist/entries/divider.d.ts +2 -0
  74. package/dist/entries/drawer.d.ts +2 -0
  75. package/dist/entries/dropdown-menu.d.ts +2 -0
  76. package/dist/entries/hooks/useOutsideClick.d.ts +2 -0
  77. package/dist/entries/hover-card.d.ts +2 -0
  78. package/dist/entries/icon-component.d.ts +2 -0
  79. package/dist/entries/input-otp.d.ts +2 -0
  80. package/dist/entries/input.d.ts +2 -0
  81. package/dist/entries/label.d.ts +2 -0
  82. package/dist/entries/menubar.d.ts +2 -0
  83. package/dist/entries/multi-select.d.ts +2 -0
  84. package/dist/entries/navigation-menu.d.ts +2 -0
  85. package/dist/entries/phone-input.d.ts +2 -0
  86. package/dist/entries/popover.d.ts +2 -0
  87. package/dist/entries/progress.d.ts +2 -0
  88. package/dist/entries/resizable.d.ts +2 -0
  89. package/dist/entries/scroll-area.d.ts +2 -0
  90. package/dist/entries/select.d.ts +2 -0
  91. package/dist/entries/sheet.d.ts +2 -0
  92. package/dist/entries/skeleton.d.ts +2 -0
  93. package/dist/entries/slider.d.ts +2 -0
  94. package/dist/entries/sonner.d.ts +2 -0
  95. package/dist/entries/switch.d.ts +2 -0
  96. package/dist/entries/table.d.ts +2 -0
  97. package/dist/entries/toggle-group.d.ts +2 -0
  98. package/dist/entries/toggle.d.ts +2 -0
  99. package/dist/entries/tooltip.d.ts +2 -0
  100. package/dist/entries/utils/types.d.ts +2 -0
  101. package/dist/hooks/useOutsideClick.d.ts +6 -0
  102. package/dist/tests/setup.d.ts +1 -0
  103. package/dist/utils/index.d.ts +5 -0
  104. package/dist/utils/types/index.d.ts +36 -0
  105. package/package.json +3 -2
@@ -0,0 +1,25 @@
1
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
2
+ import * as React from 'react';
3
+ declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
5
+ declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
+ declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
+ declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
8
+ declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
9
+ inset?: boolean;
10
+ variant?: 'default' | 'destructive';
11
+ }): import("react/jsx-runtime").JSX.Element;
12
+ declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): import("react/jsx-runtime").JSX.Element;
13
+ declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
14
+ declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): import("react/jsx-runtime").JSX.Element;
15
+ declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
16
+ inset?: boolean;
17
+ }): import("react/jsx-runtime").JSX.Element;
18
+ declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
19
+ declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
20
+ declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
21
+ declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
22
+ inset?: boolean;
23
+ }): import("react/jsx-runtime").JSX.Element;
24
+ declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
25
+ export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, };
@@ -0,0 +1,6 @@
1
+ import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
2
+ import * as React from 'react';
3
+ declare function HoverCard({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function HoverCardTrigger({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
+ declare function HoverCardContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof HoverCardPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
6
+ export { HoverCard, HoverCardContent, HoverCardTrigger };
@@ -0,0 +1,12 @@
1
+ import * as TablerIcons from '@tabler/icons-react';
2
+ import { SVGAttributes } from 'react';
3
+ export type TablerIconName = keyof typeof TablerIcons;
4
+ interface IIconComponentProps extends SVGAttributes<SVGElement> {
5
+ iconName?: TablerIconName;
6
+ iconText?: string;
7
+ size?: number;
8
+ color?: string;
9
+ onClick?: () => void;
10
+ }
11
+ export declare const IconComponent: import("react").ForwardRefExoticComponent<IIconComponentProps & import("react").RefAttributes<SVGSVGElement>>;
12
+ export {};
@@ -0,0 +1,11 @@
1
+ import { OTPInput } from 'input-otp';
2
+ import * as React from 'react';
3
+ declare function InputOTP({ className, containerClassName, ...props }: React.ComponentProps<typeof OTPInput> & {
4
+ containerClassName?: string;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ declare function InputOTPGroup({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
7
+ declare function InputOTPSlot({ index, className, ...props }: React.ComponentProps<'div'> & {
8
+ index: number;
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ declare function InputOTPSeparator({ ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
11
+ export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
@@ -0,0 +1,32 @@
1
+ import { type VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ import { TablerIconName } from './icon-component';
4
+ declare const inputStyles: (props?: ({
5
+ size?: "lg" | "md" | "sm" | null | undefined;
6
+ rounded?: "default" | "full" | null | undefined;
7
+ state?: "default" | "error" | "success" | null | undefined;
8
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
+ export interface InputProps extends VariantProps<typeof inputStyles> {
10
+ /** Label text shown above the input */
11
+ label?: string;
12
+ /** Helper text shown below the input */
13
+ helperText?: string;
14
+ /** Error message shown below the input */
15
+ error?: string;
16
+ /** Whether the input has been touched/blurred */
17
+ touched?: boolean;
18
+ /** Icon to display on the left side of the input */
19
+ iconLeft?: TablerIconName | {
20
+ name: TablerIconName;
21
+ stroke?: string;
22
+ };
23
+ /** Icon to display on the right side of the input */
24
+ iconRight?: TablerIconName | {
25
+ name: TablerIconName;
26
+ stroke?: string;
27
+ };
28
+ /** Container className for the entire input component including label and helper text */
29
+ containerClassName?: string;
30
+ }
31
+ declare function Input({ className, label, helperText, error, touched, iconLeft, iconRight, type, size, rounded, state, containerClassName, ...props }: Omit<React.ComponentProps<'input'>, 'size'> & InputProps): import("react/jsx-runtime").JSX.Element;
32
+ export { Input, inputStyles };
@@ -0,0 +1,4 @@
1
+ import * as LabelPrimitive from '@radix-ui/react-label';
2
+ import * as React from 'react';
3
+ declare function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ export { Label };
@@ -0,0 +1,26 @@
1
+ import * as MenubarPrimitive from '@radix-ui/react-menubar';
2
+ import * as React from 'react';
3
+ declare function Menubar({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function MenubarMenu({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Menu>): import("react/jsx-runtime").JSX.Element;
5
+ declare function MenubarGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
6
+ declare function MenubarPortal({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
7
+ declare function MenubarRadioGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
8
+ declare function MenubarTrigger({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
9
+ declare function MenubarContent({ className, align, alignOffset, sideOffset, ...props }: React.ComponentProps<typeof MenubarPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
10
+ declare function MenubarItem({ className, inset, variant, ...props }: React.ComponentProps<typeof MenubarPrimitive.Item> & {
11
+ inset?: boolean;
12
+ variant?: 'default' | 'destructive';
13
+ }): import("react/jsx-runtime").JSX.Element;
14
+ declare function MenubarCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof MenubarPrimitive.CheckboxItem>): import("react/jsx-runtime").JSX.Element;
15
+ declare function MenubarRadioItem({ className, children, ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioItem>): import("react/jsx-runtime").JSX.Element;
16
+ declare function MenubarLabel({ className, inset, ...props }: React.ComponentProps<typeof MenubarPrimitive.Label> & {
17
+ inset?: boolean;
18
+ }): import("react/jsx-runtime").JSX.Element;
19
+ declare function MenubarSeparator({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
20
+ declare function MenubarShortcut({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
21
+ declare function MenubarSub({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
22
+ declare function MenubarSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof MenubarPrimitive.SubTrigger> & {
23
+ inset?: boolean;
24
+ }): import("react/jsx-runtime").JSX.Element;
25
+ declare function MenubarSubContent({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
26
+ export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../jsx-runtime-DUiatUiq.cjs"),M=require("../badge-Czof3oqL.cjs"),x=require("../command-D9M8dk1M.cjs"),y=require("../popover-B8wp2cHF.cjs"),R=require("../index-DoxiiusW.cjs"),r=require("react"),v=require("../icon-component-LY_vGYHZ.cjs"),I=r.createContext(null);function k({children:e,values:n,defaultValues:i,onValuesChange:u}){const[g,m]=r.useState(!1),[h,p]=r.useState(new Set(n??i)),[E,f]=r.useState(new Map);function w(c){const s=l=>{const a=new Set(l);return a.has(c)?a.delete(c):a.add(c),a};p(s),u?.([...s(h)])}const j=r.useCallback((c,s)=>{f(l=>l.get(c)===s?l:new Map(l).set(c,s))},[]);return t.jsxRuntimeExports.jsx(I,{value:{open:g,setOpen:m,selectedValues:n?new Set(n):h,toggleValue:w,items:E,onItemAdded:j},children:t.jsxRuntimeExports.jsx(y.Popover,{open:g,onOpenChange:m,children:e})})}function V({className:e,children:n,...i}){const{open:u}=b();return t.jsxRuntimeExports.jsx(y.PopoverTrigger,{asChild:!0,children:t.jsxRuntimeExports.jsxs("button",{...i,role:i.role??"combobox","aria-expanded":i["aria-expanded"]??u,className:R.cn("border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='text-'])]:text-muted-foreground flex h-auto min-h-9 w-fit items-center justify-between gap-2 overflow-hidden rounded-md border bg-transparent px-3 py-1.5 text-sm whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),children:[n,t.jsxRuntimeExports.jsx(v.IconComponent,{iconName:"IconSelector",className:"size-4 shrink-0 opacity-50"})]})})}function z({placeholder:e,clickToRemove:n=!0,className:i,overflowBehavior:u="wrap-when-open",...g}){const{selectedValues:m,toggleValue:h,items:p,open:E}=b(),[f,w]=r.useState(0),j=r.useRef(null),c=r.useRef(null),s=r.useRef(new Set),l=u==="wrap"||u==="wrap-when-open"&&E;r.useEffect(()=>{l&&s.current.forEach(o=>o.style.removeProperty("display"))},[l]);const a=r.useCallback(()=>{if(j.current==null)return;const o=j.current,d=c.current;d!=null&&(d.style.display="none"),s.current.forEach(S=>S.style.removeProperty("display"));let C=0;for(let S=s.current.size-1;S>=0;S--){const N=[...s.current][S];if(o.scrollWidth<=o.clientWidth)break;C=s.current.size-S,N.style.display="none",d?.style.removeProperty("display")}w(C)},[]);return r.useEffect(()=>{if(j.current==null)return;const o=new ResizeObserver(a);return o.observe(j.current),()=>o.disconnect()},[a]),r.useLayoutEffect(()=>{a()},[m,a]),m.size===0&&e?t.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground font-normal",children:e}):t.jsxRuntimeExports.jsxs("div",{...g,ref:j,className:R.cn("flex w-full gap-1.5 overflow-hidden",l&&"h-full flex-wrap",i),children:[[...m].filter(o=>p.has(o)).map(o=>t.jsxRuntimeExports.jsxs(M.Badge,{ref:d=>{if(d!=null)return s.current.add(d),()=>{s.current.delete(d)}},variant:"outline",className:"group flex items-center gap-1",onClick:n?d=>{d.stopPropagation(),h(o)}:void 0,children:[p.get(o),n&&t.jsxRuntimeExports.jsx(v.IconComponent,{iconName:"IconX",className:"text-muted-foreground group-hover:text-destructive size-2"})]},o)),t.jsxRuntimeExports.jsxs(M.Badge,{style:{display:f>0&&!l?"block":"none"},variant:"outline",ref:c,children:["+",f]})]})}function P({search:e=!0,children:n,...i}){const u=typeof e=="object"?!0:e;return t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx("div",{style:{display:"none"},children:t.jsxRuntimeExports.jsx(x.Command,{children:t.jsxRuntimeExports.jsx(x.CommandList,{children:n})})}),t.jsxRuntimeExports.jsx(y.PopoverContent,{className:"min-w-[var(--radix-popover-trigger-width)] p-0",children:t.jsxRuntimeExports.jsxs(x.Command,{...i,children:[u?t.jsxRuntimeExports.jsx(x.CommandInput,{placeholder:typeof e=="object"?e.placeholder:void 0}):t.jsxRuntimeExports.jsx("button",{autoFocus:!0,"aria-hidden":"true",className:"sr-only"}),t.jsxRuntimeExports.jsxs(x.CommandList,{children:[u&&t.jsxRuntimeExports.jsx(x.CommandEmpty,{children:typeof e=="object"?e.emptyMessage:void 0}),n]})]})})]})}function q({value:e,children:n,badgeLabel:i,onSelect:u,...g}){const{toggleValue:m,selectedValues:h,onItemAdded:p}=b(),E=h.has(e);return r.useEffect(()=>{p(e,i??n)},[e,n,p,i]),t.jsxRuntimeExports.jsxs(x.CommandItem,{...g,value:e,onSelect:f=>{m(f),u?.(f)},children:[t.jsxRuntimeExports.jsx(v.IconComponent,{iconName:"IconCheck",className:R.cn("mr-2 size-4",E?"opacity-100":"opacity-0")}),n]})}function O(e){return t.jsxRuntimeExports.jsx(x.CommandGroup,{...e})}function A(e){return t.jsxRuntimeExports.jsx(x.CommandSeparator,{...e})}function b(){const e=r.useContext(I);if(e==null)throw new Error("useMultiSelectContext must be used within a MultiSelectContext");return e}exports.MultiSelect=k;exports.MultiSelectContent=P;exports.MultiSelectGroup=O;exports.MultiSelectItem=q;exports.MultiSelectSeparator=A;exports.MultiSelectTrigger=V;exports.MultiSelectValue=z;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../jsx-runtime-DUiatUiq.cjs"),M=require("../badge-Czof3oqL.cjs"),x=require("../command-D9M8dk1M.cjs"),b=require("../popover-B8wp2cHF.cjs"),w=require("../index-DoxiiusW.cjs"),s=require("react"),R=require("../icon-component-LY_vGYHZ.cjs"),I=s.createContext(null);function k({children:e,values:n,defaultValues:r,onValuesChange:o}){const[m,p]=s.useState(!1),[h,f]=s.useState(new Set(n??r)),[y,j]=s.useState(new Map);function E(c){const i=l=>{const a=new Set(l);return a.has(c)?a.delete(c):a.add(c),a};f(i),o?.([...i(h)])}const g=s.useCallback((c,i)=>{j(l=>l.get(c)===i?l:new Map(l).set(c,i))},[]);return t.jsxRuntimeExports.jsx(I,{value:{open:m,setOpen:p,selectedValues:n?new Set(n):h,toggleValue:E,items:y,onItemAdded:g},children:t.jsxRuntimeExports.jsx(b.Popover,{open:m,onOpenChange:p,children:e})})}function V({className:e,children:n,size:r="md",...o}){const{open:m}=v();return t.jsxRuntimeExports.jsx(b.PopoverTrigger,{asChild:!0,children:t.jsxRuntimeExports.jsxs("button",{...o,role:o.role??"combobox","aria-expanded":o["aria-expanded"]??m,"data-size":r,className:w.cn("border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='text-'])]:text-muted-foreground flex w-fit items-center justify-between gap-2 overflow-hidden rounded-md border bg-transparent whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",r==="xs"&&'text-label-sm h-7 px-2 py-1 [&_svg:not([class*="size-"])]:size-3.5',r==="sm"&&"text-label-md h-8 px-2 py-1",r==="md"&&"text-label-lg h-12 px-3 py-1",r==="lg"&&"text-label-xl h-16 px-4 py-2",e),children:[n,t.jsxRuntimeExports.jsx(R.IconComponent,{iconName:"IconSelector",className:"size-4 shrink-0 opacity-50"})]})})}function z({placeholder:e,clickToRemove:n=!0,className:r,overflowBehavior:o="wrap-when-open",...m}){const{selectedValues:p,toggleValue:h,items:f,open:y}=v(),[j,E]=s.useState(0),g=s.useRef(null),c=s.useRef(null),i=s.useRef(new Set),l=o==="wrap"||o==="wrap-when-open"&&y;s.useEffect(()=>{l&&i.current.forEach(u=>u.style.removeProperty("display"))},[l]);const a=s.useCallback(()=>{if(g.current==null)return;const u=g.current,d=c.current;d!=null&&(d.style.display="none"),i.current.forEach(S=>S.style.removeProperty("display"));let C=0;for(let S=i.current.size-1;S>=0;S--){const N=[...i.current][S];if(u.scrollWidth<=u.clientWidth)break;C=i.current.size-S,N.style.display="none",d?.style.removeProperty("display")}E(C)},[]);return s.useEffect(()=>{if(g.current==null)return;const u=new ResizeObserver(a);return u.observe(g.current),()=>u.disconnect()},[a]),s.useLayoutEffect(()=>{a()},[p,a]),p.size===0&&e?t.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground font-normal",children:e}):t.jsxRuntimeExports.jsxs("div",{...m,ref:g,className:w.cn("flex w-full gap-1.5 overflow-hidden min-h-[1.75rem]",l&&"flex-wrap",r),children:[[...p].filter(u=>f.has(u)).map(u=>t.jsxRuntimeExports.jsxs(M.Badge,{ref:d=>{if(d!=null)return i.current.add(d),()=>{i.current.delete(d)}},variant:"outline",className:"group flex items-center gap-1",onClick:n?d=>{d.stopPropagation(),h(u)}:void 0,children:[f.get(u),n&&t.jsxRuntimeExports.jsx(R.IconComponent,{iconName:"IconX",className:"text-muted-foreground group-hover:text-destructive size-2"})]},u)),t.jsxRuntimeExports.jsxs(M.Badge,{style:{display:j>0&&!l?"block":"none"},variant:"outline",ref:c,children:["+",j]})]})}function P({search:e=!0,children:n,...r}){const o=typeof e=="object"?!0:e;return t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx("div",{style:{display:"none"},children:t.jsxRuntimeExports.jsx(x.Command,{children:t.jsxRuntimeExports.jsx(x.CommandList,{children:n})})}),t.jsxRuntimeExports.jsx(b.PopoverContent,{className:"min-w-[var(--radix-popover-trigger-width)] p-0",children:t.jsxRuntimeExports.jsxs(x.Command,{...r,children:[o?t.jsxRuntimeExports.jsx(x.CommandInput,{placeholder:typeof e=="object"?e.placeholder:void 0}):t.jsxRuntimeExports.jsx("button",{autoFocus:!0,"aria-hidden":"true",className:"sr-only"}),t.jsxRuntimeExports.jsxs(x.CommandList,{children:[o&&t.jsxRuntimeExports.jsx(x.CommandEmpty,{children:typeof e=="object"?e.emptyMessage:void 0}),n]})]})})]})}function q({value:e,children:n,badgeLabel:r,onSelect:o,...m}){const{toggleValue:p,selectedValues:h,onItemAdded:f}=v(),y=h.has(e);return s.useEffect(()=>{f(e,r??n)},[e,n,f,r]),t.jsxRuntimeExports.jsxs(x.CommandItem,{...m,value:e,onSelect:j=>{p(j),o?.(j)},children:[t.jsxRuntimeExports.jsx(R.IconComponent,{iconName:"IconCheck",className:w.cn("mr-2 size-4",y?"opacity-100":"opacity-0")}),n]})}function O(e){return t.jsxRuntimeExports.jsx(x.CommandGroup,{...e})}function _(e){return t.jsxRuntimeExports.jsx(x.CommandSeparator,{...e})}function v(){const e=s.useContext(I);if(e==null)throw new Error("useMultiSelectContext must be used within a MultiSelectContext");return e}exports.MultiSelect=k;exports.MultiSelectContent=P;exports.MultiSelectGroup=O;exports.MultiSelectItem=q;exports.MultiSelectSeparator=_;exports.MultiSelectTrigger=V;exports.MultiSelectValue=z;
@@ -0,0 +1,33 @@
1
+ import { Button } from '@/components/button';
2
+ import { Command, CommandGroup, CommandItem, CommandSeparator } from '@/components/command';
3
+ import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
4
+ declare function MultiSelect({ children, values, defaultValues, onValuesChange, }: {
5
+ children: ReactNode;
6
+ values?: string[];
7
+ defaultValues?: string[];
8
+ onValuesChange?: (values: string[]) => void;
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ declare function MultiSelectTrigger({ className, children, size, ...props }: {
11
+ className?: string;
12
+ children?: ReactNode;
13
+ size?: 'xs' | 'sm' | 'md' | 'lg';
14
+ } & ComponentPropsWithoutRef<typeof Button>): import("react/jsx-runtime").JSX.Element;
15
+ declare function MultiSelectValue({ placeholder, clickToRemove, className, overflowBehavior, ...props }: {
16
+ placeholder?: string;
17
+ clickToRemove?: boolean;
18
+ overflowBehavior?: 'wrap' | 'wrap-when-open' | 'cutoff';
19
+ } & Omit<ComponentPropsWithoutRef<'div'>, 'children'>): import("react/jsx-runtime").JSX.Element;
20
+ declare function MultiSelectContent({ search, children, ...props }: {
21
+ search?: boolean | {
22
+ placeholder?: string;
23
+ emptyMessage?: string;
24
+ };
25
+ children: ReactNode;
26
+ } & Omit<ComponentPropsWithoutRef<typeof Command>, 'children'>): import("react/jsx-runtime").JSX.Element;
27
+ declare function MultiSelectItem({ value, children, badgeLabel, onSelect, ...props }: {
28
+ badgeLabel?: ReactNode;
29
+ value: string;
30
+ } & Omit<ComponentPropsWithoutRef<typeof CommandItem>, 'value'>): import("react/jsx-runtime").JSX.Element;
31
+ declare function MultiSelectGroup(props: ComponentPropsWithoutRef<typeof CommandGroup>): import("react/jsx-runtime").JSX.Element;
32
+ declare function MultiSelectSeparator(props: ComponentPropsWithoutRef<typeof CommandSeparator>): import("react/jsx-runtime").JSX.Element;
33
+ export { MultiSelect, MultiSelectContent, MultiSelectGroup, MultiSelectItem, MultiSelectSeparator, MultiSelectTrigger, MultiSelectValue, };
@@ -1,59 +1,65 @@
1
1
  import { j as t } from "../jsx-runtime-C5mzlN2N.js";
2
2
  import { B as I } from "../badge-BnerQ2lF.js";
3
- import { C as k, f as z, d as O, b as R, c as A, e as _, g as W } from "../command-BGCSJ9vX.js";
3
+ import { C as k, f as E, d as O, b as R, c as _, e as A, g as W } from "../command-BGCSJ9vX.js";
4
4
  import { P as F, b as G, c as B } from "../popover-BoDRCUh2.js";
5
5
  import { c as S } from "../index-CRiPKpXj.js";
6
- import { createContext as L, useState as j, useCallback as E, useEffect as b, useRef as v, useLayoutEffect as T, useContext as X } from "react";
6
+ import { createContext as L, useState as y, useCallback as V, useEffect as v, useRef as j, useLayoutEffect as T, useContext as X } from "react";
7
7
  import { I as C } from "../icon-component-BZ-4FDV6.js";
8
- const V = L(null);
8
+ const z = L(null);
9
9
  function Y({
10
10
  children: e,
11
11
  values: n,
12
- defaultValues: s,
13
- onValuesChange: i
12
+ defaultValues: r,
13
+ onValuesChange: o
14
14
  }) {
15
- const [x, d] = j(!1), [g, m] = j(
16
- new Set(n ?? s)
17
- ), [w, p] = j(/* @__PURE__ */ new Map());
18
- function y(c) {
19
- const r = (l) => {
20
- const a = new Set(l);
21
- return a.has(c) ? a.delete(c) : a.add(c), a;
15
+ const [d, m] = y(!1), [g, p] = y(
16
+ new Set(n ?? r)
17
+ ), [w, f] = y(/* @__PURE__ */ new Map());
18
+ function b(a) {
19
+ const s = (l) => {
20
+ const c = new Set(l);
21
+ return c.has(a) ? c.delete(a) : c.add(a), c;
22
22
  };
23
- m(r), i?.([...r(g)]);
23
+ p(s), o?.([...s(g)]);
24
24
  }
25
- const f = E((c, r) => {
26
- p((l) => l.get(c) === r ? l : new Map(l).set(c, r));
25
+ const x = V((a, s) => {
26
+ f((l) => l.get(a) === s ? l : new Map(l).set(a, s));
27
27
  }, []);
28
28
  return /* @__PURE__ */ t.jsx(
29
- V,
29
+ z,
30
30
  {
31
31
  value: {
32
- open: x,
33
- setOpen: d,
32
+ open: d,
33
+ setOpen: m,
34
34
  selectedValues: n ? new Set(n) : g,
35
- toggleValue: y,
35
+ toggleValue: b,
36
36
  items: w,
37
- onItemAdded: f
37
+ onItemAdded: x
38
38
  },
39
- children: /* @__PURE__ */ t.jsx(F, { open: x, onOpenChange: d, children: e })
39
+ children: /* @__PURE__ */ t.jsx(F, { open: d, onOpenChange: m, children: e })
40
40
  }
41
41
  );
42
42
  }
43
43
  function Z({
44
44
  className: e,
45
45
  children: n,
46
- ...s
46
+ size: r = "md",
47
+ ...o
47
48
  }) {
48
- const { open: i } = M();
49
+ const { open: d } = M();
49
50
  return /* @__PURE__ */ t.jsx(B, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
50
51
  "button",
51
52
  {
52
- ...s,
53
- role: s.role ?? "combobox",
54
- "aria-expanded": s["aria-expanded"] ?? i,
53
+ ...o,
54
+ role: o.role ?? "combobox",
55
+ "aria-expanded": o["aria-expanded"] ?? d,
56
+ "data-size": r,
55
57
  className: S(
56
- "border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='text-'])]:text-muted-foreground flex h-auto min-h-9 w-fit items-center justify-between gap-2 overflow-hidden rounded-md border bg-transparent px-3 py-1.5 text-sm whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
58
+ "border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='text-'])]:text-muted-foreground flex w-fit items-center justify-between gap-2 overflow-hidden rounded-md border bg-transparent whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
59
+ r === "xs" && 'text-label-sm h-7 px-2 py-1 [&_svg:not([class*="size-"])]:size-3.5',
60
+ r === "sm" && "text-label-md h-8 px-2 py-1",
61
+ r === "md" && "text-label-lg h-12 px-3 py-1",
62
+ r === "lg" && "text-label-xl h-16 px-4 py-2",
57
63
  e
58
64
  ),
59
65
  children: [
@@ -72,60 +78,60 @@ function Z({
72
78
  function $({
73
79
  placeholder: e,
74
80
  clickToRemove: n = !0,
75
- className: s,
76
- overflowBehavior: i = "wrap-when-open",
77
- ...x
81
+ className: r,
82
+ overflowBehavior: o = "wrap-when-open",
83
+ ...d
78
84
  }) {
79
- const { selectedValues: d, toggleValue: g, items: m, open: w } = M(), [p, y] = j(0), f = v(null), c = v(null), r = v(/* @__PURE__ */ new Set()), l = i === "wrap" || i === "wrap-when-open" && w;
80
- b(() => {
81
- l && r.current.forEach((o) => o.style.removeProperty("display"));
85
+ const { selectedValues: m, toggleValue: g, items: p, open: w } = M(), [f, b] = y(0), x = j(null), a = j(null), s = j(/* @__PURE__ */ new Set()), l = o === "wrap" || o === "wrap-when-open" && w;
86
+ v(() => {
87
+ l && s.current.forEach((i) => i.style.removeProperty("display"));
82
88
  }, [l]);
83
- const a = E(() => {
84
- if (f.current == null) return;
85
- const o = f.current, u = c.current;
86
- u != null && (u.style.display = "none"), r.current.forEach((h) => h.style.removeProperty("display"));
89
+ const c = V(() => {
90
+ if (x.current == null) return;
91
+ const i = x.current, u = a.current;
92
+ u != null && (u.style.display = "none"), s.current.forEach((h) => h.style.removeProperty("display"));
87
93
  let N = 0;
88
- for (let h = r.current.size - 1; h >= 0; h--) {
89
- const P = [...r.current][h];
90
- if (o.scrollWidth <= o.clientWidth)
94
+ for (let h = s.current.size - 1; h >= 0; h--) {
95
+ const P = [...s.current][h];
96
+ if (i.scrollWidth <= i.clientWidth)
91
97
  break;
92
- N = r.current.size - h, P.style.display = "none", u?.style.removeProperty("display");
98
+ N = s.current.size - h, P.style.display = "none", u?.style.removeProperty("display");
93
99
  }
94
- y(N);
100
+ b(N);
95
101
  }, []);
96
- return b(() => {
97
- if (f.current == null) return;
98
- const o = new ResizeObserver(a);
99
- return o.observe(f.current), () => o.disconnect();
100
- }, [a]), T(() => {
101
- a();
102
- }, [d, a]), d.size === 0 && e ? /* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground font-normal", children: e }) : /* @__PURE__ */ t.jsxs(
102
+ return v(() => {
103
+ if (x.current == null) return;
104
+ const i = new ResizeObserver(c);
105
+ return i.observe(x.current), () => i.disconnect();
106
+ }, [c]), T(() => {
107
+ c();
108
+ }, [m, c]), m.size === 0 && e ? /* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground font-normal", children: e }) : /* @__PURE__ */ t.jsxs(
103
109
  "div",
104
110
  {
105
- ...x,
106
- ref: f,
111
+ ...d,
112
+ ref: x,
107
113
  className: S(
108
- "flex w-full gap-1.5 overflow-hidden",
109
- l && "h-full flex-wrap",
110
- s
114
+ "flex w-full gap-1.5 overflow-hidden min-h-[1.75rem]",
115
+ l && "flex-wrap",
116
+ r
111
117
  ),
112
118
  children: [
113
- [...d].filter((o) => m.has(o)).map((o) => /* @__PURE__ */ t.jsxs(
119
+ [...m].filter((i) => p.has(i)).map((i) => /* @__PURE__ */ t.jsxs(
114
120
  I,
115
121
  {
116
122
  ref: (u) => {
117
123
  if (u != null)
118
- return r.current.add(u), () => {
119
- r.current.delete(u);
124
+ return s.current.add(u), () => {
125
+ s.current.delete(u);
120
126
  };
121
127
  },
122
128
  variant: "outline",
123
129
  className: "group flex items-center gap-1",
124
130
  onClick: n ? (u) => {
125
- u.stopPropagation(), g(o);
131
+ u.stopPropagation(), g(i);
126
132
  } : void 0,
127
133
  children: [
128
- m.get(o),
134
+ p.get(i),
129
135
  n && /* @__PURE__ */ t.jsx(
130
136
  C,
131
137
  {
@@ -135,19 +141,19 @@ function $({
135
141
  )
136
142
  ]
137
143
  },
138
- o
144
+ i
139
145
  )),
140
146
  /* @__PURE__ */ t.jsxs(
141
147
  I,
142
148
  {
143
149
  style: {
144
- display: p > 0 && !l ? "block" : "none"
150
+ display: f > 0 && !l ? "block" : "none"
145
151
  },
146
152
  variant: "outline",
147
- ref: c,
153
+ ref: a,
148
154
  children: [
149
155
  "+",
150
- p
156
+ f
151
157
  ]
152
158
  }
153
159
  )
@@ -158,20 +164,20 @@ function $({
158
164
  function ee({
159
165
  search: e = !0,
160
166
  children: n,
161
- ...s
167
+ ...r
162
168
  }) {
163
- const i = typeof e == "object" ? !0 : e;
169
+ const o = typeof e == "object" ? !0 : e;
164
170
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
165
- /* @__PURE__ */ t.jsx("div", { style: { display: "none" }, children: /* @__PURE__ */ t.jsx(k, { children: /* @__PURE__ */ t.jsx(z, { children: n }) }) }),
166
- /* @__PURE__ */ t.jsx(G, { className: "min-w-[var(--radix-popover-trigger-width)] p-0", children: /* @__PURE__ */ t.jsxs(k, { ...s, children: [
167
- i ? /* @__PURE__ */ t.jsx(
171
+ /* @__PURE__ */ t.jsx("div", { style: { display: "none" }, children: /* @__PURE__ */ t.jsx(k, { children: /* @__PURE__ */ t.jsx(E, { children: n }) }) }),
172
+ /* @__PURE__ */ t.jsx(G, { className: "min-w-[var(--radix-popover-trigger-width)] p-0", children: /* @__PURE__ */ t.jsxs(k, { ...r, children: [
173
+ o ? /* @__PURE__ */ t.jsx(
168
174
  O,
169
175
  {
170
176
  placeholder: typeof e == "object" ? e.placeholder : void 0
171
177
  }
172
178
  ) : /* @__PURE__ */ t.jsx("button", { autoFocus: !0, "aria-hidden": "true", className: "sr-only" }),
173
- /* @__PURE__ */ t.jsxs(z, { children: [
174
- i && /* @__PURE__ */ t.jsx(R, { children: typeof e == "object" ? e.emptyMessage : void 0 }),
179
+ /* @__PURE__ */ t.jsxs(E, { children: [
180
+ o && /* @__PURE__ */ t.jsx(R, { children: typeof e == "object" ? e.emptyMessage : void 0 }),
175
181
  n
176
182
  ] })
177
183
  ] }) })
@@ -180,20 +186,20 @@ function ee({
180
186
  function te({
181
187
  value: e,
182
188
  children: n,
183
- badgeLabel: s,
184
- onSelect: i,
185
- ...x
189
+ badgeLabel: r,
190
+ onSelect: o,
191
+ ...d
186
192
  }) {
187
- const { toggleValue: d, selectedValues: g, onItemAdded: m } = M(), w = g.has(e);
188
- return b(() => {
189
- m(e, s ?? n);
190
- }, [e, n, m, s]), /* @__PURE__ */ t.jsxs(
191
- _,
193
+ const { toggleValue: m, selectedValues: g, onItemAdded: p } = M(), w = g.has(e);
194
+ return v(() => {
195
+ p(e, r ?? n);
196
+ }, [e, n, p, r]), /* @__PURE__ */ t.jsxs(
197
+ A,
192
198
  {
193
- ...x,
199
+ ...d,
194
200
  value: e,
195
- onSelect: (p) => {
196
- d(p), i?.(p);
201
+ onSelect: (f) => {
202
+ m(f), o?.(f);
197
203
  },
198
204
  children: [
199
205
  /* @__PURE__ */ t.jsx(
@@ -209,13 +215,13 @@ function te({
209
215
  );
210
216
  }
211
217
  function ne(e) {
212
- return /* @__PURE__ */ t.jsx(A, { ...e });
218
+ return /* @__PURE__ */ t.jsx(_, { ...e });
213
219
  }
214
220
  function re(e) {
215
221
  return /* @__PURE__ */ t.jsx(W, { ...e });
216
222
  }
217
223
  function M() {
218
- const e = X(V);
224
+ const e = X(z);
219
225
  if (e == null)
220
226
  throw new Error(
221
227
  "useMultiSelectContext must be used within a MultiSelectContext"
@@ -0,0 +1,14 @@
1
+ import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
2
+ import * as React from 'react';
3
+ declare function NavigationMenu({ className, children, viewport, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Root> & {
4
+ viewport?: boolean;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ declare function NavigationMenuList({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.List>): import("react/jsx-runtime").JSX.Element;
7
+ declare function NavigationMenuItem({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
8
+ declare const navigationMenuTriggerStyle: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
9
+ declare function NavigationMenuTrigger({ className, children, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
10
+ declare function NavigationMenuContent({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
11
+ declare function NavigationMenuViewport({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Viewport>): import("react/jsx-runtime").JSX.Element;
12
+ declare function NavigationMenuLink({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Link>): import("react/jsx-runtime").JSX.Element;
13
+ declare function NavigationMenuIndicator({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Indicator>): import("react/jsx-runtime").JSX.Element;
14
+ export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, navigationMenuTriggerStyle, NavigationMenuViewport, };
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ import * as RPNInput from 'react-phone-number-input';
3
+ type PhoneInputProps = Omit<React.ComponentProps<'input'>, 'onChange' | 'value' | 'ref'> & Omit<RPNInput.Props<typeof RPNInput.default>, 'onChange'> & {
4
+ onChange?: (value: RPNInput.Value) => void;
5
+ variant?: 'sm' | 'md' | 'lg';
6
+ rounded?: 'default' | 'full';
7
+ label?: string;
8
+ helperText?: string;
9
+ locale?: 'en' | 'es' | 'fr';
10
+ error?: string;
11
+ touched?: boolean;
12
+ };
13
+ declare const PhoneInput: React.ForwardRefExoticComponent<PhoneInputProps>;
14
+ export { PhoneInput };
@@ -0,0 +1,7 @@
1
+ import * as PopoverPrimitive from '@radix-ui/react-popover';
2
+ import * as React from 'react';
3
+ declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
+ declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
6
+ declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): import("react/jsx-runtime").JSX.Element;
7
+ export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
@@ -0,0 +1,4 @@
1
+ import * as ProgressPrimitive from '@radix-ui/react-progress';
2
+ import * as React from 'react';
3
+ declare function Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ export { Progress };
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import * as ResizablePrimitive from 'react-resizable-panels';
3
+ declare function ResizablePanelGroup({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>): import("react/jsx-runtime").JSX.Element;
4
+ declare function ResizablePanel({ ...props }: React.ComponentProps<typeof ResizablePrimitive.Panel>): import("react/jsx-runtime").JSX.Element;
5
+ declare function ResizableHandle({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
6
+ withHandle?: boolean;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
@@ -0,0 +1,5 @@
1
+ import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
2
+ import * as React from 'react';
3
+ declare function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): import("react/jsx-runtime").JSX.Element;
5
+ export { ScrollArea, ScrollBar };
@@ -0,0 +1,15 @@
1
+ import * as SelectPrimitive from '@radix-ui/react-select';
2
+ import * as React from 'react';
3
+ declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
5
+ declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): import("react/jsx-runtime").JSX.Element;
6
+ declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
7
+ size?: 'xs' | 'sm' | 'md' | 'lg';
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ declare function SelectContent({ className, children, position, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
10
+ declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
11
+ declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
12
+ declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
13
+ declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): import("react/jsx-runtime").JSX.Element;
14
+ declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): import("react/jsx-runtime").JSX.Element;
15
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
@@ -0,0 +1,13 @@
1
+ import * as SheetPrimitive from '@radix-ui/react-dialog';
2
+ import * as React from 'react';
3
+ declare function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function SheetTrigger({ ...props }: React.ComponentProps<typeof SheetPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
+ declare function SheetClose({ ...props }: React.ComponentProps<typeof SheetPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
6
+ declare function SheetContent({ className, children, side, ...props }: React.ComponentProps<typeof SheetPrimitive.Content> & {
7
+ side?: 'top' | 'right' | 'bottom' | 'left';
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ declare function SheetHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
10
+ declare function SheetFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
11
+ declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
12
+ declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
13
+ export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, };
@@ -0,0 +1,2 @@
1
+ declare function Skeleton({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
2
+ export { Skeleton };
@@ -0,0 +1,4 @@
1
+ import * as SliderPrimitive from '@radix-ui/react-slider';
2
+ import * as React from 'react';
3
+ declare function Slider({ className, defaultValue, value, min, max, ...props }: React.ComponentProps<typeof SliderPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ export { Slider };
@@ -0,0 +1,3 @@
1
+ import { ToasterProps } from 'sonner';
2
+ declare const Toaster: ({ ...props }: ToasterProps) => import("react/jsx-runtime").JSX.Element;
3
+ export { Toaster };
@@ -0,0 +1,11 @@
1
+ import { type VariantProps } from 'class-variance-authority';
2
+ export interface ISwitchProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof switchRootStyles> {
3
+ defaultChecked?: boolean;
4
+ checked?: boolean;
5
+ onCheckedChange?: (checked: boolean) => void;
6
+ }
7
+ declare const switchRootStyles: (props?: ({
8
+ switchSize?: "md" | "sm" | null | undefined;
9
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
10
+ declare const SwitchComponent: import("react").ForwardRefExoticComponent<ISwitchProps & import("react").RefAttributes<HTMLButtonElement>>;
11
+ export { SwitchComponent as Switch };