@jongh/ui 2.20260902.1 → 2.20260905.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/chunks/{component-accordion-CNhK3gho.js → component-accordion-fyrDP4PS.js} +7 -6
- package/dist/chunks/{component-avatar-C5ox3FhU.js → component-avatar-Cl7qxXL7.js} +3 -3
- package/dist/chunks/{component-badge-GyL8C7n9.js → component-badge-BqDGL-KR.js} +4 -4
- package/dist/chunks/{component-box-BnXf833v.js → component-box-BVJJ_2Ye.js} +5 -4
- package/dist/chunks/{component-button-cnnLKCl_.js → component-button-6iooYVkM.js} +4 -4
- package/dist/chunks/{component-calendar-D53mkOdW.js → component-calendar-BIBA_BgQ.js} +41 -40
- package/dist/chunks/{component-center-BIp6NkIt.js → component-center-rifwb_-x.js} +7 -6
- package/dist/chunks/{component-checkbox-cJlGSnlk.js → component-checkbox-KSwDeqdV.js} +4 -4
- package/dist/chunks/{component-dialog-yBIkthjw.js → component-dialog-xLex6FJh.js} +7 -6
- package/dist/chunks/{component-grid-BKLFatKL.js → component-grid-aWgGm3Ad.js} +5 -4
- package/dist/chunks/{component-h-stack-ODw00BMb.js → component-h-stack-Cj62v71l.js} +5 -4
- package/dist/chunks/{component-select-CHwGLpGT.js → component-select-B35mHD7A.js} +3 -3
- package/dist/chunks/{component-slider-Ba5H5eY3.js → component-slider-CPcl-o95.js} +3 -3
- package/dist/chunks/{component-tabs-BIWU8zcA.js → component-tabs-2-w8TPID.js} +3 -3
- package/dist/chunks/{component-textfield-CCdnfRzb.js → component-textfield-CaSHslMS.js} +4 -4
- package/dist/chunks/{component-v-stack-_k842HHc.js → component-v-stack-BzMHYpjP.js} +5 -4
- package/dist/chunks/panda-runtime-C6bA3kfx.js +496 -0
- package/dist/chunks/{recipe-accordion-recipe-DPDnNF9J.js → recipe-accordion-recipe-CchKveXQ.js} +5 -5
- package/dist/chunks/{recipe-avatar-recipe-HkwMS2OJ.js → recipe-avatar-recipe-5VMtXIhg.js} +5 -5
- package/dist/chunks/{recipe-badge-recipe-DWojym5V.js → recipe-badge-recipe-D02izv1z.js} +5 -5
- package/dist/chunks/{recipe-button-recipe-BA1JNmBF.js → recipe-button-recipe-CjRb9Hj9.js} +5 -5
- package/dist/chunks/{recipe-calendar-recipe-CUjveeyt.js → recipe-calendar-recipe-BUUS4QEd.js} +5 -5
- package/dist/chunks/{recipe-center-recipe-CBm4FTPj.js → recipe-center-recipe-_gQI_rG1.js} +5 -5
- package/dist/chunks/{recipe-checkbox-recipe-CCDU79zw.js → recipe-checkbox-recipe-D72btvoT.js} +5 -5
- package/dist/chunks/{recipe-dialog-recipe-Dp_2WfN_.js → recipe-dialog-recipe-RKZYROxV.js} +5 -5
- package/dist/chunks/{recipe-layout-recipe-CXAjEcDn.js → recipe-layout-recipe-BMWtqxiV.js} +5 -5
- package/dist/chunks/{recipe-select-recipe-Chdpfb_N.js → recipe-select-recipe-BbGnyPQ_.js} +5 -5
- package/dist/chunks/{recipe-slider-recipe-Bn_q7Je8.js → recipe-slider-recipe-BHAFeUmN.js} +5 -5
- package/dist/chunks/{recipe-tabs-recipe-Bo5qcI1u.js → recipe-tabs-recipe-Cbr23IZY.js} +5 -5
- package/dist/chunks/{recipe-textfield-recipe-szIwdV6q.js → recipe-textfield-recipe-C2tyOCzn.js} +5 -5
- package/dist/index.js +39 -529
- package/package.json +4 -4
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
import "../base.css";
|
|
3
3
|
import "../recipes/accordion-recipe.css";
|
|
4
4
|
import { t as e } from "./rolldown-runtime-CKyOoeiN.js";
|
|
5
|
-
import { t } from "./
|
|
6
|
-
import {
|
|
5
|
+
import { r as t } from "./panda-runtime-C6bA3kfx.js";
|
|
6
|
+
import { t as n } from "./recipe-accordion-recipe-CchKveXQ.js";
|
|
7
|
+
import { a as r } from "../index.js";
|
|
7
8
|
import { forwardRef as i } from "react";
|
|
8
9
|
import { Accordion as a } from "radix-ui";
|
|
9
10
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
@@ -14,14 +15,14 @@ var c = /* @__PURE__ */ e({
|
|
|
14
15
|
Item: () => f,
|
|
15
16
|
Root: () => d,
|
|
16
17
|
Trigger: () => g
|
|
17
|
-
}), { withContext: l, withProvider: u } =
|
|
18
|
+
}), { withContext: l, withProvider: u } = t(n), d = u(a.Root, "root"), f = l(a.Item, "item"), p = l(a.Header, "header"), m = l("div", "contentWrapper"), h = l(i(({ children: e, ...t }, n) => /* @__PURE__ */ o(a.Content, {
|
|
18
19
|
ref: n,
|
|
19
20
|
...t,
|
|
20
21
|
children: /* @__PURE__ */ o(m, { children: e })
|
|
21
|
-
})), "content"), g = l(i(({ children: e, ...t },
|
|
22
|
-
ref:
|
|
22
|
+
})), "content"), g = l(i(({ children: e, ...t }, n) => /* @__PURE__ */ o(p, { children: /* @__PURE__ */ s(a.Trigger, {
|
|
23
|
+
ref: n,
|
|
23
24
|
...t,
|
|
24
|
-
children: [e, /* @__PURE__ */ o(
|
|
25
|
+
children: [e, /* @__PURE__ */ o(r, { "aria-hidden": "true" })]
|
|
25
26
|
}) })), "trigger");
|
|
26
27
|
//#endregion
|
|
27
28
|
export { c as t };
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import "../base.css";
|
|
3
3
|
import "../recipes/avatar-recipe.css";
|
|
4
4
|
import { t as e } from "./rolldown-runtime-CKyOoeiN.js";
|
|
5
|
-
import { t } from "./
|
|
6
|
-
import {
|
|
5
|
+
import { r as t } from "./panda-runtime-C6bA3kfx.js";
|
|
6
|
+
import { t as n } from "./recipe-avatar-recipe-5VMtXIhg.js";
|
|
7
7
|
import { Avatar as r } from "radix-ui";
|
|
8
8
|
//#region src/component/avatar/index.tsx
|
|
9
9
|
var i = /* @__PURE__ */ e({
|
|
10
10
|
Fallback: () => l,
|
|
11
11
|
Image: () => c,
|
|
12
12
|
Root: () => s
|
|
13
|
-
}), { withContext: a, withProvider: o } = n
|
|
13
|
+
}), { withContext: a, withProvider: o } = t(n), s = o(r.Root, "root"), c = a(r.Image, "image"), l = a(r.Fallback, "fallback");
|
|
14
14
|
//#endregion
|
|
15
15
|
export { i as t };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../base.css";
|
|
3
3
|
import "../recipes/badge-recipe.css";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { a as e } from "./panda-runtime-C6bA3kfx.js";
|
|
5
|
+
import { t } from "./recipe-badge-recipe-D02izv1z.js";
|
|
6
6
|
import { forwardRef as n } from "react";
|
|
7
7
|
import { jsx as r } from "react/jsx-runtime";
|
|
8
8
|
//#region src/component/badge/index.tsx
|
|
9
9
|
var i = n(({ className: n, children: i, ...a }, o) => {
|
|
10
|
-
let [s, c] =
|
|
10
|
+
let [s, c] = t.splitVariantProps(a), l = t(s);
|
|
11
11
|
return /* @__PURE__ */ r("span", {
|
|
12
12
|
ref: o,
|
|
13
|
-
className:
|
|
13
|
+
className: e(l.root, n),
|
|
14
14
|
...c,
|
|
15
15
|
children: /* @__PURE__ */ r("span", {
|
|
16
16
|
className: l.label,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../base.css";
|
|
3
3
|
import "../recipes/layout-recipe.css";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { a as e, i as t } from "./panda-runtime-C6bA3kfx.js";
|
|
5
|
+
import { t as n } from "./recipe-layout-recipe-BMWtqxiV.js";
|
|
6
|
+
import { t as r } from "../index.js";
|
|
6
7
|
import { forwardRef as i } from "react";
|
|
7
8
|
import { jsx as a } from "react/jsx-runtime";
|
|
8
9
|
import { Primitive as o } from "radix-ui/internal";
|
|
@@ -13,9 +14,9 @@ var s = i(({ asChild: i, ...s }, c) => {
|
|
|
13
14
|
asChild: i,
|
|
14
15
|
ref: c,
|
|
15
16
|
"data-slot": "box",
|
|
16
|
-
className:
|
|
17
|
+
className: e(n(), d),
|
|
17
18
|
style: {
|
|
18
|
-
...
|
|
19
|
+
...r(l),
|
|
19
20
|
...f
|
|
20
21
|
},
|
|
21
22
|
...p
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../base.css";
|
|
3
3
|
import "../recipes/button-recipe.css";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { a as e } from "./panda-runtime-C6bA3kfx.js";
|
|
5
|
+
import { t } from "./recipe-button-recipe-CjRb9Hj9.js";
|
|
6
6
|
import { forwardRef as n } from "react";
|
|
7
7
|
import { jsx as r } from "react/jsx-runtime";
|
|
8
8
|
import { Primitive as i } from "radix-ui/internal";
|
|
9
9
|
//#region src/component/button/index.tsx
|
|
10
10
|
var a = n(({ asChild: n, className: a, ...o }, s) => {
|
|
11
|
-
let [c, l] =
|
|
11
|
+
let [c, l] = t.splitVariantProps(o);
|
|
12
12
|
return /* @__PURE__ */ r(i.button, {
|
|
13
13
|
asChild: n,
|
|
14
14
|
ref: s,
|
|
15
|
-
className: t(
|
|
15
|
+
className: e(t(c), a),
|
|
16
16
|
...l
|
|
17
17
|
});
|
|
18
18
|
});
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
import "../base.css";
|
|
3
3
|
import "../recipes/calendar-recipe.css";
|
|
4
4
|
import { t as e } from "./rolldown-runtime-CKyOoeiN.js";
|
|
5
|
-
import { t } from "./
|
|
6
|
-
import {
|
|
5
|
+
import { a as t } from "./panda-runtime-C6bA3kfx.js";
|
|
6
|
+
import { t as n } from "./recipe-calendar-recipe-BUUS4QEd.js";
|
|
7
|
+
import { i as r, r as i } from "../index.js";
|
|
7
8
|
import { forwardRef as a, useCallback as o, useMemo as s } from "react";
|
|
8
9
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
9
10
|
import { Context as u, useControllableState as d } from "radix-ui/internal";
|
|
@@ -24,9 +25,9 @@ var f = /* @__PURE__ */ e({
|
|
|
24
25
|
...n,
|
|
25
26
|
type: "range"
|
|
26
27
|
});
|
|
27
|
-
}, _ = a(({ className: e, children:
|
|
28
|
+
}, _ = a(({ className: e, children: r, range: i, defaultRange: a, onRangeChange: l, viewDate: u, defaultViewDate: f, onViewDateChange: p, weekStart: h = 0, locale: g = "en-US", ..._ }, v) => {
|
|
28
29
|
let [y, b] = d({
|
|
29
|
-
prop:
|
|
30
|
+
prop: i,
|
|
30
31
|
defaultProp: a ?? [null, null],
|
|
31
32
|
onChange: l
|
|
32
33
|
}), [x, S] = d({
|
|
@@ -56,10 +57,10 @@ var f = /* @__PURE__ */ e({
|
|
|
56
57
|
let [r, i] = n, a = r ? new Date(r) : null;
|
|
57
58
|
return a && a.setHours(0, 0, 0, 0), a ? a && !i ? t < a ? [e, null] : [r, e] : a && i ? [e, null] : n : [e, null];
|
|
58
59
|
});
|
|
59
|
-
}, [b]), D =
|
|
60
|
+
}, [b]), D = n();
|
|
60
61
|
return /* @__PURE__ */ c("div", {
|
|
61
62
|
ref: v,
|
|
62
|
-
className:
|
|
63
|
+
className: t(D.root, e),
|
|
63
64
|
..._,
|
|
64
65
|
children: /* @__PURE__ */ c(m, {
|
|
65
66
|
value: T,
|
|
@@ -69,16 +70,16 @@ var f = /* @__PURE__ */ e({
|
|
|
69
70
|
onYearChange: w,
|
|
70
71
|
selectedValue: y,
|
|
71
72
|
handleDayClick: E,
|
|
72
|
-
children:
|
|
73
|
+
children: r
|
|
73
74
|
})
|
|
74
75
|
});
|
|
75
|
-
}), v = a(({ className: e, children:
|
|
76
|
+
}), v = a(({ className: e, children: r, date: i, defaultDate: a, onDateChange: l, viewDate: u, defaultViewDate: f, onViewDateChange: p, weekStart: h = 0, locale: g = "en-US", ..._ }, v) => {
|
|
76
77
|
let [y, b] = d({
|
|
77
78
|
prop: u,
|
|
78
79
|
defaultProp: f ?? /* @__PURE__ */ new Date(),
|
|
79
80
|
onChange: p
|
|
80
81
|
}), [x, S] = d({
|
|
81
|
-
prop:
|
|
82
|
+
prop: i,
|
|
82
83
|
defaultProp: a ?? null,
|
|
83
84
|
onChange: l
|
|
84
85
|
}), C = o((e) => {
|
|
@@ -98,7 +99,7 @@ var f = /* @__PURE__ */ e({
|
|
|
98
99
|
daysInPrevMonth: r.getDate(),
|
|
99
100
|
nextMonthStartWeek: (i.getDay() - h + 7) % 7
|
|
100
101
|
};
|
|
101
|
-
}, [y, h]), E =
|
|
102
|
+
}, [y, h]), E = n();
|
|
102
103
|
return /* @__PURE__ */ c(m, {
|
|
103
104
|
value: T,
|
|
104
105
|
onMonthChange: C,
|
|
@@ -109,25 +110,25 @@ var f = /* @__PURE__ */ e({
|
|
|
109
110
|
handleDayClick: (e) => S(e),
|
|
110
111
|
children: /* @__PURE__ */ c("div", {
|
|
111
112
|
ref: v,
|
|
112
|
-
className:
|
|
113
|
+
className: t(E.root, e),
|
|
113
114
|
..._,
|
|
114
|
-
children:
|
|
115
|
+
children: r
|
|
115
116
|
})
|
|
116
117
|
});
|
|
117
118
|
}), y = ({ className: e, month: a = "long", year: o = "numeric", render: s }) => {
|
|
118
|
-
let { value: u, onMonthChange: d, locale: f } = h(p), m =
|
|
119
|
+
let { value: u, onMonthChange: d, locale: f } = h(p), m = n(), g = new Intl.DateTimeFormat(f, {
|
|
119
120
|
month: a,
|
|
120
121
|
year: o
|
|
121
122
|
}).format(new Date(u.year, u.month - 1));
|
|
122
123
|
return /* @__PURE__ */ l("div", {
|
|
123
|
-
className:
|
|
124
|
+
className: t(m.header, e),
|
|
124
125
|
children: [
|
|
125
126
|
/* @__PURE__ */ c("button", {
|
|
126
127
|
type: "button",
|
|
127
128
|
className: m.navButton,
|
|
128
129
|
onClick: () => d(-1),
|
|
129
130
|
"aria-label": "Go To Previous month",
|
|
130
|
-
children: /* @__PURE__ */ c(
|
|
131
|
+
children: /* @__PURE__ */ c(r, {})
|
|
131
132
|
}),
|
|
132
133
|
/* @__PURE__ */ c("div", {
|
|
133
134
|
className: m.title,
|
|
@@ -138,24 +139,24 @@ var f = /* @__PURE__ */ e({
|
|
|
138
139
|
className: m.navButton,
|
|
139
140
|
onClick: () => d(1),
|
|
140
141
|
"aria-label": "Go To Next month",
|
|
141
|
-
children: /* @__PURE__ */ c(
|
|
142
|
+
children: /* @__PURE__ */ c(i, {})
|
|
142
143
|
})
|
|
143
144
|
]
|
|
144
145
|
});
|
|
145
|
-
}, b = ({ className: e, format:
|
|
146
|
-
let { weekStart:
|
|
146
|
+
}, b = ({ className: e, format: r = "short" }) => {
|
|
147
|
+
let { weekStart: i, locale: a } = h(p), o = n();
|
|
147
148
|
return /* @__PURE__ */ c("div", {
|
|
148
|
-
className:
|
|
149
|
-
children: C(
|
|
149
|
+
className: t(o.weekdayRow, e),
|
|
150
|
+
children: C(i, a, r).map((e, t) => /* @__PURE__ */ c("div", {
|
|
150
151
|
className: o.weekday,
|
|
151
152
|
children: e
|
|
152
153
|
}, t))
|
|
153
154
|
});
|
|
154
|
-
}, x = ({ className: e, day:
|
|
155
|
-
let { locale: u, selectedValue: d } = h(p), f =
|
|
155
|
+
}, x = ({ className: e, day: r, month: i, year: a, isHidden: o, isOutsideMonth: s, ...l }) => {
|
|
156
|
+
let { locale: u, selectedValue: d } = h(p), f = n(), m = new Date(a, i - 1, r), g = /* @__PURE__ */ new Date(), _ = d[0], v = d[1], y = d.some((e) => e && w(e, m)), b = w(g, m), x = !!(_ && v && m > _ && m < v);
|
|
156
157
|
return /* @__PURE__ */ c("button", {
|
|
157
158
|
type: "button",
|
|
158
|
-
className:
|
|
159
|
+
className: t(f.dayCell, e),
|
|
159
160
|
"data-day": m.getDate(),
|
|
160
161
|
"data-month": m.getMonth() + 1,
|
|
161
162
|
"data-year": m.getFullYear(),
|
|
@@ -171,20 +172,20 @@ var f = /* @__PURE__ */ e({
|
|
|
171
172
|
disabled: o,
|
|
172
173
|
tabIndex: o ? -1 : void 0,
|
|
173
174
|
...l,
|
|
174
|
-
children: !o &&
|
|
175
|
+
children: !o && r
|
|
175
176
|
});
|
|
176
|
-
}, S = ({ className: e, showOutsideDays:
|
|
177
|
-
let { value:
|
|
177
|
+
}, S = ({ className: e, showOutsideDays: r = !0 }) => {
|
|
178
|
+
let { value: i, handleDayClick: a } = h(p), o = n(), l = s(() => {
|
|
178
179
|
let e = [];
|
|
179
|
-
for (let t =
|
|
180
|
-
day:
|
|
180
|
+
for (let t = i.startWeek; t > 0; t--) e.push({
|
|
181
|
+
day: i.daysInPrevMonth - t + 1,
|
|
181
182
|
isCurrentMonth: !1
|
|
182
183
|
});
|
|
183
|
-
for (let t = 1; t <=
|
|
184
|
+
for (let t = 1; t <= i.daysInMonth; t++) e.push({
|
|
184
185
|
day: t,
|
|
185
186
|
isCurrentMonth: !0
|
|
186
187
|
});
|
|
187
|
-
for (let t = 1; t <= 6 -
|
|
188
|
+
for (let t = 1; t <= 6 - i.nextMonthStartWeek + 1; t++) e.push({
|
|
188
189
|
day: t,
|
|
189
190
|
isCurrentMonth: !1
|
|
190
191
|
});
|
|
@@ -192,28 +193,28 @@ var f = /* @__PURE__ */ e({
|
|
|
192
193
|
for (let n = 0; n < e.length; n += 7) t.push(e.slice(n, n + 7));
|
|
193
194
|
return t;
|
|
194
195
|
}, [
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
196
|
+
i.startWeek,
|
|
197
|
+
i.daysInMonth,
|
|
198
|
+
i.daysInPrevMonth,
|
|
199
|
+
i.nextMonthStartWeek
|
|
199
200
|
]);
|
|
200
201
|
return /* @__PURE__ */ c("table", {
|
|
201
|
-
className:
|
|
202
|
+
className: t(o.daysGrid, e),
|
|
202
203
|
children: /* @__PURE__ */ c("tbody", { children: l.map((e, t) => /* @__PURE__ */ c("tr", {
|
|
203
204
|
className: o.weekRow,
|
|
204
|
-
children: e.map((e,
|
|
205
|
-
let s = !
|
|
205
|
+
children: e.map((e, n) => {
|
|
206
|
+
let s = !r && !e.isCurrentMonth, l = e.isCurrentMonth ? i.month : t === 0 ? i.month - 1 : i.month + 1;
|
|
206
207
|
return /* @__PURE__ */ c("td", {
|
|
207
208
|
className: o.dayWrapper,
|
|
208
209
|
children: /* @__PURE__ */ c(x, {
|
|
209
210
|
day: e.day,
|
|
210
211
|
month: l,
|
|
211
|
-
year:
|
|
212
|
+
year: i.year,
|
|
212
213
|
isHidden: s,
|
|
213
214
|
isOutsideMonth: !e.isCurrentMonth,
|
|
214
|
-
onClick: () => a(new Date(
|
|
215
|
+
onClick: () => a(new Date(i.year, l - 1, e.day))
|
|
215
216
|
})
|
|
216
|
-
}, `${t}-${
|
|
217
|
+
}, `${t}-${n}`);
|
|
217
218
|
})
|
|
218
219
|
}, t)) })
|
|
219
220
|
});
|
|
@@ -2,22 +2,23 @@
|
|
|
2
2
|
import "../base.css";
|
|
3
3
|
import "../recipes/center-recipe.css";
|
|
4
4
|
import "../recipes/layout-recipe.css";
|
|
5
|
-
import {
|
|
6
|
-
import { t } from "./recipe-
|
|
7
|
-
import {
|
|
5
|
+
import { a as e, i as t } from "./panda-runtime-C6bA3kfx.js";
|
|
6
|
+
import { t as n } from "./recipe-center-recipe-_gQI_rG1.js";
|
|
7
|
+
import { t as r } from "./recipe-layout-recipe-BMWtqxiV.js";
|
|
8
|
+
import { t as i } from "../index.js";
|
|
8
9
|
import { forwardRef as a } from "react";
|
|
9
10
|
import { jsx as o } from "react/jsx-runtime";
|
|
10
11
|
import { Primitive as s } from "radix-ui/internal";
|
|
11
12
|
//#region src/component/center/index.tsx
|
|
12
13
|
var c = a(({ asChild: a, axis: c = "both", isInline: l = !1, children: u, ...d }, f) => {
|
|
13
|
-
let [p, m] =
|
|
14
|
+
let [p, m] = t(d), { className: h, style: g, ..._ } = m;
|
|
14
15
|
return /* @__PURE__ */ o(s.div, {
|
|
15
16
|
asChild: a,
|
|
16
17
|
ref: f,
|
|
17
18
|
"data-slot": "center",
|
|
18
|
-
className:
|
|
19
|
+
className: e(r(), n({ axis: c }), h),
|
|
19
20
|
style: {
|
|
20
|
-
...
|
|
21
|
+
...i({
|
|
21
22
|
...p,
|
|
22
23
|
display: p.display ?? (l ? "inline-flex" : "flex")
|
|
23
24
|
}),
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../base.css";
|
|
3
3
|
import "../recipes/checkbox-recipe.css";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { a as e } from "./panda-runtime-C6bA3kfx.js";
|
|
5
|
+
import { t } from "./recipe-checkbox-recipe-D72btvoT.js";
|
|
6
6
|
import { forwardRef as n, useEffect as r, useId as i, useRef as a } from "react";
|
|
7
7
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
8
|
import { useComposedRefs as c, useControllableState as l } from "radix-ui/internal";
|
|
9
9
|
//#region src/component/checkbox/index.tsx
|
|
10
10
|
var u = n((n, u) => {
|
|
11
|
-
let [d, f] =
|
|
11
|
+
let [d, f] = t.splitVariantProps(n), { label: p, indeterminate: m, onCheckedChange: h, onChange: g, ..._ } = f, { root: v, label: y, input: b, text: x } = t(d), [S, C] = l({
|
|
12
12
|
prop: _.checked,
|
|
13
13
|
defaultProp: _.defaultChecked ?? !1,
|
|
14
14
|
onChange: h
|
|
@@ -33,7 +33,7 @@ var u = n((n, u) => {
|
|
|
33
33
|
children: [/* @__PURE__ */ o("input", {
|
|
34
34
|
type: "checkbox",
|
|
35
35
|
id: `checkbox-${E}`,
|
|
36
|
-
className:
|
|
36
|
+
className: e(b, "peer"),
|
|
37
37
|
ref: D,
|
|
38
38
|
onChange: (e) => {
|
|
39
39
|
C(e.currentTarget.checked), g?.(e);
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
import "../base.css";
|
|
3
3
|
import "../recipes/dialog-recipe.css";
|
|
4
4
|
import { t as e } from "./rolldown-runtime-CKyOoeiN.js";
|
|
5
|
-
import { t } from "./
|
|
6
|
-
import {
|
|
5
|
+
import { o as t, r as n } from "./panda-runtime-C6bA3kfx.js";
|
|
6
|
+
import { t as r } from "./recipe-dialog-recipe-RKZYROxV.js";
|
|
7
|
+
import { n as i } from "../index.js";
|
|
7
8
|
import { forwardRef as a } from "react";
|
|
8
9
|
import { Dialog as o } from "radix-ui";
|
|
9
10
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
@@ -20,13 +21,13 @@ var l = /* @__PURE__ */ e({
|
|
|
20
21
|
Root: () => f,
|
|
21
22
|
Title: () => S,
|
|
22
23
|
Trigger: () => b
|
|
23
|
-
}), { withContext: u, withRootProvider: d } = n(
|
|
24
|
+
}), { withContext: u, withRootProvider: d } = n(r), f = d(o.Root), p = u(o.Portal, "portal"), m = u(o.Overlay, "overlay"), h = u("div", "header"), g = u(o.Close, "close"), _ = o.Close, v = a(({ children: e, closeIcon: n = !0, ...r }, a) => /* @__PURE__ */ c(p, { children: [/* @__PURE__ */ s(m, {}), /* @__PURE__ */ c(o.Content, {
|
|
24
25
|
ref: a,
|
|
25
|
-
...
|
|
26
|
-
children: [e,
|
|
26
|
+
...r,
|
|
27
|
+
children: [e, n && /* @__PURE__ */ c(g, {
|
|
27
28
|
"aria-label": "Close Dialog",
|
|
28
29
|
children: [/* @__PURE__ */ s(i, {}), /* @__PURE__ */ s("span", {
|
|
29
|
-
className:
|
|
30
|
+
className: t({ srOnly: !0 }),
|
|
30
31
|
children: "Close"
|
|
31
32
|
})]
|
|
32
33
|
})]
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../base.css";
|
|
3
3
|
import "../recipes/layout-recipe.css";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { a as e, i as t } from "./panda-runtime-C6bA3kfx.js";
|
|
5
|
+
import { t as n } from "./recipe-layout-recipe-BMWtqxiV.js";
|
|
6
|
+
import { t as r } from "../index.js";
|
|
6
7
|
import { forwardRef as i } from "react";
|
|
7
8
|
import { jsx as a } from "react/jsx-runtime";
|
|
8
9
|
import { Primitive as o } from "radix-ui/internal";
|
|
@@ -13,9 +14,9 @@ var s = (e) => typeof e != "object" || !e ? typeof e == "number" ? `repeat(${e},
|
|
|
13
14
|
asChild: i,
|
|
14
15
|
ref: v,
|
|
15
16
|
"data-slot": "grid",
|
|
16
|
-
className:
|
|
17
|
+
className: e(n(), x),
|
|
17
18
|
style: {
|
|
18
|
-
...
|
|
19
|
+
...r({
|
|
19
20
|
...y,
|
|
20
21
|
display: y.display ?? "grid",
|
|
21
22
|
alignItems: c,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../base.css";
|
|
3
3
|
import "../recipes/layout-recipe.css";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { a as e, i as t } from "./panda-runtime-C6bA3kfx.js";
|
|
5
|
+
import { t as n } from "./recipe-layout-recipe-BMWtqxiV.js";
|
|
6
|
+
import { t as r } from "../index.js";
|
|
6
7
|
import { forwardRef as i } from "react";
|
|
7
8
|
import { jsx as a } from "react/jsx-runtime";
|
|
8
9
|
import { Primitive as o } from "radix-ui/internal";
|
|
@@ -13,9 +14,9 @@ var s = i(({ asChild: i, align: s, justify: c, wrap: l, grow: u, shrink: d, chil
|
|
|
13
14
|
asChild: i,
|
|
14
15
|
ref: m,
|
|
15
16
|
"data-slot": "h-stack",
|
|
16
|
-
className:
|
|
17
|
+
className: e(n(), _),
|
|
17
18
|
style: {
|
|
18
|
-
...
|
|
19
|
+
...r({
|
|
19
20
|
...h,
|
|
20
21
|
display: h.display ?? "flex",
|
|
21
22
|
flexDirection: h.flexDirection ?? "row",
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import "../base.css";
|
|
3
3
|
import "../recipes/select-recipe.css";
|
|
4
4
|
import { t as e } from "./rolldown-runtime-CKyOoeiN.js";
|
|
5
|
-
import { t } from "./
|
|
6
|
-
import {
|
|
5
|
+
import { r as t } from "./panda-runtime-C6bA3kfx.js";
|
|
6
|
+
import { t as n } from "./recipe-select-recipe-BbGnyPQ_.js";
|
|
7
7
|
import { forwardRef as r } from "react";
|
|
8
8
|
import { Select as i } from "radix-ui";
|
|
9
9
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
@@ -23,7 +23,7 @@ var s = /* @__PURE__ */ e({
|
|
|
23
23
|
Trigger: () => m,
|
|
24
24
|
Value: () => p,
|
|
25
25
|
Viewport: () => y
|
|
26
|
-
}), { withContext: c, withRootProvider: l } = n
|
|
26
|
+
}), { withContext: c, withRootProvider: l } = t(n), u = r(({ children: e, ...t }, n) => /* @__PURE__ */ o(i.Trigger, {
|
|
27
27
|
ref: n,
|
|
28
28
|
...t,
|
|
29
29
|
children: [e, /* @__PURE__ */ a(i.Icon, { asChild: !0 })]
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import "../base.css";
|
|
3
3
|
import "../recipes/slider-recipe.css";
|
|
4
4
|
import { t as e } from "./rolldown-runtime-CKyOoeiN.js";
|
|
5
|
-
import { t } from "./
|
|
6
|
-
import {
|
|
5
|
+
import { r as t } from "./panda-runtime-C6bA3kfx.js";
|
|
6
|
+
import { t as n } from "./recipe-slider-recipe-BHAFeUmN.js";
|
|
7
7
|
import { Slider as r } from "radix-ui";
|
|
8
8
|
//#region src/component/slider/index.tsx
|
|
9
9
|
var i = /* @__PURE__ */ e({
|
|
@@ -11,6 +11,6 @@ var i = /* @__PURE__ */ e({
|
|
|
11
11
|
Root: () => s,
|
|
12
12
|
Thumb: () => u,
|
|
13
13
|
Track: () => c
|
|
14
|
-
}), { withContext: a, withProvider: o } = n
|
|
14
|
+
}), { withContext: a, withProvider: o } = t(n), s = o(r.Root, "root"), c = a(r.Track, "track"), l = a(r.Range, "range"), u = a(r.Thumb, "thumb");
|
|
15
15
|
//#endregion
|
|
16
16
|
export { i as t };
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import "../base.css";
|
|
3
3
|
import "../recipes/tabs-recipe.css";
|
|
4
4
|
import { t as e } from "./rolldown-runtime-CKyOoeiN.js";
|
|
5
|
-
import { t } from "./
|
|
6
|
-
import {
|
|
5
|
+
import { r as t } from "./panda-runtime-C6bA3kfx.js";
|
|
6
|
+
import { t as n } from "./recipe-tabs-recipe-Cbr23IZY.js";
|
|
7
7
|
import { forwardRef as r, useImperativeHandle as i, useLayoutEffect as a, useRef as o, useState as s } from "react";
|
|
8
8
|
import { Tabs as c } from "radix-ui";
|
|
9
9
|
import { jsx as l } from "react/jsx-runtime";
|
|
@@ -14,7 +14,7 @@ var u = /* @__PURE__ */ e({
|
|
|
14
14
|
List: () => m,
|
|
15
15
|
Root: () => p,
|
|
16
16
|
Trigger: () => h
|
|
17
|
-
}), { withContext: d, withProvider: f } = n
|
|
17
|
+
}), { withContext: d, withProvider: f } = t(n), p = f(c.Root, "root"), m = d(c.List, "list"), h = d(c.Trigger, "trigger"), g = r(({ style: e, ...t }, n) => {
|
|
18
18
|
let r = o(null), [c, u] = s({
|
|
19
19
|
left: 0,
|
|
20
20
|
width: 0
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../base.css";
|
|
3
3
|
import "../recipes/textfield-recipe.css";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { a as e } from "./panda-runtime-C6bA3kfx.js";
|
|
5
|
+
import { t } from "./recipe-textfield-recipe-C2tyOCzn.js";
|
|
6
6
|
import { forwardRef as n } from "react";
|
|
7
7
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
8
8
|
//#region src/component/textfield/index.tsx
|
|
9
9
|
var a = (e) => `${e}-helper-text`, o = n((n, o) => {
|
|
10
|
-
let [s, c] =
|
|
10
|
+
let [s, c] = t.splitVariantProps(n), { className: l, leadingAddon: u, trailingAddon: d, label: f, helperText: p, id: m, required: h = !1, ...g } = c, _ = t(s);
|
|
11
11
|
return /* @__PURE__ */ i("div", {
|
|
12
12
|
className: _.root,
|
|
13
13
|
children: [
|
|
@@ -26,7 +26,7 @@ var a = (e) => `${e}-helper-text`, o = n((n, o) => {
|
|
|
26
26
|
u && /* @__PURE__ */ r("div", { children: u }),
|
|
27
27
|
/* @__PURE__ */ r("input", {
|
|
28
28
|
ref: o,
|
|
29
|
-
className:
|
|
29
|
+
className: e(_.input, l),
|
|
30
30
|
required: h,
|
|
31
31
|
id: m,
|
|
32
32
|
"aria-describedby": a(m),
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../base.css";
|
|
3
3
|
import "../recipes/layout-recipe.css";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { a as e, i as t } from "./panda-runtime-C6bA3kfx.js";
|
|
5
|
+
import { t as n } from "./recipe-layout-recipe-BMWtqxiV.js";
|
|
6
|
+
import { t as r } from "../index.js";
|
|
6
7
|
import { forwardRef as i } from "react";
|
|
7
8
|
import { jsx as a } from "react/jsx-runtime";
|
|
8
9
|
import { Primitive as o } from "radix-ui/internal";
|
|
@@ -13,9 +14,9 @@ var s = i(({ asChild: i, align: s, justify: c, wrap: l, grow: u, shrink: d, chil
|
|
|
13
14
|
asChild: i,
|
|
14
15
|
ref: m,
|
|
15
16
|
"data-slot": "v-stack",
|
|
16
|
-
className:
|
|
17
|
+
className: e(n(), _),
|
|
17
18
|
style: {
|
|
18
|
-
...
|
|
19
|
+
...r({
|
|
19
20
|
...h,
|
|
20
21
|
display: h.display ?? "flex",
|
|
21
22
|
flexDirection: h.flexDirection ?? "column",
|