@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
|
@@ -1,33 +1,60 @@
|
|
|
1
1
|
import { VariantProps } from '../../internal/tv';
|
|
2
2
|
export declare const holdToDeleteVariants: import('tailwind-variants').TVReturnType<{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
isHolding: {
|
|
4
|
+
true: {
|
|
5
|
+
icon: string;
|
|
6
|
+
label: string;
|
|
7
|
+
holdLabel: string;
|
|
7
8
|
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
16
|
+
fill: string;
|
|
17
|
+
icon: string[];
|
|
18
|
+
labels: string[];
|
|
19
|
+
label: string[];
|
|
20
|
+
holdLabel: string[];
|
|
19
21
|
}, undefined, {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
29
|
-
|
|
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
|
-
|
|
32
|
-
|
|
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
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"pointer-events-none absolute inset-0",
|
|
15
|
-
"inline-flex items-center
|
|
16
|
-
"
|
|
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 {
|
|
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
|
|
6
|
-
import { jsx as
|
|
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
|
|
9
|
-
function
|
|
10
|
-
let
|
|
11
|
-
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
let
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
let
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
let
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
let
|
|
29
|
-
|
|
30
|
-
if (!
|
|
31
|
-
let e =
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
let
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
},
|
|
38
|
-
let
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
},
|
|
42
|
-
let
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
let
|
|
47
|
-
|
|
48
|
-
...
|
|
49
|
-
"--ox-hold-duration":
|
|
50
|
-
},
|
|
51
|
-
let
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
},
|
|
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
|
-
|
|
65
|
-
|
|
66
|
-
},
|
|
67
|
-
let
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
|
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:
|
|
79
|
-
"data-ox-holding":
|
|
80
|
-
disabled:
|
|
81
|
-
style:
|
|
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:
|
|
84
|
-
onKeyDown:
|
|
85
|
-
onKeyUp:
|
|
86
|
-
onPointerCancel:
|
|
87
|
-
onPointerDown:
|
|
88
|
-
onPointerLeave:
|
|
89
|
-
onPointerUp:
|
|
74
|
+
onBlur: X,
|
|
75
|
+
onKeyDown: oe,
|
|
76
|
+
onKeyUp: se,
|
|
77
|
+
onPointerCancel: Z,
|
|
78
|
+
onPointerDown: ae,
|
|
79
|
+
onPointerLeave: Q,
|
|
80
|
+
onPointerUp: $,
|
|
90
81
|
children: [
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
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
|
-
})
|
|
107
|
+
});
|
|
96
108
|
}
|
|
97
109
|
//#endregion
|
|
98
|
-
export {
|
|
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:
|
|
5
|
-
circle:
|
|
4
|
+
square: "rounded-control";
|
|
5
|
+
circle: "rounded-full";
|
|
6
6
|
};
|
|
7
7
|
}, undefined, string[], {
|
|
8
8
|
shape: {
|
|
9
|
-
square:
|
|
10
|
-
circle:
|
|
9
|
+
square: "rounded-control";
|
|
10
|
+
circle: "rounded-full";
|
|
11
11
|
};
|
|
12
|
-
}, undefined, import('tailwind-variants').
|
|
12
|
+
}, undefined, import('tailwind-variants').TVReturnTypeLike<{
|
|
13
13
|
shape: {
|
|
14
|
-
square:
|
|
15
|
-
circle:
|
|
14
|
+
square: "rounded-control";
|
|
15
|
+
circle: "rounded-full";
|
|
16
16
|
};
|
|
17
|
-
}, 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
|
|
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').
|
|
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-
|
|
5
|
-
base?: import('tailwind-
|
|
6
|
-
addon?: import('tailwind-
|
|
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-
|
|
12
|
-
base?: import('tailwind-
|
|
13
|
-
addon?: import('tailwind-
|
|
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-
|
|
22
|
-
base?: import('tailwind-
|
|
23
|
-
addon?: import('tailwind-
|
|
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').
|
|
29
|
+
}, import('tailwind-variants').TVReturnTypeLike<unknown, {
|
|
30
30
|
base: string[];
|
|
31
31
|
addon: string[];
|
|
32
|
-
}
|
|
32
|
+
}>>;
|
|
33
33
|
export declare const inputAddonVariants: import('tailwind-variants').TVReturnType<{
|
|
34
34
|
variant: {
|
|
35
|
-
separated:
|
|
36
|
-
inline:
|
|
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':
|
|
40
|
-
'inline-end':
|
|
39
|
+
'inline-start': "";
|
|
40
|
+
'inline-end': "";
|
|
41
41
|
};
|
|
42
42
|
}, undefined, undefined, {
|
|
43
43
|
variant: {
|
|
44
|
-
separated:
|
|
45
|
-
inline:
|
|
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':
|
|
49
|
-
'inline-end':
|
|
48
|
+
'inline-start': "";
|
|
49
|
+
'inline-end': "";
|
|
50
50
|
};
|
|
51
|
-
}, undefined, import('tailwind-variants').
|
|
51
|
+
}, undefined, import('tailwind-variants').TVReturnTypeLike<{
|
|
52
52
|
variant: {
|
|
53
|
-
separated:
|
|
54
|
-
inline:
|
|
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':
|
|
58
|
-
'inline-end':
|
|
57
|
+
'inline-start': "";
|
|
58
|
+
'inline-end': "";
|
|
59
59
|
};
|
|
60
|
-
}, undefined
|
|
60
|
+
}, undefined>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const kbdVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').
|
|
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').
|
|
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-
|
|
4
|
-
value?: import('tailwind-
|
|
5
|
-
root?: import('tailwind-
|
|
6
|
-
label?: import('tailwind-
|
|
7
|
-
bar?: import('tailwind-
|
|
8
|
-
indicator?: import('tailwind-
|
|
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-
|
|
14
|
-
value?: import('tailwind-
|
|
15
|
-
root?: import('tailwind-
|
|
16
|
-
label?: import('tailwind-
|
|
17
|
-
bar?: import('tailwind-
|
|
18
|
-
indicator?: import('tailwind-
|
|
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-
|
|
30
|
-
value?: import('tailwind-
|
|
31
|
-
root?: import('tailwind-
|
|
32
|
-
label?: import('tailwind-
|
|
33
|
-
bar?: import('tailwind-
|
|
34
|
-
indicator?: import('tailwind-
|
|
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').
|
|
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
|
-
}
|
|
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
|
|
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').
|
|
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
|
-
}
|
|
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
|
|
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 = {
|