@clasing/ui 2.6.0 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/badge-DK9gdPpu.cjs +91 -0
- package/dist/badge-aFyTFGVU.js +173 -0
- package/dist/button-2VesFn_C.js +256 -0
- package/dist/button-DWBp81pk.cjs +70 -0
- package/dist/card-DkYKwjsA.cjs +12 -0
- package/dist/{card-Cv2M4wv8.js → card-aAzRmGVH.js} +19 -5
- package/dist/chip-BlWb6w16.cjs +17 -0
- package/dist/chip-BmqvnZuy.js +116 -0
- package/dist/{clasing-icon-Bym32_-4.cjs → clasing-icon-CHt2Otn8.cjs} +1 -1
- package/dist/{clasing-icon-BIYMLc8o.js → clasing-icon-CJQQN554.js} +1 -1
- package/dist/command-DNjJookC.cjs +35 -0
- package/dist/command-peXi2dFX.js +209 -0
- package/dist/components/accordion.cjs.js +20 -1
- package/dist/components/accordion.es.js +38 -16
- package/dist/components/alert-dialog.cjs.js +17 -1
- package/dist/components/alert-dialog.es.js +23 -7
- package/dist/components/alert.cjs.js +6 -1
- package/dist/components/alert.d.ts +1 -2
- package/dist/components/alert.es.js +54 -50
- package/dist/components/avatar.cjs.js +1 -1
- package/dist/components/avatar.es.js +1 -1
- package/dist/components/badge.cjs.js +1 -1
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/badge.es.js +1 -1
- package/dist/components/blocks/interactive-card.cjs.js +5 -1
- package/dist/components/blocks/interactive-card.es.js +60 -56
- package/dist/components/blocks/selectable-chips.cjs.js +1 -1
- package/dist/components/blocks/selectable-chips.d.ts +6 -6
- package/dist/components/blocks/selectable-chips.es.js +88 -55
- package/dist/components/breadcrumb.cjs.js +1 -1
- package/dist/components/breadcrumb.es.js +1 -1
- package/dist/components/button-group.cjs.js +1 -1
- package/dist/components/button-group.es.js +3 -3
- package/dist/components/button.cjs.js +1 -1
- package/dist/components/button.d.ts +8 -17
- package/dist/components/button.es.js +2 -4
- package/dist/components/calendar.cjs.js +73 -1
- package/dist/components/calendar.es.js +120 -42
- package/dist/components/card.cjs.js +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/chart.cjs.js +27 -2
- package/dist/components/chart.es.js +38 -7
- package/dist/components/checkbox.cjs.js +15 -1
- package/dist/components/checkbox.es.js +28 -14
- package/dist/components/chip.cjs.js +1 -1
- package/dist/components/chip.d.ts +3 -3
- package/dist/components/chip.es.js +1 -1
- package/dist/components/clasing-icon.cjs.js +1 -1
- package/dist/components/clasing-icon.es.js +1 -1
- package/dist/components/collapsible.cjs.js +10 -1
- package/dist/components/collapsible.es.js +17 -8
- package/dist/components/command.cjs.js +1 -1
- package/dist/components/command.es.js +1 -1
- package/dist/components/context-menu.cjs.js +70 -1
- package/dist/components/context-menu.es.js +95 -14
- package/dist/components/dialog.cjs.js +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/divider.cjs.js +1 -1
- package/dist/components/divider.es.js +1 -1
- package/dist/components/drawer.cjs.js +42 -1
- package/dist/components/drawer.es.js +63 -17
- package/dist/components/dropdown-menu.cjs.js +70 -1
- package/dist/components/dropdown-menu.es.js +133 -52
- package/dist/components/form.cjs.js +1 -1
- package/dist/components/form.es.js +21 -21
- package/dist/components/hover-card.cjs.js +13 -1
- package/dist/components/hover-card.es.js +14 -2
- package/dist/components/input-otp.cjs.js +19 -1
- package/dist/components/input-otp.es.js +49 -25
- package/dist/components/input.cjs.js +1 -1
- package/dist/components/input.es.js +1 -1
- package/dist/components/kbd.cjs.js +9 -1
- package/dist/components/kbd.es.js +11 -3
- package/dist/components/label.cjs.js +1 -1
- package/dist/components/label.es.js +1 -1
- package/dist/components/menubar.cjs.js +74 -1
- package/dist/components/menubar.es.js +121 -36
- package/dist/components/multi-select.cjs.js +22 -1
- package/dist/components/multi-select.es.js +54 -27
- package/dist/components/navigation-menu.cjs.js +70 -1
- package/dist/components/navigation-menu.es.js +85 -11
- package/dist/components/phone-input.cjs.js +21 -1
- package/dist/components/phone-input.es.js +267 -174
- package/dist/components/popover.cjs.js +1 -1
- package/dist/components/popover.es.js +1 -1
- package/dist/components/progress.cjs.js +1 -1
- package/dist/components/progress.es.js +3 -3
- package/dist/components/resizable.cjs.js +22 -1
- package/dist/components/resizable.d.ts +1 -1
- package/dist/components/resizable.es.js +52 -17
- package/dist/components/scroll-area.cjs.js +1 -1
- package/dist/components/scroll-area.es.js +1 -1
- package/dist/components/select.cjs.js +56 -1
- package/dist/components/select.d.ts +2 -1
- package/dist/components/select.es.js +86 -27
- package/dist/components/sheet.cjs.js +36 -1
- package/dist/components/sheet.es.js +75 -34
- package/dist/components/skeleton.cjs.js +1 -1
- package/dist/components/skeleton.es.js +1 -1
- package/dist/components/slider.cjs.js +23 -1
- package/dist/components/slider.es.js +46 -24
- package/dist/components/sonner.cjs.js +15 -1
- package/dist/components/sonner.es.js +67 -41
- package/dist/components/switch.cjs.js +19 -1
- package/dist/components/switch.es.js +29 -11
- package/dist/components/table.cjs.js +20 -1
- package/dist/components/table.es.js +56 -34
- package/dist/components/textarea.cjs.js +22 -1
- package/dist/components/textarea.es.js +46 -25
- package/dist/components/toggle-group.cjs.js +12 -1
- package/dist/components/toggle-group.es.js +15 -4
- package/dist/components/toggle.cjs.js +1 -1
- package/dist/components/toggle.es.js +1 -1
- package/dist/components/tooltip.cjs.js +1 -1
- package/dist/components/tooltip.es.js +1 -1
- package/dist/dialog-BUaX7IId.cjs +28 -0
- package/dist/{dialog-CH4VxKX4.js → dialog-CdmsVmRe.js} +41 -14
- package/dist/divider-D4EfIlt3.cjs +1 -0
- package/dist/{divider-BMxVoyPg.js → divider-DumyhJI_.js} +6 -6
- package/dist/entries/button.d.ts +2 -2
- package/dist/index-Bfismeyo.cjs +6 -0
- package/dist/{index-ECyCsPX0.cjs → index-BmhzhLcV.cjs} +1 -1
- package/dist/{index-DEha_UuN.js → index-CnqageB2.js} +1 -1
- package/dist/{index-BCEGphus.js → index-CwFDnnd3.js} +678 -519
- package/dist/input-kOA9xJIa.js +122 -0
- package/dist/input-u-OTHOPe.cjs +28 -0
- package/dist/label-BteX4MEt.js +27 -0
- package/dist/label-O3mSiGyx.cjs +7 -0
- package/dist/popover-A1-x5q-F.cjs +13 -0
- package/dist/{popover-BzUZg2od.js → popover-eQq2Is-I.js} +14 -2
- package/dist/{scroll-area-CxpVQq0v.js → scroll-area-CJy_EOqT.js} +10 -5
- package/dist/scroll-area-DFyIQG6Z.cjs +6 -0
- package/dist/toggle-BdWGPLza.cjs +21 -0
- package/dist/toggle-DuhnqdDT.js +63 -0
- package/dist/tooltip-BYeLeBei.js +74 -0
- package/dist/tooltip-BZWEHWmU.cjs +14 -0
- package/dist/ui.css +210 -210
- package/package.json +32 -28
- package/dist/badge-C29hQNIG.js +0 -84
- package/dist/badge-Da_xHgvC.cjs +0 -1
- package/dist/button-BIGg5o8m.js +0 -213
- package/dist/button-BsQuxg6u.cjs +0 -1
- package/dist/card-COFAc2zN.cjs +0 -1
- package/dist/chip-C_Uh7fe6.cjs +0 -1
- package/dist/chip-ZryYiiU1.js +0 -89
- package/dist/command-CGrOI2Z9.js +0 -169
- package/dist/command-CrtCQpi_.cjs +0 -1
- package/dist/dialog-DHZARK1o.cjs +0 -1
- package/dist/divider-BcIwJzm7.cjs +0 -1
- package/dist/index-9HRzXEQf.cjs +0 -6
- package/dist/input-BdGPpUZ8.js +0 -82
- package/dist/input-DDgYyRSP.cjs +0 -1
- package/dist/label-Bl6V6esj.js +0 -21
- package/dist/label-D3iN3bzS.cjs +0 -1
- package/dist/popover-Cj78cvz1.cjs +0 -1
- package/dist/scroll-area-D74XszlE.cjs +0 -1
- package/dist/toggle-99EXLQgX.js +0 -43
- package/dist/toggle-CtoQhQby.cjs +0 -1
- package/dist/tooltip-CHBabriJ.js +0 -56
- package/dist/tooltip-Dd6ylN0m.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../scroll-area-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../scroll-area-DFyIQG6Z.cjs");exports.ScrollArea=r.ScrollArea;exports.ScrollBar=r.ScrollBar;
|
|
@@ -1 +1,56 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-Bfismeyo.cjs"),d=require("@radix-ui/react-select"),o=require("@phosphor-icons/react");function u(t){const s=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(s,a,n.get?n:{enumerable:!0,get:()=>t[a]})}}return s.default=t,Object.freeze(s)}const r=u(d);function p({...t}){return e.jsxRuntimeExports.jsx(r.Root,{"data-slot":"select",...t})}function x({...t}){return e.jsxRuntimeExports.jsx(r.Group,{"data-slot":"select-group",...t})}function m({...t}){return e.jsxRuntimeExports.jsx(r.Value,{"data-slot":"select-value",...t})}function g({className:t,size:s="md",children:a,variant:n="default",...l}){return e.jsxRuntimeExports.jsxs(r.Trigger,{"data-slot":"select-trigger","data-size":s,"data-variant":n,className:e.cn(`
|
|
2
|
+
flex w-fit items-center justify-between gap-2 rounded-md border
|
|
3
|
+
border-input bg-transparent whitespace-nowrap text-foreground
|
|
4
|
+
transition-[color,box-shadow] outline-none
|
|
5
|
+
focus-visible:border-ring focus-visible:ring-[3px]
|
|
6
|
+
focus-visible:ring-ring
|
|
7
|
+
disabled:cursor-not-allowed disabled:opacity-50
|
|
8
|
+
aria-invalid:border-destructive-foreground
|
|
9
|
+
aria-invalid:ring-destructive-foreground/20
|
|
10
|
+
data-placeholder:text-muted-foreground
|
|
11
|
+
*:data-[slot=select-value]:line-clamp-1
|
|
12
|
+
*:data-[slot=select-value]:flex
|
|
13
|
+
*:data-[slot=select-value]:items-center
|
|
14
|
+
*:data-[slot=select-value]:gap-2
|
|
15
|
+
dark:bg-input/30
|
|
16
|
+
dark:hover:bg-input/50
|
|
17
|
+
dark:aria-invalid:ring-destructive-foreground/40
|
|
18
|
+
[&_svg]:pointer-events-none [&_svg]:shrink-0
|
|
19
|
+
[&_svg:not([class*='size-'])]:size-4
|
|
20
|
+
`,n==="filter"&&`
|
|
21
|
+
not-data-placeholder:border-ring not-data-placeholder:text-ring
|
|
22
|
+
dark:not-data-placeholder:text-blue-300
|
|
23
|
+
`,s==="xs"&&`
|
|
24
|
+
h-7 px-2 py-1 label-sm
|
|
25
|
+
[&_svg:not([class*="size-"])]:size-3.5
|
|
26
|
+
`,s==="sm"&&"h-8 px-2 py-1 label-md",s==="md"&&"h-12 px-3 py-1 label-lg",s==="lg"&&"h-16 px-4 py-2 label-xl",t),...l,children:[a,e.jsxRuntimeExports.jsx(r.Icon,{asChild:!0,children:e.jsxRuntimeExports.jsx(o.CaretDownIcon,{className:"size-4 opacity-50"})})]})}function f({className:t,children:s,position:a="popper",collisionPadding:n=24,...l}){return e.jsxRuntimeExports.jsx(r.Portal,{children:e.jsxRuntimeExports.jsxs(r.Content,{"data-slot":"select-content",className:e.cn(`
|
|
27
|
+
relative z-50 max-h-(--radix-select-content-available-height)
|
|
28
|
+
min-w-32 origin-(--radix-select-content-transform-origin)
|
|
29
|
+
overflow-x-hidden overflow-y-auto rounded-md border bg-popover
|
|
30
|
+
text-popover-foreground shadow-md
|
|
31
|
+
data-[side=bottom]:slide-in-from-top-2
|
|
32
|
+
data-[side=left]:slide-in-from-right-2
|
|
33
|
+
data-[side=right]:slide-in-from-left-2
|
|
34
|
+
data-[side=top]:slide-in-from-bottom-2
|
|
35
|
+
data-[state=closed]:animate-out data-[state=closed]:fade-out-0
|
|
36
|
+
data-[state=closed]:zoom-out-95
|
|
37
|
+
data-[state=open]:animate-in data-[state=open]:fade-in-0
|
|
38
|
+
data-[state=open]:zoom-in-95
|
|
39
|
+
`,a==="popper"&&`
|
|
40
|
+
data-[side=bottom]:translate-y-1
|
|
41
|
+
data-[side=left]:-translate-x-1
|
|
42
|
+
data-[side=right]:translate-x-1
|
|
43
|
+
data-[side=top]:-translate-y-1
|
|
44
|
+
`,t),collisionPadding:n,position:a,...l,children:[e.jsxRuntimeExports.jsx(i,{}),e.jsxRuntimeExports.jsx(r.Viewport,{className:e.cn("p-1",a==="popper"&&`
|
|
45
|
+
h-(--radix-select-trigger-height) w-full
|
|
46
|
+
min-w-(--radix-select-trigger-width) scroll-my-1
|
|
47
|
+
`),children:s}),e.jsxRuntimeExports.jsx(c,{})]})})}function j({className:t,...s}){return e.jsxRuntimeExports.jsx(r.Label,{"data-slot":"select-label",className:e.cn("px-2 py-1.5 paragraph-xs text-muted-foreground",t),...s})}function b({className:t,children:s,...a}){return e.jsxRuntimeExports.jsxs(r.Item,{"data-slot":"select-item",className:e.cn(`
|
|
48
|
+
relative flex w-full cursor-default items-center gap-2 rounded-sm
|
|
49
|
+
py-1.5 pr-8 pl-2 paragraph-sm outline-hidden select-none
|
|
50
|
+
focus:bg-accent focus:text-accent-foreground
|
|
51
|
+
data-disabled:pointer-events-none data-disabled:opacity-50
|
|
52
|
+
[&_svg]:pointer-events-none [&_svg]:shrink-0
|
|
53
|
+
[&_svg:not([class*='size-'])]:size-4
|
|
54
|
+
[&_svg:not([class*='text-'])]:text-muted-foreground
|
|
55
|
+
*:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2
|
|
56
|
+
`,t),...a,children:[e.jsxRuntimeExports.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(r.ItemIndicator,{children:e.jsxRuntimeExports.jsx(o.CheckIcon,{className:"size-4"})})}),e.jsxRuntimeExports.jsx(r.ItemText,{children:s})]})}function h({className:t,...s}){return e.jsxRuntimeExports.jsx(r.Separator,{"data-slot":"select-separator",className:e.cn("pointer-events-none -mx-1 my-1 h-px bg-border",t),...s})}function i({className:t,...s}){return e.jsxRuntimeExports.jsx(r.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:e.cn("flex cursor-default items-center justify-center py-1",t),...s,children:e.jsxRuntimeExports.jsx(o.CaretUpIcon,{className:"size-4"})})}function c({className:t,...s}){return e.jsxRuntimeExports.jsx(r.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:e.cn("flex cursor-default items-center justify-center py-1",t),...s,children:e.jsxRuntimeExports.jsx(o.CaretDownIcon,{className:"size-4"})})}exports.Select=p;exports.SelectContent=f;exports.SelectGroup=x;exports.SelectItem=b;exports.SelectLabel=j;exports.SelectScrollDownButton=c;exports.SelectScrollUpButton=i;exports.SelectSeparator=h;exports.SelectTrigger=g;exports.SelectValue=m;
|
|
@@ -3,8 +3,9 @@ import * as React from 'react';
|
|
|
3
3
|
declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
6
|
+
declare function SelectTrigger({ className, size, children, variant, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
7
7
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
8
|
+
variant?: 'default' | 'filter';
|
|
8
9
|
}): import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
declare function SelectContent({ className, children, position, collisionPadding, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { j as e, c as r } from "../index-
|
|
1
|
+
import { j as e, c as r } from "../index-CwFDnnd3.js";
|
|
2
2
|
import * as s from "@radix-ui/react-select";
|
|
3
|
-
import { CheckIcon as d, CaretDownIcon as
|
|
4
|
-
function
|
|
3
|
+
import { CheckIcon as d, CaretDownIcon as i, CaretUpIcon as c } from "@phosphor-icons/react";
|
|
4
|
+
function f({
|
|
5
5
|
...t
|
|
6
6
|
}) {
|
|
7
7
|
return /* @__PURE__ */ e.jsx(s.Root, { "data-slot": "select", ...t });
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function g({
|
|
10
10
|
...t
|
|
11
11
|
}) {
|
|
12
12
|
return /* @__PURE__ */ e.jsx(s.Group, { "data-slot": "select-group", ...t });
|
|
@@ -16,52 +16,99 @@ function h({
|
|
|
16
16
|
}) {
|
|
17
17
|
return /* @__PURE__ */ e.jsx(s.Value, { "data-slot": "select-value", ...t });
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function b({
|
|
20
20
|
className: t,
|
|
21
21
|
size: a = "md",
|
|
22
22
|
children: o,
|
|
23
|
-
|
|
23
|
+
variant: l = "default",
|
|
24
|
+
...n
|
|
24
25
|
}) {
|
|
25
26
|
return /* @__PURE__ */ e.jsxs(
|
|
26
27
|
s.Trigger,
|
|
27
28
|
{
|
|
28
29
|
"data-slot": "select-trigger",
|
|
29
30
|
"data-size": a,
|
|
31
|
+
"data-variant": l,
|
|
30
32
|
className: r(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
`
|
|
34
|
+
flex w-fit items-center justify-between gap-2 rounded-md border
|
|
35
|
+
border-input bg-transparent whitespace-nowrap text-foreground
|
|
36
|
+
transition-[color,box-shadow] outline-none
|
|
37
|
+
focus-visible:border-ring focus-visible:ring-[3px]
|
|
38
|
+
focus-visible:ring-ring
|
|
39
|
+
disabled:cursor-not-allowed disabled:opacity-50
|
|
40
|
+
aria-invalid:border-destructive-foreground
|
|
41
|
+
aria-invalid:ring-destructive-foreground/20
|
|
42
|
+
data-placeholder:text-muted-foreground
|
|
43
|
+
*:data-[slot=select-value]:line-clamp-1
|
|
44
|
+
*:data-[slot=select-value]:flex
|
|
45
|
+
*:data-[slot=select-value]:items-center
|
|
46
|
+
*:data-[slot=select-value]:gap-2
|
|
47
|
+
dark:bg-input/30
|
|
48
|
+
dark:hover:bg-input/50
|
|
49
|
+
dark:aria-invalid:ring-destructive-foreground/40
|
|
50
|
+
[&_svg]:pointer-events-none [&_svg]:shrink-0
|
|
51
|
+
[&_svg:not([class*='size-'])]:size-4
|
|
52
|
+
`,
|
|
53
|
+
// Variante de filtro: cuando hay valor seleccionado, texto y borde en color ring
|
|
54
|
+
l === "filter" && `
|
|
55
|
+
not-data-placeholder:border-ring not-data-placeholder:text-ring
|
|
56
|
+
dark:not-data-placeholder:text-blue-300
|
|
57
|
+
`,
|
|
58
|
+
a === "xs" && `
|
|
59
|
+
h-7 px-2 py-1 label-sm
|
|
60
|
+
[&_svg:not([class*="size-"])]:size-3.5
|
|
61
|
+
`,
|
|
62
|
+
a === "sm" && "h-8 px-2 py-1 label-md",
|
|
63
|
+
a === "md" && "h-12 px-3 py-1 label-lg",
|
|
64
|
+
a === "lg" && "h-16 px-4 py-2 label-xl",
|
|
36
65
|
t
|
|
37
66
|
),
|
|
38
|
-
...
|
|
67
|
+
...n,
|
|
39
68
|
children: [
|
|
40
69
|
o,
|
|
41
|
-
/* @__PURE__ */ e.jsx(s.Icon, { asChild: !0, children: /* @__PURE__ */ e.jsx(
|
|
70
|
+
/* @__PURE__ */ e.jsx(s.Icon, { asChild: !0, children: /* @__PURE__ */ e.jsx(i, { className: "size-4 opacity-50" }) })
|
|
42
71
|
]
|
|
43
72
|
}
|
|
44
73
|
);
|
|
45
74
|
}
|
|
46
|
-
function
|
|
75
|
+
function v({
|
|
47
76
|
className: t,
|
|
48
77
|
children: a,
|
|
49
78
|
position: o = "popper",
|
|
50
79
|
collisionPadding: l = 24,
|
|
51
|
-
...
|
|
80
|
+
...n
|
|
52
81
|
}) {
|
|
53
82
|
return /* @__PURE__ */ e.jsx(s.Portal, { children: /* @__PURE__ */ e.jsxs(
|
|
54
83
|
s.Content,
|
|
55
84
|
{
|
|
56
85
|
"data-slot": "select-content",
|
|
57
86
|
className: r(
|
|
58
|
-
|
|
59
|
-
|
|
87
|
+
`
|
|
88
|
+
relative z-50 max-h-(--radix-select-content-available-height)
|
|
89
|
+
min-w-32 origin-(--radix-select-content-transform-origin)
|
|
90
|
+
overflow-x-hidden overflow-y-auto rounded-md border bg-popover
|
|
91
|
+
text-popover-foreground shadow-md
|
|
92
|
+
data-[side=bottom]:slide-in-from-top-2
|
|
93
|
+
data-[side=left]:slide-in-from-right-2
|
|
94
|
+
data-[side=right]:slide-in-from-left-2
|
|
95
|
+
data-[side=top]:slide-in-from-bottom-2
|
|
96
|
+
data-[state=closed]:animate-out data-[state=closed]:fade-out-0
|
|
97
|
+
data-[state=closed]:zoom-out-95
|
|
98
|
+
data-[state=open]:animate-in data-[state=open]:fade-in-0
|
|
99
|
+
data-[state=open]:zoom-in-95
|
|
100
|
+
`,
|
|
101
|
+
o === "popper" && `
|
|
102
|
+
data-[side=bottom]:translate-y-1
|
|
103
|
+
data-[side=left]:-translate-x-1
|
|
104
|
+
data-[side=right]:translate-x-1
|
|
105
|
+
data-[side=top]:-translate-y-1
|
|
106
|
+
`,
|
|
60
107
|
t
|
|
61
108
|
),
|
|
62
109
|
collisionPadding: l,
|
|
63
110
|
position: o,
|
|
64
|
-
...
|
|
111
|
+
...n,
|
|
65
112
|
children: [
|
|
66
113
|
/* @__PURE__ */ e.jsx(u, {}),
|
|
67
114
|
/* @__PURE__ */ e.jsx(
|
|
@@ -69,7 +116,10 @@ function b({
|
|
|
69
116
|
{
|
|
70
117
|
className: r(
|
|
71
118
|
"p-1",
|
|
72
|
-
o === "popper" &&
|
|
119
|
+
o === "popper" && `
|
|
120
|
+
h-(--radix-select-trigger-height) w-full
|
|
121
|
+
min-w-(--radix-select-trigger-width) scroll-my-1
|
|
122
|
+
`
|
|
73
123
|
),
|
|
74
124
|
children: a
|
|
75
125
|
}
|
|
@@ -88,7 +138,7 @@ function j({
|
|
|
88
138
|
{
|
|
89
139
|
"data-slot": "select-label",
|
|
90
140
|
className: r(
|
|
91
|
-
"
|
|
141
|
+
"px-2 py-1.5 paragraph-xs text-muted-foreground",
|
|
92
142
|
t
|
|
93
143
|
),
|
|
94
144
|
...a
|
|
@@ -105,7 +155,16 @@ function y({
|
|
|
105
155
|
{
|
|
106
156
|
"data-slot": "select-item",
|
|
107
157
|
className: r(
|
|
108
|
-
|
|
158
|
+
`
|
|
159
|
+
relative flex w-full cursor-default items-center gap-2 rounded-sm
|
|
160
|
+
py-1.5 pr-8 pl-2 paragraph-sm outline-hidden select-none
|
|
161
|
+
focus:bg-accent focus:text-accent-foreground
|
|
162
|
+
data-disabled:pointer-events-none data-disabled:opacity-50
|
|
163
|
+
[&_svg]:pointer-events-none [&_svg]:shrink-0
|
|
164
|
+
[&_svg:not([class*='size-'])]:size-4
|
|
165
|
+
[&_svg:not([class*='text-'])]:text-muted-foreground
|
|
166
|
+
*:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2
|
|
167
|
+
`,
|
|
109
168
|
t
|
|
110
169
|
),
|
|
111
170
|
...o,
|
|
@@ -124,7 +183,7 @@ function w({
|
|
|
124
183
|
s.Separator,
|
|
125
184
|
{
|
|
126
185
|
"data-slot": "select-separator",
|
|
127
|
-
className: r("
|
|
186
|
+
className: r("pointer-events-none -mx-1 my-1 h-px bg-border", t),
|
|
128
187
|
...a
|
|
129
188
|
}
|
|
130
189
|
);
|
|
@@ -159,19 +218,19 @@ function p({
|
|
|
159
218
|
t
|
|
160
219
|
),
|
|
161
220
|
...a,
|
|
162
|
-
children: /* @__PURE__ */ e.jsx(
|
|
221
|
+
children: /* @__PURE__ */ e.jsx(i, { className: "size-4" })
|
|
163
222
|
}
|
|
164
223
|
);
|
|
165
224
|
}
|
|
166
225
|
export {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
226
|
+
f as Select,
|
|
227
|
+
v as SelectContent,
|
|
228
|
+
g as SelectGroup,
|
|
170
229
|
y as SelectItem,
|
|
171
230
|
j as SelectLabel,
|
|
172
231
|
p as SelectScrollDownButton,
|
|
173
232
|
u as SelectScrollUpButton,
|
|
174
233
|
w as SelectSeparator,
|
|
175
|
-
|
|
234
|
+
b as SelectTrigger,
|
|
176
235
|
h as SelectValue
|
|
177
236
|
};
|
|
@@ -1 +1,36 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-Bfismeyo.cjs"),r=require("@radix-ui/react-dialog"),i=require("@phosphor-icons/react");function l(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const a=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(o,s,a.get?a:{enumerable:!0,get:()=>t[s]})}}return o.default=t,Object.freeze(o)}const n=l(r);function d({...t}){return e.jsxRuntimeExports.jsx(n.Root,{"data-slot":"sheet",...t})}function u({...t}){return e.jsxRuntimeExports.jsx(n.Trigger,{"data-slot":"sheet-trigger",...t})}function c({...t}){return e.jsxRuntimeExports.jsx(n.Close,{"data-slot":"sheet-close",...t})}function x({...t}){return e.jsxRuntimeExports.jsx(n.Portal,{"data-slot":"sheet-portal",...t})}function f({className:t,...o}){return e.jsxRuntimeExports.jsx(n.Overlay,{"data-slot":"sheet-overlay",className:e.cn(`
|
|
2
|
+
fixed inset-0 z-50 bg-black/50
|
|
3
|
+
data-[state=closed]:animate-out data-[state=closed]:fade-out-0
|
|
4
|
+
data-[state=open]:animate-in data-[state=open]:fade-in-0
|
|
5
|
+
`,t),...o})}function m({className:t,children:o,side:s="right",...a}){return e.jsxRuntimeExports.jsxs(x,{children:[e.jsxRuntimeExports.jsx(f,{}),e.jsxRuntimeExports.jsxs(n.Content,{"data-slot":"sheet-content",className:e.cn(`
|
|
6
|
+
fixed z-50 flex flex-col gap-4 bg-background text-foreground
|
|
7
|
+
shadow-lg transition ease-in-out
|
|
8
|
+
data-[state=closed]:animate-out data-[state=closed]:duration-300
|
|
9
|
+
data-[state=open]:animate-in data-[state=open]:duration-500
|
|
10
|
+
`,s==="right"&&`
|
|
11
|
+
inset-y-0 right-0 h-full w-3/4 border-l
|
|
12
|
+
data-[state=closed]:slide-out-to-right
|
|
13
|
+
data-[state=open]:slide-in-from-right
|
|
14
|
+
sm:max-w-sm
|
|
15
|
+
`,s==="left"&&`
|
|
16
|
+
inset-y-0 left-0 h-full w-3/4 border-r
|
|
17
|
+
data-[state=closed]:slide-out-to-left
|
|
18
|
+
data-[state=open]:slide-in-from-left
|
|
19
|
+
sm:max-w-sm
|
|
20
|
+
`,s==="top"&&`
|
|
21
|
+
inset-x-0 top-0 h-auto border-b
|
|
22
|
+
data-[state=closed]:slide-out-to-top
|
|
23
|
+
data-[state=open]:slide-in-from-top
|
|
24
|
+
`,s==="bottom"&&`
|
|
25
|
+
inset-x-0 bottom-0 h-auto border-t
|
|
26
|
+
data-[state=closed]:slide-out-to-bottom
|
|
27
|
+
data-[state=open]:slide-in-from-bottom
|
|
28
|
+
`,t),...a,children:[o,e.jsxRuntimeExports.jsxs(n.Close,{className:`\r
|
|
29
|
+
absolute top-4 right-4 rounded-xs text-foreground opacity-70\r
|
|
30
|
+
ring-offset-background transition-opacity\r
|
|
31
|
+
hover:opacity-100\r
|
|
32
|
+
focus:ring-2 focus:ring-ring focus:ring-offset-2\r
|
|
33
|
+
focus:outline-hidden\r
|
|
34
|
+
disabled:pointer-events-none\r
|
|
35
|
+
data-[state=open]:bg-secondary\r
|
|
36
|
+
`,children:[e.jsxRuntimeExports.jsx(i.XIcon,{className:"size-4"}),e.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function p({className:t,...o}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-header",className:e.cn("flex flex-col gap-1.5 p-4",t),...o})}function h({className:t,...o}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-footer",className:e.cn("mt-auto flex flex-col gap-2 p-4",t),...o})}function g({className:t,...o}){return e.jsxRuntimeExports.jsx(n.Title,{"data-slot":"sheet-title",className:e.cn("font-semibold text-foreground",t),...o})}function j({className:t,...o}){return e.jsxRuntimeExports.jsx(n.Description,{"data-slot":"sheet-description",className:e.cn("paragraph-sm text-muted-foreground",t),...o})}exports.Sheet=d;exports.SheetClose=c;exports.SheetContent=m;exports.SheetDescription=j;exports.SheetFooter=h;exports.SheetHeader=p;exports.SheetTitle=g;exports.SheetTrigger=u;
|
|
@@ -1,115 +1,156 @@
|
|
|
1
|
-
import { j as e, c as s } from "../index-
|
|
2
|
-
import * as
|
|
1
|
+
import { j as e, c as s } from "../index-CwFDnnd3.js";
|
|
2
|
+
import * as a from "@radix-ui/react-dialog";
|
|
3
3
|
import { XIcon as i } from "@phosphor-icons/react";
|
|
4
4
|
function f({ ...t }) {
|
|
5
|
-
return /* @__PURE__ */ e.jsx(
|
|
5
|
+
return /* @__PURE__ */ e.jsx(a.Root, { "data-slot": "sheet", ...t });
|
|
6
6
|
}
|
|
7
7
|
function h({
|
|
8
8
|
...t
|
|
9
9
|
}) {
|
|
10
|
-
return /* @__PURE__ */ e.jsx(
|
|
10
|
+
return /* @__PURE__ */ e.jsx(a.Trigger, { "data-slot": "sheet-trigger", ...t });
|
|
11
11
|
}
|
|
12
12
|
function m({
|
|
13
13
|
...t
|
|
14
14
|
}) {
|
|
15
|
-
return /* @__PURE__ */ e.jsx(
|
|
15
|
+
return /* @__PURE__ */ e.jsx(a.Close, { "data-slot": "sheet-close", ...t });
|
|
16
16
|
}
|
|
17
17
|
function l({
|
|
18
18
|
...t
|
|
19
19
|
}) {
|
|
20
|
-
return /* @__PURE__ */ e.jsx(
|
|
20
|
+
return /* @__PURE__ */ e.jsx(a.Portal, { "data-slot": "sheet-portal", ...t });
|
|
21
21
|
}
|
|
22
22
|
function d({
|
|
23
23
|
className: t,
|
|
24
|
-
...
|
|
24
|
+
...o
|
|
25
25
|
}) {
|
|
26
26
|
return /* @__PURE__ */ e.jsx(
|
|
27
|
-
|
|
27
|
+
a.Overlay,
|
|
28
28
|
{
|
|
29
29
|
"data-slot": "sheet-overlay",
|
|
30
30
|
className: s(
|
|
31
|
-
|
|
31
|
+
`
|
|
32
|
+
fixed inset-0 z-50 bg-black/50
|
|
33
|
+
data-[state=closed]:animate-out data-[state=closed]:fade-out-0
|
|
34
|
+
data-[state=open]:animate-in data-[state=open]:fade-in-0
|
|
35
|
+
`,
|
|
32
36
|
t
|
|
33
37
|
),
|
|
34
|
-
...
|
|
38
|
+
...o
|
|
35
39
|
}
|
|
36
40
|
);
|
|
37
41
|
}
|
|
38
42
|
function p({
|
|
39
43
|
className: t,
|
|
40
|
-
children:
|
|
44
|
+
children: o,
|
|
41
45
|
side: n = "right",
|
|
42
46
|
...r
|
|
43
47
|
}) {
|
|
44
48
|
return /* @__PURE__ */ e.jsxs(l, { children: [
|
|
45
49
|
/* @__PURE__ */ e.jsx(d, {}),
|
|
46
50
|
/* @__PURE__ */ e.jsxs(
|
|
47
|
-
|
|
51
|
+
a.Content,
|
|
48
52
|
{
|
|
49
53
|
"data-slot": "sheet-content",
|
|
50
54
|
className: s(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
`
|
|
56
|
+
fixed z-50 flex flex-col gap-4 bg-background text-foreground
|
|
57
|
+
shadow-lg transition ease-in-out
|
|
58
|
+
data-[state=closed]:animate-out data-[state=closed]:duration-300
|
|
59
|
+
data-[state=open]:animate-in data-[state=open]:duration-500
|
|
60
|
+
`,
|
|
61
|
+
n === "right" && `
|
|
62
|
+
inset-y-0 right-0 h-full w-3/4 border-l
|
|
63
|
+
data-[state=closed]:slide-out-to-right
|
|
64
|
+
data-[state=open]:slide-in-from-right
|
|
65
|
+
sm:max-w-sm
|
|
66
|
+
`,
|
|
67
|
+
n === "left" && `
|
|
68
|
+
inset-y-0 left-0 h-full w-3/4 border-r
|
|
69
|
+
data-[state=closed]:slide-out-to-left
|
|
70
|
+
data-[state=open]:slide-in-from-left
|
|
71
|
+
sm:max-w-sm
|
|
72
|
+
`,
|
|
73
|
+
n === "top" && `
|
|
74
|
+
inset-x-0 top-0 h-auto border-b
|
|
75
|
+
data-[state=closed]:slide-out-to-top
|
|
76
|
+
data-[state=open]:slide-in-from-top
|
|
77
|
+
`,
|
|
78
|
+
n === "bottom" && `
|
|
79
|
+
inset-x-0 bottom-0 h-auto border-t
|
|
80
|
+
data-[state=closed]:slide-out-to-bottom
|
|
81
|
+
data-[state=open]:slide-in-from-bottom
|
|
82
|
+
`,
|
|
56
83
|
t
|
|
57
84
|
),
|
|
58
85
|
...r,
|
|
59
86
|
children: [
|
|
60
|
-
|
|
61
|
-
/* @__PURE__ */ e.jsxs(
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
87
|
+
o,
|
|
88
|
+
/* @__PURE__ */ e.jsxs(
|
|
89
|
+
a.Close,
|
|
90
|
+
{
|
|
91
|
+
className: `\r
|
|
92
|
+
absolute top-4 right-4 rounded-xs text-foreground opacity-70\r
|
|
93
|
+
ring-offset-background transition-opacity\r
|
|
94
|
+
hover:opacity-100\r
|
|
95
|
+
focus:ring-2 focus:ring-ring focus:ring-offset-2\r
|
|
96
|
+
focus:outline-hidden\r
|
|
97
|
+
disabled:pointer-events-none\r
|
|
98
|
+
data-[state=open]:bg-secondary\r
|
|
99
|
+
`,
|
|
100
|
+
children: [
|
|
101
|
+
/* @__PURE__ */ e.jsx(i, { className: "size-4" }),
|
|
102
|
+
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close" })
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
)
|
|
65
106
|
]
|
|
66
107
|
}
|
|
67
108
|
)
|
|
68
109
|
] });
|
|
69
110
|
}
|
|
70
|
-
function x({ className: t, ...
|
|
111
|
+
function x({ className: t, ...o }) {
|
|
71
112
|
return /* @__PURE__ */ e.jsx(
|
|
72
113
|
"div",
|
|
73
114
|
{
|
|
74
115
|
"data-slot": "sheet-header",
|
|
75
116
|
className: s("flex flex-col gap-1.5 p-4", t),
|
|
76
|
-
...
|
|
117
|
+
...o
|
|
77
118
|
}
|
|
78
119
|
);
|
|
79
120
|
}
|
|
80
|
-
function g({ className: t, ...
|
|
121
|
+
function g({ className: t, ...o }) {
|
|
81
122
|
return /* @__PURE__ */ e.jsx(
|
|
82
123
|
"div",
|
|
83
124
|
{
|
|
84
125
|
"data-slot": "sheet-footer",
|
|
85
126
|
className: s("mt-auto flex flex-col gap-2 p-4", t),
|
|
86
|
-
...
|
|
127
|
+
...o
|
|
87
128
|
}
|
|
88
129
|
);
|
|
89
130
|
}
|
|
90
131
|
function b({
|
|
91
132
|
className: t,
|
|
92
|
-
...
|
|
133
|
+
...o
|
|
93
134
|
}) {
|
|
94
135
|
return /* @__PURE__ */ e.jsx(
|
|
95
|
-
|
|
136
|
+
a.Title,
|
|
96
137
|
{
|
|
97
138
|
"data-slot": "sheet-title",
|
|
98
|
-
className: s("text-foreground
|
|
99
|
-
...
|
|
139
|
+
className: s("font-semibold text-foreground", t),
|
|
140
|
+
...o
|
|
100
141
|
}
|
|
101
142
|
);
|
|
102
143
|
}
|
|
103
144
|
function j({
|
|
104
145
|
className: t,
|
|
105
|
-
...
|
|
146
|
+
...o
|
|
106
147
|
}) {
|
|
107
148
|
return /* @__PURE__ */ e.jsx(
|
|
108
|
-
|
|
149
|
+
a.Description,
|
|
109
150
|
{
|
|
110
151
|
"data-slot": "sheet-description",
|
|
111
|
-
className: s("text-muted-foreground
|
|
112
|
-
...
|
|
152
|
+
className: s("paragraph-sm text-muted-foreground", t),
|
|
153
|
+
...o
|
|
113
154
|
}
|
|
114
155
|
);
|
|
115
156
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-Bfismeyo.cjs");function o({className:t,...n}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"skeleton",className:e.cn("bg-accent animate-pulse rounded-md",t),...n})}exports.Skeleton=o;
|
|
@@ -1 +1,23 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../index-Bfismeyo.cjs"),u=require("@radix-ui/react-slider"),b=require("react");function l(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const o=l(u),f=l(b);function h({className:r,defaultValue:e,value:t,min:n=0,max:a=100,...s}){const c=f.useMemo(()=>Array.isArray(t)?t:Array.isArray(e)?e:[n,a],[t,e,n,a]);return i.jsxRuntimeExports.jsxs(o.Root,{"data-slot":"slider",defaultValue:e,value:t,min:n,max:a,className:i.cn(`
|
|
2
|
+
relative flex w-full touch-none items-center select-none
|
|
3
|
+
data-disabled:opacity-50
|
|
4
|
+
data-[orientation=vertical]:h-full
|
|
5
|
+
data-[orientation=vertical]:min-h-44
|
|
6
|
+
data-[orientation=vertical]:w-auto
|
|
7
|
+
data-[orientation=vertical]:flex-col
|
|
8
|
+
`,r),...s,children:[i.jsxRuntimeExports.jsx(o.Track,{"data-slot":"slider-track",className:i.cn(`
|
|
9
|
+
relative grow overflow-hidden rounded-full bg-muted
|
|
10
|
+
data-[orientation=horizontal]:h-1.5
|
|
11
|
+
data-[orientation=horizontal]:w-full
|
|
12
|
+
data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5
|
|
13
|
+
`),children:i.jsxRuntimeExports.jsx(o.Range,{"data-slot":"slider-range",className:i.cn(`
|
|
14
|
+
absolute bg-primary
|
|
15
|
+
data-[orientation=horizontal]:h-full
|
|
16
|
+
data-[orientation=vertical]:w-full
|
|
17
|
+
`)})}),Array.from({length:c.length},(m,d)=>i.jsxRuntimeExports.jsx(o.Thumb,{"data-slot":"slider-thumb",className:`\r
|
|
18
|
+
block size-4 shrink-0 rounded-full border bg-background shadow-sm\r
|
|
19
|
+
ring-ring/50 transition-[color,box-shadow]\r
|
|
20
|
+
hover:ring-4\r
|
|
21
|
+
focus-visible:ring-4 focus-visible:outline-hidden\r
|
|
22
|
+
disabled:pointer-events-none disabled:opacity-50\r
|
|
23
|
+
`},d))]})}exports.Slider=h;
|