@stokelp/ui 1.38.2 → 1.39.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/components/date-picker/DatePicker.d.ts +1 -0
- package/dist/ui.cjs +3 -3
- package/dist/ui.cjs.map +1 -1
- package/dist/ui.js +99 -74
- package/dist/ui.js.map +1 -1
- package/package.json +1 -1
package/dist/ui.js
CHANGED
|
@@ -3,24 +3,24 @@ import { jsx as C, jsxs as d, Fragment as p1 } from "react/jsx-runtime";
|
|
|
3
3
|
import { Accordion as K, ark as M, Checkbox as j, Dialog as P, Portal as C1, Tooltip as O, Switch as q, Tabs as G, Select as s, DatePicker as p, RadioGroup as H, Popover as D, switchAnatomy as S5, dialogAnatomy as T5, accordionAnatomy as P5, checkboxAnatomy as k5, tabsAnatomy as I5, selectAnatomy as G1, datePickerAnatomy as z5, radioGroupAnatomy as U1, tooltipAnatomy as F5, popoverAnatomy as B5 } from "@ark-ui/react";
|
|
4
4
|
import { styled as o, splitCssProps as U, Circle as D5 } from "@stokelp/styled-system/jsx";
|
|
5
5
|
import { accordion as A5, button as E5, checkbox as x1, drawer as N5, formControl as j5, tooltip as W5, formLabel as s1, formHelperText as $5, heading as O5, switchRecipe as H1, text as G5, textarea as U5, tabs as Y5, select as X5, input as q5, inputAddon as J5, inputGroup as Q5, datepicker as K5, tag as w1, radioButtonGroup as C2, radioGroup as e2, chip as l2, actionCard as r2, iconButton as o2, alert as t2, tableContainer as i2, tableGroupTitle as n2, tableEmptyRow as L2, table as d2, breadcrumb as a2, popover as c2, pagination as u2, illustration as M2, buttonFilter as p2, statusTagSelect as s2, productCardCatalog as Z2 } from "@stokelp/styled-system/recipes";
|
|
6
|
-
import { createContext as Y1, forwardRef as
|
|
6
|
+
import { createContext as Y1, forwardRef as f, useContext as X1, createElement as q1, useMemo as n1, useReducer as h2, useEffect as f2, useRef as v1, useLayoutEffect as g1, Children as v2, cloneElement as Z1, useState as J1 } from "react";
|
|
7
7
|
import { cx as W, css as e1, sva as g2 } from "@stokelp/styled-system/css";
|
|
8
8
|
import * as R2 from "react-is";
|
|
9
9
|
import { defineKeyframes as m2, defineRecipe as b, defineSlotRecipe as Z, defineSemanticTokens as b2, defineTextStyles as y2, defineTokens as g, defineUtility as x2, definePreset as H2 } from "@pandacss/dev";
|
|
10
10
|
const V1 = (...e) => e.filter(Boolean).join(" "), R = (e, l) => {
|
|
11
11
|
const r = Y1(null);
|
|
12
12
|
return {
|
|
13
|
-
withContext: (a, n, L) => n ?
|
|
13
|
+
withContext: (a, n, L) => n ? f((c, h) => {
|
|
14
14
|
const y = X1(r), _ = (l == null ? void 0 : l.dataAttr) ?? !1;
|
|
15
15
|
return q1(a, {
|
|
16
16
|
..._ && { "data-recipe-slot": n ?? "" },
|
|
17
17
|
...c,
|
|
18
18
|
...L == null ? void 0 : L.defaultProps,
|
|
19
19
|
className: V1(y == null ? void 0 : y[n ?? ""], c.className),
|
|
20
|
-
ref:
|
|
20
|
+
ref: h
|
|
21
21
|
});
|
|
22
22
|
}) : a,
|
|
23
|
-
withProvider: (a, n, L) =>
|
|
23
|
+
withProvider: (a, n, L) => f((c, h) => {
|
|
24
24
|
const [y, { children: _, ...I }] = e.splitVariantProps({
|
|
25
25
|
...c,
|
|
26
26
|
...L == null ? void 0 : L.defaultProps
|
|
@@ -28,7 +28,7 @@ const V1 = (...e) => e.filter(Boolean).join(" "), R = (e, l) => {
|
|
|
28
28
|
return /* @__PURE__ */ C(r.Provider, { value: S, children: /* @__PURE__ */ d(
|
|
29
29
|
a,
|
|
30
30
|
{
|
|
31
|
-
ref:
|
|
31
|
+
ref: h,
|
|
32
32
|
...w && { "data-recipe-slot": n ?? "" },
|
|
33
33
|
...I,
|
|
34
34
|
className: V1(S[n ?? ""], I.className),
|
|
@@ -45,7 +45,7 @@ const V1 = (...e) => e.filter(Boolean).join(" "), R = (e, l) => {
|
|
|
45
45
|
defaultProps: {
|
|
46
46
|
children: /* @__PURE__ */ C("svg", { width: "16", height: "17", viewBox: "0 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ C("path", { d: "M4.94 6.03L8 9.08333L11.06 6.03L12 6.97L8 10.97L4 6.97L4.94 6.03Z", fill: "currentColor" }) })
|
|
47
47
|
}
|
|
48
|
-
}), S9 = L1(o(K.ItemTrigger), "itemTrigger"), h1 = o(M.button, E5), V2 =
|
|
48
|
+
}), S9 = L1(o(K.ItemTrigger), "itemTrigger"), h1 = o(M.button, E5), V2 = f((e, l) => {
|
|
49
49
|
const [r, t] = x1.splitVariantProps(e), [i, a] = U(t), { children: n, className: L, ...u } = a, c = x1(r);
|
|
50
50
|
return /* @__PURE__ */ d(j.Root, { ref: l, className: W(c.root, e1(i), L), ...u, children: [
|
|
51
51
|
/* @__PURE__ */ d(j.Control, { className: c.control, children: [
|
|
@@ -74,7 +74,7 @@ const _2 = () => /* @__PURE__ */ d("svg", { viewBox: "0 0 12 13", fill: "none",
|
|
|
74
74
|
unmountOnExit: !0,
|
|
75
75
|
lazyMount: !0
|
|
76
76
|
}
|
|
77
|
-
}), P9 = k(o(M.main), "body"), P2 = k(o(P.CloseTrigger), "closeTrigger"), k9 = k(o(M.footer), "footer"), Q1 =
|
|
77
|
+
}), P9 = k(o(M.main), "body"), P2 = k(o(P.CloseTrigger), "closeTrigger"), k9 = k(o(M.footer), "footer"), Q1 = f(
|
|
78
78
|
({ children: e, showCloseTrigger: l = !0, ...r }, t) => /* @__PURE__ */ d(M.header, { ...r, ref: t, children: [
|
|
79
79
|
e,
|
|
80
80
|
l && /* @__PURE__ */ C(P2, { asChild: !0, children: /* @__PURE__ */ C(h1, { ml: "auto", p: "space-8", variant: "tertiary", children: /* @__PURE__ */ C("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ C(
|
|
@@ -87,7 +87,7 @@ const _2 = () => /* @__PURE__ */ d("svg", { viewBox: "0 0 12 13", fill: "none",
|
|
|
87
87
|
] })
|
|
88
88
|
);
|
|
89
89
|
Q1.displayName = "DrawerHeader";
|
|
90
|
-
const I9 = k(Q1, "header"), z9 = k(o(P.Title), "title"), F9 = k(o(P.Trigger), "trigger"), k2 = k(o(P.Positioner), "positioner"), I2 = k(o(P.Backdrop), "backdrop"), K1 =
|
|
90
|
+
const I9 = k(Q1, "header"), z9 = k(o(P.Title), "title"), F9 = k(o(P.Trigger), "trigger"), k2 = k(o(P.Positioner), "positioner"), I2 = k(o(P.Backdrop), "backdrop"), K1 = f(
|
|
91
91
|
({ children: e, ...l }, r) => /* @__PURE__ */ d(C1, { children: [
|
|
92
92
|
/* @__PURE__ */ C(I2, {}),
|
|
93
93
|
/* @__PURE__ */ C(k2, { children: /* @__PURE__ */ C(P.Content, { ref: r, ...l, children: e }) })
|
|
@@ -123,14 +123,14 @@ const B9 = k(o(K1), "content"), D9 = P.Context, z2 = o("div", j5, {
|
|
|
123
123
|
] }) })
|
|
124
124
|
] });
|
|
125
125
|
}, $2 = o("label", s1), E9 = (e) => {
|
|
126
|
-
const [l, r] = s1.splitVariantProps(e), [t, i] = U(r), { children: a, className: n, addon: L, tooltipInformation: u, ...c } = i,
|
|
127
|
-
return /* @__PURE__ */ d($2, { className: W(
|
|
126
|
+
const [l, r] = s1.splitVariantProps(e), [t, i] = U(r), { children: a, className: n, addon: L, tooltipInformation: u, ...c } = i, h = s1(l);
|
|
127
|
+
return /* @__PURE__ */ d($2, { className: W(h.root, e1(t), n), ...c, children: [
|
|
128
128
|
a,
|
|
129
|
-
L ? /* @__PURE__ */ C(o.span, { className:
|
|
129
|
+
L ? /* @__PURE__ */ C(o.span, { className: h.addon, children: L }) : null,
|
|
130
130
|
u ? /* @__PURE__ */ C(W2, { label: u, children: /* @__PURE__ */ C(
|
|
131
131
|
o.svg,
|
|
132
132
|
{
|
|
133
|
-
className:
|
|
133
|
+
className: h.icon,
|
|
134
134
|
width: "16",
|
|
135
135
|
height: "16",
|
|
136
136
|
viewBox: "0 0 16 16",
|
|
@@ -151,7 +151,7 @@ const B9 = k(o(K1), "content"), D9 = P.Context, z2 = o("div", j5, {
|
|
|
151
151
|
}), j9 = (e) => {
|
|
152
152
|
const { as: l = "h2", ...r } = e, t = n1(() => o(l, O5), [l]);
|
|
153
153
|
return /* @__PURE__ */ C(t, { size: l, ...r });
|
|
154
|
-
}, O2 =
|
|
154
|
+
}, O2 = f((e, l) => {
|
|
155
155
|
const [r, t] = H1.splitVariantProps(e), [i, a] = U(t), { children: n, className: L, ...u } = a, c = H1(r);
|
|
156
156
|
return /* @__PURE__ */ d(q.Root, { ref: l, className: W(c.root, e1(i), L), ...u, children: [
|
|
157
157
|
/* @__PURE__ */ C(q.Control, { className: c.control, children: /* @__PURE__ */ C(q.Thumb, { className: c.thumb }) }),
|
|
@@ -167,7 +167,7 @@ const G2 = (e) => {
|
|
|
167
167
|
defaultProps: {
|
|
168
168
|
lazyMount: !0
|
|
169
169
|
}
|
|
170
|
-
}), O9 = d1(o(G.Content), "content"), G9 = d1(o(G.Trigger), "trigger"), Y2 = d1(o(G.Indicator), "indicator"), C5 =
|
|
170
|
+
}), O9 = d1(o(G.Content), "content"), G9 = d1(o(G.Trigger), "trigger"), Y2 = d1(o(G.Indicator), "indicator"), C5 = f(
|
|
171
171
|
({ children: e, ...l }, r) => /* @__PURE__ */ d(G.List, { ref: r, ...l, children: [
|
|
172
172
|
e,
|
|
173
173
|
/* @__PURE__ */ C(Y2, {})
|
|
@@ -230,7 +230,7 @@ const U9 = d1(o(C5), "list"), e5 = ({ children: e, when: l, wrapper: r }) => l =
|
|
|
230
230
|
}), X9 = (e) => {
|
|
231
231
|
const { as: l = "div", ...r } = e, t = n1(() => o(l), [l]);
|
|
232
232
|
return /* @__PURE__ */ C(t, { ...r });
|
|
233
|
-
}, { withProvider: n4, withContext:
|
|
233
|
+
}, { withProvider: n4, withContext: v } = R(K5), L4 = n4(p.Root, "root", {
|
|
234
234
|
defaultProps: {
|
|
235
235
|
positioning: {
|
|
236
236
|
placement: "bottom-start"
|
|
@@ -241,60 +241,85 @@ const U9 = d1(o(C5), "list"), e5 = ({ children: e, when: l, wrapper: r }) => l =
|
|
|
241
241
|
lazyMount: !0,
|
|
242
242
|
startOfWeek: 6
|
|
243
243
|
}
|
|
244
|
-
}), d4 =
|
|
244
|
+
}), d4 = v(p.Content, "content"), a4 = v(p.Control, "control"), P1 = v(p.Input, "input"), c4 = v(p.MonthSelect, "monthSelect"), u4 = v(p.NextTrigger, "nextTrigger"), M4 = v(p.Positioner, "positioner"), p4 = v(p.PrevTrigger, "prevTrigger"), s4 = v(p.TableBody, "tableBody"), Z4 = v(p.TableCell, "tableCell"), h4 = v(p.TableCellTrigger, "tableCellTrigger"), f4 = v(p.TableHead, "tableHead"), v4 = v(p.TableHeader, "tableHeader"), g4 = v(p.Table, "table"), k1 = v(p.TableRow, "tableRow"), I1 = v(p.Trigger, "trigger"), R4 = v(p.ViewControl, "viewControl"), m4 = v(p.View, "view"), b4 = v(p.YearSelect, "yearSelect"), z1 = v(o(p.ClearTrigger), "clearTrigger"), F1 = () => /* @__PURE__ */ C("svg", { width: "23", height: "24", viewBox: "0 0 23 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ C(
|
|
245
245
|
"path",
|
|
246
246
|
{
|
|
247
247
|
d: "M18.2083 4H17.25V2H15.3333V4H7.66667V2H5.75V4H4.79167C3.72792 4 2.88458 4.9 2.88458 6L2.875 20C2.875 21.1 3.72792 22 4.79167 22H18.2083C19.2625 22 20.125 21.1 20.125 20V6C20.125 4.9 19.2625 4 18.2083 4ZM18.2083 20H4.79167V10H18.2083V20ZM18.2083 8H4.79167V6H18.2083V8ZM8.625 14H6.70833V12H8.625V14ZM12.4583 14H10.5417V12H12.4583V14ZM16.2917 14H14.375V12H16.2917V14ZM8.625 18H6.70833V16H8.625V18ZM12.4583 18H10.5417V16H12.4583V18ZM16.2917 18H14.375V16H16.2917V18Z",
|
|
248
248
|
fill: "#1E3A76"
|
|
249
249
|
}
|
|
250
|
-
) }), y4 = () => /* @__PURE__ */ C("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ C("path", { d: "M10.4698 4.94L9.52979 4L5.52979 8L9.52979 12L10.4698 11.06L7.41645 8L10.4698 4.94Z", fill: "currentColor" }) }), x4 = () => /* @__PURE__ */ C("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ C("path", { d: "M6.46979 4L5.52979 4.94L8.58312 8L5.52979 11.06L6.46979 12L10.4698 8L6.46979 4Z", fill: "currentColor" }) }), q9 = ({
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
250
|
+
) }), y4 = () => /* @__PURE__ */ C("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ C("path", { d: "M10.4698 4.94L9.52979 4L5.52979 8L9.52979 12L10.4698 11.06L7.41645 8L10.4698 4.94Z", fill: "currentColor" }) }), x4 = () => /* @__PURE__ */ C("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ C("path", { d: "M6.46979 4L5.52979 4.94L8.58312 8L5.52979 11.06L6.46979 12L10.4698 8L6.46979 4Z", fill: "currentColor" }) }), q9 = ({
|
|
251
|
+
placeholder: e,
|
|
252
|
+
preflightClassName: l,
|
|
253
|
+
selectionMode: r,
|
|
254
|
+
clearValueWhenEmpty: t = !0,
|
|
255
|
+
...i
|
|
256
|
+
}) => {
|
|
257
|
+
const a = r === "range";
|
|
258
|
+
return /* @__PURE__ */ d(L4, { ...i, selectionMode: r, children: [
|
|
259
|
+
/* @__PURE__ */ C(p.Context, { children: (n) => /* @__PURE__ */ d(a4, { children: [
|
|
260
|
+
/* @__PURE__ */ d(T1, { children: [
|
|
261
|
+
/* @__PURE__ */ C(P1, { asChild: !0, index: 0, placeholder: e, children: /* @__PURE__ */ C(
|
|
262
|
+
_1,
|
|
257
263
|
{
|
|
258
|
-
|
|
259
|
-
|
|
264
|
+
onInput: (L) => {
|
|
265
|
+
const u = L.currentTarget.value;
|
|
266
|
+
t && u === "" && n.clearValue();
|
|
267
|
+
}
|
|
260
268
|
}
|
|
261
|
-
) })
|
|
262
|
-
/* @__PURE__ */
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
269
|
+
) }),
|
|
270
|
+
/* @__PURE__ */ d(S1, { children: [
|
|
271
|
+
/* @__PURE__ */ C(z1, { asChild: !0, cursor: "pointer", mr: "space-4", children: /* @__PURE__ */ C("button", { children: /* @__PURE__ */ C("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ C(
|
|
272
|
+
"path",
|
|
273
|
+
{
|
|
274
|
+
d: "M9.99996 1.66669C5.39163 1.66669 1.66663 5.39169 1.66663 10C1.66663 14.6084 5.39163 18.3334 9.99996 18.3334C14.6083 18.3334 18.3333 14.6084 18.3333 10C18.3333 5.39169 14.6083 1.66669 9.99996 1.66669ZM9.99996 16.6667C6.32496 16.6667 3.33329 13.675 3.33329 10C3.33329 6.32502 6.32496 3.33335 9.99996 3.33335C13.675 3.33335 16.6666 6.32502 16.6666 10C16.6666 13.675 13.675 16.6667 9.99996 16.6667ZM12.9916 5.83335L9.99996 8.82502L7.00829 5.83335L5.83329 7.00835L8.82496 10L5.83329 12.9917L7.00829 14.1667L9.99996 11.175L12.9916 14.1667L14.1666 12.9917L11.175 10L14.1666 7.00835L12.9916 5.83335Z",
|
|
275
|
+
fill: "currentColor"
|
|
276
|
+
}
|
|
277
|
+
) }) }) }),
|
|
278
|
+
/* @__PURE__ */ C(I1, { children: /* @__PURE__ */ C(F1, {}) })
|
|
279
|
+
] })
|
|
280
|
+
] }),
|
|
281
|
+
a ? /* @__PURE__ */ d(T1, { children: [
|
|
282
|
+
/* @__PURE__ */ C(P1, { asChild: !0, index: 1, placeholder: e, children: /* @__PURE__ */ C(
|
|
283
|
+
_1,
|
|
270
284
|
{
|
|
271
|
-
|
|
272
|
-
|
|
285
|
+
onInput: (L) => {
|
|
286
|
+
const u = L.currentTarget.value;
|
|
287
|
+
t && u === "" && n.clearValue();
|
|
288
|
+
}
|
|
273
289
|
}
|
|
274
|
-
) })
|
|
275
|
-
/* @__PURE__ */
|
|
290
|
+
) }),
|
|
291
|
+
/* @__PURE__ */ d(S1, { children: [
|
|
292
|
+
n.value.length === 2 ? /* @__PURE__ */ C(z1, { asChild: !0, cursor: "pointer", mr: "space-4", children: /* @__PURE__ */ C("button", { children: /* @__PURE__ */ C("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ C(
|
|
293
|
+
"path",
|
|
294
|
+
{
|
|
295
|
+
d: "M9.99996 1.66669C5.39163 1.66669 1.66663 5.39169 1.66663 10C1.66663 14.6084 5.39163 18.3334 9.99996 18.3334C14.6083 18.3334 18.3333 14.6084 18.3333 10C18.3333 5.39169 14.6083 1.66669 9.99996 1.66669ZM9.99996 16.6667C6.32496 16.6667 3.33329 13.675 3.33329 10C3.33329 6.32502 6.32496 3.33335 9.99996 3.33335C13.675 3.33335 16.6666 6.32502 16.6666 10C16.6666 13.675 13.675 16.6667 9.99996 16.6667ZM12.9916 5.83335L9.99996 8.82502L7.00829 5.83335L5.83329 7.00835L8.82496 10L5.83329 12.9917L7.00829 14.1667L9.99996 11.175L12.9916 14.1667L14.1666 12.9917L11.175 10L14.1666 7.00835L12.9916 5.83335Z",
|
|
296
|
+
fill: "currentColor"
|
|
297
|
+
}
|
|
298
|
+
) }) }) }) : null,
|
|
299
|
+
/* @__PURE__ */ C(I1, { children: /* @__PURE__ */ C(F1, {}) })
|
|
300
|
+
] })
|
|
301
|
+
] }) : null
|
|
302
|
+
] }) }),
|
|
303
|
+
/* @__PURE__ */ C(C1, { children: /* @__PURE__ */ C(M4, { className: l, children: /* @__PURE__ */ C(d4, { children: /* @__PURE__ */ C(m4, { view: "day", children: /* @__PURE__ */ C(p.Context, { children: (n) => /* @__PURE__ */ d(p1, { children: [
|
|
304
|
+
/* @__PURE__ */ d(R4, { children: [
|
|
305
|
+
/* @__PURE__ */ C(p4, { asChild: !0, children: /* @__PURE__ */ C(h1, { p: "space-8", variant: "secondary", size: "sm", children: /* @__PURE__ */ C(y4, {}) }) }),
|
|
306
|
+
/* @__PURE__ */ C(c4, {}),
|
|
307
|
+
/* @__PURE__ */ C(b4, {}),
|
|
308
|
+
/* @__PURE__ */ C(u4, { asChild: !0, children: /* @__PURE__ */ C(h1, { p: "space-8", variant: "secondary", size: "sm", children: /* @__PURE__ */ C(x4, {}) }) })
|
|
309
|
+
] }),
|
|
310
|
+
/* @__PURE__ */ d(g4, { children: [
|
|
311
|
+
/* @__PURE__ */ C(f4, { children: /* @__PURE__ */ C(k1, { children: n.weekDays.map((L, u) => /* @__PURE__ */ C(v4, { children: L.short }, u)) }) }),
|
|
312
|
+
/* @__PURE__ */ C(s4, { children: n.weeks.map((L, u) => /* @__PURE__ */ C(k1, { children: L.map((c, h) => /* @__PURE__ */ C(Z4, { value: c, children: /* @__PURE__ */ C(h4, { asChild: !0, children: /* @__PURE__ */ C("button", { children: c.day }) }) }, h)) }, u)) })
|
|
276
313
|
] })
|
|
277
|
-
] })
|
|
278
|
-
] })
|
|
279
|
-
|
|
280
|
-
/* @__PURE__ */ d(R4, { children: [
|
|
281
|
-
/* @__PURE__ */ C(p4, { asChild: !0, children: /* @__PURE__ */ C(h1, { p: "space-8", variant: "secondary", size: "sm", children: /* @__PURE__ */ C(y4, {}) }) }),
|
|
282
|
-
/* @__PURE__ */ C(c4, {}),
|
|
283
|
-
/* @__PURE__ */ C(b4, {}),
|
|
284
|
-
/* @__PURE__ */ C(u4, { asChild: !0, children: /* @__PURE__ */ C(h1, { p: "space-8", variant: "secondary", size: "sm", children: /* @__PURE__ */ C(x4, {}) }) })
|
|
285
|
-
] }),
|
|
286
|
-
/* @__PURE__ */ d(g4, { children: [
|
|
287
|
-
/* @__PURE__ */ C(f4, { children: /* @__PURE__ */ C(k1, { children: a.weekDays.map((n, L) => /* @__PURE__ */ C(v4, { children: n.short }, L)) }) }),
|
|
288
|
-
/* @__PURE__ */ C(s4, { children: a.weeks.map((n, L) => /* @__PURE__ */ C(k1, { children: n.map((u, c) => /* @__PURE__ */ C(Z4, { value: u, children: /* @__PURE__ */ C(h4, { asChild: !0, children: /* @__PURE__ */ C("button", { children: u.day }) }) }, c)) }, L)) })
|
|
289
|
-
] })
|
|
290
|
-
] }) }) }) }) }) })
|
|
291
|
-
] }), J9 = h((e, l) => {
|
|
314
|
+
] }) }) }) }) }) })
|
|
315
|
+
] });
|
|
316
|
+
}, J9 = f((e, l) => {
|
|
292
317
|
const [r, t] = w1.splitVariantProps(e), [i, a] = U(t), { children: n, className: L, ...u } = a, c = w1(r);
|
|
293
318
|
return /* @__PURE__ */ d(M.div, { ref: l, className: W(c.root, e1(i), L), ...u, children: [
|
|
294
319
|
n,
|
|
295
320
|
/* @__PURE__ */ C(D5, { className: W(c.badge) })
|
|
296
321
|
] });
|
|
297
|
-
}), { withProvider: H4, withContext: a1 } = R(C2), w4 = a1(o(H.ItemControl), "itemControl"), V4 = a1(o(H.ItemText), "itemText"), _4 =
|
|
322
|
+
}), { withProvider: H4, withContext: a1 } = R(C2), w4 = a1(o(H.ItemControl), "itemControl"), V4 = a1(o(H.ItemText), "itemText"), _4 = f(({ children: e, value: l, ...r }, t) => /* @__PURE__ */ d(H.Item, { ref: t, ...r, value: l, children: [
|
|
298
323
|
/* @__PURE__ */ C(V4, { children: e }),
|
|
299
324
|
/* @__PURE__ */ C(w4, {}),
|
|
300
325
|
/* @__PURE__ */ C(H.ItemHiddenInput, {})
|
|
@@ -302,7 +327,7 @@ const U9 = d1(o(C5), "list"), e5 = ({ children: e, when: l, wrapper: r }) => l =
|
|
|
302
327
|
defaultProps: {
|
|
303
328
|
orientation: "horizontal"
|
|
304
329
|
}
|
|
305
|
-
}), K9 = a1(o(_4), "item"), C8 = a1(o(H.Label), "label"), { withProvider: S4, withContext: c1 } = R(e2), T4 = c1(o(H.ItemControl), "itemControl"), P4 = c1(o(H.ItemText), "itemText"), k4 =
|
|
330
|
+
}), K9 = a1(o(_4), "item"), C8 = a1(o(H.Label), "label"), { withProvider: S4, withContext: c1 } = R(e2), T4 = c1(o(H.ItemControl), "itemControl"), P4 = c1(o(H.ItemText), "itemText"), k4 = f(({ children: e, value: l, ...r }, t) => /* @__PURE__ */ d(H.Item, { ref: t, ...r, value: l, children: [
|
|
306
331
|
/* @__PURE__ */ C(T4, {}),
|
|
307
332
|
/* @__PURE__ */ C(P4, { children: e }),
|
|
308
333
|
/* @__PURE__ */ C(H.ItemHiddenInput, {})
|
|
@@ -372,7 +397,7 @@ const U9 = d1(o(C5), "list"), e5 = ({ children: e, when: l, wrapper: r }) => l =
|
|
|
372
397
|
}
|
|
373
398
|
) });
|
|
374
399
|
}
|
|
375
|
-
}, c8 =
|
|
400
|
+
}, c8 = f(
|
|
376
401
|
({ title: e, description: l, showDismissTrigger: r, onDismiss: t, severity: i, showIcon: a = !0, ...n }, L) => /* @__PURE__ */ d(D4, { ref: L, severity: i, ...n, children: [
|
|
377
402
|
/* @__PURE__ */ d(E4, { children: [
|
|
378
403
|
a ? /* @__PURE__ */ C(A4, { asChild: !0, children: j4(i) }) : null,
|
|
@@ -419,11 +444,11 @@ const U9 = d1(o(C5), "list"), e5 = ({ children: e, when: l, wrapper: r }) => l =
|
|
|
419
444
|
dispatch: t
|
|
420
445
|
};
|
|
421
446
|
return /* @__PURE__ */ C(l5.Provider, { value: i, children: e });
|
|
422
|
-
}, { withProvider: G4, withContext: A } = R(d2), u8 = o("div", i2), U4 = G4(o("table"), "root"), Y4 =
|
|
447
|
+
}, { withProvider: G4, withContext: A } = R(d2), u8 = o("div", i2), U4 = G4(o("table"), "root"), Y4 = f(
|
|
423
448
|
({ children: e, onSortChange: l, ...r }, t) => /* @__PURE__ */ C(O4, { onSortChange: l, children: /* @__PURE__ */ C(U4, { ref: t, ...r, children: e }) })
|
|
424
449
|
);
|
|
425
450
|
Y4.displayName = "Table";
|
|
426
|
-
const M8 = A(o("thead"), "thead"), X4 = A(o("div"), "sortIndicatorRoot"), B1 = A(o("svg"), "sortIndicator"), p8 = A(o("tbody"), "tbody"), s8 = A(o("tr"), "tr"), q4 = A(o("th"), "th"), J4 =
|
|
451
|
+
const M8 = A(o("thead"), "thead"), X4 = A(o("div"), "sortIndicatorRoot"), B1 = A(o("svg"), "sortIndicator"), p8 = A(o("tbody"), "tbody"), s8 = A(o("tr"), "tr"), q4 = A(o("th"), "th"), J4 = f(
|
|
427
452
|
({ children: e, addon: l, sortKey: r, onClick: t, ...i }, a) => {
|
|
428
453
|
const { dispatch: n, sortDescriptor: L } = $4();
|
|
429
454
|
return /* @__PURE__ */ d(q4, { ref: a, ...i, ...r ? { "data-sortable": !0 } : {}, onClick: (c) => {
|
|
@@ -480,7 +505,7 @@ const M8 = A(o("thead"), "thead"), X4 = A(o("div"), "sortIndicatorRoot"), B1 = A
|
|
|
480
505
|
}
|
|
481
506
|
);
|
|
482
507
|
J4.displayName = "Th";
|
|
483
|
-
const Z8 = A(o("td"), "td"), Q4 = o("td", n2), K4 =
|
|
508
|
+
const Z8 = A(o("td"), "td"), Q4 = o("td", n2), K4 = f((e, l) => {
|
|
484
509
|
const r = v1(null);
|
|
485
510
|
return g1(() => {
|
|
486
511
|
var t, i;
|
|
@@ -491,7 +516,7 @@ const Z8 = A(o("td"), "td"), Q4 = o("td", n2), K4 = h((e, l) => {
|
|
|
491
516
|
}, []), /* @__PURE__ */ C("tr", { ref: l, className: "table_tr__group__title", children: /* @__PURE__ */ C(Q4, { ref: r, ...e }) });
|
|
492
517
|
});
|
|
493
518
|
K4.displayName = "TableGroupTitle";
|
|
494
|
-
const C3 = o("td", L2), e3 =
|
|
519
|
+
const C3 = o("td", L2), e3 = f((e, l) => {
|
|
495
520
|
const r = v1(null);
|
|
496
521
|
return g1(() => {
|
|
497
522
|
var t, i;
|
|
@@ -502,7 +527,7 @@ const C3 = o("td", L2), e3 = h((e, l) => {
|
|
|
502
527
|
}, []), /* @__PURE__ */ C("tr", { ref: l, className: "table_tr__empty", children: /* @__PURE__ */ C(C3, { ref: r, ...e }) });
|
|
503
528
|
});
|
|
504
529
|
e3.displayName = "TableEmptyRow";
|
|
505
|
-
const { withProvider: l3, withContext: y1 } = R(a2), r3 = l3(o("nav"), "root"), o3 = y1(o("ol"), "list"), h8 = y1(o("li"), "item"), f8 = y1(o(M.a), "link"), t3 = /* @__PURE__ */ C("svg", { width: "16", height: "17", viewBox: "0 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ C("path", { d: "M6.47003 4.5L5.53003 5.44L8.58336 8.5L5.53003 11.56L6.47003 12.5L10.47 8.5L6.47003 4.5Z", fill: "#1E3A76" }) }), v8 =
|
|
530
|
+
const { withProvider: l3, withContext: y1 } = R(a2), r3 = l3(o("nav"), "root"), o3 = y1(o("ol"), "list"), h8 = y1(o("li"), "item"), f8 = y1(o(M.a), "link"), t3 = /* @__PURE__ */ C("svg", { width: "16", height: "17", viewBox: "0 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ C("path", { d: "M6.47003 4.5L5.53003 5.44L8.58336 8.5L5.53003 11.56L6.47003 12.5L10.47 8.5L6.47003 4.5Z", fill: "#1E3A76" }) }), v8 = f(
|
|
506
531
|
({ children: e, separator: l = t3, ...r }, t) => {
|
|
507
532
|
var a;
|
|
508
533
|
const i = v2.toArray(
|
|
@@ -522,7 +547,7 @@ const { withProvider: l3, withContext: y1 } = R(a2), r3 = l3(o("nav"), "root"),
|
|
|
522
547
|
lazyMount: !0,
|
|
523
548
|
portalled: !0
|
|
524
549
|
}
|
|
525
|
-
}), R8 = u1(o(D.CloseTrigger), "closeTrigger"), m8 = u1(o(D.Trigger), "trigger"), n3 = u1(o(D.Positioner), "positioner"), r5 =
|
|
550
|
+
}), R8 = u1(o(D.CloseTrigger), "closeTrigger"), m8 = u1(o(D.Trigger), "trigger"), n3 = u1(o(D.Positioner), "positioner"), r5 = f(
|
|
526
551
|
({ children: e, ...l }, r) => /* @__PURE__ */ C(C1, { children: /* @__PURE__ */ C(n3, { children: /* @__PURE__ */ C(D.Content, { ref: r, ...l, children: e }) }) })
|
|
527
552
|
);
|
|
528
553
|
r5.displayName = D.Content.displayName;
|
|
@@ -558,7 +583,7 @@ const J = Symbol("dots"), d3 = ({
|
|
|
558
583
|
finalValue: i
|
|
559
584
|
}), c = (w) => {
|
|
560
585
|
w <= 0 ? u(1) : w > n ? u(n) : u(w);
|
|
561
|
-
},
|
|
586
|
+
}, h = () => c(L + 1), y = () => c(L - 1), _ = () => c(1), I = () => c(n);
|
|
562
587
|
return {
|
|
563
588
|
range: n1(() => {
|
|
564
589
|
if (l * 2 + 3 + r * 2 >= n)
|
|
@@ -582,7 +607,7 @@ const J = Symbol("dots"), d3 = ({
|
|
|
582
607
|
}, [n, l, r, L]),
|
|
583
608
|
active: L,
|
|
584
609
|
setPage: c,
|
|
585
|
-
next:
|
|
610
|
+
next: h,
|
|
586
611
|
previous: y,
|
|
587
612
|
first: _,
|
|
588
613
|
last: I
|
|
@@ -601,7 +626,7 @@ const J = Symbol("dots"), d3 = ({
|
|
|
601
626
|
boundaries: u = 1,
|
|
602
627
|
...c
|
|
603
628
|
}) => {
|
|
604
|
-
const { range:
|
|
629
|
+
const { range: h, setPage: y, next: _, previous: I, active: S } = d3({
|
|
605
630
|
page: l,
|
|
606
631
|
initialPage: r,
|
|
607
632
|
onChange: t,
|
|
@@ -621,7 +646,7 @@ const J = Symbol("dots"), d3 = ({
|
|
|
621
646
|
children: /* @__PURE__ */ C("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ C("path", { d: "M10.47 11.06L7.4167 8L10.47 4.94L9.53003 4L5.53003 8L9.53003 12L10.47 11.06Z", fill: "currentColor" }) })
|
|
622
647
|
}
|
|
623
648
|
),
|
|
624
|
-
|
|
649
|
+
h.map((T, B) => T === J ? /* @__PURE__ */ q1(M3, { ...i ? { "data-disabled": !0 } : {}, key: B }, "...") : /* @__PURE__ */ C(
|
|
625
650
|
u3,
|
|
626
651
|
{
|
|
627
652
|
disabled: i,
|
|
@@ -645,7 +670,7 @@ const J = Symbol("dots"), d3 = ({
|
|
|
645
670
|
}
|
|
646
671
|
)
|
|
647
672
|
] });
|
|
648
|
-
}, F = (e) =>
|
|
673
|
+
}, F = (e) => f((l, r) => Z1(e, {
|
|
649
674
|
fill: "currentColor",
|
|
650
675
|
ref: r,
|
|
651
676
|
stroke: "currentColor",
|
|
@@ -9572,7 +9597,7 @@ const J = Symbol("dots"), d3 = ({
|
|
|
9572
9597
|
size: L,
|
|
9573
9598
|
closeOnSelect: u,
|
|
9574
9599
|
composite: c,
|
|
9575
|
-
defaultOpen:
|
|
9600
|
+
defaultOpen: h,
|
|
9576
9601
|
defaultValue: y,
|
|
9577
9602
|
disabled: _,
|
|
9578
9603
|
form: I,
|
|
@@ -9614,7 +9639,7 @@ const J = Symbol("dots"), d3 = ({
|
|
|
9614
9639
|
{
|
|
9615
9640
|
closeOnSelect: u,
|
|
9616
9641
|
composite: c,
|
|
9617
|
-
defaultOpen:
|
|
9642
|
+
defaultOpen: h,
|
|
9618
9643
|
lazyMount: l,
|
|
9619
9644
|
unmountOnExit: t,
|
|
9620
9645
|
items: e,
|
|
@@ -9727,11 +9752,11 @@ const J = Symbol("dots"), d3 = ({
|
|
|
9727
9752
|
defaultVariants: {
|
|
9728
9753
|
size: "md"
|
|
9729
9754
|
}
|
|
9730
|
-
}), k3 =
|
|
9731
|
-
const [r, t] = A1.splitVariantProps(e), [i, a] = U(t), { className: n, unit: L, price: u, ...c } = a,
|
|
9732
|
-
return /* @__PURE__ */ d("span", { ref: l, className: W("price-tag",
|
|
9733
|
-
/* @__PURE__ */ C("span", { className:
|
|
9734
|
-
y ? /* @__PURE__ */ d("span", { className:
|
|
9755
|
+
}), k3 = f((e, l) => {
|
|
9756
|
+
const [r, t] = A1.splitVariantProps(e), [i, a] = U(t), { className: n, unit: L, price: u, ...c } = a, h = A1(r), y = !!L;
|
|
9757
|
+
return /* @__PURE__ */ d("span", { ref: l, className: W("price-tag", h.root, e1(i), n), ...c, children: [
|
|
9758
|
+
/* @__PURE__ */ C("span", { className: h.price, children: u }),
|
|
9759
|
+
y ? /* @__PURE__ */ d("span", { className: h.unit, children: [
|
|
9735
9760
|
"/ ",
|
|
9736
9761
|
L
|
|
9737
9762
|
] }) : null
|