@clasing/ui 2.1.0 → 2.1.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-Ds17GJH4.js → badge-Cprh3bik.js} +24 -32
- package/dist/badge-Da_xHgvC.cjs +1 -0
- package/dist/button-B4yT3Gcz.cjs +1 -0
- package/dist/button-CUrfGF3Y.js +232 -0
- package/dist/{card-Dj2wgH-P.cjs → card-COFAc2zN.cjs} +1 -1
- package/dist/{card-BNTyYiyA.js → card-CbF9kVVs.js} +1 -1
- package/dist/chip-B7Mqq278.js +89 -0
- package/dist/chip-BG4NEZUv.cjs +1 -0
- package/dist/command-CrtCQpi_.cjs +1 -0
- package/dist/{command-CGUB58ej.js → command-ev4m9IoQ.js} +18 -24
- package/dist/components/accordion.cjs.js +1 -1
- package/dist/components/accordion.es.js +24 -30
- package/dist/components/alert-dialog.cjs.js +1 -1
- package/dist/components/alert-dialog.es.js +3 -3
- package/dist/components/alert.cjs.js +1 -1
- package/dist/components/alert.d.ts +3 -4
- package/dist/components/alert.es.js +38 -39
- 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 +2 -6
- package/dist/components/badge.es.js +1 -1
- package/dist/components/blocks/interactive-card.cjs.js +1 -1
- package/dist/components/blocks/interactive-card.d.ts +2 -4
- package/dist/components/blocks/interactive-card.es.js +65 -80
- package/dist/components/blocks/selectable-chips.cjs.js +1 -1
- package/dist/components/blocks/selectable-chips.es.js +19 -16
- package/dist/components/breadcrumb.cjs.js +1 -1
- package/dist/components/breadcrumb.es.js +22 -22
- package/dist/components/button.cjs.js +1 -1
- package/dist/components/button.d.ts +4 -13
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar.cjs.js +1 -1
- package/dist/components/calendar.es.js +33 -54
- package/dist/components/card.cjs.js +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/chart.cjs.js +1 -1
- package/dist/components/chart.es.js +1 -1
- package/dist/components/checkbox.cjs.js +1 -1
- package/dist/components/checkbox.es.js +6 -6
- package/dist/components/chip.cjs.js +1 -1
- package/dist/components/chip.d.ts +1 -10
- package/dist/components/chip.es.js +1 -1
- package/dist/components/collapsible.cjs.js +1 -1
- package/dist/components/collapsible.es.js +1 -1
- package/dist/components/command.cjs.js +1 -1
- package/dist/components/command.es.js +1 -1
- package/dist/components/context-menu.cjs.js +1 -1
- package/dist/components/context-menu.es.js +42 -48
- 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 +1 -1
- package/dist/components/drawer.es.js +1 -1
- package/dist/components/dropdown-menu.cjs.js +1 -1
- package/dist/components/dropdown-menu.es.js +40 -46
- package/dist/components/form.cjs.js +1 -1
- package/dist/components/form.es.js +2 -2
- package/dist/components/hover-card.cjs.js +1 -1
- package/dist/components/hover-card.es.js +1 -1
- package/dist/components/input-otp.cjs.js +1 -1
- package/dist/components/input-otp.es.js +16 -16
- package/dist/components/input.cjs.js +1 -1
- package/dist/components/input.d.ts +2 -6
- package/dist/components/input.es.js +1 -1
- package/dist/components/label.cjs.js +1 -1
- package/dist/components/label.es.js +1 -1
- package/dist/components/menubar.cjs.js +1 -1
- package/dist/components/menubar.es.js +66 -72
- package/dist/components/multi-select.cjs.js +1 -1
- package/dist/components/multi-select.es.js +77 -96
- package/dist/components/navigation-menu.cjs.js +1 -1
- package/dist/components/navigation-menu.es.js +10 -11
- package/dist/components/phone-input.cjs.js +1 -1
- package/dist/components/phone-input.es.js +77 -79
- 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 +1 -1
- package/dist/components/resizable.cjs.js +1 -1
- package/dist/components/resizable.es.js +3 -3
- package/dist/components/scroll-area.cjs.js +1 -1
- package/dist/components/scroll-area.es.js +1 -1
- package/dist/components/select.cjs.js +1 -1
- package/dist/components/select.es.js +47 -53
- package/dist/components/sheet.cjs.js +1 -1
- package/dist/components/sheet.es.js +29 -29
- package/dist/components/skeleton.cjs.js +1 -1
- package/dist/components/skeleton.es.js +1 -1
- package/dist/components/slider.cjs.js +1 -1
- package/dist/components/slider.es.js +1 -1
- package/dist/components/sonner.cjs.js +1 -1
- package/dist/components/sonner.es.js +1 -1
- package/dist/components/switch.cjs.js +1 -1
- package/dist/components/switch.es.js +2 -2
- package/dist/components/table.cjs.js +1 -1
- package/dist/components/table.es.js +1 -1
- package/dist/components/textarea.cjs.js +1 -1
- package/dist/components/textarea.d.ts +2 -6
- package/dist/components/textarea.es.js +28 -36
- package/dist/components/toggle-group.cjs.js +1 -1
- package/dist/components/toggle-group.es.js +2 -2
- package/dist/components/toggle.cjs.js +1 -1
- package/dist/components/toggle.d.ts +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-CEttcpWT.js → dialog-CXbzQHxn.js} +9 -9
- package/dist/dialog-DHZARK1o.cjs +1 -0
- package/dist/index-9HRzXEQf.cjs +6 -0
- package/dist/{index-DBpnlzOP.js → index-D5lmpham.js} +677 -664
- package/dist/{index-CwXB7YIx.js → index-DN28Pf0m.js} +1 -1
- package/dist/{index-BVmT9wZC.cjs → index-ECyCsPX0.cjs} +1 -1
- package/dist/input-C144z_Is.cjs +1 -0
- package/dist/{input-B5HLfVv0.js → input-fvzEG6zH.js} +33 -47
- package/dist/{label-eHraXPfy.cjs → label-D3iN3bzS.cjs} +1 -1
- package/dist/{label-Bp4qkqFq.js → label-DDxTPxHk.js} +1 -1
- package/dist/{popover-Dvf9oQaX.js → popover-BdDS9aoy.js} +1 -1
- package/dist/{popover-DifOajI4.cjs → popover-CeOAAwBQ.cjs} +1 -1
- package/dist/{scroll-area-CJpVshOm.cjs → scroll-area-D74XszlE.cjs} +1 -1
- package/dist/{scroll-area-Dj0Szbw6.js → scroll-area-oS6ZJIMN.js} +1 -1
- package/dist/{toggle-owj9AHVO.js → toggle-BNzrNg1r.js} +2 -2
- package/dist/{toggle-CJLDdFRo.cjs → toggle-CtoQhQby.cjs} +1 -1
- package/dist/{tooltip-C9FWg102.cjs → tooltip-BccdAn4x.cjs} +1 -1
- package/dist/{tooltip-CGSL9pFZ.js → tooltip-rv-jVOxy.js} +1 -1
- package/package.json +352 -357
- package/dist/badge-oQqEF2X5.cjs +0 -1
- package/dist/button-B-JHlR-n.cjs +0 -1
- package/dist/button-ozL8afps.js +0 -573
- package/dist/chip-CK2VBBsV.js +0 -126
- package/dist/chip-DVKpteyL.cjs +0 -1
- package/dist/command-CHisYTN-.cjs +0 -1
- package/dist/components/icon-component.cjs.js +0 -1
- package/dist/components/icon-component.d.ts +0 -12
- package/dist/components/icon-component.es.js +0 -4
- package/dist/dialog-Chh5qAxR.cjs +0 -1
- package/dist/entries/icon-component.d.ts +0 -2
- package/dist/icon-component-DGImZz3K.js +0 -49
- package/dist/icon-component-DTlgy__B.cjs +0 -1
- package/dist/index-DSjHHn1r.cjs +0 -22
- package/dist/input-BqT_fuUN.cjs +0 -1
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { j as e, c as s } from "../index-
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
1
|
+
import { j as e, c as s } from "../index-D5lmpham.js";
|
|
2
|
+
import * as o from "@radix-ui/react-dialog";
|
|
3
|
+
import { XIcon as i } from "@phosphor-icons/react";
|
|
4
4
|
function f({ ...t }) {
|
|
5
|
-
return /* @__PURE__ */ e.jsx(
|
|
5
|
+
return /* @__PURE__ */ e.jsx(o.Root, { "data-slot": "sheet", ...t });
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function h({
|
|
8
8
|
...t
|
|
9
9
|
}) {
|
|
10
|
-
return /* @__PURE__ */ e.jsx(
|
|
10
|
+
return /* @__PURE__ */ e.jsx(o.Trigger, { "data-slot": "sheet-trigger", ...t });
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function m({
|
|
13
13
|
...t
|
|
14
14
|
}) {
|
|
15
|
-
return /* @__PURE__ */ e.jsx(
|
|
15
|
+
return /* @__PURE__ */ e.jsx(o.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(o.Portal, { "data-slot": "sheet-portal", ...t });
|
|
21
21
|
}
|
|
22
22
|
function d({
|
|
23
23
|
className: t,
|
|
24
|
-
...
|
|
24
|
+
...a
|
|
25
25
|
}) {
|
|
26
26
|
return /* @__PURE__ */ e.jsx(
|
|
27
|
-
|
|
27
|
+
o.Overlay,
|
|
28
28
|
{
|
|
29
29
|
"data-slot": "sheet-overlay",
|
|
30
30
|
className: s(
|
|
31
31
|
"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-black/50",
|
|
32
32
|
t
|
|
33
33
|
),
|
|
34
|
-
...
|
|
34
|
+
...a
|
|
35
35
|
}
|
|
36
36
|
);
|
|
37
37
|
}
|
|
38
38
|
function p({
|
|
39
39
|
className: t,
|
|
40
|
-
children:
|
|
40
|
+
children: a,
|
|
41
41
|
side: n = "right",
|
|
42
42
|
...r
|
|
43
43
|
}) {
|
|
44
44
|
return /* @__PURE__ */ e.jsxs(l, { children: [
|
|
45
45
|
/* @__PURE__ */ e.jsx(d, {}),
|
|
46
46
|
/* @__PURE__ */ e.jsxs(
|
|
47
|
-
|
|
47
|
+
o.Content,
|
|
48
48
|
{
|
|
49
49
|
"data-slot": "sheet-content",
|
|
50
50
|
className: s(
|
|
@@ -57,9 +57,9 @@ function p({
|
|
|
57
57
|
),
|
|
58
58
|
...r,
|
|
59
59
|
children: [
|
|
60
|
-
|
|
61
|
-
/* @__PURE__ */ e.jsxs(
|
|
62
|
-
/* @__PURE__ */ e.jsx(i, {
|
|
60
|
+
a,
|
|
61
|
+
/* @__PURE__ */ e.jsxs(o.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
|
|
62
|
+
/* @__PURE__ */ e.jsx(i, { className: "size-4" }),
|
|
63
63
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close" })
|
|
64
64
|
] })
|
|
65
65
|
]
|
|
@@ -67,59 +67,59 @@ function p({
|
|
|
67
67
|
)
|
|
68
68
|
] });
|
|
69
69
|
}
|
|
70
|
-
function x({ className: t, ...
|
|
70
|
+
function x({ className: t, ...a }) {
|
|
71
71
|
return /* @__PURE__ */ e.jsx(
|
|
72
72
|
"div",
|
|
73
73
|
{
|
|
74
74
|
"data-slot": "sheet-header",
|
|
75
75
|
className: s("flex flex-col gap-1.5 p-4", t),
|
|
76
|
-
...
|
|
76
|
+
...a
|
|
77
77
|
}
|
|
78
78
|
);
|
|
79
79
|
}
|
|
80
|
-
function g({ className: t, ...
|
|
80
|
+
function g({ className: t, ...a }) {
|
|
81
81
|
return /* @__PURE__ */ e.jsx(
|
|
82
82
|
"div",
|
|
83
83
|
{
|
|
84
84
|
"data-slot": "sheet-footer",
|
|
85
85
|
className: s("mt-auto flex flex-col gap-2 p-4", t),
|
|
86
|
-
...
|
|
86
|
+
...a
|
|
87
87
|
}
|
|
88
88
|
);
|
|
89
89
|
}
|
|
90
90
|
function b({
|
|
91
91
|
className: t,
|
|
92
|
-
...
|
|
92
|
+
...a
|
|
93
93
|
}) {
|
|
94
94
|
return /* @__PURE__ */ e.jsx(
|
|
95
|
-
|
|
95
|
+
o.Title,
|
|
96
96
|
{
|
|
97
97
|
"data-slot": "sheet-title",
|
|
98
98
|
className: s("text-foreground font-semibold", t),
|
|
99
|
-
...
|
|
99
|
+
...a
|
|
100
100
|
}
|
|
101
101
|
);
|
|
102
102
|
}
|
|
103
103
|
function j({
|
|
104
104
|
className: t,
|
|
105
|
-
...
|
|
105
|
+
...a
|
|
106
106
|
}) {
|
|
107
107
|
return /* @__PURE__ */ e.jsx(
|
|
108
|
-
|
|
108
|
+
o.Description,
|
|
109
109
|
{
|
|
110
110
|
"data-slot": "sheet-description",
|
|
111
111
|
className: s("text-muted-foreground paragraph-sm", t),
|
|
112
|
-
...
|
|
112
|
+
...a
|
|
113
113
|
}
|
|
114
114
|
);
|
|
115
115
|
}
|
|
116
116
|
export {
|
|
117
117
|
f as Sheet,
|
|
118
|
-
|
|
118
|
+
m as SheetClose,
|
|
119
119
|
p as SheetContent,
|
|
120
120
|
j as SheetDescription,
|
|
121
121
|
g as SheetFooter,
|
|
122
122
|
x as SheetHeader,
|
|
123
123
|
b as SheetTitle,
|
|
124
|
-
|
|
124
|
+
h as SheetTrigger
|
|
125
125
|
};
|
|
@@ -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-9HRzXEQf.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 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../index-9HRzXEQf.cjs"),u=require("@radix-ui/react-slider"),b=require("react");function s(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const i=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(t,e,i.get?i:{enumerable:!0,get:()=>r[e]})}}return t.default=r,Object.freeze(t)}const a=s(u),f=s(b);function h({className:r,defaultValue:t,value:e,min:i=0,max:n=100,...l}){const c=f.useMemo(()=>Array.isArray(e)?e:Array.isArray(t)?t:[i,n],[e,t,i,n]);return o.jsxRuntimeExports.jsxs(a.Root,{"data-slot":"slider",defaultValue:t,value:e,min:i,max:n,className:o.cn("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",r),...l,children:[o.jsxRuntimeExports.jsx(a.Track,{"data-slot":"slider-track",className:o.cn("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),children:o.jsxRuntimeExports.jsx(a.Range,{"data-slot":"slider-range",className:o.cn("bg-secondary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),Array.from({length:c.length},(g,d)=>o.jsxRuntimeExports.jsx(a.Thumb,{"data-slot":"slider-thumb",className:"border-secondary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"},d))]})}exports.Slider=h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../index-9HRzXEQf.cjs"),v=require("react"),S=require("sonner");function w(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return r.default=e,Object.freeze(r)}const u=w(v);var T=(e,r,o,n,c,s,d,m)=>{let a=document.documentElement,g=["light","dark"];function i(t){(Array.isArray(e)?e:[e]).forEach(l=>{let f=l==="class",x=f&&s?c.map(b=>s[b]||b):c;f?(a.classList.remove(...x),a.classList.add(s&&s[t]?s[t]:t)):a.setAttribute(l,t)}),h(t)}function h(t){m&&g.includes(t)&&(a.style.colorScheme=t)}function y(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)i(n);else try{let t=localStorage.getItem(r)||o,l=d&&t==="system"?y():t;i(l)}catch{}},O=u.createContext(void 0),j={setTheme:e=>{},themes:[]},k=()=>{var e;return(e=u.useContext(O))!=null?e:j};u.memo(({forcedTheme:e,storageKey:r,attribute:o,enableSystem:n,enableColorScheme:c,defaultTheme:s,value:d,themes:m,nonce:a,scriptProps:g})=>{let i=JSON.stringify([o,r,s,e,m,d,n,c]).slice(1,-1);return u.createElement("script",{...g,suppressHydrationWarning:!0,nonce:typeof window>"u"?a:"",dangerouslySetInnerHTML:{__html:`(${T.toString()})(${i})`}})});const M=({...e})=>{const{theme:r="system"}=k();return p.jsxRuntimeExports.jsx(S.Toaster,{theme:r,className:"toaster group",toastOptions:{classNames:{toast:"rounded-2xl!",description:"text-muted-foreground!",actionButton:"bg-primary! rounded-full!",info:"bg-info-light! border-info-main/30! text-info-main!",success:p.cn("bg-success-light! border-success-main/30! text-success-main!"),warning:"bg-warning-light! border-warning-main/30! text-warning-main!",error:"bg-error-light! border-error-main/30! text-error-main!",cancelButton:"text-muted-foreground! bg-muted! rounded-full!",closeButton:"text-muted-foreground! bg-muted! rounded-full! border-border!",icon:"self-start mt-1"}},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};exports.Toaster=M;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../index-9HRzXEQf.cjs"),d=require("../index-ECyCsPX0.cjs"),o=require("react"),m=d.cva("border-neutral-000 focus-visible:ring-ring-default inline-flex shrink-0 cursor-pointer items-center rounded-full border bg-white transition-colors focus-visible:ring-[1.5px] focus-visible:ring-offset-1 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-blue-800 data-[state=unchecked]:bg-white",{variants:{switchSize:{sm:"h-[18px] w-8",md:"h-[22px] w-11"}},defaultVariants:{switchSize:"md"}}),g=d.cva("data-[state=unchecked]:bg-neutral-000 pointer-events-none block rounded-full ring-0 transition-transform data-[state=checked]:bg-white data-[state=unchecked]:translate-x-px",{variants:{switchSize:{sm:"h-3.5 w-3.5 data-[state=checked]:translate-x-[15px]",md:"h-[18px] w-[18px] data-[state=checked]:translate-x-[23px]"}},defaultVariants:{switchSize:"md"}}),l=o.forwardRef(({className:h,defaultChecked:u,checked:a,onCheckedChange:f,disabled:s,switchSize:c,...k},w)=>{const[x,b]=o.useState(u||!1),i=a!==void 0,t=i?a:x,r=()=>{if(s)return;const e=!t;i||b(e),f?.(e)},p=e=>{(e.key===" "||e.key==="Enter")&&(e.preventDefault(),r())};return n.jsxRuntimeExports.jsx("button",{ref:w,type:"button",role:"switch","aria-checked":t,"data-state":t?"checked":"unchecked",onClick:r,onKeyDown:p,disabled:s,className:n.cn(m({switchSize:c,className:h})),...k,children:n.jsxRuntimeExports.jsx("span",{"data-state":t?"checked":"unchecked",className:g({switchSize:c})})})});l.displayName="Switch";exports.Switch=l;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as o, c as m } from "../index-
|
|
2
|
-
import { c as r } from "../index-
|
|
1
|
+
import { j as o, c as m } from "../index-D5lmpham.js";
|
|
2
|
+
import { c as r } from "../index-DN28Pf0m.js";
|
|
3
3
|
import { forwardRef as b, useState as x } from "react";
|
|
4
4
|
const g = r(
|
|
5
5
|
"border-neutral-000 focus-visible:ring-ring-default inline-flex shrink-0 cursor-pointer items-center rounded-full border bg-white transition-colors focus-visible:ring-[1.5px] focus-visible:ring-offset-1 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-blue-800 data-[state=unchecked]:bg-white",
|
|
@@ -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-9HRzXEQf.cjs");function o({className:t,...a}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:e.jsxRuntimeExports.jsx("table",{"data-slot":"table",className:e.cn("paragraph-sm w-full caption-bottom",t),...a})})}function l({className:t,...a}){return e.jsxRuntimeExports.jsx("thead",{"data-slot":"table-header",className:e.cn("[&_tr]:border-b",t),...a})}function r({className:t,...a}){return e.jsxRuntimeExports.jsx("tbody",{"data-slot":"table-body",className:e.cn("[&_tr:last-child]:border-0",t),...a})}function s({className:t,...a}){return e.jsxRuntimeExports.jsx("tfoot",{"data-slot":"table-footer",className:e.cn("bg-muted/50 border-t font-semibold [&>tr]:last:border-b-0",t),...a})}function n({className:t,...a}){return e.jsxRuntimeExports.jsx("tr",{"data-slot":"table-row",className:e.cn("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",t),...a})}function b({className:t,...a}){return e.jsxRuntimeExports.jsx("th",{"data-slot":"table-head",className:e.cn("text-foreground h-10 px-2 text-left align-middle font-semibold whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...a})}function c({className:t,...a}){return e.jsxRuntimeExports.jsx("td",{"data-slot":"table-cell",className:e.cn("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...a})}function d({className:t,...a}){return e.jsxRuntimeExports.jsx("caption",{"data-slot":"table-caption",className:e.cn("text-muted-foreground paragraph-sm mt-4",t),...a})}exports.Table=o;exports.TableBody=r;exports.TableCaption=d;exports.TableCell=c;exports.TableFooter=s;exports.TableHead=b;exports.TableHeader=l;exports.TableRow=n;
|
|
@@ -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-9HRzXEQf.cjs"),c=require("../index-ECyCsPX0.cjs"),o=c.cva("placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex w-full min-w-0 rounded-md border bg-transparent transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{xs:"label-sm min-h-16 px-2 py-1",sm:"label-md min-h-20 px-2 py-1",md:"label-lg min-h-24 px-3 py-2",lg:"label-xl min-h-32 px-4 py-3"},resize:{none:"resize-none",vertical:"resize-y",horizontal:"resize-x",both:"resize"}},defaultVariants:{size:"md",resize:"vertical"}});function x({className:a,size:n,resize:l,icon:i,maxLength:r,showCharacterCount:u=!1,...t}){const s=t.value?String(t.value).length:0,d=u||r;return!i&&!d?e.jsxRuntimeExports.jsx("textarea",{"data-slot":"textarea",maxLength:r,className:e.cn(o({size:n,resize:l}),"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",a),...t}):e.jsxRuntimeExports.jsxs("div",{className:"space-y-2",children:[e.jsxRuntimeExports.jsxs("div",{className:"relative w-full",children:[e.jsxRuntimeExports.jsx("textarea",{"data-slot":"textarea",maxLength:r,className:e.cn(o({size:n,resize:l}),"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",i?"pr-10":"",a),...t}),i&&i]}),d&&e.jsxRuntimeExports.jsx("div",{className:"flex justify-end",children:e.jsxRuntimeExports.jsx("span",{className:e.cn("paragraph-xs text-muted-foreground",{"text-destructive":r&&s>r}),children:r?`${s}/${r}`:s})})]})}exports.Textarea=x;
|
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { TablerIconName } from './icon-component';
|
|
4
3
|
declare const textareaStyles: (props?: ({
|
|
5
4
|
size?: "lg" | "md" | "sm" | "xs" | null | undefined;
|
|
6
5
|
resize?: "none" | "horizontal" | "vertical" | "both" | null | undefined;
|
|
7
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
7
|
export interface TextareaProps extends VariantProps<typeof textareaStyles> {
|
|
9
8
|
/** Icon to display in the top-right corner of the textarea */
|
|
10
|
-
|
|
11
|
-
name: TablerIconName;
|
|
12
|
-
stroke?: string;
|
|
13
|
-
};
|
|
9
|
+
icon?: React.ReactNode;
|
|
14
10
|
/** Maximum number of characters allowed */
|
|
15
11
|
maxLength?: number;
|
|
16
12
|
/** Show character count */
|
|
17
13
|
showCharacterCount?: boolean;
|
|
18
14
|
}
|
|
19
|
-
declare function Textarea({ className, size, resize,
|
|
15
|
+
declare function Textarea({ className, size, resize, icon, maxLength, showCharacterCount, ...props }: Omit<React.ComponentProps<'textarea'>, 'size'> & TextareaProps): import("react/jsx-runtime").JSX.Element;
|
|
20
16
|
export { Textarea };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { c as
|
|
3
|
-
|
|
4
|
-
const v = x(
|
|
1
|
+
import { j as r, c as t } from "../index-D5lmpham.js";
|
|
2
|
+
import { c as v } from "../index-DN28Pf0m.js";
|
|
3
|
+
const c = v(
|
|
5
4
|
"placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex w-full min-w-0 rounded-md border bg-transparent transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
6
5
|
{
|
|
7
6
|
variants: {
|
|
@@ -24,66 +23,59 @@ const v = x(
|
|
|
24
23
|
}
|
|
25
24
|
}
|
|
26
25
|
);
|
|
27
|
-
function
|
|
28
|
-
className:
|
|
29
|
-
size:
|
|
26
|
+
function p({
|
|
27
|
+
className: l,
|
|
28
|
+
size: n,
|
|
30
29
|
resize: d,
|
|
31
|
-
|
|
32
|
-
maxLength:
|
|
33
|
-
showCharacterCount:
|
|
30
|
+
icon: i,
|
|
31
|
+
maxLength: e,
|
|
32
|
+
showCharacterCount: u = !1,
|
|
34
33
|
...a
|
|
35
34
|
}) {
|
|
36
|
-
const
|
|
37
|
-
return !i && !
|
|
35
|
+
const s = a.value ? String(a.value).length : 0, o = u || e;
|
|
36
|
+
return !i && !o ? /* @__PURE__ */ r.jsx(
|
|
38
37
|
"textarea",
|
|
39
38
|
{
|
|
40
39
|
"data-slot": "textarea",
|
|
41
|
-
maxLength:
|
|
42
|
-
className:
|
|
43
|
-
|
|
40
|
+
maxLength: e,
|
|
41
|
+
className: t(
|
|
42
|
+
c({ size: n, resize: d }),
|
|
44
43
|
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
45
44
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
46
|
-
|
|
45
|
+
l
|
|
47
46
|
),
|
|
48
47
|
...a
|
|
49
48
|
}
|
|
50
|
-
) : /* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
/* @__PURE__ */
|
|
49
|
+
) : /* @__PURE__ */ r.jsxs("div", { className: "space-y-2", children: [
|
|
50
|
+
/* @__PURE__ */ r.jsxs("div", { className: "relative w-full", children: [
|
|
51
|
+
/* @__PURE__ */ r.jsx(
|
|
53
52
|
"textarea",
|
|
54
53
|
{
|
|
55
54
|
"data-slot": "textarea",
|
|
56
|
-
maxLength:
|
|
57
|
-
className:
|
|
58
|
-
|
|
55
|
+
maxLength: e,
|
|
56
|
+
className: t(
|
|
57
|
+
c({ size: n, resize: d }),
|
|
59
58
|
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
60
59
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
61
60
|
i ? "pr-10" : "",
|
|
62
|
-
|
|
61
|
+
l
|
|
63
62
|
),
|
|
64
63
|
...a
|
|
65
64
|
}
|
|
66
65
|
),
|
|
67
|
-
i &&
|
|
68
|
-
p,
|
|
69
|
-
{
|
|
70
|
-
iconName: i.name,
|
|
71
|
-
stroke: i.stroke,
|
|
72
|
-
size: 20
|
|
73
|
-
}
|
|
74
|
-
) })
|
|
66
|
+
i && i
|
|
75
67
|
] }),
|
|
76
|
-
|
|
68
|
+
o && /* @__PURE__ */ r.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ r.jsx(
|
|
77
69
|
"span",
|
|
78
70
|
{
|
|
79
|
-
className:
|
|
80
|
-
"text-destructive":
|
|
71
|
+
className: t("paragraph-xs text-muted-foreground", {
|
|
72
|
+
"text-destructive": e && s > e
|
|
81
73
|
}),
|
|
82
|
-
children:
|
|
74
|
+
children: e ? `${s}/${e}` : s
|
|
83
75
|
}
|
|
84
76
|
) })
|
|
85
77
|
] });
|
|
86
78
|
}
|
|
87
79
|
export {
|
|
88
|
-
|
|
80
|
+
p as Textarea
|
|
89
81
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../index-9HRzXEQf.cjs"),d=require("@radix-ui/react-toggle-group"),g=require("react"),m=require("../toggle-CtoQhQby.cjs");function s(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const u=s(d),l=s(g),c=l.createContext({size:"md",variant:"default"});function p({className:t,variant:o,size:e,children:r,...i}){return n.jsxRuntimeExports.jsx(u.Root,{"data-slot":"toggle-group","data-variant":o,"data-size":e,className:n.cn("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",t),...i,children:n.jsxRuntimeExports.jsx(c.Provider,{value:{variant:o,size:e},children:r})})}function f({className:t,children:o,variant:e,size:r,...i}){const a=l.useContext(c);return n.jsxRuntimeExports.jsx(u.Item,{"data-slot":"toggle-group-item","data-variant":a.variant||e,"data-size":a.size||r,className:n.cn(m.toggleVariants({variant:a.variant||e,size:a.size||r}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",t),...i,children:o})}exports.ToggleGroup=p;exports.ToggleGroupItem=f;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as i, c as s } from "../index-
|
|
1
|
+
import { j as i, c as s } from "../index-D5lmpham.js";
|
|
2
2
|
import * as d from "@radix-ui/react-toggle-group";
|
|
3
3
|
import * as l from "react";
|
|
4
|
-
import { t as m } from "../toggle-
|
|
4
|
+
import { t as m } from "../toggle-BNzrNg1r.js";
|
|
5
5
|
const u = l.createContext({
|
|
6
6
|
size: "md",
|
|
7
7
|
variant: "default"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../toggle-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../toggle-CtoQhQby.cjs");exports.Toggle=e.Toggle;exports.toggleVariants=e.toggleVariants;
|
|
@@ -2,7 +2,7 @@ import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
declare const toggleVariants: (props?: ({
|
|
5
|
-
variant?: "
|
|
5
|
+
variant?: "outline" | "default" | null | undefined;
|
|
6
6
|
size?: "lg" | "md" | "sm" | "xs" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
declare function Toggle({ className, variant, size, ...props }: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../tooltip-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../tooltip-BccdAn4x.cjs");exports.Tooltip=o.Tooltip;exports.TooltipContent=o.TooltipContent;exports.TooltipProvider=o.TooltipProvider;exports.TooltipTrigger=o.TooltipTrigger;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as t, c as s } from "./index-
|
|
1
|
+
import { j as t, c as s } from "./index-D5lmpham.js";
|
|
2
2
|
import * as e from "@radix-ui/react-dialog";
|
|
3
|
-
import {
|
|
3
|
+
import { XIcon as i } from "@phosphor-icons/react";
|
|
4
4
|
function u({
|
|
5
5
|
...a
|
|
6
6
|
}) {
|
|
@@ -16,7 +16,7 @@ function r({
|
|
|
16
16
|
}) {
|
|
17
17
|
return /* @__PURE__ */ t.jsx(e.Portal, { "data-slot": "dialog-portal", ...a });
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function x({
|
|
20
20
|
...a
|
|
21
21
|
}) {
|
|
22
22
|
return /* @__PURE__ */ t.jsx(e.Close, { "data-slot": "dialog-close", ...a });
|
|
@@ -37,11 +37,11 @@ function d({
|
|
|
37
37
|
}
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function m({
|
|
41
41
|
className: a,
|
|
42
42
|
children: o,
|
|
43
43
|
showCloseButton: n = !0,
|
|
44
|
-
...
|
|
44
|
+
...l
|
|
45
45
|
}) {
|
|
46
46
|
return /* @__PURE__ */ t.jsxs(r, { "data-slot": "dialog-portal", children: [
|
|
47
47
|
/* @__PURE__ */ t.jsx(d, {}),
|
|
@@ -53,7 +53,7 @@ function x({
|
|
|
53
53
|
"bg-background 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 top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
54
54
|
a
|
|
55
55
|
),
|
|
56
|
-
...
|
|
56
|
+
...l,
|
|
57
57
|
children: [
|
|
58
58
|
o,
|
|
59
59
|
n && /* @__PURE__ */ t.jsxs(
|
|
@@ -62,7 +62,7 @@ function x({
|
|
|
62
62
|
"data-slot": "dialog-close",
|
|
63
63
|
className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
64
64
|
children: [
|
|
65
|
-
/* @__PURE__ */ t.jsx(
|
|
65
|
+
/* @__PURE__ */ t.jsx(i, {}),
|
|
66
66
|
/* @__PURE__ */ t.jsx("span", { className: "sr-only", children: "Close" })
|
|
67
67
|
]
|
|
68
68
|
}
|
|
@@ -123,8 +123,8 @@ function v({
|
|
|
123
123
|
}
|
|
124
124
|
export {
|
|
125
125
|
u as D,
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
x as a,
|
|
127
|
+
m as b,
|
|
128
128
|
v as c,
|
|
129
129
|
j as d,
|
|
130
130
|
p as e,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./index-9HRzXEQf.cjs"),l=require("@radix-ui/react-dialog"),d=require("@phosphor-icons/react");function c(t){const o=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(o,s,n.get?n:{enumerable:!0,get:()=>t[s]})}}return o.default=t,Object.freeze(o)}const a=c(l);function u({...t}){return e.jsxRuntimeExports.jsx(a.Root,{"data-slot":"dialog",...t})}function g({...t}){return e.jsxRuntimeExports.jsx(a.Trigger,{"data-slot":"dialog-trigger",...t})}function i({...t}){return e.jsxRuntimeExports.jsx(a.Portal,{"data-slot":"dialog-portal",...t})}function x({...t}){return e.jsxRuntimeExports.jsx(a.Close,{"data-slot":"dialog-close",...t})}function r({className:t,...o}){return e.jsxRuntimeExports.jsx(a.Overlay,{"data-slot":"dialog-overlay",className:e.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-black/50",t),...o})}function p({className:t,children:o,showCloseButton:s=!0,...n}){return e.jsxRuntimeExports.jsxs(i,{"data-slot":"dialog-portal",children:[e.jsxRuntimeExports.jsx(r,{}),e.jsxRuntimeExports.jsxs(a.Content,{"data-slot":"dialog-content",className:e.cn("bg-background 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 top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...n,children:[o,s&&e.jsxRuntimeExports.jsxs(a.Close,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[e.jsxRuntimeExports.jsx(d.XIcon,{}),e.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function f({className:t,...o}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-header",className:e.cn("flex flex-col gap-2 text-left",t),...o})}function m({className:t,...o}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-footer",className:e.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...o})}function j({className:t,...o}){return e.jsxRuntimeExports.jsx(a.Title,{"data-slot":"dialog-title",className:e.cn("label-2xl font-semibold",t),...o})}function D({className:t,...o}){return e.jsxRuntimeExports.jsx(a.Description,{"data-slot":"dialog-description",className:e.cn("text-muted-foreground paragraph-md",t),...o})}exports.Dialog=u;exports.DialogClose=x;exports.DialogContent=p;exports.DialogDescription=D;exports.DialogFooter=m;exports.DialogHeader=f;exports.DialogOverlay=r;exports.DialogPortal=i;exports.DialogTitle=j;exports.DialogTrigger=g;
|