@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
@@ -1 +1 @@
1
- [data-ox-slot=hold-to-delete-overlay]{clip-path:inset(0 100% 0 0);transition:clip-path .2s var(--ease-out-quad)}[data-ox-slot=hold-to-delete][data-ox-holding] [data-ox-slot=hold-to-delete-overlay]{clip-path:inset(0);transition:clip-path var(--ox-hold-duration,2s) linear}
1
+ [data-ox-slot=hold-to-delete-fill]{clip-path:inset(0 100% 0 0);transition:clip-path .2s var(--ease-out-quad)}[data-ox-slot=hold-to-delete][data-ox-holding] [data-ox-slot=hold-to-delete-fill]{clip-path:inset(0);transition:clip-path var(--ox-hold-duration,2s) linear}
@@ -1,33 +1,60 @@
1
1
  import { VariantProps } from '../../internal/tv';
2
2
  export declare const holdToDeleteVariants: import('tailwind-variants').TVReturnType<{
3
- [key: string]: {
4
- [key: string]: import('tailwind-merge').ClassNameValue | {
5
- root?: import('tailwind-merge').ClassNameValue;
6
- overlay?: import('tailwind-merge').ClassNameValue;
3
+ isHolding: {
4
+ true: {
5
+ icon: string;
6
+ label: string;
7
+ holdLabel: string;
7
8
  };
8
- };
9
- } | {
10
- [x: string]: {
11
- [x: string]: import('tailwind-merge').ClassNameValue | {
12
- root?: import('tailwind-merge').ClassNameValue;
13
- overlay?: import('tailwind-merge').ClassNameValue;
9
+ false: {
10
+ label: string;
11
+ holdLabel: string;
14
12
  };
15
13
  };
16
- } | {}, {
14
+ }, {
17
15
  root: string[];
18
- overlay: string[];
16
+ fill: string;
17
+ icon: string[];
18
+ labels: string[];
19
+ label: string[];
20
+ holdLabel: string[];
19
21
  }, undefined, {
20
- [key: string]: {
21
- [key: string]: import('tailwind-merge').ClassNameValue | {
22
- root?: import('tailwind-merge').ClassNameValue;
23
- overlay?: import('tailwind-merge').ClassNameValue;
22
+ isHolding: {
23
+ true: {
24
+ icon: string;
25
+ label: string;
26
+ holdLabel: string;
27
+ };
28
+ false: {
29
+ label: string;
30
+ holdLabel: string;
24
31
  };
25
32
  };
26
- } | {}, {
33
+ }, {
27
34
  root: string[];
28
- overlay: string[];
29
- }, import('tailwind-variants').TVReturnType<unknown, {
35
+ fill: string;
36
+ icon: string[];
37
+ labels: string[];
38
+ label: string[];
39
+ holdLabel: string[];
40
+ }, import('tailwind-variants').TVReturnTypeLike<{
41
+ isHolding: {
42
+ true: {
43
+ icon: string;
44
+ label: string;
45
+ holdLabel: string;
46
+ };
47
+ false: {
48
+ label: string;
49
+ holdLabel: string;
50
+ };
51
+ };
52
+ }, {
30
53
  root: string[];
31
- overlay: string[];
32
- }, undefined, unknown, unknown, undefined>>;
54
+ fill: string;
55
+ icon: string[];
56
+ labels: string[];
57
+ label: string[];
58
+ holdLabel: string[];
59
+ }>>;
33
60
  export type HoldToDeleteVariants = VariantProps<typeof holdToDeleteVariants>;
@@ -1,20 +1,35 @@
1
1
  import { tv as e } from "../../internal/tv.js";
2
+ import { stackedLayers as t } from "../../internal/styles/stackedLayerStyles.js";
2
3
  //#region src/components/HoldToDelete/HoldToDelete.styles.ts
3
- var t = e({ slots: {
4
- root: [
5
- "relative inline-flex select-none items-center justify-center gap-2",
6
- "h-control cursor-pointer rounded-full px-6 font-medium whitespace-nowrap",
7
- "border border-line bg-surface-raised text-fg",
8
- "[&_svg:not([class*=size-])]:size-icon",
9
- "transition-transform active:scale-97 will-change-transform",
10
- "outline-danger-ink focus-visible:outline-2 focus-visible:outline-offset-2",
11
- "ox-disabled:cursor-not-allowed ox-disabled:opacity-50 ox-disabled:active:scale-100"
12
- ],
13
- overlay: [
14
- "pointer-events-none absolute inset-0",
15
- "inline-flex items-center justify-center gap-2",
16
- "rounded-full bg-danger-soft text-danger-soft-fg"
17
- ]
18
- } });
4
+ var n = ["transition-[opacity,color] duration-90 ease-out-quint", "motion-reduce:transition-none"], r = e({
5
+ slots: {
6
+ root: [
7
+ "relative inline-flex select-none items-center justify-center gap-2",
8
+ "h-control cursor-pointer rounded-full px-6 text-control font-medium whitespace-nowrap",
9
+ "border border-line bg-surface-raised text-fg",
10
+ "[&_svg:not([class*=size-])]:size-icon",
11
+ "transition-transform active:scale-97 will-change-transform",
12
+ "outline-danger-ink focus-visible:outline-2 focus-visible:outline-offset-2",
13
+ "ox-disabled:cursor-not-allowed ox-disabled:opacity-50 ox-disabled:active:scale-100"
14
+ ],
15
+ fill: "pointer-events-none absolute inset-0 rounded-full bg-danger-soft",
16
+ icon: ["relative inline-flex shrink-0 items-center", "transition-colors duration-180 ease-out-quint motion-reduce:transition-none"],
17
+ labels: [...t, "items-center text-center"],
18
+ label: n,
19
+ holdLabel: ["text-danger-soft-fg", ...n]
20
+ },
21
+ variants: { isHolding: {
22
+ true: {
23
+ icon: "text-danger-soft-fg",
24
+ label: "opacity-0 delay-0",
25
+ holdLabel: "opacity-100 delay-90"
26
+ },
27
+ false: {
28
+ label: "opacity-100 delay-90",
29
+ holdLabel: "opacity-0 delay-0"
30
+ }
31
+ } },
32
+ defaultVariants: { isHolding: !1 }
33
+ });
19
34
  //#endregion
20
- export { t as holdToDeleteVariants };
35
+ export { r as holdToDeleteVariants };
@@ -2,97 +2,109 @@ import { holdToDeleteVariants as e } from "./HoldToDelete.styles.js";
2
2
  import './HoldToDelete.css';/* empty css */
3
3
  import { c as ee } from "react/compiler-runtime";
4
4
  import { Trash2 as te } from "lucide-react";
5
- import { useEffect as ne, useRef as t, useState as re } from "react";
6
- import { jsx as ie, jsxs as ae } from "react/jsx-runtime";
5
+ import { useEffect as ne, useRef as t, useState as n } from "react";
6
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
7
7
  //#region src/components/HoldToDelete/HoldToDelete.tsx
8
- var oe = /* @__PURE__ */ new Set([" ", "Enter"]);
9
- function n(n) {
10
- let r = ee(75), i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x;
11
- r[0] === n ? (i = r[1], a = r[2], o = r[3], s = r[4], c = r[5], l = r[6], u = r[7], d = r[8], f = r[9], p = r[10], m = r[11], h = r[12], g = r[13], _ = r[14], v = r[15], y = r[16], b = r[17], x = r[18]) : ({className: i, disabled: y, duration: b, holdLabel: a, icon: o, label: x, onBlur: s, onComplete: c, onHoldCancel: l, onHoldStart: u, onKeyDown: d, onKeyUp: f, onPointerCancel: p, onPointerDown: m, onPointerLeave: h, onPointerUp: g, style: v, ..._} = n, r[0] = n, r[1] = i, r[2] = a, r[3] = o, r[4] = s, r[5] = c, r[6] = l, r[7] = u, r[8] = d, r[9] = f, r[10] = p, r[11] = m, r[12] = h, r[13] = g, r[14] = _, r[15] = v, r[16] = y, r[17] = b, r[18] = x);
12
- let S = y === void 0 ? !1 : y, C = b === void 0 ? 2e3 : b, w = x === void 0 ? "Hold to Delete" : x, [se, ce] = re(!1), T = t(null), E = t(!1), D = t(!1), le = e(), O = a ?? w, k;
13
- r[19] === o ? k = r[20] : (k = o ?? /* @__PURE__ */ ie(te, { "aria-hidden": "true" }), r[19] = o, r[20] = k);
14
- let A = k, j;
15
- r[21] === Symbol.for("react.memo_cache_sentinel") ? (j = () => {
16
- T.current !== null && (globalThis.clearTimeout(T.current), T.current = null);
17
- }, r[21] = j) : j = r[21];
18
- let ue = j, M, N;
19
- r[22] === Symbol.for("react.memo_cache_sentinel") ? (M = () => () => {
20
- T.current !== null && globalThis.clearTimeout(T.current);
21
- }, N = [], r[22] = M, r[23] = N) : (M = r[22], N = r[23]), ne(M, N);
22
- let P;
23
- r[24] !== S || r[25] !== C || r[26] !== c || r[27] !== u ? (P = () => {
24
- S || E.current || (E.current = !0, D.current = !1, ce(!0), u?.(), ue(), T.current = globalThis.setTimeout(() => {
25
- T.current = null, D.current = !0, c?.();
26
- }, C));
27
- }, r[24] = S, r[25] = C, r[26] = c, r[27] = u, r[28] = P) : P = r[28];
28
- let F = P, I;
29
- r[29] === l ? I = r[30] : (I = () => {
30
- if (!E.current) return;
31
- let e = D.current;
32
- E.current = !1, D.current = !1, ue(), ce(!1), !e && l?.();
33
- }, r[29] = l, r[30] = I);
34
- let L = I, R;
35
- r[31] !== m || r[32] !== F ? (R = (e) => {
36
- m?.(e), !(e.defaultPrevented || e.button !== 0) && F();
37
- }, r[31] = m, r[32] = F, r[33] = R) : R = r[33];
38
- let z = R, B;
39
- r[34] !== d || r[35] !== F ? (B = (e) => {
40
- d?.(e), !(e.defaultPrevented || e.repeat || !oe.has(e.key)) && (e.preventDefault(), F());
41
- }, r[34] = d, r[35] = F, r[36] = B) : B = r[36];
42
- let V = B, H;
43
- r[37] !== L || r[38] !== f ? (H = (e) => {
44
- f?.(e), oe.has(e.key) && L();
45
- }, r[37] = L, r[38] = f, r[39] = H) : H = r[39];
46
- let U = H, W = `${C}ms`, G;
47
- r[40] !== v || r[41] !== W ? (G = {
48
- ...v,
49
- "--ox-hold-duration": W
50
- }, r[40] = v, r[41] = W, r[42] = G) : G = r[42];
51
- let K = G, q = le.root({ class: i }), de = se || void 0, J;
52
- r[43] !== L || r[44] !== s ? (J = (e) => {
53
- s?.(e), L();
54
- }, r[43] = L, r[44] = s, r[45] = J) : J = r[45];
55
- let Y;
56
- r[46] !== L || r[47] !== p ? (Y = (e) => {
57
- p?.(e), L();
58
- }, r[46] = L, r[47] = p, r[48] = Y) : Y = r[48];
59
- let X;
60
- r[49] !== L || r[50] !== h ? (X = (e) => {
61
- h?.(e), L();
62
- }, r[49] = L, r[50] = h, r[51] = X) : X = r[51];
8
+ var a = /* @__PURE__ */ new Set([" ", "Enter"]);
9
+ function o(o) {
10
+ let s = ee(55), c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T;
11
+ s[0] === o ? (c = s[1], l = s[2], u = s[3], d = s[4], f = s[5], p = s[6], m = s[7], h = s[8], g = s[9], _ = s[10], v = s[11], y = s[12], b = s[13], x = s[14], S = s[15], C = s[16], w = s[17], T = s[18]) : ({className: c, disabled: C, duration: w, holdLabel: l, icon: u, label: T, onBlur: d, onComplete: f, onHoldCancel: p, onHoldStart: m, onKeyDown: h, onKeyUp: g, onPointerCancel: _, onPointerDown: v, onPointerLeave: y, onPointerUp: b, style: S, ...x} = o, s[0] = o, s[1] = c, s[2] = l, s[3] = u, s[4] = d, s[5] = f, s[6] = p, s[7] = m, s[8] = h, s[9] = g, s[10] = _, s[11] = v, s[12] = y, s[13] = b, s[14] = x, s[15] = S, s[16] = C, s[17] = w, s[18] = T);
12
+ let E = C !== void 0 && C, D = w === void 0 ? 2e3 : w, O = T === void 0 ? "Hold to Delete" : T, [k, A] = n(!1), j = t(null), M = t(!1), N = t(!1), P = e({ isHolding: k }), F = l ?? O, re = !!O || !!F, I;
13
+ s[19] === u ? I = s[20] : (I = u ?? /* @__PURE__ */ r(te, { "aria-hidden": "true" }), s[19] = u, s[20] = I);
14
+ let ie = I, L;
15
+ s[21] === Symbol.for("react.memo_cache_sentinel") ? (L = () => {
16
+ j.current !== null && (globalThis.clearTimeout(j.current), j.current = null);
17
+ }, s[21] = L) : L = s[21];
18
+ let R = L, z, B;
19
+ s[22] === Symbol.for("react.memo_cache_sentinel") ? (z = () => () => {
20
+ j.current !== null && globalThis.clearTimeout(j.current);
21
+ }, B = [], s[22] = z, s[23] = B) : (z = s[22], B = s[23]), ne(z, B);
22
+ let V;
23
+ s[24] !== E || s[25] !== D || s[26] !== f || s[27] !== m ? (V = () => {
24
+ E || M.current || (M.current = !0, N.current = !1, A(!0), m?.(), R(), j.current = globalThis.setTimeout(() => {
25
+ j.current = null, N.current = !0, f?.();
26
+ }, D));
27
+ }, s[24] = E, s[25] = D, s[26] = f, s[27] = m, s[28] = V) : V = s[28];
28
+ let H = V, U;
29
+ s[29] === p ? U = s[30] : (U = () => {
30
+ if (!M.current) return;
31
+ let e = N.current;
32
+ M.current = !1, N.current = !1, R(), A(!1), !e && p?.();
33
+ }, s[29] = p, s[30] = U);
34
+ let W = U, G;
35
+ s[31] !== v || s[32] !== H ? (G = (e) => {
36
+ v?.(e), !(e.defaultPrevented || e.button !== 0) && H();
37
+ }, s[31] = v, s[32] = H, s[33] = G) : G = s[33];
38
+ let ae = G, K;
39
+ s[34] !== h || s[35] !== H ? (K = (e) => {
40
+ h?.(e), !(e.defaultPrevented || e.repeat || !a.has(e.key)) && (e.preventDefault(), H());
41
+ }, s[34] = h, s[35] = H, s[36] = K) : K = s[36];
42
+ let oe = K, q;
43
+ s[37] !== W || s[38] !== g ? (q = (e) => {
44
+ g?.(e), a.has(e.key) && W();
45
+ }, s[37] = W, s[38] = g, s[39] = q) : q = s[39];
46
+ let se = q, J = `${D}ms`, Y;
47
+ s[40] !== S || s[41] !== J ? (Y = {
48
+ ...S,
49
+ "--ox-hold-duration": J
50
+ }, s[40] = S, s[41] = J, s[42] = Y) : Y = s[42];
51
+ let ce = Y, X;
52
+ s[43] !== W || s[44] !== d ? (X = (e) => {
53
+ d?.(e), W();
54
+ }, s[43] = W, s[44] = d, s[45] = X) : X = s[45];
63
55
  let Z;
64
- r[52] !== L || r[53] !== g ? (Z = (e) => {
65
- g?.(e), L();
66
- }, r[52] = L, r[53] = g, r[54] = Z) : Z = r[54];
67
- let fe = le.overlay(), Q;
68
- r[55] !== A || r[56] !== O || r[57] !== fe ? (Q = /* @__PURE__ */ ae("span", {
69
- "aria-hidden": "true",
70
- className: fe,
71
- "data-ox-slot": "hold-to-delete-overlay",
72
- children: [A, O]
73
- }), r[55] = A, r[56] = O, r[57] = fe, r[58] = Q) : Q = r[58];
56
+ s[46] !== W || s[47] !== _ ? (Z = (e) => {
57
+ _?.(e), W();
58
+ }, s[46] = W, s[47] = _, s[48] = Z) : Z = s[48];
59
+ let Q;
60
+ s[49] !== W || s[50] !== y ? (Q = (e) => {
61
+ y?.(e), W();
62
+ }, s[49] = W, s[50] = y, s[51] = Q) : Q = s[51];
74
63
  let $;
75
- return r[59] !== S || r[60] !== V || r[61] !== U || r[62] !== z || r[63] !== A || r[64] !== w || r[65] !== K || r[66] !== _ || r[67] !== q || r[68] !== de || r[69] !== J || r[70] !== Y || r[71] !== X || r[72] !== Z || r[73] !== Q ? ($ = /* @__PURE__ */ ae("button", {
64
+ return s[52] !== W || s[53] !== b ? ($ = (e) => {
65
+ b?.(e), W();
66
+ }, s[52] = W, s[53] = b, s[54] = $) : $ = s[54], /* @__PURE__ */ i("button", {
76
67
  "data-ox-slot": "hold-to-delete",
77
- ..._,
78
- className: q,
79
- "data-ox-holding": de,
80
- disabled: S,
81
- style: K,
68
+ ...x,
69
+ className: P.root({ class: c }),
70
+ "data-ox-holding": k || void 0,
71
+ disabled: E,
72
+ style: ce,
82
73
  type: "button",
83
- onBlur: J,
84
- onKeyDown: V,
85
- onKeyUp: U,
86
- onPointerCancel: Y,
87
- onPointerDown: z,
88
- onPointerLeave: X,
89
- onPointerUp: Z,
74
+ onBlur: X,
75
+ onKeyDown: oe,
76
+ onKeyUp: se,
77
+ onPointerCancel: Z,
78
+ onPointerDown: ae,
79
+ onPointerLeave: Q,
80
+ onPointerUp: $,
90
81
  children: [
91
- Q,
92
- A,
93
- w
82
+ /* @__PURE__ */ r("span", {
83
+ "aria-hidden": "true",
84
+ className: P.fill(),
85
+ "data-ox-slot": "hold-to-delete-fill"
86
+ }),
87
+ /* @__PURE__ */ r("span", {
88
+ className: P.icon(),
89
+ "data-ox-slot": "hold-to-delete-icon",
90
+ children: ie
91
+ }),
92
+ re ? /* @__PURE__ */ i("span", {
93
+ className: P.labels(),
94
+ "data-ox-slot": "hold-to-delete-labels",
95
+ children: [/* @__PURE__ */ r("span", {
96
+ className: P.label(),
97
+ "data-ox-slot": "hold-to-delete-label",
98
+ children: O
99
+ }), /* @__PURE__ */ r("span", {
100
+ "aria-hidden": "true",
101
+ className: P.holdLabel(),
102
+ "data-ox-slot": "hold-to-delete-hold-label",
103
+ children: F
104
+ })]
105
+ }) : null
94
106
  ]
95
- }), r[59] = S, r[60] = V, r[61] = U, r[62] = z, r[63] = A, r[64] = w, r[65] = K, r[66] = _, r[67] = q, r[68] = de, r[69] = J, r[70] = Y, r[71] = X, r[72] = Z, r[73] = Q, r[74] = $) : $ = r[74], $;
107
+ });
96
108
  }
97
109
  //#endregion
98
- export { n as OxHoldToDelete };
110
+ export { o as OxHoldToDelete };
@@ -1,18 +1,18 @@
1
1
  import { VariantProps } from '../../internal/tv';
2
2
  export declare const iconTileVariants: import('tailwind-variants').TVReturnType<{
3
3
  shape: {
4
- square: string;
5
- circle: string;
4
+ square: "rounded-control";
5
+ circle: "rounded-full";
6
6
  };
7
7
  }, undefined, string[], {
8
8
  shape: {
9
- square: string;
10
- circle: string;
9
+ square: "rounded-control";
10
+ circle: "rounded-full";
11
11
  };
12
- }, undefined, import('tailwind-variants').TVReturnType<{
12
+ }, undefined, import('tailwind-variants').TVReturnTypeLike<{
13
13
  shape: {
14
- square: string;
15
- circle: string;
14
+ square: "rounded-control";
15
+ circle: "rounded-full";
16
16
  };
17
- }, undefined, string[], unknown, unknown, undefined>>;
17
+ }, undefined>>;
18
18
  export type IconTileVariants = VariantProps<typeof iconTileVariants>;
@@ -32,7 +32,7 @@ function h(e) {
32
32
  function g(e) {
33
33
  let t = o(36), n, r, a, u, p, m, h, g;
34
34
  t[0] === e ? (n = t[1], r = t[2], a = t[3], u = t[4], p = t[5], m = t[6], h = t[7], g = t[8]) : ({children: n, className: r, disabled: m, invalid: h, onMouseDown: a, readOnly: g, render: p, ...u} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = a, t[4] = u, t[5] = p, t[6] = m, t[7] = h, t[8] = g);
35
- let _ = m === void 0 ? !1 : m, v = h === void 0 ? !1 : h, y = g === void 0 ? !1 : g, b = i(), x = s(null), S;
35
+ let _ = m !== void 0 && m, v = h !== void 0 && h, y = g !== void 0 && g, b = i(), x = s(null), S;
36
36
  t[9] === _ ? S = t[10] : (S = (e) => {
37
37
  _ || e.target.closest(d) || (e.preventDefault(), x.current?.querySelector(":scope [data-ox-slot=\"input\"]")?.focus());
38
38
  }, t[9] = _, t[10] = S);
@@ -1,16 +1,16 @@
1
- export declare const inputVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, string[], unknown, unknown, undefined>>;
1
+ export declare const inputVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
2
2
  export declare const inputGroupVariants: import('tailwind-variants').TVReturnType<{
3
3
  [key: string]: {
4
- [key: string]: import('tailwind-merge').ClassNameValue | {
5
- base?: import('tailwind-merge').ClassNameValue;
6
- addon?: import('tailwind-merge').ClassNameValue;
4
+ [key: string]: import('tailwind-variants').ClassValue | {
5
+ base?: import('tailwind-variants').ClassValue;
6
+ addon?: import('tailwind-variants').ClassValue;
7
7
  };
8
8
  };
9
9
  } | {
10
10
  [x: string]: {
11
- [x: string]: import('tailwind-merge').ClassNameValue | {
12
- base?: import('tailwind-merge').ClassNameValue;
13
- addon?: import('tailwind-merge').ClassNameValue;
11
+ [x: string]: import('tailwind-variants').ClassValue | {
12
+ base?: import('tailwind-variants').ClassValue;
13
+ addon?: import('tailwind-variants').ClassValue;
14
14
  };
15
15
  };
16
16
  } | {}, {
@@ -18,43 +18,43 @@ export declare const inputGroupVariants: import('tailwind-variants').TVReturnTyp
18
18
  addon: string[];
19
19
  }, undefined, {
20
20
  [key: string]: {
21
- [key: string]: import('tailwind-merge').ClassNameValue | {
22
- base?: import('tailwind-merge').ClassNameValue;
23
- addon?: import('tailwind-merge').ClassNameValue;
21
+ [key: string]: import('tailwind-variants').ClassValue | {
22
+ base?: import('tailwind-variants').ClassValue;
23
+ addon?: import('tailwind-variants').ClassValue;
24
24
  };
25
25
  };
26
26
  } | {}, {
27
27
  base: string[];
28
28
  addon: string[];
29
- }, import('tailwind-variants').TVReturnType<unknown, {
29
+ }, import('tailwind-variants').TVReturnTypeLike<unknown, {
30
30
  base: string[];
31
31
  addon: string[];
32
- }, undefined, unknown, unknown, undefined>>;
32
+ }>>;
33
33
  export declare const inputAddonVariants: import('tailwind-variants').TVReturnType<{
34
34
  variant: {
35
- separated: string;
36
- inline: string;
35
+ 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";
36
+ inline: "";
37
37
  };
38
38
  align: {
39
- 'inline-start': string;
40
- 'inline-end': string;
39
+ 'inline-start': "";
40
+ 'inline-end': "";
41
41
  };
42
42
  }, undefined, undefined, {
43
43
  variant: {
44
- separated: string;
45
- inline: string;
44
+ 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";
45
+ inline: "";
46
46
  };
47
47
  align: {
48
- 'inline-start': string;
49
- 'inline-end': string;
48
+ 'inline-start': "";
49
+ 'inline-end': "";
50
50
  };
51
- }, undefined, import('tailwind-variants').TVReturnType<{
51
+ }, undefined, import('tailwind-variants').TVReturnTypeLike<{
52
52
  variant: {
53
- separated: string;
54
- inline: string;
53
+ 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";
54
+ inline: "";
55
55
  };
56
56
  align: {
57
- 'inline-start': string;
58
- 'inline-end': string;
57
+ 'inline-start': "";
58
+ 'inline-end': "";
59
59
  };
60
- }, undefined, undefined, unknown, unknown, undefined>>;
60
+ }, undefined>>;
@@ -1 +1 @@
1
- export declare const kbdVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, string[], unknown, unknown, undefined>>;
1
+ export declare const kbdVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
@@ -1 +1 @@
1
- export declare const mainVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, string[], unknown, unknown, undefined>>;
1
+ export declare const mainVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
@@ -1,21 +1,21 @@
1
1
  export declare const meterVariants: import('tailwind-variants').TVReturnType<{
2
2
  [key: string]: {
3
- [key: string]: import('tailwind-merge').ClassNameValue | {
4
- value?: import('tailwind-merge').ClassNameValue;
5
- root?: import('tailwind-merge').ClassNameValue;
6
- label?: import('tailwind-merge').ClassNameValue;
7
- bar?: import('tailwind-merge').ClassNameValue;
8
- indicator?: import('tailwind-merge').ClassNameValue;
3
+ [key: string]: import('tailwind-variants').ClassValue | {
4
+ value?: import('tailwind-variants').ClassValue;
5
+ root?: import('tailwind-variants').ClassValue;
6
+ label?: import('tailwind-variants').ClassValue;
7
+ bar?: import('tailwind-variants').ClassValue;
8
+ indicator?: import('tailwind-variants').ClassValue;
9
9
  };
10
10
  };
11
11
  } | {
12
12
  [x: string]: {
13
- [x: string]: import('tailwind-merge').ClassNameValue | {
14
- value?: import('tailwind-merge').ClassNameValue;
15
- root?: import('tailwind-merge').ClassNameValue;
16
- label?: import('tailwind-merge').ClassNameValue;
17
- bar?: import('tailwind-merge').ClassNameValue;
18
- indicator?: import('tailwind-merge').ClassNameValue;
13
+ [x: string]: import('tailwind-variants').ClassValue | {
14
+ value?: import('tailwind-variants').ClassValue;
15
+ root?: import('tailwind-variants').ClassValue;
16
+ label?: import('tailwind-variants').ClassValue;
17
+ bar?: import('tailwind-variants').ClassValue;
18
+ indicator?: import('tailwind-variants').ClassValue;
19
19
  };
20
20
  };
21
21
  } | {}, {
@@ -26,12 +26,12 @@ export declare const meterVariants: import('tailwind-variants').TVReturnType<{
26
26
  indicator: string[];
27
27
  }, undefined, {
28
28
  [key: string]: {
29
- [key: string]: import('tailwind-merge').ClassNameValue | {
30
- value?: import('tailwind-merge').ClassNameValue;
31
- root?: import('tailwind-merge').ClassNameValue;
32
- label?: import('tailwind-merge').ClassNameValue;
33
- bar?: import('tailwind-merge').ClassNameValue;
34
- indicator?: import('tailwind-merge').ClassNameValue;
29
+ [key: string]: import('tailwind-variants').ClassValue | {
30
+ value?: import('tailwind-variants').ClassValue;
31
+ root?: import('tailwind-variants').ClassValue;
32
+ label?: import('tailwind-variants').ClassValue;
33
+ bar?: import('tailwind-variants').ClassValue;
34
+ indicator?: import('tailwind-variants').ClassValue;
35
35
  };
36
36
  };
37
37
  } | {}, {
@@ -40,10 +40,10 @@ export declare const meterVariants: import('tailwind-variants').TVReturnType<{
40
40
  value: string[];
41
41
  bar: string[];
42
42
  indicator: string[];
43
- }, import('tailwind-variants').TVReturnType<unknown, {
43
+ }, import('tailwind-variants').TVReturnTypeLike<unknown, {
44
44
  root: string[];
45
45
  label: string[];
46
46
  value: string[];
47
47
  bar: string[];
48
48
  indicator: string[];
49
- }, undefined, unknown, unknown, undefined>>;
49
+ }>>;
@@ -14,7 +14,7 @@ function _(e) {
14
14
  return typeof e == "function" ? void 0 : e;
15
15
  }
16
16
  function v(e) {
17
- let a = i(20), { align: s, children: m, className: h, closeDelay: g, collisionPadding: v, defaultValue: y, delay: b, inline: x, onValueChange: S, orientation: C, popupClassName: w, render: T, side: E, sideOffset: D, style: O, value: k, viewportClassName: A, ...j } = e, M = s === void 0 ? "center" : s, N = v === void 0 ? 12 : v, P = x === void 0 ? !1 : x, F = C === void 0 ? "horizontal" : C, I = E === void 0 ? "bottom" : E, L = D === void 0 ? 8 : D, R = n("(pointer: coarse)"), z = r({
17
+ let a = i(20), { align: s, children: m, className: h, closeDelay: g, collisionPadding: v, defaultValue: y, delay: b, inline: x, onValueChange: S, orientation: C, popupClassName: w, render: T, side: E, sideOffset: D, style: O, value: k, viewportClassName: A, ...j } = e, M = s === void 0 ? "center" : s, N = v === void 0 ? 12 : v, P = x !== void 0 && x, F = C === void 0 ? "horizontal" : C, I = E === void 0 ? "bottom" : E, L = D === void 0 ? 8 : D, R = n("(pointer: coarse)"), z = r({
18
18
  accordion: R,
19
19
  inline: P
20
20
  }), B = o(t) ?? void 0, [V, H] = c(y ?? null), U = k === void 0 ? V : k, W;
@@ -61,7 +61,7 @@ export declare const navigationMenuVariants: import('tailwind-variants').TVRetur
61
61
  positioner: string[];
62
62
  popup: string[];
63
63
  viewport: string;
64
- }, import('tailwind-variants').TVReturnType<{
64
+ }, import('tailwind-variants').TVReturnTypeLike<{
65
65
  inline: {
66
66
  true: {
67
67
  list: string;
@@ -92,5 +92,5 @@ export declare const navigationMenuVariants: import('tailwind-variants').TVRetur
92
92
  positioner: string[];
93
93
  popup: string[];
94
94
  viewport: string;
95
- }, undefined, unknown, unknown, undefined>>;
95
+ }>>;
96
96
  export type NavigationMenuVariants = VariantProps<typeof navigationMenuVariants>;
@@ -27,7 +27,7 @@ function m(e) {
27
27
  function h(e) {
28
28
  let t = o(43), n, r, a, s, c, f, p, m;
29
29
  t[0] === e ? (n = t[1], r = t[2], a = t[3], s = t[4], c = t[5], f = t[6], p = t[7], m = t[8]) : ({children: n, className: r, decrementLabel: s, disabled: c, incrementLabel: f, invalid: p, readOnly: m, ...a} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = a, t[4] = s, t[5] = c, t[6] = f, t[7] = p, t[8] = m);
30
- let h = s === void 0 ? "Decrement" : s, g = c === void 0 ? !1 : c, _ = f === void 0 ? "Increment" : f, v = p === void 0 ? !1 : p, y = m === void 0 ? !1 : m, b, x, S, C, w, T, E, D, O;
30
+ let h = s === void 0 ? "Decrement" : s, g = c !== void 0 && c, _ = f === void 0 ? "Increment" : f, v = p !== void 0 && p, y = m !== void 0 && m, b, x, S, C, w, T, E, D, O;
31
31
  if (t[9] !== r || t[10] !== h || t[11] !== g || t[12] !== _ || t[13] !== v || t[14] !== a || t[15] !== y) {
32
32
  let e = i();
33
33
  S = d, w = {