@codefast/ui 0.2.29 → 0.2.31
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.
- package/CHANGELOG.md +32 -0
- package/README.md +9 -9
- package/dist/chunk-2IMNP5E3.js +2 -0
- package/dist/chunk-2IMNP5E3.js.map +1 -0
- package/dist/chunk-67WF7GP7.js +2 -0
- package/dist/chunk-67WF7GP7.js.map +1 -0
- package/dist/chunk-ASI3MMOG.cjs +2 -0
- package/dist/chunk-ASI3MMOG.cjs.map +1 -0
- package/dist/chunk-BWJ6X4FP.js +2 -0
- package/dist/chunk-BWJ6X4FP.js.map +1 -0
- package/dist/{chunk-HEK7QLFR.js → chunk-GIPFEUMD.js} +1 -1
- package/dist/{chunk-HEK7QLFR.js.map → chunk-GIPFEUMD.js.map} +1 -1
- package/dist/{chunk-K3WFUR2W.cjs → chunk-HH6A66HR.cjs} +2 -2
- package/dist/{chunk-K3WFUR2W.cjs.map → chunk-HH6A66HR.cjs.map} +1 -1
- package/dist/chunk-IJRHIFOZ.cjs +2 -0
- package/dist/{chunk-5NGAG7ZW.cjs.map → chunk-IJRHIFOZ.cjs.map} +1 -1
- package/dist/chunk-IU3UVNAL.js +2 -0
- package/dist/chunk-IU3UVNAL.js.map +1 -0
- package/dist/{chunk-HVGYQUXR.js → chunk-MX4VRXZV.js} +2 -2
- package/dist/{chunk-GXYHZRFH.cjs → chunk-NHKDM4JU.cjs} +1 -1
- package/dist/{chunk-GXYHZRFH.cjs.map → chunk-NHKDM4JU.cjs.map} +1 -1
- package/dist/chunk-PYHULPLG.cjs +2 -0
- package/dist/chunk-PYHULPLG.cjs.map +1 -0
- package/dist/chunk-SXYB6LLL.js +2 -0
- package/dist/chunk-SXYB6LLL.js.map +1 -0
- package/dist/chunk-US2PK6G5.cjs +2 -0
- package/dist/chunk-US2PK6G5.cjs.map +1 -0
- package/dist/chunk-Y3I5OCGY.cjs +2 -0
- package/dist/chunk-Y3I5OCGY.cjs.map +1 -0
- package/dist/components/command.cjs +1 -1
- package/dist/components/command.js +1 -1
- package/dist/components/dialog.cjs +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/sheet.cjs +1 -1
- package/dist/components/sheet.js +1 -1
- package/dist/components/sidebar.cjs +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/slider.cjs +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/table.cjs +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.cjs +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +10 -11
- package/dist/chunk-4TENCCRT.js +0 -2
- package/dist/chunk-4TENCCRT.js.map +0 -1
- package/dist/chunk-5NGAG7ZW.cjs +0 -2
- package/dist/chunk-EJJKYYHY.js +0 -2
- package/dist/chunk-EJJKYYHY.js.map +0 -1
- package/dist/chunk-JM2VJEQF.cjs +0 -2
- package/dist/chunk-JM2VJEQF.cjs.map +0 -1
- package/dist/chunk-KFORL4OH.js +0 -2
- package/dist/chunk-KFORL4OH.js.map +0 -1
- package/dist/chunk-MRIHA5JJ.js +0 -2
- package/dist/chunk-MRIHA5JJ.js.map +0 -1
- package/dist/chunk-PJWKQZHJ.cjs +0 -2
- package/dist/chunk-PJWKQZHJ.cjs.map +0 -1
- package/dist/chunk-YF2ZZY4W.js +0 -2
- package/dist/chunk-YF2ZZY4W.js.map +0 -1
- package/dist/chunk-ZNSIVYMA.cjs +0 -2
- package/dist/chunk-ZNSIVYMA.cjs.map +0 -1
- package/dist/chunk-ZVPN2HIY.cjs +0 -2
- package/dist/chunk-ZVPN2HIY.cjs.map +0 -1
- /package/dist/{chunk-HVGYQUXR.js.map → chunk-MX4VRXZV.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @codefast/ui
|
|
2
2
|
|
|
3
|
+
## 0.2.31
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`18939be`](https://github.com/codefastlabs/codefast/commit/18939bec39e9c1b0dcdd4016a1651cfb62f6039f) Thanks [@thevuong](https://github.com/thevuong)! - feat(ui): refine animation utilities and components
|
|
8
|
+
|
|
9
|
+
- [`1138a2a`](https://github.com/codefastlabs/codefast/commit/1138a2a6346e3032ae20e15d251849266f1f5275) Thanks [@thevuong](https://github.com/thevuong)! - fix(ui): adjust sidebar icon width for better alignment
|
|
10
|
+
|
|
11
|
+
- [`1204505`](https://github.com/codefastlabs/codefast/commit/1204505b6c4659fe10dc27dd08f681137526834b) Thanks [@thevuong](https://github.com/thevuong)! - refactor(ui): simplify class names for table and tabs
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`18939be`](https://github.com/codefastlabs/codefast/commit/18939bec39e9c1b0dcdd4016a1651cfb62f6039f), [`1138a2a`](https://github.com/codefastlabs/codefast/commit/1138a2a6346e3032ae20e15d251849266f1f5275), [`1204505`](https://github.com/codefastlabs/codefast/commit/1204505b6c4659fe10dc27dd08f681137526834b)]:
|
|
14
|
+
- @codefast/hooks@0.2.31
|
|
15
|
+
- @codefast-ui/checkbox-group@0.2.31
|
|
16
|
+
- @codefast-ui/input@0.2.31
|
|
17
|
+
- @codefast-ui/input-number@0.2.31
|
|
18
|
+
|
|
19
|
+
## 0.2.30
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- [`3d7ac8e`](https://github.com/codefastlabs/codefast/commit/3d7ac8ec9e61c448a267ca8c3ed34cf2aa261eb7) Thanks [@thevuong](https://github.com/thevuong)! - feat(style-guide): update TypeScript file matching patterns
|
|
24
|
+
|
|
25
|
+
- [`c56316e`](https://github.com/codefastlabs/codefast/commit/c56316e96bda456cffc1e398b9546f81555917f3) Thanks [@thevuong](https://github.com/thevuong)! - feat(style-guide): update TypeScript config file handling
|
|
26
|
+
|
|
27
|
+
- [`6a6afab`](https://github.com/codefastlabs/codefast/commit/6a6afab009192a0e8818fb16e9e51c30a9051a86) Thanks [@thevuong](https://github.com/thevuong)! - chore(deps): update dependencies across the project
|
|
28
|
+
|
|
29
|
+
- Updated dependencies [[`3d7ac8e`](https://github.com/codefastlabs/codefast/commit/3d7ac8ec9e61c448a267ca8c3ed34cf2aa261eb7), [`c56316e`](https://github.com/codefastlabs/codefast/commit/c56316e96bda456cffc1e398b9546f81555917f3), [`6a6afab`](https://github.com/codefastlabs/codefast/commit/6a6afab009192a0e8818fb16e9e51c30a9051a86)]:
|
|
30
|
+
- @codefast/hooks@0.2.30
|
|
31
|
+
- @codefast-ui/checkbox-group@0.2.30
|
|
32
|
+
- @codefast-ui/input@0.2.30
|
|
33
|
+
- @codefast-ui/input-number@0.2.30
|
|
34
|
+
|
|
3
35
|
## 0.2.29
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ To enable **@codefast/ui**, import the required styles into your global CSS file
|
|
|
39
39
|
--background: var(--color-white);
|
|
40
40
|
--foreground: var(--color-neutral-950);
|
|
41
41
|
|
|
42
|
-
--primary: var(--color-
|
|
42
|
+
--primary: var(--color-sky-500);
|
|
43
43
|
--primary-foreground: var(--color-neutral-50);
|
|
44
44
|
|
|
45
45
|
--secondary: var(--color-neutral-100);
|
|
@@ -63,7 +63,7 @@ To enable **@codefast/ui**, import the required styles into your global CSS file
|
|
|
63
63
|
--sidebar: var(--color-neutral-50);
|
|
64
64
|
--sidebar-foreground: var(--color-neutral-950);
|
|
65
65
|
|
|
66
|
-
--sidebar-primary: var(--color-
|
|
66
|
+
--sidebar-primary: var(--color-sky-500);
|
|
67
67
|
--sidebar-primary-foreground: var(--color-neutral-50);
|
|
68
68
|
|
|
69
69
|
--sidebar-accent: var(--color-neutral-100);
|
|
@@ -79,17 +79,17 @@ To enable **@codefast/ui**, import the required styles into your global CSS file
|
|
|
79
79
|
--chart-5: var(--color-amber-500);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
--input:
|
|
84
|
-
--border: --alpha(var(--color-
|
|
82
|
+
@variant dark {
|
|
83
|
+
--input: var(--color-neutral-700);
|
|
84
|
+
--border: --alpha(var(--color-neutral-700) / 50%);
|
|
85
85
|
|
|
86
86
|
--ring: var(--color-neutral-500);
|
|
87
87
|
|
|
88
88
|
--background: var(--color-neutral-950);
|
|
89
89
|
--foreground: var(--color-neutral-50);
|
|
90
90
|
|
|
91
|
-
--primary: var(--color-
|
|
92
|
-
--primary-foreground: var(--color-neutral-
|
|
91
|
+
--primary: var(--color-sky-700);
|
|
92
|
+
--primary-foreground: var(--color-neutral-50);
|
|
93
93
|
|
|
94
94
|
--secondary: var(--color-neutral-800);
|
|
95
95
|
--secondary-foreground: var(--color-neutral-50);
|
|
@@ -112,13 +112,13 @@ To enable **@codefast/ui**, import the required styles into your global CSS file
|
|
|
112
112
|
--sidebar: var(--color-neutral-900);
|
|
113
113
|
--sidebar-foreground: var(--color-neutral-50);
|
|
114
114
|
|
|
115
|
-
--sidebar-primary: var(--color-
|
|
115
|
+
--sidebar-primary: var(--color-sky-700);
|
|
116
116
|
--sidebar-primary-foreground: var(--color-neutral-50);
|
|
117
117
|
|
|
118
118
|
--sidebar-accent: var(--color-neutral-800);
|
|
119
119
|
--sidebar-accent-foreground: var(--color-neutral-50);
|
|
120
120
|
|
|
121
|
-
--sidebar-border:
|
|
121
|
+
--sidebar-border: var(--color-neutral-800);
|
|
122
122
|
--sidebar-ring: var(--color-neutral-600);
|
|
123
123
|
|
|
124
124
|
--chart-1: var(--color-blue-700);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as l}from"./chunk-ZFCLI44C.js";import{a as i}from"./chunk-OKUFCFYT.js";import*as o from"@radix-ui/react-dialog";import{XIcon as m}from"lucide-react";import{jsx as a,jsxs as s}from"react/jsx-runtime";function f({...t}){return a(o.Root,{"data-slot":"dialog",...t})}function c({...t}){return a(o.Trigger,{"data-slot":"dialog-trigger",...t})}function u({children:t,className:e,classNames:r,...n}){return s(o.Portal,{children:[a(o.Overlay,{className:i("bg-popover-overlay data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 backdrop-blur-sm",r?.overlay),"data-slot":"dialog-overlay"}),a(o.Content,{className:i("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 fixed inset-0 z-50 grid grid-rows-[1fr_auto] justify-items-center overflow-auto sm:grid-rows-[1fr_auto_3fr] sm:p-4",r?.wrapper),"data-slot":"dialog-content-wrapper",...n,children:s("div",{className:i("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",r?.content,e),"data-slot":"dialog-content",children:[t,s(o.Close,{className:l({className:["absolute right-2.5 top-2.5 size-7",r?.close],size:"icon",variant:"ghost"}),"data-slot":"dialog-close",children:[a(m,{className:"size-4"}),a("span",{className:"sr-only",children:"Close"})]})]})})]})}function v({className:t,...e}){return a("header",{className:i("flex shrink-0 flex-col gap-1.5 px-6 pb-2 pt-6 text-center sm:text-left",t),"data-slot":"dialog-header",...e})}function P({className:t,...e}){return a("main",{className:i("overflow-auto px-6 py-2",t),"data-slot":"dialog-body",...e})}function D({className:t,...e}){return a("footer",{className:i("flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-2 sm:flex-row sm:justify-end",t),"data-slot":"dialog-footer",...e})}function x({className:t,...e}){return a(o.Title,{className:i("text-lg font-semibold leading-none tracking-tight",t),"data-slot":"dialog-title",...e})}function y({className:t,...e}){return a(o.Description,{className:i("text-muted-foreground text-sm",t),"data-slot":"dialog-description",...e})}function C({className:t,size:e,variant:r="outline",...n}){return a(o.Close,{className:l({className:t,size:e,variant:r}),"data-slot":"dialog-close",...n})}export{f as a,c as b,u as c,v as d,P as e,D as f,x as g,y as h,C as i};
|
|
2
|
+
//# sourceMappingURL=chunk-2IMNP5E3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/dialog.tsx"],"names":["DialogPrimitive","XIcon","jsx","jsxs","Dialog","props","DialogTrigger","DialogContent","children","className","classNames","cn","buttonVariants","DialogHeader","DialogBody","DialogFooter","DialogTitle","DialogDescription","DialogClose","size","variant"],"mappings":"gFAGA,UAAYA,MAAqB,yBACjC,OAAS,SAAAC,MAAa,eAUb,cAAAC,EAsDC,QAAAC,MAtDD,oBADT,SAASC,EAAO,CAAE,GAAGC,CAAM,EAA6D,CACtF,OAAOH,EAAiB,OAAhB,CAAqB,YAAU,SAAU,GAAGG,EAAO,CAC7D,CAMA,SAASC,EAAc,CAAE,GAAGD,CAAM,EAAgE,CAChG,OAAOH,EAAiB,UAAhB,CAAwB,YAAU,iBAAkB,GAAGG,EAAO,CACxE,CAMA,SAASE,EAAc,CACrB,SAAAC,EACA,UAAAC,EACA,WAAAC,EACA,GAAGL,CACL,EAOgB,CACd,OACEF,EAAiB,SAAhB,CACC,UAAAD,EAAiB,UAAhB,CACC,UAAWS,EACT,gIACAD,GAAY,OACd,EACA,YAAU,iBACZ,EACAR,EAAiB,UAAhB,CACC,UAAWS,EACT,qfACAD,GAAY,OACd,EACA,YAAU,yBACT,GAAGL,EAEJ,SAAAF,EAAC,OACC,UAAWQ,EACT,yIACAD,GAAY,QACZD,CACF,EACA,YAAU,iBAET,UAAAD,EACDL,EAAiB,QAAhB,CACC,UAAWS,EAAe,CACxB,UAAW,CAAC,oCAAqCF,GAAY,KAAK,EAClE,KAAM,OACN,QAAS,OACX,CAAC,EACD,YAAU,eAEV,UAAAR,EAACD,EAAA,CAAM,UAAU,SAAS,EAC1BC,EAAC,QAAK,UAAU,UAAU,iBAAK,GACjC,GACF,EACF,GACF,CAEJ,CAMA,SAASW,EAAa,CAAE,UAAAJ,EAAW,GAAGJ,CAAM,EAAuC,CACjF,OACEH,EAAC,UACC,UAAWS,EAAG,yEAA0EF,CAAS,EACjG,YAAU,gBACT,GAAGJ,EACN,CAEJ,CAMA,SAASS,EAAW,CAAE,UAAAL,EAAW,GAAGJ,CAAM,EAAuC,CAC/E,OAAOH,EAAC,QAAK,UAAWS,EAAG,0BAA2BF,CAAS,EAAG,YAAU,cAAe,GAAGJ,EAAO,CACvG,CAMA,SAASU,EAAa,CAAE,UAAAN,EAAW,GAAGJ,CAAM,EAAuC,CACjF,OACEH,EAAC,UACC,UAAWS,EAAG,iFAAkFF,CAAS,EACzG,YAAU,gBACT,GAAGJ,EACN,CAEJ,CAMA,SAASW,EAAY,CAAE,UAAAP,EAAW,GAAGJ,CAAM,EAA8D,CACvG,OACEH,EAAiB,QAAhB,CACC,UAAWS,EAAG,oDAAqDF,CAAS,EAC5E,YAAU,eACT,GAAGJ,EACN,CAEJ,CAMA,SAASY,EAAkB,CAAE,UAAAR,EAAW,GAAGJ,CAAM,EAAoE,CACnH,OACEH,EAAiB,cAAhB,CACC,UAAWS,EAAG,gCAAiCF,CAAS,EACxD,YAAU,qBACT,GAAGJ,EACN,CAEJ,CAMA,SAASa,EAAY,CACnB,UAAAT,EACA,KAAAU,EACA,QAAAC,EAAU,UACV,GAAGf,CACL,EAGgB,CACd,OACEH,EAAiB,QAAhB,CACC,UAAWU,EAAe,CAAE,UAAAH,EAAW,KAAAU,EAAM,QAAAC,CAAQ,CAAC,EACtD,YAAU,eACT,GAAGf,EACN,CAEJ","sourcesContent":["import type { ComponentProps, JSX } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { XIcon } from 'lucide-react';\n\nimport { buttonVariants } from '@/components/button';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Dialog\n * -------------------------------------------------------------------------- */\n\nfunction Dialog({ ...props }: ComponentProps<typeof DialogPrimitive.Root>): JSX.Element {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogTrigger\n * -------------------------------------------------------------------------- */\n\nfunction DialogTrigger({ ...props }: ComponentProps<typeof DialogPrimitive.Trigger>): JSX.Element {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogContent\n * -------------------------------------------------------------------------- */\n\nfunction DialogContent({\n children,\n className,\n classNames,\n ...props\n}: ComponentProps<typeof DialogPrimitive.Content> & {\n classNames?: {\n close?: string;\n content?: string;\n overlay?: string;\n wrapper?: string;\n };\n}): JSX.Element {\n return (\n <DialogPrimitive.Portal>\n <DialogPrimitive.Overlay\n className={cn(\n 'bg-popover-overlay data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 backdrop-blur-sm',\n classNames?.overlay,\n )}\n data-slot=\"dialog-overlay\"\n />\n <DialogPrimitive.Content\n className={cn(\n '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 fixed inset-0 z-50 grid grid-rows-[1fr_auto] justify-items-center overflow-auto sm:grid-rows-[1fr_auto_3fr] sm:p-4',\n classNames?.wrapper,\n )}\n data-slot=\"dialog-content-wrapper\"\n {...props}\n >\n <div\n className={cn(\n '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',\n classNames?.content,\n className,\n )}\n data-slot=\"dialog-content\"\n >\n {children}\n <DialogPrimitive.Close\n className={buttonVariants({\n className: ['absolute right-2.5 top-2.5 size-7', classNames?.close],\n size: 'icon',\n variant: 'ghost',\n })}\n data-slot=\"dialog-close\"\n >\n <XIcon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n </div>\n </DialogPrimitive.Content>\n </DialogPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogHeader\n * -------------------------------------------------------------------------- */\n\nfunction DialogHeader({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <header\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-2 pt-6 text-center sm:text-left', className)}\n data-slot=\"dialog-header\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\nfunction DialogBody({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return <main className={cn('overflow-auto px-6 py-2', className)} data-slot=\"dialog-body\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogFooter\n * -------------------------------------------------------------------------- */\n\nfunction DialogFooter({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <footer\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-2 sm:flex-row sm:justify-end', className)}\n data-slot=\"dialog-footer\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogTitle\n * -------------------------------------------------------------------------- */\n\nfunction DialogTitle({ className, ...props }: ComponentProps<typeof DialogPrimitive.Title>): JSX.Element {\n return (\n <DialogPrimitive.Title\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n data-slot=\"dialog-title\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogDescription\n * -------------------------------------------------------------------------- */\n\nfunction DialogDescription({ className, ...props }: ComponentProps<typeof DialogPrimitive.Description>): JSX.Element {\n return (\n <DialogPrimitive.Description\n className={cn('text-muted-foreground text-sm', className)}\n data-slot=\"dialog-description\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogClose\n * -------------------------------------------------------------------------- */\n\nfunction DialogClose({\n className,\n size,\n variant = 'outline',\n ...props\n}: Omit<ComponentProps<typeof DialogPrimitive.Close>, 'ref'> & {\n size?: VariantProps<typeof buttonVariants>['size'];\n variant?: VariantProps<typeof buttonVariants>['variant'];\n}): JSX.Element {\n return (\n <DialogPrimitive.Close\n className={buttonVariants({ className, size, variant })}\n data-slot=\"dialog-close\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Dialog,\n DialogBody,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n};\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as r}from"./chunk-ZFCLI44C.js";import{a as i}from"./chunk-OKUFCFYT.js";import*as e from"@radix-ui/react-dialog";import{XIcon as d}from"lucide-react";import{tv as p}from"tailwind-variants";import{jsx as a,jsxs as l}from"react/jsx-runtime";var h=p({base:"bg-background animation-ease-in-out data-[state=open]:animate-in data-[state=open]:animation-duration-500 data-[state=closed]:animate-out data-[state=closed]:animation-duration-500 fixed z-50 flex flex-col overflow-auto shadow-lg",variants:{side:{bottom:"data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom inset-x-0 bottom-0 max-h-[80vh] border-t",left:"data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",right:"data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",top:"data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top inset-x-0 top-0 max-h-[80vh] border-b"}},defaultVariants:{side:"right"}});function S({children:t,...o}){return a(e.Root,{"data-slot":"sheet",...o,children:t})}function P({...t}){return a(e.Trigger,{"data-slot":"sheet-trigger",...t})}function g({children:t,className:o,classNames:n,side:s="right",...m}){return l(e.Portal,{children:[a(e.Overlay,{className:i("bg-popover-overlay data-[state=open]:animate-fade-in data-[state=open]:animation-duration-500 data-[state=closed]:animate-fade-out data-[state=closed]:animation-duration-500 fixed inset-0 z-50 backdrop-blur-sm",n?.overlay),"data-slot":"sheet-overlay"}),l(e.Content,{className:h({className:[n?.content,o],side:s}),"data-slot":"sheet-content",...m,children:[t,l(e.Close,{className:r({className:["absolute right-4 top-4 size-7",n?.close],size:"icon",variant:"ghost"}),"data-slot":"sheet-close",children:[a(d,{className:"size-4"}),a("span",{className:"sr-only",children:"Close"})]})]})]})}function x({className:t,...o}){return a("header",{className:i("flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),"data-slot":"sheet-header",...o})}function b({className:t,...o}){return a("main",{className:i("px-6 py-2",t),"data-slot":"sheet-body",...o})}function y({className:t,...o}){return a("footer",{className:i("flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),"data-slot":"sheet-footer",...o})}function C({className:t,...o}){return a(e.Title,{className:i("text-foreground text-lg font-semibold",t),"data-slot":"sheet-title",...o})}function N({className:t,...o}){return a(e.Description,{className:i("text-muted-foreground text-sm",t),"data-slot":"sheet-description",...o})}function X({className:t,size:o,variant:n="outline",...s}){return a(e.Close,{className:r({className:t,size:o,variant:n}),"data-slot":"sheet-close",...s})}export{S as a,P as b,g as c,x as d,b as e,y as f,C as g,N as h,X as i};
|
|
2
|
+
//# sourceMappingURL=chunk-67WF7GP7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/sheet.tsx"],"names":["SheetPrimitive","XIcon","tv","jsx","jsxs","sheetContentVariants","Sheet","children","props","SheetTrigger","SheetContent","className","classNames","side","cn","buttonVariants","SheetHeader","SheetBody","SheetFooter","SheetTitle","SheetDescription","SheetClose","size","variant"],"mappings":"gFAGA,UAAYA,MAAoB,yBAChC,OAAS,SAAAC,MAAa,eACtB,OAAS,MAAAC,MAAU,oBAgCf,cAAAC,EA+CI,QAAAC,MA/CJ,oBAvBJ,IAAMC,EAAuBH,EAAG,CAC9B,KAAM,wOACN,SAAU,CACR,KAAM,CACJ,OACE,0HACF,KAAM,gIACN,MACE,mIACF,IAAK,gHACP,CACF,EACA,gBAAiB,CACf,KAAM,OACR,CACF,CAAC,EAMD,SAASI,EAAM,CAAE,SAAAC,EAAU,GAAGC,CAAM,EAA4D,CAC9F,OACEL,EAAgB,OAAf,CAAoB,YAAU,QAAS,GAAGK,EACxC,SAAAD,EACH,CAEJ,CAMA,SAASE,EAAa,CAAE,GAAGD,CAAM,EAA+D,CAC9F,OAAOL,EAAgB,UAAf,CAAuB,YAAU,gBAAiB,GAAGK,EAAO,CACtE,CAMA,SAASE,EAAa,CACpB,SAAAH,EACA,UAAAI,EACA,WAAAC,EACA,KAAAC,EAAO,QACP,GAAGL,CACL,EAOkB,CAChB,OACEJ,EAAgB,SAAf,CACC,UAAAD,EAAgB,UAAf,CACC,UAAWW,EACT,oNACAF,GAAY,OACd,EACA,YAAU,gBACZ,EACAR,EAAgB,UAAf,CACC,UAAWC,EAAqB,CAAE,UAAW,CAACO,GAAY,QAASD,CAAS,EAAG,KAAAE,CAAK,CAAC,EACrF,YAAU,gBACT,GAAGL,EAEH,UAAAD,EACDH,EAAgB,QAAf,CACC,UAAWW,EAAe,CACxB,UAAW,CAAC,gCAAiCH,GAAY,KAAK,EAC9D,KAAM,OACN,QAAS,OACX,CAAC,EACD,YAAU,cAEV,UAAAT,EAACF,EAAA,CAAM,UAAU,SAAS,EAC1BE,EAAC,QAAK,UAAU,UAAU,iBAAK,GACjC,GACF,GACF,CAEJ,CAMA,SAASa,EAAY,CAAE,UAAAL,EAAW,GAAGH,CAAM,EAAuC,CAChF,OACEL,EAAC,UACC,UAAWW,EAAG,yEAA0EH,CAAS,EACjG,YAAU,eACT,GAAGH,EACN,CAEJ,CAMA,SAASS,EAAU,CAAE,UAAAN,EAAW,GAAGH,CAAM,EAAuC,CAC9E,OAAOL,EAAC,QAAK,UAAWW,EAAG,YAAaH,CAAS,EAAG,YAAU,aAAc,GAAGH,EAAO,CACxF,CAMA,SAASU,EAAY,CAAE,UAAAP,EAAW,GAAGH,CAAM,EAAuC,CAChF,OACEL,EAAC,UACC,UAAWW,EAAG,iFAAkFH,CAAS,EACzG,YAAU,eACT,GAAGH,EACN,CAEJ,CAMA,SAASW,EAAW,CAAE,UAAAR,EAAW,GAAGH,CAAM,EAA6D,CACrG,OACEL,EAAgB,QAAf,CACC,UAAWW,EAAG,wCAAyCH,CAAS,EAChE,YAAU,cACT,GAAGH,EACN,CAEJ,CAMA,SAASY,EAAiB,CAAE,UAAAT,EAAW,GAAGH,CAAM,EAAmE,CACjH,OACEL,EAAgB,cAAf,CACC,UAAWW,EAAG,gCAAiCH,CAAS,EACxD,YAAU,oBACT,GAAGH,EACN,CAEJ,CAMA,SAASa,EAAW,CAClB,UAAAV,EACA,KAAAW,EACA,QAAAC,EAAU,UACV,GAAGf,CACL,EAGgB,CACd,OACEL,EAAgB,QAAf,CAAqB,UAAWY,EAAe,CAAE,UAAAJ,EAAW,KAAAW,EAAM,QAAAC,CAAQ,CAAC,EAAG,YAAU,cAAe,GAAGf,EAAO,CAEtH","sourcesContent":["import type { ComponentProps, JSX } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport * as SheetPrimitive from '@radix-ui/react-dialog';\nimport { XIcon } from 'lucide-react';\nimport { tv } from 'tailwind-variants';\n\nimport { buttonVariants } from '@/components/button';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Variant: SheetContent\n * -------------------------------------------------------------------------- */\n\nconst sheetContentVariants = tv({\n base: 'bg-background animation-ease-in-out data-[state=open]:animate-in data-[state=open]:animation-duration-500 data-[state=closed]:animate-out data-[state=closed]:animation-duration-500 fixed z-50 flex flex-col overflow-auto shadow-lg',\n variants: {\n side: {\n bottom:\n 'data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom inset-x-0 bottom-0 max-h-[80vh] border-t',\n left: 'data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',\n right:\n 'data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',\n top: 'data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top inset-x-0 top-0 max-h-[80vh] border-b',\n },\n },\n defaultVariants: {\n side: 'right',\n },\n});\n\n/* -----------------------------------------------------------------------------\n * Component: Sheet\n * -------------------------------------------------------------------------- */\n\nfunction Sheet({ children, ...props }: ComponentProps<typeof SheetPrimitive.Root>): JSX.Element {\n return (\n <SheetPrimitive.Root data-slot=\"sheet\" {...props}>\n {children}\n </SheetPrimitive.Root>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetTrigger\n * -------------------------------------------------------------------------- */\n\nfunction SheetTrigger({ ...props }: ComponentProps<typeof SheetPrimitive.Trigger>): JSX.Element {\n return <SheetPrimitive.Trigger data-slot=\"sheet-trigger\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetContent\n * -------------------------------------------------------------------------- */\n\nfunction SheetContent({\n children,\n className,\n classNames,\n side = 'right',\n ...props\n}: ComponentProps<typeof SheetPrimitive.Content> &\n VariantProps<typeof sheetContentVariants> & {\n classNames?: {\n close?: string;\n content?: string;\n overlay?: string;\n };\n }): JSX.Element {\n return (\n <SheetPrimitive.Portal>\n <SheetPrimitive.Overlay\n className={cn(\n 'bg-popover-overlay data-[state=open]:animate-fade-in data-[state=open]:animation-duration-500 data-[state=closed]:animate-fade-out data-[state=closed]:animation-duration-500 fixed inset-0 z-50 backdrop-blur-sm',\n classNames?.overlay,\n )}\n data-slot=\"sheet-overlay\"\n />\n <SheetPrimitive.Content\n className={sheetContentVariants({ className: [classNames?.content, className], side })}\n data-slot=\"sheet-content\"\n {...props}\n >\n {children}\n <SheetPrimitive.Close\n className={buttonVariants({\n className: ['absolute right-4 top-4 size-7', classNames?.close],\n size: 'icon',\n variant: 'ghost',\n })}\n data-slot=\"sheet-close\"\n >\n <XIcon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n </SheetPrimitive.Content>\n </SheetPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetHeader\n * -------------------------------------------------------------------------- */\n\nfunction SheetHeader({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <header\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n data-slot=\"sheet-header\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetBody\n * -------------------------------------------------------------------------- */\n\nfunction SheetBody({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return <main className={cn('px-6 py-2', className)} data-slot=\"sheet-body\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetFooter\n * -------------------------------------------------------------------------- */\n\nfunction SheetFooter({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <footer\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n data-slot=\"sheet-footer\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetTitle\n * -------------------------------------------------------------------------- */\n\nfunction SheetTitle({ className, ...props }: ComponentProps<typeof SheetPrimitive.Title>): JSX.Element {\n return (\n <SheetPrimitive.Title\n className={cn('text-foreground text-lg font-semibold', className)}\n data-slot=\"sheet-title\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetDescription\n * -------------------------------------------------------------------------- */\n\nfunction SheetDescription({ className, ...props }: ComponentProps<typeof SheetPrimitive.Description>): JSX.Element {\n return (\n <SheetPrimitive.Description\n className={cn('text-muted-foreground text-sm', className)}\n data-slot=\"sheet-description\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetClose\n * -------------------------------------------------------------------------- */\n\nfunction SheetClose({\n className,\n size,\n variant = 'outline',\n ...props\n}: ComponentProps<typeof SheetPrimitive.Close> & {\n size?: VariantProps<typeof buttonVariants>['size'];\n variant?: VariantProps<typeof buttonVariants>['variant'];\n}): JSX.Element {\n return (\n <SheetPrimitive.Close className={buttonVariants({ className, size, variant })} data-slot=\"sheet-close\" {...props} />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Sheet,\n SheetBody,\n SheetClose,\n SheetContent,\n SheetDescription,\n SheetFooter,\n SheetHeader,\n SheetTitle,\n SheetTrigger,\n};\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkTNP6NVCRcjs = require('./chunk-TNP6NVCR.cjs');var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _reactdialog = require('@radix-ui/react-dialog'); var e = _interopRequireWildcard(_reactdialog);var _lucidereact = require('lucide-react');var _tailwindvariants = require('tailwind-variants');var _jsxruntime = require('react/jsx-runtime');var h=_tailwindvariants.tv.call(void 0, {base:"bg-background animation-ease-in-out data-[state=open]:animate-in data-[state=open]:animation-duration-500 data-[state=closed]:animate-out data-[state=closed]:animation-duration-500 fixed z-50 flex flex-col overflow-auto shadow-lg",variants:{side:{bottom:"data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom inset-x-0 bottom-0 max-h-[80vh] border-t",left:"data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",right:"data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",top:"data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top inset-x-0 top-0 max-h-[80vh] border-b"}},defaultVariants:{side:"right"}});function S({children:t,...o}){return _jsxruntime.jsx.call(void 0, e.Root,{"data-slot":"sheet",...o,children:t})}function P({...t}){return _jsxruntime.jsx.call(void 0, e.Trigger,{"data-slot":"sheet-trigger",...t})}function g({children:t,className:o,classNames:n,side:s="right",...m}){return _jsxruntime.jsxs.call(void 0, e.Portal,{children:[_jsxruntime.jsx.call(void 0, e.Overlay,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-popover-overlay data-[state=open]:animate-fade-in data-[state=open]:animation-duration-500 data-[state=closed]:animate-fade-out data-[state=closed]:animation-duration-500 fixed inset-0 z-50 backdrop-blur-sm",_optionalChain([n, 'optionalAccess', _ => _.overlay])),"data-slot":"sheet-overlay"}),_jsxruntime.jsxs.call(void 0, e.Content,{className:h({className:[_optionalChain([n, 'optionalAccess', _2 => _2.content]),o],side:s}),"data-slot":"sheet-content",...m,children:[t,_jsxruntime.jsxs.call(void 0, e.Close,{className:_chunkTNP6NVCRcjs.a.call(void 0, {className:["absolute right-4 top-4 size-7",_optionalChain([n, 'optionalAccess', _3 => _3.close])],size:"icon",variant:"ghost"}),"data-slot":"sheet-close",children:[_jsxruntime.jsx.call(void 0, _lucidereact.XIcon,{className:"size-4"}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Close"})]})]})]})}function x({className:t,...o}){return _jsxruntime.jsx.call(void 0, "header",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),"data-slot":"sheet-header",...o})}function b({className:t,...o}){return _jsxruntime.jsx.call(void 0, "main",{className:_chunkSMJEDCFPcjs.a.call(void 0, "px-6 py-2",t),"data-slot":"sheet-body",...o})}function y({className:t,...o}){return _jsxruntime.jsx.call(void 0, "footer",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),"data-slot":"sheet-footer",...o})}function C({className:t,...o}){return _jsxruntime.jsx.call(void 0, e.Title,{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-foreground text-lg font-semibold",t),"data-slot":"sheet-title",...o})}function N({className:t,...o}){return _jsxruntime.jsx.call(void 0, e.Description,{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-muted-foreground text-sm",t),"data-slot":"sheet-description",...o})}function X({className:t,size:o,variant:n="outline",...s}){return _jsxruntime.jsx.call(void 0, e.Close,{className:_chunkTNP6NVCRcjs.a.call(void 0, {className:t,size:o,variant:n}),"data-slot":"sheet-close",...s})}exports.a = S; exports.b = P; exports.c = g; exports.d = x; exports.e = b; exports.f = y; exports.g = C; exports.h = N; exports.i = X;
|
|
2
|
+
//# sourceMappingURL=chunk-ASI3MMOG.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-ASI3MMOG.cjs","../src/components/sheet.tsx"],"names":["sheetContentVariants","tv","Sheet","children","props","jsx","SheetTrigger","SheetContent","className","classNames","side","jsxs","cn","buttonVariants","XIcon","SheetHeader","SheetBody","SheetFooter","SheetTitle","SheetDescription","SheetClose","size","variant"],"mappings":"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","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-ASI3MMOG.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport * as SheetPrimitive from '@radix-ui/react-dialog';\nimport { XIcon } from 'lucide-react';\nimport { tv } from 'tailwind-variants';\n\nimport { buttonVariants } from '@/components/button';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Variant: SheetContent\n * -------------------------------------------------------------------------- */\n\nconst sheetContentVariants = tv({\n base: 'bg-background animation-ease-in-out data-[state=open]:animate-in data-[state=open]:animation-duration-500 data-[state=closed]:animate-out data-[state=closed]:animation-duration-500 fixed z-50 flex flex-col overflow-auto shadow-lg',\n variants: {\n side: {\n bottom:\n 'data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom inset-x-0 bottom-0 max-h-[80vh] border-t',\n left: 'data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',\n right:\n 'data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',\n top: 'data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top inset-x-0 top-0 max-h-[80vh] border-b',\n },\n },\n defaultVariants: {\n side: 'right',\n },\n});\n\n/* -----------------------------------------------------------------------------\n * Component: Sheet\n * -------------------------------------------------------------------------- */\n\nfunction Sheet({ children, ...props }: ComponentProps<typeof SheetPrimitive.Root>): JSX.Element {\n return (\n <SheetPrimitive.Root data-slot=\"sheet\" {...props}>\n {children}\n </SheetPrimitive.Root>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetTrigger\n * -------------------------------------------------------------------------- */\n\nfunction SheetTrigger({ ...props }: ComponentProps<typeof SheetPrimitive.Trigger>): JSX.Element {\n return <SheetPrimitive.Trigger data-slot=\"sheet-trigger\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetContent\n * -------------------------------------------------------------------------- */\n\nfunction SheetContent({\n children,\n className,\n classNames,\n side = 'right',\n ...props\n}: ComponentProps<typeof SheetPrimitive.Content> &\n VariantProps<typeof sheetContentVariants> & {\n classNames?: {\n close?: string;\n content?: string;\n overlay?: string;\n };\n }): JSX.Element {\n return (\n <SheetPrimitive.Portal>\n <SheetPrimitive.Overlay\n className={cn(\n 'bg-popover-overlay data-[state=open]:animate-fade-in data-[state=open]:animation-duration-500 data-[state=closed]:animate-fade-out data-[state=closed]:animation-duration-500 fixed inset-0 z-50 backdrop-blur-sm',\n classNames?.overlay,\n )}\n data-slot=\"sheet-overlay\"\n />\n <SheetPrimitive.Content\n className={sheetContentVariants({ className: [classNames?.content, className], side })}\n data-slot=\"sheet-content\"\n {...props}\n >\n {children}\n <SheetPrimitive.Close\n className={buttonVariants({\n className: ['absolute right-4 top-4 size-7', classNames?.close],\n size: 'icon',\n variant: 'ghost',\n })}\n data-slot=\"sheet-close\"\n >\n <XIcon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n </SheetPrimitive.Content>\n </SheetPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetHeader\n * -------------------------------------------------------------------------- */\n\nfunction SheetHeader({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <header\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n data-slot=\"sheet-header\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetBody\n * -------------------------------------------------------------------------- */\n\nfunction SheetBody({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return <main className={cn('px-6 py-2', className)} data-slot=\"sheet-body\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetFooter\n * -------------------------------------------------------------------------- */\n\nfunction SheetFooter({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <footer\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n data-slot=\"sheet-footer\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetTitle\n * -------------------------------------------------------------------------- */\n\nfunction SheetTitle({ className, ...props }: ComponentProps<typeof SheetPrimitive.Title>): JSX.Element {\n return (\n <SheetPrimitive.Title\n className={cn('text-foreground text-lg font-semibold', className)}\n data-slot=\"sheet-title\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetDescription\n * -------------------------------------------------------------------------- */\n\nfunction SheetDescription({ className, ...props }: ComponentProps<typeof SheetPrimitive.Description>): JSX.Element {\n return (\n <SheetPrimitive.Description\n className={cn('text-muted-foreground text-sm', className)}\n data-slot=\"sheet-description\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetClose\n * -------------------------------------------------------------------------- */\n\nfunction SheetClose({\n className,\n size,\n variant = 'outline',\n ...props\n}: ComponentProps<typeof SheetPrimitive.Close> & {\n size?: VariantProps<typeof buttonVariants>['size'];\n variant?: VariantProps<typeof buttonVariants>['variant'];\n}): JSX.Element {\n return (\n <SheetPrimitive.Close className={buttonVariants({ className, size, variant })} data-slot=\"sheet-close\" {...props} />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Sheet,\n SheetBody,\n SheetClose,\n SheetContent,\n SheetDescription,\n SheetFooter,\n SheetHeader,\n SheetTitle,\n SheetTrigger,\n};\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"./chunk-OKUFCFYT.js";import{jsx as o}from"react/jsx-runtime";function l({className:t,...e}){return o("div",{className:"relative w-full overflow-auto","data-slot":"table-cotainer",children:o("table",{className:a("w-full caption-bottom text-sm",t),"data-slot":"table",...e})})}function r({className:t,...e}){return o("thead",{className:a("*:has-aria-expanded:bg-transparent *:border-b",t),"data-slot":"table-header",...e})}function d({className:t,...e}){return o("tbody",{className:a("*:last-child:border-0",t),"data-slot":"table-body",...e})}function s({className:t,...e}){return o("tfoot",{className:a("bg-muted/50 *:has-aria-expanded:bg-transparent font-medium *:border-b-0 *:border-t",t),"data-slot":"table-footer",...e})}function m({className:t,...e}){return o("tr",{className:a("hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",t),"data-slot":"table-row",...e})}function b({className:t,...e}){return o("th",{className:a("p-2 text-left align-middle font-medium",t),"data-slot":"table-head",...e})}function p({className:t,...e}){return o("td",{className:a("p-2 align-middle",t),"data-slot":"table-cell",...e})}function i({className:t,...e}){return o("caption",{className:a("text-muted-foreground mt-4 text-sm",t),"data-slot":"table-caption",...e})}export{l as a,r as b,d as c,s as d,m as e,b as f,p as g,i as h};
|
|
2
|
+
//# sourceMappingURL=chunk-BWJ6X4FP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/table.tsx"],"names":["jsx","Table","className","props","cn","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption"],"mappings":"mCAWM,cAAAA,MAAA,oBAHN,SAASC,EAAM,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAyC,CAC5E,OACEH,EAAC,OAAI,UAAU,gCAAgC,YAAU,iBACvD,SAAAA,EAAC,SAAM,UAAWI,EAAG,gCAAiCF,CAAS,EAAG,YAAU,QAAS,GAAGC,EAAO,EACjG,CAEJ,CAMA,SAASE,EAAY,CAAE,UAAAH,EAAW,GAAGC,CAAM,EAAyC,CAClF,OACEH,EAAC,SACC,UAAWI,EAAG,gDAAiDF,CAAS,EACxE,YAAU,eACT,GAAGC,EACN,CAEJ,CAMA,SAASG,EAAU,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAyC,CAChF,OAAOH,EAAC,SAAM,UAAWI,EAAG,wBAAyBF,CAAS,EAAG,YAAU,aAAc,GAAGC,EAAO,CACrG,CAMA,SAASI,EAAY,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAyC,CAClF,OACEH,EAAC,SACC,UAAWI,EAAG,qFAAsFF,CAAS,EAC7G,YAAU,eACT,GAAGC,EACN,CAEJ,CAMA,SAASK,EAAS,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAAsC,CAC5E,OACEH,EAAC,MACC,UAAWI,EACT,4GACAF,CACF,EACA,YAAU,YACT,GAAGC,EACN,CAEJ,CAMA,SAASM,EAAU,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAsC,CAC7E,OAAOH,EAAC,MAAG,UAAWI,EAAG,yCAA0CF,CAAS,EAAG,YAAU,aAAc,GAAGC,EAAO,CACnH,CAMA,SAASO,EAAU,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAsC,CAC7E,OAAOH,EAAC,MAAG,UAAWI,EAAG,mBAAoBF,CAAS,EAAG,YAAU,aAAc,GAAGC,EAAO,CAC7F,CAMA,SAASQ,EAAa,CAAE,UAAAT,EAAW,GAAGC,CAAM,EAA2C,CACrF,OACEH,EAAC,WAAQ,UAAWI,EAAG,qCAAsCF,CAAS,EAAG,YAAU,gBAAiB,GAAGC,EAAO,CAElH","sourcesContent":["import type { ComponentProps, JSX } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Table\n * -------------------------------------------------------------------------- */\n\nfunction Table({ className, ...props }: ComponentProps<'table'>): JSX.Element {\n return (\n <div className=\"relative w-full overflow-auto\" data-slot=\"table-cotainer\">\n <table className={cn('w-full caption-bottom text-sm', className)} data-slot=\"table\" {...props} />\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TableHeader\n * -------------------------------------------------------------------------- */\n\nfunction TableHeader({ className, ...props }: ComponentProps<'thead'>): JSX.Element {\n return (\n <thead\n className={cn('*:has-aria-expanded:bg-transparent *:border-b', className)}\n data-slot=\"table-header\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TableBody\n * -------------------------------------------------------------------------- */\n\nfunction TableBody({ className, ...props }: ComponentProps<'tbody'>): JSX.Element {\n return <tbody className={cn('*:last-child:border-0', className)} data-slot=\"table-body\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TableFooter\n * -------------------------------------------------------------------------- */\n\nfunction TableFooter({ className, ...props }: ComponentProps<'tfoot'>): JSX.Element {\n return (\n <tfoot\n className={cn('bg-muted/50 *:has-aria-expanded:bg-transparent font-medium *:border-b-0 *:border-t', className)}\n data-slot=\"table-footer\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TableRow\n * -------------------------------------------------------------------------- */\n\nfunction TableRow({ className, ...props }: ComponentProps<'tr'>): JSX.Element {\n return (\n <tr\n className={cn(\n 'hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors',\n className,\n )}\n data-slot=\"table-row\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TableHead\n * -------------------------------------------------------------------------- */\n\nfunction TableHead({ className, ...props }: ComponentProps<'th'>): JSX.Element {\n return <th className={cn('p-2 text-left align-middle font-medium', className)} data-slot=\"table-head\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TableCell\n * -------------------------------------------------------------------------- */\n\nfunction TableCell({ className, ...props }: ComponentProps<'td'>): JSX.Element {\n return <td className={cn('p-2 align-middle', className)} data-slot=\"table-cell\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TableCaption\n * -------------------------------------------------------------------------- */\n\nfunction TableCaption({ className, ...props }: ComponentProps<'caption'>): JSX.Element {\n return (\n <caption className={cn('text-muted-foreground mt-4 text-sm', className)} data-slot=\"table-caption\" {...props} />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{a as o}from"./chunk-OKUFCFYT.js";import*as i from"@radix-ui/react-slider";import{useMemo as f}from"react";import{jsx as l,jsxs as c}from"react/jsx-runtime";function p({className:n,defaultValue:r,value:t,min:e=0,max:a=100,...d}){let s=f(()=>Array.isArray(t)?t:Array.isArray(r)?r:[e,a],[t,r,e,a]);return c(i.Root,{className:o("data-disabled:opacity-50 relative flex w-full touch-none select-none items-center data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",n),"data-slot":"slider",defaultValue:r,max:a,min:e,value:t,...d,children:[l(i.Track,{className:"bg-input relative w-full grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1 data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-1","data-slot":"slider-track",children:l(i.Range,{className:"bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full","data-slot":"slider-range"})}),Array.from({length:s.length},(u,m)=>l(i.Thumb,{"aria-label":"Volume",className:o("border-primary bg-primary after:bg-background active:not-data-disabled:after:size-1 focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 outline-hidden flex size-4 items-center justify-center rounded-full border-2 shadow-sm after:size-full after:rounded-full after:transition-[width,height] focus-visible:ring-4"),"data-slot":"slider-thumb"},m))]})}export{p as a};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-GIPFEUMD.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/slider.tsx"],"names":["SliderPrimitive","useMemo","jsx","jsxs","Slider","className","defaultValue","value","min","max","props","_values","cn","_","index"],"mappings":"wCAAA,UAAYA,MAAqB,yBACjC,OAAwC,WAAAC,MAAe,QAyBnD,OAgBI,OAAAC,EAhBJ,QAAAC,MAAA,oBAjBJ,SAASC,EAAO,CACd,UAAAC,EACA,aAAAC,EACA,MAAAC,EACA,IAAAC,EAAM,EACN,IAAAC,EAAM,IACN,GAAGC,CACL,EAA6D,CAC3D,IAAMC,EAAUV,EAAQ,IAClB,MAAM,QAAQM,CAAK,EACdA,EAGF,MAAM,QAAQD,CAAY,EAAIA,EAAe,CAACE,EAAKC,CAAG,EAC5D,CAACF,EAAOD,EAAcE,EAAKC,CAAG,CAAC,EAElC,OACEN,EAAiB,OAAhB,CACC,UAAWS,EACT,oOACAP,CACF,EACA,YAAU,SACV,aAAcC,EACd,IAAKG,EACL,IAAKD,EACL,MAAOD,EACN,GAAGG,EAEJ,UAAAR,EAAiB,QAAhB,CACC,UAAU,uMACV,YAAU,eAEV,SAAAA,EAAiB,QAAhB,CACC,UAAU,8FACV,YAAU,eACZ,EACF,
|
|
1
|
+
{"version":3,"sources":["../src/components/slider.tsx"],"names":["SliderPrimitive","useMemo","jsx","jsxs","Slider","className","defaultValue","value","min","max","props","_values","cn","_","index"],"mappings":"wCAAA,UAAYA,MAAqB,yBACjC,OAAwC,WAAAC,MAAe,QAyBnD,OAgBI,OAAAC,EAhBJ,QAAAC,MAAA,oBAjBJ,SAASC,EAAO,CACd,UAAAC,EACA,aAAAC,EACA,MAAAC,EACA,IAAAC,EAAM,EACN,IAAAC,EAAM,IACN,GAAGC,CACL,EAA6D,CAC3D,IAAMC,EAAUV,EAAQ,IAClB,MAAM,QAAQM,CAAK,EACdA,EAGF,MAAM,QAAQD,CAAY,EAAIA,EAAe,CAACE,EAAKC,CAAG,EAC5D,CAACF,EAAOD,EAAcE,EAAKC,CAAG,CAAC,EAElC,OACEN,EAAiB,OAAhB,CACC,UAAWS,EACT,oOACAP,CACF,EACA,YAAU,SACV,aAAcC,EACd,IAAKG,EACL,IAAKD,EACL,MAAOD,EACN,GAAGG,EAEJ,UAAAR,EAAiB,QAAhB,CACC,UAAU,uMACV,YAAU,eAEV,SAAAA,EAAiB,QAAhB,CACC,UAAU,8FACV,YAAU,eACZ,EACF,EACC,MAAM,KAAK,CAAE,OAAQS,EAAQ,MAAO,EAAG,CAACE,EAAGC,IAC1CZ,EAAiB,QAAhB,CAEC,aAAW,SACX,UAAWU,EACT,qUACF,EACA,YAAU,gBALLE,CAMP,CACD,GACH,CAEJ","sourcesContent":["import * as SliderPrimitive from '@radix-ui/react-slider';\nimport { type ComponentProps, type JSX, useMemo } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Slider\n * -------------------------------------------------------------------------- */\n\nfunction Slider({\n className,\n defaultValue,\n value,\n min = 0,\n max = 100,\n ...props\n}: ComponentProps<typeof SliderPrimitive.Root>): JSX.Element {\n const _values = useMemo(() => {\n if (Array.isArray(value)) {\n return value;\n }\n\n return Array.isArray(defaultValue) ? defaultValue : [min, max];\n }, [value, defaultValue, min, max]);\n\n return (\n <SliderPrimitive.Root\n className={cn(\n 'data-disabled:opacity-50 relative flex w-full touch-none select-none items-center data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col',\n className,\n )}\n data-slot=\"slider\"\n defaultValue={defaultValue}\n max={max}\n min={min}\n value={value}\n {...props}\n >\n <SliderPrimitive.Track\n className=\"bg-input relative w-full grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1 data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-1\"\n data-slot=\"slider-track\"\n >\n <SliderPrimitive.Range\n className=\"bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full\"\n data-slot=\"slider-range\"\n />\n </SliderPrimitive.Track>\n {Array.from({ length: _values.length }, (_, index) => (\n <SliderPrimitive.Thumb\n key={index}\n aria-label=\"Volume\"\n className={cn(\n 'border-primary bg-primary after:bg-background active:not-data-disabled:after:size-1 focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 outline-hidden flex size-4 items-center justify-center rounded-full border-2 shadow-sm after:size-full after:rounded-full after:transition-[width,height] focus-visible:ring-4',\n )}\n data-slot=\"slider-thumb\"\n />\n ))}\n </SliderPrimitive.Root>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Slider };\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkIJRHIFOZcjs = require('./chunk-IJRHIFOZ.cjs');var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _reactvisuallyhidden = require('@radix-ui/react-visually-hidden');var _cmdk = require('cmdk');var _lucidereact = require('lucide-react');var _jsxruntime = require('react/jsx-runtime');function c({className:e,...o}){return _jsxruntime.jsx.call(void 0, _cmdk.Command,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-popover text-popover-foreground outline-hidden flex flex-col overflow-hidden rounded-[inherit]",e),"data-slot":"command",...o})}function h({children:e,...o}){return _jsxruntime.jsx.call(void 0, _chunkIJRHIFOZcjs.a,{"data-slot":"command-dialog",...o,children:_jsxruntime.jsxs.call(void 0, _chunkIJRHIFOZcjs.c,{className:"rounded-t-lg sm:rounded-lg","data-slot":"command-dialog-content",children:[_jsxruntime.jsxs.call(void 0, _reactvisuallyhidden.VisuallyHidden,{children:[_jsxruntime.jsx.call(void 0, _chunkIJRHIFOZcjs.g,{children:"Search command"}),_jsxruntime.jsx.call(void 0, _chunkIJRHIFOZcjs.h,{children:"Use the search bar to find and select the desired command."})]}),_jsxruntime.jsx.call(void 0, c,{className:"[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input]]:h-12",children:e})]})})}function y({className:e,...o}){return _jsxruntime.jsxs.call(void 0, "div",{className:"flex items-center gap-2 border-b px-3","cmdk-input-wrapper":"","data-slot":"command-input-wrapper",children:[_jsxruntime.jsx.call(void 0, _lucidereact.SearchIcon,{className:"size-4 shrink-0 opacity-50"}),_jsxruntime.jsx.call(void 0, _cmdk.Command.Input,{className:_chunkSMJEDCFPcjs.a.call(void 0, "placeholder:text-muted-foreground outline-hidden flex h-10 w-full text-base disabled:opacity-50 md:text-sm",e),"data-slot":"command-input",...o})]})}function v({className:e,...o}){return _jsxruntime.jsx.call(void 0, _cmdk.Command.List,{className:_chunkSMJEDCFPcjs.a.call(void 0, "max-h-75 overflow-y-auto overflow-x-hidden",e),"data-slot":"command-list",...o})}function P({className:e,...o}){return _jsxruntime.jsx.call(void 0, _cmdk.Command.Empty,{className:_chunkSMJEDCFPcjs.a.call(void 0, "py-6 text-center text-sm",e),"data-slot":"command-empty",...o})}function S({className:e,...o}){return _jsxruntime.jsx.call(void 0, _cmdk.Command.Group,{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),"data-slot":"command-group",...o})}function k({className:e,...o}){return _jsxruntime.jsx.call(void 0, _cmdk.Command.Separator,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-border -mx-1 h-px",e),"data-slot":"command-separator",...o})}function _({className:e,...o}){return _jsxruntime.jsx.call(void 0, _cmdk.Command.Item,{className:_chunkSMJEDCFPcjs.a.call(void 0, "aria-selected:bg-accent aria-selected:text-accent-foreground outline-hidden group/command-item [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default select-none items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",e),"data-slot":"command-item",...o})}function E({className:e,...o}){return _jsxruntime.jsx.call(void 0, _cmdk.Command.Loading,{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex justify-center p-2",e),"data-slot":"command-loading",...o})}function N({className:e,...o}){return _jsxruntime.jsx.call(void 0, "span",{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-muted-foreground ml-auto text-xs tracking-widest group-aria-selected/command-item:text-current",e),"data-slot":"command-shortcut",...o})}exports.a = c; exports.b = h; exports.c = y; exports.d = v; exports.e = P; exports.f = S; exports.g = k; exports.h = _; exports.i = E; exports.j = N;
|
|
2
|
+
//# sourceMappingURL=chunk-HH6A66HR.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-K3WFUR2W.cjs","../src/components/command.tsx"],"names":["className","CommandPrimitive","cn","props","CommandDialog","children","Dialog","DialogContent","VisuallyHidden","jsx","DialogTitle","CommandInput","SearchIcon","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","CommandLoading","CommandShortcut"],"mappings":"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","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-K3WFUR2W.cjs","sourcesContent":[null,"'use client';\n\nimport type { ComponentProps, JSX } from 'react';\n\nimport { VisuallyHidden } from '@radix-ui/react-visually-hidden';\nimport { Command as CommandPrimitive } from 'cmdk';\nimport { SearchIcon } from 'lucide-react';\n\nimport { Dialog, DialogContent, DialogDescription, DialogTitle } from '@/components/dialog';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Command\n * -------------------------------------------------------------------------- */\n\nfunction Command({ className, ...props }: ComponentProps<typeof CommandPrimitive>): JSX.Element {\n return (\n <CommandPrimitive\n className={cn(\n 'bg-popover text-popover-foreground outline-hidden flex flex-col overflow-hidden rounded-[inherit]',\n className,\n )}\n data-slot=\"command\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandDialog\n * -------------------------------------------------------------------------- */\n\nfunction CommandDialog({ children, ...props }: ComponentProps<typeof Dialog>): JSX.Element {\n return (\n <Dialog data-slot=\"command-dialog\" {...props}>\n <DialogContent className=\"rounded-t-lg sm:rounded-lg\" data-slot=\"command-dialog-content\">\n <VisuallyHidden>\n <DialogTitle>Search command</DialogTitle>\n <DialogDescription>Use the search bar to find and select the desired command.</DialogDescription>\n </VisuallyHidden>\n <Command className=\"[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input]]:h-12\">\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandInput\n * -------------------------------------------------------------------------- */\n\nfunction CommandInput({ className, ...props }: ComponentProps<typeof CommandPrimitive.Input>): JSX.Element {\n return (\n <div className=\"flex items-center gap-2 border-b px-3\" cmdk-input-wrapper=\"\" data-slot=\"command-input-wrapper\">\n <SearchIcon className=\"size-4 shrink-0 opacity-50\" />\n <CommandPrimitive.Input\n className={cn(\n 'placeholder:text-muted-foreground outline-hidden flex h-10 w-full text-base disabled:opacity-50 md:text-sm',\n className,\n )}\n data-slot=\"command-input\"\n {...props}\n />\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandList\n * -------------------------------------------------------------------------- */\n\nfunction CommandList({ className, ...props }: ComponentProps<typeof CommandPrimitive.List>): JSX.Element {\n return (\n <CommandPrimitive.List\n className={cn('max-h-75 overflow-y-auto overflow-x-hidden', className)}\n data-slot=\"command-list\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandEmpty\n * -------------------------------------------------------------------------- */\n\nfunction CommandEmpty({ className, ...props }: ComponentProps<typeof CommandPrimitive.Empty>): JSX.Element {\n return (\n <CommandPrimitive.Empty\n className={cn('py-6 text-center text-sm', className)}\n data-slot=\"command-empty\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandGroup\n * -------------------------------------------------------------------------- */\n\nfunction CommandGroup({ className, ...props }: ComponentProps<typeof CommandPrimitive.Group>): JSX.Element {\n return (\n <CommandPrimitive.Group\n className={cn(\n 'text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium',\n className,\n )}\n data-slot=\"command-group\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandSeparator\n * -------------------------------------------------------------------------- */\n\nfunction CommandSeparator({ className, ...props }: ComponentProps<typeof CommandPrimitive.Separator>): JSX.Element {\n return (\n <CommandPrimitive.Separator\n className={cn('bg-border -mx-1 h-px', className)}\n data-slot=\"command-separator\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandItem\n * -------------------------------------------------------------------------- */\n\nfunction CommandItem({ className, ...props }: ComponentProps<typeof CommandPrimitive.Item>): JSX.Element {\n return (\n <CommandPrimitive.Item\n className={cn(\n \"aria-selected:bg-accent aria-selected:text-accent-foreground outline-hidden group/command-item [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default select-none items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0\",\n className,\n )}\n data-slot=\"command-item\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandLoading\n * -------------------------------------------------------------------------- */\n\nfunction CommandLoading({ className, ...props }: ComponentProps<typeof CommandPrimitive.Loading>): JSX.Element {\n return (\n <CommandPrimitive.Loading\n className={cn('flex justify-center p-2', className)}\n data-slot=\"command-loading\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandShortcut\n * -------------------------------------------------------------------------- */\n\nfunction CommandShortcut({ className, ...props }: ComponentProps<'span'>): JSX.Element {\n return (\n <span\n className={cn(\n 'text-muted-foreground ml-auto text-xs tracking-widest group-aria-selected/command-item:text-current',\n className,\n )}\n data-slot=\"command-shortcut\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Command,\n CommandDialog,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandLoading,\n CommandSeparator,\n CommandShortcut,\n};\n"]}
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-HH6A66HR.cjs","../src/components/command.tsx"],"names":["className","CommandPrimitive","cn","props","CommandDialog","children","Dialog","DialogContent","VisuallyHidden","jsx","DialogTitle","CommandInput","SearchIcon","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","CommandLoading","CommandShortcut"],"mappings":"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","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-HH6A66HR.cjs","sourcesContent":[null,"'use client';\n\nimport type { ComponentProps, JSX } from 'react';\n\nimport { VisuallyHidden } from '@radix-ui/react-visually-hidden';\nimport { Command as CommandPrimitive } from 'cmdk';\nimport { SearchIcon } from 'lucide-react';\n\nimport { Dialog, DialogContent, DialogDescription, DialogTitle } from '@/components/dialog';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Command\n * -------------------------------------------------------------------------- */\n\nfunction Command({ className, ...props }: ComponentProps<typeof CommandPrimitive>): JSX.Element {\n return (\n <CommandPrimitive\n className={cn(\n 'bg-popover text-popover-foreground outline-hidden flex flex-col overflow-hidden rounded-[inherit]',\n className,\n )}\n data-slot=\"command\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandDialog\n * -------------------------------------------------------------------------- */\n\nfunction CommandDialog({ children, ...props }: ComponentProps<typeof Dialog>): JSX.Element {\n return (\n <Dialog data-slot=\"command-dialog\" {...props}>\n <DialogContent className=\"rounded-t-lg sm:rounded-lg\" data-slot=\"command-dialog-content\">\n <VisuallyHidden>\n <DialogTitle>Search command</DialogTitle>\n <DialogDescription>Use the search bar to find and select the desired command.</DialogDescription>\n </VisuallyHidden>\n <Command className=\"[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input]]:h-12\">\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandInput\n * -------------------------------------------------------------------------- */\n\nfunction CommandInput({ className, ...props }: ComponentProps<typeof CommandPrimitive.Input>): JSX.Element {\n return (\n <div className=\"flex items-center gap-2 border-b px-3\" cmdk-input-wrapper=\"\" data-slot=\"command-input-wrapper\">\n <SearchIcon className=\"size-4 shrink-0 opacity-50\" />\n <CommandPrimitive.Input\n className={cn(\n 'placeholder:text-muted-foreground outline-hidden flex h-10 w-full text-base disabled:opacity-50 md:text-sm',\n className,\n )}\n data-slot=\"command-input\"\n {...props}\n />\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandList\n * -------------------------------------------------------------------------- */\n\nfunction CommandList({ className, ...props }: ComponentProps<typeof CommandPrimitive.List>): JSX.Element {\n return (\n <CommandPrimitive.List\n className={cn('max-h-75 overflow-y-auto overflow-x-hidden', className)}\n data-slot=\"command-list\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandEmpty\n * -------------------------------------------------------------------------- */\n\nfunction CommandEmpty({ className, ...props }: ComponentProps<typeof CommandPrimitive.Empty>): JSX.Element {\n return (\n <CommandPrimitive.Empty\n className={cn('py-6 text-center text-sm', className)}\n data-slot=\"command-empty\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandGroup\n * -------------------------------------------------------------------------- */\n\nfunction CommandGroup({ className, ...props }: ComponentProps<typeof CommandPrimitive.Group>): JSX.Element {\n return (\n <CommandPrimitive.Group\n className={cn(\n 'text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium',\n className,\n )}\n data-slot=\"command-group\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandSeparator\n * -------------------------------------------------------------------------- */\n\nfunction CommandSeparator({ className, ...props }: ComponentProps<typeof CommandPrimitive.Separator>): JSX.Element {\n return (\n <CommandPrimitive.Separator\n className={cn('bg-border -mx-1 h-px', className)}\n data-slot=\"command-separator\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandItem\n * -------------------------------------------------------------------------- */\n\nfunction CommandItem({ className, ...props }: ComponentProps<typeof CommandPrimitive.Item>): JSX.Element {\n return (\n <CommandPrimitive.Item\n className={cn(\n \"aria-selected:bg-accent aria-selected:text-accent-foreground outline-hidden group/command-item [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default select-none items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0\",\n className,\n )}\n data-slot=\"command-item\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandLoading\n * -------------------------------------------------------------------------- */\n\nfunction CommandLoading({ className, ...props }: ComponentProps<typeof CommandPrimitive.Loading>): JSX.Element {\n return (\n <CommandPrimitive.Loading\n className={cn('flex justify-center p-2', className)}\n data-slot=\"command-loading\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandShortcut\n * -------------------------------------------------------------------------- */\n\nfunction CommandShortcut({ className, ...props }: ComponentProps<'span'>): JSX.Element {\n return (\n <span\n className={cn(\n 'text-muted-foreground ml-auto text-xs tracking-widest group-aria-selected/command-item:text-current',\n className,\n )}\n data-slot=\"command-shortcut\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Command,\n CommandDialog,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandLoading,\n CommandSeparator,\n CommandShortcut,\n};\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkTNP6NVCRcjs = require('./chunk-TNP6NVCR.cjs');var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _reactdialog = require('@radix-ui/react-dialog'); var o = _interopRequireWildcard(_reactdialog);var _lucidereact = require('lucide-react');var _jsxruntime = require('react/jsx-runtime');function f({...t}){return _jsxruntime.jsx.call(void 0, o.Root,{"data-slot":"dialog",...t})}function c({...t}){return _jsxruntime.jsx.call(void 0, o.Trigger,{"data-slot":"dialog-trigger",...t})}function u({children:t,className:e,classNames:r,...n}){return _jsxruntime.jsxs.call(void 0, o.Portal,{children:[_jsxruntime.jsx.call(void 0, o.Overlay,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-popover-overlay data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 backdrop-blur-sm",_optionalChain([r, 'optionalAccess', _ => _.overlay])),"data-slot":"dialog-overlay"}),_jsxruntime.jsx.call(void 0, o.Content,{className:_chunkSMJEDCFPcjs.a.call(void 0, "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 fixed inset-0 z-50 grid grid-rows-[1fr_auto] justify-items-center overflow-auto sm:grid-rows-[1fr_auto_3fr] sm:p-4",_optionalChain([r, 'optionalAccess', _2 => _2.wrapper])),"data-slot":"dialog-content-wrapper",...n,children:_jsxruntime.jsxs.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "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",_optionalChain([r, 'optionalAccess', _3 => _3.content]),e),"data-slot":"dialog-content",children:[t,_jsxruntime.jsxs.call(void 0, o.Close,{className:_chunkTNP6NVCRcjs.a.call(void 0, {className:["absolute right-2.5 top-2.5 size-7",_optionalChain([r, 'optionalAccess', _4 => _4.close])],size:"icon",variant:"ghost"}),"data-slot":"dialog-close",children:[_jsxruntime.jsx.call(void 0, _lucidereact.XIcon,{className:"size-4"}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Close"})]})]})})]})}function v({className:t,...e}){return _jsxruntime.jsx.call(void 0, "header",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex shrink-0 flex-col gap-1.5 px-6 pb-2 pt-6 text-center sm:text-left",t),"data-slot":"dialog-header",...e})}function P({className:t,...e}){return _jsxruntime.jsx.call(void 0, "main",{className:_chunkSMJEDCFPcjs.a.call(void 0, "overflow-auto px-6 py-2",t),"data-slot":"dialog-body",...e})}function D({className:t,...e}){return _jsxruntime.jsx.call(void 0, "footer",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-2 sm:flex-row sm:justify-end",t),"data-slot":"dialog-footer",...e})}function x({className:t,...e}){return _jsxruntime.jsx.call(void 0, o.Title,{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-lg font-semibold leading-none tracking-tight",t),"data-slot":"dialog-title",...e})}function y({className:t,...e}){return _jsxruntime.jsx.call(void 0, o.Description,{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-muted-foreground text-sm",t),"data-slot":"dialog-description",...e})}function C({className:t,size:e,variant:r="outline",...n}){return _jsxruntime.jsx.call(void 0, o.Close,{className:_chunkTNP6NVCRcjs.a.call(void 0, {className:t,size:e,variant:r}),"data-slot":"dialog-close",...n})}exports.a = f; exports.b = c; exports.c = u; exports.d = v; exports.e = P; exports.f = D; exports.g = x; exports.h = y; exports.i = C;
|
|
2
|
+
//# sourceMappingURL=chunk-IJRHIFOZ.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-IJRHIFOZ.cjs","../src/components/dialog.tsx"],"names":["Dialog","props","jsx","DialogTrigger","DialogContent","children","className","classNames","jsxs","cn","buttonVariants","XIcon","DialogHeader","DialogBody","DialogFooter","DialogTitle","DialogDescription","DialogClose","size","variant"],"mappings":"AAAA,u5BAAwC,wDAAyC,oGCGhD,2CACX,+CAUb,SADAA,CAAAA,CAAO,CAAE,GAAGC,CAAM,CAAA,CAA6D,CACtF,OAAOC,6BAAAA,CAAiB,CAAA,IAAA,CAAhB,CAAqB,WAAA,CAAU,QAAA,CAAU,GAAGD,CAAAA,CAAO,CAC7D,CAMA,SAASE,CAAAA,CAAc,CAAE,GAAGF,CAAM,CAAA,CAAgE,CAChG,OAAOC,6BAAAA,CAAiB,CAAA,OAAA,CAAhB,CAAwB,WAAA,CAAU,gBAAA,CAAkB,GAAGD,CAAAA,CAAO,CACxE,CAMA,SAASG,CAAAA,CAAc,CACrB,QAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,GAAGN,CACL,CAAA,CAOgB,CACd,OACEO,8BAAAA,CAAiB,CAAA,MAAA,CAAhB,CACC,QAAA,CAAA,CAAAN,6BAAAA,CAAiB,CAAA,OAAA,CAAhB,CACC,SAAA,CAAWO,iCAAAA,+HACT,iBACAF,CAAAA,2BAAY,SACd,CAAA,CACA,WAAA,CAAU,gBAAA,CACZ,CAAA,CACAL,6BAAAA,CAAiB,CAAA,OAAA,CAAhB,CACC,SAAA,CAAWO,iCAAAA,ofACT,iBACAF,CAAAA,6BAAY,SACd,CAAA,CACA,WAAA,CAAU,wBAAA,CACT,GAAGN,CAAAA,CAEJ,QAAA,CAAAO,8BAAAA,KAAC,CAAA,CACC,SAAA,CAAWC,iCAAAA,wIACT,iBACAF,CAAAA,6BAAY,SAAA,CACZD,CACF,CAAA,CACA,WAAA,CAAU,gBAAA,CAET,QAAA,CAAA,CAAAD,CAAAA,CACDG,8BAAAA,CAAiB,CAAA,KAAA,CAAhB,CACC,SAAA,CAAWE,iCAAAA,CACT,SAAA,CAAW,CAAC,mCAAA,iBAAqCH,CAAAA,6BAAY,OAAK,CAAA,CAClE,IAAA,CAAM,MAAA,CACN,OAAA,CAAS,OACX,CAAC,CAAA,CACD,WAAA,CAAU,cAAA,CAEV,QAAA,CAAA,CAAAL,6BAAAA,kBAACS,CAAA,CAAM,SAAA,CAAU,QAAA,CAAS,CAAA,CAC1BT,6BAAAA,MAAC,CAAA,CAAK,SAAA,CAAU,SAAA,CAAU,QAAA,CAAA,OAAA,CAAK,CAAA,CAAA,CACjC,CAAA,CAAA,CACF,CAAA,CACF,CAAA,CAAA,CACF,CAEJ,CAMA,SAASU,CAAAA,CAAa,CAAE,SAAA,CAAAN,CAAAA,CAAW,GAAGL,CAAM,CAAA,CAAuC,CACjF,OACEC,6BAAAA,QAAC,CAAA,CACC,SAAA,CAAWO,iCAAAA,wEAAG,CAA0EH,CAAS,CAAA,CACjG,WAAA,CAAU,eAAA,CACT,GAAGL,CAAAA,CACN,CAEJ,CAMA,SAASY,CAAAA,CAAW,CAAE,SAAA,CAAAP,CAAAA,CAAW,GAAGL,CAAM,CAAA,CAAuC,CAC/E,OAAOC,6BAAAA,MAAC,CAAA,CAAK,SAAA,CAAWO,iCAAAA,yBAAG,CAA2BH,CAAS,CAAA,CAAG,WAAA,CAAU,aAAA,CAAe,GAAGL,CAAAA,CAAO,CACvG,CAMA,SAASa,CAAAA,CAAa,CAAE,SAAA,CAAAR,CAAAA,CAAW,GAAGL,CAAM,CAAA,CAAuC,CACjF,OACEC,6BAAAA,QAAC,CAAA,CACC,SAAA,CAAWO,iCAAAA,gFAAG,CAAkFH,CAAS,CAAA,CACzG,WAAA,CAAU,eAAA,CACT,GAAGL,CAAAA,CACN,CAEJ,CAMA,SAASc,CAAAA,CAAY,CAAE,SAAA,CAAAT,CAAAA,CAAW,GAAGL,CAAM,CAAA,CAA8D,CACvG,OACEC,6BAAAA,CAAiB,CAAA,KAAA,CAAhB,CACC,SAAA,CAAWO,iCAAAA,mDAAG,CAAqDH,CAAS,CAAA,CAC5E,WAAA,CAAU,cAAA,CACT,GAAGL,CAAAA,CACN,CAEJ,CAMA,SAASe,CAAAA,CAAkB,CAAE,SAAA,CAAAV,CAAAA,CAAW,GAAGL,CAAM,CAAA,CAAoE,CACnH,OACEC,6BAAAA,CAAiB,CAAA,WAAA,CAAhB,CACC,SAAA,CAAWO,iCAAAA,+BAAG,CAAiCH,CAAS,CAAA,CACxD,WAAA,CAAU,oBAAA,CACT,GAAGL,CAAAA,CACN,CAEJ,CAMA,SAASgB,CAAAA,CAAY,CACnB,SAAA,CAAAX,CAAAA,CACA,IAAA,CAAAY,CAAAA,CACA,OAAA,CAAAC,CAAAA,CAAU,SAAA,CACV,GAAGlB,CACL,CAAA,CAGgB,CACd,OACEC,6BAAAA,CAAiB,CAAA,KAAA,CAAhB,CACC,SAAA,CAAWQ,iCAAAA,CAAiB,SAAA,CAAAJ,CAAAA,CAAW,IAAA,CAAAY,CAAAA,CAAM,OAAA,CAAAC,CAAQ,CAAC,CAAA,CACtD,WAAA,CAAU,cAAA,CACT,GAAGlB,CAAAA,CACN,CAEJ,CAAA,sIAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-IJRHIFOZ.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { XIcon } from 'lucide-react';\n\nimport { buttonVariants } from '@/components/button';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Dialog\n * -------------------------------------------------------------------------- */\n\nfunction Dialog({ ...props }: ComponentProps<typeof DialogPrimitive.Root>): JSX.Element {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogTrigger\n * -------------------------------------------------------------------------- */\n\nfunction DialogTrigger({ ...props }: ComponentProps<typeof DialogPrimitive.Trigger>): JSX.Element {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogContent\n * -------------------------------------------------------------------------- */\n\nfunction DialogContent({\n children,\n className,\n classNames,\n ...props\n}: ComponentProps<typeof DialogPrimitive.Content> & {\n classNames?: {\n close?: string;\n content?: string;\n overlay?: string;\n wrapper?: string;\n };\n}): JSX.Element {\n return (\n <DialogPrimitive.Portal>\n <DialogPrimitive.Overlay\n className={cn(\n 'bg-popover-overlay data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 backdrop-blur-sm',\n classNames?.overlay,\n )}\n data-slot=\"dialog-overlay\"\n />\n <DialogPrimitive.Content\n className={cn(\n '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 fixed inset-0 z-50 grid grid-rows-[1fr_auto] justify-items-center overflow-auto sm:grid-rows-[1fr_auto_3fr] sm:p-4',\n classNames?.wrapper,\n )}\n data-slot=\"dialog-content-wrapper\"\n {...props}\n >\n <div\n className={cn(\n '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',\n classNames?.content,\n className,\n )}\n data-slot=\"dialog-content\"\n >\n {children}\n <DialogPrimitive.Close\n className={buttonVariants({\n className: ['absolute right-2.5 top-2.5 size-7', classNames?.close],\n size: 'icon',\n variant: 'ghost',\n })}\n data-slot=\"dialog-close\"\n >\n <XIcon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n </div>\n </DialogPrimitive.Content>\n </DialogPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogHeader\n * -------------------------------------------------------------------------- */\n\nfunction DialogHeader({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <header\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-2 pt-6 text-center sm:text-left', className)}\n data-slot=\"dialog-header\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\nfunction DialogBody({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return <main className={cn('overflow-auto px-6 py-2', className)} data-slot=\"dialog-body\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogFooter\n * -------------------------------------------------------------------------- */\n\nfunction DialogFooter({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <footer\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-2 sm:flex-row sm:justify-end', className)}\n data-slot=\"dialog-footer\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogTitle\n * -------------------------------------------------------------------------- */\n\nfunction DialogTitle({ className, ...props }: ComponentProps<typeof DialogPrimitive.Title>): JSX.Element {\n return (\n <DialogPrimitive.Title\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n data-slot=\"dialog-title\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogDescription\n * -------------------------------------------------------------------------- */\n\nfunction DialogDescription({ className, ...props }: ComponentProps<typeof DialogPrimitive.Description>): JSX.Element {\n return (\n <DialogPrimitive.Description\n className={cn('text-muted-foreground text-sm', className)}\n data-slot=\"dialog-description\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogClose\n * -------------------------------------------------------------------------- */\n\nfunction DialogClose({\n className,\n size,\n variant = 'outline',\n ...props\n}: Omit<ComponentProps<typeof DialogPrimitive.Close>, 'ref'> & {\n size?: VariantProps<typeof buttonVariants>['size'];\n variant?: VariantProps<typeof buttonVariants>['variant'];\n}): JSX.Element {\n return (\n <DialogPrimitive.Close\n className={buttonVariants({ className, size, variant })}\n data-slot=\"dialog-close\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Dialog,\n DialogBody,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n};\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as n}from"./chunk-OKUFCFYT.js";import*as t from"@radix-ui/react-tabs";import{jsx as o}from"react/jsx-runtime";function a({...e}){return o(t.Root,{"data-slot":"tabs",...e})}function s({className:e,...i}){return o(t.List,{className:n("bg-muted text-muted-foreground inline-flex items-center justify-center gap-1 rounded-xl px-1 py-1",e),"data-slot":"tabs-list",...i})}function d({className:e,...i}){return o(t.Trigger,{className:n("data-[state=active]:bg-background dark:data-[state=active]:bg-input/50 text-foreground dark:text-muted-foreground focus-visible:ring-ring/50 focus-visible:ring-3 dark:outline-ring not-dark:outline-hidden dark:data-[state=active]:text-foreground inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-lg px-2 py-1.5 text-sm font-medium transition disabled:opacity-50 data-[state=active]:shadow-sm dark:-outline-offset-1 dark:data-[state=active]:outline-1 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",e),"data-slot":"tabs-trigger",...i})}function m({className:e,...i}){return o(t.Content,{className:n("outline-ring ring-ring/50 mt-2 rounded-xl focus-visible:outline-1 focus-visible:ring-4",e),"data-slot":"tabs-content",...i})}export{a,s as b,d as c,m as d};
|
|
2
|
+
//# sourceMappingURL=chunk-IU3UVNAL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/tabs.tsx"],"names":["TabsPrimitive","jsx","Tabs","props","TabsList","className","cn","TabsTrigger","TabsContent"],"mappings":"wCAEA,UAAYA,MAAmB,uBAStB,cAAAC,MAAA,oBADT,SAASC,EAAK,CAAE,GAAGC,CAAM,EAA2D,CAClF,OAAOF,EAAe,OAAd,CAAmB,YAAU,OAAQ,GAAGE,EAAO,CACzD,CAMA,SAASC,EAAS,CAAE,UAAAC,EAAW,GAAGF,CAAM,EAA2D,CACjG,OACEF,EAAe,OAAd,CACC,UAAWK,EACT,oGACAD,CACF,EACA,YAAU,YACT,GAAGF,EACN,CAEJ,CAMA,SAASI,EAAY,CAAE,UAAAF,EAAW,GAAGF,CAAM,EAA8D,CACvG,OACEF,EAAe,UAAd,CACC,UAAWK,EACT,ihBACAD,CACF,EACA,YAAU,eACT,GAAGF,EACN,CAEJ,CAMA,SAASK,EAAY,CAAE,UAAAH,EAAW,GAAGF,CAAM,EAA8D,CACvG,OACEF,EAAe,UAAd,CACC,UAAWK,EACT,yFACAD,CACF,EACA,YAAU,eACT,GAAGF,EACN,CAEJ","sourcesContent":["import type { ComponentProps, JSX } from 'react';\n\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Tabs\n * -------------------------------------------------------------------------- */\n\nfunction Tabs({ ...props }: ComponentProps<typeof TabsPrimitive.Root>): JSX.Element {\n return <TabsPrimitive.Root data-slot=\"tabs\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TabsList\n * -------------------------------------------------------------------------- */\n\nfunction TabsList({ className, ...props }: ComponentProps<typeof TabsPrimitive.List>): JSX.Element {\n return (\n <TabsPrimitive.List\n className={cn(\n 'bg-muted text-muted-foreground inline-flex items-center justify-center gap-1 rounded-xl px-1 py-1',\n className,\n )}\n data-slot=\"tabs-list\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TabsTrigger\n * -------------------------------------------------------------------------- */\n\nfunction TabsTrigger({ className, ...props }: ComponentProps<typeof TabsPrimitive.Trigger>): JSX.Element {\n return (\n <TabsPrimitive.Trigger\n className={cn(\n \"data-[state=active]:bg-background dark:data-[state=active]:bg-input/50 text-foreground dark:text-muted-foreground focus-visible:ring-ring/50 focus-visible:ring-3 dark:outline-ring not-dark:outline-hidden dark:data-[state=active]:text-foreground inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-lg px-2 py-1.5 text-sm font-medium transition disabled:opacity-50 data-[state=active]:shadow-sm dark:-outline-offset-1 dark:data-[state=active]:outline-1 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0\",\n className,\n )}\n data-slot=\"tabs-trigger\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TabsContent\n * -------------------------------------------------------------------------- */\n\nfunction TabsContent({ className, ...props }: ComponentProps<typeof TabsPrimitive.Content>): JSX.Element {\n return (\n <TabsPrimitive.Content\n className={cn(\n 'outline-ring ring-ring/50 mt-2 rounded-xl focus-visible:outline-1 focus-visible:ring-4',\n className,\n )}\n data-slot=\"tabs-content\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Tabs, TabsContent, TabsList, TabsTrigger };\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{a as r,c as d,g as i,h as p}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
"use client";import{a as r,c as d,g as i,h as p}from"./chunk-2IMNP5E3.js";import{a as n}from"./chunk-OKUFCFYT.js";import{VisuallyHidden as s}from"@radix-ui/react-visually-hidden";import{Command as m}from"cmdk";import{SearchIcon as l}from"lucide-react";import{jsx as t,jsxs as a}from"react/jsx-runtime";function c({className:e,...o}){return t(m,{className:n("bg-popover text-popover-foreground outline-hidden flex flex-col overflow-hidden rounded-[inherit]",e),"data-slot":"command",...o})}function h({children:e,...o}){return t(r,{"data-slot":"command-dialog",...o,children:a(d,{className:"rounded-t-lg sm:rounded-lg","data-slot":"command-dialog-content",children:[a(s,{children:[t(i,{children:"Search command"}),t(p,{children:"Use the search bar to find and select the desired command."})]}),t(c,{className:"[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input]]:h-12",children:e})]})})}function y({className:e,...o}){return a("div",{className:"flex items-center gap-2 border-b px-3","cmdk-input-wrapper":"","data-slot":"command-input-wrapper",children:[t(l,{className:"size-4 shrink-0 opacity-50"}),t(m.Input,{className:n("placeholder:text-muted-foreground outline-hidden flex h-10 w-full text-base disabled:opacity-50 md:text-sm",e),"data-slot":"command-input",...o})]})}function v({className:e,...o}){return t(m.List,{className:n("max-h-75 overflow-y-auto overflow-x-hidden",e),"data-slot":"command-list",...o})}function P({className:e,...o}){return t(m.Empty,{className:n("py-6 text-center text-sm",e),"data-slot":"command-empty",...o})}function S({className:e,...o}){return t(m.Group,{className:n("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),"data-slot":"command-group",...o})}function k({className:e,...o}){return t(m.Separator,{className:n("bg-border -mx-1 h-px",e),"data-slot":"command-separator",...o})}function _({className:e,...o}){return t(m.Item,{className:n("aria-selected:bg-accent aria-selected:text-accent-foreground outline-hidden group/command-item [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default select-none items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",e),"data-slot":"command-item",...o})}function E({className:e,...o}){return t(m.Loading,{className:n("flex justify-center p-2",e),"data-slot":"command-loading",...o})}function N({className:e,...o}){return t("span",{className:n("text-muted-foreground ml-auto text-xs tracking-widest group-aria-selected/command-item:text-current",e),"data-slot":"command-shortcut",...o})}export{c as a,h as b,y as c,v as d,P as e,S as f,k as g,_ as h,E as i,N as j};
|
|
2
|
+
//# sourceMappingURL=chunk-MX4VRXZV.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _reactslider = require('@radix-ui/react-slider'); var i = _interopRequireWildcard(_reactslider);var _react = require('react');var _jsxruntime = require('react/jsx-runtime');function p({className:n,defaultValue:r,value:t,min:e=0,max:a=100,...d}){let s=_react.useMemo.call(void 0, ()=>Array.isArray(t)?t:Array.isArray(r)?r:[e,a],[t,r,e,a]);return _jsxruntime.jsxs.call(void 0, i.Root,{className:_chunkSMJEDCFPcjs.a.call(void 0, "data-disabled:opacity-50 relative flex w-full touch-none select-none items-center data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",n),"data-slot":"slider",defaultValue:r,max:a,min:e,value:t,...d,children:[_jsxruntime.jsx.call(void 0, i.Track,{className:"bg-input relative w-full grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1 data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-1","data-slot":"slider-track",children:_jsxruntime.jsx.call(void 0, i.Range,{className:"bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full","data-slot":"slider-range"})}),Array.from({length:s.length},(u,m)=>_jsxruntime.jsx.call(void 0, i.Thumb,{"aria-label":"Volume",className:_chunkSMJEDCFPcjs.a.call(void 0, "border-primary bg-primary after:bg-background active:not-data-disabled:after:size-1 focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 outline-hidden flex size-4 items-center justify-center rounded-full border-2 shadow-sm after:size-full after:rounded-full after:transition-[width,height] focus-visible:ring-4"),"data-slot":"slider-thumb"},m))]})}exports.a = p;
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-NHKDM4JU.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-NHKDM4JU.cjs","../src/components/slider.tsx"],"names":["Slider","className","defaultValue","value","min","max","props","_values","useMemo","jsxs","cn","jsx","_","index"],"mappings":"AAAA,mZAAwC,oGCAP,8BACsB,+CAyBnD,SAjBKA,CAAAA,CAAO,CACd,SAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,GAAA,CAAAC,CAAAA,CAAM,CAAA,CACN,GAAA,CAAAC,CAAAA,CAAM,GAAA,CACN,GAAGC,CACL,CAAA,CAA6D,CAC3D,IAAMC,CAAAA,CAAUC,4BAAAA,CAAQ,CAAA,EAClB,KAAA,CAAM,OAAA,CAAQL,CAAK,CAAA,CACdA,CAAAA,CAGF,KAAA,CAAM,OAAA,CAAQD,CAAY,CAAA,CAAIA,CAAAA,CAAe,CAACE,CAAAA,CAAKC,CAAG,CAAA,CAC5D,CAACF,CAAAA,CAAOD,CAAAA,CAAcE,CAAAA,CAAKC,CAAG,CAAC,CAAA,CAElC,OACEI,8BAAAA,CAAiB,CAAA,IAAA,CAAhB,CACC,SAAA,CAAWC,iCAAAA,mOACT,CACAT,CACF,CAAA,CACA,WAAA,CAAU,QAAA,CACV,YAAA,CAAcC,CAAAA,CACd,GAAA,CAAKG,CAAAA,CACL,GAAA,CAAKD,CAAAA,CACL,KAAA,CAAOD,CAAAA,CACN,GAAGG,CAAAA,CAEJ,QAAA,CAAA,CAAAK,6BAAAA,CAAiB,CAAA,KAAA,CAAhB,CACC,SAAA,CAAU,sMAAA,CACV,WAAA,CAAU,cAAA,CAEV,QAAA,CAAAA,6BAAAA,CAAiB,CAAA,KAAA,CAAhB,CACC,SAAA,CAAU,6FAAA,CACV,WAAA,CAAU,cAAA,CACZ,CAAA,CACF,CAAA,CACC,KAAA,CAAM,IAAA,CAAK,CAAE,MAAA,CAAQJ,CAAAA,CAAQ,MAAO,CAAA,CAAG,CAACK,CAAAA,CAAGC,CAAAA,CAAAA,EAC1CF,6BAAAA,CAAiB,CAAA,KAAA,CAAhB,CAEC,YAAA,CAAW,QAAA,CACX,SAAA,CAAWD,iCAAAA,qUAEX,CAAA,CACA,WAAA,CAAU,cAAA,CAAA,CALLG,CAMP,CACD,CAAA,CAAA,CACH,CAEJ,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-NHKDM4JU.cjs","sourcesContent":[null,"import * as SliderPrimitive from '@radix-ui/react-slider';\nimport { type ComponentProps, type JSX, useMemo } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Slider\n * -------------------------------------------------------------------------- */\n\nfunction Slider({\n className,\n defaultValue,\n value,\n min = 0,\n max = 100,\n ...props\n}: ComponentProps<typeof SliderPrimitive.Root>): JSX.Element {\n const _values = useMemo(() => {\n if (Array.isArray(value)) {\n return value;\n }\n\n return Array.isArray(defaultValue) ? defaultValue : [min, max];\n }, [value, defaultValue, min, max]);\n\n return (\n <SliderPrimitive.Root\n className={cn(\n 'data-disabled:opacity-50 relative flex w-full touch-none select-none items-center data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col',\n className,\n )}\n data-slot=\"slider\"\n defaultValue={defaultValue}\n max={max}\n min={min}\n value={value}\n {...props}\n >\n <SliderPrimitive.Track\n className=\"bg-input relative w-full grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1 data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-1\"\n data-slot=\"slider-track\"\n >\n <SliderPrimitive.Range\n className=\"bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full\"\n data-slot=\"slider-range\"\n />\n </SliderPrimitive.Track>\n {Array.from({ length: _values.length }, (_, index) => (\n <SliderPrimitive.Thumb\n key={index}\n aria-label=\"Volume\"\n className={cn(\n 'border-primary bg-primary after:bg-background active:not-data-disabled:after:size-1 focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 outline-hidden flex size-4 items-center justify-center rounded-full border-2 shadow-sm after:size-full after:rounded-full after:transition-[width,height] focus-visible:ring-4',\n )}\n data-slot=\"slider-thumb\"\n />\n ))}\n </SliderPrimitive.Root>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Slider };\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";var _chunkIDELSFHCcjs = require('./chunk-IDELSFHC.cjs');var _chunkASI3MMOGcjs = require('./chunk-ASI3MMOG.cjs');var _chunkX5CR4RILcjs = require('./chunk-X5CR4RIL.cjs');var _chunkSRP463XHcjs = require('./chunk-SRP463XH.cjs');var _chunkPOJOZ7HMcjs = require('./chunk-POJOZ7HM.cjs');var _chunkTNP6NVCRcjs = require('./chunk-TNP6NVCR.cjs');var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _hooks = require('@codefast/hooks');var _reactslot = require('@radix-ui/react-slot');var _lucidereact = require('lucide-react');var _react = require('react');var _tailwindvariants = require('tailwind-variants');var _jsxruntime = require('react/jsx-runtime');var j="sidebar_state",q=60*60*24*7,F="16rem",U="18rem",Y="3.0625rem",Q="b",A=_react.createContext.call(void 0, null);function S(){let t=_react.useContext.call(void 0, A);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function ce({defaultOpen:t=!0,open:e,onOpenChange:n,className:r,style:i,children:l,...m}){let d=_hooks.useIsMobile.call(void 0, ),[c,b]=_react.useState.call(void 0, !1),[v,R]=_react.useState.call(void 0, t),f=_nullishCoalesce(e, () => (v)),h=_react.useCallback.call(void 0, s=>{let u=typeof s=="function"?s(f):s;n?n(u):R(u),document.cookie=`${j}=${u}; path=/; max-age=${q}`},[n,f]),x=_react.useCallback.call(void 0, ()=>{d?b(s=>!s):h(s=>!s)},[d,h,b]);_react.useEffect.call(void 0, ()=>{let s=u=>{u.key===Q&&(u.metaKey||u.ctrlKey)&&(u.preventDefault(),x())};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[x]);let C=f?"expanded":"collapsed",H=_react.useMemo.call(void 0, ()=>({state:C,open:f,setOpen:h,isMobile:d,openMobile:c,setOpenMobile:b,toggleSidebar:x}),[C,f,h,d,c,b,x]);return _jsxruntime.jsx.call(void 0, A.Provider,{value:H,children:_jsxruntime.jsx.call(void 0, _chunkIDELSFHCcjs.a,{delayDuration:0,children:_jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),"data-slot":"sidebar-wrapper",style:{"--sidebar-width":F,"--sidebar-width-icon":Y,...i},...m,children:l})})})}function pe({side:t="left",variant:e="sidebar",collapsible:n="offcanvas",className:r,children:i,...l}){let{isMobile:m,state:d,openMobile:c,setOpenMobile:b}=S();return n==="none"?_jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-sidebar text-sidebar-foreground w-(--sidebar-width) flex h-full flex-col",r),"data-slot":"sidebar",...l,children:i}):m?_jsxruntime.jsx.call(void 0, _chunkASI3MMOGcjs.a,{open:c,onOpenChange:b,...l,children:_jsxruntime.jsxs.call(void 0, _chunkASI3MMOGcjs.c,{className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden","data-mobile":"true","data-sidebar":"sidebar","data-slot":"sidebar",side:t,style:{"--sidebar-width":U},children:[_jsxruntime.jsxs.call(void 0, _chunkASI3MMOGcjs.d,{className:"sr-only",children:[_jsxruntime.jsx.call(void 0, _chunkASI3MMOGcjs.g,{children:"Sidebar"}),_jsxruntime.jsx.call(void 0, _chunkASI3MMOGcjs.h,{children:"Displays the mobile sidebar."})]}),_jsxruntime.jsx.call(void 0, "div",{className:"flex h-full w-full flex-col",children:i})]})}):_jsxruntime.jsxs.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-sidebar-foreground group peer hidden md:block",r),"data-collapsible":d==="collapsed"?n:"","data-side":t,"data-slot":"sidebar","data-state":d,"data-variant":e,children:[_jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "w-(--sidebar-width) relative bg-transparent transition-[width] duration-200 ease-linear group-data-[collapsible=offcanvas]:w-0 group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)"),"data-slot":"sidebar-gap"}),_jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "w-(--sidebar-width) fixed inset-y-0 z-10 hidden h-svh transition-[left,right,width] duration-200 ease-linear md:flex",t==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),"data-slot":"sidebar-container",...l,children:_jsxruntime.jsx.call(void 0, "div",{className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm","data-sidebar":"sidebar","data-slot":"sidebar-inner",children:i})})]})}function me({className:t,onClick:e,...n}){let{toggleSidebar:r}=S();return _jsxruntime.jsxs.call(void 0, _chunkTNP6NVCRcjs.b,{className:_chunkSMJEDCFPcjs.a.call(void 0, "size-7",t),"data-sidebar":"trigger","data-slot":"sidebar-trigger",size:"icon",variant:"ghost",onClick:i=>{_optionalChain([e, 'optionalCall', _2 => _2(i)]),r()},...n,children:[_jsxruntime.jsx.call(void 0, _lucidereact.PanelLeftIcon,{}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Toggle Sidebar"})]})}function fe({className:t,...e}){let{toggleSidebar:n}=S();return _jsxruntime.jsx.call(void 0, "button",{className:_chunkSMJEDCFPcjs.a.call(void 0, "hover:after:bg-sidebar-border in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize hover:group-data-[collapsible=offcanvas]:bg-sidebar absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] group-data-[side=left]:-right-4 group-data-[side=right]:left-0 group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full sm:flex [[data-side=left][data-collapsible=offcanvas]_&]:-right-2 [[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-collapsible=offcanvas]_&]:-left-2 [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",t),"data-sidebar":"rail","data-slot":"sidebar-rail",title:"Toggle Sidebar",type:"button",onClick:n,...e})}function ge({className:t,...e}){return _jsxruntime.jsx.call(void 0, "main",{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-background relative flex w-full flex-1 flex-col md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",t),"data-slot":"sidebar-inset",...e})}function ve({className:t,...e}){return _jsxruntime.jsx.call(void 0, _chunkPOJOZ7HMcjs.b,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-background h-8 w-full shadow-none",t),"data-sidebar":"input","data-slot":"sidebar-input",...e})}function he({className:t,...e}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex flex-col gap-2 p-2",t),"data-sidebar":"header","data-slot":"sidebar-header",...e})}function xe({className:t,...e}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex flex-col gap-2 p-2",t),"data-sidebar":"footer","data-slot":"sidebar-footer",...e})}function Se({className:t,...e}){return _jsxruntime.jsx.call(void 0, _chunkSRP463XHcjs.a,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-sidebar-border mx-2 w-auto",t),"data-sidebar":"separator","data-slot":"sidebar-separator",...e})}function we({className:t,...e}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),"data-sidebar":"content","data-slot":"sidebar-content",...e})}function Ce({className:t,...e}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "relative flex w-full min-w-0 flex-col p-2",t),"data-sidebar":"group","data-slot":"sidebar-group",...e})}function ye({className:t,asChild:e=!1,...n}){return _jsxruntime.jsx.call(void 0, e?_reactslot.Slot:"div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-sidebar-foreground/70 ring-sidebar-ring outline-hidden focus-visible:ring-3 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 [&>svg]:size-4 [&>svg]:shrink-0",t),"data-sidebar":"group-label","data-slot":"sidebar-group-label",...n})}function Ee({className:t,asChild:e=!1,...n}){return _jsxruntime.jsx.call(void 0, e?_reactslot.Slot:"button",{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground outline-hidden focus-visible:ring-3 absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform after:absolute after:-inset-2 group-data-[collapsible=icon]:hidden md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0",t),"data-sidebar":"group-action","data-slot":"sidebar-group-action",...n})}function Pe({className:t,...e}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "w-full text-sm",t),"data-sidebar":"group-content","data-slot":"sidebar-group-content",...e})}function Ne({className:t,...e}){return _jsxruntime.jsx.call(void 0, "ul",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex w-full min-w-0 flex-col gap-1",t),"data-sidebar":"menu","data-slot":"sidebar-menu",...e})}function Me({className:t,...e}){return _jsxruntime.jsx.call(void 0, "li",{className:_chunkSMJEDCFPcjs.a.call(void 0, "group/menu-item relative",t),"data-sidebar":"menu-item","data-slot":"sidebar-menu-item",...e})}var Z=_tailwindvariants.tv.call(void 0, {base:"peer/menu-button outline-hidden ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground group-has-data-[sidebar=menu-action]/menu-item:pr-8 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-3 flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm transition-[width,height,padding] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:font-medium [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{sm:"h-7 text-xs",md:"h-8 text-sm",lg:"group-data-[collapsible=icon]:p-0! h-12 text-sm"}},defaultVariants:{variant:"default",size:"md"}});function ke({asChild:t=!1,isActive:e=!1,variant:n="default",size:r="md",tooltip:i,className:l,...m}){let d=t?_reactslot.Slot:"button",{isMobile:c,state:b}=S(),v=_jsxruntime.jsx.call(void 0, d,{className:_chunkSMJEDCFPcjs.a.call(void 0, Z({variant:n,size:r}),l),"data-active":e,"data-sidebar":"menu-button","data-size":r,"data-slot":"sidebar-menu-button",...m});return i?(typeof i=="string"&&(i={children:i}),_jsxruntime.jsxs.call(void 0, _chunkIDELSFHCcjs.b,{children:[_jsxruntime.jsx.call(void 0, _chunkIDELSFHCcjs.c,{asChild:!0,children:v}),_jsxruntime.jsx.call(void 0, _chunkIDELSFHCcjs.d,{align:"center",hidden:b!=="collapsed"||c,side:"right",...i})]})):v}function Xe({className:t,asChild:e=!1,showOnHover:n=!1,...r}){return _jsxruntime.jsx.call(void 0, e?_reactslot.Slot:"button",{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground outline-hidden focus-visible:ring-3 absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform after:absolute after:-inset-2 group-data-[collapsible=icon]:hidden peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0",n&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",t),"data-sidebar":"menu-action","data-slot":"sidebar-menu-action",...r})}function _e({className:t,...e}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-sidebar-foreground peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums group-data-[collapsible=icon]:hidden peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1",t),"data-sidebar":"menu-badge","data-slot":"sidebar-menu-badge",...e})}function Je({className:t,showIcon:e=!1,...n}){let r=_react.useMemo.call(void 0, ()=>`${Math.floor(Math.random()*40)+50}%`,[]);return _jsxruntime.jsxs.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex h-8 items-center gap-2 rounded-md px-2",t),"data-sidebar":"menu-skeleton","data-slot":"sidebar-menu-skeleton",...n,children:[e?_jsxruntime.jsx.call(void 0, _chunkX5CR4RILcjs.a,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}):null,_jsxruntime.jsx.call(void 0, _chunkX5CR4RILcjs.a,{className:"max-w-(--skeleton-width) h-4 flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function ze({className:t,...e}){return _jsxruntime.jsx.call(void 0, "ul",{className:_chunkSMJEDCFPcjs.a.call(void 0, "border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5 group-data-[collapsible=icon]:hidden",t),"data-sidebar":"menu-sub","data-slot":"sidebar-menu-sub",...e})}function Ie({className:t,...e}){return _jsxruntime.jsx.call(void 0, "li",{className:_chunkSMJEDCFPcjs.a.call(void 0, "group/menu-sub-item relative",t),"data-sidebar":"menu-sub-item","data-slot":"sidebar-menu-sub-item",...e})}function Te({asChild:t=!1,size:e="md",isActive:n=!1,className:r,...i}){return _jsxruntime.jsx.call(void 0, t?_reactslot.Slot:"a",{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground outline-hidden focus-visible:ring-3 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",e==="sm"&&"text-xs",e==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),"data-active":n,"data-sidebar":"menu-sub-button","data-size":e,"data-slot":"sidebar-menu-sub-button",...i})}exports.a = S; exports.b = ce; exports.c = pe; exports.d = me; exports.e = fe; exports.f = ge; exports.g = ve; exports.h = he; exports.i = xe; exports.j = Se; exports.k = we; exports.l = Ce; exports.m = ye; exports.n = Ee; exports.o = Pe; exports.p = Ne; exports.q = Me; exports.r = ke; exports.s = Xe; exports.t = _e; exports.u = Je; exports.v = ze; exports.w = Ie; exports.x = Te;
|
|
2
|
+
//# sourceMappingURL=chunk-PYHULPLG.cjs.map
|