@incognia/cosmik 0.40.1 → 0.40.2-beta.2
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/Badge/index.d.ts +4 -3
- package/dist/Badge/index.d.ts.map +1 -1
- package/dist/Sheet/index.d.ts +12 -22
- package/dist/Sheet/index.d.ts.map +1 -1
- package/dist/ToggleGroup/index.d.ts.map +1 -1
- package/dist/Tooltip/index.d.ts +5 -9
- package/dist/Tooltip/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 +17 -18
- package/dist/index10.cjs +1 -1
- package/dist/index10.cjs.map +1 -1
- package/dist/index10.js +3 -3
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +3 -3
- package/dist/index25.cjs +1 -1
- package/dist/index25.cjs.map +1 -1
- package/dist/index25.js +120 -99
- package/dist/index25.js.map +1 -1
- package/dist/index34.cjs.map +1 -1
- package/dist/index34.js.map +1 -1
- package/dist/index35.cjs +1 -1
- package/dist/index35.cjs.map +1 -1
- package/dist/index35.js +52 -22
- package/dist/index35.js.map +1 -1
- package/dist/index5.cjs +1 -1
- package/dist/index5.cjs.map +1 -1
- package/dist/index5.js +14 -14
- package/dist/index5.js.map +1 -1
- package/package.json +1 -1
package/dist/index10.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index37.cjs"),a=require("cmdk"),f=require("lucide-react"),C=require("react");;/* empty css */require("./index3.cjs");require("./index4.cjs");
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index37.cjs"),a=require("cmdk"),f=require("lucide-react"),C=require("react");;/* empty css */require("./index3.cjs");require("./index4.cjs");require("@radix-ui/react-slot");const o=require("./index39.cjs");require("./index7.cjs");require("./index8.cjs");require("./index9.cjs");const d=require("./index11.cjs");require("./index12.cjs");require("./index20.cjs");require("./index15.cjs");require("./index16.cjs");require("./index19.cjs");require("./index21.cjs");require("./index22.cjs");require("./index23.cjs");require("./index24.cjs");require("@radix-ui/react-dialog");require("sonner");require("./index28.cjs");require("./index29.cjs");require("./index30.cjs");require("./index31.cjs");require("./index32.cjs");require("./index33.cjs");require("./index34.cjs");require("@radix-ui/react-tooltip");require("./index36.cjs");function h(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const n=h(C),i=n.forwardRef(({className:e,...r},t)=>m.jsxRuntimeExports.jsx(a.Command,{ref:t,className:o.cn("flex h-full w-full flex-col overflow-hidden rounded bg-white text-gray-900",e),...r}));i.displayName=a.Command.displayName;const q=({children:e,...r})=>m.jsxRuntimeExports.jsx(d.Dialog,{...r,children:m.jsxRuntimeExports.jsx(d.DialogContent,{hideCloseIcon:!0,className:"overflow-hidden p-0 shadow-200",children:m.jsxRuntimeExports.jsx(i,{className:"[&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-gray-900 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-16 [&_[cmdk-input-wrapper]_svg]:w-16 [&_[cmdk-input]]:h-48 [&_[cmdk-item]]:px-16 [&_[cmdk-item]]:py-8 [&_[cmdk-item]_svg]:h-16 [&_[cmdk-item]_svg]:w-16",children:e})})}),u=n.forwardRef(({className:e,inputWrapperClassName:r,...t},s)=>m.jsxRuntimeExports.jsxs("div",{className:o.cn("flex items-center border-b px-12",r),"cmdk-input-wrapper":"",children:[m.jsxRuntimeExports.jsx(a.Command.Input,{ref:s,className:o.cn("flex h-[44px] w-full rounded bg-white py-12 text-sm outline-none placeholder:text-gray-400 disabled:cursor-not-allowed disabled:opacity-64",e),...t}),m.jsxRuntimeExports.jsx(f.Search,{className:"ml-8 h-16 w-16 shrink-0"})]}));u.displayName=a.Command.Input.displayName;const c=n.forwardRef(({className:e,...r},t)=>m.jsxRuntimeExports.jsx(a.Command.List,{ref:t,className:o.cn("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...r}));c.displayName=a.Command.List.displayName;const p=n.forwardRef(({className:e,...r},t)=>m.jsxRuntimeExports.jsx(a.Command.Empty,{ref:t,className:o.cn("py-[10px] text-center text-sm",e),...r}));p.displayName=a.Command.Empty.displayName;const l=n.forwardRef(({className:e,...r},t)=>m.jsxRuntimeExports.jsx(a.Command.Group,{ref:t,className:o.cn("overflow-hidden text-gray-900 [&_[cmdk-group-heading]]:px-16 [&_[cmdk-group-heading]]:py-8 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-gray-900",e),...r}));l.displayName=a.Command.Group.displayName;const x=n.forwardRef(({className:e,...r},t)=>m.jsxRuntimeExports.jsx(a.Command.Separator,{ref:t,className:o.cn("-mx-4 h-px bg-gray-900/8",e),...r}));x.displayName=a.Command.Separator.displayName;const g=n.forwardRef(({className:e,...r},t)=>m.jsxRuntimeExports.jsx(a.Command.Item,{ref:t,className:o.cn("relative flex cursor-default select-none items-center py-8 px-16 outline-none aria-selected:bg-gray-200 aria-selected:text-gray-900 data-disabled:pointer-events-none data-disabled:opacity-64",e),...r}));g.displayName=a.Command.Item.displayName;const y=({className:e,...r})=>m.jsxRuntimeExports.jsx("span",{className:o.cn("ml-auto text-xs tracking-widest text-gray-700",e),...r});y.displayName="CommandShortcut";exports.Command=i;exports.CommandDialog=q;exports.CommandEmpty=p;exports.CommandGroup=l;exports.CommandInput=u;exports.CommandItem=g;exports.CommandList=c;exports.CommandSeparator=x;exports.CommandShortcut=y;
|
|
2
2
|
//# sourceMappingURL=index10.cjs.map
|
package/dist/index10.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index10.cjs","sources":["../src/Command/index.tsx"],"sourcesContent":["'use client'\n\nimport { type DialogProps } from '@radix-ui/react-dialog'\nimport { Command as CommandPrimitive } from 'cmdk'\nimport { Search } from 'lucide-react'\nimport * as React from 'react'\nimport { Dialog, DialogContent } from '../'\nimport { cn } from '../lib/utils'\n\nconst Command = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive\n ref={ref}\n className={cn(\n 'flex h-full w-full flex-col overflow-hidden rounded bg-white text-gray-900',\n className\n )}\n {...props}\n />\n))\nCommand.displayName = CommandPrimitive.displayName\n\ninterface CommandDialogProps extends DialogProps {}\n\nconst CommandDialog = ({ children, ...props }: CommandDialogProps) => {\n return (\n <Dialog {...props}>\n <DialogContent hideCloseIcon className=\"overflow-hidden p-0 shadow-200\">\n <Command className=\"[&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-gray-900 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-16 [&_[cmdk-input-wrapper]_svg]:w-16 [&_[cmdk-input]]:h-48 [&_[cmdk-item]]:px-16 [&_[cmdk-item]]:py-8 [&_[cmdk-item]_svg]:h-16 [&_[cmdk-item]_svg]:w-16\">\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n )\n}\n\nconst CommandInput = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Input>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input> & {\n inputWrapperClassName?: string\n }\n>(({ className, inputWrapperClassName, ...props }, ref) => (\n <div\n className={cn('flex items-center border-b px-12', inputWrapperClassName)}\n cmdk-input-wrapper=\"\"\n >\n <CommandPrimitive.Input\n ref={ref}\n className={cn(\n 'flex h-[44px] w-full rounded bg-white py-12 text-sm outline-none placeholder:text-gray-400 disabled:cursor-not-allowed disabled:opacity-64',\n className\n )}\n {...props}\n />\n <Search className=\"ml-8 h-16 w-16 shrink-0\" />\n </div>\n))\n\nCommandInput.displayName = CommandPrimitive.Input.displayName\n\nconst CommandList = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.List\n ref={ref}\n className={cn('max-h-[300px] overflow-y-auto overflow-x-hidden', className)}\n {...props}\n />\n))\n\nCommandList.displayName = CommandPrimitive.List.displayName\n\nconst CommandEmpty = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Empty>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Empty\n ref={ref}\n className={cn('py-[10px] text-center text-sm', className)}\n {...props}\n />\n))\n\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName\n\nconst CommandGroup = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Group>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Group\n ref={ref}\n className={cn(\n 'overflow-hidden text-gray-900 [&_[cmdk-group-heading]]:px-16 [&_[cmdk-group-heading]]:py-8 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-gray-900',\n className\n )}\n {...props}\n />\n))\n\nCommandGroup.displayName = CommandPrimitive.Group.displayName\n\nconst CommandSeparator = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Separator\n ref={ref}\n className={cn('-mx-4 h-px bg-gray-900/8', className)}\n {...props}\n />\n))\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName\n\nconst CommandItem = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Item\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center py-8 px-16 outline-none aria-selected:bg-gray-200 aria-selected:text-gray-900 data-disabled:pointer-events-none data-disabled:opacity-64',\n className\n )}\n {...props}\n />\n))\n\nCommandItem.displayName = CommandPrimitive.Item.displayName\n\nconst CommandShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return (\n <span\n className={cn('ml-auto text-xs tracking-widest text-gray-700', className)}\n {...props}\n />\n )\n}\nCommandShortcut.displayName = 'CommandShortcut'\n\nexport {\n Command,\n CommandDialog,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandSeparator,\n CommandShortcut\n}\n"],"names":["Command","React","className","props","ref","jsx","CommandPrimitive","cn","CommandDialog","children","Dialog","DialogContent","CommandInput","inputWrapperClassName","jsxs","Search","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","CommandShortcut"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index10.cjs","sources":["../src/Command/index.tsx"],"sourcesContent":["'use client'\n\nimport { type DialogProps } from '@radix-ui/react-dialog'\nimport { Command as CommandPrimitive } from 'cmdk'\nimport { Search } from 'lucide-react'\nimport * as React from 'react'\nimport { Dialog, DialogContent } from '../'\nimport { cn } from '../lib/utils'\n\nconst Command = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive\n ref={ref}\n className={cn(\n 'flex h-full w-full flex-col overflow-hidden rounded bg-white text-gray-900',\n className\n )}\n {...props}\n />\n))\nCommand.displayName = CommandPrimitive.displayName\n\ninterface CommandDialogProps extends DialogProps {}\n\nconst CommandDialog = ({ children, ...props }: CommandDialogProps) => {\n return (\n <Dialog {...props}>\n <DialogContent hideCloseIcon className=\"overflow-hidden p-0 shadow-200\">\n <Command className=\"[&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-gray-900 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-16 [&_[cmdk-input-wrapper]_svg]:w-16 [&_[cmdk-input]]:h-48 [&_[cmdk-item]]:px-16 [&_[cmdk-item]]:py-8 [&_[cmdk-item]_svg]:h-16 [&_[cmdk-item]_svg]:w-16\">\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n )\n}\n\nconst CommandInput = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Input>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input> & {\n inputWrapperClassName?: string\n }\n>(({ className, inputWrapperClassName, ...props }, ref) => (\n <div\n className={cn('flex items-center border-b px-12', inputWrapperClassName)}\n cmdk-input-wrapper=\"\"\n >\n <CommandPrimitive.Input\n ref={ref}\n className={cn(\n 'flex h-[44px] w-full rounded bg-white py-12 text-sm outline-none placeholder:text-gray-400 disabled:cursor-not-allowed disabled:opacity-64',\n className\n )}\n {...props}\n />\n <Search className=\"ml-8 h-16 w-16 shrink-0\" />\n </div>\n))\n\nCommandInput.displayName = CommandPrimitive.Input.displayName\n\nconst CommandList = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.List\n ref={ref}\n className={cn('max-h-[300px] overflow-y-auto overflow-x-hidden', className)}\n {...props}\n />\n))\n\nCommandList.displayName = CommandPrimitive.List.displayName\n\nconst CommandEmpty = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Empty>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Empty\n ref={ref}\n className={cn('py-[10px] text-center text-sm', className)}\n {...props}\n />\n))\n\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName\n\nconst CommandGroup = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Group>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Group\n ref={ref}\n className={cn(\n 'overflow-hidden text-gray-900 [&_[cmdk-group-heading]]:px-16 [&_[cmdk-group-heading]]:py-8 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-gray-900',\n className\n )}\n {...props}\n />\n))\n\nCommandGroup.displayName = CommandPrimitive.Group.displayName\n\nconst CommandSeparator = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Separator\n ref={ref}\n className={cn('-mx-4 h-px bg-gray-900/8', className)}\n {...props}\n />\n))\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName\n\nconst CommandItem = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Item\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center py-8 px-16 outline-none aria-selected:bg-gray-200 aria-selected:text-gray-900 data-disabled:pointer-events-none data-disabled:opacity-64',\n className\n )}\n {...props}\n />\n))\n\nCommandItem.displayName = CommandPrimitive.Item.displayName\n\nconst CommandShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return (\n <span\n className={cn('ml-auto text-xs tracking-widest text-gray-700', className)}\n {...props}\n />\n )\n}\nCommandShortcut.displayName = 'CommandShortcut'\n\nexport {\n Command,\n CommandDialog,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandSeparator,\n CommandShortcut\n}\n"],"names":["Command","React","className","props","ref","jsx","CommandPrimitive","cn","CommandDialog","children","Dialog","DialogContent","CommandInput","inputWrapperClassName","jsxs","Search","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","CommandShortcut"],"mappings":"4rCASMA,EAAUC,EAAM,WAGpB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACC,EAAAA,QAAA,CACC,IAAAF,EACA,UAAWG,EAAAA,GACT,6EACAL,CAAA,EAED,GAAGC,CAAA,CACN,CACD,EACDH,EAAQ,YAAcM,EAAAA,QAAiB,YAIvC,MAAME,EAAgB,CAAC,CAAE,SAAAC,EAAU,GAAGN,6BAEjCO,SAAA,CAAQ,GAAGP,EACV,SAAAE,wBAACM,EAAAA,eAAc,cAAa,GAAC,UAAU,iCACrC,iCAACX,EAAA,CAAQ,UAAU,uTAChB,SAAAS,CAAA,CACH,EACF,EACF,EAIEG,EAAeX,EAAM,WAKzB,CAAC,CAAE,UAAAC,EAAW,sBAAAW,EAAuB,GAAGV,GAASC,IACjDU,EAAAA,kBAAAA,KAAC,MAAA,CACC,UAAWP,EAAAA,GAAG,mCAAoCM,CAAqB,EACvE,qBAAmB,GAEnB,SAAA,CAAAR,EAAAA,kBAAAA,IAACC,EAAAA,QAAiB,MAAjB,CACC,IAAAF,EACA,UAAWG,EAAAA,GACT,6IACAL,CAAA,EAED,GAAGC,CAAA,CAAA,EAENE,EAAAA,kBAAAA,IAACU,EAAAA,OAAA,CAAO,UAAU,yBAAA,CAA0B,CAAA,CAAA,CAC9C,CACD,EAEDH,EAAa,YAAcN,UAAiB,MAAM,YAElD,MAAMU,EAAcf,EAAM,WAGxB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACC,EAAAA,QAAiB,KAAjB,CACC,IAAAF,EACA,UAAWG,EAAAA,GAAG,kDAAmDL,CAAS,EACzE,GAAGC,CAAA,CACN,CACD,EAEDa,EAAY,YAAcV,UAAiB,KAAK,YAEhD,MAAMW,EAAehB,EAAM,WAGzB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACC,EAAAA,QAAiB,MAAjB,CACC,IAAAF,EACA,UAAWG,EAAAA,GAAG,gCAAiCL,CAAS,EACvD,GAAGC,CAAA,CACN,CACD,EAEDc,EAAa,YAAcX,UAAiB,MAAM,YAElD,MAAMY,EAAejB,EAAM,WAGzB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACC,EAAAA,QAAiB,MAAjB,CACC,IAAAF,EACA,UAAWG,EAAAA,GACT,0MACAL,CAAA,EAED,GAAGC,CAAA,CACN,CACD,EAEDe,EAAa,YAAcZ,UAAiB,MAAM,YAElD,MAAMa,EAAmBlB,EAAM,WAG7B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACC,EAAAA,QAAiB,UAAjB,CACC,IAAAF,EACA,UAAWG,EAAAA,GAAG,2BAA4BL,CAAS,EAClD,GAAGC,CAAA,CACN,CACD,EACDgB,EAAiB,YAAcb,UAAiB,UAAU,YAE1D,MAAMc,EAAcnB,EAAM,WAGxB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC1BC,EAAAA,kBAAAA,IAACC,EAAAA,QAAiB,KAAjB,CACC,IAAAF,EACA,UAAWG,EAAAA,GACT,iMACAL,CAAA,EAED,GAAGC,CAAA,CACN,CACD,EAEDiB,EAAY,YAAcd,UAAiB,KAAK,YAEhD,MAAMe,EAAkB,CAAC,CACvB,UAAAnB,EACA,GAAGC,CACL,IAEIE,EAAAA,kBAAAA,IAAC,OAAA,CACC,UAAWE,EAAAA,GAAG,gDAAiDL,CAAS,EACvE,GAAGC,CAAA,CAAA,EAIVkB,EAAgB,YAAc"}
|
package/dist/index10.js
CHANGED
|
@@ -5,8 +5,8 @@ import * as i from "react";
|
|
|
5
5
|
/* empty css */
|
|
6
6
|
import "./index3.js";
|
|
7
7
|
import "./index4.js";
|
|
8
|
-
import { cn as r } from "./index39.js";
|
|
9
8
|
import "@radix-ui/react-slot";
|
|
9
|
+
import { cn as r } from "./index39.js";
|
|
10
10
|
import "./index7.js";
|
|
11
11
|
import "./index8.js";
|
|
12
12
|
import "./index9.js";
|
|
@@ -20,7 +20,7 @@ import "./index21.js";
|
|
|
20
20
|
import "./index22.js";
|
|
21
21
|
import "./index23.js";
|
|
22
22
|
import "./index24.js";
|
|
23
|
-
import "
|
|
23
|
+
import "@radix-ui/react-dialog";
|
|
24
24
|
import "sonner";
|
|
25
25
|
import "./index28.js";
|
|
26
26
|
import "./index29.js";
|
|
@@ -29,7 +29,7 @@ import "./index31.js";
|
|
|
29
29
|
import "./index32.js";
|
|
30
30
|
import "./index33.js";
|
|
31
31
|
import "./index34.js";
|
|
32
|
-
import "
|
|
32
|
+
import "@radix-ui/react-tooltip";
|
|
33
33
|
import "./index36.js";
|
|
34
34
|
const p = i.forwardRef(({ className: e, ...t }, m) => /* @__PURE__ */ o.jsx(
|
|
35
35
|
a,
|
package/dist/index11.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index37.cjs"),b=require("@radix-ui/react-dialog"),N=require("lucide-react"),v=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index37.cjs"),b=require("@radix-ui/react-dialog"),N=require("lucide-react"),v=require("react"),E=require("./index6.cjs"),i=require("./index39.cjs");function m(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(e,a,n.get?n:{enumerable:!0,get:()=>t[a]})}}return e.default=t,Object.freeze(e)}const o=m(b),r=m(v),h=o.Root,w=o.Trigger,p=o.Portal,d=r.forwardRef(({className:t,...e},a)=>s.jsxRuntimeExports.jsx(o.Overlay,{ref:a,className:i.cn("fixed inset-0 z-50 bg-gray-900/48 backdrop-blur-sm overflow-y-auto max-h-screen data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e}));d.displayName=o.Overlay.displayName;const u=r.forwardRef(({className:t,children:e,fullscreen:a,hideCloseIcon:n,onInteractOutside:D,...y},R)=>s.jsxRuntimeExports.jsx(p,{children:s.jsxRuntimeExports.jsx(d,{children:s.jsxRuntimeExports.jsxs(o.Content,{ref:R,className:i.cn("fixed z-50 text-left bg-white border-0 shadow-200 select-text min-w-[384px] left-[50%] translate-x-[-50%] font-normal p-24 duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",{"top-24 rounded":!a,"top-0 w-full min-h-full":a},t),onInteractOutside:l=>{const{originalEvent:c}=l.detail;c.target instanceof Element&&c.target.closest(".group.toast")&&l.preventDefault(),D?.(l)},...y,children:[e,!n&&s.jsxRuntimeExports.jsxs(o.Close,{className:i.cn(E.buttonVariants({variant:"link",intent:"secondary",size:"icon"}),"absolute right-8 top-8 disabled:pointer-events-none h-24 w-24"),children:[s.jsxRuntimeExports.jsx(N.X,{}),s.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})})}));u.displayName=o.Content.displayName;const x=({className:t,...e})=>s.jsxRuntimeExports.jsx("div",{className:i.cn("mb-16",t),...e});x.displayName="DialogHeader";const g=({className:t,...e})=>s.jsxRuntimeExports.jsx("div",{className:i.cn("flex justify-end gap-8 -mx-8 -mb-8 mt-24",t),...e});g.displayName="DialogFooter";const f=r.forwardRef(({className:t,...e},a)=>s.jsxRuntimeExports.jsx(o.Title,{ref:a,className:i.cn("font-medium text-lg text-gray-800",t),...e}));f.displayName=o.Title.displayName;const j=r.forwardRef(({className:t,...e},a)=>s.jsxRuntimeExports.jsx(o.Description,{ref:a,className:i.cn("mt-8 text-base text-gray-900",t),...e}));j.displayName=o.Description.displayName;exports.Dialog=h;exports.DialogContent=u;exports.DialogDescription=j;exports.DialogFooter=g;exports.DialogHeader=x;exports.DialogOverlay=d;exports.DialogPortal=p;exports.DialogTitle=f;exports.DialogTrigger=w;
|
|
2
2
|
//# sourceMappingURL=index11.cjs.map
|
package/dist/index11.js
CHANGED
|
@@ -90,7 +90,7 @@ const j = l.forwardRef(({ className: a, ...e }, s) => /* @__PURE__ */ o.jsx(
|
|
|
90
90
|
}
|
|
91
91
|
));
|
|
92
92
|
j.displayName = t.Title.displayName;
|
|
93
|
-
const
|
|
93
|
+
const b = l.forwardRef(({ className: a, ...e }, s) => /* @__PURE__ */ o.jsx(
|
|
94
94
|
t.Description,
|
|
95
95
|
{
|
|
96
96
|
ref: s,
|
|
@@ -98,11 +98,11 @@ const h = l.forwardRef(({ className: a, ...e }, s) => /* @__PURE__ */ o.jsx(
|
|
|
98
98
|
...e
|
|
99
99
|
}
|
|
100
100
|
));
|
|
101
|
-
|
|
101
|
+
b.displayName = t.Description.displayName;
|
|
102
102
|
export {
|
|
103
103
|
z as Dialog,
|
|
104
104
|
y as DialogContent,
|
|
105
|
-
|
|
105
|
+
b as DialogDescription,
|
|
106
106
|
D as DialogFooter,
|
|
107
107
|
N as DialogHeader,
|
|
108
108
|
d as DialogOverlay,
|
package/dist/index25.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 s=require("./index37.cjs"),d=require("@radix-ui/react-dialog"),u=require("lucide-react"),n=require("./index39.cjs");function c(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,r.get?r:{enumerable:!0,get:()=>t[o]})}}return e.default=t,Object.freeze(e)}const a=c(d);function x({...t}){return s.jsxRuntimeExports.jsx(a.Root,{"data-slot":"sheet",...t})}function m({...t}){return s.jsxRuntimeExports.jsx(a.Trigger,{"data-slot":"sheet-trigger",...t})}function f({...t}){return s.jsxRuntimeExports.jsx(a.Close,{"data-slot":"sheet-close",...t})}function i({...t}){return s.jsxRuntimeExports.jsx(a.Portal,{"data-slot":"sheet-portal",...t})}function l({className:t,...e}){return s.jsxRuntimeExports.jsx(a.Overlay,{"data-slot":"sheet-overlay",className:n.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-gray-900/24 ",t),...e})}function p({className:t,children:e,side:o="right",...r}){return s.jsxRuntimeExports.jsxs(i,{children:[s.jsxRuntimeExports.jsx(l,{}),s.jsxRuntimeExports.jsxs(a.Content,{"data-slot":"sheet-content",className:n.cn(" 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",o==="right"&&"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",o==="left"&&"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",o==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",o==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",t),...r,children:[e,s.jsxRuntimeExports.jsxs(a.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[s.jsxRuntimeExports.jsx(u.XIcon,{className:"size-16"}),s.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function h({className:t,...e}){return s.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-header",className:n.cn("flex flex-col gap-8",t),...e})}function g({className:t,...e}){return s.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-footer",className:n.cn("flex flex-col-reverse sm:flex-row sm:justify-end gap-8",t),...e})}function j({className:t,...e}){return s.jsxRuntimeExports.jsx(a.Title,{"data-slot":"sheet-title",className:n.cn("text-gray-800 font-medium",t),...e})}function b({className:t,...e}){return s.jsxRuntimeExports.jsx(a.Description,{"data-slot":"sheet-description",className:n.cn("text-gray-900 text-base",t),...e})}exports.Sheet=x;exports.SheetClose=f;exports.SheetContent=p;exports.SheetDescription=b;exports.SheetFooter=g;exports.SheetHeader=h;exports.SheetOverlay=l;exports.SheetPortal=i;exports.SheetTitle=j;exports.SheetTrigger=m;
|
|
2
2
|
//# sourceMappingURL=index25.cjs.map
|
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 {
|
|
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=\"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden 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,6OAC9B,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
|
@@ -1,111 +1,132 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
{
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
import { j as e } from "./index37.js";
|
|
2
|
+
import * as o from "@radix-ui/react-dialog";
|
|
3
|
+
import { XIcon as i } from "lucide-react";
|
|
4
|
+
import { cn as s } from "./index39.js";
|
|
5
|
+
function m({ ...t }) {
|
|
6
|
+
return /* @__PURE__ */ e.jsx(o.Root, { "data-slot": "sheet", ...t });
|
|
7
|
+
}
|
|
8
|
+
function h({
|
|
9
|
+
...t
|
|
10
|
+
}) {
|
|
11
|
+
return /* @__PURE__ */ e.jsx(o.Trigger, { "data-slot": "sheet-trigger", ...t });
|
|
12
|
+
}
|
|
13
|
+
function x({
|
|
14
|
+
...t
|
|
15
|
+
}) {
|
|
16
|
+
return /* @__PURE__ */ e.jsx(o.Close, { "data-slot": "sheet-close", ...t });
|
|
17
|
+
}
|
|
18
|
+
function l({
|
|
19
|
+
...t
|
|
20
|
+
}) {
|
|
21
|
+
return /* @__PURE__ */ e.jsx(o.Portal, { "data-slot": "sheet-portal", ...t });
|
|
22
|
+
}
|
|
23
|
+
function d({
|
|
24
|
+
className: t,
|
|
25
|
+
...a
|
|
26
|
+
}) {
|
|
27
|
+
return /* @__PURE__ */ e.jsx(
|
|
28
|
+
o.Overlay,
|
|
29
|
+
{
|
|
30
|
+
"data-slot": "sheet-overlay",
|
|
31
|
+
className: s(
|
|
32
|
+
"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 ",
|
|
33
|
+
t
|
|
34
|
+
),
|
|
35
|
+
...a
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
function p({
|
|
40
|
+
className: t,
|
|
41
|
+
children: a,
|
|
42
|
+
side: r = "right",
|
|
43
|
+
...n
|
|
44
|
+
}) {
|
|
45
|
+
return /* @__PURE__ */ e.jsxs(l, { children: [
|
|
46
|
+
/* @__PURE__ */ e.jsx(d, {}),
|
|
47
|
+
/* @__PURE__ */ e.jsxs(
|
|
48
|
+
o.Content,
|
|
49
|
+
{
|
|
50
|
+
"data-slot": "sheet-content",
|
|
51
|
+
className: s(
|
|
52
|
+
" 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",
|
|
53
|
+
r === "right" && "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",
|
|
54
|
+
r === "left" && "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",
|
|
55
|
+
r === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
|
|
56
|
+
r === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
|
|
57
|
+
t
|
|
58
|
+
),
|
|
59
|
+
...n,
|
|
60
|
+
children: [
|
|
61
|
+
a,
|
|
62
|
+
/* @__PURE__ */ e.jsxs(o.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
|
|
63
|
+
/* @__PURE__ */ e.jsx(i, { className: "size-16" }),
|
|
64
|
+
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close" })
|
|
65
|
+
] })
|
|
66
|
+
]
|
|
28
67
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
68
|
+
)
|
|
69
|
+
] });
|
|
70
|
+
}
|
|
71
|
+
function g({ className: t, ...a }) {
|
|
72
|
+
return /* @__PURE__ */ e.jsx(
|
|
73
|
+
"div",
|
|
74
|
+
{
|
|
75
|
+
"data-slot": "sheet-header",
|
|
76
|
+
className: s("flex flex-col gap-8", t),
|
|
77
|
+
...a
|
|
32
78
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
function j({ className: t, ...a }) {
|
|
82
|
+
return /* @__PURE__ */ e.jsx(
|
|
83
|
+
"div",
|
|
38
84
|
{
|
|
39
|
-
|
|
40
|
-
className:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
/* @__PURE__ */ s.jsx(c, { className: "h-16 w-16" }),
|
|
46
|
-
/* @__PURE__ */ s.jsx("span", { className: "sr-only", children: "Close" })
|
|
47
|
-
] })
|
|
48
|
-
]
|
|
85
|
+
"data-slot": "sheet-footer",
|
|
86
|
+
className: s(
|
|
87
|
+
"flex flex-col-reverse sm:flex-row sm:justify-end gap-8",
|
|
88
|
+
t
|
|
89
|
+
),
|
|
90
|
+
...a
|
|
49
91
|
}
|
|
50
|
-
)
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
const h = ({
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
function b({
|
|
54
95
|
className: t,
|
|
55
96
|
...a
|
|
56
|
-
})
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"
|
|
61
|
-
t
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
const y = ({
|
|
97
|
+
}) {
|
|
98
|
+
return /* @__PURE__ */ e.jsx(
|
|
99
|
+
o.Title,
|
|
100
|
+
{
|
|
101
|
+
"data-slot": "sheet-title",
|
|
102
|
+
className: s("text-gray-800 font-medium", t),
|
|
103
|
+
...a
|
|
104
|
+
}
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
function y({
|
|
68
108
|
className: t,
|
|
69
109
|
...a
|
|
70
|
-
})
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"
|
|
75
|
-
t
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
y.displayName = "SheetFooter";
|
|
81
|
-
const u = r.forwardRef(({ className: t, ...a }, o) => /* @__PURE__ */ s.jsx(
|
|
82
|
-
e.Title,
|
|
83
|
-
{
|
|
84
|
-
ref: o,
|
|
85
|
-
className: i("font-medium text-lg text-gray-800", t),
|
|
86
|
-
...a
|
|
87
|
-
}
|
|
88
|
-
));
|
|
89
|
-
u.displayName = e.Title.displayName;
|
|
90
|
-
const g = r.forwardRef(({ className: t, ...a }, o) => /* @__PURE__ */ s.jsx(
|
|
91
|
-
e.Description,
|
|
92
|
-
{
|
|
93
|
-
ref: o,
|
|
94
|
-
className: i("mt-8 text-base text-gray-900", t),
|
|
95
|
-
...a
|
|
96
|
-
}
|
|
97
|
-
));
|
|
98
|
-
g.displayName = e.Description.displayName;
|
|
110
|
+
}) {
|
|
111
|
+
return /* @__PURE__ */ e.jsx(
|
|
112
|
+
o.Description,
|
|
113
|
+
{
|
|
114
|
+
"data-slot": "sheet-description",
|
|
115
|
+
className: s("text-gray-900 text-base", t),
|
|
116
|
+
...a
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
}
|
|
99
120
|
export {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
121
|
+
m as Sheet,
|
|
122
|
+
x as SheetClose,
|
|
123
|
+
p as SheetContent,
|
|
124
|
+
y as SheetDescription,
|
|
125
|
+
j as SheetFooter,
|
|
126
|
+
g as SheetHeader,
|
|
106
127
|
d as SheetOverlay,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
128
|
+
l as SheetPortal,
|
|
129
|
+
b as SheetTitle,
|
|
130
|
+
h as SheetTrigger
|
|
110
131
|
};
|
|
111
132
|
//# sourceMappingURL=index25.js.map
|
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 {
|
|
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=\"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden 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,8OAC9B,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/index34.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index34.cjs","sources":["../src/ToggleGroup/index.tsx"],"sourcesContent":["'use client'\n\nimport * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group'\nimport { VariantProps } from 'class-variance-authority'\nimport * as React from 'react'\nimport { toggleVariants } from '../Toggle'\nimport { cn } from '../lib/utils'\n\nconst ToggleGroupContext = React.createContext<\n VariantProps<typeof toggleVariants>\n>({\n variant: 'badge-purple',\n size: 'icon',\n border: 'outline',\n inverted: false\n})\n\nfunction ToggleGroup({\n className,\n variant,\n size,\n border,\n inverted,\n children,\n ...props\n}: React.ComponentProps<typeof ToggleGroupPrimitive.Root> &\n VariantProps<typeof toggleVariants>) {\n return (\n <ToggleGroupPrimitive.Root\n data-slot=\"toggle-group\"\n data-variant={variant}\n data-size={size}\n className={cn(\n 'group/toggle-group flex w-fit items-center rounded data-[variant=outline]:shadow',\n className\n )}\n {...props}\n >\n <ToggleGroupContext.Provider value={{ variant, size, border, inverted }}>\n {children}\n </ToggleGroupContext.Provider>\n </ToggleGroupPrimitive.Root>\n )\n}\n\nfunction ToggleGroupItem({\n className,\n children,\n variant,\n size,\n border,\n inverted,\n ...props\n}: React.ComponentProps<typeof ToggleGroupPrimitive.Item> &\n VariantProps<typeof toggleVariants>) {\n const context = React.useContext(ToggleGroupContext)\n\n return (\n <ToggleGroupPrimitive.Item\n data-slot=\"toggle-group-item\"\n data-variant={context.variant || variant}\n data-size={context.size || size}\n data-border={context.border || border}\n data-inverted={context.inverted || inverted}\n className={cn(\n toggleVariants({\n variant: context.variant || variant,\n size: context.size || size,\n border: context.border || border,\n inverted: context.inverted || inverted\n }),\n 'min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l last:rounded-r focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l',\n className\n )}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Item>\n )\n}\n\
|
|
1
|
+
{"version":3,"file":"index34.cjs","sources":["../src/ToggleGroup/index.tsx"],"sourcesContent":["'use client'\n\nimport * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group'\nimport { VariantProps } from 'class-variance-authority'\nimport * as React from 'react'\nimport { toggleVariants } from '../Toggle'\nimport { cn } from '../lib/utils'\n\nconst ToggleGroupContext = React.createContext<\n VariantProps<typeof toggleVariants>\n>({\n variant: 'badge-purple',\n size: 'icon',\n border: 'outline',\n inverted: false\n})\n\nfunction ToggleGroup({\n className,\n variant,\n size,\n border,\n inverted,\n children,\n ...props\n}: React.ComponentProps<typeof ToggleGroupPrimitive.Root> &\n VariantProps<typeof toggleVariants>) {\n return (\n <ToggleGroupPrimitive.Root\n data-slot=\"toggle-group\"\n data-variant={variant}\n data-size={size}\n className={cn(\n 'group/toggle-group flex w-fit items-center rounded data-[variant=outline]:shadow',\n className\n )}\n {...props}\n >\n <ToggleGroupContext.Provider value={{ variant, size, border, inverted }}>\n {children}\n </ToggleGroupContext.Provider>\n </ToggleGroupPrimitive.Root>\n )\n}\n\nfunction ToggleGroupItem({\n className,\n children,\n variant,\n size,\n border,\n inverted,\n ...props\n}: React.ComponentProps<typeof ToggleGroupPrimitive.Item> &\n VariantProps<typeof toggleVariants>) {\n const context = React.useContext(ToggleGroupContext)\n\n return (\n <ToggleGroupPrimitive.Item\n data-slot=\"toggle-group-item\"\n data-variant={context.variant || variant}\n data-size={context.size || size}\n data-border={context.border || border}\n data-inverted={context.inverted || inverted}\n className={cn(\n toggleVariants({\n variant: context.variant || variant,\n size: context.size || size,\n border: context.border || border,\n inverted: context.inverted || inverted\n }),\n 'min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l last:rounded-r focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l',\n className\n )}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Item>\n )\n}\n\nexport { ToggleGroup, ToggleGroupItem }\n"],"names":["ToggleGroupContext","React","ToggleGroup","className","variant","size","border","inverted","children","props","jsx","ToggleGroupPrimitive","cn","ToggleGroupItem","context","toggleVariants"],"mappings":"qgBAQMA,EAAqBC,EAAM,cAE/B,CACA,QAAS,eACT,KAAM,OACN,OAAQ,UACR,SAAU,EACZ,CAAC,EAED,SAASC,EAAY,CACnB,UAAAC,EACA,QAAAC,EACA,KAAAC,EACA,OAAAC,EACA,SAAAC,EACA,SAAAC,EACA,GAAGC,CACL,EACuC,CACrC,OACEC,EAAAA,kBAAAA,IAACC,EAAqB,KAArB,CACC,YAAU,eACV,eAAcP,EACd,YAAWC,EACX,UAAWO,EAAAA,GACT,mFACAT,CAAA,EAED,GAAGM,EAEJ,SAAAC,EAAAA,kBAAAA,IAACV,EAAmB,SAAnB,CAA4B,MAAO,CAAE,QAAAI,EAAS,KAAAC,EAAM,OAAAC,EAAQ,SAAAC,CAAA,EAC1D,SAAAC,CAAA,CACH,CAAA,CAAA,CAGN,CAEA,SAASK,EAAgB,CACvB,UAAAV,EACA,SAAAK,EACA,QAAAJ,EACA,KAAAC,EACA,OAAAC,EACA,SAAAC,EACA,GAAGE,CACL,EACuC,CACrC,MAAMK,EAAUb,EAAM,WAAWD,CAAkB,EAEnD,OACEU,EAAAA,kBAAAA,IAACC,EAAqB,KAArB,CACC,YAAU,oBACV,eAAcG,EAAQ,SAAWV,EACjC,YAAWU,EAAQ,MAAQT,EAC3B,cAAaS,EAAQ,QAAUR,EAC/B,gBAAeQ,EAAQ,UAAYP,EACnC,UAAWK,EAAAA,GACTG,iBAAe,CACb,QAASD,EAAQ,SAAWV,EAC5B,KAAMU,EAAQ,MAAQT,EACtB,OAAQS,EAAQ,QAAUR,EAC1B,SAAUQ,EAAQ,UAAYP,CAAA,CAC/B,EACD,wLACAJ,CAAA,EAED,GAAGM,EAEH,SAAAD,CAAA,CAAA,CAGP"}
|
package/dist/index34.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index34.js","sources":["../src/ToggleGroup/index.tsx"],"sourcesContent":["'use client'\n\nimport * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group'\nimport { VariantProps } from 'class-variance-authority'\nimport * as React from 'react'\nimport { toggleVariants } from '../Toggle'\nimport { cn } from '../lib/utils'\n\nconst ToggleGroupContext = React.createContext<\n VariantProps<typeof toggleVariants>\n>({\n variant: 'badge-purple',\n size: 'icon',\n border: 'outline',\n inverted: false\n})\n\nfunction ToggleGroup({\n className,\n variant,\n size,\n border,\n inverted,\n children,\n ...props\n}: React.ComponentProps<typeof ToggleGroupPrimitive.Root> &\n VariantProps<typeof toggleVariants>) {\n return (\n <ToggleGroupPrimitive.Root\n data-slot=\"toggle-group\"\n data-variant={variant}\n data-size={size}\n className={cn(\n 'group/toggle-group flex w-fit items-center rounded data-[variant=outline]:shadow',\n className\n )}\n {...props}\n >\n <ToggleGroupContext.Provider value={{ variant, size, border, inverted }}>\n {children}\n </ToggleGroupContext.Provider>\n </ToggleGroupPrimitive.Root>\n )\n}\n\nfunction ToggleGroupItem({\n className,\n children,\n variant,\n size,\n border,\n inverted,\n ...props\n}: React.ComponentProps<typeof ToggleGroupPrimitive.Item> &\n VariantProps<typeof toggleVariants>) {\n const context = React.useContext(ToggleGroupContext)\n\n return (\n <ToggleGroupPrimitive.Item\n data-slot=\"toggle-group-item\"\n data-variant={context.variant || variant}\n data-size={context.size || size}\n data-border={context.border || border}\n data-inverted={context.inverted || inverted}\n className={cn(\n toggleVariants({\n variant: context.variant || variant,\n size: context.size || size,\n border: context.border || border,\n inverted: context.inverted || inverted\n }),\n 'min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l last:rounded-r focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l',\n className\n )}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Item>\n )\n}\n\
|
|
1
|
+
{"version":3,"file":"index34.js","sources":["../src/ToggleGroup/index.tsx"],"sourcesContent":["'use client'\n\nimport * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group'\nimport { VariantProps } from 'class-variance-authority'\nimport * as React from 'react'\nimport { toggleVariants } from '../Toggle'\nimport { cn } from '../lib/utils'\n\nconst ToggleGroupContext = React.createContext<\n VariantProps<typeof toggleVariants>\n>({\n variant: 'badge-purple',\n size: 'icon',\n border: 'outline',\n inverted: false\n})\n\nfunction ToggleGroup({\n className,\n variant,\n size,\n border,\n inverted,\n children,\n ...props\n}: React.ComponentProps<typeof ToggleGroupPrimitive.Root> &\n VariantProps<typeof toggleVariants>) {\n return (\n <ToggleGroupPrimitive.Root\n data-slot=\"toggle-group\"\n data-variant={variant}\n data-size={size}\n className={cn(\n 'group/toggle-group flex w-fit items-center rounded data-[variant=outline]:shadow',\n className\n )}\n {...props}\n >\n <ToggleGroupContext.Provider value={{ variant, size, border, inverted }}>\n {children}\n </ToggleGroupContext.Provider>\n </ToggleGroupPrimitive.Root>\n )\n}\n\nfunction ToggleGroupItem({\n className,\n children,\n variant,\n size,\n border,\n inverted,\n ...props\n}: React.ComponentProps<typeof ToggleGroupPrimitive.Item> &\n VariantProps<typeof toggleVariants>) {\n const context = React.useContext(ToggleGroupContext)\n\n return (\n <ToggleGroupPrimitive.Item\n data-slot=\"toggle-group-item\"\n data-variant={context.variant || variant}\n data-size={context.size || size}\n data-border={context.border || border}\n data-inverted={context.inverted || inverted}\n className={cn(\n toggleVariants({\n variant: context.variant || variant,\n size: context.size || size,\n border: context.border || border,\n inverted: context.inverted || inverted\n }),\n 'min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l last:rounded-r focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l',\n className\n )}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Item>\n )\n}\n\nexport { ToggleGroup, ToggleGroupItem }\n"],"names":["ToggleGroupContext","React","ToggleGroup","className","variant","size","border","inverted","children","props","jsx","ToggleGroupPrimitive","cn","ToggleGroupItem","context","toggleVariants"],"mappings":";;;;;AAQA,MAAMA,IAAqBC,EAAM,cAE/B;AAAA,EACA,SAAS;AAAA,EACT,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;AAED,SAASC,EAAY;AAAA,EACnB,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,MAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,GACuC;AACrC,SACEC,gBAAAA,EAAAA;AAAAA,IAACC,EAAqB;AAAA,IAArB;AAAA,MACC,aAAU;AAAA,MACV,gBAAcP;AAAA,MACd,aAAWC;AAAA,MACX,WAAWO;AAAA,QACT;AAAA,QACAT;AAAA,MAAA;AAAA,MAED,GAAGM;AAAA,MAEJ,UAAAC,gBAAAA,EAAAA,IAACV,EAAmB,UAAnB,EAA4B,OAAO,EAAE,SAAAI,GAAS,MAAAC,GAAM,QAAAC,GAAQ,UAAAC,EAAA,GAC1D,UAAAC,EAAA,CACH;AAAA,IAAA;AAAA,EAAA;AAGN;AAEA,SAASK,EAAgB;AAAA,EACvB,WAAAV;AAAA,EACA,UAAAK;AAAA,EACA,SAAAJ;AAAA,EACA,MAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGE;AACL,GACuC;AACrC,QAAMK,IAAUb,EAAM,WAAWD,CAAkB;AAEnD,SACEU,gBAAAA,EAAAA;AAAAA,IAACC,EAAqB;AAAA,IAArB;AAAA,MACC,aAAU;AAAA,MACV,gBAAcG,EAAQ,WAAWV;AAAA,MACjC,aAAWU,EAAQ,QAAQT;AAAA,MAC3B,eAAaS,EAAQ,UAAUR;AAAA,MAC/B,iBAAeQ,EAAQ,YAAYP;AAAA,MACnC,WAAWK;AAAA,QACTG,EAAe;AAAA,UACb,SAASD,EAAQ,WAAWV;AAAA,UAC5B,MAAMU,EAAQ,QAAQT;AAAA,UACtB,QAAQS,EAAQ,UAAUR;AAAA,UAC1B,UAAUQ,EAAQ,YAAYP;AAAA,QAAA,CAC/B;AAAA,QACD;AAAA,QACAJ;AAAA,MAAA;AAAA,MAED,GAAGM;AAAA,MAEH,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
package/dist/index35.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 i=require("./index37.cjs"),d=require("@radix-ui/react-tooltip"),l=require("./index38.cjs"),u=require("./index39.cjs");function c(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,n.get?n:{enumerable:!0,get:()=>t[o]})}}return e.default=t,Object.freeze(e)}const r=c(d),p=l.cva("z-50 overflow-hidden rounded px-12 py-8 text-sm shadow-200 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-tooltip-content-transform-origin)",{variants:{variant:{default:"bg-gray-800 text-white text-sm",inverted:"bg-white text-gray-800 border border-gray-900/8"}},defaultVariants:{variant:"default"}});function a({delayDuration:t=0,...e}){return i.jsxRuntimeExports.jsx(r.Provider,{"data-slot":"tooltip-provider",delayDuration:t,...e})}function m({...t}){return i.jsxRuntimeExports.jsx(a,{children:i.jsxRuntimeExports.jsx(r.Root,{"data-slot":"tooltip",...t})})}function f({...t}){return i.jsxRuntimeExports.jsx(r.Trigger,{"data-slot":"tooltip-trigger",...t})}function x({variant:t,className:e,sideOffset:o=4,children:n,...s}){return i.jsxRuntimeExports.jsx(r.Portal,{children:i.jsxRuntimeExports.jsx(r.Content,{"data-slot":"tooltip-content",sideOffset:o,className:u.cn(p({variant:t,className:e})),...s,children:n})})}exports.Tooltip=m;exports.TooltipContent=x;exports.TooltipProvider=a;exports.TooltipTrigger=f;
|
|
2
2
|
//# sourceMappingURL=index35.cjs.map
|
package/dist/index35.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index35.cjs","sources":["../src/Tooltip/index.tsx"],"sourcesContent":["'use client'\n\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip'\nimport { VariantProps, cva } from 'class-variance-authority'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nconst tooltipContentVariants = cva(\n 'z-50 overflow-hidden rounded px-12 py-8 text-sm shadow-200 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',\n {\n variants: {\n variant: {\n default: 'bg-gray-800 text-white text-sm',\n inverted: 'bg-white text-gray-800 border border-gray-900/8'\n }\n },\n defaultVariants: {\n variant: 'default'\n }\n }\n)\n\
|
|
1
|
+
{"version":3,"file":"index35.cjs","sources":["../src/Tooltip/index.tsx"],"sourcesContent":["'use client'\n\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip'\nimport { VariantProps, cva } from 'class-variance-authority'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nconst tooltipContentVariants = cva(\n 'z-50 overflow-hidden rounded px-12 py-8 text-sm shadow-200 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-tooltip-content-transform-origin)',\n {\n variants: {\n variant: {\n default: 'bg-gray-800 text-white text-sm',\n inverted: 'bg-white text-gray-800 border border-gray-900/8'\n }\n },\n defaultVariants: {\n variant: 'default'\n }\n }\n)\n\nfunction TooltipProvider({\n delayDuration = 0,\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Provider>) {\n return (\n <TooltipPrimitive.Provider\n data-slot=\"tooltip-provider\"\n delayDuration={delayDuration}\n {...props}\n />\n )\n}\n\nfunction Tooltip({\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Root>) {\n return (\n <TooltipProvider>\n <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />\n </TooltipProvider>\n )\n}\n\nfunction TooltipTrigger({\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {\n return <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />\n}\n\nfunction TooltipContent({\n variant,\n className,\n sideOffset = 4,\n children,\n ...props\n}: React.ComponentProps<typeof TooltipPrimitive.Content> &\n VariantProps<typeof tooltipContentVariants>) {\n return (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n data-slot=\"tooltip-content\"\n sideOffset={sideOffset}\n className={cn(tooltipContentVariants({ variant, className }))}\n {...props}\n >\n {children}\n </TooltipPrimitive.Content>\n </TooltipPrimitive.Portal>\n )\n}\nexport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger }\n"],"names":["tooltipContentVariants","cva","TooltipProvider","delayDuration","props","jsx","TooltipPrimitive","Tooltip","TooltipTrigger","TooltipContent","variant","className","sideOffset","children","cn"],"mappings":"seAOMA,EAAyBC,EAAAA,IAC7B,0YACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,iCACT,SAAU,iDAAA,CACZ,EAEF,gBAAiB,CACf,QAAS,SAAA,CACX,CAEJ,EAEA,SAASC,EAAgB,CACvB,cAAAC,EAAgB,EAChB,GAAGC,CACL,EAA2D,CACzD,OACEC,EAAAA,kBAAAA,IAACC,EAAiB,SAAjB,CACC,YAAU,mBACV,cAAAH,EACC,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASG,EAAQ,CACf,GAAGH,CACL,EAAuD,CACrD,OACEC,EAAAA,kBAAAA,IAACH,EAAA,CACC,SAAAG,EAAAA,kBAAAA,IAACC,EAAiB,KAAjB,CAAsB,YAAU,UAAW,GAAGF,CAAA,CAAO,CAAA,CACxD,CAEJ,CAEA,SAASI,EAAe,CACtB,GAAGJ,CACL,EAA0D,CACxD,+BAAQE,EAAiB,QAAjB,CAAyB,YAAU,kBAAmB,GAAGF,EAAO,CAC1E,CAEA,SAASK,EAAe,CACtB,QAAAC,EACA,UAAAC,EACA,WAAAC,EAAa,EACb,SAAAC,EACA,GAAGT,CACL,EAC+C,CAC7C,OACEC,EAAAA,kBAAAA,IAACC,EAAiB,OAAjB,CACC,SAAAD,EAAAA,kBAAAA,IAACC,EAAiB,QAAjB,CACC,YAAU,kBACV,WAAAM,EACA,UAAWE,EAAAA,GAAGd,EAAuB,CAAE,QAAAU,EAAS,UAAAC,CAAA,CAAW,CAAC,EAC3D,GAAGP,EAEH,SAAAS,CAAA,CAAA,EAEL,CAEJ"}
|