@noxickon/onyx 6.7.0 → 6.7.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.
Files changed (149) hide show
  1. package/dist/code-block/CodeBlock.styles.d.ts +2 -2
  2. package/dist/code-block/CodeBlock2.js +1 -1
  3. package/dist/components/Accordion/Accordion.js +1 -1
  4. package/dist/components/Accordion/Accordion.styles.d.ts +2 -2
  5. package/dist/components/Alert/Alert.js +16 -14
  6. package/dist/components/Alert/Alert.styles.d.ts +2 -2
  7. package/dist/components/AlertDialog/AlertDialog.styles.d.ts +2 -2
  8. package/dist/components/AnimatedGradientText/AnimatedGradientText.styles.d.ts +2 -2
  9. package/dist/components/AnimatedGradientText/AnimatedGradientText2.js +1 -1
  10. package/dist/components/AppLayout/AppLayout.js +1 -1
  11. package/dist/components/AppLayout/AppLayout.styles.d.ts +26 -26
  12. package/dist/components/Autocomplete/Autocomplete.js +2 -2
  13. package/dist/components/Autocomplete/Autocomplete.styles.d.ts +64 -64
  14. package/dist/components/Avatar/Avatar.styles.d.ts +4 -4
  15. package/dist/components/Badge/Badge.js +1 -1
  16. package/dist/components/Badge/Badge.styles.d.ts +2 -2
  17. package/dist/components/BlurSwitch/BlurSwitch.styles.d.ts +2 -2
  18. package/dist/components/BlurSwitch/BlurSwitch.styles.js +4 -3
  19. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  20. package/dist/components/Breadcrumb/Breadcrumb.styles.d.ts +29 -29
  21. package/dist/components/Button/Button.js +2 -2
  22. package/dist/components/Button/Button.styles.d.ts +2 -2
  23. package/dist/components/Card/Card.styles.d.ts +2 -2
  24. package/dist/components/Checkbox/Checkbox.styles.d.ts +14 -14
  25. package/dist/components/Checkbox/Checkbox.types.d.ts +4 -1
  26. package/dist/components/CheckboxGroup/CheckboxGroup.styles.d.ts +8 -8
  27. package/dist/components/Chip/Chip.js +1 -1
  28. package/dist/components/Chip/Chip.styles.d.ts +2 -2
  29. package/dist/components/Collapsible/Collapsible.js +2 -2
  30. package/dist/components/Collapsible/Collapsible.styles.d.ts +20 -20
  31. package/dist/components/Combobox/Combobox.js +4 -4
  32. package/dist/components/Combobox/Combobox.styles.d.ts +16 -16
  33. package/dist/components/Command/Command.js +2 -2
  34. package/dist/components/Command/Command.styles.d.ts +2 -2
  35. package/dist/components/ContextMenu/ContextMenu.styles.d.ts +2 -2
  36. package/dist/components/CopyButton/CopyButton.js +1 -1
  37. package/dist/components/CopyButton/CopyButton.styles.d.ts +2 -2
  38. package/dist/components/CopyInput/CopyInput.js +1 -1
  39. package/dist/components/CopyInput/CopyInput.styles.d.ts +2 -2
  40. package/dist/components/DataTable/DataTable.d.ts +1 -1
  41. package/dist/components/DataTable/DataTable.js +396 -328
  42. package/dist/components/DataTable/DataTable.styles.d.ts +26 -5
  43. package/dist/components/DataTable/DataTable.styles.js +17 -7
  44. package/dist/components/DataTable/DataTable.types.d.ts +10 -0
  45. package/dist/components/DataTable/DataTable.utils.js +1 -1
  46. package/dist/components/DescriptionList/DescriptionList.js +1 -1
  47. package/dist/components/DescriptionList/DescriptionList.styles.d.ts +14 -14
  48. package/dist/components/Dialog/Dialog.js +1 -1
  49. package/dist/components/Dialog/Dialog.styles.d.ts +2 -2
  50. package/dist/components/Drawer/Drawer.styles.d.ts +2 -2
  51. package/dist/components/Drawer/Drawer.styles.js +2 -2
  52. package/dist/components/Drawer/Drawer2.js +4 -4
  53. package/dist/components/Dropdown/Dropdown.js +1 -1
  54. package/dist/components/Dropdown/Dropdown.styles.d.ts +2 -2
  55. package/dist/components/Field/Field.styles.d.ts +29 -29
  56. package/dist/components/Fieldset/Fieldset.styles.d.ts +11 -11
  57. package/dist/components/Footer/Footer.js +1 -1
  58. package/dist/components/Footer/Footer.styles.d.ts +2 -2
  59. package/dist/components/Header/Header.js +1 -1
  60. package/dist/components/Header/Header.styles.d.ts +2 -2
  61. package/dist/components/Header/Header.styles.js +1 -1
  62. package/dist/components/HoldToDelete/HoldToDelete.css +1 -1
  63. package/dist/components/HoldToDelete/HoldToDelete.styles.d.ts +48 -21
  64. package/dist/components/HoldToDelete/HoldToDelete.styles.js +32 -17
  65. package/dist/components/HoldToDelete/HoldToDelete2.js +97 -85
  66. package/dist/components/IconTile/IconTile.styles.d.ts +8 -8
  67. package/dist/components/Input/Input.js +1 -1
  68. package/dist/components/Input/Input.styles.d.ts +26 -26
  69. package/dist/components/Kbd/Kbd.styles.d.ts +1 -1
  70. package/dist/components/Main/Main.styles.d.ts +1 -1
  71. package/dist/components/Meter/Meter.styles.d.ts +20 -20
  72. package/dist/components/NavigationMenu/NavigationMenu.js +1 -1
  73. package/dist/components/NavigationMenu/NavigationMenu.styles.d.ts +2 -2
  74. package/dist/components/NumberInput/NumberInput.js +1 -1
  75. package/dist/components/NumberInput/NumberInput.styles.d.ts +32 -32
  76. package/dist/components/OtpField/OtpField.styles.d.ts +14 -14
  77. package/dist/components/PageProgress/PageProgress.styles.d.ts +14 -14
  78. package/dist/components/PageProgress/PageProgress.styles.js +1 -1
  79. package/dist/components/Pagination/Pagination.js +1 -1
  80. package/dist/components/Pagination/Pagination.styles.d.ts +2 -2
  81. package/dist/components/Popover/Popover.js +1 -1
  82. package/dist/components/Popover/Popover.styles.d.ts +26 -26
  83. package/dist/components/Popover/Popover.styles.js +1 -1
  84. package/dist/components/Progress/Progress.styles.d.ts +20 -20
  85. package/dist/components/Radio/Radio.styles.d.ts +19 -19
  86. package/dist/components/ResponsiveOverlay/ResponsiveOverlay.d.ts +1 -1
  87. package/dist/components/ResponsiveOverlay/ResponsiveOverlay.js +193 -157
  88. package/dist/components/ResponsiveOverlay/ResponsiveOverlay.styles.d.ts +11 -2
  89. package/dist/components/ResponsiveOverlay/ResponsiveOverlay.styles.js +2 -1
  90. package/dist/components/ResponsiveOverlay/ResponsiveOverlay.types.d.ts +9 -2
  91. package/dist/components/ResponsiveOverlay/index.d.ts +1 -1
  92. package/dist/components/ScrollArea/ScrollArea.styles.d.ts +23 -23
  93. package/dist/components/ScrollArea/ScrollArea2.js +1 -1
  94. package/dist/components/Select/Select.js +1 -1
  95. package/dist/components/Select/Select.styles.d.ts +38 -38
  96. package/dist/components/Separator/Separator.styles.d.ts +1 -1
  97. package/dist/components/Sidebar/Sidebar.styles.d.ts +15 -15
  98. package/dist/components/Sidebar/Sidebar2.js +19 -19
  99. package/dist/components/SidebarRail/SidebarRail.js +1 -1
  100. package/dist/components/SidebarRail/SidebarRail.styles.d.ts +17 -17
  101. package/dist/components/Skeleton/Skeleton.styles.d.ts +11 -11
  102. package/dist/components/Slider/Slider.styles.d.ts +20 -20
  103. package/dist/components/Spinner/Spinner.styles.d.ts +2 -2
  104. package/dist/components/StatusDisplay/StatusDisplay.styles.d.ts +2 -2
  105. package/dist/components/Switch/Switch.styles.d.ts +11 -11
  106. package/dist/components/TabBar/TabBar.js +1 -1
  107. package/dist/components/TabBar/TabBar.styles.d.ts +2 -2
  108. package/dist/components/Table/Table.js +1 -1
  109. package/dist/components/Table/Table.styles.d.ts +8 -8
  110. package/dist/components/Table/Table.styles.js +11 -11
  111. package/dist/components/Tabs/Tabs.js +4 -4
  112. package/dist/components/Tabs/Tabs.styles.d.ts +2 -2
  113. package/dist/components/Textarea/Textarea.js +2 -2
  114. package/dist/components/Textarea/Textarea.styles.d.ts +39 -39
  115. package/dist/components/Toast/Toast.css +1 -1
  116. package/dist/components/Toast/Toast.styles.d.ts +2 -2
  117. package/dist/components/Toast/Toast.styles.js +1 -1
  118. package/dist/components/Toast/Toast2.js +16 -14
  119. package/dist/components/Toggle/Toggle.js +2 -2
  120. package/dist/components/Toggle/Toggle.styles.d.ts +6 -6
  121. package/dist/components/Tooltip/Tooltip.js +1 -1
  122. package/dist/components/Tooltip/Tooltip.styles.d.ts +17 -17
  123. package/dist/components/Tooltip/Tooltip.styles.js +1 -1
  124. package/dist/components/Typewriter/Typewriter.styles.d.ts +14 -14
  125. package/dist/components/Typewriter/Typewriter2.js +4 -4
  126. package/dist/components/VirtualList/VirtualList.styles.d.ts +14 -14
  127. package/dist/context/Auth/Auth.types.d.ts +3 -1
  128. package/dist/context/Theme/Theme.js +1 -1
  129. package/dist/hooks/useCommandShortcut/useCommandShortcut.js +1 -1
  130. package/dist/hooks/useFilter/useFilter.js +1 -1
  131. package/dist/hooks/useMediaQuery/useMediaQuery.js +1 -1
  132. package/dist/hooks/useVirtualizer/useVirtualizer.js +2 -2
  133. package/dist/internal/hooks/useControllableState/useControllableState.types.d.ts +1 -1
  134. package/dist/internal/hooks/useFormState/useFormState.js +81 -81
  135. package/dist/internal/styles/addonStyles.d.ts +28 -28
  136. package/dist/internal/styles/dialogSurfaceStyles.d.ts +1 -1
  137. package/dist/internal/styles/dialogSurfaceStyles.js +2 -2
  138. package/dist/internal/styles/menuSurfaceStyles.d.ts +1 -1
  139. package/dist/internal/styles/menuSurfaceStyles.js +1 -1
  140. package/dist/internal/styles/stackedLayerStyles.d.ts +1 -0
  141. package/dist/internal/styles/stackedLayerStyles.js +4 -0
  142. package/dist/internal/styles/tableCellStyles.d.ts +5 -0
  143. package/dist/internal/styles/tableCellStyles.js +7 -0
  144. package/dist/rest/executors/restExecutor.js +1 -1
  145. package/dist/rich-editor/RichEditor.styles.d.ts +36 -36
  146. package/dist/rich-editor/RichEditor2.js +3 -3
  147. package/dist/rich-editor/useOxRichEditor.js +1 -1
  148. package/dist/tokens/shared.css +5 -0
  149. package/package.json +17 -11
@@ -10,7 +10,9 @@ interface OxAuthProviderProps {
10
10
  revalidateOnFocus?: boolean;
11
11
  }
12
12
  interface OxAuthContextValue {
13
- /** Last refresh failure — session state unknown, NOT "logged out". */
13
+ /**
14
+ * Last refresh failure — session state unknown, NOT "logged out".
15
+ */
14
16
  error: unknown;
15
17
  isAuthenticated: boolean;
16
18
  isLoading: boolean;
@@ -19,7 +19,7 @@ function te(e, t, n) {
19
19
  return x(i, n) ? i : t;
20
20
  }
21
21
  function S(e) {
22
- let l = m(40), { children: u, defaultTheme: b, disableTransitionOnChange: S, enableColorScheme: C, enableSystem: w, forcedTheme: T, storageKey: E, themes: D } = e, O = S === void 0 ? !0 : S, k = C === void 0 ? !0 : C, A = w === void 0 ? !0 : w, j = E === void 0 ? r : E, M = D === void 0 ? i : D, N = b ?? (A ? "system" : "light"), P;
22
+ let l = m(40), { children: u, defaultTheme: b, disableTransitionOnChange: S, enableColorScheme: C, enableSystem: w, forcedTheme: T, storageKey: E, themes: D } = e, O = S === void 0 || S, k = C === void 0 || C, A = w === void 0 || w, j = E === void 0 ? r : E, M = D === void 0 ? i : D, N = b ?? (A ? "system" : "light"), P;
23
23
  l[0] !== A || l[1] !== M ? (P = A ? [a, ...M] : M, l[0] = A, l[1] = M, l[2] = P) : P = l[2];
24
24
  let F = P, I;
25
25
  l[3] !== N || l[4] !== j || l[5] !== F ? (I = () => te(j, N, F), l[3] = N, l[4] = j, l[5] = F, l[6] = I) : I = l[6];
@@ -16,7 +16,7 @@ function r(e) {
16
16
  function i(i, a) {
17
17
  let o = e(13), s;
18
18
  o[0] === a ? s = o[1] : (s = a === void 0 ? {} : a, o[0] = a, o[1] = s);
19
- let { enabled: c, ignoreWhileTyping: l, key: u, mod: d } = s, f = c === void 0 ? !0 : c, p = l === void 0 ? !0 : l, m = u === void 0 ? "k" : u, h = d === void 0 ? !0 : d, g = n(i), _;
19
+ let { enabled: c, ignoreWhileTyping: l, key: u, mod: d } = s, f = c === void 0 || c, p = l === void 0 || l, m = u === void 0 ? "k" : u, h = d === void 0 || d, g = n(i), _;
20
20
  o[2] !== f || o[3] !== p || o[4] !== m || o[5] !== h || o[6] !== g ? (_ = () => {
21
21
  if (!f) return;
22
22
  let e = (e) => {
@@ -49,7 +49,7 @@ function o(o) {
49
49
  }, s), X = () => {
50
50
  Y.cancel(), N(!1), J();
51
51
  }, Z = () => {
52
- g && I.current !== m && (I.current = m, C(m));
52
+ !g || I.current === m || (I.current = m, C(m));
53
53
  };
54
54
  return r(() => {
55
55
  K.current || (K.current = !0, u && q.current?.());
@@ -5,7 +5,7 @@ var n = () => typeof globalThis.matchMedia == "function";
5
5
  function r(r, a) {
6
6
  let o = e(9), s;
7
7
  o[0] === a ? s = o[1] : (s = a === void 0 ? {} : a, o[0] = a, o[1] = s);
8
- let { defaultValue: c } = s, l = c === void 0 ? !1 : c, u;
8
+ let { defaultValue: c } = s, l = c !== void 0 && c, u;
9
9
  o[2] === r ? u = o[3] : (u = (e) => {
10
10
  if (!n()) return i;
11
11
  let t = globalThis.matchMedia(r);
@@ -40,7 +40,7 @@ function l(l) {
40
40
  });
41
41
  }, u[5] = k) : k = u[5];
42
42
  let he = k, A;
43
- u[6] === Symbol.for("react.memo_cache_sentinel") ? (A = () => (T.current === null && typeof ResizeObserver < "u" && (T.current = new ResizeObserver((e) => {
43
+ u[6] === Symbol.for("react.memo_cache_sentinel") ? (A = () => (typeof ResizeObserver < "u" && T.current === null && (T.current = new ResizeObserver((e) => {
44
44
  for (let t of e) he(t.target);
45
45
  })), T.current), u[6] = A) : A = u[6];
46
46
  let ge = A, j;
@@ -180,7 +180,7 @@ function l(l) {
180
180
  }, u[44] = b, u[45] = S, u[46] = z, u[47] = y, u[48] = m, u[49] = J, u[50] = H, u[51] = Y) : Y = u[51];
181
181
  let X = Y, Z, Q;
182
182
  u[52] !== S || u[53] !== d || u[54] !== _ || u[55] !== x || u[56] !== H ? (Z = () => {
183
- D.current === void 0 || d === 0 || H - (x + S) <= _ && pe.current !== d && (pe.current = d, D.current());
183
+ d !== 0 && D.current !== void 0 && H - (x + S) <= _ && pe.current !== d && (pe.current = d, D.current());
184
184
  }, Q = [
185
185
  d,
186
186
  H,
@@ -1,5 +1,5 @@
1
1
  export interface UseControllableStateParameters<T> {
2
2
  defaultProp: T;
3
3
  onChange?: (value: T) => void;
4
- prop?: T | undefined;
4
+ prop?: T;
5
5
  }
@@ -1,41 +1,41 @@
1
1
  import { c as e } from "react/compiler-runtime";
2
2
  import { useEffect as t, useRef as n, useState as r } from "react";
3
- import { cloneDeep as i, isEqual as ee } from "es-toolkit";
4
- import { get as te, has as ne, set as a } from "es-toolkit/compat";
3
+ import { cloneDeep as i, isEqual as a } from "es-toolkit";
4
+ import { get as ee, has as te, set as o } from "es-toolkit/compat";
5
5
  //#region src/internal/hooks/useFormState/useFormState.ts
6
- var re = 2e3, ie = (e) => e;
7
- function ae(e) {
6
+ var ne = 2e3, re = (e) => e;
7
+ function ie(e) {
8
8
  let t = {};
9
9
  for (let [n, r] of Object.entries(e)) r !== void 0 && (t[n] = r.message ?? r.type ?? "");
10
10
  return t;
11
11
  }
12
- function oe(oe) {
13
- let o = e(50), { data: s, resolver: c } = oe, l = typeof s == "function", u;
14
- o[0] !== s || o[1] !== l ? (u = () => l ? s() : s, o[0] = s, o[1] = l, o[2] = u) : u = o[2];
15
- let d = u, f;
16
- o[3] === d ? f = o[4] : (f = () => i(d()), o[3] = d, o[4] = f);
17
- let [p, se] = r(f), m;
18
- o[5] === d ? m = o[6] : (m = () => i(d()), o[5] = d, o[6] = m);
19
- let [h, g] = r(m), _;
20
- o[7] === Symbol.for("react.memo_cache_sentinel") ? (_ = {}, o[7] = _) : _ = o[7];
21
- let [v, y] = r(_), [b, ce] = r(!1), [x, le] = r(null), [S, ue] = r(!1), [C, w] = r(!1), T = n(p), de = n(ie), fe = n(c), E = n(void 0), D = n(!1), O = n(!1), k;
22
- o[8] === p ? k = o[9] : (k = () => {
23
- T.current = p;
24
- }, o[8] = p, o[9] = k), t(k);
12
+ function ae(ae) {
13
+ let s = e(50), { data: c, resolver: l } = ae, u = typeof c == "function", d;
14
+ s[0] !== c || s[1] !== u ? (d = () => u ? c() : c, s[0] = c, s[1] = u, s[2] = d) : d = s[2];
15
+ let f = d, p;
16
+ s[3] === f ? p = s[4] : (p = () => i(f()), s[3] = f, s[4] = p);
17
+ let [m, oe] = r(p), h;
18
+ s[5] === f ? h = s[6] : (h = () => i(f()), s[5] = f, s[6] = h);
19
+ let [g, _] = r(h), v;
20
+ s[7] === Symbol.for("react.memo_cache_sentinel") ? (v = {}, s[7] = v) : v = s[7];
21
+ let [y, b] = r(v), [se, ce] = r(!1), [x, le] = r(null), [S, ue] = r(!1), [C, w] = r(!1), T = n(m), de = n(re), fe = n(l), E = n(void 0), D = n(!1), O = n(!1), k;
22
+ s[8] === m ? k = s[9] : (k = () => {
23
+ T.current = m;
24
+ }, s[8] = m, s[9] = k), t(k);
25
25
  let A;
26
- o[10] === c ? A = o[11] : (A = () => {
27
- fe.current = c;
28
- }, o[10] = c, o[11] = A), t(A);
26
+ s[10] === l ? A = s[11] : (A = () => {
27
+ fe.current = l;
28
+ }, s[10] = l, s[11] = A), t(A);
29
29
  let j, M;
30
- o[12] === Symbol.for("react.memo_cache_sentinel") ? (j = () => (O.current = !0, () => {
30
+ s[12] === Symbol.for("react.memo_cache_sentinel") ? (j = () => (O.current = !0, () => {
31
31
  O.current = !1, E.current !== void 0 && clearTimeout(E.current);
32
- }), M = [], o[12] = j, o[13] = M) : (j = o[12], M = o[13]), t(j, M);
32
+ }), M = [], s[12] = j, s[13] = M) : (j = s[12], M = s[13]), t(j, M);
33
33
  let N;
34
- o[14] === Symbol.for("react.memo_cache_sentinel") ? (N = function(e) {
35
- T.current = e, se(e);
36
- }, o[14] = N) : N = o[14];
34
+ s[14] === Symbol.for("react.memo_cache_sentinel") ? (N = function(e) {
35
+ T.current = e, oe(e);
36
+ }, s[14] = N) : N = s[14];
37
37
  let P = N, F;
38
- o[15] === Symbol.for("react.memo_cache_sentinel") ? (F = function(...e) {
38
+ s[15] === Symbol.for("react.memo_cache_sentinel") ? (F = function(...e) {
39
39
  let t = e;
40
40
  if (t.length === 1) {
41
41
  let [e] = t;
@@ -46,113 +46,113 @@ function oe(oe) {
46
46
  P(e);
47
47
  return;
48
48
  }
49
- let [n, r] = t, ee = a(i(T.current), n, r);
50
- P(ee), y((e) => {
49
+ let [n, r] = t, a = o(i(T.current), n, r);
50
+ P(a), b((e) => {
51
51
  if (!Object.prototype.hasOwnProperty.call(e, n)) return e;
52
52
  let t = { ...e };
53
53
  return delete t[n], t;
54
54
  });
55
- }, o[15] = F) : F = o[15];
55
+ }, s[15] = F) : F = s[15];
56
56
  let pe = F, I;
57
- o[16] === Symbol.for("react.memo_cache_sentinel") ? (I = function(e, t) {
58
- y((n) => typeof e == "string" ? {
57
+ s[16] === Symbol.for("react.memo_cache_sentinel") ? (I = function(e, t) {
58
+ b((n) => typeof e == "string" ? {
59
59
  ...n,
60
60
  [e]: t ?? ""
61
61
  } : {
62
62
  ...n,
63
63
  ...e
64
64
  });
65
- }, o[16] = I) : I = o[16];
65
+ }, s[16] = I) : I = s[16];
66
66
  let me = I, L;
67
- o[17] === Symbol.for("react.memo_cache_sentinel") ? (L = function(...e) {
67
+ s[17] === Symbol.for("react.memo_cache_sentinel") ? (L = function(...e) {
68
68
  let t = e;
69
69
  if (t.length === 0) {
70
- y({});
70
+ b({});
71
71
  return;
72
72
  }
73
- y((e) => {
73
+ b((e) => {
74
74
  let n = { ...e };
75
75
  for (let e of t) delete n[e];
76
76
  return n;
77
77
  });
78
- }, o[17] = L) : L = o[17];
78
+ }, s[17] = L) : L = s[17];
79
79
  let he = L, R;
80
- o[18] === l ? R = o[19] : (R = function(e, t) {
81
- if (l) throw Error("useFormState: setDefaults() cannot be called when data was provided as a function");
80
+ s[18] === u ? R = s[19] : (R = function(e, t) {
81
+ if (u) throw Error("useFormState: setDefaults() cannot be called when data was provided as a function");
82
82
  if (D.current = !0, e === void 0) {
83
- g(T.current);
83
+ _(T.current);
84
84
  return;
85
85
  }
86
86
  if (typeof e == "string") {
87
- g((n) => a(i(n), e, t));
87
+ _((n) => o(i(n), e, t));
88
88
  return;
89
89
  }
90
- g((t) => ({
90
+ _((t) => ({
91
91
  ...t,
92
92
  ...e
93
93
  }));
94
- }, o[18] = l, o[19] = R);
94
+ }, s[18] = u, s[19] = R);
95
95
  let z = R, B;
96
- o[20] !== h || o[21] !== l || o[22] !== d ? (B = function(...e) {
97
- let t = e, n = i(l ? d() : h);
96
+ s[20] !== g || s[21] !== u || s[22] !== f ? (B = function(...e) {
97
+ let t = e, n = u ? f() : g, r = i(n);
98
98
  if (t.length === 0) {
99
- l && g(n), P(n);
99
+ u && _(r), P(r);
100
100
  return;
101
101
  }
102
- l && g((e) => {
103
- let r = i(e);
104
- for (let e of t) ne(n, e) && a(r, e, te(n, e));
105
- return r;
102
+ u && _((e) => {
103
+ let n = i(e);
104
+ for (let e of t) te(r, e) && o(n, e, ee(r, e));
105
+ return n;
106
106
  });
107
- let r = i(T.current);
108
- for (let e of t) ne(n, e) && a(r, e, te(n, e));
109
- P(r);
110
- }, o[20] = h, o[21] = l, o[22] = d, o[23] = B) : B = o[23];
107
+ let a = i(T.current);
108
+ for (let e of t) te(r, e) && o(a, e, ee(r, e));
109
+ P(a);
110
+ }, s[20] = g, s[21] = u, s[22] = f, s[23] = B) : B = s[23];
111
111
  let V = B, H;
112
- o[24] === V ? H = o[25] : (H = function(...e) {
112
+ s[24] === V ? H = s[25] : (H = function(...e) {
113
113
  let t = e;
114
114
  V(...t), he(...t);
115
- }, o[24] = V, o[25] = H);
115
+ }, s[24] = V, s[25] = H);
116
116
  let U = H, W;
117
- o[26] === Symbol.for("react.memo_cache_sentinel") ? (W = function(e) {
117
+ s[26] === Symbol.for("react.memo_cache_sentinel") ? (W = function(e) {
118
118
  de.current = e;
119
- }, o[26] = W) : W = o[26];
119
+ }, s[26] = W) : W = s[26];
120
120
  let ge = W, G;
121
- o[27] === Symbol.for("react.memo_cache_sentinel") ? (G = async function() {
121
+ s[27] === Symbol.for("react.memo_cache_sentinel") ? (G = async function() {
122
122
  let e = fe.current;
123
123
  if (!e) return null;
124
124
  let t = (await e(T.current, void 0, {
125
125
  criteriaMode: "firstError",
126
126
  fields: {}
127
127
  })).errors;
128
- if (Object.keys(t).length === 0) return y({}), null;
129
- let n = ae(t);
130
- return y(n), n;
131
- }, o[27] = G) : G = o[27];
128
+ if (Object.keys(t).length === 0) return b({}), null;
129
+ let n = ie(t);
130
+ return b(n), n;
131
+ }, s[27] = G) : G = s[27];
132
132
  let _e = G, K;
133
- o[28] === Symbol.for("react.memo_cache_sentinel") ? (K = function() {
134
- y({}), ue(!0), w(!0), E.current !== void 0 && clearTimeout(E.current), E.current = setTimeout(() => {
133
+ s[28] === Symbol.for("react.memo_cache_sentinel") ? (K = function() {
134
+ b({}), ue(!0), w(!0), E.current !== void 0 && clearTimeout(E.current), E.current = setTimeout(() => {
135
135
  O.current && w(!1);
136
- }, re);
137
- }, o[28] = K) : K = o[28];
136
+ }, ne);
137
+ }, s[28] = K) : K = s[28];
138
138
  let ve = K, q;
139
- o[29] === Symbol.for("react.memo_cache_sentinel") ? (q = function() {
139
+ s[29] === Symbol.for("react.memo_cache_sentinel") ? (q = function() {
140
140
  ue(!1), w(!1), D.current = !1, E.current !== void 0 && (clearTimeout(E.current), E.current = void 0);
141
- }, o[29] = q) : q = o[29];
141
+ }, s[29] = q) : q = s[29];
142
142
  let ye = q, J;
143
- o[30] === Symbol.for("react.memo_cache_sentinel") ? (J = function() {
143
+ s[30] === Symbol.for("react.memo_cache_sentinel") ? (J = function() {
144
144
  ce(!1), le(null);
145
- }, o[30] = J) : J = o[30];
145
+ }, s[30] = J) : J = s[30];
146
146
  let be = J, Y;
147
- o[31] === v ? Y = o[32] : (Y = Object.keys(v), o[31] = v, o[32] = Y);
147
+ s[31] === y ? Y = s[32] : (Y = Object.keys(y), s[31] = y, s[32] = Y);
148
148
  let X = Y.length > 0, Z;
149
- o[33] !== p || o[34] !== h ? (Z = ee(p, h), o[33] = p, o[34] = h, o[35] = Z) : Z = o[35];
149
+ s[33] !== m || s[34] !== g ? (Z = a(m, g), s[33] = m, s[34] = g, s[35] = Z) : Z = s[35];
150
150
  let xe = !Z, Q;
151
- o[36] !== p || o[37] !== v || o[38] !== b || o[39] !== x || o[40] !== C || o[41] !== V || o[42] !== U || o[43] !== z || o[44] !== X || o[45] !== xe || o[46] !== S ? (Q = {
152
- data: p,
153
- errors: v,
151
+ s[36] !== m || s[37] !== y || s[38] !== se || s[39] !== x || s[40] !== C || s[41] !== V || s[42] !== U || s[43] !== z || s[44] !== X || s[45] !== xe || s[46] !== S ? (Q = {
152
+ data: m,
153
+ errors: y,
154
154
  hasErrors: X,
155
- processing: b,
155
+ processing: se,
156
156
  progress: x,
157
157
  wasSuccessful: S,
158
158
  recentlySuccessful: C,
@@ -165,11 +165,11 @@ function oe(oe) {
165
165
  clearErrors: he,
166
166
  transform: ge,
167
167
  validate: _e
168
- }, o[36] = p, o[37] = v, o[38] = b, o[39] = x, o[40] = C, o[41] = V, o[42] = U, o[43] = z, o[44] = X, o[45] = xe, o[46] = S, o[47] = Q) : Q = o[47];
168
+ }, s[36] = m, s[37] = y, s[38] = se, s[39] = x, s[40] = C, s[41] = V, s[42] = U, s[43] = z, s[44] = X, s[45] = xe, s[46] = S, s[47] = Q) : Q = s[47];
169
169
  let Se = Q, $;
170
- return o[48] === Se ? $ = o[49] : ($ = {
170
+ return s[48] === Se ? $ = s[49] : ($ = {
171
171
  form: Se,
172
- setDefaultsState: g,
172
+ setDefaultsState: _,
173
173
  transformRef: de,
174
174
  dataRef: T,
175
175
  isMounted: O,
@@ -179,7 +179,7 @@ function oe(oe) {
179
179
  defaultsCalledInOnSuccessRef: D,
180
180
  resetBeforeSubmit: ye,
181
181
  finishProcessing: be
182
- }, o[48] = Se, o[49] = $), $;
182
+ }, s[48] = Se, s[49] = $), $;
183
183
  }
184
184
  //#endregion
185
- export { re as RECENTLY_SUCCESSFUL_DURATION_MS, oe as useFormState };
185
+ export { ne as RECENTLY_SUCCESSFUL_DURATION_MS, ae as useFormState };
@@ -28,61 +28,61 @@ export declare const createInlineAddonVariants: ({ inlinePadding, surface, }: {
28
28
  surface: string;
29
29
  }) => import('tailwind-variants').TVReturnType<{
30
30
  variant: {
31
- separated: string;
32
- inline: string;
31
+ separated: "has-[>svg:only-child]:min-w-[calc(var(--control-h-md)-2px)] has-[>svg:only-child]:justify-center has-[>svg:only-child]:px-0";
32
+ inline: "";
33
33
  };
34
34
  align: {
35
- 'inline-start': string;
36
- 'inline-end': string;
35
+ 'inline-start': "";
36
+ 'inline-end': "";
37
37
  };
38
38
  }, undefined, undefined, {
39
39
  variant: {
40
- separated: string;
41
- inline: string;
40
+ separated: "has-[>svg:only-child]:min-w-[calc(var(--control-h-md)-2px)] has-[>svg:only-child]:justify-center has-[>svg:only-child]:px-0";
41
+ inline: "";
42
42
  };
43
43
  align: {
44
- 'inline-start': string;
45
- 'inline-end': string;
44
+ 'inline-start': "";
45
+ 'inline-end': "";
46
46
  };
47
- }, undefined, import('tailwind-variants').TVReturnType<{
47
+ }, undefined, import('tailwind-variants').TVReturnTypeLike<{
48
48
  variant: {
49
- separated: string;
50
- inline: string;
49
+ separated: "has-[>svg:only-child]:min-w-[calc(var(--control-h-md)-2px)] has-[>svg:only-child]:justify-center has-[>svg:only-child]:px-0";
50
+ inline: "";
51
51
  };
52
52
  align: {
53
- 'inline-start': string;
54
- 'inline-end': string;
53
+ 'inline-start': "";
54
+ 'inline-end': "";
55
55
  };
56
- }, undefined, undefined, unknown, unknown, undefined>>;
56
+ }, undefined>>;
57
57
  export declare const createBlockAddonVariants: ({ inlineBorder, surface, }: {
58
58
  inlineBorder?: boolean;
59
59
  surface: string;
60
60
  }) => import('tailwind-variants').TVReturnType<{
61
61
  variant: {
62
- separated: string;
63
- inline: string;
62
+ separated: "";
63
+ inline: "";
64
64
  };
65
65
  align: {
66
- 'block-start': string;
67
- 'block-end': string;
66
+ 'block-start': "" | "border-b border-line";
67
+ 'block-end': "" | "border-t border-line";
68
68
  };
69
69
  }, undefined, undefined, {
70
70
  variant: {
71
- separated: string;
72
- inline: string;
71
+ separated: "";
72
+ inline: "";
73
73
  };
74
74
  align: {
75
- 'block-start': string;
76
- 'block-end': string;
75
+ 'block-start': "" | "border-b border-line";
76
+ 'block-end': "" | "border-t border-line";
77
77
  };
78
- }, undefined, import('tailwind-variants').TVReturnType<{
78
+ }, undefined, import('tailwind-variants').TVReturnTypeLike<{
79
79
  variant: {
80
- separated: string;
81
- inline: string;
80
+ separated: "";
81
+ inline: "";
82
82
  };
83
83
  align: {
84
- 'block-start': string;
85
- 'block-end': string;
84
+ 'block-start': "" | "border-b border-line";
85
+ 'block-end': "" | "border-t border-line";
86
86
  };
87
- }, undefined, undefined, unknown, unknown, undefined>>;
87
+ }, undefined>>;
88
88
  export {};
@@ -1,5 +1,5 @@
1
1
  export declare const dialogBackdrop: string[];
2
- export declare const dialogViewport = "fixed inset-0 z-[var(--z-dialog)] flex justify-center";
2
+ export declare const dialogViewport = "fixed inset-0 z-(--z-dialog) flex justify-center";
3
3
  export declare const dialogPanel: string[];
4
4
  export declare const dialogTitle = "break-words text-base font-semibold tracking-tight text-fg";
5
5
  export declare const dialogDescription = "mt-1.5 break-words text-body leading-relaxed text-fg-muted";
@@ -1,10 +1,10 @@
1
1
  //#region src/internal/styles/dialogSurfaceStyles.ts
2
2
  var e = [
3
- "fixed inset-0 z-[var(--z-dialog)] bg-scrim backdrop-blur-xs",
3
+ "fixed inset-0 z-(--z-dialog) bg-scrim backdrop-blur-xs",
4
4
  "transition-[opacity,backdrop-filter] duration-200 ease-out-quint motion-reduce:transition-[opacity]",
5
5
  "ox-starting:opacity-0 ox-starting:backdrop-blur-[0px]",
6
6
  "ox-ending:opacity-0 ox-ending:backdrop-blur-[0px] ox-ending:duration-150"
7
- ], t = "fixed inset-0 z-[var(--z-dialog)] flex justify-center", n = [
7
+ ], t = "fixed inset-0 z-(--z-dialog) flex justify-center", n = [
8
8
  "relative flex w-full max-w-[27rem] flex-col overflow-hidden p-5",
9
9
  "rounded-card border border-line-overlay bg-card shadow-[var(--shadow-dialog)]",
10
10
  "transition-[opacity,transform,translate,scale] duration-240 ease-out-quint motion-reduce:transition-[opacity]",
@@ -1,4 +1,4 @@
1
- export declare const menuPositioner = "z-[var(--z-dropdown)]";
1
+ export declare const menuPositioner = "z-(--z-dropdown)";
2
2
  export declare const menuSurface = "rounded-control border border-line-overlay bg-popover shadow-[var(--shadow-pop)]";
3
3
  export declare const menuPopup: string[];
4
4
  export declare const menuItem: string[];
@@ -1,6 +1,6 @@
1
1
  import { popupMotion as e } from "./popupMotionStyles.js";
2
2
  //#region src/internal/styles/menuSurfaceStyles.ts
3
- var t = "text-3xs font-semibold uppercase tracking-wider text-fg-subtle", n = "z-[var(--z-dropdown)]", r = "rounded-control border border-line-overlay bg-popover shadow-[var(--shadow-pop)]", i = [
3
+ var t = "text-3xs font-semibold uppercase tracking-wider text-fg-subtle", n = "z-(--z-dropdown)", r = "rounded-control border border-line-overlay bg-popover shadow-[var(--shadow-pop)]", i = [
4
4
  "overflow-y-auto p-1.5",
5
5
  r,
6
6
  "max-w-[var(--available-width)] max-h-[var(--available-height)]",
@@ -0,0 +1 @@
1
+ export declare const stackedLayers: string[];
@@ -0,0 +1,4 @@
1
+ //#region src/internal/styles/stackedLayerStyles.ts
2
+ var e = ["relative inline-grid", "[&>*]:[grid-area:1/1]"];
3
+ //#endregion
4
+ export { e as stackedLayers };
@@ -0,0 +1,5 @@
1
+ export declare const tableCellBase = "px-4 align-middle pointer-coarse:px-3.5 pointer-coarse:py-3 pointer-coarse:whitespace-nowrap";
2
+ export declare const tableCellPadding: {
3
+ readonly comfortable: "py-2.75";
4
+ readonly compact: "py-1.5";
5
+ };
@@ -0,0 +1,7 @@
1
+ //#region src/internal/styles/tableCellStyles.ts
2
+ var e = "px-4 align-middle pointer-coarse:px-3.5 pointer-coarse:py-3 pointer-coarse:whitespace-nowrap", t = {
3
+ comfortable: "py-2.75",
4
+ compact: "py-1.5"
5
+ };
6
+ //#endregion
7
+ export { e as tableCellBase, t as tableCellPadding };
@@ -45,7 +45,7 @@ function o(e) {
45
45
  }
46
46
  function s(e) {
47
47
  let t = new URLSearchParams(), n = (e, r) => {
48
- if (!(r == null || r === "")) {
48
+ if (r != null && r !== "") {
49
49
  if (Array.isArray(r)) {
50
50
  r.forEach((t) => n(e, t));
51
51
  return;
@@ -1,18 +1,18 @@
1
1
  import { VariantProps } from '../internal/tv';
2
- export declare const richEditorContentVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, string[], unknown, unknown, undefined>>;
2
+ export declare const richEditorContentVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
3
3
  export type RichEditorContentVariants = VariantProps<typeof richEditorContentVariants>;
4
4
  export declare const richEditorGroupVariants: import('tailwind-variants').TVReturnType<{
5
5
  [key: string]: {
6
- [key: string]: import('tailwind-merge').ClassNameValue | {
7
- base?: import('tailwind-merge').ClassNameValue;
8
- addon?: import('tailwind-merge').ClassNameValue;
6
+ [key: string]: import('tailwind-variants').ClassValue | {
7
+ base?: import('tailwind-variants').ClassValue;
8
+ addon?: import('tailwind-variants').ClassValue;
9
9
  };
10
10
  };
11
11
  } | {
12
12
  [x: string]: {
13
- [x: string]: import('tailwind-merge').ClassNameValue | {
14
- base?: import('tailwind-merge').ClassNameValue;
15
- addon?: import('tailwind-merge').ClassNameValue;
13
+ [x: string]: import('tailwind-variants').ClassValue | {
14
+ base?: import('tailwind-variants').ClassValue;
15
+ addon?: import('tailwind-variants').ClassValue;
16
16
  };
17
17
  };
18
18
  } | {}, {
@@ -20,63 +20,63 @@ export declare const richEditorGroupVariants: import('tailwind-variants').TVRetu
20
20
  addon: string[];
21
21
  }, undefined, {
22
22
  [key: string]: {
23
- [key: string]: import('tailwind-merge').ClassNameValue | {
24
- base?: import('tailwind-merge').ClassNameValue;
25
- addon?: import('tailwind-merge').ClassNameValue;
23
+ [key: string]: import('tailwind-variants').ClassValue | {
24
+ base?: import('tailwind-variants').ClassValue;
25
+ addon?: import('tailwind-variants').ClassValue;
26
26
  };
27
27
  };
28
28
  } | {}, {
29
29
  base: string[];
30
30
  addon: string[];
31
- }, import('tailwind-variants').TVReturnType<unknown, {
31
+ }, import('tailwind-variants').TVReturnTypeLike<unknown, {
32
32
  base: string[];
33
33
  addon: string[];
34
- }, undefined, unknown, unknown, undefined>>;
34
+ }>>;
35
35
  export type RichEditorGroupVariants = VariantProps<typeof richEditorGroupVariants>;
36
36
  export declare const richEditorAddonVariants: import('tailwind-variants').TVReturnType<{
37
37
  variant: {
38
- separated: string;
39
- inline: string;
38
+ separated: "";
39
+ inline: "";
40
40
  };
41
41
  align: {
42
- 'block-start': string;
43
- 'block-end': string;
42
+ 'block-start': "" | "border-b border-line";
43
+ 'block-end': "" | "border-t border-line";
44
44
  };
45
45
  }, undefined, undefined, {
46
46
  variant: {
47
- separated: string;
48
- inline: string;
47
+ separated: "";
48
+ inline: "";
49
49
  };
50
50
  align: {
51
- 'block-start': string;
52
- 'block-end': string;
51
+ 'block-start': "" | "border-b border-line";
52
+ 'block-end': "" | "border-t border-line";
53
53
  };
54
- }, undefined, import('tailwind-variants').TVReturnType<{
54
+ }, undefined, import('tailwind-variants').TVReturnTypeLike<{
55
55
  variant: {
56
- separated: string;
57
- inline: string;
56
+ separated: "";
57
+ inline: "";
58
58
  };
59
59
  align: {
60
- 'block-start': string;
61
- 'block-end': string;
60
+ 'block-start': "" | "border-b border-line";
61
+ 'block-end': "" | "border-t border-line";
62
62
  };
63
- }, undefined, undefined, unknown, unknown, undefined>>;
63
+ }, undefined>>;
64
64
  export declare const richEditorButtonGroupVariants: import('tailwind-variants').TVReturnType<{
65
65
  orientation: {
66
- horizontal: string;
67
- vertical: string;
66
+ horizontal: "";
67
+ vertical: "";
68
68
  };
69
69
  }, undefined, string[], {
70
70
  orientation: {
71
- horizontal: string;
72
- vertical: string;
71
+ horizontal: "";
72
+ vertical: "";
73
73
  };
74
- }, undefined, import('tailwind-variants').TVReturnType<{
74
+ }, undefined, import('tailwind-variants').TVReturnTypeLike<{
75
75
  orientation: {
76
- horizontal: string;
77
- vertical: string;
76
+ horizontal: "";
77
+ vertical: "";
78
78
  };
79
- }, undefined, string[], unknown, unknown, undefined>>;
79
+ }, undefined>>;
80
80
  export type RichEditorButtonGroupVariants = VariantProps<typeof richEditorButtonGroupVariants>;
81
- export declare const richEditorControlVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, string[], unknown, unknown, undefined>>;
82
- export declare const richEditorHeadingSelectVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, string[], unknown, unknown, undefined>>;
81
+ export declare const richEditorControlVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
82
+ export declare const richEditorHeadingSelectVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;