@gv-tech/design-system 2.15.2 → 2.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/README.md +13 -13
  2. package/dist/accordion.cjs +1 -1
  3. package/dist/accordion.cjs.map +1 -1
  4. package/dist/accordion.mjs +12 -12
  5. package/dist/accordion.mjs.map +1 -1
  6. package/dist/alert-dialog.cjs +1 -1
  7. package/dist/alert-dialog.cjs.map +1 -1
  8. package/dist/alert-dialog.mjs +21 -21
  9. package/dist/alert-dialog.mjs.map +1 -1
  10. package/dist/alert.cjs +1 -1
  11. package/dist/alert.mjs +2 -2
  12. package/dist/aspect-ratio.cjs +1 -1
  13. package/dist/aspect-ratio.mjs +1 -1
  14. package/dist/avatar.cjs +1 -1
  15. package/dist/avatar.cjs.map +1 -1
  16. package/dist/avatar.mjs +12 -12
  17. package/dist/avatar.mjs.map +1 -1
  18. package/dist/badge.cjs +1 -1
  19. package/dist/badge.mjs +2 -2
  20. package/dist/breadcrumb.cjs +1 -1
  21. package/dist/breadcrumb.mjs +2 -2
  22. package/dist/button.cjs +1 -1
  23. package/dist/button.mjs +2 -2
  24. package/dist/calendar.cjs +1 -1
  25. package/dist/calendar.mjs +2 -2
  26. package/dist/card.cjs +1 -1
  27. package/dist/card.mjs +2 -2
  28. package/dist/carousel.cjs +1 -1
  29. package/dist/carousel.mjs +2 -2
  30. package/dist/chart.cjs +1 -1
  31. package/dist/chart.mjs +2 -2
  32. package/dist/checkbox.cjs +1 -1
  33. package/dist/checkbox.cjs.map +1 -1
  34. package/dist/checkbox.mjs +3 -3
  35. package/dist/checkbox.mjs.map +1 -1
  36. package/dist/collapsible.cjs +1 -1
  37. package/dist/collapsible.mjs +1 -1
  38. package/dist/command.cjs +1 -1
  39. package/dist/command.cjs.map +1 -1
  40. package/dist/command.mjs +25 -25
  41. package/dist/command.mjs.map +1 -1
  42. package/dist/context-menu.cjs +1 -1
  43. package/dist/context-menu.cjs.map +1 -1
  44. package/dist/context-menu.mjs +42 -42
  45. package/dist/context-menu.mjs.map +1 -1
  46. package/dist/design-system.css +1 -1
  47. package/dist/dialog.cjs +1 -1
  48. package/dist/dialog.cjs.map +1 -1
  49. package/dist/dialog.mjs +18 -18
  50. package/dist/dialog.mjs.map +1 -1
  51. package/dist/drawer.cjs +1 -1
  52. package/dist/drawer.cjs.map +1 -1
  53. package/dist/drawer.mjs +19 -19
  54. package/dist/drawer.mjs.map +1 -1
  55. package/dist/dropdown-menu.cjs +1 -1
  56. package/dist/dropdown-menu.cjs.map +1 -1
  57. package/dist/dropdown-menu.mjs +58 -58
  58. package/dist/dropdown-menu.mjs.map +1 -1
  59. package/dist/form.cjs +1 -1
  60. package/dist/form.mjs +2 -2
  61. package/dist/hover-card.cjs +1 -1
  62. package/dist/hover-card.cjs.map +1 -1
  63. package/dist/hover-card.mjs +4 -4
  64. package/dist/hover-card.mjs.map +1 -1
  65. package/dist/index.cjs +1 -1
  66. package/dist/index.cjs.map +1 -1
  67. package/dist/index.d.ts +113 -0
  68. package/dist/index.mjs +119 -113
  69. package/dist/index.mjs.map +1 -1
  70. package/dist/input.cjs +1 -1
  71. package/dist/input.mjs +2 -2
  72. package/dist/label.cjs +1 -1
  73. package/dist/label.cjs.map +1 -1
  74. package/dist/label.mjs +4 -4
  75. package/dist/label.mjs.map +1 -1
  76. package/dist/menubar.cjs +1 -1
  77. package/dist/menubar.cjs.map +1 -1
  78. package/dist/menubar.mjs +44 -44
  79. package/dist/menubar.mjs.map +1 -1
  80. package/dist/navigation-menu.cjs +1 -1
  81. package/dist/navigation-menu.cjs.map +1 -1
  82. package/dist/navigation-menu.mjs +17 -17
  83. package/dist/navigation-menu.mjs.map +1 -1
  84. package/dist/pagination.cjs +1 -1
  85. package/dist/pagination.mjs +2 -2
  86. package/dist/popover.cjs +1 -1
  87. package/dist/popover.cjs.map +1 -1
  88. package/dist/popover.mjs +8 -8
  89. package/dist/popover.mjs.map +1 -1
  90. package/dist/progress.cjs +1 -1
  91. package/dist/progress.cjs.map +1 -1
  92. package/dist/progress.mjs +9 -9
  93. package/dist/progress.mjs.map +1 -1
  94. package/dist/radio-group.cjs +1 -1
  95. package/dist/radio-group.cjs.map +1 -1
  96. package/dist/radio-group.mjs +8 -8
  97. package/dist/radio-group.mjs.map +1 -1
  98. package/dist/resizable.cjs +1 -1
  99. package/dist/resizable.mjs +2 -2
  100. package/dist/scroll-area.cjs +1 -1
  101. package/dist/scroll-area.cjs.map +1 -1
  102. package/dist/scroll-area.mjs +11 -11
  103. package/dist/scroll-area.mjs.map +1 -1
  104. package/dist/scroll-to-top.cjs +2 -0
  105. package/dist/scroll-to-top.cjs.map +1 -0
  106. package/dist/scroll-to-top.d.ts +37 -0
  107. package/dist/scroll-to-top.mjs +86 -0
  108. package/dist/scroll-to-top.mjs.map +1 -0
  109. package/dist/search.cjs +1 -1
  110. package/dist/search.mjs +4 -4
  111. package/dist/select.cjs +1 -1
  112. package/dist/select.cjs.map +1 -1
  113. package/dist/select.mjs +37 -37
  114. package/dist/select.mjs.map +1 -1
  115. package/dist/separator.cjs +1 -1
  116. package/dist/separator.cjs.map +1 -1
  117. package/dist/separator.mjs +7 -7
  118. package/dist/separator.mjs.map +1 -1
  119. package/dist/sheet.cjs +1 -1
  120. package/dist/sheet.cjs.map +1 -1
  121. package/dist/sheet.mjs +20 -20
  122. package/dist/sheet.mjs.map +1 -1
  123. package/dist/skeleton.cjs +1 -1
  124. package/dist/skeleton.mjs +2 -2
  125. package/dist/slider.cjs +1 -1
  126. package/dist/slider.cjs.map +1 -1
  127. package/dist/slider.mjs +3 -3
  128. package/dist/slider.mjs.map +1 -1
  129. package/dist/sonner.cjs +1 -1
  130. package/dist/sonner.mjs +1 -1
  131. package/dist/support-fab.cjs +2 -0
  132. package/dist/support-fab.cjs.map +1 -0
  133. package/dist/support-fab.d.ts +20 -0
  134. package/dist/support-fab.mjs +120 -0
  135. package/dist/support-fab.mjs.map +1 -0
  136. package/dist/switch.cjs +1 -1
  137. package/dist/switch.cjs.map +1 -1
  138. package/dist/switch.mjs +7 -7
  139. package/dist/switch.mjs.map +1 -1
  140. package/dist/table-of-contents.cjs +2 -0
  141. package/dist/table-of-contents.cjs.map +1 -0
  142. package/dist/table-of-contents.d.ts +68 -0
  143. package/dist/table-of-contents.mjs +161 -0
  144. package/dist/table-of-contents.mjs.map +1 -0
  145. package/dist/table.cjs +1 -1
  146. package/dist/table.mjs +2 -2
  147. package/dist/tabs.cjs +1 -1
  148. package/dist/tabs.cjs.map +1 -1
  149. package/dist/tabs.mjs +13 -13
  150. package/dist/tabs.mjs.map +1 -1
  151. package/dist/text.cjs +1 -1
  152. package/dist/text.mjs +2 -2
  153. package/dist/textarea.cjs +1 -1
  154. package/dist/textarea.mjs +2 -2
  155. package/dist/theme-provider.cjs +1 -1
  156. package/dist/theme-provider.mjs +1 -1
  157. package/dist/{theme-toggle-B1DHy3Aq.mjs → theme-toggle-BNtYv2Jv.mjs} +5 -5
  158. package/dist/{theme-toggle-B1DHy3Aq.mjs.map → theme-toggle-BNtYv2Jv.mjs.map} +1 -1
  159. package/dist/{theme-toggle-CEOvAx_E.js → theme-toggle-DK_OhDRf.js} +2 -2
  160. package/dist/{theme-toggle-CEOvAx_E.js.map → theme-toggle-DK_OhDRf.js.map} +1 -1
  161. package/dist/theme-toggle.cjs +1 -1
  162. package/dist/theme-toggle.mjs +3 -3
  163. package/dist/toast.cjs +1 -1
  164. package/dist/toast.cjs.map +1 -1
  165. package/dist/toast.mjs +17 -17
  166. package/dist/toast.mjs.map +1 -1
  167. package/dist/{toaster-BqX0t2H6.mjs → toaster-Cj_SryBI.mjs} +2 -2
  168. package/dist/{toaster-BqX0t2H6.mjs.map → toaster-Cj_SryBI.mjs.map} +1 -1
  169. package/dist/{toaster-CKwNMV1Z.js → toaster-Q_hzVonm.js} +2 -2
  170. package/dist/{toaster-CKwNMV1Z.js.map → toaster-Q_hzVonm.js.map} +1 -1
  171. package/dist/toaster.cjs +1 -1
  172. package/dist/toaster.mjs +2 -2
  173. package/dist/{toggle-Dmzr60z6.mjs → toggle-DPMTgo47.mjs} +2 -2
  174. package/dist/{toggle-Dmzr60z6.mjs.map → toggle-DPMTgo47.mjs.map} +1 -1
  175. package/dist/{toggle-BAzsZDaN.js → toggle-_F_yB_Dj.js} +2 -2
  176. package/dist/{toggle-BAzsZDaN.js.map → toggle-_F_yB_Dj.js.map} +1 -1
  177. package/dist/toggle-group.cjs +1 -1
  178. package/dist/toggle-group.cjs.map +1 -1
  179. package/dist/toggle-group.mjs +19 -19
  180. package/dist/toggle-group.mjs.map +1 -1
  181. package/dist/toggle.cjs +1 -1
  182. package/dist/toggle.cjs.map +1 -1
  183. package/dist/toggle.mjs +7 -7
  184. package/dist/toggle.mjs.map +1 -1
  185. package/dist/tooltip.cjs +1 -1
  186. package/dist/tooltip.cjs.map +1 -1
  187. package/dist/tooltip.mjs +11 -11
  188. package/dist/tooltip.mjs.map +1 -1
  189. package/dist/utils-Bgpn0CK0.mjs +12 -0
  190. package/dist/utils-Bgpn0CK0.mjs.map +1 -0
  191. package/dist/utils-CBWPs0D7.js +2 -0
  192. package/dist/utils-CBWPs0D7.js.map +1 -0
  193. package/dist/{vendor-DxBXMLEx.mjs → vendor-BQwS7aJt.mjs} +1953 -1929
  194. package/dist/vendor-BQwS7aJt.mjs.map +1 -0
  195. package/dist/{vendor-DQFuDa7q.js → vendor-B_07FHqh.js} +14 -14
  196. package/dist/vendor-B_07FHqh.js.map +1 -0
  197. package/package.json +73 -78
  198. package/dist/utils-DKStzUzN.js +0 -2
  199. package/dist/utils-DKStzUzN.js.map +0 -1
  200. package/dist/utils-Dk-Gx69q.mjs +0 -8
  201. package/dist/utils-Dk-Gx69q.mjs.map +0 -1
  202. package/dist/vendor-DQFuDa7q.js.map +0 -1
  203. package/dist/vendor-DxBXMLEx.mjs.map +0 -1
package/README.md CHANGED
@@ -36,7 +36,7 @@ A React component design system. This repository provides a lightweight, opinion
36
36
 
37
37
  ## Demo
38
38
 
39
- The design system includes a Vite-based playground site. Run it locally with `yarn dev` or view the hosted version on [Cloudflare Pages](https://gvtech-design.pages.dev/).
39
+ The design system includes a Vite-based playground site. Run it locally with `bun run dev` or view the hosted version on [Cloudflare Pages](https://gvtech-design.pages.dev/).
40
40
 
41
41
  ## Install
42
42
 
@@ -46,8 +46,8 @@ The public package is published as `@gv-tech/design-system`:
46
46
  # npm
47
47
  npm install @gv-tech/design-system
48
48
 
49
- # yarn
50
- yarn add @gv-tech/design-system
49
+ # bun
50
+ bun add @gv-tech/design-system
51
51
  ```
52
52
 
53
53
  ## Usage
@@ -67,17 +67,17 @@ function App() {
67
67
  Start a local dev server:
68
68
 
69
69
  ```bash
70
- yarn dev
70
+ bun run dev
71
71
  ```
72
72
 
73
73
  Available scripts (selected):
74
74
 
75
- - `yarn dev` — start Vite dev server (Playground site)
76
- - `yarn build` — build the library and registry
77
- - `yarn build:site` — build the playground site
78
- - `yarn test` — run tests locally
79
- - `yarn test:ci` — run tests in CI
80
- - `yarn lint` — run eslint
75
+ - `bun run dev` — start Vite dev server (Playground site)
76
+ - `bun run build` — build the library and registry
77
+ - `bun run build:site` — build the playground site
78
+ - `bun run test` — run tests locally
79
+ - `bun run test:ci` — run tests in CI
80
+ - `bun run lint` — run eslint
81
81
 
82
82
  For full commands and details see `package.json`.
83
83
 
@@ -85,8 +85,8 @@ For full commands and details see `package.json`.
85
85
 
86
86
  Unit tests use Vitest and React Testing Library.
87
87
 
88
- - Run tests locally: `yarn test`
89
- - CI runs: `yarn test:ci`
88
+ - Run tests locally: `bun run test`
89
+ - CI runs: `bun run test:ci`
90
90
 
91
91
  ## Releases & Publishing
92
92
 
@@ -99,7 +99,7 @@ Publishing uses OIDC via npm Trusted Publishers for `@gv-tech` packages.
99
99
  Please read the full guidelines in [CONTRIBUTING.md](.github/CONTRIBUTING.md) before contributing. Key points:
100
100
 
101
101
  - Follow **Conventional Commits** to ensure release tooling produces accurate changelogs.
102
- - Run `yarn lint` and `yarn test` before opening PRs.
102
+ - Run `bun run lint` and `bun run test` before opening PRs.
103
103
 
104
104
  ## Roadmap
105
105
 
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-DQFuDa7q.js"),l=require("react"),s=require("./utils-DKStzUzN.js");function m(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:()=>t[o]})}}return n.default=t,Object.freeze(n)}const a=m(l),u=e.Root2,c=a.forwardRef(({className:t,...n},o)=>e.jsxRuntimeExports.jsx(e.Item,{ref:o,className:s.cn("border-b",t),...n}));c.displayName="AccordionItem";const i=a.forwardRef(({className:t,children:n,...o},r)=>e.jsxRuntimeExports.jsx(e.Header,{className:"flex",children:e.jsxRuntimeExports.jsxs(e.Trigger2,{ref:r,className:s.cn("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",t),...o,children:[n,e.jsxRuntimeExports.jsx(e.ChevronDown,{className:"text-muted-foreground h-4 w-4 shrink-0 transition-transform duration-200"})]})}));i.displayName=e.Trigger2.displayName;const d=a.forwardRef(({className:t,children:n,...o},r)=>e.jsxRuntimeExports.jsx(e.Content2,{ref:r,className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...o,children:e.jsxRuntimeExports.jsx("div",{className:s.cn("pt-0 pb-4",t),children:n})}));d.displayName=e.Content2.displayName;exports.Accordion=u;exports.AccordionContent=d;exports.AccordionItem=c;exports.AccordionTrigger=i;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-B_07FHqh.js"),l=require("react"),s=require("./utils-CBWPs0D7.js");function m(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:()=>t[o]})}}return n.default=t,Object.freeze(n)}const c=m(l),u=e.Root2,a=c.forwardRef(({className:t,...n},o)=>e.jsxRuntimeExports.jsx(e.Item,{ref:o,className:s.cn("border-b",t),...n}));a.displayName="AccordionItem";const i=c.forwardRef(({className:t,children:n,...o},r)=>e.jsxRuntimeExports.jsx(e.Header,{className:"flex",children:e.jsxRuntimeExports.jsxs(e.Trigger2,{ref:r,className:s.cn("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",t),...o,children:[n,e.jsxRuntimeExports.jsx(e.ChevronDown,{className:"text-muted-foreground h-4 w-4 shrink-0 transition-transform duration-200"})]})}));i.displayName=e.Trigger2?.displayName||"AccordionTrigger";const d=c.forwardRef(({className:t,children:n,...o},r)=>e.jsxRuntimeExports.jsx(e.Content2,{ref:r,className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...o,children:e.jsxRuntimeExports.jsx("div",{className:s.cn("pt-0 pb-4",t),children:n})}));d.displayName=e.Content2?.displayName||"AccordionContent";exports.Accordion=u;exports.AccordionContent=d;exports.AccordionItem=a;exports.AccordionTrigger=i;
2
2
  //# sourceMappingURL=accordion.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"accordion.cjs","sources":["../packages/ui-web/src/accordion.tsx"],"sourcesContent":["'use client';\nimport * as AccordionPrimitive from '@radix-ui/react-accordion';\nimport { ChevronDown } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n AccordionBaseProps,\n AccordionContentBaseProps,\n AccordionItemBaseProps,\n AccordionTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst Accordion = AccordionPrimitive.Root;\n\nconst AccordionItem = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item> & AccordionItemBaseProps\n>(({ className, ...props }, ref) => (\n <AccordionPrimitive.Item ref={ref} className={cn('border-b', className)} {...props} />\n));\nAccordionItem.displayName = 'AccordionItem';\n\nconst AccordionTrigger = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger> & AccordionTriggerBaseProps\n>(({ className, children, ...props }, ref) => (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n ref={ref}\n className={cn(\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',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronDown className=\"text-muted-foreground h-4 w-4 shrink-0 transition-transform duration-200\" />\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n));\nAccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;\n\nconst AccordionContent = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content> & AccordionContentBaseProps\n>(({ className, children, ...props }, ref) => (\n <AccordionPrimitive.Content\n ref={ref}\n className=\"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm\"\n {...props}\n >\n <div className={cn('pt-0 pb-4', className)}>{children}</div>\n </AccordionPrimitive.Content>\n));\nAccordionContent.displayName = AccordionPrimitive.Content.displayName;\n\nexport { Accordion, AccordionContent, AccordionItem, AccordionTrigger };\nexport type { AccordionBaseProps as AccordionProps };\n"],"names":["Accordion","AccordionPrimitive.Root","AccordionItem","React","className","props","ref","jsx","AccordionPrimitive.Item","cn","AccordionTrigger","children","AccordionPrimitive.Header","jsxs","AccordionPrimitive.Trigger","ChevronDown","AccordionContent","AccordionPrimitive.Content"],"mappings":"mdAaMA,EAAYC,EAAAA,MAEZC,EAAgBC,EAAM,WAG1B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACC,EAAAA,KAAA,CAAwB,IAAAF,EAAU,UAAWG,EAAAA,GAAG,WAAYL,CAAS,EAAI,GAAGC,EAAO,CACrF,EACDH,EAAc,YAAc,gBAE5B,MAAMQ,EAAmBP,EAAM,WAG7B,CAAC,CAAE,UAAAC,EAAW,SAAAO,EAAU,GAAGN,CAAA,EAASC,IACpCC,EAAAA,kBAAAA,IAACK,EAAAA,OAAA,CAA0B,UAAU,OACnC,SAAAC,EAAAA,kBAAAA,KAACC,EAAAA,SAAA,CACC,IAAAR,EACA,UAAWG,EAAAA,GACT,iJACAL,CAAA,EAED,GAAGC,EAEH,SAAA,CAAAM,EACDJ,EAAAA,kBAAAA,IAACQ,EAAAA,YAAA,CAAY,UAAU,0EAAA,CAA2E,CAAA,CAAA,CACpG,EACF,CACD,EACDL,EAAiB,YAAcI,EAAAA,SAA2B,YAE1D,MAAME,EAAmBb,EAAM,WAG7B,CAAC,CAAE,UAAAC,EAAW,SAAAO,EAAU,GAAGN,GAASC,IACpCC,EAAAA,kBAAAA,IAACU,EAAAA,SAAA,CACC,IAAAX,EACA,UAAU,4GACT,GAAGD,EAEJ,iCAAC,MAAA,CAAI,UAAWI,EAAAA,GAAG,YAAaL,CAAS,EAAI,SAAAO,CAAA,CAAS,CAAA,CACxD,CACD,EACDK,EAAiB,YAAcC,EAAAA,SAA2B"}
1
+ {"version":3,"file":"accordion.cjs","sources":["../packages/ui-web/src/accordion.tsx"],"sourcesContent":["'use client';\nimport * as AccordionPrimitive from '@radix-ui/react-accordion';\nimport { ChevronDown } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n AccordionBaseProps,\n AccordionContentBaseProps,\n AccordionItemBaseProps,\n AccordionTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst Accordion = AccordionPrimitive.Root;\n\nconst AccordionItem = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item> & AccordionItemBaseProps\n>(({ className, ...props }, ref) => (\n <AccordionPrimitive.Item ref={ref} className={cn('border-b', className)} {...props} />\n));\nAccordionItem.displayName = 'AccordionItem';\n\nconst AccordionTrigger = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger> & AccordionTriggerBaseProps\n>(({ className, children, ...props }, ref) => (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n ref={ref}\n className={cn(\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',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronDown className=\"text-muted-foreground h-4 w-4 shrink-0 transition-transform duration-200\" />\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n));\nAccordionTrigger.displayName = AccordionPrimitive.Trigger?.displayName || 'AccordionTrigger';\n\nconst AccordionContent = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content> & AccordionContentBaseProps\n>(({ className, children, ...props }, ref) => (\n <AccordionPrimitive.Content\n ref={ref}\n className=\"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm\"\n {...props}\n >\n <div className={cn('pt-0 pb-4', className)}>{children}</div>\n </AccordionPrimitive.Content>\n));\nAccordionContent.displayName = AccordionPrimitive.Content?.displayName || 'AccordionContent';\n\nexport { Accordion, AccordionContent, AccordionItem, AccordionTrigger };\nexport type { AccordionBaseProps as AccordionProps };\n"],"names":["Accordion","AccordionPrimitive.Root","AccordionItem","React","className","props","ref","jsx","AccordionPrimitive.Item","cn","AccordionTrigger","children","AccordionPrimitive.Header","jsxs","AccordionPrimitive.Trigger","ChevronDown","AccordionContent","AccordionPrimitive.Content"],"mappings":"mdAaMA,EAAYC,EAAAA,MAEZC,EAAgBC,EAAM,WAG1B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACC,EAAAA,KAAA,CAAwB,IAAAF,EAAU,UAAWG,EAAAA,GAAG,WAAYL,CAAS,EAAI,GAAGC,EAAO,CACrF,EACDH,EAAc,YAAc,gBAE5B,MAAMQ,EAAmBP,EAAM,WAG7B,CAAC,CAAE,UAAAC,EAAW,SAAAO,EAAU,GAAGN,CAAA,EAASC,IACpCC,EAAAA,kBAAAA,IAACK,EAAAA,OAAA,CAA0B,UAAU,OACnC,SAAAC,EAAAA,kBAAAA,KAACC,EAAAA,SAAA,CACC,IAAAR,EACA,UAAWG,EAAAA,GACT,iJACAL,CAAA,EAED,GAAGC,EAEH,SAAA,CAAAM,EACDJ,EAAAA,kBAAAA,IAACQ,EAAAA,YAAA,CAAY,UAAU,0EAAA,CAA2E,CAAA,CAAA,CACpG,EACF,CACD,EACDL,EAAiB,YAAcI,YAA4B,aAAe,mBAE1E,MAAME,EAAmBb,EAAM,WAG7B,CAAC,CAAE,UAAAC,EAAW,SAAAO,EAAU,GAAGN,GAASC,IACpCC,EAAAA,kBAAAA,IAACU,EAAAA,SAAA,CACC,IAAAX,EACA,UAAU,4GACT,GAAGD,EAEJ,iCAAC,MAAA,CAAI,UAAWI,EAAAA,GAAG,YAAaL,CAAS,EAAI,SAAAO,CAAA,CAAS,CAAA,CACxD,CACD,EACDK,EAAiB,YAAcC,YAA4B,aAAe"}
@@ -1,37 +1,37 @@
1
1
  "use client";
2
- import { j as e, I as d, H as m, T as i, C as l, a as c, R as f } from "./vendor-DxBXMLEx.mjs";
2
+ import { j as e, I as d, H as m, T as i, C as l, a as c, R as f } from "./vendor-BQwS7aJt.mjs";
3
3
  import * as r from "react";
4
- import { c as n } from "./utils-Dk-Gx69q.mjs";
5
- const h = f, p = r.forwardRef(({ className: a, ...t }, s) => /* @__PURE__ */ e.jsx(d, { ref: s, className: n("border-b", a), ...t }));
4
+ import { c as n } from "./utils-Bgpn0CK0.mjs";
5
+ const g = f, p = r.forwardRef(({ className: a, ...t }, o) => /* @__PURE__ */ e.jsx(d, { ref: o, className: n("border-b", a), ...t }));
6
6
  p.displayName = "AccordionItem";
7
- const x = r.forwardRef(({ className: a, children: t, ...s }, o) => /* @__PURE__ */ e.jsx(m, { className: "flex", children: /* @__PURE__ */ e.jsxs(
7
+ const x = r.forwardRef(({ className: a, children: t, ...o }, s) => /* @__PURE__ */ e.jsx(m, { className: "flex", children: /* @__PURE__ */ e.jsxs(
8
8
  i,
9
9
  {
10
- ref: o,
10
+ ref: s,
11
11
  className: n(
12
12
  "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",
13
13
  a
14
14
  ),
15
- ...s,
15
+ ...o,
16
16
  children: [
17
17
  t,
18
18
  /* @__PURE__ */ e.jsx(l, { className: "text-muted-foreground h-4 w-4 shrink-0 transition-transform duration-200" })
19
19
  ]
20
20
  }
21
21
  ) }));
22
- x.displayName = i.displayName;
23
- const N = r.forwardRef(({ className: a, children: t, ...s }, o) => /* @__PURE__ */ e.jsx(
22
+ x.displayName = i?.displayName || "AccordionTrigger";
23
+ const N = r.forwardRef(({ className: a, children: t, ...o }, s) => /* @__PURE__ */ e.jsx(
24
24
  c,
25
25
  {
26
- ref: o,
26
+ ref: s,
27
27
  className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
28
- ...s,
28
+ ...o,
29
29
  children: /* @__PURE__ */ e.jsx("div", { className: n("pt-0 pb-4", a), children: t })
30
30
  }
31
31
  ));
32
- N.displayName = c.displayName;
32
+ N.displayName = c?.displayName || "AccordionContent";
33
33
  export {
34
- h as Accordion,
34
+ g as Accordion,
35
35
  N as AccordionContent,
36
36
  p as AccordionItem,
37
37
  x as AccordionTrigger
@@ -1 +1 @@
1
- {"version":3,"file":"accordion.mjs","sources":["../packages/ui-web/src/accordion.tsx"],"sourcesContent":["'use client';\nimport * as AccordionPrimitive from '@radix-ui/react-accordion';\nimport { ChevronDown } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n AccordionBaseProps,\n AccordionContentBaseProps,\n AccordionItemBaseProps,\n AccordionTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst Accordion = AccordionPrimitive.Root;\n\nconst AccordionItem = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item> & AccordionItemBaseProps\n>(({ className, ...props }, ref) => (\n <AccordionPrimitive.Item ref={ref} className={cn('border-b', className)} {...props} />\n));\nAccordionItem.displayName = 'AccordionItem';\n\nconst AccordionTrigger = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger> & AccordionTriggerBaseProps\n>(({ className, children, ...props }, ref) => (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n ref={ref}\n className={cn(\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',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronDown className=\"text-muted-foreground h-4 w-4 shrink-0 transition-transform duration-200\" />\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n));\nAccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;\n\nconst AccordionContent = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content> & AccordionContentBaseProps\n>(({ className, children, ...props }, ref) => (\n <AccordionPrimitive.Content\n ref={ref}\n className=\"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm\"\n {...props}\n >\n <div className={cn('pt-0 pb-4', className)}>{children}</div>\n </AccordionPrimitive.Content>\n));\nAccordionContent.displayName = AccordionPrimitive.Content.displayName;\n\nexport { Accordion, AccordionContent, AccordionItem, AccordionTrigger };\nexport type { AccordionBaseProps as AccordionProps };\n"],"names":["Accordion","AccordionPrimitive.Root","AccordionItem","React","className","props","ref","jsx","AccordionPrimitive.Item","cn","AccordionTrigger","children","AccordionPrimitive.Header","jsxs","AccordionPrimitive.Trigger","ChevronDown","AccordionContent","AccordionPrimitive.Content"],"mappings":";;;;AAaA,MAAMA,IAAYC,GAEZC,IAAgBC,EAAM,WAG1B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA,IAACC,GAAA,EAAwB,KAAAF,GAAU,WAAWG,EAAG,YAAYL,CAAS,GAAI,GAAGC,GAAO,CACrF;AACDH,EAAc,cAAc;AAE5B,MAAMQ,IAAmBP,EAAM,WAG7B,CAAC,EAAE,WAAAC,GAAW,UAAAO,GAAU,GAAGN,EAAA,GAASC,MACpCC,gBAAAA,EAAAA,IAACK,GAAA,EAA0B,WAAU,QACnC,UAAAC,gBAAAA,EAAAA;AAAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAR;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,IAEH,UAAA;AAAA,MAAAM;AAAA,MACDJ,gBAAAA,EAAAA,IAACQ,GAAA,EAAY,WAAU,2EAAA,CAA2E;AAAA,IAAA;AAAA,EAAA;AACpG,GACF,CACD;AACDL,EAAiB,cAAcI,EAA2B;AAE1D,MAAME,IAAmBb,EAAM,WAG7B,CAAC,EAAE,WAAAC,GAAW,UAAAO,GAAU,GAAGN,KAASC,MACpCC,gBAAAA,EAAAA;AAAAA,EAACU;AAAAA,EAAA;AAAA,IACC,KAAAX;AAAA,IACA,WAAU;AAAA,IACT,GAAGD;AAAA,IAEJ,gCAAC,OAAA,EAAI,WAAWI,EAAG,aAAaL,CAAS,GAAI,UAAAO,EAAA,CAAS;AAAA,EAAA;AACxD,CACD;AACDK,EAAiB,cAAcC,EAA2B;"}
1
+ {"version":3,"file":"accordion.mjs","sources":["../packages/ui-web/src/accordion.tsx"],"sourcesContent":["'use client';\nimport * as AccordionPrimitive from '@radix-ui/react-accordion';\nimport { ChevronDown } from 'lucide-react';\nimport * as React from 'react';\n\nimport {\n AccordionBaseProps,\n AccordionContentBaseProps,\n AccordionItemBaseProps,\n AccordionTriggerBaseProps,\n} from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst Accordion = AccordionPrimitive.Root;\n\nconst AccordionItem = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item> & AccordionItemBaseProps\n>(({ className, ...props }, ref) => (\n <AccordionPrimitive.Item ref={ref} className={cn('border-b', className)} {...props} />\n));\nAccordionItem.displayName = 'AccordionItem';\n\nconst AccordionTrigger = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger> & AccordionTriggerBaseProps\n>(({ className, children, ...props }, ref) => (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n ref={ref}\n className={cn(\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',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronDown className=\"text-muted-foreground h-4 w-4 shrink-0 transition-transform duration-200\" />\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n));\nAccordionTrigger.displayName = AccordionPrimitive.Trigger?.displayName || 'AccordionTrigger';\n\nconst AccordionContent = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content> & AccordionContentBaseProps\n>(({ className, children, ...props }, ref) => (\n <AccordionPrimitive.Content\n ref={ref}\n className=\"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm\"\n {...props}\n >\n <div className={cn('pt-0 pb-4', className)}>{children}</div>\n </AccordionPrimitive.Content>\n));\nAccordionContent.displayName = AccordionPrimitive.Content?.displayName || 'AccordionContent';\n\nexport { Accordion, AccordionContent, AccordionItem, AccordionTrigger };\nexport type { AccordionBaseProps as AccordionProps };\n"],"names":["Accordion","AccordionPrimitive.Root","AccordionItem","React","className","props","ref","jsx","AccordionPrimitive.Item","cn","AccordionTrigger","children","AccordionPrimitive.Header","jsxs","AccordionPrimitive.Trigger","ChevronDown","AccordionContent","AccordionPrimitive.Content"],"mappings":";;;;AAaA,MAAMA,IAAYC,GAEZC,IAAgBC,EAAM,WAG1B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA,IAACC,GAAA,EAAwB,KAAAF,GAAU,WAAWG,EAAG,YAAYL,CAAS,GAAI,GAAGC,GAAO,CACrF;AACDH,EAAc,cAAc;AAE5B,MAAMQ,IAAmBP,EAAM,WAG7B,CAAC,EAAE,WAAAC,GAAW,UAAAO,GAAU,GAAGN,EAAA,GAASC,MACpCC,gBAAAA,EAAAA,IAACK,GAAA,EAA0B,WAAU,QACnC,UAAAC,gBAAAA,EAAAA;AAAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAR;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,IAEH,UAAA;AAAA,MAAAM;AAAA,MACDJ,gBAAAA,EAAAA,IAACQ,GAAA,EAAY,WAAU,2EAAA,CAA2E;AAAA,IAAA;AAAA,EAAA;AACpG,GACF,CACD;AACDL,EAAiB,cAAcI,GAA4B,eAAe;AAE1E,MAAME,IAAmBb,EAAM,WAG7B,CAAC,EAAE,WAAAC,GAAW,UAAAO,GAAU,GAAGN,KAASC,MACpCC,gBAAAA,EAAAA;AAAAA,EAACU;AAAAA,EAAA;AAAA,IACC,KAAAX;AAAA,IACA,WAAU;AAAA,IACT,GAAGD;AAAA,IAEJ,gCAAC,OAAA,EAAI,WAAWI,EAAG,aAAaL,CAAS,GAAI,UAAAO,EAAA,CAAS;AAAA,EAAA;AACxD,CACD;AACDK,EAAiB,cAAcC,GAA4B,eAAe;"}
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-DQFuDa7q.js"),D=require("react"),n=require("./button.cjs"),s=require("./utils-DKStzUzN.js");function A(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const i=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(a,o,i.get?i:{enumerable:!0,get:()=>t[o]})}}return a.default=t,Object.freeze(a)}const l=A(D),j=e.Root2$1,y=e.Trigger2$1,c=e.Portal2,r=l.forwardRef(({className:t,...a},o)=>e.jsxRuntimeExports.jsx(e.Overlay2,{className:s.cn("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",t),...a,ref:o}));r.displayName=e.Overlay2.displayName;const d=l.forwardRef(({className:t,...a},o)=>e.jsxRuntimeExports.jsxs(c,{children:[e.jsxRuntimeExports.jsx(r,{}),e.jsxRuntimeExports.jsx(e.Content2$1,{ref:o,className:s.cn("bg-background 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 p-6 shadow-lg duration-200 sm:rounded-lg",t),...a})]}));d.displayName=e.Content2$1.displayName;const m=({className:t,...a})=>e.jsxRuntimeExports.jsx("div",{className:s.cn("flex flex-col space-y-2 text-center sm:text-left",t),...a});m.displayName="AlertDialogHeader";const p=({className:t,...a})=>e.jsxRuntimeExports.jsx("div",{className:s.cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a});p.displayName="AlertDialogFooter";const g=l.forwardRef(({className:t,...a},o)=>e.jsxRuntimeExports.jsx(e.Title2,{ref:o,className:s.cn("text-lg font-semibold",t),...a}));g.displayName=e.Title2.displayName;const u=l.forwardRef(({className:t,...a},o)=>e.jsxRuntimeExports.jsx(e.Description2,{ref:o,className:s.cn("text-muted-foreground text-sm",t),...a}));u.displayName=e.Description2.displayName;const x=l.forwardRef(({className:t,...a},o)=>e.jsxRuntimeExports.jsx(e.Action,{ref:o,className:s.cn(n.buttonVariants(),t),...a}));x.displayName=e.Action.displayName;const f=l.forwardRef(({className:t,...a},o)=>e.jsxRuntimeExports.jsx(e.Cancel,{ref:o,className:s.cn(n.buttonVariants({variant:"outline"}),"mt-2 sm:mt-0",t),...a}));f.displayName=e.Cancel.displayName;exports.AlertDialog=j;exports.AlertDialogAction=x;exports.AlertDialogCancel=f;exports.AlertDialogContent=d;exports.AlertDialogDescription=u;exports.AlertDialogFooter=p;exports.AlertDialogHeader=m;exports.AlertDialogOverlay=r;exports.AlertDialogPortal=c;exports.AlertDialogTitle=g;exports.AlertDialogTrigger=y;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-B_07FHqh.js"),D=require("react"),n=require("./button.cjs"),l=require("./utils-CBWPs0D7.js");function A(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const i=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(a,o,i.get?i:{enumerable:!0,get:()=>t[o]})}}return a.default=t,Object.freeze(a)}const s=A(D),y=e.Root2$1,j=e.Trigger2$1,c=e.Portal2,r=s.forwardRef(({className:t,...a},o)=>e.jsxRuntimeExports.jsx(e.Overlay2,{className:l.cn("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",t),...a,ref:o}));r.displayName=e.Overlay2?.displayName||"AlertDialogOverlay";const d=s.forwardRef(({className:t,...a},o)=>e.jsxRuntimeExports.jsxs(c,{children:[e.jsxRuntimeExports.jsx(r,{}),e.jsxRuntimeExports.jsx(e.Content2$1,{ref:o,className:l.cn("bg-background 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 p-6 shadow-lg duration-200 sm:rounded-lg",t),...a})]}));d.displayName=e.Content2$1?.displayName||"AlertDialogContent";const m=({className:t,...a})=>e.jsxRuntimeExports.jsx("div",{className:l.cn("flex flex-col space-y-2 text-center sm:text-left",t),...a});m.displayName="AlertDialogHeader";const g=({className:t,...a})=>e.jsxRuntimeExports.jsx("div",{className:l.cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a});g.displayName="AlertDialogFooter";const p=s.forwardRef(({className:t,...a},o)=>e.jsxRuntimeExports.jsx(e.Title2,{ref:o,className:l.cn("text-lg font-semibold",t),...a}));p.displayName=e.Title2?.displayName||"AlertDialogTitle";const u=s.forwardRef(({className:t,...a},o)=>e.jsxRuntimeExports.jsx(e.Description2,{ref:o,className:l.cn("text-muted-foreground text-sm",t),...a}));u.displayName=e.Description2?.displayName||"AlertDialogDescription";const x=s.forwardRef(({className:t,...a},o)=>e.jsxRuntimeExports.jsx(e.Action,{ref:o,className:l.cn(n.buttonVariants(),t),...a}));x.displayName=e.Action?.displayName||"AlertDialogAction";const f=s.forwardRef(({className:t,...a},o)=>e.jsxRuntimeExports.jsx(e.Cancel,{ref:o,className:l.cn(n.buttonVariants({variant:"outline"}),"mt-2 sm:mt-0",t),...a}));f.displayName=e.Cancel?.displayName||"AlertDialogCancel";exports.AlertDialog=y;exports.AlertDialogAction=x;exports.AlertDialogCancel=f;exports.AlertDialogContent=d;exports.AlertDialogDescription=u;exports.AlertDialogFooter=g;exports.AlertDialogHeader=m;exports.AlertDialogOverlay=r;exports.AlertDialogPortal=c;exports.AlertDialogTitle=p;exports.AlertDialogTrigger=j;
2
2
  //# sourceMappingURL=alert-dialog.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"alert-dialog.cjs","sources":["../packages/ui-web/src/alert-dialog.tsx"],"sourcesContent":["'use client';\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport * as React from 'react';\n\nimport {\n AlertDialogActionBaseProps,\n AlertDialogBaseProps,\n AlertDialogCancelBaseProps,\n AlertDialogContentBaseProps,\n AlertDialogDescriptionBaseProps,\n AlertDialogFooterBaseProps,\n AlertDialogHeaderBaseProps,\n AlertDialogTitleBaseProps,\n} from '@gv-tech/ui-core';\nimport { buttonVariants } from './button';\nimport { cn } from './lib/utils';\n\nconst AlertDialog = AlertDialogPrimitive.Root;\n\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\nconst AlertDialogPortal = AlertDialogPrimitive.Portal;\n\nconst AlertDialogOverlay = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Overlay\n className={cn(\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',\n className,\n )}\n {...props}\n ref={ref}\n />\n));\nAlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;\n\nconst AlertDialogContent = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content> & AlertDialogContentBaseProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPortal>\n <AlertDialogOverlay />\n <AlertDialogPrimitive.Content\n ref={ref}\n className={cn(\n 'bg-background 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 p-6 shadow-lg duration-200 sm:rounded-lg',\n className,\n )}\n {...props}\n />\n </AlertDialogPortal>\n));\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\nconst AlertDialogHeader = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement> & AlertDialogHeaderBaseProps) => (\n <div className={cn('flex flex-col space-y-2 text-center sm:text-left', className)} {...props} />\n);\nAlertDialogHeader.displayName = 'AlertDialogHeader';\n\nconst AlertDialogFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement> & AlertDialogFooterBaseProps) => (\n <div className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className)} {...props} />\n);\nAlertDialogFooter.displayName = 'AlertDialogFooter';\n\nconst AlertDialogTitle = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title> & AlertDialogTitleBaseProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Title ref={ref} className={cn('text-lg font-semibold', className)} {...props} />\n));\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\nconst AlertDialogDescription = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description> & AlertDialogDescriptionBaseProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Description ref={ref} className={cn('text-muted-foreground text-sm', className)} {...props} />\n));\nAlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;\n\nconst AlertDialogAction = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Action>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action> & AlertDialogActionBaseProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Action ref={ref} className={cn(buttonVariants(), className)} {...props} />\n));\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\nconst AlertDialogCancel = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Cancel>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel> & AlertDialogCancelBaseProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Cancel\n ref={ref}\n className={cn(buttonVariants({ variant: 'outline' }), 'mt-2 sm:mt-0', className)}\n {...props}\n />\n));\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\nexport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogOverlay,\n AlertDialogPortal,\n AlertDialogTitle,\n AlertDialogTrigger,\n};\nexport type { AlertDialogBaseProps as AlertDialogProps };\n"],"names":["AlertDialog","AlertDialogPrimitive.Root","AlertDialogTrigger","AlertDialogPrimitive.Trigger","AlertDialogPortal","AlertDialogPrimitive.Portal","AlertDialogOverlay","React","className","props","ref","jsx","AlertDialogPrimitive.Overlay","cn","AlertDialogContent","jsxs","AlertDialogPrimitive.Content","AlertDialogHeader","AlertDialogFooter","AlertDialogTitle","AlertDialogPrimitive.Title","AlertDialogDescription","AlertDialogPrimitive.Description","AlertDialogAction","AlertDialogPrimitive.Action","buttonVariants","AlertDialogCancel","AlertDialogPrimitive.Cancel"],"mappings":"6eAiBMA,EAAcC,EAAAA,QAEdC,EAAqBC,EAAAA,WAErBC,EAAoBC,EAAAA,QAEpBC,EAAqBC,EAAM,WAG/B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACC,EAAAA,SAAA,CACC,UAAWC,EAAAA,GACT,yJACAL,CAAA,EAED,GAAGC,EACJ,IAAAC,CAAA,CACF,CACD,EACDJ,EAAmB,YAAcM,EAAAA,SAA6B,YAE9D,MAAME,EAAqBP,EAAM,WAG/B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BK,EAAAA,kBAAAA,KAACX,EAAA,CACC,SAAA,CAAAO,EAAAA,kBAAAA,IAACL,EAAA,EAAmB,EACpBK,EAAAA,kBAAAA,IAACK,EAAAA,WAAA,CACC,IAAAN,EACA,UAAWG,EAAAA,GACT,8fACAL,CAAA,EAED,GAAGC,CAAA,CAAA,CACN,EACF,CACD,EACDK,EAAmB,YAAcE,EAAAA,WAA6B,YAE9D,MAAMC,EAAoB,CAAC,CACzB,UAAAT,EACA,GAAGC,CACL,IACEE,EAAAA,kBAAAA,IAAC,OAAI,UAAWE,EAAAA,GAAG,mDAAoDL,CAAS,EAAI,GAAGC,CAAA,CAAO,EAEhGQ,EAAkB,YAAc,oBAEhC,MAAMC,EAAoB,CAAC,CACzB,UAAAV,EACA,GAAGC,CACL,IACEE,EAAAA,kBAAAA,IAAC,OAAI,UAAWE,EAAAA,GAAG,gEAAiEL,CAAS,EAAI,GAAGC,CAAA,CAAO,EAE7GS,EAAkB,YAAc,oBAEhC,MAAMC,EAAmBZ,EAAM,WAG7B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACS,EAAAA,OAAA,CAA2B,IAAAV,EAAU,UAAWG,EAAAA,GAAG,wBAAyBL,CAAS,EAAI,GAAGC,EAAO,CACrG,EACDU,EAAiB,YAAcC,EAAAA,OAA2B,YAE1D,MAAMC,EAAyBd,EAAM,WAGnC,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACW,EAAAA,aAAA,CAAiC,IAAAZ,EAAU,UAAWG,EAAAA,GAAG,gCAAiCL,CAAS,EAAI,GAAGC,EAAO,CACnH,EACDY,EAAuB,YAAcC,EAAAA,aAAiC,YAEtE,MAAMC,EAAoBhB,EAAM,WAG9B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACa,EAAAA,OAAA,CAA4B,IAAAd,EAAU,UAAWG,KAAGY,EAAAA,eAAA,EAAkBjB,CAAS,EAAI,GAAGC,EAAO,CAC/F,EACDc,EAAkB,YAAcC,EAAAA,OAA4B,YAE5D,MAAME,EAAoBnB,EAAM,WAG9B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACgB,EAAAA,OAAA,CACC,IAAAjB,EACA,UAAWG,EAAAA,GAAGY,EAAAA,eAAe,CAAE,QAAS,UAAW,EAAG,eAAgBjB,CAAS,EAC9E,GAAGC,CAAA,CACN,CACD,EACDiB,EAAkB,YAAcC,EAAAA,OAA4B"}
1
+ {"version":3,"file":"alert-dialog.cjs","sources":["../packages/ui-web/src/alert-dialog.tsx"],"sourcesContent":["'use client';\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport * as React from 'react';\n\nimport {\n AlertDialogActionBaseProps,\n AlertDialogBaseProps,\n AlertDialogCancelBaseProps,\n AlertDialogContentBaseProps,\n AlertDialogDescriptionBaseProps,\n AlertDialogFooterBaseProps,\n AlertDialogHeaderBaseProps,\n AlertDialogTitleBaseProps,\n} from '@gv-tech/ui-core';\nimport { buttonVariants } from './button';\nimport { cn } from './lib/utils';\n\nconst AlertDialog = AlertDialogPrimitive.Root;\n\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\nconst AlertDialogPortal = AlertDialogPrimitive.Portal;\n\nconst AlertDialogOverlay = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Overlay\n className={cn(\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',\n className,\n )}\n {...props}\n ref={ref}\n />\n));\nAlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay?.displayName || 'AlertDialogOverlay';\n\nconst AlertDialogContent = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content> & AlertDialogContentBaseProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPortal>\n <AlertDialogOverlay />\n <AlertDialogPrimitive.Content\n ref={ref}\n className={cn(\n 'bg-background 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 p-6 shadow-lg duration-200 sm:rounded-lg',\n className,\n )}\n {...props}\n />\n </AlertDialogPortal>\n));\nAlertDialogContent.displayName = AlertDialogPrimitive.Content?.displayName || 'AlertDialogContent';\n\nconst AlertDialogHeader = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement> & AlertDialogHeaderBaseProps) => (\n <div className={cn('flex flex-col space-y-2 text-center sm:text-left', className)} {...props} />\n);\nAlertDialogHeader.displayName = 'AlertDialogHeader';\n\nconst AlertDialogFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement> & AlertDialogFooterBaseProps) => (\n <div className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className)} {...props} />\n);\nAlertDialogFooter.displayName = 'AlertDialogFooter';\n\nconst AlertDialogTitle = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title> & AlertDialogTitleBaseProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Title ref={ref} className={cn('text-lg font-semibold', className)} {...props} />\n));\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title?.displayName || 'AlertDialogTitle';\n\nconst AlertDialogDescription = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description> & AlertDialogDescriptionBaseProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Description ref={ref} className={cn('text-muted-foreground text-sm', className)} {...props} />\n));\nAlertDialogDescription.displayName = AlertDialogPrimitive.Description?.displayName || 'AlertDialogDescription';\n\nconst AlertDialogAction = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Action>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action> & AlertDialogActionBaseProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Action ref={ref} className={cn(buttonVariants(), className)} {...props} />\n));\nAlertDialogAction.displayName = AlertDialogPrimitive.Action?.displayName || 'AlertDialogAction';\n\nconst AlertDialogCancel = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Cancel>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel> & AlertDialogCancelBaseProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Cancel\n ref={ref}\n className={cn(buttonVariants({ variant: 'outline' }), 'mt-2 sm:mt-0', className)}\n {...props}\n />\n));\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel?.displayName || 'AlertDialogCancel';\n\nexport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogOverlay,\n AlertDialogPortal,\n AlertDialogTitle,\n AlertDialogTrigger,\n};\nexport type { AlertDialogBaseProps as AlertDialogProps };\n"],"names":["AlertDialog","AlertDialogPrimitive.Root","AlertDialogTrigger","AlertDialogPrimitive.Trigger","AlertDialogPortal","AlertDialogPrimitive.Portal","AlertDialogOverlay","React","className","props","ref","jsx","AlertDialogPrimitive.Overlay","cn","AlertDialogContent","jsxs","AlertDialogPrimitive.Content","AlertDialogHeader","AlertDialogFooter","AlertDialogTitle","AlertDialogPrimitive.Title","AlertDialogDescription","AlertDialogPrimitive.Description","AlertDialogAction","AlertDialogPrimitive.Action","buttonVariants","AlertDialogCancel","AlertDialogPrimitive.Cancel"],"mappings":"6eAiBMA,EAAcC,EAAAA,QAEdC,EAAqBC,EAAAA,WAErBC,EAAoBC,EAAAA,QAEpBC,EAAqBC,EAAM,WAG/B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACC,EAAAA,SAAA,CACC,UAAWC,EAAAA,GACT,yJACAL,CAAA,EAED,GAAGC,EACJ,IAAAC,CAAA,CACF,CACD,EACDJ,EAAmB,YAAcM,YAA8B,aAAe,qBAE9E,MAAME,EAAqBP,EAAM,WAG/B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BK,EAAAA,kBAAAA,KAACX,EAAA,CACC,SAAA,CAAAO,EAAAA,kBAAAA,IAACL,EAAA,EAAmB,EACpBK,EAAAA,kBAAAA,IAACK,EAAAA,WAAA,CACC,IAAAN,EACA,UAAWG,EAAAA,GACT,8fACAL,CAAA,EAED,GAAGC,CAAA,CAAA,CACN,EACF,CACD,EACDK,EAAmB,YAAcE,cAA8B,aAAe,qBAE9E,MAAMC,EAAoB,CAAC,CACzB,UAAAT,EACA,GAAGC,CACL,IACEE,EAAAA,kBAAAA,IAAC,OAAI,UAAWE,EAAAA,GAAG,mDAAoDL,CAAS,EAAI,GAAGC,CAAA,CAAO,EAEhGQ,EAAkB,YAAc,oBAEhC,MAAMC,EAAoB,CAAC,CACzB,UAAAV,EACA,GAAGC,CACL,IACEE,EAAAA,kBAAAA,IAAC,OAAI,UAAWE,EAAAA,GAAG,gEAAiEL,CAAS,EAAI,GAAGC,CAAA,CAAO,EAE7GS,EAAkB,YAAc,oBAEhC,MAAMC,EAAmBZ,EAAM,WAG7B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACS,EAAAA,OAAA,CAA2B,IAAAV,EAAU,UAAWG,EAAAA,GAAG,wBAAyBL,CAAS,EAAI,GAAGC,EAAO,CACrG,EACDU,EAAiB,YAAcC,UAA4B,aAAe,mBAE1E,MAAMC,EAAyBd,EAAM,WAGnC,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACW,EAAAA,aAAA,CAAiC,IAAAZ,EAAU,UAAWG,EAAAA,GAAG,gCAAiCL,CAAS,EAAI,GAAGC,EAAO,CACnH,EACDY,EAAuB,YAAcC,gBAAkC,aAAe,yBAEtF,MAAMC,EAAoBhB,EAAM,WAG9B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACa,EAAAA,OAAA,CAA4B,IAAAd,EAAU,UAAWG,KAAGY,EAAAA,eAAA,EAAkBjB,CAAS,EAAI,GAAGC,EAAO,CAC/F,EACDc,EAAkB,YAAcC,UAA6B,aAAe,oBAE5E,MAAME,EAAoBnB,EAAM,WAG9B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACgB,EAAAA,OAAA,CACC,IAAAjB,EACA,UAAWG,EAAAA,GAAGY,EAAAA,eAAe,CAAE,QAAS,UAAW,EAAG,eAAgBjB,CAAS,EAC9E,GAAGC,CAAA,CACN,CACD,EACDiB,EAAkB,YAAcC,UAA6B,aAAe"}
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { j as s, O as i, P as x, b as d, c as r, D as n, A as m, d as c, e as g, f as N } from "./vendor-DxBXMLEx.mjs";
2
+ import { j as s, O as i, P as g, b as r, c as d, D as n, A as m, d as c, e as x, f as A } from "./vendor-BQwS7aJt.mjs";
3
3
  import * as l from "react";
4
4
  import { buttonVariants as f } from "./button.mjs";
5
- import { c as o } from "./utils-Dk-Gx69q.mjs";
6
- const T = g, O = N, y = x, p = l.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ s.jsx(
5
+ import { c as o } from "./utils-Bgpn0CK0.mjs";
6
+ const z = x, O = A, D = g, p = l.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ s.jsx(
7
7
  i,
8
8
  {
9
9
  className: o(
@@ -14,11 +14,11 @@ const T = g, O = N, y = x, p = l.forwardRef(({ className: a, ...e }, t) => /* @_
14
14
  ref: t
15
15
  }
16
16
  ));
17
- p.displayName = i.displayName;
18
- const u = l.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ s.jsxs(y, { children: [
17
+ p.displayName = i?.displayName || "AlertDialogOverlay";
18
+ const N = l.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ s.jsxs(D, { children: [
19
19
  /* @__PURE__ */ s.jsx(p, {}),
20
20
  /* @__PURE__ */ s.jsx(
21
- d,
21
+ r,
22
22
  {
23
23
  ref: t,
24
24
  className: o(
@@ -29,23 +29,23 @@ const u = l.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ s.jsxs(y,
29
29
  }
30
30
  )
31
31
  ] }));
32
- u.displayName = d.displayName;
33
- const A = ({
32
+ N.displayName = r?.displayName || "AlertDialogContent";
33
+ const y = ({
34
34
  className: a,
35
35
  ...e
36
36
  }) => /* @__PURE__ */ s.jsx("div", { className: o("flex flex-col space-y-2 text-center sm:text-left", a), ...e });
37
- A.displayName = "AlertDialogHeader";
38
- const D = ({
37
+ y.displayName = "AlertDialogHeader";
38
+ const u = ({
39
39
  className: a,
40
40
  ...e
41
41
  }) => /* @__PURE__ */ s.jsx("div", { className: o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", a), ...e });
42
- D.displayName = "AlertDialogFooter";
43
- const j = l.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ s.jsx(r, { ref: t, className: o("text-lg font-semibold", a), ...e }));
44
- j.displayName = r.displayName;
42
+ u.displayName = "AlertDialogFooter";
43
+ const j = l.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ s.jsx(d, { ref: t, className: o("text-lg font-semibold", a), ...e }));
44
+ j.displayName = d?.displayName || "AlertDialogTitle";
45
45
  const w = l.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ s.jsx(n, { ref: t, className: o("text-muted-foreground text-sm", a), ...e }));
46
- w.displayName = n.displayName;
46
+ w.displayName = n?.displayName || "AlertDialogDescription";
47
47
  const R = l.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ s.jsx(m, { ref: t, className: o(f(), a), ...e }));
48
- R.displayName = m.displayName;
48
+ R.displayName = m?.displayName || "AlertDialogAction";
49
49
  const b = l.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ s.jsx(
50
50
  c,
51
51
  {
@@ -54,17 +54,17 @@ const b = l.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ s.jsx(
54
54
  ...e
55
55
  }
56
56
  ));
57
- b.displayName = c.displayName;
57
+ b.displayName = c?.displayName || "AlertDialogCancel";
58
58
  export {
59
- T as AlertDialog,
59
+ z as AlertDialog,
60
60
  R as AlertDialogAction,
61
61
  b as AlertDialogCancel,
62
- u as AlertDialogContent,
62
+ N as AlertDialogContent,
63
63
  w as AlertDialogDescription,
64
- D as AlertDialogFooter,
65
- A as AlertDialogHeader,
64
+ u as AlertDialogFooter,
65
+ y as AlertDialogHeader,
66
66
  p as AlertDialogOverlay,
67
- y as AlertDialogPortal,
67
+ D as AlertDialogPortal,
68
68
  j as AlertDialogTitle,
69
69
  O as AlertDialogTrigger
70
70
  };
@@ -1 +1 @@
1
- {"version":3,"file":"alert-dialog.mjs","sources":["../packages/ui-web/src/alert-dialog.tsx"],"sourcesContent":["'use client';\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport * as React from 'react';\n\nimport {\n AlertDialogActionBaseProps,\n AlertDialogBaseProps,\n AlertDialogCancelBaseProps,\n AlertDialogContentBaseProps,\n AlertDialogDescriptionBaseProps,\n AlertDialogFooterBaseProps,\n AlertDialogHeaderBaseProps,\n AlertDialogTitleBaseProps,\n} from '@gv-tech/ui-core';\nimport { buttonVariants } from './button';\nimport { cn } from './lib/utils';\n\nconst AlertDialog = AlertDialogPrimitive.Root;\n\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\nconst AlertDialogPortal = AlertDialogPrimitive.Portal;\n\nconst AlertDialogOverlay = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Overlay\n className={cn(\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',\n className,\n )}\n {...props}\n ref={ref}\n />\n));\nAlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;\n\nconst AlertDialogContent = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content> & AlertDialogContentBaseProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPortal>\n <AlertDialogOverlay />\n <AlertDialogPrimitive.Content\n ref={ref}\n className={cn(\n 'bg-background 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 p-6 shadow-lg duration-200 sm:rounded-lg',\n className,\n )}\n {...props}\n />\n </AlertDialogPortal>\n));\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\nconst AlertDialogHeader = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement> & AlertDialogHeaderBaseProps) => (\n <div className={cn('flex flex-col space-y-2 text-center sm:text-left', className)} {...props} />\n);\nAlertDialogHeader.displayName = 'AlertDialogHeader';\n\nconst AlertDialogFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement> & AlertDialogFooterBaseProps) => (\n <div className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className)} {...props} />\n);\nAlertDialogFooter.displayName = 'AlertDialogFooter';\n\nconst AlertDialogTitle = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title> & AlertDialogTitleBaseProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Title ref={ref} className={cn('text-lg font-semibold', className)} {...props} />\n));\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\nconst AlertDialogDescription = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description> & AlertDialogDescriptionBaseProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Description ref={ref} className={cn('text-muted-foreground text-sm', className)} {...props} />\n));\nAlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;\n\nconst AlertDialogAction = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Action>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action> & AlertDialogActionBaseProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Action ref={ref} className={cn(buttonVariants(), className)} {...props} />\n));\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\nconst AlertDialogCancel = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Cancel>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel> & AlertDialogCancelBaseProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Cancel\n ref={ref}\n className={cn(buttonVariants({ variant: 'outline' }), 'mt-2 sm:mt-0', className)}\n {...props}\n />\n));\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\nexport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogOverlay,\n AlertDialogPortal,\n AlertDialogTitle,\n AlertDialogTrigger,\n};\nexport type { AlertDialogBaseProps as AlertDialogProps };\n"],"names":["AlertDialog","AlertDialogPrimitive.Root","AlertDialogTrigger","AlertDialogPrimitive.Trigger","AlertDialogPortal","AlertDialogPrimitive.Portal","AlertDialogOverlay","React","className","props","ref","jsx","AlertDialogPrimitive.Overlay","cn","AlertDialogContent","jsxs","AlertDialogPrimitive.Content","AlertDialogHeader","AlertDialogFooter","AlertDialogTitle","AlertDialogPrimitive.Title","AlertDialogDescription","AlertDialogPrimitive.Description","AlertDialogAction","AlertDialogPrimitive.Action","buttonVariants","AlertDialogCancel","AlertDialogPrimitive.Cancel"],"mappings":";;;;;AAiBA,MAAMA,IAAcC,GAEdC,IAAqBC,GAErBC,IAAoBC,GAEpBC,IAAqBC,EAAM,WAG/B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA;AAAAA,EAACC;AAAAA,EAAA;AAAA,IACC,WAAWC;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,IACJ,KAAAC;AAAA,EAAA;AACF,CACD;AACDJ,EAAmB,cAAcM,EAA6B;AAE9D,MAAME,IAAqBP,EAAM,WAG/B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BK,gBAAAA,EAAAA,KAACX,GAAA,EACC,UAAA;AAAA,EAAAO,gBAAAA,EAAAA,IAACL,GAAA,EAAmB;AAAA,EACpBK,gBAAAA,EAAAA;AAAAA,IAACK;AAAAA,IAAA;AAAA,MACC,KAAAN;AAAA,MACA,WAAWG;AAAA,QACT;AAAA,QACAL;AAAA,MAAA;AAAA,MAED,GAAGC;AAAA,IAAA;AAAA,EAAA;AACN,GACF,CACD;AACDK,EAAmB,cAAcE,EAA6B;AAE9D,MAAMC,IAAoB,CAAC;AAAA,EACzB,WAAAT;AAAA,EACA,GAAGC;AACL,MACEE,gBAAAA,EAAAA,IAAC,SAAI,WAAWE,EAAG,oDAAoDL,CAAS,GAAI,GAAGC,EAAA,CAAO;AAEhGQ,EAAkB,cAAc;AAEhC,MAAMC,IAAoB,CAAC;AAAA,EACzB,WAAAV;AAAA,EACA,GAAGC;AACL,MACEE,gBAAAA,EAAAA,IAAC,SAAI,WAAWE,EAAG,iEAAiEL,CAAS,GAAI,GAAGC,EAAA,CAAO;AAE7GS,EAAkB,cAAc;AAEhC,MAAMC,IAAmBZ,EAAM,WAG7B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA,IAACS,GAAA,EAA2B,KAAAV,GAAU,WAAWG,EAAG,yBAAyBL,CAAS,GAAI,GAAGC,GAAO,CACrG;AACDU,EAAiB,cAAcC,EAA2B;AAE1D,MAAMC,IAAyBd,EAAM,WAGnC,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA,IAACW,GAAA,EAAiC,KAAAZ,GAAU,WAAWG,EAAG,iCAAiCL,CAAS,GAAI,GAAGC,GAAO,CACnH;AACDY,EAAuB,cAAcC,EAAiC;AAEtE,MAAMC,IAAoBhB,EAAM,WAG9B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA,IAACa,GAAA,EAA4B,KAAAd,GAAU,WAAWG,EAAGY,EAAA,GAAkBjB,CAAS,GAAI,GAAGC,GAAO,CAC/F;AACDc,EAAkB,cAAcC,EAA4B;AAE5D,MAAME,IAAoBnB,EAAM,WAG9B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA;AAAAA,EAACgB;AAAAA,EAAA;AAAA,IACC,KAAAjB;AAAA,IACA,WAAWG,EAAGY,EAAe,EAAE,SAAS,WAAW,GAAG,gBAAgBjB,CAAS;AAAA,IAC9E,GAAGC;AAAA,EAAA;AACN,CACD;AACDiB,EAAkB,cAAcC,EAA4B;"}
1
+ {"version":3,"file":"alert-dialog.mjs","sources":["../packages/ui-web/src/alert-dialog.tsx"],"sourcesContent":["'use client';\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport * as React from 'react';\n\nimport {\n AlertDialogActionBaseProps,\n AlertDialogBaseProps,\n AlertDialogCancelBaseProps,\n AlertDialogContentBaseProps,\n AlertDialogDescriptionBaseProps,\n AlertDialogFooterBaseProps,\n AlertDialogHeaderBaseProps,\n AlertDialogTitleBaseProps,\n} from '@gv-tech/ui-core';\nimport { buttonVariants } from './button';\nimport { cn } from './lib/utils';\n\nconst AlertDialog = AlertDialogPrimitive.Root;\n\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\nconst AlertDialogPortal = AlertDialogPrimitive.Portal;\n\nconst AlertDialogOverlay = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Overlay\n className={cn(\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',\n className,\n )}\n {...props}\n ref={ref}\n />\n));\nAlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay?.displayName || 'AlertDialogOverlay';\n\nconst AlertDialogContent = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content> & AlertDialogContentBaseProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPortal>\n <AlertDialogOverlay />\n <AlertDialogPrimitive.Content\n ref={ref}\n className={cn(\n 'bg-background 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 p-6 shadow-lg duration-200 sm:rounded-lg',\n className,\n )}\n {...props}\n />\n </AlertDialogPortal>\n));\nAlertDialogContent.displayName = AlertDialogPrimitive.Content?.displayName || 'AlertDialogContent';\n\nconst AlertDialogHeader = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement> & AlertDialogHeaderBaseProps) => (\n <div className={cn('flex flex-col space-y-2 text-center sm:text-left', className)} {...props} />\n);\nAlertDialogHeader.displayName = 'AlertDialogHeader';\n\nconst AlertDialogFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement> & AlertDialogFooterBaseProps) => (\n <div className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className)} {...props} />\n);\nAlertDialogFooter.displayName = 'AlertDialogFooter';\n\nconst AlertDialogTitle = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title> & AlertDialogTitleBaseProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Title ref={ref} className={cn('text-lg font-semibold', className)} {...props} />\n));\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title?.displayName || 'AlertDialogTitle';\n\nconst AlertDialogDescription = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description> & AlertDialogDescriptionBaseProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Description ref={ref} className={cn('text-muted-foreground text-sm', className)} {...props} />\n));\nAlertDialogDescription.displayName = AlertDialogPrimitive.Description?.displayName || 'AlertDialogDescription';\n\nconst AlertDialogAction = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Action>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action> & AlertDialogActionBaseProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Action ref={ref} className={cn(buttonVariants(), className)} {...props} />\n));\nAlertDialogAction.displayName = AlertDialogPrimitive.Action?.displayName || 'AlertDialogAction';\n\nconst AlertDialogCancel = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Cancel>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel> & AlertDialogCancelBaseProps\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Cancel\n ref={ref}\n className={cn(buttonVariants({ variant: 'outline' }), 'mt-2 sm:mt-0', className)}\n {...props}\n />\n));\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel?.displayName || 'AlertDialogCancel';\n\nexport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogOverlay,\n AlertDialogPortal,\n AlertDialogTitle,\n AlertDialogTrigger,\n};\nexport type { AlertDialogBaseProps as AlertDialogProps };\n"],"names":["AlertDialog","AlertDialogPrimitive.Root","AlertDialogTrigger","AlertDialogPrimitive.Trigger","AlertDialogPortal","AlertDialogPrimitive.Portal","AlertDialogOverlay","React","className","props","ref","jsx","AlertDialogPrimitive.Overlay","cn","AlertDialogContent","jsxs","AlertDialogPrimitive.Content","AlertDialogHeader","AlertDialogFooter","AlertDialogTitle","AlertDialogPrimitive.Title","AlertDialogDescription","AlertDialogPrimitive.Description","AlertDialogAction","AlertDialogPrimitive.Action","buttonVariants","AlertDialogCancel","AlertDialogPrimitive.Cancel"],"mappings":";;;;;AAiBA,MAAMA,IAAcC,GAEdC,IAAqBC,GAErBC,IAAoBC,GAEpBC,IAAqBC,EAAM,WAG/B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA;AAAAA,EAACC;AAAAA,EAAA;AAAA,IACC,WAAWC;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,IACJ,KAAAC;AAAA,EAAA;AACF,CACD;AACDJ,EAAmB,cAAcM,GAA8B,eAAe;AAE9E,MAAME,IAAqBP,EAAM,WAG/B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BK,gBAAAA,EAAAA,KAACX,GAAA,EACC,UAAA;AAAA,EAAAO,gBAAAA,EAAAA,IAACL,GAAA,EAAmB;AAAA,EACpBK,gBAAAA,EAAAA;AAAAA,IAACK;AAAAA,IAAA;AAAA,MACC,KAAAN;AAAA,MACA,WAAWG;AAAA,QACT;AAAA,QACAL;AAAA,MAAA;AAAA,MAED,GAAGC;AAAA,IAAA;AAAA,EAAA;AACN,GACF,CACD;AACDK,EAAmB,cAAcE,GAA8B,eAAe;AAE9E,MAAMC,IAAoB,CAAC;AAAA,EACzB,WAAAT;AAAA,EACA,GAAGC;AACL,MACEE,gBAAAA,EAAAA,IAAC,SAAI,WAAWE,EAAG,oDAAoDL,CAAS,GAAI,GAAGC,EAAA,CAAO;AAEhGQ,EAAkB,cAAc;AAEhC,MAAMC,IAAoB,CAAC;AAAA,EACzB,WAAAV;AAAA,EACA,GAAGC;AACL,MACEE,gBAAAA,EAAAA,IAAC,SAAI,WAAWE,EAAG,iEAAiEL,CAAS,GAAI,GAAGC,EAAA,CAAO;AAE7GS,EAAkB,cAAc;AAEhC,MAAMC,IAAmBZ,EAAM,WAG7B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA,IAACS,GAAA,EAA2B,KAAAV,GAAU,WAAWG,EAAG,yBAAyBL,CAAS,GAAI,GAAGC,GAAO,CACrG;AACDU,EAAiB,cAAcC,GAA4B,eAAe;AAE1E,MAAMC,IAAyBd,EAAM,WAGnC,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA,IAACW,GAAA,EAAiC,KAAAZ,GAAU,WAAWG,EAAG,iCAAiCL,CAAS,GAAI,GAAGC,GAAO,CACnH;AACDY,EAAuB,cAAcC,GAAkC,eAAe;AAEtF,MAAMC,IAAoBhB,EAAM,WAG9B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA,IAACa,GAAA,EAA4B,KAAAd,GAAU,WAAWG,EAAGY,EAAA,GAAkBjB,CAAS,GAAI,GAAGC,GAAO,CAC/F;AACDc,EAAkB,cAAcC,GAA6B,eAAe;AAE5E,MAAME,IAAoBnB,EAAM,WAG9B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA;AAAAA,EAACgB;AAAAA,EAAA;AAAA,IACC,KAAAjB;AAAA,IACA,WAAWG,EAAGY,EAAe,EAAE,SAAS,WAAW,GAAG,gBAAgBjB,CAAS;AAAA,IAC9E,GAAGC;AAAA,EAAA;AACN,CACD;AACDiB,EAAkB,cAAcC,GAA6B,eAAe;"}
package/dist/alert.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./vendor-DQFuDa7q.js"),c=require("react"),l=require("./utils-DKStzUzN.js");function u(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const n=u(c),b=s.cva("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",warning:"border-amber-500/50 bg-amber-500/10 text-amber-600 dark:text-amber-400 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-400",info:"border-blue-500/50 bg-blue-500/10 text-blue-600 dark:text-blue-400 [&>svg]:text-blue-600 dark:[&>svg]:text-blue-400"}},defaultVariants:{variant:"default"}}),i=n.forwardRef(({className:e,variant:r,...t},a)=>s.jsxRuntimeExports.jsx("div",{ref:a,role:"alert",className:l.cn(b({variant:r}),e),...t}));i.displayName="Alert";const o=n.forwardRef(({className:e,...r},t)=>s.jsxRuntimeExports.jsx("h5",{ref:t,className:l.cn("mb-1 leading-none font-medium tracking-tight",e),...r}));o.displayName="AlertTitle";const d=n.forwardRef(({className:e,...r},t)=>s.jsxRuntimeExports.jsx("div",{ref:t,className:l.cn("text-sm [&_p]:leading-relaxed",e),...r}));d.displayName="AlertDescription";exports.Alert=i;exports.AlertDescription=d;exports.AlertTitle=o;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./vendor-B_07FHqh.js"),c=require("react"),l=require("./utils-CBWPs0D7.js");function u(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const n=u(c),b=s.cva("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",warning:"border-amber-500/50 bg-amber-500/10 text-amber-600 dark:text-amber-400 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-400",info:"border-blue-500/50 bg-blue-500/10 text-blue-600 dark:text-blue-400 [&>svg]:text-blue-600 dark:[&>svg]:text-blue-400"}},defaultVariants:{variant:"default"}}),i=n.forwardRef(({className:e,variant:r,...t},a)=>s.jsxRuntimeExports.jsx("div",{ref:a,role:"alert",className:l.cn(b({variant:r}),e),...t}));i.displayName="Alert";const o=n.forwardRef(({className:e,...r},t)=>s.jsxRuntimeExports.jsx("h5",{ref:t,className:l.cn("mb-1 leading-none font-medium tracking-tight",e),...r}));o.displayName="AlertTitle";const d=n.forwardRef(({className:e,...r},t)=>s.jsxRuntimeExports.jsx("div",{ref:t,className:l.cn("text-sm [&_p]:leading-relaxed",e),...r}));d.displayName="AlertDescription";exports.Alert=i;exports.AlertDescription=d;exports.AlertTitle=o;
2
2
  //# sourceMappingURL=alert.cjs.map
package/dist/alert.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { j as a, g as i } from "./vendor-DxBXMLEx.mjs";
2
+ import { j as a, g as i } from "./vendor-BQwS7aJt.mjs";
3
3
  import * as s from "react";
4
- import { c as l } from "./utils-Dk-Gx69q.mjs";
4
+ import { c as l } from "./utils-Bgpn0CK0.mjs";
5
5
  const o = i(
6
6
  "relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",
7
7
  {
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-DQFuDa7q.js"),t=e.Root;exports.AspectRatio=t;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-B_07FHqh.js"),t=e.Root;exports.AspectRatio=t;
2
2
  //# sourceMappingURL=aspect-ratio.cjs.map
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { h as o } from "./vendor-DxBXMLEx.mjs";
2
+ import { h as o } from "./vendor-BQwS7aJt.mjs";
3
3
  const e = o;
4
4
  export {
5
5
  e as AspectRatio
package/dist/avatar.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./vendor-DQFuDa7q.js"),i=require("react"),l=require("./utils-DKStzUzN.js");function f(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const s=f(i),o=s.forwardRef(({className:e,...t},a)=>r.jsxRuntimeExports.jsx(r.Root$1,{ref:a,className:l.cn("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));o.displayName=r.Root$1.displayName;const c=s.forwardRef(({className:e,...t},a)=>r.jsxRuntimeExports.jsx(r.Image,{ref:a,className:l.cn("aspect-square h-full w-full",e),...t}));c.displayName=r.Image.displayName;const u=s.forwardRef(({className:e,...t},a)=>r.jsxRuntimeExports.jsx(r.Fallback,{ref:a,className:l.cn("bg-muted flex h-full w-full items-center justify-center rounded-full",e),...t}));u.displayName=r.Fallback.displayName;exports.Avatar=o;exports.AvatarFallback=u;exports.AvatarImage=c;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./vendor-B_07FHqh.js"),i=require("react"),l=require("./utils-CBWPs0D7.js");function f(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const c=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,c.get?c:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const s=f(i),n=s.forwardRef(({className:e,...t},a)=>r.jsxRuntimeExports.jsx(r.Root$1,{ref:a,className:l.cn("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));n.displayName=r.Root$1?.displayName||"Avatar";const o=s.forwardRef(({className:e,...t},a)=>r.jsxRuntimeExports.jsx(r.Image,{ref:a,className:l.cn("aspect-square h-full w-full",e),...t}));o.displayName=r.Image?.displayName||"AvatarImage";const u=s.forwardRef(({className:e,...t},a)=>r.jsxRuntimeExports.jsx(r.Fallback,{ref:a,className:l.cn("bg-muted flex h-full w-full items-center justify-center rounded-full",e),...t}));u.displayName=r.Fallback?.displayName||"AvatarFallback";exports.Avatar=n;exports.AvatarFallback=u;exports.AvatarImage=o;
2
2
  //# sourceMappingURL=avatar.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"avatar.cjs","sources":["../packages/ui-web/src/avatar.tsx"],"sourcesContent":["'use client';\nimport * as AvatarPrimitive from '@radix-ui/react-avatar';\nimport * as React from 'react';\n\nimport { AvatarBaseProps, AvatarFallbackBaseProps, AvatarImageBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst Avatar = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root> & AvatarBaseProps\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Root\n ref={ref}\n className={cn('relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full', className)}\n {...props}\n />\n));\nAvatar.displayName = AvatarPrimitive.Root.displayName;\n\nconst AvatarImage = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Image>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image> & AvatarImageBaseProps\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Image ref={ref} className={cn('aspect-square h-full w-full', className)} {...props} />\n));\nAvatarImage.displayName = AvatarPrimitive.Image.displayName;\n\nconst AvatarFallback = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Fallback>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback> & AvatarFallbackBaseProps\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Fallback\n ref={ref}\n className={cn('bg-muted flex h-full w-full items-center justify-center rounded-full', className)}\n {...props}\n />\n));\nAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;\n\nexport { Avatar, AvatarFallback, AvatarImage };\nexport type { AvatarBaseProps as AvatarProps };\n"],"names":["Avatar","React","className","props","ref","jsx","AvatarPrimitive.Root","cn","AvatarImage","AvatarPrimitive.Image","AvatarFallback","AvatarPrimitive.Fallback"],"mappings":"mdAOMA,EAASC,EAAM,WAGnB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACC,EAAAA,OAAA,CACC,IAAAF,EACA,UAAWG,EAAAA,GAAG,gEAAiEL,CAAS,EACvF,GAAGC,CAAA,CACN,CACD,EACDH,EAAO,YAAcM,EAAAA,OAAqB,YAE1C,MAAME,EAAcP,EAAM,WAGxB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACI,EAAAA,MAAA,CAAsB,IAAAL,EAAU,UAAWG,EAAAA,GAAG,8BAA+BL,CAAS,EAAI,GAAGC,EAAO,CACtG,EACDK,EAAY,YAAcC,EAAAA,MAAsB,YAEhD,MAAMC,EAAiBT,EAAM,WAG3B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACM,EAAAA,SAAA,CACC,IAAAP,EACA,UAAWG,EAAAA,GAAG,uEAAwEL,CAAS,EAC9F,GAAGC,CAAA,CACN,CACD,EACDO,EAAe,YAAcC,EAAAA,SAAyB"}
1
+ {"version":3,"file":"avatar.cjs","sources":["../packages/ui-web/src/avatar.tsx"],"sourcesContent":["'use client';\nimport * as AvatarPrimitive from '@radix-ui/react-avatar';\nimport * as React from 'react';\n\nimport { AvatarBaseProps, AvatarFallbackBaseProps, AvatarImageBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst Avatar = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root> & AvatarBaseProps\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Root\n ref={ref}\n className={cn('relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full', className)}\n {...props}\n />\n));\nAvatar.displayName = AvatarPrimitive.Root?.displayName || 'Avatar';\n\nconst AvatarImage = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Image>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image> & AvatarImageBaseProps\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Image ref={ref} className={cn('aspect-square h-full w-full', className)} {...props} />\n));\nAvatarImage.displayName = AvatarPrimitive.Image?.displayName || 'AvatarImage';\n\nconst AvatarFallback = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Fallback>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback> & AvatarFallbackBaseProps\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Fallback\n ref={ref}\n className={cn('bg-muted flex h-full w-full items-center justify-center rounded-full', className)}\n {...props}\n />\n));\nAvatarFallback.displayName = AvatarPrimitive.Fallback?.displayName || 'AvatarFallback';\n\nexport { Avatar, AvatarFallback, AvatarImage };\nexport type { AvatarBaseProps as AvatarProps };\n"],"names":["Avatar","React","className","props","ref","jsx","AvatarPrimitive.Root","cn","AvatarImage","AvatarPrimitive.Image","AvatarFallback","AvatarPrimitive.Fallback"],"mappings":"mdAOMA,EAASC,EAAM,WAGnB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACC,EAAAA,OAAA,CACC,IAAAF,EACA,UAAWG,EAAAA,GAAG,gEAAiEL,CAAS,EACvF,GAAGC,CAAA,CACN,CACD,EACDH,EAAO,YAAcM,UAAsB,aAAe,SAE1D,MAAME,EAAcP,EAAM,WAGxB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACI,EAAAA,MAAA,CAAsB,IAAAL,EAAU,UAAWG,EAAAA,GAAG,8BAA+BL,CAAS,EAAI,GAAGC,EAAO,CACtG,EACDK,EAAY,YAAcC,SAAuB,aAAe,cAEhE,MAAMC,EAAiBT,EAAM,WAG3B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACM,EAAAA,SAAA,CACC,IAAAP,EACA,UAAWG,EAAAA,GAAG,uEAAwEL,CAAS,EAC9F,GAAGC,CAAA,CACN,CACD,EACDO,EAAe,YAAcC,YAA0B,aAAe"}
package/dist/avatar.mjs CHANGED
@@ -1,30 +1,30 @@
1
1
  "use client";
2
- import { j as l, i as m, k as o, F as f } from "./vendor-DxBXMLEx.mjs";
2
+ import { j as s, i as m, k as o, F as f } from "./vendor-BQwS7aJt.mjs";
3
3
  import * as r from "react";
4
- import { c as t } from "./utils-Dk-Gx69q.mjs";
5
- const i = r.forwardRef(({ className: a, ...e }, s) => /* @__PURE__ */ l.jsx(
4
+ import { c as t } from "./utils-Bgpn0CK0.mjs";
5
+ const i = r.forwardRef(({ className: a, ...e }, l) => /* @__PURE__ */ s.jsx(
6
6
  m,
7
7
  {
8
- ref: s,
8
+ ref: l,
9
9
  className: t("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", a),
10
10
  ...e
11
11
  }
12
12
  ));
13
- i.displayName = m.displayName;
14
- const d = r.forwardRef(({ className: a, ...e }, s) => /* @__PURE__ */ l.jsx(o, { ref: s, className: t("aspect-square h-full w-full", a), ...e }));
15
- d.displayName = o.displayName;
16
- const c = r.forwardRef(({ className: a, ...e }, s) => /* @__PURE__ */ l.jsx(
13
+ i.displayName = m?.displayName || "Avatar";
14
+ const c = r.forwardRef(({ className: a, ...e }, l) => /* @__PURE__ */ s.jsx(o, { ref: l, className: t("aspect-square h-full w-full", a), ...e }));
15
+ c.displayName = o?.displayName || "AvatarImage";
16
+ const d = r.forwardRef(({ className: a, ...e }, l) => /* @__PURE__ */ s.jsx(
17
17
  f,
18
18
  {
19
- ref: s,
19
+ ref: l,
20
20
  className: t("bg-muted flex h-full w-full items-center justify-center rounded-full", a),
21
21
  ...e
22
22
  }
23
23
  ));
24
- c.displayName = f.displayName;
24
+ d.displayName = f?.displayName || "AvatarFallback";
25
25
  export {
26
26
  i as Avatar,
27
- c as AvatarFallback,
28
- d as AvatarImage
27
+ d as AvatarFallback,
28
+ c as AvatarImage
29
29
  };
30
30
  //# sourceMappingURL=avatar.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"avatar.mjs","sources":["../packages/ui-web/src/avatar.tsx"],"sourcesContent":["'use client';\nimport * as AvatarPrimitive from '@radix-ui/react-avatar';\nimport * as React from 'react';\n\nimport { AvatarBaseProps, AvatarFallbackBaseProps, AvatarImageBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst Avatar = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root> & AvatarBaseProps\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Root\n ref={ref}\n className={cn('relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full', className)}\n {...props}\n />\n));\nAvatar.displayName = AvatarPrimitive.Root.displayName;\n\nconst AvatarImage = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Image>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image> & AvatarImageBaseProps\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Image ref={ref} className={cn('aspect-square h-full w-full', className)} {...props} />\n));\nAvatarImage.displayName = AvatarPrimitive.Image.displayName;\n\nconst AvatarFallback = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Fallback>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback> & AvatarFallbackBaseProps\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Fallback\n ref={ref}\n className={cn('bg-muted flex h-full w-full items-center justify-center rounded-full', className)}\n {...props}\n />\n));\nAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;\n\nexport { Avatar, AvatarFallback, AvatarImage };\nexport type { AvatarBaseProps as AvatarProps };\n"],"names":["Avatar","React","className","props","ref","jsx","AvatarPrimitive.Root","cn","AvatarImage","AvatarPrimitive.Image","AvatarFallback","AvatarPrimitive.Fallback"],"mappings":";;;;AAOA,MAAMA,IAASC,EAAM,WAGnB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA;AAAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG,EAAG,iEAAiEL,CAAS;AAAA,IACvF,GAAGC;AAAA,EAAA;AACN,CACD;AACDH,EAAO,cAAcM,EAAqB;AAE1C,MAAME,IAAcP,EAAM,WAGxB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA,IAACI,GAAA,EAAsB,KAAAL,GAAU,WAAWG,EAAG,+BAA+BL,CAAS,GAAI,GAAGC,GAAO,CACtG;AACDK,EAAY,cAAcC,EAAsB;AAEhD,MAAMC,IAAiBT,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA;AAAAA,EAACM;AAAAA,EAAA;AAAA,IACC,KAAAP;AAAA,IACA,WAAWG,EAAG,wEAAwEL,CAAS;AAAA,IAC9F,GAAGC;AAAA,EAAA;AACN,CACD;AACDO,EAAe,cAAcC,EAAyB;"}
1
+ {"version":3,"file":"avatar.mjs","sources":["../packages/ui-web/src/avatar.tsx"],"sourcesContent":["'use client';\nimport * as AvatarPrimitive from '@radix-ui/react-avatar';\nimport * as React from 'react';\n\nimport { AvatarBaseProps, AvatarFallbackBaseProps, AvatarImageBaseProps } from '@gv-tech/ui-core';\nimport { cn } from './lib/utils';\n\nconst Avatar = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root> & AvatarBaseProps\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Root\n ref={ref}\n className={cn('relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full', className)}\n {...props}\n />\n));\nAvatar.displayName = AvatarPrimitive.Root?.displayName || 'Avatar';\n\nconst AvatarImage = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Image>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image> & AvatarImageBaseProps\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Image ref={ref} className={cn('aspect-square h-full w-full', className)} {...props} />\n));\nAvatarImage.displayName = AvatarPrimitive.Image?.displayName || 'AvatarImage';\n\nconst AvatarFallback = React.forwardRef<\n React.ElementRef<typeof AvatarPrimitive.Fallback>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback> & AvatarFallbackBaseProps\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Fallback\n ref={ref}\n className={cn('bg-muted flex h-full w-full items-center justify-center rounded-full', className)}\n {...props}\n />\n));\nAvatarFallback.displayName = AvatarPrimitive.Fallback?.displayName || 'AvatarFallback';\n\nexport { Avatar, AvatarFallback, AvatarImage };\nexport type { AvatarBaseProps as AvatarProps };\n"],"names":["Avatar","React","className","props","ref","jsx","AvatarPrimitive.Root","cn","AvatarImage","AvatarPrimitive.Image","AvatarFallback","AvatarPrimitive.Fallback"],"mappings":";;;;AAOA,MAAMA,IAASC,EAAM,WAGnB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA;AAAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG,EAAG,iEAAiEL,CAAS;AAAA,IACvF,GAAGC;AAAA,EAAA;AACN,CACD;AACDH,EAAO,cAAcM,GAAsB,eAAe;AAE1D,MAAME,IAAcP,EAAM,WAGxB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA,IAACI,GAAA,EAAsB,KAAAL,GAAU,WAAWG,EAAG,+BAA+BL,CAAS,GAAI,GAAGC,GAAO,CACtG;AACDK,EAAY,cAAcC,GAAuB,eAAe;AAEhE,MAAMC,IAAiBT,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1BC,gBAAAA,EAAAA;AAAAA,EAACM;AAAAA,EAAA;AAAA,IACC,KAAAP;AAAA,IACA,WAAWG,EAAG,wEAAwEL,CAAS;AAAA,IAC9F,GAAGC;AAAA,EAAA;AACN,CACD;AACDO,EAAe,cAAcC,GAA0B,eAAe;"}
package/dist/badge.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-DQFuDa7q.js"),a=require("./utils-DKStzUzN.js"),r=e.cva("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function s({className:t,variant:n,...o}){return e.jsxRuntimeExports.jsx("div",{className:a.cn(r({variant:n}),t),...o})}exports.Badge=s;exports.badgeVariants=r;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-B_07FHqh.js"),a=require("./utils-CBWPs0D7.js"),r=e.cva("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function s({className:t,variant:n,...o}){return e.jsxRuntimeExports.jsx("div",{className:a.cn(r({variant:n}),t),...o})}exports.Badge=s;exports.badgeVariants=r;
2
2
  //# sourceMappingURL=badge.cjs.map
package/dist/badge.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { j as o, g as n } from "./vendor-DxBXMLEx.mjs";
3
- import { c as a } from "./utils-Dk-Gx69q.mjs";
2
+ import { j as o, g as n } from "./vendor-BQwS7aJt.mjs";
3
+ import { c as a } from "./utils-Bgpn0CK0.mjs";
4
4
  const s = n(
5
5
  "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
6
6
  {
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./vendor-DQFuDa7q.js"),b=require("react"),t=require("./utils-DKStzUzN.js");function f(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const c=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,c.get?c:{enumerable:!0,get:()=>e[a]})}}return r.default=e,Object.freeze(r)}const n=f(b),i=n.forwardRef(({...e},r)=>s.jsxRuntimeExports.jsx("nav",{ref:r,"aria-label":"breadcrumb",...e}));i.displayName="Breadcrumb";const o=n.forwardRef(({className:e,...r},a)=>s.jsxRuntimeExports.jsx("ol",{ref:a,className:t.cn("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",e),...r}));o.displayName="BreadcrumbList";const m=n.forwardRef(({className:e,...r},a)=>s.jsxRuntimeExports.jsx("li",{ref:a,className:t.cn("inline-flex items-center gap-1.5",e),...r}));m.displayName="BreadcrumbItem";const u=n.forwardRef(({asChild:e,className:r,...a},c)=>{const x=e?s.Slot:"a";return s.jsxRuntimeExports.jsx(x,{ref:c,className:t.cn("hover:text-foreground transition-colors",r),...a})});u.displayName="BreadcrumbLink";const l=n.forwardRef(({className:e,...r},a)=>s.jsxRuntimeExports.jsx("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:t.cn("text-foreground font-normal",e),...r}));l.displayName="BreadcrumbPage";const d=({children:e,className:r,...a})=>s.jsxRuntimeExports.jsx("li",{role:"presentation","aria-hidden":"true",className:t.cn("[&>svg]:h-3.5 [&>svg]:w-3.5",r),...a,children:e??s.jsxRuntimeExports.jsx(s.ChevronRight,{})});d.displayName="BreadcrumbSeparator";const p=({className:e,...r})=>s.jsxRuntimeExports.jsxs("span",{role:"presentation","aria-hidden":"true",className:t.cn("flex h-9 w-9 items-center justify-center",e),...r,children:[s.jsxRuntimeExports.jsx(s.Ellipsis,{className:"h-4 w-4"}),s.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"More"})]});p.displayName="BreadcrumbElipssis";exports.Breadcrumb=i;exports.BreadcrumbEllipsis=p;exports.BreadcrumbItem=m;exports.BreadcrumbLink=u;exports.BreadcrumbList=o;exports.BreadcrumbPage=l;exports.BreadcrumbSeparator=d;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./vendor-B_07FHqh.js"),b=require("react"),t=require("./utils-CBWPs0D7.js");function f(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const c=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,c.get?c:{enumerable:!0,get:()=>e[a]})}}return r.default=e,Object.freeze(r)}const n=f(b),i=n.forwardRef(({...e},r)=>s.jsxRuntimeExports.jsx("nav",{ref:r,"aria-label":"breadcrumb",...e}));i.displayName="Breadcrumb";const o=n.forwardRef(({className:e,...r},a)=>s.jsxRuntimeExports.jsx("ol",{ref:a,className:t.cn("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",e),...r}));o.displayName="BreadcrumbList";const m=n.forwardRef(({className:e,...r},a)=>s.jsxRuntimeExports.jsx("li",{ref:a,className:t.cn("inline-flex items-center gap-1.5",e),...r}));m.displayName="BreadcrumbItem";const u=n.forwardRef(({asChild:e,className:r,...a},c)=>{const x=e?s.Slot:"a";return s.jsxRuntimeExports.jsx(x,{ref:c,className:t.cn("hover:text-foreground transition-colors",r),...a})});u.displayName="BreadcrumbLink";const l=n.forwardRef(({className:e,...r},a)=>s.jsxRuntimeExports.jsx("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:t.cn("text-foreground font-normal",e),...r}));l.displayName="BreadcrumbPage";const d=({children:e,className:r,...a})=>s.jsxRuntimeExports.jsx("li",{role:"presentation","aria-hidden":"true",className:t.cn("[&>svg]:h-3.5 [&>svg]:w-3.5",r),...a,children:e??s.jsxRuntimeExports.jsx(s.ChevronRight,{})});d.displayName="BreadcrumbSeparator";const p=({className:e,...r})=>s.jsxRuntimeExports.jsxs("span",{role:"presentation","aria-hidden":"true",className:t.cn("flex h-9 w-9 items-center justify-center",e),...r,children:[s.jsxRuntimeExports.jsx(s.Ellipsis,{className:"h-4 w-4"}),s.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"More"})]});p.displayName="BreadcrumbElipssis";exports.Breadcrumb=i;exports.BreadcrumbEllipsis=p;exports.BreadcrumbItem=m;exports.BreadcrumbLink=u;exports.BreadcrumbList=o;exports.BreadcrumbPage=l;exports.BreadcrumbSeparator=d;
2
2
  //# sourceMappingURL=breadcrumb.cjs.map
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { j as a, S as c, E as l, l as n } from "./vendor-DxBXMLEx.mjs";
2
+ import { j as a, S as c, E as l, l as n } from "./vendor-BQwS7aJt.mjs";
3
3
  import * as i from "react";
4
- import { c as t } from "./utils-Dk-Gx69q.mjs";
4
+ import { c as t } from "./utils-Bgpn0CK0.mjs";
5
5
  const d = i.forwardRef(({ ...e }, r) => /* @__PURE__ */ a.jsx("nav", { ref: r, "aria-label": "breadcrumb", ...e }));
6
6
  d.displayName = "Breadcrumb";
7
7
  const p = i.forwardRef(({ className: e, ...r }, s) => /* @__PURE__ */ a.jsx(
package/dist/button.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./vendor-DQFuDa7q.js"),d=require("react"),l=require("./utils-DKStzUzN.js");function f(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const g=f(d),s=o.cva("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-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),i=g.forwardRef(({className:e,variant:r,size:t,asChild:n=!1,...a},u)=>{const c=n?o.Slot:"button";return o.jsxRuntimeExports.jsx(c,{className:l.cn(s({variant:r,size:t,className:e})),ref:u,...a})});i.displayName="Button";exports.Button=i;exports.buttonVariants=s;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./vendor-B_07FHqh.js"),d=require("react"),l=require("./utils-CBWPs0D7.js");function f(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const g=f(d),s=o.cva("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-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),i=g.forwardRef(({className:e,variant:r,size:t,asChild:n=!1,...a},u)=>{const c=n?o.Slot:"button";return o.jsxRuntimeExports.jsx(c,{className:l.cn(s({variant:r,size:t,className:e})),ref:u,...a})});i.displayName="Button";exports.Button=i;exports.buttonVariants=s;
2
2
  //# sourceMappingURL=button.cjs.map
package/dist/button.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { j as i, S as d, g as c } from "./vendor-DxBXMLEx.mjs";
2
+ import { j as i, S as d, g as c } from "./vendor-BQwS7aJt.mjs";
3
3
  import * as u from "react";
4
- import { c as g } from "./utils-Dk-Gx69q.mjs";
4
+ import { c as g } from "./utils-Bgpn0CK0.mjs";
5
5
  const m = c(
6
6
  "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-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
7
7
  {
package/dist/calendar.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./vendor-DQFuDa7q.js"),b=require("react"),g=require("./button.cjs"),e=require("./utils-DKStzUzN.js");function y(a){const d=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const n in a)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(a,n);Object.defineProperty(d,n,s.get?s:{enumerable:!0,get:()=>a[n]})}}return d.default=a,Object.freeze(d)}const m=y(b);function w({className:a,classNames:d,showOutsideDays:n=!0,captionLayout:s="label",buttonVariant:l="ghost",formatters:i,components:p,...x}){const t=r.getDefaultClassNames();return r.jsxRuntimeExports.jsx(r.DayPicker,{showOutsideDays:n,className:e.cn("bg-background group/calendar p-3 [--cell-size:2.5rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,"relative",a),captionLayout:s,formatters:{formatMonthDropdown:o=>o.toLocaleString("default",{month:"short"}),...i},classNames:{root:e.cn("w-fit",t.root),months:e.cn("relative flex flex-col gap-4 md:flex-row",t.months),month:e.cn("flex w-full flex-col gap-4",t.month),nav:e.cn("absolute inset-x-0 top-2 flex items-center justify-between pointer-events-none px-2",t.nav),button_previous:e.cn(g.buttonVariants({variant:l}),"h-7 w-7 select-none p-0 aria-disabled:opacity-50 pointer-events-auto",t.button_previous),button_next:e.cn(g.buttonVariants({variant:l}),"h-7 w-7 select-none p-0 aria-disabled:opacity-50 pointer-events-auto",t.button_next),month_caption:e.cn("flex h-[--cell-size] w-full items-center justify-center text-sm font-medium",t.month_caption),dropdowns:e.cn("flex h-[--cell-size] w-full items-center justify-center gap-1.5 text-sm font-medium",t.dropdowns),dropdown_root:e.cn("has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border",t.dropdown_root),dropdown:e.cn("bg-popover absolute inset-0 opacity-0",t.dropdown),caption_label:e.cn("select-none font-medium",s==="label"?"text-sm":"[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5",t.caption_label),table:"w-full border-collapse grow",weekdays:e.cn("flex",t.weekdays),weekday:e.cn("text-muted-foreground pt-1 flex-1 select-none rounded-md text-[0.8rem] font-normal uppercase",t.weekday),week:e.cn("flex w-full mt-2",t.week),week_number_header:e.cn("w-[--cell-size] select-none",t.week_number_header),week_number:e.cn("text-muted-foreground select-none text-[0.8rem]",t.week_number),day:e.cn("group/day relative flex aspect-square h-10 w-10 select-none items-center justify-center p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md",t.day),range_start:e.cn("bg-accent rounded-l-md",t.range_start),range_middle:e.cn("rounded-none",t.range_middle),range_end:e.cn("bg-accent rounded-r-md",t.range_end),today:e.cn("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",t.today),outside:e.cn("text-muted-foreground aria-selected:text-muted-foreground",t.outside),disabled:e.cn("text-muted-foreground opacity-50",t.disabled),hidden:e.cn("invisible",t.hidden),...d},components:{Root:({className:o,rootRef:u,...c})=>r.jsxRuntimeExports.jsx("div",{"data-slot":"calendar",ref:u,className:e.cn(o),...c}),Chevron:({className:o,orientation:u,...c})=>u==="left"?r.jsxRuntimeExports.jsx(r.ChevronLeft,{className:e.cn("size-4",o),...c}):u==="right"?r.jsxRuntimeExports.jsx(r.ChevronRight,{className:e.cn("size-4",o),...c}):r.jsxRuntimeExports.jsx(r.ChevronDown,{className:e.cn("size-4",o),...c}),DayButton:f,WeekNumber:({children:o,...u})=>r.jsxRuntimeExports.jsx("td",{...u,children:r.jsxRuntimeExports.jsx("div",{className:"flex size-[--cell-size] items-center justify-center text-center",children:o})}),...p},...x})}function f({className:a,day:d,modifiers:n,...s}){const l=r.getDefaultClassNames(),i=m.useRef(null);return m.useEffect(()=>{n.focused&&i.current?.focus()},[n.focused]),r.jsxRuntimeExports.jsx(g.Button,{ref:i,variant:"ghost",size:"icon","data-day":d.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:e.cn("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-full w-full min-w-[--cell-size] items-center justify-center 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-middle=true]:rounded-none data-[range-start=true]:rounded-md [&>span]:text-xs [&>span]:opacity-70",l.day,a),...s})}exports.Calendar=w;exports.CalendarDayButton=f;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./vendor-B_07FHqh.js"),b=require("react"),g=require("./button.cjs"),e=require("./utils-CBWPs0D7.js");function y(a){const d=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const n in a)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(a,n);Object.defineProperty(d,n,s.get?s:{enumerable:!0,get:()=>a[n]})}}return d.default=a,Object.freeze(d)}const m=y(b);function w({className:a,classNames:d,showOutsideDays:n=!0,captionLayout:s="label",buttonVariant:l="ghost",formatters:i,components:p,...x}){const t=r.getDefaultClassNames();return r.jsxRuntimeExports.jsx(r.DayPicker,{showOutsideDays:n,className:e.cn("bg-background group/calendar p-3 [--cell-size:2.5rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,"relative",a),captionLayout:s,formatters:{formatMonthDropdown:o=>o.toLocaleString("default",{month:"short"}),...i},classNames:{root:e.cn("w-fit",t.root),months:e.cn("relative flex flex-col gap-4 md:flex-row",t.months),month:e.cn("flex w-full flex-col gap-4",t.month),nav:e.cn("absolute inset-x-0 top-2 flex items-center justify-between pointer-events-none px-2",t.nav),button_previous:e.cn(g.buttonVariants({variant:l}),"h-7 w-7 select-none p-0 aria-disabled:opacity-50 pointer-events-auto",t.button_previous),button_next:e.cn(g.buttonVariants({variant:l}),"h-7 w-7 select-none p-0 aria-disabled:opacity-50 pointer-events-auto",t.button_next),month_caption:e.cn("flex h-[--cell-size] w-full items-center justify-center text-sm font-medium",t.month_caption),dropdowns:e.cn("flex h-[--cell-size] w-full items-center justify-center gap-1.5 text-sm font-medium",t.dropdowns),dropdown_root:e.cn("has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border",t.dropdown_root),dropdown:e.cn("bg-popover absolute inset-0 opacity-0",t.dropdown),caption_label:e.cn("select-none font-medium",s==="label"?"text-sm":"[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5",t.caption_label),table:"w-full border-collapse grow",weekdays:e.cn("flex",t.weekdays),weekday:e.cn("text-muted-foreground pt-1 flex-1 select-none rounded-md text-[0.8rem] font-normal uppercase",t.weekday),week:e.cn("flex w-full mt-2",t.week),week_number_header:e.cn("w-[--cell-size] select-none",t.week_number_header),week_number:e.cn("text-muted-foreground select-none text-[0.8rem]",t.week_number),day:e.cn("group/day relative flex aspect-square h-10 w-10 select-none items-center justify-center p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md",t.day),range_start:e.cn("bg-accent rounded-l-md",t.range_start),range_middle:e.cn("rounded-none",t.range_middle),range_end:e.cn("bg-accent rounded-r-md",t.range_end),today:e.cn("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",t.today),outside:e.cn("text-muted-foreground aria-selected:text-muted-foreground",t.outside),disabled:e.cn("text-muted-foreground opacity-50",t.disabled),hidden:e.cn("invisible",t.hidden),...d},components:{Root:({className:o,rootRef:u,...c})=>r.jsxRuntimeExports.jsx("div",{"data-slot":"calendar",ref:u,className:e.cn(o),...c}),Chevron:({className:o,orientation:u,...c})=>u==="left"?r.jsxRuntimeExports.jsx(r.ChevronLeft,{className:e.cn("size-4",o),...c}):u==="right"?r.jsxRuntimeExports.jsx(r.ChevronRight,{className:e.cn("size-4",o),...c}):r.jsxRuntimeExports.jsx(r.ChevronDown,{className:e.cn("size-4",o),...c}),DayButton:f,WeekNumber:({children:o,...u})=>r.jsxRuntimeExports.jsx("td",{...u,children:r.jsxRuntimeExports.jsx("div",{className:"flex size-[--cell-size] items-center justify-center text-center",children:o})}),...p},...x})}function f({className:a,day:d,modifiers:n,...s}){const l=r.getDefaultClassNames(),i=m.useRef(null);return m.useEffect(()=>{n.focused&&i.current?.focus()},[n.focused]),r.jsxRuntimeExports.jsx(g.Button,{ref:i,variant:"ghost",size:"icon","data-day":d.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:e.cn("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-full w-full min-w-[--cell-size] items-center justify-center 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-middle=true]:rounded-none data-[range-start=true]:rounded-md [&>span]:text-xs [&>span]:opacity-70",l.day,a),...s})}exports.Calendar=w;exports.CalendarDayButton=f;
2
2
  //# sourceMappingURL=calendar.cjs.map