@noxickon/onyx 6.6.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 (153) 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 +737 -531
  42. package/dist/components/DataTable/DataTable.styles.d.ts +53 -5
  43. package/dist/components/DataTable/DataTable.styles.js +24 -7
  44. package/dist/components/DataTable/DataTable.types.d.ts +13 -1
  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 +2 -2
  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.d.ts +1 -1
  109. package/dist/components/Table/Table.js +69 -63
  110. package/dist/components/Table/Table.styles.d.ts +8 -8
  111. package/dist/components/Table/Table.styles.js +11 -11
  112. package/dist/components/Table/Table.types.d.ts +7 -1
  113. package/dist/components/Tabs/Tabs.js +4 -4
  114. package/dist/components/Tabs/Tabs.styles.d.ts +2 -2
  115. package/dist/components/Textarea/Textarea.js +2 -2
  116. package/dist/components/Textarea/Textarea.styles.d.ts +39 -39
  117. package/dist/components/Toast/Toast.css +1 -1
  118. package/dist/components/Toast/Toast.styles.d.ts +2 -2
  119. package/dist/components/Toast/Toast.styles.js +1 -1
  120. package/dist/components/Toast/Toast2.js +16 -14
  121. package/dist/components/Toggle/Toggle.js +2 -2
  122. package/dist/components/Toggle/Toggle.styles.d.ts +6 -6
  123. package/dist/components/Tooltip/Tooltip.js +1 -1
  124. package/dist/components/Tooltip/Tooltip.styles.d.ts +17 -17
  125. package/dist/components/Tooltip/Tooltip.styles.js +1 -1
  126. package/dist/components/Typewriter/Typewriter.styles.d.ts +14 -14
  127. package/dist/components/Typewriter/Typewriter2.js +4 -4
  128. package/dist/components/VirtualList/VirtualList.styles.d.ts +14 -14
  129. package/dist/context/Auth/Auth.types.d.ts +3 -1
  130. package/dist/context/Theme/Theme.js +1 -1
  131. package/dist/hooks/useCommandShortcut/useCommandShortcut.js +1 -1
  132. package/dist/hooks/useFilter/useFilter.js +1 -1
  133. package/dist/hooks/useMediaQuery/useMediaQuery.js +1 -1
  134. package/dist/hooks/useVirtualizer/useVirtualizer.js +2 -2
  135. package/dist/hooks.js +3 -3
  136. package/dist/index.js +24 -24
  137. package/dist/internal/hooks/useControllableState/useControllableState.types.d.ts +1 -1
  138. package/dist/internal/hooks/useFormState/useFormState.js +81 -81
  139. package/dist/internal/styles/addonStyles.d.ts +28 -28
  140. package/dist/internal/styles/dialogSurfaceStyles.d.ts +1 -1
  141. package/dist/internal/styles/dialogSurfaceStyles.js +2 -2
  142. package/dist/internal/styles/menuSurfaceStyles.d.ts +1 -1
  143. package/dist/internal/styles/menuSurfaceStyles.js +1 -1
  144. package/dist/internal/styles/stackedLayerStyles.d.ts +1 -0
  145. package/dist/internal/styles/stackedLayerStyles.js +4 -0
  146. package/dist/internal/styles/tableCellStyles.d.ts +5 -0
  147. package/dist/internal/styles/tableCellStyles.js +7 -0
  148. package/dist/rest/executors/restExecutor.js +1 -1
  149. package/dist/rich-editor/RichEditor.styles.d.ts +36 -36
  150. package/dist/rich-editor/RichEditor2.js +3 -3
  151. package/dist/rich-editor/useOxRichEditor.js +1 -1
  152. package/dist/tokens/shared.css +5 -0
  153. package/package.json +17 -11
@@ -29,86 +29,92 @@ function y() {
29
29
  }, e[4] = i, e[5] = p), p;
30
30
  }
31
31
  function b(e) {
32
- let t = a(54), n, o, s, p, m, h, g, _, v, b, x, S, C, w, T;
33
- t[0] === e ? (n = t[1], o = t[2], s = t[3], p = t[4], m = t[5], h = t[6], g = t[7], _ = t[8], v = t[9], b = t[10], x = t[11], S = t[12], C = t[13], w = t[14], T = t[15]) : ({children: n, className: o, defaultExpandedRows: s, defaultSelectedRows: p, density: _, dividers: v, hover: b, onSelectedChange: m, selectable: x, selectedRows: g, stickyHeader: S, stripe: C, unwrapped: w, wrapperClassName: T, ...h} = e, t[0] = e, t[1] = n, t[2] = o, t[3] = s, t[4] = p, t[5] = m, t[6] = h, t[7] = g, t[8] = _, t[9] = v, t[10] = b, t[11] = x, t[12] = S, t[13] = C, t[14] = w, t[15] = T);
34
- let E = _ === void 0 ? "comfortable" : _, D = v === void 0 ? "rows" : v, O = b === void 0 ? !0 : b, k = x === void 0 ? !1 : x, A = S === void 0 ? !0 : S, j = C === void 0 ? !1 : C, ee = w === void 0 ? !1 : w, M = c(), te = i({ density: E }), N;
35
- t[16] === p ? N = t[17] : (N = p ?? /* @__PURE__ */ new Set(), t[16] = p, t[17] = N);
36
- let P;
37
- t[18] !== m || t[19] !== g || t[20] !== N ? (P = {
38
- prop: g,
39
- defaultProp: N,
40
- onChange: m
41
- }, t[18] = m, t[19] = g, t[20] = N, t[21] = P) : P = t[21];
42
- let [F, I] = r(P), L;
43
- t[22] === s ? L = t[23] : (L = () => s ?? /* @__PURE__ */ new Set(), t[22] = s, t[23] = L);
44
- let [R, ne] = u(L), { ids: z, register: B } = y(), [V, re] = u(0), H = l(0), U;
45
- t[24] === Symbol.for("react.memo_cache_sentinel") ? (U = () => (H.current += 1, re(H.current), () => {
46
- --H.current, re(H.current);
47
- }), t[24] = U) : U = t[24];
48
- let ie = U, W;
49
- t[25] === I ? W = t[26] : (W = (e) => {
50
- I((t) => {
32
+ let t = a(63), n, o, s, p, m, h, g, _, v, b, x, S, C, w, T, E, D, O;
33
+ t[0] === e ? (n = t[1], o = t[2], s = t[3], p = t[4], m = t[5], h = t[6], g = t[7], _ = t[8], v = t[9], b = t[10], x = t[11], S = t[12], C = t[13], w = t[14], T = t[15], E = t[16], D = t[17], O = t[18]) : ({children: n, className: o, defaultExpandedRows: s, defaultSelectedRows: p, density: x, dividers: S, expandedRows: m, hover: C, onExpandedChange: h, onSelectedChange: g, selectable: w, selectableRowIds: v, selectedRows: b, stickyHeader: T, stripe: E, unwrapped: D, wrapperClassName: O, ..._} = e, t[0] = e, t[1] = n, t[2] = o, t[3] = s, t[4] = p, t[5] = m, t[6] = h, t[7] = g, t[8] = _, t[9] = v, t[10] = b, t[11] = x, t[12] = S, t[13] = C, t[14] = w, t[15] = T, t[16] = E, t[17] = D, t[18] = O);
34
+ let k = x === void 0 ? "comfortable" : x, A = S === void 0 ? "rows" : S, j = C === void 0 || C, M = w !== void 0 && w, N = T === void 0 || T, ee = E !== void 0 && E, te = D !== void 0 && D, ne = c(), re = i({ density: k }), P;
35
+ t[19] === p ? P = t[20] : (P = p ?? /* @__PURE__ */ new Set(), t[19] = p, t[20] = P);
36
+ let F;
37
+ t[21] !== g || t[22] !== b || t[23] !== P ? (F = {
38
+ prop: b,
39
+ defaultProp: P,
40
+ onChange: g
41
+ }, t[21] = g, t[22] = b, t[23] = P, t[24] = F) : F = t[24];
42
+ let [I, L] = r(F), R;
43
+ t[25] === s ? R = t[26] : (R = s ?? /* @__PURE__ */ new Set(), t[25] = s, t[26] = R);
44
+ let z;
45
+ t[27] !== m || t[28] !== h || t[29] !== R ? (z = {
46
+ prop: m,
47
+ defaultProp: R,
48
+ onChange: h
49
+ }, t[27] = m, t[28] = h, t[29] = R, t[30] = z) : z = t[30];
50
+ let [B, ie] = r(z), { ids: ae, register: oe } = y(), V = v ?? ae, [se, ce] = u(0), H = l(0), U;
51
+ t[31] === Symbol.for("react.memo_cache_sentinel") ? (U = () => (H.current += 1, ce(H.current), () => {
52
+ --H.current, ce(H.current);
53
+ }), t[31] = U) : U = t[31];
54
+ let le = U, W;
55
+ t[32] === L ? W = t[33] : (W = (e) => {
56
+ L((t) => {
51
57
  let n = new Set(t);
52
58
  return n.has(e) ? n.delete(e) : n.add(e), n;
53
59
  });
54
- }, t[25] = I, t[26] = W);
60
+ }, t[32] = L, t[33] = W);
55
61
  let G = W, K = "none";
56
- if (z.length > 0) {
57
- let e = z.filter((e) => F.has(e)).length;
58
- e > 0 && (K = e === z.length ? "all" : "some");
62
+ if (V.length > 0) {
63
+ let e = V.filter((e) => I.has(e)).length;
64
+ e > 0 && (K = e === V.length ? "all" : "some");
59
65
  }
60
66
  let q;
61
- t[27] !== z || t[28] !== I ? (q = () => {
62
- I((e) => {
63
- let t = new Set(e), n = z.every((e) => t.has(e));
64
- for (let e of z) n ? t.delete(e) : t.add(e);
67
+ t[34] !== V || t[35] !== L ? (q = () => {
68
+ L((e) => {
69
+ let t = new Set(e), n = V.every((e) => t.has(e));
70
+ for (let e of V) n ? t.delete(e) : t.add(e);
65
71
  return t;
66
72
  });
67
- }, t[27] = z, t[28] = I, t[29] = q) : q = t[29];
68
- let J = q, Y;
69
- t[30] === Symbol.for("react.memo_cache_sentinel") ? (Y = (e) => {
70
- ne((t) => {
73
+ }, t[34] = V, t[35] = L, t[36] = q) : q = t[36];
74
+ let ue = q, J;
75
+ t[37] === ie ? J = t[38] : (J = (e) => {
76
+ ie((t) => {
71
77
  let n = new Set(t);
72
78
  return n.has(e) ? n.delete(e) : n.add(e), n;
73
79
  });
74
- }, t[30] = Y) : Y = t[30];
75
- let ae = Y, X;
76
- t[31] === F ? X = t[32] : (X = (e) => F.has(e), t[31] = F, t[32] = X);
77
- let oe = X, Z;
78
- t[33] === R ? Z = t[34] : (Z = (e) => R.has(e), t[33] = R, t[34] = Z);
79
- let se = Z, Q;
80
- t[35] !== M || t[36] !== V || t[37] !== E || t[38] !== D || t[39] !== O || t[40] !== se || t[41] !== oe || t[42] !== B || t[43] !== k || t[44] !== K || t[45] !== A || t[46] !== j || t[47] !== J || t[48] !== G ? (Q = {
81
- baseId: M,
82
- columnCount: V,
83
- density: E,
84
- dividers: D,
85
- hover: O,
86
- isRowExpanded: se,
87
- isRowSelected: oe,
88
- registerColumn: ie,
89
- registerSelectableRow: B,
90
- selectable: k,
80
+ }, t[37] = ie, t[38] = J);
81
+ let de = J, Y;
82
+ t[39] === I ? Y = t[40] : (Y = (e) => I.has(e), t[39] = I, t[40] = Y);
83
+ let fe = Y, X;
84
+ t[41] === B ? X = t[42] : (X = (e) => B.has(e), t[41] = B, t[42] = X);
85
+ let Z = X, Q;
86
+ t[43] !== ne || t[44] !== se || t[45] !== k || t[46] !== A || t[47] !== j || t[48] !== Z || t[49] !== fe || t[50] !== oe || t[51] !== M || t[52] !== K || t[53] !== N || t[54] !== ee || t[55] !== ue || t[56] !== de || t[57] !== G ? (Q = {
87
+ baseId: ne,
88
+ columnCount: se,
89
+ density: k,
90
+ dividers: A,
91
+ hover: j,
92
+ isRowExpanded: Z,
93
+ isRowSelected: fe,
94
+ registerColumn: le,
95
+ registerSelectableRow: oe,
96
+ selectable: M,
91
97
  selectionState: K,
92
- stickyHeader: A,
93
- stripe: j,
94
- toggleAll: J,
95
- toggleExpanded: ae,
98
+ stickyHeader: N,
99
+ stripe: ee,
100
+ toggleAll: ue,
101
+ toggleExpanded: de,
96
102
  toggleSelected: G
97
- }, t[35] = M, t[36] = V, t[37] = E, t[38] = D, t[39] = O, t[40] = se, t[41] = oe, t[42] = B, t[43] = k, t[44] = K, t[45] = A, t[46] = j, t[47] = J, t[48] = G, t[49] = Q) : Q = t[49];
98
- let ce = Q, le = /* @__PURE__ */ d("table", {
99
- ...h,
100
- className: te.table({ class: o }),
103
+ }, t[43] = ne, t[44] = se, t[45] = k, t[46] = A, t[47] = j, t[48] = Z, t[49] = fe, t[50] = oe, t[51] = M, t[52] = K, t[53] = N, t[54] = ee, t[55] = ue, t[56] = de, t[57] = G, t[58] = Q) : Q = t[58];
104
+ let pe = Q, me = /* @__PURE__ */ d("table", {
105
+ ..._,
106
+ className: re.table({ class: o }),
101
107
  "data-ox-slot": "table",
102
108
  children: n
103
- }), ue = f, de = ee ? le : /* @__PURE__ */ d("div", {
104
- className: te.wrapper({ class: T }),
109
+ }), he = f, ge = te ? me : /* @__PURE__ */ d("div", {
110
+ className: re.wrapper({ class: O }),
105
111
  "data-ox-slot": "table-wrapper",
106
- children: le
112
+ children: me
107
113
  }), $;
108
- return t[50] !== ue || t[51] !== ce || t[52] !== de ? ($ = /* @__PURE__ */ d(ue, {
109
- value: ce,
110
- children: de
111
- }), t[50] = ue, t[51] = ce, t[52] = de, t[53] = $) : $ = t[53], $;
114
+ return t[59] !== he || t[60] !== pe || t[61] !== ge ? ($ = /* @__PURE__ */ d(he, {
115
+ value: pe,
116
+ children: ge
117
+ }), t[59] = he, t[60] = pe, t[61] = ge, t[62] = $) : $ = t[62], $;
112
118
  }
113
119
  function x(e) {
114
120
  let t = a(19), n, r, o;
@@ -3,12 +3,12 @@ export declare const tableVariants: import('tailwind-variants').TVReturnType<{
3
3
  density: {
4
4
  comfortable: {
5
5
  head: string;
6
- cell: string;
6
+ cell: "py-2.75";
7
7
  expandedInner: string;
8
8
  };
9
9
  compact: {
10
10
  head: string;
11
- cell: string;
11
+ cell: "py-1.5";
12
12
  expandedInner: string;
13
13
  };
14
14
  };
@@ -91,12 +91,12 @@ export declare const tableVariants: import('tailwind-variants').TVReturnType<{
91
91
  density: {
92
92
  comfortable: {
93
93
  head: string;
94
- cell: string;
94
+ cell: "py-2.75";
95
95
  expandedInner: string;
96
96
  };
97
97
  compact: {
98
98
  head: string;
99
- cell: string;
99
+ cell: "py-1.5";
100
100
  expandedInner: string;
101
101
  };
102
102
  };
@@ -175,16 +175,16 @@ export declare const tableVariants: import('tailwind-variants').TVReturnType<{
175
175
  expandedClip: string[];
176
176
  expandedContent: string;
177
177
  expandedInner: string;
178
- }, import('tailwind-variants').TVReturnType<{
178
+ }, import('tailwind-variants').TVReturnTypeLike<{
179
179
  density: {
180
180
  comfortable: {
181
181
  head: string;
182
- cell: string;
182
+ cell: "py-2.75";
183
183
  expandedInner: string;
184
184
  };
185
185
  compact: {
186
186
  head: string;
187
- cell: string;
187
+ cell: "py-1.5";
188
188
  expandedInner: string;
189
189
  };
190
190
  };
@@ -263,5 +263,5 @@ export declare const tableVariants: import('tailwind-variants').TVReturnType<{
263
263
  expandedClip: string[];
264
264
  expandedContent: string;
265
265
  expandedInner: string;
266
- }, undefined, unknown, unknown, undefined>>;
266
+ }>>;
267
267
  export type TableVariants = VariantProps<typeof tableVariants>;
@@ -1,6 +1,6 @@
1
1
  import { tv as e } from "../../internal/tv.js";
2
- //#region src/components/Table/Table.styles.ts
3
- var t = "bg-[color-mix(in_oklab,var(--color-primary-500)_16%,var(--card))]", n = e({
2
+ import { tableCellBase as t, tableCellPadding as n } from "../../internal/styles/tableCellStyles.js";
3
+ var r = e({
4
4
  slots: {
5
5
  wrapper: "relative w-full overflow-auto rounded-card border border-line bg-card shadow-[var(--shadow-card)] [-webkit-overflow-scrolling:touch]",
6
6
  table: "w-full border-separate border-spacing-0 text-left align-middle text-body text-fg",
@@ -10,7 +10,7 @@ var t = "bg-[color-mix(in_oklab,var(--color-primary-500)_16%,var(--card))]", n =
10
10
  footer: "",
11
11
  row: "group/row",
12
12
  head: "border-b border-line-strong px-4 text-left align-middle text-xs font-semibold tracking-[0.01em] whitespace-nowrap text-fg-muted pointer-coarse:px-3.5 pointer-coarse:py-2.75",
13
- cell: "px-4 align-middle pointer-coarse:px-3.5 pointer-coarse:py-3 pointer-coarse:whitespace-nowrap",
13
+ cell: t,
14
14
  selectControl: "flex items-center justify-center",
15
15
  expandTrigger: [
16
16
  "inline-flex size-5.5 shrink-0 items-center justify-center rounded-sm pointer-coarse:size-6.5",
@@ -33,12 +33,12 @@ var t = "bg-[color-mix(in_oklab,var(--color-primary-500)_16%,var(--card))]", n =
33
33
  density: {
34
34
  comfortable: {
35
35
  head: "py-2.5",
36
- cell: "py-2.75",
36
+ cell: n.comfortable,
37
37
  expandedInner: "px-11 py-4.5"
38
38
  },
39
39
  compact: {
40
40
  head: "py-1.75",
41
- cell: "py-1.5",
41
+ cell: n.compact,
42
42
  expandedInner: "px-11 py-3.5"
43
43
  }
44
44
  },
@@ -57,8 +57,8 @@ var t = "bg-[color-mix(in_oklab,var(--color-primary-500)_16%,var(--card))]", n =
57
57
  },
58
58
  hover: { true: { row: "transition-colors not-data-selected:hover:bg-surface-raised" } },
59
59
  stripe: { true: { row: "not-data-selected:even:bg-fg/3" } },
60
- selected: { true: { row: t } },
61
- stickyHeader: { true: { head: "sticky top-0 z-10 bg-card" } },
60
+ selected: { true: { row: "bg-[color-mix(in_oklab,var(--color-primary-500)_16%,var(--card))]" } },
61
+ stickyHeader: { true: { head: "sticky top-0 z-(--z-table-header) bg-card" } },
62
62
  align: {
63
63
  start: {
64
64
  head: "text-left",
@@ -74,8 +74,8 @@ var t = "bg-[color-mix(in_oklab,var(--color-primary-500)_16%,var(--card))]", n =
74
74
  }
75
75
  },
76
76
  sticky: { left: {
77
- head: "sticky left-0 z-20 border-r border-line-strong bg-card",
78
- cell: `sticky left-0 z-10 border-r border-line-strong bg-card group-hover/row:bg-surface-raised group-data-selected/row:${t}`
77
+ head: "sticky left-0 z-(--z-table-frozen-header) border-r border-line-strong bg-card",
78
+ cell: "sticky left-0 z-(--z-table-frozen-cell) border-r border-line-strong bg-card group-hover/row:bg-surface-raised group-data-selected/row:bg-[color-mix(in_oklab,var(--color-primary-500)_16%,var(--card))]"
79
79
  } }
80
80
  },
81
81
  compoundVariants: [{
@@ -85,7 +85,7 @@ var t = "bg-[color-mix(in_oklab,var(--color-primary-500)_16%,var(--card))]", n =
85
85
  }, {
86
86
  stickyHeader: !0,
87
87
  sticky: "left",
88
- class: { head: "z-30" }
88
+ class: { head: "z-(--z-table-frozen-corner)" }
89
89
  }],
90
90
  defaultVariants: {
91
91
  density: "comfortable",
@@ -95,4 +95,4 @@ var t = "bg-[color-mix(in_oklab,var(--color-primary-500)_16%,var(--card))]", n =
95
95
  }
96
96
  });
97
97
  //#endregion
98
- export { n as tableVariants };
98
+ export { r as tableVariants };
@@ -1,4 +1,4 @@
1
- import { ComponentPropsWithoutRef, ReactNode } from 'react';
1
+ import { ComponentPropsWithoutRef, ReactNode, Ref } from 'react';
2
2
  import { TableVariants } from './Table.styles';
3
3
  type TableDensity = NonNullable<TableVariants['density']>;
4
4
  type TableDividers = NonNullable<TableVariants['dividers']>;
@@ -11,9 +11,12 @@ interface OxTableProps extends Omit<ComponentPropsWithoutRef<'table'>, 'classNam
11
11
  defaultSelectedRows?: Set<string>;
12
12
  density?: TableDensity;
13
13
  dividers?: TableDividers;
14
+ expandedRows?: Set<string>;
14
15
  hover?: boolean;
16
+ onExpandedChange?: (ids: Set<string>) => void;
15
17
  onSelectedChange?: (ids: Set<string>) => void;
16
18
  selectable?: boolean;
19
+ selectableRowIds?: string[];
17
20
  selectedRows?: Set<string>;
18
21
  stickyHeader?: boolean;
19
22
  stripe?: boolean;
@@ -23,6 +26,7 @@ interface OxTableProps extends Omit<ComponentPropsWithoutRef<'table'>, 'classNam
23
26
  interface OxTableSectionProps extends Omit<ComponentPropsWithoutRef<'thead'>, 'className'> {
24
27
  children: ReactNode;
25
28
  className?: string;
29
+ ref?: Ref<HTMLTableSectionElement>;
26
30
  }
27
31
  interface OxTableBodyProps extends Omit<ComponentPropsWithoutRef<'tbody'>, 'className'> {
28
32
  children: ReactNode;
@@ -39,6 +43,7 @@ interface OxTableCaptionProps extends Omit<ComponentPropsWithoutRef<'caption'>,
39
43
  interface OxTableRowProps extends Omit<ComponentPropsWithoutRef<'tr'>, 'className'> {
40
44
  children: ReactNode;
41
45
  className?: string;
46
+ ref?: Ref<HTMLTableRowElement>;
42
47
  rowId?: string;
43
48
  selected?: boolean;
44
49
  }
@@ -72,6 +77,7 @@ interface OxTableExpandedRowProps extends Omit<ComponentPropsWithoutRef<'tr'>, '
72
77
  children: ReactNode;
73
78
  className?: string;
74
79
  colSpan?: number;
80
+ ref?: Ref<HTMLTableRowElement>;
75
81
  rowId: string;
76
82
  }
77
83
  export type { OxTableBodyProps, OxTableCaptionProps, OxTableCellProps, OxTableExpandedRowProps, OxTableExpandTriggerProps, OxTableFooterProps, OxTableHeadProps, OxTableProps, OxTableRowProps, OxTableSectionProps, OxTableSelectAllCellProps, OxTableSelectCellProps, TableAlign, TableDensity, TableDividers, TableSticky, };
@@ -7,7 +7,7 @@ import { Tabs as l } from "@base-ui/react/tabs";
7
7
  //#region src/components/Tabs/Tabs.tsx
8
8
  var { Provider: u, useRequiredContext: d } = e("OxTabs"), { Provider: f, useContext: p } = t("OxTabsClones", null);
9
9
  function m(e) {
10
- let t = r(25), { children: i, className: a, defaultValue: o, fullWidth: c, onValueChange: d, orientation: f, render: p, value: m, variant: h } = e, g = c === void 0 ? !1 : c, _ = f === void 0 ? "horizontal" : f, v = h === void 0 ? "pill" : h, y, b, x, S;
10
+ let t = r(25), { children: i, className: a, defaultValue: o, fullWidth: c, onValueChange: d, orientation: f, render: p, value: m, variant: h } = e, g = c !== void 0 && c, _ = f === void 0 ? "horizontal" : f, v = h === void 0 ? "pill" : h, y, b, x, S;
11
11
  if (t[0] !== a || t[1] !== g || t[2] !== _ || t[3] !== v) {
12
12
  let e = n({
13
13
  variant: v,
@@ -39,7 +39,7 @@ function m(e) {
39
39
  function h(e) {
40
40
  let t = r(26), o, c, u, p;
41
41
  t[0] === e ? (o = t[1], c = t[2], u = t[3], p = t[4]) : ({activateOnFocus: p, children: o, className: c, ...u} = e, t[0] = e, t[1] = o, t[2] = c, t[3] = u, t[4] = p);
42
- let m = p === void 0 ? !0 : p, { fullWidth: h, orientation: _, variant: v } = d(), y, b, x, S, C;
42
+ let m = p === void 0 || p, { fullWidth: h, orientation: _, variant: v } = d(), y, b, x, S, C;
43
43
  if (t[5] !== m || t[6] !== o || t[7] !== c || t[8] !== h || t[9] !== _ || t[10] !== u || t[11] !== v) {
44
44
  let e = n({
45
45
  variant: v,
@@ -73,7 +73,7 @@ function h(e) {
73
73
  function g(e) {
74
74
  let t = r(20), i, a, o, c, u;
75
75
  t[0] === e ? (i = t[1], a = t[2], o = t[3], c = t[4], u = t[5]) : ({children: i, className: a, disabled: c, value: u, ...o} = e, t[0] = e, t[1] = i, t[2] = a, t[3] = o, t[4] = c, t[5] = u);
76
- let f = c === void 0 ? !1 : c, { fullWidth: p, variant: m } = d(), h, g, _;
76
+ let f = c !== void 0 && c, { fullWidth: p, variant: m } = d(), h, g, _;
77
77
  if (t[6] !== a || t[7] !== p || t[8] !== o || t[9] !== m) {
78
78
  let e = n({
79
79
  variant: m,
@@ -94,7 +94,7 @@ function g(e) {
94
94
  function _(e) {
95
95
  let t = r(20), i, a, o, c, u;
96
96
  t[0] === e ? (i = t[1], a = t[2], o = t[3], c = t[4], u = t[5]) : ({children: i, className: a, keepMounted: c, value: u, ...o} = e, t[0] = e, t[1] = i, t[2] = a, t[3] = o, t[4] = c, t[5] = u);
97
- let f = c === void 0 ? !1 : c, { fullWidth: p, variant: m } = d(), h, g, _;
97
+ let f = c !== void 0 && c, { fullWidth: p, variant: m } = d(), h, g, _;
98
98
  if (t[6] !== a || t[7] !== p || t[8] !== o || t[9] !== m) {
99
99
  let e = n({
100
100
  variant: m,
@@ -79,7 +79,7 @@ export declare const tabsVariants: import('tailwind-variants').TVReturnType<{
79
79
  clones: string[];
80
80
  clone: string[];
81
81
  fill: string[];
82
- }, import('tailwind-variants').TVReturnType<{
82
+ }, import('tailwind-variants').TVReturnTypeLike<{
83
83
  variant: {
84
84
  underline: {
85
85
  list: string[];
@@ -119,5 +119,5 @@ export declare const tabsVariants: import('tailwind-variants').TVReturnType<{
119
119
  clones: string[];
120
120
  clone: string[];
121
121
  fill: string[];
122
- }, undefined, unknown, unknown, undefined>>;
122
+ }>>;
123
123
  export type TabsVariants = VariantProps<typeof tabsVariants>;
@@ -39,7 +39,7 @@ function _(e, t, n, i, a) {
39
39
  ], o[5] = a, o[6] = i, o[7] = n, o[8] = e, o[9] = t, o[10] = l) : l = o[10], r(c, l);
40
40
  }
41
41
  function v(e) {
42
- let t = s(18), { autoResize: r, className: i, defaultValue: a, disabled: u, maxRows: f, minRows: p, onChange: h, readOnly: g, resize: v, rows: y, value: b, ...x } = e, S = r === void 0 ? !0 : r, C = f === void 0 ? 8 : f, w = p === void 0 ? 3 : p, T = c(null), E = m(), D = v ?? (S ? "none" : "vertical"), O = y ?? w, k = u ?? E?.disabled, A = g ?? E?.readOnly, j = E?.invalid;
42
+ let t = s(18), { autoResize: r, className: i, defaultValue: a, disabled: u, maxRows: f, minRows: p, onChange: h, readOnly: g, resize: v, rows: y, value: b, ...x } = e, S = r === void 0 || r, C = f === void 0 ? 8 : f, w = p === void 0 ? 3 : p, T = c(null), E = m(), D = v ?? (S ? "none" : "vertical"), O = y ?? w, k = u ?? E?.disabled, A = g ?? E?.readOnly, j = E?.invalid;
43
43
  _(T, b ?? a, w, C, S);
44
44
  let M = d, N;
45
45
  t[0] !== i || t[1] !== D ? (N = o({
@@ -73,7 +73,7 @@ function v(e) {
73
73
  function y(e) {
74
74
  let t = s(36), n, r, i, o, d, m, h, g;
75
75
  t[0] === e ? (n = t[1], r = t[2], i = t[3], o = t[4], d = t[5], m = t[6], h = t[7], g = t[8]) : ({children: n, className: r, disabled: m, invalid: h, onMouseDown: i, readOnly: g, render: d, ...o} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = o, t[5] = d, t[6] = m, t[7] = h, t[8] = g);
76
- let _ = m === void 0 ? !1 : m, v = h === void 0 ? !1 : h, y = g === void 0 ? !1 : g, b = a(), x = c(null), S;
76
+ let _ = m !== void 0 && m, v = h !== void 0 && h, y = g !== void 0 && g, b = a(), x = c(null), S;
77
77
  t[9] === _ ? S = t[10] : (S = (e) => {
78
78
  _ || e.target.closest(f) || (e.preventDefault(), x.current?.querySelector(":scope [data-ox-slot=\"textarea\"]")?.focus());
79
79
  }, t[9] = _, t[10] = S);
@@ -1,39 +1,39 @@
1
1
  import { VariantProps } from '../../internal/tv';
2
2
  export declare const textareaVariants: import('tailwind-variants').TVReturnType<{
3
3
  resize: {
4
- none: string;
5
- vertical: string;
6
- horizontal: string;
7
- both: string;
4
+ none: "resize-none";
5
+ vertical: "resize-y";
6
+ horizontal: "resize-x";
7
+ both: "resize";
8
8
  };
9
9
  }, undefined, string[], {
10
10
  resize: {
11
- none: string;
12
- vertical: string;
13
- horizontal: string;
14
- both: string;
11
+ none: "resize-none";
12
+ vertical: "resize-y";
13
+ horizontal: "resize-x";
14
+ both: "resize";
15
15
  };
16
- }, undefined, import('tailwind-variants').TVReturnType<{
16
+ }, undefined, import('tailwind-variants').TVReturnTypeLike<{
17
17
  resize: {
18
- none: string;
19
- vertical: string;
20
- horizontal: string;
21
- both: string;
18
+ none: "resize-none";
19
+ vertical: "resize-y";
20
+ horizontal: "resize-x";
21
+ both: "resize";
22
22
  };
23
- }, undefined, string[], unknown, unknown, undefined>>;
23
+ }, undefined>>;
24
24
  export type TextareaVariants = VariantProps<typeof textareaVariants>;
25
25
  export declare const textareaGroupVariants: import('tailwind-variants').TVReturnType<{
26
26
  [key: string]: {
27
- [key: string]: import('tailwind-merge').ClassNameValue | {
28
- base?: import('tailwind-merge').ClassNameValue;
29
- addon?: import('tailwind-merge').ClassNameValue;
27
+ [key: string]: import('tailwind-variants').ClassValue | {
28
+ base?: import('tailwind-variants').ClassValue;
29
+ addon?: import('tailwind-variants').ClassValue;
30
30
  };
31
31
  };
32
32
  } | {
33
33
  [x: string]: {
34
- [x: string]: import('tailwind-merge').ClassNameValue | {
35
- base?: import('tailwind-merge').ClassNameValue;
36
- addon?: import('tailwind-merge').ClassNameValue;
34
+ [x: string]: import('tailwind-variants').ClassValue | {
35
+ base?: import('tailwind-variants').ClassValue;
36
+ addon?: import('tailwind-variants').ClassValue;
37
37
  };
38
38
  };
39
39
  } | {}, {
@@ -41,44 +41,44 @@ export declare const textareaGroupVariants: import('tailwind-variants').TVReturn
41
41
  addon: string[];
42
42
  }, undefined, {
43
43
  [key: string]: {
44
- [key: string]: import('tailwind-merge').ClassNameValue | {
45
- base?: import('tailwind-merge').ClassNameValue;
46
- addon?: import('tailwind-merge').ClassNameValue;
44
+ [key: string]: import('tailwind-variants').ClassValue | {
45
+ base?: import('tailwind-variants').ClassValue;
46
+ addon?: import('tailwind-variants').ClassValue;
47
47
  };
48
48
  };
49
49
  } | {}, {
50
50
  base: string[];
51
51
  addon: string[];
52
- }, import('tailwind-variants').TVReturnType<unknown, {
52
+ }, import('tailwind-variants').TVReturnTypeLike<unknown, {
53
53
  base: string[];
54
54
  addon: string[];
55
- }, undefined, unknown, unknown, undefined>>;
55
+ }>>;
56
56
  export declare const textareaAddonVariants: import('tailwind-variants').TVReturnType<{
57
57
  variant: {
58
- separated: string;
59
- inline: string;
58
+ separated: "";
59
+ inline: "";
60
60
  };
61
61
  align: {
62
- 'block-start': string;
63
- 'block-end': string;
62
+ 'block-start': "" | "border-b border-line";
63
+ 'block-end': "" | "border-t border-line";
64
64
  };
65
65
  }, undefined, undefined, {
66
66
  variant: {
67
- separated: string;
68
- inline: string;
67
+ separated: "";
68
+ inline: "";
69
69
  };
70
70
  align: {
71
- 'block-start': string;
72
- 'block-end': string;
71
+ 'block-start': "" | "border-b border-line";
72
+ 'block-end': "" | "border-t border-line";
73
73
  };
74
- }, undefined, import('tailwind-variants').TVReturnType<{
74
+ }, undefined, import('tailwind-variants').TVReturnTypeLike<{
75
75
  variant: {
76
- separated: string;
77
- inline: string;
76
+ separated: "";
77
+ inline: "";
78
78
  };
79
79
  align: {
80
- 'block-start': string;
81
- 'block-end': string;
80
+ 'block-start': "" | "border-b border-line";
81
+ 'block-end': "" | "border-t border-line";
82
82
  };
83
- }, undefined, undefined, unknown, unknown, undefined>>;
83
+ }, undefined>>;
84
84
  export type TextareaGroupVariants = VariantProps<typeof textareaGroupVariants>;
@@ -1 +1 @@
1
- [data-ox-slot=toast-viewport]{--ox-toast-width:22rem}[data-ox-slot=toast]{--ox-gap:14px;--ox-peek:14px;--ox-scale:calc(max(0, 1 - (var(--toast-index) * .05)));--ox-shrink:calc(1 - var(--ox-scale));--ox-height:var(--toast-frontmost-height,var(--toast-height));--ox-exit:0px;--ox-ease:ease;box-sizing:border-box;height:var(--ox-height);z-index:calc(1000 - var(--toast-index));contain:layout style;will-change:transform;transition:transform .4s var(--ox-ease), opacity .4s var(--ox-ease), height .4s var(--ox-ease)}[data-ox-slot=toast][data-expanded],[data-ox-slot=toast-viewport][data-ox-expanded] [data-ox-slot=toast]{height:var(--toast-height)}[data-ox-slot=toast]:after{content:"";width:100%;height:calc(var(--ox-gap) + 1px);position:absolute;left:0}[data-ox-slot=toast-viewport][data-placement^=bottom] [data-ox-slot=toast]{--ox-offset-y:calc(var(--toast-offset-y) * -1 + (var(--toast-index) * var(--ox-gap) * -1) + var(--toast-swipe-movement-y));transform-origin:bottom;transform:translateX(var(--toast-swipe-movement-x)) translateY(calc(var(--toast-swipe-movement-y) - (var(--toast-index) * var(--ox-peek)) - (var(--ox-shrink) * var(--ox-height)) + var(--ox-exit,0px))) scale(var(--ox-scale));bottom:0}[data-ox-slot=toast-viewport][data-placement^=bottom] [data-ox-slot=toast]:after{top:100%}[data-ox-slot=toast-viewport][data-placement^=bottom] [data-ox-slot=toast][data-starting-style]{opacity:0;transform:translateY(100%)}[data-ox-slot=toast-viewport][data-placement^=bottom] [data-ox-slot=toast][data-ending-style]:not([data-swipe-direction]){opacity:0;transform:translateX(var(--toast-swipe-movement-x)) translateY(calc(var(--ox-offset-y) + 100%)) scale(var(--ox-scale))}[data-ox-slot=toast-viewport][data-placement^=top] [data-ox-slot=toast]{--ox-offset-y:calc(var(--toast-offset-y) + (var(--toast-index) * var(--ox-gap)) + var(--toast-swipe-movement-y));transform-origin:top;transform:translateX(var(--toast-swipe-movement-x)) translateY(calc(var(--toast-swipe-movement-y) + (var(--toast-index) * var(--ox-peek)) + (var(--ox-shrink) * var(--ox-height)) + var(--ox-exit,0px))) scale(var(--ox-scale));top:0}[data-ox-slot=toast-viewport][data-placement^=top] [data-ox-slot=toast]:after{bottom:100%}[data-ox-slot=toast-viewport][data-placement^=top] [data-ox-slot=toast][data-starting-style]{opacity:0;transform:translateY(-100%)}[data-ox-slot=toast-viewport][data-placement^=top] [data-ox-slot=toast][data-ending-style]:not([data-swipe-direction]){opacity:0;transform:translateX(var(--toast-swipe-movement-x)) translateY(calc(var(--ox-offset-y) - 100%)) scale(var(--ox-scale))}[data-ox-slot=toast-viewport] [data-ox-slot=toast][data-expanded],[data-ox-slot=toast-viewport][data-ox-expanded] [data-ox-slot=toast]{transform:translateX(var(--toast-swipe-movement-x)) translateY(calc(var(--ox-offset-y) + var(--ox-exit,0px)))}[data-ox-slot=toast][data-limited]{opacity:0}[data-ox-slot=toast][data-ending-style]{opacity:0;transition:transform .4s var(--ox-ease), opacity .25s linear .15s}[data-ox-slot=toast][data-ending-style][data-swipe-direction=up]{transform:translateY(calc(var(--toast-swipe-movement-y) - 150%))}[data-ox-slot=toast][data-ending-style][data-swipe-direction=down]{transform:translateY(calc(var(--toast-swipe-movement-y) + 150%))}[data-ox-slot=toast][data-ending-style][data-swipe-direction=left]{transform:translateX(calc(var(--toast-swipe-movement-x) - 150%)) translateY(var(--ox-offset-y))}[data-ox-slot=toast][data-ending-style][data-swipe-direction=right]{transform:translateX(calc(var(--toast-swipe-movement-x) + 150%)) translateY(var(--ox-offset-y))}[data-ox-slot=toast-content]{transition:opacity .3s var(--ox-ease);overflow:hidden}[data-ox-slot=toast-content][data-behind]{opacity:0}[data-ox-slot=toast-content][data-expanded],[data-ox-slot=toast-viewport][data-ox-expanded] [data-ox-slot=toast-content]{opacity:1}@keyframes ox-toast-timer{0%{transform:scaleX(1)}to{transform:scaleX(0)}}[data-ox-slot=toast-timer]{animation:ox-toast-timer var(--ox-toast-timer-duration,5s) linear forwards}[data-ox-slot=toast-viewport][data-ox-timers-paused] [data-ox-slot=toast-timer]{animation-play-state:paused}@media (prefers-reduced-motion:reduce){[data-ox-slot=toast]{transition:opacity .25s var(--ox-ease)}[data-ox-slot=toast-timer]{opacity:0;animation-duration:var(--ox-toast-timer-duration,5s)!important}[data-ox-slot=toast-viewport] [data-ox-slot=toast],[data-ox-slot=toast-viewport] [data-ox-slot=toast][data-expanded],[data-ox-slot=toast-viewport] [data-ox-slot=toast][data-starting-style],[data-ox-slot=toast-viewport] [data-ox-slot=toast][data-ending-style]{transform:none!important}}@media (width<=600px){[data-ox-slot=toast-viewport][data-placement]{width:auto;max-width:none;inset-inline:0;transform:none}[data-ox-slot=toast-viewport][data-placement^=bottom]{margin-bottom:calc(1rem + env(safe-area-inset-bottom))}[data-ox-slot=toast-viewport][data-placement^=top]{margin-top:calc(1rem + env(safe-area-inset-top))}}
1
+ [data-ox-slot=toast-viewport]{--ox-toast-width:22rem}[data-ox-slot=toast]{--ox-gap:14px;--ox-peek:14px;--ox-scale:calc(max(0, 1 - (var(--toast-index) * .05)));--ox-shrink:calc(1 - var(--ox-scale));--ox-height:var(--toast-frontmost-height,var(--toast-height));--ox-exit:0px;--ox-ease:ease;box-sizing:border-box;height:var(--ox-height);z-index:calc(var(--z-toast) - var(--toast-index));contain:layout style;will-change:transform;transition:transform .4s var(--ox-ease), opacity .4s var(--ox-ease), height .4s var(--ox-ease)}[data-ox-slot=toast][data-expanded],[data-ox-slot=toast-viewport][data-ox-expanded] [data-ox-slot=toast]{height:var(--toast-height)}[data-ox-slot=toast]:after{content:"";width:100%;height:calc(var(--ox-gap) + 1px);position:absolute;left:0}[data-ox-slot=toast-viewport][data-placement^=bottom] [data-ox-slot=toast]{--ox-offset-y:calc(var(--toast-offset-y) * -1 + (var(--toast-index) * var(--ox-gap) * -1) + var(--toast-swipe-movement-y));transform-origin:bottom;transform:translateX(var(--toast-swipe-movement-x)) translateY(calc(var(--toast-swipe-movement-y) - (var(--toast-index) * var(--ox-peek)) - (var(--ox-shrink) * var(--ox-height)) + var(--ox-exit,0px))) scale(var(--ox-scale));bottom:0}[data-ox-slot=toast-viewport][data-placement^=bottom] [data-ox-slot=toast]:after{top:100%}[data-ox-slot=toast-viewport][data-placement^=bottom] [data-ox-slot=toast][data-starting-style]{opacity:0;transform:translateY(100%)}[data-ox-slot=toast-viewport][data-placement^=bottom] [data-ox-slot=toast][data-ending-style]:not([data-swipe-direction]){opacity:0;transform:translateX(var(--toast-swipe-movement-x)) translateY(calc(var(--ox-offset-y) + 100%)) scale(var(--ox-scale))}[data-ox-slot=toast-viewport][data-placement^=top] [data-ox-slot=toast]{--ox-offset-y:calc(var(--toast-offset-y) + (var(--toast-index) * var(--ox-gap)) + var(--toast-swipe-movement-y));transform-origin:top;transform:translateX(var(--toast-swipe-movement-x)) translateY(calc(var(--toast-swipe-movement-y) + (var(--toast-index) * var(--ox-peek)) + (var(--ox-shrink) * var(--ox-height)) + var(--ox-exit,0px))) scale(var(--ox-scale));top:0}[data-ox-slot=toast-viewport][data-placement^=top] [data-ox-slot=toast]:after{bottom:100%}[data-ox-slot=toast-viewport][data-placement^=top] [data-ox-slot=toast][data-starting-style]{opacity:0;transform:translateY(-100%)}[data-ox-slot=toast-viewport][data-placement^=top] [data-ox-slot=toast][data-ending-style]:not([data-swipe-direction]){opacity:0;transform:translateX(var(--toast-swipe-movement-x)) translateY(calc(var(--ox-offset-y) - 100%)) scale(var(--ox-scale))}[data-ox-slot=toast-viewport] [data-ox-slot=toast][data-expanded],[data-ox-slot=toast-viewport][data-ox-expanded] [data-ox-slot=toast]{transform:translateX(var(--toast-swipe-movement-x)) translateY(calc(var(--ox-offset-y) + var(--ox-exit,0px)))}[data-ox-slot=toast][data-limited]{opacity:0}[data-ox-slot=toast][data-ending-style]{opacity:0;transition:transform .4s var(--ox-ease), opacity .25s linear .15s}[data-ox-slot=toast][data-ending-style][data-swipe-direction=up]{transform:translateY(calc(var(--toast-swipe-movement-y) - 150%))}[data-ox-slot=toast][data-ending-style][data-swipe-direction=down]{transform:translateY(calc(var(--toast-swipe-movement-y) + 150%))}[data-ox-slot=toast][data-ending-style][data-swipe-direction=left]{transform:translateX(calc(var(--toast-swipe-movement-x) - 150%)) translateY(var(--ox-offset-y))}[data-ox-slot=toast][data-ending-style][data-swipe-direction=right]{transform:translateX(calc(var(--toast-swipe-movement-x) + 150%)) translateY(var(--ox-offset-y))}[data-ox-slot=toast-content]{transition:opacity .3s var(--ox-ease);overflow:hidden}[data-ox-slot=toast-content][data-behind]{opacity:0}[data-ox-slot=toast-content][data-expanded],[data-ox-slot=toast-viewport][data-ox-expanded] [data-ox-slot=toast-content]{opacity:1}@keyframes ox-toast-timer{0%{transform:scaleX(1)}to{transform:scaleX(0)}}[data-ox-slot=toast-timer]{animation:ox-toast-timer var(--ox-toast-timer-duration,5s) linear forwards}[data-ox-slot=toast-viewport][data-ox-timers-paused] [data-ox-slot=toast-timer]{animation-play-state:paused}@media (prefers-reduced-motion:reduce){[data-ox-slot=toast]{transition:opacity .25s var(--ox-ease)}[data-ox-slot=toast-timer]{opacity:0;animation-duration:var(--ox-toast-timer-duration,5s)!important}[data-ox-slot=toast-viewport] [data-ox-slot=toast],[data-ox-slot=toast-viewport] [data-ox-slot=toast][data-expanded],[data-ox-slot=toast-viewport] [data-ox-slot=toast][data-starting-style],[data-ox-slot=toast-viewport] [data-ox-slot=toast][data-ending-style]{transform:none!important}}@media (width<=600px){[data-ox-slot=toast-viewport][data-placement]{width:auto;max-width:none;inset-inline:0;transform:none}[data-ox-slot=toast-viewport][data-placement^=bottom]{margin-bottom:calc(1rem + env(safe-area-inset-bottom))}[data-ox-slot=toast-viewport][data-placement^=top]{margin-top:calc(1rem + env(safe-area-inset-top))}}
@@ -77,7 +77,7 @@ export declare const toastVariants: import('tailwind-variants').TVReturnType<{
77
77
  description: string[];
78
78
  action: string[];
79
79
  close: string[];
80
- }, import('tailwind-variants').TVReturnType<{
80
+ }, import('tailwind-variants').TVReturnTypeLike<{
81
81
  variant: {
82
82
  default: {};
83
83
  critical: {
@@ -116,5 +116,5 @@ export declare const toastVariants: import('tailwind-variants').TVReturnType<{
116
116
  description: string[];
117
117
  action: string[];
118
118
  close: string[];
119
- }, undefined, unknown, unknown, undefined>>;
119
+ }>>;
120
120
  export type ToastVariants = VariantProps<typeof toastVariants>;
@@ -2,7 +2,7 @@ import { tv as e } from "../../internal/tv.js";
2
2
  //#region src/components/Toast/Toast.styles.ts
3
3
  var t = e({
4
4
  slots: {
5
- viewport: ["fixed z-[1000] m-4 flex w-[var(--ox-toast-width)] max-w-[calc(100vw-2rem)] flex-col", "outline-none"],
5
+ viewport: ["fixed z-(--z-toast) m-4 flex w-[var(--ox-toast-width)] max-w-[calc(100vw-2rem)] flex-col", "outline-none"],
6
6
  root: [
7
7
  "group absolute inset-x-0 select-none overflow-hidden",
8
8
  "rounded-control border bg-popover shadow-[var(--shadow-pop)]",
@@ -153,20 +153,22 @@ function A(e) {
153
153
  function j(e) {
154
154
  let t = r(23), n, i, a, o, s, l;
155
155
  t[0] === e ? (n = t[1], i = t[2], a = t[3], o = t[4], s = t[5], l = t[6]) : ({children: n, className: i, loading: s, render: o, type: l, ...a} = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a, t[4] = o, t[5] = s, t[6] = l);
156
- let u = s === void 0 ? !1 : s, d = l === void 0 ? "neutral" : l, { slots: f } = y(), p = n;
157
- if (!p) if (u) {
158
- let e;
159
- t[7] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ m(c, {
160
- "aria-hidden": "true",
161
- className: "animate-spin",
162
- strokeWidth: 2
163
- }), t[7] = e) : e = t[7], p = e;
164
- } else {
165
- let e = b[d], n;
166
- t[8] === e ? n = t[9] : (n = /* @__PURE__ */ m(e, {
167
- "aria-hidden": "true",
168
- strokeWidth: 2
169
- }), t[8] = e, t[9] = n), p = n;
156
+ let u = s !== void 0 && s, d = l === void 0 ? "neutral" : l, { slots: f } = y(), p = n;
157
+ if (!p) {
158
+ if (u) {
159
+ let e;
160
+ t[7] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ m(c, {
161
+ "aria-hidden": "true",
162
+ className: "animate-spin",
163
+ strokeWidth: 2
164
+ }), t[7] = e) : e = t[7], p = e;
165
+ } else {
166
+ let e = b[d], n;
167
+ t[8] === e ? n = t[9] : (n = /* @__PURE__ */ m(e, {
168
+ "aria-hidden": "true",
169
+ strokeWidth: 2
170
+ }), t[8] = e, t[9] = n), p = n;
171
+ }
170
172
  }
171
173
  let h;
172
174
  t[10] === o ? h = t[11] : (h = o ?? /* @__PURE__ */ m("div", {}), t[10] = o, t[11] = h);
@@ -9,7 +9,7 @@ var { Provider: s, useOptionalContext: c } = e("OxToggle.Group");
9
9
  function l(e) {
10
10
  let t = r(16), o, s, l, u, d, f;
11
11
  t[0] === e ? (o = t[1], s = t[2], l = t[3], u = t[4], d = t[5], f = t[6]) : ({children: o, className: s, disabled: u, isIconOnly: d, variant: f, ...l} = e, t[0] = e, t[1] = o, t[2] = s, t[3] = l, t[4] = u, t[5] = d, t[6] = f);
12
- let p = u === void 0 ? !1 : u, m = d === void 0 ? !1 : d, h = c(), g = f ?? h?.variant ?? "default", _;
12
+ let p = u !== void 0 && u, m = d !== void 0 && d, h = c(), g = f ?? h?.variant ?? "default", _;
13
13
  t[7] !== s || t[8] !== m || t[9] !== g ? (_ = n({
14
14
  variant: g,
15
15
  isIconOnly: m,
@@ -27,7 +27,7 @@ function l(e) {
27
27
  function u(e) {
28
28
  let n = r(30), a, c, l, u, d, f, p, m, h, g, _;
29
29
  n[0] === e ? (a = n[1], c = n[2], l = n[3], u = n[4], d = n[5], f = n[6], p = n[7], m = n[8], h = n[9], g = n[10], _ = n[11]) : ({children: a, className: c, defaultValue: l, disabled: f, loopFocus: p, multiple: m, onValueChange: u, orientation: h, value: g, variant: _, ...d} = e, n[0] = e, n[1] = a, n[2] = c, n[3] = l, n[4] = u, n[5] = d, n[6] = f, n[7] = p, n[8] = m, n[9] = h, n[10] = g, n[11] = _);
30
- let v = f === void 0 ? !1 : f, y = p === void 0 ? !0 : p, b = m === void 0 ? !1 : m, x = h === void 0 ? "horizontal" : h, S;
30
+ let v = f !== void 0 && f, y = p === void 0 || p, b = m !== void 0 && m, x = h === void 0 ? "horizontal" : h, S;
31
31
  n[12] === _ ? S = n[13] : (S = { variant: _ }, n[12] = _, n[13] = S);
32
32
  let C;
33
33
  n[14] === c ? C = n[15] : (C = t({ class: c }), n[14] = c, n[15] = C);