iryx-ui 0.12.0 → 0.13.0
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/README.md +35 -1315
- package/dist/component-names.d.ts +1 -1
- package/dist/component-names.js +1 -1
- package/dist/components/Accordion.js +5 -0
- package/dist/components/Accordion.vue.d.ts +80 -0
- package/dist/components/Accordion.vue_vue_type_script_setup_true_lang.js +87 -0
- package/dist/components/Alert.vue.d.ts +1 -1
- package/dist/components/Alert.vue_vue_type_script_setup_true_lang.js +7 -7
- package/dist/components/App.vue.d.ts +1 -1
- package/dist/components/AppShell.js +5 -0
- package/dist/components/AppShell.vue.d.ts +46 -0
- package/dist/components/AppShell.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/components/AspectRatio.js +5 -0
- package/dist/components/AspectRatio.vue.d.ts +26 -0
- package/dist/components/AspectRatio.vue_vue_type_script_setup_true_lang.js +27 -0
- package/dist/components/Avatar.js +5 -0
- package/dist/components/Avatar.vue.d.ts +52 -0
- package/dist/components/Avatar.vue_vue_type_script_setup_true_lang.js +67 -0
- package/dist/components/AvatarGroup.js +5 -0
- package/dist/components/AvatarGroup.vue.d.ts +39 -0
- package/dist/components/AvatarGroup.vue_vue_type_script_setup_true_lang.js +45 -0
- package/dist/components/Badge.vue.d.ts +1 -1
- package/dist/components/Banner.vue.d.ts +2 -2
- package/dist/components/BarChart.vue.d.ts +1 -1
- package/dist/components/BarChart.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/components/Button.vue.d.ts +2 -2
- package/dist/components/ButtonGroup.vue.d.ts +1 -1
- package/dist/components/Card.vue.d.ts +1 -1
- package/dist/components/Collapsible.js +5 -0
- package/dist/components/Collapsible.vue.d.ts +58 -0
- package/dist/components/Collapsible.vue_vue_type_script_setup_true_lang.js +67 -0
- package/dist/components/ColorPicker.js +5 -0
- package/dist/components/ColorPicker.vue.d.ts +49 -0
- package/dist/components/ColorPicker.vue_vue_type_script_setup_true_lang.js +172 -0
- package/dist/components/Combobox.vue.d.ts +6 -6
- package/dist/components/CommandPalette.js +5 -0
- package/dist/components/CommandPalette.vue.d.ts +63 -0
- package/dist/components/CommandPalette.vue_vue_type_script_setup_true_lang.js +185 -0
- package/dist/components/Container.js +5 -0
- package/dist/components/Container.vue.d.ts +33 -0
- package/dist/components/Container.vue_vue_type_script_setup_true_lang.js +40 -0
- package/dist/components/ContextMenu.js +5 -0
- package/dist/components/ContextMenu.vue.d.ts +42 -0
- package/dist/components/ContextMenu.vue_vue_type_script_setup_true_lang.js +49 -0
- package/dist/components/DateRangePicker.vue.d.ts +1 -1
- package/dist/components/Dialog.vue.d.ts +1 -1
- package/dist/components/Drawer.vue.d.ts +2 -2
- package/dist/components/EmptyState.vue.d.ts +1 -1
- package/dist/components/Input.vue.d.ts +1 -1
- package/dist/components/Input.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/Kbd.js +5 -0
- package/dist/components/Kbd.vue.d.ts +46 -0
- package/dist/components/Kbd.vue_vue_type_script_setup_true_lang.js +41 -0
- package/dist/components/LineChart.vue_vue_type_script_setup_true_lang.js +19 -19
- package/dist/components/Menubar.js +5 -0
- package/dist/components/Menubar.vue.d.ts +62 -0
- package/dist/components/Menubar.vue_vue_type_script_setup_true_lang.js +79 -0
- package/dist/components/NavigationMenu.js +5 -0
- package/dist/components/NavigationMenu.vue.d.ts +75 -0
- package/dist/components/NavigationMenu.vue_vue_type_script_setup_true_lang.js +167 -0
- package/dist/components/NumberInput.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/PageHeader.js +5 -0
- package/dist/components/PageHeader.vue.d.ts +52 -0
- package/dist/components/PageHeader.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/components/PinInput.js +5 -0
- package/dist/components/PinInput.vue.d.ts +65 -0
- package/dist/components/PinInput.vue_vue_type_script_setup_true_lang.js +76 -0
- package/dist/components/Popover.js +5 -0
- package/dist/components/Popover.vue.d.ts +75 -0
- package/dist/components/Popover.vue_vue_type_script_setup_true_lang.js +99 -0
- package/dist/components/Progress.vue.d.ts +20 -1
- package/dist/components/Progress.vue_vue_type_script_setup_true_lang.js +84 -44
- package/dist/components/RadioGroup.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/components/ScrollArea.js +5 -0
- package/dist/components/ScrollArea.vue.d.ts +41 -0
- package/dist/components/ScrollArea.vue_vue_type_script_setup_true_lang.js +68 -0
- package/dist/components/ScrollFade.js +5 -0
- package/dist/components/ScrollFade.vue.d.ts +36 -0
- package/dist/components/ScrollFade.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/components/Select.vue.d.ts +2 -2
- package/dist/components/Sidebar.js +5 -0
- package/dist/components/Sidebar.vue.d.ts +72 -0
- package/dist/components/Sidebar.vue_vue_type_script_setup_true_lang.js +183 -0
- package/dist/components/SignaturePad.js +5 -0
- package/dist/components/SignaturePad.vue.d.ts +60 -0
- package/dist/components/SignaturePad.vue_vue_type_script_setup_true_lang.js +158 -0
- package/dist/components/Skeleton.vue.d.ts +1 -1
- package/dist/components/Skeleton.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/components/Slider.js +5 -0
- package/dist/components/Slider.vue.d.ts +80 -0
- package/dist/components/Slider.vue_vue_type_script_setup_true_lang.js +115 -0
- package/dist/components/Splitter.js +5 -0
- package/dist/components/Splitter.vue.d.ts +59 -0
- package/dist/components/Splitter.vue_vue_type_script_setup_true_lang.js +69 -0
- package/dist/components/Stat.vue.d.ts +1 -1
- package/dist/components/Switch.vue.d.ts +1 -0
- package/dist/components/Switch.vue_vue_type_script_setup_true_lang.js +7 -3
- package/dist/components/Table.vue.d.ts +7 -1
- package/dist/components/Table.vue_vue_type_script_setup_true_lang.js +73 -58
- package/dist/components/TagsInput.js +5 -0
- package/dist/components/TagsInput.vue.d.ts +71 -0
- package/dist/components/TagsInput.vue_vue_type_script_setup_true_lang.js +119 -0
- package/dist/components/Textarea.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/TimeField.js +5 -0
- package/dist/components/TimeField.vue.d.ts +50 -0
- package/dist/components/TimeField.vue_vue_type_script_setup_true_lang.js +85 -0
- package/dist/components/Timeline.js +5 -0
- package/dist/components/Timeline.vue.d.ts +61 -0
- package/dist/components/Timeline.vue_vue_type_script_setup_true_lang.js +60 -0
- package/dist/components/Toaster.vue.d.ts +1 -1
- package/dist/components/Toggle.js +5 -0
- package/dist/components/Toggle.vue.d.ts +42 -0
- package/dist/components/Toggle.vue_vue_type_script_setup_true_lang.js +52 -0
- package/dist/components/ToggleGroup.js +5 -0
- package/dist/components/ToggleGroup.vue.d.ts +64 -0
- package/dist/components/ToggleGroup.vue_vue_type_script_setup_true_lang.js +78 -0
- package/dist/components/Toolbar.js +5 -0
- package/dist/components/Toolbar.vue.d.ts +52 -0
- package/dist/components/Toolbar.vue_vue_type_script_setup_true_lang.js +94 -0
- package/dist/components/Tree.js +5 -0
- package/dist/components/Tree.vue.d.ts +70 -0
- package/dist/components/Tree.vue_vue_type_script_setup_true_lang.js +112 -0
- package/dist/components/index.d.ts +29 -0
- package/dist/components/index.js +144 -86
- package/dist/composables/appearance.js +5 -1
- package/dist/composables/cartesian.d.ts +11 -0
- package/dist/composables/cartesian.js +18 -19
- package/dist/composables/command-palette.d.ts +42 -0
- package/dist/composables/command-palette.js +32 -0
- package/dist/composables/date.d.ts +18 -2
- package/dist/composables/date.js +23 -12
- package/dist/composables/kbd.d.ts +26 -0
- package/dist/composables/kbd.js +161 -0
- package/dist/composables/navigation-menu.d.ts +29 -0
- package/dist/composables/navigation-menu.js +6 -0
- package/dist/composables/scroll-fade.d.ts +35 -0
- package/dist/composables/scroll-fade.js +36 -0
- package/dist/composables/sidebar.d.ts +35 -0
- package/dist/composables/sidebar.js +23 -0
- package/dist/composables/signature.d.ts +22 -0
- package/dist/composables/signature.js +13 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.js +153 -93
- package/dist/theme/accordion.d.ts +68 -0
- package/dist/theme/accordion.js +24 -0
- package/dist/theme/alert.d.ts +0 -3
- package/dist/theme/app-shell.d.ts +77 -0
- package/dist/theme/app-shell.js +35 -0
- package/dist/theme/avatar.d.ts +253 -0
- package/dist/theme/avatar.js +84 -0
- package/dist/theme/banner.d.ts +0 -9
- package/dist/theme/bar-chart.d.ts +0 -16
- package/dist/theme/breadcrumb.d.ts +3 -3
- package/dist/theme/button-group.d.ts +0 -3
- package/dist/theme/button.d.ts +0 -3
- package/dist/theme/card.js +2 -2
- package/dist/theme/chart-legend.d.ts +3 -11
- package/dist/theme/collapsible.d.ts +44 -0
- package/dist/theme/collapsible.js +17 -0
- package/dist/theme/color-picker.d.ts +98 -0
- package/dist/theme/color-picker.js +19 -0
- package/dist/theme/command-palette.d.ts +122 -0
- package/dist/theme/command-palette.js +22 -0
- package/dist/theme/container.d.ts +101 -0
- package/dist/theme/container.js +26 -0
- package/dist/theme/date-picker.d.ts +12 -0
- package/dist/theme/date-picker.js +1 -1
- package/dist/theme/dropdown-menu.d.ts +0 -9
- package/dist/theme/file-upload.d.ts +0 -3
- package/dist/theme/form.d.ts +12 -12
- package/dist/theme/index.d.ts +25 -0
- package/dist/theme/kbd.d.ts +71 -0
- package/dist/theme/kbd.js +29 -0
- package/dist/theme/line-chart.d.ts +0 -9
- package/dist/theme/menubar.d.ts +29 -0
- package/dist/theme/menubar.js +11 -0
- package/dist/theme/navigation-menu.d.ts +161 -0
- package/dist/theme/navigation-menu.js +43 -0
- package/dist/theme/number-input.d.ts +0 -3
- package/dist/theme/page-header.d.ts +47 -0
- package/dist/theme/page-header.js +17 -0
- package/dist/theme/pagination.d.ts +0 -3
- package/dist/theme/pin-input.d.ts +86 -0
- package/dist/theme/pin-input.js +32 -0
- package/dist/theme/popover.d.ts +119 -0
- package/dist/theme/popover.js +31 -0
- package/dist/theme/presets.d.ts +0 -2
- package/dist/theme/progress.d.ts +93 -0
- package/dist/theme/progress.js +37 -7
- package/dist/theme/radio-group.d.ts +24 -0
- package/dist/theme/radio-group.js +23 -14
- package/dist/theme/scroll-area.d.ts +65 -0
- package/dist/theme/scroll-area.js +57 -0
- package/dist/theme/scroll-fade.d.ts +35 -0
- package/dist/theme/scroll-fade.js +12 -0
- package/dist/theme/sidebar.d.ts +167 -0
- package/dist/theme/sidebar.js +43 -0
- package/dist/theme/signature-pad.d.ts +50 -0
- package/dist/theme/signature-pad.js +17 -0
- package/dist/theme/slider.d.ts +128 -0
- package/dist/theme/slider.js +49 -0
- package/dist/theme/sparkline.d.ts +0 -6
- package/dist/theme/splitter.d.ts +59 -0
- package/dist/theme/splitter.js +25 -0
- package/dist/theme/stat.d.ts +0 -3
- package/dist/theme/stepper.js +2 -2
- package/dist/theme/switch.d.ts +53 -29
- package/dist/theme/switch.js +33 -8
- package/dist/theme/table.d.ts +51 -3
- package/dist/theme/table.js +8 -3
- package/dist/theme/tabs.d.ts +0 -3
- package/dist/theme/tags-input.d.ts +110 -0
- package/dist/theme/tags-input.js +42 -0
- package/dist/theme/time-field.d.ts +68 -0
- package/dist/theme/time-field.js +21 -0
- package/dist/theme/timeline.d.ts +182 -0
- package/dist/theme/timeline.js +83 -0
- package/dist/theme/toggle.d.ts +145 -0
- package/dist/theme/toggle.js +84 -0
- package/dist/theme/toolbar.d.ts +56 -0
- package/dist/theme/toolbar.js +21 -0
- package/dist/theme/tree.d.ts +68 -0
- package/dist/theme/tree.js +28 -0
- package/package.json +2 -2
- package/theme.css +221 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { IconLike } from '../composables/icon';
|
|
2
|
+
export interface ToolbarButtonOption {
|
|
3
|
+
label: string;
|
|
4
|
+
icon?: IconLike;
|
|
5
|
+
/** Run when the control is pressed. Ignored on a link. */
|
|
6
|
+
onSelect?: () => void;
|
|
7
|
+
/** Renders a link instead of a button. */
|
|
8
|
+
href?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/** Hide the label, leaving only the icon. The label becomes its name. */
|
|
11
|
+
iconOnly?: boolean;
|
|
12
|
+
/** Overrides that name when the label is too terse to stand alone. */
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
}
|
|
15
|
+
/** `'-'` renders a separator between groups of controls. */
|
|
16
|
+
export type ToolbarEntry = ToolbarButtonOption | '-';
|
|
17
|
+
export interface ToolbarProps {
|
|
18
|
+
items?: ToolbarEntry[];
|
|
19
|
+
orientation?: 'horizontal' | 'vertical';
|
|
20
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
21
|
+
/** Drop the container so the controls sit directly on the page. */
|
|
22
|
+
bare?: boolean;
|
|
23
|
+
/** Wrap from the last control back to the first when arrowing past the end. */
|
|
24
|
+
loop?: boolean;
|
|
25
|
+
/** Names the bar, e.g. "Formatting". A toolbar with no name is unlabelled chrome. */
|
|
26
|
+
ariaLabel?: string;
|
|
27
|
+
/** Skip built-in classes; you take over styling entirely. */
|
|
28
|
+
unstyled?: boolean;
|
|
29
|
+
class?: string;
|
|
30
|
+
/** Override classes per slot, e.g. `{ button: 'px-3' }`. */
|
|
31
|
+
ui?: {
|
|
32
|
+
root?: string;
|
|
33
|
+
button?: string;
|
|
34
|
+
separator?: string;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
declare var __VLS_8: {};
|
|
38
|
+
type __VLS_Slots = {} & {
|
|
39
|
+
default?: (props: typeof __VLS_8) => any;
|
|
40
|
+
};
|
|
41
|
+
declare const __VLS_base: import("vue").DefineComponent<ToolbarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToolbarProps> & Readonly<{}>, {
|
|
42
|
+
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
43
|
+
unstyled: boolean;
|
|
44
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
46
|
+
declare const _default: typeof __VLS_export;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { useIryxUiConfig as e } from "../config.js";
|
|
2
|
+
import t from "./Icon.js";
|
|
3
|
+
import { buttonTheme as n } from "../theme/button.js";
|
|
4
|
+
import { toolbarTheme as r } from "../theme/toolbar.js";
|
|
5
|
+
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, defineComponent as l, normalizeClass as u, openBlock as d, renderList as f, renderSlot as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
|
|
6
|
+
import { ToolbarButton as _, ToolbarLink as v, ToolbarRoot as y, ToolbarSeparator as b } from "reka-ui";
|
|
7
|
+
//#region src/components/Toolbar.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var x = { key: 1 }, S = { key: 1 }, C = /*@__PURE__*/ l({
|
|
9
|
+
__name: "Toolbar",
|
|
10
|
+
props: {
|
|
11
|
+
items: {},
|
|
12
|
+
orientation: {},
|
|
13
|
+
size: { default: "sm" },
|
|
14
|
+
bare: { type: Boolean },
|
|
15
|
+
loop: { type: Boolean },
|
|
16
|
+
ariaLabel: {},
|
|
17
|
+
unstyled: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: void 0
|
|
20
|
+
},
|
|
21
|
+
class: {},
|
|
22
|
+
ui: {}
|
|
23
|
+
},
|
|
24
|
+
setup(l) {
|
|
25
|
+
let C = l, w = a(() => C.items ?? []), T = (e) => e === "-", E = e(), D = a(() => C.unstyled ?? E.unstyled), O = a(() => r({
|
|
26
|
+
orientation: C.orientation,
|
|
27
|
+
bare: C.bare
|
|
28
|
+
})), k = a(() => D.value ? [C.ui?.root, C.class] : O.value.root({ class: [C.ui?.root, C.class] })), A = a(() => D.value ? C.ui?.separator : O.value.separator({ class: C.ui?.separator }));
|
|
29
|
+
function j(e) {
|
|
30
|
+
return D.value ? C.ui?.button : n({
|
|
31
|
+
variant: "ghost",
|
|
32
|
+
size: C.size,
|
|
33
|
+
square: e.iconOnly,
|
|
34
|
+
class: C.ui?.button
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
function M(e) {
|
|
38
|
+
return e.ariaLabel ?? (e.iconOnly ? e.label : void 0);
|
|
39
|
+
}
|
|
40
|
+
return (e, n) => (d(), o(h(y), {
|
|
41
|
+
orientation: C.orientation,
|
|
42
|
+
loop: C.loop,
|
|
43
|
+
"aria-label": C.ariaLabel,
|
|
44
|
+
class: u(k.value)
|
|
45
|
+
}, {
|
|
46
|
+
default: g(() => [p(e.$slots, "default", {}, () => [(d(!0), c(i, null, f(w.value, (e, n) => (d(), c(i, { key: n }, [T(e) ? (d(), o(h(b), {
|
|
47
|
+
key: 0,
|
|
48
|
+
class: u(A.value)
|
|
49
|
+
}, null, 8, ["class"])) : e.href ? (d(), o(h(v), {
|
|
50
|
+
key: 1,
|
|
51
|
+
href: e.href,
|
|
52
|
+
"aria-label": M(e),
|
|
53
|
+
class: u(j(e))
|
|
54
|
+
}, {
|
|
55
|
+
default: g(() => [e.icon ? (d(), o(t, {
|
|
56
|
+
key: 0,
|
|
57
|
+
icon: e.icon,
|
|
58
|
+
"data-icon": e.iconOnly ? void 0 : "inline-start"
|
|
59
|
+
}, null, 8, ["icon", "data-icon"])) : s("", !0), e.iconOnly ? s("", !0) : (d(), c("span", x, m(e.label), 1))]),
|
|
60
|
+
_: 2
|
|
61
|
+
}, 1032, [
|
|
62
|
+
"href",
|
|
63
|
+
"aria-label",
|
|
64
|
+
"class"
|
|
65
|
+
])) : (d(), o(h(_), {
|
|
66
|
+
key: 2,
|
|
67
|
+
disabled: e.disabled,
|
|
68
|
+
"aria-label": M(e),
|
|
69
|
+
class: u(j(e)),
|
|
70
|
+
onClick: (t) => e.onSelect?.()
|
|
71
|
+
}, {
|
|
72
|
+
default: g(() => [e.icon ? (d(), o(t, {
|
|
73
|
+
key: 0,
|
|
74
|
+
icon: e.icon,
|
|
75
|
+
"data-icon": e.iconOnly ? void 0 : "inline-start"
|
|
76
|
+
}, null, 8, ["icon", "data-icon"])) : s("", !0), e.iconOnly ? s("", !0) : (d(), c("span", S, m(e.label), 1))]),
|
|
77
|
+
_: 2
|
|
78
|
+
}, 1032, [
|
|
79
|
+
"disabled",
|
|
80
|
+
"aria-label",
|
|
81
|
+
"class",
|
|
82
|
+
"onClick"
|
|
83
|
+
]))], 64))), 128))])]),
|
|
84
|
+
_: 3
|
|
85
|
+
}, 8, [
|
|
86
|
+
"orientation",
|
|
87
|
+
"loop",
|
|
88
|
+
"aria-label",
|
|
89
|
+
"class"
|
|
90
|
+
]));
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
//#endregion
|
|
94
|
+
export { C as default };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { IconLike } from '../composables/icon';
|
|
2
|
+
export interface TreeItemOption {
|
|
3
|
+
label: string;
|
|
4
|
+
/** Identifies the node. Defaults to the label. */
|
|
5
|
+
value?: string;
|
|
6
|
+
icon?: IconLike;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Number shown against the row's trailing edge — how many files are in a
|
|
10
|
+
* folder, how many results are under a category.
|
|
11
|
+
*/
|
|
12
|
+
count?: number;
|
|
13
|
+
/** Nested nodes. A node with children can be expanded. */
|
|
14
|
+
children?: TreeItemOption[];
|
|
15
|
+
}
|
|
16
|
+
export interface TreeProps {
|
|
17
|
+
items?: TreeItemOption[];
|
|
18
|
+
/** Selected node values. Always an array, whether or not `multiple` is set. */
|
|
19
|
+
modelValue?: string[];
|
|
20
|
+
/** Which nodes start open, by value. Two-way via `v-model:expanded`. */
|
|
21
|
+
expanded?: string[];
|
|
22
|
+
multiple?: boolean;
|
|
23
|
+
/** Selecting a parent selects everything under it. Needs `multiple`. */
|
|
24
|
+
propagateSelect?: boolean;
|
|
25
|
+
size?: 'sm' | 'md';
|
|
26
|
+
/** Indent added per level of depth, in pixels. */
|
|
27
|
+
indent?: number;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
/** Names the tree, e.g. "Project files". */
|
|
30
|
+
ariaLabel?: string;
|
|
31
|
+
/** Skip built-in classes; you take over styling entirely. */
|
|
32
|
+
unstyled?: boolean;
|
|
33
|
+
class?: string;
|
|
34
|
+
/** Override classes per slot, e.g. `{ item: 'py-2' }`. */
|
|
35
|
+
ui?: {
|
|
36
|
+
root?: string;
|
|
37
|
+
item?: string;
|
|
38
|
+
expander?: string;
|
|
39
|
+
spacer?: string;
|
|
40
|
+
icon?: string;
|
|
41
|
+
label?: string;
|
|
42
|
+
count?: string;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
declare var __VLS_16: {
|
|
46
|
+
item: TreeItemOption;
|
|
47
|
+
level: number;
|
|
48
|
+
expanded: boolean;
|
|
49
|
+
};
|
|
50
|
+
type __VLS_Slots = {} & {
|
|
51
|
+
item?: (props: typeof __VLS_16) => any;
|
|
52
|
+
};
|
|
53
|
+
declare const __VLS_base: import("vue").DefineComponent<TreeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
54
|
+
"update:modelValue": (value: string[]) => any;
|
|
55
|
+
"update:expanded": (value: string[]) => any;
|
|
56
|
+
}, string, import("vue").PublicProps, Readonly<TreeProps> & Readonly<{
|
|
57
|
+
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
58
|
+
"onUpdate:expanded"?: ((value: string[]) => any) | undefined;
|
|
59
|
+
}>, {
|
|
60
|
+
unstyled: boolean;
|
|
61
|
+
indent: number;
|
|
62
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
63
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
64
|
+
declare const _default: typeof __VLS_export;
|
|
65
|
+
export default _default;
|
|
66
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
67
|
+
new (): {
|
|
68
|
+
$slots: S;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { useIryxUiConfig as e } from "../config.js";
|
|
2
|
+
import t from "./Icon.js";
|
|
3
|
+
import { treeTheme as n } from "../theme/tree.js";
|
|
4
|
+
import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, defineComponent as l, mergeProps as u, normalizeClass as d, openBlock as f, renderList as p, renderSlot as m, toDisplayString as h, unref as g, withCtx as _ } from "vue";
|
|
5
|
+
import { ArrowRight01Icon as v } from "@hugeicons/core-free-icons";
|
|
6
|
+
import { TreeItem as y, TreeRoot as b } from "reka-ui";
|
|
7
|
+
//#region src/components/Tree.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var x = 8, S = /*@__PURE__*/ l({
|
|
9
|
+
__name: "Tree",
|
|
10
|
+
props: {
|
|
11
|
+
items: {},
|
|
12
|
+
modelValue: {},
|
|
13
|
+
expanded: {},
|
|
14
|
+
multiple: { type: Boolean },
|
|
15
|
+
propagateSelect: { type: Boolean },
|
|
16
|
+
size: {},
|
|
17
|
+
indent: { default: 16 },
|
|
18
|
+
disabled: { type: Boolean },
|
|
19
|
+
ariaLabel: {},
|
|
20
|
+
unstyled: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: void 0
|
|
23
|
+
},
|
|
24
|
+
class: {},
|
|
25
|
+
ui: {}
|
|
26
|
+
},
|
|
27
|
+
emits: ["update:modelValue", "update:expanded"],
|
|
28
|
+
setup(l, { emit: S }) {
|
|
29
|
+
let C = l, w = S, T = i(() => C.items ?? []), E = (e) => e.value ?? e.label, D = (e) => !!e.children?.length, O = (e) => `${x + (e - 1) * C.indent}px`, k = i(() => {
|
|
30
|
+
let e = /* @__PURE__ */ new Map(), t = (n) => {
|
|
31
|
+
for (let r of n) e.set(E(r), r), r.children?.length && t(r.children);
|
|
32
|
+
};
|
|
33
|
+
return t(T.value), e;
|
|
34
|
+
}), A = i(() => (C.modelValue ?? []).map((e) => k.value.get(e)).filter(Boolean));
|
|
35
|
+
function j(e) {
|
|
36
|
+
return (Array.isArray(e) ? e : [e]).filter(Boolean).map((e) => E(e));
|
|
37
|
+
}
|
|
38
|
+
let M = e(), N = i(() => C.unstyled ?? M.unstyled), P = i(() => n({ size: C.size }));
|
|
39
|
+
function F(e, t) {
|
|
40
|
+
let n = [C.ui?.[e], t].filter(Boolean).join(" ");
|
|
41
|
+
return N.value ? n : P.value[e]({ class: n });
|
|
42
|
+
}
|
|
43
|
+
return (e, n) => (f(), a(g(b), {
|
|
44
|
+
items: T.value,
|
|
45
|
+
"model-value": C.multiple ? A.value : A.value[0],
|
|
46
|
+
expanded: C.expanded,
|
|
47
|
+
"get-key": E,
|
|
48
|
+
"get-children": (e) => e.children,
|
|
49
|
+
multiple: C.multiple,
|
|
50
|
+
"propagate-select": C.propagateSelect,
|
|
51
|
+
disabled: C.disabled,
|
|
52
|
+
"aria-label": C.ariaLabel,
|
|
53
|
+
class: d(F("root", C.class)),
|
|
54
|
+
"onUpdate:modelValue": n[0] ||= (e) => w("update:modelValue", j(e)),
|
|
55
|
+
"onUpdate:expanded": n[1] ||= (e) => w("update:expanded", e)
|
|
56
|
+
}, {
|
|
57
|
+
default: _(({ flattenItems: n }) => [(f(!0), s(r, null, p(n, (n) => (f(), a(g(y), u({ key: n._id }, { ref_for: !0 }, n.bind, {
|
|
58
|
+
disabled: n.value.disabled,
|
|
59
|
+
class: F("item"),
|
|
60
|
+
style: { paddingLeft: O(n.level) }
|
|
61
|
+
}), {
|
|
62
|
+
default: _(({ isExpanded: r }) => [m(e.$slots, "item", {
|
|
63
|
+
item: n.value,
|
|
64
|
+
level: n.level,
|
|
65
|
+
expanded: r
|
|
66
|
+
}, () => [
|
|
67
|
+
D(n.value) ? (f(), a(t, {
|
|
68
|
+
key: 0,
|
|
69
|
+
icon: g(v),
|
|
70
|
+
"data-expanded": r ? "" : void 0,
|
|
71
|
+
class: d(F("expander"))
|
|
72
|
+
}, null, 8, [
|
|
73
|
+
"icon",
|
|
74
|
+
"data-expanded",
|
|
75
|
+
"class"
|
|
76
|
+
])) : (f(), s("span", {
|
|
77
|
+
key: 1,
|
|
78
|
+
class: d(F("spacer"))
|
|
79
|
+
}, null, 2)),
|
|
80
|
+
n.value.icon ? (f(), a(t, {
|
|
81
|
+
key: 2,
|
|
82
|
+
icon: n.value.icon,
|
|
83
|
+
class: d(F("icon"))
|
|
84
|
+
}, null, 8, ["icon", "class"])) : o("", !0),
|
|
85
|
+
c("span", { class: d(F("label")) }, h(n.value.label), 3),
|
|
86
|
+
n.value.count === void 0 ? o("", !0) : (f(), s("span", {
|
|
87
|
+
key: 3,
|
|
88
|
+
class: d(F("count"))
|
|
89
|
+
}, h(n.value.count), 3))
|
|
90
|
+
])]),
|
|
91
|
+
_: 2
|
|
92
|
+
}, 1040, [
|
|
93
|
+
"disabled",
|
|
94
|
+
"class",
|
|
95
|
+
"style"
|
|
96
|
+
]))), 128))]),
|
|
97
|
+
_: 3
|
|
98
|
+
}, 8, [
|
|
99
|
+
"items",
|
|
100
|
+
"model-value",
|
|
101
|
+
"expanded",
|
|
102
|
+
"get-children",
|
|
103
|
+
"multiple",
|
|
104
|
+
"propagate-select",
|
|
105
|
+
"disabled",
|
|
106
|
+
"aria-label",
|
|
107
|
+
"class"
|
|
108
|
+
]));
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
//#endregion
|
|
112
|
+
export { S as default };
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
export { default as Accordion } from './Accordion.vue';
|
|
1
2
|
export { default as Alert } from './Alert.vue';
|
|
2
3
|
export { default as App } from './App.vue';
|
|
4
|
+
export { default as AppShell } from './AppShell.vue';
|
|
5
|
+
export { default as AspectRatio } from './AspectRatio.vue';
|
|
6
|
+
export { default as Avatar } from './Avatar.vue';
|
|
7
|
+
export { default as AvatarGroup } from './AvatarGroup.vue';
|
|
3
8
|
export { default as Badge } from './Badge.vue';
|
|
4
9
|
export { default as Banner } from './Banner.vue';
|
|
5
10
|
export { default as BarChart } from './BarChart.vue';
|
|
@@ -9,8 +14,13 @@ export { default as ButtonGroup } from './ButtonGroup.vue';
|
|
|
9
14
|
export { default as Card } from './Card.vue';
|
|
10
15
|
export { default as ChartLegend } from './ChartLegend.vue';
|
|
11
16
|
export { default as Checkbox } from './Checkbox.vue';
|
|
17
|
+
export { default as Collapsible } from './Collapsible.vue';
|
|
18
|
+
export { default as ColorPicker } from './ColorPicker.vue';
|
|
12
19
|
export { default as Combobox } from './Combobox.vue';
|
|
20
|
+
export { default as CommandPalette } from './CommandPalette.vue';
|
|
13
21
|
export { default as ConfirmDialog } from './ConfirmDialog.vue';
|
|
22
|
+
export { default as Container } from './Container.vue';
|
|
23
|
+
export { default as ContextMenu } from './ContextMenu.vue';
|
|
14
24
|
export { default as DatePicker } from './DatePicker.vue';
|
|
15
25
|
export { default as DateRangePicker } from './DateRangePicker.vue';
|
|
16
26
|
export { default as Dialog } from './Dialog.vue';
|
|
@@ -21,22 +31,41 @@ export { default as FileUpload } from './FileUpload.vue';
|
|
|
21
31
|
export { default as Form } from './Form.vue';
|
|
22
32
|
export { default as FormField } from './FormField.vue';
|
|
23
33
|
export { default as Input } from './Input.vue';
|
|
34
|
+
export { default as Kbd } from './Kbd.vue';
|
|
24
35
|
export { default as Label } from './Label.vue';
|
|
25
36
|
export { default as LineChart } from './LineChart.vue';
|
|
37
|
+
export { default as Menubar } from './Menubar.vue';
|
|
38
|
+
export { default as NavigationMenu } from './NavigationMenu.vue';
|
|
26
39
|
export { default as NumberInput } from './NumberInput.vue';
|
|
40
|
+
export { default as PageHeader } from './PageHeader.vue';
|
|
27
41
|
export { default as Pagination } from './Pagination.vue';
|
|
28
42
|
export { default as PasswordInput } from './PasswordInput.vue';
|
|
43
|
+
export { default as PinInput } from './PinInput.vue';
|
|
44
|
+
export { default as Popover } from './Popover.vue';
|
|
29
45
|
export { default as Progress } from './Progress.vue';
|
|
30
46
|
export { default as RadioGroup } from './RadioGroup.vue';
|
|
47
|
+
export { default as ScrollArea } from './ScrollArea.vue';
|
|
48
|
+
export { default as ScrollFade } from './ScrollFade.vue';
|
|
31
49
|
export { default as Select } from './Select.vue';
|
|
32
50
|
export { default as Separator } from './Separator.vue';
|
|
51
|
+
export { default as Sidebar } from './Sidebar.vue';
|
|
52
|
+
export { default as SignaturePad } from './SignaturePad.vue';
|
|
33
53
|
export { default as Skeleton } from './Skeleton.vue';
|
|
54
|
+
export { default as Slider } from './Slider.vue';
|
|
34
55
|
export { default as Sparkline } from './Sparkline.vue';
|
|
56
|
+
export { default as Splitter } from './Splitter.vue';
|
|
35
57
|
export { default as Stat } from './Stat.vue';
|
|
36
58
|
export { default as Stepper } from './Stepper.vue';
|
|
37
59
|
export { default as Switch } from './Switch.vue';
|
|
38
60
|
export { default as Table } from './Table.vue';
|
|
39
61
|
export { default as Tabs } from './Tabs.vue';
|
|
62
|
+
export { default as TagsInput } from './TagsInput.vue';
|
|
40
63
|
export { default as Textarea } from './Textarea.vue';
|
|
64
|
+
export { default as TimeField } from './TimeField.vue';
|
|
65
|
+
export { default as Timeline } from './Timeline.vue';
|
|
41
66
|
export { default as Toaster } from './Toaster.vue';
|
|
67
|
+
export { default as Toggle } from './Toggle.vue';
|
|
68
|
+
export { default as ToggleGroup } from './ToggleGroup.vue';
|
|
69
|
+
export { default as Toolbar } from './Toolbar.vue';
|
|
42
70
|
export { default as Tooltip } from './Tooltip.vue';
|
|
71
|
+
export { default as Tree } from './Tree.vue';
|
package/dist/components/index.js
CHANGED
|
@@ -1,90 +1,148 @@
|
|
|
1
1
|
import { __exportAll as e } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import t from "./
|
|
3
|
-
import n from "./
|
|
4
|
-
import r from "./
|
|
5
|
-
import i from "./
|
|
6
|
-
import a from "./
|
|
7
|
-
import o from "./
|
|
8
|
-
import s from "./
|
|
9
|
-
import c from "./
|
|
10
|
-
import l from "./
|
|
11
|
-
import u from "./
|
|
12
|
-
import d from "./
|
|
13
|
-
import f from "./
|
|
14
|
-
import p from "./
|
|
15
|
-
import m from "./
|
|
16
|
-
import h from "./
|
|
17
|
-
import g from "./
|
|
18
|
-
import _ from "./
|
|
19
|
-
import v from "./
|
|
20
|
-
import y from "./
|
|
21
|
-
import b from "./
|
|
22
|
-
import x from "./
|
|
23
|
-
import S from "./
|
|
24
|
-
import C from "./
|
|
25
|
-
import w from "./
|
|
26
|
-
import T from "./
|
|
27
|
-
import E from "./
|
|
28
|
-
import D from "./
|
|
29
|
-
import O from "./
|
|
30
|
-
import k from "./
|
|
31
|
-
import A from "./
|
|
32
|
-
import j from "./
|
|
33
|
-
import M from "./
|
|
34
|
-
import N from "./
|
|
35
|
-
import P from "./
|
|
36
|
-
import F from "./
|
|
37
|
-
import I from "./
|
|
38
|
-
import L from "./
|
|
39
|
-
import R from "./
|
|
40
|
-
import z from "./
|
|
41
|
-
import B from "./
|
|
42
|
-
import V from "./
|
|
43
|
-
import H from "./
|
|
2
|
+
import t from "./Accordion.js";
|
|
3
|
+
import n from "./Alert.js";
|
|
4
|
+
import r from "./App.js";
|
|
5
|
+
import i from "./AppShell.js";
|
|
6
|
+
import a from "./AspectRatio.js";
|
|
7
|
+
import o from "./Avatar.js";
|
|
8
|
+
import s from "./AvatarGroup.js";
|
|
9
|
+
import c from "./Badge.js";
|
|
10
|
+
import l from "./Banner.js";
|
|
11
|
+
import u from "./ChartLegend.js";
|
|
12
|
+
import d from "./BarChart.js";
|
|
13
|
+
import f from "./Breadcrumb.js";
|
|
14
|
+
import p from "./Button.js";
|
|
15
|
+
import m from "./ButtonGroup.js";
|
|
16
|
+
import h from "./Card.js";
|
|
17
|
+
import g from "./Checkbox.js";
|
|
18
|
+
import _ from "./Collapsible.js";
|
|
19
|
+
import v from "./ColorPicker.js";
|
|
20
|
+
import y from "./Combobox.js";
|
|
21
|
+
import b from "./Kbd.js";
|
|
22
|
+
import x from "./CommandPalette.js";
|
|
23
|
+
import S from "./Dialog.js";
|
|
24
|
+
import C from "./ConfirmDialog.js";
|
|
25
|
+
import w from "./Container.js";
|
|
26
|
+
import T from "./ContextMenu.js";
|
|
27
|
+
import E from "./DatePicker.js";
|
|
28
|
+
import D from "./DateRangePicker.js";
|
|
29
|
+
import O from "./Drawer.js";
|
|
30
|
+
import k from "./DropdownMenu.js";
|
|
31
|
+
import A from "./EmptyState.js";
|
|
32
|
+
import j from "./FileUpload.js";
|
|
33
|
+
import M from "./Form.js";
|
|
34
|
+
import N from "./Label.js";
|
|
35
|
+
import P from "./FormField.js";
|
|
36
|
+
import F from "./Input.js";
|
|
37
|
+
import I from "./LineChart.js";
|
|
38
|
+
import L from "./Menubar.js";
|
|
39
|
+
import R from "./NavigationMenu.js";
|
|
40
|
+
import z from "./NumberInput.js";
|
|
41
|
+
import B from "./PageHeader.js";
|
|
42
|
+
import V from "./Pagination.js";
|
|
43
|
+
import H from "./PasswordInput.js";
|
|
44
|
+
import U from "./PinInput.js";
|
|
45
|
+
import W from "./Popover.js";
|
|
46
|
+
import G from "./Progress.js";
|
|
47
|
+
import K from "./RadioGroup.js";
|
|
48
|
+
import q from "./ScrollArea.js";
|
|
49
|
+
import J from "./ScrollFade.js";
|
|
50
|
+
import Y from "./Select.js";
|
|
51
|
+
import X from "./Separator.js";
|
|
52
|
+
import Z from "./Sidebar.js";
|
|
53
|
+
import Q from "./SignaturePad.js";
|
|
54
|
+
import $ from "./Skeleton.js";
|
|
55
|
+
import ee from "./Slider.js";
|
|
56
|
+
import te from "./Sparkline.js";
|
|
57
|
+
import ne from "./Splitter.js";
|
|
58
|
+
import re from "./Stat.js";
|
|
59
|
+
import ie from "./Stepper.js";
|
|
60
|
+
import ae from "./Switch.js";
|
|
61
|
+
import oe from "./Table.js";
|
|
62
|
+
import se from "./Tabs.js";
|
|
63
|
+
import ce from "./TagsInput.js";
|
|
64
|
+
import le from "./Textarea.js";
|
|
65
|
+
import ue from "./TimeField.js";
|
|
66
|
+
import de from "./Timeline.js";
|
|
67
|
+
import fe from "./Toaster.js";
|
|
68
|
+
import pe from "./Toggle.js";
|
|
69
|
+
import me from "./ToggleGroup.js";
|
|
70
|
+
import he from "./Toolbar.js";
|
|
71
|
+
import ge from "./Tooltip.js";
|
|
72
|
+
import _e from "./Tree.js";
|
|
44
73
|
//#region src/components/index.ts
|
|
45
|
-
var
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
74
|
+
var ve = /* @__PURE__ */ e({
|
|
75
|
+
Accordion: () => t,
|
|
76
|
+
Alert: () => n,
|
|
77
|
+
App: () => r,
|
|
78
|
+
AppShell: () => i,
|
|
79
|
+
AspectRatio: () => a,
|
|
80
|
+
Avatar: () => o,
|
|
81
|
+
AvatarGroup: () => s,
|
|
82
|
+
Badge: () => c,
|
|
83
|
+
Banner: () => l,
|
|
84
|
+
BarChart: () => d,
|
|
85
|
+
Breadcrumb: () => f,
|
|
86
|
+
Button: () => p,
|
|
87
|
+
ButtonGroup: () => m,
|
|
88
|
+
Card: () => h,
|
|
89
|
+
ChartLegend: () => u,
|
|
90
|
+
Checkbox: () => g,
|
|
91
|
+
Collapsible: () => _,
|
|
92
|
+
ColorPicker: () => v,
|
|
93
|
+
Combobox: () => y,
|
|
94
|
+
CommandPalette: () => x,
|
|
95
|
+
ConfirmDialog: () => C,
|
|
96
|
+
Container: () => w,
|
|
97
|
+
ContextMenu: () => T,
|
|
98
|
+
DatePicker: () => E,
|
|
99
|
+
DateRangePicker: () => D,
|
|
100
|
+
Dialog: () => S,
|
|
101
|
+
Drawer: () => O,
|
|
102
|
+
DropdownMenu: () => k,
|
|
103
|
+
EmptyState: () => A,
|
|
104
|
+
FileUpload: () => j,
|
|
105
|
+
Form: () => M,
|
|
106
|
+
FormField: () => P,
|
|
107
|
+
Input: () => F,
|
|
108
|
+
Kbd: () => b,
|
|
109
|
+
Label: () => N,
|
|
110
|
+
LineChart: () => I,
|
|
111
|
+
Menubar: () => L,
|
|
112
|
+
NavigationMenu: () => R,
|
|
113
|
+
NumberInput: () => z,
|
|
114
|
+
PageHeader: () => B,
|
|
115
|
+
Pagination: () => V,
|
|
116
|
+
PasswordInput: () => H,
|
|
117
|
+
PinInput: () => U,
|
|
118
|
+
Popover: () => W,
|
|
119
|
+
Progress: () => G,
|
|
120
|
+
RadioGroup: () => K,
|
|
121
|
+
ScrollArea: () => q,
|
|
122
|
+
ScrollFade: () => J,
|
|
123
|
+
Select: () => Y,
|
|
124
|
+
Separator: () => X,
|
|
125
|
+
Sidebar: () => Z,
|
|
126
|
+
SignaturePad: () => Q,
|
|
127
|
+
Skeleton: () => $,
|
|
128
|
+
Slider: () => ee,
|
|
129
|
+
Sparkline: () => te,
|
|
130
|
+
Splitter: () => ne,
|
|
131
|
+
Stat: () => re,
|
|
132
|
+
Stepper: () => ie,
|
|
133
|
+
Switch: () => ae,
|
|
134
|
+
Table: () => oe,
|
|
135
|
+
Tabs: () => se,
|
|
136
|
+
TagsInput: () => ce,
|
|
137
|
+
Textarea: () => le,
|
|
138
|
+
TimeField: () => ue,
|
|
139
|
+
Timeline: () => de,
|
|
140
|
+
Toaster: () => fe,
|
|
141
|
+
Toggle: () => pe,
|
|
142
|
+
ToggleGroup: () => me,
|
|
143
|
+
Toolbar: () => he,
|
|
144
|
+
Tooltip: () => ge,
|
|
145
|
+
Tree: () => _e
|
|
88
146
|
});
|
|
89
147
|
//#endregion
|
|
90
|
-
export {
|
|
148
|
+
export { ve as components_exports };
|
|
@@ -6,7 +6,11 @@ function s() {
|
|
|
6
6
|
}
|
|
7
7
|
function c(e) {
|
|
8
8
|
let t = document.createElement("style");
|
|
9
|
-
t.textContent = "*,*::before,*::after{transition:
|
|
9
|
+
t.textContent = "*,*::before,*::after{transition-duration:0s !important;animation-duration:0.01ms !important}", document.head.appendChild(t), document.documentElement.classList.toggle("dark", e), document.body?.offsetHeight;
|
|
10
|
+
let n = !1, r = () => {
|
|
11
|
+
n || (n = !0, t.remove());
|
|
12
|
+
};
|
|
13
|
+
requestAnimationFrame(r), setTimeout(r, 100);
|
|
10
14
|
}
|
|
11
15
|
function l() {
|
|
12
16
|
if (o || typeof window > "u") return;
|
|
@@ -95,6 +95,17 @@ export declare const SERIES_SLOTS = 8;
|
|
|
95
95
|
export declare function seriesColor(index: number): string;
|
|
96
96
|
/** A series' palette slot: pinned if it has one, otherwise its position. */
|
|
97
97
|
export declare function slotOf(entry: ChartSeries, index: number): number;
|
|
98
|
+
/**
|
|
99
|
+
* Dev-only warning.
|
|
100
|
+
*
|
|
101
|
+
* `process.env.NODE_ENV` is read as a bare global rather than through an
|
|
102
|
+
* `import process from 'node:process'`, which is what this used to do. That
|
|
103
|
+
* import shipped a Node builtin in a browser library: bundlers externalise it,
|
|
104
|
+
* `process` is undefined in a browser, and this line threw the moment a chart
|
|
105
|
+
* had more than eight series. Every bundler statically replaces the bare form
|
|
106
|
+
* instead, which also lets the whole branch be dropped from a production
|
|
107
|
+
* build — the same thing Vue and Reka do.
|
|
108
|
+
*/
|
|
98
109
|
export declare function warnOnSlotOverflow(count: number): void;
|
|
99
110
|
/**
|
|
100
111
|
* Keep a tooltip inside the chart's own box. Estimated from the text rather
|