@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.
- package/dist/code-block/CodeBlock.styles.d.ts +2 -2
- package/dist/code-block/CodeBlock2.js +1 -1
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/Accordion.styles.d.ts +2 -2
- package/dist/components/Alert/Alert.js +16 -14
- package/dist/components/Alert/Alert.styles.d.ts +2 -2
- package/dist/components/AlertDialog/AlertDialog.styles.d.ts +2 -2
- package/dist/components/AnimatedGradientText/AnimatedGradientText.styles.d.ts +2 -2
- package/dist/components/AnimatedGradientText/AnimatedGradientText2.js +1 -1
- package/dist/components/AppLayout/AppLayout.js +1 -1
- package/dist/components/AppLayout/AppLayout.styles.d.ts +26 -26
- package/dist/components/Autocomplete/Autocomplete.js +2 -2
- package/dist/components/Autocomplete/Autocomplete.styles.d.ts +64 -64
- package/dist/components/Avatar/Avatar.styles.d.ts +4 -4
- package/dist/components/Badge/Badge.js +1 -1
- package/dist/components/Badge/Badge.styles.d.ts +2 -2
- package/dist/components/BlurSwitch/BlurSwitch.styles.d.ts +2 -2
- package/dist/components/BlurSwitch/BlurSwitch.styles.js +4 -3
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.styles.d.ts +29 -29
- package/dist/components/Button/Button.js +2 -2
- package/dist/components/Button/Button.styles.d.ts +2 -2
- package/dist/components/Card/Card.styles.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.styles.d.ts +14 -14
- package/dist/components/Checkbox/Checkbox.types.d.ts +4 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.styles.d.ts +8 -8
- package/dist/components/Chip/Chip.js +1 -1
- package/dist/components/Chip/Chip.styles.d.ts +2 -2
- package/dist/components/Collapsible/Collapsible.js +2 -2
- package/dist/components/Collapsible/Collapsible.styles.d.ts +20 -20
- package/dist/components/Combobox/Combobox.js +4 -4
- package/dist/components/Combobox/Combobox.styles.d.ts +16 -16
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/Command.styles.d.ts +2 -2
- package/dist/components/ContextMenu/ContextMenu.styles.d.ts +2 -2
- package/dist/components/CopyButton/CopyButton.js +1 -1
- package/dist/components/CopyButton/CopyButton.styles.d.ts +2 -2
- package/dist/components/CopyInput/CopyInput.js +1 -1
- package/dist/components/CopyInput/CopyInput.styles.d.ts +2 -2
- package/dist/components/DataTable/DataTable.d.ts +1 -1
- package/dist/components/DataTable/DataTable.js +737 -531
- package/dist/components/DataTable/DataTable.styles.d.ts +53 -5
- package/dist/components/DataTable/DataTable.styles.js +24 -7
- package/dist/components/DataTable/DataTable.types.d.ts +13 -1
- package/dist/components/DataTable/DataTable.utils.js +1 -1
- package/dist/components/DescriptionList/DescriptionList.js +1 -1
- package/dist/components/DescriptionList/DescriptionList.styles.d.ts +14 -14
- package/dist/components/Dialog/Dialog.js +1 -1
- package/dist/components/Dialog/Dialog.styles.d.ts +2 -2
- package/dist/components/Drawer/Drawer.styles.d.ts +2 -2
- package/dist/components/Drawer/Drawer.styles.js +2 -2
- package/dist/components/Drawer/Drawer2.js +4 -4
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/Dropdown/Dropdown.styles.d.ts +2 -2
- package/dist/components/Field/Field.styles.d.ts +29 -29
- package/dist/components/Fieldset/Fieldset.styles.d.ts +11 -11
- package/dist/components/Footer/Footer.js +1 -1
- package/dist/components/Footer/Footer.styles.d.ts +2 -2
- package/dist/components/Header/Header.js +1 -1
- package/dist/components/Header/Header.styles.d.ts +2 -2
- package/dist/components/Header/Header.styles.js +1 -1
- package/dist/components/HoldToDelete/HoldToDelete.css +1 -1
- package/dist/components/HoldToDelete/HoldToDelete.styles.d.ts +48 -21
- package/dist/components/HoldToDelete/HoldToDelete.styles.js +32 -17
- package/dist/components/HoldToDelete/HoldToDelete2.js +97 -85
- package/dist/components/IconTile/IconTile.styles.d.ts +8 -8
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/Input.styles.d.ts +26 -26
- package/dist/components/Kbd/Kbd.styles.d.ts +1 -1
- package/dist/components/Main/Main.styles.d.ts +1 -1
- package/dist/components/Meter/Meter.styles.d.ts +20 -20
- package/dist/components/NavigationMenu/NavigationMenu.js +1 -1
- package/dist/components/NavigationMenu/NavigationMenu.styles.d.ts +2 -2
- package/dist/components/NumberInput/NumberInput.js +1 -1
- package/dist/components/NumberInput/NumberInput.styles.d.ts +32 -32
- package/dist/components/OtpField/OtpField.styles.d.ts +14 -14
- package/dist/components/PageProgress/PageProgress.styles.d.ts +14 -14
- package/dist/components/PageProgress/PageProgress.styles.js +1 -1
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Pagination/Pagination.styles.d.ts +2 -2
- package/dist/components/Popover/Popover.js +1 -1
- package/dist/components/Popover/Popover.styles.d.ts +26 -26
- package/dist/components/Popover/Popover.styles.js +1 -1
- package/dist/components/Progress/Progress.styles.d.ts +20 -20
- package/dist/components/Radio/Radio.styles.d.ts +19 -19
- package/dist/components/ResponsiveOverlay/ResponsiveOverlay.d.ts +1 -1
- package/dist/components/ResponsiveOverlay/ResponsiveOverlay.js +193 -157
- package/dist/components/ResponsiveOverlay/ResponsiveOverlay.styles.d.ts +11 -2
- package/dist/components/ResponsiveOverlay/ResponsiveOverlay.styles.js +2 -1
- package/dist/components/ResponsiveOverlay/ResponsiveOverlay.types.d.ts +9 -2
- package/dist/components/ResponsiveOverlay/index.d.ts +1 -1
- package/dist/components/ScrollArea/ScrollArea.styles.d.ts +23 -23
- package/dist/components/ScrollArea/ScrollArea2.js +2 -2
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Select/Select.styles.d.ts +38 -38
- package/dist/components/Separator/Separator.styles.d.ts +1 -1
- package/dist/components/Sidebar/Sidebar.styles.d.ts +15 -15
- package/dist/components/Sidebar/Sidebar2.js +19 -19
- package/dist/components/SidebarRail/SidebarRail.js +1 -1
- package/dist/components/SidebarRail/SidebarRail.styles.d.ts +17 -17
- package/dist/components/Skeleton/Skeleton.styles.d.ts +11 -11
- package/dist/components/Slider/Slider.styles.d.ts +20 -20
- package/dist/components/Spinner/Spinner.styles.d.ts +2 -2
- package/dist/components/StatusDisplay/StatusDisplay.styles.d.ts +2 -2
- package/dist/components/Switch/Switch.styles.d.ts +11 -11
- package/dist/components/TabBar/TabBar.js +1 -1
- package/dist/components/TabBar/TabBar.styles.d.ts +2 -2
- package/dist/components/Table/Table.d.ts +1 -1
- package/dist/components/Table/Table.js +69 -63
- package/dist/components/Table/Table.styles.d.ts +8 -8
- package/dist/components/Table/Table.styles.js +11 -11
- package/dist/components/Table/Table.types.d.ts +7 -1
- package/dist/components/Tabs/Tabs.js +4 -4
- package/dist/components/Tabs/Tabs.styles.d.ts +2 -2
- package/dist/components/Textarea/Textarea.js +2 -2
- package/dist/components/Textarea/Textarea.styles.d.ts +39 -39
- package/dist/components/Toast/Toast.css +1 -1
- package/dist/components/Toast/Toast.styles.d.ts +2 -2
- package/dist/components/Toast/Toast.styles.js +1 -1
- package/dist/components/Toast/Toast2.js +16 -14
- package/dist/components/Toggle/Toggle.js +2 -2
- package/dist/components/Toggle/Toggle.styles.d.ts +6 -6
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Tooltip/Tooltip.styles.d.ts +17 -17
- package/dist/components/Tooltip/Tooltip.styles.js +1 -1
- package/dist/components/Typewriter/Typewriter.styles.d.ts +14 -14
- package/dist/components/Typewriter/Typewriter2.js +4 -4
- package/dist/components/VirtualList/VirtualList.styles.d.ts +14 -14
- package/dist/context/Auth/Auth.types.d.ts +3 -1
- package/dist/context/Theme/Theme.js +1 -1
- package/dist/hooks/useCommandShortcut/useCommandShortcut.js +1 -1
- package/dist/hooks/useFilter/useFilter.js +1 -1
- package/dist/hooks/useMediaQuery/useMediaQuery.js +1 -1
- package/dist/hooks/useVirtualizer/useVirtualizer.js +2 -2
- package/dist/hooks.js +3 -3
- package/dist/index.js +24 -24
- package/dist/internal/hooks/useControllableState/useControllableState.types.d.ts +1 -1
- package/dist/internal/hooks/useFormState/useFormState.js +81 -81
- package/dist/internal/styles/addonStyles.d.ts +28 -28
- package/dist/internal/styles/dialogSurfaceStyles.d.ts +1 -1
- package/dist/internal/styles/dialogSurfaceStyles.js +2 -2
- package/dist/internal/styles/menuSurfaceStyles.d.ts +1 -1
- package/dist/internal/styles/menuSurfaceStyles.js +1 -1
- package/dist/internal/styles/stackedLayerStyles.d.ts +1 -0
- package/dist/internal/styles/stackedLayerStyles.js +4 -0
- package/dist/internal/styles/tableCellStyles.d.ts +5 -0
- package/dist/internal/styles/tableCellStyles.js +7 -0
- package/dist/rest/executors/restExecutor.js +1 -1
- package/dist/rich-editor/RichEditor.styles.d.ts +36 -36
- package/dist/rich-editor/RichEditor2.js +3 -3
- package/dist/rich-editor/useOxRichEditor.js +1 -1
- package/dist/tokens/shared.css +5 -0
- package/package.json +17 -11
|
@@ -5,7 +5,7 @@ export declare const toggleVariants: import('tailwind-variants').TVReturnType<{
|
|
|
5
5
|
ghost: string[];
|
|
6
6
|
};
|
|
7
7
|
isIconOnly: {
|
|
8
|
-
true:
|
|
8
|
+
true: "min-w-[var(--control-h-md)] px-0";
|
|
9
9
|
};
|
|
10
10
|
}, undefined, string[], {
|
|
11
11
|
variant: {
|
|
@@ -13,16 +13,16 @@ export declare const toggleVariants: import('tailwind-variants').TVReturnType<{
|
|
|
13
13
|
ghost: string[];
|
|
14
14
|
};
|
|
15
15
|
isIconOnly: {
|
|
16
|
-
true:
|
|
16
|
+
true: "min-w-[var(--control-h-md)] px-0";
|
|
17
17
|
};
|
|
18
|
-
}, undefined, import('tailwind-variants').
|
|
18
|
+
}, undefined, import('tailwind-variants').TVReturnTypeLike<{
|
|
19
19
|
variant: {
|
|
20
20
|
default: string[];
|
|
21
21
|
ghost: string[];
|
|
22
22
|
};
|
|
23
23
|
isIconOnly: {
|
|
24
|
-
true:
|
|
24
|
+
true: "min-w-[var(--control-h-md)] px-0";
|
|
25
25
|
};
|
|
26
|
-
}, undefined
|
|
27
|
-
export declare const toggleGroupVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').
|
|
26
|
+
}, undefined>>;
|
|
27
|
+
export declare const toggleGroupVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
28
28
|
export type ToggleVariants = VariantProps<typeof toggleVariants>;
|
|
@@ -7,7 +7,7 @@ import { Tooltip as s } from "@base-ui/react/tooltip";
|
|
|
7
7
|
//#region src/components/Tooltip/Tooltip.tsx
|
|
8
8
|
var c = t();
|
|
9
9
|
function l(t) {
|
|
10
|
-
let l = n(25), { align: u, children: d, closeDelay: f, defaultOpen: p, delay: m, label: h, onOpenChange: g, open: _, side: v, sideOffset: y } = t, b = u === void 0 ? "center" : u, x = f === void 0 ? 0 : f, S = p
|
|
10
|
+
let l = n(25), { align: u, children: d, closeDelay: f, defaultOpen: p, delay: m, label: h, onOpenChange: g, open: _, side: v, sideOffset: y } = t, b = u === void 0 ? "center" : u, x = f === void 0 ? 0 : f, S = p !== void 0 && p, C = m === void 0 ? 600 : m, w = v === void 0 ? "top" : v, T = y === void 0 ? 8 : y, E = i(e) ?? void 0, D = r(d) ? d : void 0, O;
|
|
11
11
|
l[0] === Symbol.for("react.memo_cache_sentinel") ? (O = c.trigger(), l[0] = O) : O = l[0];
|
|
12
12
|
let k = !D && d, A;
|
|
13
13
|
l[1] !== x || l[2] !== C || l[3] !== k || l[4] !== D ? (A = /* @__PURE__ */ a(s.Trigger, {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { VariantProps } from '../../internal/tv';
|
|
2
2
|
export declare const tooltipVariants: import('tailwind-variants').TVReturnType<{
|
|
3
3
|
[key: string]: {
|
|
4
|
-
[key: string]: import('tailwind-
|
|
5
|
-
trigger?: import('tailwind-
|
|
6
|
-
popup?: import('tailwind-
|
|
7
|
-
positioner?: import('tailwind-
|
|
8
|
-
arrow?: import('tailwind-
|
|
4
|
+
[key: string]: import('tailwind-variants').ClassValue | {
|
|
5
|
+
trigger?: import('tailwind-variants').ClassValue;
|
|
6
|
+
popup?: import('tailwind-variants').ClassValue;
|
|
7
|
+
positioner?: import('tailwind-variants').ClassValue;
|
|
8
|
+
arrow?: import('tailwind-variants').ClassValue;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
} | {
|
|
12
12
|
[x: string]: {
|
|
13
|
-
[x: string]: import('tailwind-
|
|
14
|
-
trigger?: import('tailwind-
|
|
15
|
-
popup?: import('tailwind-
|
|
16
|
-
positioner?: import('tailwind-
|
|
17
|
-
arrow?: import('tailwind-
|
|
13
|
+
[x: string]: import('tailwind-variants').ClassValue | {
|
|
14
|
+
trigger?: import('tailwind-variants').ClassValue;
|
|
15
|
+
popup?: import('tailwind-variants').ClassValue;
|
|
16
|
+
positioner?: import('tailwind-variants').ClassValue;
|
|
17
|
+
arrow?: import('tailwind-variants').ClassValue;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
} | {}, {
|
|
@@ -24,11 +24,11 @@ export declare const tooltipVariants: import('tailwind-variants').TVReturnType<{
|
|
|
24
24
|
arrow: string[];
|
|
25
25
|
}, undefined, {
|
|
26
26
|
[key: string]: {
|
|
27
|
-
[key: string]: import('tailwind-
|
|
28
|
-
trigger?: import('tailwind-
|
|
29
|
-
popup?: import('tailwind-
|
|
30
|
-
positioner?: import('tailwind-
|
|
31
|
-
arrow?: import('tailwind-
|
|
27
|
+
[key: string]: import('tailwind-variants').ClassValue | {
|
|
28
|
+
trigger?: import('tailwind-variants').ClassValue;
|
|
29
|
+
popup?: import('tailwind-variants').ClassValue;
|
|
30
|
+
positioner?: import('tailwind-variants').ClassValue;
|
|
31
|
+
arrow?: import('tailwind-variants').ClassValue;
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
} | {}, {
|
|
@@ -36,10 +36,10 @@ export declare const tooltipVariants: import('tailwind-variants').TVReturnType<{
|
|
|
36
36
|
positioner: string;
|
|
37
37
|
popup: string[];
|
|
38
38
|
arrow: string[];
|
|
39
|
-
}, import('tailwind-variants').
|
|
39
|
+
}, import('tailwind-variants').TVReturnTypeLike<unknown, {
|
|
40
40
|
trigger: string;
|
|
41
41
|
positioner: string;
|
|
42
42
|
popup: string[];
|
|
43
43
|
arrow: string[];
|
|
44
|
-
}
|
|
44
|
+
}>>;
|
|
45
45
|
export type TooltipVariants = VariantProps<typeof tooltipVariants>;
|
|
@@ -3,7 +3,7 @@ import { popupMotion as t } from "../../internal/styles/popupMotionStyles.js";
|
|
|
3
3
|
//#region src/components/Tooltip/Tooltip.styles.ts
|
|
4
4
|
var n = e({ slots: {
|
|
5
5
|
trigger: "",
|
|
6
|
-
positioner: "z-
|
|
6
|
+
positioner: "z-(--z-tooltip)",
|
|
7
7
|
popup: [
|
|
8
8
|
"max-w-xs px-[9px] py-1.5 rounded-sm",
|
|
9
9
|
"bg-tooltip-bg text-tooltip-fg shadow-[var(--shadow-pop)]",
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { VariantProps } from '../../internal/tv';
|
|
2
2
|
export declare const typewriterVariants: import('tailwind-variants').TVReturnType<{
|
|
3
3
|
[key: string]: {
|
|
4
|
-
[key: string]: import('tailwind-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
[key: string]: import('tailwind-variants').ClassValue | {
|
|
5
|
+
text?: import('tailwind-variants').ClassValue;
|
|
6
|
+
root?: import('tailwind-variants').ClassValue;
|
|
7
|
+
cursor?: import('tailwind-variants').ClassValue;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
} | {
|
|
11
11
|
[x: string]: {
|
|
12
|
-
[x: string]: import('tailwind-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
[x: string]: import('tailwind-variants').ClassValue | {
|
|
13
|
+
text?: import('tailwind-variants').ClassValue;
|
|
14
|
+
root?: import('tailwind-variants').ClassValue;
|
|
15
|
+
cursor?: import('tailwind-variants').ClassValue;
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
} | {}, {
|
|
@@ -21,19 +21,19 @@ export declare const typewriterVariants: import('tailwind-variants').TVReturnTyp
|
|
|
21
21
|
cursor: string;
|
|
22
22
|
}, undefined, {
|
|
23
23
|
[key: string]: {
|
|
24
|
-
[key: string]: import('tailwind-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
[key: string]: import('tailwind-variants').ClassValue | {
|
|
25
|
+
text?: import('tailwind-variants').ClassValue;
|
|
26
|
+
root?: import('tailwind-variants').ClassValue;
|
|
27
|
+
cursor?: import('tailwind-variants').ClassValue;
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
} | {}, {
|
|
31
31
|
root: string;
|
|
32
32
|
text: string;
|
|
33
33
|
cursor: string;
|
|
34
|
-
}, import('tailwind-variants').
|
|
34
|
+
}, import('tailwind-variants').TVReturnTypeLike<unknown, {
|
|
35
35
|
root: string;
|
|
36
36
|
text: string;
|
|
37
37
|
cursor: string;
|
|
38
|
-
}
|
|
38
|
+
}>>;
|
|
39
39
|
export type TypewriterVariants = VariantProps<typeof typewriterVariants>;
|
|
@@ -30,18 +30,18 @@ function m() {
|
|
|
30
30
|
}, s = [], e[0] = o, e[1] = s) : (o = e[0], s = e[1]), i(o, s), n;
|
|
31
31
|
}
|
|
32
32
|
function h() {
|
|
33
|
-
return typeof globalThis.matchMedia == "function"
|
|
33
|
+
return typeof globalThis.matchMedia == "function" && globalThis.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
34
34
|
}
|
|
35
35
|
function g(n) {
|
|
36
36
|
let r = t(53), u, d, p, h, g, y, b, x, S, C, w;
|
|
37
37
|
r[0] === n ? (u = r[1], d = r[2], p = r[3], h = r[4], g = r[5], y = r[6], b = r[7], x = r[8], S = r[9], C = r[10], w = r[11]) : ({children: u, className: d, cursorClassName: p, delay: y, deleteSpeed: b, loop: x, pauseDuration: S, render: g, showCursor: C, speed: w, ...h} = n, r[0] = n, r[1] = u, r[2] = d, r[3] = p, r[4] = h, r[5] = g, r[6] = y, r[7] = b, r[8] = x, r[9] = S, r[10] = C, r[11] = w);
|
|
38
|
-
let T = y === void 0 ? 0 : y, E = b === void 0 ? 40 : b, D = x
|
|
38
|
+
let T = y === void 0 ? 0 : y, E = b === void 0 ? 40 : b, D = x !== void 0 && x, O = S === void 0 ? 1500 : S, ne = C === void 0 || C, k = w === void 0 ? 80 : w, A, j;
|
|
39
39
|
r[12] === u ? (A = r[13], j = r[14]) : (A = f(u), j = A.map(v).join(" "), r[12] = u, r[13] = A, r[14] = j);
|
|
40
40
|
let M = j, N = e(), P = m(), [F, I] = a(0), [L, R] = a(T > 0 ? "idle" : "typing"), [z, B] = a(0), V = A[F], H;
|
|
41
41
|
r[15] === V ? H = r[16] : (H = V ? [...V.text] : [], r[15] = V, r[16] = H);
|
|
42
42
|
let U = H, W = A.length > 1, G = F < A.length - 1, K = W ? D || G : D, q, J;
|
|
43
43
|
r[17] !== U || r[18] !== T || r[19] !== E || r[20] !== z || r[21] !== G || r[22] !== W || r[23] !== P || r[24] !== A.length || r[25] !== D || r[26] !== O || r[27] !== L || r[28] !== K || r[29] !== k ? (J = () => {
|
|
44
|
-
if (!(A.length === 0
|
|
44
|
+
if (!(P || A.length === 0)) switch (L) {
|
|
45
45
|
case "idle": {
|
|
46
46
|
let e = setTimeout(() => R("typing"), T);
|
|
47
47
|
return () => clearTimeout(e);
|
|
@@ -130,7 +130,7 @@ function g(n) {
|
|
|
130
130
|
props: Q
|
|
131
131
|
}, r[50] = X, r[51] = Q, r[52] = $) : $ = r[52];
|
|
132
132
|
let ie = l($);
|
|
133
|
-
return
|
|
133
|
+
return Y === null && A.length === 0 ? null : ie;
|
|
134
134
|
}
|
|
135
135
|
function ee(e) {
|
|
136
136
|
return e + 1;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export declare const virtualListVariants: import('tailwind-variants').TVReturnType<{
|
|
2
2
|
[key: string]: {
|
|
3
|
-
[key: string]: import('tailwind-
|
|
4
|
-
root?: import('tailwind-
|
|
5
|
-
item?: import('tailwind-
|
|
6
|
-
inner?: import('tailwind-
|
|
3
|
+
[key: string]: import('tailwind-variants').ClassValue | {
|
|
4
|
+
root?: import('tailwind-variants').ClassValue;
|
|
5
|
+
item?: import('tailwind-variants').ClassValue;
|
|
6
|
+
inner?: import('tailwind-variants').ClassValue;
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
9
|
} | {
|
|
10
10
|
[x: string]: {
|
|
11
|
-
[x: string]: import('tailwind-
|
|
12
|
-
root?: import('tailwind-
|
|
13
|
-
item?: import('tailwind-
|
|
14
|
-
inner?: import('tailwind-
|
|
11
|
+
[x: string]: import('tailwind-variants').ClassValue | {
|
|
12
|
+
root?: import('tailwind-variants').ClassValue;
|
|
13
|
+
item?: import('tailwind-variants').ClassValue;
|
|
14
|
+
inner?: import('tailwind-variants').ClassValue;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
} | {}, {
|
|
@@ -20,18 +20,18 @@ export declare const virtualListVariants: import('tailwind-variants').TVReturnTy
|
|
|
20
20
|
item: string;
|
|
21
21
|
}, undefined, {
|
|
22
22
|
[key: string]: {
|
|
23
|
-
[key: string]: import('tailwind-
|
|
24
|
-
root?: import('tailwind-
|
|
25
|
-
item?: import('tailwind-
|
|
26
|
-
inner?: import('tailwind-
|
|
23
|
+
[key: string]: import('tailwind-variants').ClassValue | {
|
|
24
|
+
root?: import('tailwind-variants').ClassValue;
|
|
25
|
+
item?: import('tailwind-variants').ClassValue;
|
|
26
|
+
inner?: import('tailwind-variants').ClassValue;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
} | {}, {
|
|
30
30
|
root: string;
|
|
31
31
|
inner: string;
|
|
32
32
|
item: string;
|
|
33
|
-
}, import('tailwind-variants').
|
|
33
|
+
}, import('tailwind-variants').TVReturnTypeLike<unknown, {
|
|
34
34
|
root: string;
|
|
35
35
|
inner: string;
|
|
36
36
|
item: string;
|
|
37
|
-
}
|
|
37
|
+
}>>;
|
|
@@ -10,7 +10,9 @@ interface OxAuthProviderProps {
|
|
|
10
10
|
revalidateOnFocus?: boolean;
|
|
11
11
|
}
|
|
12
12
|
interface OxAuthContextValue {
|
|
13
|
-
/**
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 = () => (
|
|
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
|
|
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,
|
package/dist/hooks.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useOxMediaQuery as e } from "./hooks/useMediaQuery/useMediaQuery.js";
|
|
2
2
|
import { useOxPagination as t } from "./hooks/usePagination/usePagination.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { useOxVirtualizer as n } from "./hooks/useVirtualizer/useVirtualizer.js";
|
|
4
|
+
import { oxBreakpoints as r, useOxBreakpoint as i, useOxBreakpointDown as a, useOxBreakpointUp as o } from "./hooks/useBreakpoint/useBreakpoint.js";
|
|
5
5
|
import { useOxCommandShortcut as s } from "./hooks/useCommandShortcut/useCommandShortcut.js";
|
|
6
6
|
import { useOxDebounce as c, useOxDebouncedValue as l } from "./hooks/useDebounce/useDebounce.js";
|
|
7
7
|
import { OxFormErrors as u, formErrors as d, useOxForm as f } from "./hooks/useForm/useForm.js";
|
|
@@ -11,4 +11,4 @@ import { useOxPoll as h } from "./hooks/usePoll/usePoll.js";
|
|
|
11
11
|
import { useOxQuery as g } from "./hooks/useQuery/useQuery.js";
|
|
12
12
|
import { oxHistoryStateAdapter as _, oxLocalStorageAdapter as v, oxSessionStorageAdapter as y } from "./hooks/useRemember/useRemember.adapters.js";
|
|
13
13
|
import { useOxRemember as b } from "./hooks/useRemember/useRemember.js";
|
|
14
|
-
export { u as OxFormErrors, d as formErrors,
|
|
14
|
+
export { u as OxFormErrors, d as formErrors, r as oxBreakpoints, _ as oxHistoryStateAdapter, v as oxLocalStorageAdapter, y as oxSessionStorageAdapter, p as standardSchemaResolver, i as useOxBreakpoint, a as useOxBreakpointDown, o as useOxBreakpointUp, s as useOxCommandShortcut, c as useOxDebounce, l as useOxDebouncedValue, m as useOxFilter, f as useOxForm, e as useOxMediaQuery, t as useOxPagination, h as useOxPoll, g as useOxQuery, b as useOxRemember, n as useOxVirtualizer };
|
package/dist/index.js
CHANGED
|
@@ -24,29 +24,29 @@ import { OxInput as D } from "./components/Input/index.js";
|
|
|
24
24
|
import { OxCopyInput as O } from "./components/CopyInput/CopyInput.js";
|
|
25
25
|
import { OxPagination as k } from "./components/Pagination/index.js";
|
|
26
26
|
import { OxPopover as A } from "./components/Popover/index.js";
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
27
|
+
import { OxScrollArea as j } from "./components/ScrollArea/ScrollArea2.js";
|
|
28
|
+
import { OxSkeleton as M } from "./components/Skeleton/Skeleton2.js";
|
|
29
|
+
import { OxTable as N } from "./components/Table/index.js";
|
|
30
|
+
import { OxDataTable as P } from "./components/DataTable/index.js";
|
|
31
|
+
import { OxDescriptionList as F } from "./components/DescriptionList/index.js";
|
|
32
|
+
import { OxDialog as I } from "./components/Dialog/index.js";
|
|
33
|
+
import { OxDrawer as L } from "./components/Drawer/index.js";
|
|
34
|
+
import { OxField as R } from "./components/Field/index.js";
|
|
35
|
+
import { OxFieldset as z } from "./components/Fieldset/index.js";
|
|
36
|
+
import { OxFooter as B } from "./components/Footer/index.js";
|
|
37
|
+
import { OxHeader as V } from "./components/Header/index.js";
|
|
38
|
+
import { OxHoldToDelete as H } from "./components/HoldToDelete/HoldToDelete2.js";
|
|
39
|
+
import { OxKbd as U } from "./components/Kbd/Kbd.js";
|
|
40
|
+
import { OxMain as W } from "./components/Main/Main.js";
|
|
41
|
+
import { OxMeter as G } from "./components/Meter/index.js";
|
|
42
|
+
import { OxNavigationMenu as K } from "./components/NavigationMenu/index.js";
|
|
43
|
+
import { OxNumberInput as q } from "./components/NumberInput/index.js";
|
|
44
|
+
import { OxOtpField as J } from "./components/OtpField/OtpField.js";
|
|
45
|
+
import { OxPageProgress as Y } from "./components/PageProgress/PageProgress.js";
|
|
46
|
+
import { OxProgress as X } from "./components/Progress/index.js";
|
|
47
|
+
import { OxRadio as Z, OxRadioGroup as Q } from "./components/Radio/Radio.js";
|
|
48
|
+
import { OxResponsiveOverlay as $ } from "./components/ResponsiveOverlay/index.js";
|
|
49
|
+
import { OxSelect as ee } from "./components/Select/index.js";
|
|
50
50
|
import { OxSeparator as te } from "./components/Separator/Separator.js";
|
|
51
51
|
import { OxSidebar as ne } from "./components/Sidebar/index.js";
|
|
52
52
|
import { OxTooltip as re, OxTooltipProvider as ie } from "./components/Tooltip/Tooltip.js";
|
|
@@ -63,4 +63,4 @@ import { OxToast as ge } from "./components/Toast/index.js";
|
|
|
63
63
|
import { OxToggle as _e } from "./components/Toggle/index.js";
|
|
64
64
|
import { OxTypewriter as ve } from "./components/Typewriter/index.js";
|
|
65
65
|
import { OxVirtualList as ye } from "./components/VirtualList/VirtualList.js";
|
|
66
|
-
export { e as OxAccordion, t as OxAlert, r as OxAlertDialog, i as OxAnimatedGradientText, a as OxAppLayout, s as OxAutocomplete, u as OxAvatar, d as OxAvatarGroup, f as OxBadge, m as OxBlurSwitch, g as OxBreadcrumb, p as OxButton, _ as OxCard, C as OxCheckbox, w as OxCheckboxGroup, de as OxChip, v as OxCollapsible, y as OxCombobox, S as OxCommand, T as OxContextMenu, E as OxCopyButton, O as OxCopyInput,
|
|
66
|
+
export { e as OxAccordion, t as OxAlert, r as OxAlertDialog, i as OxAnimatedGradientText, a as OxAppLayout, s as OxAutocomplete, u as OxAvatar, d as OxAvatarGroup, f as OxBadge, m as OxBlurSwitch, g as OxBreadcrumb, p as OxButton, _ as OxCard, C as OxCheckbox, w as OxCheckboxGroup, de as OxChip, v as OxCollapsible, y as OxCombobox, S as OxCommand, T as OxContextMenu, E as OxCopyButton, O as OxCopyInput, P as OxDataTable, F as OxDescriptionList, I as OxDialog, L as OxDrawer, h as OxDropdown, R as OxField, z as OxFieldset, B as OxFooter, V as OxHeader, H as OxHoldToDelete, n as OxIconTile, D as OxInput, U as OxKbd, W as OxMain, G as OxMeter, K as OxNavigationMenu, q as OxNumberInput, J as OxOtpField, Y as OxPageProgress, k as OxPagination, A as OxPopover, X as OxProgress, Z as OxRadio, Q as OxRadioGroup, $ as OxResponsiveOverlay, j as OxScrollArea, ee as OxSelect, te as OxSeparator, ne as OxSidebar, ae as OxSidebarRail, M as OxSkeleton, le as OxSlider, o as OxSpinner, ue as OxStatusDisplay, oe as OxSwitch, se as OxTabBar, N as OxTable, ce as OxTabs, fe as OxTextarea, ge as OxToast, _e as OxToggle, re as OxTooltip, ie as OxTooltipProvider, ve as OxTypewriter, ye as OxVirtualList, pe as createOxToastManager, me as oxToast, c as useOxAutocompleteFilter, l as useOxAutocompleteFilteredItems, b as useOxComboboxFilter, x as useOxComboboxFilteredItems, he as useOxToast };
|