@clasing/ui 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{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 +13 -15
- 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,107 +1,107 @@
|
|
|
1
|
-
import { j as e, c } from "../index-
|
|
2
|
-
import { C as
|
|
3
|
-
import { I as
|
|
4
|
-
import { P as
|
|
5
|
-
import { S as
|
|
1
|
+
import { j as e, c as u } from "../index-D5lmpham.js";
|
|
2
|
+
import { C as y, d as v, f as N, b as S, c as w, e as I } from "../command-ev4m9IoQ.js";
|
|
3
|
+
import { I as P } from "../input-fvzEG6zH.js";
|
|
4
|
+
import { P as R, c as O, b as E } from "../popover-BdDS9aoy.js";
|
|
5
|
+
import { S as T } from "../scroll-area-oS6ZJIMN.js";
|
|
6
|
+
import { CaretDownIcon as V, CheckIcon as k } from "@phosphor-icons/react";
|
|
6
7
|
import * as p from "react";
|
|
7
8
|
import * as h from "react-phone-number-input";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
const $ = p.forwardRef(
|
|
9
|
+
import A from "react-phone-number-input/flags";
|
|
10
|
+
import F from "react-phone-number-input/locale/en";
|
|
11
|
+
import _ from "react-phone-number-input/locale/es";
|
|
12
|
+
import $ from "react-phone-number-input/locale/fr";
|
|
13
|
+
const q = p.forwardRef(
|
|
14
14
|
({
|
|
15
15
|
className: o,
|
|
16
|
-
onChange:
|
|
16
|
+
onChange: r,
|
|
17
17
|
value: t,
|
|
18
18
|
size: s = "md",
|
|
19
|
-
rounded:
|
|
19
|
+
rounded: n = "default",
|
|
20
20
|
locale: a = "en",
|
|
21
|
-
...
|
|
22
|
-
},
|
|
21
|
+
...i
|
|
22
|
+
}, m) => /* @__PURE__ */ e.jsx(
|
|
23
23
|
h.default,
|
|
24
24
|
{
|
|
25
|
-
ref:
|
|
26
|
-
className:
|
|
25
|
+
ref: m,
|
|
26
|
+
className: u("flex", o),
|
|
27
27
|
flagComponent: f,
|
|
28
|
-
countrySelectComponent:
|
|
29
|
-
inputComponent:
|
|
28
|
+
countrySelectComponent: D,
|
|
29
|
+
inputComponent: b,
|
|
30
30
|
smartCaret: !1,
|
|
31
|
-
labels: a === "es" ?
|
|
31
|
+
labels: a === "es" ? _ : a === "fr" ? $ : F,
|
|
32
32
|
value: t || void 0,
|
|
33
|
-
onChange: (d) =>
|
|
33
|
+
onChange: (d) => r?.(d || ""),
|
|
34
34
|
countrySelectProps: {
|
|
35
35
|
size: s,
|
|
36
|
-
rounded:
|
|
36
|
+
rounded: n
|
|
37
37
|
},
|
|
38
38
|
numberInputProps: {
|
|
39
39
|
size: s,
|
|
40
|
-
rounded:
|
|
40
|
+
rounded: n
|
|
41
41
|
},
|
|
42
|
-
...
|
|
42
|
+
...i
|
|
43
43
|
}
|
|
44
44
|
)
|
|
45
45
|
);
|
|
46
|
-
|
|
47
|
-
const
|
|
48
|
-
const { "data-country":
|
|
46
|
+
q.displayName = "PhoneInput";
|
|
47
|
+
const b = p.forwardRef(({ className: o, rounded: r = "default", error: t, touched: s, size: n, ...a }, i) => {
|
|
48
|
+
const { "data-country": m, ...d } = a;
|
|
49
49
|
return /* @__PURE__ */ e.jsx(
|
|
50
|
-
|
|
50
|
+
P,
|
|
51
51
|
{
|
|
52
|
-
size:
|
|
53
|
-
className:
|
|
52
|
+
size: n,
|
|
53
|
+
className: u(
|
|
54
54
|
"w-full",
|
|
55
55
|
{
|
|
56
56
|
"border-destructive": t && s,
|
|
57
57
|
"border-blue-800": s && !t,
|
|
58
|
-
"rounded-s-none rounded-e-lg":
|
|
59
|
-
"rounded-s-none rounded-e-full":
|
|
60
|
-
"rounded-e-sm":
|
|
61
|
-
"rounded-e-md":
|
|
62
|
-
"rounded-e-lg":
|
|
58
|
+
"rounded-s-none rounded-e-lg": r !== "full",
|
|
59
|
+
"rounded-s-none rounded-e-full": r === "full",
|
|
60
|
+
"rounded-e-sm": n === "sm",
|
|
61
|
+
"rounded-e-md": n === "md",
|
|
62
|
+
"rounded-e-lg": n === "lg"
|
|
63
63
|
},
|
|
64
64
|
o
|
|
65
65
|
),
|
|
66
66
|
...d,
|
|
67
|
-
ref:
|
|
67
|
+
ref: i
|
|
68
68
|
}
|
|
69
69
|
);
|
|
70
70
|
});
|
|
71
|
-
|
|
72
|
-
const
|
|
71
|
+
b.displayName = "InputComponent";
|
|
72
|
+
const D = ({
|
|
73
73
|
disabled: o,
|
|
74
|
-
value:
|
|
74
|
+
value: r,
|
|
75
75
|
options: t,
|
|
76
76
|
onChange: s,
|
|
77
|
-
size:
|
|
77
|
+
size: n = "md",
|
|
78
78
|
rounded: a = "default",
|
|
79
|
-
error:
|
|
80
|
-
touched:
|
|
79
|
+
error: i,
|
|
80
|
+
touched: m
|
|
81
81
|
}) => {
|
|
82
|
-
const d = p.useRef(null), [j, x] = p.useState(""), [
|
|
82
|
+
const d = p.useRef(null), [j, x] = p.useState(""), [C, g] = p.useState(!1);
|
|
83
83
|
return /* @__PURE__ */ e.jsxs(
|
|
84
|
-
|
|
84
|
+
R,
|
|
85
85
|
{
|
|
86
|
-
open:
|
|
86
|
+
open: C,
|
|
87
87
|
modal: !0,
|
|
88
88
|
onOpenChange: (l) => {
|
|
89
89
|
g(l), l && x("");
|
|
90
90
|
},
|
|
91
91
|
children: [
|
|
92
|
-
/* @__PURE__ */ e.jsx(
|
|
92
|
+
/* @__PURE__ */ e.jsx(O, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
|
|
93
93
|
"button",
|
|
94
94
|
{
|
|
95
95
|
type: "button",
|
|
96
|
-
className:
|
|
96
|
+
className: u(
|
|
97
97
|
"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",
|
|
98
98
|
a === "default" ? "rounded-e-none" : "rounded-s-full rounded-e-none",
|
|
99
99
|
{
|
|
100
|
-
"outline-destructive":
|
|
101
|
-
"outline-blue-800":
|
|
102
|
-
"label-md h-8 rounded-s-sm px-2 py-1":
|
|
103
|
-
"label-lg h-12 rounded-s-md px-3 py-1":
|
|
104
|
-
"label-xl h-16 rounded-s-lg px-4 py-2":
|
|
100
|
+
"outline-destructive": i && m,
|
|
101
|
+
"outline-blue-800": m && !i,
|
|
102
|
+
"label-md h-8 rounded-s-sm px-2 py-1": n === "sm",
|
|
103
|
+
"label-lg h-12 rounded-s-md px-3 py-1": n === "md",
|
|
104
|
+
"label-xl h-16 rounded-s-lg px-4 py-2": n === "lg"
|
|
105
105
|
}
|
|
106
106
|
),
|
|
107
107
|
disabled: o,
|
|
@@ -109,16 +109,15 @@ const q = ({
|
|
|
109
109
|
/* @__PURE__ */ e.jsx(
|
|
110
110
|
f,
|
|
111
111
|
{
|
|
112
|
-
country:
|
|
113
|
-
countryName:
|
|
112
|
+
country: r,
|
|
113
|
+
countryName: r,
|
|
114
114
|
disabled: o
|
|
115
115
|
}
|
|
116
116
|
),
|
|
117
117
|
/* @__PURE__ */ e.jsx(
|
|
118
|
-
|
|
118
|
+
V,
|
|
119
119
|
{
|
|
120
|
-
|
|
121
|
-
className: c(
|
|
120
|
+
className: u(
|
|
122
121
|
"-mr-2 size-4 opacity-50",
|
|
123
122
|
o ? "hidden" : "opacity-100"
|
|
124
123
|
)
|
|
@@ -127,7 +126,7 @@ const q = ({
|
|
|
127
126
|
]
|
|
128
127
|
}
|
|
129
128
|
) }),
|
|
130
|
-
/* @__PURE__ */ e.jsx(
|
|
129
|
+
/* @__PURE__ */ e.jsx(E, { className: "w-[300px] p-0", children: /* @__PURE__ */ e.jsxs(y, { children: [
|
|
131
130
|
/* @__PURE__ */ e.jsx(
|
|
132
131
|
v,
|
|
133
132
|
{
|
|
@@ -135,25 +134,25 @@ const q = ({
|
|
|
135
134
|
onValueChange: (l) => {
|
|
136
135
|
x(l), setTimeout(() => {
|
|
137
136
|
if (d.current) {
|
|
138
|
-
const
|
|
137
|
+
const c = d.current.querySelector(
|
|
139
138
|
"[data-radix-scroll-area-viewport]"
|
|
140
139
|
);
|
|
141
|
-
|
|
140
|
+
c && (c.scrollTop = 0);
|
|
142
141
|
}
|
|
143
142
|
}, 0);
|
|
144
143
|
},
|
|
145
144
|
placeholder: "Search country..."
|
|
146
145
|
}
|
|
147
146
|
),
|
|
148
|
-
/* @__PURE__ */ e.jsx(
|
|
147
|
+
/* @__PURE__ */ e.jsx(N, { children: /* @__PURE__ */ e.jsxs(T, { ref: d, className: "h-72", children: [
|
|
149
148
|
/* @__PURE__ */ e.jsx(S, { children: "No country found." }),
|
|
150
149
|
/* @__PURE__ */ e.jsx(w, { children: t.map(
|
|
151
|
-
({ value: l, label:
|
|
152
|
-
|
|
150
|
+
({ value: l, label: c }) => l ? /* @__PURE__ */ e.jsx(
|
|
151
|
+
G,
|
|
153
152
|
{
|
|
154
153
|
country: l,
|
|
155
|
-
countryName:
|
|
156
|
-
selectedCountry:
|
|
154
|
+
countryName: c,
|
|
155
|
+
selectedCountry: r,
|
|
157
156
|
onChange: s,
|
|
158
157
|
onSelectComplete: () => g(!1)
|
|
159
158
|
},
|
|
@@ -165,45 +164,44 @@ const q = ({
|
|
|
165
164
|
]
|
|
166
165
|
}
|
|
167
166
|
);
|
|
168
|
-
},
|
|
167
|
+
}, G = ({
|
|
169
168
|
country: o,
|
|
170
|
-
countryName:
|
|
169
|
+
countryName: r,
|
|
171
170
|
selectedCountry: t,
|
|
172
171
|
onChange: s,
|
|
173
|
-
onSelectComplete:
|
|
172
|
+
onSelectComplete: n
|
|
174
173
|
}) => {
|
|
175
174
|
const a = () => {
|
|
176
|
-
s(o),
|
|
175
|
+
s(o), n();
|
|
177
176
|
};
|
|
178
|
-
return /* @__PURE__ */ e.jsxs(
|
|
179
|
-
/* @__PURE__ */ e.jsx(f, { country: o, countryName:
|
|
180
|
-
/* @__PURE__ */ e.jsx("span", { className: "paragraph-sm flex-1", children:
|
|
177
|
+
return /* @__PURE__ */ e.jsxs(I, { className: "gap-2", onSelect: a, children: [
|
|
178
|
+
/* @__PURE__ */ e.jsx(f, { country: o, countryName: r }),
|
|
179
|
+
/* @__PURE__ */ e.jsx("span", { className: "paragraph-sm flex-1", children: r }),
|
|
181
180
|
/* @__PURE__ */ e.jsx("span", { className: "text-foreground/50 paragraph-sm", children: `+${h.getCountryCallingCode(o)}` }),
|
|
182
181
|
/* @__PURE__ */ e.jsx(
|
|
183
|
-
|
|
182
|
+
k,
|
|
184
183
|
{
|
|
185
|
-
iconName: "IconCheck",
|
|
186
184
|
className: `ml-auto size-4 ${o === t ? "opacity-100" : "opacity-0"}`
|
|
187
185
|
}
|
|
188
186
|
)
|
|
189
187
|
] });
|
|
190
188
|
}, f = ({
|
|
191
189
|
country: o,
|
|
192
|
-
countryName:
|
|
190
|
+
countryName: r,
|
|
193
191
|
disabled: t
|
|
194
192
|
}) => {
|
|
195
|
-
const s =
|
|
193
|
+
const s = A[o];
|
|
196
194
|
return /* @__PURE__ */ e.jsx(
|
|
197
195
|
"span",
|
|
198
196
|
{
|
|
199
|
-
className:
|
|
197
|
+
className: u(
|
|
200
198
|
"bg-foreground/20 flex h-4 w-6 overflow-hidden rounded-[4px] [&_svg:not([class*='size-'])]:size-full",
|
|
201
199
|
{ "opacity-50": t }
|
|
202
200
|
),
|
|
203
|
-
children: s && /* @__PURE__ */ e.jsx(s, { title:
|
|
201
|
+
children: s && /* @__PURE__ */ e.jsx(s, { title: r })
|
|
204
202
|
}
|
|
205
203
|
);
|
|
206
204
|
};
|
|
207
205
|
export {
|
|
208
|
-
|
|
206
|
+
q as PhoneInput
|
|
209
207
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../popover-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../popover-CeOAAwBQ.cjs");exports.Popover=o.Popover;exports.PopoverAnchor=o.PopoverAnchor;exports.PopoverContent=o.PopoverContent;exports.PopoverTrigger=o.PopoverTrigger;
|
|
@@ -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"),i=require("@radix-ui/react-progress");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const n=l(i);function a({className:e,value:t,...r}){return o.jsxRuntimeExports.jsx(n.Root,{"data-slot":"progress",className:o.cn("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",e),...r,children:o.jsxRuntimeExports.jsx(n.Indicator,{"data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})})}exports.Progress=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../index-9HRzXEQf.cjs"),n=require("react-resizable-panels"),s=require("@phosphor-icons/react");function o(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,l.get?l:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=o(n);function c({className:e,...t}){return a.jsxRuntimeExports.jsx(i.PanelGroup,{"data-slot":"resizable-panel-group",className:a.cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t})}function u({...e}){return a.jsxRuntimeExports.jsx(i.Panel,{"data-slot":"resizable-panel",...e})}function d({withHandle:e,className:t,...r}){return a.jsxRuntimeExports.jsx(i.PanelResizeHandle,{"data-slot":"resizable-handle",className:a.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),...r,children:e&&a.jsxRuntimeExports.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:a.jsxRuntimeExports.jsx(s.DotsSixVerticalIcon,{className:"size-2.5"})})})}exports.ResizableHandle=d;exports.ResizablePanel=u;exports.ResizablePanelGroup=c;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as a, c as i } from "../index-
|
|
1
|
+
import { j as a, c as i } from "../index-D5lmpham.js";
|
|
2
2
|
import * as t from "react-resizable-panels";
|
|
3
|
-
import {
|
|
3
|
+
import { DotsSixVerticalIcon as n } from "@phosphor-icons/react";
|
|
4
4
|
function c({
|
|
5
5
|
className: e,
|
|
6
6
|
...r
|
|
@@ -36,7 +36,7 @@ function f({
|
|
|
36
36
|
r
|
|
37
37
|
),
|
|
38
38
|
...l,
|
|
39
|
-
children: e && /* @__PURE__ */ a.jsx("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ a.jsx(n, {
|
|
39
|
+
children: e && /* @__PURE__ */ a.jsx("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ a.jsx(n, { className: "size-2.5" }) })
|
|
40
40
|
}
|
|
41
41
|
);
|
|
42
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../scroll-area-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../scroll-area-D74XszlE.cjs");exports.ScrollArea=r.ScrollArea;exports.ScrollBar=r.ScrollBar;
|
|
@@ -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"),d=require("@radix-ui/react-select"),o=require("@phosphor-icons/react");function u(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(s,a,n.get?n:{enumerable:!0,get:()=>t[a]})}}return s.default=t,Object.freeze(s)}const r=u(d);function p({...t}){return e.jsxRuntimeExports.jsx(r.Root,{"data-slot":"select",...t})}function x({...t}){return e.jsxRuntimeExports.jsx(r.Group,{"data-slot":"select-group",...t})}function m({...t}){return e.jsxRuntimeExports.jsx(r.Value,{"data-slot":"select-value",...t})}function g({className:t,size:s="md",children:a,...n}){return e.jsxRuntimeExports.jsxs(r.Trigger,{"data-slot":"select-trigger","data-size":s,className:e.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",t),...n,children:[a,e.jsxRuntimeExports.jsx(r.Icon,{asChild:!0,children:e.jsxRuntimeExports.jsx(o.CaretDownIcon,{className:"size-4 opacity-50"})})]})}function f({className:t,children:s,position:a="popper",collisionPadding:n=24,...c}){return e.jsxRuntimeExports.jsx(r.Portal,{children:e.jsxRuntimeExports.jsxs(r.Content,{"data-slot":"select-content",className:e.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-32 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",a==="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",t),position:a,...c,children:[e.jsxRuntimeExports.jsx(l,{}),e.jsxRuntimeExports.jsx(r.Viewport,{className:e.cn("p-1",a==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"),children:s}),e.jsxRuntimeExports.jsx(i,{})]})})}function j({className:t,...s}){return e.jsxRuntimeExports.jsx(r.Label,{"data-slot":"select-label",className:e.cn("text-muted-foreground paragraph-xs px-2 py-1.5",t),...s})}function b({className:t,children:s,...a}){return e.jsxRuntimeExports.jsxs(r.Item,{"data-slot":"select-item",className:e.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",t),...a,children:[e.jsxRuntimeExports.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(r.ItemIndicator,{children:e.jsxRuntimeExports.jsx(o.CheckIcon,{className:"size-4"})})}),e.jsxRuntimeExports.jsx(r.ItemText,{children:s})]})}function v({className:t,...s}){return e.jsxRuntimeExports.jsx(r.Separator,{"data-slot":"select-separator",className:e.cn("bg-border pointer-events-none -mx-1 my-1 h-px",t),...s})}function l({className:t,...s}){return e.jsxRuntimeExports.jsx(r.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:e.cn("flex cursor-default items-center justify-center py-1",t),...s,children:e.jsxRuntimeExports.jsx(o.CaretUpIcon,{className:"size-4"})})}function i({className:t,...s}){return e.jsxRuntimeExports.jsx(r.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:e.cn("flex cursor-default items-center justify-center py-1",t),...s,children:e.jsxRuntimeExports.jsx(o.CaretDownIcon,{className:"size-4"})})}exports.Select=p;exports.SelectContent=f;exports.SelectGroup=x;exports.SelectItem=b;exports.SelectLabel=j;exports.SelectScrollDownButton=i;exports.SelectScrollUpButton=l;exports.SelectSeparator=v;exports.SelectTrigger=g;exports.SelectValue=m;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { j as e, c as
|
|
1
|
+
import { j as e, c as r } from "../index-D5lmpham.js";
|
|
2
2
|
import * as s from "@radix-ui/react-select";
|
|
3
|
-
import {
|
|
4
|
-
function
|
|
3
|
+
import { CheckIcon as d, CaretDownIcon as n, CaretUpIcon as c } from "@phosphor-icons/react";
|
|
4
|
+
function g({
|
|
5
5
|
...t
|
|
6
6
|
}) {
|
|
7
7
|
return /* @__PURE__ */ e.jsx(s.Root, { "data-slot": "select", ...t });
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function f({
|
|
10
10
|
...t
|
|
11
11
|
}) {
|
|
12
12
|
return /* @__PURE__ */ e.jsx(s.Group, { "data-slot": "select-group", ...t });
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function h({
|
|
15
15
|
...t
|
|
16
16
|
}) {
|
|
17
17
|
return /* @__PURE__ */ e.jsx(s.Value, { "data-slot": "select-value", ...t });
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function v({
|
|
20
20
|
className: t,
|
|
21
21
|
size: a = "md",
|
|
22
|
-
children:
|
|
22
|
+
children: o,
|
|
23
23
|
...l
|
|
24
24
|
}) {
|
|
25
25
|
return /* @__PURE__ */ e.jsxs(
|
|
@@ -27,8 +27,8 @@ function f({
|
|
|
27
27
|
{
|
|
28
28
|
"data-slot": "select-trigger",
|
|
29
29
|
"data-size": a,
|
|
30
|
-
className:
|
|
31
|
-
"border-input data-
|
|
30
|
+
className: r(
|
|
31
|
+
"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",
|
|
32
32
|
a === "xs" && 'label-sm h-7 px-2 py-1 [&_svg:not([class*="size-"])]:size-3.5',
|
|
33
33
|
a === "sm" && "label-md h-8 px-2 py-1",
|
|
34
34
|
a === "md" && "label-lg h-12 px-3 py-1",
|
|
@@ -37,22 +37,16 @@ function f({
|
|
|
37
37
|
),
|
|
38
38
|
...l,
|
|
39
39
|
children: [
|
|
40
|
-
|
|
41
|
-
/* @__PURE__ */ e.jsx(s.Icon, { asChild: !0, children: /* @__PURE__ */ e.jsx(
|
|
42
|
-
n,
|
|
43
|
-
{
|
|
44
|
-
iconName: "IconChevronDown",
|
|
45
|
-
className: "size-4 opacity-50"
|
|
46
|
-
}
|
|
47
|
-
) })
|
|
40
|
+
o,
|
|
41
|
+
/* @__PURE__ */ e.jsx(s.Icon, { asChild: !0, children: /* @__PURE__ */ e.jsx(n, { className: "size-4 opacity-50" }) })
|
|
48
42
|
]
|
|
49
43
|
}
|
|
50
44
|
);
|
|
51
45
|
}
|
|
52
|
-
function
|
|
46
|
+
function b({
|
|
53
47
|
className: t,
|
|
54
48
|
children: a,
|
|
55
|
-
position:
|
|
49
|
+
position: o = "popper",
|
|
56
50
|
collisionPadding: l = 24,
|
|
57
51
|
...i
|
|
58
52
|
}) {
|
|
@@ -60,31 +54,31 @@ function h({
|
|
|
60
54
|
s.Content,
|
|
61
55
|
{
|
|
62
56
|
"data-slot": "select-content",
|
|
63
|
-
className:
|
|
64
|
-
"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-
|
|
65
|
-
|
|
57
|
+
className: r(
|
|
58
|
+
"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-32 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
|
|
59
|
+
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",
|
|
66
60
|
t
|
|
67
61
|
),
|
|
68
|
-
position:
|
|
62
|
+
position: o,
|
|
69
63
|
...i,
|
|
70
64
|
children: [
|
|
71
|
-
/* @__PURE__ */ e.jsx(
|
|
65
|
+
/* @__PURE__ */ e.jsx(u, {}),
|
|
72
66
|
/* @__PURE__ */ e.jsx(
|
|
73
67
|
s.Viewport,
|
|
74
68
|
{
|
|
75
|
-
className:
|
|
69
|
+
className: r(
|
|
76
70
|
"p-1",
|
|
77
|
-
|
|
71
|
+
o === "popper" && "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"
|
|
78
72
|
),
|
|
79
73
|
children: a
|
|
80
74
|
}
|
|
81
75
|
),
|
|
82
|
-
/* @__PURE__ */ e.jsx(
|
|
76
|
+
/* @__PURE__ */ e.jsx(p, {})
|
|
83
77
|
]
|
|
84
78
|
}
|
|
85
79
|
) });
|
|
86
80
|
}
|
|
87
|
-
function
|
|
81
|
+
function j({
|
|
88
82
|
className: t,
|
|
89
83
|
...a
|
|
90
84
|
}) {
|
|
@@ -92,7 +86,7 @@ function v({
|
|
|
92
86
|
s.Label,
|
|
93
87
|
{
|
|
94
88
|
"data-slot": "select-label",
|
|
95
|
-
className:
|
|
89
|
+
className: r(
|
|
96
90
|
"text-muted-foreground paragraph-xs px-2 py-1.5",
|
|
97
91
|
t
|
|
98
92
|
),
|
|
@@ -100,28 +94,28 @@ function v({
|
|
|
100
94
|
}
|
|
101
95
|
);
|
|
102
96
|
}
|
|
103
|
-
function
|
|
97
|
+
function y({
|
|
104
98
|
className: t,
|
|
105
99
|
children: a,
|
|
106
|
-
...
|
|
100
|
+
...o
|
|
107
101
|
}) {
|
|
108
102
|
return /* @__PURE__ */ e.jsxs(
|
|
109
103
|
s.Item,
|
|
110
104
|
{
|
|
111
105
|
"data-slot": "select-item",
|
|
112
|
-
className:
|
|
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-
|
|
106
|
+
className: r(
|
|
107
|
+
"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
108
|
t
|
|
115
109
|
),
|
|
116
|
-
...
|
|
110
|
+
...o,
|
|
117
111
|
children: [
|
|
118
|
-
/* @__PURE__ */ e.jsx("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(s.ItemIndicator, { children: /* @__PURE__ */ e.jsx(
|
|
112
|
+
/* @__PURE__ */ e.jsx("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(s.ItemIndicator, { children: /* @__PURE__ */ e.jsx(d, { className: "size-4" }) }) }),
|
|
119
113
|
/* @__PURE__ */ e.jsx(s.ItemText, { children: a })
|
|
120
114
|
]
|
|
121
115
|
}
|
|
122
116
|
);
|
|
123
117
|
}
|
|
124
|
-
function
|
|
118
|
+
function w({
|
|
125
119
|
className: t,
|
|
126
120
|
...a
|
|
127
121
|
}) {
|
|
@@ -129,12 +123,12 @@ function j({
|
|
|
129
123
|
s.Separator,
|
|
130
124
|
{
|
|
131
125
|
"data-slot": "select-separator",
|
|
132
|
-
className:
|
|
126
|
+
className: r("bg-border pointer-events-none -mx-1 my-1 h-px", t),
|
|
133
127
|
...a
|
|
134
128
|
}
|
|
135
129
|
);
|
|
136
130
|
}
|
|
137
|
-
function
|
|
131
|
+
function u({
|
|
138
132
|
className: t,
|
|
139
133
|
...a
|
|
140
134
|
}) {
|
|
@@ -142,16 +136,16 @@ function c({
|
|
|
142
136
|
s.ScrollUpButton,
|
|
143
137
|
{
|
|
144
138
|
"data-slot": "select-scroll-up-button",
|
|
145
|
-
className:
|
|
139
|
+
className: r(
|
|
146
140
|
"flex cursor-default items-center justify-center py-1",
|
|
147
141
|
t
|
|
148
142
|
),
|
|
149
143
|
...a,
|
|
150
|
-
children: /* @__PURE__ */ e.jsx(
|
|
144
|
+
children: /* @__PURE__ */ e.jsx(c, { className: "size-4" })
|
|
151
145
|
}
|
|
152
146
|
);
|
|
153
147
|
}
|
|
154
|
-
function
|
|
148
|
+
function p({
|
|
155
149
|
className: t,
|
|
156
150
|
...a
|
|
157
151
|
}) {
|
|
@@ -159,24 +153,24 @@ function d({
|
|
|
159
153
|
s.ScrollDownButton,
|
|
160
154
|
{
|
|
161
155
|
"data-slot": "select-scroll-down-button",
|
|
162
|
-
className:
|
|
156
|
+
className: r(
|
|
163
157
|
"flex cursor-default items-center justify-center py-1",
|
|
164
158
|
t
|
|
165
159
|
),
|
|
166
160
|
...a,
|
|
167
|
-
children: /* @__PURE__ */ e.jsx(n, {
|
|
161
|
+
children: /* @__PURE__ */ e.jsx(n, { className: "size-4" })
|
|
168
162
|
}
|
|
169
163
|
);
|
|
170
164
|
}
|
|
171
165
|
export {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
166
|
+
g as Select,
|
|
167
|
+
b as SelectContent,
|
|
168
|
+
f as SelectGroup,
|
|
169
|
+
y as SelectItem,
|
|
170
|
+
j as SelectLabel,
|
|
171
|
+
p as SelectScrollDownButton,
|
|
172
|
+
u as SelectScrollUpButton,
|
|
173
|
+
w as SelectSeparator,
|
|
174
|
+
v as SelectTrigger,
|
|
175
|
+
h as SelectValue
|
|
182
176
|
};
|
|
@@ -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"),r=require("@radix-ui/react-dialog"),i=require("@phosphor-icons/react");function l(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const 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=l(r);function d({...t}){return e.jsxRuntimeExports.jsx(a.Root,{"data-slot":"sheet",...t})}function u({...t}){return e.jsxRuntimeExports.jsx(a.Trigger,{"data-slot":"sheet-trigger",...t})}function c({...t}){return e.jsxRuntimeExports.jsx(a.Close,{"data-slot":"sheet-close",...t})}function x({...t}){return e.jsxRuntimeExports.jsx(a.Portal,{"data-slot":"sheet-portal",...t})}function m({className:t,...o}){return e.jsxRuntimeExports.jsx(a.Overlay,{"data-slot":"sheet-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,side:s="right",...n}){return e.jsxRuntimeExports.jsxs(x,{children:[e.jsxRuntimeExports.jsx(m,{}),e.jsxRuntimeExports.jsxs(a.Content,{"data-slot":"sheet-content",className:e.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),...n,children:[o,e.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:[e.jsxRuntimeExports.jsx(i.XIcon,{className:"size-4"}),e.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function f({className:t,...o}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-header",className:e.cn("flex flex-col gap-1.5 p-4",t),...o})}function h({className:t,...o}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-footer",className:e.cn("mt-auto flex flex-col gap-2 p-4",t),...o})}function g({className:t,...o}){return e.jsxRuntimeExports.jsx(a.Title,{"data-slot":"sheet-title",className:e.cn("text-foreground font-semibold",t),...o})}function j({className:t,...o}){return e.jsxRuntimeExports.jsx(a.Description,{"data-slot":"sheet-description",className:e.cn("text-muted-foreground paragraph-sm",t),...o})}exports.Sheet=d;exports.SheetClose=c;exports.SheetContent=p;exports.SheetDescription=j;exports.SheetFooter=h;exports.SheetHeader=f;exports.SheetTitle=g;exports.SheetTrigger=u;
|