@incognia/cosmik 1.0.0-beta.8 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,41 +1,41 @@
1
1
  /* empty css */
2
- import { Alert as t, AlertDescription as a, AlertTitle as n } from "./index3.js";
3
- import { AlertDialog as l, AlertDialogAction as p, AlertDialogCancel as g, AlertDialogContent as m, AlertDialogDescription as u, AlertDialogFooter as d, AlertDialogHeader as D, AlertDialogTitle as x, AlertDialogTrigger as C } from "./index4.js";
4
- import { Badge as T, badgeVariants as f } from "./index5.js";
5
- import { Button as s, buttonVariants as b } from "./index6.js";
2
+ import { Alert as r, AlertDescription as a, AlertTitle as n } from "./index3.js";
3
+ import { AlertDialog as l, AlertDialogAction as p, AlertDialogCancel as g, AlertDialogContent as m, AlertDialogDescription as u, AlertDialogFooter as d, AlertDialogHeader as S, AlertDialogTitle as D, AlertDialogTrigger as x } from "./index4.js";
4
+ import { Badge as T, badgeVariants as c } from "./index5.js";
5
+ import { Button as b, buttonVariants as s } from "./index6.js";
6
6
  import { Calendar as w } from "./index7.js";
7
- import { Card as h, CardAction as A, CardContent as v, CardDescription as L, CardFooter as I, CardHeader as y, CardTitle as V } from "./index8.js";
8
- import { Checkbox as F } from "./index9.js";
9
- import { Command as H, CommandDialog as N, CommandEmpty as R, CommandGroup as k, CommandInput as E, CommandItem as O, CommandList as U, CommandSeparator as j, CommandShortcut as q } from "./index10.js";
7
+ import { Card as P, CardAction as h, CardContent as A, CardDescription as L, CardFooter as V, CardHeader as I, CardTitle as y } from "./index8.js";
8
+ import { Checkbox as B } from "./index9.js";
9
+ import { Command as G, CommandDialog as H, CommandEmpty as R, CommandGroup as k, CommandInput as E, CommandItem as O, CommandList as U, CommandSeparator as j, CommandShortcut as q } from "./index10.js";
10
10
  import { Dialog as J, DialogContent as K, DialogDescription as Q, DialogFooter as W, DialogHeader as X, DialogOverlay as Y, DialogPortal as Z, DialogTitle as _, DialogTrigger as $ } from "./index11.js";
11
- import { DropdownMenu as eo, DropdownMenuCheckboxItem as ro, DropdownMenuContent as to, DropdownMenuGroup as ao, DropdownMenuItem as no, DropdownMenuLabel as io, DropdownMenuPortal as lo, DropdownMenuRadioGroup as po, DropdownMenuRadioItem as go, DropdownMenuSeparator as mo, DropdownMenuShortcut as uo, DropdownMenuSub as Do, DropdownMenuSubContent as xo, DropdownMenuSubTrigger as Co, DropdownMenuTrigger as So } from "./index12.js";
12
- import { Filter as fo } from "./index13.js";
13
- import { FilterBar as so, FilterBarContent as bo, FilterBarScrollableContent as Mo } from "./index14.js";
14
- import { Input as Po } from "./index15.js";
15
- import { Label as Ao } from "./index16.js";
16
- import { Layout as Lo, LayoutContent as Io, LayoutMain as yo, LayoutScrollableContent as Vo, LayoutSidebar as Bo, LayoutTopbar as Fo } from "./index17.js";
17
- import { Loading as Ho } from "./index18.js";
11
+ import { DropdownMenu as eo, DropdownMenuCheckboxItem as to, DropdownMenuContent as ro, DropdownMenuGroup as ao, DropdownMenuItem as no, DropdownMenuLabel as io, DropdownMenuPortal as lo, DropdownMenuRadioGroup as po, DropdownMenuRadioItem as go, DropdownMenuSeparator as mo, DropdownMenuShortcut as uo, DropdownMenuSub as So, DropdownMenuSubContent as Do, DropdownMenuSubTrigger as xo, DropdownMenuTrigger as Co } from "./index12.js";
12
+ import { Filter as co } from "./index13.js";
13
+ import { FilterBar as bo, FilterBarContent as so, FilterBarScrollableContent as Mo } from "./index14.js";
14
+ import { Input as vo } from "./index15.js";
15
+ import { Label as ho } from "./index16.js";
16
+ import { Layout as Lo, LayoutContent as Vo, LayoutMain as Io, LayoutScrollableContent as yo, LayoutSidebar as No, LayoutTopbar as Bo } from "./index17.js";
17
+ import { Loading as Go } from "./index18.js";
18
18
  import { Pagination as Ro, PaginationButton as ko, PaginationContent as Eo, PaginationEllipsis as Oo, PaginationItem as Uo, PaginationNext as jo, PaginationPrevious as qo } from "./index19.js";
19
19
  import { Popover as Jo, PopoverAnchor as Ko, PopoverContent as Qo, PopoverTrigger as Wo } from "./index20.js";
20
20
  import { Progress as Yo } from "./index21.js";
21
21
  import { RadioGroup as _o, RadioGroupItem as $o } from "./index22.js";
22
- import { Select as ee, SelectContent as re, SelectGroup as te, SelectItem as ae, SelectLabel as ne, SelectScrollDownButton as ie, SelectScrollUpButton as le, SelectSeparator as pe, SelectTrigger as ge, SelectValue as me } from "./index23.js";
22
+ import { Select as ee, SelectContent as te, SelectGroup as re, SelectItem as ae, SelectLabel as ne, SelectScrollDownButton as ie, SelectScrollUpButton as le, SelectSeparator as pe, SelectTrigger as ge, SelectValue as me } from "./index23.js";
23
23
  import { Separator as de } from "./index24.js";
24
- import { Sheet as xe, SheetClose as Ce, SheetContent as Se, SheetDescription as Te, SheetFooter as fe, SheetHeader as ce, SheetOverlay as se, SheetPortal as be, SheetTitle as Me, SheetTrigger as we } from "./index25.js";
25
- import { Skeleton as he } from "./index26.js";
26
- import { toast as ve } from "sonner";
27
- import { Toaster as Ie } from "./index27.js";
28
- import { Switch as Ve } from "./index28.js";
29
- import { Table as Fe, TableBody as Ge, TableCaption as He, TableCell as Ne, TableFooter as Re, TableHead as ke, TableHeader as Ee, TableRow as Oe } from "./index29.js";
24
+ import { Sheet as De, SheetClose as xe, SheetContent as Ce, SheetDescription as Te, SheetFooter as ce, SheetHeader as fe, SheetOverlay as be, SheetPortal as se, SheetTitle as Me, SheetTrigger as we } from "./index25.js";
25
+ import { Skeleton as Pe } from "./index26.js";
26
+ import { toast as Ae } from "sonner";
27
+ import { Toaster as Ve } from "./index27.js";
28
+ import { Switch as ye } from "./index28.js";
29
+ import { Table as Be, TableBody as Fe, TableCaption as Ge, TableCell as He, TableFooter as Re, TableHead as ke, TableHeader as Ee, TableRow as Oe } from "./index29.js";
30
30
  import { Tabs as je, TabsContent as qe, TabsList as ze, TabsTrigger as Je } from "./index30.js";
31
31
  import { TagInput as Qe } from "./index31.js";
32
32
  import { Textarea as Xe } from "./index32.js";
33
33
  import { Toggle as Ze, toggleVariants as _e } from "./index33.js";
34
- import { ToggleGroup as or, ToggleGroupItem as er } from "./index34.js";
35
- import { Tooltip as tr, TooltipContent as ar, TooltipProvider as nr, TooltipTrigger as ir } from "./index35.js";
36
- import { VerticalNavigationMenu as pr, VerticalNavigationMenuHeading as gr, VerticalNavigationMenuItem as mr, VerticalNavigationMenuLink as ur, VerticalNavigationMenuList as dr, VerticalNavigationMenuSeparator as Dr } from "./index36.js";
34
+ import { ToggleGroup as ot, ToggleGroupItem as et } from "./index34.js";
35
+ import { Tooltip as rt, TooltipContent as at, TooltipProvider as nt, TooltipTrigger as it } from "./index35.js";
36
+ import { VerticalNavigationMenu as pt, VerticalNavigationMenuHeading as gt, VerticalNavigationMenuItem as mt, VerticalNavigationMenuLink as ut, VerticalNavigationMenuList as dt, VerticalNavigationMenuSeparator as St, VerticalNavigationMenuSub as Dt, VerticalNavigationMenuSubContent as xt, VerticalNavigationMenuSubTrigger as Ct } from "./index36.js";
37
37
  export {
38
- t as Alert,
38
+ r as Alert,
39
39
  a as AlertDescription,
40
40
  l as AlertDialog,
41
41
  p as AlertDialogAction,
@@ -43,23 +43,23 @@ export {
43
43
  m as AlertDialogContent,
44
44
  u as AlertDialogDescription,
45
45
  d as AlertDialogFooter,
46
- D as AlertDialogHeader,
47
- x as AlertDialogTitle,
48
- C as AlertDialogTrigger,
46
+ S as AlertDialogHeader,
47
+ D as AlertDialogTitle,
48
+ x as AlertDialogTrigger,
49
49
  n as AlertTitle,
50
50
  T as Badge,
51
- s as Button,
51
+ b as Button,
52
52
  w as Calendar,
53
- h as Card,
54
- A as CardAction,
55
- v as CardContent,
53
+ P as Card,
54
+ h as CardAction,
55
+ A as CardContent,
56
56
  L as CardDescription,
57
- I as CardFooter,
58
- y as CardHeader,
59
- V as CardTitle,
60
- F as Checkbox,
61
- H as Command,
62
- N as CommandDialog,
57
+ V as CardFooter,
58
+ I as CardHeader,
59
+ y as CardTitle,
60
+ B as Checkbox,
61
+ G as Command,
62
+ H as CommandDialog,
63
63
  R as CommandEmpty,
64
64
  k as CommandGroup,
65
65
  E as CommandInput,
@@ -77,8 +77,8 @@ export {
77
77
  _ as DialogTitle,
78
78
  $ as DialogTrigger,
79
79
  eo as DropdownMenu,
80
- ro as DropdownMenuCheckboxItem,
81
- to as DropdownMenuContent,
80
+ to as DropdownMenuCheckboxItem,
81
+ ro as DropdownMenuContent,
82
82
  ao as DropdownMenuGroup,
83
83
  no as DropdownMenuItem,
84
84
  io as DropdownMenuLabel,
@@ -87,23 +87,23 @@ export {
87
87
  go as DropdownMenuRadioItem,
88
88
  mo as DropdownMenuSeparator,
89
89
  uo as DropdownMenuShortcut,
90
- Do as DropdownMenuSub,
91
- xo as DropdownMenuSubContent,
92
- Co as DropdownMenuSubTrigger,
93
- So as DropdownMenuTrigger,
94
- fo as Filter,
95
- so as FilterBar,
96
- bo as FilterBarContent,
90
+ So as DropdownMenuSub,
91
+ Do as DropdownMenuSubContent,
92
+ xo as DropdownMenuSubTrigger,
93
+ Co as DropdownMenuTrigger,
94
+ co as Filter,
95
+ bo as FilterBar,
96
+ so as FilterBarContent,
97
97
  Mo as FilterBarScrollableContent,
98
- Po as Input,
99
- Ao as Label,
98
+ vo as Input,
99
+ ho as Label,
100
100
  Lo as Layout,
101
- Io as LayoutContent,
102
- yo as LayoutMain,
103
- Vo as LayoutScrollableContent,
104
- Bo as LayoutSidebar,
105
- Fo as LayoutTopbar,
106
- Ho as Loading,
101
+ Vo as LayoutContent,
102
+ Io as LayoutMain,
103
+ yo as LayoutScrollableContent,
104
+ No as LayoutSidebar,
105
+ Bo as LayoutTopbar,
106
+ Go as Loading,
107
107
  Ro as Pagination,
108
108
  ko as PaginationButton,
109
109
  Eo as PaginationContent,
@@ -119,8 +119,8 @@ export {
119
119
  _o as RadioGroup,
120
120
  $o as RadioGroupItem,
121
121
  ee as Select,
122
- re as SelectContent,
123
- te as SelectGroup,
122
+ te as SelectContent,
123
+ re as SelectGroup,
124
124
  ae as SelectItem,
125
125
  ne as SelectLabel,
126
126
  ie as SelectScrollDownButton,
@@ -129,23 +129,23 @@ export {
129
129
  ge as SelectTrigger,
130
130
  me as SelectValue,
131
131
  de as Separator,
132
- xe as Sheet,
133
- Ce as SheetClose,
134
- Se as SheetContent,
132
+ De as Sheet,
133
+ xe as SheetClose,
134
+ Ce as SheetContent,
135
135
  Te as SheetDescription,
136
- fe as SheetFooter,
137
- ce as SheetHeader,
138
- se as SheetOverlay,
139
- be as SheetPortal,
136
+ ce as SheetFooter,
137
+ fe as SheetHeader,
138
+ be as SheetOverlay,
139
+ se as SheetPortal,
140
140
  Me as SheetTitle,
141
141
  we as SheetTrigger,
142
- he as Skeleton,
143
- Ie as Sonner,
144
- Ve as Switch,
145
- Fe as Table,
146
- Ge as TableBody,
147
- He as TableCaption,
148
- Ne as TableCell,
142
+ Pe as Skeleton,
143
+ Ve as Sonner,
144
+ ye as Switch,
145
+ Be as Table,
146
+ Fe as TableBody,
147
+ Ge as TableCaption,
148
+ He as TableCell,
149
149
  Re as TableFooter,
150
150
  ke as TableHead,
151
151
  Ee as TableHeader,
@@ -157,21 +157,24 @@ export {
157
157
  Qe as TagInput,
158
158
  Xe as Textarea,
159
159
  Ze as Toggle,
160
- or as ToggleGroup,
161
- er as ToggleGroupItem,
162
- tr as Tooltip,
163
- ar as TooltipContent,
164
- nr as TooltipProvider,
165
- ir as TooltipTrigger,
166
- pr as VerticalNavigationMenu,
167
- gr as VerticalNavigationMenuHeading,
168
- mr as VerticalNavigationMenuItem,
169
- ur as VerticalNavigationMenuLink,
170
- dr as VerticalNavigationMenuList,
171
- Dr as VerticalNavigationMenuSeparator,
172
- f as badgeVariants,
173
- b as buttonVariants,
174
- ve as sonnerToast,
160
+ ot as ToggleGroup,
161
+ et as ToggleGroupItem,
162
+ rt as Tooltip,
163
+ at as TooltipContent,
164
+ nt as TooltipProvider,
165
+ it as TooltipTrigger,
166
+ pt as VerticalNavigationMenu,
167
+ gt as VerticalNavigationMenuHeading,
168
+ mt as VerticalNavigationMenuItem,
169
+ ut as VerticalNavigationMenuLink,
170
+ dt as VerticalNavigationMenuList,
171
+ St as VerticalNavigationMenuSeparator,
172
+ Dt as VerticalNavigationMenuSub,
173
+ xt as VerticalNavigationMenuSubContent,
174
+ Ct as VerticalNavigationMenuSubTrigger,
175
+ c as badgeVariants,
176
+ s as buttonVariants,
177
+ Ae as sonnerToast,
175
178
  _e as toggleVariants
176
179
  };
177
180
  //# sourceMappingURL=index.js.map
package/dist/index10.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index37.cjs"),o=require("cmdk"),c=require("lucide-react");;/* empty css */const n=require("./index39.cjs");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-slot");require("react");require("react-day-picker");require("@radix-ui/react-checkbox");const a=require("./index11.cjs");require("@radix-ui/react-dropdown-menu");require("@radix-ui/react-popover");require("@radix-ui/react-label");require("@radix-ui/react-progress");require("@radix-ui/react-radio-group");require("@radix-ui/react-select");require("@radix-ui/react-separator");require("@radix-ui/react-dialog");require("sonner");require("@radix-ui/react-switch");require("@radix-ui/react-tabs");require("./index31.cjs");require("@radix-ui/react-toggle");require("./index34.cjs");require("@radix-ui/react-tooltip");require("@radix-ui/react-navigation-menu");function s({className:e,...r}){return t.jsxRuntimeExports.jsx(o.Command,{"data-slot":"command",className:n.cn("bg-white text-gray-900 flex h-full w-full flex-col overflow-hidden rounded",e),...r})}function x({title:e="Command Palette",description:r="Search for a command to run...",children:m,className:i,showCloseButton:d=!0,...u}){return t.jsxRuntimeExports.jsxs(a.Dialog,{...u,children:[t.jsxRuntimeExports.jsxs(a.DialogHeader,{className:"sr-only",children:[t.jsxRuntimeExports.jsx(a.DialogTitle,{children:e}),t.jsxRuntimeExports.jsx(a.DialogDescription,{children:r})]}),t.jsxRuntimeExports.jsx(a.DialogContent,{className:n.cn("overflow-hidden p-0",i),showCloseButton:d,children:t.jsxRuntimeExports.jsx(s,{className:"[&_[cmdk-group-heading]]:text-gray-900 [&_[cmdk-group-heading]]:px-8 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-8 [&_[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-8 [&_[cmdk-item]]:py-8 [&_[cmdk-item]_svg]:h-16 [&_[cmdk-item]_svg]:w-16",children:m})})]})}function l({className:e,inputWrapperClassName:r,...m}){return t.jsxRuntimeExports.jsxs("div",{"data-slot":"command-input-wrapper",className:n.cn("flex items-center gap-8 border-b px-12",r),children:[t.jsxRuntimeExports.jsx(c.SearchIcon,{className:"size-16 shrink-0"}),t.jsxRuntimeExports.jsx(o.Command.Input,{"data-slot":"command-input",className:n.cn("flex h-[44px] w-full rounded bg-white py-12 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-64",e),...m})]})}function p({className:e,...r}){return t.jsxRuntimeExports.jsx(o.Command.List,{"data-slot":"command-list",className:n.cn("max-h-[300px] scroll-py-4 overflow-x-hidden overflow-y-auto",e),...r})}function g({...e}){return t.jsxRuntimeExports.jsx(o.Command.Empty,{"data-slot":"command-empty",className:"py-[10px] text-center text-sm",...e})}function h({className:e,...r}){return t.jsxRuntimeExports.jsx(o.Command.Group,{"data-slot":"command-group",className:n.cn("text-gray-900 [&_[cmdk-group-heading]]:text-gray-900 overflow-hidden [&_[cmdk-group-heading]]:px-16 [&_[cmdk-group-heading]]:py-8 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...r})}function j({className:e,...r}){return t.jsxRuntimeExports.jsx(o.Command.Separator,{"data-slot":"command-separator",className:n.cn("bg-gray-900/8 -mx-4 h-px",e),...r})}function f({className:e,...r}){return t.jsxRuntimeExports.jsx(o.Command.Item,{"data-slot":"command-item",className:n.cn("data-[selected=true]:bg-gray-200 data-[selected=true]:text-gray-900 [&_svg:not([class*='text-'])]:text-gray-900 relative flex cursor-default items-center rounded px-16 py-8 outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-64 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-16",e),...r})}function q({className:e,...r}){return t.jsxRuntimeExports.jsx("span",{"data-slot":"command-shortcut",className:n.cn("text-gray-700 ml-auto text-xs tracking-widest",e),...r})}exports.Command=s;exports.CommandDialog=x;exports.CommandEmpty=g;exports.CommandGroup=h;exports.CommandInput=l;exports.CommandItem=f;exports.CommandList=p;exports.CommandSeparator=j;exports.CommandShortcut=q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index37.cjs"),o=require("cmdk"),c=require("lucide-react");;/* empty css */const n=require("./index39.cjs");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-slot");require("react");require("react-day-picker");require("@radix-ui/react-checkbox");const a=require("./index11.cjs");require("@radix-ui/react-dropdown-menu");require("@radix-ui/react-popover");require("@radix-ui/react-label");require("@radix-ui/react-progress");require("@radix-ui/react-radio-group");require("@radix-ui/react-select");require("@radix-ui/react-separator");require("@radix-ui/react-dialog");require("sonner");require("@radix-ui/react-switch");require("@radix-ui/react-tabs");require("./index31.cjs");require("@radix-ui/react-toggle");require("./index34.cjs");require("@radix-ui/react-tooltip");require("@radix-ui/react-collapsible");require("@radix-ui/react-navigation-menu");function s({className:e,...r}){return t.jsxRuntimeExports.jsx(o.Command,{"data-slot":"command",className:n.cn("bg-white text-gray-900 flex h-full w-full flex-col overflow-hidden rounded",e),...r})}function x({title:e="Command Palette",description:r="Search for a command to run...",children:m,className:i,showCloseButton:d=!0,...u}){return t.jsxRuntimeExports.jsxs(a.Dialog,{...u,children:[t.jsxRuntimeExports.jsxs(a.DialogHeader,{className:"sr-only",children:[t.jsxRuntimeExports.jsx(a.DialogTitle,{children:e}),t.jsxRuntimeExports.jsx(a.DialogDescription,{children:r})]}),t.jsxRuntimeExports.jsx(a.DialogContent,{className:n.cn("overflow-hidden p-0",i),showCloseButton:d,children:t.jsxRuntimeExports.jsx(s,{className:"[&_[cmdk-group-heading]]:text-gray-900 [&_[cmdk-group-heading]]:px-8 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-8 [&_[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-8 [&_[cmdk-item]]:py-8 [&_[cmdk-item]_svg]:h-16 [&_[cmdk-item]_svg]:w-16",children:m})})]})}function l({className:e,inputWrapperClassName:r,...m}){return t.jsxRuntimeExports.jsxs("div",{"data-slot":"command-input-wrapper",className:n.cn("flex items-center gap-8 border-b px-12",r),children:[t.jsxRuntimeExports.jsx(c.SearchIcon,{className:"size-16 shrink-0"}),t.jsxRuntimeExports.jsx(o.Command.Input,{"data-slot":"command-input",className:n.cn("flex h-[44px] w-full rounded bg-white py-12 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-64",e),...m})]})}function p({className:e,...r}){return t.jsxRuntimeExports.jsx(o.Command.List,{"data-slot":"command-list",className:n.cn("max-h-[300px] scroll-py-4 overflow-x-hidden overflow-y-auto",e),...r})}function g({...e}){return t.jsxRuntimeExports.jsx(o.Command.Empty,{"data-slot":"command-empty",className:"py-[10px] text-center text-sm",...e})}function h({className:e,...r}){return t.jsxRuntimeExports.jsx(o.Command.Group,{"data-slot":"command-group",className:n.cn("text-gray-900 [&_[cmdk-group-heading]]:text-gray-900 overflow-hidden [&_[cmdk-group-heading]]:px-16 [&_[cmdk-group-heading]]:py-8 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...r})}function j({className:e,...r}){return t.jsxRuntimeExports.jsx(o.Command.Separator,{"data-slot":"command-separator",className:n.cn("bg-gray-900/8 -mx-4 h-px",e),...r})}function q({className:e,...r}){return t.jsxRuntimeExports.jsx(o.Command.Item,{"data-slot":"command-item",className:n.cn("data-[selected=true]:bg-gray-200 data-[selected=true]:text-gray-900 [&_svg:not([class*='text-'])]:text-gray-900 relative flex cursor-default items-center rounded px-16 py-8 outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-64 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-16",e),...r})}function f({className:e,...r}){return t.jsxRuntimeExports.jsx("span",{"data-slot":"command-shortcut",className:n.cn("text-gray-700 ml-auto text-xs tracking-widest",e),...r})}exports.Command=s;exports.CommandDialog=x;exports.CommandEmpty=g;exports.CommandGroup=h;exports.CommandInput=l;exports.CommandItem=q;exports.CommandList=p;exports.CommandSeparator=j;exports.CommandShortcut=f;
2
2
  //# sourceMappingURL=index10.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index10.cjs","sources":["../src/Command/index.tsx"],"sourcesContent":["'use client'\n\nimport { Command as CommandPrimitive } from 'cmdk'\nimport { SearchIcon } from 'lucide-react'\nimport * as React from 'react'\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle\n} from '../'\nimport { cn } from '../lib/utils'\n\nfunction Command({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive>) {\n return (\n <CommandPrimitive\n data-slot=\"command\"\n className={cn(\n 'bg-white text-gray-900 flex h-full w-full flex-col overflow-hidden rounded',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CommandDialog({\n title = 'Command Palette',\n description = 'Search for a command to run...',\n children,\n className,\n showCloseButton = true,\n ...props\n}: React.ComponentProps<typeof Dialog> & {\n title?: string\n description?: string\n className?: string\n showCloseButton?: boolean\n}) {\n return (\n <Dialog {...props}>\n <DialogHeader className=\"sr-only\">\n <DialogTitle>{title}</DialogTitle>\n <DialogDescription>{description}</DialogDescription>\n </DialogHeader>\n <DialogContent\n className={cn('overflow-hidden p-0', className)}\n showCloseButton={showCloseButton}\n >\n <Command className=\"[&_[cmdk-group-heading]]:text-gray-900 [&_[cmdk-group-heading]]:px-8 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-8 [&_[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-8 [&_[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\nfunction CommandInput({\n className,\n inputWrapperClassName,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Input> & {\n inputWrapperClassName?: string\n}) {\n return (\n <div\n data-slot=\"command-input-wrapper\"\n className={cn(\n 'flex items-center gap-8 border-b px-12',\n inputWrapperClassName\n )}\n >\n <SearchIcon className=\"size-16 shrink-0\" />\n <CommandPrimitive.Input\n data-slot=\"command-input\"\n className={cn(\n 'flex h-[44px] w-full rounded bg-white py-12 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-64',\n className\n )}\n {...props}\n />\n </div>\n )\n}\n\nfunction CommandList({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.List>) {\n return (\n <CommandPrimitive.List\n data-slot=\"command-list\"\n className={cn(\n 'max-h-[300px] scroll-py-4 overflow-x-hidden overflow-y-auto',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CommandEmpty({\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Empty>) {\n return (\n <CommandPrimitive.Empty\n data-slot=\"command-empty\"\n className=\"py-[10px] text-center text-sm\"\n {...props}\n />\n )\n}\n\nfunction CommandGroup({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Group>) {\n return (\n <CommandPrimitive.Group\n data-slot=\"command-group\"\n className={cn(\n 'text-gray-900 [&_[cmdk-group-heading]]:text-gray-900 overflow-hidden [&_[cmdk-group-heading]]:px-16 [&_[cmdk-group-heading]]:py-8 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CommandSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Separator>) {\n return (\n <CommandPrimitive.Separator\n data-slot=\"command-separator\"\n className={cn('bg-gray-900/8 -mx-4 h-px', className)}\n {...props}\n />\n )\n}\n\nfunction CommandItem({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Item>) {\n return (\n <CommandPrimitive.Item\n data-slot=\"command-item\"\n className={cn(\n \"data-[selected=true]:bg-gray-200 data-[selected=true]:text-gray-900 [&_svg:not([class*='text-'])]:text-gray-900 relative flex cursor-default items-center rounded px-16 py-8 outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-64 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-16\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CommandShortcut({\n className,\n ...props\n}: React.ComponentProps<'span'>) {\n return (\n <span\n data-slot=\"command-shortcut\"\n className={cn('text-gray-700 ml-auto text-xs tracking-widest', className)}\n {...props}\n />\n )\n}\n\nexport {\n Command,\n CommandDialog,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandSeparator,\n CommandShortcut\n}\n"],"names":["Command","className","props","jsx","CommandPrimitive","cn","CommandDialog","title","description","children","showCloseButton","jsxs","Dialog","DialogHeader","DialogTitle","DialogDescription","DialogContent","CommandInput","inputWrapperClassName","SearchIcon","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","CommandShortcut"],"mappings":"u6BAcA,SAASA,EAAQ,CACf,UAAAC,EACA,GAAGC,CACL,EAAkD,CAChD,OACEC,EAAAA,kBAAAA,IAACC,EAAAA,QAAA,CACC,YAAU,UACV,UAAWC,EAAAA,GACT,6EACAJ,CAAA,EAED,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASI,EAAc,CACrB,MAAAC,EAAQ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,EAAAA,QAAiB,MAAjB,CACC,YAAU,gBACV,UAAU,gCACT,GAAGF,CAAA,CAAA,CAGV,CAEA,SAASoB,EAAa,CACpB,UAAArB,EACA,GAAGC,CACL,EAAwD,CACtD,OACEC,EAAAA,kBAAAA,IAACC,EAAAA,QAAiB,MAAjB,CACC,YAAU,gBACV,UAAWC,EAAAA,GACT,0MACAJ,CAAA,EAED,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASqB,EAAiB,CACxB,UAAAtB,EACA,GAAGC,CACL,EAA4D,CAC1D,OACEC,EAAAA,kBAAAA,IAACC,EAAAA,QAAiB,UAAjB,CACC,YAAU,oBACV,UAAWC,EAAAA,GAAG,2BAA4BJ,CAAS,EAClD,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASsB,EAAY,CACnB,UAAAvB,EACA,GAAGC,CACL,EAAuD,CACrD,OACEC,EAAAA,kBAAAA,IAACC,EAAAA,QAAiB,KAAjB,CACC,YAAU,eACV,UAAWC,EAAAA,GACT,oWACAJ,CAAA,EAED,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASuB,EAAgB,CACvB,UAAAxB,EACA,GAAGC,CACL,EAAiC,CAC/B,OACEC,EAAAA,kBAAAA,IAAC,OAAA,CACC,YAAU,mBACV,UAAWE,EAAAA,GAAG,gDAAiDJ,CAAS,EACvE,GAAGC,CAAA,CAAA,CAGV"}
1
+ {"version":3,"file":"index10.cjs","sources":["../src/Command/index.tsx"],"sourcesContent":["'use client'\n\nimport { Command as CommandPrimitive } from 'cmdk'\nimport { SearchIcon } from 'lucide-react'\nimport * as React from 'react'\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle\n} from '../'\nimport { cn } from '../lib/utils'\n\nfunction Command({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive>) {\n return (\n <CommandPrimitive\n data-slot=\"command\"\n className={cn(\n 'bg-white text-gray-900 flex h-full w-full flex-col overflow-hidden rounded',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CommandDialog({\n title = 'Command Palette',\n description = 'Search for a command to run...',\n children,\n className,\n showCloseButton = true,\n ...props\n}: React.ComponentProps<typeof Dialog> & {\n title?: string\n description?: string\n className?: string\n showCloseButton?: boolean\n}) {\n return (\n <Dialog {...props}>\n <DialogHeader className=\"sr-only\">\n <DialogTitle>{title}</DialogTitle>\n <DialogDescription>{description}</DialogDescription>\n </DialogHeader>\n <DialogContent\n className={cn('overflow-hidden p-0', className)}\n showCloseButton={showCloseButton}\n >\n <Command className=\"[&_[cmdk-group-heading]]:text-gray-900 [&_[cmdk-group-heading]]:px-8 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-8 [&_[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-8 [&_[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\nfunction CommandInput({\n className,\n inputWrapperClassName,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Input> & {\n inputWrapperClassName?: string\n}) {\n return (\n <div\n data-slot=\"command-input-wrapper\"\n className={cn(\n 'flex items-center gap-8 border-b px-12',\n inputWrapperClassName\n )}\n >\n <SearchIcon className=\"size-16 shrink-0\" />\n <CommandPrimitive.Input\n data-slot=\"command-input\"\n className={cn(\n 'flex h-[44px] w-full rounded bg-white py-12 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-64',\n className\n )}\n {...props}\n />\n </div>\n )\n}\n\nfunction CommandList({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.List>) {\n return (\n <CommandPrimitive.List\n data-slot=\"command-list\"\n className={cn(\n 'max-h-[300px] scroll-py-4 overflow-x-hidden overflow-y-auto',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CommandEmpty({\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Empty>) {\n return (\n <CommandPrimitive.Empty\n data-slot=\"command-empty\"\n className=\"py-[10px] text-center text-sm\"\n {...props}\n />\n )\n}\n\nfunction CommandGroup({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Group>) {\n return (\n <CommandPrimitive.Group\n data-slot=\"command-group\"\n className={cn(\n 'text-gray-900 [&_[cmdk-group-heading]]:text-gray-900 overflow-hidden [&_[cmdk-group-heading]]:px-16 [&_[cmdk-group-heading]]:py-8 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CommandSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Separator>) {\n return (\n <CommandPrimitive.Separator\n data-slot=\"command-separator\"\n className={cn('bg-gray-900/8 -mx-4 h-px', className)}\n {...props}\n />\n )\n}\n\nfunction CommandItem({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Item>) {\n return (\n <CommandPrimitive.Item\n data-slot=\"command-item\"\n className={cn(\n \"data-[selected=true]:bg-gray-200 data-[selected=true]:text-gray-900 [&_svg:not([class*='text-'])]:text-gray-900 relative flex cursor-default items-center rounded px-16 py-8 outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-64 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-16\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CommandShortcut({\n className,\n ...props\n}: React.ComponentProps<'span'>) {\n return (\n <span\n data-slot=\"command-shortcut\"\n className={cn('text-gray-700 ml-auto text-xs tracking-widest', className)}\n {...props}\n />\n )\n}\n\nexport {\n Command,\n CommandDialog,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandSeparator,\n CommandShortcut\n}\n"],"names":["Command","className","props","jsx","CommandPrimitive","cn","CommandDialog","title","description","children","showCloseButton","jsxs","Dialog","DialogHeader","DialogTitle","DialogDescription","DialogContent","CommandInput","inputWrapperClassName","SearchIcon","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","CommandShortcut"],"mappings":"88BAcA,SAASA,EAAQ,CACf,UAAAC,EACA,GAAGC,CACL,EAAkD,CAChD,OACEC,EAAAA,kBAAAA,IAACC,EAAAA,QAAA,CACC,YAAU,UACV,UAAWC,EAAAA,GACT,6EACAJ,CAAA,EAED,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASI,EAAc,CACrB,MAAAC,EAAQ,kBACR,YAAAC,EAAc,iCACd,SAAAC,EACA,UAAAR,EACA,gBAAAS,EAAkB,GAClB,GAAGR,CACL,EAKG,CACD,OACES,EAAAA,kBAAAA,KAACC,EAAAA,OAAA,CAAQ,GAAGV,EACV,SAAA,CAAAS,EAAAA,kBAAAA,KAACE,EAAAA,aAAA,CAAa,UAAU,UACtB,SAAA,CAAAV,EAAAA,kBAAAA,IAACW,EAAAA,aAAa,SAAAP,CAAA,CAAM,EACpBJ,EAAAA,kBAAAA,IAACY,EAAAA,mBAAmB,SAAAP,CAAA,CAAY,CAAA,EAClC,EACAL,EAAAA,kBAAAA,IAACa,EAAAA,cAAA,CACC,UAAWX,EAAAA,GAAG,sBAAuBJ,CAAS,EAC9C,gBAAAS,EAEA,SAAAP,EAAAA,kBAAAA,IAACH,EAAA,CAAQ,UAAU,0WAChB,SAAAS,CAAA,CACH,CAAA,CAAA,CACF,EACF,CAEJ,CAEA,SAASQ,EAAa,CACpB,UAAAhB,EACA,sBAAAiB,EACA,GAAGhB,CACL,EAEG,CACD,OACES,EAAAA,kBAAAA,KAAC,MAAA,CACC,YAAU,wBACV,UAAWN,EAAAA,GACT,yCACAa,CAAA,EAGF,SAAA,CAAAf,EAAAA,kBAAAA,IAACgB,EAAAA,WAAA,CAAW,UAAU,kBAAA,CAAmB,EACzChB,EAAAA,kBAAAA,IAACC,EAAAA,QAAiB,MAAjB,CACC,YAAU,gBACV,UAAWC,EAA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import { j as e } from "./index37.js";
1
+ import { j as o } from "./index37.js";
2
2
  import { Command as a } from "cmdk";
3
3
  import { SearchIcon as d } from "lucide-react";
4
4
  /* empty css */
@@ -24,12 +24,13 @@ import "./index31.js";
24
24
  import "@radix-ui/react-toggle";
25
25
  import "./index34.js";
26
26
  import "@radix-ui/react-tooltip";
27
+ import "@radix-ui/react-collapsible";
27
28
  import "@radix-ui/react-navigation-menu";
28
29
  function g({
29
30
  className: t,
30
- ...o
31
+ ...e
31
32
  }) {
32
- return /* @__PURE__ */ e.jsx(
33
+ return /* @__PURE__ */ o.jsx(
33
34
  a,
34
35
  {
35
36
  "data-slot": "command",
@@ -37,49 +38,49 @@ function g({
37
38
  "bg-white text-gray-900 flex h-full w-full flex-col overflow-hidden rounded",
38
39
  t
39
40
  ),
40
- ...o
41
+ ...e
41
42
  }
42
43
  );
43
44
  }
44
- function J({
45
+ function K({
45
46
  title: t = "Command Palette",
46
- description: o = "Search for a command to run...",
47
+ description: e = "Search for a command to run...",
47
48
  children: m,
48
49
  className: n,
49
50
  showCloseButton: i = !0,
50
51
  ...s
51
52
  }) {
52
- return /* @__PURE__ */ e.jsxs(p, { ...s, children: [
53
- /* @__PURE__ */ e.jsxs(c, { className: "sr-only", children: [
54
- /* @__PURE__ */ e.jsx(l, { children: t }),
55
- /* @__PURE__ */ e.jsx(u, { children: o })
53
+ return /* @__PURE__ */ o.jsxs(p, { ...s, children: [
54
+ /* @__PURE__ */ o.jsxs(c, { className: "sr-only", children: [
55
+ /* @__PURE__ */ o.jsx(l, { children: t }),
56
+ /* @__PURE__ */ o.jsx(u, { children: e })
56
57
  ] }),
57
- /* @__PURE__ */ e.jsx(
58
+ /* @__PURE__ */ o.jsx(
58
59
  x,
59
60
  {
60
61
  className: r("overflow-hidden p-0", n),
61
62
  showCloseButton: i,
62
- children: /* @__PURE__ */ e.jsx(g, { className: "[&_[cmdk-group-heading]]:text-gray-900 [&_[cmdk-group-heading]]:px-8 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-8 [&_[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-8 [&_[cmdk-item]]:py-8 [&_[cmdk-item]_svg]:h-16 [&_[cmdk-item]_svg]:w-16", children: m })
63
+ children: /* @__PURE__ */ o.jsx(g, { className: "[&_[cmdk-group-heading]]:text-gray-900 [&_[cmdk-group-heading]]:px-8 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-8 [&_[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-8 [&_[cmdk-item]]:py-8 [&_[cmdk-item]_svg]:h-16 [&_[cmdk-item]_svg]:w-16", children: m })
63
64
  }
64
65
  )
65
66
  ] });
66
67
  }
67
- function K({
68
+ function M({
68
69
  className: t,
69
- inputWrapperClassName: o,
70
+ inputWrapperClassName: e,
70
71
  ...m
71
72
  }) {
72
- return /* @__PURE__ */ e.jsxs(
73
+ return /* @__PURE__ */ o.jsxs(
73
74
  "div",
74
75
  {
75
76
  "data-slot": "command-input-wrapper",
76
77
  className: r(
77
78
  "flex items-center gap-8 border-b px-12",
78
- o
79
+ e
79
80
  ),
80
81
  children: [
81
- /* @__PURE__ */ e.jsx(d, { className: "size-16 shrink-0" }),
82
- /* @__PURE__ */ e.jsx(
82
+ /* @__PURE__ */ o.jsx(d, { className: "size-16 shrink-0" }),
83
+ /* @__PURE__ */ o.jsx(
83
84
  a.Input,
84
85
  {
85
86
  "data-slot": "command-input",
@@ -94,11 +95,11 @@ function K({
94
95
  }
95
96
  );
96
97
  }
97
- function M({
98
+ function O({
98
99
  className: t,
99
- ...o
100
+ ...e
100
101
  }) {
101
- return /* @__PURE__ */ e.jsx(
102
+ return /* @__PURE__ */ o.jsx(
102
103
  a.List,
103
104
  {
104
105
  "data-slot": "command-list",
@@ -106,14 +107,14 @@ function M({
106
107
  "max-h-[300px] scroll-py-4 overflow-x-hidden overflow-y-auto",
107
108
  t
108
109
  ),
109
- ...o
110
+ ...e
110
111
  }
111
112
  );
112
113
  }
113
- function O({
114
+ function Q({
114
115
  ...t
115
116
  }) {
116
- return /* @__PURE__ */ e.jsx(
117
+ return /* @__PURE__ */ o.jsx(
117
118
  a.Empty,
118
119
  {
119
120
  "data-slot": "command-empty",
@@ -122,11 +123,11 @@ function O({
122
123
  }
123
124
  );
124
125
  }
125
- function Q({
126
+ function U({
126
127
  className: t,
127
- ...o
128
+ ...e
128
129
  }) {
129
- return /* @__PURE__ */ e.jsx(
130
+ return /* @__PURE__ */ o.jsx(
130
131
  a.Group,
131
132
  {
132
133
  "data-slot": "command-group",
@@ -134,28 +135,28 @@ function Q({
134
135
  "text-gray-900 [&_[cmdk-group-heading]]:text-gray-900 overflow-hidden [&_[cmdk-group-heading]]:px-16 [&_[cmdk-group-heading]]:py-8 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
135
136
  t
136
137
  ),
137
- ...o
138
+ ...e
138
139
  }
139
140
  );
140
141
  }
141
- function U({
142
+ function V({
142
143
  className: t,
143
- ...o
144
+ ...e
144
145
  }) {
145
- return /* @__PURE__ */ e.jsx(
146
+ return /* @__PURE__ */ o.jsx(
146
147
  a.Separator,
147
148
  {
148
149
  "data-slot": "command-separator",
149
150
  className: r("bg-gray-900/8 -mx-4 h-px", t),
150
- ...o
151
+ ...e
151
152
  }
152
153
  );
153
154
  }
154
- function V({
155
+ function W({
155
156
  className: t,
156
- ...o
157
+ ...e
157
158
  }) {
158
- return /* @__PURE__ */ e.jsx(
159
+ return /* @__PURE__ */ o.jsx(
159
160
  a.Item,
160
161
  {
161
162
  "data-slot": "command-item",
@@ -163,32 +164,32 @@ function V({
163
164
  "data-[selected=true]:bg-gray-200 data-[selected=true]:text-gray-900 [&_svg:not([class*='text-'])]:text-gray-900 relative flex cursor-default items-center rounded px-16 py-8 outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-64 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-16",
164
165
  t
165
166
  ),
166
- ...o
167
+ ...e
167
168
  }
168
169
  );
169
170
  }
170
- function W({
171
+ function X({
171
172
  className: t,
172
- ...o
173
+ ...e
173
174
  }) {
174
- return /* @__PURE__ */ e.jsx(
175
+ return /* @__PURE__ */ o.jsx(
175
176
  "span",
176
177
  {
177
178
  "data-slot": "command-shortcut",
178
179
  className: r("text-gray-700 ml-auto text-xs tracking-widest", t),
179
- ...o
180
+ ...e
180
181
  }
181
182
  );
182
183
  }
183
184
  export {
184
185
  g as Command,
185
- J as CommandDialog,
186
- O as CommandEmpty,
187
- Q as CommandGroup,
188
- K as CommandInput,
189
- V as CommandItem,
190
- M as CommandList,
191
- U as CommandSeparator,
192
- W as CommandShortcut
186
+ K as CommandDialog,
187
+ Q as CommandEmpty,
188
+ U as CommandGroup,
189
+ M as CommandInput,
190
+ W as CommandItem,
191
+ O as CommandList,
192
+ V as CommandSeparator,
193
+ X as CommandShortcut
193
194
  };
194
195
  //# sourceMappingURL=index10.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index10.js","sources":["../src/Command/index.tsx"],"sourcesContent":["'use client'\n\nimport { Command as CommandPrimitive } from 'cmdk'\nimport { SearchIcon } from 'lucide-react'\nimport * as React from 'react'\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle\n} from '../'\nimport { cn } from '../lib/utils'\n\nfunction Command({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive>) {\n return (\n <CommandPrimitive\n data-slot=\"command\"\n className={cn(\n 'bg-white text-gray-900 flex h-full w-full flex-col overflow-hidden rounded',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CommandDialog({\n title = 'Command Palette',\n description = 'Search for a command to run...',\n children,\n className,\n showCloseButton = true,\n ...props\n}: React.ComponentProps<typeof Dialog> & {\n title?: string\n description?: string\n className?: string\n showCloseButton?: boolean\n}) {\n return (\n <Dialog {...props}>\n <DialogHeader className=\"sr-only\">\n <DialogTitle>{title}</DialogTitle>\n <DialogDescription>{description}</DialogDescription>\n </DialogHeader>\n <DialogContent\n className={cn('overflow-hidden p-0', className)}\n showCloseButton={showCloseButton}\n >\n <Command className=\"[&_[cmdk-group-heading]]:text-gray-900 [&_[cmdk-group-heading]]:px-8 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-8 [&_[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-8 [&_[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\nfunction CommandInput({\n className,\n inputWrapperClassName,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Input> & {\n inputWrapperClassName?: string\n}) {\n return (\n <div\n data-slot=\"command-input-wrapper\"\n className={cn(\n 'flex items-center gap-8 border-b px-12',\n inputWrapperClassName\n )}\n >\n <SearchIcon className=\"size-16 shrink-0\" />\n <CommandPrimitive.Input\n data-slot=\"command-input\"\n className={cn(\n 'flex h-[44px] w-full rounded bg-white py-12 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-64',\n className\n )}\n {...props}\n />\n </div>\n )\n}\n\nfunction CommandList({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.List>) {\n return (\n <CommandPrimitive.List\n data-slot=\"command-list\"\n className={cn(\n 'max-h-[300px] scroll-py-4 overflow-x-hidden overflow-y-auto',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CommandEmpty({\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Empty>) {\n return (\n <CommandPrimitive.Empty\n data-slot=\"command-empty\"\n className=\"py-[10px] text-center text-sm\"\n {...props}\n />\n )\n}\n\nfunction CommandGroup({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Group>) {\n return (\n <CommandPrimitive.Group\n data-slot=\"command-group\"\n className={cn(\n 'text-gray-900 [&_[cmdk-group-heading]]:text-gray-900 overflow-hidden [&_[cmdk-group-heading]]:px-16 [&_[cmdk-group-heading]]:py-8 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CommandSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Separator>) {\n return (\n <CommandPrimitive.Separator\n data-slot=\"command-separator\"\n className={cn('bg-gray-900/8 -mx-4 h-px', className)}\n {...props}\n />\n )\n}\n\nfunction CommandItem({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Item>) {\n return (\n <CommandPrimitive.Item\n data-slot=\"command-item\"\n className={cn(\n \"data-[selected=true]:bg-gray-200 data-[selected=true]:text-gray-900 [&_svg:not([class*='text-'])]:text-gray-900 relative flex cursor-default items-center rounded px-16 py-8 outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-64 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-16\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CommandShortcut({\n className,\n ...props\n}: React.ComponentProps<'span'>) {\n return (\n <span\n data-slot=\"command-shortcut\"\n className={cn('text-gray-700 ml-auto text-xs tracking-widest', className)}\n {...props}\n />\n )\n}\n\nexport {\n Command,\n CommandDialog,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandSeparator,\n CommandShortcut\n}\n"],"names":["Command","className","props","jsx","CommandPrimitive","cn","CommandDialog","title","description","children","showCloseButton","jsxs","Dialog","DialogHeader","DialogTitle","DialogDescription","DialogContent","CommandInput","inputWrapperClassName","SearchIcon","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","CommandShortcut"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,SAASA,EAAQ;AAAA,EACf,WAAAC;AAAA,EACA,GAAGC;AACL,GAAkD;AAChD,SACEC,gBAAAA,EAAAA;AAAAA,IAACC;AAAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWC;AAAA,QACT;AAAA,QACAJ;AAAA,MAAA;AAAA,MAED,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASI,EAAc;AAAA,EACrB,OAAAC,IAAQ;AAAA,EACR,aAAAC,IAAc;AAAA,EACd,UAAAC;AAAA,EACA,WAAAR;AAAA,EACA,iBAAAS,IAAkB;AAAA,EAClB,GAAGR;AACL,GAKG;AACD,SACES,gBAAAA,EAAAA,KAACC,GAAA,EAAQ,GAAGV,GACV,UAAA;AAAA,IAAAS,gBAAAA,EAAAA,KAACE,GAAA,EAAa,WAAU,WACtB,UAAA;AAAA,MAAAV,gBAAAA,EAAAA,IAACW,KAAa,UAAAP,EAAA,CAAM;AAAA,MACpBJ,gBAAAA,EAAAA,IAACY,KAAmB,UAAAP,EAAA,CAAY;AAAA,IAAA,GAClC;AAAA,IACAL,gBAAAA,EAAAA;AAAAA,MAACa;AAAA,MAAA;AAAA,QACC,WAAWX,EAAG,uBAAuBJ,CAAS;AAAA,QAC9C,iBAAAS;AAAA,QAEA,UAAAP,gBAAAA,EAAAA,IAACH,GAAA,EAAQ,WAAU,2WAChB,UAAAS,EAAA,CACH;AAAA,MAAA;AAAA,IAAA;AAAA,EACF,GACF;AAEJ;AAEA,SAASQ,EAAa;AAAA,EACpB,WAAAhB;AAAA,EACA,uBAAAiB;AAAA,EACA,GAAGhB;AACL,GAEG;AACD,SACES,gBAAAA,EAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWN;AAAA,QACT;AAAA,QACAa;AAAA,MAAA;AA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GV;AAEA,SAASsB,EAAY;AAAA,EACnB,WAAAvB;AAAA,EACA,GAAGC;AACL,GAAuD;AACrD,SACEC,gBAAAA,EAAAA;AAAAA,IAACC,EAAiB;AAAA,IAAjB;AAAA,MACC,aAAU;AAAA,MACV,WAAWC;AAAA,QACT;AAAA,QACAJ;AAAA,MAAA;AAAA,MAED,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASuB,EAAgB;AAAA,EACvB,WAAAxB;AAAA,EACA,GAAGC;AACL,GAAiC;AAC/B,SACEC,gBAAAA,EAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWE,EAAG,iDAAiDJ,CAAS;AAAA,MACvE,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;"}
1
+ {"version":3,"file":"index10.js","sources":["../src/Command/index.tsx"],"sourcesContent":["'use client'\n\nimport { Command as CommandPrimitive } from 'cmdk'\nimport { SearchIcon } from 'lucide-react'\nimport * as React from 'react'\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle\n} from '../'\nimport { cn } from '../lib/utils'\n\nfunction Command({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive>) {\n return (\n <CommandPrimitive\n data-slot=\"command\"\n className={cn(\n 'bg-white text-gray-900 flex h-full w-full flex-col overflow-hidden rounded',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CommandDialog({\n title = 'Command Palette',\n description = 'Search for a command to run...',\n children,\n className,\n showCloseButton = true,\n ...props\n}: React.ComponentProps<typeof Dialog> & {\n title?: string\n description?: string\n className?: string\n showCloseButton?: boolean\n}) {\n return (\n <Dialog {...props}>\n <DialogHeader className=\"sr-only\">\n <DialogTitle>{title}</DialogTitle>\n <DialogDescription>{description}</DialogDescription>\n </DialogHeader>\n <DialogContent\n className={cn('overflow-hidden p-0', className)}\n showCloseButton={showCloseButton}\n >\n <Command className=\"[&_[cmdk-group-heading]]:text-gray-900 [&_[cmdk-group-heading]]:px-8 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-8 [&_[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-8 [&_[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\nfunction CommandInput({\n className,\n inputWrapperClassName,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Input> & {\n inputWrapperClassName?: string\n}) {\n return (\n <div\n data-slot=\"command-input-wrapper\"\n className={cn(\n 'flex items-center gap-8 border-b px-12',\n inputWrapperClassName\n )}\n >\n <SearchIcon className=\"size-16 shrink-0\" />\n <CommandPrimitive.Input\n data-slot=\"command-input\"\n className={cn(\n 'flex h-[44px] w-full rounded bg-white py-12 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-64',\n className\n )}\n {...props}\n />\n </div>\n )\n}\n\nfunction CommandList({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.List>) {\n return (\n <CommandPrimitive.List\n data-slot=\"command-list\"\n className={cn(\n 'max-h-[300px] scroll-py-4 overflow-x-hidden overflow-y-auto',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CommandEmpty({\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Empty>) {\n return (\n <CommandPrimitive.Empty\n data-slot=\"command-empty\"\n className=\"py-[10px] text-center text-sm\"\n {...props}\n />\n )\n}\n\nfunction CommandGroup({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Group>) {\n return (\n <CommandPrimitive.Group\n data-slot=\"command-group\"\n className={cn(\n 'text-gray-900 [&_[cmdk-group-heading]]:text-gray-900 overflow-hidden [&_[cmdk-group-heading]]:px-16 [&_[cmdk-group-heading]]:py-8 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CommandSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Separator>) {\n return (\n <CommandPrimitive.Separator\n data-slot=\"command-separator\"\n className={cn('bg-gray-900/8 -mx-4 h-px', className)}\n {...props}\n />\n )\n}\n\nfunction CommandItem({\n className,\n ...props\n}: React.ComponentProps<typeof CommandPrimitive.Item>) {\n return (\n <CommandPrimitive.Item\n data-slot=\"command-item\"\n className={cn(\n \"data-[selected=true]:bg-gray-200 data-[selected=true]:text-gray-900 [&_svg:not([class*='text-'])]:text-gray-900 relative flex cursor-default items-center rounded px-16 py-8 outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-64 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-16\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CommandShortcut({\n className,\n ...props\n}: React.ComponentProps<'span'>) {\n return (\n <span\n data-slot=\"command-shortcut\"\n className={cn('text-gray-700 ml-auto text-xs tracking-widest', className)}\n {...props}\n />\n )\n}\n\nexport {\n Command,\n CommandDialog,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandSeparator,\n CommandShortcut\n}\n"],"names":["Command","className","props","jsx","CommandPrimitive","cn","CommandDialog","title","description","children","showCloseButton","jsxs","Dialog","DialogHeader","DialogTitle","DialogDescription","DialogContent","CommandInput","inputWrapperClassName","SearchIcon","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","CommandShortcut"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,SAASA,EAAQ;AAAA,EACf,WAAAC;AAAA,EACA,GAAGC;AACL,GAAkD;AAChD,SACEC,gBAAAA,EAAAA;AAAAA,IAACC;AAAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWC;AAAA,QACT;AAAA,QACAJ;AAAA,MAAA;AAAA,MAED,GAAGC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C;AACL,GAAiC;AAC/B,SACEC,gBAAAA,EAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWE,EAAG,iDAAiDJ,CAAS;AAAA,MACvE,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;"}
package/dist/index11.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index37.cjs"),x=require("@radix-ui/react-dialog"),f=require("lucide-react"),n=require("./index39.cjs");function m(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const s=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>t[i]})}}return e.default=t,Object.freeze(e)}const a=m(x);function p({...t}){return o.jsxRuntimeExports.jsx(a.Root,{"data-slot":"dialog",...t})}function j({...t}){return o.jsxRuntimeExports.jsx(a.Trigger,{"data-slot":"dialog-trigger",...t})}function d({...t}){return o.jsxRuntimeExports.jsx(a.Portal,{"data-slot":"dialog-portal",...t})}function c({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Overlay,{"data-slot":"dialog-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/48 backdrop-blur-sm overflow-y-auto max-h-screen",t),...e})}function D({className:t,children:e,showCloseButton:i=!0,fullscreen:s=!1,onInteractOutside:u,...g}){return o.jsxRuntimeExports.jsx(d,{"data-slot":"dialog-portal",children:o.jsxRuntimeExports.jsx(c,{children:o.jsxRuntimeExports.jsxs(a.Content,{"data-slot":"dialog-content",className:n.cn("bg-white 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 fixed left-[50%] z-50 w-full translate-x-[-50%] gap-16 rounded border p-24 shadow-200 duration-200",{"grid top-24 rounded max-w-[calc(100%-2rem)]":!s,"flex flex-col top-0 left-0 right-0 w-full min-h-full max-w-full translate-x-0":s},t),onInteractOutside:r=>{const{originalEvent:l}=r.detail;l.target instanceof Element&&l.target.closest(".group.toast")&&r.preventDefault(),u?.(r)},...g,children:[e,i&&o.jsxRuntimeExports.jsxs(a.Close,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring absolute top-8 right-8 rounded opacity-48 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-24",children:[o.jsxRuntimeExports.jsx(f.XIcon,{}),o.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})})})}function v({className:t,...e}){return o.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-header",className:n.cn("flex flex-col gap-8",t),...e})}function b({className:t,...e}){return o.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-footer",className:n.cn("flex flex-col-reverse gap-8 -mx-8 -mb-8 mt-8 sm:flex-row sm:justify-end",t),...e})}function y({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Title,{"data-slot":"dialog-title",className:n.cn("text-lg leading-none font-medium text-gray-800",t),...e})}function R({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Description,{"data-slot":"dialog-description",className:n.cn("text-gray-900 text-base",t),...e})}exports.Dialog=p;exports.DialogContent=D;exports.DialogDescription=R;exports.DialogFooter=b;exports.DialogHeader=v;exports.DialogOverlay=c;exports.DialogPortal=d;exports.DialogTitle=y;exports.DialogTrigger=j;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index37.cjs"),x=require("@radix-ui/react-dialog"),f=require("lucide-react"),i=require("./index39.cjs");function m(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const n=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,n.get?n:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const a=m(x);function p({...t}){return o.jsxRuntimeExports.jsx(a.Root,{"data-slot":"dialog",...t})}function j({...t}){return o.jsxRuntimeExports.jsx(a.Trigger,{"data-slot":"dialog-trigger",...t})}function d({...t}){return o.jsxRuntimeExports.jsx(a.Portal,{"data-slot":"dialog-portal",...t})}function c({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Overlay,{"data-slot":"dialog-overlay",className:i.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/48 backdrop-blur-sm overflow-y-auto max-h-screen",t),...e})}function D({className:t,children:e,showCloseButton:s=!0,fullscreen:n=!1,onInteractOutside:u,...g}){return o.jsxRuntimeExports.jsx(d,{"data-slot":"dialog-portal",children:o.jsxRuntimeExports.jsx(c,{children:o.jsxRuntimeExports.jsxs(a.Content,{"data-slot":"dialog-content",className:i.cn("bg-white 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 fixed left-[50%] z-50 w-full translate-x-[-50%] gap-16 rounded border p-24 shadow-200 duration-200",{"grid top-24 rounded max-w-[calc(100%-2rem)] sm:max-w-lg":!n,"flex flex-col top-0 left-0 right-0 w-full min-h-full max-w-full translate-x-0":n},t),onInteractOutside:r=>{const{originalEvent:l}=r.detail;l.target instanceof Element&&l.target.closest(".group.toast")&&r.preventDefault(),u?.(r)},...g,children:[e,s&&o.jsxRuntimeExports.jsxs(a.Close,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring absolute top-8 right-8 rounded opacity-48 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-24",children:[o.jsxRuntimeExports.jsx(f.XIcon,{}),o.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})})})}function v({className:t,...e}){return o.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-header",className:i.cn("flex flex-col gap-8",t),...e})}function b({className:t,...e}){return o.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-footer",className:i.cn("flex flex-col-reverse gap-8 -mx-8 -mb-8 mt-8 sm:flex-row sm:justify-end",t),...e})}function y({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Title,{"data-slot":"dialog-title",className:i.cn("text-lg leading-none font-medium text-gray-800",t),...e})}function R({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Description,{"data-slot":"dialog-description",className:i.cn("text-gray-900 text-base",t),...e})}exports.Dialog=p;exports.DialogContent=D;exports.DialogDescription=R;exports.DialogFooter=b;exports.DialogHeader=v;exports.DialogOverlay=c;exports.DialogPortal=d;exports.DialogTitle=y;exports.DialogTrigger=j;
2
2
  //# sourceMappingURL=index11.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index11.cjs","sources":["../src/Dialog/index.tsx"],"sourcesContent":["'use client'\n\nimport * as DialogPrimitive from '@radix-ui/react-dialog'\nimport { XIcon } from 'lucide-react'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction Dialog({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Root>) {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />\n}\n\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Trigger>) {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />\n}\n\nfunction DialogPortal({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Portal>) {\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />\n}\n\nfunction DialogClose({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Close>) {\n return <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />\n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {\n return (\n <DialogPrimitive.Overlay\n data-slot=\"dialog-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/48 backdrop-blur-sm overflow-y-auto max-h-screen',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n fullscreen = false,\n onInteractOutside,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Content> & {\n showCloseButton?: boolean\n fullscreen?: boolean\n}) {\n return (\n <DialogPortal data-slot=\"dialog-portal\">\n <DialogOverlay>\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn(\n 'bg-white 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 fixed left-[50%] z-50 w-full translate-x-[-50%] gap-16 rounded border p-24 shadow-200 duration-200',\n {\n 'grid top-24 rounded max-w-[calc(100%-2rem)]': !fullscreen,\n 'flex flex-col top-0 left-0 right-0 w-full min-h-full max-w-full translate-x-0':\n fullscreen\n },\n className\n )}\n onInteractOutside={e => {\n const { originalEvent } = e.detail\n // Prevent closing the dialog when clicking on a sonner toast\n if (\n originalEvent.target instanceof Element &&\n originalEvent.target.closest('.group.toast')\n ) {\n e.preventDefault()\n }\n onInteractOutside?.(e)\n }}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close\n data-slot=\"dialog-close\"\n className=\"ring-offset-background focus:ring-ring absolute top-8 right-8 rounded opacity-48 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-24\"\n >\n <XIcon />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </DialogOverlay>\n </DialogPortal>\n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"dialog-header\"\n className={cn('flex flex-col gap-8', className)}\n {...props}\n />\n )\n}\n\nfunction DialogFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"dialog-footer\"\n className={cn(\n 'flex flex-col-reverse gap-8 -mx-8 -mb-8 mt-8 sm:flex-row sm:justify-end',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Title>) {\n return (\n <DialogPrimitive.Title\n data-slot=\"dialog-title\"\n className={cn(\n 'text-lg leading-none font-medium text-gray-800',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Description>) {\n return (\n <DialogPrimitive.Description\n data-slot=\"dialog-description\"\n className={cn('text-gray-900 text-base', className)}\n {...props}\n />\n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger\n}\n"],"names":["Dialog","props","DialogPrimitive","DialogTrigger","DialogPortal","DialogOverlay","className","jsx","cn","DialogContent","children","showCloseButton","fullscreen","onInteractOutside","jsxs","e","originalEvent","XIcon","DialogHeader","DialogFooter","DialogTitle","DialogDescription"],"mappings":"oeAOA,SAASA,EAAO,CACd,GAAGC,CACL,EAAsD,CACpD,+BAAQC,EAAgB,KAAhB,CAAqB,YAAU,SAAU,GAAGD,EAAO,CAC7D,CAEA,SAASE,EAAc,CACrB,GAAGF,CACL,EAAyD,CACvD,+BAAQC,EAAgB,QAAhB,CAAwB,YAAU,iBAAkB,GAAGD,EAAO,CACxE,CAEA,SAASG,EAAa,CACpB,GAAGH,CACL,EAAwD,CACtD,+BAAQC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CAAE,UAAAb,EAAW,GAAGL,GAAsC,CAC1E,OACEM,EAAAA,kBAAAA,IAAC,MAAA,CACC,YAAU,gBACV,UAAWC,EAAAA,GACT,0EACAF,CAAA,EAED,GAAGL,CAAA,CAAA,CAGV,CAEA,SAASmB,EAAY,CACnB,UAAAd,EACA,GAAGL,CACL,EAAuD,CACrD,OACEM,EAAAA,kBAAAA,IAACL,EAAgB,MAAhB,CACC,YAAU,eACV,UAAWM,EAAAA,GACT,iDACAF,CAAA,EAED,GAAGL,CAAA,CAAA,CAGV,CAEA,SAASoB,EAAkB,CACzB,UAAAf,EACA,GAAGL,CACL,EAA6D,CAC3D,OACEM,EAAAA,kBAAAA,IAACL,EAAgB,YAAhB,CACC,YAAU,qBACV,UAAWM,EAAAA,GAAG,0BAA2BF,CAAS,EACjD,GAAGL,CAAA,CAAA,CAGV"}
1
+ {"version":3,"file":"index11.cjs","sources":["../src/Dialog/index.tsx"],"sourcesContent":["'use client'\n\nimport * as DialogPrimitive from '@radix-ui/react-dialog'\nimport { XIcon } from 'lucide-react'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction Dialog({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Root>) {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />\n}\n\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Trigger>) {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />\n}\n\nfunction DialogPortal({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Portal>) {\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />\n}\n\nfunction DialogClose({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Close>) {\n return <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />\n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {\n return (\n <DialogPrimitive.Overlay\n data-slot=\"dialog-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/48 backdrop-blur-sm overflow-y-auto max-h-screen',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n fullscreen = false,\n onInteractOutside,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Content> & {\n showCloseButton?: boolean\n fullscreen?: boolean\n}) {\n return (\n <DialogPortal data-slot=\"dialog-portal\">\n <DialogOverlay>\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn(\n 'bg-white 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 fixed left-[50%] z-50 w-full translate-x-[-50%] gap-16 rounded border p-24 shadow-200 duration-200',\n {\n 'grid top-24 rounded max-w-[calc(100%-2rem)] sm:max-w-lg':\n !fullscreen,\n 'flex flex-col top-0 left-0 right-0 w-full min-h-full max-w-full translate-x-0':\n fullscreen\n },\n className\n )}\n onInteractOutside={e => {\n const { originalEvent } = e.detail\n // Prevent closing the dialog when clicking on a sonner toast\n if (\n originalEvent.target instanceof Element &&\n originalEvent.target.closest('.group.toast')\n ) {\n e.preventDefault()\n }\n onInteractOutside?.(e)\n }}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close\n data-slot=\"dialog-close\"\n className=\"ring-offset-background focus:ring-ring absolute top-8 right-8 rounded opacity-48 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-24\"\n >\n <XIcon />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </DialogOverlay>\n </DialogPortal>\n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"dialog-header\"\n className={cn('flex flex-col gap-8', className)}\n {...props}\n />\n )\n}\n\nfunction DialogFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return (\n <div\n data-slot=\"dialog-footer\"\n className={cn(\n 'flex flex-col-reverse gap-8 -mx-8 -mb-8 mt-8 sm:flex-row sm:justify-end',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Title>) {\n return (\n <DialogPrimitive.Title\n data-slot=\"dialog-title\"\n className={cn(\n 'text-lg leading-none font-medium text-gray-800',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Description>) {\n return (\n <DialogPrimitive.Description\n data-slot=\"dialog-description\"\n className={cn('text-gray-900 text-base', className)}\n {...props}\n />\n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger\n}\n"],"names":["Dialog","props","DialogPrimitive","DialogTrigger","DialogPortal","DialogOverlay","className","jsx","cn","DialogContent","children","showCloseButton","fullscreen","onInteractOutside","jsxs","e","originalEvent","XIcon","DialogHeader","DialogFooter","DialogTitle","DialogDescription"],"mappings":"oeAOA,SAASA,EAAO,CACd,GAAGC,CACL,EAAsD,CACpD,+BAAQC,EAAgB,KAAhB,CAAqB,YAAU,SAAU,GAAGD,EAAO,CAC7D,CAEA,SAASE,EAAc,CACrB,GAAGF,CACL,EAAyD,CACvD,+BAAQC,EAAgB,QAAhB,CAAwB,YAAU,iBAAkB,GAAGD,EAAO,CACxE,CAEA,SAASG,EAAa,CACpB,GAAGH,CACL,EAAwD,CACtD,+BAAQC,EAAgB,OAAhB,CAAuB,YAAU,gBAAiB,GAAGD,EAAO,CACtE,CAQA,SAASI,EAAc,CACrB,UAAAC,EACA,GAAGL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