buildgrid-ui 1.14.7 → 1.14.8

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 (155) hide show
  1. package/dist/assets/en-US-BUOWLxFp.js.map +1 -1
  2. package/dist/assets/jsx-runtime-D_zvdyIk.js.map +1 -1
  3. package/dist/assets/magic-string.es-CTSuTltI.js +11 -0
  4. package/dist/assets/magic-string.es-CTSuTltI.js.map +1 -0
  5. package/dist/assets/vi.bdSIJ99Y-C6e_ZQS2.js +482 -0
  6. package/dist/assets/vi.bdSIJ99Y-C6e_ZQS2.js.map +1 -0
  7. package/dist/blocks/bento-grid/bento-grid.js.map +1 -1
  8. package/dist/blocks/bento-grid/bento-grid.stories.js.map +1 -1
  9. package/dist/blocks/data-table/components/active-filters.d.ts +1 -1
  10. package/dist/blocks/data-table/components/active-filters.js.map +1 -1
  11. package/dist/blocks/data-table/components/column-visibility-dropdown.d.ts +1 -1
  12. package/dist/blocks/data-table/components/column-visibility-dropdown.js.map +1 -1
  13. package/dist/blocks/data-table/components/filter-dropdown.d.ts +1 -1
  14. package/dist/blocks/data-table/components/filter-dropdown.js.map +1 -1
  15. package/dist/blocks/data-table/components/search-input.js.map +1 -1
  16. package/dist/blocks/data-table/components/selection-info.js.map +1 -1
  17. package/dist/blocks/data-table/components/table-header.d.ts +1 -1
  18. package/dist/blocks/data-table/components/table-header.js.map +1 -1
  19. package/dist/blocks/data-table/components/table-row.d.ts +1 -1
  20. package/dist/blocks/data-table/components/table-row.js.map +1 -1
  21. package/dist/blocks/data-table/components/table-skeleton.js.map +1 -1
  22. package/dist/blocks/data-table/data-table.d.ts +2 -2
  23. package/dist/blocks/data-table/data-table.stories.js.map +1 -1
  24. package/dist/blocks/data-table/types/data-table.d.ts +1 -1
  25. package/dist/blocks/data-table/utils/export.d.ts +1 -1
  26. package/dist/blocks/data-table/utils/export.js.map +1 -1
  27. package/dist/blocks/empty-message/empty-message.js.map +1 -1
  28. package/dist/blocks/empty-message/empty-message.stories.js.map +1 -1
  29. package/dist/blocks/help-carousel/help-carousel.js.map +1 -1
  30. package/dist/blocks/help-carousel/help-carousel.stories.js.map +1 -1
  31. package/dist/blocks/html-text-editor/html-text-area.d.ts +1 -0
  32. package/dist/blocks/html-text-editor/html-text-area.js.map +1 -1
  33. package/dist/blocks/html-text-editor/html-text-area.stories.js.map +1 -1
  34. package/dist/blocks/html-text-editor/html-text-editor.d.ts +2 -1
  35. package/dist/blocks/html-text-editor/html-text-editor.js.map +1 -1
  36. package/dist/blocks/html-text-editor/html-text-editor.stories.js.map +1 -1
  37. package/dist/blocks/html-text-editor/options-bar.js.map +1 -1
  38. package/dist/blocks/lazy-image-gallery/lazy-image-gallery.d.ts +1 -1
  39. package/dist/blocks/lazy-image-gallery/lazy-image-gallery.js.map +1 -1
  40. package/dist/blocks/lazy-image-gallery/lazy-image-gallery.stories.js.map +1 -1
  41. package/dist/blocks/month-navigator/month-navigator.js.map +1 -1
  42. package/dist/blocks/month-navigator/month-navigator.stories.js.map +1 -1
  43. package/dist/blocks/navigable-list/navigable-list.d.ts +1 -1
  44. package/dist/blocks/paginated-items/paginated-items.js.map +1 -1
  45. package/dist/blocks/paginated-items/paginated-items.stories.js.map +1 -1
  46. package/dist/blocks/pagination-controls/pagination-controls.js.map +1 -1
  47. package/dist/blocks/pagination-controls/pagination-controls.stories.js.map +1 -1
  48. package/dist/blocks/sidebar/sidebar.d.ts +1 -1
  49. package/dist/blocks/sidebar/sidebar.js.map +1 -1
  50. package/dist/blocks/sidebar/sidebar.stories.js.map +1 -1
  51. package/dist/components/accordion/accordion.js.map +1 -1
  52. package/dist/components/accordion/accordion.stories.js +1 -1
  53. package/dist/components/accordion/accordion.stories.js.map +1 -1
  54. package/dist/components/adaptive-input/adaptive-input.d.ts +1 -1
  55. package/dist/components/adaptive-input/adaptive-input.js.map +1 -1
  56. package/dist/components/adaptive-input/adaptive-input.stories.js.map +1 -1
  57. package/dist/components/alert-dialog/alert-dialog.js.map +1 -1
  58. package/dist/components/alert-dialog/alert-dialog.stories.js.map +1 -1
  59. package/dist/components/autocomplete/autocomplete.d.ts +1 -1
  60. package/dist/components/autocomplete/autocomplete.js.map +1 -1
  61. package/dist/components/autocomplete/autocomplete.stories.js.map +1 -1
  62. package/dist/components/autocomplete/autocomplete.test.js +1 -1
  63. package/dist/components/autocomplete/autocomplete.test.js.map +1 -1
  64. package/dist/components/avatar/avatar.js.map +1 -1
  65. package/dist/components/avatar/avatar.stories.js.map +1 -1
  66. package/dist/components/badge/badge.d.ts +2 -2
  67. package/dist/components/badge/badge.js.map +1 -1
  68. package/dist/components/badge/badge.stories.js.map +1 -1
  69. package/dist/components/button/button.d.ts +1 -1
  70. package/dist/components/button/button.js.map +1 -1
  71. package/dist/components/button/button.stories.js.map +1 -1
  72. package/dist/components/button/button.test.js +1 -1
  73. package/dist/components/button/button.test.js.map +1 -1
  74. package/dist/components/button/button.types.d.ts +3 -3
  75. package/dist/components/button/button.types.js.map +1 -1
  76. package/dist/components/calendar/calendar.d.ts +1 -1
  77. package/dist/components/calendar/calendar.js.map +1 -1
  78. package/dist/components/calendar/calendar.stories.js.map +1 -1
  79. package/dist/components/card/card.js.map +1 -1
  80. package/dist/components/card/card.stories.js.map +1 -1
  81. package/dist/components/checkbox/checkbox.js.map +1 -1
  82. package/dist/components/checkbox/checkbox.stories.js.map +1 -1
  83. package/dist/components/command/command.d.ts +1 -1
  84. package/dist/components/command/command.js.map +1 -1
  85. package/dist/components/command/command.stories.js.map +1 -1
  86. package/dist/components/currency-input/currency-input.d.ts +1 -1
  87. package/dist/components/currency-input/currency-input.js.map +1 -1
  88. package/dist/components/currency-input/currency-input.stories.js.map +1 -1
  89. package/dist/components/dialog/dialog.js.map +1 -1
  90. package/dist/components/dialog/dialog.stories.js.map +1 -1
  91. package/dist/components/dropdown-menu/dropdown-menu.js.map +1 -1
  92. package/dist/components/dropdown-menu/dropdown-menu.stories.js.map +1 -1
  93. package/dist/components/input/input.d.ts +1 -1
  94. package/dist/components/input/input.js.map +1 -1
  95. package/dist/components/input/input.stories.js.map +1 -1
  96. package/dist/components/label/label.d.ts +2 -2
  97. package/dist/components/label/label.js.map +1 -1
  98. package/dist/components/label/label.stories.js.map +1 -1
  99. package/dist/components/multi-select/multi-select.d.ts +2 -2
  100. package/dist/components/multi-select/multi-select.js.map +1 -1
  101. package/dist/components/multi-select/multi-select.stories.js.map +1 -1
  102. package/dist/components/navigation-menu/navigation-menu.d.ts +1 -1
  103. package/dist/components/navigation-menu/navigation-menu.js.map +1 -1
  104. package/dist/components/navigation-menu/navigation-menu.stories.js.map +1 -1
  105. package/dist/components/pagination/pagination.d.ts +1 -1
  106. package/dist/components/pagination/pagination.js.map +1 -1
  107. package/dist/components/pagination/pagination.stories.js.map +1 -1
  108. package/dist/components/password-input/password-input.js.map +1 -1
  109. package/dist/components/password-input/password-input.stories.js.map +1 -1
  110. package/dist/components/popover/popover.js.map +1 -1
  111. package/dist/components/popover/popover.stories.js.map +1 -1
  112. package/dist/components/progress/progress.js.map +1 -1
  113. package/dist/components/progress/progress.stories.js.map +1 -1
  114. package/dist/components/radio-group/radio-group.js.map +1 -1
  115. package/dist/components/radio-group/radio-group.stories.js.map +1 -1
  116. package/dist/components/select/select.js.map +1 -1
  117. package/dist/components/select/select.stories.js.map +1 -1
  118. package/dist/components/separator/separator.js.map +1 -1
  119. package/dist/components/separator/separator.stories.js.map +1 -1
  120. package/dist/components/skeleton/skeleton.js.map +1 -1
  121. package/dist/components/skeleton/skeleton.stories.js.map +1 -1
  122. package/dist/components/spinner/spinner.d.ts +1 -1
  123. package/dist/components/spinner/spinner.js.map +1 -1
  124. package/dist/components/switch/switch.js.map +1 -1
  125. package/dist/components/switch/switch.stories.js.map +1 -1
  126. package/dist/components/table/table.js.map +1 -1
  127. package/dist/components/table/table.stories.js.map +1 -1
  128. package/dist/components/tabs/tabs.js.map +1 -1
  129. package/dist/components/tabs/tabs.stories.js.map +1 -1
  130. package/dist/components/textarea/textarea.js.map +1 -1
  131. package/dist/components/textarea/textarea.stories.js.map +1 -1
  132. package/dist/components/toaster/toast.d.ts +8 -8
  133. package/dist/components/toaster/toast.js.map +1 -1
  134. package/dist/components/toaster/toaster.js.map +1 -1
  135. package/dist/components/toaster/toaster.stories.js.map +1 -1
  136. package/dist/components/toggle/toggle.d.ts +3 -3
  137. package/dist/components/toggle/toggle.js.map +1 -1
  138. package/dist/components/toggle/toggle.stories.js.map +1 -1
  139. package/dist/components/toggle-group/toggle-group.d.ts +3 -3
  140. package/dist/components/toggle-group/toggle-group.js.map +1 -1
  141. package/dist/components/toggle-group/toggle-group.stories.js.map +1 -1
  142. package/dist/components/tooltip/tooltip.js.map +1 -1
  143. package/dist/components/tooltip/tooltip.stories.js.map +1 -1
  144. package/dist/lib/hooks/use-debounce.js.map +1 -1
  145. package/dist/lib/hooks/use-dialog.js.map +1 -1
  146. package/dist/lib/hooks/use-dialog.stories.js.map +1 -1
  147. package/dist/lib/hooks/use-file-utilities.d.ts +1 -1
  148. package/dist/lib/utils/cn.d.ts +1 -1
  149. package/dist/lib/utils/cn.js.map +1 -1
  150. package/dist/lib/utils/merge-objects.js.map +1 -1
  151. package/package.json +16 -29
  152. package/dist/assets/magic-string.es-CoDNcMYi.js +0 -11
  153. package/dist/assets/magic-string.es-CoDNcMYi.js.map +0 -1
  154. package/dist/assets/vi.B-PuvDzu-CCLEoytE.js +0 -500
  155. package/dist/assets/vi.B-PuvDzu-CCLEoytE.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.js","sources":["../../../src/components/dialog/dialog.tsx"],"sourcesContent":["import { cn } from '@/lib/utils'\nimport * as DialogPrimitive from '@radix-ui/react-dialog'\nimport { X } from 'lucide-react'\nimport * as React from 'react'\n\nconst Dialog = DialogPrimitive.Root\n\nconst DialogTrigger = DialogPrimitive.Trigger\n\nconst DialogPortal = DialogPrimitive.Portal\n\nconst DialogClose = DialogPrimitive.Close\n\nconst DialogOverlay = React.forwardRef<\n\tReact.ElementRef<typeof DialogPrimitive.Overlay>,\n\tReact.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n\t<DialogPrimitive.Overlay\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n))\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName\n\nconst DialogContent = React.forwardRef<\n\tReact.ElementRef<typeof DialogPrimitive.Content>,\n\tReact.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n\t<DialogPortal>\n\t\t<DialogOverlay />\n\t\t<DialogPrimitive.Content\n\t\t\tref={ref}\n\t\t\tclassName={cn(\n\t\t\t\t'fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border',\n\t\t\t\t'bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]',\n\t\t\t\t'sm:rounded-lg max-h-[100dvh] overflow-y-auto',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t\t<DialogPrimitive.Close className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground\">\n\t\t\t\t<X className=\"h-4 w-4\" />\n\t\t\t\t<span className=\"sr-only\">Close</span>\n\t\t\t</DialogPrimitive.Close>\n\t\t</DialogPrimitive.Content>\n\t</DialogPortal>\n))\nDialogContent.displayName = DialogPrimitive.Content.displayName\n\nconst DialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n\t<div\n\t\tclassName={cn('flex flex-col space-y-1.5 text-center sm:text-left', className)}\n\t\t{...props}\n\t/>\n)\nDialogHeader.displayName = 'DialogHeader'\n\nconst DialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n\t<div\n\t\tclassName={cn(\n\t\t\t'flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n)\nDialogFooter.displayName = 'DialogFooter'\n\nconst DialogTitle = React.forwardRef<\n\tReact.ElementRef<typeof DialogPrimitive.Title>,\n\tReact.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n\t<DialogPrimitive.Title\n\t\tref={ref}\n\t\tclassName={cn('text-lg font-semibold leading-none tracking-tight', className)}\n\t\t{...props}\n\t/>\n))\nDialogTitle.displayName = DialogPrimitive.Title.displayName\n\nconst DialogDescription = React.forwardRef<\n\tReact.ElementRef<typeof DialogPrimitive.Description>,\n\tReact.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n\t<DialogPrimitive.Description\n\t\tref={ref}\n\t\tclassName={cn('text-sm text-muted-foreground', className)}\n\t\t{...props}\n\t/>\n))\nDialogDescription.displayName = DialogPrimitive.Description.displayName\n\nexport {\n\tDialog,\n\tDialogClose,\n\tDialogContent,\n\tDialogDescription,\n\tDialogFooter,\n\tDialogHeader,\n\tDialogOverlay,\n\tDialogPortal,\n\tDialogTitle,\n\tDialogTrigger,\n}\n"],"names":["Dialog","DialogPrimitive","DialogTrigger","DialogPortal","DialogOverlay","React","className","props","ref","jsx","cn","DialogContent","children","jsxs","X","DialogHeader","DialogFooter","DialogTitle","DialogDescription"],"mappings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C,IAC3BC,EAAA,IAACR,EAAgB,MAAhB,CACA,IAAAO,EACA,UAAWE,EAAG,oDAAqDJ,CAAS,EAC3E,GAAGC,CAAA,CACL,CACA,EACDU,EAAY,YAAchB,EAAgB,MAAM,YAE1C,MAAAiB,EAAoBb,EAAM,WAG9B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAC3BC,EAAA,IAACR,EAAgB,YAAhB,CACA,IAAAO,EACA,UAAWE,EAAG,gCAAiCJ,CAAS,EACvD,GAAGC,CAAA,CACL,CACA,EACDW,EAAkB,YAAcjB,EAAgB,YAAY"}
1
+ {"version":3,"file":"dialog.js","sources":["../../../src/components/dialog/dialog.tsx"],"sourcesContent":["import { cn } from '@/lib/utils'\nimport * as DialogPrimitive from '@radix-ui/react-dialog'\nimport { X } from 'lucide-react'\nimport * as React from 'react'\n\nconst Dialog = DialogPrimitive.Root\n\nconst DialogTrigger = DialogPrimitive.Trigger\n\nconst DialogPortal = DialogPrimitive.Portal\n\nconst DialogClose = DialogPrimitive.Close\n\nconst DialogOverlay = React.forwardRef<\n\tReact.ElementRef<typeof DialogPrimitive.Overlay>,\n\tReact.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n\t<DialogPrimitive.Overlay\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n))\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName\n\nconst DialogContent = React.forwardRef<\n\tReact.ElementRef<typeof DialogPrimitive.Content>,\n\tReact.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n\t<DialogPortal>\n\t\t<DialogOverlay />\n\t\t<DialogPrimitive.Content\n\t\t\tref={ref}\n\t\t\tclassName={cn(\n\t\t\t\t'fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border',\n\t\t\t\t'bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]',\n\t\t\t\t'sm:rounded-lg max-h-[100dvh] overflow-y-auto',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t\t<DialogPrimitive.Close className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground\">\n\t\t\t\t<X className=\"h-4 w-4\" />\n\t\t\t\t<span className=\"sr-only\">Close</span>\n\t\t\t</DialogPrimitive.Close>\n\t\t</DialogPrimitive.Content>\n\t</DialogPortal>\n))\nDialogContent.displayName = DialogPrimitive.Content.displayName\n\nconst DialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n\t<div\n\t\tclassName={cn('flex flex-col space-y-1.5 text-center sm:text-left', className)}\n\t\t{...props}\n\t/>\n)\nDialogHeader.displayName = 'DialogHeader'\n\nconst DialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n\t<div\n\t\tclassName={cn(\n\t\t\t'flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n)\nDialogFooter.displayName = 'DialogFooter'\n\nconst DialogTitle = React.forwardRef<\n\tReact.ElementRef<typeof DialogPrimitive.Title>,\n\tReact.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n\t<DialogPrimitive.Title\n\t\tref={ref}\n\t\tclassName={cn('text-lg font-semibold leading-none tracking-tight', className)}\n\t\t{...props}\n\t/>\n))\nDialogTitle.displayName = DialogPrimitive.Title.displayName\n\nconst DialogDescription = React.forwardRef<\n\tReact.ElementRef<typeof DialogPrimitive.Description>,\n\tReact.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n\t<DialogPrimitive.Description\n\t\tref={ref}\n\t\tclassName={cn('text-sm text-muted-foreground', className)}\n\t\t{...props}\n\t/>\n))\nDialogDescription.displayName = DialogPrimitive.Description.displayName\n\nexport {\n\tDialog,\n\tDialogClose,\n\tDialogContent,\n\tDialogDescription,\n\tDialogFooter,\n\tDialogHeader,\n\tDialogOverlay,\n\tDialogPortal,\n\tDialogTitle,\n\tDialogTrigger,\n}\n"],"names":["Dialog","DialogPrimitive","DialogTrigger","DialogPortal","DialogOverlay","React","className","props","ref","jsx","cn","DialogContent","children","jsxs","X","DialogHeader","DialogFooter","DialogTitle","DialogDescription"],"mappings":"6PAKA,MAAMA,EAASC,EAAgB,KAEzBC,EAAgBD,EAAgB,QAEhCE,EAAeF,EAAgB,OAI/BG,EAAgBC,EAAM,WAG1B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC3BC,EAAAA,IAACR,EAAgB,QAAhB,CACA,IAAAO,EACA,UAAWE,EACV,0JACAJ,CAAA,EAEA,GAAGC,CAAA,CACL,CACA,EACDH,EAAc,YAAcH,EAAgB,QAAQ,YAEpD,MAAMU,EAAgBN,EAAM,WAG1B,CAAC,CAAE,UAAAC,EAAW,SAAAM,EAAU,GAAGL,CAAA,EAASC,IACrCK,EAAAA,KAACV,EAAA,CACA,SAAA,CAAAM,EAAAA,IAACL,EAAA,EAAc,EACfS,EAAAA,KAACZ,EAAgB,QAAhB,CACA,IAAAO,EACA,UAAWE,EACV,0GACA,wYACA,+CACAJ,CAAA,EAEA,GAAGC,EAEH,SAAA,CAAAK,EACDC,EAAAA,KAACZ,EAAgB,MAAhB,CAAsB,UAAU,gRAChC,SAAA,CAAAQ,EAAAA,IAACK,EAAA,CAAE,UAAU,SAAA,CAAU,EACvBL,EAAAA,IAAC,OAAA,CAAK,UAAU,UAAU,SAAA,OAAA,CAAK,CAAA,CAAA,CAChC,CAAA,CAAA,CAAA,CACD,EACD,CACA,EACDE,EAAc,YAAcV,EAAgB,QAAQ,YAEpD,MAAMc,EAAe,CAAC,CAAE,UAAAT,EAAW,GAAGC,KACrCE,EAAAA,IAAC,MAAA,CACA,UAAWC,EAAG,qDAAsDJ,CAAS,EAC5E,GAAGC,CAAA,CACL,EAEDQ,EAAa,YAAc,eAE3B,MAAMC,EAAe,CAAC,CAAE,UAAAV,EAAW,GAAGC,KACrCE,EAAAA,IAAC,MAAA,CACA,UAAWC,EACV,gEACAJ,CAAA,EAEA,GAAGC,CAAA,CACL,EAEDS,EAAa,YAAc,eAE3B,MAAMC,EAAcZ,EAAM,WAGxB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC3BC,EAAAA,IAACR,EAAgB,MAAhB,CACA,IAAAO,EACA,UAAWE,EAAG,oDAAqDJ,CAAS,EAC3E,GAAGC,CAAA,CACL,CACA,EACDU,EAAY,YAAchB,EAAgB,MAAM,YAEhD,MAAMiB,EAAoBb,EAAM,WAG9B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC3BC,EAAAA,IAACR,EAAgB,YAAhB,CACA,IAAAO,EACA,UAAWE,EAAG,gCAAiCJ,CAAS,EACvD,GAAGC,CAAA,CACL,CACA,EACDW,EAAkB,YAAcjB,EAAgB,YAAY"}
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.stories.js","sources":["../../../src/components/dialog/dialog.stories.tsx"],"sourcesContent":["// organize-imports-ignore\nimport React from 'react'\nimport type { Meta, StoryObj } from '@storybook/react'\n\nimport {\n\tDialog,\n\tDialogContent,\n\tDialogDescription,\n\tDialogFooter,\n\tDialogHeader,\n\tDialogTitle,\n\tDialogTrigger,\n} from './dialog'\nimport { HelpCircle, Phone, User } from 'lucide-react'\nimport { Button } from '../button'\n\nconst meta: Meta<typeof Dialog> = {\n\tcomponent: Dialog,\n}\n\nexport default meta\ntype Story = StoryObj<typeof Dialog>\n\nconst Template = () => {\n\treturn (\n\t\t<Dialog>\n\t\t\t<DialogTrigger>\n\t\t\t\t<Button>Open Dialog</Button>\n\t\t\t</DialogTrigger>\n\t\t\t<DialogContent>\n\t\t\t\t<DialogHeader>\n\t\t\t\t\t<DialogTitle>Dialog title</DialogTitle>\n\t\t\t\t\t<DialogDescription>This is the dialog description</DialogDescription>\n\t\t\t\t</DialogHeader>\n\t\t\t\t<div className=\"bg-gray-100 p-4 text-xs\">Content goes here</div>\n\t\t\t\t<DialogFooter>\n\t\t\t\t\t<Button variant=\"default\">Close</Button>\n\t\t\t\t</DialogFooter>\n\t\t\t</DialogContent>\n\t\t</Dialog>\n\t)\n}\n\nexport const Default: Story = {\n\trender: Template.bind({}),\n\targs: {},\n}\n"],"names":["Template","Dialog","jsx","DialogTrigger","Button","DialogContent","jsxs","DialogHeader","DialogTitle","DialogDescription","DialogFooter"],"mappings":"gcAuBA,MAAMA,EAAW,WAEdC,EACA,CAAA,SAAA,CAAAC,MAACC,EACA,CAAA,SAAAD,EAAA,IAACE,EAAO,CAAA,SAAA,aAAW,CAAA,EACpB,SACCC,EACA,CAAA,SAAA,CAAAC,OAACC,EACA,CAAA,SAAA,CAAAL,EAAAA,IAACM,GAAY,SAAY,cAAA,CAAA,EACzBN,EAAAA,IAACO,GAAkB,SAA8B,gCAAA,CAAA,CAAA,EAClD,EACCP,EAAA,IAAA,MAAA,CAAI,UAAU,0BAA0B,SAAiB,oBAAA,QACzDQ,EACA,CAAA,SAAAR,MAACE,GAAO,QAAQ,UAAU,gBAAK,CAAA,CAChC,CAAA,CAAA,CACD,CAAA,CAAA,EACD,EAKOJ,EAAS,KAAK,EAAE"}
1
+ {"version":3,"file":"dialog.stories.js","sources":["../../../src/components/dialog/dialog.stories.tsx"],"sourcesContent":["// organize-imports-ignore\nimport React from 'react'\nimport type { Meta, StoryObj } from '@storybook/react'\n\nimport {\n\tDialog,\n\tDialogContent,\n\tDialogDescription,\n\tDialogFooter,\n\tDialogHeader,\n\tDialogTitle,\n\tDialogTrigger,\n} from './dialog'\nimport { HelpCircle, Phone, User } from 'lucide-react'\nimport { Button } from '../button'\n\nconst meta: Meta<typeof Dialog> = {\n\tcomponent: Dialog,\n}\n\nexport default meta\ntype Story = StoryObj<typeof Dialog>\n\nconst Template = () => {\n\treturn (\n\t\t<Dialog>\n\t\t\t<DialogTrigger>\n\t\t\t\t<Button>Open Dialog</Button>\n\t\t\t</DialogTrigger>\n\t\t\t<DialogContent>\n\t\t\t\t<DialogHeader>\n\t\t\t\t\t<DialogTitle>Dialog title</DialogTitle>\n\t\t\t\t\t<DialogDescription>This is the dialog description</DialogDescription>\n\t\t\t\t</DialogHeader>\n\t\t\t\t<div className=\"bg-gray-100 p-4 text-xs\">Content goes here</div>\n\t\t\t\t<DialogFooter>\n\t\t\t\t\t<Button variant=\"default\">Close</Button>\n\t\t\t\t</DialogFooter>\n\t\t\t</DialogContent>\n\t\t</Dialog>\n\t)\n}\n\nexport const Default: Story = {\n\trender: Template.bind({}),\n\targs: {},\n}\n"],"names":["Template","Dialog","jsx","DialogTrigger","Button","DialogContent","jsxs","DialogHeader","DialogTitle","DialogDescription","DialogFooter"],"mappings":"gcAuBA,MAAMA,EAAW,WAEdC,EAAA,CACA,SAAA,CAAAC,MAACC,EAAA,CACA,SAAAD,EAAAA,IAACE,EAAA,CAAO,SAAA,aAAA,CAAW,EACpB,SACCC,EAAA,CACA,SAAA,CAAAC,OAACC,EAAA,CACA,SAAA,CAAAL,EAAAA,IAACM,GAAY,SAAA,cAAA,CAAY,EACzBN,EAAAA,IAACO,GAAkB,SAAA,gCAAA,CAA8B,CAAA,EAClD,EACAP,EAAAA,IAAC,MAAA,CAAI,UAAU,0BAA0B,SAAA,oBAAiB,QACzDQ,EAAA,CACA,SAAAR,MAACE,GAAO,QAAQ,UAAU,iBAAK,CAAA,CAChC,CAAA,CAAA,CACD,CAAA,EACD,EAKOJ,EAAS,KAAK,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-menu.js","sources":["../../../src/components/dropdown-menu/dropdown-menu.tsx"],"sourcesContent":["import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'\nimport { Check, ChevronRight, Circle } from 'lucide-react'\nimport * as React from 'react'\n\nimport { cn } from '@/lib/utils/cn'\n\nconst DropdownMenu = DropdownMenuPrimitive.Root\n\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {\n\t\tinset?: boolean\n\t}\n>(({ className, inset, children, ...props }, ref) => (\n\t<DropdownMenuPrimitive.SubTrigger\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n\t\t\tinset && 'pl-8',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t>\n\t\t{children}\n\t\t<ChevronRight className=\"ml-auto\" />\n\t</DropdownMenuPrimitive.SubTrigger>\n))\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName\n\nconst DropdownMenuSubContent = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n\t<DropdownMenuPrimitive.SubContent\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n))\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName\n\nconst DropdownMenuContent = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.Content>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n\t<DropdownMenuPrimitive.Portal>\n\t\t<DropdownMenuPrimitive.Content\n\t\t\tref={ref}\n\t\t\tsideOffset={sideOffset}\n\t\t\tclassName={cn(\n\t\t\t\t'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md',\n\t\t\t\t'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t</DropdownMenuPrimitive.Portal>\n))\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName\n\nconst DropdownMenuItem = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.Item>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {\n\t\tinset?: boolean\n\t}\n>(({ className, inset, ...props }, ref) => (\n\t<DropdownMenuPrimitive.Item\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0',\n\t\t\tinset && 'pl-8',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n))\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n\t<DropdownMenuPrimitive.CheckboxItem\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n\t\t\tclassName,\n\t\t)}\n\t\tchecked={checked}\n\t\t{...props}\n\t>\n\t\t<span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n\t\t\t<DropdownMenuPrimitive.ItemIndicator>\n\t\t\t\t<Check className=\"h-4 w-4\" />\n\t\t\t</DropdownMenuPrimitive.ItemIndicator>\n\t\t</span>\n\t\t{children}\n\t</DropdownMenuPrimitive.CheckboxItem>\n))\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName\n\nconst DropdownMenuRadioItem = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n\t<DropdownMenuPrimitive.RadioItem\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t>\n\t\t<span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n\t\t\t<DropdownMenuPrimitive.ItemIndicator>\n\t\t\t\t<Circle className=\"h-2 w-2 fill-current\" />\n\t\t\t</DropdownMenuPrimitive.ItemIndicator>\n\t\t</span>\n\t\t{children}\n\t</DropdownMenuPrimitive.RadioItem>\n))\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName\n\nconst DropdownMenuLabel = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.Label>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {\n\t\tinset?: boolean\n\t}\n>(({ className, inset, ...props }, ref) => (\n\t<DropdownMenuPrimitive.Label\n\t\tref={ref}\n\t\tclassName={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}\n\t\t{...props}\n\t/>\n))\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName\n\nconst DropdownMenuSeparator = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n\t<DropdownMenuPrimitive.Separator\n\t\tref={ref}\n\t\tclassName={cn('-mx-1 my-1 h-px bg-muted', className)}\n\t\t{...props}\n\t/>\n))\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName\n\nconst DropdownMenuShortcut = ({\n\tclassName,\n\t...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n\treturn (\n\t\t<span\n\t\t\tclassName={cn('ml-auto text-xs tracking-widest opacity-60', className)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut'\n\nexport {\n\tDropdownMenu,\n\tDropdownMenuCheckboxItem,\n\tDropdownMenuContent,\n\tDropdownMenuGroup,\n\tDropdownMenuItem,\n\tDropdownMenuLabel,\n\tDropdownMenuPortal,\n\tDropdownMenuRadioGroup,\n\tDropdownMenuRadioItem,\n\tDropdownMenuSeparator,\n\tDropdownMenuShortcut,\n\tDropdownMenuSub,\n\tDropdownMenuSubContent,\n\tDropdownMenuSubTrigger,\n\tDropdownMenuTrigger,\n}\n"],"names":["DropdownMenu","DropdownMenuPrimitive","DropdownMenuTrigger","DropdownMenuPortal","DropdownMenuSub","DropdownMenuSubTrigger","React","className","inset","children","props","ref","jsxs","cn","jsx","ChevronRight","DropdownMenuSubContent","DropdownMenuContent","sideOffset","DropdownMenuItem","DropdownMenuCheckboxItem","checked","Check","DropdownMenuRadioItem","Circle","DropdownMenuLabel","DropdownMenuSeparator"],"mappings":"kRAMA,MAAMA,EAAeC,EAAsB,KAErCC,EAAsBD,EAAsB,QAI5CE,EAAqBF,EAAsB,OAE3CG,EAAkBH,EAAsB,IAIxCI,EAAyBC,EAAM,WAKnC,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAO,SAAAC,EAAU,GAAGC,GAASC,IAC5CC,EAAA,KAACX,EAAsB,WAAtB,CACA,IAAAU,EACA,UAAWE,EACV,yMACAL,GAAS,OACTD,CACD,EACC,GAAGG,EAEH,SAAA,CAAAD,EACDK,EAAAA,IAACC,EAAa,CAAA,UAAU,SAAU,CAAA,CAAA,CAAA,CACnC,CACA,EACDV,EAAuB,YAAcJ,EAAsB,WAAW,YAEhE,MAAAe,EAAyBV,EAAM,WAGnC,CAAC,CAAE,UAAAC,EAAW,GAAGG,CAAM,EAAGC,IAC3BG,EAAA,IAACb,EAAsB,WAAtB,CACA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,EACC,GAAGG,EAEJ,SAAA,CAAAI,EAAA,IAAC,OAAK,CAAA,UAAU,+DACf,SAAAA,EAAA,IAACb,EAAsB,cAAtB,CACA,SAAAa,EAAA,IAACU,EAAO,CAAA,UAAU,sBAAuB,CAAA,CAC1C,CAAA,EACD,EACCf,CAAA,CAAA,CACF,CACA,EACDc,EAAsB,YAActB,EAAsB,UAAU,YAE9D,MAAAwB,EAAoBnB,EAAM,WAK9B,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAO,GAAGE,GAASC,IAClCG,EAAA,IAACb,EAAsB,MAAtB,CACA,IAAAU,EACA,UAAWE,EAAG,oCAAqCL,GAAS,OAAQD,CAAS,EAC5E,GAAGG,CAAA,CACL,CACA,EACDe,EAAkB,YAAcxB,EAAsB,MAAM,YAEtD,MAAAyB,EAAwBpB,EAAM,WAGlC,CAAC,CAAE,UAAAC,EAAW,GAAGG,CAAM,EAAGC,IAC3BG,EAAA,IAACb,EAAsB,UAAtB,CACA,IAAAU,EACA,UAAWE,EAAG,2BAA4BN,CAAS,EAClD,GAAGG,CAAA,CACL,CACA,EACDgB,EAAsB,YAAczB,EAAsB,UAAU"}
1
+ {"version":3,"file":"dropdown-menu.js","sources":["../../../src/components/dropdown-menu/dropdown-menu.tsx"],"sourcesContent":["import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'\nimport { Check, ChevronRight, Circle } from 'lucide-react'\nimport * as React from 'react'\n\nimport { cn } from '@/lib/utils/cn'\n\nconst DropdownMenu = DropdownMenuPrimitive.Root\n\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {\n\t\tinset?: boolean\n\t}\n>(({ className, inset, children, ...props }, ref) => (\n\t<DropdownMenuPrimitive.SubTrigger\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n\t\t\tinset && 'pl-8',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t>\n\t\t{children}\n\t\t<ChevronRight className=\"ml-auto\" />\n\t</DropdownMenuPrimitive.SubTrigger>\n))\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName\n\nconst DropdownMenuSubContent = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n\t<DropdownMenuPrimitive.SubContent\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n))\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName\n\nconst DropdownMenuContent = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.Content>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n\t<DropdownMenuPrimitive.Portal>\n\t\t<DropdownMenuPrimitive.Content\n\t\t\tref={ref}\n\t\t\tsideOffset={sideOffset}\n\t\t\tclassName={cn(\n\t\t\t\t'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md',\n\t\t\t\t'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t</DropdownMenuPrimitive.Portal>\n))\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName\n\nconst DropdownMenuItem = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.Item>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {\n\t\tinset?: boolean\n\t}\n>(({ className, inset, ...props }, ref) => (\n\t<DropdownMenuPrimitive.Item\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0',\n\t\t\tinset && 'pl-8',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n))\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n\t<DropdownMenuPrimitive.CheckboxItem\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n\t\t\tclassName,\n\t\t)}\n\t\tchecked={checked}\n\t\t{...props}\n\t>\n\t\t<span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n\t\t\t<DropdownMenuPrimitive.ItemIndicator>\n\t\t\t\t<Check className=\"h-4 w-4\" />\n\t\t\t</DropdownMenuPrimitive.ItemIndicator>\n\t\t</span>\n\t\t{children}\n\t</DropdownMenuPrimitive.CheckboxItem>\n))\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName\n\nconst DropdownMenuRadioItem = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n\t<DropdownMenuPrimitive.RadioItem\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t>\n\t\t<span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n\t\t\t<DropdownMenuPrimitive.ItemIndicator>\n\t\t\t\t<Circle className=\"h-2 w-2 fill-current\" />\n\t\t\t</DropdownMenuPrimitive.ItemIndicator>\n\t\t</span>\n\t\t{children}\n\t</DropdownMenuPrimitive.RadioItem>\n))\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName\n\nconst DropdownMenuLabel = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.Label>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {\n\t\tinset?: boolean\n\t}\n>(({ className, inset, ...props }, ref) => (\n\t<DropdownMenuPrimitive.Label\n\t\tref={ref}\n\t\tclassName={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}\n\t\t{...props}\n\t/>\n))\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName\n\nconst DropdownMenuSeparator = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n\t<DropdownMenuPrimitive.Separator\n\t\tref={ref}\n\t\tclassName={cn('-mx-1 my-1 h-px bg-muted', className)}\n\t\t{...props}\n\t/>\n))\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName\n\nconst DropdownMenuShortcut = ({\n\tclassName,\n\t...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n\treturn (\n\t\t<span\n\t\t\tclassName={cn('ml-auto text-xs tracking-widest opacity-60', className)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut'\n\nexport {\n\tDropdownMenu,\n\tDropdownMenuCheckboxItem,\n\tDropdownMenuContent,\n\tDropdownMenuGroup,\n\tDropdownMenuItem,\n\tDropdownMenuLabel,\n\tDropdownMenuPortal,\n\tDropdownMenuRadioGroup,\n\tDropdownMenuRadioItem,\n\tDropdownMenuSeparator,\n\tDropdownMenuShortcut,\n\tDropdownMenuSub,\n\tDropdownMenuSubContent,\n\tDropdownMenuSubTrigger,\n\tDropdownMenuTrigger,\n}\n"],"names":["DropdownMenu","DropdownMenuPrimitive","DropdownMenuTrigger","DropdownMenuPortal","DropdownMenuSub","DropdownMenuSubTrigger","React","className","inset","children","props","ref","jsxs","cn","jsx","ChevronRight","DropdownMenuSubContent","DropdownMenuContent","sideOffset","DropdownMenuItem","DropdownMenuCheckboxItem","checked","Check","DropdownMenuRadioItem","Circle","DropdownMenuLabel","DropdownMenuSeparator"],"mappings":"kRAMA,MAAMA,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B,EAAsB,YAAczB,EAAsB,UAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-menu.stories.js","sources":["../../../src/components/dropdown-menu/dropdown-menu.stories.tsx"],"sourcesContent":["// organize-imports-ignore\nimport React from 'react'\nimport type { Meta, StoryObj } from '@storybook/react'\n\nimport {\n\tDropdownMenu,\n\tDropdownMenuContent,\n\tDropdownMenuItem,\n\tDropdownMenuLabel,\n\tDropdownMenuPortal,\n\tDropdownMenuSeparator,\n\tDropdownMenuSub,\n\tDropdownMenuSubContent,\n\tDropdownMenuSubTrigger,\n\tDropdownMenuTrigger,\n} from './dropdown-menu'\nimport { Button } from '../button/button'\nimport {\n\tKey,\n\tMail,\n\tMessageSquare,\n\tPencil,\n\tPlusCircle,\n\tSettings2,\n\tTrash,\n\tUserPlus,\n} from 'lucide-react'\n\nconst meta: Meta<typeof DropdownMenu> = {\n\tcomponent: DropdownMenu,\n}\n\nexport default meta\ntype Story = StoryObj<typeof DropdownMenu>\n\nconst Template = () => {\n\treturn (\n\t\t<DropdownMenu>\n\t\t\t<DropdownMenuTrigger asChild>\n\t\t\t\t<Button variant=\"outline\" size=\"icon\">\n\t\t\t\t\t<Settings2 className=\"w-6 h-6\" />\n\t\t\t\t\t<span className=\"sr-only\">Open settings</span>\n\t\t\t\t</Button>\n\t\t\t</DropdownMenuTrigger>\n\t\t\t<DropdownMenuContent align=\"end\">\n\t\t\t\t<DropdownMenuLabel>Jhon Doe</DropdownMenuLabel>\n\t\t\t\t<DropdownMenuSeparator />\n\t\t\t\t<DropdownMenuItem>\n\t\t\t\t\t<Pencil /> Edit\n\t\t\t\t</DropdownMenuItem>\n\t\t\t\t<DropdownMenuItem>\n\t\t\t\t\t<Trash /> Delete\n\t\t\t\t</DropdownMenuItem>\n\t\t\t\t<DropdownMenuSeparator />\n\t\t\t\t<DropdownMenuItem>\n\t\t\t\t\t<Key /> Send password reset\n\t\t\t\t</DropdownMenuItem>\n\t\t\t\t<DropdownMenuSeparator />\n\t\t\t\t<DropdownMenuSub>\n\t\t\t\t\t<DropdownMenuSubTrigger>\n\t\t\t\t\t\t<UserPlus />\n\t\t\t\t\t\t<span>Invite users</span>\n\t\t\t\t\t</DropdownMenuSubTrigger>\n\t\t\t\t\t<DropdownMenuPortal>\n\t\t\t\t\t\t<DropdownMenuSubContent>\n\t\t\t\t\t\t\t<DropdownMenuItem>\n\t\t\t\t\t\t\t\t<Mail />\n\t\t\t\t\t\t\t\t<span>Email</span>\n\t\t\t\t\t\t\t</DropdownMenuItem>\n\t\t\t\t\t\t\t<DropdownMenuItem>\n\t\t\t\t\t\t\t\t<MessageSquare />\n\t\t\t\t\t\t\t\t<span>Message</span>\n\t\t\t\t\t\t\t</DropdownMenuItem>\n\t\t\t\t\t\t\t<DropdownMenuSeparator />\n\t\t\t\t\t\t\t<DropdownMenuItem>\n\t\t\t\t\t\t\t\t<PlusCircle />\n\t\t\t\t\t\t\t\t<span>More...</span>\n\t\t\t\t\t\t\t</DropdownMenuItem>\n\t\t\t\t\t\t</DropdownMenuSubContent>\n\t\t\t\t\t</DropdownMenuPortal>\n\t\t\t\t</DropdownMenuSub>\n\t\t\t</DropdownMenuContent>\n\t\t</DropdownMenu>\n\t)\n}\n\nexport const Default: Story = {\n\trender: Template.bind({}),\n\targs: {},\n}\n"],"names":["Template","DropdownMenu","jsx","DropdownMenuTrigger","jsxs","Button","Settings2","DropdownMenuContent","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuItem","Pencil","Trash","Key","DropdownMenuSub","DropdownMenuSubTrigger","UserPlus","DropdownMenuPortal","DropdownMenuSubContent","Mail","MessageSquare","PlusCircle"],"mappings":"6kBAmCA,MAAMA,EAAW,WAEdC,EACA,CAAA,SAAA,CAACC,EAAAA,IAAAC,EAAA,CAAoB,QAAO,GAC3B,SAAAC,EAAAA,KAACC,GAAO,QAAQ,UAAU,KAAK,OAC9B,SAAA,CAACH,EAAAA,IAAAI,EAAA,CAAU,UAAU,SAAU,CAAA,EAC9BJ,EAAA,IAAA,OAAA,CAAK,UAAU,UAAU,SAAa,eAAA,CAAA,CAAA,CAAA,CACxC,CACD,CAAA,EACAE,EAAAA,KAACG,EAAoB,CAAA,MAAM,MAC1B,SAAA,CAAAL,EAAAA,IAACM,GAAkB,SAAQ,UAAA,CAAA,QAC1BC,EAAsB,EAAA,SACtBC,EACA,CAAA,SAAA,CAAAR,EAAA,IAACS,EAAO,EAAA,EAAE,OAAA,EACX,SACCD,EACA,CAAA,SAAA,CAAAR,EAAA,IAACU,EAAM,EAAA,EAAE,SAAA,EACV,QACCH,EAAsB,EAAA,SACtBC,EACA,CAAA,SAAA,CAAAR,EAAA,IAACW,EAAI,EAAA,EAAE,sBAAA,EACR,QACCJ,EAAsB,EAAA,SACtBK,EACA,CAAA,SAAA,CAAAV,OAACW,EACA,CAAA,SAAA,CAAAb,EAAA,IAACc,EAAS,EAAA,EACVd,EAAAA,IAAC,QAAK,SAAY,cAAA,CAAA,CAAA,EACnB,EACAA,EAAA,IAACe,EACA,CAAA,SAAAb,EAAAA,KAACc,EACA,CAAA,SAAA,CAAAd,OAACM,EACA,CAAA,SAAA,CAAAR,EAAA,IAACiB,EAAK,EAAA,EACNjB,EAAAA,IAAC,QAAK,SAAK,OAAA,CAAA,CAAA,EACZ,SACCQ,EACA,CAAA,SAAA,CAAAR,EAAA,IAACkB,EAAc,EAAA,EACflB,EAAAA,IAAC,QAAK,SAAO,SAAA,CAAA,CAAA,EACd,QACCO,EAAsB,EAAA,SACtBC,EACA,CAAA,SAAA,CAAAR,EAAA,IAACmB,EAAW,EAAA,EACZnB,EAAAA,IAAC,QAAK,SAAO,SAAA,CAAA,CAAA,CACd,CAAA,CAAA,CAAA,CACD,CACD,CAAA,CAAA,CACD,CAAA,CAAA,CACD,CAAA,CAAA,EACD,EAKOF,EAAS,KAAK,EAAE"}
1
+ {"version":3,"file":"dropdown-menu.stories.js","sources":["../../../src/components/dropdown-menu/dropdown-menu.stories.tsx"],"sourcesContent":["// organize-imports-ignore\nimport React from 'react'\nimport type { Meta, StoryObj } from '@storybook/react'\n\nimport {\n\tDropdownMenu,\n\tDropdownMenuContent,\n\tDropdownMenuItem,\n\tDropdownMenuLabel,\n\tDropdownMenuPortal,\n\tDropdownMenuSeparator,\n\tDropdownMenuSub,\n\tDropdownMenuSubContent,\n\tDropdownMenuSubTrigger,\n\tDropdownMenuTrigger,\n} from './dropdown-menu'\nimport { Button } from '../button/button'\nimport {\n\tKey,\n\tMail,\n\tMessageSquare,\n\tPencil,\n\tPlusCircle,\n\tSettings2,\n\tTrash,\n\tUserPlus,\n} from 'lucide-react'\n\nconst meta: Meta<typeof DropdownMenu> = {\n\tcomponent: DropdownMenu,\n}\n\nexport default meta\ntype Story = StoryObj<typeof DropdownMenu>\n\nconst Template = () => {\n\treturn (\n\t\t<DropdownMenu>\n\t\t\t<DropdownMenuTrigger asChild>\n\t\t\t\t<Button variant=\"outline\" size=\"icon\">\n\t\t\t\t\t<Settings2 className=\"w-6 h-6\" />\n\t\t\t\t\t<span className=\"sr-only\">Open settings</span>\n\t\t\t\t</Button>\n\t\t\t</DropdownMenuTrigger>\n\t\t\t<DropdownMenuContent align=\"end\">\n\t\t\t\t<DropdownMenuLabel>Jhon Doe</DropdownMenuLabel>\n\t\t\t\t<DropdownMenuSeparator />\n\t\t\t\t<DropdownMenuItem>\n\t\t\t\t\t<Pencil /> Edit\n\t\t\t\t</DropdownMenuItem>\n\t\t\t\t<DropdownMenuItem>\n\t\t\t\t\t<Trash /> Delete\n\t\t\t\t</DropdownMenuItem>\n\t\t\t\t<DropdownMenuSeparator />\n\t\t\t\t<DropdownMenuItem>\n\t\t\t\t\t<Key /> Send password reset\n\t\t\t\t</DropdownMenuItem>\n\t\t\t\t<DropdownMenuSeparator />\n\t\t\t\t<DropdownMenuSub>\n\t\t\t\t\t<DropdownMenuSubTrigger>\n\t\t\t\t\t\t<UserPlus />\n\t\t\t\t\t\t<span>Invite users</span>\n\t\t\t\t\t</DropdownMenuSubTrigger>\n\t\t\t\t\t<DropdownMenuPortal>\n\t\t\t\t\t\t<DropdownMenuSubContent>\n\t\t\t\t\t\t\t<DropdownMenuItem>\n\t\t\t\t\t\t\t\t<Mail />\n\t\t\t\t\t\t\t\t<span>Email</span>\n\t\t\t\t\t\t\t</DropdownMenuItem>\n\t\t\t\t\t\t\t<DropdownMenuItem>\n\t\t\t\t\t\t\t\t<MessageSquare />\n\t\t\t\t\t\t\t\t<span>Message</span>\n\t\t\t\t\t\t\t</DropdownMenuItem>\n\t\t\t\t\t\t\t<DropdownMenuSeparator />\n\t\t\t\t\t\t\t<DropdownMenuItem>\n\t\t\t\t\t\t\t\t<PlusCircle />\n\t\t\t\t\t\t\t\t<span>More...</span>\n\t\t\t\t\t\t\t</DropdownMenuItem>\n\t\t\t\t\t\t</DropdownMenuSubContent>\n\t\t\t\t\t</DropdownMenuPortal>\n\t\t\t\t</DropdownMenuSub>\n\t\t\t</DropdownMenuContent>\n\t\t</DropdownMenu>\n\t)\n}\n\nexport const Default: Story = {\n\trender: Template.bind({}),\n\targs: {},\n}\n"],"names":["Template","DropdownMenu","jsx","DropdownMenuTrigger","jsxs","Button","Settings2","DropdownMenuContent","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuItem","Pencil","Trash","Key","DropdownMenuSub","DropdownMenuSubTrigger","UserPlus","DropdownMenuPortal","DropdownMenuSubContent","Mail","MessageSquare","PlusCircle"],"mappings":"6kBAmCA,MAAMA,EAAW,WAEdC,EAAA,CACA,SAAA,CAAAC,EAAAA,IAACC,EAAA,CAAoB,QAAO,GAC3B,SAAAC,EAAAA,KAACC,GAAO,QAAQ,UAAU,KAAK,OAC9B,SAAA,CAAAH,EAAAA,IAACI,EAAA,CAAU,UAAU,SAAA,CAAU,EAC/BJ,EAAAA,IAAC,OAAA,CAAK,UAAU,UAAU,SAAA,eAAA,CAAa,CAAA,CAAA,CACxC,CAAA,CACD,EACAE,EAAAA,KAACG,EAAA,CAAoB,MAAM,MAC1B,SAAA,CAAAL,EAAAA,IAACM,GAAkB,SAAA,UAAA,CAAQ,QAC1BC,EAAA,EAAsB,SACtBC,EAAA,CACA,SAAA,CAAAR,EAAAA,IAACS,EAAA,EAAO,EAAE,OAAA,EACX,SACCD,EAAA,CACA,SAAA,CAAAR,EAAAA,IAACU,EAAA,EAAM,EAAE,SAAA,EACV,QACCH,EAAA,EAAsB,SACtBC,EAAA,CACA,SAAA,CAAAR,EAAAA,IAACW,EAAA,EAAI,EAAE,sBAAA,EACR,QACCJ,EAAA,EAAsB,SACtBK,EAAA,CACA,SAAA,CAAAV,OAACW,EAAA,CACA,SAAA,CAAAb,EAAAA,IAACc,EAAA,EAAS,EACVd,EAAAA,IAAC,QAAK,SAAA,cAAA,CAAY,CAAA,EACnB,EACAA,EAAAA,IAACe,EAAA,CACA,SAAAb,EAAAA,KAACc,EAAA,CACA,SAAA,CAAAd,OAACM,EAAA,CACA,SAAA,CAAAR,EAAAA,IAACiB,EAAA,EAAK,EACNjB,EAAAA,IAAC,QAAK,SAAA,OAAA,CAAK,CAAA,EACZ,SACCQ,EAAA,CACA,SAAA,CAAAR,EAAAA,IAACkB,EAAA,EAAc,EACflB,EAAAA,IAAC,QAAK,SAAA,SAAA,CAAO,CAAA,EACd,QACCO,EAAA,EAAsB,SACtBC,EAAA,CACA,SAAA,CAAAR,EAAAA,IAACmB,EAAA,EAAW,EACZnB,EAAAA,IAAC,QAAK,SAAA,SAAA,CAAO,CAAA,CAAA,CACd,CAAA,CAAA,CACD,CAAA,CACD,CAAA,CAAA,CACD,CAAA,CAAA,CACD,CAAA,EACD,EAKOF,EAAS,KAAK,EAAE"}
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from 'react';
3
3
  declare const inputVariants: (props?: ({
4
4
  sizing?: "md" | "sm" | "lg" | "xl" | "2xl" | null | undefined;
5
- } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
5
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
6
6
  export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof inputVariants> {
7
7
  }
8
8
  declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"input.js","sources":["../../../src/components/input/input.tsx"],"sourcesContent":["import { cn } from '@/lib/utils/cn'\nimport { cva, VariantProps } from 'class-variance-authority'\nimport * as React from 'react'\n\nconst inputVariants = cva(\n\t'flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50',\n\t{\n\t\tvariants: {\n\t\t\tsizing: {\n\t\t\t\tsm: 'h-8 text-xs px-2',\n\t\t\t\tmd: 'h-10 text-sm px-3',\n\t\t\t\tlg: 'h-12 text-base px-4',\n\t\t\t\txl: 'h-14 text-lg px-5',\n\t\t\t\t'2xl': 'h-16 text-xl px-6',\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tsizing: 'md',\n\t\t},\n\t},\n)\n\nexport interface InputProps\n\textends React.InputHTMLAttributes<HTMLInputElement>,\n\t\tVariantProps<typeof inputVariants> {}\n\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(\n\t({ className, sizing, type, ...props }, ref) => {\n\t\treturn (\n\t\t\t<input\n\t\t\t\ttype={type}\n\t\t\t\tclassName={cn(inputVariants({ sizing, className }))}\n\t\t\t\tref={ref}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t)\n\t},\n)\nInput.displayName = 'Input'\n\nexport { Input }\n"],"names":["inputVariants","cva","Input","React","className","sizing","type","props","ref","jsx","cn"],"mappings":"8MAIA,MAAMA,EAAgBC,EACrB,+VACA,CACC,SAAU,CACT,OAAQ,CACP,GAAI,mBACJ,GAAI,oBACJ,GAAI,sBACJ,GAAI,oBACJ,MAAO,mBAAA,CAET,EACA,gBAAiB,CAChB,OAAQ,IAAA,CACT,CAEF,EAMMC,EAAQC,EAAM,WACnB,CAAC,CAAE,UAAAC,EAAW,OAAAC,EAAQ,KAAAC,EAAM,GAAGC,GAASC,IAEtCC,EAAA,IAAC,QAAA,CACA,KAAAH,EACA,UAAWI,EAAGV,EAAc,CAAE,OAAAK,EAAQ,UAAAD,CAAW,CAAA,CAAC,EAClD,IAAAI,EACC,GAAGD,CAAA,CACL,CAGH,EACAL,EAAM,YAAc"}
1
+ {"version":3,"file":"input.js","sources":["../../../src/components/input/input.tsx"],"sourcesContent":["import { cn } from '@/lib/utils/cn'\nimport { cva, VariantProps } from 'class-variance-authority'\nimport * as React from 'react'\n\nconst inputVariants = cva(\n\t'flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50',\n\t{\n\t\tvariants: {\n\t\t\tsizing: {\n\t\t\t\tsm: 'h-8 text-xs px-2',\n\t\t\t\tmd: 'h-10 text-sm px-3',\n\t\t\t\tlg: 'h-12 text-base px-4',\n\t\t\t\txl: 'h-14 text-lg px-5',\n\t\t\t\t'2xl': 'h-16 text-xl px-6',\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tsizing: 'md',\n\t\t},\n\t},\n)\n\nexport interface InputProps\n\textends React.InputHTMLAttributes<HTMLInputElement>,\n\t\tVariantProps<typeof inputVariants> {}\n\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(\n\t({ className, sizing, type, ...props }, ref) => {\n\t\treturn (\n\t\t\t<input\n\t\t\t\ttype={type}\n\t\t\t\tclassName={cn(inputVariants({ sizing, className }))}\n\t\t\t\tref={ref}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t)\n\t},\n)\nInput.displayName = 'Input'\n\nexport { Input }\n"],"names":["inputVariants","cva","Input","React","className","sizing","type","props","ref","jsx","cn"],"mappings":"8MAIA,MAAMA,EAAgBC,EACrB,+VACA,CACC,SAAU,CACT,OAAQ,CACP,GAAI,mBACJ,GAAI,oBACJ,GAAI,sBACJ,GAAI,oBACJ,MAAO,mBAAA,CACR,EAED,gBAAiB,CAChB,OAAQ,IAAA,CACT,CAEF,EAMMC,EAAQC,EAAM,WACnB,CAAC,CAAE,UAAAC,EAAW,OAAAC,EAAQ,KAAAC,EAAM,GAAGC,CAAA,EAASC,IAEtCC,EAAAA,IAAC,QAAA,CACA,KAAAH,EACA,UAAWI,EAAGV,EAAc,CAAE,OAAAK,EAAQ,UAAAD,CAAA,CAAW,CAAC,EAClD,IAAAI,EACC,GAAGD,CAAA,CAAA,CAIR,EACAL,EAAM,YAAc"}
@@ -1 +1 @@
1
- {"version":3,"file":"input.stories.js","sources":["../../../src/components/input/input.stories.tsx"],"sourcesContent":["// organize-imports-ignore\nimport React from 'react'\nimport type { Meta, StoryObj } from '@storybook/react'\n\nimport { Input } from './input'\n\nconst meta: Meta<typeof Input> = {\n\ttitle: 'Components/input/simple',\n\tcomponent: Input,\n}\n\nexport default meta\ntype Story = StoryObj<typeof Input>\n\nconst Template = () => {\n\treturn <Input className=\"w-64\" />\n}\n\nexport const Default: Story = {\n\trender: Template.bind({}),\n\targs: {},\n}\n"],"names":["Template","jsx","Input"],"mappings":"yMAcA,MAAMA,EAAW,IACTC,EAAA,IAACC,EAAM,CAAA,UAAU,MAAO,CAAA,EAIvBF,EAAS,KAAK,EAAE"}
1
+ {"version":3,"file":"input.stories.js","sources":["../../../src/components/input/input.stories.tsx"],"sourcesContent":["// organize-imports-ignore\nimport React from 'react'\nimport type { Meta, StoryObj } from '@storybook/react'\n\nimport { Input } from './input'\n\nconst meta: Meta<typeof Input> = {\n\ttitle: 'Components/input/simple',\n\tcomponent: Input,\n}\n\nexport default meta\ntype Story = StoryObj<typeof Input>\n\nconst Template = () => {\n\treturn <Input className=\"w-64\" />\n}\n\nexport const Default: Story = {\n\trender: Template.bind({}),\n\targs: {},\n}\n"],"names":["Template","jsx","Input"],"mappings":"yMAcA,MAAMA,EAAW,IACTC,EAAAA,IAACC,EAAA,CAAM,UAAU,MAAA,CAAO,EAIvBF,EAAS,KAAK,EAAE"}
@@ -1,5 +1,5 @@
1
- import { VariantProps } from 'class-variance-authority';
2
1
  import * as LabelPrimitive from '@radix-ui/react-label';
2
+ import { type VariantProps } from 'class-variance-authority';
3
3
  import * as React from 'react';
4
- declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import('class-variance-authority/dist/types').ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
4
+ declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
5
5
  export { Label };
@@ -1 +1 @@
1
- {"version":3,"file":"label.js","sources":["../../../src/components/label/label.tsx"],"sourcesContent":["import { cn } from '@/lib/utils'\nimport * as LabelPrimitive from '@radix-ui/react-label'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport * as React from 'react'\n\nconst labelVariants = cva(\n\t'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70',\n)\n\nconst Label = React.forwardRef<\n\tReact.ElementRef<typeof LabelPrimitive.Root>,\n\tReact.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &\n\t\tVariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n\t<LabelPrimitive.Root ref={ref} className={cn(labelVariants(), className)} {...props} />\n))\nLabel.displayName = LabelPrimitive.Root.displayName\n\nexport { Label }\n"],"names":["labelVariants","cva","Label","React","className","props","ref","jsx","LabelPrimitive","cn"],"mappings":"0QAKA,MAAMA,EAAgBC,EACrB,4FACD,EAEMC,EAAQC,EAAM,WAIlB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAC3BC,MAACC,EAAe,KAAf,CAAoB,IAAAF,EAAU,UAAWG,EAAGT,EAAA,EAAiBI,CAAS,EAAI,GAAGC,EAAO,CACrF,EACDH,EAAM,YAAcM,EAAe,KAAK"}
1
+ {"version":3,"file":"label.js","sources":["../../../src/components/label/label.tsx"],"sourcesContent":["import { cn } from '@/lib/utils'\nimport * as LabelPrimitive from '@radix-ui/react-label'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport * as React from 'react'\n\nconst labelVariants = cva(\n\t'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70',\n)\n\nconst Label = React.forwardRef<\n\tReact.ElementRef<typeof LabelPrimitive.Root>,\n\tReact.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &\n\t\tVariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n\t<LabelPrimitive.Root ref={ref} className={cn(labelVariants(), className)} {...props} />\n))\nLabel.displayName = LabelPrimitive.Root.displayName\n\nexport { Label }\n"],"names":["labelVariants","cva","Label","React","className","props","ref","jsx","LabelPrimitive","cn"],"mappings":"0QAKA,MAAMA,EAAgBC,EACrB,4FACD,EAEMC,EAAQC,EAAM,WAIlB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC3BC,MAACC,EAAe,KAAf,CAAoB,IAAAF,EAAU,UAAWG,EAAGT,EAAA,EAAiBI,CAAS,EAAI,GAAGC,EAAO,CACrF,EACDH,EAAM,YAAcM,EAAe,KAAK"}
@@ -1 +1 @@
1
- {"version":3,"file":"label.stories.js","sources":["../../../src/components/label/label.stories.tsx"],"sourcesContent":["// organize-imports-ignore\nimport React from 'react'\nimport type { Meta, StoryObj } from '@storybook/react'\n\nimport { Label } from './label'\n\nconst meta: Meta<typeof Label> = {\n\tcomponent: Label,\n}\n\nexport default meta\ntype Story = StoryObj<typeof Label>\n\nconst Template = () => {\n\treturn <Label>This is a label</Label>\n}\n\nexport const Default: Story = {\n\trender: Template.bind({}),\n\targs: {},\n}\n"],"names":["Template","jsx","Label"],"mappings":"2PAaA,MAAMA,EAAW,IACTC,EAAA,IAACC,GAAM,SAAe,iBAAA,CAAA,EAIrBF,EAAS,KAAK,EAAE"}
1
+ {"version":3,"file":"label.stories.js","sources":["../../../src/components/label/label.stories.tsx"],"sourcesContent":["// organize-imports-ignore\nimport React from 'react'\nimport type { Meta, StoryObj } from '@storybook/react'\n\nimport { Label } from './label'\n\nconst meta: Meta<typeof Label> = {\n\tcomponent: Label,\n}\n\nexport default meta\ntype Story = StoryObj<typeof Label>\n\nconst Template = () => {\n\treturn <Label>This is a label</Label>\n}\n\nexport const Default: Story = {\n\trender: Template.bind({}),\n\targs: {},\n}\n"],"names":["Template","jsx","Label"],"mappings":"2PAaA,MAAMA,EAAW,IACTC,EAAAA,IAACC,GAAM,SAAA,iBAAA,CAAe,EAIrBF,EAAS,KAAK,EAAE"}
@@ -1,4 +1,4 @@
1
- import { VariantProps } from 'class-variance-authority';
1
+ import { type VariantProps } from 'class-variance-authority';
2
2
  import * as React from 'react';
3
3
  /**
4
4
  * Variants for the multi-select component to handle different styles.
@@ -6,7 +6,7 @@ import * as React from 'react';
6
6
  */
7
7
  declare const multiSelectVariants: (props?: ({
8
8
  variant?: "default" | "destructive" | "secondary" | "inverted" | null | undefined;
9
- } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
9
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
10
10
  /**
11
11
  * Props for MultiSelect component
12
12
  */
@@ -1 +1 @@
1
- {"version":3,"file":"multi-select.js","sources":["../../../src/components/multi-select/multi-select.tsx"],"sourcesContent":["// src/components/multi-select.tsx\n\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport { CheckIcon, ChevronDown, XCircle, XIcon } from 'lucide-react'\nimport * as React from 'react'\n\nimport { cn } from '@/lib/utils'\nimport { Badge } from '../badge'\nimport { Button } from '../button'\nimport {\n\tCommand,\n\tCommandEmpty,\n\tCommandGroup,\n\tCommandInput,\n\tCommandItem,\n\tCommandList,\n\tCommandSeparator,\n} from '../command'\nimport { Popover, PopoverContent, PopoverTrigger } from '../popover'\nimport { Separator } from '../separator'\n\n/**\n * Variants for the multi-select component to handle different styles.\n * Uses class-variance-authority (cva) to define different styles based on \"variant\" prop.\n */\nconst multiSelectVariants = cva('mx-1', {\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: 'border-foreground/10 text-foreground bg-card hover:bg-card/80',\n\t\t\tsecondary:\n\t\t\t\t'border-foreground/10 bg-secondary text-secondary-foreground hover:bg-secondary/80',\n\t\t\tdestructive:\n\t\t\t\t'border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80',\n\t\t\tinverted: 'inverted',\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: 'default',\n\t},\n})\n\n/**\n * Props for MultiSelect component\n */\ninterface MultiSelectProps\n\textends React.ButtonHTMLAttributes<HTMLButtonElement>,\n\t\tVariantProps<typeof multiSelectVariants> {\n\t/**\n\t * An array of option objects to be displayed in the multi-select component.\n\t * Each option object has a label, value, and an optional icon.\n\t */\n\toptions: {\n\t\t/** The text to display for the option. */\n\t\tlabel: string\n\t\t/** The unique value associated with the option. */\n\t\tvalue: string\n\t}[]\n\n\t/**\n\t * Callback function triggered when the selected values change.\n\t * Receives an array of the new selected values.\n\t */\n\tonValueChange: (value: string[]) => void\n\n\t/** The default selected values when the component mounts. */\n\tdefaultValue?: string[]\n\n\t/**\n\t * Placeholder text to be displayed when no values are selected.\n\t * Optional, defaults to \"Select options\".\n\t */\n\tplaceholder?: string\n\n\t/**\n\t * Maximum number of items to display. Extra selected items will be summarized.\n\t * Optional, defaults to 3.\n\t */\n\tmaxCount?: number\n\n\t/**\n\t * The modality of the popover. When set to true, interaction with outside elements\n\t * will be disabled and only popover content will be visible to screen readers.\n\t * Optional, defaults to false.\n\t */\n\tmodalPopover?: boolean\n\n\t/**\n\t * If true, renders the multi-select component as a child of another component.\n\t * Optional, defaults to false.\n\t */\n\tasChild?: boolean\n\n\t/**\n\t * Additional class names to apply custom styles to the multi-select component.\n\t * Optional, can be used to add custom styles.\n\t */\n\tclassName?: string\n}\n\nexport const MultiSelect = React.forwardRef<HTMLButtonElement, MultiSelectProps>(\n\t(\n\t\t{\n\t\t\toptions,\n\t\t\tonValueChange,\n\t\t\tvariant,\n\t\t\tdefaultValue = [],\n\t\t\tplaceholder = 'Select options',\n\t\t\tmaxCount = 3,\n\t\t\tmodalPopover = false,\n\t\t\tasChild = false,\n\t\t\tclassName,\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\tconst [selectedValues, setSelectedValues] = React.useState<string[]>(defaultValue)\n\t\tconst [isPopoverOpen, setIsPopoverOpen] = React.useState(false)\n\t\tconst [isAnimating, setIsAnimating] = React.useState(false)\n\n\t\tconst handleInputKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n\t\t\tif (event.key === 'Enter') {\n\t\t\t\tsetIsPopoverOpen(true)\n\t\t\t} else if (event.key === 'Backspace' && !event.currentTarget.value) {\n\t\t\t\tconst newSelectedValues = [...selectedValues]\n\t\t\t\tnewSelectedValues.pop()\n\t\t\t\tsetSelectedValues(newSelectedValues)\n\t\t\t\tonValueChange(newSelectedValues)\n\t\t\t}\n\t\t}\n\n\t\tconst toggleOption = (option: string) => {\n\t\t\tconst newSelectedValues = selectedValues.includes(option)\n\t\t\t\t? selectedValues.filter((value) => value !== option)\n\t\t\t\t: [...selectedValues, option]\n\t\t\tsetSelectedValues(newSelectedValues)\n\t\t\tonValueChange(newSelectedValues)\n\t\t}\n\n\t\tconst handleClear = () => {\n\t\t\tsetSelectedValues([])\n\t\t\tonValueChange([])\n\t\t}\n\n\t\tconst handleTogglePopover = () => {\n\t\t\tsetIsPopoverOpen((prev) => !prev)\n\t\t}\n\n\t\tconst clearExtraOptions = () => {\n\t\t\tconst newSelectedValues = selectedValues.slice(0, maxCount)\n\t\t\tsetSelectedValues(newSelectedValues)\n\t\t\tonValueChange(newSelectedValues)\n\t\t}\n\n\t\tconst toggleAll = () => {\n\t\t\tif (selectedValues.length === options.length) {\n\t\t\t\thandleClear()\n\t\t\t} else {\n\t\t\t\tconst allValues = options.map((option) => option.value)\n\t\t\t\tsetSelectedValues(allValues)\n\t\t\t\tonValueChange(allValues)\n\t\t\t}\n\t\t}\n\n\t\treturn (\n\t\t\t<Popover open={isPopoverOpen} onOpenChange={setIsPopoverOpen} modal={modalPopover}>\n\t\t\t\t<PopoverTrigger asChild>\n\t\t\t\t\t<Button\n\t\t\t\t\t\tref={ref}\n\t\t\t\t\t\t{...props}\n\t\t\t\t\t\tonClick={handleTogglePopover}\n\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t'flex w-full p-1 rounded-md border min-h-10 h-auto items-center justify-between bg-inherit hover:bg-inherit [&_svg]:pointer-events-auto',\n\t\t\t\t\t\t\tclassName,\n\t\t\t\t\t\t)}\n\t\t\t\t\t>\n\t\t\t\t\t\t{selectedValues.length > 0 ? (\n\t\t\t\t\t\t\t<div className=\"flex justify-between items-center w-full\">\n\t\t\t\t\t\t\t\t<div className=\"flex flex-wrap items-center\">\n\t\t\t\t\t\t\t\t\t{selectedValues.slice(0, maxCount).map((value) => {\n\t\t\t\t\t\t\t\t\t\tconst option = options.find((o) => o.value === value)\n\n\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t<Badge key={value} className={cn(multiSelectVariants({ variant }))}>\n\t\t\t\t\t\t\t\t\t\t\t\t{option?.label}\n\t\t\t\t\t\t\t\t\t\t\t\t<XCircle\n\t\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"ml-2 h-4 w-4 cursor-pointer\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={(event) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tevent.stopPropagation()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttoggleOption(value)\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t</Badge>\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\t\t{selectedValues.length > maxCount && (\n\t\t\t\t\t\t\t\t\t\t<Badge\n\t\t\t\t\t\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\t\t\t\t\t'bg-transparent text-foreground border-foreground/1 hover:bg-transparent',\n\t\t\t\t\t\t\t\t\t\t\t\tmultiSelectVariants({ variant }),\n\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{`+ ${selectedValues.length - maxCount} more`}\n\t\t\t\t\t\t\t\t\t\t\t<XCircle\n\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"ml-2 h-4 w-4 cursor-pointer\"\n\t\t\t\t\t\t\t\t\t\t\t\tonClick={(event) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\tevent.stopPropagation()\n\t\t\t\t\t\t\t\t\t\t\t\t\tclearExtraOptions()\n\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t</Badge>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div className=\"flex items-center justify-between\">\n\t\t\t\t\t\t\t\t\t<XIcon\n\t\t\t\t\t\t\t\t\t\tclassName=\"h-4 mx-2 cursor-pointer text-muted-foreground\"\n\t\t\t\t\t\t\t\t\t\tonClick={(event) => {\n\t\t\t\t\t\t\t\t\t\t\tevent.stopPropagation()\n\t\t\t\t\t\t\t\t\t\t\thandleClear()\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<Separator orientation=\"vertical\" className=\"flex min-h-6 h-full\" />\n\t\t\t\t\t\t\t\t\t<ChevronDown className=\"h-4 mx-2 cursor-pointer text-muted-foreground\" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<div className=\"flex items-center justify-between w-full mx-auto\">\n\t\t\t\t\t\t\t\t<span className=\"text-sm text-muted-foreground mx-3\">{placeholder}</span>\n\t\t\t\t\t\t\t\t<ChevronDown className=\"h-4 cursor-pointer text-muted-foreground mx-2\" />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</Button>\n\t\t\t\t</PopoverTrigger>\n\t\t\t\t<PopoverContent\n\t\t\t\t\tclassName=\"w-auto p-0\"\n\t\t\t\t\talign=\"start\"\n\t\t\t\t\tonEscapeKeyDown={() => setIsPopoverOpen(false)}\n\t\t\t\t>\n\t\t\t\t\t<Command>\n\t\t\t\t\t\t<CommandInput placeholder=\"Search...\" onKeyDown={handleInputKeyDown} />\n\t\t\t\t\t\t<CommandList>\n\t\t\t\t\t\t\t<CommandEmpty>No results found.</CommandEmpty>\n\t\t\t\t\t\t\t<CommandGroup>\n\t\t\t\t\t\t\t\t<CommandItem key=\"all\" onSelect={toggleAll} className=\"cursor-pointer\">\n\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\t\t\t\t'mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary',\n\t\t\t\t\t\t\t\t\t\t\tselectedValues.length === options.length\n\t\t\t\t\t\t\t\t\t\t\t\t? 'bg-primary text-primary-foreground'\n\t\t\t\t\t\t\t\t\t\t\t\t: 'opacity-50 [&_svg]:invisible',\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<CheckIcon className=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<span>(Select All)</span>\n\t\t\t\t\t\t\t\t</CommandItem>\n\t\t\t\t\t\t\t\t{options.map((option) => {\n\t\t\t\t\t\t\t\t\tconst isSelected = selectedValues.includes(option.value)\n\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t<CommandItem\n\t\t\t\t\t\t\t\t\t\t\tkey={option.value}\n\t\t\t\t\t\t\t\t\t\t\tonSelect={() => toggleOption(option.value)}\n\t\t\t\t\t\t\t\t\t\t\tclassName=\"cursor-pointer\"\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\t\t\t\t\t\t'mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary',\n\t\t\t\t\t\t\t\t\t\t\t\t\tisSelected\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? 'bg-primary text-primary-foreground'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: 'opacity-50 [&_svg]:invisible',\n\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t<CheckIcon className=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t\t\t<span>{option.label}</span>\n\t\t\t\t\t\t\t\t\t\t</CommandItem>\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t</CommandGroup>\n\t\t\t\t\t\t\t<CommandSeparator />\n\t\t\t\t\t\t\t<CommandGroup>\n\t\t\t\t\t\t\t\t<div className=\"flex items-center justify-between\">\n\t\t\t\t\t\t\t\t\t{selectedValues.length > 0 && (\n\t\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t\t<CommandItem\n\t\t\t\t\t\t\t\t\t\t\t\tonSelect={handleClear}\n\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"flex-1 justify-center cursor-pointer\"\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\tClear\n\t\t\t\t\t\t\t\t\t\t\t</CommandItem>\n\t\t\t\t\t\t\t\t\t\t\t<Separator orientation=\"vertical\" className=\"flex min-h-6 h-full\" />\n\t\t\t\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t<CommandItem\n\t\t\t\t\t\t\t\t\t\tonSelect={() => setIsPopoverOpen(false)}\n\t\t\t\t\t\t\t\t\t\tclassName=\"flex-1 justify-center cursor-pointer max-w-full\"\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\tClose\n\t\t\t\t\t\t\t\t\t</CommandItem>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</CommandGroup>\n\t\t\t\t\t\t</CommandList>\n\t\t\t\t\t</Command>\n\t\t\t\t</PopoverContent>\n\t\t\t</Popover>\n\t\t)\n\t},\n)\n\nMultiSelect.displayName = 'MultiSelect'\n"],"names":["multiSelectVariants","cva","MultiSelect","React","options","onValueChange","variant","defaultValue","placeholder","maxCount","modalPopover","asChild","className","props","ref","selectedValues","setSelectedValues","isPopoverOpen","setIsPopoverOpen","isAnimating","setIsAnimating","handleInputKeyDown","event","newSelectedValues","toggleOption","option","value","handleClear","handleTogglePopover","prev","clearExtraOptions","toggleAll","allValues","Popover","jsx","PopoverTrigger","Button","cn","jsxs","o","Badge","XCircle","XIcon","Separator","ChevronDown","PopoverContent","Command","CommandInput","CommandList","CommandEmpty","CommandGroup","CommandItem","CheckIcon","isSelected","CommandSeparator","Fragment"],"mappings":"8zBAyBA,MAAMA,EAAsBC,EAAI,OAAQ,CACvC,SAAU,CACT,QAAS,CACR,QAAS,gEACT,UACC,oFACD,YACC,wFACD,SAAU,UAAA,CAEZ,EACA,gBAAiB,CAChB,QAAS,SAAA,CAEX,CAAC,EA4DYC,EAAcC,EA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CAAA,CAAA,EAffA,EAAO,KAgBb,CAED,CAAA,CAAA,EACF,QACC6B,EAAiB,EAAA,EACjBpB,MAAAgB,EAAA,CACA,SAACZ,EAAAA,KAAA,MAAA,CAAI,UAAU,oCACb,SAAA,CAAevB,EAAA,OAAS,GAEvBuB,EAAA,KAAAiB,EAAA,SAAA,CAAA,SAAA,CAAArB,EAAA,IAACiB,EAAA,CACA,SAAUxB,EACV,UAAU,uCACV,SAAA,OAAA,CAED,EACCO,EAAA,IAAAS,EAAA,CAAU,YAAY,WAAW,UAAU,qBAAsB,CAAA,CAAA,EACnE,EAEDT,EAAA,IAACiB,EAAA,CACA,SAAU,IAAMjC,EAAiB,EAAK,EACtC,UAAU,kDACV,SAAA,OAAA,CAAA,CAED,CAAA,CACD,CACD,CAAA,CAAA,CACD,CAAA,CAAA,CACD,CAAA,CAAA,CAAA,CACD,EACD,CAAA,CAGH,EAEAhB,EAAY,YAAc"}
1
+ {"version":3,"file":"multi-select.js","sources":["../../../src/components/multi-select/multi-select.tsx"],"sourcesContent":["// src/components/multi-select.tsx\n\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport { CheckIcon, ChevronDown, XCircle, XIcon } from 'lucide-react'\nimport * as React from 'react'\n\nimport { cn } from '@/lib/utils'\nimport { Badge } from '../badge'\nimport { Button } from '../button'\nimport {\n\tCommand,\n\tCommandEmpty,\n\tCommandGroup,\n\tCommandInput,\n\tCommandItem,\n\tCommandList,\n\tCommandSeparator,\n} from '../command'\nimport { Popover, PopoverContent, PopoverTrigger } from '../popover'\nimport { Separator } from '../separator'\n\n/**\n * Variants for the multi-select component to handle different styles.\n * Uses class-variance-authority (cva) to define different styles based on \"variant\" prop.\n */\nconst multiSelectVariants = cva('mx-1', {\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: 'border-foreground/10 text-foreground bg-card hover:bg-card/80',\n\t\t\tsecondary:\n\t\t\t\t'border-foreground/10 bg-secondary text-secondary-foreground hover:bg-secondary/80',\n\t\t\tdestructive:\n\t\t\t\t'border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80',\n\t\t\tinverted: 'inverted',\n\t\t},\n\t},\n\tdefaultVariants: {\n\t\tvariant: 'default',\n\t},\n})\n\n/**\n * Props for MultiSelect component\n */\ninterface MultiSelectProps\n\textends React.ButtonHTMLAttributes<HTMLButtonElement>,\n\t\tVariantProps<typeof multiSelectVariants> {\n\t/**\n\t * An array of option objects to be displayed in the multi-select component.\n\t * Each option object has a label, value, and an optional icon.\n\t */\n\toptions: {\n\t\t/** The text to display for the option. */\n\t\tlabel: string\n\t\t/** The unique value associated with the option. */\n\t\tvalue: string\n\t}[]\n\n\t/**\n\t * Callback function triggered when the selected values change.\n\t * Receives an array of the new selected values.\n\t */\n\tonValueChange: (value: string[]) => void\n\n\t/** The default selected values when the component mounts. */\n\tdefaultValue?: string[]\n\n\t/**\n\t * Placeholder text to be displayed when no values are selected.\n\t * Optional, defaults to \"Select options\".\n\t */\n\tplaceholder?: string\n\n\t/**\n\t * Maximum number of items to display. Extra selected items will be summarized.\n\t * Optional, defaults to 3.\n\t */\n\tmaxCount?: number\n\n\t/**\n\t * The modality of the popover. When set to true, interaction with outside elements\n\t * will be disabled and only popover content will be visible to screen readers.\n\t * Optional, defaults to false.\n\t */\n\tmodalPopover?: boolean\n\n\t/**\n\t * If true, renders the multi-select component as a child of another component.\n\t * Optional, defaults to false.\n\t */\n\tasChild?: boolean\n\n\t/**\n\t * Additional class names to apply custom styles to the multi-select component.\n\t * Optional, can be used to add custom styles.\n\t */\n\tclassName?: string\n}\n\nexport const MultiSelect = React.forwardRef<HTMLButtonElement, MultiSelectProps>(\n\t(\n\t\t{\n\t\t\toptions,\n\t\t\tonValueChange,\n\t\t\tvariant,\n\t\t\tdefaultValue = [],\n\t\t\tplaceholder = 'Select options',\n\t\t\tmaxCount = 3,\n\t\t\tmodalPopover = false,\n\t\t\tasChild = false,\n\t\t\tclassName,\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\tconst [selectedValues, setSelectedValues] = React.useState<string[]>(defaultValue)\n\t\tconst [isPopoverOpen, setIsPopoverOpen] = React.useState(false)\n\t\tconst [isAnimating, setIsAnimating] = React.useState(false)\n\n\t\tconst handleInputKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n\t\t\tif (event.key === 'Enter') {\n\t\t\t\tsetIsPopoverOpen(true)\n\t\t\t} else if (event.key === 'Backspace' && !event.currentTarget.value) {\n\t\t\t\tconst newSelectedValues = [...selectedValues]\n\t\t\t\tnewSelectedValues.pop()\n\t\t\t\tsetSelectedValues(newSelectedValues)\n\t\t\t\tonValueChange(newSelectedValues)\n\t\t\t}\n\t\t}\n\n\t\tconst toggleOption = (option: string) => {\n\t\t\tconst newSelectedValues = selectedValues.includes(option)\n\t\t\t\t? selectedValues.filter((value) => value !== option)\n\t\t\t\t: [...selectedValues, option]\n\t\t\tsetSelectedValues(newSelectedValues)\n\t\t\tonValueChange(newSelectedValues)\n\t\t}\n\n\t\tconst handleClear = () => {\n\t\t\tsetSelectedValues([])\n\t\t\tonValueChange([])\n\t\t}\n\n\t\tconst handleTogglePopover = () => {\n\t\t\tsetIsPopoverOpen((prev) => !prev)\n\t\t}\n\n\t\tconst clearExtraOptions = () => {\n\t\t\tconst newSelectedValues = selectedValues.slice(0, maxCount)\n\t\t\tsetSelectedValues(newSelectedValues)\n\t\t\tonValueChange(newSelectedValues)\n\t\t}\n\n\t\tconst toggleAll = () => {\n\t\t\tif (selectedValues.length === options.length) {\n\t\t\t\thandleClear()\n\t\t\t} else {\n\t\t\t\tconst allValues = options.map((option) => option.value)\n\t\t\t\tsetSelectedValues(allValues)\n\t\t\t\tonValueChange(allValues)\n\t\t\t}\n\t\t}\n\n\t\treturn (\n\t\t\t<Popover open={isPopoverOpen} onOpenChange={setIsPopoverOpen} modal={modalPopover}>\n\t\t\t\t<PopoverTrigger asChild>\n\t\t\t\t\t<Button\n\t\t\t\t\t\tref={ref}\n\t\t\t\t\t\t{...props}\n\t\t\t\t\t\tonClick={handleTogglePopover}\n\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t'flex w-full p-1 rounded-md border min-h-10 h-auto items-center justify-between bg-inherit hover:bg-inherit [&_svg]:pointer-events-auto',\n\t\t\t\t\t\t\tclassName,\n\t\t\t\t\t\t)}\n\t\t\t\t\t>\n\t\t\t\t\t\t{selectedValues.length > 0 ? (\n\t\t\t\t\t\t\t<div className=\"flex justify-between items-center w-full\">\n\t\t\t\t\t\t\t\t<div className=\"flex flex-wrap items-center\">\n\t\t\t\t\t\t\t\t\t{selectedValues.slice(0, maxCount).map((value) => {\n\t\t\t\t\t\t\t\t\t\tconst option = options.find((o) => o.value === value)\n\n\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t<Badge key={value} className={cn(multiSelectVariants({ variant }))}>\n\t\t\t\t\t\t\t\t\t\t\t\t{option?.label}\n\t\t\t\t\t\t\t\t\t\t\t\t<XCircle\n\t\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"ml-2 h-4 w-4 cursor-pointer\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={(event) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tevent.stopPropagation()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttoggleOption(value)\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t</Badge>\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\t\t{selectedValues.length > maxCount && (\n\t\t\t\t\t\t\t\t\t\t<Badge\n\t\t\t\t\t\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\t\t\t\t\t'bg-transparent text-foreground border-foreground/1 hover:bg-transparent',\n\t\t\t\t\t\t\t\t\t\t\t\tmultiSelectVariants({ variant }),\n\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{`+ ${selectedValues.length - maxCount} more`}\n\t\t\t\t\t\t\t\t\t\t\t<XCircle\n\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"ml-2 h-4 w-4 cursor-pointer\"\n\t\t\t\t\t\t\t\t\t\t\t\tonClick={(event) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\tevent.stopPropagation()\n\t\t\t\t\t\t\t\t\t\t\t\t\tclearExtraOptions()\n\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t</Badge>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div className=\"flex items-center justify-between\">\n\t\t\t\t\t\t\t\t\t<XIcon\n\t\t\t\t\t\t\t\t\t\tclassName=\"h-4 mx-2 cursor-pointer text-muted-foreground\"\n\t\t\t\t\t\t\t\t\t\tonClick={(event) => {\n\t\t\t\t\t\t\t\t\t\t\tevent.stopPropagation()\n\t\t\t\t\t\t\t\t\t\t\thandleClear()\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<Separator orientation=\"vertical\" className=\"flex min-h-6 h-full\" />\n\t\t\t\t\t\t\t\t\t<ChevronDown className=\"h-4 mx-2 cursor-pointer text-muted-foreground\" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<div className=\"flex items-center justify-between w-full mx-auto\">\n\t\t\t\t\t\t\t\t<span className=\"text-sm text-muted-foreground mx-3\">{placeholder}</span>\n\t\t\t\t\t\t\t\t<ChevronDown className=\"h-4 cursor-pointer text-muted-foreground mx-2\" />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</Button>\n\t\t\t\t</PopoverTrigger>\n\t\t\t\t<PopoverContent\n\t\t\t\t\tclassName=\"w-auto p-0\"\n\t\t\t\t\talign=\"start\"\n\t\t\t\t\tonEscapeKeyDown={() => setIsPopoverOpen(false)}\n\t\t\t\t>\n\t\t\t\t\t<Command>\n\t\t\t\t\t\t<CommandInput placeholder=\"Search...\" onKeyDown={handleInputKeyDown} />\n\t\t\t\t\t\t<CommandList>\n\t\t\t\t\t\t\t<CommandEmpty>No results found.</CommandEmpty>\n\t\t\t\t\t\t\t<CommandGroup>\n\t\t\t\t\t\t\t\t<CommandItem key=\"all\" onSelect={toggleAll} className=\"cursor-pointer\">\n\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\t\t\t\t'mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary',\n\t\t\t\t\t\t\t\t\t\t\tselectedValues.length === options.length\n\t\t\t\t\t\t\t\t\t\t\t\t? 'bg-primary text-primary-foreground'\n\t\t\t\t\t\t\t\t\t\t\t\t: 'opacity-50 [&_svg]:invisible',\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<CheckIcon className=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<span>(Select All)</span>\n\t\t\t\t\t\t\t\t</CommandItem>\n\t\t\t\t\t\t\t\t{options.map((option) => {\n\t\t\t\t\t\t\t\t\tconst isSelected = selectedValues.includes(option.value)\n\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t<CommandItem\n\t\t\t\t\t\t\t\t\t\t\tkey={option.value}\n\t\t\t\t\t\t\t\t\t\t\tonSelect={() => toggleOption(option.value)}\n\t\t\t\t\t\t\t\t\t\t\tclassName=\"cursor-pointer\"\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\t\t\t\t\t\t'mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary',\n\t\t\t\t\t\t\t\t\t\t\t\t\tisSelected\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? 'bg-primary text-primary-foreground'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: 'opacity-50 [&_svg]:invisible',\n\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t<CheckIcon className=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t\t\t<span>{option.label}</span>\n\t\t\t\t\t\t\t\t\t\t</CommandItem>\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t</CommandGroup>\n\t\t\t\t\t\t\t<CommandSeparator />\n\t\t\t\t\t\t\t<CommandGroup>\n\t\t\t\t\t\t\t\t<div className=\"flex items-center justify-between\">\n\t\t\t\t\t\t\t\t\t{selectedValues.length > 0 && (\n\t\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t\t<CommandItem\n\t\t\t\t\t\t\t\t\t\t\t\tonSelect={handleClear}\n\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"flex-1 justify-center cursor-pointer\"\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\tClear\n\t\t\t\t\t\t\t\t\t\t\t</CommandItem>\n\t\t\t\t\t\t\t\t\t\t\t<Separator orientation=\"vertical\" className=\"flex min-h-6 h-full\" />\n\t\t\t\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t<CommandItem\n\t\t\t\t\t\t\t\t\t\tonSelect={() => setIsPopoverOpen(false)}\n\t\t\t\t\t\t\t\t\t\tclassName=\"flex-1 justify-center cursor-pointer max-w-full\"\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\tClose\n\t\t\t\t\t\t\t\t\t</CommandItem>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</CommandGroup>\n\t\t\t\t\t\t</CommandList>\n\t\t\t\t\t</Command>\n\t\t\t\t</PopoverContent>\n\t\t\t</Popover>\n\t\t)\n\t},\n)\n\nMultiSelect.displayName = 'MultiSelect'\n"],"names":["multiSelectVariants","cva","MultiSelect","React","options","onValueChange","variant","defaultValue","placeholder","maxCount","modalPopover","asChild","className","props","ref","selectedValues","setSelectedValues","isPopoverOpen","setIsPopoverOpen","isAnimating","setIsAnimating","handleInputKeyDown","event","newSelectedValues","toggleOption","option","value","handleClear","handleTogglePopover","prev","clearExtraOptions","toggleAll","allValues","Popover","jsx","PopoverTrigger","Button","cn","jsxs","o","Badge","XCircle","XIcon","Separator","ChevronDown","PopoverContent","Command","CommandInput","CommandList","CommandEmpty","CommandGroup","CommandItem","CheckIcon","isSelected","CommandSeparator","Fragment"],"mappings":"8zBAyBA,MAAMA,EAAsBC,EAAI,OAAQ,CACvC,SAAU,CACT,QAAS,CACR,QAAS,gEACT,UACC,oFACD,YACC,wFACD,SAAU,UAAA,CACX,EAED,gBAAiB,CAChB,QAAS,SAAA,CAEX,CAAC,EA4DYC,EAAcC,EAAM,WAChC,CACC,CACC,QAAAC,EACA,cAAAC,EACA,QAAAC,EACA,aAAAC,EAAe,CAAA,EACf,YAAAC,EAAc,iBACd,SAAAC,EAAW,EACX,aAAAC,EAAe,GACf,QAAAC,EAAU,GACV,UAAAC,EACA,GAAGC,CAAA,EAEJC,IACI,CACJ,KAAM,CAACC,EAAgBC,CAAiB,EAAIb,EAAM,SAAmBI,CAAY,EAC3E,CAACU,EAAeC,CAAgB,EAAIf,EAAM,SAAS,EAAK,EACxD,CAACgB,EAAaC,CAAc,EAAIjB,EAAM,SAAS,EAAK,EAEpDkB,EAAsBC,GAAiD,CAC5E,GAAIA,EAAM,MAAQ,QACjBJ,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ACiB,EAAA,CACA,SAAU,IAAMjC,EAAiB,EAAK,EACtC,UAAU,kDACV,SAAA,OAAA,CAAA,CAED,CAAA,CACD,CAAA,CACD,CAAA,CAAA,CACD,CAAA,CAAA,CACD,CAAA,CAAA,CACD,EACD,CAAA,CAGH,EAEAhB,EAAY,YAAc"}
@@ -1 +1 @@
1
- {"version":3,"file":"multi-select.stories.js","sources":["../../../src/components/multi-select/multi-select.stories.tsx"],"sourcesContent":["// organize-imports-ignore\nimport React, { useState } from 'react'\nimport type { Meta, StoryObj } from '@storybook/react'\n\nimport { MultiSelect } from './multi-select'\nimport { Cat, Dog, Turtle } from 'lucide-react'\n\nconst meta: Meta<typeof MultiSelect> = {\n\tcomponent: MultiSelect,\n}\n\nexport default meta\ntype Story = StoryObj<typeof MultiSelect>\n\nconst frameworksList = [\n\t{ value: 'react', label: 'React', icon: Turtle },\n\t{ value: 'angular', label: 'Angular', icon: Cat },\n\t{ value: 'vue', label: 'Vue', icon: Dog },\n\t{ value: 'svelte', label: 'Svelte' },\n\t{ value: 'ember', label: 'Ember' },\n]\n\nconst Template = () => {\n\tconst [selectedFrameworks, setSelectedFrameworks] = useState<string[]>([\n\t\t'react',\n\t\t'angular',\n\t])\n\n\treturn (\n\t\t<div className=\"max-w-96\">\n\t\t\t<MultiSelect\n\t\t\t\toptions={frameworksList}\n\t\t\t\tonValueChange={setSelectedFrameworks}\n\t\t\t\tdefaultValue={selectedFrameworks}\n\t\t\t\tplaceholder=\"Select frameworks\"\n\t\t\t\tvariant=\"inverted\"\n\t\t\t\tmaxCount={3}\n\t\t\t/>\n\t\t\tSelected: {selectedFrameworks.join(', ')}\n\t\t</div>\n\t)\n}\n\nexport const Default: Story = {\n\trender: Template.bind({}),\n\targs: {},\n}\n"],"names":["frameworksList","Turtle","Cat","Dog","Template","selectedFrameworks","setSelectedFrameworks","useState","jsxs","jsx","MultiSelect"],"mappings":"0sBAcA,MAAMA,EAAiB,CACtB,CAAE,MAAO,QAAS,MAAO,QAAS,KAAMC,CAAO,EAC/C,CAAE,MAAO,UAAW,MAAO,UAAW,KAAMC,CAAI,EAChD,CAAE,MAAO,MAAO,MAAO,MAAO,KAAMC,CAAI,EACxC,CAAE,MAAO,SAAU,MAAO,QAAS,EACnC,CAAE,MAAO,QAAS,MAAO,OAAQ,CAClC,EAEMC,EAAW,IAAM,CACtB,KAAM,CAACC,EAAoBC,CAAqB,EAAIC,EAAmB,CACtE,QACA,SAAA,CACA,EAGA,OAAAC,EAAA,KAAC,MAAI,CAAA,UAAU,WACd,SAAA,CAAAC,EAAA,IAACC,EAAA,CACA,QAASV,EACT,cAAeM,EACf,aAAcD,EACd,YAAY,oBACZ,QAAQ,WACR,SAAU,CAAA,CACX,EAAE,aACSA,EAAmB,KAAK,IAAI,CAAA,EACxC,CAEF,EAGSD,EAAS,KAAK,EAAE"}
1
+ {"version":3,"file":"multi-select.stories.js","sources":["../../../src/components/multi-select/multi-select.stories.tsx"],"sourcesContent":["// organize-imports-ignore\nimport React, { useState } from 'react'\nimport type { Meta, StoryObj } from '@storybook/react'\n\nimport { MultiSelect } from './multi-select'\nimport { Cat, Dog, Turtle } from 'lucide-react'\n\nconst meta: Meta<typeof MultiSelect> = {\n\tcomponent: MultiSelect,\n}\n\nexport default meta\ntype Story = StoryObj<typeof MultiSelect>\n\nconst frameworksList = [\n\t{ value: 'react', label: 'React', icon: Turtle },\n\t{ value: 'angular', label: 'Angular', icon: Cat },\n\t{ value: 'vue', label: 'Vue', icon: Dog },\n\t{ value: 'svelte', label: 'Svelte' },\n\t{ value: 'ember', label: 'Ember' },\n]\n\nconst Template = () => {\n\tconst [selectedFrameworks, setSelectedFrameworks] = useState<string[]>([\n\t\t'react',\n\t\t'angular',\n\t])\n\n\treturn (\n\t\t<div className=\"max-w-96\">\n\t\t\t<MultiSelect\n\t\t\t\toptions={frameworksList}\n\t\t\t\tonValueChange={setSelectedFrameworks}\n\t\t\t\tdefaultValue={selectedFrameworks}\n\t\t\t\tplaceholder=\"Select frameworks\"\n\t\t\t\tvariant=\"inverted\"\n\t\t\t\tmaxCount={3}\n\t\t\t/>\n\t\t\tSelected: {selectedFrameworks.join(', ')}\n\t\t</div>\n\t)\n}\n\nexport const Default: Story = {\n\trender: Template.bind({}),\n\targs: {},\n}\n"],"names":["frameworksList","Turtle","Cat","Dog","Template","selectedFrameworks","setSelectedFrameworks","useState","jsxs","jsx","MultiSelect"],"mappings":"0sBAcA,MAAMA,EAAiB,CACtB,CAAE,MAAO,QAAS,MAAO,QAAS,KAAMC,CAAA,EACxC,CAAE,MAAO,UAAW,MAAO,UAAW,KAAMC,CAAA,EAC5C,CAAE,MAAO,MAAO,MAAO,MAAO,KAAMC,CAAA,EACpC,CAAE,MAAO,SAAU,MAAO,QAAA,EAC1B,CAAE,MAAO,QAAS,MAAO,OAAA,CAC1B,EAEMC,EAAW,IAAM,CACtB,KAAM,CAACC,EAAoBC,CAAqB,EAAIC,EAAmB,CACtE,QACA,SAAA,CACA,EAED,OACCC,EAAAA,KAAC,MAAA,CAAI,UAAU,WACd,SAAA,CAAAC,EAAAA,IAACC,EAAA,CACA,QAASV,EACT,cAAeM,EACf,aAAcD,EACd,YAAY,oBACZ,QAAQ,WACR,SAAU,CAAA,CAAA,EACT,aACSA,EAAmB,KAAK,IAAI,CAAA,EACxC,CAEF,EAGSD,EAAS,KAAK,EAAE"}
@@ -3,7 +3,7 @@ import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
3
3
  declare const NavigationMenu: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
4
4
  declare const NavigationMenuList: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & React.RefAttributes<HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
5
5
  declare const NavigationMenuItem: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>>;
6
- declare const navigationMenuTriggerStyle: (props?: import('class-variance-authority/dist/types').ClassProp | undefined) => string;
6
+ declare const navigationMenuTriggerStyle: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
7
7
  declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
8
8
  declare const NavigationMenuContent: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
9
  declare const NavigationMenuLink: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"navigation-menu.js","sources":["../../../src/components/navigation-menu/navigation-menu.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as NavigationMenuPrimitive from \"@radix-ui/react-navigation-menu\"\nimport { cva } from \"class-variance-authority\"\nimport { ChevronDown } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst NavigationMenu = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root>\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Root\n ref={ref}\n className={cn(\n \"relative z-10 flex max-w-max flex-1 items-center justify-center\",\n className\n )}\n {...props}\n >\n {children}\n <NavigationMenuViewport />\n </NavigationMenuPrimitive.Root>\n))\nNavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName\n\nconst NavigationMenuList = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.List\n ref={ref}\n className={cn(\n \"group flex flex-1 list-none items-center justify-center space-x-1\",\n className\n )}\n {...props}\n />\n))\nNavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName\n\nconst NavigationMenuItem = NavigationMenuPrimitive.Item\n\nconst navigationMenuTriggerStyle = cva(\n \"group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50\"\n)\n\nconst NavigationMenuTrigger = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Trigger\n ref={ref}\n className={cn(navigationMenuTriggerStyle(), \"group\", className)}\n {...props}\n >\n {children}{\" \"}\n <ChevronDown\n className=\"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180\"\n aria-hidden=\"true\"\n />\n </NavigationMenuPrimitive.Trigger>\n))\nNavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName\n\nconst NavigationMenuContent = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Content\n ref={ref}\n className={cn(\n \"left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto \",\n className\n )}\n {...props}\n />\n))\nNavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName\n\nconst NavigationMenuLink = NavigationMenuPrimitive.Link\n\nconst NavigationMenuViewport = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Viewport>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport>\n>(({ className, ...props }, ref) => (\n <div className={cn(\"absolute left-0 top-full flex justify-center\")}>\n <NavigationMenuPrimitive.Viewport\n className={cn(\n \"origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]\",\n className\n )}\n ref={ref}\n {...props}\n />\n </div>\n))\nNavigationMenuViewport.displayName =\n NavigationMenuPrimitive.Viewport.displayName\n\nconst NavigationMenuIndicator = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Indicator>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Indicator\n ref={ref}\n className={cn(\n \"top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in\",\n className\n )}\n {...props}\n >\n <div className=\"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md\" />\n </NavigationMenuPrimitive.Indicator>\n))\nNavigationMenuIndicator.displayName =\n NavigationMenuPrimitive.Indicator.displayName\n\nexport {\n navigationMenuTriggerStyle,\n NavigationMenu,\n NavigationMenuList,\n NavigationMenuItem,\n NavigationMenuContent,\n NavigationMenuTrigger,\n NavigationMenuLink,\n NavigationMenuIndicator,\n NavigationMenuViewport,\n}\n"],"names":["NavigationMenu","React","className","children","props","ref","jsxs","NavigationMenuPrimitive","cn","NavigationMenuViewport","NavigationMenuList","jsx","NavigationMenuItem","navigationMenuTriggerStyle","cva","NavigationMenuTrigger","ChevronDown","NavigationMenuContent","NavigationMenuLink","Navigation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A,MAAA,CAAI,UAAWH,EAAG,8CAA8C,EAC/D,SAAAG,EAAA,IAACJ,EAAwB,SAAxB,CACC,UAAWC,EACT,wVACAN,CACF,EACA,IAAAG,EACC,GAAGD,CAAA,CACN,CAAA,CACF,CACD,EACDK,EAAuB,YACrBF,EAAwB,SAAS,YAEnC,MAAMY,EAA0BlB,EAAM,WAGpC,CAAC,CAAE,UAAAC,EAAW,GAAGE,CAAM,EAAGC,IAC1BM,EAAA,IAACJ,EAAwB,UAAxB,CACC,IAAAF,EACA,UAAWG,EACT,+LACAN,CACF,EACC,GAAGE,EAEJ,SAAAO,EAAAA,IAAC,MAAI,CAAA,UAAU,wEAAyE,CAAA,CAAA,CAC1F,CACD,EACDQ,EAAwB,YACtBZ,EAAwB,UAAU"}
1
+ {"version":3,"file":"navigation-menu.js","sources":["../../../src/components/navigation-menu/navigation-menu.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as NavigationMenuPrimitive from \"@radix-ui/react-navigation-menu\"\nimport { cva } from \"class-variance-authority\"\nimport { ChevronDown } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst NavigationMenu = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root>\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Root\n ref={ref}\n className={cn(\n \"relative z-10 flex max-w-max flex-1 items-center justify-center\",\n className\n )}\n {...props}\n >\n {children}\n <NavigationMenuViewport />\n </NavigationMenuPrimitive.Root>\n))\nNavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName\n\nconst NavigationMenuList = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.List\n ref={ref}\n className={cn(\n \"group flex flex-1 list-none items-center justify-center space-x-1\",\n className\n )}\n {...props}\n />\n))\nNavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName\n\nconst NavigationMenuItem = NavigationMenuPrimitive.Item\n\nconst navigationMenuTriggerStyle = cva(\n \"group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50\"\n)\n\nconst NavigationMenuTrigger = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Trigger\n ref={ref}\n className={cn(navigationMenuTriggerStyle(), \"group\", className)}\n {...props}\n >\n {children}{\" \"}\n <ChevronDown\n className=\"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180\"\n aria-hidden=\"true\"\n />\n </NavigationMenuPrimitive.Trigger>\n))\nNavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName\n\nconst NavigationMenuContent = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Content\n ref={ref}\n className={cn(\n \"left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto \",\n className\n )}\n {...props}\n />\n))\nNavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName\n\nconst NavigationMenuLink = NavigationMenuPrimitive.Link\n\nconst NavigationMenuViewport = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Viewport>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport>\n>(({ className, ...props }, ref) => (\n <div className={cn(\"absolute left-0 top-full flex justify-center\")}>\n <NavigationMenuPrimitive.Viewport\n className={cn(\n \"origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]\",\n className\n )}\n ref={ref}\n {...props}\n />\n </div>\n))\nNavigationMenuViewport.displayName =\n NavigationMenuPrimitive.Viewport.displayName\n\nconst NavigationMenuIndicator = React.forwardRef<\n React.ElementRef<typeof NavigationMenuPrimitive.Indicator>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Indicator\n ref={ref}\n className={cn(\n \"top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in\",\n className\n )}\n {...props}\n >\n <div className=\"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md\" />\n </NavigationMenuPrimitive.Indicator>\n))\nNavigationMenuIndicator.displayName =\n NavigationMenuPrimitive.Indicator.displayName\n\nexport {\n navigationMenuTriggerStyle,\n NavigationMenu,\n NavigationMenuList,\n NavigationMenuItem,\n NavigationMenuContent,\n NavigationMenuTrigger,\n NavigationMenuLink,\n NavigationMenuIndicator,\n NavigationMenuViewport,\n}\n"],"names":["NavigationMenu","React","className","children","props","ref","jsxs","NavigationMenuPrimitive","cn","NavigationMenuViewport","NavigationMenuList","jsx","NavigationMenuItem","navigationMenuTriggerStyle","cva","NavigationMenuTrigger","ChevronDown","NavigationMenuContent","NavigationMenuLink","NavigationMenuIndicator"],"mappings":"+TAOA,MAAMA,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AG,8CAA8C,EAC/D,SAAAG,EAAAA,IAACJ,EAAwB,SAAxB,CACC,UAAWC,EACT,wVACAN,CAAA,EAEF,IAAAG,EACC,GAAGD,CAAA,CACN,CAAA,CACF,CACD,EACDK,EAAuB,YACrBF,EAAwB,SAAS,YAEnC,MAAMY,EAA0BlB,EAAM,WAGpC,CAAC,CAAE,UAAAC,EAAW,GAAGE,CAAA,EAASC,IAC1BM,EAAAA,IAACJ,EAAwB,UAAxB,CACC,IAAAF,EACA,UAAWG,EACT,+LACAN,CAAA,EAED,GAAGE,EAEJ,SAAAO,EAAAA,IAAC,MAAA,CAAI,UAAU,wEAAA,CAAyE,CAAA,CAC1F,CACD,EACDQ,EAAwB,YACtBZ,EAAwB,UAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"navigation-menu.stories.js","sources":["../../../src/components/navigation-menu/navigation-menu.stories.tsx"],"sourcesContent":["// organize-imports-ignore\nimport React from 'react'\nimport type { Meta, StoryObj } from '@storybook/react'\n\nimport {\n\tNavigationMenu,\n\tNavigationMenuContent,\n\tNavigationMenuItem,\n\tNavigationMenuLink,\n\tNavigationMenuList,\n\tNavigationMenuTrigger,\n} from './navigation-menu'\n\nconst meta: Meta<typeof NavigationMenu> = {\n\tcomponent: NavigationMenu,\n}\n\nexport default meta\ntype Story = StoryObj<typeof NavigationMenu>\n\nconst Template = () => {\n\treturn (\n\t\t<NavigationMenu>\n\t\t\t<NavigationMenuList>\n\t\t\t\t<NavigationMenuItem>\n\t\t\t\t\t<NavigationMenuTrigger>Item One</NavigationMenuTrigger>\n\t\t\t\t\t<NavigationMenuContent>\n\t\t\t\t\t\t<NavigationMenuLink>Link</NavigationMenuLink>\n\t\t\t\t\t</NavigationMenuContent>\n\t\t\t\t</NavigationMenuItem>\n\t\t\t\t<NavigationMenuItem>\n\t\t\t\t\t<NavigationMenuLink>Link</NavigationMenuLink>\n\t\t\t\t</NavigationMenuItem>\n\t\t\t</NavigationMenuList>\n\t\t</NavigationMenu>\n\t)\n}\n\nexport const Default: Story = {\n\trender: Template.bind({}),\n\targs: {},\n}\n"],"names":["Template","jsx","NavigationMenu","jsxs","NavigationMenuList","NavigationMenuItem","NavigationMenuTrigger","NavigationMenuContent","NavigationMenuLink"],"mappings":"uUAoBA,MAAMA,EAAW,IAEfC,EAAAA,IAACC,EACA,CAAA,SAAAC,EAAAA,KAACC,EACA,CAAA,SAAA,CAAAD,OAACE,EACA,CAAA,SAAA,CAAAJ,EAAAA,IAACK,GAAsB,SAAQ,UAAA,CAAA,EAC9BL,MAAAM,EAAA,CACA,SAACN,EAAAA,IAAAO,EAAA,CAAmB,gBAAI,CACzB,CAAA,CAAA,EACD,EACCP,MAAAI,EAAA,CACA,SAACJ,EAAAA,IAAAO,EAAA,CAAmB,gBAAI,CACzB,CAAA,CAAA,CAAA,CACD,CACD,CAAA,EAKOR,EAAS,KAAK,EAAE"}
1
+ {"version":3,"file":"navigation-menu.stories.js","sources":["../../../src/components/navigation-menu/navigation-menu.stories.tsx"],"sourcesContent":["// organize-imports-ignore\nimport React from 'react'\nimport type { Meta, StoryObj } from '@storybook/react'\n\nimport {\n\tNavigationMenu,\n\tNavigationMenuContent,\n\tNavigationMenuItem,\n\tNavigationMenuLink,\n\tNavigationMenuList,\n\tNavigationMenuTrigger,\n} from './navigation-menu'\n\nconst meta: Meta<typeof NavigationMenu> = {\n\tcomponent: NavigationMenu,\n}\n\nexport default meta\ntype Story = StoryObj<typeof NavigationMenu>\n\nconst Template = () => {\n\treturn (\n\t\t<NavigationMenu>\n\t\t\t<NavigationMenuList>\n\t\t\t\t<NavigationMenuItem>\n\t\t\t\t\t<NavigationMenuTrigger>Item One</NavigationMenuTrigger>\n\t\t\t\t\t<NavigationMenuContent>\n\t\t\t\t\t\t<NavigationMenuLink>Link</NavigationMenuLink>\n\t\t\t\t\t</NavigationMenuContent>\n\t\t\t\t</NavigationMenuItem>\n\t\t\t\t<NavigationMenuItem>\n\t\t\t\t\t<NavigationMenuLink>Link</NavigationMenuLink>\n\t\t\t\t</NavigationMenuItem>\n\t\t\t</NavigationMenuList>\n\t\t</NavigationMenu>\n\t)\n}\n\nexport const Default: Story = {\n\trender: Template.bind({}),\n\targs: {},\n}\n"],"names":["Template","jsx","NavigationMenu","jsxs","NavigationMenuList","NavigationMenuItem","NavigationMenuTrigger","NavigationMenuContent","NavigationMenuLink"],"mappings":"uUAoBA,MAAMA,EAAW,IAEfC,EAAAA,IAACC,EAAA,CACA,SAAAC,EAAAA,KAACC,EAAA,CACA,SAAA,CAAAD,OAACE,EAAA,CACA,SAAA,CAAAJ,EAAAA,IAACK,GAAsB,SAAA,UAAA,CAAQ,EAC/BL,MAACM,EAAA,CACA,SAAAN,EAAAA,IAACO,EAAA,CAAmB,gBAAI,CAAA,CACzB,CAAA,EACD,EACAP,MAACI,EAAA,CACA,SAAAJ,EAAAA,IAACO,EAAA,CAAmB,gBAAI,CAAA,CACzB,CAAA,CAAA,CACD,CAAA,CACD,EAKOR,EAAS,KAAK,EAAE"}
@@ -1,5 +1,5 @@
1
- import { ButtonProps } from '../button';
2
1
  import * as React from 'react';
2
+ import { ButtonProps } from '../button';
3
3
  declare const Pagination: {
4
4
  ({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
5
5
  displayName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"pagination.js","sources":["../../../src/components/pagination/pagination.tsx"],"sourcesContent":["import { cn } from '@/lib/utils'\nimport { ChevronLeft, ChevronRight, MoreHorizontal } from 'lucide-react'\nimport * as React from 'react'\nimport { Button, ButtonProps, buttonVariants } from '../button'\n\nconst Pagination = ({ className, ...props }: React.ComponentProps<'nav'>) => (\n\t<nav\n\t\trole=\"navigation\"\n\t\taria-label=\"pagination\"\n\t\tclassName={cn('mx-auto flex w-full justify-center', className)}\n\t\t{...props}\n\t/>\n)\nPagination.displayName = 'Pagination'\n\nconst PaginationContent = React.forwardRef<HTMLUListElement, React.ComponentProps<'ul'>>(\n\t({ className, ...props }, ref) => (\n\t\t<ul\n\t\t\tref={ref}\n\t\t\tclassName={cn('flex flex-row items-center gap-1', className)}\n\t\t\t{...props}\n\t\t/>\n\t),\n)\nPaginationContent.displayName = 'PaginationContent'\n\nconst PaginationItem = React.forwardRef<HTMLLIElement, React.ComponentProps<'li'>>(\n\t({ className, ...props }, ref) => (\n\t\t<li ref={ref} className={cn('', className)} {...props} />\n\t),\n)\nPaginationItem.displayName = 'PaginationItem'\n\ntype PaginationLinkProps = {\n\tisActive?: boolean\n} & ButtonProps\n\nconst PaginationLink = ({\n\tclassName,\n\tisActive,\n\tsize = 'icon',\n\t...props\n}: PaginationLinkProps) => (\n\t<Button\n\t\taria-current={isActive ? 'page' : undefined}\n\t\tclassName={cn(\n\t\t\tbuttonVariants({\n\t\t\t\tvariant: isActive ? 'default' : 'outline',\n\t\t\t\trounded: false,\n\t\t\t\tsize,\n\t\t\t}),\n\t\t\tisActive ? 'text-primary-foreground' : 'text-foreground',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t>\n\t\t{props.children}\n\t</Button>\n)\nPaginationLink.displayName = 'PaginationLink'\n\nconst PaginationPrevious = ({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n\t<PaginationLink\n\t\taria-label=\"Previous page\"\n\t\tclassName={cn('gap-1', className)}\n\t\t{...props}\n\t>\n\t\t<ChevronLeft className=\"h-4 w-4\" />\n\t</PaginationLink>\n)\nPaginationPrevious.displayName = 'PaginationPrevious'\n\nconst PaginationNext = ({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n\t<PaginationLink aria-label=\"Next page\" className={cn('gap-1', className)} {...props}>\n\t\t<ChevronRight className=\"h-4 w-4\" />\n\t</PaginationLink>\n)\nPaginationNext.displayName = 'PaginationNext'\n\nconst PaginationEllipsis = ({ className, ...props }: React.ComponentProps<'span'>) => (\n\t<span\n\t\taria-hidden\n\t\tclassName={cn('flex h-9 w-9 items-center justify-center', className)}\n\t\t{...props}\n\t>\n\t\t<MoreHorizontal className=\"h-4 w-4\" />\n\t\t<span className=\"sr-only\">More pages</span>\n\t</span>\n)\nPaginationEllipsis.displayName = 'PaginationEllipsis'\n\nexport {\n\tPagination,\n\tPaginationContent,\n\tPaginationEllipsis,\n\tPaginationItem,\n\tPaginationLink,\n\tPaginationNext,\n\tPaginationPrevious,\n}\n"],"names":["Pagination","className","props","jsx","cn","PaginationContent","React","ref","PaginationItem","PaginationLink","isActive","size","Button","buttonVariants","PaginationPrevious","ChevronLeft","PaginationNext","ChevronRight","PaginationEllipsis","jsxs","MoreHorizontal"],"mappings":"qbAKA,MAAMA,EAAa,CAAC,CAAE,UAAAC,EAAW,GAAGC,CACnC,IAAAC,EAAA,IAAC,MAAA,CACA,KAAK,aACL,aAAW,aACX,UAAWC,EAAG,qCAAsCH,CAAS,EAC5D,GAAGC,CAAA,CACL,EAEDF,EAAW,YAAc,aAEzB,MAAMK,EAAoBC,EAAM,WAC/B,CAAC,CAAE,UAAAL,EAAW,GAAGC,GAASK,IACzBJ,EAAA,IAAC,KAAA,CACA,IAAAI,EACA,UAAWH,EAAG,mCAAoCH,CAAS,EAC1D,GAAGC,CAAA,CAAA,CAGP,EACAG,EAAkB,YAAc,oBAEhC,MAAMG,EAAiBF,EAAM,WAC5B,CAAC,CAAE,UAAAL,EAAW,GAAGC,GAASK,IACzBJ,EAAA,IAAC,KAAG,CAAA,IAAAI,EAAU,UAAWH,EAAG,GAAIH,CAAS,EAAI,GAAGC,CAAO,CAAA,CAEzD,EACAM,EAAe,YAAc,iBAM7B,MAAMC,EAAiB,CAAC,CACvB,UAAAR,EACA,SAAAS,EACA,KAAAC,EAAO,OACP,GAAGT,CACJ,IACCC,EAAA,IAACS,EAAA,CACA,eAAcF,EAAW,OAAS,OAClC,UAAWN,EACVS,EAAe,CACd,QAASH,EAAW,UAAY,UAChC,QAAS,GACT,KAAAC,CAAA,CACA,EACDD,EAAW,0BAA4B,kBACvCT,CACD,EACC,GAAGC,EAEH,SAAMA,EAAA,QAAA,CACR,EAEDO,EAAe,YAAc,iBAE7B,MAAMK,EAAqB,CAAC,CAC3B,UAAAb,EACA,GAAGC,CACJ,IACCC,EAAA,IAACM,EAAA,CACA,aAAW,gBACX,UAAWL,EAAG,QAASH,CAAS,EAC/B,GAAGC,EAEJ,SAAAC,EAAAA,IAACY,EAAY,CAAA,UAAU,SAAU,CAAA,CAAA,CAClC,EAEDD,EAAmB,YAAc,qBAEjC,MAAME,EAAiB,CAAC,CACvB,UAAAf,EACA,GAAGC,CACJ,IACEC,EAAAA,IAAAM,EAAA,CAAe,aAAW,YAAY,UAAWL,EAAG,QAASH,CAAS,EAAI,GAAGC,EAC7E,SAAAC,EAAA,IAACc,EAAa,CAAA,UAAU,UAAU,CACnC,CAAA,EAEDD,EAAe,YAAc,iBAE7B,MAAME,EAAqB,CAAC,CAAE,UAAAjB,EAAW,GAAGC,CAC3C,IAAAiB,EAAA,KAAC,OAAA,CACA,cAAW,GACX,UAAWf,EAAG,2CAA4CH,CAAS,EAClE,GAAGC,EAEJ,SAAA,CAACC,EAAAA,IAAAiB,EAAA,CAAe,UAAU,SAAU,CAAA,EACnCjB,EAAA,IAAA,OAAA,CAAK,UAAU,UAAU,SAAU,YAAA,CAAA,CAAA,CAAA,CACrC,EAEDe,EAAmB,YAAc"}
1
+ {"version":3,"file":"pagination.js","sources":["../../../src/components/pagination/pagination.tsx"],"sourcesContent":["import { cn } from '@/lib/utils'\nimport { ChevronLeft, ChevronRight, MoreHorizontal } from 'lucide-react'\nimport * as React from 'react'\nimport { Button, ButtonProps, buttonVariants } from '../button'\n\nconst Pagination = ({ className, ...props }: React.ComponentProps<'nav'>) => (\n\t<nav\n\t\trole=\"navigation\"\n\t\taria-label=\"pagination\"\n\t\tclassName={cn('mx-auto flex w-full justify-center', className)}\n\t\t{...props}\n\t/>\n)\nPagination.displayName = 'Pagination'\n\nconst PaginationContent = React.forwardRef<HTMLUListElement, React.ComponentProps<'ul'>>(\n\t({ className, ...props }, ref) => (\n\t\t<ul\n\t\t\tref={ref}\n\t\t\tclassName={cn('flex flex-row items-center gap-1', className)}\n\t\t\t{...props}\n\t\t/>\n\t),\n)\nPaginationContent.displayName = 'PaginationContent'\n\nconst PaginationItem = React.forwardRef<HTMLLIElement, React.ComponentProps<'li'>>(\n\t({ className, ...props }, ref) => (\n\t\t<li ref={ref} className={cn('', className)} {...props} />\n\t),\n)\nPaginationItem.displayName = 'PaginationItem'\n\ntype PaginationLinkProps = {\n\tisActive?: boolean\n} & ButtonProps\n\nconst PaginationLink = ({\n\tclassName,\n\tisActive,\n\tsize = 'icon',\n\t...props\n}: PaginationLinkProps) => (\n\t<Button\n\t\taria-current={isActive ? 'page' : undefined}\n\t\tclassName={cn(\n\t\t\tbuttonVariants({\n\t\t\t\tvariant: isActive ? 'default' : 'outline',\n\t\t\t\trounded: false,\n\t\t\t\tsize,\n\t\t\t}),\n\t\t\tisActive ? 'text-primary-foreground' : 'text-foreground',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t>\n\t\t{props.children}\n\t</Button>\n)\nPaginationLink.displayName = 'PaginationLink'\n\nconst PaginationPrevious = ({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n\t<PaginationLink\n\t\taria-label=\"Previous page\"\n\t\tclassName={cn('gap-1', className)}\n\t\t{...props}\n\t>\n\t\t<ChevronLeft className=\"h-4 w-4\" />\n\t</PaginationLink>\n)\nPaginationPrevious.displayName = 'PaginationPrevious'\n\nconst PaginationNext = ({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n\t<PaginationLink aria-label=\"Next page\" className={cn('gap-1', className)} {...props}>\n\t\t<ChevronRight className=\"h-4 w-4\" />\n\t</PaginationLink>\n)\nPaginationNext.displayName = 'PaginationNext'\n\nconst PaginationEllipsis = ({ className, ...props }: React.ComponentProps<'span'>) => (\n\t<span\n\t\taria-hidden\n\t\tclassName={cn('flex h-9 w-9 items-center justify-center', className)}\n\t\t{...props}\n\t>\n\t\t<MoreHorizontal className=\"h-4 w-4\" />\n\t\t<span className=\"sr-only\">More pages</span>\n\t</span>\n)\nPaginationEllipsis.displayName = 'PaginationEllipsis'\n\nexport {\n\tPagination,\n\tPaginationContent,\n\tPaginationEllipsis,\n\tPaginationItem,\n\tPaginationLink,\n\tPaginationNext,\n\tPaginationPrevious,\n}\n"],"names":["Pagination","className","props","jsx","cn","PaginationContent","React","ref","PaginationItem","PaginationLink","isActive","size","Button","buttonVariants","PaginationPrevious","ChevronLeft","PaginationNext","ChevronRight","PaginationEllipsis","jsxs","MoreHorizontal"],"mappings":"qbAKA,MAAMA,EAAa,CAAC,CAAE,UAAAC,EAAW,GAAGC,KACnCC,EAAAA,IAAC,MAAA,CACA,KAAK,aACL,aAAW,aACX,UAAWC,EAAG,qCAAsCH,CAAS,EAC5D,GAAGC,CAAA,CACL,EAEDF,EAAW,YAAc,aAEzB,MAAMK,EAAoBC,EAAM,WAC/B,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAA,EAASK,IACzBJ,EAAAA,IAAC,KAAA,CACA,IAAAI,EACA,UAAWH,EAAG,mCAAoCH,CAAS,EAC1D,GAAGC,CAAA,CAAA,CAGP,EACAG,EAAkB,YAAc,oBAEhC,MAAMG,EAAiBF,EAAM,WAC5B,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAA,EAASK,IACzBJ,EAAAA,IAAC,KAAA,CAAG,IAAAI,EAAU,UAAWH,EAAG,GAAIH,CAAS,EAAI,GAAGC,CAAA,CAAO,CAEzD,EACAM,EAAe,YAAc,iBAM7B,MAAMC,EAAiB,CAAC,CACvB,UAAAR,EACA,SAAAS,EACA,KAAAC,EAAO,OACP,GAAGT,CACJ,IACCC,EAAAA,IAACS,EAAA,CACA,eAAcF,EAAW,OAAS,OAClC,UAAWN,EACVS,EAAe,CACd,QAASH,EAAW,UAAY,UAChC,QAAS,GACT,KAAAC,CAAA,CACA,EACDD,EAAW,0BAA4B,kBACvCT,CAAA,EAEA,GAAGC,EAEH,SAAAA,EAAM,QAAA,CACR,EAEDO,EAAe,YAAc,iBAE7B,MAAMK,EAAqB,CAAC,CAC3B,UAAAb,EACA,GAAGC,CACJ,IACCC,EAAAA,IAACM,EAAA,CACA,aAAW,gBACX,UAAWL,EAAG,QAASH,CAAS,EAC/B,GAAGC,EAEJ,SAAAC,EAAAA,IAACY,EAAA,CAAY,UAAU,SAAA,CAAU,CAAA,CAClC,EAEDD,EAAmB,YAAc,qBAEjC,MAAME,EAAiB,CAAC,CACvB,UAAAf,EACA,GAAGC,CACJ,IACCC,EAAAA,IAACM,EAAA,CAAe,aAAW,YAAY,UAAWL,EAAG,QAASH,CAAS,EAAI,GAAGC,EAC7E,SAAAC,EAAAA,IAACc,EAAA,CAAa,UAAU,UAAU,CAAA,CACnC,EAEDD,EAAe,YAAc,iBAE7B,MAAME,EAAqB,CAAC,CAAE,UAAAjB,EAAW,GAAGC,KAC3CiB,EAAAA,KAAC,OAAA,CACA,cAAW,GACX,UAAWf,EAAG,2CAA4CH,CAAS,EAClE,GAAGC,EAEJ,SAAA,CAAAC,EAAAA,IAACiB,EAAA,CAAe,UAAU,SAAA,CAAU,EACpCjB,EAAAA,IAAC,OAAA,CAAK,UAAU,UAAU,SAAA,YAAA,CAAU,CAAA,CAAA,CACrC,EAEDe,EAAmB,YAAc"}
@@ -1 +1 @@
1
- {"version":3,"file":"pagination.stories.js","sources":["../../../src/components/pagination/pagination.stories.tsx"],"sourcesContent":["// organize-imports-ignore\nimport React from 'react'\nimport type { Meta, StoryObj } from '@storybook/react'\n\nimport {\n\tPagination,\n\tPaginationContent,\n\tPaginationEllipsis,\n\tPaginationItem,\n\tPaginationLink,\n\tPaginationNext,\n\tPaginationPrevious,\n} from './pagination'\n\nconst meta: Meta<typeof Pagination> = {\n\tcomponent: Pagination,\n}\n\nexport default meta\ntype Story = StoryObj<typeof Pagination>\n\nconst Template = () => {\n\treturn (\n\t\t<Pagination>\n\t\t\t<PaginationContent>\n\t\t\t\t<PaginationItem>\n\t\t\t\t\t<PaginationPrevious />\n\t\t\t\t</PaginationItem>\n\t\t\t\t<PaginationItem>\n\t\t\t\t\t<PaginationLink>1</PaginationLink>\n\t\t\t\t</PaginationItem>\n\t\t\t\t<PaginationItem>\n\t\t\t\t\t<PaginationLink isActive>2</PaginationLink>\n\t\t\t\t</PaginationItem>\n\t\t\t\t<PaginationItem>\n\t\t\t\t\t<PaginationLink>3</PaginationLink>\n\t\t\t\t</PaginationItem>\n\t\t\t\t<PaginationItem>\n\t\t\t\t\t<PaginationEllipsis />\n\t\t\t\t</PaginationItem>\n\t\t\t\t<PaginationItem>\n\t\t\t\t\t<PaginationNext />\n\t\t\t\t</PaginationItem>\n\t\t\t</PaginationContent>\n\t\t</Pagination>\n\t)\n}\n\nexport const Default: Story = {\n\trender: Template.bind({}),\n\targs: {},\n}\n"],"names":["Template","jsx","Pagination","jsxs","PaginationContent","PaginationItem","PaginationPrevious","PaginationLink","PaginationEllipsis","PaginationNext"],"mappings":"yZAqBA,MAAMA,EAAW,IAEfC,EAAAA,IAACC,EACA,CAAA,SAAAC,EAAAA,KAACC,EACA,CAAA,SAAA,CAACH,EAAA,IAAAI,EAAA,CACA,SAACJ,EAAA,IAAAK,EAAA,CAAmB,CAAA,EACrB,EACCL,MAAAI,EAAA,CACA,SAACJ,EAAA,IAAAM,EAAA,CAAe,YAAC,CAAA,EAClB,QACCF,EACA,CAAA,SAAAJ,EAAA,IAACM,GAAe,SAAQ,GAAC,aAAC,CAC3B,CAAA,EACCN,MAAAI,EAAA,CACA,SAACJ,EAAA,IAAAM,EAAA,CAAe,YAAC,CAAA,EAClB,EACCN,EAAA,IAAAI,EAAA,CACA,SAACJ,EAAA,IAAAO,EAAA,CAAmB,CAAA,EACrB,EACCP,EAAA,IAAAI,EAAA,CACA,SAACJ,EAAAA,IAAAQ,EAAA,CAAA,CAAe,CACjB,CAAA,CAAA,CAAA,CACD,CACD,CAAA,EAKOT,EAAS,KAAK,EAAE"}
1
+ {"version":3,"file":"pagination.stories.js","sources":["../../../src/components/pagination/pagination.stories.tsx"],"sourcesContent":["// organize-imports-ignore\nimport React from 'react'\nimport type { Meta, StoryObj } from '@storybook/react'\n\nimport {\n\tPagination,\n\tPaginationContent,\n\tPaginationEllipsis,\n\tPaginationItem,\n\tPaginationLink,\n\tPaginationNext,\n\tPaginationPrevious,\n} from './pagination'\n\nconst meta: Meta<typeof Pagination> = {\n\tcomponent: Pagination,\n}\n\nexport default meta\ntype Story = StoryObj<typeof Pagination>\n\nconst Template = () => {\n\treturn (\n\t\t<Pagination>\n\t\t\t<PaginationContent>\n\t\t\t\t<PaginationItem>\n\t\t\t\t\t<PaginationPrevious />\n\t\t\t\t</PaginationItem>\n\t\t\t\t<PaginationItem>\n\t\t\t\t\t<PaginationLink>1</PaginationLink>\n\t\t\t\t</PaginationItem>\n\t\t\t\t<PaginationItem>\n\t\t\t\t\t<PaginationLink isActive>2</PaginationLink>\n\t\t\t\t</PaginationItem>\n\t\t\t\t<PaginationItem>\n\t\t\t\t\t<PaginationLink>3</PaginationLink>\n\t\t\t\t</PaginationItem>\n\t\t\t\t<PaginationItem>\n\t\t\t\t\t<PaginationEllipsis />\n\t\t\t\t</PaginationItem>\n\t\t\t\t<PaginationItem>\n\t\t\t\t\t<PaginationNext />\n\t\t\t\t</PaginationItem>\n\t\t\t</PaginationContent>\n\t\t</Pagination>\n\t)\n}\n\nexport const Default: Story = {\n\trender: Template.bind({}),\n\targs: {},\n}\n"],"names":["Template","jsx","Pagination","jsxs","PaginationContent","PaginationItem","PaginationPrevious","PaginationLink","PaginationEllipsis","PaginationNext"],"mappings":"yZAqBA,MAAMA,EAAW,IAEfC,EAAAA,IAACC,EAAA,CACA,SAAAC,EAAAA,KAACC,EAAA,CACA,SAAA,CAAAH,EAAAA,IAACI,EAAA,CACA,SAAAJ,EAAAA,IAACK,EAAA,CAAA,CAAmB,EACrB,EACAL,MAACI,EAAA,CACA,SAAAJ,EAAAA,IAACM,EAAA,CAAe,aAAC,EAClB,QACCF,EAAA,CACA,SAAAJ,EAAAA,IAACM,GAAe,SAAQ,GAAC,aAAC,CAAA,CAC3B,EACAN,MAACI,EAAA,CACA,SAAAJ,EAAAA,IAACM,EAAA,CAAe,aAAC,EAClB,EACAN,EAAAA,IAACI,EAAA,CACA,SAAAJ,EAAAA,IAACO,EAAA,CAAA,CAAmB,EACrB,EACAP,EAAAA,IAACI,EAAA,CACA,SAAAJ,EAAAA,IAACQ,EAAA,CAAA,CAAe,CAAA,CACjB,CAAA,CAAA,CACD,CAAA,CACD,EAKOT,EAAS,KAAK,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"file":"password-input.js","sources":["../../../src/components/password-input/password-input.tsx"],"sourcesContent":["import { Eye, EyeOff } from 'lucide-react'\nimport React, { InputHTMLAttributes, useState } from 'react'\nimport { Button } from '../button'\nimport { Input } from '../input'\nimport { Progress } from '../progress'\n\ninterface PasswordInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> {\n\tshowStrengthMeter?: boolean\n\tstrengthLabels?: {\n\t\tveryWeak: string\n\t\tweak: string\n\t\tmedium: string\n\t\tstrong: string\n\t\tveryStrong: string\n\t}\n\tshowPasswordLabel?: string\n\thidePasswordLabel?: string\n\tstrengthTitle?: string\n}\n\nexport function PasswordInput(props: PasswordInputProps) {\n\tconst {\n\t\tshowStrengthMeter = true,\n\t\tclassName,\n\t\tstrengthLabels = {\n\t\t\tveryWeak: 'Very weak',\n\t\t\tweak: 'Weak',\n\t\t\tmedium: 'Medium',\n\t\t\tstrong: 'Strong',\n\t\t\tveryStrong: 'Very strong',\n\t\t},\n\t\tshowPasswordLabel = 'Show password',\n\t\thidePasswordLabel = 'Hide password',\n\t\tstrengthTitle = 'Password strength',\n\t\t...rest\n\t} = props\n\n\tconst [password, setPassword] = useState('')\n\tconst [showPassword, setShowPassword] = useState(false)\n\n\tconst calculateStrength = (password: string): number => {\n\t\tlet strength = 0\n\t\tif (password.length >= 8) strength += 25\n\t\tif (password.match(/[a-z]/)) strength += 25\n\t\tif (password.match(/[A-Z]/)) strength += 25\n\t\tif (password.match(/[0-9]/)) strength += 25\n\t\treturn strength\n\t}\n\n\tconst getStrengthLabel = (strength: number): string => {\n\t\tif (strength === 0) return strengthLabels.veryWeak\n\t\tif (strength <= 25) return strengthLabels.weak\n\t\tif (strength <= 50) return strengthLabels.medium\n\t\tif (strength <= 75) return strengthLabels.strong\n\t\treturn strengthLabels.veryStrong\n\t}\n\n\tconst strength = calculateStrength(password)\n\tconst strengthLabel = getStrengthLabel(strength)\n\n\tconst handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n\t\tsetPassword(e.target.value)\n\t\tprops.onChange?.(e)\n\t}\n\n\treturn (\n\t\t<div className=\"w-full space-y-4\">\n\t\t\t<div className=\"relative\">\n\t\t\t\t<Input\n\t\t\t\t\t{...rest}\n\t\t\t\t\ttype={showPassword ? 'text' : 'password'}\n\t\t\t\t\tvalue={password}\n\t\t\t\t\tonChange={handleChange}\n\t\t\t\t\tclassName={`pr-10 ${className || ''}`}\n\t\t\t\t/>\n\t\t\t\t<Button\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\tclassName=\"absolute right-0 top-0 h-full\"\n\t\t\t\t\tonClick={() => setShowPassword(!showPassword)}\n\t\t\t\t\taria-label={showPassword ? hidePasswordLabel : showPasswordLabel}\n\t\t\t\t>\n\t\t\t\t\t{showPassword ? <EyeOff className=\"h-4 w-4\" /> : <Eye className=\"h-4 w-4\" />}\n\t\t\t\t</Button>\n\t\t\t</div>\n\t\t\t{showStrengthMeter && (\n\t\t\t\t<div className=\"space-y-2\">\n\t\t\t\t\t<div className=\"flex justify-between text-sm\">\n\t\t\t\t\t\t<span>{strengthTitle}:</span>\n\t\t\t\t\t\t<span>{strengthLabel}</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<Progress value={strength} className=\"h-2\" />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t)\n}\n"],"names":["PasswordInput","props","showStrengthMeter","className","strengthLabels","showPasswordLabel","hidePasswordLabel","strengthTitle","rest","password","setPassword","useState","showPassword","setShowPassword","calculateStrength","strength","getStrengthLabel","strengthLabel","handleChange","_a","jsxs","jsx","Input","Button","EyeOff","Eye","Progress"],"mappings":"whBAoBO,SAASA,EAAcC,EAA2B,CAClD,KAAA,CACL,kBAAAC,EAAoB,GACpB,UAAAC,EACA,eAAAC,EAAiB,CAChB,SAAU,YACV,KAAM,OACN,OAAQ,SACR,OAAQ,SACR,WAAY,aACb,EACA,kBAAAC,EAAoB,gBACpB,kBAAAC,EAAoB,gBACpB,cAAAC,EAAgB,oBAChB,GAAGC,CAAA,EACAP,EAEE,CAACQ,EAAUC,CAAW,EAAIC,EAAS,EAAE,EACrC,CAACC,EAAcC,CAAe,EAAIF,EAAS,EAAK,EAEhDG,EAAqBL,GAA6B,CACvD,IAAIM,EAAW,EACf,OAAIN,EAAS,QAAU,IAAGM,GAAY,IAClCN,EAAS,MAAM,OAAO,IAAGM,GAAY,IACrCN,EAAS,MAAM,OAAO,IAAGM,GAAY,IACrCN,EAAS,MAAM,OAAO,IAAGM,GAAY,IAClCA,CACR,EAEMC,EAAoBD,GACrBA,IAAa,EAAUX,EAAe,SACtCW,GAAY,GAAWX,EAAe,KACtCW,GAAY,GAAWX,EAAe,OACtCW,GAAY,GAAWX,EAAe,OACnCA,EAAe,WAGjBW,EAAWD,EAAkBL,CAAQ,EACrCQ,EAAgBD,EAAiBD,CAAQ,EAEzCG,EAAgB,GAA2C,OACpDR,EAAA,EAAE,OAAO,KAAK,GAC1BS,EAAAlB,EAAM,WAAN,MAAAkB,EAAA,KAAAlB,EAAiB,EAClB,EAGC,OAAAmB,EAAA,KAAC,MAAI,CAAA,UAAU,mBACd,SAAA,CAACA,EAAAA,KAAA,MAAA,CAAI,UAAU,WACd,SAAA,CAAAC,EAAA,IAACC,EAAA,CACC,GAAGd,EACJ,KAAMI,EAAe,OAAS,WAC9B,MAAOH,EACP,SAAUS,EACV,UAAW,SAASf,GAAa,EAAE,EAAA,CACpC,EACAkB,EAAA,IAACE,EAAA,CACA,KAAK,SACL,QAAQ,QACR,KAAK,OACL,UAAU,gCACV,QAAS,IAAMV,EAAgB,CAACD,CAAY,EAC5C,aAAYA,EAAeN,EAAoBD,EAE9C,SAAAO,QAAgBY,EAAO,CAAA,UAAU,SAAU,CAAA,EAAKH,EAAAA,IAACI,EAAI,CAAA,UAAU,SAAU,CAAA,CAAA,CAAA,CAC3E,EACD,EACCvB,GACAkB,EAAA,KAAC,MAAI,CAAA,UAAU,YACd,SAAA,CAACA,EAAAA,KAAA,MAAA,CAAI,UAAU,+BACd,SAAA,CAAAA,OAAC,OAAM,CAAA,SAAA,CAAAb,EAAc,GAAA,EAAC,EACtBc,EAAAA,IAAC,QAAM,SAAcJ,CAAA,CAAA,CAAA,EACtB,EACCI,EAAA,IAAAK,EAAA,CAAS,MAAOX,EAAU,UAAU,KAAM,CAAA,CAAA,CAC5C,CAAA,CAAA,EAEF,CAEF"}
1
+ {"version":3,"file":"password-input.js","sources":["../../../src/components/password-input/password-input.tsx"],"sourcesContent":["import { Eye, EyeOff } from 'lucide-react'\nimport React, { InputHTMLAttributes, useState } from 'react'\nimport { Button } from '../button'\nimport { Input } from '../input'\nimport { Progress } from '../progress'\n\ninterface PasswordInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> {\n\tshowStrengthMeter?: boolean\n\tstrengthLabels?: {\n\t\tveryWeak: string\n\t\tweak: string\n\t\tmedium: string\n\t\tstrong: string\n\t\tveryStrong: string\n\t}\n\tshowPasswordLabel?: string\n\thidePasswordLabel?: string\n\tstrengthTitle?: string\n}\n\nexport function PasswordInput(props: PasswordInputProps) {\n\tconst {\n\t\tshowStrengthMeter = true,\n\t\tclassName,\n\t\tstrengthLabels = {\n\t\t\tveryWeak: 'Very weak',\n\t\t\tweak: 'Weak',\n\t\t\tmedium: 'Medium',\n\t\t\tstrong: 'Strong',\n\t\t\tveryStrong: 'Very strong',\n\t\t},\n\t\tshowPasswordLabel = 'Show password',\n\t\thidePasswordLabel = 'Hide password',\n\t\tstrengthTitle = 'Password strength',\n\t\t...rest\n\t} = props\n\n\tconst [password, setPassword] = useState('')\n\tconst [showPassword, setShowPassword] = useState(false)\n\n\tconst calculateStrength = (password: string): number => {\n\t\tlet strength = 0\n\t\tif (password.length >= 8) strength += 25\n\t\tif (password.match(/[a-z]/)) strength += 25\n\t\tif (password.match(/[A-Z]/)) strength += 25\n\t\tif (password.match(/[0-9]/)) strength += 25\n\t\treturn strength\n\t}\n\n\tconst getStrengthLabel = (strength: number): string => {\n\t\tif (strength === 0) return strengthLabels.veryWeak\n\t\tif (strength <= 25) return strengthLabels.weak\n\t\tif (strength <= 50) return strengthLabels.medium\n\t\tif (strength <= 75) return strengthLabels.strong\n\t\treturn strengthLabels.veryStrong\n\t}\n\n\tconst strength = calculateStrength(password)\n\tconst strengthLabel = getStrengthLabel(strength)\n\n\tconst handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n\t\tsetPassword(e.target.value)\n\t\tprops.onChange?.(e)\n\t}\n\n\treturn (\n\t\t<div className=\"w-full space-y-4\">\n\t\t\t<div className=\"relative\">\n\t\t\t\t<Input\n\t\t\t\t\t{...rest}\n\t\t\t\t\ttype={showPassword ? 'text' : 'password'}\n\t\t\t\t\tvalue={password}\n\t\t\t\t\tonChange={handleChange}\n\t\t\t\t\tclassName={`pr-10 ${className || ''}`}\n\t\t\t\t/>\n\t\t\t\t<Button\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\tclassName=\"absolute right-0 top-0 h-full\"\n\t\t\t\t\tonClick={() => setShowPassword(!showPassword)}\n\t\t\t\t\taria-label={showPassword ? hidePasswordLabel : showPasswordLabel}\n\t\t\t\t>\n\t\t\t\t\t{showPassword ? <EyeOff className=\"h-4 w-4\" /> : <Eye className=\"h-4 w-4\" />}\n\t\t\t\t</Button>\n\t\t\t</div>\n\t\t\t{showStrengthMeter && (\n\t\t\t\t<div className=\"space-y-2\">\n\t\t\t\t\t<div className=\"flex justify-between text-sm\">\n\t\t\t\t\t\t<span>{strengthTitle}:</span>\n\t\t\t\t\t\t<span>{strengthLabel}</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<Progress value={strength} className=\"h-2\" />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t)\n}\n"],"names":["PasswordInput","props","showStrengthMeter","className","strengthLabels","showPasswordLabel","hidePasswordLabel","strengthTitle","rest","password","setPassword","useState","showPassword","setShowPassword","calculateStrength","strength","getStrengthLabel","strengthLabel","handleChange","_a","jsxs","jsx","Input","Button","EyeOff","Eye","Progress"],"mappings":"whBAoBO,SAASA,EAAcC,EAA2B,CACxD,KAAM,CACL,kBAAAC,EAAoB,GACpB,UAAAC,EACA,eAAAC,EAAiB,CAChB,SAAU,YACV,KAAM,OACN,OAAQ,SACR,OAAQ,SACR,WAAY,aAAA,EAEb,kBAAAC,EAAoB,gBACpB,kBAAAC,EAAoB,gBACpB,cAAAC,EAAgB,oBAChB,GAAGC,CAAA,EACAP,EAEE,CAACQ,EAAUC,CAAW,EAAIC,EAAS,EAAE,EACrC,CAACC,EAAcC,CAAe,EAAIF,EAAS,EAAK,EAEhDG,EAAqBL,GAA6B,CACvD,IAAIM,EAAW,EACf,OAAIN,EAAS,QAAU,IAAGM,GAAY,IAClCN,EAAS,MAAM,OAAO,IAAGM,GAAY,IACrCN,EAAS,MAAM,OAAO,IAAGM,GAAY,IACrCN,EAAS,MAAM,OAAO,IAAGM,GAAY,IAClCA,CAAA,EAGFC,EAAoBD,GACrBA,IAAa,EAAUX,EAAe,SACtCW,GAAY,GAAWX,EAAe,KACtCW,GAAY,GAAWX,EAAe,OACtCW,GAAY,GAAWX,EAAe,OACnCA,EAAe,WAGjBW,EAAWD,EAAkBL,CAAQ,EACrCQ,EAAgBD,EAAiBD,CAAQ,EAEzCG,EAAgB,GAA2C,OAChER,EAAY,EAAE,OAAO,KAAK,GAC1BS,EAAAlB,EAAM,WAAN,MAAAkB,EAAA,KAAAlB,EAAiB,EAAC,EAGnB,OACCmB,EAAAA,KAAC,MAAA,CAAI,UAAU,mBACd,SAAA,CAAAA,EAAAA,KAAC,MAAA,CAAI,UAAU,WACd,SAAA,CAAAC,EAAAA,IAACC,EAAA,CACC,GAAGd,EACJ,KAAMI,EAAe,OAAS,WAC9B,MAAOH,EACP,SAAUS,EACV,UAAW,SAASf,GAAa,EAAE,EAAA,CAAA,EAEpCkB,EAAAA,IAACE,EAAA,CACA,KAAK,SACL,QAAQ,QACR,KAAK,OACL,UAAU,gCACV,QAAS,IAAMV,EAAgB,CAACD,CAAY,EAC5C,aAAYA,EAAeN,EAAoBD,EAE9C,SAAAO,QAAgBY,EAAA,CAAO,UAAU,UAAU,EAAKH,EAAAA,IAACI,EAAA,CAAI,UAAU,SAAA,CAAU,CAAA,CAAA,CAC3E,EACD,EACCvB,GACAkB,EAAAA,KAAC,MAAA,CAAI,UAAU,YACd,SAAA,CAAAA,EAAAA,KAAC,MAAA,CAAI,UAAU,+BACd,SAAA,CAAAA,OAAC,OAAA,CAAM,SAAA,CAAAb,EAAc,GAAA,EAAC,EACtBc,EAAAA,IAAC,QAAM,SAAAJ,CAAA,CAAc,CAAA,EACtB,EACAI,EAAAA,IAACK,EAAA,CAAS,MAAOX,EAAU,UAAU,KAAA,CAAM,CAAA,CAAA,CAC5C,CAAA,EAEF,CAEF"}
@@ -1 +1 @@
1
- {"version":3,"file":"password-input.stories.js","sources":["../../../src/components/password-input/password-input.stories.tsx"],"sourcesContent":["// organize-imports-ignore\nimport React from 'react'\nimport type { Meta, StoryObj } from '@storybook/react'\n\nimport { PasswordInput } from './password-input'\n\nconst meta: Meta<typeof PasswordInput> = {\n\ttitle: 'Components/input/password',\n\tcomponent: PasswordInput,\n}\n\nexport default meta\ntype Story = StoryObj<typeof PasswordInput>\n\nconst Template = () => {\n\treturn (\n\t\t<div className=\"w-96\">\n\t\t\t<PasswordInput />\n\t\t</div>\n\t)\n}\n\nexport const Default: Story = {\n\trender: Template.bind({}),\n\targs: {},\n}\n"],"names":["Template","jsx","PasswordInput"],"mappings":"+eAcA,MAAMA,EAAW,UAEd,MAAI,CAAA,UAAU,OACd,SAAAC,MAACC,GAAc,CAAA,EAChB,EAKOF,EAAS,KAAK,EAAE"}
1
+ {"version":3,"file":"password-input.stories.js","sources":["../../../src/components/password-input/password-input.stories.tsx"],"sourcesContent":["// organize-imports-ignore\nimport React from 'react'\nimport type { Meta, StoryObj } from '@storybook/react'\n\nimport { PasswordInput } from './password-input'\n\nconst meta: Meta<typeof PasswordInput> = {\n\ttitle: 'Components/input/password',\n\tcomponent: PasswordInput,\n}\n\nexport default meta\ntype Story = StoryObj<typeof PasswordInput>\n\nconst Template = () => {\n\treturn (\n\t\t<div className=\"w-96\">\n\t\t\t<PasswordInput />\n\t\t</div>\n\t)\n}\n\nexport const Default: Story = {\n\trender: Template.bind({}),\n\targs: {},\n}\n"],"names":["Template","jsx","PasswordInput"],"mappings":"+eAcA,MAAMA,EAAW,UAEd,MAAA,CAAI,UAAU,OACd,SAAAC,MAACC,IAAc,EAChB,EAKOF,EAAS,KAAK,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"file":"popover.js","sources":["../../../src/components/popover/popover.tsx"],"sourcesContent":["import { cn } from '@/lib/utils'\nimport * as PopoverPrimitive from '@radix-ui/react-popover'\nimport * as React from 'react'\n\nconst Popover = PopoverPrimitive.Root\n\nconst PopoverTrigger = PopoverPrimitive.Trigger\n\nconst PopoverAnchor = PopoverPrimitive.Anchor\n\nconst PopoverContent = React.forwardRef<\n\tReact.ElementRef<typeof PopoverPrimitive.Content>,\n\tReact.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (\n\t<PopoverPrimitive.Portal>\n\t\t<PopoverPrimitive.Content\n\t\t\tref={ref}\n\t\t\talign={align}\n\t\t\tsideOffset={sideOffset}\n\t\t\tclassName={cn(\n\t\t\t\t'z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t</PopoverPrimitive.Portal>\n))\nPopoverContent.displayName = PopoverPrimitive.Content.displayName\n\nexport { Popover, PopoverAnchor, PopoverContent, PopoverTrigger }\n"],"names":["Popover","PopoverPrimitive","PopoverTrigger","PopoverContent","React","className","align","sideOffset","props","ref","jsx","cn"],"mappings":"6NAIA,MAAMA,EAAUC,EAAiB,KAE3BC,EAAiBD,EAAiB,QAIlCE,EAAiBC,EAAM,WAG3B,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAQ,SAAU,WAAAC,EAAa,EAAG,GAAGC,CAAM,EAAGC,IAC5DC,EAAAA,IAAAT,EAAiB,OAAjB,CACA,SAAAS,EAAA,IAACT,EAAiB,QAAjB,CACA,IAAAQ,EACA,MAAAH,EACA,WAAAC,EACA,UAAWI,EACV,6aACAN,CACD,EACC,GAAGG,CAAA,CACL,EACD,CACA,EACDL,EAAe,YAAcF,EAAiB,QAAQ"}
1
+ {"version":3,"file":"popover.js","sources":["../../../src/components/popover/popover.tsx"],"sourcesContent":["import { cn } from '@/lib/utils'\nimport * as PopoverPrimitive from '@radix-ui/react-popover'\nimport * as React from 'react'\n\nconst Popover = PopoverPrimitive.Root\n\nconst PopoverTrigger = PopoverPrimitive.Trigger\n\nconst PopoverAnchor = PopoverPrimitive.Anchor\n\nconst PopoverContent = React.forwardRef<\n\tReact.ElementRef<typeof PopoverPrimitive.Content>,\n\tReact.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (\n\t<PopoverPrimitive.Portal>\n\t\t<PopoverPrimitive.Content\n\t\t\tref={ref}\n\t\t\talign={align}\n\t\t\tsideOffset={sideOffset}\n\t\t\tclassName={cn(\n\t\t\t\t'z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t</PopoverPrimitive.Portal>\n))\nPopoverContent.displayName = PopoverPrimitive.Content.displayName\n\nexport { Popover, PopoverAnchor, PopoverContent, PopoverTrigger }\n"],"names":["Popover","PopoverPrimitive","PopoverTrigger","PopoverContent","React","className","align","sideOffset","props","ref","jsx","cn"],"mappings":"6NAIA,MAAMA,EAAUC,EAAiB,KAE3BC,EAAiBD,EAAiB,QAIlCE,EAAiBC,EAAM,WAG3B,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAQ,SAAU,WAAAC,EAAa,EAAG,GAAGC,CAAA,EAASC,IAC7DC,EAAAA,IAACT,EAAiB,OAAjB,CACA,SAAAS,EAAAA,IAACT,EAAiB,QAAjB,CACA,IAAAQ,EACA,MAAAH,EACA,WAAAC,EACA,UAAWI,EACV,6aACAN,CAAA,EAEA,GAAGG,CAAA,CACL,EACD,CACA,EACDL,EAAe,YAAcF,EAAiB,QAAQ"}
@@ -1 +1 @@
1
- {"version":3,"file":"popover.stories.js","sources":["../../../src/components/popover/popover.stories.tsx"],"sourcesContent":["// organize-imports-ignore\nimport React from 'react'\nimport type { Meta, StoryObj } from '@storybook/react'\n\nimport { Popover, PopoverContent, PopoverTrigger } from './popover'\nimport { Button } from '../button/button'\n\nconst meta: Meta<typeof Popover> = {\n\tcomponent: Popover,\n}\n\nexport default meta\ntype Story = StoryObj<typeof Popover>\n\nconst Template = () => {\n\tconst variants = ['default', 'secondary', 'destructive', 'outline']\n\treturn (\n\t\t<Popover>\n\t\t\t<PopoverTrigger asChild>\n\t\t\t\t<Button variant=\"outline\">Open popover</Button>\n\t\t\t</PopoverTrigger>\n\t\t\t<PopoverContent className=\"w-80\">\n\t\t\t\t<div className=\"bg-gray-200 p-6 w-full h-20\">Popover content</div>\n\t\t\t</PopoverContent>\n\t\t</Popover>\n\t)\n}\n\nexport const Default: Story = {\n\trender: Template.bind({}),\n\targs: {},\n}\n"],"names":["Template","Popover","jsx","PopoverTrigger","Button","PopoverContent"],"mappings":"iZAcA,MAAMA,EAAW,WAGdC,EACA,CAAA,SAAA,CAACC,EAAAA,IAAAC,EAAA,CAAe,QAAO,GACtB,SAAAD,EAAA,IAACE,GAAO,QAAQ,UAAU,wBAAY,CACvC,CAAA,EACAF,EAAAA,IAACG,GAAe,UAAU,OACzB,eAAC,MAAI,CAAA,UAAU,8BAA8B,SAAA,iBAAe,CAAA,CAC7D,CAAA,CAAA,EACD,EAKOL,EAAS,KAAK,EAAE"}
1
+ {"version":3,"file":"popover.stories.js","sources":["../../../src/components/popover/popover.stories.tsx"],"sourcesContent":["// organize-imports-ignore\nimport React from 'react'\nimport type { Meta, StoryObj } from '@storybook/react'\n\nimport { Popover, PopoverContent, PopoverTrigger } from './popover'\nimport { Button } from '../button/button'\n\nconst meta: Meta<typeof Popover> = {\n\tcomponent: Popover,\n}\n\nexport default meta\ntype Story = StoryObj<typeof Popover>\n\nconst Template = () => {\n\tconst variants = ['default', 'secondary', 'destructive', 'outline']\n\treturn (\n\t\t<Popover>\n\t\t\t<PopoverTrigger asChild>\n\t\t\t\t<Button variant=\"outline\">Open popover</Button>\n\t\t\t</PopoverTrigger>\n\t\t\t<PopoverContent className=\"w-80\">\n\t\t\t\t<div className=\"bg-gray-200 p-6 w-full h-20\">Popover content</div>\n\t\t\t</PopoverContent>\n\t\t</Popover>\n\t)\n}\n\nexport const Default: Story = {\n\trender: Template.bind({}),\n\targs: {},\n}\n"],"names":["Template","Popover","jsx","PopoverTrigger","Button","PopoverContent"],"mappings":"iZAcA,MAAMA,EAAW,WAGdC,EAAA,CACA,SAAA,CAAAC,EAAAA,IAACC,EAAA,CAAe,QAAO,GACtB,SAAAD,EAAAA,IAACE,GAAO,QAAQ,UAAU,wBAAY,CAAA,CACvC,EACAF,EAAAA,IAACG,GAAe,UAAU,OACzB,eAAC,MAAA,CAAI,UAAU,8BAA8B,SAAA,iBAAA,CAAe,CAAA,CAC7D,CAAA,EACD,EAKOL,EAAS,KAAK,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"file":"progress.js","sources":["../../../src/components/progress/progress.tsx"],"sourcesContent":["import * as ProgressPrimitive from '@radix-ui/react-progress'\nimport * as React from 'react'\n\nimport { cn } from '@/lib/utils/cn'\n\nconst Progress = React.forwardRef<\n\tReact.ElementRef<typeof ProgressPrimitive.Root>,\n\tReact.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>\n>(({ className, value, ...props }, ref) => (\n\t<ProgressPrimitive.Root\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'relative h-2 w-full overflow-hidden rounded-full bg-primary/20',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t>\n\t\t<ProgressPrimitive.Indicator\n\t\t\tclassName=\"h-full w-full flex-1 bg-primary transition-all\"\n\t\t\tstyle={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n\t\t/>\n\t</ProgressPrimitive.Root>\n))\nProgress.displayName = ProgressPrimitive.Root.displayName\n\nexport { Progress }\n"],"names":["Progress","React","className","value","props","ref","jsx","ProgressPrimitive","cn"],"mappings":"0MAKM,MAAAA,EAAWC,EAAM,WAGrB,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAO,GAAGC,GAASC,IAClCC,EAAA,IAACC,EAAkB,KAAlB,CACA,IAAAF,EACA,UAAWG,EACV,iEACAN,CACD,EACC,GAAGE,EAEJ,SAAAE,EAAA,IAACC,EAAkB,UAAlB,CACA,UAAU,iDACV,MAAO,CAAE,UAAW,eAAe,KAAOJ,GAAS,EAAE,IAAK,CAAA,CAAA,CAC3D,CACD,CACA,EACDH,EAAS,YAAcO,EAAkB,KAAK"}
1
+ {"version":3,"file":"progress.js","sources":["../../../src/components/progress/progress.tsx"],"sourcesContent":["import * as ProgressPrimitive from '@radix-ui/react-progress'\nimport * as React from 'react'\n\nimport { cn } from '@/lib/utils/cn'\n\nconst Progress = React.forwardRef<\n\tReact.ElementRef<typeof ProgressPrimitive.Root>,\n\tReact.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>\n>(({ className, value, ...props }, ref) => (\n\t<ProgressPrimitive.Root\n\t\tref={ref}\n\t\tclassName={cn(\n\t\t\t'relative h-2 w-full overflow-hidden rounded-full bg-primary/20',\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t>\n\t\t<ProgressPrimitive.Indicator\n\t\t\tclassName=\"h-full w-full flex-1 bg-primary transition-all\"\n\t\t\tstyle={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n\t\t/>\n\t</ProgressPrimitive.Root>\n))\nProgress.displayName = ProgressPrimitive.Root.displayName\n\nexport { Progress }\n"],"names":["Progress","React","className","value","props","ref","jsx","ProgressPrimitive","cn"],"mappings":"0MAKA,MAAMA,EAAWC,EAAM,WAGrB,CAAC,CAAE,UAAAC,EAAW,MAAAC,EAAO,GAAGC,GAASC,IAClCC,EAAAA,IAACC,EAAkB,KAAlB,CACA,IAAAF,EACA,UAAWG,EACV,iEACAN,CAAA,EAEA,GAAGE,EAEJ,SAAAE,EAAAA,IAACC,EAAkB,UAAlB,CACA,UAAU,iDACV,MAAO,CAAE,UAAW,eAAe,KAAOJ,GAAS,EAAE,IAAA,CAAK,CAAA,CAC3D,CACD,CACA,EACDH,EAAS,YAAcO,EAAkB,KAAK"}
@@ -1 +1 @@
1
- {"version":3,"file":"progress.stories.js","sources":["../../../src/components/progress/progress.stories.tsx"],"sourcesContent":["// organize-imports-ignore\nimport React from 'react'\nimport type { Meta, StoryObj } from '@storybook/react'\n\nimport { Progress } from './progress'\n\nconst meta: Meta<typeof Progress> = {\n\tcomponent: Progress,\n}\n\nexport default meta\ntype Story = StoryObj<typeof Progress>\n\nconst Template = () => {\n\treturn <Progress value={90} />\n}\n\nexport const Default: Story = {\n\trender: Template.bind({}),\n\targs: {},\n}\n"],"names":["Template","jsx","Progress"],"mappings":"4MAaA,MAAMA,EAAW,IACTC,EAAA,IAACC,EAAS,CAAA,MAAO,EAAI,CAAA,EAIpBF,EAAS,KAAK,EAAE"}
1
+ {"version":3,"file":"progress.stories.js","sources":["../../../src/components/progress/progress.stories.tsx"],"sourcesContent":["// organize-imports-ignore\nimport React from 'react'\nimport type { Meta, StoryObj } from '@storybook/react'\n\nimport { Progress } from './progress'\n\nconst meta: Meta<typeof Progress> = {\n\tcomponent: Progress,\n}\n\nexport default meta\ntype Story = StoryObj<typeof Progress>\n\nconst Template = () => {\n\treturn <Progress value={90} />\n}\n\nexport const Default: Story = {\n\trender: Template.bind({}),\n\targs: {},\n}\n"],"names":["Template","jsx","Progress"],"mappings":"4MAaA,MAAMA,EAAW,IACTC,EAAAA,IAACC,EAAA,CAAS,MAAO,EAAA,CAAI,EAIpBF,EAAS,KAAK,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.js","sources":["../../../src/components/radio-group/radio-group.tsx"],"sourcesContent":["import { cn } from '@/lib/utils'\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group'\nimport { Circle } from 'lucide-react'\nimport * as React from 'react'\n\nconst RadioGroup = React.forwardRef<\n\tReact.ElementRef<typeof RadioGroupPrimitive.Root>,\n\tReact.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>\n>(({ className, ...props }, ref) => {\n\treturn (\n\t\t<RadioGroupPrimitive.Root\n\t\t\tclassName={cn('grid gap-2', className)}\n\t\t\t{...props}\n\t\t\tref={ref}\n\t\t/>\n\t)\n})\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName\n\nconst RadioGroupItem = React.forwardRef<\n\tReact.ElementRef<typeof RadioGroupPrimitive.Item>,\n\tReact.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>\n>(({ className, ...props }, ref) => {\n\treturn (\n\t\t<RadioGroupPrimitive.Item\n\t\t\tref={ref}\n\t\t\tclassName={cn(\n\t\t\t\t'aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t<RadioGroupPrimitive.Indicator className=\"flex items-center justify-center\">\n\t\t\t\t<Circle className=\"h-3.5 w-3.5 fill-primary\" />\n\t\t\t</RadioGroupPrimitive.Indicator>\n\t\t</RadioGroupPrimitive.Item>\n\t)\n})\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName\n\nexport { RadioGroup, RadioGroupItem }\n"],"names":["RadioGroup","React","className","props","ref","jsx","RadioGroupPrimitive","cn","RadioGroupItem","Circle"],"mappings":"uQAKM,MAAAA,EAAaC,EAAM,WAGvB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAE1BC,EAAA,IAACC,EAAoB,KAApB,CACA,UAAWC,EAAG,aAAcL,CAAS,EACpC,GAAGC,EACJ,IAAAC,CAAA,CACD,CAED,EACDJ,EAAW,YAAcM,EAAoB,KAAK,YAE5C,MAAAE,EAAiBP,EAAM,WAG3B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAE1BC,EAAA,IAACC,EAAoB,KAApB,CACA,IAAAF,EACA,UAAWG,EACV,+LACAL,CACD,EACC,GAAGC,EAEJ,SAAAE,EAAAA,IAACC,EAAoB,UAApB,CAA8B,UAAU,mCACxC,SAACD,EAAA,IAAAI,EAAA,CAAO,UAAU,0BAA2B,CAAA,CAC9C,CAAA,CAAA,CACD,CAED,EACDD,EAAe,YAAcF,EAAoB,KAAK"}
1
+ {"version":3,"file":"radio-group.js","sources":["../../../src/components/radio-group/radio-group.tsx"],"sourcesContent":["import { cn } from '@/lib/utils'\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group'\nimport { Circle } from 'lucide-react'\nimport * as React from 'react'\n\nconst RadioGroup = React.forwardRef<\n\tReact.ElementRef<typeof RadioGroupPrimitive.Root>,\n\tReact.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>\n>(({ className, ...props }, ref) => {\n\treturn (\n\t\t<RadioGroupPrimitive.Root\n\t\t\tclassName={cn('grid gap-2', className)}\n\t\t\t{...props}\n\t\t\tref={ref}\n\t\t/>\n\t)\n})\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName\n\nconst RadioGroupItem = React.forwardRef<\n\tReact.ElementRef<typeof RadioGroupPrimitive.Item>,\n\tReact.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>\n>(({ className, ...props }, ref) => {\n\treturn (\n\t\t<RadioGroupPrimitive.Item\n\t\t\tref={ref}\n\t\t\tclassName={cn(\n\t\t\t\t'aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t<RadioGroupPrimitive.Indicator className=\"flex items-center justify-center\">\n\t\t\t\t<Circle className=\"h-3.5 w-3.5 fill-primary\" />\n\t\t\t</RadioGroupPrimitive.Indicator>\n\t\t</RadioGroupPrimitive.Item>\n\t)\n})\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName\n\nexport { RadioGroup, RadioGroupItem }\n"],"names":["RadioGroup","React","className","props","ref","jsx","RadioGroupPrimitive","cn","RadioGroupItem","Circle"],"mappings":"uQAKA,MAAMA,EAAaC,EAAM,WAGvB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAE1BC,EAAAA,IAACC,EAAoB,KAApB,CACA,UAAWC,EAAG,aAAcL,CAAS,EACpC,GAAGC,EACJ,IAAAC,CAAA,CAAA,CAGF,EACDJ,EAAW,YAAcM,EAAoB,KAAK,YAElD,MAAME,EAAiBP,EAAM,WAG3B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAE1BC,EAAAA,IAACC,EAAoB,KAApB,CACA,IAAAF,EACA,UAAWG,EACV,+LACAL,CAAA,EAEA,GAAGC,EAEJ,SAAAE,EAAAA,IAACC,EAAoB,UAApB,CAA8B,UAAU,mCACxC,SAAAD,EAAAA,IAACI,EAAA,CAAO,UAAU,0BAAA,CAA2B,CAAA,CAC9C,CAAA,CAAA,CAGF,EACDD,EAAe,YAAcF,EAAoB,KAAK"}
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.stories.js","sources":["../../../src/components/radio-group/radio-group.stories.tsx"],"sourcesContent":["// organize-imports-ignore\nimport React from 'react'\nimport type { Meta, StoryObj } from '@storybook/react'\nimport { RadioGroup, RadioGroupItem } from './radio-group'\nimport { Label } from '../label'\n\nconst meta: Meta<typeof RadioGroup> = {\n\tcomponent: RadioGroup,\n}\n\nexport default meta\ntype Story = StoryObj<typeof RadioGroup>\n\nconst Template = () => {\n\treturn (\n\t\t<RadioGroup defaultValue=\"comfortable\">\n\t\t\t<div className=\"flex items-center space-x-2\">\n\t\t\t\t<RadioGroupItem value=\"default\" id=\"r1\" />\n\t\t\t\t<Label htmlFor=\"r1\">Default</Label>\n\t\t\t</div>\n\t\t\t<div className=\"flex items-center space-x-2\">\n\t\t\t\t<RadioGroupItem value=\"comfortable\" id=\"r2\" />\n\t\t\t\t<Label htmlFor=\"r2\">Comfortable</Label>\n\t\t\t</div>\n\t\t\t<div className=\"flex items-center space-x-2\">\n\t\t\t\t<RadioGroupItem value=\"compact\" id=\"r3\" />\n\t\t\t\t<Label htmlFor=\"r3\">Compact</Label>\n\t\t\t</div>\n\t\t</RadioGroup>\n\t)\n}\n\nexport const Default: Story = {\n\trender: Template.bind({}),\n\targs: {},\n}\n"],"names":["Template","jsxs","RadioGroup","jsx","RadioGroupItem","Label"],"mappings":"uWAaA,MAAMA,EAAW,IAEfC,EAAA,KAACC,EAAW,CAAA,aAAa,cACxB,SAAA,CAACD,EAAAA,KAAA,MAAA,CAAI,UAAU,8BACd,SAAA,CAAAE,EAAA,IAACC,EAAe,CAAA,MAAM,UAAU,GAAG,KAAK,EACvCD,EAAA,IAAAE,EAAA,CAAM,QAAQ,KAAK,SAAO,SAAA,CAAA,CAAA,EAC5B,EACAJ,EAAAA,KAAC,MAAI,CAAA,UAAU,8BACd,SAAA,CAAAE,EAAA,IAACC,EAAe,CAAA,MAAM,cAAc,GAAG,KAAK,EAC3CD,EAAA,IAAAE,EAAA,CAAM,QAAQ,KAAK,SAAW,aAAA,CAAA,CAAA,EAChC,EACAJ,EAAAA,KAAC,MAAI,CAAA,UAAU,8BACd,SAAA,CAAAE,EAAA,IAACC,EAAe,CAAA,MAAM,UAAU,GAAG,KAAK,EACvCD,EAAA,IAAAE,EAAA,CAAM,QAAQ,KAAK,SAAO,SAAA,CAAA,CAAA,CAC5B,CAAA,CAAA,EACD,EAKOL,EAAS,KAAK,EAAE"}
1
+ {"version":3,"file":"radio-group.stories.js","sources":["../../../src/components/radio-group/radio-group.stories.tsx"],"sourcesContent":["// organize-imports-ignore\nimport React from 'react'\nimport type { Meta, StoryObj } from '@storybook/react'\nimport { RadioGroup, RadioGroupItem } from './radio-group'\nimport { Label } from '../label'\n\nconst meta: Meta<typeof RadioGroup> = {\n\tcomponent: RadioGroup,\n}\n\nexport default meta\ntype Story = StoryObj<typeof RadioGroup>\n\nconst Template = () => {\n\treturn (\n\t\t<RadioGroup defaultValue=\"comfortable\">\n\t\t\t<div className=\"flex items-center space-x-2\">\n\t\t\t\t<RadioGroupItem value=\"default\" id=\"r1\" />\n\t\t\t\t<Label htmlFor=\"r1\">Default</Label>\n\t\t\t</div>\n\t\t\t<div className=\"flex items-center space-x-2\">\n\t\t\t\t<RadioGroupItem value=\"comfortable\" id=\"r2\" />\n\t\t\t\t<Label htmlFor=\"r2\">Comfortable</Label>\n\t\t\t</div>\n\t\t\t<div className=\"flex items-center space-x-2\">\n\t\t\t\t<RadioGroupItem value=\"compact\" id=\"r3\" />\n\t\t\t\t<Label htmlFor=\"r3\">Compact</Label>\n\t\t\t</div>\n\t\t</RadioGroup>\n\t)\n}\n\nexport const Default: Story = {\n\trender: Template.bind({}),\n\targs: {},\n}\n"],"names":["Template","jsxs","RadioGroup","jsx","RadioGroupItem","Label"],"mappings":"uWAaA,MAAMA,EAAW,IAEfC,EAAAA,KAACC,EAAA,CAAW,aAAa,cACxB,SAAA,CAAAD,EAAAA,KAAC,MAAA,CAAI,UAAU,8BACd,SAAA,CAAAE,EAAAA,IAACC,EAAA,CAAe,MAAM,UAAU,GAAG,KAAK,EACxCD,EAAAA,IAACE,EAAA,CAAM,QAAQ,KAAK,SAAA,SAAA,CAAO,CAAA,EAC5B,EACAJ,EAAAA,KAAC,MAAA,CAAI,UAAU,8BACd,SAAA,CAAAE,EAAAA,IAACC,EAAA,CAAe,MAAM,cAAc,GAAG,KAAK,EAC5CD,EAAAA,IAACE,EAAA,CAAM,QAAQ,KAAK,SAAA,aAAA,CAAW,CAAA,EAChC,EACAJ,EAAAA,KAAC,MAAA,CAAI,UAAU,8BACd,SAAA,CAAAE,EAAAA,IAACC,EAAA,CAAe,MAAM,UAAU,GAAG,KAAK,EACxCD,EAAAA,IAACE,EAAA,CAAM,QAAQ,KAAK,SAAA,SAAA,CAAO,CAAA,CAAA,CAC5B,CAAA,EACD,EAKOL,EAAS,KAAK,EAAE"}