@stokelp/ui 2.50.2 → 2.50.3
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/ui.cjs +1 -1
- package/dist/ui.cjs.map +1 -1
- package/dist/ui.js +74 -64
- package/dist/ui.js.map +1 -1
- package/package.json +1 -1
package/dist/ui.js
CHANGED
|
@@ -420,8 +420,7 @@ const { withProvider: Cc, withContext: v2 } = J(Td), ec = Cc(f(N.Root), "root",
|
|
|
420
420
|
locale: "fr",
|
|
421
421
|
unmountOnExit: !0,
|
|
422
422
|
lazyMount: !0,
|
|
423
|
-
startOfWeek: 6
|
|
424
|
-
format: (h) => h.toString()
|
|
423
|
+
startOfWeek: 6
|
|
425
424
|
}
|
|
426
425
|
}), pc = p1(r1.Content, "content"), fc = p1(r1.Control, "control"), e0 = p1(r1.Input, "input"), Lc = p1(r1.MonthSelect, "monthSelect"), sc = p1(r1.NextTrigger, "nextTrigger"), Mc = p1(r1.Positioner, "positioner"), vc = p1(r1.PrevTrigger, "prevTrigger"), gc = p1(r1.TableBody, "tableBody"), Zc = p1(r1.TableCell, "tableCell"), wc = p1(r1.TableCellTrigger, "tableCellTrigger"), Rc = p1(r1.TableHead, "tableHead"), Hc = p1(r1.TableHeader, "tableHeader"), Vc = p1(r1.Table, "table"), l0 = p1(r1.TableRow, "tableRow"), t0 = p1(r1.Trigger, "trigger"), mc = p1(r1.ViewControl, "viewControl"), xc = p1(r1.View, "view"), _c = p1(r1.YearSelect, "yearSelect"), i0 = p1(f(r1.ClearTrigger), "clearTrigger"), r0 = () => /* @__PURE__ */ C("svg", { width: "23", height: "24", viewBox: "0 0 23 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ C(
|
|
427
426
|
"path",
|
|
@@ -455,68 +454,79 @@ const { withProvider: Cc, withContext: v2 } = J(Td), ec = Cc(f(N.Root), "root",
|
|
|
455
454
|
...H
|
|
456
455
|
}) => {
|
|
457
456
|
const _ = o === "range";
|
|
458
|
-
return /* @__PURE__ */ r(
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
/* @__PURE__ */ C(
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
457
|
+
return /* @__PURE__ */ r(
|
|
458
|
+
uc,
|
|
459
|
+
{
|
|
460
|
+
...H,
|
|
461
|
+
selectionMode: o,
|
|
462
|
+
onValueChange: (V) => {
|
|
463
|
+
var m;
|
|
464
|
+
return (m = H.onValueChange) == null ? void 0 : m.call(H, { ...V, valueAsString: [V.value.toString()] });
|
|
465
|
+
},
|
|
466
|
+
children: [
|
|
467
|
+
/* @__PURE__ */ C(r1.Context, { children: (V) => /* @__PURE__ */ r(fc, { children: [
|
|
468
|
+
/* @__PURE__ */ r(C0, { children: [
|
|
469
|
+
/* @__PURE__ */ C(e0, { asChild: !0, index: 0, placeholder: h, children: /* @__PURE__ */ C(
|
|
470
|
+
o9,
|
|
471
|
+
{
|
|
472
|
+
onInput: (m) => {
|
|
473
|
+
const F = m.currentTarget.value;
|
|
474
|
+
w && F === "" && V.clearValue();
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
) }),
|
|
478
|
+
/* @__PURE__ */ r(Q7, { children: [
|
|
479
|
+
/* @__PURE__ */ C(i0, { asChild: !0, 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(
|
|
480
|
+
"path",
|
|
481
|
+
{
|
|
482
|
+
fillRule: "evenodd",
|
|
483
|
+
clipRule: "evenodd",
|
|
484
|
+
d: "M10 3.125C6.20304 3.125 3.125 6.20304 3.125 10C3.125 13.797 6.20304 16.875 10 16.875C13.797 16.875 16.875 13.797 16.875 10C16.875 6.20304 13.797 3.125 10 3.125ZM1.875 10C1.875 5.51269 5.51269 1.875 10 1.875C14.4873 1.875 18.125 5.51269 18.125 10C18.125 14.4873 14.4873 18.125 10 18.125C5.51269 18.125 1.875 14.4873 1.875 10ZM7.68306 7.68306C7.92714 7.43898 8.32286 7.43898 8.56694 7.68306L10 9.11612L11.4331 7.68306C11.6771 7.43898 12.0729 7.43898 12.3169 7.68306C12.561 7.92714 12.561 8.32286 12.3169 8.56694L10.8839 10L12.3169 11.4331C12.561 11.6771 12.561 12.0729 12.3169 12.3169C12.0729 12.561 11.6771 12.561 11.4331 12.3169L10 10.8839L8.56694 12.3169C8.32286 12.561 7.92714 12.561 7.68306 12.3169C7.43898 12.0729 7.43898 11.6771 7.68306 11.4331L9.11612 10L7.68306 8.56694C7.43898 8.32286 7.43898 7.92714 7.68306 7.68306Z",
|
|
485
|
+
fill: "currentColor"
|
|
486
|
+
}
|
|
487
|
+
) }) }) }),
|
|
488
|
+
/* @__PURE__ */ C(t0, { style: { cursor: "pointer" }, children: /* @__PURE__ */ C(r0, {}) })
|
|
489
|
+
] })
|
|
490
|
+
] }),
|
|
491
|
+
_ ? /* @__PURE__ */ r(C0, { children: [
|
|
492
|
+
/* @__PURE__ */ C(e0, { asChild: !0, index: 1, placeholder: h, children: /* @__PURE__ */ C(
|
|
493
|
+
o9,
|
|
494
|
+
{
|
|
495
|
+
onInput: (m) => {
|
|
496
|
+
const F = m.currentTarget.value;
|
|
497
|
+
w && F === "" && V.clearValue();
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
) }),
|
|
501
|
+
/* @__PURE__ */ r(Q7, { children: [
|
|
502
|
+
V.value.length === 2 ? /* @__PURE__ */ C(i0, { asChild: !0, 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(
|
|
503
|
+
"path",
|
|
504
|
+
{
|
|
505
|
+
fillRule: "evenodd",
|
|
506
|
+
clipRule: "evenodd",
|
|
507
|
+
d: "M10 3.125C6.20304 3.125 3.125 6.20304 3.125 10C3.125 13.797 6.20304 16.875 10 16.875C13.797 16.875 16.875 13.797 16.875 10C16.875 6.20304 13.797 3.125 10 3.125ZM1.875 10C1.875 5.51269 5.51269 1.875 10 1.875C14.4873 1.875 18.125 5.51269 18.125 10C18.125 14.4873 14.4873 18.125 10 18.125C5.51269 18.125 1.875 14.4873 1.875 10ZM7.68306 7.68306C7.92714 7.43898 8.32286 7.43898 8.56694 7.68306L10 9.11612L11.4331 7.68306C11.6771 7.43898 12.0729 7.43898 12.3169 7.68306C12.561 7.92714 12.561 8.32286 12.3169 8.56694L10.8839 10L12.3169 11.4331C12.561 11.6771 12.561 12.0729 12.3169 12.3169C12.0729 12.561 11.6771 12.561 11.4331 12.3169L10 10.8839L8.56694 12.3169C8.32286 12.561 7.92714 12.561 7.68306 12.3169C7.43898 12.0729 7.43898 11.6771 7.68306 11.4331L9.11612 10L7.68306 8.56694C7.43898 8.32286 7.43898 7.92714 7.68306 7.68306Z",
|
|
508
|
+
fill: "currentColor"
|
|
509
|
+
}
|
|
510
|
+
) }) }) }) : null,
|
|
511
|
+
/* @__PURE__ */ C(t0, { children: /* @__PURE__ */ C(r0, {}) })
|
|
512
|
+
] })
|
|
513
|
+
] }) : null
|
|
514
|
+
] }) }),
|
|
515
|
+
/* @__PURE__ */ C(g5, { children: /* @__PURE__ */ C(Mc, { className: p, children: /* @__PURE__ */ C(pc, { children: /* @__PURE__ */ C(xc, { view: "day", children: /* @__PURE__ */ C(r1.Context, { children: (V) => /* @__PURE__ */ r(p2, { children: [
|
|
516
|
+
/* @__PURE__ */ r(mc, { children: [
|
|
517
|
+
/* @__PURE__ */ C(vc, { asChild: !0, children: /* @__PURE__ */ C(f2, { "aria-label": "prev", variant: "secondary", size: "md", children: /* @__PURE__ */ C(bc, {}) }) }),
|
|
518
|
+
/* @__PURE__ */ C(Lc, {}),
|
|
519
|
+
/* @__PURE__ */ C(_c, {}),
|
|
520
|
+
/* @__PURE__ */ C(sc, { asChild: !0, children: /* @__PURE__ */ C(f2, { "aria-label": "next", variant: "secondary", size: "md", children: /* @__PURE__ */ C(yc, {}) }) })
|
|
521
|
+
] }),
|
|
522
|
+
/* @__PURE__ */ r(Vc, { children: [
|
|
523
|
+
/* @__PURE__ */ C(Rc, { children: /* @__PURE__ */ C(l0, { children: V.weekDays.map((m, F) => /* @__PURE__ */ C(Hc, { children: m.short }, F)) }) }),
|
|
524
|
+
/* @__PURE__ */ C(gc, { children: V.weeks.map((m, F) => /* @__PURE__ */ C(l0, { children: m.map((P, W) => /* @__PURE__ */ C(Zc, { value: P, children: /* @__PURE__ */ C(wc, { asChild: !0, children: /* @__PURE__ */ C("button", { children: P.day }) }) }, W)) }, F)) })
|
|
525
|
+
] })
|
|
526
|
+
] }) }) }) }) }) })
|
|
527
|
+
]
|
|
528
|
+
}
|
|
529
|
+
);
|
|
520
530
|
}, us = K((h, p) => {
|
|
521
531
|
const [o, w] = X7.splitVariantProps(h), [H, _] = j5(w), { children: V, className: m, ...F } = _, P = X7(o);
|
|
522
532
|
return /* @__PURE__ */ r(D.div, { ref: p, className: X5(P.root, M2(H), m), ...F, children: [
|