@koide-labs/ui 0.1.3 → 0.1.4

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.
Files changed (109) hide show
  1. package/README.md +1 -4
  2. package/dist/{InternalBackdrop-BSMKU-hc.js → InternalBackdrop-DDLgWc7D.js} +1 -1
  3. package/dist/accordion.css +1 -1
  4. package/dist/alert-dialog.css +1 -1
  5. package/dist/anchor.css +1 -1
  6. package/dist/avatar.css +1 -1
  7. package/dist/badge.css +1 -1
  8. package/dist/button.css +1 -1
  9. package/dist/checkbox.css +1 -1
  10. package/dist/code.css +1 -1
  11. package/dist/collapse.css +1 -1
  12. package/dist/command.css +1 -1
  13. package/dist/components/accordion/accordion.js +88 -88
  14. package/dist/components/alert-dialog/alert-dialog.js +7 -7
  15. package/dist/components/anchor/anchor.js +6 -6
  16. package/dist/components/avatar/avatar.js +22 -22
  17. package/dist/components/badge/badge.js +17 -17
  18. package/dist/components/button/button.js +7 -7
  19. package/dist/components/checkbox/checkbox.js +15 -15
  20. package/dist/components/code/code.js +49 -49
  21. package/dist/components/collapse/collapse.js +3 -3
  22. package/dist/components/command/command.js +121 -121
  23. package/dist/components/context-menu/context-menu.js +13 -13
  24. package/dist/components/dialog/dialog.js +2 -2
  25. package/dist/components/heading/heading.js +5 -5
  26. package/dist/components/icon/icon.js +10 -10
  27. package/dist/components/icon-button/icon-button.js +15 -15
  28. package/dist/components/inline-code/inline-code.js +7 -7
  29. package/dist/components/input/input.js +1 -1
  30. package/dist/components/meter/meter.js +32 -32
  31. package/dist/components/multiline-input/multiline-input.js +1 -1
  32. package/dist/components/number-input/number-input.js +60 -60
  33. package/dist/components/password-input/password-input.js +6 -6
  34. package/dist/components/pill/pill.js +10 -10
  35. package/dist/components/popover/popover.js +22 -22
  36. package/dist/components/preview-card/preview-card.js +5 -5
  37. package/dist/components/radio-group/radio-group.js +99 -99
  38. package/dist/components/search-bar/search-bar.js +10 -10
  39. package/dist/components/select/select.js +76 -76
  40. package/dist/components/separator/index.js +1 -1
  41. package/dist/components/separator/separator.js +1 -1
  42. package/dist/components/slider/slider.js +146 -146
  43. package/dist/components/spinner/spinner.js +6 -6
  44. package/dist/components/stacked-avatars/stacked-avatars.js +25 -25
  45. package/dist/components/status-banner/status-banner.js +20 -20
  46. package/dist/components/surface/surface.js +19 -19
  47. package/dist/components/switch/switch.js +2 -2
  48. package/dist/components/tabs/tabs.js +34 -34
  49. package/dist/components/text/text.js +22 -22
  50. package/dist/components/timestamp/timestamp.js +73 -73
  51. package/dist/components/toaster/toaster.js +58 -58
  52. package/dist/components/tooltip/index.js +1 -1
  53. package/dist/components/tooltip/tooltip.js +2 -2
  54. package/dist/components/view/view.js +44 -44
  55. package/dist/context-menu.css +1 -1
  56. package/dist/dialog.css +1 -1
  57. package/dist/{dialog.module-1PAL873u.js → dialog.module-CRiRBcbM.js} +37 -37
  58. package/dist/{getDisabledMountTransitionStyles-E2x-_lte.js → getDisabledMountTransitionStyles-CyEI2117.js} +1 -1
  59. package/dist/heading.css +1 -1
  60. package/dist/icon-button.css +1 -1
  61. package/dist/icon.css +1 -1
  62. package/dist/index.css +1 -1
  63. package/dist/index.js +2 -2
  64. package/dist/index2.css +1 -1
  65. package/dist/inline-code.css +1 -1
  66. package/dist/input.css +1 -1
  67. package/dist/input.module-CYcyDtrO.js +8 -0
  68. package/dist/integrations/react-markdown/index.js +26 -26
  69. package/dist/integrations/twemoji/index.js +1 -1
  70. package/dist/meter.css +1 -1
  71. package/dist/number-input.css +1 -1
  72. package/dist/password-input.css +1 -1
  73. package/dist/pill.css +1 -1
  74. package/dist/popover.css +1 -1
  75. package/dist/preview-card.css +1 -1
  76. package/dist/radio-group.css +1 -1
  77. package/dist/{safePolygon-DnkzOIur.js → safePolygon-lAEp2rci.js} +1 -1
  78. package/dist/search-bar.css +1 -1
  79. package/dist/select.css +1 -1
  80. package/dist/{separator-DgY7BjjO.js → separator-Or-BDQYZ.js} +14 -14
  81. package/dist/separator.css +1 -1
  82. package/dist/slider.css +1 -1
  83. package/dist/spinner.css +1 -1
  84. package/dist/stacked-avatars.css +1 -1
  85. package/dist/status-banner.css +1 -1
  86. package/dist/styles/core.css +1 -1
  87. package/dist/surface.css +1 -1
  88. package/dist/switch.css +1 -1
  89. package/dist/tabs.css +1 -1
  90. package/dist/text.css +1 -1
  91. package/dist/timestamp.css +1 -1
  92. package/dist/toaster.css +1 -1
  93. package/dist/{tooltip-BJQPwudf.js → tooltip-JPnUwFFR.js} +6 -6
  94. package/dist/tooltip.css +1 -1
  95. package/dist/transitions.css +1 -1
  96. package/dist/{transitions.module-D9mMAtfI.js → transitions.module-SSNmQfsR.js} +43 -43
  97. package/dist/{useRole-BD3OL1rr.js → useRole-D1k7CnHQ.js} +1 -1
  98. package/dist/{useSyncedFloatingRootContext-BB1vwkV-.js → useSyncedFloatingRootContext-CaohymZI.js} +1 -1
  99. package/dist/{useTypeahead-BiL5IAVb.js → useTypeahead-CSZtonjF.js} +2 -2
  100. package/dist/view.css +1 -1
  101. package/dist/view.module-j3ylJCCE.js +6 -0
  102. package/dist/view2.css +1 -1
  103. package/package.json +17 -19
  104. package/dist/components/dialog/dialog.types.js +0 -1
  105. package/dist/components/icon/icon.types.js +0 -1
  106. package/dist/components/surface/surface.types.js +0 -1
  107. package/dist/components/view/view.types.js +0 -1
  108. package/dist/input.module-CtE19OH8.js +0 -8
  109. package/dist/view.module-CjopAf_0.js +0 -6
@@ -21,9 +21,9 @@ import * as ht from "react-dom";
21
21
  import { i as gt } from "../../inertValue-BTpPjX30.js";
22
22
  import { u as me } from "../../useIsoLayoutEffect-CIDbvm3Q.js";
23
23
  import { f as _t } from "../../formatErrorMessage-BqPuTBN-.js";
24
- import { u as yt, t as wt } from "../../useOpenChangeComplete-BHd-N7Ig.js";
24
+ import { u as yt, t as vt } from "../../useOpenChangeComplete-BHd-N7Ig.js";
25
25
  import { u as He } from "../../useId-C5kyn6tA.js";
26
- import { u as vt } from "../../useButton-d3_JgBNr.js";
26
+ import { u as wt } from "../../useButton-d3_JgBNr.js";
27
27
  import '../../toaster.css';let Fe = 0;
28
28
  function xt(a) {
29
29
  return Fe += 1, `${a}-${Math.random().toString(36).slice(2, 6)}-${Fe}`;
@@ -47,26 +47,26 @@ const ke = function(c) {
47
47
  timeout: s = 5e3,
48
48
  limit: F = 3,
49
49
  toastManager: M
50
- } = c, [v, u] = e.useState([]), [g, t] = e.useState(!1), [d, y] = e.useState(!1), [o, E] = e.useState(null);
51
- v.length === 0 && (g && t(!1), d && y(!1));
50
+ } = c, [w, u] = e.useState([]), [g, t] = e.useState(!1), [d, y] = e.useState(!1), [o, E] = e.useState(null);
51
+ w.length === 0 && (g && t(!1), d && y(!1));
52
52
  const R = g || d, N = e.useRef(/* @__PURE__ */ new Map()), z = e.useRef(null), C = e.useRef(!0), X = e.useRef(!1);
53
53
  function j(n) {
54
54
  const m = pe(ne(z.current));
55
55
  if (!z.current || !se(z.current, m) || !De(m))
56
56
  return;
57
- const w = v.findIndex((r) => r.id === n);
58
- let i = null, _ = w + 1;
59
- for (; _ < v.length; ) {
60
- if (v[_].transitionStatus !== "ending") {
61
- i = v[_];
57
+ const v = w.findIndex((r) => r.id === n);
58
+ let i = null, _ = v + 1;
59
+ for (; _ < w.length; ) {
60
+ if (w[_].transitionStatus !== "ending") {
61
+ i = w[_];
62
62
  break;
63
63
  }
64
64
  _ += 1;
65
65
  }
66
66
  if (!i)
67
- for (_ = w - 1; _ >= 0; ) {
68
- if (v[_].transitionStatus !== "ending") {
69
- i = v[_];
67
+ for (_ = v - 1; _ >= 0; ) {
68
+ if (w[_].transitionStatus !== "ending") {
69
+ i = w[_];
70
70
  break;
71
71
  }
72
72
  _ -= 1;
@@ -79,8 +79,8 @@ const ke = function(c) {
79
79
  X.current || (X.current = !0, N.current.forEach((n) => {
80
80
  if (n.timeout) {
81
81
  n.timeout.clear();
82
- const m = Date.now() - n.start, w = n.delay - m;
83
- n.remaining = w > 0 ? w : 0;
82
+ const m = Date.now() - n.start, v = n.delay - m;
83
+ n.remaining = v > 0 ? v : 0;
84
84
  }
85
85
  }));
86
86
  }), I = U(() => {
@@ -107,28 +107,28 @@ const ke = function(c) {
107
107
  });
108
108
  });
109
109
  const m = N.current.get(n);
110
- m && m.timeout && (m.timeout.clear(), N.current.delete(n)), v.find((i) => i.id === n)?.onClose?.(), j(n), v.length === 1 && (t(!1), y(!1));
110
+ m && m.timeout && (m.timeout.clear(), N.current.delete(n)), w.find((i) => i.id === n)?.onClose?.(), j(n), w.length === 1 && (t(!1), y(!1));
111
111
  }), q = U((n) => {
112
- u((w) => w.filter((i) => i.id !== n)), v.find((w) => w.id === n)?.onRemove?.();
113
- }), B = U((n, m, w) => {
112
+ u((v) => v.filter((i) => i.id !== n)), w.find((v) => v.id === n)?.onRemove?.();
113
+ }), B = U((n, m, v) => {
114
114
  const i = Date.now(), _ = C.current && !g && !d, r = _ ? Oe.create() : void 0;
115
115
  r?.start(m, () => {
116
- N.current.delete(n), w();
116
+ N.current.delete(n), v();
117
117
  }), N.current.set(n, {
118
118
  timeout: r,
119
119
  start: _ ? i : 0,
120
120
  delay: m,
121
121
  remaining: m,
122
- callback: w
122
+ callback: v
123
123
  });
124
124
  }), G = U((n) => {
125
- const m = n.id || xt("toast"), w = {
125
+ const m = n.id || xt("toast"), v = {
126
126
  ...n,
127
127
  id: m,
128
128
  transitionStatus: "starting"
129
129
  };
130
130
  u((_) => {
131
- const r = [w, ..._], p = r.filter((x) => x.transitionStatus !== "ending");
131
+ const r = [v, ..._], p = r.filter((x) => x.transitionStatus !== "ending");
132
132
  if (p.length > F) {
133
133
  const x = p.length - F, T = p.slice(-x);
134
134
  return r.map((H) => T.some((Z) => Z.id === H.id) ? {
@@ -144,16 +144,16 @@ const ke = function(c) {
144
144
  limited: !1
145
145
  }));
146
146
  });
147
- const i = w.timeout ?? s;
148
- return w.type !== "loading" && i > 0 && B(m, i, () => L(m)), (g || d || !C.current) && b(), m;
147
+ const i = v.timeout ?? s;
148
+ return v.type !== "loading" && i > 0 && B(m, i, () => L(m)), (g || d || !C.current) && b(), m;
149
149
  }), K = U((n, m) => {
150
- u((w) => w.map((i) => i.id === n ? {
150
+ u((v) => v.map((i) => i.id === n ? {
151
151
  ...i,
152
152
  ...m
153
153
  } : i));
154
154
  }), O = U((n, m) => {
155
- const w = be(m.loading), i = G({
156
- ...w,
155
+ const v = be(m.loading), i = G({
156
+ ...v,
157
157
  type: "loading"
158
158
  }), _ = n.then((r) => {
159
159
  const p = be(m.success, r);
@@ -176,15 +176,15 @@ const ke = function(c) {
176
176
  });
177
177
  e.useEffect(function() {
178
178
  return M ? M[" subscribe"](({
179
- action: w,
179
+ action: v,
180
180
  options: i
181
181
  }) => {
182
182
  const _ = i.id;
183
- w === "promise" && i.promise ? O(i.promise, i) : w === "update" && _ ? K(_, i) : w === "close" && _ ? L(_) : G(i);
183
+ v === "promise" && i.promise ? O(i.promise, i) : v === "update" && _ ? K(_, i) : v === "close" && _ ? L(_) : G(i);
184
184
  }) : void 0;
185
185
  }, [G, K, B, s, M, O, L]);
186
186
  const J = e.useMemo(() => ({
187
- toasts: v,
187
+ toasts: w,
188
188
  setToasts: u,
189
189
  hovering: g,
190
190
  setHovering: t,
@@ -203,7 +203,7 @@ const ke = function(c) {
203
203
  viewportRef: z,
204
204
  scheduleTimer: B,
205
205
  windowFocusedRef: C
206
- }), [G, L, d, g, R, b, o, O, q, I, B, v, K]);
206
+ }), [G, L, d, g, R, b, o, O, q, I, B, w, K]);
207
207
  return /* @__PURE__ */ D(it.Provider, {
208
208
  value: J,
209
209
  children: h
@@ -220,7 +220,7 @@ const Be = /* @__PURE__ */ e.forwardRef(function(c, h) {
220
220
  render: s,
221
221
  className: F,
222
222
  children: M,
223
- ...v
223
+ ...w
224
224
  } = c, {
225
225
  toasts: u,
226
226
  pauseTimers: g,
@@ -335,14 +335,14 @@ const Be = /* @__PURE__ */ e.forwardRef(function(c, h) {
335
335
  onClick: O
336
336
  }, m = e.useMemo(() => ({
337
337
  expanded: z
338
- }), [z]), w = ie("div", c, {
338
+ }), [z]), v = ie("div", c, {
339
339
  ref: [h, o],
340
340
  state: m,
341
341
  props: [n, {
342
342
  style: {
343
343
  [Tt.frontmostHeight]: I ? `${I}px` : void 0
344
344
  }
345
- }, v, {
345
+ }, w, {
346
346
  children: /* @__PURE__ */ re(e.Fragment, {
347
347
  children: [b > 0 && R && /* @__PURE__ */ D(Te, {
348
348
  onFocus: q
@@ -358,7 +358,7 @@ const Be = /* @__PURE__ */ e.forwardRef(function(c, h) {
358
358
  value: i,
359
359
  children: [b > 0 && R && /* @__PURE__ */ D(Te, {
360
360
  onFocus: q
361
- }), w, !C && _.length > 0 && /* @__PURE__ */ D("div", {
361
+ }), v, !C && _.length > 0 && /* @__PURE__ */ D("div", {
362
362
  style: mt,
363
363
  children: _.map((r) => /* @__PURE__ */ re("div", {
364
364
  role: "alert",
@@ -385,7 +385,7 @@ let ee = /* @__PURE__ */ (function(a) {
385
385
  return a.index = "--toast-index", a.offsetY = "--toast-offset-y", a.height = "--toast-height", a.swipeMovementX = "--toast-swipe-movement-x", a.swipeMovementY = "--toast-swipe-movement-y", a;
386
386
  })({});
387
387
  const bt = {
388
- ...wt,
388
+ ...vt,
389
389
  swipeDirection(a) {
390
390
  return a ? {
391
391
  "data-swipe-direction": a
@@ -410,9 +410,9 @@ function Rt(a) {
410
410
  const h = window.getComputedStyle(a).transform;
411
411
  let s = 0, F = 0, M = 1;
412
412
  if (h && h !== "none") {
413
- const v = h.match(/matrix(?:3d)?\(([^)]+)\)/);
414
- if (v) {
415
- const u = v[1].split(", ").map(parseFloat);
413
+ const w = h.match(/matrix(?:3d)?\(([^)]+)\)/);
414
+ if (w) {
415
+ const u = w[1].split(", ").map(parseFloat);
416
416
  u.length === 6 ? (s = u[4], F = u[5], M = Math.sqrt(u[0] * u[0] + u[1] * u[1])) : u.length === 16 && (s = u[12], F = u[13], M = u[0]);
417
417
  }
418
418
  }
@@ -427,11 +427,11 @@ const $e = /* @__PURE__ */ e.forwardRef(function(c, h) {
427
427
  toast: s,
428
428
  render: F,
429
429
  className: M,
430
- swipeDirection: v = ["down", "right"],
430
+ swipeDirection: w = ["down", "right"],
431
431
  ...u
432
432
  } = c, g = s.positionerProps?.anchor !== void 0;
433
433
  let t = [];
434
- g || (t = Array.isArray(v) ? v : [v]);
434
+ g || (t = Array.isArray(w) ? w : [w]);
435
435
  const d = t.length > 0, {
436
436
  toasts: y,
437
437
  focused: o,
@@ -448,7 +448,7 @@ const $e = /* @__PURE__ */ e.forwardRef(function(c, h) {
448
448
  x: 0,
449
449
  y: 0,
450
450
  scale: 1
451
- }), [w, i] = e.useState(), [_, r] = e.useState(), [p, x] = e.useState(null), T = e.useRef(null), H = e.useRef({
451
+ }), [v, i] = e.useState(), [_, r] = e.useState(), [p, x] = e.useState(null), T = e.useRef(null), H = e.useRef({
452
452
  x: 0,
453
453
  y: 0
454
454
  }), Z = e.useRef({
@@ -547,10 +547,10 @@ const $e = /* @__PURE__ */ e.forwardRef(function(c, h) {
547
547
  de > ae ? (ue.current = !1, b(xe)) : !(t.includes("left") && t.includes("right")) && !(t.includes("up") && t.includes("down")) && he.current - de >= Dt && (ue.current = !0);
548
548
  }
549
549
  const fe = Ke(k, V);
550
- let we = Z.current.x, ve = Z.current.y;
551
- p === "horizontal" ? (t.includes("left") || t.includes("right")) && (we += fe.x) : (p === "vertical" || (t.includes("left") || t.includes("right")) && (we += fe.x), (t.includes("up") || t.includes("down")) && (ve += fe.y)), J({
552
- x: we,
553
- y: ve
550
+ let ve = Z.current.x, we = Z.current.y;
551
+ p === "horizontal" ? (t.includes("left") || t.includes("right")) && (ve += fe.x) : (p === "vertical" || (t.includes("left") || t.includes("right")) && (ve += fe.x), (t.includes("up") || t.includes("down")) && (we += fe.y)), J({
552
+ x: ve,
553
+ y: we
554
554
  });
555
555
  }
556
556
  function Ue(l) {
@@ -631,7 +631,7 @@ const $e = /* @__PURE__ */ e.forwardRef(function(c, h) {
631
631
  role: Me ? "alertdialog" : "dialog",
632
632
  tabIndex: 0,
633
633
  "aria-modal": !1,
634
- "aria-labelledby": w,
634
+ "aria-labelledby": v,
635
635
  "aria-describedby": _,
636
636
  "aria-hidden": Me && !o ? !0 : void 0,
637
637
  onPointerDown: d ? We : void 0,
@@ -648,7 +648,7 @@ const $e = /* @__PURE__ */ e.forwardRef(function(c, h) {
648
648
  }, te = e.useMemo(() => ({
649
649
  rootRef: T,
650
650
  toast: s,
651
- titleId: w,
651
+ titleId: v,
652
652
  setTitleId: i,
653
653
  descriptionId: _,
654
654
  setDescriptionId: r,
@@ -658,7 +658,7 @@ const $e = /* @__PURE__ */ e.forwardRef(function(c, h) {
658
658
  index: _e,
659
659
  visibleIndex: ye,
660
660
  expanded: C
661
- }), [s, w, _, I, j, le, _e, ye, C]), Ze = e.useMemo(() => ({
661
+ }), [s, v, _, I, j, le, _e, ye, C]), Ze = e.useMemo(() => ({
662
662
  transitionStatus: s.transitionStatus,
663
663
  expanded: C,
664
664
  limited: s.limited || !1,
@@ -683,7 +683,7 @@ const Ae = /* @__PURE__ */ e.forwardRef(function(c, h) {
683
683
  className: F,
684
684
  ...M
685
685
  } = c, {
686
- visibleIndex: v,
686
+ visibleIndex: w,
687
687
  expanded: u,
688
688
  recalculateHeight: g
689
689
  } = oe(), t = e.useRef(null);
@@ -700,7 +700,7 @@ const Ae = /* @__PURE__ */ e.forwardRef(function(c, h) {
700
700
  R.disconnect(), N.disconnect();
701
701
  };
702
702
  }, [g]);
703
- const d = v > 0, y = e.useMemo(() => ({
703
+ const d = w > 0, y = e.useMemo(() => ({
704
704
  expanded: u,
705
705
  behind: d
706
706
  }), [u, d]);
@@ -716,11 +716,11 @@ const Ye = /* @__PURE__ */ e.forwardRef(function(c, h) {
716
716
  render: s,
717
717
  className: F,
718
718
  id: M,
719
- children: v,
719
+ children: w,
720
720
  ...u
721
721
  } = c, {
722
722
  toast: g
723
- } = oe(), t = v ?? g.description, d = !!t, y = He(M), {
723
+ } = oe(), t = w ?? g.description, d = !!t, y = He(M), {
724
724
  setDescriptionId: o
725
725
  } = oe();
726
726
  me(() => {
@@ -748,11 +748,11 @@ const ze = /* @__PURE__ */ e.forwardRef(function(c, h) {
748
748
  render: s,
749
749
  className: F,
750
750
  id: M,
751
- children: v,
751
+ children: w,
752
752
  ...u
753
753
  } = c, {
754
754
  toast: g
755
- } = oe(), t = v ?? g.title, d = !!t, y = He(M), {
755
+ } = oe(), t = w ?? g.title, d = !!t, y = He(M), {
756
756
  setTitleId: o
757
757
  } = oe();
758
758
  me(() => {
@@ -780,7 +780,7 @@ const Xe = /* @__PURE__ */ e.forwardRef(function(c, h) {
780
780
  render: s,
781
781
  className: F,
782
782
  disabled: M,
783
- nativeButton: v = !0,
783
+ nativeButton: w = !0,
784
784
  ...u
785
785
  } = c, {
786
786
  close: g,
@@ -790,9 +790,9 @@ const Xe = /* @__PURE__ */ e.forwardRef(function(c, h) {
790
790
  } = oe(), [y, o] = e.useState(!1), {
791
791
  getButtonProps: E,
792
792
  buttonRef: R
793
- } = vt({
793
+ } = wt({
794
794
  disabled: M,
795
- native: v
795
+ native: w
796
796
  }), N = e.useMemo(() => ({
797
797
  type: d.type
798
798
  }), [d.type]);
@@ -814,7 +814,7 @@ const Xe = /* @__PURE__ */ e.forwardRef(function(c, h) {
814
814
  });
815
815
  });
816
816
  process.env.NODE_ENV !== "production" && (Xe.displayName = "ToastClose");
817
- const St = pt, Mt = "_toaster__viewport_twmyb_2", Nt = "_toaster_twmyb_2", Pt = "_toaster_variant_neutral_twmyb_112", Ot = "_toaster_variant_colorway_twmyb_118", Ct = "_toaster__content_twmyb_124", Ft = "_toaster__header_twmyb_143", It = "_toaster__header_pad_twmyb_147", Lt = "_toaster__title_twmyb_151", Ht = "_toaster__description_twmyb_155", kt = "_toaster__close_twmyb_159", W = {
817
+ const St = pt, Mt = "_toaster__viewport_pynb4_3", Nt = "_toaster_pynb4_3", Pt = "_toaster_variant_neutral_pynb4_113", Ot = "_toaster_variant_colorway_pynb4_119", Ct = "_toaster__content_pynb4_125", Ft = "_toaster__header_pynb4_144", It = "_toaster__header_pad_pynb4_148", Lt = "_toaster__title_pynb4_152", Ht = "_toaster__description_pynb4_156", kt = "_toaster__close_pynb4_160", W = {
818
818
  toaster__viewport: Mt,
819
819
  toaster: Nt,
820
820
  toaster_variant_neutral: Pt,
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { T as t } from "../../tooltip-BJQPwudf.js";
2
+ import { T as t } from "../../tooltip-JPnUwFFR.js";
3
3
  export {
4
4
  t as Tooltip
5
5
  };
@@ -1,8 +1,8 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../clsx-OuTLNxxd.js";
3
3
  import "../../-utils.js";
4
- import "../../transitions.module-D9mMAtfI.js";
5
- import { T as a } from "../../tooltip-BJQPwudf.js";
4
+ import "../../transitions.module-SSNmQfsR.js";
5
+ import { T as a } from "../../tooltip-JPnUwFFR.js";
6
6
  import "../surface/surface.js";
7
7
  export {
8
8
  a as Tooltip
@@ -1,63 +1,63 @@
1
1
  import { c as t } from "../../clsx-OuTLNxxd.js";
2
- import { s as v } from "../../view.module-CjopAf_0.js";
2
+ import { s as v } from "../../view.module-j3ylJCCE.js";
3
3
  import { u as n } from "../../useRender-C3vlzS3t.js";
4
4
  import { m as y } from "../../useRenderElement-DngNDu_P.js";
5
- import '../../view2.css';const u = "_view_colorway_qhua6_2", s = "_view_colorway_static_qhua6_20", g = "_view_colorway_outline_qhua6_28", d = "_view_colorway_fill_qhua6_98", l = {
6
- view_colorway: u,
7
- view_colorway_static: s,
5
+ import '../../view2.css';const s = "_view_colorway_13usv_3", u = "_view_colorway_static_13usv_21", g = "_view_colorway_outline_13usv_29", d = "_view_colorway_fill_13usv_99", l = {
6
+ view_colorway: s,
7
+ view_colorway_static: u,
8
8
  view_colorway_outline: g,
9
- "view_colorway_outline-static": "_view_colorway_outline-static_qhua6_60",
10
- "view_colorway_mute-static": "_view_colorway_mute-static_qhua6_67",
11
- "view_colorway_no-fill": "_view_colorway_no-fill_qhua6_73",
9
+ "view_colorway_outline-static": "_view_colorway_outline-static_13usv_61",
10
+ "view_colorway_mute-static": "_view_colorway_mute-static_13usv_68",
11
+ "view_colorway_no-fill": "_view_colorway_no-fill_13usv_74",
12
12
  view_colorway_fill: d,
13
- "view_colorway_fill-static": "_view_colorway_fill-static_qhua6_123",
14
- "view_colorway_fill-outline": "_view_colorway_fill-outline_qhua6_129",
15
- "view_colorway_color-primary": "_view_colorway_color-primary_qhua6_163",
16
- "view_colorway_color-positive": "_view_colorway_color-positive_qhua6_171",
17
- "view_colorway_color-negative": "_view_colorway_color-negative_qhua6_179",
18
- "view_colorway_color-warning": "_view_colorway_color-warning_qhua6_187",
19
- "view_colorway_color-red": "_view_colorway_color-red_qhua6_195",
20
- "view_colorway_color-orange": "_view_colorway_color-orange_qhua6_203",
21
- "view_colorway_color-yellow": "_view_colorway_color-yellow_qhua6_211",
22
- "view_colorway_color-green": "_view_colorway_color-green_qhua6_219",
23
- "view_colorway_color-teal": "_view_colorway_color-teal_qhua6_227",
24
- "view_colorway_color-blue": "_view_colorway_color-blue_qhua6_235",
25
- "view_colorway_color-blurple": "_view_colorway_color-blurple_qhua6_243",
26
- "view_colorway_color-purple": "_view_colorway_color-purple_qhua6_251",
27
- "view_colorway_color-magenta": "_view_colorway_color-magenta_qhua6_259",
28
- "view_colorway_color-pink": "_view_colorway_color-pink_qhua6_267",
29
- "view_colorway_color-grey": "_view_colorway_color-grey_qhua6_275"
30
- }, f = "_view_interactive_r2alv_2", h = "_view_interactive_fill_r2alv_30", q = "_view_interactive_outline_r2alv_69", r = {
13
+ "view_colorway_fill-static": "_view_colorway_fill-static_13usv_124",
14
+ "view_colorway_fill-outline": "_view_colorway_fill-outline_13usv_130",
15
+ "view_colorway_color-primary": "_view_colorway_color-primary_13usv_164",
16
+ "view_colorway_color-positive": "_view_colorway_color-positive_13usv_172",
17
+ "view_colorway_color-negative": "_view_colorway_color-negative_13usv_180",
18
+ "view_colorway_color-warning": "_view_colorway_color-warning_13usv_188",
19
+ "view_colorway_color-red": "_view_colorway_color-red_13usv_196",
20
+ "view_colorway_color-orange": "_view_colorway_color-orange_13usv_204",
21
+ "view_colorway_color-yellow": "_view_colorway_color-yellow_13usv_212",
22
+ "view_colorway_color-green": "_view_colorway_color-green_13usv_220",
23
+ "view_colorway_color-teal": "_view_colorway_color-teal_13usv_228",
24
+ "view_colorway_color-blue": "_view_colorway_color-blue_13usv_236",
25
+ "view_colorway_color-blurple": "_view_colorway_color-blurple_13usv_244",
26
+ "view_colorway_color-purple": "_view_colorway_color-purple_13usv_252",
27
+ "view_colorway_color-magenta": "_view_colorway_color-magenta_13usv_260",
28
+ "view_colorway_color-pink": "_view_colorway_color-pink_13usv_268",
29
+ "view_colorway_color-grey": "_view_colorway_color-grey_13usv_276"
30
+ }, f = "_view_interactive_1hjsh_3", m = "_view_interactive_fill_1hjsh_31", h = "_view_interactive_outline_1hjsh_70", c = {
31
31
  view_interactive: f,
32
- view_interactive_fill: h,
33
- "view_interactive_no-fill": "_view_interactive_no-fill_r2alv_50",
34
- view_interactive_outline: q,
35
- "view_interactive_fill-outline": "_view_interactive_fill-outline_r2alv_89",
36
- "view_interactive_list-item": "_view_interactive_list-item_r2alv_110"
37
- }, m = "_view_loading_p1qhr_7", p = "_view_loading_foreground_p1qhr_12", b = "_loading_p1qhr_1", k = "_view_loading_background_p1qhr_25", c = {
38
- view_loading: m,
32
+ view_interactive_fill: m,
33
+ "view_interactive_no-fill": "_view_interactive_no-fill_1hjsh_51",
34
+ view_interactive_outline: h,
35
+ "view_interactive_fill-outline": "_view_interactive_fill-outline_1hjsh_90",
36
+ "view_interactive_list-item": "_view_interactive_list-item_1hjsh_111"
37
+ }, b = "_view_loading_11mxa_8", p = "_view_loading_foreground_11mxa_13", j = "_loading_11mxa_1", x = "_view_loading_background_11mxa_26", a = {
38
+ view_loading: b,
39
39
  view_loading_foreground: p,
40
- loading: b,
41
- view_loading_background: k
40
+ loading: j,
41
+ view_loading_background: x
42
42
  };
43
43
  function R({
44
44
  interactive: o,
45
45
  loading: i,
46
46
  color: e,
47
- render: a,
47
+ render: r,
48
48
  ...w
49
49
  }) {
50
- const _ = $({ interactive: o, loading: i });
50
+ const _ = k({ interactive: o, loading: i });
51
51
  return n({
52
52
  defaultTagName: "div",
53
- render: a,
53
+ render: r,
54
54
  props: y(w, {
55
55
  className: t(
56
56
  v.view,
57
57
  e && l[`view_colorway_color-${e}`],
58
58
  _.interactive && [
59
- r.view_interactive,
60
- r[`view_interactive_${_.interactive}`]
59
+ c.view_interactive,
60
+ c[`view_interactive_${_.interactive}`]
61
61
  ],
62
62
  _.colorway && [
63
63
  _.colorway[1].endsWith("static") ? l.view_colorway_static : l.view_colorway,
@@ -65,18 +65,18 @@ function R({
65
65
  l[`view_colorway_color-${_.colorway[0]}`]
66
66
  ],
67
67
  _.loading && [
68
- c.view_loading,
69
- c[`view_loading_${_.loading}`]
68
+ a.view_loading,
69
+ a[`view_loading_${_.loading}`]
70
70
  ]
71
71
  )
72
72
  })
73
73
  });
74
74
  }
75
- function $(o) {
75
+ function k(o) {
76
76
  let i = null, e = null;
77
77
  o.interactive && typeof o.interactive == "boolean" ? i = "fill" : typeof o.interactive == "string" && (typeof o.interactive == "string" && o.interactive.includes("_") ? e = o.interactive.split("_") : i = o.interactive);
78
- let a = null;
79
- return o.loading && (a = typeof o.loading == "boolean" ? "foreground" : o.loading), { interactive: i, colorway: e, loading: a };
78
+ let r = null;
79
+ return o.loading && (r = typeof o.loading == "boolean" ? "foreground" : o.loading), { interactive: i, colorway: e, loading: r };
80
80
  }
81
81
  export {
82
82
  R as View
@@ -1 +1 @@
1
- @layer components{._context-menu_ct7eh_2{gap:var(--space-4);box-shadow:var(--shadow-1);border:1px solid var(--outline-dimmest);border-radius:var(--border-radius-default);padding:var(--space-4);-webkit-user-select:none;-moz-user-select:none;user-select:none}._context-menu__item_ct7eh_11{position:relative;flex-direction:row;align-items:center;gap:var(--space-4);outline:none;border:none;border-radius:var(--border-radius-6);padding:var(--space-2) var(--space-4);padding-left:var(--space-24)}._context-menu__item-icon_ct7eh_23{position:absolute;top:50%;left:var(--space-4);transform:translateY(-50%)}._context-menu__item-shortcut_ct7eh_30{margin-left:auto;letter-spacing:.1em}._context-menu__label_ct7eh_35{padding:var(--space-2) var(--space-4)}}
1
+ ._context-menu_1x98f_3:not(#\#):not(#\#):not(#\#){gap:var(--space-4);box-shadow:var(--shadow-1);border:1px solid var(--outline-dimmest);border-radius:var(--border-radius-default);padding:var(--space-4);-webkit-user-select:none;-moz-user-select:none;user-select:none}._context-menu__item_1x98f_12:not(#\#):not(#\#):not(#\#){position:relative;flex-direction:row;align-items:center;gap:var(--space-4);outline:none;border:none;border-radius:var(--border-radius-6);padding:var(--space-2) var(--space-4);padding-left:var(--space-24)}._context-menu__item-icon_1x98f_24:not(#\#):not(#\#):not(#\#){position:absolute;top:50%;left:var(--space-4);transform:translateY(-50%)}._context-menu__item-shortcut_1x98f_31:not(#\#):not(#\#):not(#\#){margin-left:auto;letter-spacing:.1em}._context-menu__label_1x98f_36:not(#\#):not(#\#):not(#\#){padding:var(--space-2) var(--space-4)}
package/dist/dialog.css CHANGED
@@ -1 +1 @@
1
- @layer atom{._dialog__backdrop_1wc77_2{position:fixed;z-index:50;inset:0;background-color:var(--background-overlay)}@supports (-webkit-touch-callout: none){._dialog__backdrop_1wc77_2{position:absolute}}._dialog__popup_1wc77_14{display:block;position:fixed;z-index:51;inset:0;isolation:isolate;padding:var(--space-16);height:100%;overflow:auto}._dialog__popup_centered_1wc77_25{display:flex;place-items:center}@media screen and (min-width:512px){._dialog__popup_centered_1wc77_25{padding:var(--space-32);padding-top:var(--space-64);padding-bottom:var(--space-64)}}._dialog__content_1wc77_36{position:relative;flex-grow:1;flex-shrink:1;gap:var(--space-16);margin:0 auto;outline:none;box-shadow:var(--shadow-2);border:1px solid var(--outline-dimmest);border-radius:var(--border-radius-default);padding:var(--space-16);width:100%;height:auto;overflow:hidden}._dialog__content_width_sm_1wc77_52{max-width:384px}._dialog__content_width_md_1wc77_56{max-width:512px}._dialog__content_width_lg_1wc77_60{max-width:872px}._dialog__header_1wc77_64{gap:var(--space-4)}._dialog__close_1wc77_68{position:absolute;top:var(--space-8);right:var(--space-8)}}
1
+ ._dialog__backdrop_yz2l4_3:not(#\#):not(#\#){position:fixed;z-index:50;inset:0;background-color:var(--background-overlay)}@supports (-webkit-touch-callout: none){._dialog__backdrop_yz2l4_3:not(#\#):not(#\#){position:absolute}}._dialog__popup_yz2l4_15:not(#\#):not(#\#){display:block;position:fixed;z-index:51;inset:0;isolation:isolate;padding:var(--space-16);height:100%;overflow:auto}._dialog__popup_centered_yz2l4_26:not(#\#):not(#\#){display:flex;place-items:center}@media screen and (min-width:512px){._dialog__popup_centered_yz2l4_26:not(#\#):not(#\#){padding:var(--space-32);padding-top:var(--space-64);padding-bottom:var(--space-64)}}._dialog__content_yz2l4_37:not(#\#):not(#\#){position:relative;flex-grow:1;flex-shrink:1;gap:var(--space-16);margin:0 auto;outline:none;box-shadow:var(--shadow-2);border:1px solid var(--outline-dimmest);border-radius:var(--border-radius-default);padding:var(--space-16);width:100%;height:auto;overflow:hidden}._dialog__content_width_sm_yz2l4_53:not(#\#):not(#\#){max-width:384px}._dialog__content_width_md_yz2l4_57:not(#\#):not(#\#){max-width:512px}._dialog__content_width_lg_yz2l4_61:not(#\#):not(#\#){max-width:872px}._dialog__header_yz2l4_65:not(#\#):not(#\#){gap:var(--space-4)}._dialog__close_yz2l4_69:not(#\#):not(#\#){position:absolute;top:var(--space-8);right:var(--space-8)}