@incognia/cosmik 0.40.2-beta.2 → 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Alert/index.d.ts +7 -6
- package/dist/Alert/index.d.ts.map +1 -1
- package/dist/AlertDialog/index.d.ts +16 -22
- package/dist/AlertDialog/index.d.ts.map +1 -1
- package/dist/Calendar/index.d.ts +4 -7
- package/dist/Calendar/index.d.ts.map +1 -1
- package/dist/Card/index.d.ts +8 -7
- package/dist/Card/index.d.ts.map +1 -1
- package/dist/Checkbox/index.d.ts +1 -1
- package/dist/Checkbox/index.d.ts.map +1 -1
- package/dist/Command/index.d.ts +17 -49
- package/dist/Command/index.d.ts.map +1 -1
- package/dist/Dialog/index.d.ts +13 -18
- package/dist/Dialog/index.d.ts.map +1 -1
- package/dist/DropdownMenu/index.d.ts +19 -21
- package/dist/DropdownMenu/index.d.ts.map +1 -1
- package/dist/Input/index.d.ts +1 -3
- package/dist/Input/index.d.ts.map +1 -1
- package/dist/Label/index.d.ts +1 -2
- package/dist/Label/index.d.ts.map +1 -1
- package/dist/Pagination/index.d.ts +11 -26
- package/dist/Pagination/index.d.ts.map +1 -1
- package/dist/Popover/index.d.ts +5 -5
- package/dist/Popover/index.d.ts.map +1 -1
- package/dist/Progress/index.d.ts +1 -1
- package/dist/Progress/index.d.ts.map +1 -1
- package/dist/RadioGroup/index.d.ts +2 -2
- package/dist/RadioGroup/index.d.ts.map +1 -1
- package/dist/Select/index.d.ts +12 -10
- package/dist/Select/index.d.ts.map +1 -1
- package/dist/Separator/index.d.ts +1 -1
- package/dist/Separator/index.d.ts.map +1 -1
- package/dist/Switch/index.d.ts +2 -2
- package/dist/Switch/index.d.ts.map +1 -1
- package/dist/Table/index.d.ts +11 -11
- package/dist/Table/index.d.ts.map +1 -1
- package/dist/Tabs/index.d.ts +4 -4
- package/dist/Tabs/index.d.ts.map +1 -1
- package/dist/TagInput/index.d.ts +4 -5
- package/dist/TagInput/index.d.ts.map +1 -1
- package/dist/Textarea/index.d.ts +1 -3
- package/dist/Textarea/index.d.ts.map +1 -1
- package/dist/Toggle/index.d.ts +1 -6
- package/dist/Toggle/index.d.ts.map +1 -1
- package/dist/VerticalNavigationMenu/index.d.ts +8 -6
- package/dist/VerticalNavigationMenu/index.d.ts.map +1 -1
- package/dist/cosmik.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +148 -147
- package/dist/index10.cjs +1 -1
- package/dist/index10.cjs.map +1 -1
- package/dist/index10.js +181 -128
- package/dist/index10.js.map +1 -1
- package/dist/index11.cjs +1 -1
- package/dist/index11.cjs.map +1 -1
- package/dist/index11.js +121 -93
- package/dist/index11.js.map +1 -1
- package/dist/index12.cjs +1 -1
- package/dist/index12.cjs.map +1 -1
- package/dist/index12.js +224 -139
- package/dist/index12.js.map +1 -1
- package/dist/index15.cjs +1 -1
- package/dist/index15.cjs.map +1 -1
- package/dist/index15.js +9 -11
- package/dist/index15.js.map +1 -1
- package/dist/index16.cjs +1 -1
- package/dist/index16.cjs.map +1 -1
- package/dist/index16.js +20 -17
- package/dist/index16.js.map +1 -1
- package/dist/index19.cjs +1 -1
- package/dist/index19.cjs.map +1 -1
- package/dist/index19.js +102 -92
- package/dist/index19.js.map +1 -1
- package/dist/index20.cjs +1 -1
- package/dist/index20.cjs.map +1 -1
- package/dist/index20.js +42 -22
- package/dist/index20.js.map +1 -1
- package/dist/index21.cjs +1 -1
- package/dist/index21.cjs.map +1 -1
- package/dist/index21.js +29 -24
- package/dist/index21.js.map +1 -1
- package/dist/index22.cjs +1 -1
- package/dist/index22.cjs.map +1 -1
- package/dist/index22.js +43 -29
- package/dist/index22.js.map +1 -1
- package/dist/index23.cjs +1 -1
- package/dist/index23.cjs.map +1 -1
- package/dist/index23.js +180 -128
- package/dist/index23.js.map +1 -1
- package/dist/index24.cjs +1 -1
- package/dist/index24.cjs.map +1 -1
- package/dist/index24.js +23 -20
- package/dist/index24.js.map +1 -1
- package/dist/index25.cjs +1 -1
- package/dist/index25.cjs.map +1 -1
- package/dist/index25.js +3 -3
- package/dist/index25.js.map +1 -1
- package/dist/index27.cjs +1 -1
- package/dist/index27.cjs.map +1 -1
- package/dist/index27.js +6 -6
- package/dist/index27.js.map +1 -1
- package/dist/index28.cjs +1 -1
- package/dist/index28.cjs.map +1 -1
- package/dist/index28.js +27 -23
- package/dist/index28.js.map +1 -1
- package/dist/index29.cjs +1 -1
- package/dist/index29.cjs.map +1 -1
- package/dist/index29.js +124 -104
- package/dist/index29.js.map +1 -1
- package/dist/index3.cjs +1 -1
- package/dist/index3.cjs.map +1 -1
- package/dist/index3.js +60 -30
- package/dist/index3.js.map +1 -1
- package/dist/index30.cjs +1 -1
- package/dist/index30.cjs.map +1 -1
- package/dist/index30.js +62 -42
- package/dist/index30.js.map +1 -1
- package/dist/index31.cjs +1 -1
- package/dist/index31.cjs.map +1 -1
- package/dist/index31.js +72 -69
- package/dist/index31.js.map +1 -1
- package/dist/index32.cjs +1 -1
- package/dist/index32.cjs.map +1 -1
- package/dist/index32.js +9 -11
- package/dist/index32.js.map +1 -1
- package/dist/index33.cjs +1 -1
- package/dist/index33.cjs.map +1 -1
- package/dist/index33.js +27 -19
- package/dist/index33.js.map +1 -1
- package/dist/index36.cjs +1 -1
- package/dist/index36.cjs.map +1 -1
- package/dist/index36.js +77 -49
- package/dist/index36.js.map +1 -1
- package/dist/index4.cjs +1 -1
- package/dist/index4.cjs.map +1 -1
- package/dist/index4.js +141 -99
- package/dist/index4.js.map +1 -1
- package/dist/index42.cjs +1 -1
- package/dist/index42.cjs.map +1 -1
- package/dist/index42.js +3 -3
- package/dist/index42.js.map +1 -1
- package/dist/index44.cjs +4 -4
- package/dist/index44.cjs.map +1 -1
- package/dist/index44.js +24 -17
- package/dist/index44.js.map +1 -1
- package/dist/index45.cjs +4 -12
- package/dist/index45.cjs.map +1 -1
- package/dist/index45.js +193 -550
- package/dist/index45.js.map +1 -1
- package/dist/index7.cjs +1 -1
- package/dist/index7.cjs.map +1 -1
- package/dist/index7.js +173 -51
- package/dist/index7.js.map +1 -1
- package/dist/index8.cjs +1 -1
- package/dist/index8.cjs.map +1 -1
- package/dist/index8.js +87 -44
- package/dist/index8.js.map +1 -1
- package/dist/index9.cjs +1 -1
- package/dist/index9.cjs.map +1 -1
- package/dist/index9.js +36 -32
- package/dist/index9.js.map +1 -1
- package/package.json +16 -16
package/dist/index25.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index25.cjs","sources":["../src/Sheet/index.tsx"],"sourcesContent":["'use client'\n\nimport * as SheetPrimitive from '@radix-ui/react-dialog'\nimport { XIcon } from 'lucide-react'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {\n return <SheetPrimitive.Root data-slot=\"sheet\" {...props} />\n}\n\nfunction SheetTrigger({\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Trigger>) {\n return <SheetPrimitive.Trigger data-slot=\"sheet-trigger\" {...props} />\n}\n\nfunction SheetClose({\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Close>) {\n return <SheetPrimitive.Close data-slot=\"sheet-close\" {...props} />\n}\n\nfunction SheetPortal({\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Portal>) {\n return <SheetPrimitive.Portal data-slot=\"sheet-portal\" {...props} />\n}\n\nfunction SheetOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Overlay>) {\n return (\n <SheetPrimitive.Overlay\n data-slot=\"sheet-overlay\"\n className={cn(\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-gray-900/24 ',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction SheetContent({\n className,\n children,\n side = 'right',\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Content> & {\n side?: 'top' | 'right' | 'bottom' | 'left'\n}) {\n return (\n <SheetPortal>\n <SheetOverlay />\n <SheetPrimitive.Content\n data-slot=\"sheet-content\"\n className={cn(\n ' bg-white data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-16 border-gray-900/16 transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500',\n side === 'right' &&\n 'data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',\n side === 'left' &&\n 'data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',\n side === 'top' &&\n 'data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b',\n side === 'bottom' &&\n 'data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t',\n className\n )}\n {...props}\n >\n {children}\n <SheetPrimitive.Close className=\"
|
|
1
|
+
{"version":3,"file":"index25.cjs","sources":["../src/Sheet/index.tsx"],"sourcesContent":["'use client'\n\nimport * as SheetPrimitive from '@radix-ui/react-dialog'\nimport { XIcon } from 'lucide-react'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {\n return <SheetPrimitive.Root data-slot=\"sheet\" {...props} />\n}\n\nfunction SheetTrigger({\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Trigger>) {\n return <SheetPrimitive.Trigger data-slot=\"sheet-trigger\" {...props} />\n}\n\nfunction SheetClose({\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Close>) {\n return <SheetPrimitive.Close data-slot=\"sheet-close\" {...props} />\n}\n\nfunction SheetPortal({\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Portal>) {\n return <SheetPrimitive.Portal data-slot=\"sheet-portal\" {...props} />\n}\n\nfunction SheetOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Overlay>) {\n return (\n <SheetPrimitive.Overlay\n data-slot=\"sheet-overlay\"\n className={cn(\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-gray-900/24 ',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction SheetContent({\n className,\n children,\n side = 'right',\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Content> & {\n side?: 'top' | 'right' | 'bottom' | 'left'\n}) {\n return (\n <SheetPortal>\n <SheetOverlay />\n <SheetPrimitive.Content\n data-slot=\"sheet-content\"\n className={cn(\n ' bg-white data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-16 border-gray-900/16 transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500',\n side === 'right' &&\n 'data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',\n side === 'left' &&\n 'data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',\n side === 'top' &&\n 'data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b',\n side === 'bottom' &&\n 'data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t',\n className\n )}\n {...props}\n >\n {children}\n <SheetPrimitive.Close className=\"absolute right-16 top-16 rounded opacity-64 transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none\">\n <XIcon className=\"size-16\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n </SheetPrimitive.Content>\n </SheetPortal>\n )\n}\n\nfunction SheetHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"sheet-header\"\n className={cn('flex flex-col gap-8', className)}\n {...props}\n />\n )\n}\n\nfunction SheetFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"sheet-footer\"\n className={cn(\n 'flex flex-col-reverse sm:flex-row sm:justify-end gap-8',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction SheetTitle({\n className,\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Title>) {\n return (\n <SheetPrimitive.Title\n data-slot=\"sheet-title\"\n className={cn('text-gray-800 font-medium', className)}\n {...props}\n />\n )\n}\n\nfunction SheetDescription({\n className,\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Description>) {\n return (\n <SheetPrimitive.Description\n data-slot=\"sheet-description\"\n className={cn('text-gray-900 text-base', className)}\n {...props}\n />\n )\n}\n\nexport {\n Sheet,\n SheetClose,\n SheetContent,\n SheetDescription,\n SheetFooter,\n SheetHeader,\n SheetOverlay,\n SheetPortal,\n SheetTitle,\n SheetTrigger\n}\n"],"names":["Sheet","props","SheetPrimitive","SheetTrigger","SheetClose","SheetPortal","SheetOverlay","className","jsx","cn","SheetContent","children","side","jsxs","XIcon","SheetHeader","SheetFooter","SheetTitle","SheetDescription"],"mappings":"oeAOA,SAASA,EAAM,CAAE,GAAGC,GAA2D,CAC7E,+BAAQC,EAAe,KAAf,CAAoB,YAAU,QAAS,GAAGD,EAAO,CAC3D,CAEA,SAASE,EAAa,CACpB,GAAGF,CACL,EAAwD,CACtD,+BAAQC,EAAe,QAAf,CAAuB,YAAU,gBAAiB,GAAGD,EAAO,CACtE,CAEA,SAASG,EAAW,CAClB,GAAGH,CACL,EAAsD,CACpD,+BAAQC,EAAe,MAAf,CAAqB,YAAU,cAAe,GAAGD,EAAO,CAClE,CAEA,SAASI,EAAY,CACnB,GAAGJ,CACL,EAAuD,CACrD,+BAAQC,EAAe,OAAf,CAAsB,YAAU,eAAgB,GAAGD,EAAO,CACpE,CAEA,SAASK,EAAa,CACpB,UAAAC,EACA,GAAGN,CACL,EAAwD,CACtD,OACEO,EAAAA,kBAAAA,IAACN,EAAe,QAAf,CACC,YAAU,gBACV,UAAWO,EAAAA,GACT,6JACAF,CAAA,EAED,GAAGN,CAAA,CAAA,CAGV,CAEA,SAASS,EAAa,CACpB,UAAAH,EACA,SAAAI,EACA,KAAAC,EAAO,QACP,GAAGX,CACL,EAEG,CACD,gCACGI,EAAA,CACC,SAAA,CAAAG,EAAAA,kBAAAA,IAACF,EAAA,EAAa,EACdO,EAAAA,kBAAAA,KAACX,EAAe,QAAf,CACC,YAAU,gBACV,UAAWO,EAAAA,GACT,mNACAG,IAAS,SACP,mIACFA,IAAS,QACP,gIACFA,IAAS,OACP,2GACFA,IAAS,UACP,oHACFL,CAAA,EAED,GAAGN,EAEH,SAAA,CAAAU,EACDE,EAAAA,kBAAAA,KAACX,EAAe,MAAf,CAAqB,UAAU,mIAC9B,SAAA,CAAAM,EAAAA,kBAAAA,IAACM,EAAAA,MAAA,CAAM,UAAU,SAAA,CAAU,EAC3BN,EAAAA,kBAAAA,IAAC,OAAA,CAAK,UAAU,UAAU,SAAA,OAAA,CAAK,CAAA,CAAA,CACjC,CAAA,CAAA,CAAA,CACF,EACF,CAEJ,CAEA,SAASO,EAAY,CAAE,UAAAR,EAAW,GAAGN,GAAsC,CACzE,OACEO,EAAAA,kBAAAA,IAAC,MAAA,CACC,YAAU,eACV,UAAWC,EAAAA,GAAG,sBAAuBF,CAAS,EAC7C,GAAGN,CAAA,CAAA,CAGV,CAEA,SAASe,EAAY,CAAE,UAAAT,EAAW,GAAGN,GAAsC,CACzE,OACEO,EAAAA,kBAAAA,IAAC,MAAA,CACC,YAAU,eACV,UAAWC,EAAAA,GACT,yDACAF,CAAA,EAED,GAAGN,CAAA,CAAA,CAGV,CAEA,SAASgB,EAAW,CAClB,UAAAV,EACA,GAAGN,CACL,EAAsD,CACpD,OACEO,EAAAA,kBAAAA,IAACN,EAAe,MAAf,CACC,YAAU,cACV,UAAWO,EAAAA,GAAG,4BAA6BF,CAAS,EACnD,GAAGN,CAAA,CAAA,CAGV,CAEA,SAASiB,EAAiB,CACxB,UAAAX,EACA,GAAGN,CACL,EAA4D,CAC1D,OACEO,EAAAA,kBAAAA,IAACN,EAAe,YAAf,CACC,YAAU,oBACV,UAAWO,EAAAA,GAAG,0BAA2BF,CAAS,EACjD,GAAGN,CAAA,CAAA,CAGV"}
|
package/dist/index25.js
CHANGED
|
@@ -2,7 +2,7 @@ import { j as e } from "./index37.js";
|
|
|
2
2
|
import * as o from "@radix-ui/react-dialog";
|
|
3
3
|
import { XIcon as i } from "lucide-react";
|
|
4
4
|
import { cn as s } from "./index39.js";
|
|
5
|
-
function
|
|
5
|
+
function f({ ...t }) {
|
|
6
6
|
return /* @__PURE__ */ e.jsx(o.Root, { "data-slot": "sheet", ...t });
|
|
7
7
|
}
|
|
8
8
|
function h({
|
|
@@ -59,7 +59,7 @@ function p({
|
|
|
59
59
|
...n,
|
|
60
60
|
children: [
|
|
61
61
|
a,
|
|
62
|
-
/* @__PURE__ */ e.jsxs(o.Close, { className: "
|
|
62
|
+
/* @__PURE__ */ e.jsxs(o.Close, { className: "absolute right-16 top-16 rounded opacity-64 transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none", children: [
|
|
63
63
|
/* @__PURE__ */ e.jsx(i, { className: "size-16" }),
|
|
64
64
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close" })
|
|
65
65
|
] })
|
|
@@ -118,7 +118,7 @@ function y({
|
|
|
118
118
|
);
|
|
119
119
|
}
|
|
120
120
|
export {
|
|
121
|
-
|
|
121
|
+
f as Sheet,
|
|
122
122
|
x as SheetClose,
|
|
123
123
|
p as SheetContent,
|
|
124
124
|
y as SheetDescription,
|
package/dist/index25.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index25.js","sources":["../src/Sheet/index.tsx"],"sourcesContent":["'use client'\n\nimport * as SheetPrimitive from '@radix-ui/react-dialog'\nimport { XIcon } from 'lucide-react'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {\n return <SheetPrimitive.Root data-slot=\"sheet\" {...props} />\n}\n\nfunction SheetTrigger({\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Trigger>) {\n return <SheetPrimitive.Trigger data-slot=\"sheet-trigger\" {...props} />\n}\n\nfunction SheetClose({\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Close>) {\n return <SheetPrimitive.Close data-slot=\"sheet-close\" {...props} />\n}\n\nfunction SheetPortal({\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Portal>) {\n return <SheetPrimitive.Portal data-slot=\"sheet-portal\" {...props} />\n}\n\nfunction SheetOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Overlay>) {\n return (\n <SheetPrimitive.Overlay\n data-slot=\"sheet-overlay\"\n className={cn(\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-gray-900/24 ',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction SheetContent({\n className,\n children,\n side = 'right',\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Content> & {\n side?: 'top' | 'right' | 'bottom' | 'left'\n}) {\n return (\n <SheetPortal>\n <SheetOverlay />\n <SheetPrimitive.Content\n data-slot=\"sheet-content\"\n className={cn(\n ' bg-white data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-16 border-gray-900/16 transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500',\n side === 'right' &&\n 'data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',\n side === 'left' &&\n 'data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',\n side === 'top' &&\n 'data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b',\n side === 'bottom' &&\n 'data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t',\n className\n )}\n {...props}\n >\n {children}\n <SheetPrimitive.Close className=\"
|
|
1
|
+
{"version":3,"file":"index25.js","sources":["../src/Sheet/index.tsx"],"sourcesContent":["'use client'\n\nimport * as SheetPrimitive from '@radix-ui/react-dialog'\nimport { XIcon } from 'lucide-react'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {\n return <SheetPrimitive.Root data-slot=\"sheet\" {...props} />\n}\n\nfunction SheetTrigger({\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Trigger>) {\n return <SheetPrimitive.Trigger data-slot=\"sheet-trigger\" {...props} />\n}\n\nfunction SheetClose({\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Close>) {\n return <SheetPrimitive.Close data-slot=\"sheet-close\" {...props} />\n}\n\nfunction SheetPortal({\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Portal>) {\n return <SheetPrimitive.Portal data-slot=\"sheet-portal\" {...props} />\n}\n\nfunction SheetOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Overlay>) {\n return (\n <SheetPrimitive.Overlay\n data-slot=\"sheet-overlay\"\n className={cn(\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-gray-900/24 ',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction SheetContent({\n className,\n children,\n side = 'right',\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Content> & {\n side?: 'top' | 'right' | 'bottom' | 'left'\n}) {\n return (\n <SheetPortal>\n <SheetOverlay />\n <SheetPrimitive.Content\n data-slot=\"sheet-content\"\n className={cn(\n ' bg-white data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-16 border-gray-900/16 transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500',\n side === 'right' &&\n 'data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',\n side === 'left' &&\n 'data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',\n side === 'top' &&\n 'data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b',\n side === 'bottom' &&\n 'data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t',\n className\n )}\n {...props}\n >\n {children}\n <SheetPrimitive.Close className=\"absolute right-16 top-16 rounded opacity-64 transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none\">\n <XIcon className=\"size-16\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n </SheetPrimitive.Content>\n </SheetPortal>\n )\n}\n\nfunction SheetHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"sheet-header\"\n className={cn('flex flex-col gap-8', className)}\n {...props}\n />\n )\n}\n\nfunction SheetFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"sheet-footer\"\n className={cn(\n 'flex flex-col-reverse sm:flex-row sm:justify-end gap-8',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction SheetTitle({\n className,\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Title>) {\n return (\n <SheetPrimitive.Title\n data-slot=\"sheet-title\"\n className={cn('text-gray-800 font-medium', className)}\n {...props}\n />\n )\n}\n\nfunction SheetDescription({\n className,\n ...props\n}: React.ComponentProps<typeof SheetPrimitive.Description>) {\n return (\n <SheetPrimitive.Description\n data-slot=\"sheet-description\"\n className={cn('text-gray-900 text-base', className)}\n {...props}\n />\n )\n}\n\nexport {\n Sheet,\n SheetClose,\n SheetContent,\n SheetDescription,\n SheetFooter,\n SheetHeader,\n SheetOverlay,\n SheetPortal,\n SheetTitle,\n SheetTrigger\n}\n"],"names":["Sheet","props","SheetPrimitive","SheetTrigger","SheetClose","SheetPortal","SheetOverlay","className","jsx","cn","SheetContent","children","side","jsxs","XIcon","SheetHeader","SheetFooter","SheetTitle","SheetDescription"],"mappings":";;;;AAOA,SAASA,EAAM,EAAE,GAAGC,KAA2D;AAC7E,+BAAQC,EAAe,MAAf,EAAoB,aAAU,SAAS,GAAGD,GAAO;AAC3D;AAEA,SAASE,EAAa;AAAA,EACpB,GAAGF;AACL,GAAwD;AACtD,+BAAQC,EAAe,SAAf,EAAuB,aAAU,iBAAiB,GAAGD,GAAO;AACtE;AAEA,SAASG,EAAW;AAAA,EAClB,GAAGH;AACL,GAAsD;AACpD,+BAAQC,EAAe,OAAf,EAAqB,aAAU,eAAe,GAAGD,GAAO;AAClE;AAEA,SAASI,EAAY;AAAA,EACnB,GAAGJ;AACL,GAAuD;AACrD,+BAAQC,EAAe,QAAf,EAAsB,aAAU,gBAAgB,GAAGD,GAAO;AACpE;AAEA,SAASK,EAAa;AAAA,EACpB,WAAAC;AAAA,EACA,GAAGN;AACL,GAAwD;AACtD,SACEO,gBAAAA,EAAAA;AAAAA,IAACN,EAAe;AAAA,IAAf;AAAA,MACC,aAAU;AAAA,MACV,WAAWO;AAAA,QACT;AAAA,QACAF;AAAA,MAAA;AAAA,MAED,GAAGN;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASS,EAAa;AAAA,EACpB,WAAAH;AAAA,EACA,UAAAI;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,GAAGX;AACL,GAEG;AACD,gCACGI,GAAA,EACC,UAAA;AAAA,IAAAG,gBAAAA,EAAAA,IAACF,GAAA,EAAa;AAAA,IACdO,gBAAAA,EAAAA;AAAAA,MAACX,EAAe;AAAA,MAAf;AAAA,QACC,aAAU;AAAA,QACV,WAAWO;AAAA,UACT;AAAA,UACAG,MAAS,WACP;AAAA,UACFA,MAAS,UACP;AAAA,UACFA,MAAS,SACP;AAAA,UACFA,MAAS,YACP;AAAA,UACFL;AAAA,QAAA;AAAA,QAED,GAAGN;AAAA,QAEH,UAAA;AAAA,UAAAU;AAAA,UACDE,gBAAAA,EAAAA,KAACX,EAAe,OAAf,EAAqB,WAAU,oIAC9B,UAAA;AAAA,YAAAM,gBAAAA,EAAAA,IAACM,GAAA,EAAM,WAAU,UAAA,CAAU;AAAA,YAC3BN,gBAAAA,EAAAA,IAAC,QAAA,EAAK,WAAU,WAAU,UAAA,QAAA,CAAK;AAAA,UAAA,EAAA,CACjC;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACF,GACF;AAEJ;AAEA,SAASO,EAAY,EAAE,WAAAR,GAAW,GAAGN,KAAsC;AACzE,SACEO,gBAAAA,EAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWC,EAAG,uBAAuBF,CAAS;AAAA,MAC7C,GAAGN;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASe,EAAY,EAAE,WAAAT,GAAW,GAAGN,KAAsC;AACzE,SACEO,gBAAAA,EAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWC;AAAA,QACT;AAAA,QACAF;AAAA,MAAA;AAAA,MAED,GAAGN;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASgB,EAAW;AAAA,EAClB,WAAAV;AAAA,EACA,GAAGN;AACL,GAAsD;AACpD,SACEO,gBAAAA,EAAAA;AAAAA,IAACN,EAAe;AAAA,IAAf;AAAA,MACC,aAAU;AAAA,MACV,WAAWO,EAAG,6BAA6BF,CAAS;AAAA,MACnD,GAAGN;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASiB,EAAiB;AAAA,EACxB,WAAAX;AAAA,EACA,GAAGN;AACL,GAA4D;AAC1D,SACEO,gBAAAA,EAAAA;AAAAA,IAACN,EAAe;AAAA,IAAf;AAAA,MACC,aAAU;AAAA,MACV,WAAWO,EAAG,2BAA2BF,CAAS;AAAA,MACjD,GAAGN;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
package/dist/index27.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index37.cjs"),t=require("lucide-react"),o=require("sonner"),n=({className:s,...r})=>e.jsxRuntimeExports.jsx(o.Toaster,{className:s,position:"top-center",offset:16,gap:16,closeButton:!0,toastOptions:{unstyled:!0,classNames:{toast:"flex pointer-events-auto w-full gap-x-8 items-center overflow-hidden rounded border border-gray-900/8 p-16 pr-24 shadow-200 transition-all",success:"bg-green-50",warning:"bg-yellow-50",error:"bg-magenta-50",title:"text-sm text-gray-900! font-medium!",description:"text-sm text-gray-800!",closeButton:"left-auto
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index37.cjs"),t=require("lucide-react"),o=require("sonner"),n=({className:s,...r})=>e.jsxRuntimeExports.jsx(o.Toaster,{className:s,position:"top-center",offset:16,gap:16,closeButton:!0,toastOptions:{unstyled:!0,classNames:{toast:"flex pointer-events-auto w-full gap-x-8 items-center overflow-hidden rounded border border-gray-900/8 p-16 pr-24 shadow-200 transition-all",success:"bg-green-50",warning:"bg-yellow-50",error:"bg-magenta-50",title:"text-sm text-gray-900! font-medium!",description:"text-sm text-gray-800!",closeButton:"absolute left-auto right-8 top-8 size-24 inline-flex items-center justify-center rounded-full bg-gray-900/8 hover:bg-gray-900/12 focus:bg-gray-900/12 active:bg-gray-900/16"}},icons:{success:e.jsxRuntimeExports.jsx(t.CheckIcon,{size:20,className:"text-green-800"}),warning:e.jsxRuntimeExports.jsx(t.AlertTriangleIcon,{size:20,className:"text-yellow-600"}),error:e.jsxRuntimeExports.jsx(t.AlertCircleIcon,{size:20,className:"text-magenta-600"}),close:e.jsxRuntimeExports.jsx(t.LucideX,{size:16})},...r});exports.Toaster=n;
|
|
2
2
|
//# sourceMappingURL=index27.cjs.map
|
package/dist/index27.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index27.cjs","sources":["../src/Sonner/index.tsx"],"sourcesContent":["'use client'\n\nimport {\n AlertCircleIcon,\n AlertTriangleIcon,\n CheckIcon,\n LucideX\n} from 'lucide-react'\nimport { Toaster as Sonner } from 'sonner'\n\ntype ToasterProps = React.ComponentProps<typeof Sonner>\n\nconst Toaster = ({ className, ...props }: ToasterProps) => {\n return (\n <Sonner\n className={className}\n position=\"top-center\"\n offset={16}\n gap={16}\n closeButton={true}\n toastOptions={{\n unstyled: true,\n classNames: {\n toast:\n 'flex pointer-events-auto w-full gap-x-8 items-center overflow-hidden rounded border border-gray-900/8 p-16 pr-24 shadow-200 transition-all',\n success: 'bg-green-50',\n warning: 'bg-yellow-50',\n error: 'bg-magenta-50',\n title: 'text-sm text-gray-900! font-medium!',\n description: 'text-sm text-gray-800!',\n closeButton:\n 'left-auto
|
|
1
|
+
{"version":3,"file":"index27.cjs","sources":["../src/Sonner/index.tsx"],"sourcesContent":["'use client'\n\nimport {\n AlertCircleIcon,\n AlertTriangleIcon,\n CheckIcon,\n LucideX\n} from 'lucide-react'\nimport { Toaster as Sonner } from 'sonner'\n\ntype ToasterProps = React.ComponentProps<typeof Sonner>\n\nconst Toaster = ({ className, ...props }: ToasterProps) => {\n return (\n <Sonner\n className={className}\n position=\"top-center\"\n offset={16}\n gap={16}\n closeButton={true}\n toastOptions={{\n unstyled: true,\n classNames: {\n toast:\n 'flex pointer-events-auto w-full gap-x-8 items-center overflow-hidden rounded border border-gray-900/8 p-16 pr-24 shadow-200 transition-all',\n success: 'bg-green-50',\n warning: 'bg-yellow-50',\n error: 'bg-magenta-50',\n title: 'text-sm text-gray-900! font-medium!',\n description: 'text-sm text-gray-800!',\n closeButton:\n 'absolute left-auto right-8 top-8 size-24 inline-flex items-center justify-center rounded-full bg-gray-900/8 hover:bg-gray-900/12 focus:bg-gray-900/12 active:bg-gray-900/16'\n }\n }}\n icons={{\n success: <CheckIcon size={20} className=\"text-green-800\" />,\n warning: <AlertTriangleIcon size={20} className=\"text-yellow-600\" />,\n error: <AlertCircleIcon size={20} className=\"text-magenta-600\" />,\n close: <LucideX size={16} />\n }}\n {...props}\n />\n )\n}\n\nexport { Toaster }\n"],"names":["Toaster","className","props","jsx","Sonner","CheckIcon","AlertTriangleIcon","AlertCircleIcon","LucideX"],"mappings":"+JAYMA,EAAU,CAAC,CAAE,UAAAC,EAAW,GAAGC,KAE7BC,EAAAA,kBAAAA,IAACC,EAAAA,QAAA,CACC,UAAAH,EACA,SAAS,aACT,OAAQ,GACR,IAAK,GACL,YAAa,GACb,aAAc,CACZ,SAAU,GACV,WAAY,CACV,MACE,6IACF,QAAS,cACT,QAAS,eACT,MAAO,gBACP,MAAO,sCACP,YAAa,yBACb,YACE,6KAAA,CACJ,EAEF,MAAO,CACL,QAASE,EAAAA,kBAAAA,IAACE,YAAA,CAAU,KAAM,GAAI,UAAU,iBAAiB,EACzD,QAASF,EAAAA,kBAAAA,IAACG,oBAAA,CAAkB,KAAM,GAAI,UAAU,kBAAkB,EAClE,MAAOH,EAAAA,kBAAAA,IAACI,kBAAA,CAAgB,KAAM,GAAI,UAAU,mBAAmB,EAC/D,MAAOJ,EAAAA,kBAAAA,IAACK,EAAAA,QAAA,CAAQ,KAAM,EAAA,CAAI,CAAA,EAE3B,GAAGN,CAAA,CAAA"}
|
package/dist/index27.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as e } from "./index37.js";
|
|
2
|
-
import { LucideX as
|
|
2
|
+
import { LucideX as r, AlertCircleIcon as o, AlertTriangleIcon as a, CheckIcon as n } from "lucide-react";
|
|
3
3
|
import { Toaster as i } from "sonner";
|
|
4
|
-
const
|
|
4
|
+
const u = ({ className: t, ...s }) => /* @__PURE__ */ e.jsx(
|
|
5
5
|
i,
|
|
6
6
|
{
|
|
7
7
|
className: t,
|
|
@@ -18,19 +18,19 @@ const m = ({ className: t, ...r }) => /* @__PURE__ */ e.jsx(
|
|
|
18
18
|
error: "bg-magenta-50",
|
|
19
19
|
title: "text-sm text-gray-900! font-medium!",
|
|
20
20
|
description: "text-sm text-gray-800!",
|
|
21
|
-
closeButton: "left-auto
|
|
21
|
+
closeButton: "absolute left-auto right-8 top-8 size-24 inline-flex items-center justify-center rounded-full bg-gray-900/8 hover:bg-gray-900/12 focus:bg-gray-900/12 active:bg-gray-900/16"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
icons: {
|
|
25
25
|
success: /* @__PURE__ */ e.jsx(n, { size: 20, className: "text-green-800" }),
|
|
26
26
|
warning: /* @__PURE__ */ e.jsx(a, { size: 20, className: "text-yellow-600" }),
|
|
27
27
|
error: /* @__PURE__ */ e.jsx(o, { size: 20, className: "text-magenta-600" }),
|
|
28
|
-
close: /* @__PURE__ */ e.jsx(
|
|
28
|
+
close: /* @__PURE__ */ e.jsx(r, { size: 16 })
|
|
29
29
|
},
|
|
30
|
-
...
|
|
30
|
+
...s
|
|
31
31
|
}
|
|
32
32
|
);
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
u as Toaster
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=index27.js.map
|
package/dist/index27.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index27.js","sources":["../src/Sonner/index.tsx"],"sourcesContent":["'use client'\n\nimport {\n AlertCircleIcon,\n AlertTriangleIcon,\n CheckIcon,\n LucideX\n} from 'lucide-react'\nimport { Toaster as Sonner } from 'sonner'\n\ntype ToasterProps = React.ComponentProps<typeof Sonner>\n\nconst Toaster = ({ className, ...props }: ToasterProps) => {\n return (\n <Sonner\n className={className}\n position=\"top-center\"\n offset={16}\n gap={16}\n closeButton={true}\n toastOptions={{\n unstyled: true,\n classNames: {\n toast:\n 'flex pointer-events-auto w-full gap-x-8 items-center overflow-hidden rounded border border-gray-900/8 p-16 pr-24 shadow-200 transition-all',\n success: 'bg-green-50',\n warning: 'bg-yellow-50',\n error: 'bg-magenta-50',\n title: 'text-sm text-gray-900! font-medium!',\n description: 'text-sm text-gray-800!',\n closeButton:\n 'left-auto
|
|
1
|
+
{"version":3,"file":"index27.js","sources":["../src/Sonner/index.tsx"],"sourcesContent":["'use client'\n\nimport {\n AlertCircleIcon,\n AlertTriangleIcon,\n CheckIcon,\n LucideX\n} from 'lucide-react'\nimport { Toaster as Sonner } from 'sonner'\n\ntype ToasterProps = React.ComponentProps<typeof Sonner>\n\nconst Toaster = ({ className, ...props }: ToasterProps) => {\n return (\n <Sonner\n className={className}\n position=\"top-center\"\n offset={16}\n gap={16}\n closeButton={true}\n toastOptions={{\n unstyled: true,\n classNames: {\n toast:\n 'flex pointer-events-auto w-full gap-x-8 items-center overflow-hidden rounded border border-gray-900/8 p-16 pr-24 shadow-200 transition-all',\n success: 'bg-green-50',\n warning: 'bg-yellow-50',\n error: 'bg-magenta-50',\n title: 'text-sm text-gray-900! font-medium!',\n description: 'text-sm text-gray-800!',\n closeButton:\n 'absolute left-auto right-8 top-8 size-24 inline-flex items-center justify-center rounded-full bg-gray-900/8 hover:bg-gray-900/12 focus:bg-gray-900/12 active:bg-gray-900/16'\n }\n }}\n icons={{\n success: <CheckIcon size={20} className=\"text-green-800\" />,\n warning: <AlertTriangleIcon size={20} className=\"text-yellow-600\" />,\n error: <AlertCircleIcon size={20} className=\"text-magenta-600\" />,\n close: <LucideX size={16} />\n }}\n {...props}\n />\n )\n}\n\nexport { Toaster }\n"],"names":["Toaster","className","props","jsx","Sonner","CheckIcon","AlertTriangleIcon","AlertCircleIcon","LucideX"],"mappings":";;;AAYA,MAAMA,IAAU,CAAC,EAAE,WAAAC,GAAW,GAAGC,QAE7BC,gBAAAA,EAAAA;AAAAA,EAACC;AAAAA,EAAA;AAAA,IACC,WAAAH;AAAA,IACA,UAAS;AAAA,IACT,QAAQ;AAAA,IACR,KAAK;AAAA,IACL,aAAa;AAAA,IACb,cAAc;AAAA,MACZ,UAAU;AAAA,MACV,YAAY;AAAA,QACV,OACE;AAAA,QACF,SAAS;AAAA,QACT,SAAS;AAAA,QACT,OAAO;AAAA,QACP,OAAO;AAAA,QACP,aAAa;AAAA,QACb,aACE;AAAA,MAAA;AAAA,IACJ;AAAA,IAEF,OAAO;AAAA,MACL,SAASE,gBAAAA,EAAAA,IAACE,GAAA,EAAU,MAAM,IAAI,WAAU,kBAAiB;AAAA,MACzD,SAASF,gBAAAA,EAAAA,IAACG,GAAA,EAAkB,MAAM,IAAI,WAAU,mBAAkB;AAAA,MAClE,OAAOH,gBAAAA,EAAAA,IAACI,GAAA,EAAgB,MAAM,IAAI,WAAU,oBAAmB;AAAA,MAC/D,OAAOJ,gBAAAA,EAAAA,IAACK,GAAA,EAAQ,MAAM,GAAA,CAAI;AAAA,IAAA;AAAA,IAE3B,GAAGN;AAAA,EAAA;AAAA;"}
|
package/dist/index28.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index37.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index37.cjs"),i=require("@radix-ui/react-switch"),c=require("./index39.cjs");function o(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const s=o(i);function d({className:e,...t}){return n.jsxRuntimeExports.jsx(s.Root,{"data-slot":"switch",className:c.cn("peer inline-flex h-[20px] w-[36px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors disabled:cursor-not-allowed disabled:opacity-64","data-[state=checked]:bg-purple-700 data-[state=checked]:hover:bg-purple-800 data-[state=checked]:active:bg-purple-900","data-[state=unchecked]:bg-gray-900/16 data-[state=unchecked]:hover:bg-gray-900/24 data-[state=unchecked]:active:bg-gray-900/32",e),...t,children:n.jsxRuntimeExports.jsx(s.Thumb,{"data-slot":"switch-thumb",className:c.cn("pointer-events-none block size-16 rounded-full bg-white shadow-lg transition-transform data-[state=checked]:translate-x-16 data-[state=unchecked]:translate-x-0")})})}exports.Switch=d;
|
|
2
2
|
//# sourceMappingURL=index28.cjs.map
|
package/dist/index28.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index28.cjs","sources":["../src/Switch/index.tsx"],"sourcesContent":["'use client'\n\nimport * as
|
|
1
|
+
{"version":3,"file":"index28.cjs","sources":["../src/Switch/index.tsx"],"sourcesContent":["'use client'\n\nimport * as SwitchPrimitive from '@radix-ui/react-switch'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction Switch({\n className,\n ...props\n}: React.ComponentProps<typeof SwitchPrimitive.Root>) {\n return (\n <SwitchPrimitive.Root\n data-slot=\"switch\"\n className={cn(\n 'peer inline-flex h-[20px] w-[36px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors disabled:cursor-not-allowed disabled:opacity-64',\n 'data-[state=checked]:bg-purple-700 data-[state=checked]:hover:bg-purple-800 data-[state=checked]:active:bg-purple-900',\n 'data-[state=unchecked]:bg-gray-900/16 data-[state=unchecked]:hover:bg-gray-900/24 data-[state=unchecked]:active:bg-gray-900/32',\n className\n )}\n {...props}\n >\n <SwitchPrimitive.Thumb\n data-slot=\"switch-thumb\"\n className={cn(\n 'pointer-events-none block size-16 rounded-full bg-white shadow-lg transition-transform data-[state=checked]:translate-x-16 data-[state=unchecked]:translate-x-0'\n )}\n />\n </SwitchPrimitive.Root>\n )\n}\n\nexport { Switch }\n"],"names":["Switch","className","props","jsx","SwitchPrimitive","cn"],"mappings":"0cAMA,SAASA,EAAO,CACd,UAAAC,EACA,GAAGC,CACL,EAAsD,CACpD,OACEC,EAAAA,kBAAAA,IAACC,EAAgB,KAAhB,CACC,YAAU,SACV,UAAWC,EAAAA,GACT,qLACA,wHACA,iIACAJ,CAAA,EAED,GAAGC,EAEJ,SAAAC,EAAAA,kBAAAA,IAACC,EAAgB,MAAhB,CACC,YAAU,eACV,UAAWC,EAAAA,GACT,iKAAA,CACF,CAAA,CACF,CAAA,CAGN"}
|
package/dist/index28.js
CHANGED
|
@@ -1,29 +1,33 @@
|
|
|
1
1
|
import { j as t } from "./index37.js";
|
|
2
2
|
import * as e from "@radix-ui/react-switch";
|
|
3
|
-
import * as c from "react";
|
|
4
3
|
import { cn as a } from "./index39.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
4
|
+
function d({
|
|
5
|
+
className: r,
|
|
6
|
+
...s
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ t.jsx(
|
|
9
|
+
e.Root,
|
|
10
|
+
{
|
|
11
|
+
"data-slot": "switch",
|
|
12
|
+
className: a(
|
|
13
|
+
"peer inline-flex h-[20px] w-[36px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors disabled:cursor-not-allowed disabled:opacity-64",
|
|
14
|
+
"data-[state=checked]:bg-purple-700 data-[state=checked]:hover:bg-purple-800 data-[state=checked]:active:bg-purple-900",
|
|
15
|
+
"data-[state=unchecked]:bg-gray-900/16 data-[state=unchecked]:hover:bg-gray-900/24 data-[state=unchecked]:active:bg-gray-900/32",
|
|
16
|
+
r
|
|
17
|
+
),
|
|
18
|
+
...s,
|
|
19
|
+
children: /* @__PURE__ */ t.jsx(
|
|
20
|
+
e.Thumb,
|
|
21
|
+
{
|
|
22
|
+
"data-slot": "switch-thumb",
|
|
23
|
+
className: a(
|
|
24
|
+
"pointer-events-none block size-16 rounded-full bg-white shadow-lg transition-transform data-[state=checked]:translate-x-16 data-[state=unchecked]:translate-x-0"
|
|
25
|
+
)
|
|
26
|
+
}
|
|
27
|
+
)
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
27
31
|
export {
|
|
28
32
|
d as Switch
|
|
29
33
|
};
|
package/dist/index28.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index28.js","sources":["../src/Switch/index.tsx"],"sourcesContent":["'use client'\n\nimport * as
|
|
1
|
+
{"version":3,"file":"index28.js","sources":["../src/Switch/index.tsx"],"sourcesContent":["'use client'\n\nimport * as SwitchPrimitive from '@radix-ui/react-switch'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction Switch({\n className,\n ...props\n}: React.ComponentProps<typeof SwitchPrimitive.Root>) {\n return (\n <SwitchPrimitive.Root\n data-slot=\"switch\"\n className={cn(\n 'peer inline-flex h-[20px] w-[36px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors disabled:cursor-not-allowed disabled:opacity-64',\n 'data-[state=checked]:bg-purple-700 data-[state=checked]:hover:bg-purple-800 data-[state=checked]:active:bg-purple-900',\n 'data-[state=unchecked]:bg-gray-900/16 data-[state=unchecked]:hover:bg-gray-900/24 data-[state=unchecked]:active:bg-gray-900/32',\n className\n )}\n {...props}\n >\n <SwitchPrimitive.Thumb\n data-slot=\"switch-thumb\"\n className={cn(\n 'pointer-events-none block size-16 rounded-full bg-white shadow-lg transition-transform data-[state=checked]:translate-x-16 data-[state=unchecked]:translate-x-0'\n )}\n />\n </SwitchPrimitive.Root>\n )\n}\n\nexport { Switch }\n"],"names":["Switch","className","props","jsx","SwitchPrimitive","cn"],"mappings":";;;AAMA,SAASA,EAAO;AAAA,EACd,WAAAC;AAAA,EACA,GAAGC;AACL,GAAsD;AACpD,SACEC,gBAAAA,EAAAA;AAAAA,IAACC,EAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACV,WAAWC;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,QACAJ;AAAA,MAAA;AAAA,MAED,GAAGC;AAAA,MAEJ,UAAAC,gBAAAA,EAAAA;AAAAA,QAACC,EAAgB;AAAA,QAAhB;AAAA,UACC,aAAU;AAAA,UACV,WAAWC;AAAA,YACT;AAAA,UAAA;AAAA,QACF;AAAA,MAAA;AAAA,IACF;AAAA,EAAA;AAGN;"}
|
package/dist/index29.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index37.cjs"),n=require("lucide-react"),r=require("./index39.cjs");function i({className:e,...t}){return a.jsxRuntimeExports.jsx("table",{"data-slot":"table",className:r.cn("border-separate border-spacing-y-8",e),...t})}function c({className:e,...t}){return a.jsxRuntimeExports.jsx("thead",{"data-slot":"table-header",className:r.cn("bg-gray-200 text-left text-sm",e),...t})}function d({className:e,hoverable:t,...s}){return a.jsxRuntimeExports.jsx("tbody",{"data-slot":"table-body",className:r.cn("bg-white",{"[&_tr:hover]:bg-gray-100 cursor-pointer":t},e),...s})}function u({className:e,...t}){return a.jsxRuntimeExports.jsx("tfoot",{"data-slot":"table-footer",className:r.cn("bg-gray-100",e),...t})}function b({className:e,...t}){return a.jsxRuntimeExports.jsx("tr",{"data-slot":"table-row",className:r.cn("transition-colors data-[state=selected]:bg-gray-100",e),...t})}function x({className:e,children:t,sortDirection:s,...l}){let o;return s==="ASC"?o=n.LucideChevronUp:s==="DESC"&&(o=n.LucideChevronDown),a.jsxRuntimeExports.jsxs("th",{"data-slot":"table-head",className:r.cn("first:rounded-l first:pl-24","last:rounded-r last:pr-24","px-12 py-8 font-normal leading-14","whitespace-nowrap",{"cursor-pointer":!!l?.onClick},e),...l,children:[t,o&&a.jsxRuntimeExports.jsx(o,{size:16,className:"inline-block ml-4"})]})}function p({className:e,...t}){return a.jsxRuntimeExports.jsx("td",{"data-slot":"table-cell",className:r.cn("first:rounded-l first:pl-24 first:border-l","last:rounded-r last:pr-24 last:border-r","border-gray-900/8 border-y px-12 h-[54px]","whitespace-nowrap",e),...t})}function m({className:e,...t}){return a.jsxRuntimeExports.jsx("caption",{"data-slot":"table-caption",className:r.cn("mt-16 text-sm text-gray-700",e),...t})}exports.Table=i;exports.TableBody=d;exports.TableCaption=m;exports.TableCell=p;exports.TableFooter=u;exports.TableHead=x;exports.TableHeader=c;exports.TableRow=b;
|
|
2
2
|
//# sourceMappingURL=index29.cjs.map
|
package/dist/index29.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index29.cjs","sources":["../src/Table/index.tsx"],"sourcesContent":["import { LucideChevronDown, LucideChevronUp } from 'lucide-react'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\
|
|
1
|
+
{"version":3,"file":"index29.cjs","sources":["../src/Table/index.tsx"],"sourcesContent":["import { LucideChevronDown, LucideChevronUp } from 'lucide-react'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction Table({ className, ...props }: React.ComponentProps<'table'>) {\n return (\n <table\n data-slot=\"table\"\n className={cn('border-separate border-spacing-y-8', className)}\n {...props}\n />\n )\n}\n\nfunction TableHeader({ className, ...props }: React.ComponentProps<'thead'>) {\n return (\n <thead\n data-slot=\"table-header\"\n className={cn('bg-gray-200 text-left text-sm', className)}\n {...props}\n />\n )\n}\n\nfunction TableBody({\n className,\n hoverable,\n ...props\n}: React.ComponentProps<'tbody'> & { hoverable?: boolean }) {\n return (\n <tbody\n data-slot=\"table-body\"\n className={cn(\n 'bg-white',\n {\n '[&_tr:hover]:bg-gray-100 cursor-pointer': hoverable\n },\n className\n )}\n {...props}\n />\n )\n}\n\nfunction TableFooter({ className, ...props }: React.ComponentProps<'tfoot'>) {\n return (\n <tfoot\n data-slot=\"table-footer\"\n className={cn('bg-gray-100', className)}\n {...props}\n />\n )\n}\n\nfunction TableRow({ className, ...props }: React.ComponentProps<'tr'>) {\n return (\n <tr\n data-slot=\"table-row\"\n className={cn(\n 'transition-colors data-[state=selected]:bg-gray-100',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction TableHead({\n className,\n children,\n sortDirection,\n ...props\n}: React.ComponentProps<'th'> & { sortDirection?: 'ASC' | 'DESC' }) {\n let SortIcon\n if (sortDirection === 'ASC') {\n SortIcon = LucideChevronUp\n } else if (sortDirection === 'DESC') {\n SortIcon = LucideChevronDown\n }\n\n return (\n <th\n data-slot=\"table-head\"\n className={cn(\n 'first:rounded-l first:pl-24',\n 'last:rounded-r last:pr-24',\n 'px-12 py-8 font-normal leading-14',\n 'whitespace-nowrap',\n {\n 'cursor-pointer': !!props?.onClick\n },\n className\n )}\n {...props}\n >\n {children}\n {SortIcon && <SortIcon size={16} className=\"inline-block ml-4\" />}\n </th>\n )\n}\n\nfunction TableCell({ className, ...props }: React.ComponentProps<'td'>) {\n return (\n <td\n data-slot=\"table-cell\"\n className={cn(\n 'first:rounded-l first:pl-24 first:border-l',\n 'last:rounded-r last:pr-24 last:border-r',\n 'border-gray-900/8 border-y px-12 h-[54px]',\n 'whitespace-nowrap',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction TableCaption({\n className,\n ...props\n}: React.ComponentProps<'caption'>) {\n return (\n <caption\n data-slot=\"table-caption\"\n className={cn('mt-16 text-sm text-gray-700', className)}\n {...props}\n />\n )\n}\n\nexport {\n Table,\n TableBody,\n TableCaption,\n TableCell,\n TableFooter,\n TableHead,\n TableHeader,\n TableRow\n}\n"],"names":["Table","className","props","jsx","cn","TableHeader","TableBody","hoverable","TableFooter","TableRow","TableHead","children","sortDirection","SortIcon","LucideChevronUp","LucideChevronDown","jsxs","TableCell","TableCaption"],"mappings":"sKAIA,SAASA,EAAM,CAAE,UAAAC,EAAW,GAAGC,GAAwC,CACrE,OACEC,EAAAA,kBAAAA,IAAC,QAAA,CACC,YAAU,QACV,UAAWC,EAAAA,GAAG,qCAAsCH,CAAS,EAC5D,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASG,EAAY,CAAE,UAAAJ,EAAW,GAAGC,GAAwC,CAC3E,OACEC,EAAAA,kBAAAA,IAAC,QAAA,CACC,YAAU,eACV,UAAWC,EAAAA,GAAG,gCAAiCH,CAAS,EACvD,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASI,EAAU,CACjB,UAAAL,EACA,UAAAM,EACA,GAAGL,CACL,EAA4D,CAC1D,OACEC,EAAAA,kBAAAA,IAAC,QAAA,CACC,YAAU,aACV,UAAWC,EAAAA,GACT,WACA,CACE,0CAA2CG,CAAA,EAE7CN,CAAA,EAED,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASM,EAAY,CAAE,UAAAP,EAAW,GAAGC,GAAwC,CAC3E,OACEC,EAAAA,kBAAAA,IAAC,QAAA,CACC,YAAU,eACV,UAAWC,EAAAA,GAAG,cAAeH,CAAS,EACrC,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASO,EAAS,CAAE,UAAAR,EAAW,GAAGC,GAAqC,CACrE,OACEC,EAAAA,kBAAAA,IAAC,KAAA,CACC,YAAU,YACV,UAAWC,EAAAA,GACT,sDACAH,CAAA,EAED,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASQ,EAAU,CACjB,UAAAT,EACA,SAAAU,EACA,cAAAC,EACA,GAAGV,CACL,EAAoE,CAClE,IAAIW,EACJ,OAAID,IAAkB,MACpBC,EAAWC,EAAAA,gBACFF,IAAkB,SAC3BC,EAAWE,EAAAA,mBAIXC,EAAAA,kBAAAA,KAAC,KAAA,CACC,YAAU,aACV,UAAWZ,EAAAA,GACT,8BACA,4BACA,oCACA,oBACA,CACE,iBAAkB,CAAC,CAACF,GAAO,OAAA,EAE7BD,CAAA,EAED,GAAGC,EAEH,SAAA,CAAAS,EACAE,GAAYV,EAAAA,kBAAAA,IAACU,EAAA,CAAS,KAAM,GAAI,UAAU,mBAAA,CAAoB,CAAA,CAAA,CAAA,CAGrE,CAEA,SAASI,EAAU,CAAE,UAAAhB,EAAW,GAAGC,GAAqC,CACtE,OACEC,EAAAA,kBAAAA,IAAC,KAAA,CACC,YAAU,aACV,UAAWC,EAAAA,GACT,6CACA,0CACA,4CACA,oBACAH,CAAA,EAED,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASgB,EAAa,CACpB,UAAAjB,EACA,GAAGC,CACL,EAAoC,CAClC,OACEC,EAAAA,kBAAAA,IAAC,UAAA,CACC,YAAU,gBACV,UAAWC,EAAAA,GAAG,8BAA+BH,CAAS,EACrD,GAAGC,CAAA,CAAA,CAGV"}
|
package/dist/index29.js
CHANGED
|
@@ -1,115 +1,135 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { LucideChevronUp as n, LucideChevronDown as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
)
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import { j as a } from "./index37.js";
|
|
2
|
+
import { LucideChevronUp as n, LucideChevronDown as d } from "lucide-react";
|
|
3
|
+
import { cn as r } from "./index39.js";
|
|
4
|
+
function u({ className: t, ...e }) {
|
|
5
|
+
return /* @__PURE__ */ a.jsx(
|
|
6
|
+
"table",
|
|
7
|
+
{
|
|
8
|
+
"data-slot": "table",
|
|
9
|
+
className: r("border-separate border-spacing-y-8", t),
|
|
10
|
+
...e
|
|
11
|
+
}
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
function p({ className: t, ...e }) {
|
|
15
|
+
return /* @__PURE__ */ a.jsx(
|
|
16
|
+
"thead",
|
|
17
|
+
{
|
|
18
|
+
"data-slot": "table-header",
|
|
19
|
+
className: r("bg-gray-200 text-left text-sm", t),
|
|
20
|
+
...e
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
function f({
|
|
25
|
+
className: t,
|
|
26
|
+
hoverable: e,
|
|
27
|
+
...o
|
|
28
|
+
}) {
|
|
29
|
+
return /* @__PURE__ */ a.jsx(
|
|
25
30
|
"tbody",
|
|
26
31
|
{
|
|
27
|
-
|
|
28
|
-
className:
|
|
32
|
+
"data-slot": "table-body",
|
|
33
|
+
className: r(
|
|
29
34
|
"bg-white",
|
|
30
35
|
{
|
|
31
36
|
"[&_tr:hover]:bg-gray-100 cursor-pointer": e
|
|
32
37
|
},
|
|
33
|
-
|
|
38
|
+
t
|
|
39
|
+
),
|
|
40
|
+
...o
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
function m({ className: t, ...e }) {
|
|
45
|
+
return /* @__PURE__ */ a.jsx(
|
|
46
|
+
"tfoot",
|
|
47
|
+
{
|
|
48
|
+
"data-slot": "table-footer",
|
|
49
|
+
className: r("bg-gray-100", t),
|
|
50
|
+
...e
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
function x({ className: t, ...e }) {
|
|
55
|
+
return /* @__PURE__ */ a.jsx(
|
|
56
|
+
"tr",
|
|
57
|
+
{
|
|
58
|
+
"data-slot": "table-row",
|
|
59
|
+
className: r(
|
|
60
|
+
"transition-colors data-[state=selected]:bg-gray-100",
|
|
61
|
+
t
|
|
34
62
|
),
|
|
35
|
-
...
|
|
63
|
+
...e
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
function g({
|
|
68
|
+
className: t,
|
|
69
|
+
children: e,
|
|
70
|
+
sortDirection: o,
|
|
71
|
+
...l
|
|
72
|
+
}) {
|
|
73
|
+
let s;
|
|
74
|
+
return o === "ASC" ? s = n : o === "DESC" && (s = d), /* @__PURE__ */ a.jsxs(
|
|
75
|
+
"th",
|
|
76
|
+
{
|
|
77
|
+
"data-slot": "table-head",
|
|
78
|
+
className: r(
|
|
79
|
+
"first:rounded-l first:pl-24",
|
|
80
|
+
"last:rounded-r last:pr-24",
|
|
81
|
+
"px-12 py-8 font-normal leading-14",
|
|
82
|
+
"whitespace-nowrap",
|
|
83
|
+
{
|
|
84
|
+
"cursor-pointer": !!l?.onClick
|
|
85
|
+
},
|
|
86
|
+
t
|
|
87
|
+
),
|
|
88
|
+
...l,
|
|
89
|
+
children: [
|
|
90
|
+
e,
|
|
91
|
+
s && /* @__PURE__ */ a.jsx(s, { size: 16, className: "inline-block ml-4" })
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
function h({ className: t, ...e }) {
|
|
97
|
+
return /* @__PURE__ */ a.jsx(
|
|
98
|
+
"td",
|
|
99
|
+
{
|
|
100
|
+
"data-slot": "table-cell",
|
|
101
|
+
className: r(
|
|
102
|
+
"first:rounded-l first:pl-24 first:border-l",
|
|
103
|
+
"last:rounded-r last:pr-24 last:border-r",
|
|
104
|
+
"border-gray-900/8 border-y px-12 h-[54px]",
|
|
105
|
+
"whitespace-nowrap",
|
|
106
|
+
t
|
|
107
|
+
),
|
|
108
|
+
...e
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
function y({
|
|
113
|
+
className: t,
|
|
114
|
+
...e
|
|
115
|
+
}) {
|
|
116
|
+
return /* @__PURE__ */ a.jsx(
|
|
117
|
+
"caption",
|
|
118
|
+
{
|
|
119
|
+
"data-slot": "table-caption",
|
|
120
|
+
className: r("mt-16 text-sm text-gray-700", t),
|
|
121
|
+
...e
|
|
36
122
|
}
|
|
37
|
-
)
|
|
38
|
-
|
|
39
|
-
b.displayName = "TableBody";
|
|
40
|
-
const f = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ s.jsx("tfoot", { ref: r, className: t("bg-gray-100", a), ...e }));
|
|
41
|
-
f.displayName = "TableFooter";
|
|
42
|
-
const y = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
|
|
43
|
-
"tr",
|
|
44
|
-
{
|
|
45
|
-
ref: r,
|
|
46
|
-
className: t(
|
|
47
|
-
"transition-colors data-[state=selected]:bg-gray-100",
|
|
48
|
-
a
|
|
49
|
-
),
|
|
50
|
-
...e
|
|
51
|
-
}
|
|
52
|
-
));
|
|
53
|
-
y.displayName = "TableRow";
|
|
54
|
-
const x = o.forwardRef(
|
|
55
|
-
({ className: a, sortDirection: e, children: r, ...l }, i) => {
|
|
56
|
-
let d;
|
|
57
|
-
return e === "ASC" ? d = n : e === "DESC" && (d = c), /* @__PURE__ */ s.jsxs(
|
|
58
|
-
"th",
|
|
59
|
-
{
|
|
60
|
-
ref: i,
|
|
61
|
-
className: t(
|
|
62
|
-
"first:rounded-l first:pl-24",
|
|
63
|
-
"last:rounded-r last:pr-24",
|
|
64
|
-
"px-12 py-8 font-normal leading-14",
|
|
65
|
-
"whitespace-nowrap",
|
|
66
|
-
{
|
|
67
|
-
"cursor-pointer": !!l?.onClick
|
|
68
|
-
},
|
|
69
|
-
a
|
|
70
|
-
),
|
|
71
|
-
...l,
|
|
72
|
-
children: [
|
|
73
|
-
r,
|
|
74
|
-
d && /* @__PURE__ */ s.jsx(d, { size: 16, className: "inline-block ml-4" })
|
|
75
|
-
]
|
|
76
|
-
}
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
);
|
|
80
|
-
x.displayName = "TableHead";
|
|
81
|
-
const N = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
|
|
82
|
-
"td",
|
|
83
|
-
{
|
|
84
|
-
ref: r,
|
|
85
|
-
className: t(
|
|
86
|
-
"first:rounded-l first:pl-24 first:border-l",
|
|
87
|
-
"last:rounded-r last:pr-24 last:border-r",
|
|
88
|
-
"border-gray-900/8 border-y px-12 h-[54px]",
|
|
89
|
-
"whitespace-nowrap",
|
|
90
|
-
a
|
|
91
|
-
),
|
|
92
|
-
...e
|
|
93
|
-
}
|
|
94
|
-
));
|
|
95
|
-
N.displayName = "TableCell";
|
|
96
|
-
const w = o.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ s.jsx(
|
|
97
|
-
"caption",
|
|
98
|
-
{
|
|
99
|
-
ref: r,
|
|
100
|
-
className: t("mt-16 text-sm text-gray-700", a),
|
|
101
|
-
...e
|
|
102
|
-
}
|
|
103
|
-
));
|
|
104
|
-
w.displayName = "TableCaption";
|
|
123
|
+
);
|
|
124
|
+
}
|
|
105
125
|
export {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
126
|
+
u as Table,
|
|
127
|
+
f as TableBody,
|
|
128
|
+
y as TableCaption,
|
|
129
|
+
h as TableCell,
|
|
130
|
+
m as TableFooter,
|
|
131
|
+
g as TableHead,
|
|
132
|
+
p as TableHeader,
|
|
133
|
+
x as TableRow
|
|
114
134
|
};
|
|
115
135
|
//# sourceMappingURL=index29.js.map
|