@clasing/ui 2.0.4 → 2.0.5
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-B_J-uqVk.js → badge-DgjaD6g5.js} +5 -5
- package/dist/{badge-BMe7WNGM.cjs → badge-DuEEk3J_.cjs} +1 -1
- package/dist/{button-DPbsJTTm.js → button-D8hlW1CJ.js} +103 -103
- package/dist/button-U1793OQ4.cjs +1 -0
- package/dist/{card-DiFJZ6gb.cjs → card-BJMc0row.cjs} +1 -1
- package/dist/{card-3-vRPTXr.js → card-DPaMJS2f.js} +1 -1
- package/dist/{chip-wy9RL5iU.js → chip-C5OWe3FG.js} +16 -16
- package/dist/chip-CXa6E8Cf.cjs +1 -0
- package/dist/command-B7wbtmbM.cjs +1 -0
- package/dist/{command-DTwO6Xc5.js → command-RWDkdfba.js} +64 -64
- package/dist/components/accordion.cjs.js +1 -1
- package/dist/components/accordion.es.js +15 -15
- 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.es.js +20 -20
- package/dist/components/avatar.cjs.js +1 -1
- package/dist/components/avatar.es.js +9 -9
- package/dist/components/badge.cjs.js +1 -1
- package/dist/components/badge.es.js +1 -1
- package/dist/components/blocks/interactive-card.cjs.js +1 -1
- package/dist/components/blocks/interactive-card.es.js +37 -37
- package/dist/components/blocks/selectable-chips.cjs.js +1 -1
- package/dist/components/blocks/selectable-chips.es.js +10 -10
- package/dist/components/breadcrumb.cjs.js +1 -1
- package/dist/components/breadcrumb.es.js +6 -6
- package/dist/components/button.cjs.js +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar.cjs.js +1 -1
- package/dist/components/calendar.es.js +5 -5
- package/dist/components/card.cjs.js +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/chart.cjs.js +2 -2
- package/dist/components/chart.es.js +2 -2
- package/dist/components/checkbox.cjs.js +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/chip.cjs.js +1 -1
- package/dist/components/chip.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 +7 -7
- package/dist/components/dialog.cjs.js +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/drawer.cjs.js +1 -1
- package/dist/components/drawer.es.js +30 -30
- package/dist/components/dropdown-menu.cjs.js +1 -1
- package/dist/components/dropdown-menu.es.js +7 -7
- package/dist/components/form.cjs.js +1 -1
- package/dist/components/form.es.js +3 -3
- package/dist/components/icon-component.cjs.js +1 -1
- package/dist/components/icon-component.es.js +1 -1
- package/dist/components/input-otp.cjs.js +1 -1
- package/dist/components/input-otp.es.js +2 -2
- package/dist/components/input.cjs.js +1 -1
- 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 +8 -8
- package/dist/components/multi-select.cjs.js +1 -1
- package/dist/components/multi-select.es.js +8 -8
- package/dist/components/navigation-menu.cjs.js +1 -1
- package/dist/components/navigation-menu.es.js +3 -3
- package/dist/components/phone-input.cjs.js +1 -1
- package/dist/components/phone-input.es.js +39 -39
- package/dist/components/resizable.cjs.js +1 -1
- package/dist/components/resizable.es.js +1 -1
- package/dist/components/select.cjs.js +1 -1
- package/dist/components/select.es.js +7 -7
- package/dist/components/sheet.cjs.js +1 -1
- package/dist/components/sheet.es.js +2 -2
- package/dist/components/table.cjs.js +1 -1
- package/dist/components/table.es.js +28 -28
- package/dist/components/textarea.cjs.js +1 -1
- package/dist/components/textarea.es.js +17 -17
- package/dist/components/toggle-group.cjs.js +1 -1
- package/dist/components/toggle-group.es.js +1 -1
- 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-D9ZObHR9.js → dialog-BSEMFrzb.js} +7 -7
- package/dist/{dialog-CMSUa1RD.cjs → dialog-aYmcf_6q.cjs} +1 -1
- package/dist/icon-component-4lyl8wE_.cjs +1 -0
- package/dist/{icon-component-CxQsODCa.js → icon-component-Db_44zX2.js} +2 -2
- package/dist/{input-C71fsEVP.js → input-CUpmfQgR.js} +24 -24
- package/dist/input-belq5zLm.cjs +1 -0
- package/dist/label-CKObiJEl.js +22 -0
- package/dist/{label-U5GnYvFO.cjs → label-RxaHfl3U.cjs} +1 -1
- package/dist/{toggle-BE4UelY4.js → toggle-DkQSX3ux.js} +5 -5
- package/dist/toggle-v18XjPC4.cjs +1 -0
- package/dist/{tooltip-Bxh10S4Q.js → tooltip-DgWl3klK.js} +1 -1
- package/dist/tooltip-__VfWmJD.cjs +1 -0
- package/dist/ui.css +692 -688
- package/package.json +357 -357
- package/dist/button-DcyXjceS.cjs +0 -1
- package/dist/chip-BCFqRgCq.cjs +0 -1
- package/dist/command-KZ-02POP.cjs +0 -1
- package/dist/icon-component-D5YssRbR.cjs +0 -1
- package/dist/input-B_INrEy1.cjs +0 -1
- package/dist/label-_kG7WBoJ.js +0 -22
- package/dist/toggle-BEGyyGWY.cjs +0 -1
- package/dist/tooltip-BRSR0-4n.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../jsx-runtime-BuHQgaKs.cjs"),c=require("../command-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../jsx-runtime-BuHQgaKs.cjs"),c=require("../command-B7wbtmbM.cjs"),S=require("../input-belq5zLm.cjs"),f=require("../popover-4V87msIT.cjs"),I=require("../scroll-area-hg-bGoRe.cjs"),m=require("../index-DoxiiusW.cjs"),q=require("react"),w=require("react-phone-number-input"),P=require("react-phone-number-input/flags"),O=require("react-phone-number-input/locale/en"),_=require("react-phone-number-input/locale/es"),T=require("react-phone-number-input/locale/fr"),b=require("../icon-component-4lyl8wE_.cjs");function R(n){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const o in n)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(n,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>n[o]})}}return t.default=n,Object.freeze(t)}const d=R(q),y=R(w),C=d.forwardRef(({className:n,onChange:t,value:o,size:r="md",rounded:s="default",locale:l="en",...i},p)=>e.jsxRuntimeExports.jsx(y.default,{ref:p,className:m.cn("flex",n),flagComponent:j,countrySelectComponent:k,inputComponent:E,smartCaret:!1,labels:l==="es"?_:l==="fr"?T:O,value:o||void 0,onChange:u=>t?.(u||""),countrySelectProps:{size:r,rounded:s},numberInputProps:{size:r,rounded:s},...i}));C.displayName="PhoneInput";const E=d.forwardRef(({className:n,rounded:t="default",error:o,touched:r,size:s,...l},i)=>{const{"data-country":p,...u}=l;return e.jsxRuntimeExports.jsx(S.Input,{size:s,className:m.cn("w-full",{"border-destructive":o&&r,"border-blue-800":r&&!o,"rounded-s-none rounded-e-lg":t!=="full","rounded-s-none rounded-e-full":t==="full","rounded-e-sm":s==="sm","rounded-e-md":s==="md","rounded-e-lg":s==="lg"},n),...u,ref:i})});E.displayName="InputComponent";const k=({disabled:n,value:t,options:o,onChange:r,size:s="md",rounded:l="default",error:i,touched:p})=>{const u=d.useRef(null),[v,g]=d.useState(""),[N,h]=d.useState(!1);return e.jsxRuntimeExports.jsxs(f.Popover,{open:N,modal:!0,onOpenChange:a=>{h(a),a&&g("")},children:[e.jsxRuntimeExports.jsx(f.PopoverTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsxs("button",{type:"button",className:m.cn("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 file:paragraph-sm md:paragraph-sm paragraph-md flex w-fit min-w-0 items-center justify-center border border-r-0 bg-transparent transition-[color,box-shadow] outline-none file:inline-flex file:border-0 file:bg-transparent file:font-semibold focus-visible:z-1 focus-visible:ring-[3px] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",l==="default"?"rounded-e-none":"rounded-s-full rounded-e-none",{"outline-destructive":i&&p,"outline-blue-800":p&&!i,"label-md h-8 rounded-s-sm px-2 py-1":s==="sm","label-lg h-12 rounded-s-md px-3 py-1":s==="md","label-xl h-16 rounded-s-lg px-4 py-2":s==="lg"}),disabled:n,children:[e.jsxRuntimeExports.jsx(j,{country:t,countryName:t,disabled:n}),e.jsxRuntimeExports.jsx(b.IconComponent,{iconName:"IconChevronDown",className:m.cn("-mr-2 size-4 opacity-50",n?"hidden":"opacity-100")})]})}),e.jsxRuntimeExports.jsx(f.PopoverContent,{className:"w-[300px] p-0",children:e.jsxRuntimeExports.jsxs(c.Command,{children:[e.jsxRuntimeExports.jsx(c.CommandInput,{value:v,onValueChange:a=>{g(a),setTimeout(()=>{if(u.current){const x=u.current.querySelector("[data-radix-scroll-area-viewport]");x&&(x.scrollTop=0)}},0)},placeholder:"Search country..."}),e.jsxRuntimeExports.jsx(c.CommandList,{children:e.jsxRuntimeExports.jsxs(I.ScrollArea,{ref:u,className:"h-72",children:[e.jsxRuntimeExports.jsx(c.CommandEmpty,{children:"No country found."}),e.jsxRuntimeExports.jsx(c.CommandGroup,{children:o.map(({value:a,label:x})=>a?e.jsxRuntimeExports.jsx(A,{country:a,countryName:x,selectedCountry:t,onChange:r,onSelectComplete:()=>h(!1)},a):null)})]})})]})})]})},A=({country:n,countryName:t,selectedCountry:o,onChange:r,onSelectComplete:s})=>{const l=()=>{r(n),s()};return e.jsxRuntimeExports.jsxs(c.CommandItem,{className:"gap-2",onSelect:l,children:[e.jsxRuntimeExports.jsx(j,{country:n,countryName:t}),e.jsxRuntimeExports.jsx("span",{className:"paragraph-sm flex-1",children:t}),e.jsxRuntimeExports.jsx("span",{className:"text-foreground/50 paragraph-sm",children:`+${y.getCountryCallingCode(n)}`}),e.jsxRuntimeExports.jsx(b.IconComponent,{iconName:"IconCheck",className:`ml-auto size-4 ${n===o?"opacity-100":"opacity-0"}`})]})},j=({country:n,countryName:t,disabled:o})=>{const r=P[n];return e.jsxRuntimeExports.jsx("span",{className:m.cn("bg-foreground/20 flex h-4 w-6 overflow-hidden rounded-[4px] [&_svg:not([class*='size-'])]:size-full",{"opacity-50":o}),children:r&&e.jsxRuntimeExports.jsx(r,{title:t})})};exports.PhoneInput=C;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-DywqP_6a.js";
|
|
2
|
-
import { C as N, d as v, f as I, b as S, c as w, e as P } from "../command-
|
|
3
|
-
import { I as R } from "../input-
|
|
2
|
+
import { C as N, d as v, f as I, b as S, c as w, e as P } from "../command-RWDkdfba.js";
|
|
3
|
+
import { I as R } from "../input-CUpmfQgR.js";
|
|
4
4
|
import { P as O, c as E, b as T } from "../popover-CHAUhJda.js";
|
|
5
5
|
import { S as V } from "../scroll-area-DwBiu3Jn.js";
|
|
6
6
|
import { c } from "../index-CRiPKpXj.js";
|
|
@@ -10,43 +10,43 @@ import k from "react-phone-number-input/flags";
|
|
|
10
10
|
import A from "react-phone-number-input/locale/en";
|
|
11
11
|
import F from "react-phone-number-input/locale/es";
|
|
12
12
|
import _ from "react-phone-number-input/locale/fr";
|
|
13
|
-
import { I as b } from "../icon-component-
|
|
13
|
+
import { I as b } from "../icon-component-Db_44zX2.js";
|
|
14
14
|
const $ = p.forwardRef(
|
|
15
15
|
({
|
|
16
16
|
className: o,
|
|
17
17
|
onChange: n,
|
|
18
|
-
value:
|
|
19
|
-
size:
|
|
18
|
+
value: t,
|
|
19
|
+
size: s = "md",
|
|
20
20
|
rounded: r = "default",
|
|
21
21
|
locale: a = "en",
|
|
22
|
-
...
|
|
23
|
-
},
|
|
22
|
+
...d
|
|
23
|
+
}, i) => /* @__PURE__ */ e.jsx(
|
|
24
24
|
h.default,
|
|
25
25
|
{
|
|
26
|
-
ref:
|
|
26
|
+
ref: i,
|
|
27
27
|
className: c("flex", o),
|
|
28
28
|
flagComponent: f,
|
|
29
29
|
countrySelectComponent: q,
|
|
30
30
|
inputComponent: C,
|
|
31
31
|
smartCaret: !1,
|
|
32
32
|
labels: a === "es" ? F : a === "fr" ? _ : A,
|
|
33
|
-
value:
|
|
33
|
+
value: t || void 0,
|
|
34
34
|
onChange: (m) => n?.(m || ""),
|
|
35
35
|
countrySelectProps: {
|
|
36
|
-
size:
|
|
36
|
+
size: s,
|
|
37
37
|
rounded: r
|
|
38
38
|
},
|
|
39
39
|
numberInputProps: {
|
|
40
|
-
size:
|
|
40
|
+
size: s,
|
|
41
41
|
rounded: r
|
|
42
42
|
},
|
|
43
|
-
...
|
|
43
|
+
...d
|
|
44
44
|
}
|
|
45
45
|
)
|
|
46
46
|
);
|
|
47
47
|
$.displayName = "PhoneInput";
|
|
48
|
-
const C = p.forwardRef(({ className: o, rounded: n = "default", error:
|
|
49
|
-
const { "data-country":
|
|
48
|
+
const C = p.forwardRef(({ className: o, rounded: n = "default", error: t, touched: s, size: r, ...a }, d) => {
|
|
49
|
+
const { "data-country": i, ...m } = a;
|
|
50
50
|
return /* @__PURE__ */ e.jsx(
|
|
51
51
|
R,
|
|
52
52
|
{
|
|
@@ -54,8 +54,8 @@ const C = p.forwardRef(({ className: o, rounded: n = "default", error: s, touche
|
|
|
54
54
|
className: c(
|
|
55
55
|
"w-full",
|
|
56
56
|
{
|
|
57
|
-
"border-destructive":
|
|
58
|
-
"border-blue-800":
|
|
57
|
+
"border-destructive": t && s,
|
|
58
|
+
"border-blue-800": s && !t,
|
|
59
59
|
"rounded-s-none rounded-e-lg": n !== "full",
|
|
60
60
|
"rounded-s-none rounded-e-full": n === "full",
|
|
61
61
|
"rounded-e-sm": r === "sm",
|
|
@@ -65,7 +65,7 @@ const C = p.forwardRef(({ className: o, rounded: n = "default", error: s, touche
|
|
|
65
65
|
o
|
|
66
66
|
),
|
|
67
67
|
...m,
|
|
68
|
-
ref:
|
|
68
|
+
ref: d
|
|
69
69
|
}
|
|
70
70
|
);
|
|
71
71
|
});
|
|
@@ -73,12 +73,12 @@ C.displayName = "InputComponent";
|
|
|
73
73
|
const q = ({
|
|
74
74
|
disabled: o,
|
|
75
75
|
value: n,
|
|
76
|
-
options:
|
|
77
|
-
onChange:
|
|
76
|
+
options: t,
|
|
77
|
+
onChange: s,
|
|
78
78
|
size: r = "md",
|
|
79
79
|
rounded: a = "default",
|
|
80
|
-
error:
|
|
81
|
-
touched:
|
|
80
|
+
error: d,
|
|
81
|
+
touched: i
|
|
82
82
|
}) => {
|
|
83
83
|
const m = p.useRef(null), [j, x] = p.useState(""), [y, g] = p.useState(!1);
|
|
84
84
|
return /* @__PURE__ */ e.jsxs(
|
|
@@ -95,14 +95,14 @@ const q = ({
|
|
|
95
95
|
{
|
|
96
96
|
type: "button",
|
|
97
97
|
className: c(
|
|
98
|
-
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 file:
|
|
98
|
+
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 file:paragraph-sm md:paragraph-sm paragraph-md flex w-fit min-w-0 items-center justify-center border border-r-0 bg-transparent transition-[color,box-shadow] outline-none file:inline-flex file:border-0 file:bg-transparent file:font-semibold focus-visible:z-1 focus-visible:ring-[3px] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
99
99
|
a === "default" ? "rounded-e-none" : "rounded-s-full rounded-e-none",
|
|
100
100
|
{
|
|
101
|
-
"outline-destructive":
|
|
102
|
-
"outline-blue-800":
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
101
|
+
"outline-destructive": d && i,
|
|
102
|
+
"outline-blue-800": i && !d,
|
|
103
|
+
"label-md h-8 rounded-s-sm px-2 py-1": r === "sm",
|
|
104
|
+
"label-lg h-12 rounded-s-md px-3 py-1": r === "md",
|
|
105
|
+
"label-xl h-16 rounded-s-lg px-4 py-2": r === "lg"
|
|
106
106
|
}
|
|
107
107
|
),
|
|
108
108
|
disabled: o,
|
|
@@ -148,14 +148,14 @@ const q = ({
|
|
|
148
148
|
),
|
|
149
149
|
/* @__PURE__ */ e.jsx(I, { children: /* @__PURE__ */ e.jsxs(V, { ref: m, className: "h-72", children: [
|
|
150
150
|
/* @__PURE__ */ e.jsx(S, { children: "No country found." }),
|
|
151
|
-
/* @__PURE__ */ e.jsx(w, { children:
|
|
151
|
+
/* @__PURE__ */ e.jsx(w, { children: t.map(
|
|
152
152
|
({ value: l, label: u }) => l ? /* @__PURE__ */ e.jsx(
|
|
153
153
|
D,
|
|
154
154
|
{
|
|
155
155
|
country: l,
|
|
156
156
|
countryName: u,
|
|
157
157
|
selectedCountry: n,
|
|
158
|
-
onChange:
|
|
158
|
+
onChange: s,
|
|
159
159
|
onSelectComplete: () => g(!1)
|
|
160
160
|
},
|
|
161
161
|
l
|
|
@@ -169,39 +169,39 @@ const q = ({
|
|
|
169
169
|
}, D = ({
|
|
170
170
|
country: o,
|
|
171
171
|
countryName: n,
|
|
172
|
-
selectedCountry:
|
|
173
|
-
onChange:
|
|
172
|
+
selectedCountry: t,
|
|
173
|
+
onChange: s,
|
|
174
174
|
onSelectComplete: r
|
|
175
175
|
}) => {
|
|
176
176
|
const a = () => {
|
|
177
|
-
|
|
177
|
+
s(o), r();
|
|
178
178
|
};
|
|
179
179
|
return /* @__PURE__ */ e.jsxs(P, { className: "gap-2", onSelect: a, children: [
|
|
180
180
|
/* @__PURE__ */ e.jsx(f, { country: o, countryName: n }),
|
|
181
|
-
/* @__PURE__ */ e.jsx("span", { className: "
|
|
182
|
-
/* @__PURE__ */ e.jsx("span", { className: "text-foreground/50
|
|
181
|
+
/* @__PURE__ */ e.jsx("span", { className: "paragraph-sm flex-1", children: n }),
|
|
182
|
+
/* @__PURE__ */ e.jsx("span", { className: "text-foreground/50 paragraph-sm", children: `+${h.getCountryCallingCode(o)}` }),
|
|
183
183
|
/* @__PURE__ */ e.jsx(
|
|
184
184
|
b,
|
|
185
185
|
{
|
|
186
186
|
iconName: "IconCheck",
|
|
187
|
-
className: `ml-auto size-4 ${o ===
|
|
187
|
+
className: `ml-auto size-4 ${o === t ? "opacity-100" : "opacity-0"}`
|
|
188
188
|
}
|
|
189
189
|
)
|
|
190
190
|
] });
|
|
191
191
|
}, f = ({
|
|
192
192
|
country: o,
|
|
193
193
|
countryName: n,
|
|
194
|
-
disabled:
|
|
194
|
+
disabled: t
|
|
195
195
|
}) => {
|
|
196
|
-
const
|
|
196
|
+
const s = k[o];
|
|
197
197
|
return /* @__PURE__ */ e.jsx(
|
|
198
198
|
"span",
|
|
199
199
|
{
|
|
200
200
|
className: c(
|
|
201
201
|
"bg-foreground/20 flex h-4 w-6 overflow-hidden rounded-[4px] [&_svg:not([class*='size-'])]:size-full",
|
|
202
|
-
{ "opacity-50":
|
|
202
|
+
{ "opacity-50": t }
|
|
203
203
|
),
|
|
204
|
-
children:
|
|
204
|
+
children: s && /* @__PURE__ */ e.jsx(s, { title: n })
|
|
205
205
|
}
|
|
206
206
|
);
|
|
207
207
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../jsx-runtime-BuHQgaKs.cjs"),o=require("react-resizable-panels"),l=require("../index-DoxiiusW.cjs"),s=require("../icon-component-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../jsx-runtime-BuHQgaKs.cjs"),o=require("react-resizable-panels"),l=require("../index-DoxiiusW.cjs"),s=require("../icon-component-4lyl8wE_.cjs");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const i=c(o);function u({className:e,...t}){return r.jsxRuntimeExports.jsx(i.PanelGroup,{"data-slot":"resizable-panel-group",className:l.cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t})}function d({...e}){return r.jsxRuntimeExports.jsx(i.Panel,{"data-slot":"resizable-panel",...e})}function f({withHandle:e,className:t,...a}){return r.jsxRuntimeExports.jsx(i.PanelResizeHandle,{"data-slot":"resizable-handle",className:l.cn("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...a,children:e&&r.jsxRuntimeExports.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:r.jsxRuntimeExports.jsx(s.IconComponent,{iconName:"IconGripVertical",className:"size-2.5"})})})}exports.ResizableHandle=f;exports.ResizablePanel=d;exports.ResizablePanelGroup=u;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as a } from "../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import * as t from "react-resizable-panels";
|
|
3
3
|
import { c as i } from "../index-CRiPKpXj.js";
|
|
4
|
-
import { I as n } from "../icon-component-
|
|
4
|
+
import { I as n } from "../icon-component-Db_44zX2.js";
|
|
5
5
|
function d({
|
|
6
6
|
className: e,
|
|
7
7
|
...r
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../jsx-runtime-BuHQgaKs.cjs"),d=require("@radix-ui/react-select"),r=require("../index-DoxiiusW.cjs"),l=require("../icon-component-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../jsx-runtime-BuHQgaKs.cjs"),d=require("@radix-ui/react-select"),r=require("../index-DoxiiusW.cjs"),l=require("../icon-component-4lyl8wE_.cjs");function u(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(s,o,a.get?a:{enumerable:!0,get:()=>e[o]})}}return s.default=e,Object.freeze(s)}const n=u(d);function p({...e}){return t.jsxRuntimeExports.jsx(n.Root,{"data-slot":"select",...e})}function x({...e}){return t.jsxRuntimeExports.jsx(n.Group,{"data-slot":"select-group",...e})}function m({...e}){return t.jsxRuntimeExports.jsx(n.Value,{"data-slot":"select-value",...e})}function g({className:e,size:s="md",children:o,...a}){return t.jsxRuntimeExports.jsxs(n.Trigger,{"data-slot":"select-trigger","data-size":s,className:r.cn("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",s==="xs"&&'label-sm h-7 px-2 py-1 [&_svg:not([class*="size-"])]:size-3.5',s==="sm"&&"label-md h-8 px-2 py-1",s==="md"&&"label-lg h-12 px-3 py-1",s==="lg"&&"label-xl h-16 px-4 py-2",e),...a,children:[o,t.jsxRuntimeExports.jsx(n.Icon,{asChild:!0,children:t.jsxRuntimeExports.jsx(l.IconComponent,{iconName:"IconChevronDown",className:"size-4 opacity-50"})})]})}function f({className:e,children:s,position:o="popper",...a}){return t.jsxRuntimeExports.jsx(n.Portal,{children:t.jsxRuntimeExports.jsxs(n.Content,{"data-slot":"select-content",className:r.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:o,...a,children:[t.jsxRuntimeExports.jsx(i,{}),t.jsxRuntimeExports.jsx(n.Viewport,{className:r.cn("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:s}),t.jsxRuntimeExports.jsx(c,{})]})})}function j({className:e,...s}){return t.jsxRuntimeExports.jsx(n.Label,{"data-slot":"select-label",className:r.cn("text-muted-foreground paragraph-xs px-2 py-1.5",e),...s})}function b({className:e,children:s,...o}){return t.jsxRuntimeExports.jsxs(n.Item,{"data-slot":"select-item",className:r.cn("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground paragraph-sm relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...o,children:[t.jsxRuntimeExports.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:t.jsxRuntimeExports.jsx(n.ItemIndicator,{children:t.jsxRuntimeExports.jsx(l.IconComponent,{iconName:"IconCheck",className:"size-4"})})}),t.jsxRuntimeExports.jsx(n.ItemText,{children:s})]})}function v({className:e,...s}){return t.jsxRuntimeExports.jsx(n.Separator,{"data-slot":"select-separator",className:r.cn("bg-border pointer-events-none -mx-1 my-1 h-px",e),...s})}function i({className:e,...s}){return t.jsxRuntimeExports.jsx(n.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:r.cn("flex cursor-default items-center justify-center py-1",e),...s,children:t.jsxRuntimeExports.jsx(l.IconComponent,{iconName:"IconChevronUp",className:"size-4"})})}function c({className:e,...s}){return t.jsxRuntimeExports.jsx(n.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:r.cn("flex cursor-default items-center justify-center py-1",e),...s,children:t.jsxRuntimeExports.jsx(l.IconComponent,{iconName:"IconChevronDown",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=v;exports.SelectTrigger=g;exports.SelectValue=m;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import * as s from "@radix-ui/react-select";
|
|
3
3
|
import { c as r } from "../index-CRiPKpXj.js";
|
|
4
|
-
import { I as n } from "../icon-component-
|
|
4
|
+
import { I as n } from "../icon-component-Db_44zX2.js";
|
|
5
5
|
function m({
|
|
6
6
|
...t
|
|
7
7
|
}) {
|
|
@@ -30,10 +30,10 @@ function g({
|
|
|
30
30
|
"data-size": a,
|
|
31
31
|
className: r(
|
|
32
32
|
"border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
33
|
-
a === "xs" && '
|
|
34
|
-
a === "sm" && "
|
|
35
|
-
a === "md" && "
|
|
36
|
-
a === "lg" && "
|
|
33
|
+
a === "xs" && 'label-sm h-7 px-2 py-1 [&_svg:not([class*="size-"])]:size-3.5',
|
|
34
|
+
a === "sm" && "label-md h-8 px-2 py-1",
|
|
35
|
+
a === "md" && "label-lg h-12 px-3 py-1",
|
|
36
|
+
a === "lg" && "label-xl h-16 px-4 py-2",
|
|
37
37
|
t
|
|
38
38
|
),
|
|
39
39
|
...l,
|
|
@@ -93,7 +93,7 @@ function v({
|
|
|
93
93
|
{
|
|
94
94
|
"data-slot": "select-label",
|
|
95
95
|
className: r(
|
|
96
|
-
"text-muted-foreground
|
|
96
|
+
"text-muted-foreground paragraph-xs px-2 py-1.5",
|
|
97
97
|
t
|
|
98
98
|
),
|
|
99
99
|
...a
|
|
@@ -110,7 +110,7 @@ function b({
|
|
|
110
110
|
{
|
|
111
111
|
"data-slot": "select-item",
|
|
112
112
|
className: r(
|
|
113
|
-
"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground
|
|
113
|
+
"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground paragraph-sm relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
114
114
|
t
|
|
115
115
|
),
|
|
116
116
|
...o,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../jsx-runtime-BuHQgaKs.cjs"),i=require("@radix-ui/react-dialog"),n=require("../index-DoxiiusW.cjs"),l=require("../icon-component-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../jsx-runtime-BuHQgaKs.cjs"),i=require("@radix-ui/react-dialog"),n=require("../index-DoxiiusW.cjs"),l=require("../icon-component-4lyl8wE_.cjs");function d(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,r.get?r:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const a=d(i);function c({...t}){return o.jsxRuntimeExports.jsx(a.Root,{"data-slot":"sheet",...t})}function u({...t}){return o.jsxRuntimeExports.jsx(a.Trigger,{"data-slot":"sheet-trigger",...t})}function x({...t}){return o.jsxRuntimeExports.jsx(a.Close,{"data-slot":"sheet-close",...t})}function m({...t}){return o.jsxRuntimeExports.jsx(a.Portal,{"data-slot":"sheet-portal",...t})}function p({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Overlay,{"data-slot":"sheet-overlay",className:n.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}function f({className:t,children:e,side:s="right",...r}){return o.jsxRuntimeExports.jsxs(m,{children:[o.jsxRuntimeExports.jsx(p,{}),o.jsxRuntimeExports.jsxs(a.Content,{"data-slot":"sheet-content",className:n.cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",s==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",s==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",s==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",s==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",t),...r,children:[e,o.jsxRuntimeExports.jsxs(a.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[o.jsxRuntimeExports.jsx(l.IconComponent,{iconName:"IconX",className:"size-4"}),o.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function h({className:t,...e}){return o.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-header",className:n.cn("flex flex-col gap-1.5 p-4",t),...e})}function g({className:t,...e}){return o.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-footer",className:n.cn("mt-auto flex flex-col gap-2 p-4",t),...e})}function j({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Title,{"data-slot":"sheet-title",className:n.cn("text-foreground font-semibold",t),...e})}function b({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Description,{"data-slot":"sheet-description",className:n.cn("text-muted-foreground paragraph-sm",t),...e})}exports.Sheet=c;exports.SheetClose=x;exports.SheetContent=f;exports.SheetDescription=b;exports.SheetFooter=g;exports.SheetHeader=h;exports.SheetTitle=j;exports.SheetTrigger=u;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import * as a from "@radix-ui/react-dialog";
|
|
3
3
|
import { c as s } from "../index-CRiPKpXj.js";
|
|
4
|
-
import { I as i } from "../icon-component-
|
|
4
|
+
import { I as i } from "../icon-component-Db_44zX2.js";
|
|
5
5
|
function m({ ...t }) {
|
|
6
6
|
return /* @__PURE__ */ e.jsx(a.Root, { "data-slot": "sheet", ...t });
|
|
7
7
|
}
|
|
@@ -109,7 +109,7 @@ function y({
|
|
|
109
109
|
a.Description,
|
|
110
110
|
{
|
|
111
111
|
"data-slot": "sheet-description",
|
|
112
|
-
className: s("text-muted-foreground
|
|
112
|
+
className: s("text-muted-foreground paragraph-sm", t),
|
|
113
113
|
...o
|
|
114
114
|
}
|
|
115
115
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../jsx-runtime-BuHQgaKs.cjs"),o=require("../index-DoxiiusW.cjs");function r({className:t
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../jsx-runtime-BuHQgaKs.cjs"),o=require("../index-DoxiiusW.cjs");function r({className:e,...t}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:a.jsxRuntimeExports.jsx("table",{"data-slot":"table",className:o.cn("paragraph-sm w-full caption-bottom",e),...t})})}function l({className:e,...t}){return a.jsxRuntimeExports.jsx("thead",{"data-slot":"table-header",className:o.cn("[&_tr]:border-b",e),...t})}function s({className:e,...t}){return a.jsxRuntimeExports.jsx("tbody",{"data-slot":"table-body",className:o.cn("[&_tr:last-child]:border-0",e),...t})}function n({className:e,...t}){return a.jsxRuntimeExports.jsx("tfoot",{"data-slot":"table-footer",className:o.cn("bg-muted/50 border-t font-semibold [&>tr]:last:border-b-0",e),...t})}function b({className:e,...t}){return a.jsxRuntimeExports.jsx("tr",{"data-slot":"table-row",className:o.cn("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",e),...t})}function c({className:e,...t}){return a.jsxRuntimeExports.jsx("th",{"data-slot":"table-head",className:o.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]",e),...t})}function d({className:e,...t}){return a.jsxRuntimeExports.jsx("td",{"data-slot":"table-cell",className:o.cn("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function i({className:e,...t}){return a.jsxRuntimeExports.jsx("caption",{"data-slot":"table-caption",className:o.cn("text-muted-foreground paragraph-sm mt-4",e),...t})}exports.Table=r;exports.TableBody=s;exports.TableCaption=i;exports.TableCell=d;exports.TableFooter=n;exports.TableHead=c;exports.TableHeader=l;exports.TableRow=b;
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as e } from "../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import { c as o } from "../index-CRiPKpXj.js";
|
|
3
|
-
function s({ className: t, ...
|
|
4
|
-
return /* @__PURE__ */
|
|
3
|
+
function s({ className: t, ...a }) {
|
|
4
|
+
return /* @__PURE__ */ e.jsx(
|
|
5
5
|
"div",
|
|
6
6
|
{
|
|
7
7
|
"data-slot": "table-container",
|
|
8
8
|
className: "relative w-full overflow-x-auto",
|
|
9
|
-
children: /* @__PURE__ */
|
|
9
|
+
children: /* @__PURE__ */ e.jsx(
|
|
10
10
|
"table",
|
|
11
11
|
{
|
|
12
12
|
"data-slot": "table",
|
|
13
|
-
className: o("
|
|
14
|
-
...
|
|
13
|
+
className: o("paragraph-sm w-full caption-bottom", t),
|
|
14
|
+
...a
|
|
15
15
|
}
|
|
16
16
|
)
|
|
17
17
|
}
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
|
-
function n({ className: t, ...
|
|
21
|
-
return /* @__PURE__ */
|
|
20
|
+
function n({ className: t, ...a }) {
|
|
21
|
+
return /* @__PURE__ */ e.jsx(
|
|
22
22
|
"thead",
|
|
23
23
|
{
|
|
24
24
|
"data-slot": "table-header",
|
|
25
25
|
className: o("[&_tr]:border-b", t),
|
|
26
|
-
...
|
|
26
|
+
...a
|
|
27
27
|
}
|
|
28
28
|
);
|
|
29
29
|
}
|
|
30
|
-
function d({ className: t, ...
|
|
31
|
-
return /* @__PURE__ */
|
|
30
|
+
function d({ className: t, ...a }) {
|
|
31
|
+
return /* @__PURE__ */ e.jsx(
|
|
32
32
|
"tbody",
|
|
33
33
|
{
|
|
34
34
|
"data-slot": "table-body",
|
|
35
35
|
className: o("[&_tr:last-child]:border-0", t),
|
|
36
|
-
...
|
|
36
|
+
...a
|
|
37
37
|
}
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
function b({ className: t, ...
|
|
41
|
-
return /* @__PURE__ */
|
|
40
|
+
function b({ className: t, ...a }) {
|
|
41
|
+
return /* @__PURE__ */ e.jsx(
|
|
42
42
|
"tfoot",
|
|
43
43
|
{
|
|
44
44
|
"data-slot": "table-footer",
|
|
@@ -46,12 +46,12 @@ function b({ className: t, ...e }) {
|
|
|
46
46
|
"bg-muted/50 border-t font-semibold [&>tr]:last:border-b-0",
|
|
47
47
|
t
|
|
48
48
|
),
|
|
49
|
-
...
|
|
49
|
+
...a
|
|
50
50
|
}
|
|
51
51
|
);
|
|
52
52
|
}
|
|
53
|
-
function c({ className: t, ...
|
|
54
|
-
return /* @__PURE__ */
|
|
53
|
+
function c({ className: t, ...a }) {
|
|
54
|
+
return /* @__PURE__ */ e.jsx(
|
|
55
55
|
"tr",
|
|
56
56
|
{
|
|
57
57
|
"data-slot": "table-row",
|
|
@@ -59,12 +59,12 @@ function c({ className: t, ...e }) {
|
|
|
59
59
|
"hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
|
|
60
60
|
t
|
|
61
61
|
),
|
|
62
|
-
...
|
|
62
|
+
...a
|
|
63
63
|
}
|
|
64
64
|
);
|
|
65
65
|
}
|
|
66
|
-
function i({ className: t, ...
|
|
67
|
-
return /* @__PURE__ */
|
|
66
|
+
function i({ className: t, ...a }) {
|
|
67
|
+
return /* @__PURE__ */ e.jsx(
|
|
68
68
|
"th",
|
|
69
69
|
{
|
|
70
70
|
"data-slot": "table-head",
|
|
@@ -72,12 +72,12 @@ function i({ className: t, ...e }) {
|
|
|
72
72
|
"text-foreground h-10 px-2 text-left align-middle font-semibold whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
73
73
|
t
|
|
74
74
|
),
|
|
75
|
-
...
|
|
75
|
+
...a
|
|
76
76
|
}
|
|
77
77
|
);
|
|
78
78
|
}
|
|
79
|
-
function m({ className: t, ...
|
|
80
|
-
return /* @__PURE__ */
|
|
79
|
+
function m({ className: t, ...a }) {
|
|
80
|
+
return /* @__PURE__ */ e.jsx(
|
|
81
81
|
"td",
|
|
82
82
|
{
|
|
83
83
|
"data-slot": "table-cell",
|
|
@@ -85,20 +85,20 @@ function m({ className: t, ...e }) {
|
|
|
85
85
|
"p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
86
86
|
t
|
|
87
87
|
),
|
|
88
|
-
...
|
|
88
|
+
...a
|
|
89
89
|
}
|
|
90
90
|
);
|
|
91
91
|
}
|
|
92
92
|
function u({
|
|
93
93
|
className: t,
|
|
94
|
-
...
|
|
94
|
+
...a
|
|
95
95
|
}) {
|
|
96
|
-
return /* @__PURE__ */
|
|
96
|
+
return /* @__PURE__ */ e.jsx(
|
|
97
97
|
"caption",
|
|
98
98
|
{
|
|
99
99
|
"data-slot": "table-caption",
|
|
100
|
-
className: o("text-muted-foreground
|
|
101
|
-
...
|
|
100
|
+
className: o("text-muted-foreground paragraph-sm mt-4", t),
|
|
101
|
+
...a
|
|
102
102
|
}
|
|
103
103
|
);
|
|
104
104
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../jsx-runtime-BuHQgaKs.cjs"),a=require("../index-DoxiiusW.cjs"),v=require("../index-C8P6Mn4U.cjs"),p=require("../icon-component-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../jsx-runtime-BuHQgaKs.cjs"),a=require("../index-DoxiiusW.cjs"),v=require("../index-C8P6Mn4U.cjs"),p=require("../icon-component-4lyl8wE_.cjs"),x=v.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 b({className:o,size:l,resize:d,iconName:u,maxLength:r,showCharacterCount:m=!1,...t}){const i=u?(n=>typeof n=="string"?{name:n}:n)(u):void 0,s=t.value?String(t.value).length:0,c=m||r;return!i&&!c?e.jsxRuntimeExports.jsx("textarea",{"data-slot":"textarea",maxLength:r,className:a.cn(x({size:l,resize:d}),"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",o),...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:a.cn(x({size:l,resize:d}),"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":"",o),...t}),i&&e.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground absolute top-3 right-3",children:e.jsxRuntimeExports.jsx(p.IconComponent,{iconName:i.name,stroke:i.stroke,size:20})})]}),c&&e.jsxRuntimeExports.jsx("div",{className:"flex justify-end",children:e.jsxRuntimeExports.jsx("span",{className:a.cn("paragraph-xs text-muted-foreground",{"text-destructive":r&&s>r}),children:r?`${s}/${r}`:s})})]})}exports.Textarea=b;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import { c as n } from "../index-CRiPKpXj.js";
|
|
3
|
-
import { c as
|
|
4
|
-
import { I as p } from "../icon-component-
|
|
5
|
-
const
|
|
3
|
+
import { c as x } from "../index-BqtVL8d-.js";
|
|
4
|
+
import { I as p } from "../icon-component-Db_44zX2.js";
|
|
5
|
+
const m = x(
|
|
6
6
|
"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",
|
|
7
7
|
{
|
|
8
8
|
variants: {
|
|
9
9
|
size: {
|
|
10
|
-
xs: "
|
|
11
|
-
sm: "
|
|
12
|
-
md: "
|
|
13
|
-
lg: "
|
|
10
|
+
xs: "label-sm min-h-16 px-2 py-1",
|
|
11
|
+
sm: "label-md min-h-20 px-2 py-1",
|
|
12
|
+
md: "label-lg min-h-24 px-3 py-2",
|
|
13
|
+
lg: "label-xl min-h-32 px-4 py-3"
|
|
14
14
|
},
|
|
15
15
|
resize: {
|
|
16
16
|
none: "resize-none",
|
|
@@ -31,22 +31,22 @@ function j({
|
|
|
31
31
|
resize: d,
|
|
32
32
|
iconName: c,
|
|
33
33
|
maxLength: r,
|
|
34
|
-
showCharacterCount:
|
|
35
|
-
...
|
|
34
|
+
showCharacterCount: v = !1,
|
|
35
|
+
...a
|
|
36
36
|
}) {
|
|
37
|
-
const i = c ? ((s) => typeof s == "string" ? { name: s } : s)(c) : void 0,
|
|
37
|
+
const i = c ? ((s) => typeof s == "string" ? { name: s } : s)(c) : void 0, t = a.value ? String(a.value).length : 0, u = v || r;
|
|
38
38
|
return !i && !u ? /* @__PURE__ */ e.jsx(
|
|
39
39
|
"textarea",
|
|
40
40
|
{
|
|
41
41
|
"data-slot": "textarea",
|
|
42
42
|
maxLength: r,
|
|
43
43
|
className: n(
|
|
44
|
-
|
|
44
|
+
m({ size: l, resize: d }),
|
|
45
45
|
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
46
46
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
47
47
|
o
|
|
48
48
|
),
|
|
49
|
-
...
|
|
49
|
+
...a
|
|
50
50
|
}
|
|
51
51
|
) : /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
|
|
52
52
|
/* @__PURE__ */ e.jsxs("div", { className: "relative w-full", children: [
|
|
@@ -56,13 +56,13 @@ function j({
|
|
|
56
56
|
"data-slot": "textarea",
|
|
57
57
|
maxLength: r,
|
|
58
58
|
className: n(
|
|
59
|
-
|
|
59
|
+
m({ size: l, resize: d }),
|
|
60
60
|
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
61
61
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
62
62
|
i ? "pr-10" : "",
|
|
63
63
|
o
|
|
64
64
|
),
|
|
65
|
-
...
|
|
65
|
+
...a
|
|
66
66
|
}
|
|
67
67
|
),
|
|
68
68
|
i && /* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground absolute top-3 right-3", children: /* @__PURE__ */ e.jsx(
|
|
@@ -77,10 +77,10 @@ function j({
|
|
|
77
77
|
u && /* @__PURE__ */ e.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ e.jsx(
|
|
78
78
|
"span",
|
|
79
79
|
{
|
|
80
|
-
className: n("
|
|
81
|
-
"text-destructive": r &&
|
|
80
|
+
className: n("paragraph-xs text-muted-foreground", {
|
|
81
|
+
"text-destructive": r && t > r
|
|
82
82
|
}),
|
|
83
|
-
children: r ? `${
|
|
83
|
+
children: r ? `${t}/${r}` : t
|
|
84
84
|
}
|
|
85
85
|
) })
|
|
86
86
|
] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../jsx-runtime-BuHQgaKs.cjs"),g=require("@radix-ui/react-toggle-group"),m=require("react"),p=require("../toggle-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../jsx-runtime-BuHQgaKs.cjs"),g=require("@radix-ui/react-toggle-group"),m=require("react"),p=require("../toggle-v18XjPC4.cjs"),s=require("../index-DoxiiusW.cjs");function u(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 l=u(g),c=u(m),d=c.createContext({size:"md",variant:"default"});function f({className:t,variant:o,size:e,children:r,...a}){return i.jsxRuntimeExports.jsx(l.Root,{"data-slot":"toggle-group","data-variant":o,"data-size":e,className:s.cn("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",t),...a,children:i.jsxRuntimeExports.jsx(d.Provider,{value:{variant:o,size:e},children:r})})}function x({className:t,children:o,variant:e,size:r,...a}){const n=c.useContext(d);return i.jsxRuntimeExports.jsx(l.Item,{"data-slot":"toggle-group-item","data-variant":n.variant||e,"data-size":n.size||r,className:s.cn(p.toggleVariants({variant:n.variant||e,size:n.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),...a,children:o})}exports.ToggleGroup=f;exports.ToggleGroupItem=x;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as n } from "../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import * as s from "@radix-ui/react-toggle-group";
|
|
3
3
|
import * as d from "react";
|
|
4
|
-
import { t as m } from "../toggle-
|
|
4
|
+
import { t as m } from "../toggle-DkQSX3ux.js";
|
|
5
5
|
import { c as l } from "../index-CRiPKpXj.js";
|
|
6
6
|
const u = d.createContext({
|
|
7
7
|
size: "md",
|
|
@@ -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-v18XjPC4.cjs");exports.Toggle=e.Toggle;exports.toggleVariants=e.toggleVariants;
|