@arolariu/components 0.3.1 → 0.4.1

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 (99) hide show
  1. package/EXAMPLES.md +1035 -1035
  2. package/changelog.md +9 -0
  3. package/dist/components/ui/accordion.js.map +1 -1
  4. package/dist/components/ui/alert-dialog.js.map +1 -1
  5. package/dist/components/ui/alert.js.map +1 -1
  6. package/dist/components/ui/aspect-ratio.js.map +1 -1
  7. package/dist/components/ui/avatar.js.map +1 -1
  8. package/dist/components/ui/background-beams.js.map +1 -1
  9. package/dist/components/ui/badge.js.map +1 -1
  10. package/dist/components/ui/breadcrumb.js.map +1 -1
  11. package/dist/components/ui/bubble-background.js.map +1 -1
  12. package/dist/components/ui/button-group.js.map +1 -1
  13. package/dist/components/ui/button.js.map +1 -1
  14. package/dist/components/ui/calendar.js.map +1 -1
  15. package/dist/components/ui/card.js.map +1 -1
  16. package/dist/components/ui/carousel.js.map +1 -1
  17. package/dist/components/ui/chart.d.ts +19 -41
  18. package/dist/components/ui/chart.d.ts.map +1 -1
  19. package/dist/components/ui/chart.js +34 -35
  20. package/dist/components/ui/chart.js.map +1 -1
  21. package/dist/components/ui/checkbox.js +2 -2
  22. package/dist/components/ui/checkbox.js.map +1 -1
  23. package/dist/components/ui/collapsible.js.map +1 -1
  24. package/dist/components/ui/command.js.map +1 -1
  25. package/dist/components/ui/context-menu.js.map +1 -1
  26. package/dist/components/ui/counting-number.js.map +1 -1
  27. package/dist/components/ui/dialog.js.map +1 -1
  28. package/dist/components/ui/dot-background.js.map +1 -1
  29. package/dist/components/ui/drawer.js.map +1 -1
  30. package/dist/components/ui/dropdown-menu.js.map +1 -1
  31. package/dist/components/ui/dropdrawer.js.map +1 -1
  32. package/dist/components/ui/empty.js.map +1 -1
  33. package/dist/components/ui/field.js +1 -1
  34. package/dist/components/ui/field.js.map +1 -1
  35. package/dist/components/ui/fireworks-background.js.map +1 -1
  36. package/dist/components/ui/flip-button.js.map +1 -1
  37. package/dist/components/ui/form.d.ts.map +1 -1
  38. package/dist/components/ui/form.js +4 -3
  39. package/dist/components/ui/form.js.map +1 -1
  40. package/dist/components/ui/gradient-background.js.map +1 -1
  41. package/dist/components/ui/gradient-text.js.map +1 -1
  42. package/dist/components/ui/highlight-text.js.map +1 -1
  43. package/dist/components/ui/hole-background.js.map +1 -1
  44. package/dist/components/ui/hover-card.js.map +1 -1
  45. package/dist/components/ui/input-group.d.ts.map +1 -1
  46. package/dist/components/ui/input-group.js.map +1 -1
  47. package/dist/components/ui/input-otp.d.ts +2 -2
  48. package/dist/components/ui/input-otp.js.map +1 -1
  49. package/dist/components/ui/input.js.map +1 -1
  50. package/dist/components/ui/item.js.map +1 -1
  51. package/dist/components/ui/kbd.js.map +1 -1
  52. package/dist/components/ui/label.js.map +1 -1
  53. package/dist/components/ui/menubar.js.map +1 -1
  54. package/dist/components/ui/navigation-menu.js.map +1 -1
  55. package/dist/components/ui/pagination.js.map +1 -1
  56. package/dist/components/ui/popover.js.map +1 -1
  57. package/dist/components/ui/progress.js.map +1 -1
  58. package/dist/components/ui/radio-group.js.map +1 -1
  59. package/dist/components/ui/resizable.js.map +1 -1
  60. package/dist/components/ui/ripple-button.js.map +1 -1
  61. package/dist/components/ui/scratcher.js.map +1 -1
  62. package/dist/components/ui/scroll-area.js.map +1 -1
  63. package/dist/components/ui/select.js.map +1 -1
  64. package/dist/components/ui/separator.js.map +1 -1
  65. package/dist/components/ui/sheet.d.ts +1 -1
  66. package/dist/components/ui/sheet.js.map +1 -1
  67. package/dist/components/ui/sidebar.d.ts.map +1 -1
  68. package/dist/components/ui/sidebar.js.map +1 -1
  69. package/dist/components/ui/skeleton.js.map +1 -1
  70. package/dist/components/ui/slider.js.map +1 -1
  71. package/dist/components/ui/sonner.js.map +1 -1
  72. package/dist/components/ui/spinner.js.map +1 -1
  73. package/dist/components/ui/switch.js.map +1 -1
  74. package/dist/components/ui/table.d.ts.map +1 -1
  75. package/dist/components/ui/table.js.map +1 -1
  76. package/dist/components/ui/tabs.js.map +1 -1
  77. package/dist/components/ui/textarea.js.map +1 -1
  78. package/dist/components/ui/toggle-group.js.map +1 -1
  79. package/dist/components/ui/toggle.js.map +1 -1
  80. package/dist/components/ui/tooltip.js.map +1 -1
  81. package/dist/components/ui/typewriter.js +6 -2
  82. package/dist/components/ui/typewriter.js.map +1 -1
  83. package/dist/hooks/useIsMobile.js.map +1 -1
  84. package/dist/hooks/useWindowSize.js.map +1 -1
  85. package/dist/index.css +56 -1804
  86. package/dist/index.css.map +1 -1
  87. package/dist/lib/utilities.js.map +1 -1
  88. package/package.json +2 -15
  89. package/src/components/ui/chart.tsx +163 -162
  90. package/src/components/ui/checkbox.tsx +2 -2
  91. package/src/components/ui/field.tsx +1 -1
  92. package/src/components/ui/form.tsx +8 -4
  93. package/src/components/ui/input-group.tsx +2 -0
  94. package/src/components/ui/sidebar.tsx +2 -0
  95. package/src/components/ui/table.tsx +2 -0
  96. package/src/components/ui/typewriter.tsx +2 -2
  97. package/src/index.css +6 -6
  98. package/dist/components/ui/field.d.ts +0 -26
  99. package/dist/components/ui/field.d.ts.map +0 -1
package/changelog.md CHANGED
@@ -8,6 +8,15 @@ All notable changes to **@arolariu/components** are documented here following [K
8
8
 
9
9
  ## 🎉 Latest Releases
10
10
 
11
+ ### [0.4.1](https://www.npmjs.com/package/@arolariu/components/v/0.4.1) - 2025-12-08
12
+ **🔧 Bug Fixes & Maintenance**
13
+ - ⬆️ **Recharts V3** Upgraded chart.tsx to use Rechars v3.5
14
+
15
+ ### [0.4.0](https://www.npmjs.com/package/@arolariu/components/v/0.4.0) - 2025-12-05
16
+ **✨ New Features & Improvements**
17
+ - 🔒 Switched to Trusted Publishing workflow for attestation of package.
18
+ - Removed storybook stories for now, will re-introduce at a later date.
19
+
11
20
  ### [0.3.1](https://www.npmjs.com/package/@arolariu/components/v/0.3.1) - 2025-11-11
12
21
  **🔧 Bug Fixes & Maintenance**
13
22
  - 🐛 **Linting** Migrated from deprecated ElementRef to ComponentRef.
@@ -1 +1 @@
1
- {"version":3,"file":"components\\ui\\accordion.js","sources":["webpack://@arolariu/components/./src/components/ui/accordion.tsx"],"sourcesContent":["\r\n\r\nimport * as AccordionPrimitive from \"@radix-ui/react-accordion\";\r\nimport {ChevronDown} from \"lucide-react\";\r\nimport * as React from \"react\";\r\n\r\nimport {cn} from \"@/lib/utilities\";\r\n\r\nconst Accordion = AccordionPrimitive.Root;\r\n\r\nconst AccordionItem = React.forwardRef<\r\n React.ComponentRef<typeof AccordionPrimitive.Item>,\r\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>\r\n>(({className, ...props}, ref) => (\r\n <AccordionPrimitive.Item\r\n ref={ref}\r\n className={cn(\"border-b\", className)}\r\n {...props}\r\n />\r\n));\r\nAccordionItem.displayName = \"AccordionItem\";\r\n\r\nconst AccordionTrigger = React.forwardRef<\r\n React.ComponentRef<typeof AccordionPrimitive.Trigger>,\r\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>\r\n>(({className, children, ...props}, ref) => (\r\n <AccordionPrimitive.Header className='flex'>\r\n <AccordionPrimitive.Trigger\r\n ref={ref}\r\n className={cn(\r\n \"flex flex-1 items-center justify-between py-4 text-left text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180\",\r\n className,\r\n )}\r\n {...props}>\r\n {children}\r\n <ChevronDown className='h-4 w-4 shrink-0 text-neutral-500 transition-transform duration-200 dark:text-neutral-400' />\r\n </AccordionPrimitive.Trigger>\r\n </AccordionPrimitive.Header>\r\n));\r\nAccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;\r\n\r\nconst AccordionContent = React.forwardRef<\r\n React.ComponentRef<typeof AccordionPrimitive.Content>,\r\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>\r\n>(({className, children, ...props}, ref) => (\r\n <AccordionPrimitive.Content\r\n ref={ref}\r\n className='data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm'\r\n {...props}>\r\n <div className={cn(\"pt-0 pb-4\", className)}>{children}</div>\r\n </AccordionPrimitive.Content>\r\n));\r\nAccordionContent.displayName = AccordionPrimitive.Content.displayName;\r\n\r\nexport {Accordion, AccordionContent, AccordionItem, AccordionTrigger};\r\n"],"names":["Accordion","AccordionPrimitive","AccordionItem","React","className","props","ref","cn","AccordionTrigger","children","ChevronDown","AccordionContent"],"mappings":";;;;;;AAQA,MAAMA,YAAYC;AAElB,MAAMC,gBAAgB,WAAhBA,GAAgBC,WAGpB,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GACxB,IAACL,MAAuB;QACtB,KAAKK;QACL,WAAWC,GAAG,YAAYH;QACzB,GAAGC,KAAK;;AAGbH,cAAc,WAAW,GAAG;AAE5B,MAAMM,mBAAmB,WAAnBA,GAAmBL,WAGvB,CAAC,EAACC,SAAS,EAAEK,QAAQ,EAAE,GAAGJ,OAAM,EAAEC,MAAAA,WAAAA,GAClC,IAACL,QAAyB;QAAC,WAAU;kBACnC,mBAACA,SAA0B;YACzB,KAAKK;YACL,WAAWC,GACT,kJACAH;YAED,GAAGC,KAAK;;gBACRI;8BACD,IAACC,aAAWA;oBAAC,WAAU;;;;;AAI7BF,iBAAiB,WAAW,GAAGP,QAAAA,WAAsC;AAErE,MAAMU,mBAAmB,WAAnBA,GAAmBR,WAGvB,CAAC,EAACC,SAAS,EAAEK,QAAQ,EAAE,GAAGJ,OAAM,EAAEC,MAAAA,WAAAA,GAClC,IAACL,SAA0B;QACzB,KAAKK;QACL,WAAU;QACT,GAAGD,KAAK;kBACT,kBAAC;YAAI,WAAWE,GAAG,aAAaH;sBAAaK;;;AAGjDE,iBAAiB,WAAW,GAAGV,QAAAA,WAAsC"}
1
+ {"version":3,"file":"components/ui/accordion.js","sources":["../../../src/components/ui/accordion.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport * as AccordionPrimitive from \"@radix-ui/react-accordion\";\r\nimport {ChevronDown} from \"lucide-react\";\r\nimport * as React from \"react\";\r\n\r\nimport {cn} from \"@/lib/utilities\";\r\n\r\nconst Accordion = AccordionPrimitive.Root;\r\n\r\nconst AccordionItem = React.forwardRef<\r\n React.ComponentRef<typeof AccordionPrimitive.Item>,\r\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>\r\n>(({className, ...props}, ref) => (\r\n <AccordionPrimitive.Item\r\n ref={ref}\r\n className={cn(\"border-b\", className)}\r\n {...props}\r\n />\r\n));\r\nAccordionItem.displayName = \"AccordionItem\";\r\n\r\nconst AccordionTrigger = React.forwardRef<\r\n React.ComponentRef<typeof AccordionPrimitive.Trigger>,\r\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>\r\n>(({className, children, ...props}, ref) => (\r\n <AccordionPrimitive.Header className='flex'>\r\n <AccordionPrimitive.Trigger\r\n ref={ref}\r\n className={cn(\r\n \"flex flex-1 items-center justify-between py-4 text-left text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180\",\r\n className,\r\n )}\r\n {...props}>\r\n {children}\r\n <ChevronDown className='h-4 w-4 shrink-0 text-neutral-500 transition-transform duration-200 dark:text-neutral-400' />\r\n </AccordionPrimitive.Trigger>\r\n </AccordionPrimitive.Header>\r\n));\r\nAccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;\r\n\r\nconst AccordionContent = React.forwardRef<\r\n React.ComponentRef<typeof AccordionPrimitive.Content>,\r\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>\r\n>(({className, children, ...props}, ref) => (\r\n <AccordionPrimitive.Content\r\n ref={ref}\r\n className='data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm'\r\n {...props}>\r\n <div className={cn(\"pt-0 pb-4\", className)}>{children}</div>\r\n </AccordionPrimitive.Content>\r\n));\r\nAccordionContent.displayName = AccordionPrimitive.Content.displayName;\r\n\r\nexport {Accordion, AccordionContent, AccordionItem, AccordionTrigger};\r\n"],"names":["Accordion","AccordionPrimitive","AccordionItem","React","className","props","ref","cn","AccordionTrigger","children","ChevronDown","AccordionContent"],"mappings":";;;;;;AAQA,MAAMA,YAAYC;AAElB,MAAMC,gBAAgB,WAAhBA,GAAgBC,WAGpB,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GACxB,IAACL,MAAuB;QACtB,KAAKK;QACL,WAAWC,GAAG,YAAYH;QACzB,GAAGC,KAAK;;AAGbH,cAAc,WAAW,GAAG;AAE5B,MAAMM,mBAAmB,WAAnBA,GAAmBL,WAGvB,CAAC,EAACC,SAAS,EAAEK,QAAQ,EAAE,GAAGJ,OAAM,EAAEC,MAAAA,WAAAA,GAClC,IAACL,QAAyB;QAAC,WAAU;kBACnC,mBAACA,SAA0B;YACzB,KAAKK;YACL,WAAWC,GACT,kJACAH;YAED,GAAGC,KAAK;;gBACRI;8BACD,IAACC,aAAWA;oBAAC,WAAU;;;;;AAI7BF,iBAAiB,WAAW,GAAGP,QAAAA,WAAsC;AAErE,MAAMU,mBAAmB,WAAnBA,GAAmBR,WAGvB,CAAC,EAACC,SAAS,EAAEK,QAAQ,EAAE,GAAGJ,OAAM,EAAEC,MAAAA,WAAAA,GAClC,IAACL,SAA0B;QACzB,KAAKK;QACL,WAAU;QACT,GAAGD,KAAK;kBACT,kBAAC;YAAI,WAAWE,GAAG,aAAaH;sBAAaK;;;AAGjDE,iBAAiB,WAAW,GAAGV,QAAAA,WAAsC"}
@@ -1 +1 @@
1
- {"version":3,"file":"components\\ui\\alert-dialog.js","sources":["webpack://@arolariu/components/./src/components/ui/alert-dialog.tsx"],"sourcesContent":["\r\n\r\nimport * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\";\r\nimport * as React from \"react\";\r\n\r\nimport {buttonVariants} from \"@/components/ui/button\";\r\nimport {cn} from \"@/lib/utilities\";\r\n\r\nconst AlertDialog = AlertDialogPrimitive.Root;\r\n\r\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\r\n\r\nconst AlertDialogPortal = AlertDialogPrimitive.Portal;\r\n\r\nconst AlertDialogOverlay = React.forwardRef<\r\n React.ComponentRef<typeof AlertDialogPrimitive.Overlay>,\r\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>\r\n>(({className, ...props}, ref) => (\r\n <AlertDialogPrimitive.Overlay\r\n className={cn(\r\n \"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80\",\r\n className,\r\n )}\r\n {...props}\r\n ref={ref}\r\n />\r\n));\r\nAlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;\r\n\r\nconst AlertDialogContent = React.forwardRef<\r\n React.ComponentRef<typeof AlertDialogPrimitive.Content>,\r\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>\r\n>(({className, ...props}, ref) => (\r\n <AlertDialogPortal>\r\n <AlertDialogOverlay />\r\n <AlertDialogPrimitive.Content\r\n ref={ref}\r\n className={cn(\r\n \"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%] fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-neutral-200 bg-white p-6 shadow-lg duration-200 sm:rounded-lg dark:border-neutral-800 dark:bg-neutral-950\",\r\n className,\r\n )}\r\n {...props}\r\n />\r\n </AlertDialogPortal>\r\n));\r\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\r\n\r\nconst AlertDialogHeader = ({className, ...props}: React.HTMLAttributes<HTMLDivElement>) => (\r\n <div\r\n className={cn(\"flex flex-col space-y-2 text-center sm:text-left\", className)}\r\n {...props}\r\n />\r\n);\r\nAlertDialogHeader.displayName = \"AlertDialogHeader\";\r\n\r\nconst AlertDialogFooter = ({className, ...props}: React.HTMLAttributes<HTMLDivElement>) => (\r\n <div\r\n className={cn(\"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\", className)}\r\n {...props}\r\n />\r\n);\r\nAlertDialogFooter.displayName = \"AlertDialogFooter\";\r\n\r\nconst AlertDialogTitle = React.forwardRef<\r\n React.ComponentRef<typeof AlertDialogPrimitive.Title>,\r\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>\r\n>(({className, ...props}, ref) => (\r\n <AlertDialogPrimitive.Title\r\n ref={ref}\r\n className={cn(\"text-lg font-semibold\", className)}\r\n {...props}\r\n />\r\n));\r\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\r\n\r\nconst AlertDialogDescription = React.forwardRef<\r\n React.ComponentRef<typeof AlertDialogPrimitive.Description>,\r\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>\r\n>(({className, ...props}, ref) => (\r\n <AlertDialogPrimitive.Description\r\n ref={ref}\r\n className={cn(\"text-sm text-neutral-500 dark:text-neutral-400\", className)}\r\n {...props}\r\n />\r\n));\r\nAlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;\r\n\r\nconst AlertDialogAction = React.forwardRef<\r\n React.ComponentRef<typeof AlertDialogPrimitive.Action>,\r\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>\r\n>(({className, ...props}, ref) => (\r\n <AlertDialogPrimitive.Action\r\n ref={ref}\r\n className={cn(buttonVariants(), className)}\r\n {...props}\r\n />\r\n));\r\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\r\n\r\nconst AlertDialogCancel = React.forwardRef<\r\n React.ComponentRef<typeof AlertDialogPrimitive.Cancel>,\r\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>\r\n>(({className, ...props}, ref) => (\r\n <AlertDialogPrimitive.Cancel\r\n ref={ref}\r\n className={cn(buttonVariants({variant: \"outline\"}), \"mt-2 sm:mt-0\", className)}\r\n {...props}\r\n />\r\n));\r\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\r\n\r\nexport {\r\n AlertDialog,\r\n AlertDialogAction,\r\n AlertDialogCancel,\r\n AlertDialogContent,\r\n AlertDialogDescription,\r\n AlertDialogFooter,\r\n AlertDialogHeader,\r\n AlertDialogOverlay,\r\n AlertDialogPortal,\r\n AlertDialogTitle,\r\n AlertDialogTrigger,\r\n};\r\n"],"names":["AlertDialog","AlertDialogPrimitive","AlertDialogTrigger","AlertDialogPortal","AlertDialogOverlay","React","className","props","ref","cn","AlertDialogContent","AlertDialogHeader","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","buttonVariants","AlertDialogCancel"],"mappings":";;;;;;AAQA,MAAMA,cAAcC;AAEpB,MAAMC,qBAAqBD;AAE3B,MAAME,oBAAoBF;AAE1B,MAAMG,qBAAqB,WAArBA,GAAqBC,WAGzB,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GACxB,IAACP,SAA4B;QAC3B,WAAWQ,GACT,0JACAH;QAED,GAAGC,KAAK;QACT,KAAKC;;AAGTJ,mBAAmB,WAAW,GAAGH,QAAAA,WAAwC;AAEzE,MAAMS,qBAAqB,WAArBA,GAAqBL,WAGzB,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GACxB,KAACL,mBAAAA;;0BACC,IAACC,oBAAAA,CAAAA;0BACD,IAACH,SAA4B;gBAC3B,KAAKO;gBACL,WAAWC,GACT,yjBACAH;gBAED,GAAGC,KAAK;;;;AAIfG,mBAAmB,WAAW,GAAGT,QAAAA,WAAwC;AAEzE,MAAMU,oBAAoB,CAAC,EAACL,SAAS,EAAE,GAAGC,OAA4C,iBACpF,IAAC;QACC,WAAWE,GAAG,oDAAoDH;QACjE,GAAGC,KAAK;;AAGbI,kBAAkB,WAAW,GAAG;AAEhC,MAAMC,oBAAoB,CAAC,EAACN,SAAS,EAAE,GAAGC,OAA4C,iBACpF,IAAC;QACC,WAAWE,GAAG,iEAAiEH;QAC9E,GAAGC,KAAK;;AAGbK,kBAAkB,WAAW,GAAG;AAEhC,MAAMC,mBAAmB,WAAnBA,GAAmBR,WAGvB,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GACxB,IAACP,OAA0B;QACzB,KAAKO;QACL,WAAWC,GAAG,yBAAyBH;QACtC,GAAGC,KAAK;;AAGbM,iBAAiB,WAAW,GAAGZ,MAAAA,WAAsC;AAErE,MAAMa,yBAAyB,WAAzBA,GAAyBT,WAG7B,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GACxB,IAACP,aAAgC;QAC/B,KAAKO;QACL,WAAWC,GAAG,kDAAkDH;QAC/D,GAAGC,KAAK;;AAGbO,uBAAuB,WAAW,GAAGb,YAAAA,WAA4C;AAEjF,MAAMc,oBAAoB,WAApBA,GAAoBV,WAGxB,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GACxB,IAACP,QAA2B;QAC1B,KAAKO;QACL,WAAWC,GAAGO,kBAAkBV;QAC/B,GAAGC,KAAK;;AAGbQ,kBAAkB,WAAW,GAAGd,OAAAA,WAAuC;AAEvE,MAAMgB,oBAAoB,WAApBA,GAAoBZ,WAGxB,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GACxB,IAACP,QAA2B;QAC1B,KAAKO;QACL,WAAWC,GAAGO,eAAe;YAAC,SAAS;QAAS,IAAI,gBAAgBV;QACnE,GAAGC,KAAK;;AAGbU,kBAAkB,WAAW,GAAGhB,OAAAA,WAAuC"}
1
+ {"version":3,"file":"components/ui/alert-dialog.js","sources":["../../../src/components/ui/alert-dialog.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\";\r\nimport * as React from \"react\";\r\n\r\nimport {buttonVariants} from \"@/components/ui/button\";\r\nimport {cn} from \"@/lib/utilities\";\r\n\r\nconst AlertDialog = AlertDialogPrimitive.Root;\r\n\r\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\r\n\r\nconst AlertDialogPortal = AlertDialogPrimitive.Portal;\r\n\r\nconst AlertDialogOverlay = React.forwardRef<\r\n React.ComponentRef<typeof AlertDialogPrimitive.Overlay>,\r\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>\r\n>(({className, ...props}, ref) => (\r\n <AlertDialogPrimitive.Overlay\r\n className={cn(\r\n \"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80\",\r\n className,\r\n )}\r\n {...props}\r\n ref={ref}\r\n />\r\n));\r\nAlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;\r\n\r\nconst AlertDialogContent = React.forwardRef<\r\n React.ComponentRef<typeof AlertDialogPrimitive.Content>,\r\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>\r\n>(({className, ...props}, ref) => (\r\n <AlertDialogPortal>\r\n <AlertDialogOverlay />\r\n <AlertDialogPrimitive.Content\r\n ref={ref}\r\n className={cn(\r\n \"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%] fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-neutral-200 bg-white p-6 shadow-lg duration-200 sm:rounded-lg dark:border-neutral-800 dark:bg-neutral-950\",\r\n className,\r\n )}\r\n {...props}\r\n />\r\n </AlertDialogPortal>\r\n));\r\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\r\n\r\nconst AlertDialogHeader = ({className, ...props}: React.HTMLAttributes<HTMLDivElement>) => (\r\n <div\r\n className={cn(\"flex flex-col space-y-2 text-center sm:text-left\", className)}\r\n {...props}\r\n />\r\n);\r\nAlertDialogHeader.displayName = \"AlertDialogHeader\";\r\n\r\nconst AlertDialogFooter = ({className, ...props}: React.HTMLAttributes<HTMLDivElement>) => (\r\n <div\r\n className={cn(\"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\", className)}\r\n {...props}\r\n />\r\n);\r\nAlertDialogFooter.displayName = \"AlertDialogFooter\";\r\n\r\nconst AlertDialogTitle = React.forwardRef<\r\n React.ComponentRef<typeof AlertDialogPrimitive.Title>,\r\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>\r\n>(({className, ...props}, ref) => (\r\n <AlertDialogPrimitive.Title\r\n ref={ref}\r\n className={cn(\"text-lg font-semibold\", className)}\r\n {...props}\r\n />\r\n));\r\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\r\n\r\nconst AlertDialogDescription = React.forwardRef<\r\n React.ComponentRef<typeof AlertDialogPrimitive.Description>,\r\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>\r\n>(({className, ...props}, ref) => (\r\n <AlertDialogPrimitive.Description\r\n ref={ref}\r\n className={cn(\"text-sm text-neutral-500 dark:text-neutral-400\", className)}\r\n {...props}\r\n />\r\n));\r\nAlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;\r\n\r\nconst AlertDialogAction = React.forwardRef<\r\n React.ComponentRef<typeof AlertDialogPrimitive.Action>,\r\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>\r\n>(({className, ...props}, ref) => (\r\n <AlertDialogPrimitive.Action\r\n ref={ref}\r\n className={cn(buttonVariants(), className)}\r\n {...props}\r\n />\r\n));\r\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\r\n\r\nconst AlertDialogCancel = React.forwardRef<\r\n React.ComponentRef<typeof AlertDialogPrimitive.Cancel>,\r\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>\r\n>(({className, ...props}, ref) => (\r\n <AlertDialogPrimitive.Cancel\r\n ref={ref}\r\n className={cn(buttonVariants({variant: \"outline\"}), \"mt-2 sm:mt-0\", className)}\r\n {...props}\r\n />\r\n));\r\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\r\n\r\nexport {\r\n AlertDialog,\r\n AlertDialogAction,\r\n AlertDialogCancel,\r\n AlertDialogContent,\r\n AlertDialogDescription,\r\n AlertDialogFooter,\r\n AlertDialogHeader,\r\n AlertDialogOverlay,\r\n AlertDialogPortal,\r\n AlertDialogTitle,\r\n AlertDialogTrigger,\r\n};\r\n"],"names":["AlertDialog","AlertDialogPrimitive","AlertDialogTrigger","AlertDialogPortal","AlertDialogOverlay","React","className","props","ref","cn","AlertDialogContent","AlertDialogHeader","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","buttonVariants","AlertDialogCancel"],"mappings":";;;;;;AAQA,MAAMA,cAAcC;AAEpB,MAAMC,qBAAqBD;AAE3B,MAAME,oBAAoBF;AAE1B,MAAMG,qBAAqB,WAArBA,GAAqBC,WAGzB,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GACxB,IAACP,SAA4B;QAC3B,WAAWQ,GACT,0JACAH;QAED,GAAGC,KAAK;QACT,KAAKC;;AAGTJ,mBAAmB,WAAW,GAAGH,QAAAA,WAAwC;AAEzE,MAAMS,qBAAqB,WAArBA,GAAqBL,WAGzB,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GACxB,KAACL,mBAAAA;;0BACC,IAACC,oBAAAA,CAAAA;0BACD,IAACH,SAA4B;gBAC3B,KAAKO;gBACL,WAAWC,GACT,yjBACAH;g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C,SAAS;QAAS,IAAI,gBAAgBV;QACnE,GAAGC,KAAK;;AAGbU,kBAAkB,WAAW,GAAGhB,OAAAA,WAAuC"}
@@ -1 +1 @@
1
- {"version":3,"file":"components\\ui\\alert.js","sources":["webpack://@arolariu/components/./src/components/ui/alert.tsx"],"sourcesContent":["\r\n\r\nimport {cva, type VariantProps} from \"class-variance-authority\";\r\nimport * as React from \"react\";\r\n\r\nimport {cn} from \"@/lib/utilities\";\r\n\r\nconst alertVariants = cva(\r\n \"relative w-full rounded-lg border border-neutral-200 px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-neutral-950 [&>svg~*]:pl-7 dark:border-neutral-800 dark:[&>svg]:text-neutral-50\",\r\n {\r\n variants: {\r\n variant: {\r\n default: \"bg-white text-neutral-950 dark:bg-neutral-950 dark:text-neutral-50\",\r\n destructive:\r\n \"border-red-500/50 text-red-500 dark:border-red-500 [&>svg]:text-red-500 dark:border-red-900/50 dark:text-red-900 dark:dark:border-red-900 dark:[&>svg]:text-red-900\",\r\n },\r\n },\r\n defaultVariants: {\r\n variant: \"default\",\r\n },\r\n },\r\n);\r\n\r\nconst Alert = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>>(\r\n ({className, variant, ...props}, ref) => (\r\n <div\r\n ref={ref}\r\n role='alert'\r\n className={cn(alertVariants({variant}), className)}\r\n {...props}\r\n />\r\n ),\r\n);\r\nAlert.displayName = \"Alert\";\r\n\r\nconst AlertTitle = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLHeadingElement>>(({className, ...props}, ref) => (\r\n // eslint-disable-next-line jsx-a11y/heading-has-content -- this will be filled with children.\r\n <h5\r\n ref={ref}\r\n className={cn(\"mb-1 leading-none font-medium tracking-tight\", className)}\r\n {...props}\r\n />\r\n));\r\nAlertTitle.displayName = \"AlertTitle\";\r\n\r\nconst AlertDescription = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLParagraphElement>>(\r\n ({className, ...props}, ref) => (\r\n <div\r\n ref={ref}\r\n className={cn(\"text-sm [&_p]:leading-relaxed\", className)}\r\n {...props}\r\n />\r\n ),\r\n);\r\nAlertDescription.displayName = \"AlertDescription\";\r\n\r\nexport {Alert, AlertDescription, AlertTitle};\r\n"],"names":["alertVariants","cva","Alert","React","className","variant","props","ref","cn","AlertTitle","AlertDescription"],"mappings":";;;;;AAOA,MAAMA,gBAAgBC,IACpB,oPACA;IACE,UAAU;QACR,SAAS;YACP,SAAS;YACT,aACE;QACJ;IACF;IACA,iBAAiB;QACf,SAAS;IACX;AACF;AAGF,MAAMC,QAAQ,WAARA,GAAQC,WACZ,CAAC,EAACC,SAAS,EAAEC,OAAO,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GAC/B,IAAC;QACC,KAAKA;QACL,MAAK;QACL,WAAWC,GAAGR,cAAc;YAACK;QAAO,IAAID;QACvC,GAAGE,KAAK;;AAIfJ,MAAM,WAAW,GAAG;AAEpB,MAAMO,aAAa,WAAbA,GAAaN,WAAiF,CAAC,EAACC,SAAS,EAAE,GAAGE,OAAM,EAAEC,M,cAE1H,IAAC;QACC,KAAKA;QACL,WAAWC,GAAG,gDAAgDJ;QAC7D,GAAGE,KAAK;;AAGbG,WAAW,WAAW,GAAG;AAEzB,MAAMC,mBAAmB,WAAnBA,GAAmBP,WACvB,CAAC,EAACC,SAAS,EAAE,GAAGE,OAAM,EAAEC,MAAAA,WAAAA,GACtB,IAAC;QACC,KAAKA;QACL,WAAWC,GAAG,iCAAiCJ;QAC9C,GAAGE,KAAK;;AAIfI,iBAAiB,WAAW,GAAG"}
1
+ {"version":3,"file":"components/ui/alert.js","sources":["../../../src/components/ui/alert.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport {cva, type VariantProps} from \"class-variance-authority\";\r\nimport * as React from \"react\";\r\n\r\nimport {cn} from \"@/lib/utilities\";\r\n\r\nconst alertVariants = cva(\r\n \"relative w-full rounded-lg border border-neutral-200 px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-neutral-950 [&>svg~*]:pl-7 dark:border-neutral-800 dark:[&>svg]:text-neutral-50\",\r\n {\r\n variants: {\r\n variant: {\r\n default: \"bg-white text-neutral-950 dark:bg-neutral-950 dark:text-neutral-50\",\r\n destructive:\r\n \"border-red-500/50 text-red-500 dark:border-red-500 [&>svg]:text-red-500 dark:border-red-900/50 dark:text-red-900 dark:dark:border-red-900 dark:[&>svg]:text-red-900\",\r\n },\r\n },\r\n defaultVariants: {\r\n variant: \"default\",\r\n },\r\n },\r\n);\r\n\r\nconst Alert = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>>(\r\n ({className, variant, ...props}, ref) => (\r\n <div\r\n ref={ref}\r\n role='alert'\r\n className={cn(alertVariants({variant}), className)}\r\n {...props}\r\n />\r\n ),\r\n);\r\nAlert.displayName = \"Alert\";\r\n\r\nconst AlertTitle = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLHeadingElement>>(({className, ...props}, ref) => (\r\n // eslint-disable-next-line jsx-a11y/heading-has-content -- this will be filled with children.\r\n <h5\r\n ref={ref}\r\n className={cn(\"mb-1 leading-none font-medium tracking-tight\", className)}\r\n {...props}\r\n />\r\n));\r\nAlertTitle.displayName = \"AlertTitle\";\r\n\r\nconst AlertDescription = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLParagraphElement>>(\r\n ({className, ...props}, ref) => (\r\n <div\r\n ref={ref}\r\n className={cn(\"text-sm [&_p]:leading-relaxed\", className)}\r\n {...props}\r\n />\r\n ),\r\n);\r\nAlertDescription.displayName = \"AlertDescription\";\r\n\r\nexport {Alert, AlertDescription, AlertTitle};\r\n"],"names":["alertVariants","cva","Alert","React","className","variant","props","ref","cn","AlertTitle","AlertDescription"],"mappings":";;;;;AAOA,MAAMA,gBAAgBC,IACpB,oPACA;IACE,UAAU;QACR,SAAS;YACP,SAAS;YACT,aACE;QACJ;IACF;IACA,iBAAiB;QACf,SAAS;IACX;AACF;AAGF,MAAMC,QAAQ,WAARA,GAAQC,WACZ,CAAC,EAACC,SAAS,EAAEC,OAAO,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GAC/B,IAAC;QACC,KAAKA;QACL,MAAK;QACL,WAAWC,GAAGR,cAAc;YAACK;QAAO,IAAID;QACvC,GAAGE,KAAK;;AAIfJ,MAAM,WAAW,GAAG;AAEpB,MAAMO,aAAa,WAAbA,GAAaN,WAAiF,CAAC,EAACC,SAAS,EAAE,GAAGE,OAAM,EAAEC,M,cAE1H,IAAC;QACC,KAAKA;QACL,WAAWC,GAAG,gDAAgDJ;QAC7D,GAAGE,KAAK;;AAGbG,WAAW,WAAW,GAAG;AAEzB,MAAMC,mBAAmB,WAAnBA,GAAmBP,WACvB,CAAC,EAACC,SAAS,EAAE,GAAGE,OAAM,EAAEC,MAAAA,WAAAA,GACtB,IAAC;QACC,KAAKA;QACL,WAAWC,GAAG,iCAAiCJ;QAC9C,GAAGE,KAAK;;AAIfI,iBAAiB,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"components\\ui\\aspect-ratio.js","sources":["webpack://@arolariu/components/./src/components/ui/aspect-ratio.tsx"],"sourcesContent":["\r\n\r\nimport * as AspectRatioPrimitive from \"@radix-ui/react-aspect-ratio\";\r\n\r\nconst AspectRatio = AspectRatioPrimitive.Root;\r\n\r\nexport {AspectRatio};\r\n"],"names":["AspectRatio","AspectRatioPrimitive"],"mappings":";;AAIA,MAAMA,cAAcC"}
1
+ {"version":3,"file":"components/ui/aspect-ratio.js","sources":["../../../src/components/ui/aspect-ratio.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport * as AspectRatioPrimitive from \"@radix-ui/react-aspect-ratio\";\r\n\r\nconst AspectRatio = AspectRatioPrimitive.Root;\r\n\r\nexport {AspectRatio};\r\n"],"names":["AspectRatio","AspectRatioPrimitive"],"mappings":";;AAIA,MAAMA,cAAcC"}
@@ -1 +1 @@
1
- {"version":3,"file":"components\\ui\\avatar.js","sources":["webpack://@arolariu/components/./src/components/ui/avatar.tsx"],"sourcesContent":["\r\n\r\nimport * as AvatarPrimitive from \"@radix-ui/react-avatar\";\r\nimport * as React from \"react\";\r\n\r\nimport {cn} from \"@/lib/utilities\";\r\n\r\nconst Avatar = React.forwardRef<\r\n React.ComponentRef<typeof AvatarPrimitive.Root>,\r\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>\r\n>(({className, ...props}, ref) => (\r\n <AvatarPrimitive.Root\r\n ref={ref}\r\n className={cn(\"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full\", className)}\r\n {...props}\r\n />\r\n));\r\nAvatar.displayName = AvatarPrimitive.Root.displayName;\r\n\r\nconst AvatarImage = React.forwardRef<\r\n React.ComponentRef<typeof AvatarPrimitive.Image>,\r\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>\r\n>(({className, ...props}, ref) => (\r\n <AvatarPrimitive.Image\r\n ref={ref}\r\n className={cn(\"aspect-square h-full w-full\", className)}\r\n {...props}\r\n />\r\n));\r\nAvatarImage.displayName = AvatarPrimitive.Image.displayName;\r\n\r\nconst AvatarFallback = React.forwardRef<\r\n React.ComponentRef<typeof AvatarPrimitive.Fallback>,\r\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>\r\n>(({className, ...props}, ref) => (\r\n <AvatarPrimitive.Fallback\r\n ref={ref}\r\n className={cn(\"flex h-full w-full items-center justify-center rounded-full bg-neutral-100 dark:bg-neutral-800\", className)}\r\n {...props}\r\n />\r\n));\r\nAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;\r\n\r\nexport {Avatar, AvatarFallback, AvatarImage};\r\n"],"names":["Avatar","React","className","props","ref","AvatarPrimitive","cn","AvatarImage","AvatarFallback"],"mappings":";;;;;AAOA,MAAMA,SAAS,WAATA,GAASC,WAGb,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GACxB,IAACC,MAAoB;QACnB,KAAKD;QACL,WAAWE,GAAG,iEAAiEJ;QAC9E,GAAGC,KAAK;;AAGbH,OAAO,WAAW,GAAGK,KAAAA,WAAgC;AAErD,MAAME,cAAc,WAAdA,GAAcN,WAGlB,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GACxB,IAACC,OAAqB;QACpB,KAAKD;QACL,WAAWE,GAAG,+BAA+BJ;QAC5C,GAAGC,KAAK;;AAGbI,YAAY,WAAW,GAAGF,MAAAA,WAAiC;AAE3D,MAAMG,iBAAiB,WAAjBA,GAAiBP,WAGrB,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GACxB,IAACC,UAAwB;QACvB,KAAKD;QACL,WAAWE,GAAG,kGAAkGJ;QAC/G,GAAGC,KAAK;;AAGbK,eAAe,WAAW,GAAGH,SAAAA,WAAoC"}
1
+ {"version":3,"file":"components/ui/avatar.js","sources":["../../../src/components/ui/avatar.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport * as AvatarPrimitive from \"@radix-ui/react-avatar\";\r\nimport * as React from \"react\";\r\n\r\nimport {cn} from \"@/lib/utilities\";\r\n\r\nconst Avatar = React.forwardRef<\r\n React.ComponentRef<typeof AvatarPrimitive.Root>,\r\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>\r\n>(({className, ...props}, ref) => (\r\n <AvatarPrimitive.Root\r\n ref={ref}\r\n className={cn(\"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full\", className)}\r\n {...props}\r\n />\r\n));\r\nAvatar.displayName = AvatarPrimitive.Root.displayName;\r\n\r\nconst AvatarImage = React.forwardRef<\r\n React.ComponentRef<typeof AvatarPrimitive.Image>,\r\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>\r\n>(({className, ...props}, ref) => (\r\n <AvatarPrimitive.Image\r\n ref={ref}\r\n className={cn(\"aspect-square h-full w-full\", className)}\r\n {...props}\r\n />\r\n));\r\nAvatarImage.displayName = AvatarPrimitive.Image.displayName;\r\n\r\nconst AvatarFallback = React.forwardRef<\r\n React.ComponentRef<typeof AvatarPrimitive.Fallback>,\r\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>\r\n>(({className, ...props}, ref) => (\r\n <AvatarPrimitive.Fallback\r\n ref={ref}\r\n className={cn(\"flex h-full w-full items-center justify-center rounded-full bg-neutral-100 dark:bg-neutral-800\", className)}\r\n {...props}\r\n />\r\n));\r\nAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;\r\n\r\nexport {Avatar, AvatarFallback, AvatarImage};\r\n"],"names":["Avatar","React","className","props","ref","AvatarPrimitive","cn","AvatarImage","AvatarFallback"],"mappings":";;;;;AAOA,MAAMA,SAAS,WAATA,GAASC,WAGb,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GACxB,IAACC,MAAoB;QACnB,KAAKD;QACL,WAAWE,GAAG,iEAAiEJ;QAC9E,GAAGC,KAAK;;AAGbH,OAAO,WAAW,GAAGK,KAAAA,WAAgC;AAErD,MAAME,cAAc,WAAdA,GAAcN,WAGlB,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GACxB,IAACC,OAAqB;QACpB,KAAKD;QACL,WAAWE,GAAG,+BAA+BJ;QAC5C,GAAGC,KAAK;;AAGbI,YAAY,WAAW,GAAGF,MAAAA,WAAiC;AAE3D,MAAMG,iBAAiB,WAAjBA,GAAiBP,WAGrB,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GACxB,IAACC,UAAwB;QACvB,KAAKD;QACL,WAAWE,GAAG,kGAAkGJ;QAC/G,GAAGC,KAAK;;AAGbK,eAAe,WAAW,GAAGH,SAAAA,WAAoC"}
@@ -1 +1 @@
1
- {"version":3,"file":"components\\ui\\background-beams.js","sources":["webpack://@arolariu/components/./src/components/ui/background-beams.tsx"],"sourcesContent":["\r\n\r\nimport {cn} from \"@/lib/utilities\";\r\nimport {motion} from \"motion/react\";\r\nimport * as React from \"react\";\r\n\r\nexport const BackgroundBeams = React.memo(({className}: {className?: string}) => {\r\n const paths = [\r\n \"M-380 -189C-380 -189 -312 216 152 343C616 470 684 875 684 875\",\r\n \"M-373 -197C-373 -197 -305 208 159 335C623 462 691 867 691 867\",\r\n \"M-366 -205C-366 -205 -298 200 166 327C630 454 698 859 698 859\",\r\n \"M-359 -213C-359 -213 -291 192 173 319C637 446 705 851 705 851\",\r\n \"M-352 -221C-352 -221 -284 184 180 311C644 438 712 843 712 843\",\r\n \"M-345 -229C-345 -229 -277 176 187 303C651 430 719 835 719 835\",\r\n \"M-338 -237C-338 -237 -270 168 194 295C658 422 726 827 726 827\",\r\n \"M-331 -245C-331 -245 -263 160 201 287C665 414 733 819 733 819\",\r\n \"M-324 -253C-324 -253 -256 152 208 279C672 406 740 811 740 811\",\r\n \"M-317 -261C-317 -261 -249 144 215 271C679 398 747 803 747 803\",\r\n \"M-310 -269C-310 -269 -242 136 222 263C686 390 754 795 754 795\",\r\n \"M-303 -277C-303 -277 -235 128 229 255C693 382 761 787 761 787\",\r\n \"M-296 -285C-296 -285 -228 120 236 247C700 374 768 779 768 779\",\r\n \"M-289 -293C-289 -293 -221 112 243 239C707 366 775 771 775 771\",\r\n \"M-282 -301C-282 -301 -214 104 250 231C714 358 782 763 782 763\",\r\n \"M-275 -309C-275 -309 -207 96 257 223C721 350 789 755 789 755\",\r\n \"M-268 -317C-268 -317 -200 88 264 215C728 342 796 747 796 747\",\r\n \"M-261 -325C-261 -325 -193 80 271 207C735 334 803 739 803 739\",\r\n \"M-254 -333C-254 -333 -186 72 278 199C742 326 810 731 810 731\",\r\n \"M-247 -341C-247 -341 -179 64 285 191C749 318 817 723 817 723\",\r\n \"M-240 -349C-240 -349 -172 56 292 183C756 310 824 715 824 715\",\r\n \"M-233 -357C-233 -357 -165 48 299 175C763 302 831 707 831 707\",\r\n \"M-226 -365C-226 -365 -158 40 306 167C770 294 838 699 838 699\",\r\n \"M-219 -373C-219 -373 -151 32 313 159C777 286 845 691 845 691\",\r\n \"M-212 -381C-212 -381 -144 24 320 151C784 278 852 683 852 683\",\r\n \"M-205 -389C-205 -389 -137 16 327 143C791 270 859 675 859 675\",\r\n \"M-198 -397C-198 -397 -130 8 334 135C798 262 866 667 866 667\",\r\n \"M-191 -405C-191 -405 -123 0 341 127C805 254 873 659 873 659\",\r\n \"M-184 -413C-184 -413 -116 -8 348 119C812 246 880 651 880 651\",\r\n \"M-177 -421C-177 -421 -109 -16 355 111C819 238 887 643 887 643\",\r\n \"M-170 -429C-170 -429 -102 -24 362 103C826 230 894 635 894 635\",\r\n \"M-163 -437C-163 -437 -95 -32 369 95C833 222 901 627 901 627\",\r\n \"M-156 -445C-156 -445 -88 -40 376 87C840 214 908 619 908 619\",\r\n \"M-149 -453C-149 -453 -81 -48 383 79C847 206 915 611 915 611\",\r\n \"M-142 -461C-142 -461 -74 -56 390 71C854 198 922 603 922 603\",\r\n \"M-135 -469C-135 -469 -67 -64 397 63C861 190 929 595 929 595\",\r\n \"M-128 -477C-128 -477 -60 -72 404 55C868 182 936 587 936 587\",\r\n \"M-121 -485C-121 -485 -53 -80 411 47C875 174 943 579 943 579\",\r\n \"M-114 -493C-114 -493 -46 -88 418 39C882 166 950 571 950 571\",\r\n \"M-107 -501C-107 -501 -39 -96 425 31C889 158 957 563 957 563\",\r\n \"M-100 -509C-100 -509 -32 -104 432 23C896 150 964 555 964 555\",\r\n \"M-93 -517C-93 -517 -25 -112 439 15C903 142 971 547 971 547\",\r\n \"M-86 -525C-86 -525 -18 -120 446 7C910 134 978 539 978 539\",\r\n \"M-79 -533C-79 -533 -11 -128 453 -1C917 126 985 531 985 531\",\r\n \"M-72 -541C-72 -541 -4 -136 460 -9C924 118 992 523 992 523\",\r\n \"M-65 -549C-65 -549 3 -144 467 -17C931 110 999 515 999 515\",\r\n \"M-58 -557C-58 -557 10 -152 474 -25C938 102 1006 507 1006 507\",\r\n \"M-51 -565C-51 -565 17 -160 481 -33C945 94 1013 499 1013 499\",\r\n \"M-44 -573C-44 -573 24 -168 488 -41C952 86 1020 491 1020 491\",\r\n \"M-37 -581C-37 -581 31 -176 495 -49C959 78 1027 483 1027 483\",\r\n ];\r\n return (\r\n <div\r\n className={cn(\"absolute inset-0 flex h-full w-full items-center justify-center [mask-size:40px] [mask-repeat:no-repeat]\", className)}>\r\n <svg\r\n className='pointer-events-none absolute z-0 h-full w-full'\r\n width='100%'\r\n height='100%'\r\n viewBox='0 0 696 316'\r\n fill='none'\r\n xmlns='http://www.w3.org/2000/svg'>\r\n <path\r\n d='M-380 -189C-380 -189 -312 216 152 343C616 470 684 875 684 875M-373 -197C-373 -197 -305 208 159 335C623 462 691 867 691 867M-366 -205C-366 -205 -298 200 166 327C630 454 698 859 698 859M-359 -213C-359 -213 -291 192 173 319C637 446 705 851 705 851M-352 -221C-352 -221 -284 184 180 311C644 438 712 843 712 843M-345 -229C-345 -229 -277 176 187 303C651 430 719 835 719 835M-338 -237C-338 -237 -270 168 194 295C658 422 726 827 726 827M-331 -245C-331 -245 -263 160 201 287C665 414 733 819 733 819M-324 -253C-324 -253 -256 152 208 279C672 406 740 811 740 811M-317 -261C-317 -261 -249 144 215 271C679 398 747 803 747 803M-310 -269C-310 -269 -242 136 222 263C686 390 754 795 754 795M-303 -277C-303 -277 -235 128 229 255C693 382 761 787 761 787M-296 -285C-296 -285 -228 120 236 247C700 374 768 779 768 779M-289 -293C-289 -293 -221 112 243 239C707 366 775 771 775 771M-282 -301C-282 -301 -214 104 250 231C714 358 782 763 782 763M-275 -309C-275 -309 -207 96 257 223C721 350 789 755 789 755M-268 -317C-268 -317 -200 88 264 215C728 342 796 747 796 747M-261 -325C-261 -325 -193 80 271 207C735 334 803 739 803 739M-254 -333C-254 -333 -186 72 278 199C742 326 810 731 810 731M-247 -341C-247 -341 -179 64 285 191C749 318 817 723 817 723M-240 -349C-240 -349 -172 56 292 183C756 310 824 715 824 715M-233 -357C-233 -357 -165 48 299 175C763 302 831 707 831 707M-226 -365C-226 -365 -158 40 306 167C770 294 838 699 838 699M-219 -373C-219 -373 -151 32 313 159C777 286 845 691 845 691M-212 -381C-212 -381 -144 24 320 151C784 278 852 683 852 683M-205 -389C-205 -389 -137 16 327 143C791 270 859 675 859 675M-198 -397C-198 -397 -130 8 334 135C798 262 866 667 866 667M-191 -405C-191 -405 -123 0 341 127C805 254 873 659 873 659M-184 -413C-184 -413 -116 -8 348 119C812 246 880 651 880 651M-177 -421C-177 -421 -109 -16 355 111C819 238 887 643 887 643M-170 -429C-170 -429 -102 -24 362 103C826 230 894 635 894 635M-163 -437C-163 -437 -95 -32 369 95C833 222 901 627 901 627M-156 -445C-156 -445 -88 -40 376 87C840 214 908 619 908 619M-149 -453C-149 -453 -81 -48 383 79C847 206 915 611 915 611M-142 -461C-142 -461 -74 -56 390 71C854 198 922 603 922 603M-135 -469C-135 -469 -67 -64 397 63C861 190 929 595 929 595M-128 -477C-128 -477 -60 -72 404 55C868 182 936 587 936 587M-121 -485C-121 -485 -53 -80 411 47C875 174 943 579 943 579M-114 -493C-114 -493 -46 -88 418 39C882 166 950 571 950 571M-107 -501C-107 -501 -39 -96 425 31C889 158 957 563 957 563M-100 -509C-100 -509 -32 -104 432 23C896 150 964 555 964 555M-93 -517C-93 -517 -25 -112 439 15C903 142 971 547 971 547M-86 -525C-86 -525 -18 -120 446 7C910 134 978 539 978 539M-79 -533C-79 -533 -11 -128 453 -1C917 126 985 531 985 531M-72 -541C-72 -541 -4 -136 460 -9C924 118 992 523 992 523M-65 -549C-65 -549 3 -144 467 -17C931 110 999 515 999 515M-58 -557C-58 -557 10 -152 474 -25C938 102 1006 507 1006 507M-51 -565C-51 -565 17 -160 481 -33C945 94 1013 499 1013 499M-44 -573C-44 -573 24 -168 488 -41C952 86 1020 491 1020 491M-37 -581C-37 -581 31 -176 495 -49C959 78 1027 483 1027 483M-30 -589C-30 -589 38 -184 502 -57C966 70 1034 475 1034 475M-23 -597C-23 -597 45 -192 509 -65C973 62 1041 467 1041 467M-16 -605C-16 -605 52 -200 516 -73C980 54 1048 459 1048 459M-9 -613C-9 -613 59 -208 523 -81C987 46 1055 451 1055 451M-2 -621C-2 -621 66 -216 530 -89C994 38 1062 443 1062 443M5 -629C5 -629 73 -224 537 -97C1001 30 1069 435 1069 435M12 -637C12 -637 80 -232 544 -105C1008 22 1076 427 1076 427M19 -645C19 -645 87 -240 551 -113C1015 14 1083 419 1083 419'\r\n stroke='url(#paint0_radial_242_278)'\r\n strokeOpacity='0.05'\r\n strokeWidth='0.5'></path>\r\n\r\n {paths.map((path, index) => (\r\n <motion.path\r\n key={`path-${index}`}\r\n d={path}\r\n stroke={`url(#linearGradient-${index})`}\r\n strokeOpacity='0.4'\r\n strokeWidth='0.5'></motion.path>\r\n ))}\r\n <defs>\r\n {paths.map((path, index) => (\r\n <motion.linearGradient\r\n id={`linearGradient-${path}-${index}`}\r\n key={`gradient-${path}-${index}`}\r\n initial={{\r\n x1: \"0%\",\r\n x2: \"0%\",\r\n y1: \"0%\",\r\n y2: \"0%\",\r\n }}\r\n animate={{\r\n x1: [\"0%\", \"100%\"],\r\n x2: [\"0%\", \"95%\"],\r\n y1: [\"0%\", \"100%\"],\r\n y2: [\"0%\", `${93 + Math.random() * 8}%`],\r\n }}\r\n transition={{\r\n duration: Math.random() * 10 + 10,\r\n ease: \"easeInOut\",\r\n repeat: Infinity,\r\n delay: Math.random() * 10,\r\n }}>\r\n <stop\r\n stopColor='#18CCFC'\r\n stopOpacity='0'></stop>\r\n <stop stopColor='#18CCFC'></stop>\r\n <stop\r\n offset='32.5%'\r\n stopColor='#6344F5'></stop>\r\n <stop\r\n offset='100%'\r\n stopColor='#AE48FF'\r\n stopOpacity='0'></stop>\r\n </motion.linearGradient>\r\n ))}\r\n\r\n <radialGradient\r\n id='paint0_radial_242_278'\r\n cx='0'\r\n cy='0'\r\n r='1'\r\n gradientUnits='userSpaceOnUse'\r\n gradientTransform='translate(352 34) rotate(90) scale(555 1560.62)'>\r\n <stop\r\n offset='0.0666667'\r\n stopColor='#d4d4d4'></stop>\r\n <stop\r\n offset='0.243243'\r\n stopColor='#d4d4d4'></stop>\r\n <stop\r\n offset='0.43594'\r\n stopColor='white'\r\n stopOpacity='0'></stop>\r\n </radialGradient>\r\n </defs>\r\n </svg>\r\n </div>\r\n );\r\n});\r\n\r\nBackgroundBeams.displayName = \"BackgroundBeams\";\r\n"],"names":["BackgroundBeams","React","className","paths","cn","path","index","motion","Math","Infinity"],"mappings":";;;;;AAMO,MAAMA,kBAAkB,WAAlBA,GAAkBC,KAAW,CAAC,EAACC,SAAS,EAAuB;IAC1E,MAAMC,QAAQ;QACZ;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;KACD;IACD,OAAO,WAAP,GACE,IAAC;QACC,WAAWC,GAAG,4GAA4GF;kBAC1H,mBAAC;YACC,WAAU;YACV,OAAM;YACN,QAAO;YACP,SAAQ;YACR,MAAK;YACL,OAAM;;8BACN,IAAC;oBACC,GAAE;oBACF,QAAO;oBACP,eAAc;oBACd,aAAY;;gBAEbC,MAAM,GAAG,CAAC,CAACE,MAAMC,QAAAA,WAAAA,GAChB,IAACC,OAAO,IAAI;wBAEV,GAAGF;wBACH,QAAQ,CAAC,oBAAoB,EAAEC,MAAM,CAAC,CAAC;wBACvC,eAAc;wBACd,aAAY;uBAJP,CAAC,KAAK,EAAEA,OAAO;8BAMxB,KAAC;;wBACEH,MAAM,GAAG,CAAC,CAACE,MAAMC,QAAAA,WAAAA,GAChB,KAACC,OAAO,cAAc;gCACpB,IAAI,CAAC,eAAe,EAAEF,KAAK,CAAC,EAAEC,OAAO;gCAErC,SAAS;oCACP,IAAI;oCACJ,IAAI;oCACJ,IAAI;oCACJ,IAAI;gCACN;gCACA,SAAS;oCACP,IAAI;wCAAC;wCAAM;qCAAO;oCAClB,IAAI;wCAAC;wCAAM;qCAAM;oCACjB,IAAI;wCAAC;wCAAM;qCAAO;oCAClB,IAAI;wCAAC;wCAAM,GAAG,KAAKE,IAAAA,KAAK,MAAM,GAAO,CAAC,CAAC;qCAAC;gCAC1C;gCACA,YAAY;oCACV,UAAUA,KAAAA,KAAK,MAAM,KAAU;oCAC/B,MAAM;oCACN,QAAQC;oCACR,OAAOD,KAAAA,KAAK,MAAM;gCACpB;;kDACA,IAAC;wCACC,WAAU;wCACV,aAAY;;kDACd,IAAC;wCAAK,WAAU;;kDAChB,IAAC;wCACC,QAAO;wCACP,WAAU;;kDACZ,IAAC;wCACC,QAAO;wCACP,WAAU;wCACV,aAAY;;;+BA7BT,CAAC,SAAS,EAAEH,KAAK,CAAC,EAAEC,OAAO;sCAiCpC,KAAC;4BACC,IAAG;4BACH,IAAG;4BACH,IAAG;4BACH,GAAE;4BACF,eAAc;4BACd,mBAAkB;;8CAClB,IAAC;oCACC,QAAO;oCACP,WAAU;;8CACZ,IAAC;oCACC,QAAO;oCACP,WAAU;;8CACZ,IAAC;oCACC,QAAO;oCACP,WAAU;oCACV,aAAY;;;;;;;;;AAM1B;AAEAN,gBAAgB,WAAW,GAAG"}
1
+ {"version":3,"file":"components/ui/background-beams.js","sources":["../../../src/components/ui/background-beams.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport {cn} from \"@/lib/utilities\";\r\nimport {motion} from \"motion/react\";\r\nimport * as React from \"react\";\r\n\r\nexport const BackgroundBeams = React.memo(({className}: {className?: string}) => {\r\n const paths = [\r\n \"M-380 -189C-380 -189 -312 216 152 343C616 470 684 875 684 875\",\r\n \"M-373 -197C-373 -197 -305 208 159 335C623 462 691 867 691 867\",\r\n \"M-366 -205C-366 -205 -298 200 166 327C630 454 698 859 698 859\",\r\n \"M-359 -213C-359 -213 -291 192 173 319C637 446 705 851 705 851\",\r\n \"M-352 -221C-352 -221 -284 184 180 311C644 438 712 843 712 843\",\r\n \"M-345 -229C-345 -229 -277 176 187 303C651 430 719 835 719 835\",\r\n \"M-338 -237C-338 -237 -270 168 194 295C658 422 726 827 726 827\",\r\n \"M-331 -245C-331 -245 -263 160 201 287C665 414 733 819 733 819\",\r\n \"M-324 -253C-324 -253 -256 152 208 279C672 406 740 811 740 811\",\r\n \"M-317 -261C-317 -261 -249 144 215 271C679 398 747 803 747 803\",\r\n \"M-310 -269C-310 -269 -242 136 222 263C686 390 754 795 754 795\",\r\n \"M-303 -277C-303 -277 -235 128 229 255C693 382 761 787 761 787\",\r\n \"M-296 -285C-296 -285 -228 120 236 247C700 374 768 779 768 779\",\r\n \"M-289 -293C-289 -293 -221 112 243 239C707 366 775 771 775 771\",\r\n \"M-282 -301C-282 -301 -214 104 250 231C714 358 782 763 782 763\",\r\n \"M-275 -309C-275 -309 -207 96 257 223C721 350 789 755 789 755\",\r\n \"M-268 -317C-268 -317 -200 88 264 215C728 342 796 747 796 747\",\r\n \"M-261 -325C-261 -325 -193 80 271 207C735 334 803 739 803 739\",\r\n \"M-254 -333C-254 -333 -186 72 278 199C742 326 810 731 810 731\",\r\n \"M-247 -341C-247 -341 -179 64 285 191C749 318 817 723 817 723\",\r\n \"M-240 -349C-240 -349 -172 56 292 183C756 310 824 715 824 715\",\r\n \"M-233 -357C-233 -357 -165 48 299 175C763 302 831 707 831 707\",\r\n \"M-226 -365C-226 -365 -158 40 306 167C770 294 838 699 838 699\",\r\n \"M-219 -373C-219 -373 -151 32 313 159C777 286 845 691 845 691\",\r\n \"M-212 -381C-212 -381 -144 24 320 151C784 278 852 683 852 683\",\r\n \"M-205 -389C-205 -389 -137 16 327 143C791 270 859 675 859 675\",\r\n \"M-198 -397C-198 -397 -130 8 334 135C798 262 866 667 866 667\",\r\n \"M-191 -405C-191 -405 -123 0 341 127C805 254 873 659 873 659\",\r\n \"M-184 -413C-184 -413 -116 -8 348 119C812 246 880 651 880 651\",\r\n \"M-177 -421C-177 -421 -109 -16 355 111C819 238 887 643 887 643\",\r\n \"M-170 -429C-170 -429 -102 -24 362 103C826 230 894 635 894 635\",\r\n \"M-163 -437C-163 -437 -95 -32 369 95C833 222 901 627 901 627\",\r\n \"M-156 -445C-156 -445 -88 -40 376 87C840 214 908 619 908 619\",\r\n \"M-149 -453C-149 -453 -81 -48 383 79C847 206 915 611 915 611\",\r\n \"M-142 -461C-142 -461 -74 -56 390 71C854 198 922 603 922 603\",\r\n \"M-135 -469C-135 -469 -67 -64 397 63C861 190 929 595 929 595\",\r\n \"M-128 -477C-128 -477 -60 -72 404 55C868 182 936 587 936 587\",\r\n \"M-121 -485C-121 -485 -53 -80 411 47C875 174 943 579 943 579\",\r\n \"M-114 -493C-114 -493 -46 -88 418 39C882 166 950 571 950 571\",\r\n \"M-107 -501C-107 -501 -39 -96 425 31C889 158 957 563 957 563\",\r\n \"M-100 -509C-100 -509 -32 -104 432 23C896 150 964 555 964 555\",\r\n \"M-93 -517C-93 -517 -25 -112 439 15C903 142 971 547 971 547\",\r\n \"M-86 -525C-86 -525 -18 -120 446 7C910 134 978 539 978 539\",\r\n \"M-79 -533C-79 -533 -11 -128 453 -1C917 126 985 531 985 531\",\r\n \"M-72 -541C-72 -541 -4 -136 460 -9C924 118 992 523 992 523\",\r\n \"M-65 -549C-65 -549 3 -144 467 -17C931 110 999 515 999 515\",\r\n \"M-58 -557C-58 -557 10 -152 474 -25C938 102 1006 507 1006 507\",\r\n \"M-51 -565C-51 -565 17 -160 481 -33C945 94 1013 499 1013 499\",\r\n \"M-44 -573C-44 -573 24 -168 488 -41C952 86 1020 491 1020 491\",\r\n \"M-37 -581C-37 -581 31 -176 495 -49C959 78 1027 483 1027 483\",\r\n ];\r\n return (\r\n <div\r\n className={cn(\"absolute inset-0 flex h-full w-full items-center justify-center [mask-size:40px] [mask-repeat:no-repeat]\", className)}>\r\n <svg\r\n className='pointer-events-none absolute z-0 h-full w-full'\r\n width='100%'\r\n height='100%'\r\n viewBox='0 0 696 316'\r\n fill='none'\r\n xmlns='http://www.w3.org/2000/svg'>\r\n <path\r\n d='M-380 -189C-380 -189 -312 216 152 343C616 470 684 875 684 875M-373 -197C-373 -197 -305 208 159 335C623 462 691 867 691 867M-366 -205C-366 -205 -298 200 166 327C630 454 698 859 698 859M-359 -213C-359 -213 -291 192 173 319C637 446 705 851 705 851M-352 -221C-352 -221 -284 184 180 311C644 438 712 843 712 843M-345 -229C-345 -229 -277 176 187 303C651 430 719 835 719 835M-338 -237C-338 -237 -270 168 194 295C658 422 726 827 726 827M-331 -245C-331 -245 -263 160 201 287C665 414 733 819 733 819M-324 -253C-324 -253 -256 152 208 279C672 406 740 811 740 811M-317 -261C-317 -261 -249 144 215 271C679 398 747 803 747 803M-310 -269C-310 -269 -242 136 222 263C686 390 754 795 754 795M-303 -277C-303 -277 -235 128 229 255C693 382 761 787 761 787M-296 -285C-296 -285 -228 120 236 247C700 374 768 779 768 779M-289 -293C-289 -293 -221 112 243 239C707 366 775 771 775 771M-282 -301C-282 -301 -214 104 250 231C714 358 782 763 782 763M-275 -309C-275 -309 -207 96 257 223C721 350 789 755 789 755M-268 -317C-268 -317 -200 88 264 215C728 342 796 747 796 747M-261 -325C-261 -325 -193 80 271 207C735 334 803 739 803 739M-254 -333C-254 -333 -186 72 278 199C742 326 810 731 810 731M-247 -341C-247 -341 -179 64 285 191C749 318 817 723 817 723M-240 -349C-240 -349 -172 56 292 183C756 310 824 715 824 715M-233 -357C-233 -357 -165 48 299 175C763 302 831 707 831 707M-226 -365C-226 -365 -158 40 306 167C770 294 838 699 838 699M-219 -373C-219 -373 -151 32 313 159C777 286 845 691 845 691M-212 -381C-212 -381 -144 24 320 151C784 278 852 683 852 683M-205 -389C-205 -389 -137 16 327 143C791 270 859 675 859 675M-198 -397C-198 -397 -130 8 334 135C798 262 866 667 866 667M-191 -405C-191 -405 -123 0 341 127C805 254 873 659 873 659M-184 -413C-184 -413 -116 -8 348 119C812 246 880 651 880 651M-177 -421C-177 -421 -109 -16 355 111C819 238 887 643 887 643M-170 -429C-170 -429 -102 -24 362 103C826 230 894 635 894 635M-163 -437C-163 -437 -95 -32 369 95C833 222 901 627 901 627M-156 -445C-156 -445 -88 -40 376 87C840 214 908 619 908 619M-149 -453C-149 -453 -81 -48 383 79C847 206 915 611 915 611M-142 -461C-142 -461 -74 -56 390 71C854 198 922 603 922 603M-135 -469C-135 -469 -67 -64 397 63C861 190 929 595 929 595M-128 -477C-128 -477 -60 -72 404 55C868 182 936 587 936 587M-121 -485C-121 -485 -53 -80 411 47C875 174 943 579 943 579M-114 -493C-114 -493 -46 -88 418 39C882 166 950 571 950 571M-107 -501C-107 -501 -39 -96 425 31C889 158 957 563 957 563M-100 -509C-100 -509 -32 -104 432 23C896 150 964 555 964 555M-93 -517C-93 -517 -25 -112 439 15C903 142 971 547 971 547M-86 -525C-86 -525 -18 -120 446 7C910 134 978 539 978 539M-79 -533C-79 -533 -11 -128 453 -1C917 126 985 531 985 531M-72 -541C-72 -541 -4 -136 460 -9C924 118 992 523 992 523M-65 -549C-65 -549 3 -144 467 -17C931 110 999 515 999 515M-58 -557C-58 -557 10 -152 474 -25C938 102 1006 507 1006 507M-51 -565C-51 -565 17 -160 481 -33C945 94 1013 499 1013 499M-44 -573C-44 -573 24 -168 488 -41C952 86 1020 491 1020 491M-37 -581C-37 -581 31 -176 495 -49C959 78 1027 483 1027 483M-30 -589C-30 -589 38 -184 502 -57C966 70 1034 475 1034 475M-23 -597C-23 -597 45 -192 509 -65C973 62 1041 467 1041 467M-16 -605C-16 -605 52 -200 516 -73C980 54 1048 459 1048 459M-9 -613C-9 -613 59 -208 523 -81C987 46 1055 451 1055 451M-2 -621C-2 -621 66 -216 530 -89C994 38 1062 443 1062 443M5 -629C5 -629 73 -224 537 -97C1001 30 1069 435 1069 435M12 -637C12 -637 80 -232 544 -105C1008 22 1076 427 1076 427M19 -645C19 -645 87 -240 551 -113C1015 14 1083 419 1083 419'\r\n stroke='url(#paint0_radial_242_278)'\r\n strokeOpacity='0.05'\r\n strokeWidth='0.5'></path>\r\n\r\n {paths.map((path, index) => (\r\n <motion.path\r\n key={`path-${index}`}\r\n d={path}\r\n stroke={`url(#linearGradient-${index})`}\r\n strokeOpacity='0.4'\r\n strokeWidth='0.5'></motion.path>\r\n ))}\r\n <defs>\r\n {paths.map((path, index) => (\r\n <motion.linearGradient\r\n id={`linearGradient-${path}-${index}`}\r\n key={`gradient-${path}-${index}`}\r\n initial={{\r\n x1: \"0%\",\r\n x2: \"0%\",\r\n y1: \"0%\",\r\n y2: \"0%\",\r\n }}\r\n animate={{\r\n x1: [\"0%\", \"100%\"],\r\n x2: [\"0%\", \"95%\"],\r\n y1: [\"0%\", \"100%\"],\r\n y2: [\"0%\", `${93 + Math.random() * 8}%`],\r\n }}\r\n transition={{\r\n duration: Math.random() * 10 + 10,\r\n ease: \"easeInOut\",\r\n repeat: Infinity,\r\n delay: Math.random() * 10,\r\n }}>\r\n <stop\r\n stopColor='#18CCFC'\r\n stopOpacity='0'></stop>\r\n <stop stopColor='#18CCFC'></stop>\r\n <stop\r\n offset='32.5%'\r\n stopColor='#6344F5'></stop>\r\n <stop\r\n offset='100%'\r\n stopColor='#AE48FF'\r\n stopOpacity='0'></stop>\r\n </motion.linearGradient>\r\n ))}\r\n\r\n <radialGradient\r\n id='paint0_radial_242_278'\r\n cx='0'\r\n cy='0'\r\n r='1'\r\n gradientUnits='userSpaceOnUse'\r\n gradientTransform='translate(352 34) rotate(90) scale(555 1560.62)'>\r\n <stop\r\n offset='0.0666667'\r\n stopColor='#d4d4d4'></stop>\r\n <stop\r\n offset='0.243243'\r\n stopColor='#d4d4d4'></stop>\r\n <stop\r\n offset='0.43594'\r\n stopColor='white'\r\n stopOpacity='0'></stop>\r\n </radialGradient>\r\n </defs>\r\n </svg>\r\n </div>\r\n );\r\n});\r\n\r\nBackgroundBeams.displayName = \"BackgroundBeams\";\r\n"],"names":["BackgroundBeams","React","className","paths","cn","path","index","motion","Math","Infinity"],"mappings":";;;;;AAMO,MAAMA,kBAAkB,WAAlBA,GAAkBC,KAAW,CAAC,EAACC,SAAS,EAAuB;IAC1E,MAAMC,QAAQ;QACZ;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;KACD;IACD,OAAO,WAAP,GACE,IAAC;QACC,WAAWC,GAAG,4GAA4GF;kBAC1H,mBAAC;YACC,WAAU;YACV,OAAM;YACN,QAAO;YACP,SAAQ;YACR,MAAK;YACL,OAAM;;8BACN,IAAC;oBACC,GAAE;oBACF,QAAO;oBACP,eAAc;oBACd,aAAY;;gBAEbC,MAAM,GAAG,CAAC,CAACE,MAAMC,QAAAA,WAAAA,GAChB,IAACC,OAAO,IAAI;wBAEV,GAAGF;wBACH,QAAQ,CAAC,oBAAoB,EAAEC,MAAM,CAAC,CAAC;wBACvC,eAAc;wBACd,aAAY;uBAJP,CAAC,KAAK,EAAEA,OAAO;8BAMxB,KAAC;;wBACEH,MAAM,GAAG,CAAC,CAACE,MAAMC,QAAAA,WAAAA,GAChB,KAACC,OAAO,cAAc;gCACpB,IAAI,CAAC,eAAe,EAAEF,KAAK,CAAC,EAAEC,OAAO;gCAErC,SAAS;oCACP,IAAI;oCACJ,IAAI;oCACJ,IAAI;oCACJ,IAAI;gCACN;gCACA,SAAS;oCACP,IAAI;wCAAC;wCAAM;qCAAO;oCAClB,IAAI;wCAAC;wCAAM;qCAAM;oCACjB,IAAI;wCAAC;wCAAM;qCAAO;oCAClB,IAAI;wCAAC;wCAAM,GAAG,KAAKE,AAAgB,IAAhBA,KAAK,MAAM,GAAO,CAAC,CAAC;qCAAC;gCAC1C;gCACA,YAAY;oCACV,UAAUA,AAAgB,KAAhBA,KAAK,MAAM,KAAU;oCAC/B,MAAM;oCACN,QAAQC;oCACR,OAAOD,AAAgB,KAAhBA,KAAK,MAAM;gCACpB;;kDACA,IAAC;wCACC,WAAU;wCACV,aAAY;;kDACd,IAAC;wCAAK,WAAU;;kDAChB,IAAC;wCACC,QAAO;wCACP,WAAU;;kDACZ,IAAC;wCACC,QAAO;wCACP,WAAU;wCACV,aAAY;;;+BA7BT,CAAC,SAAS,EAAEH,KAAK,CAAC,EAAEC,OAAO;sCAiCpC,KAAC;4BACC,IAAG;4BACH,IAAG;4BACH,IAAG;4BACH,GAAE;4BACF,eAAc;4BACd,mBAAkB;;8CAClB,IAAC;oCACC,QAAO;oCACP,WAAU;;8CACZ,IAAC;oCACC,QAAO;oCACP,WAAU;;8CACZ,IAAC;oCACC,QAAO;oCACP,WAAU;oCACV,aAAY;;;;;;;;;AAM1B;AAEAN,gBAAgB,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"components\\ui\\badge.js","sources":["webpack://@arolariu/components/./src/components/ui/badge.tsx"],"sourcesContent":["\r\n\r\nimport {cva, type VariantProps} from \"class-variance-authority\";\r\nimport * as React from \"react\";\r\n\r\nimport {cn} from \"@/lib/utilities\";\r\n\r\nconst badgeVariants = cva(\r\n \"inline-flex items-center rounded-md border border-neutral-200 px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-neutral-950 focus:ring-offset-2 dark:border-neutral-800 dark:focus:ring-neutral-300\",\r\n {\r\n variants: {\r\n variant: {\r\n default:\r\n \"border-transparent bg-neutral-900 text-neutral-50 shadow hover:bg-neutral-900/80 dark:bg-neutral-50 dark:text-neutral-900 dark:hover:bg-neutral-50/80\",\r\n secondary:\r\n \"border-transparent bg-neutral-100 text-neutral-900 hover:bg-neutral-100/80 dark:bg-neutral-800 dark:text-neutral-50 dark:hover:bg-neutral-800/80\",\r\n destructive:\r\n \"border-transparent bg-red-500 text-neutral-50 shadow hover:bg-red-500/80 dark:bg-red-900 dark:text-neutral-50 dark:hover:bg-red-900/80\",\r\n outline: \"text-neutral-950 dark:text-neutral-50\",\r\n },\r\n },\r\n defaultVariants: {\r\n variant: \"default\",\r\n },\r\n },\r\n);\r\n\r\nexport interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {}\r\n\r\nfunction Badge({className, variant, ...props}: BadgeProps) {\r\n return (\r\n <div\r\n className={cn(badgeVariants({variant}), className)}\r\n {...props}\r\n />\r\n );\r\n}\r\n\r\nexport {Badge, badgeVariants};\r\n"],"names":["badgeVariants","cva","Badge","className","variant","props","cn"],"mappings":";;;;;AAOA,MAAMA,gBAAgBC,IACpB,sPACA;IACE,UAAU;QACR,SAAS;YACP,SACE;YACF,WACE;YACF,aACE;YACF,SAAS;QACX;IACF;IACA,iBAAiB;QACf,SAAS;IACX;AACF;AAKF,SAASC,MAAM,EAACC,SAAS,EAAEC,OAAO,EAAE,GAAGC,OAAkB;IACvD,OAAO,WAAP,GACE,IAAC;QACC,WAAWC,GAAGN,cAAc;YAACI;QAAO,IAAID;QACvC,GAAGE,KAAK;;AAGf"}
1
+ {"version":3,"file":"components/ui/badge.js","sources":["../../../src/components/ui/badge.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport {cva, type VariantProps} from \"class-variance-authority\";\r\nimport * as React from \"react\";\r\n\r\nimport {cn} from \"@/lib/utilities\";\r\n\r\nconst badgeVariants = cva(\r\n \"inline-flex items-center rounded-md border border-neutral-200 px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-neutral-950 focus:ring-offset-2 dark:border-neutral-800 dark:focus:ring-neutral-300\",\r\n {\r\n variants: {\r\n variant: {\r\n default:\r\n \"border-transparent bg-neutral-900 text-neutral-50 shadow hover:bg-neutral-900/80 dark:bg-neutral-50 dark:text-neutral-900 dark:hover:bg-neutral-50/80\",\r\n secondary:\r\n \"border-transparent bg-neutral-100 text-neutral-900 hover:bg-neutral-100/80 dark:bg-neutral-800 dark:text-neutral-50 dark:hover:bg-neutral-800/80\",\r\n destructive:\r\n \"border-transparent bg-red-500 text-neutral-50 shadow hover:bg-red-500/80 dark:bg-red-900 dark:text-neutral-50 dark:hover:bg-red-900/80\",\r\n outline: \"text-neutral-950 dark:text-neutral-50\",\r\n },\r\n },\r\n defaultVariants: {\r\n variant: \"default\",\r\n },\r\n },\r\n);\r\n\r\nexport interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {}\r\n\r\nfunction Badge({className, variant, ...props}: BadgeProps) {\r\n return (\r\n <div\r\n className={cn(badgeVariants({variant}), className)}\r\n {...props}\r\n />\r\n );\r\n}\r\n\r\nexport {Badge, badgeVariants};\r\n"],"names":["badgeVariants","cva","Badge","className","variant","props","cn"],"mappings":";;;;;AAOA,MAAMA,gBAAgBC,IACpB,sPACA;IACE,UAAU;QACR,SAAS;YACP,SACE;YACF,WACE;YACF,aACE;YACF,SAAS;QACX;IACF;IACA,iBAAiB;QACf,SAAS;IACX;AACF;AAKF,SAASC,MAAM,EAACC,SAAS,EAAEC,OAAO,EAAE,GAAGC,OAAkB;IACvD,OAAO,WAAP,GACE,IAAC;QACC,WAAWC,GAAGN,cAAc;YAACI;QAAO,IAAID;QACvC,GAAGE,KAAK;;AAGf"}
@@ -1 +1 @@
1
- {"version":3,"file":"components\\ui\\breadcrumb.js","sources":["webpack://@arolariu/components/./src/components/ui/breadcrumb.tsx"],"sourcesContent":["\r\n\r\nimport {Slot} from \"@radix-ui/react-slot\";\r\nimport {ChevronRight, MoreHorizontal} from \"lucide-react\";\r\nimport * as React from \"react\";\r\n\r\nimport {cn} from \"@/lib/utilities\";\r\n\r\nconst Breadcrumb = React.forwardRef<\r\n HTMLElement,\r\n React.ComponentPropsWithoutRef<\"nav\"> & {\r\n separator?: React.ReactNode;\r\n }\r\n>(({...props}, ref) => (\r\n <nav\r\n ref={ref}\r\n aria-label='breadcrumb'\r\n {...props}\r\n />\r\n));\r\nBreadcrumb.displayName = \"Breadcrumb\";\r\n\r\nconst BreadcrumbList = React.forwardRef<HTMLOListElement, React.ComponentPropsWithoutRef<\"ol\">>(({className, ...props}, ref) => (\r\n <ol\r\n ref={ref}\r\n className={cn(\"flex flex-wrap items-center gap-1.5 text-sm break-words text-neutral-500 sm:gap-2.5 dark:text-neutral-400\", className)}\r\n {...props}\r\n />\r\n));\r\nBreadcrumbList.displayName = \"BreadcrumbList\";\r\n\r\nconst BreadcrumbItem = React.forwardRef<HTMLLIElement, React.ComponentPropsWithoutRef<\"li\">>(({className, ...props}, ref) => (\r\n <li\r\n ref={ref}\r\n className={cn(\"inline-flex items-center gap-1.5\", className)}\r\n {...props}\r\n />\r\n));\r\nBreadcrumbItem.displayName = \"BreadcrumbItem\";\r\n\r\nconst BreadcrumbLink = React.forwardRef<\r\n HTMLAnchorElement,\r\n React.ComponentPropsWithoutRef<\"a\"> & {\r\n asChild?: boolean;\r\n }\r\n>(({asChild, className, ...props}, ref) => {\r\n const Comp = asChild ? Slot : \"a\";\r\n\r\n return (\r\n <Comp\r\n ref={ref}\r\n className={cn(\"transition-colors hover:text-neutral-950 dark:hover:text-neutral-50\", className)}\r\n {...props}\r\n />\r\n );\r\n});\r\nBreadcrumbLink.displayName = \"BreadcrumbLink\";\r\n\r\nconst BreadcrumbPage = React.forwardRef<HTMLSpanElement, React.ComponentPropsWithoutRef<\"span\">>(({className, ...props}, ref) => (\r\n <span\r\n ref={ref}\r\n role='link'\r\n aria-disabled='true'\r\n aria-current='page'\r\n className={cn(\"font-normal text-neutral-950 dark:text-neutral-50\", className)}\r\n {...props}\r\n />\r\n));\r\nBreadcrumbPage.displayName = \"BreadcrumbPage\";\r\n\r\nconst BreadcrumbSeparator = ({children, className, ...props}: React.ComponentProps<\"li\">) => (\r\n <li\r\n role='presentation'\r\n aria-hidden='true'\r\n className={cn(\"[&>svg]:h-3.5 [&>svg]:w-3.5\", className)}\r\n {...props}>\r\n {children ?? <ChevronRight />}\r\n </li>\r\n);\r\nBreadcrumbSeparator.displayName = \"BreadcrumbSeparator\";\r\n\r\nconst BreadcrumbEllipsis = ({className, ...props}: React.ComponentProps<\"span\">) => (\r\n <span\r\n role='presentation'\r\n aria-hidden='true'\r\n className={cn(\"flex h-9 w-9 items-center justify-center\", className)}\r\n {...props}>\r\n <MoreHorizontal className='h-4 w-4' />\r\n <span className='sr-only'>More</span>\r\n </span>\r\n);\r\nBreadcrumbEllipsis.displayName = \"BreadcrumbElipssis\";\r\n\r\nexport {Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator};\r\n"],"names":["Breadcrumb","React","props","ref","BreadcrumbList","className","cn","BreadcrumbItem","BreadcrumbLink","asChild","Comp","Slot","BreadcrumbPage","BreadcrumbSeparator","children","ChevronRight","BreadcrumbEllipsis","MoreHorizontal"],"mappings":";;;;;;AAQA,MAAMA,aAAa,WAAbA,GAAaC,WAKjB,CAAC,EAAC,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GACb,IAAC;QACC,KAAKA;QACL,cAAW;QACV,GAAGD,KAAK;;AAGbF,WAAW,WAAW,GAAG;AAEzB,MAAMI,iBAAiB,WAAjBA,GAAiBH,WAAyE,CAAC,EAACI,SAAS,EAAE,GAAGH,OAAM,EAAEC,MAAAA,WAAAA,GACtH,IAAC;QACC,KAAKA;QACL,WAAWG,GAAG,6GAA6GD;QAC1H,GAAGH,KAAK;;AAGbE,eAAe,WAAW,GAAG;AAE7B,MAAMG,iBAAiB,WAAjBA,GAAiBN,WAAsE,CAAC,EAACI,SAAS,EAAE,GAAGH,OAAM,EAAEC,MAAAA,WAAAA,GACnH,IAAC;QACC,KAAKA;QACL,WAAWG,GAAG,oCAAoCD;QACjD,GAAGH,KAAK;;AAGbK,eAAe,WAAW,GAAG;AAE7B,MAAMC,iBAAiB,WAAjBA,GAAiBP,WAKrB,CAAC,EAACQ,OAAO,EAAEJ,SAAS,EAAE,GAAGH,OAAM,EAAEC;IACjC,MAAMO,OAAOD,UAAUE,OAAO;IAE9B,OAAO,WAAP,GACE,IAACD,MAAAA;QACC,KAAKP;QACL,WAAWG,GAAG,uEAAuED;QACpF,GAAGH,KAAK;;AAGf;AACAM,eAAe,WAAW,GAAG;AAE7B,MAAMI,iBAAiB,WAAjBA,GAAiBX,WAA0E,CAAC,EAACI,SAAS,EAAE,GAAGH,OAAM,EAAEC,MAAAA,WAAAA,GACvH,IAAC;QACC,KAAKA;QACL,MAAK;QACL,iBAAc;QACd,gBAAa;QACb,WAAWG,GAAG,qDAAqDD;QAClE,GAAGH,KAAK;;AAGbU,eAAe,WAAW,GAAG;AAE7B,MAAMC,sBAAsB,CAAC,EAACC,QAAQ,EAAET,SAAS,EAAE,GAAGH,OAAkC,iBACtF,IAAC;QACC,MAAK;QACL,eAAY;QACZ,WAAWI,GAAG,+BAA+BD;QAC5C,GAAGH,KAAK;kBACRY,YAAY,WAAZA,GAAY,IAACC,cAAYA,CAAAA;;AAG9BF,oBAAoB,WAAW,GAAG;AAElC,MAAMG,qBAAqB,CAAC,EAACX,SAAS,EAAE,GAAGH,OAAoC,iBAC7E,KAAC;QACC,MAAK;QACL,eAAY;QACZ,WAAWI,GAAG,4CAA4CD;QACzD,GAAGH,KAAK;;0BACT,IAACe,gBAAcA;gBAAC,WAAU;;0BAC1B,IAAC;gBAAK,WAAU;0BAAU;;;;AAG9BD,mBAAmB,WAAW,GAAG"}
1
+ {"version":3,"file":"components/ui/breadcrumb.js","sources":["../../../src/components/ui/breadcrumb.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport {Slot} from \"@radix-ui/react-slot\";\r\nimport {ChevronRight, MoreHorizontal} from \"lucide-react\";\r\nimport * as React from \"react\";\r\n\r\nimport {cn} from \"@/lib/utilities\";\r\n\r\nconst Breadcrumb = React.forwardRef<\r\n HTMLElement,\r\n React.ComponentPropsWithoutRef<\"nav\"> & {\r\n separator?: React.ReactNode;\r\n }\r\n>(({...props}, ref) => (\r\n <nav\r\n ref={ref}\r\n aria-label='breadcrumb'\r\n {...props}\r\n />\r\n));\r\nBreadcrumb.displayName = \"Breadcrumb\";\r\n\r\nconst BreadcrumbList = React.forwardRef<HTMLOListElement, React.ComponentPropsWithoutRef<\"ol\">>(({className, ...props}, ref) => (\r\n <ol\r\n ref={ref}\r\n className={cn(\"flex flex-wrap items-center gap-1.5 text-sm break-words text-neutral-500 sm:gap-2.5 dark:text-neutral-400\", className)}\r\n {...props}\r\n />\r\n));\r\nBreadcrumbList.displayName = \"BreadcrumbList\";\r\n\r\nconst BreadcrumbItem = React.forwardRef<HTMLLIElement, React.ComponentPropsWithoutRef<\"li\">>(({className, ...props}, ref) => (\r\n <li\r\n ref={ref}\r\n className={cn(\"inline-flex items-center gap-1.5\", className)}\r\n {...props}\r\n />\r\n));\r\nBreadcrumbItem.displayName = \"BreadcrumbItem\";\r\n\r\nconst BreadcrumbLink = React.forwardRef<\r\n HTMLAnchorElement,\r\n React.ComponentPropsWithoutRef<\"a\"> & {\r\n asChild?: boolean;\r\n }\r\n>(({asChild, className, ...props}, ref) => {\r\n const Comp = asChild ? Slot : \"a\";\r\n\r\n return (\r\n <Comp\r\n ref={ref}\r\n className={cn(\"transition-colors hover:text-neutral-950 dark:hover:text-neutral-50\", className)}\r\n {...props}\r\n />\r\n );\r\n});\r\nBreadcrumbLink.displayName = \"BreadcrumbLink\";\r\n\r\nconst BreadcrumbPage = React.forwardRef<HTMLSpanElement, React.ComponentPropsWithoutRef<\"span\">>(({className, ...props}, ref) => (\r\n <span\r\n ref={ref}\r\n role='link'\r\n aria-disabled='true'\r\n aria-current='page'\r\n className={cn(\"font-normal text-neutral-950 dark:text-neutral-50\", className)}\r\n {...props}\r\n />\r\n));\r\nBreadcrumbPage.displayName = \"BreadcrumbPage\";\r\n\r\nconst BreadcrumbSeparator = ({children, className, ...props}: React.ComponentProps<\"li\">) => (\r\n <li\r\n role='presentation'\r\n aria-hidden='true'\r\n className={cn(\"[&>svg]:h-3.5 [&>svg]:w-3.5\", className)}\r\n {...props}>\r\n {children ?? <ChevronRight />}\r\n </li>\r\n);\r\nBreadcrumbSeparator.displayName = \"BreadcrumbSeparator\";\r\n\r\nconst BreadcrumbEllipsis = ({className, ...props}: React.ComponentProps<\"span\">) => (\r\n <span\r\n role='presentation'\r\n aria-hidden='true'\r\n className={cn(\"flex h-9 w-9 items-center justify-center\", className)}\r\n {...props}>\r\n <MoreHorizontal className='h-4 w-4' />\r\n <span className='sr-only'>More</span>\r\n </span>\r\n);\r\nBreadcrumbEllipsis.displayName = \"BreadcrumbElipssis\";\r\n\r\nexport {Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator};\r\n"],"names":["Breadcrumb","React","props","ref","BreadcrumbList","className","cn","BreadcrumbItem","BreadcrumbLink","asChild","Comp","Slot","BreadcrumbPage","BreadcrumbSeparator","children","ChevronRight","BreadcrumbEllipsis","MoreHorizontal"],"mappings":";;;;;;AAQA,MAAMA,aAAa,WAAbA,GAAaC,WAKjB,CAAC,EAAC,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GACb,IAAC;QACC,KAAKA;QACL,cAAW;QACV,GAAGD,KAAK;;AAGbF,WAAW,WAAW,GAAG;AAEzB,MAAMI,iBAAiB,WAAjBA,GAAiBH,WAAyE,CAAC,EAACI,SAAS,EAAE,GAAGH,OAAM,EAAEC,MAAAA,WAAAA,GACtH,IAAC;QACC,KAAKA;QACL,WAAWG,GAAG,6GAA6GD;QAC1H,GAAGH,KAAK;;AAGbE,eAAe,WAAW,GAAG;AAE7B,MAAMG,iBAAiB,WAAjBA,GAAiBN,WAAsE,CAAC,EAACI,SAAS,EAAE,GAAGH,OAAM,EAAEC,MAAAA,WAAAA,GACnH,IAAC;QACC,KAAKA;QACL,WAAWG,GAAG,oCAAoCD;QACjD,GAAGH,KAAK;;AAGbK,eAAe,WAAW,GAAG;AAE7B,MAAMC,iBAAiB,WAAjBA,GAAiBP,WAKrB,CAAC,EAACQ,OAAO,EAAEJ,SAAS,EAAE,GAAGH,OAAM,EAAEC;IACjC,MAAMO,OAAOD,UAAUE,OAAO;IAE9B,OAAO,WAAP,GACE,IAACD,MAAAA;QACC,KAAKP;QACL,WAAWG,GAAG,uEAAuED;QACpF,GAAGH,KAAK;;AAGf;AACAM,eAAe,WAAW,GAAG;AAE7B,MAAMI,iBAAiB,WAAjBA,GAAiBX,WAA0E,CAAC,EAACI,SAAS,EAAE,GAAGH,OAAM,EAAEC,MAAAA,WAAAA,GACvH,IAAC;QACC,KAAKA;QACL,MAAK;QACL,iBAAc;QACd,gBAAa;QACb,WAAWG,GAAG,qDAAqDD;QAClE,GAAGH,KAAK;;AAGbU,eAAe,WAAW,GAAG;AAE7B,MAAMC,sBAAsB,CAAC,EAACC,QAAQ,EAAET,SAAS,EAAE,GAAGH,OAAkC,iBACtF,IAAC;QACC,MAAK;QACL,eAAY;QACZ,WAAWI,GAAG,+BAA+BD;QAC5C,GAAGH,KAAK;kBACRY,YAAY,WAAZA,GAAY,IAACC,cAAYA,CAAAA;;AAG9BF,oBAAoB,WAAW,GAAG;AAElC,MAAMG,qBAAqB,CAAC,EAACX,SAAS,EAAE,GAAGH,OAAoC,iBAC7E,KAAC;QACC,MAAK;QACL,eAAY;QACZ,WAAWI,GAAG,4CAA4CD;QACzD,GAAGH,KAAK;;0BACT,IAACe,gBAAcA;gBAAC,WAAU;;0BAC1B,IAAC;gBAAK,WAAU;0BAAU;;;;AAG9BD,mBAAmB,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"components\\ui\\bubble-background.js","sources":["webpack://@arolariu/components/./src/components/ui/bubble-background.tsx"],"sourcesContent":["\r\n\r\nimport {motion, type SpringOptions, Transition, useMotionValue, useSpring} from \"motion/react\";\r\nimport * as React from \"react\";\r\n\r\nimport {cn} from \"@/lib/utilities\";\r\n\r\ninterface BubbleBackgroundProps extends React.HTMLAttributes<HTMLDivElement> {\r\n interactive?: boolean;\r\n transition?: SpringOptions;\r\n colors?: {\r\n first: string;\r\n second: string;\r\n third: string;\r\n fourth: string;\r\n fifth: string;\r\n sixth: string;\r\n };\r\n}\r\n\r\nconst BubbleBackground = React.forwardRef<HTMLDivElement, BubbleBackgroundProps>(\r\n (\r\n {\r\n className,\r\n children,\r\n interactive = false,\r\n transition = {stiffness: 100, damping: 20},\r\n colors = {\r\n first: \"18,113,255\",\r\n second: \"221,74,255\",\r\n third: \"0,220,255\",\r\n fourth: \"200,50,50\",\r\n fifth: \"180,180,50\",\r\n sixth: \"140,100,255\",\r\n },\r\n ...props\r\n },\r\n ref,\r\n ) => {\r\n const containerRef = React.useRef<HTMLDivElement>(null);\r\n React.useImperativeHandle(ref, () => containerRef.current as HTMLDivElement);\r\n\r\n const mouseX = useMotionValue(0);\r\n const mouseY = useMotionValue(0);\r\n const springX = useSpring(mouseX, transition);\r\n const springY = useSpring(mouseY, transition);\r\n\r\n React.useEffect(() => {\r\n if (!interactive) return;\r\n\r\n const currentContainer = containerRef.current;\r\n if (!currentContainer) return;\r\n\r\n const handleMouseMove = (e: MouseEvent) => {\r\n const rect = currentContainer.getBoundingClientRect();\r\n const centerX = rect.left + rect.width / 2;\r\n const centerY = rect.top + rect.height / 2;\r\n mouseX.set(e.clientX - centerX);\r\n mouseY.set(e.clientY - centerY);\r\n };\r\n\r\n currentContainer?.addEventListener(\"mousemove\", handleMouseMove);\r\n return () => currentContainer?.removeEventListener(\"mousemove\", handleMouseMove);\r\n }, [interactive, mouseX, mouseY]);\r\n\r\n return (\r\n <div\r\n ref={containerRef}\r\n className={cn(\"relative size-full overflow-hidden bg-gradient-to-br from-violet-900 to-blue-900\", className)}\r\n {...props}>\r\n <style>\r\n {`\r\n :root {\r\n --first-color: ${colors.first};\r\n --second-color: ${colors.second};\r\n --third-color: ${colors.third};\r\n --fourth-color: ${colors.fourth};\r\n --fifth-color: ${colors.fifth};\r\n --sixth-color: ${colors.sixth};\r\n }\r\n `}\r\n </style>\r\n\r\n <svg\r\n xmlns='http://www.w3.org/2000/svg'\r\n className='absolute top-0 left-0 h-0 w-0'>\r\n <defs>\r\n <filter id='goo'>\r\n <feGaussianBlur\r\n in='SourceGraphic'\r\n stdDeviation='10'\r\n result='blur'\r\n />\r\n <feColorMatrix\r\n in='blur'\r\n mode='matrix'\r\n values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -8'\r\n result='goo'\r\n />\r\n <feBlend\r\n in='SourceGraphic'\r\n in2='goo'\r\n />\r\n </filter>\r\n </defs>\r\n </svg>\r\n\r\n <div\r\n className='absolute inset-0'\r\n style={{filter: \"url(#goo) blur(40px)\"}}>\r\n <motion.div\r\n className='absolute top-[10%] left-[10%] size-[80%] rounded-full bg-[radial-gradient(circle_at_center,rgba(var(--first-color),0.8)_0%,rgba(var(--first-color),0)_50%)] mix-blend-hard-light'\r\n animate={{y: [-50, 50, -50]}}\r\n transition={{duration: 30, ease: \"easeInOut\", repeat: Infinity}}\r\n />\r\n\r\n <motion.div\r\n className='absolute inset-0 flex origin-[calc(50%-400px)] items-center justify-center'\r\n animate={{rotate: 360}}\r\n transition={\r\n {\r\n duration: 20,\r\n ease: \"linear\",\r\n repeat: Infinity,\r\n repeatType: \"reverse\",\r\n } satisfies Transition\r\n }>\r\n <div className='top-[10%] left-[10%] size-[80%] rounded-full bg-[radial-gradient(circle_at_center,rgba(var(--second-color),0.8)_0%,rgba(var(--second-color),0)_50%)] mix-blend-hard-light' />\r\n </motion.div>\r\n\r\n <motion.div\r\n className='absolute inset-0 flex origin-[calc(50%+400px)] items-center justify-center'\r\n animate={{rotate: 360}}\r\n transition={{duration: 40, ease: \"linear\", repeat: Infinity}}>\r\n <div className='absolute top-[calc(50%+200px)] left-[calc(50%-500px)] size-[80%] rounded-full bg-[radial-gradient(circle_at_center,rgba(var(--third-color),0.8)_0%,rgba(var(--third-color),0)_50%)] mix-blend-hard-light' />\r\n </motion.div>\r\n\r\n <motion.div\r\n className='absolute top-[10%] left-[10%] size-[80%] rounded-full bg-[radial-gradient(circle_at_center,rgba(var(--fourth-color),0.8)_0%,rgba(var(--fourth-color),0)_50%)] opacity-70 mix-blend-hard-light'\r\n animate={{x: [-50, 50, -50]}}\r\n transition={{duration: 40, ease: \"easeInOut\", repeat: Infinity}}\r\n />\r\n\r\n <motion.div\r\n className='absolute inset-0 flex origin-[calc(50%_-_800px)_calc(50%_+_200px)] items-center justify-center'\r\n animate={{rotate: 360}}\r\n transition={{duration: 20, ease: \"linear\", repeat: Infinity}}>\r\n <div className='absolute top-[calc(50%-80%)] left-[calc(50%-80%)] size-[160%] rounded-full bg-[radial-gradient(circle_at_center,rgba(var(--fifth-color),0.8)_0%,rgba(var(--fifth-color),0)_50%)] mix-blend-hard-light' />\r\n </motion.div>\r\n\r\n {Boolean(interactive) && (\r\n <motion.div\r\n className='absolute size-full rounded-full bg-[radial-gradient(circle_at_center,rgba(var(--sixth-color),0.8)_0%,rgba(var(--sixth-color),0)_50%)] opacity-70 mix-blend-hard-light'\r\n style={{\r\n x: springX,\r\n y: springY,\r\n }}\r\n />\r\n )}\r\n </div>\r\n\r\n {children}\r\n </div>\r\n );\r\n },\r\n);\r\n\r\nBubbleBackground.displayName = \"BubbleBackground\";\r\n\r\nexport {BubbleBackground, type BubbleBackgroundProps};\r\n"],"names":["BubbleBackground","React","className","children","interactive","transition","colors","props","ref","containerRef","mouseX","useMotionValue","mouseY","springX","useSpring","springY","currentContainer","handleMouseMove","e","rect","centerX","centerY","cn","motion","Infinity","Boolean"],"mappings":";;;;;AAoBA,MAAMA,mBAAmB,WAAnBA,GAAmBC,WACvB,CACE,EACEC,SAAS,EACTC,QAAQ,EACRC,cAAc,KAAK,EACnBC,aAAa;IAAC,WAAW;IAAK,SAAS;AAAE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/components/ui/bubble-background.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport {motion, type SpringOptions, Transition, useMotionValue, useSpring} from \"motion/react\";\r\nimport * as React from \"react\";\r\n\r\nimport {cn} from \"@/lib/utilities\";\r\n\r\ninterface BubbleBackgroundProps extends React.HTMLAttributes<HTMLDivElement> {\r\n interactive?: boolean;\r\n transition?: SpringOptions;\r\n colors?: {\r\n first: string;\r\n second: string;\r\n third: string;\r\n fourth: string;\r\n fifth: string;\r\n sixth: string;\r\n };\r\n}\r\n\r\nconst BubbleBackground = React.forwardRef<HTMLDivElement, BubbleBackgroundProps>(\r\n (\r\n {\r\n className,\r\n children,\r\n interactive = false,\r\n transition = {stiffness: 100, damping: 20},\r\n colors = {\r\n first: \"18,113,255\",\r\n second: \"221,74,255\",\r\n third: \"0,220,255\",\r\n fourth: \"200,50,50\",\r\n fifth: \"180,180,50\",\r\n sixth: \"140,100,255\",\r\n },\r\n ...props\r\n },\r\n ref,\r\n ) => {\r\n const containerRef = React.useRef<HTMLDivElement>(null);\r\n React.useImperativeHandle(ref, () => containerRef.current as HTMLDivElement);\r\n\r\n const mouseX = useMotionValue(0);\r\n const mouseY = useMotionValue(0);\r\n const springX = useSpring(mouseX, transition);\r\n const springY = useSpring(mouseY, transition);\r\n\r\n React.useEffect(() => {\r\n if (!interactive) return;\r\n\r\n const currentContainer = containerRef.current;\r\n if (!currentContainer) return;\r\n\r\n const handleMouseMove = (e: MouseEvent) => {\r\n const rect = currentContainer.getBoundingClientRect();\r\n const centerX = rect.left + rect.width / 2;\r\n const centerY = rect.top + rect.height / 2;\r\n mouseX.set(e.clientX - centerX);\r\n mouseY.set(e.clientY - centerY);\r\n };\r\n\r\n currentContainer?.addEventListener(\"mousemove\", handleMouseMove);\r\n return () => currentContainer?.removeEventListener(\"mousemove\", handleMouseMove);\r\n }, [interactive, mouseX, mouseY]);\r\n\r\n return (\r\n <div\r\n ref={containerRef}\r\n className={cn(\"relative size-full overflow-hidden bg-gradient-to-br from-violet-900 to-blue-900\", className)}\r\n {...props}>\r\n <style>\r\n {`\r\n :root {\r\n --first-color: ${colors.first};\r\n --second-color: ${colors.second};\r\n --third-color: ${colors.third};\r\n --fourth-color: ${colors.fourth};\r\n --fifth-color: ${colors.fifth};\r\n --sixth-color: ${colors.sixth};\r\n }\r\n `}\r\n </style>\r\n\r\n <svg\r\n xmlns='http://www.w3.org/2000/svg'\r\n className='absolute top-0 left-0 h-0 w-0'>\r\n <defs>\r\n <filter id='goo'>\r\n <feGaussianBlur\r\n in='SourceGraphic'\r\n stdDeviation='10'\r\n result='blur'\r\n />\r\n <feColorMatrix\r\n in='blur'\r\n mode='matrix'\r\n values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -8'\r\n result='goo'\r\n />\r\n <feBlend\r\n in='SourceGraphic'\r\n in2='goo'\r\n />\r\n </filter>\r\n </defs>\r\n </svg>\r\n\r\n <div\r\n className='absolute inset-0'\r\n style={{filter: \"url(#goo) blur(40px)\"}}>\r\n <motion.div\r\n className='absolute top-[10%] left-[10%] size-[80%] rounded-full bg-[radial-gradient(circle_at_center,rgba(var(--first-color),0.8)_0%,rgba(var(--first-color),0)_50%)] mix-blend-hard-light'\r\n animate={{y: [-50, 50, -50]}}\r\n transition={{duration: 30, ease: \"easeInOut\", repeat: Infinity}}\r\n />\r\n\r\n <motion.div\r\n className='absolute inset-0 flex origin-[calc(50%-400px)] items-center justify-center'\r\n animate={{rotate: 360}}\r\n transition={\r\n {\r\n duration: 20,\r\n ease: \"linear\",\r\n repeat: Infinity,\r\n repeatType: \"reverse\",\r\n } satisfies Transition\r\n }>\r\n <div className='top-[10%] left-[10%] size-[80%] rounded-full bg-[radial-gradient(circle_at_center,rgba(var(--second-color),0.8)_0%,rgba(var(--second-color),0)_50%)] mix-blend-hard-light' />\r\n </motion.div>\r\n\r\n <motion.div\r\n className='absolute inset-0 flex origin-[calc(50%+400px)] items-center justify-center'\r\n animate={{rotate: 360}}\r\n transition={{duration: 40, ease: \"linear\", repeat: Infinity}}>\r\n <div className='absolute top-[calc(50%+200px)] left-[calc(50%-500px)] size-[80%] rounded-full bg-[radial-gradient(circle_at_center,rgba(var(--third-color),0.8)_0%,rgba(var(--third-color),0)_50%)] mix-blend-hard-light' />\r\n </motion.div>\r\n\r\n <motion.div\r\n className='absolute top-[10%] left-[10%] size-[80%] rounded-full bg-[radial-gradient(circle_at_center,rgba(var(--fourth-color),0.8)_0%,rgba(var(--fourth-color),0)_50%)] opacity-70 mix-blend-hard-light'\r\n animate={{x: [-50, 50, -50]}}\r\n transition={{duration: 40, ease: \"easeInOut\", repeat: Infinity}}\r\n />\r\n\r\n <motion.div\r\n className='absolute inset-0 flex origin-[calc(50%_-_800px)_calc(50%_+_200px)] items-center justify-center'\r\n animate={{rotate: 360}}\r\n transition={{duration: 20, ease: \"linear\", repeat: Infinity}}>\r\n <div className='absolute top-[calc(50%-80%)] left-[calc(50%-80%)] size-[160%] rounded-full bg-[radial-gradient(circle_at_center,rgba(var(--fifth-color),0.8)_0%,rgba(var(--fifth-color),0)_50%)] mix-blend-hard-light' />\r\n </motion.div>\r\n\r\n {Boolean(interactive) && (\r\n <motion.div\r\n className='absolute size-full rounded-full bg-[radial-gradient(circle_at_center,rgba(var(--sixth-color),0.8)_0%,rgba(var(--sixth-color),0)_50%)] opacity-70 mix-blend-hard-light'\r\n style={{\r\n x: springX,\r\n y: springY,\r\n }}\r\n />\r\n )}\r\n </div>\r\n\r\n {children}\r\n </div>\r\n );\r\n },\r\n);\r\n\r\nBubbleBackground.displayName = \"BubbleBackground\";\r\n\r\nexport {BubbleBackground, type BubbleBackgroundProps};\r\n"],"names":["BubbleBackground","React","className","children","interactive","transition","colors","props","ref","containerRef","mouseX","useMotionValue","mouseY","springX","useSpring","springY","currentContainer","handleMouseMove","e","rect","centerX","centerY","cn","motion","Infinity","Boolean"],"mappings":";;;;;AAoBA,MAAMA,mBAAmB,WAAnBA,GAAmBC,WACvB,CACE,EACEC,SAAS,EACTC,QA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iBAAiB,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"components\\ui\\button-group.js","sources":["webpack://@arolariu/components/./src/components/ui/button-group.tsx"],"sourcesContent":["\r\n\r\nimport {Slot} from \"@radix-ui/react-slot\";\r\nimport {cva, type VariantProps} from \"class-variance-authority\";\r\nimport * as React from \"react\";\r\n\r\nimport {Separator} from \"@/components/ui/separator\";\r\nimport {cn} from \"@/lib/utilities\";\r\n\r\nconst buttonGroupVariants = cva(\r\n \"flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1\",\r\n {\r\n variants: {\r\n orientation: {\r\n horizontal: \"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none\",\r\n vertical:\r\n \"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none\",\r\n },\r\n },\r\n defaultVariants: {\r\n orientation: \"horizontal\",\r\n },\r\n },\r\n);\r\n\r\nfunction ButtonGroup({className, orientation, ...props}: React.ComponentProps<\"div\"> & VariantProps<typeof buttonGroupVariants>) {\r\n return (\r\n <div\r\n role='group'\r\n data-slot='button-group'\r\n data-orientation={orientation}\r\n className={cn(buttonGroupVariants({orientation}), className)}\r\n {...props}\r\n />\r\n );\r\n}\r\n\r\nfunction ButtonGroupText({\r\n className,\r\n asChild = false,\r\n ...props\r\n}: React.ComponentProps<\"div\"> & {\r\n asChild?: boolean;\r\n}) {\r\n const Comp = asChild ? Slot : \"div\";\r\n\r\n return (\r\n <Comp\r\n className={cn(\r\n \"flex items-center gap-2 rounded-md border border-neutral-200 bg-neutral-100 px-4 text-sm font-medium shadow-xs dark:border-neutral-800 dark:bg-neutral-800 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4\",\r\n className,\r\n )}\r\n {...props}\r\n />\r\n );\r\n}\r\n\r\nfunction ButtonGroupSeparator({className, orientation = \"vertical\", ...props}: React.ComponentProps<typeof Separator>) {\r\n return (\r\n <Separator\r\n data-slot='button-group-separator'\r\n orientation={orientation}\r\n className={cn(\"relative !m-0 self-stretch bg-neutral-200 data-[orientation=vertical]:h-auto dark:bg-neutral-800\", className)}\r\n {...props}\r\n />\r\n );\r\n}\r\n\r\nexport {ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants};\r\n"],"names":["buttonGroupVariants","cva","ButtonGroup","className","orientation","props","cn","ButtonGroupText","asChild","Comp","Slot","ButtonGroupSeparator","Separator"],"mappings":";;;;;;;AASA,MAAMA,sBAAsBC,IAC1B,oSACA;IACE,UAAU;QACR,aAAa;YACX,YAAY;YACZ,UACE;QACJ;IACF;IACA,iBAAiB;QACf,aAAa;IACf;AACF;AAGF,SAASC,YAAY,EAACC,SAAS,EAAEC,WAAW,EAAE,GAAGC,OAA8E;IAC7H,OAAO,WAAP,GACE,IAAC;QACC,MAAK;QACL,aAAU;QACV,oBAAkBD;QAClB,WAAWE,GAAGN,oBAAoB;YAACI;QAAW,IAAID;QACjD,GAAGE,KAAK;;AAGf;AAEA,SAASE,gBAAgB,EACvBJ,SAAS,EACTK,UAAU,KAAK,EACf,GAAGH,OAGJ;IACC,MAAMI,OAAOD,UAAUE,OAAO;IAE9B,OAAO,WAAP,GACE,IAACD,MAAAA;QACC,WAAWH,GACT,+NACAH;QAED,GAAGE,KAAK;;AAGf;AAEA,SAASM,qBAAqB,EAACR,SAAS,EAAEC,cAAc,UAAU,EAAE,GAAGC,OAA8C;IACnH,OAAO,WAAP,GACE,IAACO,WAASA;QACR,aAAU;QACV,aAAaR;QACb,WAAWE,GAAG,oGAAoGH;QACjH,GAAGE,KAAK;;AAGf"}
1
+ {"version":3,"file":"components/ui/button-group.js","sources":["../../../src/components/ui/button-group.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport {Slot} from \"@radix-ui/react-slot\";\r\nimport {cva, type VariantProps} from \"class-variance-authority\";\r\nimport * as React from \"react\";\r\n\r\nimport {Separator} from \"@/components/ui/separator\";\r\nimport {cn} from \"@/lib/utilities\";\r\n\r\nconst buttonGroupVariants = cva(\r\n \"flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1\",\r\n {\r\n variants: {\r\n orientation: {\r\n horizontal: \"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none\",\r\n vertical:\r\n \"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none\",\r\n },\r\n },\r\n defaultVariants: {\r\n orientation: \"horizontal\",\r\n },\r\n },\r\n);\r\n\r\nfunction ButtonGroup({className, orientation, ...props}: React.ComponentProps<\"div\"> & VariantProps<typeof buttonGroupVariants>) {\r\n return (\r\n <div\r\n role='group'\r\n data-slot='button-group'\r\n data-orientation={orientation}\r\n className={cn(buttonGroupVariants({orientation}), className)}\r\n {...props}\r\n />\r\n );\r\n}\r\n\r\nfunction ButtonGroupText({\r\n className,\r\n asChild = false,\r\n ...props\r\n}: React.ComponentProps<\"div\"> & {\r\n asChild?: boolean;\r\n}) {\r\n const Comp = asChild ? Slot : \"div\";\r\n\r\n return (\r\n <Comp\r\n className={cn(\r\n \"flex items-center gap-2 rounded-md border border-neutral-200 bg-neutral-100 px-4 text-sm font-medium shadow-xs dark:border-neutral-800 dark:bg-neutral-800 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4\",\r\n className,\r\n )}\r\n {...props}\r\n />\r\n );\r\n}\r\n\r\nfunction ButtonGroupSeparator({className, orientation = \"vertical\", ...props}: React.ComponentProps<typeof Separator>) {\r\n return (\r\n <Separator\r\n data-slot='button-group-separator'\r\n orientation={orientation}\r\n className={cn(\"relative !m-0 self-stretch bg-neutral-200 data-[orientation=vertical]:h-auto dark:bg-neutral-800\", className)}\r\n {...props}\r\n />\r\n );\r\n}\r\n\r\nexport {ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants};\r\n"],"names":["buttonGroupVariants","cva","ButtonGroup","className","orientation","props","cn","ButtonGroupText","asChild","Comp","Slot","ButtonGroupSeparator","Separator"],"mappings":";;;;;;;AASA,MAAMA,sBAAsBC,IAC1B,oSACA;IACE,UAAU;QACR,aAAa;YACX,YAAY;YACZ,UACE;QACJ;IACF;IACA,iBAAiB;QACf,aAAa;IACf;AACF;AAGF,SAASC,YAAY,EAACC,SAAS,EAAEC,WAAW,EAAE,GAAGC,OAA8E;IAC7H,OAAO,WAAP,GACE,IAAC;QACC,MAAK;QACL,aAAU;QACV,oBAAkBD;QAClB,WAAWE,GAAGN,oBAAoB;YAACI;QAAW,IAAID;QACjD,GAAGE,KAAK;;AAGf;AAEA,SAASE,gBAAgB,EACvBJ,SAAS,EACTK,UAAU,KAAK,EACf,GAAGH,OAGJ;IACC,MAAMI,OAAOD,UAAUE,OAAO;IAE9B,OAAO,WAAP,GACE,IAACD,MAAAA;QACC,WAAWH,GACT,+NACAH;QAED,GAAGE,KAAK;;AAGf;AAEA,SAASM,qBAAqB,EAACR,SAAS,EAAEC,cAAc,UAAU,EAAE,GAAGC,OAA8C;IACnH,OAAO,WAAP,GACE,IAACO,WAASA;QACR,aAAU;QACV,aAAaR;QACb,WAAWE,GAAG,oGAAoGH;QACjH,GAAGE,KAAK;;AAGf"}
@@ -1 +1 @@
1
- {"version":3,"file":"components\\ui\\button.js","sources":["webpack://@arolariu/components/./src/components/ui/button.tsx"],"sourcesContent":["\r\n\r\nimport {Slot} from \"@radix-ui/react-slot\";\r\nimport {cva, type VariantProps} from \"class-variance-authority\";\r\nimport * as React from \"react\";\r\n\r\nimport {cn} from \"@/lib/utilities\";\r\n\r\nconst buttonVariants = cva(\r\n \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-neutral-950 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 dark:focus-visible:ring-neutral-300\",\r\n {\r\n variants: {\r\n variant: {\r\n default:\r\n \"bg-neutral-900 text-neutral-50 shadow hover:bg-neutral-900/90 dark:bg-neutral-50 dark:text-neutral-900 dark:hover:bg-neutral-50/90\",\r\n destructive:\r\n \"bg-red-500 text-neutral-50 shadow-sm hover:bg-red-500/90 dark:bg-red-900 dark:text-neutral-50 dark:hover:bg-red-900/90\",\r\n outline:\r\n \"border border-neutral-200 bg-white shadow-sm hover:bg-neutral-100 hover:text-neutral-900 dark:border-neutral-800 dark:bg-neutral-950 dark:hover:bg-neutral-800 dark:hover:text-neutral-50\",\r\n secondary:\r\n \"bg-neutral-100 text-neutral-900 shadow-sm hover:bg-neutral-100/80 dark:bg-neutral-800 dark:text-neutral-50 dark:hover:bg-neutral-800/80\",\r\n ghost: \"hover:bg-neutral-100 hover:text-neutral-900 dark:hover:bg-neutral-800 dark:hover:text-neutral-50\",\r\n link: \"text-neutral-900 underline-offset-4 hover:underline dark:text-neutral-50\",\r\n },\r\n size: {\r\n default: \"h-9 px-4 py-2\",\r\n sm: \"h-8 rounded-md px-3 text-xs\",\r\n lg: \"h-10 rounded-md px-8\",\r\n icon: \"h-9 w-9\",\r\n },\r\n },\r\n defaultVariants: {\r\n variant: \"default\",\r\n size: \"default\",\r\n },\r\n },\r\n);\r\n\r\nexport interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {\r\n asChild?: boolean;\r\n}\r\n\r\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(({className, variant, size, asChild = false, ...props}, ref) => {\r\n const Comp = asChild ? Slot : \"button\";\r\n return (\r\n <Comp\r\n className={cn(buttonVariants({variant, size, className}))}\r\n ref={ref}\r\n {...props}\r\n />\r\n );\r\n});\r\nButton.displayName = \"Button\";\r\n\r\nexport {Button, buttonVariants};\r\n"],"names":["buttonVariants","cva","Button","React","className","variant","size","asChild","props","ref","Comp","Slot","cn"],"mappings":";;;;;;AAQA,MAAMA,iBAAiBC,IACrB,oVACA;IACE,UAAU;QACR,SAAS;YACP,SACE;YACF,aACE;YACF,SACE;YACF,WACE;YACF,OAAO;YACP,MAAM;QACR;QACA,MAAM;YACJ,SAAS;YACT,IAAI;YACJ,IAAI;YACJ,MAAM;QACR;IACF;IACA,iBAAiB;QACf,SAAS;QACT,MAAM;IACR;AACF;AAOF,MAAMC,SAAS,WAATA,GAASC,WAAiD,CAAC,EAACC,SAAS,EAAEC,OAAO,EAAEC,IAAI,EAAEC,UAAU,KAAK,EAAE,GAAGC,OAAM,EAAEC;IACtH,MAAMC,OAAOH,UAAUI,OAAO;IAC9B,OAAO,WAAP,GACE,IAACD,MAAAA;QACC,WAAWE,GAAGZ,eAAe;YAACK;YAASC;YAAMF;QAAS;QACtD,KAAKK;QACJ,GAAGD,KAAK;;AAGf;AACAN,OAAO,WAAW,GAAG"}
1
+ {"version":3,"file":"components/ui/button.js","sources":["../../../src/components/ui/button.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport {Slot} from \"@radix-ui/react-slot\";\r\nimport {cva, type VariantProps} from \"class-variance-authority\";\r\nimport * as React from \"react\";\r\n\r\nimport {cn} from \"@/lib/utilities\";\r\n\r\nconst buttonVariants = cva(\r\n \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-neutral-950 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 dark:focus-visible:ring-neutral-300\",\r\n {\r\n variants: {\r\n variant: {\r\n default:\r\n \"bg-neutral-900 text-neutral-50 shadow hover:bg-neutral-900/90 dark:bg-neutral-50 dark:text-neutral-900 dark:hover:bg-neutral-50/90\",\r\n destructive:\r\n \"bg-red-500 text-neutral-50 shadow-sm hover:bg-red-500/90 dark:bg-red-900 dark:text-neutral-50 dark:hover:bg-red-900/90\",\r\n outline:\r\n \"border border-neutral-200 bg-white shadow-sm hover:bg-neutral-100 hover:text-neutral-900 dark:border-neutral-800 dark:bg-neutral-950 dark:hover:bg-neutral-800 dark:hover:text-neutral-50\",\r\n secondary:\r\n \"bg-neutral-100 text-neutral-900 shadow-sm hover:bg-neutral-100/80 dark:bg-neutral-800 dark:text-neutral-50 dark:hover:bg-neutral-800/80\",\r\n ghost: \"hover:bg-neutral-100 hover:text-neutral-900 dark:hover:bg-neutral-800 dark:hover:text-neutral-50\",\r\n link: \"text-neutral-900 underline-offset-4 hover:underline dark:text-neutral-50\",\r\n },\r\n size: {\r\n default: \"h-9 px-4 py-2\",\r\n sm: \"h-8 rounded-md px-3 text-xs\",\r\n lg: \"h-10 rounded-md px-8\",\r\n icon: \"h-9 w-9\",\r\n },\r\n },\r\n defaultVariants: {\r\n variant: \"default\",\r\n size: \"default\",\r\n },\r\n },\r\n);\r\n\r\nexport interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {\r\n asChild?: boolean;\r\n}\r\n\r\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(({className, variant, size, asChild = false, ...props}, ref) => {\r\n const Comp = asChild ? Slot : \"button\";\r\n return (\r\n <Comp\r\n className={cn(buttonVariants({variant, size, className}))}\r\n ref={ref}\r\n {...props}\r\n />\r\n );\r\n});\r\nButton.displayName = \"Button\";\r\n\r\nexport {Button, buttonVariants};\r\n"],"names":["buttonVariants","cva","Button","React","className","variant","size","asChild","props","ref","Comp","Slot","cn"],"mappings":";;;;;;AAQA,MAAMA,iBAAiBC,IACrB,oVACA;IACE,UAAU;QACR,SAAS;YACP,SACE;YACF,aACE;YACF,SACE;YACF,WACE;YACF,OAAO;YACP,MAAM;QACR;QACA,MAAM;YACJ,SAAS;YACT,IAAI;YACJ,IAAI;YACJ,MAAM;QACR;IACF;IACA,iBAAiB;QACf,SAAS;QACT,MAAM;IACR;AACF;AAOF,MAAMC,SAAS,WAATA,GAASC,WAAiD,CAAC,EAACC,SAAS,EAAEC,OAAO,EAAEC,IAAI,EAAEC,UAAU,KAAK,EAAE,GAAGC,OAAM,EAAEC;IACtH,MAAMC,OAAOH,UAAUI,OAAO;IAC9B,OAAO,WAAP,GACE,IAACD,MAAAA;QACC,WAAWE,GAAGZ,eAAe;YAACK;YAASC;YAAMF;QAAS;QACtD,KAAKK;QACJ,GAAGD,KAAK;;AAGf;AACAN,OAAO,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"components\\ui\\calendar.js","sources":["webpack://@arolariu/components/./src/components/ui/calendar.tsx"],"sourcesContent":["\r\n\r\n/* eslint-disable */\r\n\r\nimport {ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon} from \"lucide-react\";\r\nimport * as React from \"react\";\r\nimport {DayButton, DayPicker, getDefaultClassNames} from \"react-day-picker\";\r\n\r\nimport {Button, buttonVariants} from \"@/components/ui/button\";\r\nimport {cn} from \"@/lib/utilities\";\r\n\r\nfunction Calendar({\r\n className,\r\n classNames,\r\n showOutsideDays = true,\r\n captionLayout = \"label\",\r\n buttonVariant = \"ghost\",\r\n formatters,\r\n components,\r\n ...props\r\n}: React.ComponentProps<typeof DayPicker> & {\r\n buttonVariant?: React.ComponentProps<typeof Button>[\"variant\"];\r\n}) {\r\n const defaultClassNames = getDefaultClassNames();\r\n\r\n return (\r\n <DayPicker\r\n showOutsideDays={showOutsideDays}\r\n className={cn(\r\n \"group/calendar bg-white p-3 [--cell-size:2rem] dark:bg-neutral-950 [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent\",\r\n String.raw`rtl:**:[.rdp-button\\_next>svg]:rotate-180`,\r\n String.raw`rtl:**:[.rdp-button\\_previous>svg]:rotate-180`,\r\n className,\r\n )}\r\n captionLayout={captionLayout}\r\n formatters={{\r\n formatMonthDropdown: (date) => date.toLocaleString(\"default\", {month: \"short\"}),\r\n ...formatters,\r\n }}\r\n classNames={{\r\n root: cn(\"w-fit\", defaultClassNames.root),\r\n months: cn(\"relative flex flex-col gap-4 md:flex-row\", defaultClassNames.months),\r\n month: cn(\"flex w-full flex-col gap-4\", defaultClassNames.month),\r\n nav: cn(\"absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1\", defaultClassNames.nav),\r\n button_previous: cn(\r\n buttonVariants({variant: buttonVariant}),\r\n \"h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50\",\r\n defaultClassNames.button_previous,\r\n ),\r\n button_next: cn(\r\n buttonVariants({variant: buttonVariant}),\r\n \"h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50\",\r\n defaultClassNames.button_next,\r\n ),\r\n month_caption: cn(\"flex h-[--cell-size] w-full items-center justify-center px-[--cell-size]\", defaultClassNames.month_caption),\r\n dropdowns: cn(\"flex h-[--cell-size] w-full items-center justify-center gap-1.5 text-sm font-medium\", defaultClassNames.dropdowns),\r\n dropdown_root: cn(\r\n \"has-focus:border-neutral-950 border-neutral-200 shadow-xs has-focus:ring-neutral-950/50 has-focus:ring-[3px] relative rounded-md border dark:has-focus:border-neutral-300 dark:border-neutral-800 dark:has-focus:ring-neutral-300/50\",\r\n defaultClassNames.dropdown_root,\r\n ),\r\n dropdown: cn(\"bg-white absolute inset-0 opacity-0 dark:bg-neutral-950\", defaultClassNames.dropdown),\r\n caption_label: cn(\r\n \"select-none font-medium\",\r\n captionLayout === \"label\"\r\n ? \"text-sm\"\r\n : \"[&>svg]:text-neutral-500 flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5 dark:[&>svg]:text-neutral-400\",\r\n defaultClassNames.caption_label,\r\n ),\r\n table: \"w-full border-collapse\",\r\n weekdays: cn(\"flex\", defaultClassNames.weekdays),\r\n weekday: cn(\r\n \"text-neutral-500 flex-1 select-none rounded-md text-[0.8rem] font-normal dark:text-neutral-400\",\r\n defaultClassNames.weekday,\r\n ),\r\n week: cn(\"mt-2 flex w-full\", defaultClassNames.week),\r\n week_number_header: cn(\"w-[--cell-size] select-none\", defaultClassNames.week_number_header),\r\n week_number: cn(\"text-neutral-500 select-none text-[0.8rem] dark:text-neutral-400\", defaultClassNames.week_number),\r\n day: cn(\r\n \"group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md\",\r\n defaultClassNames.day,\r\n ),\r\n range_start: cn(\"bg-neutral-100 rounded-l-md dark:bg-neutral-800\", defaultClassNames.range_start),\r\n range_middle: cn(\"rounded-none\", defaultClassNames.range_middle),\r\n range_end: cn(\"bg-neutral-100 rounded-r-md dark:bg-neutral-800\", defaultClassNames.range_end),\r\n today: cn(\r\n \"bg-neutral-100 text-neutral-900 rounded-md data-[selected=true]:rounded-none dark:bg-neutral-800 dark:text-neutral-50\",\r\n defaultClassNames.today,\r\n ),\r\n outside: cn(\r\n \"text-neutral-500 aria-selected:text-neutral-500 dark:text-neutral-400 dark:aria-selected:text-neutral-400\",\r\n defaultClassNames.outside,\r\n ),\r\n disabled: cn(\"text-neutral-500 opacity-50 dark:text-neutral-400\", defaultClassNames.disabled),\r\n hidden: cn(\"invisible\", defaultClassNames.hidden),\r\n ...classNames,\r\n }}\r\n components={{\r\n Root: ({className, rootRef, ...props}) => {\r\n return (\r\n <div\r\n data-slot='calendar'\r\n ref={rootRef}\r\n className={cn(className)}\r\n {...props}\r\n />\r\n );\r\n },\r\n Chevron: ({className, orientation, ...props}) => {\r\n if (orientation === \"left\") {\r\n return (\r\n <ChevronLeftIcon\r\n className={cn(\"size-4\", className)}\r\n {...props}\r\n />\r\n );\r\n }\r\n\r\n if (orientation === \"right\") {\r\n return (\r\n <ChevronRightIcon\r\n className={cn(\"size-4\", className)}\r\n {...props}\r\n />\r\n );\r\n }\r\n\r\n return (\r\n <ChevronDownIcon\r\n className={cn(\"size-4\", className)}\r\n {...props}\r\n />\r\n );\r\n },\r\n DayButton: CalendarDayButton,\r\n WeekNumber: ({children, ...props}) => {\r\n return (\r\n <td {...props}>\r\n <div className='flex size-[--cell-size] items-center justify-center text-center'>{children}</div>\r\n </td>\r\n );\r\n },\r\n ...components,\r\n }}\r\n {...props}\r\n />\r\n );\r\n}\r\n\r\nfunction CalendarDayButton({className, day, modifiers, ...props}: React.ComponentProps<typeof DayButton>) {\r\n const defaultClassNames = getDefaultClassNames();\r\n\r\n const ref = React.useRef<HTMLButtonElement>(null);\r\n React.useEffect(() => {\r\n if (modifiers[\"focused\"]) ref.current?.focus();\r\n }, [modifiers[\"focused\"]]);\r\n\r\n return (\r\n <Button\r\n ref={ref}\r\n variant='ghost'\r\n size='icon'\r\n data-day={day.date.toLocaleDateString()}\r\n data-selected-single={modifiers[\"selected\"] && !modifiers[\"range_start\"] && !modifiers[\"range_end\"] && !modifiers[\"range_middle\"]}\r\n data-range-start={modifiers[\"range_start\"]}\r\n data-range-end={modifiers[\"range_end\"]}\r\n data-range-middle={modifiers[\"range_middle\"]}\r\n className={cn(\r\n \"group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-[--cell-size] flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:bg-neutral-900 data-[range-end=true]:text-neutral-50 data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-neutral-100 data-[range-middle=true]:text-neutral-900 data-[range-start=true]:rounded-md data-[range-start=true]:bg-neutral-900 data-[range-start=true]:text-neutral-50 data-[selected-single=true]:bg-neutral-900 data-[selected-single=true]:text-neutral-50 dark:data-[range-end=true]:bg-neutral-50 dark:data-[range-end=true]:text-neutral-900 dark:data-[range-middle=true]:bg-neutral-800 dark:data-[range-middle=true]:text-neutral-50 dark:data-[range-start=true]:bg-neutral-50 dark:data-[range-start=true]:text-neutral-900 dark:data-[selected-single=true]:bg-neutral-50 dark:data-[selected-single=true]:text-neutral-900 [&>span]:text-xs [&>span]:opacity-70\",\r\n defaultClassNames.day,\r\n className,\r\n )}\r\n {...props}\r\n />\r\n );\r\n}\r\n\r\nexport {Calendar, CalendarDayButton};\r\n"],"names":["Calendar","className","classNames","showOutsideDays","captionLayout","buttonVariant","formatters","components","props","defaultClassNames","getDefaultClassNames","DayPicker","cn","String","date","buttonVariants","rootRef","orientation","ChevronLeftIcon","ChevronRightIcon","ChevronDownIcon","CalendarDayButton","children","day","modifiers","ref","React","Button"],"mappings":";;;;;;;AAWA,SAASA,SAAS,EAChBC,SAAS,EACTC,UAAU,EACVC,kBAAkB,IAAI,EACtBC,gBAAgB,OAAO,EACvBC,gBAAgB,OAAO,EACvBC,UAAU,EACVC,UAAU,EACV,GAAGC,OAGJ;IACC,MAAMC,oBAAoBC;IAE1B,OAAO,WAAP,GACE,IAACC,WAASA;QACR,iBAAiBR;QACjB,WAAWS,GACT,iKACAC,OAAO,GAAG,CAAC,yCAAyC,CAAC,EACrDA,OAAO,GAAG,CAAC,6CAA6C,CAAC,EACzDZ;QAEF,eAAeG;QACf,YAAY;YACV,qBAAqB,CAACU,OAASA,KAAK,cAAc,CAAC,WAAW;oBAAC,OAAO;gBAAO;YAC7E,GAAGR,UAAU;QACf;QACA,YAAY;YACV,MAAMM,GAAG,SAASH,kBAAkB,IAAI;YACxC,QAAQG,GAAG,4CAA4CH,kBAAkB,MAAM;YAC/E,OAAOG,GAAG,8BAA8BH,kBAAkB,KAAK;YAC/D,KAAKG,GAAG,2EAA2EH,kBAAkB,GAAG;YACxG,iBAAiBG,GACfG,eAAe;gBAAC,SAASV;YAAa,IACtC,4EACAI,kBAAkB,eA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,GAAGO,KAAK;;gBAKf,IAAIS,YAAAA,aACF,OAAO,WAAP,GACE,IAACE,kBAAgBA;oBACf,WAAWP,GAAG,UAAUX;oBACvB,GAAGO,KAAK;;gBAKf,OAAO,WAAP,GACE,IAACY,iBAAeA;oBACd,WAAWR,GAAG,UAAUX;oBACvB,GAAGO,KAAK;;YAGf;YACA,WAAWa;YACX,YAAY,CAAC,EAACC,QAAQ,EAAE,GAAGd,OAAM,GACxB,WAAP,GACE,IAAC;oBAAI,GAAGA,KAAK;8BACX,kBAAC;wBAAI,WAAU;kCAAmEc;;;YAIxF,GAAGf,UAAU;QACf;QACC,GAAGC,KAAK;;AAGf;AAEA,SAASa,kBAAkB,EAACpB,SAAS,EAAEsB,GAAG,EAAEC,SAAS,EAAE,GAAGhB,OAA8C;IACtG,MAAMC,oBAAoBC;IAE1B,MAAMe,MAAMC,OAAgC;IAC5CA,UAAgB;QACd,IAAIF,SAAS,CAAC,UAAU,EAAEC,IAAI,OAAO,EAAE;IACzC,GAAG;QAACD,SAAS,CAAC,UAAU;KAAC;IAEzB,OAAO,WAAP,GACE,IAACG,QAAMA;QACL,KAAKF;QACL,SAAQ;QACR,MAAK;QACL,YAAUF,IAAI,IAAI,CAAC,kBAAkB;QACrC,wBAAsBC,SAAS,CAAC,WAAW,IAAI,CAACA,SAAS,CAAC,cAAc,IAAI,CAACA,SAAS,CAAC,YAAY,IAAI,CAACA,SAAS,CAAC,eAAe;QACjI,oBAAkBA,SAAS,CAAC,cAAc;QAC1C,kBAAgBA,SAAS,CAAC,YAAY;QACtC,qBAAmBA,SAAS,CAAC,eAAe;QAC5C,WAAWZ,GACT,omCACAH,kBAAkB,GAAG,EACrBR;QAED,GAAGO,KAAK;;AAGf"}
1
+ {"version":3,"file":"components/ui/calendar.js","sources":["../../../src/components/ui/calendar.tsx"],"sourcesContent":["\"use client\";\r\n\r\n/* eslint-disable */\r\n\r\nimport {ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon} from \"lucide-react\";\r\nimport * as React from \"react\";\r\nimport {DayButton, DayPicker, getDefaultClassNames} from \"react-day-picker\";\r\n\r\nimport {Button, buttonVariants} from \"@/components/ui/button\";\r\nimport {cn} from \"@/lib/utilities\";\r\n\r\nfunction Calendar({\r\n className,\r\n classNames,\r\n showOutsideDays = true,\r\n captionLayout = \"label\",\r\n buttonVariant = \"ghost\",\r\n formatters,\r\n components,\r\n ...props\r\n}: React.ComponentProps<typeof DayPicker> & {\r\n buttonVariant?: React.ComponentProps<typeof Button>[\"variant\"];\r\n}) {\r\n const defaultClassNames = getDefaultClassNames();\r\n\r\n return (\r\n <DayPicker\r\n showOutsideDays={showOutsideDays}\r\n className={cn(\r\n \"group/calendar bg-white p-3 [--cell-size:2rem] dark:bg-neutral-950 [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent\",\r\n String.raw`rtl:**:[.rdp-button\\_next>svg]:rotate-180`,\r\n String.raw`rtl:**:[.rdp-button\\_previous>svg]:rotate-180`,\r\n className,\r\n )}\r\n captionLayout={captionLayout}\r\n formatters={{\r\n formatMonthDropdown: (date) => date.toLocaleString(\"default\", {month: \"short\"}),\r\n ...formatters,\r\n }}\r\n classNames={{\r\n root: cn(\"w-fit\", defaultClassNames.root),\r\n months: cn(\"relative flex flex-col gap-4 md:flex-row\", defaultClassNames.months),\r\n month: cn(\"flex w-full flex-col gap-4\", defaultClassNames.month),\r\n nav: cn(\"absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1\", defaultClassNames.nav),\r\n button_previous: cn(\r\n buttonVariants({variant: buttonVariant}),\r\n \"h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50\",\r\n defaultClassNames.button_previous,\r\n ),\r\n button_next: cn(\r\n buttonVariants({variant: buttonVariant}),\r\n \"h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50\",\r\n defaultClassNames.button_next,\r\n ),\r\n month_caption: cn(\"flex h-[--cell-size] w-full items-center justify-center px-[--cell-size]\", defaultClassNames.month_caption),\r\n dropdowns: cn(\"flex h-[--cell-size] w-full items-center justify-center gap-1.5 text-sm font-medium\", defaultClassNames.dropdowns),\r\n dropdown_root: cn(\r\n \"has-focus:border-neutral-950 border-neutral-200 shadow-xs has-focus:ring-neutral-950/50 has-focus:ring-[3px] relative rounded-md border dark:has-focus:border-neutral-300 dark:border-neutral-800 dark:has-focus:ring-neutral-300/50\",\r\n defaultClassNames.dropdown_root,\r\n ),\r\n dropdown: cn(\"bg-white absolute inset-0 opacity-0 dark:bg-neutral-950\", defaultClassNames.dropdown),\r\n caption_label: cn(\r\n \"select-none font-medium\",\r\n captionLayout === \"label\"\r\n ? \"text-sm\"\r\n : \"[&>svg]:text-neutral-500 flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5 dark:[&>svg]:text-neutral-400\",\r\n defaultClassNames.caption_label,\r\n ),\r\n table: \"w-full border-collapse\",\r\n weekdays: cn(\"flex\", defaultClassNames.weekdays),\r\n weekday: cn(\r\n \"text-neutral-500 flex-1 select-none rounded-md text-[0.8rem] font-normal dark:text-neutral-400\",\r\n defaultClassNames.weekday,\r\n ),\r\n week: cn(\"mt-2 flex w-full\", defaultClassNames.week),\r\n week_number_header: cn(\"w-[--cell-size] select-none\", defaultClassNames.week_number_header),\r\n week_number: cn(\"text-neutral-500 select-none text-[0.8rem] dark:text-neutral-400\", defaultClassNames.week_number),\r\n day: cn(\r\n \"group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md\",\r\n defaultClassNames.day,\r\n ),\r\n range_start: cn(\"bg-neutral-100 rounded-l-md dark:bg-neutral-800\", defaultClassNames.range_start),\r\n range_middle: cn(\"rounded-none\", defaultClassNames.range_middle),\r\n range_end: cn(\"bg-neutral-100 rounded-r-md dark:bg-neutral-800\", defaultClassNames.range_end),\r\n today: cn(\r\n \"bg-neutral-100 text-neutral-900 rounded-md data-[selected=true]:rounded-none dark:bg-neutral-800 dark:text-neutral-50\",\r\n defaultClassNames.today,\r\n ),\r\n outside: cn(\r\n \"text-neutral-500 aria-selected:text-neutral-500 dark:text-neutral-400 dark:aria-selected:text-neutral-400\",\r\n defaultClassNames.outside,\r\n ),\r\n disabled: cn(\"text-neutral-500 opacity-50 dark:text-neutral-400\", defaultClassNames.disabled),\r\n hidden: cn(\"invisible\", defaultClassNames.hidden),\r\n ...classNames,\r\n }}\r\n components={{\r\n Root: ({className, rootRef, ...props}) => {\r\n return (\r\n <div\r\n data-slot='calendar'\r\n ref={rootRef}\r\n className={cn(className)}\r\n {...props}\r\n />\r\n );\r\n },\r\n Chevron: ({className, orientation, ...props}) => {\r\n if (orientation === \"left\") {\r\n return (\r\n <ChevronLeftIcon\r\n className={cn(\"size-4\", className)}\r\n {...props}\r\n />\r\n );\r\n }\r\n\r\n if (orientation === \"right\") {\r\n return (\r\n <ChevronRightIcon\r\n className={cn(\"size-4\", className)}\r\n {...props}\r\n />\r\n );\r\n }\r\n\r\n return (\r\n <ChevronDownIcon\r\n className={cn(\"size-4\", className)}\r\n {...props}\r\n />\r\n );\r\n },\r\n DayButton: CalendarDayButton,\r\n WeekNumber: ({children, ...props}) => {\r\n return (\r\n <td {...props}>\r\n <div className='flex size-[--cell-size] items-center justify-center text-center'>{children}</div>\r\n </td>\r\n );\r\n },\r\n ...components,\r\n }}\r\n {...props}\r\n />\r\n );\r\n}\r\n\r\nfunction CalendarDayButton({className, day, modifiers, ...props}: React.ComponentProps<typeof DayButton>) {\r\n const defaultClassNames = getDefaultClassNames();\r\n\r\n const ref = React.useRef<HTMLButtonElement>(null);\r\n React.useEffect(() => {\r\n if (modifiers[\"focused\"]) ref.current?.focus();\r\n }, [modifiers[\"focused\"]]);\r\n\r\n return (\r\n <Button\r\n ref={ref}\r\n variant='ghost'\r\n size='icon'\r\n data-day={day.date.toLocaleDateString()}\r\n data-selected-single={modifiers[\"selected\"] && !modifiers[\"range_start\"] && !modifiers[\"range_end\"] && !modifiers[\"range_middle\"]}\r\n data-range-start={modifiers[\"range_start\"]}\r\n data-range-end={modifiers[\"range_end\"]}\r\n data-range-middle={modifiers[\"range_middle\"]}\r\n className={cn(\r\n \"group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-[--cell-size] flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:bg-neutral-900 data-[range-end=true]:text-neutral-50 data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-neutral-100 data-[range-middle=true]:text-neutral-900 data-[range-start=true]:rounded-md data-[range-start=true]:bg-neutral-900 data-[range-start=true]:text-neutral-50 data-[selected-single=true]:bg-neutral-900 data-[selected-single=true]:text-neutral-50 dark:data-[range-end=true]:bg-neutral-50 dark:data-[range-end=true]:text-neutral-900 dark:data-[range-middle=true]:bg-neutral-800 dark:data-[range-middle=true]:text-neutral-50 dark:data-[range-start=true]:bg-neutral-50 dark:data-[range-start=true]:text-neutral-900 dark:data-[selected-single=true]:bg-neutral-50 dark:data-[selected-single=true]:text-neutral-900 [&>span]:text-xs [&>span]:opacity-70\",\r\n defaultClassNames.day,\r\n className,\r\n )}\r\n {...props}\r\n />\r\n );\r\n}\r\n\r\nexport {Calendar, CalendarDayButton};\r\n"],"names":["Calendar","className","classNames","showOutsideDays","captionLayout","buttonVariant","formatters","components","props","defaultClassNames","getDefaultClassNames","DayPicker","cn","String","date","buttonVariants","rootRef","orientation","ChevronLeftIcon","ChevronRightIcon","ChevronDownIcon","CalendarDayButton","children","day","modifiers","ref","React","Button"],"mappings":";;;;;;;AAWA,SAASA,SAAS,EAChBC,SAAS,EACTC,UAAU,EACVC,kBAAkB,IAAI,EACtBC,gBAAgB,OAAO,EACvBC,gBAAgB,OAAO,EACvBC,UAAU,EACVC,UAAU,EACV,GAAGC,OAGJ;IACC,MAAMC,oBAAoBC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ACE,IAACG,QAAMA;QACL,KAAKF;QACL,SAAQ;QACR,MAAK;QACL,YAAUF,IAAI,IAAI,CAAC,kBAAkB;QACrC,wBAAsBC,SAAS,CAAC,WAAW,IAAI,CAACA,SAAS,CAAC,cAAc,IAAI,CAACA,SAAS,CAAC,YAAY,IAAI,CAACA,SAAS,CAAC,eAAe;QACjI,oBAAkBA,SAAS,CAAC,cAAc;QAC1C,kBAAgBA,SAAS,CAAC,YAAY;QACtC,qBAAmBA,SAAS,CAAC,eAAe;QAC5C,WAAWZ,GACT,omCACAH,kBAAkB,GAAG,EACrBR;QAED,GAAGO,KAAK;;AAGf"}
@@ -1 +1 @@
1
- {"version":3,"file":"components\\ui\\card.js","sources":["webpack://@arolariu/components/./src/components/ui/card.tsx"],"sourcesContent":["\r\n\r\nimport * as React from \"react\";\r\n\r\nimport {cn} from \"@/lib/utilities\";\r\n\r\nconst Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({className, ...props}, ref) => (\r\n <div\r\n ref={ref}\r\n className={cn(\r\n \"rounded-xl border border-neutral-200 bg-white text-neutral-950 shadow dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50\",\r\n className,\r\n )}\r\n {...props}\r\n />\r\n));\r\nCard.displayName = \"Card\";\r\n\r\nconst CardHeader = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({className, ...props}, ref) => (\r\n <div\r\n ref={ref}\r\n className={cn(\"flex flex-col space-y-1.5 p-6\", className)}\r\n {...props}\r\n />\r\n));\r\nCardHeader.displayName = \"CardHeader\";\r\n\r\nconst CardTitle = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({className, ...props}, ref) => (\r\n <div\r\n ref={ref}\r\n className={cn(\"leading-none font-semibold tracking-tight\", className)}\r\n {...props}\r\n />\r\n));\r\nCardTitle.displayName = \"CardTitle\";\r\n\r\nconst CardDescription = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({className, ...props}, ref) => (\r\n <div\r\n ref={ref}\r\n className={cn(\"text-sm text-neutral-500 dark:text-neutral-400\", className)}\r\n {...props}\r\n />\r\n));\r\nCardDescription.displayName = \"CardDescription\";\r\n\r\nconst CardContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({className, ...props}, ref) => (\r\n <div\r\n ref={ref}\r\n className={cn(\"p-6 pt-0\", className)}\r\n {...props}\r\n />\r\n));\r\nCardContent.displayName = \"CardContent\";\r\n\r\nconst CardFooter = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({className, ...props}, ref) => (\r\n <div\r\n ref={ref}\r\n className={cn(\"flex items-center p-6 pt-0\", className)}\r\n {...props}\r\n />\r\n));\r\nCardFooter.displayName = \"CardFooter\";\r\n\r\nexport {Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle};\r\n"],"names":["Card","React","className","props","ref","cn","CardHeader","CardTitle","CardDescription","CardContent","CardFooter"],"mappings":";;;;AAMA,MAAMA,OAAO,WAAPA,GAAOC,WAAuE,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GAC1G,IAAC;QACC,KAAKA;QACL,WAAWC,GACT,0IACAH;QAED,GAAGC,KAAK;;AAGbH,KAAK,WAAW,GAAG;AAEnB,MAAMM,aAAa,WAAbA,GAAaL,WAAuE,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GAChH,IAAC;QACC,KAAKA;QACL,WAAWC,GAAG,iCAAiCH;QAC9C,GAAGC,KAAK;;AAGbG,WAAW,WAAW,GAAG;AAEzB,MAAMC,YAAY,WAAZA,GAAYN,WAAuE,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GAC/G,IAAC;QACC,KAAKA;QACL,WAAWC,GAAG,6CAA6CH;QAC1D,GAAGC,KAAK;;AAGbI,UAAU,WAAW,GAAG;AAExB,MAAMC,kBAAkB,WAAlBA,GAAkBP,WAAuE,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GACrH,IAAC;QACC,KAAKA;QACL,WAAWC,GAAG,kDAAkDH;QAC/D,GAAGC,KAAK;;AAGbK,gBAAgB,WAAW,GAAG;AAE9B,MAAMC,cAAc,WAAdA,GAAcR,WAAuE,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GACjH,IAAC;QACC,KAAKA;QACL,WAAWC,GAAG,YAAYH;QACzB,GAAGC,KAAK;;AAGbM,YAAY,WAAW,GAAG;AAE1B,MAAMC,aAAa,WAAbA,GAAaT,WAAuE,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GAChH,IAAC;QACC,KAAKA;QACL,WAAWC,GAAG,8BAA8BH;QAC3C,GAAGC,KAAK;;AAGbO,WAAW,WAAW,GAAG"}
1
+ {"version":3,"file":"components/ui/card.js","sources":["../../../src/components/ui/card.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport * as React from \"react\";\r\n\r\nimport {cn} from \"@/lib/utilities\";\r\n\r\nconst Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({className, ...props}, ref) => (\r\n <div\r\n ref={ref}\r\n className={cn(\r\n \"rounded-xl border border-neutral-200 bg-white text-neutral-950 shadow dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50\",\r\n className,\r\n )}\r\n {...props}\r\n />\r\n));\r\nCard.displayName = \"Card\";\r\n\r\nconst CardHeader = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({className, ...props}, ref) => (\r\n <div\r\n ref={ref}\r\n className={cn(\"flex flex-col space-y-1.5 p-6\", className)}\r\n {...props}\r\n />\r\n));\r\nCardHeader.displayName = \"CardHeader\";\r\n\r\nconst CardTitle = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({className, ...props}, ref) => (\r\n <div\r\n ref={ref}\r\n className={cn(\"leading-none font-semibold tracking-tight\", className)}\r\n {...props}\r\n />\r\n));\r\nCardTitle.displayName = \"CardTitle\";\r\n\r\nconst CardDescription = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({className, ...props}, ref) => (\r\n <div\r\n ref={ref}\r\n className={cn(\"text-sm text-neutral-500 dark:text-neutral-400\", className)}\r\n {...props}\r\n />\r\n));\r\nCardDescription.displayName = \"CardDescription\";\r\n\r\nconst CardContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({className, ...props}, ref) => (\r\n <div\r\n ref={ref}\r\n className={cn(\"p-6 pt-0\", className)}\r\n {...props}\r\n />\r\n));\r\nCardContent.displayName = \"CardContent\";\r\n\r\nconst CardFooter = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({className, ...props}, ref) => (\r\n <div\r\n ref={ref}\r\n className={cn(\"flex items-center p-6 pt-0\", className)}\r\n {...props}\r\n />\r\n));\r\nCardFooter.displayName = \"CardFooter\";\r\n\r\nexport {Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle};\r\n"],"names":["Card","React","className","props","ref","cn","CardHeader","CardTitle","CardDescription","CardContent","CardFooter"],"mappings":";;;;AAMA,MAAMA,OAAO,WAAPA,GAAOC,WAAuE,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GAC1G,IAAC;QACC,KAAKA;QACL,WAAWC,GACT,0IACAH;QAED,GAAGC,KAAK;;AAGbH,KAAK,WAAW,GAAG;AAEnB,MAAMM,aAAa,WAAbA,GAAaL,WAAuE,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GAChH,IAAC;QACC,KAAKA;QACL,WAAWC,GAAG,iCAAiCH;QAC9C,GAAGC,KAAK;;AAGbG,WAAW,WAAW,GAAG;AAEzB,MAAMC,YAAY,WAAZA,GAAYN,WAAuE,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GAC/G,IAAC;QACC,KAAKA;QACL,WAAWC,GAAG,6CAA6CH;QAC1D,GAAGC,KAAK;;AAGbI,UAAU,WAAW,GAAG;AAExB,MAAMC,kBAAkB,WAAlBA,GAAkBP,WAAuE,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GACrH,IAAC;QACC,KAAKA;QACL,WAAWC,GAAG,kDAAkDH;QAC/D,GAAGC,KAAK;;AAGbK,gBAAgB,WAAW,GAAG;AAE9B,MAAMC,cAAc,WAAdA,GAAcR,WAAuE,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GACjH,IAAC;QACC,KAAKA;QACL,WAAWC,GAAG,YAAYH;QACzB,GAAGC,KAAK;;AAGbM,YAAY,WAAW,GAAG;AAE1B,MAAMC,aAAa,WAAbA,GAAaT,WAAuE,CAAC,EAACC,SAAS,EAAE,GAAGC,OAAM,EAAEC,MAAAA,WAAAA,GAChH,IAAC;QACC,KAAKA;QACL,WAAWC,GAAG,8BAA8BH;QAC3C,GAAGC,KAAK;;AAGbO,WAAW,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"components\\ui\\carousel.js","sources":["webpack://@arolariu/components/./src/components/ui/carousel.tsx"],"sourcesContent":["\r\n\r\nimport useEmblaCarousel, {type UseEmblaCarouselType} from \"embla-carousel-react\";\r\nimport {ArrowLeft, ArrowRight} from \"lucide-react\";\r\nimport * as React from \"react\";\r\n\r\nimport {Button} from \"@/components/ui/button\";\r\nimport {cn} from \"@/lib/utilities\";\r\n\r\ntype CarouselApi = UseEmblaCarouselType[1];\r\ntype UseCarouselParameters = Parameters<typeof useEmblaCarousel>;\r\ntype CarouselOptions = UseCarouselParameters[0];\r\ntype CarouselPlugin = UseCarouselParameters[1];\r\n\r\ntype CarouselProps = {\r\n opts?: CarouselOptions;\r\n plugins?: CarouselPlugin;\r\n orientation?: \"horizontal\" | \"vertical\";\r\n setApi?: (api: CarouselApi) => void;\r\n};\r\n\r\ntype CarouselContextProps = {\r\n carouselRef: ReturnType<typeof useEmblaCarousel>[0];\r\n api: ReturnType<typeof useEmblaCarousel>[1];\r\n scrollPrev: () => void;\r\n scrollNext: () => void;\r\n canScrollPrev: boolean;\r\n canScrollNext: boolean;\r\n} & CarouselProps;\r\n\r\nconst CarouselContext = React.createContext<CarouselContextProps | null>(null);\r\n\r\nfunction useCarousel() {\r\n const context = React.useContext(CarouselContext);\r\n\r\n if (!context) {\r\n throw new Error(\"useCarousel must be used within a <Carousel />\");\r\n }\r\n\r\n return context;\r\n}\r\n\r\nconst Carousel = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement> & CarouselProps>(\r\n ({orientation = \"horizontal\", opts, setApi, plugins, className, children, ...props}, ref) => {\r\n const [carouselRef, api] = useEmblaCarousel(\r\n {\r\n ...opts,\r\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\r\n },\r\n plugins,\r\n );\r\n const [canScrollPrev, setCanScrollPrev] = React.useState(false);\r\n const [canScrollNext, setCanScrollNext] = React.useState(false);\r\n\r\n const onSelect = React.useCallback((api: CarouselApi) => {\r\n if (!api) {\r\n return;\r\n }\r\n\r\n setCanScrollPrev(api.canScrollPrev());\r\n setCanScrollNext(api.canScrollNext());\r\n }, []);\r\n\r\n const scrollPrev = React.useCallback(() => {\r\n api?.scrollPrev();\r\n }, [api]);\r\n\r\n const scrollNext = React.useCallback(() => {\r\n api?.scrollNext();\r\n }, [api]);\r\n\r\n const handleKeyDown = React.useCallback(\r\n (event: React.KeyboardEvent<HTMLDivElement>) => {\r\n if (event.key === \"ArrowLeft\") {\r\n event.preventDefault();\r\n scrollPrev();\r\n } else if (event.key === \"ArrowRight\") {\r\n event.preventDefault();\r\n scrollNext();\r\n }\r\n },\r\n [scrollPrev, scrollNext],\r\n );\r\n\r\n React.useEffect(() => {\r\n if (!api || !setApi) {\r\n return;\r\n }\r\n\r\n setApi(api);\r\n }, [api, setApi]);\r\n\r\n React.useEffect(() => {\r\n if (!api) {\r\n return;\r\n }\r\n\r\n onSelect(api);\r\n api.on(\"reInit\", onSelect);\r\n api.on(\"select\", onSelect);\r\n\r\n return () => {\r\n api?.off(\"select\", onSelect);\r\n };\r\n }, [api, onSelect]);\r\n\r\n return (\r\n <CarouselContext.Provider\r\n value={{\r\n carouselRef,\r\n api,\r\n opts,\r\n orientation: orientation || (opts?.axis === \"y\" ? \"vertical\" : \"horizontal\"),\r\n scrollPrev,\r\n scrollNext,\r\n canScrollPrev,\r\n canScrollNext,\r\n }}>\r\n <div\r\n ref={ref}\r\n onKeyDownCapture={handleKeyDown}\r\n className={cn(\"relative\", className)}\r\n role='region'\r\n aria-roledescription='carousel'\r\n {...props}>\r\n {children}\r\n </div>\r\n </CarouselContext.Provider>\r\n );\r\n },\r\n);\r\nCarousel.displayName = \"Carousel\";\r\n\r\nconst CarouselContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({className, ...props}, ref) => {\r\n const {carouselRef, orientation} = useCarousel();\r\n\r\n return (\r\n <div\r\n ref={carouselRef}\r\n className='overflow-hidden'>\r\n <div\r\n ref={ref}\r\n className={cn(\"flex\", orientation === \"horizontal\" ? \"-ml-4\" : \"-mt-4 flex-col\", className)}\r\n {...props}\r\n />\r\n </div>\r\n );\r\n});\r\nCarouselContent.displayName = \"CarouselContent\";\r\n\r\nconst CarouselItem = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({className, ...props}, ref) => {\r\n const {orientation} = useCarousel();\r\n\r\n return (\r\n <div\r\n ref={ref}\r\n role='group'\r\n aria-roledescription='slide'\r\n className={cn(\"min-w-0 shrink-0 grow-0 basis-full\", orientation === \"horizontal\" ? \"pl-4\" : \"pt-4\", className)}\r\n {...props}\r\n />\r\n );\r\n});\r\nCarouselItem.displayName = \"CarouselItem\";\r\n\r\nconst CarouselPrevious = React.forwardRef<HTMLButtonElement, React.ComponentProps<typeof Button>>(\r\n ({className, variant = \"outline\", size = \"icon\", ...props}, ref) => {\r\n const {orientation, scrollPrev, canScrollPrev} = useCarousel();\r\n\r\n return (\r\n <Button\r\n ref={ref}\r\n variant={variant}\r\n size={size}\r\n className={cn(\r\n \"absolute h-8 w-8 rounded-full\",\r\n orientation === \"horizontal\" ? \"top-1/2 -left-12 -translate-y-1/2\" : \"-top-12 left-1/2 -translate-x-1/2 rotate-90\",\r\n className,\r\n )}\r\n disabled={!canScrollPrev}\r\n onClick={scrollPrev}\r\n {...props}>\r\n <ArrowLeft className='h-4 w-4' />\r\n <span className='sr-only'>Previous slide</span>\r\n </Button>\r\n );\r\n },\r\n);\r\nCarouselPrevious.displayName = \"CarouselPrevious\";\r\n\r\nconst CarouselNext = React.forwardRef<HTMLButtonElement, React.ComponentProps<typeof Button>>(\r\n ({className, variant = \"outline\", size = \"icon\", ...props}, ref) => {\r\n const {orientation, scrollNext, canScrollNext} = useCarousel();\r\n\r\n return (\r\n <Button\r\n ref={ref}\r\n variant={variant}\r\n size={size}\r\n className={cn(\r\n \"absolute h-8 w-8 rounded-full\",\r\n orientation === \"horizontal\" ? \"top-1/2 -right-12 -translate-y-1/2\" : \"-bottom-12 left-1/2 -translate-x-1/2 rotate-90\",\r\n className,\r\n )}\r\n disabled={!canScrollNext}\r\n onClick={scrollNext}\r\n {...props}>\r\n <ArrowRight className='h-4 w-4' />\r\n <span className='sr-only'>Next slide</span>\r\n </Button>\r\n );\r\n },\r\n);\r\nCarouselNext.displayName = \"CarouselNext\";\r\n\r\nexport {Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type CarouselApi};\r\n"],"names":["CarouselContext","React","useCarousel","context","Error","Carousel","orientation","opts","setApi","plugins","className","children","props","ref","carouselRef","api","useEmblaCarousel","canScrollPrev","setCanScrollPrev","canScrollNext","setCanScrollNext","onSelect","scrollPrev","scrollNext","handleKeyDown","event","cn","CarouselContent","CarouselItem","Carou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AAEL,aAAa,EAAC,GAAGf;IAEjD,OAAO,WAAP,GACE,KAAC8B,QAAMA;QACL,KAAKnB;QACL,SAASiB;QACT,MAAMC;QACN,WAAWL,GACT,iCACApB,iBAAAA,cAA+B,sCAAsC,+CACrEI;QAEF,UAAU,CAACO;QACX,SAASK;QACR,GAAGV,KAAK;;0BACT,IAACqB,WAASA;gBAAC,WAAU;;0BACrB,IAAC;gBAAK,WAAU;0BAAU;;;;AAGhC;AAEFJ,iBAAiB,WAAW,GAAG;AAE/B,MAAMK,eAAe,WAAfA,GAAejC,WACnB,CAAC,EAACS,SAAS,EAAEoB,UAAU,SAAS,EAAEC,OAAO,MAAM,EAAE,GAAGnB,OAAM,EAAEC;IAC1D,MAAM,EAACP,WAAW,EAAEiB,UAAU,EAAEJ,aAAa,EAAC,GAAGjB;IAEjD,OAAO,WAAP,GACE,KAAC8B,QAAMA;QACL,KAAKnB;QACL,SAASiB;QACT,MAAMC;QACN,WAAWL,GACT,iCACApB,iBAAAA,cAA+B,uCAAuC,kDACtEI;QAEF,UAAU,CAACS;QACX,SAASI;QACR,GAAGX,KAAK;;0BACT,IAACuB,YAAUA;gBAAC,WAAU;;0BACtB,IAAC;gBAAK,WAAU;0BAAU;;;;AAGhC;AAEFD,aAAa,WAAW,GAAG"}
1
+ {"version":3,"file":"components/ui/carousel.js","sources":["../../../src/components/ui/carousel.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport useEmblaCarousel, {type UseEmblaCarouselType} from \"embla-carousel-react\";\r\nimport {ArrowLeft, ArrowRight} from \"lucide-react\";\r\nimport * as React from \"react\";\r\n\r\nimport {Button} from \"@/components/ui/button\";\r\nimport {cn} from \"@/lib/utilities\";\r\n\r\ntype CarouselApi = UseEmblaCarouselType[1];\r\ntype UseCarouselParameters = Parameters<typeof useEmblaCarousel>;\r\ntype CarouselOptions = UseCarouselParameters[0];\r\ntype CarouselPlugin = UseCarouselParameters[1];\r\n\r\ntype CarouselProps = {\r\n opts?: CarouselOptions;\r\n plugins?: CarouselPlugin;\r\n orientation?: \"horizontal\" | \"vertical\";\r\n setApi?: (api: CarouselApi) => void;\r\n};\r\n\r\ntype CarouselContextProps = {\r\n carouselRef: ReturnType<typeof useEmblaCarousel>[0];\r\n api: ReturnType<typeof useEmblaCarousel>[1];\r\n scrollPrev: () => void;\r\n scrollNext: () => void;\r\n canScrollPrev: boolean;\r\n canScrollNext: boolean;\r\n} & CarouselProps;\r\n\r\nconst CarouselContext = React.createContext<CarouselContextProps | null>(null);\r\n\r\nfunction useCarousel() {\r\n const context = React.useContext(CarouselContext);\r\n\r\n if (!context) {\r\n throw new Error(\"useCarousel must be used within a <Carousel />\");\r\n }\r\n\r\n return context;\r\n}\r\n\r\nconst Carousel = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement> & CarouselProps>(\r\n ({orientation = \"horizontal\", opts, setApi, plugins, className, children, ...props}, ref) => {\r\n const [carouselRef, api] = useEmblaCarousel(\r\n {\r\n ...opts,\r\n axis: orientation === \"horizontal\" ? \"x\" : \"y\",\r\n },\r\n plugins,\r\n );\r\n const [canScrollPrev, setCanScrollPrev] = React.useState(false);\r\n const [canScrollNext, setCanScrollNext] = React.useState(false);\r\n\r\n const onSelect = React.useCallback((api: CarouselApi) => {\r\n if (!api) {\r\n return;\r\n }\r\n\r\n setCanScrollPrev(api.canScrollPrev());\r\n setCanScrollNext(api.canScrollNext());\r\n }, []);\r\n\r\n const scrollPrev = React.useCallback(() => {\r\n api?.scrollPrev();\r\n }, [api]);\r\n\r\n const scrollNext = React.useCallback(() => {\r\n api?.scrollNext();\r\n }, [api]);\r\n\r\n const handleKeyDown = React.useCallback(\r\n (event: React.KeyboardEvent<HTMLDivElement>) => {\r\n if (event.key === \"ArrowLeft\") {\r\n event.preventDefault();\r\n scrollPrev();\r\n } else if (event.key === \"ArrowRight\") {\r\n event.preventDefault();\r\n scrollNext();\r\n }\r\n },\r\n [scrollPrev, scrollNext],\r\n );\r\n\r\n React.useEffect(() => {\r\n if (!api || !setApi) {\r\n return;\r\n }\r\n\r\n setApi(api);\r\n }, [api, setApi]);\r\n\r\n React.useEffect(() => {\r\n if (!api) {\r\n return;\r\n }\r\n\r\n onSelect(api);\r\n api.on(\"reInit\", onSelect);\r\n api.on(\"select\", onSelect);\r\n\r\n return () => {\r\n api?.off(\"select\", onSelect);\r\n };\r\n }, [api, onSelect]);\r\n\r\n return (\r\n <CarouselContext.Provider\r\n value={{\r\n carouselRef,\r\n api,\r\n opts,\r\n orientation: orientation || (opts?.axis === \"y\" ? \"vertical\" : \"horizontal\"),\r\n scrollPrev,\r\n scrollNext,\r\n canScrollPrev,\r\n canScrollNext,\r\n }}>\r\n <div\r\n ref={ref}\r\n onKeyDownCapture={handleKeyDown}\r\n className={cn(\"relative\", className)}\r\n role='region'\r\n aria-roledescription='carousel'\r\n {...props}>\r\n {children}\r\n </div>\r\n </CarouselContext.Provider>\r\n );\r\n },\r\n);\r\nCarousel.displayName = \"Carousel\";\r\n\r\nconst CarouselContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({className, ...props}, ref) => {\r\n const {carouselRef, orientation} = useCarousel();\r\n\r\n return (\r\n <div\r\n ref={carouselRef}\r\n className='overflow-hidden'>\r\n <div\r\n ref={ref}\r\n className={cn(\"flex\", orientation === \"horizontal\" ? \"-ml-4\" : \"-mt-4 flex-col\", className)}\r\n {...props}\r\n />\r\n </div>\r\n );\r\n});\r\nCarouselContent.displayName = \"CarouselContent\";\r\n\r\nconst CarouselItem = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({className, ...props}, ref) => {\r\n const {orientation} = useCarousel();\r\n\r\n return (\r\n <div\r\n ref={ref}\r\n role='group'\r\n aria-roledescription='slide'\r\n className={cn(\"min-w-0 shrink-0 grow-0 basis-full\", orientation === \"horizontal\" ? \"pl-4\" : \"pt-4\", className)}\r\n {...props}\r\n />\r\n );\r\n});\r\nCarouselItem.displayName = \"CarouselItem\";\r\n\r\nconst CarouselPrevious = React.forwardRef<HTMLButtonElement, React.ComponentProps<typeof Button>>(\r\n ({className, variant = \"outline\", size = \"icon\", ...props}, ref) => {\r\n const {orientation, scrollPrev, canScrollPrev} = useCarousel();\r\n\r\n return (\r\n <Button\r\n ref={ref}\r\n variant={variant}\r\n size={size}\r\n className={cn(\r\n \"absolute h-8 w-8 rounded-full\",\r\n orientation === \"horizontal\" ? \"top-1/2 -left-12 -translate-y-1/2\" : \"-top-12 left-1/2 -translate-x-1/2 rotate-90\",\r\n className,\r\n )}\r\n disabled={!canScrollPrev}\r\n onClick={scrollPrev}\r\n {...props}>\r\n <ArrowLeft className='h-4 w-4' />\r\n <span className='sr-only'>Previous slide</span>\r\n </Button>\r\n );\r\n },\r\n);\r\nCarouselPrevious.displayName = \"CarouselPrevious\";\r\n\r\nconst CarouselNext = React.forwardRef<HTMLButtonElement, React.ComponentProps<typeof Button>>(\r\n ({className, variant = \"outline\", size = \"icon\", ...props}, ref) => {\r\n const {orientation, scrollNext, canScrollNext} = useCarousel();\r\n\r\n return (\r\n <Button\r\n ref={ref}\r\n variant={variant}\r\n size={size}\r\n className={cn(\r\n \"absolute h-8 w-8 rounded-full\",\r\n orientation === \"horizontal\" ? \"top-1/2 -right-12 -translate-y-1/2\" : \"-bottom-12 left-1/2 -translate-x-1/2 rotate-90\",\r\n className,\r\n )}\r\n disabled={!canScrollNext}\r\n onClick={scrollNext}\r\n {...props}>\r\n <ArrowRight className='h-4 w-4' />\r\n <span className='sr-only'>Next slide</span>\r\n </Button>\r\n );\r\n },\r\n);\r\nCarouselNext.displayName = \"CarouselNext\";\r\n\r\nexport {Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type CarouselApi};\r\n"],"names":["CarouselContext","React","useCarousel","context","Error","Carousel","orientation","opts","setApi","plugins","className","children","props","ref","carouselRef","api","useEmblaCarousel","canScrollPrev","setCanScrollPrev","canScrollNext","setCanScrollNext","onSelect","scrollPrev","scrollNext","handleKeyDown","event","cn","CarouselContent","CarouselItem","CarouselPrevious","variant","size","Button","ArrowLeft","CarouselNext","ArrowRight"],"mappings":";;;;;;;AA8BA,MAAMA,kBAAkB,WAAlBA,GAAkBC,cAAiD;AAEzE,SAASC;IACP,MAAMC,UAAUF,WAAiBD;IAEjC,IAAI,CAACG,SACH,MAAM,IAAIC,MAAM;IAGlB,OAAOD;AACT;AAEA,MAAME,WAAW,WAAXA,GAAWJ,WACf,CAAC,EAACK,cAAc,YAAY,EAAEC,IAAI,EAAEC,MAAM,EAAEC,OAAO,EAAEC,SAAS,EAAEC,QAAQ,EAAE,GAAGC,OAAM,EAAEC;IACnF,MAAM,CAACC,aAAaC,IAAI,GAAGC,qBACzB;QACE,GAAGT,IAAI;QACP,MAAMD,AAAgB,iBAAhBA,cAA+B,MAAM;IAC7C,GACAG;IAEF,MAAM,CAACQ,eAAeC,iBAAiB,GAAGjB,SAAe;IACzD,MAAM,CAACkB,eAAeC,iBAAiB,GAAGnB,SAAe;IAEzD,MAAMoB,WAAWpB,YAAkB,CAACc;QAClC,IAAI,CAACA,KACH;QAGFG,iBAAiBH,IAAI,aAAa;QAClCK,iBAAiBL,IAAI,aAAa;IACpC,GAAG,EAAE;IAEL,MAAMO,aAAarB,YAAkB;QACnCc,KAAK;IACP,GAAG;QAACA;KAAI;IAER,MAAMQ,aAAatB,YAAkB;QACnCc,KAAK;IACP,GAAG;QAACA;KAAI;IAER,MAAMS,gBAAgBvB,YACpB,CAACwB;QACC,IAAIA,AAAc,gBAAdA,MAAM,GAAG,EAAkB;YAC7BA,MAAM,cAAc;YACpBH;QACF,OAAO,IAAIG,AAAc,iBAAdA,MAAM,GAAG,EAAmB;YACrCA,MAAM,cAAc;YACpBF;QACF;IACF,GACA;QAACD;QAAYC;KAAW;IAG1BtB,UAAgB;QACd,IAAI,CAACc,OAAO,CAACP,QACX;QAGFA,OAAOO;IACT,GAAG;QAACA;QAAKP;KAAO;IAEhBP,UAAgB;QACd,IAAI,CAACc,KACH;QAGFM,SAASN;QACT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AM,EAAEC;IAC1D,MAAM,EAACP,WAAW,EAAEgB,UAAU,EAAEL,aAAa,EAAC,GAAGf;IAEjD,OAAO,WAAP,GACE,KAAC8B,QAAMA;QACL,KAAKnB;QACL,SAASiB;QACT,MAAMC;QACN,WAAWL,GACT,iCACApB,AAAgB,iBAAhBA,cAA+B,sCAAsC,+CACrEI;QAEF,UAAU,CAACO;QACX,SAASK;QACR,GAAGV,KAAK;;0BACT,IAACqB,WAASA;gBAAC,WAAU;;0BACrB,IAAC;gBAAK,WAAU;0BAAU;;;;AAGhC;AAEFJ,iBAAiB,WAAW,GAAG;AAE/B,MAAMK,eAAe,WAAfA,GAAejC,WACnB,CAAC,EAACS,SAAS,EAAEoB,UAAU,SAAS,EAAEC,OAAO,MAAM,EAAE,GAAGnB,OAAM,EAAEC;IAC1D,MAAM,EAACP,WAAW,EAAEiB,UAAU,EAAEJ,aAAa,EAAC,GAAGjB;IAEjD,OAAO,WAAP,GACE,KAAC8B,QAAMA;QACL,KAAKnB;QACL,SAASiB;QACT,MAAMC;QACN,WAAWL,GACT,iCACApB,AAAgB,iBAAhBA,cAA+B,uCAAuC,kDACtEI;QAEF,UAAU,CAACS;QACX,SAASI;QACR,GAAGX,KAAK;;0BACT,IAACuB,YAAUA;gBAAC,WAAU;;0BACtB,IAAC;gBAAK,WAAU;0BAAU;;;;AAGhC;AAEFD,aAAa,WAAW,GAAG"}
@@ -1,63 +1,41 @@
1
1
  import * as React from "react";
2
2
  import * as RechartsPrimitive from "recharts";
3
+ import type { NameType, ValueType } from "recharts/types/component/DefaultTooltipContent";
3
4
  declare const THEMES: {
4
5
  readonly light: "";
5
6
  readonly dark: ".dark";
6
7
  };
7
- export type ChartConfig = {
8
- [k in string]: {
9
- label?: React.ReactNode;
10
- icon?: React.ComponentType;
11
- } & ({
12
- color?: string;
13
- theme?: never;
14
- } | {
15
- color?: never;
16
- theme: Record<keyof typeof THEMES, string>;
17
- });
18
- };
19
- declare const ChartContainer: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
8
+ export type ChartConfig = Record<string, {
9
+ label?: React.ReactNode;
10
+ icon?: React.ComponentType;
11
+ } & ({
12
+ color?: string;
13
+ theme?: never;
14
+ } | {
15
+ color?: never;
16
+ theme: Record<keyof typeof THEMES, string>;
17
+ })>;
18
+ interface ChartContainerProps extends Omit<React.ComponentProps<"div">, "children">, Pick<React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>, "initialDimension" | "aspect" | "debounce" | "minHeight" | "minWidth" | "maxHeight" | "height" | "width" | "onResize" | "children"> {
20
19
  config: ChartConfig;
21
- children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
22
- }, "ref"> & React.RefAttributes<HTMLDivElement>>;
20
+ innerResponsiveContainerStyle?: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["style"];
21
+ }
22
+ declare function ChartContainer({ id, config, initialDimension, className, children, ...props }: Readonly<ChartContainerProps>): import("react/jsx-runtime").JSX.Element;
23
23
  declare const ChartStyle: ({ id, config }: {
24
24
  id: string;
25
25
  config: ChartConfig;
26
26
  }) => import("react/jsx-runtime").JSX.Element;
27
27
  declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
28
- declare const ChartTooltipContent: React.ForwardRefExoticComponent<Omit<RechartsPrimitive.DefaultTooltipContentProps<import("recharts/types/component/DefaultTooltipContent").ValueType, import("recharts/types/component/DefaultTooltipContent").NameType> & {
29
- accessibilityLayer?: boolean;
30
- active?: boolean | undefined;
31
- includeHidden?: boolean | undefined;
32
- allowEscapeViewBox?: import("recharts/types/util/types").AllowInDimension;
33
- animationDuration?: import("recharts/types/util/types").AnimationDuration;
34
- animationEasing?: import("recharts/types/util/types").AnimationTiming;
35
- content?: import("recharts/types/component/Tooltip").ContentType<import("recharts/types/component/DefaultTooltipContent").ValueType, import("recharts/types/component/DefaultTooltipContent").NameType>;
36
- coordinate?: Partial<import("recharts/types/util/types").Coordinate>;
37
- cursor?: boolean | React.ReactElement | React.SVGProps<SVGElement>;
38
- filterNull?: boolean;
39
- defaultIndex?: number;
40
- isAnimationActive?: boolean;
41
- offset?: number;
42
- payloadUniqBy?: import("recharts/types/util/payload/getUniqPayload").UniqueOption<import("recharts/types/component/DefaultTooltipContent").Payload<import("recharts/types/component/DefaultTooltipContent").ValueType, import("recharts/types/component/DefaultTooltipContent").NameType>>;
43
- position?: Partial<import("recharts/types/util/types").Coordinate>;
44
- reverseDirection?: import("recharts/types/util/types").AllowInDimension;
45
- shared?: boolean;
46
- trigger?: "hover" | "click";
47
- useTranslate3d?: boolean;
48
- viewBox?: import("recharts/types/util/types").CartesianViewBox;
49
- wrapperStyle?: React.CSSProperties;
50
- } & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
28
+ declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: React.ComponentProps<typeof RechartsPrimitive.Tooltip> & React.ComponentProps<"div"> & {
51
29
  hideLabel?: boolean;
52
30
  hideIndicator?: boolean;
53
31
  indicator?: "line" | "dot" | "dashed";
54
32
  nameKey?: string;
55
33
  labelKey?: string;
56
- }, "ref"> & React.RefAttributes<HTMLDivElement>>;
34
+ } & Omit<RechartsPrimitive.DefaultTooltipContentProps<ValueType, NameType>, "accessibilityLayer">): import("react/jsx-runtime").JSX.Element;
57
35
  declare const ChartLegend: typeof RechartsPrimitive.Legend;
58
- declare const ChartLegendContent: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Pick<RechartsPrimitive.LegendProps, "payload" | "verticalAlign"> & {
36
+ declare function ChartLegendContent({ className, hideIcon, nameKey, payload, verticalAlign, }: React.ComponentProps<"div"> & {
59
37
  hideIcon?: boolean;
60
38
  nameKey?: string;
61
- }, "ref"> & React.RefAttributes<HTMLDivElement>>;
39
+ } & RechartsPrimitive.DefaultLegendContentProps): import("react/jsx-runtime").JSX.Element;
62
40
  export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent };
63
41
  //# sourceMappingURL=chart.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../../src/components/ui/chart.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,UAAU,CAAC;AAK9C,QAAA,MAAM,MAAM;;;CAAsC,CAAC;AAEnD,MAAM,MAAM,WAAW,GAAG;KACvB,CAAC,IAAI,MAAM,GAAG;QACb,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACxB,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;KAC5B,GAAG,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAA;KAAC,GAAG;QAAC,KAAK,CAAC,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC,MAAM,OAAO,MAAM,EAAE,MAAM,CAAC,CAAA;KAAC,CAAC;CACpG,CAAC;AAkBF,QAAA,MAAM,cAAc;YAGR,WAAW;cACT,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,mBAAmB,CAAC,CAAC,UAAU,CAAC;gDAwB1F,CAAC;AAGH,QAAA,MAAM,UAAU,GAAI,gBAAc;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,WAAW,CAAA;CAAC,4CA2BlE,CAAC;AAEF,QAAA,MAAM,YAAY,kCAA4B,CAAC;AAE/C,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;gBAIP,OAAO;oBACH,OAAO;gBACX,MAAM,GAAG,KAAK,GAAG,QAAQ;cAC3B,MAAM;eACL,MAAM;gDAqHtB,CAAC;AAGF,QAAA,MAAM,WAAW,iCAA2B,CAAC;AA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