@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,55 +1,77 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import * as
|
|
1
|
+
import { j as a, c as n } from "../index-CwFDnnd3.js";
|
|
2
|
+
import * as i from "@radix-ui/react-slider";
|
|
3
3
|
import * as h from "react";
|
|
4
|
-
function
|
|
4
|
+
function b({
|
|
5
5
|
className: l,
|
|
6
|
-
defaultValue:
|
|
7
|
-
value:
|
|
8
|
-
min:
|
|
6
|
+
defaultValue: r,
|
|
7
|
+
value: t,
|
|
8
|
+
min: o = 0,
|
|
9
9
|
max: e = 100,
|
|
10
10
|
...s
|
|
11
11
|
}) {
|
|
12
12
|
const d = h.useMemo(
|
|
13
|
-
() => Array.isArray(
|
|
14
|
-
[
|
|
13
|
+
() => Array.isArray(t) ? t : Array.isArray(r) ? r : [o, e],
|
|
14
|
+
[t, r, o, e]
|
|
15
15
|
);
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
-
|
|
16
|
+
return /* @__PURE__ */ a.jsxs(
|
|
17
|
+
i.Root,
|
|
18
18
|
{
|
|
19
19
|
"data-slot": "slider",
|
|
20
|
-
defaultValue:
|
|
21
|
-
value:
|
|
22
|
-
min:
|
|
20
|
+
defaultValue: r,
|
|
21
|
+
value: t,
|
|
22
|
+
min: o,
|
|
23
23
|
max: e,
|
|
24
24
|
className: n(
|
|
25
|
-
|
|
25
|
+
`
|
|
26
|
+
relative flex w-full touch-none items-center select-none
|
|
27
|
+
data-disabled:opacity-50
|
|
28
|
+
data-[orientation=vertical]:h-full
|
|
29
|
+
data-[orientation=vertical]:min-h-44
|
|
30
|
+
data-[orientation=vertical]:w-auto
|
|
31
|
+
data-[orientation=vertical]:flex-col
|
|
32
|
+
`,
|
|
26
33
|
l
|
|
27
34
|
),
|
|
28
35
|
...s,
|
|
29
36
|
children: [
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
|
|
37
|
+
/* @__PURE__ */ a.jsx(
|
|
38
|
+
i.Track,
|
|
32
39
|
{
|
|
33
40
|
"data-slot": "slider-track",
|
|
34
41
|
className: n(
|
|
35
|
-
|
|
42
|
+
`
|
|
43
|
+
relative grow overflow-hidden rounded-full bg-muted
|
|
44
|
+
data-[orientation=horizontal]:h-1.5
|
|
45
|
+
data-[orientation=horizontal]:w-full
|
|
46
|
+
data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5
|
|
47
|
+
`
|
|
36
48
|
),
|
|
37
|
-
children: /* @__PURE__ */
|
|
38
|
-
|
|
49
|
+
children: /* @__PURE__ */ a.jsx(
|
|
50
|
+
i.Range,
|
|
39
51
|
{
|
|
40
52
|
"data-slot": "slider-range",
|
|
41
53
|
className: n(
|
|
42
|
-
|
|
54
|
+
`
|
|
55
|
+
absolute bg-primary
|
|
56
|
+
data-[orientation=horizontal]:h-full
|
|
57
|
+
data-[orientation=vertical]:w-full
|
|
58
|
+
`
|
|
43
59
|
)
|
|
44
60
|
}
|
|
45
61
|
)
|
|
46
62
|
}
|
|
47
63
|
),
|
|
48
|
-
Array.from({ length: d.length }, (
|
|
49
|
-
|
|
64
|
+
Array.from({ length: d.length }, (m, c) => /* @__PURE__ */ a.jsx(
|
|
65
|
+
i.Thumb,
|
|
50
66
|
{
|
|
51
67
|
"data-slot": "slider-thumb",
|
|
52
|
-
className:
|
|
68
|
+
className: `\r
|
|
69
|
+
block size-4 shrink-0 rounded-full border bg-background shadow-sm\r
|
|
70
|
+
ring-ring/50 transition-[color,box-shadow]\r
|
|
71
|
+
hover:ring-4\r
|
|
72
|
+
focus-visible:ring-4 focus-visible:outline-hidden\r
|
|
73
|
+
disabled:pointer-events-none disabled:opacity-50\r
|
|
74
|
+
`
|
|
53
75
|
},
|
|
54
76
|
c
|
|
55
77
|
))
|
|
@@ -58,5 +80,5 @@ function u({
|
|
|
58
80
|
);
|
|
59
81
|
}
|
|
60
82
|
export {
|
|
61
|
-
|
|
83
|
+
b as Slider
|
|
62
84
|
};
|
|
@@ -1 +1,15 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../index-Bfismeyo.cjs"),i=require("@phosphor-icons/react"),v=require("react"),S=require("sonner"),w=require("../clasing-icon-CHt2Otn8.cjs");function k(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return o.default=e,Object.freeze(o)}const m=k(v);var E=(e,o,n,s,u,c,g,f)=>{let a=document.documentElement,x=["light","dark"];function l(t){(Array.isArray(e)?e:[e]).forEach(d=>{let p=d==="class",h=p&&c?u.map(b=>c[b]||b):u;p?(a.classList.remove(...h),a.classList.add(c&&c[t]?c[t]:t)):a.setAttribute(d,t)}),y(t)}function y(t){f&&x.includes(t)&&(a.style.colorScheme=t)}function j(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)l(s);else try{let t=localStorage.getItem(o)||n,d=g&&t==="system"?j():t;l(d)}catch{}},I=m.createContext(void 0),N={setTheme:e=>{},themes:[]},R=()=>{var e;return(e=m.useContext(I))!=null?e:N};m.memo(({forcedTheme:e,storageKey:o,attribute:n,enableSystem:s,enableColorScheme:u,defaultTheme:c,value:g,themes:f,nonce:a,scriptProps:x})=>{let l=JSON.stringify([n,o,c,e,f,g,s,u]).slice(1,-1);return m.createElement("script",{...x,suppressHydrationWarning:!0,nonce:typeof window>"u"?a:"",dangerouslySetInnerHTML:{__html:`(${E.toString()})(${l})`}})});const z=({...e})=>{const{theme:o="system"}=R();return r.jsxRuntimeExports.jsx(S.Toaster,{theme:o,className:"toaster group",toastOptions:{classNames:{toast:r.cn("rounded-2xl!"),description:r.cn("text-muted-foreground!"),actionButton:r.cn("rounded-full! bg-primary!"),info:r.cn(`
|
|
2
|
+
border-info-foreground/30! bg-info/50! text-info-foreground!
|
|
3
|
+
backdrop-blur-2xl
|
|
4
|
+
`),success:r.cn(`
|
|
5
|
+
border-success-foreground/30! bg-success/50!
|
|
6
|
+
text-success-foreground! backdrop-blur-2xl
|
|
7
|
+
`),warning:r.cn(`
|
|
8
|
+
border-warning-foreground/30! bg-warning/50!
|
|
9
|
+
text-warning-foreground! backdrop-blur-2xl
|
|
10
|
+
`),error:r.cn(`
|
|
11
|
+
border-destructive-foreground/30! bg-destructive/50!
|
|
12
|
+
text-destructive-foreground! backdrop-blur-2xl
|
|
13
|
+
`),cancelButton:r.cn(`
|
|
14
|
+
rounded-full! bg-secondary! text-secondary-foreground!
|
|
15
|
+
`),closeButton:r.cn("rounded-full! border-border! bg-muted! text-muted-foreground!"),icon:r.cn("mt-0.5 size-4.5 self-start")}},icons:{error:r.jsxRuntimeExports.jsx(i.WarningCircleIcon,{className:"size-4.5"}),info:r.jsxRuntimeExports.jsx(i.InfoIcon,{className:"size-4.5"}),success:r.jsxRuntimeExports.jsx(i.CheckCircleIcon,{className:"size-4.5"}),warning:r.jsxRuntimeExports.jsx(i.WarningIcon,{className:"size-4.5"}),loading:r.jsxRuntimeExports.jsx(w.ClasingIcon,{className:"size-4 animate-spin"}),close:r.jsxRuntimeExports.jsx(i.XIcon,{className:"size-3"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};exports.Toaster=z;
|
|
@@ -1,67 +1,93 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { j as s, c as o } from "../index-CwFDnnd3.js";
|
|
2
|
+
import { XIcon as w, WarningIcon as j, CheckCircleIcon as k, InfoIcon as I, WarningCircleIcon as N } from "@phosphor-icons/react";
|
|
3
|
+
import * as u from "react";
|
|
4
|
+
import { Toaster as z } from "sonner";
|
|
5
|
+
import { C } from "../clasing-icon-CJQQN554.js";
|
|
6
|
+
var S = (r, a, m, c, i, t, g, f) => {
|
|
7
|
+
let n = document.documentElement, p = ["light", "dark"];
|
|
8
|
+
function l(e) {
|
|
9
|
+
(Array.isArray(r) ? r : [r]).forEach((d) => {
|
|
10
|
+
let b = d === "class", v = b && t ? i.map((x) => t[x] || x) : i;
|
|
11
|
+
b ? (n.classList.remove(...v), n.classList.add(t && t[e] ? t[e] : e)) : n.setAttribute(d, e);
|
|
12
|
+
}), h(e);
|
|
11
13
|
}
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
+
function h(e) {
|
|
15
|
+
f && p.includes(e) && (n.style.colorScheme = e);
|
|
14
16
|
}
|
|
15
|
-
function
|
|
17
|
+
function y() {
|
|
16
18
|
return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
17
19
|
}
|
|
18
|
-
if (
|
|
20
|
+
if (c) l(c);
|
|
19
21
|
else try {
|
|
20
|
-
let e = localStorage.getItem(
|
|
21
|
-
|
|
22
|
+
let e = localStorage.getItem(a) || m, d = g && e === "system" ? y() : e;
|
|
23
|
+
l(d);
|
|
22
24
|
} catch {
|
|
23
25
|
}
|
|
24
|
-
}, T =
|
|
25
|
-
}, themes: [] },
|
|
26
|
-
var
|
|
27
|
-
return (
|
|
26
|
+
}, T = u.createContext(void 0), E = { setTheme: (r) => {
|
|
27
|
+
}, themes: [] }, A = () => {
|
|
28
|
+
var r;
|
|
29
|
+
return (r = u.useContext(T)) != null ? r : E;
|
|
28
30
|
};
|
|
29
|
-
|
|
30
|
-
let
|
|
31
|
-
return
|
|
31
|
+
u.memo(({ forcedTheme: r, storageKey: a, attribute: m, enableSystem: c, enableColorScheme: i, defaultTheme: t, value: g, themes: f, nonce: n, scriptProps: p }) => {
|
|
32
|
+
let l = JSON.stringify([m, a, t, r, f, g, c, i]).slice(1, -1);
|
|
33
|
+
return u.createElement("script", { ...p, suppressHydrationWarning: !0, nonce: typeof window > "u" ? n : "", dangerouslySetInnerHTML: { __html: `(${S.toString()})(${l})` } });
|
|
32
34
|
});
|
|
33
|
-
const
|
|
34
|
-
const { theme:
|
|
35
|
-
return /* @__PURE__ */
|
|
36
|
-
|
|
35
|
+
const W = ({ ...r }) => {
|
|
36
|
+
const { theme: a = "system" } = A();
|
|
37
|
+
return /* @__PURE__ */ s.jsx(
|
|
38
|
+
z,
|
|
37
39
|
{
|
|
38
|
-
theme:
|
|
40
|
+
theme: a,
|
|
39
41
|
className: "toaster group",
|
|
40
42
|
toastOptions: {
|
|
41
43
|
classNames: {
|
|
42
|
-
toast: "rounded-2xl!",
|
|
43
|
-
description: "text-muted-foreground!",
|
|
44
|
-
actionButton: "
|
|
45
|
-
info:
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
toast: o("rounded-2xl!"),
|
|
45
|
+
description: o("text-muted-foreground!"),
|
|
46
|
+
actionButton: o("rounded-full! bg-primary!"),
|
|
47
|
+
info: o(`
|
|
48
|
+
border-info-foreground/30! bg-info/50! text-info-foreground!
|
|
49
|
+
backdrop-blur-2xl
|
|
50
|
+
`),
|
|
51
|
+
success: o(
|
|
52
|
+
`
|
|
53
|
+
border-success-foreground/30! bg-success/50!
|
|
54
|
+
text-success-foreground! backdrop-blur-2xl
|
|
55
|
+
`
|
|
48
56
|
),
|
|
49
|
-
warning:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
57
|
+
warning: o(`
|
|
58
|
+
border-warning-foreground/30! bg-warning/50!
|
|
59
|
+
text-warning-foreground! backdrop-blur-2xl
|
|
60
|
+
`),
|
|
61
|
+
error: o(`
|
|
62
|
+
border-destructive-foreground/30! bg-destructive/50!
|
|
63
|
+
text-destructive-foreground! backdrop-blur-2xl
|
|
64
|
+
`),
|
|
65
|
+
cancelButton: o(`
|
|
66
|
+
rounded-full! bg-secondary! text-secondary-foreground!
|
|
67
|
+
`),
|
|
68
|
+
closeButton: o(
|
|
69
|
+
"rounded-full! border-border! bg-muted! text-muted-foreground!"
|
|
70
|
+
),
|
|
71
|
+
icon: o("mt-0.5 size-4.5 self-start")
|
|
54
72
|
}
|
|
55
73
|
},
|
|
74
|
+
icons: {
|
|
75
|
+
error: /* @__PURE__ */ s.jsx(N, { className: "size-4.5" }),
|
|
76
|
+
info: /* @__PURE__ */ s.jsx(I, { className: "size-4.5" }),
|
|
77
|
+
success: /* @__PURE__ */ s.jsx(k, { className: "size-4.5" }),
|
|
78
|
+
warning: /* @__PURE__ */ s.jsx(j, { className: "size-4.5" }),
|
|
79
|
+
loading: /* @__PURE__ */ s.jsx(C, { className: "size-4 animate-spin" }),
|
|
80
|
+
close: /* @__PURE__ */ s.jsx(w, { className: "size-3" })
|
|
81
|
+
},
|
|
56
82
|
style: {
|
|
57
83
|
"--normal-bg": "var(--popover)",
|
|
58
84
|
"--normal-text": "var(--popover-foreground)",
|
|
59
85
|
"--normal-border": "var(--border)"
|
|
60
86
|
},
|
|
61
|
-
...
|
|
87
|
+
...r
|
|
62
88
|
}
|
|
63
89
|
);
|
|
64
90
|
};
|
|
65
91
|
export {
|
|
66
|
-
|
|
92
|
+
W as Toaster
|
|
67
93
|
};
|
|
@@ -1 +1,19 @@
|
|
|
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-Bfismeyo.cjs"),d=require("../index-BmhzhLcV.cjs"),o=require("react"),m=d.cva(`
|
|
2
|
+
inline-flex shrink-0 cursor-pointer items-center rounded-full border
|
|
3
|
+
bg-background transition-colors
|
|
4
|
+
focus-visible:ring-[1.5px] focus-visible:ring-ring-default
|
|
5
|
+
focus-visible:ring-offset-1 focus-visible:outline-hidden
|
|
6
|
+
disabled:cursor-not-allowed disabled:opacity-50
|
|
7
|
+
data-[state=checked]:bg-primary
|
|
8
|
+
data-[state=unchecked]:bg-background
|
|
9
|
+
`,{variants:{switchSize:{sm:"h-[18px] w-8",md:"h-[22px] w-11"}},defaultVariants:{switchSize:"md"}}),g=d.cva(`
|
|
10
|
+
pointer-events-none block rounded-full ring-0 transition-transform
|
|
11
|
+
data-[state=checked]:bg-white
|
|
12
|
+
data-[state=unchecked]:translate-x-px data-[state=unchecked]:bg-muted
|
|
13
|
+
`,{variants:{switchSize:{sm:`
|
|
14
|
+
h-3.5 w-3.5
|
|
15
|
+
data-[state=checked]:translate-x-[15px]
|
|
16
|
+
`,md:`
|
|
17
|
+
h-[18px] w-[18px]
|
|
18
|
+
data-[state=checked]:translate-x-[23px]
|
|
19
|
+
`}},defaultVariants:{switchSize:"md"}}),l=o.forwardRef(({className:h,defaultChecked:u,checked:a,onCheckedChange:k,disabled:s,switchSize:c,...f},p)=>{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),k?.(e)},w=e=>{(e.key===" "||e.key==="Enter")&&(e.preventDefault(),r())};return n.jsxRuntimeExports.jsx("button",{ref:p,type:"button",role:"switch","aria-checked":t,"data-state":t?"checked":"unchecked",onClick:r,onKeyDown:w,disabled:s,className:n.cn(m({switchSize:c,className:h})),...f,children:n.jsxRuntimeExports.jsx("span",{"data-state":t?"checked":"unchecked",className:g({switchSize:c})})})});l.displayName="Switch";exports.Switch=l;
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
import { j as o, c as
|
|
2
|
-
import { c as r } from "../index-
|
|
1
|
+
import { j as o, c as w } from "../index-CwFDnnd3.js";
|
|
2
|
+
import { c as r } from "../index-CnqageB2.js";
|
|
3
3
|
import { forwardRef as b, useState as x } from "react";
|
|
4
4
|
const g = r(
|
|
5
|
-
|
|
5
|
+
`
|
|
6
|
+
inline-flex shrink-0 cursor-pointer items-center rounded-full border
|
|
7
|
+
bg-background transition-colors
|
|
8
|
+
focus-visible:ring-[1.5px] focus-visible:ring-ring-default
|
|
9
|
+
focus-visible:ring-offset-1 focus-visible:outline-hidden
|
|
10
|
+
disabled:cursor-not-allowed disabled:opacity-50
|
|
11
|
+
data-[state=checked]:bg-primary
|
|
12
|
+
data-[state=unchecked]:bg-background
|
|
13
|
+
`,
|
|
6
14
|
{
|
|
7
15
|
variants: {
|
|
8
16
|
switchSize: {
|
|
@@ -15,12 +23,22 @@ const g = r(
|
|
|
15
23
|
}
|
|
16
24
|
}
|
|
17
25
|
), v = r(
|
|
18
|
-
|
|
26
|
+
`
|
|
27
|
+
pointer-events-none block rounded-full ring-0 transition-transform
|
|
28
|
+
data-[state=checked]:bg-white
|
|
29
|
+
data-[state=unchecked]:translate-x-px data-[state=unchecked]:bg-muted
|
|
30
|
+
`,
|
|
19
31
|
{
|
|
20
32
|
variants: {
|
|
21
33
|
switchSize: {
|
|
22
|
-
sm:
|
|
23
|
-
|
|
34
|
+
sm: `
|
|
35
|
+
h-3.5 w-3.5
|
|
36
|
+
data-[state=checked]:translate-x-[15px]
|
|
37
|
+
`,
|
|
38
|
+
md: `
|
|
39
|
+
h-[18px] w-[18px]
|
|
40
|
+
data-[state=checked]:translate-x-[23px]
|
|
41
|
+
`
|
|
24
42
|
}
|
|
25
43
|
},
|
|
26
44
|
defaultVariants: {
|
|
@@ -37,13 +55,13 @@ const g = r(
|
|
|
37
55
|
switchSize: n,
|
|
38
56
|
...u
|
|
39
57
|
}, f) => {
|
|
40
|
-
const [k,
|
|
58
|
+
const [k, m] = x(
|
|
41
59
|
h || !1
|
|
42
60
|
), c = a !== void 0, t = c ? a : k, i = () => {
|
|
43
61
|
if (s) return;
|
|
44
62
|
const e = !t;
|
|
45
|
-
c ||
|
|
46
|
-
},
|
|
63
|
+
c || m(e), l?.(e);
|
|
64
|
+
}, p = (e) => {
|
|
47
65
|
(e.key === " " || e.key === "Enter") && (e.preventDefault(), i());
|
|
48
66
|
};
|
|
49
67
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -55,9 +73,9 @@ const g = r(
|
|
|
55
73
|
"aria-checked": t,
|
|
56
74
|
"data-state": t ? "checked" : "unchecked",
|
|
57
75
|
onClick: i,
|
|
58
|
-
onKeyDown:
|
|
76
|
+
onKeyDown: p,
|
|
59
77
|
disabled: s,
|
|
60
|
-
className:
|
|
78
|
+
className: w(
|
|
61
79
|
g({
|
|
62
80
|
switchSize: n,
|
|
63
81
|
className: d
|
|
@@ -1 +1,20 @@
|
|
|
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,...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("w-full caption-bottom paragraph-sm",t),...a})})}function r({className:t,...a}){return e.jsxRuntimeExports.jsx("thead",{"data-slot":"table-header",className:e.cn("[&_tr]:border-b",t),...a})}function l({className:t,...a}){return e.jsxRuntimeExports.jsx("tbody",{"data-slot":"table-body",className:e.cn(`
|
|
2
|
+
text-foreground
|
|
3
|
+
[&_tr:last-child]:border-0
|
|
4
|
+
`,t),...a})}function s({className:t,...a}){return e.jsxRuntimeExports.jsx("tfoot",{"data-slot":"table-footer",className:e.cn(`
|
|
5
|
+
border-t bg-muted/50 font-semibold
|
|
6
|
+
[&>tr]:last:border-b-0
|
|
7
|
+
`,t),...a})}function n({className:t,...a}){return e.jsxRuntimeExports.jsx("tr",{"data-slot":"table-row",className:e.cn(`
|
|
8
|
+
border-b transition-colors
|
|
9
|
+
hover:bg-muted/50
|
|
10
|
+
data-[state=selected]:bg-muted
|
|
11
|
+
`,t),...a})}function b({className:t,...a}){return e.jsxRuntimeExports.jsx("th",{"data-slot":"table-head",className:e.cn(`
|
|
12
|
+
h-10 px-2 text-left align-middle font-semibold whitespace-nowrap
|
|
13
|
+
text-foreground
|
|
14
|
+
[&:has([role=checkbox])]:pr-0
|
|
15
|
+
*:[[role=checkbox]]:translate-y-[2px]
|
|
16
|
+
`,t),...a})}function c({className:t,...a}){return e.jsxRuntimeExports.jsx("td",{"data-slot":"table-cell",className:e.cn(`
|
|
17
|
+
p-2 align-middle whitespace-nowrap
|
|
18
|
+
[&:has([role=checkbox])]:pr-0
|
|
19
|
+
*:[[role=checkbox]]:translate-y-[2px]
|
|
20
|
+
`,t),...a})}function d({className:t,...a}){return e.jsxRuntimeExports.jsx("caption",{"data-slot":"table-caption",className:e.cn("mt-4 paragraph-sm text-muted-foreground",t),...a})}exports.Table=o;exports.TableBody=l;exports.TableCaption=d;exports.TableCell=c;exports.TableFooter=s;exports.TableHead=b;exports.TableHeader=r;exports.TableRow=n;
|
|
@@ -1,108 +1,130 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
function
|
|
3
|
-
return /* @__PURE__ */
|
|
1
|
+
import { j as a, c as o } from "../index-CwFDnnd3.js";
|
|
2
|
+
function l({ className: t, ...e }) {
|
|
3
|
+
return /* @__PURE__ */ a.jsx(
|
|
4
4
|
"div",
|
|
5
5
|
{
|
|
6
6
|
"data-slot": "table-container",
|
|
7
7
|
className: "relative w-full overflow-x-auto",
|
|
8
|
-
children: /* @__PURE__ */
|
|
8
|
+
children: /* @__PURE__ */ a.jsx(
|
|
9
9
|
"table",
|
|
10
10
|
{
|
|
11
11
|
"data-slot": "table",
|
|
12
|
-
className: o("
|
|
13
|
-
...
|
|
12
|
+
className: o("w-full caption-bottom paragraph-sm", t),
|
|
13
|
+
...e
|
|
14
14
|
}
|
|
15
15
|
)
|
|
16
16
|
}
|
|
17
17
|
);
|
|
18
18
|
}
|
|
19
|
-
function s({ className: t, ...
|
|
20
|
-
return /* @__PURE__ */
|
|
19
|
+
function s({ className: t, ...e }) {
|
|
20
|
+
return /* @__PURE__ */ a.jsx(
|
|
21
21
|
"thead",
|
|
22
22
|
{
|
|
23
23
|
"data-slot": "table-header",
|
|
24
24
|
className: o("[&_tr]:border-b", t),
|
|
25
|
-
...
|
|
25
|
+
...e
|
|
26
26
|
}
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
|
-
function n({ className: t, ...
|
|
30
|
-
return /* @__PURE__ */
|
|
29
|
+
function n({ className: t, ...e }) {
|
|
30
|
+
return /* @__PURE__ */ a.jsx(
|
|
31
31
|
"tbody",
|
|
32
32
|
{
|
|
33
33
|
"data-slot": "table-body",
|
|
34
|
-
className: o(
|
|
35
|
-
|
|
34
|
+
className: o(
|
|
35
|
+
`
|
|
36
|
+
text-foreground
|
|
37
|
+
[&_tr:last-child]:border-0
|
|
38
|
+
`,
|
|
39
|
+
t
|
|
40
|
+
),
|
|
41
|
+
...e
|
|
36
42
|
}
|
|
37
43
|
);
|
|
38
44
|
}
|
|
39
|
-
function d({ className: t, ...
|
|
40
|
-
return /* @__PURE__ */
|
|
45
|
+
function d({ className: t, ...e }) {
|
|
46
|
+
return /* @__PURE__ */ a.jsx(
|
|
41
47
|
"tfoot",
|
|
42
48
|
{
|
|
43
49
|
"data-slot": "table-footer",
|
|
44
50
|
className: o(
|
|
45
|
-
|
|
51
|
+
`
|
|
52
|
+
border-t bg-muted/50 font-semibold
|
|
53
|
+
[&>tr]:last:border-b-0
|
|
54
|
+
`,
|
|
46
55
|
t
|
|
47
56
|
),
|
|
48
|
-
...
|
|
57
|
+
...e
|
|
49
58
|
}
|
|
50
59
|
);
|
|
51
60
|
}
|
|
52
|
-
function b({ className: t, ...
|
|
53
|
-
return /* @__PURE__ */
|
|
61
|
+
function b({ className: t, ...e }) {
|
|
62
|
+
return /* @__PURE__ */ a.jsx(
|
|
54
63
|
"tr",
|
|
55
64
|
{
|
|
56
65
|
"data-slot": "table-row",
|
|
57
66
|
className: o(
|
|
58
|
-
|
|
67
|
+
`
|
|
68
|
+
border-b transition-colors
|
|
69
|
+
hover:bg-muted/50
|
|
70
|
+
data-[state=selected]:bg-muted
|
|
71
|
+
`,
|
|
59
72
|
t
|
|
60
73
|
),
|
|
61
|
-
...
|
|
74
|
+
...e
|
|
62
75
|
}
|
|
63
76
|
);
|
|
64
77
|
}
|
|
65
|
-
function c({ className: t, ...
|
|
66
|
-
return /* @__PURE__ */
|
|
78
|
+
function c({ className: t, ...e }) {
|
|
79
|
+
return /* @__PURE__ */ a.jsx(
|
|
67
80
|
"th",
|
|
68
81
|
{
|
|
69
82
|
"data-slot": "table-head",
|
|
70
83
|
className: o(
|
|
71
|
-
|
|
84
|
+
`
|
|
85
|
+
h-10 px-2 text-left align-middle font-semibold whitespace-nowrap
|
|
86
|
+
text-foreground
|
|
87
|
+
[&:has([role=checkbox])]:pr-0
|
|
88
|
+
*:[[role=checkbox]]:translate-y-[2px]
|
|
89
|
+
`,
|
|
72
90
|
t
|
|
73
91
|
),
|
|
74
|
-
...
|
|
92
|
+
...e
|
|
75
93
|
}
|
|
76
94
|
);
|
|
77
95
|
}
|
|
78
|
-
function i({ className: t, ...
|
|
79
|
-
return /* @__PURE__ */
|
|
96
|
+
function i({ className: t, ...e }) {
|
|
97
|
+
return /* @__PURE__ */ a.jsx(
|
|
80
98
|
"td",
|
|
81
99
|
{
|
|
82
100
|
"data-slot": "table-cell",
|
|
83
101
|
className: o(
|
|
84
|
-
|
|
102
|
+
`
|
|
103
|
+
p-2 align-middle whitespace-nowrap
|
|
104
|
+
[&:has([role=checkbox])]:pr-0
|
|
105
|
+
*:[[role=checkbox]]:translate-y-[2px]
|
|
106
|
+
`,
|
|
85
107
|
t
|
|
86
108
|
),
|
|
87
|
-
...
|
|
109
|
+
...e
|
|
88
110
|
}
|
|
89
111
|
);
|
|
90
112
|
}
|
|
91
113
|
function u({
|
|
92
114
|
className: t,
|
|
93
|
-
...
|
|
115
|
+
...e
|
|
94
116
|
}) {
|
|
95
|
-
return /* @__PURE__ */
|
|
117
|
+
return /* @__PURE__ */ a.jsx(
|
|
96
118
|
"caption",
|
|
97
119
|
{
|
|
98
120
|
"data-slot": "table-caption",
|
|
99
|
-
className: o("
|
|
100
|
-
...
|
|
121
|
+
className: o("mt-4 paragraph-sm text-muted-foreground", t),
|
|
122
|
+
...e
|
|
101
123
|
}
|
|
102
124
|
);
|
|
103
125
|
}
|
|
104
126
|
export {
|
|
105
|
-
|
|
127
|
+
l as Table,
|
|
106
128
|
n as TableBody,
|
|
107
129
|
u as TableCaption,
|
|
108
130
|
i as TableCell,
|
|
@@ -1 +1,22 @@
|
|
|
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"),c=require("../index-BmhzhLcV.cjs"),d=c.cva(`
|
|
2
|
+
flex w-full min-w-0 rounded-md border border-input bg-transparent
|
|
3
|
+
transition-[color,box-shadow] outline-none
|
|
4
|
+
selection:bg-primary selection:text-primary-foreground
|
|
5
|
+
placeholder:text-muted-foreground
|
|
6
|
+
disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50
|
|
7
|
+
dark:bg-input/30
|
|
8
|
+
`,{variants:{size:{xs:"min-h-16 px-2 py-1 label-sm",sm:"min-h-20 px-2 py-1 label-md",md:"min-h-24 px-3 py-2 label-lg",lg:"min-h-32 px-4 py-3 label-xl"},resize:{none:"resize-none",vertical:"resize-y",horizontal:"resize-x",both:"resize"}},defaultVariants:{size:"md",resize:"vertical"}});function x({className:n,size:a,resize:o,icon:i,maxLength:r,showCharacterCount:u=!1,...t}){const s=t.value?String(t.value).length:0,l=u||r;return!i&&!l?e.jsxRuntimeExports.jsx("textarea",{"data-slot":"textarea",maxLength:r,className:e.cn(d({size:a,resize:o}),`
|
|
9
|
+
focus-visible:border-ring focus-visible:ring-[3px]
|
|
10
|
+
focus-visible:ring-ring
|
|
11
|
+
`,`
|
|
12
|
+
aria-invalid:border-destructive-foreground
|
|
13
|
+
aria-invalid:ring-destructive-foreground/20
|
|
14
|
+
dark:aria-invalid:ring-destructive-foreground/40
|
|
15
|
+
`,n),...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(d({size:a,resize:o}),`
|
|
16
|
+
focus-visible:border-ring focus-visible:ring-[3px]
|
|
17
|
+
focus-visible:ring-ring
|
|
18
|
+
`,`
|
|
19
|
+
aria-invalid:border-destructive-foreground
|
|
20
|
+
aria-invalid:ring-destructive-foreground/20
|
|
21
|
+
dark:aria-invalid:ring-destructive-foreground/40
|
|
22
|
+
`,i?"pr-10":"",n),...t}),i&&i]}),l&&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;
|