@sakura-ui/sakura-ui 0.5.0 → 0.5.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.
@@ -1,31 +1,31 @@
1
1
  import R from "react";
2
2
  var I = { exports: {} }, E = {};
3
- var W;
3
+ var L;
4
4
  function fe() {
5
- if (W) return E;
6
- W = 1;
5
+ if (L) return E;
6
+ L = 1;
7
7
  var r = /* @__PURE__ */ Symbol.for("react.transitional.element"), n = /* @__PURE__ */ Symbol.for("react.fragment");
8
- function d(i, a, t) {
8
+ function d(i, a, s) {
9
9
  var o = null;
10
- if (t !== void 0 && (o = "" + t), a.key !== void 0 && (o = "" + a.key), "key" in a) {
11
- t = {};
10
+ if (s !== void 0 && (o = "" + s), a.key !== void 0 && (o = "" + a.key), "key" in a) {
11
+ s = {};
12
12
  for (var u in a)
13
- u !== "key" && (t[u] = a[u]);
14
- } else t = a;
15
- return a = t.ref, {
13
+ u !== "key" && (s[u] = a[u]);
14
+ } else s = a;
15
+ return a = s.ref, {
16
16
  $$typeof: r,
17
17
  type: i,
18
18
  key: o,
19
19
  ref: a !== void 0 ? a : null,
20
- props: t
20
+ props: s
21
21
  };
22
22
  }
23
23
  return E.Fragment = n, E.jsx = d, E.jsxs = d, E;
24
24
  }
25
25
  var _ = {};
26
- var B;
26
+ var U;
27
27
  function pe() {
28
- return B || (B = 1, process.env.NODE_ENV !== "production" && (function() {
28
+ return U || (U = 1, process.env.NODE_ENV !== "production" && (function() {
29
29
  function r(e) {
30
30
  if (e == null) return null;
31
31
  if (typeof e == "function")
@@ -51,9 +51,9 @@ function pe() {
51
51
  ), e.$$typeof) {
52
52
  case K:
53
53
  return "Portal";
54
- case se:
55
- return e.displayName || "Context";
56
54
  case te:
55
+ return e.displayName || "Context";
56
+ case se:
57
57
  return (e._context.displayName || "Context") + ".Consumer";
58
58
  case le:
59
59
  var l = e.render;
@@ -104,7 +104,7 @@ function pe() {
104
104
  var e = C.A;
105
105
  return e === null ? null : e.getOwner();
106
106
  }
107
- function t() {
107
+ function s() {
108
108
  return Error("react-stack-top-frame");
109
109
  }
110
110
  function o(e) {
@@ -183,7 +183,7 @@ function pe() {
183
183
  var j = Object.keys(l).filter(function(ue) {
184
184
  return ue !== "key";
185
185
  });
186
- b = 0 < j.length ? "{key: someKey, " + j.join(": ..., ") + ": ...}" : "{key: someKey}", L[m + b] || (j = 0 < j.length ? "{" + j.join(": ..., ") + ": ...}" : "{}", console.error(
186
+ b = 0 < j.length ? "{key: someKey, " + j.join(": ..., ") + ": ...}" : "{key: someKey}", W[m + b] || (j = 0 < j.length ? "{" + j.join(": ..., ") + ": ...}" : "{}", console.error(
187
187
  `A props object containing a "key" prop is being spread into JSX:
188
188
  let props = %s;
189
189
  <%s {...props} />
@@ -194,7 +194,7 @@ React keys must be passed directly to JSX without using spread:
194
194
  m,
195
195
  j,
196
196
  m
197
- ), L[m + b] = !0);
197
+ ), W[m + b] = !0);
198
198
  }
199
199
  if (m = null, p !== void 0 && (d(p), m = "" + p), o(l) && (d(l.key), m = "" + l.key), "key" in l) {
200
200
  p = {};
@@ -219,7 +219,7 @@ React keys must be passed directly to JSX without using spread:
219
219
  function h(e) {
220
220
  return typeof e == "object" && e !== null && e.$$typeof === M;
221
221
  }
222
- var v = R, M = /* @__PURE__ */ Symbol.for("react.transitional.element"), K = /* @__PURE__ */ Symbol.for("react.portal"), k = /* @__PURE__ */ Symbol.for("react.fragment"), ee = /* @__PURE__ */ Symbol.for("react.strict_mode"), re = /* @__PURE__ */ Symbol.for("react.profiler"), te = /* @__PURE__ */ Symbol.for("react.consumer"), se = /* @__PURE__ */ Symbol.for("react.context"), le = /* @__PURE__ */ Symbol.for("react.forward_ref"), ae = /* @__PURE__ */ Symbol.for("react.suspense"), oe = /* @__PURE__ */ Symbol.for("react.suspense_list"), ne = /* @__PURE__ */ Symbol.for("react.memo"), P = /* @__PURE__ */ Symbol.for("react.lazy"), ie = /* @__PURE__ */ Symbol.for("react.activity"), de = /* @__PURE__ */ Symbol.for("react.client.reference"), C = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, q = Object.prototype.hasOwnProperty, ce = Array.isArray, S = console.createTask ? console.createTask : function() {
222
+ var v = R, M = /* @__PURE__ */ Symbol.for("react.transitional.element"), K = /* @__PURE__ */ Symbol.for("react.portal"), k = /* @__PURE__ */ Symbol.for("react.fragment"), ee = /* @__PURE__ */ Symbol.for("react.strict_mode"), re = /* @__PURE__ */ Symbol.for("react.profiler"), se = /* @__PURE__ */ Symbol.for("react.consumer"), te = /* @__PURE__ */ Symbol.for("react.context"), le = /* @__PURE__ */ Symbol.for("react.forward_ref"), ae = /* @__PURE__ */ Symbol.for("react.suspense"), oe = /* @__PURE__ */ Symbol.for("react.suspense_list"), ne = /* @__PURE__ */ Symbol.for("react.memo"), P = /* @__PURE__ */ Symbol.for("react.lazy"), ie = /* @__PURE__ */ Symbol.for("react.activity"), de = /* @__PURE__ */ Symbol.for("react.client.reference"), C = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, q = Object.prototype.hasOwnProperty, ce = Array.isArray, S = console.createTask ? console.createTask : function() {
223
223
  return null;
224
224
  };
225
225
  v = {
@@ -229,8 +229,8 @@ React keys must be passed directly to JSX without using spread:
229
229
  };
230
230
  var F, Y = {}, z = v.react_stack_bottom_frame.bind(
231
231
  v,
232
- t
233
- )(), D = S(i(t)), L = {};
232
+ s
233
+ )(), D = S(i(s)), W = {};
234
234
  _.Fragment = k, _.jsx = function(e, l, p) {
235
235
  var b = 1e4 > C.recentlyCreatedOwnerStacks++;
236
236
  return f(
@@ -254,11 +254,11 @@ React keys must be passed directly to JSX without using spread:
254
254
  };
255
255
  })()), _;
256
256
  }
257
- var U;
257
+ var B;
258
258
  function be() {
259
- return U || (U = 1, process.env.NODE_ENV === "production" ? I.exports = fe() : I.exports = pe()), I.exports;
259
+ return B || (B = 1, process.env.NODE_ENV === "production" ? I.exports = fe() : I.exports = pe()), I.exports;
260
260
  }
261
- var s = be();
261
+ var t = be();
262
262
  const y = (...r) => r.filter(Boolean).join(" ");
263
263
  var N;
264
264
  ((r) => {
@@ -268,7 +268,7 @@ var N;
268
268
  border
269
269
  border-transparent
270
270
  rounded-lg
271
- hover:bg-solid-grey-50
271
+ hover:bg-solid-gray-50
272
272
  `, r.selected = `
273
273
  rounded-full
274
274
  bg-yellow-50
@@ -321,16 +321,8 @@ var N;
321
321
  shadow-1
322
322
  rounded-lg
323
323
  border
324
- border-solid-grey-420
324
+ border-solid-gray-420
325
325
  has-[>:nth-child(7)]:rounded-r-none
326
- `, r.popoverPositionBottomRight = `
327
- absolute
328
- top-11
329
- right-0
330
- `, r.popoverPositionBottomLeft = `
331
- absolute
332
- top-11
333
- left-0
334
326
  `, ((d) => {
335
327
  d.focus = `
336
328
  peer-focus-visible:outline-4
@@ -415,8 +407,8 @@ const T = R.createContext({
415
407
  md: "w-[18px] h-[18px] mr-1.5",
416
408
  sm: "w-[18px] h-[18px] mr-1"
417
409
  }, Z = (r) => {
418
- const { id: n, className: d, size: i = "lg", children: a, ...t } = r, o = R.useId(), u = n || o, c = R.useContext(T);
419
- c.isRequired && (t.required = !0), c.groupName && (t.name = c.groupName);
410
+ const { id: n, className: d, size: i = "lg", children: a, ...s } = r, o = R.useId(), u = n || o, c = R.useContext(T);
411
+ c.isRequired && (s.required = !0), c.groupName && (s.name = c.groupName);
420
412
  const x = {
421
413
  lg: 22 / 24,
422
414
  md: 18 / 24,
@@ -437,7 +429,7 @@ const T = R.createContext({
437
429
  peer-disabled:border-solid-gray-500
438
430
  ${N.Peer.focusRect}
439
431
  `;
440
- return /* @__PURE__ */ s.jsx(
432
+ return /* @__PURE__ */ t.jsx(
441
433
  "label",
442
434
  {
443
435
  htmlFor: u,
@@ -446,8 +438,8 @@ const T = R.createContext({
446
438
  H[i],
447
439
  d
448
440
  ),
449
- children: /* @__PURE__ */ s.jsxs("span", { className: "flex items-center", children: [
450
- /* @__PURE__ */ s.jsx(
441
+ children: /* @__PURE__ */ t.jsxs("span", { className: "flex items-center", children: [
442
+ /* @__PURE__ */ t.jsx(
451
443
  "input",
452
444
  {
453
445
  id: u,
@@ -456,10 +448,10 @@ const T = R.createContext({
456
448
  "aria-describedby": c.helperTextId,
457
449
  "aria-errormessage": c.errorMessageId,
458
450
  "aria-invalid": c.isInvalid ?? !1,
459
- ...t
451
+ ...s
460
452
  }
461
453
  ),
462
- /* @__PURE__ */ s.jsx("span", { className: y(g, X[i]), children: /* @__PURE__ */ s.jsx(
454
+ /* @__PURE__ */ t.jsx("span", { className: y(g, X[i]), children: /* @__PURE__ */ t.jsx(
463
455
  "svg",
464
456
  {
465
457
  xmlns: "http://www.w3.org/2000/svg",
@@ -467,18 +459,18 @@ const T = R.createContext({
467
459
  width: "24",
468
460
  height: "24",
469
461
  viewBox: "0 0 24 24",
470
- children: /* @__PURE__ */ s.jsx("g", { transform: `scale(${x[i]} ${x[i]})`, children: /* @__PURE__ */ s.jsx("path", { d: "m9.55 17.65-5.325-5.325 1.05-1.075 4.275 4.275 9.175-9.175 1.05 1.075Z" }) })
462
+ children: /* @__PURE__ */ t.jsx("g", { transform: `scale(${x[i]} ${x[i]})`, children: /* @__PURE__ */ t.jsx("path", { d: "m9.55 17.65-5.325-5.325 1.05-1.075 4.275 4.275 9.175-9.175 1.05 1.075Z" }) })
471
463
  }
472
464
  ) }),
473
- /* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-solid-gray-500", children: a })
465
+ /* @__PURE__ */ t.jsx("span", { className: "peer-disabled:text-solid-gray-500", children: a })
474
466
  ] })
475
467
  }
476
468
  );
477
469
  };
478
470
  Z.displayName = "Checkbox";
479
471
  const Q = (r) => {
480
- const { id: n, className: d, size: i = "lg", children: a, ...t } = r, o = R.useId(), u = n || o, c = R.useContext(T);
481
- c.isRequired && (t.required = !0), c.groupName && (t.name = c.groupName);
472
+ const { id: n, className: d, size: i = "lg", children: a, ...s } = r, o = R.useId(), u = n || o, c = R.useContext(T);
473
+ c.isRequired && (s.required = !0), c.groupName && (s.name = c.groupName);
482
474
  const x = `
483
475
  peer
484
476
  sr-only
@@ -497,7 +489,7 @@ const Q = (r) => {
497
489
  md: "p-[3px]",
498
490
  sm: "p-[3px]"
499
491
  };
500
- return /* @__PURE__ */ s.jsx(
492
+ return /* @__PURE__ */ t.jsx(
501
493
  "label",
502
494
  {
503
495
  htmlFor: u,
@@ -506,8 +498,8 @@ const Q = (r) => {
506
498
  H[i],
507
499
  d
508
500
  ),
509
- children: /* @__PURE__ */ s.jsxs("span", { className: "flex items-center", children: [
510
- /* @__PURE__ */ s.jsx(
501
+ children: /* @__PURE__ */ t.jsxs("span", { className: "flex items-center", children: [
502
+ /* @__PURE__ */ t.jsx(
511
503
  "input",
512
504
  {
513
505
  id: u,
@@ -516,26 +508,26 @@ const Q = (r) => {
516
508
  "aria-describedby": c.helperTextId,
517
509
  "aria-errormessage": c.errorMessageId,
518
510
  "aria-invalid": c.isInvalid ?? !1,
519
- ...t
511
+ ...s
520
512
  }
521
513
  ),
522
- /* @__PURE__ */ s.jsx(
514
+ /* @__PURE__ */ t.jsx(
523
515
  "span",
524
516
  {
525
517
  "aria-hidden": !0,
526
518
  className: y(f, g[i], X[i])
527
519
  }
528
520
  ),
529
- /* @__PURE__ */ s.jsx("span", { className: "peer-disabled:text-solid-gray-500", children: a })
521
+ /* @__PURE__ */ t.jsx("span", { className: "peer-disabled:text-solid-gray-500", children: a })
530
522
  ] })
531
523
  }
532
524
  );
533
525
  };
534
526
  Q.displayName = "Radio";
535
527
  const me = (r) => {
536
- const { id: n, className: d, size: i = "lg", children: a, ...t } = r, o = R.useContext(T);
537
- return o.isRequired && (t.required = !0), /* @__PURE__ */ s.jsxs("div", { className: "inline-block relative", children: [
538
- /* @__PURE__ */ s.jsx(
528
+ const { id: n, className: d, size: i = "lg", children: a, ...s } = r, o = R.useContext(T);
529
+ return o.isRequired && (s.required = !0), /* @__PURE__ */ t.jsxs("div", { className: "inline-block relative", children: [
530
+ /* @__PURE__ */ t.jsx(
539
531
  "select",
540
532
  {
541
533
  id: n || o.id,
@@ -553,11 +545,11 @@ const me = (r) => {
553
545
  "aria-describedby": o.helperTextId,
554
546
  "aria-errormessage": o.errorMessageId,
555
547
  "aria-invalid": o.isInvalid ?? !1,
556
- ...t,
548
+ ...s,
557
549
  children: a
558
550
  }
559
551
  ),
560
- /* @__PURE__ */ s.jsxs(
552
+ /* @__PURE__ */ t.jsxs(
561
553
  "svg",
562
554
  {
563
555
  xmlns: "http://www.w3.org/2000/svg",
@@ -576,8 +568,8 @@ const me = (r) => {
576
568
  height: "16",
577
569
  viewBox: "0 0 16 16",
578
570
  children: [
579
- /* @__PURE__ */ s.jsx("title", { children: "arrow down" }),
580
- /* @__PURE__ */ s.jsx(
571
+ /* @__PURE__ */ t.jsx("title", { children: "arrow down" }),
572
+ /* @__PURE__ */ t.jsx(
581
573
  "path",
582
574
  {
583
575
  d: "M12 15.05 6.35 9.4 7.4 8.35l4.6 4.6 4.6-4.6 1.05 1.05Z",
@@ -591,8 +583,8 @@ const me = (r) => {
591
583
  };
592
584
  me.displayName = "Select";
593
585
  const xe = (r) => {
594
- const { id: n, className: d, size: i = "lg", ...a } = r, t = R.useContext(T);
595
- t.isRequired && (a.required = !0);
586
+ const { id: n, className: d, size: i = "lg", ...a } = r, s = R.useContext(T);
587
+ s.isRequired && (a.required = !0);
596
588
  const o = `
597
589
  file:mr-2
598
590
  file:inline-block
@@ -651,46 +643,46 @@ const xe = (r) => {
651
643
  file:leading-snug
652
644
  `
653
645
  };
654
- return /* @__PURE__ */ s.jsx(
646
+ return /* @__PURE__ */ t.jsx(
655
647
  "input",
656
648
  {
657
649
  type: "file",
658
- id: n || t.id,
650
+ id: n || s.id,
659
651
  className: y(o, u, x[i], c, d),
660
- "aria-describedby": t.helperTextId,
661
- "aria-errormessage": t.errorMessageId,
662
- "aria-invalid": t.isInvalid ?? !1,
652
+ "aria-describedby": s.helperTextId,
653
+ "aria-errormessage": s.errorMessageId,
654
+ "aria-invalid": s.isInvalid ?? !1,
663
655
  ...a
664
656
  }
665
657
  );
666
658
  };
667
659
  xe.displayName = "FileInput";
668
660
  const ge = (r) => {
669
- const { id: n, className: d, size: i = "lg", ...a } = r, t = R.useContext(T);
670
- return t.isRequired && (a.required = !0), /* @__PURE__ */ s.jsx(
661
+ const { id: n, className: d, size: i = "lg", ...a } = r, s = R.useContext(T);
662
+ return s.isRequired && (a.required = !0), /* @__PURE__ */ t.jsx(
671
663
  "input",
672
664
  {
673
665
  type: "text",
674
- id: n || t.id,
666
+ id: n || s.id,
675
667
  className: y(
676
668
  G,
677
669
  V[i],
678
670
  d
679
671
  ),
680
- "aria-describedby": t.helperTextId,
681
- "aria-errormessage": t.errorMessageId,
682
- "aria-invalid": t.isInvalid ?? !1,
672
+ "aria-describedby": s.helperTextId,
673
+ "aria-errormessage": s.errorMessageId,
674
+ "aria-invalid": s.isInvalid ?? !1,
683
675
  ...a
684
676
  }
685
677
  );
686
678
  };
687
679
  ge.displayName = "Input";
688
680
  const he = (r) => {
689
- const { id: n, className: d, children: i, onChange: a, maxLength: t, ...o } = r, [u, c] = R.useState(0), x = (v) => {
681
+ const { id: n, className: d, children: i, onChange: a, maxLength: s, ...o } = r, [u, c] = R.useState(0), x = (v) => {
690
682
  a && a(v), c(v.target.value.length);
691
683
  }, f = R.useContext(T);
692
684
  f.isRequired && (o.required = !0);
693
- const g = u > (t || 0) ? "text-red-800" : "text-solid-gray-700", h = `
685
+ const g = u > (s || 0) ? "text-red-800" : "text-solid-gray-700", h = `
694
686
  p-4
695
687
  text-label
696
688
  rounded-lg
@@ -703,8 +695,8 @@ const he = (r) => {
703
695
  aria-invalid:border-red-800
704
696
  ${N.focusRect}
705
697
  `;
706
- return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
707
- /* @__PURE__ */ s.jsx(
698
+ return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
699
+ /* @__PURE__ */ t.jsx(
708
700
  "textarea",
709
701
  {
710
702
  id: n || f.id,
@@ -717,10 +709,10 @@ const he = (r) => {
717
709
  children: i
718
710
  }
719
711
  ),
720
- t ? /* @__PURE__ */ s.jsxs("p", { className: "text-label text-solid-gray-700", children: [
721
- /* @__PURE__ */ s.jsx("span", { className: g, children: u }),
712
+ s ? /* @__PURE__ */ t.jsxs("p", { className: "text-label text-solid-gray-700", children: [
713
+ /* @__PURE__ */ t.jsx("span", { className: g, children: u }),
722
714
  "/",
723
- /* @__PURE__ */ s.jsx("span", { children: t })
715
+ /* @__PURE__ */ t.jsx("span", { children: s })
724
716
  ] }) : ""
725
717
  ] });
726
718
  };
@@ -730,7 +722,7 @@ const ve = (r) => {
730
722
  labelText: d,
731
723
  className: i,
732
724
  helperText: a,
733
- errorMessage: t,
725
+ errorMessage: s,
734
726
  isInvalid: o,
735
727
  isRequired: u,
736
728
  children: c,
@@ -742,8 +734,8 @@ const ve = (r) => {
742
734
  isInvalid: o ?? !1,
743
735
  isRequired: u ?? !1
744
736
  };
745
- return /* @__PURE__ */ s.jsx(T.Provider, { value: f, children: /* @__PURE__ */ s.jsxs("div", { className: y("flex flex-col items-start gap-2", i), children: [
746
- /* @__PURE__ */ s.jsxs(
737
+ return /* @__PURE__ */ t.jsx(T.Provider, { value: f, children: /* @__PURE__ */ t.jsxs("div", { className: y("flex flex-col items-start gap-2", i), children: [
738
+ /* @__PURE__ */ t.jsxs(
747
739
  "label",
748
740
  {
749
741
  className: y("block text-label", o && "text-red-800"),
@@ -751,17 +743,17 @@ const ve = (r) => {
751
743
  ...x,
752
744
  children: [
753
745
  d,
754
- u && /* @__PURE__ */ s.jsx("span", { className: "text-label text-red-800", children: " *" })
746
+ u && /* @__PURE__ */ t.jsx("span", { className: "text-label text-red-800", children: " *" })
755
747
  ]
756
748
  }
757
749
  ),
758
- a && /* @__PURE__ */ s.jsx("p", { id: f.helperTextId, className: `
750
+ a && /* @__PURE__ */ t.jsx("p", { id: f.helperTextId, className: `
759
751
  text-label text-solid-gray-700
760
752
  `, children: a }),
761
753
  c,
762
- o && /* @__PURE__ */ s.jsx("p", { id: f.errorMessageId, className: `
754
+ o && /* @__PURE__ */ t.jsx("p", { id: f.errorMessageId, className: `
763
755
  text-label text-red-800
764
- `, children: t })
756
+ `, children: s })
765
757
  ] }) });
766
758
  };
767
759
  ve.displayName = "LabelControl";
@@ -770,7 +762,7 @@ const $ = (r) => {
770
762
  labelText: d,
771
763
  className: i,
772
764
  helperText: a,
773
- errorMessage: t,
765
+ errorMessage: s,
774
766
  isInvalid: o,
775
767
  isRequired: u,
776
768
  direction: c,
@@ -783,19 +775,19 @@ const $ = (r) => {
783
775
  isInvalid: o ?? !1,
784
776
  isRequired: u ?? !1
785
777
  }, v = c ?? "flex-col";
786
- return /* @__PURE__ */ s.jsx(T.Provider, { value: h, children: /* @__PURE__ */ s.jsxs(
778
+ return /* @__PURE__ */ t.jsx(T.Provider, { value: h, children: /* @__PURE__ */ t.jsxs(
787
779
  "fieldset",
788
780
  {
789
781
  className: y("flex flex-col items-start gap-2", i),
790
782
  ...f,
791
783
  children: [
792
- /* @__PURE__ */ s.jsx("legend", { children: /* @__PURE__ */ s.jsxs("p", { className: y("block text-label", o && "text-red-800"), children: [
784
+ /* @__PURE__ */ t.jsx("legend", { children: /* @__PURE__ */ t.jsxs("p", { className: y("block text-label", o && "text-red-800"), children: [
793
785
  d,
794
- u && /* @__PURE__ */ s.jsx("span", { className: "text-red-800", children: " *" })
786
+ u && /* @__PURE__ */ t.jsx("span", { className: "text-red-800", children: " *" })
795
787
  ] }) }),
796
- /* @__PURE__ */ s.jsx("div", { className: y("inline-flex", v), children: x }),
797
- a && /* @__PURE__ */ s.jsx("p", { id: h.helperTextId, className: "text-sup text-solid-gray-700", children: a }),
798
- o && /* @__PURE__ */ s.jsx("p", { id: h.errorMessageId, className: "text-label text-red-800", children: t })
788
+ /* @__PURE__ */ t.jsx("div", { className: y("inline-flex", v), children: x }),
789
+ a && /* @__PURE__ */ t.jsx("p", { id: h.helperTextId, className: "text-sup text-solid-gray-700", children: a }),
790
+ o && /* @__PURE__ */ t.jsx("p", { id: h.errorMessageId, className: "text-label text-red-800", children: s })
799
791
  ]
800
792
  }
801
793
  ) });
@@ -807,24 +799,24 @@ const ye = (r) => {
807
799
  onChange: d,
808
800
  className: i,
809
801
  labelText: a,
810
- helperText: t,
802
+ helperText: s,
811
803
  errorMessage: o,
812
804
  isInvalid: u,
813
805
  isRequired: c,
814
806
  size: x,
815
807
  ...f
816
808
  } = r;
817
- return /* @__PURE__ */ s.jsx(
809
+ return /* @__PURE__ */ t.jsx(
818
810
  $,
819
811
  {
820
812
  className: i,
821
813
  labelText: a,
822
- helperText: t,
814
+ helperText: s,
823
815
  errorMessage: o,
824
816
  isInvalid: u,
825
817
  isRequired: c,
826
818
  ...f,
827
- children: n.map(({ label: g, value: h }) => /* @__PURE__ */ s.jsx(
819
+ children: n.map(({ label: g, value: h }) => /* @__PURE__ */ t.jsx(
828
820
  Z,
829
821
  {
830
822
  size: x,
@@ -844,7 +836,7 @@ const Re = (r) => {
844
836
  onChange: d,
845
837
  className: i,
846
838
  labelText: a,
847
- helperText: t,
839
+ helperText: s,
848
840
  errorMessage: o,
849
841
  isInvalid: u,
850
842
  isRequired: c,
@@ -852,17 +844,17 @@ const Re = (r) => {
852
844
  size: f,
853
845
  ...g
854
846
  } = r;
855
- return /* @__PURE__ */ s.jsx(
847
+ return /* @__PURE__ */ t.jsx(
856
848
  $,
857
849
  {
858
850
  className: i,
859
851
  labelText: a,
860
- helperText: t,
852
+ helperText: s,
861
853
  errorMessage: o,
862
854
  isInvalid: u,
863
855
  isRequired: c,
864
856
  ...g,
865
- children: n.map(({ label: h, value: v }) => /* @__PURE__ */ s.jsx(
857
+ children: n.map(({ label: h, value: v }) => /* @__PURE__ */ t.jsx(
866
858
  Q,
867
859
  {
868
860
  size: f,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sakura-ui/forms",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "author": "glassonion1",
@@ -7,6 +7,6 @@ transforming...
7
7
  ✓ 6 modules transformed.
8
8
  rendering chunks...
9
9
  computing gzip size...
10
- dist/index.es.js 2.90 kB │ gzip: 1.00 kB
11
- dist/index.cjs.js 2.72 kB │ gzip: 0.99 kB
12
- ✓ built in 168ms
10
+ dist/index.es.js 2.76 kB │ gzip: 0.96 kB
11
+ dist/index.cjs.js 2.58 kB │ gzip: 0.95 kB
12
+ ✓ built in 282ms
@@ -1,10 +1,10 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=':not([tabindex^="-"])',n=":not(:disabled)",d=[`a[href]${o}`,`area[href]${o}`,`input:not([type="hidden"])${o}${n}`,`select${o}${n}`,`textarea${o}${n}`,`button${o}${n}`,`details > summary:first-of-type${o}`,`details:not(:has(> summary))${o}`,`iframe${o}`,`audio[controls]${o}`,`video[controls]${o}`,`[contenteditable]${o}`,`[tabindex]${o}`],f=d.join(","),a=(e,s)=>(e%s+s)%s,b=(...e)=>e.filter(Boolean).join(" "),h=e=>{const s=[],c=[];let t=-1,r=-1;for(const{children:v,...i}of e){if(t<i.depth&&i.depth<=r+1){const l=i.depth-t;r=i.depth;const u=c[l-1];u.children??=[],u.children.push(i),c[l]=i;continue}s.push(i),c[0]=i,t=r=i.depth}return s};exports.Style=void 0;(e=>{e.clickable=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=':not([tabindex^="-"])',n=":not(:disabled)",d=[`a[href]${o}`,`area[href]${o}`,`input:not([type="hidden"])${o}${n}`,`select${o}${n}`,`textarea${o}${n}`,`button${o}${n}`,`details > summary:first-of-type${o}`,`details:not(:has(> summary))${o}`,`iframe${o}`,`audio[controls]${o}`,`video[controls]${o}`,`[contenteditable]${o}`,`[tabindex]${o}`],f=d.join(","),a=(e,s)=>(e%s+s)%s,b=(...e)=>e.filter(Boolean).join(" "),h=e=>{const s=[],i=[];let r=-1,t=-1;for(const{children:v,...c}of e){if(r<c.depth&&c.depth<=t+1){const l=c.depth-r;t=c.depth;const u=i[l-1];u.children??=[],u.children.push(c),i[l]=c;continue}s.push(c),i[0]=c,r=t=c.depth}return s};exports.Style=void 0;(e=>{e.clickable=`
2
2
  px-2
3
3
  min-h-[calc(44/16*1rem)]
4
4
  border
5
5
  border-transparent
6
6
  rounded-lg
7
- hover:bg-solid-grey-50
7
+ hover:bg-solid-gray-50
8
8
  `,e.selected=`
9
9
  rounded-full
10
10
  bg-yellow-50
@@ -55,22 +55,14 @@
55
55
  shadow-1
56
56
  rounded-lg
57
57
  border
58
- border-solid-grey-420
58
+ border-solid-gray-420
59
59
  has-[>:nth-child(7)]:rounded-r-none
60
- `,e.popoverPositionBottomRight=`
61
- absolute
62
- top-11
63
- right-0
64
- `,e.popoverPositionBottomLeft=`
65
- absolute
66
- top-11
67
- left-0
68
- `,(c=>{c.focus=`
60
+ `,(i=>{i.focus=`
69
61
  peer-focus-visible:outline-4
70
62
  peer-focus-visible:outline-black
71
63
  peer-focus-visible:ring-yellow-300
72
- `,c.focusRect=`
73
- ${c.focus}
64
+ `,i.focusRect=`
65
+ ${i.focus}
74
66
  peer-focus-visible:outline-offset-[calc(2/16*1rem)]
75
67
  peer-focus-visible:ring-[calc(2/16*1rem)]
76
68
  `})(e.Peer||(e.Peer={}))})(exports.Style||(exports.Style={}));exports.cx=b;exports.focusableSelector=f;exports.mod=a;exports.treefy=h;
@@ -12,18 +12,18 @@ const o = ':not([tabindex^="-"])', n = ":not(:disabled)", f = [
12
12
  `video[controls]${o}`,
13
13
  `[contenteditable]${o}`,
14
14
  `[tabindex]${o}`
15
- ], b = f.join(","), h = (e, s) => (e % s + s) % s, p = (...e) => e.filter(Boolean).join(" "), v = (e) => {
16
- const s = [], c = [];
17
- let t = -1, r = -1;
18
- for (const { children: a, ...i } of e) {
19
- if (t < i.depth && i.depth <= r + 1) {
20
- const u = i.depth - t;
21
- r = i.depth;
22
- const l = c[u - 1];
23
- l.children ??= [], l.children.push(i), c[u] = i;
15
+ ], b = f.join(","), h = (e, s) => (e % s + s) % s, v = (...e) => e.filter(Boolean).join(" "), $ = (e) => {
16
+ const s = [], i = [];
17
+ let r = -1, t = -1;
18
+ for (const { children: a, ...c } of e) {
19
+ if (r < c.depth && c.depth <= t + 1) {
20
+ const u = c.depth - r;
21
+ t = c.depth;
22
+ const l = i[u - 1];
23
+ l.children ??= [], l.children.push(c), i[u] = c;
24
24
  continue;
25
25
  }
26
- s.push(i), c[0] = i, t = r = i.depth;
26
+ s.push(c), i[0] = c, r = t = c.depth;
27
27
  }
28
28
  return s;
29
29
  };
@@ -35,7 +35,7 @@ var d;
35
35
  border
36
36
  border-transparent
37
37
  rounded-lg
38
- hover:bg-solid-grey-50
38
+ hover:bg-solid-gray-50
39
39
  `, e.selected = `
40
40
  rounded-full
41
41
  bg-yellow-50
@@ -88,23 +88,15 @@ var d;
88
88
  shadow-1
89
89
  rounded-lg
90
90
  border
91
- border-solid-grey-420
91
+ border-solid-gray-420
92
92
  has-[>:nth-child(7)]:rounded-r-none
93
- `, e.popoverPositionBottomRight = `
94
- absolute
95
- top-11
96
- right-0
97
- `, e.popoverPositionBottomLeft = `
98
- absolute
99
- top-11
100
- left-0
101
- `, ((c) => {
102
- c.focus = `
93
+ `, ((i) => {
94
+ i.focus = `
103
95
  peer-focus-visible:outline-4
104
96
  peer-focus-visible:outline-black
105
97
  peer-focus-visible:ring-yellow-300
106
- `, c.focusRect = `
107
- ${c.focus}
98
+ `, i.focusRect = `
99
+ ${i.focus}
108
100
  peer-focus-visible:outline-offset-[calc(2/16*1rem)]
109
101
  peer-focus-visible:ring-[calc(2/16*1rem)]
110
102
  `;
@@ -112,8 +104,8 @@ var d;
112
104
  })(d || (d = {}));
113
105
  export {
114
106
  d as Style,
115
- p as cx,
107
+ v as cx,
116
108
  b as focusableSelector,
117
109
  h as mod,
118
- v as treefy
110
+ $ as treefy
119
111
  };