@codefast/ui 0.3.8 → 0.3.9-canary.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +0 -2
  3. package/dist/components/alert-dialog.cjs +1 -1
  4. package/dist/components/alert-dialog.js +1 -1
  5. package/dist/components/button-group.cjs +2 -0
  6. package/dist/components/button-group.d.ts +19 -0
  7. package/dist/components/button-group.js +2 -0
  8. package/dist/components/button.cjs +1 -1
  9. package/dist/components/button.d.ts +8 -9
  10. package/dist/components/button.js +1 -1
  11. package/dist/components/carousel.cjs +1 -1
  12. package/dist/components/carousel.js +1 -1
  13. package/dist/components/dialog.cjs +1 -1
  14. package/dist/components/dialog.js +1 -1
  15. package/dist/components/drawer.cjs +1 -1
  16. package/dist/components/drawer.js +1 -1
  17. package/dist/components/empty.cjs +1 -0
  18. package/dist/components/empty.d.ts +22 -0
  19. package/dist/components/empty.js +1 -0
  20. package/dist/components/input-password.cjs +1 -1
  21. package/dist/components/input-password.js +1 -1
  22. package/dist/components/input-search.cjs +1 -1
  23. package/dist/components/input-search.js +1 -1
  24. package/dist/components/item.cjs +1 -0
  25. package/dist/components/item.d.ts +45 -0
  26. package/dist/components/item.js +1 -0
  27. package/dist/components/kbd.cjs +1 -2
  28. package/dist/components/kbd.d.ts +6 -6
  29. package/dist/components/kbd.js +1 -2
  30. package/dist/components/sheet.cjs +1 -1
  31. package/dist/components/sheet.js +1 -1
  32. package/dist/css/amber.css +1 -0
  33. package/dist/css/blue.css +1 -0
  34. package/dist/css/cyan.css +1 -0
  35. package/dist/css/emerald.css +1 -0
  36. package/dist/css/fuchsia.css +1 -0
  37. package/dist/css/gray.css +1 -0
  38. package/dist/css/green.css +1 -0
  39. package/dist/css/indigo.css +1 -0
  40. package/dist/css/lime.css +1 -0
  41. package/dist/css/neutral.css +1 -1
  42. package/dist/css/orange.css +1 -0
  43. package/dist/css/pink.css +1 -0
  44. package/dist/css/preset.css +1 -1
  45. package/dist/css/purple.css +1 -0
  46. package/dist/css/red.css +1 -0
  47. package/dist/css/rose.css +1 -0
  48. package/dist/css/sky.css +1 -0
  49. package/dist/css/slate.css +1 -0
  50. package/dist/css/stone.css +1 -0
  51. package/dist/css/teal.css +1 -0
  52. package/dist/css/violet.css +1 -0
  53. package/dist/css/yellow.css +1 -0
  54. package/dist/css/zinc.css +1 -0
  55. package/dist/index.cjs +1 -1
  56. package/dist/index.d.ts +8 -2
  57. package/dist/index.js +1 -1
  58. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,37 @@
1
1
  # @codefast/ui
2
2
 
3
+ ## 0.3.9-canary.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c0e717f`](https://github.com/codefastlabs/codefast/commit/c0e717f15f1bfbb316174dc3ef050757a4b54041) Thanks [@thevuong](https://github.com/thevuong)! - refactor(ui, docs): add `Empty` component and integrate in registry components
8
+
9
+ - [`035b71a`](https://github.com/codefastlabs/codefast/commit/035b71a1a589a67ac668f1320a6985bd9271b248) Thanks [@thevuong](https://github.com/thevuong)! - refactor(ui): add new size variants `icon-sm` and `icon-lg` to Button component
10
+
11
+ - [`970a122`](https://github.com/codefastlabs/codefast/commit/970a1220fc37908bc19138770f195461652e59f7) Thanks [@thevuong](https://github.com/thevuong)! - refactor(ui, docs): add `ButtonGroup` component and integrate into docs
12
+
13
+ - [`f88b73d`](https://github.com/codefastlabs/codefast/commit/f88b73dfc6f9d817ae83c26f20ef8f1d5b11a8c7) Thanks [@thevuong](https://github.com/thevuong)! - refactor(ui, docs): add `Item` component and integrate into docs
14
+
15
+ - Updated dependencies []:
16
+ - @codefast/tailwind-variants@0.3.9-canary.1
17
+
18
+ ## 0.3.9-canary.0
19
+
20
+ ### Patch Changes
21
+
22
+ - [`261c54b`](https://github.com/codefastlabs/codefast/commit/261c54be4eb37bd23868e058951b11c25f4e0072) Thanks [@thevuong](https://github.com/thevuong)! - refactor(ui): add `KbdGroup` component and enhance `Kbd` functionality
23
+
24
+ - [`c8a296c`](https://github.com/codefastlabs/codefast/commit/c8a296c72a7d427ab0596e5ac124bbc4f6dedbaa) Thanks [@thevuong](https://github.com/thevuong)! - refactor(ui): add oklch-based CSS files for color themes
25
+
26
+ - [`1751374`](https://github.com/codefastlabs/codefast/commit/175137498b3a5144909a2f80e003d070ca5bf937) Thanks [@thevuong](https://github.com/thevuong)! - refactor(ui): update Button component to support asChild prop and simplify props structure
27
+
28
+ - [`4de46d0`](https://github.com/codefastlabs/codefast/commit/4de46d090cce30b3f65ed6203e566378c08d253c) Thanks [@thevuong](https://github.com/thevuong)! - refactor(ui): replace `bg-popover-overlay` with `bg-black/50` and remove unused CSS variables
29
+
30
+ - [`bc4be51`](https://github.com/codefastlabs/codefast/commit/bc4be514f3df7de51ea49c5bd08a8b5bb92b0049) Thanks [@thevuong](https://github.com/thevuong)! - refactor(ui): replace CSS custom properties with oklch color values in neutral.css
31
+
32
+ - Updated dependencies [[`1751374`](https://github.com/codefastlabs/codefast/commit/175137498b3a5144909a2f80e003d070ca5bf937)]:
33
+ - @codefast/tailwind-variants@0.3.9-canary.0
34
+
3
35
  ## 0.3.8
4
36
 
5
37
  ### Patch Changes
package/README.md CHANGED
@@ -345,8 +345,6 @@ pnpm format
345
345
  4. Update documentation
346
346
  5. Submit a pull request
347
347
 
348
- See details at [CONTRIBUTING.md](../../CONTRIBUTING.md).
349
-
350
348
  ## License
351
349
 
352
350
  Distributed under the MIT License. See [LICENSE](../../LICENSE) for more details.
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var a in t)__webpack_require__.o(t,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AlertDialogCancel:()=>AlertDialogCancel,AlertDialogBody:()=>AlertDialogBody,AlertDialogContent:()=>AlertDialogContent,AlertDialogHeader:()=>AlertDialogHeader,AlertDialogFooter:()=>AlertDialogFooter,AlertDialogTrigger:()=>AlertDialogTrigger,AlertDialogDescription:()=>AlertDialogDescription,AlertDialogTitle:()=>AlertDialogTitle,AlertDialog:()=>AlertDialog,AlertDialogAction:()=>AlertDialogAction});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_button_cjs_namespaceObject=require("./button.cjs"),tailwind_variants_namespaceObject=require("@codefast/tailwind-variants"),react_alert_dialog_namespaceObject=require("@radix-ui/react-alert-dialog");function AlertDialog({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Root,{"data-slot":"alert-dialog",...e})}function AlertDialogTrigger({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function AlertDialogContent({children:e,className:t,classNames:a,...r}){return(0,jsx_runtime_namespaceObject.jsxs)(react_alert_dialog_namespaceObject.Portal,{children:[(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Overlay,{className:(0,tailwind_variants_namespaceObject.cn)("bg-popover-overlay data-[state=open]:fade-in-0 data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=closed]:animate-out ease-ui fixed inset-0 z-50",a?.overlay),"data-slot":"alert-dialog-overlay"}),(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Content,{className:(0,tailwind_variants_namespaceObject.cn)("data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 ease-ui fixed inset-0 z-50 grid grid-rows-[1fr_auto_1fr] justify-items-center overflow-auto p-8 sm:grid-rows-[1fr_auto_3fr] sm:p-4",a?.wrapper),"data-slot":"alert-dialog-content-wrapper",...r,children:(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,tailwind_variants_namespaceObject.cn)("bg-popover text-popover-foreground relative row-start-2 flex w-full max-w-lg flex-col rounded-2xl border shadow-lg",a?.content,t),"data-slot":"alert-dialog-content",children:e})})]})}function AlertDialogHeader({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,tailwind_variants_namespaceObject.cn)("flex shrink-0 flex-col gap-1.5 px-6 pt-6 pb-4 text-center sm:text-left",e),"data-slot":"alert-dialog-header",...t})}function AlertDialogBody({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("main",{className:(0,tailwind_variants_namespaceObject.cn)("overflow-auto px-6 py-2",e),"data-slot":"alert-dialog-body",...t})}function AlertDialogFooter({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,tailwind_variants_namespaceObject.cn)("flex shrink-0 flex-col-reverse gap-2 px-6 pt-4 pb-6 sm:flex-row sm:justify-end",e),"data-slot":"alert-dialog-footer",...t})}function AlertDialogTitle({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Title,{className:(0,tailwind_variants_namespaceObject.cn)("text-lg leading-none font-semibold tracking-tight",e),"data-slot":"alert-dialog-title",...t})}function AlertDialogDescription({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Description,{className:(0,tailwind_variants_namespaceObject.cn)("text-muted-foreground text-sm",e),"data-slot":"alert-dialog-description",...t})}function AlertDialogAction({className:e,size:t,variant:a,...r}){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Action,{className:(0,external_button_cjs_namespaceObject.buttonVariants)({className:e,size:t,variant:a}),"data-slot":"alert-dialog-action",...r})}function AlertDialogCancel({className:e,size:t,variant:a="outline",...r}){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Cancel,{className:(0,external_button_cjs_namespaceObject.buttonVariants)({className:e,size:t,variant:a}),"data-slot":"alert-dialog-cancel",...r})}for(var __webpack_i__ in exports.AlertDialog=__webpack_exports__.AlertDialog,exports.AlertDialogAction=__webpack_exports__.AlertDialogAction,exports.AlertDialogBody=__webpack_exports__.AlertDialogBody,exports.AlertDialogCancel=__webpack_exports__.AlertDialogCancel,exports.AlertDialogContent=__webpack_exports__.AlertDialogContent,exports.AlertDialogDescription=__webpack_exports__.AlertDialogDescription,exports.AlertDialogFooter=__webpack_exports__.AlertDialogFooter,exports.AlertDialogHeader=__webpack_exports__.AlertDialogHeader,exports.AlertDialogTitle=__webpack_exports__.AlertDialogTitle,exports.AlertDialogTrigger=__webpack_exports__.AlertDialogTrigger,__webpack_exports__)-1===["AlertDialog","AlertDialogAction","AlertDialogBody","AlertDialogCancel","AlertDialogContent","AlertDialogDescription","AlertDialogFooter","AlertDialogHeader","AlertDialogTitle","AlertDialogTrigger"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
+ "use strict";const __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var a in t)__webpack_require__.o(t,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{AlertDialogCancel:()=>AlertDialogCancel,AlertDialogBody:()=>AlertDialogBody,AlertDialogContent:()=>AlertDialogContent,AlertDialogHeader:()=>AlertDialogHeader,AlertDialogFooter:()=>AlertDialogFooter,AlertDialogTrigger:()=>AlertDialogTrigger,AlertDialogDescription:()=>AlertDialogDescription,AlertDialogTitle:()=>AlertDialogTitle,AlertDialog:()=>AlertDialog,AlertDialogAction:()=>AlertDialogAction});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_button_cjs_namespaceObject=require("./button.cjs"),tailwind_variants_namespaceObject=require("@codefast/tailwind-variants"),react_alert_dialog_namespaceObject=require("@radix-ui/react-alert-dialog");function AlertDialog({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Root,{"data-slot":"alert-dialog",...e})}function AlertDialogTrigger({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function AlertDialogContent({children:e,className:t,classNames:a,...r}){return(0,jsx_runtime_namespaceObject.jsxs)(react_alert_dialog_namespaceObject.Portal,{children:[(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Overlay,{className:(0,tailwind_variants_namespaceObject.cn)("data-[state=open]:fade-in-0 data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=closed]:animate-out ease-ui fixed inset-0 z-50 bg-black/50",a?.overlay),"data-slot":"alert-dialog-overlay"}),(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Content,{className:(0,tailwind_variants_namespaceObject.cn)("data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 ease-ui fixed inset-0 z-50 grid grid-rows-[1fr_auto_1fr] justify-items-center overflow-auto p-8 sm:grid-rows-[1fr_auto_3fr] sm:p-4",a?.wrapper),"data-slot":"alert-dialog-content-wrapper",...r,children:(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,tailwind_variants_namespaceObject.cn)("bg-popover text-popover-foreground relative row-start-2 flex w-full max-w-lg flex-col rounded-2xl border shadow-lg",a?.content,t),"data-slot":"alert-dialog-content",children:e})})]})}function AlertDialogHeader({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,tailwind_variants_namespaceObject.cn)("flex shrink-0 flex-col gap-1.5 px-6 pt-6 pb-4 text-center sm:text-left",e),"data-slot":"alert-dialog-header",...t})}function AlertDialogBody({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("main",{className:(0,tailwind_variants_namespaceObject.cn)("overflow-auto px-6 py-2",e),"data-slot":"alert-dialog-body",...t})}function AlertDialogFooter({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,tailwind_variants_namespaceObject.cn)("flex shrink-0 flex-col-reverse gap-2 px-6 pt-4 pb-6 sm:flex-row sm:justify-end",e),"data-slot":"alert-dialog-footer",...t})}function AlertDialogTitle({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Title,{className:(0,tailwind_variants_namespaceObject.cn)("text-lg leading-none font-semibold tracking-tight",e),"data-slot":"alert-dialog-title",...t})}function AlertDialogDescription({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Description,{className:(0,tailwind_variants_namespaceObject.cn)("text-muted-foreground text-sm",e),"data-slot":"alert-dialog-description",...t})}function AlertDialogAction({className:e,size:t,variant:a,...r}){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Action,{className:(0,external_button_cjs_namespaceObject.buttonVariants)({className:e,size:t,variant:a}),"data-slot":"alert-dialog-action",...r})}function AlertDialogCancel({className:e,size:t,variant:a="outline",...r}){return(0,jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Cancel,{className:(0,external_button_cjs_namespaceObject.buttonVariants)({className:e,size:t,variant:a}),"data-slot":"alert-dialog-cancel",...r})}for(var __webpack_i__ in exports.AlertDialog=__webpack_exports__.AlertDialog,exports.AlertDialogAction=__webpack_exports__.AlertDialogAction,exports.AlertDialogBody=__webpack_exports__.AlertDialogBody,exports.AlertDialogCancel=__webpack_exports__.AlertDialogCancel,exports.AlertDialogContent=__webpack_exports__.AlertDialogContent,exports.AlertDialogDescription=__webpack_exports__.AlertDialogDescription,exports.AlertDialogFooter=__webpack_exports__.AlertDialogFooter,exports.AlertDialogHeader=__webpack_exports__.AlertDialogHeader,exports.AlertDialogTitle=__webpack_exports__.AlertDialogTitle,exports.AlertDialogTrigger=__webpack_exports__.AlertDialogTrigger,__webpack_exports__)-1===["AlertDialog","AlertDialogAction","AlertDialogBody","AlertDialogCancel","AlertDialogContent","AlertDialogDescription","AlertDialogFooter","AlertDialogHeader","AlertDialogTitle","AlertDialogTrigger"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import{jsx as t,jsxs as a}from"react/jsx-runtime";import{buttonVariants as e}from"./button.js";import{cn as o}from"@codefast/tailwind-variants";import{Action as r,Cancel as l,Content as i,Description as n,Overlay as s,Portal as d,Root as c,Title as f,Trigger as g}from"@radix-ui/react-alert-dialog";function u({...a}){return t(c,{"data-slot":"alert-dialog",...a})}function m({...a}){return t(g,{"data-slot":"alert-dialog-trigger",...a})}function p({children:e,className:r,classNames:l,...n}){return a(d,{children:[t(s,{className:o("bg-popover-overlay data-[state=open]:fade-in-0 data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=closed]:animate-out ease-ui fixed inset-0 z-50",l?.overlay),"data-slot":"alert-dialog-overlay"}),t(i,{className:o("data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 ease-ui fixed inset-0 z-50 grid grid-rows-[1fr_auto_1fr] justify-items-center overflow-auto p-8 sm:grid-rows-[1fr_auto_3fr] sm:p-4",l?.wrapper),"data-slot":"alert-dialog-content-wrapper",...n,children:t("div",{className:o("bg-popover text-popover-foreground relative row-start-2 flex w-full max-w-lg flex-col rounded-2xl border shadow-lg",l?.content,r),"data-slot":"alert-dialog-content",children:e})})]})}function x({className:a,...e}){return t("div",{className:o("flex shrink-0 flex-col gap-1.5 px-6 pt-6 pb-4 text-center sm:text-left",a),"data-slot":"alert-dialog-header",...e})}function v({className:a,...e}){return t("main",{className:o("overflow-auto px-6 py-2",a),"data-slot":"alert-dialog-body",...e})}function w({className:a,...e}){return t("div",{className:o("flex shrink-0 flex-col-reverse gap-2 px-6 pt-4 pb-6 sm:flex-row sm:justify-end",a),"data-slot":"alert-dialog-footer",...e})}function A({className:a,...e}){return t(f,{className:o("text-lg leading-none font-semibold tracking-tight",a),"data-slot":"alert-dialog-title",...e})}function D({className:a,...e}){return t(n,{className:o("text-muted-foreground text-sm",a),"data-slot":"alert-dialog-description",...e})}function N({className:a,size:o,variant:l,...i}){return t(r,{className:e({className:a,size:o,variant:l}),"data-slot":"alert-dialog-action",...i})}function b({className:a,size:o,variant:r="outline",...i}){return t(l,{className:e({className:a,size:o,variant:r}),"data-slot":"alert-dialog-cancel",...i})}export{u as AlertDialog,N as AlertDialogAction,v as AlertDialogBody,b as AlertDialogCancel,p as AlertDialogContent,D as AlertDialogDescription,w as AlertDialogFooter,x as AlertDialogHeader,A as AlertDialogTitle,m as AlertDialogTrigger};
2
+ import{jsx as t,jsxs as a}from"react/jsx-runtime";import{buttonVariants as e}from"./button.js";import{cn as o}from"@codefast/tailwind-variants";import{Action as l,Cancel as r,Content as i,Description as n,Overlay as s,Portal as d,Root as c,Title as f,Trigger as g}from"@radix-ui/react-alert-dialog";function u({...a}){return t(c,{"data-slot":"alert-dialog",...a})}function m({...a}){return t(g,{"data-slot":"alert-dialog-trigger",...a})}function p({children:e,className:l,classNames:r,...n}){return a(d,{children:[t(s,{className:o("data-[state=open]:fade-in-0 data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=closed]:animate-out ease-ui fixed inset-0 z-50 bg-black/50",r?.overlay),"data-slot":"alert-dialog-overlay"}),t(i,{className:o("data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 ease-ui fixed inset-0 z-50 grid grid-rows-[1fr_auto_1fr] justify-items-center overflow-auto p-8 sm:grid-rows-[1fr_auto_3fr] sm:p-4",r?.wrapper),"data-slot":"alert-dialog-content-wrapper",...n,children:t("div",{className:o("bg-popover text-popover-foreground relative row-start-2 flex w-full max-w-lg flex-col rounded-2xl border shadow-lg",r?.content,l),"data-slot":"alert-dialog-content",children:e})})]})}function x({className:a,...e}){return t("div",{className:o("flex shrink-0 flex-col gap-1.5 px-6 pt-6 pb-4 text-center sm:text-left",a),"data-slot":"alert-dialog-header",...e})}function v({className:a,...e}){return t("main",{className:o("overflow-auto px-6 py-2",a),"data-slot":"alert-dialog-body",...e})}function w({className:a,...e}){return t("div",{className:o("flex shrink-0 flex-col-reverse gap-2 px-6 pt-4 pb-6 sm:flex-row sm:justify-end",a),"data-slot":"alert-dialog-footer",...e})}function A({className:a,...e}){return t(f,{className:o("text-lg leading-none font-semibold tracking-tight",a),"data-slot":"alert-dialog-title",...e})}function D({className:a,...e}){return t(n,{className:o("text-muted-foreground text-sm",a),"data-slot":"alert-dialog-description",...e})}function N({className:a,size:o,variant:r,...i}){return t(l,{className:e({className:a,size:o,variant:r}),"data-slot":"alert-dialog-action",...i})}function b({className:a,size:o,variant:l="outline",...i}){return t(r,{className:e({className:a,size:o,variant:l}),"data-slot":"alert-dialog-cancel",...i})}export{u as AlertDialog,N as AlertDialogAction,v as AlertDialogBody,b as AlertDialogCancel,p as AlertDialogContent,D as AlertDialogDescription,w as AlertDialogFooter,x as AlertDialogHeader,A as AlertDialogTitle,m as AlertDialogTrigger};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ "use strict";const __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ButtonGroup:()=>ButtonGroup,ButtonGroupSeparator:()=>ButtonGroupSeparator,buttonGroupVariants:()=>buttonGroupVariants,ButtonGroupText:()=>ButtonGroupText});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_separator_cjs_namespaceObject=require("./separator.cjs"),tailwind_variants_namespaceObject=require("@codefast/tailwind-variants"),react_slot_namespaceObject=require("@radix-ui/react-slot"),buttonGroupVariants=(0,tailwind_variants_namespaceObject.tv)({base:(0,tailwind_variants_namespaceObject.cn)("flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2","[&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit","[&>*]:focus-visible:relative [&>*]:focus-visible:z-10 [&>input]:flex-1","has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg"),defaultVariants:{orientation:"horizontal"},variants:{orientation:{horizontal:"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",vertical:"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"}}});function ButtonGroup({className:e,orientation:t,...r}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,tailwind_variants_namespaceObject.cn)(buttonGroupVariants({orientation:t}),e),"data-orientation":t,"data-slot":"button-group",role:"group",...r})}function ButtonGroupText({asChild:e=!1,className:t,...r}){let a=e?react_slot_namespaceObject.Slot:"div";return(0,jsx_runtime_namespaceObject.jsx)(a,{className:(0,tailwind_variants_namespaceObject.cn)("bg-muted flex items-center gap-2 rounded-lg border px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",t),...r})}function ButtonGroupSeparator({className:e,orientation:t="vertical",...r}){return(0,jsx_runtime_namespaceObject.jsx)(external_separator_cjs_namespaceObject.Separator,{className:(0,tailwind_variants_namespaceObject.cn)("bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto",e),"data-slot":"button-group-separator",orientation:t,...r})}for(var __webpack_i__ in exports.ButtonGroup=__webpack_exports__.ButtonGroup,exports.ButtonGroupSeparator=__webpack_exports__.ButtonGroupSeparator,exports.ButtonGroupText=__webpack_exports__.ButtonGroupText,exports.buttonGroupVariants=__webpack_exports__.buttonGroupVariants,__webpack_exports__)-1===["ButtonGroup","ButtonGroupSeparator","ButtonGroupText","buttonGroupVariants"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
@@ -0,0 +1,19 @@
1
+ import type { ComponentProps, JSX } from "react";
2
+ import type { VariantProps } from "@codefast/tailwind-variants";
3
+ import { Separator } from "./separator";
4
+ declare const buttonGroupVariants: import("@codefast/tailwind-variants").VariantFunctionType<{
5
+ orientation: {
6
+ horizontal: string;
7
+ vertical: string;
8
+ };
9
+ }, Record<string, never>>;
10
+ type ButtonGroupProps = ComponentProps<"div"> & VariantProps<typeof buttonGroupVariants>;
11
+ declare function ButtonGroup({ className, orientation, ...props }: ButtonGroupProps): JSX.Element;
12
+ interface ButtonGroupTextProps extends ComponentProps<"div"> {
13
+ asChild?: boolean;
14
+ }
15
+ declare function ButtonGroupText({ asChild, className, ...props }: ButtonGroupTextProps): JSX.Element;
16
+ type ButtonGroupSeparatorProps = ComponentProps<typeof Separator>;
17
+ declare function ButtonGroupSeparator({ className, orientation, ...props }: ButtonGroupSeparatorProps): JSX.Element;
18
+ export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };
19
+ export type { ButtonGroupProps, ButtonGroupSeparatorProps, ButtonGroupTextProps };
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{jsx as t}from"react/jsx-runtime";import{Separator as o}from"./separator.js";import{cn as r,tv as e}from"@codefast/tailwind-variants";import{Slot as a}from"@radix-ui/react-slot";let n=e({base:r("flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2","[&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit","[&>*]:focus-visible:relative [&>*]:focus-visible:z-10 [&>input]:flex-1","has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg"),defaultVariants:{orientation:"horizontal"},variants:{orientation:{horizontal:"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",vertical:"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"}}});function i({className:o,orientation:e,...a}){return t("div",{className:r(n({orientation:e}),o),"data-orientation":e,"data-slot":"button-group",role:"group",...a})}function s({asChild:o=!1,className:e,...n}){return t(o?a:"div",{className:r("bg-muted flex items-center gap-2 rounded-lg border px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",e),...n})}function l({className:e,orientation:a="vertical",...n}){return t(o,{className:r("bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto",e),"data-slot":"button-group-separator",orientation:a,...n})}export{i as ButtonGroup,l as ButtonGroupSeparator,s as ButtonGroupText,n as buttonGroupVariants};
@@ -1 +1 @@
1
- "use strict";const __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,r)=>{for(var t in r)__webpack_require__.o(r,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{buttonVariants:()=>buttonVariants,Button:()=>Button});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_spinner_cjs_namespaceObject=require("./spinner.cjs"),tailwind_variants_namespaceObject=require("@codefast/tailwind-variants"),buttonVariants=(0,tailwind_variants_namespaceObject.tv)({base:"focus-visible:ring-3 outline-hidden inline-flex shrink-0 select-none items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",defaultVariants:{size:"md",variant:"default"},variants:{size:{icon:"size-9",sm:"h-8 px-3 has-[>svg]:px-2.5",md:"h-9 px-4 has-[>svg]:px-3",lg:"h-10 px-6 has-[>svg]:px-4"},variant:{default:"bg-primary text-primary-foreground focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 hover:not-disabled:bg-primary/80",destructive:"bg-destructive dark:bg-destructive/60 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 hover:not-disabled:bg-destructive/90 text-white",ghost:"hover:not-disabled:bg-secondary hover:not-disabled:text-secondary-foreground focus-visible:ring-ring/50 dark:hover:not-disabled:bg-secondary/50",link:"text-primary hover:not-disabled:underline focus-visible:ring-ring/50 underline-offset-4",outline:"border-input shadow-xs hover:not-disabled:bg-secondary hover:not-disabled:text-secondary-foreground focus-visible:ring-ring/50 focus-visible:border-ring aria-invalid:border-destructive dark:aria-invalid:border-destructive/70 hover:not-disabled:aria-invalid:border-destructive/60 focus-within:aria-invalid:ring-destructive/20 dark:focus-within:aria-invalid:ring-destructive/40 dark:bg-input/30 dark:hover:not-disabled:bg-input/50 hover:not-disabled:border-ring/60 border",secondary:"bg-secondary text-secondary-foreground hover:not-disabled:bg-secondary/80 focus-visible:ring-ring/50"}}});function Button({children:e,className:r,disabled:t,loaderPosition:i="prefix",loading:n,prefix:a,size:s,spinner:o,suffix:_,variant:d,...c}){return(0,jsx_runtime_namespaceObject.jsxs)("button",{className:buttonVariants({className:r,size:s,variant:d}),"data-slot":"button","data-variant":d,disabled:n??t,type:"button",...c,children:[n&&"prefix"===i?o??(0,jsx_runtime_namespaceObject.jsx)(external_spinner_cjs_namespaceObject.Spinner,{},"prefix"):a,e,n&&"suffix"===i?o??(0,jsx_runtime_namespaceObject.jsx)(external_spinner_cjs_namespaceObject.Spinner,{},"suffix"):_]})}for(var __webpack_i__ in exports.Button=__webpack_exports__.Button,exports.buttonVariants=__webpack_exports__.buttonVariants,__webpack_exports__)-1===["Button","buttonVariants"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
1
+ "use strict";const __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,r)=>{for(var t in r)__webpack_require__.o(r,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{buttonVariants:()=>buttonVariants,Button:()=>Button});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),tailwind_variants_namespaceObject=require("@codefast/tailwind-variants"),react_slot_namespaceObject=require("@radix-ui/react-slot"),buttonVariants=(0,tailwind_variants_namespaceObject.tv)({base:"focus-visible:ring-3 outline-hidden inline-flex shrink-0 select-none items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",defaultVariants:{size:"md",variant:"default"},variants:{size:{"icon-sm":"size-8",icon:"size-9","icon-lg":"size-10",sm:"h-8 px-3 has-[>svg]:px-2.5",md:"h-9 px-4 has-[>svg]:px-3",lg:"h-10 px-6 has-[>svg]:px-4"},variant:{default:"bg-primary text-primary-foreground focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 hover:not-disabled:bg-primary/80",destructive:"bg-destructive dark:bg-destructive/60 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 hover:not-disabled:bg-destructive/90 text-white",ghost:"hover:not-disabled:bg-secondary hover:not-disabled:text-secondary-foreground focus-visible:ring-ring/50 dark:hover:not-disabled:bg-secondary/50",link:"text-primary hover:not-disabled:underline focus-visible:ring-ring/50 underline-offset-4",outline:"border-input shadow-xs hover:not-disabled:bg-secondary hover:not-disabled:text-secondary-foreground focus-visible:ring-ring/50 focus-visible:border-ring aria-invalid:border-destructive dark:aria-invalid:border-destructive/70 hover:not-disabled:aria-invalid:border-destructive/60 focus-within:aria-invalid:ring-destructive/20 dark:focus-within:aria-invalid:ring-destructive/40 dark:bg-input/30 dark:hover:not-disabled:bg-input/50 hover:not-disabled:border-ring/60 border",secondary:"bg-secondary text-secondary-foreground hover:not-disabled:bg-secondary/80 focus-visible:ring-ring/50"}}});function Button({asChild:e=!1,children:r,className:t,size:i,type:a="button",variant:n,...s}){let o=e?react_slot_namespaceObject.Slot:"button";return e?(0,jsx_runtime_namespaceObject.jsx)(o,{className:buttonVariants({className:t,size:i,variant:n}),"data-slot":"button","data-variant":n,...s,children:r}):(0,jsx_runtime_namespaceObject.jsx)("button",{className:buttonVariants({className:t,size:i,variant:n}),"data-slot":"button","data-variant":n,type:a,...s,children:r})}for(var __webpack_i__ in exports.Button=__webpack_exports__.Button,exports.buttonVariants=__webpack_exports__.buttonVariants,__webpack_exports__)-1===["Button","buttonVariants"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
@@ -1,8 +1,10 @@
1
- import type { ComponentProps, JSX, ReactNode } from "react";
1
+ import type { ComponentProps, JSX } from "react";
2
2
  import type { VariantProps } from "@codefast/tailwind-variants";
3
3
  declare const buttonVariants: import("@codefast/tailwind-variants").VariantFunctionType<{
4
4
  size: {
5
+ "icon-sm": string;
5
6
  icon: string;
7
+ "icon-lg": string;
6
8
  sm: string;
7
9
  md: string;
8
10
  lg: string;
@@ -16,14 +18,11 @@ declare const buttonVariants: import("@codefast/tailwind-variants").VariantFunct
16
18
  secondary: string;
17
19
  };
18
20
  }, Record<string, never>>;
19
- interface ButtonProps extends Omit<ComponentProps<"button">, "prefix">, VariantProps<typeof buttonVariants> {
20
- loaderPosition?: "prefix" | "suffix";
21
- loading?: boolean;
22
- prefix?: ReactNode;
23
- spinner?: ReactNode;
24
- suffix?: ReactNode;
25
- }
26
- declare function Button({ children, className, disabled, loaderPosition, loading, prefix, size, spinner, suffix, variant, ...props }: ButtonProps): JSX.Element;
21
+ type ButtonProps = ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
22
+ asChild?: boolean;
23
+ type?: ComponentProps<"button">["type"];
24
+ };
25
+ declare function Button({ asChild, children, className, size, type, variant, ...props }: ButtonProps): JSX.Element;
27
26
  export { buttonVariants };
28
27
  export { Button };
29
28
  export type { ButtonProps };
@@ -1 +1 @@
1
- import{jsx as i,jsxs as e}from"react/jsx-runtime";import{Spinner as r}from"./spinner.js";import{tv as t}from"@codefast/tailwind-variants";let s=t({base:"focus-visible:ring-3 outline-hidden inline-flex shrink-0 select-none items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",defaultVariants:{size:"md",variant:"default"},variants:{size:{icon:"size-9",sm:"h-8 px-3 has-[>svg]:px-2.5",md:"h-9 px-4 has-[>svg]:px-3",lg:"h-10 px-6 has-[>svg]:px-4"},variant:{default:"bg-primary text-primary-foreground focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 hover:not-disabled:bg-primary/80",destructive:"bg-destructive dark:bg-destructive/60 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 hover:not-disabled:bg-destructive/90 text-white",ghost:"hover:not-disabled:bg-secondary hover:not-disabled:text-secondary-foreground focus-visible:ring-ring/50 dark:hover:not-disabled:bg-secondary/50",link:"text-primary hover:not-disabled:underline focus-visible:ring-ring/50 underline-offset-4",outline:"border-input shadow-xs hover:not-disabled:bg-secondary hover:not-disabled:text-secondary-foreground focus-visible:ring-ring/50 focus-visible:border-ring aria-invalid:border-destructive dark:aria-invalid:border-destructive/70 hover:not-disabled:aria-invalid:border-destructive/60 focus-within:aria-invalid:ring-destructive/20 dark:focus-within:aria-invalid:ring-destructive/40 dark:bg-input/30 dark:hover:not-disabled:bg-input/50 hover:not-disabled:border-ring/60 border",secondary:"bg-secondary text-secondary-foreground hover:not-disabled:bg-secondary/80 focus-visible:ring-ring/50"}}});function n({children:t,className:n,disabled:d,loaderPosition:a="prefix",loading:o,prefix:u,size:b,spinner:l,suffix:v,variant:c,...g}){return e("button",{className:s({className:n,size:b,variant:c}),"data-slot":"button","data-variant":c,disabled:o??d,type:"button",...g,children:[o&&"prefix"===a?l??i(r,{},"prefix"):u,t,o&&"suffix"===a?l??i(r,{},"suffix"):v]})}export{n as Button,s as buttonVariants};
1
+ import{jsx as i}from"react/jsx-runtime";import{tv as e}from"@codefast/tailwind-variants";import{Slot as r}from"@radix-ui/react-slot";let t=e({base:"focus-visible:ring-3 outline-hidden inline-flex shrink-0 select-none items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",defaultVariants:{size:"md",variant:"default"},variants:{size:{"icon-sm":"size-8",icon:"size-9","icon-lg":"size-10",sm:"h-8 px-3 has-[>svg]:px-2.5",md:"h-9 px-4 has-[>svg]:px-3",lg:"h-10 px-6 has-[>svg]:px-4"},variant:{default:"bg-primary text-primary-foreground focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 hover:not-disabled:bg-primary/80",destructive:"bg-destructive dark:bg-destructive/60 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 hover:not-disabled:bg-destructive/90 text-white",ghost:"hover:not-disabled:bg-secondary hover:not-disabled:text-secondary-foreground focus-visible:ring-ring/50 dark:hover:not-disabled:bg-secondary/50",link:"text-primary hover:not-disabled:underline focus-visible:ring-ring/50 underline-offset-4",outline:"border-input shadow-xs hover:not-disabled:bg-secondary hover:not-disabled:text-secondary-foreground focus-visible:ring-ring/50 focus-visible:border-ring aria-invalid:border-destructive dark:aria-invalid:border-destructive/70 hover:not-disabled:aria-invalid:border-destructive/60 focus-within:aria-invalid:ring-destructive/20 dark:focus-within:aria-invalid:ring-destructive/40 dark:bg-input/30 dark:hover:not-disabled:bg-input/50 hover:not-disabled:border-ring/60 border",secondary:"bg-secondary text-secondary-foreground hover:not-disabled:bg-secondary/80 focus-visible:ring-ring/50"}}});function s({asChild:e=!1,children:s,className:n,size:a,type:o="button",variant:d,...l}){return e?i(e?r:"button",{className:t({className:n,size:a,variant:d}),"data-slot":"button","data-variant":d,...l,children:s}):i("button",{className:t({className:n,size:a,variant:d}),"data-slot":"button","data-variant":d,type:o,...l,children:s})}export{s as Button,t as buttonVariants};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(a,{a:a}),a},__webpack_require__.d=(e,a)=>{for(var t in a)__webpack_require__.o(a,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CarouselPrevious:()=>CarouselPrevious,Carousel:()=>Carousel,createCarouselScope:()=>createCarouselScope,CarouselContent:()=>CarouselContent,CarouselItem:()=>CarouselItem,CarouselNext:()=>CarouselNext});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_embla_carousel_react_namespaceObject=require("embla-carousel-react");var external_embla_carousel_react_default=__webpack_require__.n(external_embla_carousel_react_namespaceObject);const external_lucide_react_namespaceObject=require("lucide-react"),external_react_namespaceObject=require("react"),external_button_cjs_namespaceObject=require("./button.cjs"),tailwind_variants_namespaceObject=require("@codefast/tailwind-variants"),react_context_namespaceObject=require("@radix-ui/react-context"),CAROUSEL_NAME="Carousel",[createCarouselContext,createCarouselScope]=(0,react_context_namespaceObject.createContextScope)(CAROUSEL_NAME),[CarouselContextProvider,useCarouselContext]=createCarouselContext(CAROUSEL_NAME);function Carousel({__scopeCarousel:e,children:a,className:t,opts:r,orientation:s,plugins:_,setApi:c,...o}){let[n,l]=external_embla_carousel_react_default()({...r,axis:"vertical"===s?"y":"x"},_),[u,i]=(0,external_react_namespaceObject.useState)(!1),[p,x]=(0,external_react_namespaceObject.useState)(!1),b=(0,external_react_namespaceObject.useCallback)(e=>{e&&(i(e.canScrollPrev()),x(e.canScrollNext()))},[]),m=(0,external_react_namespaceObject.useCallback)(()=>{l?.scrollPrev()},[l]),C=(0,external_react_namespaceObject.useCallback)(()=>{l?.scrollNext()},[l]),j=(0,external_react_namespaceObject.useCallback)(e=>{"ArrowLeft"===e.key?(e.preventDefault(),m()):"ArrowRight"===e.key&&(e.preventDefault(),C())},[m,C]);return(0,external_react_namespaceObject.useEffect)(()=>{l&&c&&c(l)},[l,c]),(0,external_react_namespaceObject.useEffect)(()=>{if(l)return queueMicrotask(()=>{b(l)}),l.on("reInit",b),l.on("select",b),()=>{l.off("select",b)}},[l,b]),(0,jsx_runtime_namespaceObject.jsx)(CarouselContextProvider,{api:l,canScrollNext:p,canScrollPrev:u,carouselRef:n,opts:r,orientation:s??(r?.axis==="y"?"vertical":"horizontal"),scope:e,scrollNext:C,scrollPrev:m,children:(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,tailwind_variants_namespaceObject.cn)("relative",t),"data-slot":"carousel",onKeyDownCapture:j,...o,children:a})})}const CAROUSEL_CONTENT_NAME="CarouselContent";function CarouselContent({__scopeCarousel:e,className:a,classNames:t,...r}){let{carouselRef:s,orientation:_}=useCarouselContext("CarouselContent",e);return(0,jsx_runtime_namespaceObject.jsx)("div",{ref:s,className:(0,tailwind_variants_namespaceObject.cn)("overflow-hidden",t?.wrapper),"data-slot":"carousel-content",children:(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,tailwind_variants_namespaceObject.cn)("flex","horizontal"===_?"-ml-4":"-mt-4 flex-col",t?.content,a),...r})})}const CAROUSEL_ITEM_NAME="CarouselItem";function CarouselItem({__scopeCarousel:e,className:a,...t}){let{orientation:r}=useCarouselContext("CarouselItem",e);return(0,jsx_runtime_namespaceObject.jsx)("div",{"aria-roledescription":"slide",className:(0,tailwind_variants_namespaceObject.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===r?"pl-4":"pt-4",a),"data-slot":"carousel-item",role:"group",...t})}const CAROUSEL_PREVIOUS_NAME="CarouselPrevious";function CarouselPrevious({__scopeCarousel:e,className:a,size:t="icon",variant:r="outline",...s}){let{canScrollPrev:_,orientation:c,scrollPrev:o}=useCarouselContext("CarouselPrevious",e);return(0,jsx_runtime_namespaceObject.jsx)(external_button_cjs_namespaceObject.Button,{"aria-label":"Previous slide",className:(0,tailwind_variants_namespaceObject.cn)("absolute size-8 shadow-none","horizontal"===c?"top-1/2 -left-12 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",a),"data-slot":"carousel-previous",disabled:!_,prefix:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ArrowLeftIcon,{}),size:t,variant:r,onClick:o,...s,children:(0,jsx_runtime_namespaceObject.jsx)("span",{className:"sr-only",children:"Previous slide"})})}const CAROUSEL_NEXT_NAME="CarouselNext";function CarouselNext({__scopeCarousel:e,className:a,size:t="icon",variant:r="outline",...s}){let{canScrollNext:_,orientation:c,scrollNext:o}=useCarouselContext("CarouselNext",e);return(0,jsx_runtime_namespaceObject.jsx)(external_button_cjs_namespaceObject.Button,{"aria-label":"Next slide",className:(0,tailwind_variants_namespaceObject.cn)("absolute size-8 shadow-none","horizontal"===c?"top-1/2 -right-12 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",a),"data-slot":"carousel-next",disabled:!_,prefix:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ArrowRightIcon,{}),size:t,variant:r,onClick:o,...s,children:(0,jsx_runtime_namespaceObject.jsx)("span",{className:"sr-only",children:"Next slide"})})}for(var __webpack_i__ in exports.Carousel=__webpack_exports__.Carousel,exports.CarouselContent=__webpack_exports__.CarouselContent,exports.CarouselItem=__webpack_exports__.CarouselItem,exports.CarouselNext=__webpack_exports__.CarouselNext,exports.CarouselPrevious=__webpack_exports__.CarouselPrevious,exports.createCarouselScope=__webpack_exports__.createCarouselScope,__webpack_exports__)-1===["Carousel","CarouselContent","CarouselItem","CarouselNext","CarouselPrevious","createCarouselScope"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
+ "use strict";const __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(a,{a:a}),a},__webpack_require__.d=(e,a)=>{for(var t in a)__webpack_require__.o(a,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CarouselPrevious:()=>CarouselPrevious,Carousel:()=>Carousel,createCarouselScope:()=>createCarouselScope,CarouselContent:()=>CarouselContent,CarouselItem:()=>CarouselItem,CarouselNext:()=>CarouselNext});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_embla_carousel_react_namespaceObject=require("embla-carousel-react");var external_embla_carousel_react_default=__webpack_require__.n(external_embla_carousel_react_namespaceObject);const external_lucide_react_namespaceObject=require("lucide-react"),external_react_namespaceObject=require("react"),external_button_cjs_namespaceObject=require("./button.cjs"),tailwind_variants_namespaceObject=require("@codefast/tailwind-variants"),react_context_namespaceObject=require("@radix-ui/react-context"),CAROUSEL_NAME="Carousel",[createCarouselContext,createCarouselScope]=(0,react_context_namespaceObject.createContextScope)(CAROUSEL_NAME),[CarouselContextProvider,useCarouselContext]=createCarouselContext(CAROUSEL_NAME);function Carousel({__scopeCarousel:e,children:a,className:t,opts:r,orientation:s,plugins:_,setApi:c,...o}){let[n,l]=external_embla_carousel_react_default()({...r,axis:"vertical"===s?"y":"x"},_),[u,i]=(0,external_react_namespaceObject.useState)(!1),[p,x]=(0,external_react_namespaceObject.useState)(!1),b=(0,external_react_namespaceObject.useCallback)(e=>{e&&(i(e.canScrollPrev()),x(e.canScrollNext()))},[]),m=(0,external_react_namespaceObject.useCallback)(()=>{l?.scrollPrev()},[l]),C=(0,external_react_namespaceObject.useCallback)(()=>{l?.scrollNext()},[l]),j=(0,external_react_namespaceObject.useCallback)(e=>{"ArrowLeft"===e.key?(e.preventDefault(),m()):"ArrowRight"===e.key&&(e.preventDefault(),C())},[m,C]);return(0,external_react_namespaceObject.useEffect)(()=>{l&&c&&c(l)},[l,c]),(0,external_react_namespaceObject.useEffect)(()=>{if(l)return queueMicrotask(()=>{b(l)}),l.on("reInit",b),l.on("select",b),()=>{l.off("select",b)}},[l,b]),(0,jsx_runtime_namespaceObject.jsx)(CarouselContextProvider,{api:l,canScrollNext:p,canScrollPrev:u,carouselRef:n,opts:r,orientation:s??(r?.axis==="y"?"vertical":"horizontal"),scope:e,scrollNext:C,scrollPrev:m,children:(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,tailwind_variants_namespaceObject.cn)("relative",t),"data-slot":"carousel",onKeyDownCapture:j,...o,children:a})})}const CAROUSEL_CONTENT_NAME="CarouselContent";function CarouselContent({__scopeCarousel:e,className:a,classNames:t,...r}){let{carouselRef:s,orientation:_}=useCarouselContext("CarouselContent",e);return(0,jsx_runtime_namespaceObject.jsx)("div",{ref:s,className:(0,tailwind_variants_namespaceObject.cn)("overflow-hidden",t?.wrapper),"data-slot":"carousel-content",children:(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,tailwind_variants_namespaceObject.cn)("flex","horizontal"===_?"-ml-4":"-mt-4 flex-col",t?.content,a),...r})})}const CAROUSEL_ITEM_NAME="CarouselItem";function CarouselItem({__scopeCarousel:e,className:a,...t}){let{orientation:r}=useCarouselContext("CarouselItem",e);return(0,jsx_runtime_namespaceObject.jsx)("div",{"aria-roledescription":"slide",className:(0,tailwind_variants_namespaceObject.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===r?"pl-4":"pt-4",a),"data-slot":"carousel-item",role:"group",...t})}const CAROUSEL_PREVIOUS_NAME="CarouselPrevious";function CarouselPrevious({__scopeCarousel:e,className:a,size:t="icon",variant:r="outline",...s}){let{canScrollPrev:_,orientation:c,scrollPrev:o}=useCarouselContext("CarouselPrevious",e);return(0,jsx_runtime_namespaceObject.jsxs)(external_button_cjs_namespaceObject.Button,{"aria-label":"Previous slide",className:(0,tailwind_variants_namespaceObject.cn)("absolute size-8 shadow-none","horizontal"===c?"top-1/2 -left-12 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",a),"data-slot":"carousel-previous",disabled:!_,size:t,variant:r,onClick:o,...s,children:[(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ArrowLeftIcon,{}),(0,jsx_runtime_namespaceObject.jsx)("span",{className:"sr-only",children:"Previous slide"})]})}const CAROUSEL_NEXT_NAME="CarouselNext";function CarouselNext({__scopeCarousel:e,className:a,size:t="icon",variant:r="outline",...s}){let{canScrollNext:_,orientation:c,scrollNext:o}=useCarouselContext("CarouselNext",e);return(0,jsx_runtime_namespaceObject.jsxs)(external_button_cjs_namespaceObject.Button,{"aria-label":"Next slide",className:(0,tailwind_variants_namespaceObject.cn)("absolute size-8 shadow-none","horizontal"===c?"top-1/2 -right-12 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",a),"data-slot":"carousel-next",disabled:!_,size:t,variant:r,onClick:o,...s,children:[(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ArrowRightIcon,{}),(0,jsx_runtime_namespaceObject.jsx)("span",{className:"sr-only",children:"Next slide"})]})}for(var __webpack_i__ in exports.Carousel=__webpack_exports__.Carousel,exports.CarouselContent=__webpack_exports__.CarouselContent,exports.CarouselItem=__webpack_exports__.CarouselItem,exports.CarouselNext=__webpack_exports__.CarouselNext,exports.CarouselPrevious=__webpack_exports__.CarouselPrevious,exports.createCarouselScope=__webpack_exports__.createCarouselScope,__webpack_exports__)-1===["Carousel","CarouselContent","CarouselItem","CarouselNext","CarouselPrevious","createCarouselScope"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import{jsx as e}from"react/jsx-runtime";import r from"embla-carousel-react";import{ArrowLeftIcon as t,ArrowRightIcon as o}from"lucide-react";import{useCallback as l,useEffect as a,useState as s}from"react";import{Button as i}from"./button.js";import{cn as n}from"@codefast/tailwind-variants";import{createContextScope as c}from"@radix-ui/react-context";let u="Carousel",[d,m]=c(u),[f,p]=d(u);function v({__scopeCarousel:t,children:o,className:i,opts:c,orientation:u,plugins:d,setApi:m,...p}){let[v,x]=r({...c,axis:"vertical"===u?"y":"x"},d),[h,C]=s(!1),[N,b]=s(!1),w=l(e=>{e&&(C(e.canScrollPrev()),b(e.canScrollNext()))},[]),y=l(()=>{x?.scrollPrev()},[x]),z=l(()=>{x?.scrollNext()},[x]),P=l(e=>{"ArrowLeft"===e.key?(e.preventDefault(),y()):"ArrowRight"===e.key&&(e.preventDefault(),z())},[y,z]);return a(()=>{x&&m&&m(x)},[x,m]),a(()=>{if(x)return queueMicrotask(()=>{w(x)}),x.on("reInit",w),x.on("select",w),()=>{x.off("select",w)}},[x,w]),e(f,{api:x,canScrollNext:N,canScrollPrev:h,carouselRef:v,opts:c,orientation:u??(c?.axis==="y"?"vertical":"horizontal"),scope:t,scrollNext:z,scrollPrev:y,children:e("div",{className:n("relative",i),"data-slot":"carousel",onKeyDownCapture:P,...p,children:o})})}function x({__scopeCarousel:r,className:t,classNames:o,...l}){let{carouselRef:a,orientation:s}=p("CarouselContent",r);return e("div",{ref:a,className:n("overflow-hidden",o?.wrapper),"data-slot":"carousel-content",children:e("div",{className:n("flex","horizontal"===s?"-ml-4":"-mt-4 flex-col",o?.content,t),...l})})}function h({__scopeCarousel:r,className:t,...o}){let{orientation:l}=p("CarouselItem",r);return e("div",{"aria-roledescription":"slide",className:n("min-w-0 shrink-0 grow-0 basis-full","horizontal"===l?"pl-4":"pt-4",t),"data-slot":"carousel-item",role:"group",...o})}function C({__scopeCarousel:r,className:o,size:l="icon",variant:a="outline",...s}){let{canScrollPrev:c,orientation:u,scrollPrev:d}=p("CarouselPrevious",r);return e(i,{"aria-label":"Previous slide",className:n("absolute size-8 shadow-none","horizontal"===u?"top-1/2 -left-12 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",o),"data-slot":"carousel-previous",disabled:!c,prefix:e(t,{}),size:l,variant:a,onClick:d,...s,children:e("span",{className:"sr-only",children:"Previous slide"})})}function N({__scopeCarousel:r,className:t,size:l="icon",variant:a="outline",...s}){let{canScrollNext:c,orientation:u,scrollNext:d}=p("CarouselNext",r);return e(i,{"aria-label":"Next slide",className:n("absolute size-8 shadow-none","horizontal"===u?"top-1/2 -right-12 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),"data-slot":"carousel-next",disabled:!c,prefix:e(o,{}),size:l,variant:a,onClick:d,...s,children:e("span",{className:"sr-only",children:"Next slide"})})}export{v as Carousel,x as CarouselContent,h as CarouselItem,N as CarouselNext,C as CarouselPrevious,m as createCarouselScope};
2
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import r from"embla-carousel-react";import{ArrowLeftIcon as o,ArrowRightIcon as l}from"lucide-react";import{useCallback as a,useEffect as s,useState as i}from"react";import{Button as n}from"./button.js";import{cn as c}from"@codefast/tailwind-variants";import{createContextScope as u}from"@radix-ui/react-context";let d="Carousel",[m,f]=u(d),[p,v]=m(d);function x({__scopeCarousel:t,children:o,className:l,opts:n,orientation:u,plugins:d,setApi:m,...f}){let[v,x]=r({...n,axis:"vertical"===u?"y":"x"},d),[h,C]=i(!1),[N,b]=i(!1),w=a(e=>{e&&(C(e.canScrollPrev()),b(e.canScrollNext()))},[]),y=a(()=>{x?.scrollPrev()},[x]),z=a(()=>{x?.scrollNext()},[x]),P=a(e=>{"ArrowLeft"===e.key?(e.preventDefault(),y()):"ArrowRight"===e.key&&(e.preventDefault(),z())},[y,z]);return s(()=>{x&&m&&m(x)},[x,m]),s(()=>{if(x)return queueMicrotask(()=>{w(x)}),x.on("reInit",w),x.on("select",w),()=>{x.off("select",w)}},[x,w]),e(p,{api:x,canScrollNext:N,canScrollPrev:h,carouselRef:v,opts:n,orientation:u??(n?.axis==="y"?"vertical":"horizontal"),scope:t,scrollNext:z,scrollPrev:y,children:e("div",{className:c("relative",l),"data-slot":"carousel",onKeyDownCapture:P,...f,children:o})})}function h({__scopeCarousel:t,className:r,classNames:o,...l}){let{carouselRef:a,orientation:s}=v("CarouselContent",t);return e("div",{ref:a,className:c("overflow-hidden",o?.wrapper),"data-slot":"carousel-content",children:e("div",{className:c("flex","horizontal"===s?"-ml-4":"-mt-4 flex-col",o?.content,r),...l})})}function C({__scopeCarousel:t,className:r,...o}){let{orientation:l}=v("CarouselItem",t);return e("div",{"aria-roledescription":"slide",className:c("min-w-0 shrink-0 grow-0 basis-full","horizontal"===l?"pl-4":"pt-4",r),"data-slot":"carousel-item",role:"group",...o})}function N({__scopeCarousel:r,className:l,size:a="icon",variant:s="outline",...i}){let{canScrollPrev:u,orientation:d,scrollPrev:m}=v("CarouselPrevious",r);return t(n,{"aria-label":"Previous slide",className:c("absolute size-8 shadow-none","horizontal"===d?"top-1/2 -left-12 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",l),"data-slot":"carousel-previous",disabled:!u,size:a,variant:s,onClick:m,...i,children:[e(o,{}),e("span",{className:"sr-only",children:"Previous slide"})]})}function b({__scopeCarousel:r,className:o,size:a="icon",variant:s="outline",...i}){let{canScrollNext:u,orientation:d,scrollNext:m}=v("CarouselNext",r);return t(n,{"aria-label":"Next slide",className:c("absolute size-8 shadow-none","horizontal"===d?"top-1/2 -right-12 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",o),"data-slot":"carousel-next",disabled:!u,size:a,variant:s,onClick:m,...i,children:[e(l,{}),e("span",{className:"sr-only",children:"Next slide"})]})}export{x as Carousel,h as CarouselContent,C as CarouselItem,b as CarouselNext,N as CarouselPrevious,f as createCarouselScope};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var t in a)__webpack_require__.o(a,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DialogDescription:()=>DialogDescription,DialogTitle:()=>DialogTitle,DialogHeader:()=>DialogHeader,DialogBody:()=>DialogBody,DialogClose:()=>DialogClose,DialogTrigger:()=>DialogTrigger,DialogContent:()=>DialogContent,Dialog:()=>Dialog,DialogFooter:()=>DialogFooter});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_lucide_react_namespaceObject=require("lucide-react"),external_button_cjs_namespaceObject=require("./button.cjs"),tailwind_variants_namespaceObject=require("@codefast/tailwind-variants"),react_dialog_namespaceObject=require("@radix-ui/react-dialog");function Dialog({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Root,{"data-slot":"dialog",...e})}function DialogTrigger({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Trigger,{"data-slot":"dialog-trigger",...e})}function DialogContent({children:e,className:a,classNames:t,...o}){return(0,jsx_runtime_namespaceObject.jsxs)(react_dialog_namespaceObject.Portal,{children:[(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Overlay,{className:(0,tailwind_variants_namespaceObject.cn)("bg-popover-overlay data-[state=open]:fade-in-0 data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=closed]:animate-out ease-ui fixed inset-0 z-50",t?.overlay),"data-slot":"dialog-overlay"}),(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Content,{className:(0,tailwind_variants_namespaceObject.cn)("data-[state=open]:animate-in max-sm:data-[state=open]:animation-duration-500 max-sm:data-[state=open]:slide-in-from-bottom sm:data-[state=open]:fade-in-0 sm:data-[state=open]:zoom-in-95 data-[state=closed]:animate-out max-sm:data-[state=closed]:animation-duration-500 max-sm:data-[state=closed]:slide-out-to-bottom sm:data-[state=closed]:fade-out-0 sm:data-[state=closed]:zoom-out-95 ease-ui fixed inset-0 z-50 grid grid-rows-[1fr_auto] justify-items-center overflow-auto sm:grid-rows-[1fr_auto_3fr] sm:p-4",t?.wrapper),"data-slot":"dialog-content-wrapper",...o,children:(0,jsx_runtime_namespaceObject.jsxs)("div",{className:(0,tailwind_variants_namespaceObject.cn)("bg-popover text-popover-foreground relative row-start-2 flex w-full flex-col rounded-t-2xl border shadow-lg sm:max-w-lg sm:rounded-2xl",t?.content,a),"data-slot":"dialog-content",children:[e,(0,jsx_runtime_namespaceObject.jsxs)(react_dialog_namespaceObject.Close,{className:(0,external_button_cjs_namespaceObject.buttonVariants)({className:["absolute top-2.5 right-2.5 size-7",t?.close],size:"icon",variant:"ghost"}),"data-slot":"dialog-close",children:[(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.XIcon,{className:"size-4"}),(0,jsx_runtime_namespaceObject.jsx)("span",{className:"sr-only",children:"Close"})]})]})})]})}function DialogHeader({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("header",{className:(0,tailwind_variants_namespaceObject.cn)("flex shrink-0 flex-col gap-1.5 px-6 pt-6 pb-2 text-center sm:text-left",e),"data-slot":"dialog-header",...a})}function DialogBody({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("main",{className:(0,tailwind_variants_namespaceObject.cn)("overflow-auto px-6 py-2",e),"data-slot":"dialog-body",...a})}function DialogFooter({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("footer",{className:(0,tailwind_variants_namespaceObject.cn)("flex shrink-0 flex-col-reverse gap-2 px-6 pt-2 pb-6 sm:flex-row sm:justify-end",e),"data-slot":"dialog-footer",...a})}function DialogTitle({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Title,{className:(0,tailwind_variants_namespaceObject.cn)("text-lg leading-none font-semibold tracking-tight",e),"data-slot":"dialog-title",...a})}function DialogDescription({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Description,{className:(0,tailwind_variants_namespaceObject.cn)("text-muted-foreground text-sm",e),"data-slot":"dialog-description",...a})}function DialogClose({className:e,size:a,variant:t="outline",...o}){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Close,{className:(0,external_button_cjs_namespaceObject.buttonVariants)({className:e,size:a,variant:t}),"data-slot":"dialog-close",...o})}for(var __webpack_i__ in exports.Dialog=__webpack_exports__.Dialog,exports.DialogBody=__webpack_exports__.DialogBody,exports.DialogClose=__webpack_exports__.DialogClose,exports.DialogContent=__webpack_exports__.DialogContent,exports.DialogDescription=__webpack_exports__.DialogDescription,exports.DialogFooter=__webpack_exports__.DialogFooter,exports.DialogHeader=__webpack_exports__.DialogHeader,exports.DialogTitle=__webpack_exports__.DialogTitle,exports.DialogTrigger=__webpack_exports__.DialogTrigger,__webpack_exports__)-1===["Dialog","DialogBody","DialogClose","DialogContent","DialogDescription","DialogFooter","DialogHeader","DialogTitle","DialogTrigger"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
+ "use strict";const __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var t in a)__webpack_require__.o(a,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DialogDescription:()=>DialogDescription,DialogTitle:()=>DialogTitle,DialogHeader:()=>DialogHeader,DialogBody:()=>DialogBody,DialogClose:()=>DialogClose,DialogTrigger:()=>DialogTrigger,DialogContent:()=>DialogContent,Dialog:()=>Dialog,DialogFooter:()=>DialogFooter});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_lucide_react_namespaceObject=require("lucide-react"),external_button_cjs_namespaceObject=require("./button.cjs"),tailwind_variants_namespaceObject=require("@codefast/tailwind-variants"),react_dialog_namespaceObject=require("@radix-ui/react-dialog");function Dialog({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Root,{"data-slot":"dialog",...e})}function DialogTrigger({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Trigger,{"data-slot":"dialog-trigger",...e})}function DialogContent({children:e,className:a,classNames:t,...o}){return(0,jsx_runtime_namespaceObject.jsxs)(react_dialog_namespaceObject.Portal,{children:[(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Overlay,{className:(0,tailwind_variants_namespaceObject.cn)("data-[state=open]:fade-in-0 data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=closed]:animate-out ease-ui fixed inset-0 z-50 bg-black/50",t?.overlay),"data-slot":"dialog-overlay"}),(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Content,{className:(0,tailwind_variants_namespaceObject.cn)("data-[state=open]:animate-in max-sm:data-[state=open]:animation-duration-500 max-sm:data-[state=open]:slide-in-from-bottom sm:data-[state=open]:fade-in-0 sm:data-[state=open]:zoom-in-95 data-[state=closed]:animate-out max-sm:data-[state=closed]:animation-duration-500 max-sm:data-[state=closed]:slide-out-to-bottom sm:data-[state=closed]:fade-out-0 sm:data-[state=closed]:zoom-out-95 ease-ui fixed inset-0 z-50 grid grid-rows-[1fr_auto] justify-items-center overflow-auto sm:grid-rows-[1fr_auto_3fr] sm:p-4",t?.wrapper),"data-slot":"dialog-content-wrapper",...o,children:(0,jsx_runtime_namespaceObject.jsxs)("div",{className:(0,tailwind_variants_namespaceObject.cn)("bg-popover text-popover-foreground relative row-start-2 flex w-full flex-col rounded-t-2xl border shadow-lg sm:max-w-lg sm:rounded-2xl",t?.content,a),"data-slot":"dialog-content",children:[e,(0,jsx_runtime_namespaceObject.jsxs)(react_dialog_namespaceObject.Close,{className:(0,external_button_cjs_namespaceObject.buttonVariants)({className:["absolute top-2.5 right-2.5 size-7",t?.close],size:"icon",variant:"ghost"}),"data-slot":"dialog-close",children:[(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.XIcon,{className:"size-4"}),(0,jsx_runtime_namespaceObject.jsx)("span",{className:"sr-only",children:"Close"})]})]})})]})}function DialogHeader({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("header",{className:(0,tailwind_variants_namespaceObject.cn)("flex shrink-0 flex-col gap-1.5 px-6 pt-6 pb-2 text-center sm:text-left",e),"data-slot":"dialog-header",...a})}function DialogBody({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("main",{className:(0,tailwind_variants_namespaceObject.cn)("overflow-auto px-6 py-2",e),"data-slot":"dialog-body",...a})}function DialogFooter({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("footer",{className:(0,tailwind_variants_namespaceObject.cn)("flex shrink-0 flex-col-reverse gap-2 px-6 pt-2 pb-6 sm:flex-row sm:justify-end",e),"data-slot":"dialog-footer",...a})}function DialogTitle({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Title,{className:(0,tailwind_variants_namespaceObject.cn)("text-lg leading-none font-semibold tracking-tight",e),"data-slot":"dialog-title",...a})}function DialogDescription({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Description,{className:(0,tailwind_variants_namespaceObject.cn)("text-muted-foreground text-sm",e),"data-slot":"dialog-description",...a})}function DialogClose({className:e,size:a,variant:t="outline",...o}){return(0,jsx_runtime_namespaceObject.jsx)(react_dialog_namespaceObject.Close,{className:(0,external_button_cjs_namespaceObject.buttonVariants)({className:e,size:a,variant:t}),"data-slot":"dialog-close",...o})}for(var __webpack_i__ in exports.Dialog=__webpack_exports__.Dialog,exports.DialogBody=__webpack_exports__.DialogBody,exports.DialogClose=__webpack_exports__.DialogClose,exports.DialogContent=__webpack_exports__.DialogContent,exports.DialogDescription=__webpack_exports__.DialogDescription,exports.DialogFooter=__webpack_exports__.DialogFooter,exports.DialogHeader=__webpack_exports__.DialogHeader,exports.DialogTitle=__webpack_exports__.DialogTitle,exports.DialogTrigger=__webpack_exports__.DialogTrigger,__webpack_exports__)-1===["Dialog","DialogBody","DialogClose","DialogContent","DialogDescription","DialogFooter","DialogHeader","DialogTitle","DialogTrigger"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import{jsx as t,jsxs as a}from"react/jsx-runtime";import{XIcon as e}from"lucide-react";import{buttonVariants as o}from"./button.js";import{cn as s}from"@codefast/tailwind-variants";import{Close as i,Content as l,Description as r,Overlay as n,Portal as d,Root as m,Title as c,Trigger as u}from"@radix-ui/react-dialog";function f({...a}){return t(m,{"data-slot":"dialog",...a})}function g({...a}){return t(u,{"data-slot":"dialog-trigger",...a})}function p({children:r,className:m,classNames:c,...u}){return a(d,{children:[t(n,{className:s("bg-popover-overlay data-[state=open]:fade-in-0 data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=closed]:animate-out ease-ui fixed inset-0 z-50",c?.overlay),"data-slot":"dialog-overlay"}),t(l,{className:s("data-[state=open]:animate-in max-sm:data-[state=open]:animation-duration-500 max-sm:data-[state=open]:slide-in-from-bottom sm:data-[state=open]:fade-in-0 sm:data-[state=open]:zoom-in-95 data-[state=closed]:animate-out max-sm:data-[state=closed]:animation-duration-500 max-sm:data-[state=closed]:slide-out-to-bottom sm:data-[state=closed]:fade-out-0 sm:data-[state=closed]:zoom-out-95 ease-ui fixed inset-0 z-50 grid grid-rows-[1fr_auto] justify-items-center overflow-auto sm:grid-rows-[1fr_auto_3fr] sm:p-4",c?.wrapper),"data-slot":"dialog-content-wrapper",...u,children:a("div",{className:s("bg-popover text-popover-foreground relative row-start-2 flex w-full flex-col rounded-t-2xl border shadow-lg sm:max-w-lg sm:rounded-2xl",c?.content,m),"data-slot":"dialog-content",children:[r,a(i,{className:o({className:["absolute top-2.5 right-2.5 size-7",c?.close],size:"icon",variant:"ghost"}),"data-slot":"dialog-close",children:[t(e,{className:"size-4"}),t("span",{className:"sr-only",children:"Close"})]})]})})]})}function x({className:a,...e}){return t("header",{className:s("flex shrink-0 flex-col gap-1.5 px-6 pt-6 pb-2 text-center sm:text-left",a),"data-slot":"dialog-header",...e})}function h({className:a,...e}){return t("main",{className:s("overflow-auto px-6 py-2",a),"data-slot":"dialog-body",...e})}function v({className:a,...e}){return t("footer",{className:s("flex shrink-0 flex-col-reverse gap-2 px-6 pt-2 pb-6 sm:flex-row sm:justify-end",a),"data-slot":"dialog-footer",...e})}function N({className:a,...e}){return t(c,{className:s("text-lg leading-none font-semibold tracking-tight",a),"data-slot":"dialog-title",...e})}function w({className:a,...e}){return t(r,{className:s("text-muted-foreground text-sm",a),"data-slot":"dialog-description",...e})}function b({className:a,size:e,variant:s="outline",...l}){return t(i,{className:o({className:a,size:e,variant:s}),"data-slot":"dialog-close",...l})}export{f as Dialog,h as DialogBody,b as DialogClose,p as DialogContent,w as DialogDescription,v as DialogFooter,x as DialogHeader,N as DialogTitle,g as DialogTrigger};
2
+ import{jsx as t,jsxs as a}from"react/jsx-runtime";import{XIcon as e}from"lucide-react";import{buttonVariants as o}from"./button.js";import{cn as s}from"@codefast/tailwind-variants";import{Close as i,Content as l,Description as r,Overlay as n,Portal as d,Root as m,Title as c,Trigger as u}from"@radix-ui/react-dialog";function f({...a}){return t(m,{"data-slot":"dialog",...a})}function g({...a}){return t(u,{"data-slot":"dialog-trigger",...a})}function p({children:r,className:m,classNames:c,...u}){return a(d,{children:[t(n,{className:s("data-[state=open]:fade-in-0 data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=closed]:animate-out ease-ui fixed inset-0 z-50 bg-black/50",c?.overlay),"data-slot":"dialog-overlay"}),t(l,{className:s("data-[state=open]:animate-in max-sm:data-[state=open]:animation-duration-500 max-sm:data-[state=open]:slide-in-from-bottom sm:data-[state=open]:fade-in-0 sm:data-[state=open]:zoom-in-95 data-[state=closed]:animate-out max-sm:data-[state=closed]:animation-duration-500 max-sm:data-[state=closed]:slide-out-to-bottom sm:data-[state=closed]:fade-out-0 sm:data-[state=closed]:zoom-out-95 ease-ui fixed inset-0 z-50 grid grid-rows-[1fr_auto] justify-items-center overflow-auto sm:grid-rows-[1fr_auto_3fr] sm:p-4",c?.wrapper),"data-slot":"dialog-content-wrapper",...u,children:a("div",{className:s("bg-popover text-popover-foreground relative row-start-2 flex w-full flex-col rounded-t-2xl border shadow-lg sm:max-w-lg sm:rounded-2xl",c?.content,m),"data-slot":"dialog-content",children:[r,a(i,{className:o({className:["absolute top-2.5 right-2.5 size-7",c?.close],size:"icon",variant:"ghost"}),"data-slot":"dialog-close",children:[t(e,{className:"size-4"}),t("span",{className:"sr-only",children:"Close"})]})]})})]})}function x({className:a,...e}){return t("header",{className:s("flex shrink-0 flex-col gap-1.5 px-6 pt-6 pb-2 text-center sm:text-left",a),"data-slot":"dialog-header",...e})}function h({className:a,...e}){return t("main",{className:s("overflow-auto px-6 py-2",a),"data-slot":"dialog-body",...e})}function N({className:a,...e}){return t("footer",{className:s("flex shrink-0 flex-col-reverse gap-2 px-6 pt-2 pb-6 sm:flex-row sm:justify-end",a),"data-slot":"dialog-footer",...e})}function b({className:a,...e}){return t(c,{className:s("text-lg leading-none font-semibold tracking-tight",a),"data-slot":"dialog-title",...e})}function w({className:a,...e}){return t(r,{className:s("text-muted-foreground text-sm",a),"data-slot":"dialog-description",...e})}function v({className:a,size:e,variant:s="outline",...l}){return t(i,{className:o({className:a,size:e,variant:s}),"data-slot":"dialog-close",...l})}export{f as Dialog,h as DialogBody,v as DialogClose,p as DialogContent,w as DialogDescription,N as DialogFooter,x as DialogHeader,b as DialogTitle,g as DialogTrigger};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,r)=>{for(var a in r)__webpack_require__.o(r,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:r[a]})},__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DrawerClose:()=>DrawerClose,DrawerTrigger:()=>DrawerTrigger,Drawer:()=>Drawer,DrawerFooter:()=>DrawerFooter,DrawerHeader:()=>DrawerHeader,DrawerContent:()=>DrawerContent,DrawerDescription:()=>DrawerDescription,DrawerTitle:()=>DrawerTitle,DrawerBody:()=>DrawerBody});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_vaul_namespaceObject=require("vaul"),external_button_cjs_namespaceObject=require("./button.cjs"),tailwind_variants_namespaceObject=require("@codefast/tailwind-variants");function Drawer({shouldScaleBackground:e=!0,...r}){return(0,jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Root,{"data-slot":"drawer",shouldScaleBackground:e,...r})}function DrawerTrigger({...e}){return(0,jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Trigger,{"data-slot":"drawer-trigger",...e})}function DrawerContent({children:e,className:r,classNames:a,...t}){return(0,jsx_runtime_namespaceObject.jsxs)(external_vaul_namespaceObject.Drawer.Portal,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Overlay,{className:(0,tailwind_variants_namespaceObject.cn)("bg-popover-overlay fixed inset-0 z-50",a?.overlay),"data-slot":"drawer-overlay"}),(0,jsx_runtime_namespaceObject.jsxs)(external_vaul_namespaceObject.Drawer.Content,{className:(0,tailwind_variants_namespaceObject.cn)("group/drawer-content bg-background fixed z-50 flex h-auto flex-col data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-2xl data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-2xl data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm",a?.content,r),"data-slot":"drawer-content",...t,children:[(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,tailwind_variants_namespaceObject.cn)("bg-muted mx-auto mt-4 hidden h-1.5 w-12 shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block",a?.handle)}),e]})]})}function DrawerHeader({className:e,...r}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,tailwind_variants_namespaceObject.cn)("flex flex-col gap-1.5 p-4",e),"data-slot":"drawer-header",...r})}function DrawerBody({className:e,...r}){return(0,jsx_runtime_namespaceObject.jsx)("main",{className:(0,tailwind_variants_namespaceObject.cn)("overflow-auto px-4 py-2",e),"data-slot":"drawer-body",...r})}function DrawerFooter({className:e,...r}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,tailwind_variants_namespaceObject.cn)("mt-auto flex flex-col gap-2 p-4",e),"data-slot":"drawer-footer",...r})}function DrawerTitle({className:e,...r}){return(0,jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Title,{className:(0,tailwind_variants_namespaceObject.cn)("text-foreground font-semibold",e),"data-slot":"drawer-title",...r})}function DrawerDescription({className:e,...r}){return(0,jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Description,{className:(0,tailwind_variants_namespaceObject.cn)("text-muted-foreground text-sm",e),"data-slot":"drawer-description",...r})}function DrawerClose({className:e,size:r,variant:a="outline",...t}){return(0,jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Close,{className:(0,external_button_cjs_namespaceObject.buttonVariants)({className:e,size:r,variant:a}),"data-slot":"drawer-close",...t})}for(var __webpack_i__ in exports.Drawer=__webpack_exports__.Drawer,exports.DrawerBody=__webpack_exports__.DrawerBody,exports.DrawerClose=__webpack_exports__.DrawerClose,exports.DrawerContent=__webpack_exports__.DrawerContent,exports.DrawerDescription=__webpack_exports__.DrawerDescription,exports.DrawerFooter=__webpack_exports__.DrawerFooter,exports.DrawerHeader=__webpack_exports__.DrawerHeader,exports.DrawerTitle=__webpack_exports__.DrawerTitle,exports.DrawerTrigger=__webpack_exports__.DrawerTrigger,__webpack_exports__)-1===["Drawer","DrawerBody","DrawerClose","DrawerContent","DrawerDescription","DrawerFooter","DrawerHeader","DrawerTitle","DrawerTrigger"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
+ "use strict";const __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,r)=>{for(var a in r)__webpack_require__.o(r,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:r[a]})},__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DrawerClose:()=>DrawerClose,DrawerTrigger:()=>DrawerTrigger,Drawer:()=>Drawer,DrawerFooter:()=>DrawerFooter,DrawerHeader:()=>DrawerHeader,DrawerContent:()=>DrawerContent,DrawerDescription:()=>DrawerDescription,DrawerTitle:()=>DrawerTitle,DrawerBody:()=>DrawerBody});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_vaul_namespaceObject=require("vaul"),external_button_cjs_namespaceObject=require("./button.cjs"),tailwind_variants_namespaceObject=require("@codefast/tailwind-variants");function Drawer({shouldScaleBackground:e=!0,...r}){return(0,jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Root,{"data-slot":"drawer",shouldScaleBackground:e,...r})}function DrawerTrigger({...e}){return(0,jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Trigger,{"data-slot":"drawer-trigger",...e})}function DrawerContent({children:e,className:r,classNames:a,...t}){return(0,jsx_runtime_namespaceObject.jsxs)(external_vaul_namespaceObject.Drawer.Portal,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Overlay,{className:(0,tailwind_variants_namespaceObject.cn)("fixed inset-0 z-50 bg-black/50",a?.overlay),"data-slot":"drawer-overlay"}),(0,jsx_runtime_namespaceObject.jsxs)(external_vaul_namespaceObject.Drawer.Content,{className:(0,tailwind_variants_namespaceObject.cn)("group/drawer-content bg-background fixed z-50 flex h-auto flex-col data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-2xl data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-2xl data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm",a?.content,r),"data-slot":"drawer-content",...t,children:[(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,tailwind_variants_namespaceObject.cn)("bg-muted mx-auto mt-4 hidden h-1.5 w-12 shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block",a?.handle)}),e]})]})}function DrawerHeader({className:e,...r}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,tailwind_variants_namespaceObject.cn)("flex flex-col gap-1.5 p-4",e),"data-slot":"drawer-header",...r})}function DrawerBody({className:e,...r}){return(0,jsx_runtime_namespaceObject.jsx)("main",{className:(0,tailwind_variants_namespaceObject.cn)("overflow-auto px-4 py-2",e),"data-slot":"drawer-body",...r})}function DrawerFooter({className:e,...r}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,tailwind_variants_namespaceObject.cn)("mt-auto flex flex-col gap-2 p-4",e),"data-slot":"drawer-footer",...r})}function DrawerTitle({className:e,...r}){return(0,jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Title,{className:(0,tailwind_variants_namespaceObject.cn)("text-foreground font-semibold",e),"data-slot":"drawer-title",...r})}function DrawerDescription({className:e,...r}){return(0,jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Description,{className:(0,tailwind_variants_namespaceObject.cn)("text-muted-foreground text-sm",e),"data-slot":"drawer-description",...r})}function DrawerClose({className:e,size:r,variant:a="outline",...t}){return(0,jsx_runtime_namespaceObject.jsx)(external_vaul_namespaceObject.Drawer.Close,{className:(0,external_button_cjs_namespaceObject.buttonVariants)({className:e,size:r,variant:a}),"data-slot":"drawer-close",...t})}for(var __webpack_i__ in exports.Drawer=__webpack_exports__.Drawer,exports.DrawerBody=__webpack_exports__.DrawerBody,exports.DrawerClose=__webpack_exports__.DrawerClose,exports.DrawerContent=__webpack_exports__.DrawerContent,exports.DrawerDescription=__webpack_exports__.DrawerDescription,exports.DrawerFooter=__webpack_exports__.DrawerFooter,exports.DrawerHeader=__webpack_exports__.DrawerHeader,exports.DrawerTitle=__webpack_exports__.DrawerTitle,exports.DrawerTrigger=__webpack_exports__.DrawerTrigger,__webpack_exports__)-1===["Drawer","DrawerBody","DrawerClose","DrawerContent","DrawerDescription","DrawerFooter","DrawerHeader","DrawerTitle","DrawerTrigger"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import{jsx as r,jsxs as a}from"react/jsx-runtime";import{Drawer as t}from"vaul";import{buttonVariants as e}from"./button.js";import{cn as o}from"@codefast/tailwind-variants";function d({shouldScaleBackground:a=!0,...e}){return r(t.Root,{"data-slot":"drawer",shouldScaleBackground:a,...e})}function i({...a}){return r(t.Trigger,{"data-slot":"drawer-trigger",...a})}function n({children:e,className:d,classNames:i,...n}){return a(t.Portal,{children:[r(t.Overlay,{className:o("bg-popover-overlay fixed inset-0 z-50",i?.overlay),"data-slot":"drawer-overlay"}),a(t.Content,{className:o("group/drawer-content bg-background fixed z-50 flex h-auto flex-col data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-2xl data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-2xl data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm",i?.content,d),"data-slot":"drawer-content",...n,children:[r("div",{className:o("bg-muted mx-auto mt-4 hidden h-1.5 w-12 shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block",i?.handle)}),e]})]})}function l({className:a,...t}){return r("div",{className:o("flex flex-col gap-1.5 p-4",a),"data-slot":"drawer-header",...t})}function u({className:a,...t}){return r("main",{className:o("overflow-auto px-4 py-2",a),"data-slot":"drawer-body",...t})}function c({className:a,...t}){return r("div",{className:o("mt-auto flex flex-col gap-2 p-4",a),"data-slot":"drawer-footer",...t})}function s({className:a,...e}){return r(t.Title,{className:o("text-foreground font-semibold",a),"data-slot":"drawer-title",...e})}function w({className:a,...e}){return r(t.Description,{className:o("text-muted-foreground text-sm",a),"data-slot":"drawer-description",...e})}function m({className:a,size:o,variant:d="outline",...i}){return r(t.Close,{className:e({className:a,size:o,variant:d}),"data-slot":"drawer-close",...i})}export{d as Drawer,u as DrawerBody,m as DrawerClose,n as DrawerContent,w as DrawerDescription,c as DrawerFooter,l as DrawerHeader,s as DrawerTitle,i as DrawerTrigger};
2
+ import{jsx as r,jsxs as a}from"react/jsx-runtime";import{Drawer as t}from"vaul";import{buttonVariants as e}from"./button.js";import{cn as o}from"@codefast/tailwind-variants";function d({shouldScaleBackground:a=!0,...e}){return r(t.Root,{"data-slot":"drawer",shouldScaleBackground:a,...e})}function i({...a}){return r(t.Trigger,{"data-slot":"drawer-trigger",...a})}function n({children:e,className:d,classNames:i,...n}){return a(t.Portal,{children:[r(t.Overlay,{className:o("fixed inset-0 z-50 bg-black/50",i?.overlay),"data-slot":"drawer-overlay"}),a(t.Content,{className:o("group/drawer-content bg-background fixed z-50 flex h-auto flex-col data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-2xl data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-2xl data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm",i?.content,d),"data-slot":"drawer-content",...n,children:[r("div",{className:o("bg-muted mx-auto mt-4 hidden h-1.5 w-12 shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block",i?.handle)}),e]})]})}function l({className:a,...t}){return r("div",{className:o("flex flex-col gap-1.5 p-4",a),"data-slot":"drawer-header",...t})}function u({className:a,...t}){return r("main",{className:o("overflow-auto px-4 py-2",a),"data-slot":"drawer-body",...t})}function c({className:a,...t}){return r("div",{className:o("mt-auto flex flex-col gap-2 p-4",a),"data-slot":"drawer-footer",...t})}function s({className:a,...e}){return r(t.Title,{className:o("text-foreground font-semibold",a),"data-slot":"drawer-title",...e})}function w({className:a,...e}){return r(t.Description,{className:o("text-muted-foreground text-sm",a),"data-slot":"drawer-description",...e})}function m({className:a,size:o,variant:d="outline",...i}){return r(t.Close,{className:e({className:a,size:o,variant:d}),"data-slot":"drawer-close",...i})}export{d as Drawer,u as DrawerBody,m as DrawerClose,n as DrawerContent,w as DrawerDescription,c as DrawerFooter,l as DrawerHeader,s as DrawerTitle,i as DrawerTrigger};
@@ -0,0 +1 @@
1
+ "use strict";const __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var a in t)__webpack_require__.o(t,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{EmptyTitle:()=>EmptyTitle,emptyMediaVariants:()=>emptyMediaVariants,EmptyHeader:()=>EmptyHeader,Empty:()=>Empty,EmptyContent:()=>EmptyContent,EmptyDescription:()=>EmptyDescription,EmptyMedia:()=>EmptyMedia});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),tailwind_variants_namespaceObject=require("@codefast/tailwind-variants"),emptyMediaVariants=(0,tailwind_variants_namespaceObject.tv)({base:"mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",defaultVariants:{variant:"default"},variants:{variant:{default:"bg-transparent",icon:"bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-xl [&_svg:not([class*='size-'])]:size-6"}}});function Empty({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,tailwind_variants_namespaceObject.cn)("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-xl border-dashed p-6 text-center text-balance md:p-12",e),"data-slot":"empty",...t})}function EmptyHeader({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,tailwind_variants_namespaceObject.cn)("flex max-w-sm flex-col items-center gap-2 text-center",e),"data-slot":"empty-header",...t})}function EmptyMedia({className:e,variant:t="default",...a}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:emptyMediaVariants({className:e,variant:t}),"data-slot":"empty-icon","data-variant":t,...a})}function EmptyTitle({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,tailwind_variants_namespaceObject.cn)("text-lg font-medium tracking-tight",e),"data-slot":"empty-title",...t})}function EmptyDescription({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("p",{className:(0,tailwind_variants_namespaceObject.cn)("text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4",e),"data-slot":"empty-description",...t})}function EmptyContent({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,tailwind_variants_namespaceObject.cn)("flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance",e),"data-slot":"empty-content",...t})}for(var __webpack_i__ in exports.Empty=__webpack_exports__.Empty,exports.EmptyContent=__webpack_exports__.EmptyContent,exports.EmptyDescription=__webpack_exports__.EmptyDescription,exports.EmptyHeader=__webpack_exports__.EmptyHeader,exports.EmptyMedia=__webpack_exports__.EmptyMedia,exports.EmptyTitle=__webpack_exports__.EmptyTitle,exports.emptyMediaVariants=__webpack_exports__.emptyMediaVariants,__webpack_exports__)-1===["Empty","EmptyContent","EmptyDescription","EmptyHeader","EmptyMedia","EmptyTitle","emptyMediaVariants"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
@@ -0,0 +1,22 @@
1
+ import type { ComponentProps, JSX } from "react";
2
+ import type { VariantProps } from "@codefast/tailwind-variants";
3
+ declare const emptyMediaVariants: import("@codefast/tailwind-variants").VariantFunctionType<{
4
+ variant: {
5
+ default: string;
6
+ icon: string;
7
+ };
8
+ }, Record<string, never>>;
9
+ type EmptyProps = ComponentProps<"div">;
10
+ declare function Empty({ className, ...props }: EmptyProps): JSX.Element;
11
+ type EmptyHeaderProps = ComponentProps<"div">;
12
+ declare function EmptyHeader({ className, ...props }: EmptyHeaderProps): JSX.Element;
13
+ type EmptyMediaProps = ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>;
14
+ declare function EmptyMedia({ className, variant, ...props }: EmptyMediaProps): JSX.Element;
15
+ type EmptyTitleProps = ComponentProps<"div">;
16
+ declare function EmptyTitle({ className, ...props }: EmptyTitleProps): JSX.Element;
17
+ type EmptyDescriptionProps = ComponentProps<"p">;
18
+ declare function EmptyDescription({ className, ...props }: EmptyDescriptionProps): JSX.Element;
19
+ type EmptyContentProps = ComponentProps<"div">;
20
+ declare function EmptyContent({ className, ...props }: EmptyContentProps): JSX.Element;
21
+ export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, emptyMediaVariants, EmptyTitle, };
22
+ export type { EmptyContentProps, EmptyDescriptionProps, EmptyHeaderProps, EmptyMediaProps, EmptyProps, EmptyTitleProps, };
@@ -0,0 +1 @@
1
+ import{jsx as t}from"react/jsx-runtime";import{cn as e,tv as a}from"@codefast/tailwind-variants";let n=a({base:"mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",defaultVariants:{variant:"default"},variants:{variant:{default:"bg-transparent",icon:"bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-xl [&_svg:not([class*='size-'])]:size-6"}}});function r({className:a,...n}){return t("div",{className:e("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-xl border-dashed p-6 text-center text-balance md:p-12",a),"data-slot":"empty",...n})}function i({className:a,...n}){return t("div",{className:e("flex max-w-sm flex-col items-center gap-2 text-center",a),"data-slot":"empty-header",...n})}function s({className:e,variant:a="default",...r}){return t("div",{className:n({className:e,variant:a}),"data-slot":"empty-icon","data-variant":a,...r})}function m({className:a,...n}){return t("div",{className:e("text-lg font-medium tracking-tight",a),"data-slot":"empty-title",...n})}function l({className:a,...n}){return t("p",{className:e("text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4",a),"data-slot":"empty-description",...n})}function o({className:a,...n}){return t("div",{className:e("flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance",a),"data-slot":"empty-content",...n})}export{r as Empty,o as EmptyContent,l as EmptyDescription,i as EmptyHeader,s as EmptyMedia,m as EmptyTitle,n as emptyMediaVariants};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var a in _)__webpack_require__.o(_,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:_[a]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{InputPassword:()=>InputPassword});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_lucide_react_namespaceObject=require("lucide-react"),external_react_namespaceObject=require("react"),external_button_cjs_namespaceObject=require("./button.cjs"),external_input_cjs_namespaceObject=require("./input.cjs"),external_spinner_cjs_namespaceObject=require("./spinner.cjs"),input_cjs_namespaceObject=require("../primitives/input.cjs"),{input:e,root:_}=(0,external_input_cjs_namespaceObject.inputVariants)();function InputPassword({className:a,disabled:r,loaderPosition:t,loading:s,prefix:c,readOnly:n,spinner:p,suffix:i,...o}){let[u,b]=(0,external_react_namespaceObject.useState)("password"),l=(0,external_react_namespaceObject.useCallback)(()=>{b(e=>"password"===e?"text":"password")},[]);return(0,jsx_runtime_namespaceObject.jsxs)(input_cjs_namespaceObject.Root,{className:_({className:[!i&&"pr-1.5",a]}),"data-slot":"input-password",disabled:r,loaderPosition:t,loading:s,prefix:c,readOnly:n,spinner:p??(0,jsx_runtime_namespaceObject.jsx)(external_spinner_cjs_namespaceObject.Spinner,{},"spinner"),suffix:i,children:[(0,jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Field,{autoCapitalize:"none",className:e(),"data-slot":"input-password-item",type:u,...o}),(0,jsx_runtime_namespaceObject.jsx)(external_button_cjs_namespaceObject.Button,{"aria-label":"password"===u?"Show password":"Hide password",className:"focus-visible:not-disabled:bg-input size-7 rounded-full focus-visible:ring-0","data-slot":"input-password-toggle",disabled:r,prefix:"password"===u?(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.EyeOffIcon,{}):(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.EyeIcon,{}),size:"icon",variant:"ghost",onClick:l})]})}for(var __webpack_i__ in exports.InputPassword=__webpack_exports__.InputPassword,__webpack_exports__)-1===["InputPassword"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
+ "use strict";const __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var a in _)__webpack_require__.o(_,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:_[a]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{InputPassword:()=>InputPassword});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_lucide_react_namespaceObject=require("lucide-react"),external_react_namespaceObject=require("react"),external_button_cjs_namespaceObject=require("./button.cjs"),external_input_cjs_namespaceObject=require("./input.cjs"),external_spinner_cjs_namespaceObject=require("./spinner.cjs"),input_cjs_namespaceObject=require("../primitives/input.cjs"),{input:e,root:_}=(0,external_input_cjs_namespaceObject.inputVariants)();function InputPassword({className:a,disabled:r,loaderPosition:t,loading:s,prefix:c,readOnly:n,spinner:p,suffix:i,...o}){let[u,b]=(0,external_react_namespaceObject.useState)("password"),l=(0,external_react_namespaceObject.useCallback)(()=>{b(e=>"password"===e?"text":"password")},[]);return(0,jsx_runtime_namespaceObject.jsxs)(input_cjs_namespaceObject.Root,{className:_({className:[!i&&"pr-1.5",a]}),"data-slot":"input-password",disabled:r,loaderPosition:t,loading:s,prefix:c,readOnly:n,spinner:p??(0,jsx_runtime_namespaceObject.jsx)(external_spinner_cjs_namespaceObject.Spinner,{},"spinner"),suffix:i,children:[(0,jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Field,{autoCapitalize:"none",className:e(),"data-slot":"input-password-item",type:u,...o}),(0,jsx_runtime_namespaceObject.jsx)(external_button_cjs_namespaceObject.Button,{"aria-label":"password"===u?"Show password":"Hide password",className:"focus-visible:not-disabled:bg-input size-7 rounded-full focus-visible:ring-0","data-slot":"input-password-toggle",disabled:r,size:"icon",variant:"ghost",onClick:l,children:"password"===u?(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.EyeOffIcon,{}):(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.EyeIcon,{})})]})}for(var __webpack_i__ in exports.InputPassword=__webpack_exports__.InputPassword,__webpack_exports__)-1===["InputPassword"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import{jsx as s,jsxs as i}from"react/jsx-runtime";import{EyeIcon as o,EyeOffIcon as r}from"lucide-react";import{useCallback as t,useState as a}from"react";import{Button as e}from"./button.js";import{inputVariants as p}from"./input.js";import{Spinner as n}from"./spinner.js";import{Field as d,Root as l}from"../primitives/input.js";let{input:m,root:u}=p();function f({className:p,disabled:f,loaderPosition:c,loading:w,prefix:b,readOnly:g,spinner:x,suffix:j,...v}){let[N,h]=a("password"),z=t(()=>{h(s=>"password"===s?"text":"password")},[]);return i(l,{className:u({className:[!j&&"pr-1.5",p]}),"data-slot":"input-password",disabled:f,loaderPosition:c,loading:w,prefix:b,readOnly:g,spinner:x??s(n,{},"spinner"),suffix:j,children:[s(d,{autoCapitalize:"none",className:m(),"data-slot":"input-password-item",type:N,...v}),s(e,{"aria-label":"password"===N?"Show password":"Hide password",className:"focus-visible:not-disabled:bg-input size-7 rounded-full focus-visible:ring-0","data-slot":"input-password-toggle",disabled:f,prefix:"password"===N?s(r,{}):s(o,{}),size:"icon",variant:"ghost",onClick:z})]})}export{f as InputPassword};
2
+ import{jsx as s,jsxs as i}from"react/jsx-runtime";import{EyeIcon as o,EyeOffIcon as r}from"lucide-react";import{useCallback as t,useState as a}from"react";import{Button as e}from"./button.js";import{inputVariants as p}from"./input.js";import{Spinner as n}from"./spinner.js";import{Field as d,Root as l}from"../primitives/input.js";let{input:m,root:u}=p();function c({className:p,disabled:c,loaderPosition:f,loading:w,prefix:b,readOnly:g,spinner:j,suffix:x,...h}){let[v,N]=a("password"),z=t(()=>{N(s=>"password"===s?"text":"password")},[]);return i(l,{className:u({className:[!x&&"pr-1.5",p]}),"data-slot":"input-password",disabled:c,loaderPosition:f,loading:w,prefix:b,readOnly:g,spinner:j??s(n,{},"spinner"),suffix:x,children:[s(d,{autoCapitalize:"none",className:m(),"data-slot":"input-password-item",type:v,...h}),s(e,{"aria-label":"password"===v?"Show password":"Hide password",className:"focus-visible:not-disabled:bg-input size-7 rounded-full focus-visible:ring-0","data-slot":"input-password-toggle",disabled:c,size:"icon",variant:"ghost",onClick:z,children:"password"===v?s(r,{}):s(o,{})})]})}export{c as InputPassword};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";const __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var a in _)__webpack_require__.o(_,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:_[a]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{InputSearch:()=>InputSearch});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_lucide_react_namespaceObject=require("lucide-react"),external_button_cjs_namespaceObject=require("./button.cjs"),external_input_cjs_namespaceObject=require("./input.cjs"),external_spinner_cjs_namespaceObject=require("./spinner.cjs"),input_cjs_namespaceObject=require("../primitives/input.cjs"),react_use_controllable_state_namespaceObject=require("@radix-ui/react-use-controllable-state"),{input:e,root:_}=(0,external_input_cjs_namespaceObject.inputVariants)();function InputSearch({className:a,defaultValue:t,disabled:r,loaderPosition:c,loading:n,onChange:s,prefix:i,readOnly:p,spinner:u,suffix:l,value:o,...b}){let[j,m]=(0,react_use_controllable_state_namespaceObject.useControllableState)({defaultProp:t,onChange:s,prop:o});return(0,jsx_runtime_namespaceObject.jsxs)(input_cjs_namespaceObject.Root,{className:_({className:[!l&&"pr-1.5",a]}),"data-slot":"input-search",disabled:r,loaderPosition:c,loading:n,prefix:i??(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.SearchIcon,{},"prefix"),readOnly:p,spinner:u??(0,jsx_runtime_namespaceObject.jsx)(external_spinner_cjs_namespaceObject.Spinner,{},"spinner"),suffix:l,children:[(0,jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Field,{className:e(),"data-slot":"input-search-item",type:"search",value:j??"",onChange:e=>{m(e.target.value)},...b}),j?(0,jsx_runtime_namespaceObject.jsx)(external_button_cjs_namespaceObject.Button,{"aria-label":"Clear search",className:"focus-visible:not-disabled:bg-input size-7 rounded-full focus-visible:ring-0","data-slot":"input-search-clear",disabled:r??p,size:"icon",suffix:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.XIcon,{}),variant:"ghost",onClick:()=>{m("")}}):null]})}for(var __webpack_i__ in exports.InputSearch=__webpack_exports__.InputSearch,__webpack_exports__)-1===["InputSearch"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
+ "use strict";const __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var a in _)__webpack_require__.o(_,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:_[a]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{InputSearch:()=>InputSearch});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_lucide_react_namespaceObject=require("lucide-react"),external_button_cjs_namespaceObject=require("./button.cjs"),external_input_cjs_namespaceObject=require("./input.cjs"),external_spinner_cjs_namespaceObject=require("./spinner.cjs"),input_cjs_namespaceObject=require("../primitives/input.cjs"),react_use_controllable_state_namespaceObject=require("@radix-ui/react-use-controllable-state"),{input:e,root:_}=(0,external_input_cjs_namespaceObject.inputVariants)();function InputSearch({className:a,defaultValue:r,disabled:t,loaderPosition:c,loading:n,onChange:s,prefix:i,readOnly:p,spinner:u,suffix:l,value:o,...b}){let[j,m]=(0,react_use_controllable_state_namespaceObject.useControllableState)({defaultProp:r,onChange:s,prop:o});return(0,jsx_runtime_namespaceObject.jsxs)(input_cjs_namespaceObject.Root,{className:_({className:[!l&&"pr-1.5",a]}),"data-slot":"input-search",disabled:t,loaderPosition:c,loading:n,prefix:i??(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.SearchIcon,{},"prefix"),readOnly:p,spinner:u??(0,jsx_runtime_namespaceObject.jsx)(external_spinner_cjs_namespaceObject.Spinner,{},"spinner"),suffix:l,children:[(0,jsx_runtime_namespaceObject.jsx)(input_cjs_namespaceObject.Field,{className:e(),"data-slot":"input-search-item",type:"search",value:j??"",onChange:e=>{m(e.target.value)},...b}),j?(0,jsx_runtime_namespaceObject.jsx)(external_button_cjs_namespaceObject.Button,{"aria-label":"Clear search",className:"focus-visible:not-disabled:bg-input size-7 rounded-full focus-visible:ring-0","data-slot":"input-search-clear",disabled:t??p,size:"icon",variant:"ghost",onClick:()=>{m("")},children:(0,jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.XIcon,{})}):null]})}for(var __webpack_i__ in exports.InputSearch=__webpack_exports__.InputSearch,__webpack_exports__)-1===["InputSearch"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import{jsx as e,jsxs as r}from"react/jsx-runtime";import{SearchIcon as i,XIcon as a}from"lucide-react";import{Button as t}from"./button.js";import{inputVariants as s}from"./input.js";import{Spinner as o}from"./spinner.js";import{Field as l,Root as n}from"../primitives/input.js";import{useControllableState as p}from"@radix-ui/react-use-controllable-state";let{input:u,root:c}=s();function m({className:s,defaultValue:m,disabled:d,loaderPosition:f,loading:b,onChange:h,prefix:v,readOnly:x,spinner:g,suffix:j,value:N,...C}){let[y,z]=p({defaultProp:m,onChange:h,prop:N});return r(n,{className:c({className:[!j&&"pr-1.5",s]}),"data-slot":"input-search",disabled:d,loaderPosition:f,loading:b,prefix:v??e(i,{},"prefix"),readOnly:x,spinner:g??e(o,{},"spinner"),suffix:j,children:[e(l,{className:u(),"data-slot":"input-search-item",type:"search",value:y??"",onChange:e=>{z(e.target.value)},...C}),y?e(t,{"aria-label":"Clear search",className:"focus-visible:not-disabled:bg-input size-7 rounded-full focus-visible:ring-0","data-slot":"input-search-clear",disabled:d??x,size:"icon",suffix:e(a,{}),variant:"ghost",onClick:()=>{z("")}}):null]})}export{m as InputSearch};
2
+ import{jsx as e,jsxs as r}from"react/jsx-runtime";import{SearchIcon as i,XIcon as a}from"lucide-react";import{Button as t}from"./button.js";import{inputVariants as s}from"./input.js";import{Spinner as l}from"./spinner.js";import{Field as o,Root as n}from"../primitives/input.js";import{useControllableState as p}from"@radix-ui/react-use-controllable-state";let{input:u,root:c}=s();function m({className:s,defaultValue:m,disabled:d,loaderPosition:f,loading:h,onChange:b,prefix:v,readOnly:g,spinner:x,suffix:j,value:N,...C}){let[y,z]=p({defaultProp:m,onChange:b,prop:N});return r(n,{className:c({className:[!j&&"pr-1.5",s]}),"data-slot":"input-search",disabled:d,loaderPosition:f,loading:h,prefix:v??e(i,{},"prefix"),readOnly:g,spinner:x??e(l,{},"spinner"),suffix:j,children:[e(o,{className:u(),"data-slot":"input-search-item",type:"search",value:y??"",onChange:e=>{z(e.target.value)},...C}),y?e(t,{"aria-label":"Clear search",className:"focus-visible:not-disabled:bg-input size-7 rounded-full focus-visible:ring-0","data-slot":"input-search-clear",disabled:d??g,size:"icon",variant:"ghost",onClick:()=>{z("")},children:e(a,{})}):null]})}export{m as InputSearch};
@@ -0,0 +1 @@
1
+ "use strict";const __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var a in t)__webpack_require__.o(t,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ItemContent:()=>ItemContent,ItemFooter:()=>ItemFooter,ItemGroup:()=>ItemGroup,ItemTitle:()=>ItemTitle,ItemMedia:()=>ItemMedia,itemVariants:()=>itemVariants,ItemActions:()=>ItemActions,ItemDescription:()=>ItemDescription,ItemHeader:()=>ItemHeader,ItemSeparator:()=>ItemSeparator,Item:()=>Item,itemMediaVariants:()=>itemMediaVariants});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_separator_cjs_namespaceObject=require("./separator.cjs"),tailwind_variants_namespaceObject=require("@codefast/tailwind-variants"),react_slot_namespaceObject=require("@radix-ui/react-slot"),itemVariants=(0,tailwind_variants_namespaceObject.tv)({base:(0,tailwind_variants_namespaceObject.cn)("group/item flex flex-wrap items-center rounded-lg border border-transparent text-sm transition-colors duration-100 outline-hidden","[a]:transition-colors [a]:hover:bg-accent/50","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3"),defaultVariants:{size:"default",variant:"default"},variants:{size:{default:"gap-4 p-4",sm:"gap-2.5 px-4 py-3"},variant:{default:"bg-transparent",muted:"bg-muted/50",outline:"border-border"}}}),itemMediaVariants=(0,tailwind_variants_namespaceObject.tv)({base:(0,tailwind_variants_namespaceObject.cn)("group-has-[[data-slot=item-description]]/item:self-start flex shrink-0 items-center justify-center gap-2","[&_svg]:pointer-events-none group-has-[[data-slot=item-description]]/item:translate-y-0.5"),defaultVariants:{variant:"default"},variants:{variant:{default:"bg-transparent",icon:"size-8 shrink-0 rounded-md border bg-muted [&_svg:not([class*='size-'])]:size-4",image:"size-10 shrink-0 overflow-hidden rounded-md [&_img]:size-full [&_img]:object-cover"}}});function ItemGroup({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,tailwind_variants_namespaceObject.cn)("group/item-group flex flex-col",e),"data-slot":"item-group",role:"list",...t})}function ItemSeparator({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)(external_separator_cjs_namespaceObject.Separator,{className:(0,tailwind_variants_namespaceObject.cn)("my-0",e),"data-slot":"item-separator",orientation:"horizontal",...t})}function Item({asChild:e=!1,className:t,size:a="default",variant:r="default",...i}){let n=e?react_slot_namespaceObject.Slot:"div";return(0,jsx_runtime_namespaceObject.jsx)(n,{className:itemVariants({className:t,size:a,variant:r}),"data-size":a,"data-slot":"item","data-variant":r,...i})}function ItemMedia({className:e,variant:t="default",...a}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:itemMediaVariants({className:e,variant:t}),"data-slot":"item-media","data-variant":t,...a})}function ItemContent({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,tailwind_variants_namespaceObject.cn)("flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none",e),"data-slot":"item-content",...t})}function ItemTitle({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,tailwind_variants_namespaceObject.cn)("flex w-fit items-center gap-2 text-sm leading-snug font-medium",e),"data-slot":"item-title",...t})}function ItemDescription({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("p",{className:(0,tailwind_variants_namespaceObject.cn)("text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance","[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",e),"data-slot":"item-description",...t})}function ItemActions({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,tailwind_variants_namespaceObject.cn)("flex items-center gap-2",e),"data-slot":"item-actions",...t})}function ItemHeader({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,tailwind_variants_namespaceObject.cn)("flex basis-full items-center justify-between gap-2",e),"data-slot":"item-header",...t})}function ItemFooter({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,tailwind_variants_namespaceObject.cn)("flex basis-full items-center justify-between gap-2",e),"data-slot":"item-footer",...t})}for(var __webpack_i__ in exports.Item=__webpack_exports__.Item,exports.ItemActions=__webpack_exports__.ItemActions,exports.ItemContent=__webpack_exports__.ItemContent,exports.ItemDescription=__webpack_exports__.ItemDescription,exports.ItemFooter=__webpack_exports__.ItemFooter,exports.ItemGroup=__webpack_exports__.ItemGroup,exports.ItemHeader=__webpack_exports__.ItemHeader,exports.ItemMedia=__webpack_exports__.ItemMedia,exports.ItemSeparator=__webpack_exports__.ItemSeparator,exports.ItemTitle=__webpack_exports__.ItemTitle,exports.itemMediaVariants=__webpack_exports__.itemMediaVariants,exports.itemVariants=__webpack_exports__.itemVariants,__webpack_exports__)-1===["Item","ItemActions","ItemContent","ItemDescription","ItemFooter","ItemGroup","ItemHeader","ItemMedia","ItemSeparator","ItemTitle","itemMediaVariants","itemVariants"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
@@ -0,0 +1,45 @@
1
+ import type { ComponentProps, JSX } from "react";
2
+ import type { VariantProps } from "@codefast/tailwind-variants";
3
+ import { Separator } from "./separator";
4
+ declare const itemVariants: import("@codefast/tailwind-variants").VariantFunctionType<{
5
+ size: {
6
+ default: string;
7
+ sm: string;
8
+ };
9
+ variant: {
10
+ default: string;
11
+ muted: string;
12
+ outline: string;
13
+ };
14
+ }, Record<string, never>>;
15
+ declare const itemMediaVariants: import("@codefast/tailwind-variants").VariantFunctionType<{
16
+ variant: {
17
+ default: string;
18
+ icon: string;
19
+ image: string;
20
+ };
21
+ }, Record<string, never>>;
22
+ type ItemGroupProps = ComponentProps<"div">;
23
+ declare function ItemGroup({ className, ...props }: ItemGroupProps): JSX.Element;
24
+ type ItemSeparatorProps = ComponentProps<typeof Separator>;
25
+ declare function ItemSeparator({ className, ...props }: ItemSeparatorProps): JSX.Element;
26
+ type ItemProps = ComponentProps<"div"> & VariantProps<typeof itemVariants> & {
27
+ asChild?: boolean;
28
+ };
29
+ declare function Item({ asChild, className, size, variant, ...props }: ItemProps): JSX.Element;
30
+ type ItemMediaProps = ComponentProps<"div"> & VariantProps<typeof itemMediaVariants>;
31
+ declare function ItemMedia({ className, variant, ...props }: ItemMediaProps): JSX.Element;
32
+ type ItemContentProps = ComponentProps<"div">;
33
+ declare function ItemContent({ className, ...props }: ItemContentProps): JSX.Element;
34
+ type ItemTitleProps = ComponentProps<"div">;
35
+ declare function ItemTitle({ className, ...props }: ItemTitleProps): JSX.Element;
36
+ type ItemDescriptionProps = ComponentProps<"p">;
37
+ declare function ItemDescription({ className, ...props }: ItemDescriptionProps): JSX.Element;
38
+ type ItemActionsProps = ComponentProps<"div">;
39
+ declare function ItemActions({ className, ...props }: ItemActionsProps): JSX.Element;
40
+ type ItemHeaderProps = ComponentProps<"div">;
41
+ declare function ItemHeader({ className, ...props }: ItemHeaderProps): JSX.Element;
42
+ type ItemFooterProps = ComponentProps<"div">;
43
+ declare function ItemFooter({ className, ...props }: ItemFooterProps): JSX.Element;
44
+ export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, itemMediaVariants, ItemSeparator, ItemTitle, itemVariants, };
45
+ export type { ItemActionsProps, ItemContentProps, ItemDescriptionProps, ItemFooterProps, ItemGroupProps, ItemHeaderProps, ItemMediaProps, ItemProps, ItemSeparatorProps, ItemTitleProps, };
@@ -0,0 +1 @@
1
+ import{jsx as t}from"react/jsx-runtime";import{Separator as e}from"./separator.js";import{cn as a,tv as i}from"@codefast/tailwind-variants";import{Slot as r}from"@radix-ui/react-slot";let n=i({base:a("group/item flex flex-wrap items-center rounded-lg border border-transparent text-sm transition-colors duration-100 outline-hidden","[a]:transition-colors [a]:hover:bg-accent/50","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3"),defaultVariants:{size:"default",variant:"default"},variants:{size:{default:"gap-4 p-4",sm:"gap-2.5 px-4 py-3"},variant:{default:"bg-transparent",muted:"bg-muted/50",outline:"border-border"}}}),s=i({base:a("group-has-[[data-slot=item-description]]/item:self-start flex shrink-0 items-center justify-center gap-2","[&_svg]:pointer-events-none group-has-[[data-slot=item-description]]/item:translate-y-0.5"),defaultVariants:{variant:"default"},variants:{variant:{default:"bg-transparent",icon:"size-8 shrink-0 rounded-md border bg-muted [&_svg:not([class*='size-'])]:size-4",image:"size-10 shrink-0 overflow-hidden rounded-md [&_img]:size-full [&_img]:object-cover"}}});function o({className:e,...i}){return t("div",{className:a("group/item-group flex flex-col",e),"data-slot":"item-group",role:"list",...i})}function l({className:i,...r}){return t(e,{className:a("my-0",i),"data-slot":"item-separator",orientation:"horizontal",...r})}function d({asChild:e=!1,className:a,size:i="default",variant:s="default",...o}){return t(e?r:"div",{className:n({className:a,size:i,variant:s}),"data-size":i,"data-slot":"item","data-variant":s,...o})}function m({className:e,variant:a="default",...i}){return t("div",{className:s({className:e,variant:a}),"data-slot":"item-media","data-variant":a,...i})}function u({className:e,...i}){return t("div",{className:a("flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none",e),"data-slot":"item-content",...i})}function f({className:e,...i}){return t("div",{className:a("flex w-fit items-center gap-2 text-sm leading-snug font-medium",e),"data-slot":"item-title",...i})}function c({className:e,...i}){return t("p",{className:a("text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance","[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",e),"data-slot":"item-description",...i})}function p({className:e,...i}){return t("div",{className:a("flex items-center gap-2",e),"data-slot":"item-actions",...i})}function g({className:e,...i}){return t("div",{className:a("flex basis-full items-center justify-between gap-2",e),"data-slot":"item-header",...i})}function v({className:e,...i}){return t("div",{className:a("flex basis-full items-center justify-between gap-2",e),"data-slot":"item-footer",...i})}export{d as Item,p as ItemActions,u as ItemContent,c as ItemDescription,v as ItemFooter,o as ItemGroup,g as ItemHeader,m as ItemMedia,l as ItemSeparator,f as ItemTitle,s as itemMediaVariants,n as itemVariants};
@@ -1,2 +1 @@
1
- "use client";
2
- "use strict";const __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Kbd:()=>Kbd});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),tailwind_variants_namespaceObject=require("@codefast/tailwind-variants"),react_slot_namespaceObject=require("@radix-ui/react-slot");function Kbd({asChild:e,className:_,...r}){let t=e?react_slot_namespaceObject.Slot:"kbd";return(0,jsx_runtime_namespaceObject.jsx)(t,{className:(0,tailwind_variants_namespaceObject.cn)("bg-muted text-muted-foreground inline-flex h-5 items-center gap-1 rounded-sm border px-1.5 font-mono text-xs font-medium select-none",_),"data-slot":"kbd",...r})}for(var __webpack_i__ in exports.Kbd=__webpack_exports__.Kbd,__webpack_exports__)-1===["Kbd"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
1
+ "use strict";const __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var t in _)__webpack_require__.o(_,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:_[t]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Kbd:()=>Kbd,KbdGroup:()=>KbdGroup});const jsx_runtime_namespaceObject=require("react/jsx-runtime"),tailwind_variants_namespaceObject=require("@codefast/tailwind-variants");function Kbd({className:e,..._}){return(0,jsx_runtime_namespaceObject.jsx)("kbd",{className:(0,tailwind_variants_namespaceObject.cn)("bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-md px-1 font-sans text-xs font-medium select-none","[&_svg:not([class*='size-'])]:size-3","[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10",e),"data-slot":"kbd",..._})}function KbdGroup({className:e,..._}){return(0,jsx_runtime_namespaceObject.jsx)("kbd",{className:(0,tailwind_variants_namespaceObject.cn)("inline-flex items-center gap-1",e),"data-slot":"kbd-group",..._})}for(var __webpack_i__ in exports.Kbd=__webpack_exports__.Kbd,exports.KbdGroup=__webpack_exports__.KbdGroup,__webpack_exports__)-1===["Kbd","KbdGroup"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});