@noxickon/onyx 6.7.0 → 6.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +396 -328
- package/dist/components/DataTable/DataTable.styles.d.ts +26 -5
- package/dist/components/DataTable/DataTable.styles.js +17 -7
- package/dist/components/DataTable/DataTable.types.d.ts +10 -0
- 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 +1 -1
- 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.js +1 -1
- package/dist/components/Table/Table.styles.d.ts +8 -8
- package/dist/components/Table/Table.styles.js +11 -11
- 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/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
|
@@ -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,
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { c as e } from "react/compiler-runtime";
|
|
2
2
|
import { useEffect as t, useRef as n, useState as r } from "react";
|
|
3
|
-
import { cloneDeep as i, isEqual as
|
|
4
|
-
import { get as
|
|
3
|
+
import { cloneDeep as i, isEqual as a } from "es-toolkit";
|
|
4
|
+
import { get as ee, has as te, set as o } from "es-toolkit/compat";
|
|
5
5
|
//#region src/internal/hooks/useFormState/useFormState.ts
|
|
6
|
-
var
|
|
7
|
-
function
|
|
6
|
+
var ne = 2e3, re = (e) => e;
|
|
7
|
+
function ie(e) {
|
|
8
8
|
let t = {};
|
|
9
9
|
for (let [n, r] of Object.entries(e)) r !== void 0 && (t[n] = r.message ?? r.type ?? "");
|
|
10
10
|
return t;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
let
|
|
14
|
-
|
|
15
|
-
let
|
|
16
|
-
|
|
17
|
-
let [
|
|
18
|
-
|
|
19
|
-
let [
|
|
20
|
-
|
|
21
|
-
let [
|
|
22
|
-
|
|
23
|
-
T.current =
|
|
24
|
-
},
|
|
12
|
+
function ae(ae) {
|
|
13
|
+
let s = e(50), { data: c, resolver: l } = ae, u = typeof c == "function", d;
|
|
14
|
+
s[0] !== c || s[1] !== u ? (d = () => u ? c() : c, s[0] = c, s[1] = u, s[2] = d) : d = s[2];
|
|
15
|
+
let f = d, p;
|
|
16
|
+
s[3] === f ? p = s[4] : (p = () => i(f()), s[3] = f, s[4] = p);
|
|
17
|
+
let [m, oe] = r(p), h;
|
|
18
|
+
s[5] === f ? h = s[6] : (h = () => i(f()), s[5] = f, s[6] = h);
|
|
19
|
+
let [g, _] = r(h), v;
|
|
20
|
+
s[7] === Symbol.for("react.memo_cache_sentinel") ? (v = {}, s[7] = v) : v = s[7];
|
|
21
|
+
let [y, b] = r(v), [se, ce] = r(!1), [x, le] = r(null), [S, ue] = r(!1), [C, w] = r(!1), T = n(m), de = n(re), fe = n(l), E = n(void 0), D = n(!1), O = n(!1), k;
|
|
22
|
+
s[8] === m ? k = s[9] : (k = () => {
|
|
23
|
+
T.current = m;
|
|
24
|
+
}, s[8] = m, s[9] = k), t(k);
|
|
25
25
|
let A;
|
|
26
|
-
|
|
27
|
-
fe.current =
|
|
28
|
-
},
|
|
26
|
+
s[10] === l ? A = s[11] : (A = () => {
|
|
27
|
+
fe.current = l;
|
|
28
|
+
}, s[10] = l, s[11] = A), t(A);
|
|
29
29
|
let j, M;
|
|
30
|
-
|
|
30
|
+
s[12] === Symbol.for("react.memo_cache_sentinel") ? (j = () => (O.current = !0, () => {
|
|
31
31
|
O.current = !1, E.current !== void 0 && clearTimeout(E.current);
|
|
32
|
-
}), M = [],
|
|
32
|
+
}), M = [], s[12] = j, s[13] = M) : (j = s[12], M = s[13]), t(j, M);
|
|
33
33
|
let N;
|
|
34
|
-
|
|
35
|
-
T.current = e,
|
|
36
|
-
},
|
|
34
|
+
s[14] === Symbol.for("react.memo_cache_sentinel") ? (N = function(e) {
|
|
35
|
+
T.current = e, oe(e);
|
|
36
|
+
}, s[14] = N) : N = s[14];
|
|
37
37
|
let P = N, F;
|
|
38
|
-
|
|
38
|
+
s[15] === Symbol.for("react.memo_cache_sentinel") ? (F = function(...e) {
|
|
39
39
|
let t = e;
|
|
40
40
|
if (t.length === 1) {
|
|
41
41
|
let [e] = t;
|
|
@@ -46,113 +46,113 @@ function oe(oe) {
|
|
|
46
46
|
P(e);
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
|
-
let [n, r] = t,
|
|
50
|
-
P(
|
|
49
|
+
let [n, r] = t, a = o(i(T.current), n, r);
|
|
50
|
+
P(a), b((e) => {
|
|
51
51
|
if (!Object.prototype.hasOwnProperty.call(e, n)) return e;
|
|
52
52
|
let t = { ...e };
|
|
53
53
|
return delete t[n], t;
|
|
54
54
|
});
|
|
55
|
-
},
|
|
55
|
+
}, s[15] = F) : F = s[15];
|
|
56
56
|
let pe = F, I;
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
s[16] === Symbol.for("react.memo_cache_sentinel") ? (I = function(e, t) {
|
|
58
|
+
b((n) => typeof e == "string" ? {
|
|
59
59
|
...n,
|
|
60
60
|
[e]: t ?? ""
|
|
61
61
|
} : {
|
|
62
62
|
...n,
|
|
63
63
|
...e
|
|
64
64
|
});
|
|
65
|
-
},
|
|
65
|
+
}, s[16] = I) : I = s[16];
|
|
66
66
|
let me = I, L;
|
|
67
|
-
|
|
67
|
+
s[17] === Symbol.for("react.memo_cache_sentinel") ? (L = function(...e) {
|
|
68
68
|
let t = e;
|
|
69
69
|
if (t.length === 0) {
|
|
70
|
-
|
|
70
|
+
b({});
|
|
71
71
|
return;
|
|
72
72
|
}
|
|
73
|
-
|
|
73
|
+
b((e) => {
|
|
74
74
|
let n = { ...e };
|
|
75
75
|
for (let e of t) delete n[e];
|
|
76
76
|
return n;
|
|
77
77
|
});
|
|
78
|
-
},
|
|
78
|
+
}, s[17] = L) : L = s[17];
|
|
79
79
|
let he = L, R;
|
|
80
|
-
|
|
81
|
-
if (
|
|
80
|
+
s[18] === u ? R = s[19] : (R = function(e, t) {
|
|
81
|
+
if (u) throw Error("useFormState: setDefaults() cannot be called when data was provided as a function");
|
|
82
82
|
if (D.current = !0, e === void 0) {
|
|
83
|
-
|
|
83
|
+
_(T.current);
|
|
84
84
|
return;
|
|
85
85
|
}
|
|
86
86
|
if (typeof e == "string") {
|
|
87
|
-
|
|
87
|
+
_((n) => o(i(n), e, t));
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
90
|
-
|
|
90
|
+
_((t) => ({
|
|
91
91
|
...t,
|
|
92
92
|
...e
|
|
93
93
|
}));
|
|
94
|
-
},
|
|
94
|
+
}, s[18] = u, s[19] = R);
|
|
95
95
|
let z = R, B;
|
|
96
|
-
|
|
97
|
-
let t = e, n =
|
|
96
|
+
s[20] !== g || s[21] !== u || s[22] !== f ? (B = function(...e) {
|
|
97
|
+
let t = e, n = u ? f() : g, r = i(n);
|
|
98
98
|
if (t.length === 0) {
|
|
99
|
-
|
|
99
|
+
u && _(r), P(r);
|
|
100
100
|
return;
|
|
101
101
|
}
|
|
102
|
-
|
|
103
|
-
let
|
|
104
|
-
for (let e of t)
|
|
105
|
-
return
|
|
102
|
+
u && _((e) => {
|
|
103
|
+
let n = i(e);
|
|
104
|
+
for (let e of t) te(r, e) && o(n, e, ee(r, e));
|
|
105
|
+
return n;
|
|
106
106
|
});
|
|
107
|
-
let
|
|
108
|
-
for (let e of t)
|
|
109
|
-
P(
|
|
110
|
-
},
|
|
107
|
+
let a = i(T.current);
|
|
108
|
+
for (let e of t) te(r, e) && o(a, e, ee(r, e));
|
|
109
|
+
P(a);
|
|
110
|
+
}, s[20] = g, s[21] = u, s[22] = f, s[23] = B) : B = s[23];
|
|
111
111
|
let V = B, H;
|
|
112
|
-
|
|
112
|
+
s[24] === V ? H = s[25] : (H = function(...e) {
|
|
113
113
|
let t = e;
|
|
114
114
|
V(...t), he(...t);
|
|
115
|
-
},
|
|
115
|
+
}, s[24] = V, s[25] = H);
|
|
116
116
|
let U = H, W;
|
|
117
|
-
|
|
117
|
+
s[26] === Symbol.for("react.memo_cache_sentinel") ? (W = function(e) {
|
|
118
118
|
de.current = e;
|
|
119
|
-
},
|
|
119
|
+
}, s[26] = W) : W = s[26];
|
|
120
120
|
let ge = W, G;
|
|
121
|
-
|
|
121
|
+
s[27] === Symbol.for("react.memo_cache_sentinel") ? (G = async function() {
|
|
122
122
|
let e = fe.current;
|
|
123
123
|
if (!e) return null;
|
|
124
124
|
let t = (await e(T.current, void 0, {
|
|
125
125
|
criteriaMode: "firstError",
|
|
126
126
|
fields: {}
|
|
127
127
|
})).errors;
|
|
128
|
-
if (Object.keys(t).length === 0) return
|
|
129
|
-
let n =
|
|
130
|
-
return
|
|
131
|
-
},
|
|
128
|
+
if (Object.keys(t).length === 0) return b({}), null;
|
|
129
|
+
let n = ie(t);
|
|
130
|
+
return b(n), n;
|
|
131
|
+
}, s[27] = G) : G = s[27];
|
|
132
132
|
let _e = G, K;
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
s[28] === Symbol.for("react.memo_cache_sentinel") ? (K = function() {
|
|
134
|
+
b({}), ue(!0), w(!0), E.current !== void 0 && clearTimeout(E.current), E.current = setTimeout(() => {
|
|
135
135
|
O.current && w(!1);
|
|
136
|
-
},
|
|
137
|
-
},
|
|
136
|
+
}, ne);
|
|
137
|
+
}, s[28] = K) : K = s[28];
|
|
138
138
|
let ve = K, q;
|
|
139
|
-
|
|
139
|
+
s[29] === Symbol.for("react.memo_cache_sentinel") ? (q = function() {
|
|
140
140
|
ue(!1), w(!1), D.current = !1, E.current !== void 0 && (clearTimeout(E.current), E.current = void 0);
|
|
141
|
-
},
|
|
141
|
+
}, s[29] = q) : q = s[29];
|
|
142
142
|
let ye = q, J;
|
|
143
|
-
|
|
143
|
+
s[30] === Symbol.for("react.memo_cache_sentinel") ? (J = function() {
|
|
144
144
|
ce(!1), le(null);
|
|
145
|
-
},
|
|
145
|
+
}, s[30] = J) : J = s[30];
|
|
146
146
|
let be = J, Y;
|
|
147
|
-
|
|
147
|
+
s[31] === y ? Y = s[32] : (Y = Object.keys(y), s[31] = y, s[32] = Y);
|
|
148
148
|
let X = Y.length > 0, Z;
|
|
149
|
-
|
|
149
|
+
s[33] !== m || s[34] !== g ? (Z = a(m, g), s[33] = m, s[34] = g, s[35] = Z) : Z = s[35];
|
|
150
150
|
let xe = !Z, Q;
|
|
151
|
-
|
|
152
|
-
data:
|
|
153
|
-
errors:
|
|
151
|
+
s[36] !== m || s[37] !== y || s[38] !== se || s[39] !== x || s[40] !== C || s[41] !== V || s[42] !== U || s[43] !== z || s[44] !== X || s[45] !== xe || s[46] !== S ? (Q = {
|
|
152
|
+
data: m,
|
|
153
|
+
errors: y,
|
|
154
154
|
hasErrors: X,
|
|
155
|
-
processing:
|
|
155
|
+
processing: se,
|
|
156
156
|
progress: x,
|
|
157
157
|
wasSuccessful: S,
|
|
158
158
|
recentlySuccessful: C,
|
|
@@ -165,11 +165,11 @@ function oe(oe) {
|
|
|
165
165
|
clearErrors: he,
|
|
166
166
|
transform: ge,
|
|
167
167
|
validate: _e
|
|
168
|
-
},
|
|
168
|
+
}, s[36] = m, s[37] = y, s[38] = se, s[39] = x, s[40] = C, s[41] = V, s[42] = U, s[43] = z, s[44] = X, s[45] = xe, s[46] = S, s[47] = Q) : Q = s[47];
|
|
169
169
|
let Se = Q, $;
|
|
170
|
-
return
|
|
170
|
+
return s[48] === Se ? $ = s[49] : ($ = {
|
|
171
171
|
form: Se,
|
|
172
|
-
setDefaultsState:
|
|
172
|
+
setDefaultsState: _,
|
|
173
173
|
transformRef: de,
|
|
174
174
|
dataRef: T,
|
|
175
175
|
isMounted: O,
|
|
@@ -179,7 +179,7 @@ function oe(oe) {
|
|
|
179
179
|
defaultsCalledInOnSuccessRef: D,
|
|
180
180
|
resetBeforeSubmit: ye,
|
|
181
181
|
finishProcessing: be
|
|
182
|
-
},
|
|
182
|
+
}, s[48] = Se, s[49] = $), $;
|
|
183
183
|
}
|
|
184
184
|
//#endregion
|
|
185
|
-
export {
|
|
185
|
+
export { ne as RECENTLY_SUCCESSFUL_DURATION_MS, ae as useFormState };
|
|
@@ -28,61 +28,61 @@ export declare const createInlineAddonVariants: ({ inlinePadding, surface, }: {
|
|
|
28
28
|
surface: string;
|
|
29
29
|
}) => import('tailwind-variants').TVReturnType<{
|
|
30
30
|
variant: {
|
|
31
|
-
separated:
|
|
32
|
-
inline:
|
|
31
|
+
separated: "has-[>svg:only-child]:min-w-[calc(var(--control-h-md)-2px)] has-[>svg:only-child]:justify-center has-[>svg:only-child]:px-0";
|
|
32
|
+
inline: "";
|
|
33
33
|
};
|
|
34
34
|
align: {
|
|
35
|
-
'inline-start':
|
|
36
|
-
'inline-end':
|
|
35
|
+
'inline-start': "";
|
|
36
|
+
'inline-end': "";
|
|
37
37
|
};
|
|
38
38
|
}, undefined, undefined, {
|
|
39
39
|
variant: {
|
|
40
|
-
separated:
|
|
41
|
-
inline:
|
|
40
|
+
separated: "has-[>svg:only-child]:min-w-[calc(var(--control-h-md)-2px)] has-[>svg:only-child]:justify-center has-[>svg:only-child]:px-0";
|
|
41
|
+
inline: "";
|
|
42
42
|
};
|
|
43
43
|
align: {
|
|
44
|
-
'inline-start':
|
|
45
|
-
'inline-end':
|
|
44
|
+
'inline-start': "";
|
|
45
|
+
'inline-end': "";
|
|
46
46
|
};
|
|
47
|
-
}, undefined, import('tailwind-variants').
|
|
47
|
+
}, undefined, import('tailwind-variants').TVReturnTypeLike<{
|
|
48
48
|
variant: {
|
|
49
|
-
separated:
|
|
50
|
-
inline:
|
|
49
|
+
separated: "has-[>svg:only-child]:min-w-[calc(var(--control-h-md)-2px)] has-[>svg:only-child]:justify-center has-[>svg:only-child]:px-0";
|
|
50
|
+
inline: "";
|
|
51
51
|
};
|
|
52
52
|
align: {
|
|
53
|
-
'inline-start':
|
|
54
|
-
'inline-end':
|
|
53
|
+
'inline-start': "";
|
|
54
|
+
'inline-end': "";
|
|
55
55
|
};
|
|
56
|
-
}, undefined
|
|
56
|
+
}, undefined>>;
|
|
57
57
|
export declare const createBlockAddonVariants: ({ inlineBorder, surface, }: {
|
|
58
58
|
inlineBorder?: boolean;
|
|
59
59
|
surface: string;
|
|
60
60
|
}) => import('tailwind-variants').TVReturnType<{
|
|
61
61
|
variant: {
|
|
62
|
-
separated:
|
|
63
|
-
inline:
|
|
62
|
+
separated: "";
|
|
63
|
+
inline: "";
|
|
64
64
|
};
|
|
65
65
|
align: {
|
|
66
|
-
'block-start':
|
|
67
|
-
'block-end':
|
|
66
|
+
'block-start': "" | "border-b border-line";
|
|
67
|
+
'block-end': "" | "border-t border-line";
|
|
68
68
|
};
|
|
69
69
|
}, undefined, undefined, {
|
|
70
70
|
variant: {
|
|
71
|
-
separated:
|
|
72
|
-
inline:
|
|
71
|
+
separated: "";
|
|
72
|
+
inline: "";
|
|
73
73
|
};
|
|
74
74
|
align: {
|
|
75
|
-
'block-start':
|
|
76
|
-
'block-end':
|
|
75
|
+
'block-start': "" | "border-b border-line";
|
|
76
|
+
'block-end': "" | "border-t border-line";
|
|
77
77
|
};
|
|
78
|
-
}, undefined, import('tailwind-variants').
|
|
78
|
+
}, undefined, import('tailwind-variants').TVReturnTypeLike<{
|
|
79
79
|
variant: {
|
|
80
|
-
separated:
|
|
81
|
-
inline:
|
|
80
|
+
separated: "";
|
|
81
|
+
inline: "";
|
|
82
82
|
};
|
|
83
83
|
align: {
|
|
84
|
-
'block-start':
|
|
85
|
-
'block-end':
|
|
84
|
+
'block-start': "" | "border-b border-line";
|
|
85
|
+
'block-end': "" | "border-t border-line";
|
|
86
86
|
};
|
|
87
|
-
}, undefined
|
|
87
|
+
}, undefined>>;
|
|
88
88
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const dialogBackdrop: string[];
|
|
2
|
-
export declare const dialogViewport = "fixed inset-0 z-
|
|
2
|
+
export declare const dialogViewport = "fixed inset-0 z-(--z-dialog) flex justify-center";
|
|
3
3
|
export declare const dialogPanel: string[];
|
|
4
4
|
export declare const dialogTitle = "break-words text-base font-semibold tracking-tight text-fg";
|
|
5
5
|
export declare const dialogDescription = "mt-1.5 break-words text-body leading-relaxed text-fg-muted";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
//#region src/internal/styles/dialogSurfaceStyles.ts
|
|
2
2
|
var e = [
|
|
3
|
-
"fixed inset-0 z-
|
|
3
|
+
"fixed inset-0 z-(--z-dialog) bg-scrim backdrop-blur-xs",
|
|
4
4
|
"transition-[opacity,backdrop-filter] duration-200 ease-out-quint motion-reduce:transition-[opacity]",
|
|
5
5
|
"ox-starting:opacity-0 ox-starting:backdrop-blur-[0px]",
|
|
6
6
|
"ox-ending:opacity-0 ox-ending:backdrop-blur-[0px] ox-ending:duration-150"
|
|
7
|
-
], t = "fixed inset-0 z-
|
|
7
|
+
], t = "fixed inset-0 z-(--z-dialog) flex justify-center", n = [
|
|
8
8
|
"relative flex w-full max-w-[27rem] flex-col overflow-hidden p-5",
|
|
9
9
|
"rounded-card border border-line-overlay bg-card shadow-[var(--shadow-dialog)]",
|
|
10
10
|
"transition-[opacity,transform,translate,scale] duration-240 ease-out-quint motion-reduce:transition-[opacity]",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const menuPositioner = "z-
|
|
1
|
+
export declare const menuPositioner = "z-(--z-dropdown)";
|
|
2
2
|
export declare const menuSurface = "rounded-control border border-line-overlay bg-popover shadow-[var(--shadow-pop)]";
|
|
3
3
|
export declare const menuPopup: string[];
|
|
4
4
|
export declare const menuItem: string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { popupMotion as e } from "./popupMotionStyles.js";
|
|
2
2
|
//#region src/internal/styles/menuSurfaceStyles.ts
|
|
3
|
-
var t = "text-3xs font-semibold uppercase tracking-wider text-fg-subtle", n = "z-
|
|
3
|
+
var t = "text-3xs font-semibold uppercase tracking-wider text-fg-subtle", n = "z-(--z-dropdown)", r = "rounded-control border border-line-overlay bg-popover shadow-[var(--shadow-pop)]", i = [
|
|
4
4
|
"overflow-y-auto p-1.5",
|
|
5
5
|
r,
|
|
6
6
|
"max-w-[var(--available-width)] max-h-[var(--available-height)]",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const stackedLayers: string[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region src/internal/styles/tableCellStyles.ts
|
|
2
|
+
var e = "px-4 align-middle pointer-coarse:px-3.5 pointer-coarse:py-3 pointer-coarse:whitespace-nowrap", t = {
|
|
3
|
+
comfortable: "py-2.75",
|
|
4
|
+
compact: "py-1.5"
|
|
5
|
+
};
|
|
6
|
+
//#endregion
|
|
7
|
+
export { e as tableCellBase, t as tableCellPadding };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { VariantProps } from '../internal/tv';
|
|
2
|
-
export declare const richEditorContentVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').
|
|
2
|
+
export declare const richEditorContentVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
3
3
|
export type RichEditorContentVariants = VariantProps<typeof richEditorContentVariants>;
|
|
4
4
|
export declare const richEditorGroupVariants: import('tailwind-variants').TVReturnType<{
|
|
5
5
|
[key: string]: {
|
|
6
|
-
[key: string]: import('tailwind-
|
|
7
|
-
base?: import('tailwind-
|
|
8
|
-
addon?: import('tailwind-
|
|
6
|
+
[key: string]: import('tailwind-variants').ClassValue | {
|
|
7
|
+
base?: import('tailwind-variants').ClassValue;
|
|
8
|
+
addon?: import('tailwind-variants').ClassValue;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
} | {
|
|
12
12
|
[x: string]: {
|
|
13
|
-
[x: string]: import('tailwind-
|
|
14
|
-
base?: import('tailwind-
|
|
15
|
-
addon?: import('tailwind-
|
|
13
|
+
[x: string]: import('tailwind-variants').ClassValue | {
|
|
14
|
+
base?: import('tailwind-variants').ClassValue;
|
|
15
|
+
addon?: import('tailwind-variants').ClassValue;
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
} | {}, {
|
|
@@ -20,63 +20,63 @@ export declare const richEditorGroupVariants: import('tailwind-variants').TVRetu
|
|
|
20
20
|
addon: string[];
|
|
21
21
|
}, undefined, {
|
|
22
22
|
[key: string]: {
|
|
23
|
-
[key: string]: import('tailwind-
|
|
24
|
-
base?: import('tailwind-
|
|
25
|
-
addon?: import('tailwind-
|
|
23
|
+
[key: string]: import('tailwind-variants').ClassValue | {
|
|
24
|
+
base?: import('tailwind-variants').ClassValue;
|
|
25
|
+
addon?: import('tailwind-variants').ClassValue;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
} | {}, {
|
|
29
29
|
base: string[];
|
|
30
30
|
addon: string[];
|
|
31
|
-
}, import('tailwind-variants').
|
|
31
|
+
}, import('tailwind-variants').TVReturnTypeLike<unknown, {
|
|
32
32
|
base: string[];
|
|
33
33
|
addon: string[];
|
|
34
|
-
}
|
|
34
|
+
}>>;
|
|
35
35
|
export type RichEditorGroupVariants = VariantProps<typeof richEditorGroupVariants>;
|
|
36
36
|
export declare const richEditorAddonVariants: import('tailwind-variants').TVReturnType<{
|
|
37
37
|
variant: {
|
|
38
|
-
separated:
|
|
39
|
-
inline:
|
|
38
|
+
separated: "";
|
|
39
|
+
inline: "";
|
|
40
40
|
};
|
|
41
41
|
align: {
|
|
42
|
-
'block-start':
|
|
43
|
-
'block-end':
|
|
42
|
+
'block-start': "" | "border-b border-line";
|
|
43
|
+
'block-end': "" | "border-t border-line";
|
|
44
44
|
};
|
|
45
45
|
}, undefined, undefined, {
|
|
46
46
|
variant: {
|
|
47
|
-
separated:
|
|
48
|
-
inline:
|
|
47
|
+
separated: "";
|
|
48
|
+
inline: "";
|
|
49
49
|
};
|
|
50
50
|
align: {
|
|
51
|
-
'block-start':
|
|
52
|
-
'block-end':
|
|
51
|
+
'block-start': "" | "border-b border-line";
|
|
52
|
+
'block-end': "" | "border-t border-line";
|
|
53
53
|
};
|
|
54
|
-
}, undefined, import('tailwind-variants').
|
|
54
|
+
}, undefined, import('tailwind-variants').TVReturnTypeLike<{
|
|
55
55
|
variant: {
|
|
56
|
-
separated:
|
|
57
|
-
inline:
|
|
56
|
+
separated: "";
|
|
57
|
+
inline: "";
|
|
58
58
|
};
|
|
59
59
|
align: {
|
|
60
|
-
'block-start':
|
|
61
|
-
'block-end':
|
|
60
|
+
'block-start': "" | "border-b border-line";
|
|
61
|
+
'block-end': "" | "border-t border-line";
|
|
62
62
|
};
|
|
63
|
-
}, undefined
|
|
63
|
+
}, undefined>>;
|
|
64
64
|
export declare const richEditorButtonGroupVariants: import('tailwind-variants').TVReturnType<{
|
|
65
65
|
orientation: {
|
|
66
|
-
horizontal:
|
|
67
|
-
vertical:
|
|
66
|
+
horizontal: "";
|
|
67
|
+
vertical: "";
|
|
68
68
|
};
|
|
69
69
|
}, undefined, string[], {
|
|
70
70
|
orientation: {
|
|
71
|
-
horizontal:
|
|
72
|
-
vertical:
|
|
71
|
+
horizontal: "";
|
|
72
|
+
vertical: "";
|
|
73
73
|
};
|
|
74
|
-
}, undefined, import('tailwind-variants').
|
|
74
|
+
}, undefined, import('tailwind-variants').TVReturnTypeLike<{
|
|
75
75
|
orientation: {
|
|
76
|
-
horizontal:
|
|
77
|
-
vertical:
|
|
76
|
+
horizontal: "";
|
|
77
|
+
vertical: "";
|
|
78
78
|
};
|
|
79
|
-
}, undefined
|
|
79
|
+
}, undefined>>;
|
|
80
80
|
export type RichEditorButtonGroupVariants = VariantProps<typeof richEditorButtonGroupVariants>;
|
|
81
|
-
export declare const richEditorControlVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').
|
|
82
|
-
export declare const richEditorHeadingSelectVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').
|
|
81
|
+
export declare const richEditorControlVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
82
|
+
export declare const richEditorHeadingSelectVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|