iryx-ui 0.11.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 -1235
- 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 +43 -43
- 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/Banner.vue_vue_type_script_setup_true_lang.js +40 -40
- 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/Breadcrumb.vue_vue_type_script_setup_true_lang.js +28 -28
- package/dist/components/Button.vue.d.ts +2 -2
- package/dist/components/Button.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/components/ButtonGroup.vue.d.ts +1 -1
- package/dist/components/Card.vue.d.ts +1 -1
- package/dist/components/Checkbox.vue_vue_type_script_setup_true_lang.js +37 -30
- 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/Combobox.vue_vue_type_script_setup_true_lang.js +62 -60
- 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/DatePicker.vue_vue_type_script_setup_true_lang.js +65 -65
- package/dist/components/DateRangePicker.vue.d.ts +1 -1
- package/dist/components/DateRangePicker.vue_vue_type_script_setup_true_lang.js +74 -74
- package/dist/components/Dialog.vue.d.ts +1 -1
- package/dist/components/Dialog.vue_vue_type_script_setup_true_lang.js +34 -34
- package/dist/components/Drawer.js +5 -0
- package/dist/components/Drawer.vue.d.ts +94 -0
- package/dist/components/Drawer.vue_vue_type_script_setup_true_lang.js +144 -0
- package/dist/components/DropdownMenuItems.vue_vue_type_script_setup_true_lang.js +42 -42
- package/dist/components/EmptyState.vue.d.ts +1 -1
- package/dist/components/FileUpload.vue_vue_type_script_setup_true_lang.js +77 -77
- package/dist/components/Icon.vue_vue_type_script_setup_true_lang.js +11 -11
- package/dist/components/Input.vue.d.ts +1 -1
- package/dist/components/Input.vue_vue_type_script_setup_true_lang.js +33 -33
- 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 +68 -66
- 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/Pagination.vue_vue_type_script_setup_true_lang.js +37 -37
- package/dist/components/PasswordInput.vue_vue_type_script_setup_true_lang.js +37 -37
- 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 +85 -42
- 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/Select.vue_vue_type_script_setup_true_lang.js +47 -45
- 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/Stat.vue_vue_type_script_setup_true_lang.js +27 -27
- package/dist/components/Stepper.vue_vue_type_script_setup_true_lang.js +38 -38
- package/dist/components/Switch.vue.d.ts +1 -0
- package/dist/components/Switch.vue_vue_type_script_setup_true_lang.js +16 -5
- package/dist/components/Table.vue.d.ts +7 -1
- package/dist/components/Table.vue_vue_type_script_setup_true_lang.js +120 -105
- 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/Toaster.vue_vue_type_script_setup_true_lang.js +41 -41
- 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 +30 -0
- package/dist/components/index.js +144 -84
- 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 -15
- 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 +36 -0
- package/dist/index.js +153 -92
- 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/drawer.d.ts +110 -0
- package/dist/theme/drawer.js +100 -0
- 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 +26 -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 +4 -3
- package/theme.css +335 -0
- package/dist/node_modules/.pnpm/@hugeicons_core-free-icons@4.2.3/node_modules/@hugeicons/core-free-icons/dist/esm/index.js +0 -377
- package/dist/node_modules/.pnpm/@hugeicons_vue@1.0.7_vue@3.5.35_typescript@6.0.3_/node_modules/@hugeicons/vue/dist/esm/_virtual/_plugin-vue_export-helper.js +0 -8
- package/dist/node_modules/.pnpm/@hugeicons_vue@1.0.7_vue@3.5.35_typescript@6.0.3_/node_modules/@hugeicons/vue/dist/esm/components/HugeiconsIcon.vue.js +0 -25
- package/dist/node_modules/.pnpm/@hugeicons_vue@1.0.7_vue@3.5.35_typescript@6.0.3_/node_modules/@hugeicons/vue/dist/esm/components/HugeiconsIcon.vue2.js +0 -63
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/CalendarDate.js +0 -122
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/DateFormatter.js +0 -84
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/calendars/GregorianCalendar.js +0 -91
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/conversion.js +0 -107
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/manipulation.js +0 -159
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/queries.js +0 -29
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/string.js +0 -37
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/utils.js +0 -6
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { AvatarProps } from './Avatar.vue';
|
|
2
|
+
/** One member of the stack — an `IAvatar`'s own props, minus the shared ones. */
|
|
3
|
+
export type AvatarGroupItem = Omit<AvatarProps, 'size' | 'shape' | 'unstyled' | 'class' | 'ui'>;
|
|
4
|
+
export interface AvatarGroupProps {
|
|
5
|
+
items?: AvatarGroupItem[];
|
|
6
|
+
/**
|
|
7
|
+
* Show at most this many, closing the stack with a "+n" chip. Without it
|
|
8
|
+
* every avatar is rendered, which stops being readable somewhere past six.
|
|
9
|
+
*/
|
|
10
|
+
max?: number;
|
|
11
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
12
|
+
shape?: 'circle' | 'square';
|
|
13
|
+
/** Skip built-in classes; you take over styling entirely. */
|
|
14
|
+
unstyled?: boolean;
|
|
15
|
+
class?: string;
|
|
16
|
+
/** Override classes per slot, e.g. `{ overflow: 'bg-primary' }`. */
|
|
17
|
+
ui?: {
|
|
18
|
+
root?: string;
|
|
19
|
+
item?: string;
|
|
20
|
+
overflow?: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
declare var __VLS_1: {
|
|
24
|
+
count: number;
|
|
25
|
+
};
|
|
26
|
+
type __VLS_Slots = {} & {
|
|
27
|
+
overflow?: (props: typeof __VLS_1) => any;
|
|
28
|
+
};
|
|
29
|
+
declare const __VLS_base: import("vue").DefineComponent<AvatarGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarGroupProps> & Readonly<{}>, {
|
|
30
|
+
unstyled: boolean;
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
33
|
+
declare const _default: typeof __VLS_export;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { useIryxUiConfig as e } from "../config.js";
|
|
2
|
+
import { avatarGroupTheme as t } from "../theme/avatar.js";
|
|
3
|
+
import n from "./Avatar.js";
|
|
4
|
+
import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createTextVNode as c, defineComponent as l, mergeProps as u, normalizeClass as d, openBlock as f, renderList as p, renderSlot as m, toDisplayString as h } from "vue";
|
|
5
|
+
//#region src/components/AvatarGroup.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var g = /*@__PURE__*/ l({
|
|
7
|
+
__name: "AvatarGroup",
|
|
8
|
+
props: {
|
|
9
|
+
items: {},
|
|
10
|
+
max: {},
|
|
11
|
+
size: {},
|
|
12
|
+
shape: {},
|
|
13
|
+
unstyled: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: void 0
|
|
16
|
+
},
|
|
17
|
+
class: {},
|
|
18
|
+
ui: {}
|
|
19
|
+
},
|
|
20
|
+
setup(l) {
|
|
21
|
+
let g = l, _ = i(() => g.items ?? []), v = i(() => {
|
|
22
|
+
let e = g.max;
|
|
23
|
+
return [...e !== void 0 && _.value.length > e ? _.value.slice(0, e) : _.value].reverse();
|
|
24
|
+
}), y = i(() => {
|
|
25
|
+
let e = g.max;
|
|
26
|
+
return e === void 0 || _.value.length <= e ? 0 : _.value.length - e;
|
|
27
|
+
}), b = e(), x = i(() => g.unstyled ?? b.unstyled), S = i(() => t({ size: g.size })), C = i(() => x.value ? [g.ui?.root, g.class] : S.value.root({ class: [g.ui?.root, g.class] })), w = i(() => x.value ? g.ui?.item : S.value.item({ class: g.ui?.item })), T = i(() => x.value ? g.ui?.overflow : S.value.overflow({ class: g.ui?.overflow }));
|
|
28
|
+
return (e, t) => (f(), s("div", { class: d(C.value) }, [y.value ? (f(), s("span", {
|
|
29
|
+
key: 0,
|
|
30
|
+
class: d(T.value)
|
|
31
|
+
}, [m(e.$slots, "overflow", { count: y.value }, () => [c("+" + h(y.value), 1)])], 2)) : o("", !0), (f(!0), s(r, null, p(v.value, (e, t) => (f(), a(n, u({ key: t }, { ref_for: !0 }, e, {
|
|
32
|
+
size: g.size,
|
|
33
|
+
shape: g.shape,
|
|
34
|
+
unstyled: x.value,
|
|
35
|
+
class: w.value
|
|
36
|
+
}), null, 16, [
|
|
37
|
+
"size",
|
|
38
|
+
"shape",
|
|
39
|
+
"unstyled",
|
|
40
|
+
"class"
|
|
41
|
+
]))), 128))], 2));
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
//#endregion
|
|
45
|
+
export { g as default };
|
|
@@ -26,8 +26,8 @@ type __VLS_Slots = {} & {
|
|
|
26
26
|
default?: (props: typeof __VLS_8) => any;
|
|
27
27
|
};
|
|
28
28
|
declare const __VLS_base: import("vue").DefineComponent<BadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
|
|
29
|
-
as: string;
|
|
30
29
|
unstyled: boolean;
|
|
30
|
+
as: string;
|
|
31
31
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
32
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
33
33
|
declare const _default: typeof __VLS_export;
|
|
@@ -65,10 +65,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
65
65
|
onClose?: (() => any) | undefined;
|
|
66
66
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
67
67
|
}>, {
|
|
68
|
-
as: string;
|
|
69
|
-
closeLabel: string;
|
|
70
68
|
unstyled: boolean;
|
|
69
|
+
as: string;
|
|
71
70
|
label: string;
|
|
71
|
+
closeLabel: string;
|
|
72
72
|
contained: boolean;
|
|
73
73
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
74
74
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import n from "
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { useIryxUiConfig as e } from "../config.js";
|
|
2
|
+
import t from "./Icon.js";
|
|
3
|
+
import { bannerTheme as n } from "../theme/banner.js";
|
|
4
|
+
import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, mergeModels as d, normalizeClass as f, openBlock as p, renderSlot as m, toDisplayString as h, unref as g, useModel as _, withCtx as v } from "vue";
|
|
5
|
+
import { Cancel01Icon as y } from "@hugeicons/core-free-icons";
|
|
6
6
|
import { Primitive as b } from "reka-ui";
|
|
7
7
|
//#region src/components/Banner.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var x = ["aria-label"], S = /*@__PURE__*/
|
|
8
|
+
var x = ["aria-label"], S = /*@__PURE__*/ u({
|
|
9
9
|
__name: "Banner",
|
|
10
|
-
props: /*@__PURE__*/
|
|
10
|
+
props: /*@__PURE__*/ d({
|
|
11
11
|
as: { default: "div" },
|
|
12
12
|
variant: {},
|
|
13
13
|
position: {},
|
|
@@ -35,58 +35,58 @@ var x = ["aria-label"], S = /*@__PURE__*/ d({
|
|
|
35
35
|
},
|
|
36
36
|
openModifiers: {}
|
|
37
37
|
}),
|
|
38
|
-
emits: /*@__PURE__*/
|
|
39
|
-
setup(
|
|
40
|
-
let
|
|
41
|
-
variant:
|
|
42
|
-
position:
|
|
43
|
-
contained:
|
|
44
|
-
align:
|
|
45
|
-
})), E =
|
|
38
|
+
emits: /*@__PURE__*/ d(["close"], ["update:open"]),
|
|
39
|
+
setup(u) {
|
|
40
|
+
let d = u, S = _(u, "open"), C = e(), w = r(() => d.unstyled ?? C.unstyled), T = r(() => n({
|
|
41
|
+
variant: d.variant,
|
|
42
|
+
position: d.position,
|
|
43
|
+
contained: d.contained ?? !1,
|
|
44
|
+
align: d.align
|
|
45
|
+
})), E = r(() => w.value ? [d.ui?.root, d.class] : T.value.root({ class: [d.ui?.root, d.class] }));
|
|
46
46
|
function D(e) {
|
|
47
|
-
let t =
|
|
47
|
+
let t = d.ui?.[e];
|
|
48
48
|
return w.value ? t : T.value[e]({ class: t });
|
|
49
49
|
}
|
|
50
|
-
return (
|
|
50
|
+
return (e, n) => S.value ? (p(), i(g(b), {
|
|
51
51
|
key: 0,
|
|
52
|
-
as:
|
|
52
|
+
as: d.as,
|
|
53
53
|
role: "region",
|
|
54
|
-
"aria-label":
|
|
55
|
-
class:
|
|
54
|
+
"aria-label": d.label,
|
|
55
|
+
class: f(E.value)
|
|
56
56
|
}, {
|
|
57
|
-
default:
|
|
58
|
-
|
|
57
|
+
default: v(() => [s("div", { class: f(D("container")) }, [
|
|
58
|
+
d.icon || e.$slots.icon ? (p(), o("span", {
|
|
59
59
|
key: 0,
|
|
60
|
-
class:
|
|
61
|
-
}, [
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
class: f(D("icon"))
|
|
61
|
+
}, [m(e.$slots, "icon", {}, () => [l(t, { icon: d.icon }, null, 8, ["icon"])])], 2)) : a("", !0),
|
|
62
|
+
s("p", { class: f(D("content")) }, [
|
|
63
|
+
d.title || e.$slots.title ? (p(), o("strong", {
|
|
64
64
|
key: 0,
|
|
65
|
-
class:
|
|
66
|
-
}, [
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
class: f(D("title"))
|
|
66
|
+
}, [m(e.$slots, "title", {}, () => [c(h(d.title), 1)])], 2)) : a("", !0),
|
|
67
|
+
n[1] ||= c(" " + h(" ") + " ", -1),
|
|
68
|
+
m(e.$slots, "default", {}, () => [c(h(d.description), 1)])
|
|
69
69
|
], 2),
|
|
70
|
-
|
|
70
|
+
e.$slots.actions ? (p(), o("span", {
|
|
71
71
|
key: 1,
|
|
72
|
-
class:
|
|
73
|
-
}, [
|
|
74
|
-
|
|
72
|
+
class: f(D("actions"))
|
|
73
|
+
}, [m(e.$slots, "actions")], 2)) : a("", !0),
|
|
74
|
+
d.closable ? (p(), o("button", {
|
|
75
75
|
key: 2,
|
|
76
76
|
type: "button",
|
|
77
|
-
"aria-label":
|
|
78
|
-
class:
|
|
79
|
-
onClick:
|
|
80
|
-
S.value = !1,
|
|
77
|
+
"aria-label": d.closeLabel,
|
|
78
|
+
class: f(D("close")),
|
|
79
|
+
onClick: n[0] ||= (t) => {
|
|
80
|
+
S.value = !1, e.$emit("close");
|
|
81
81
|
}
|
|
82
|
-
}, [
|
|
82
|
+
}, [m(e.$slots, "close", {}, () => [l(t, { icon: g(y) }, null, 8, ["icon"])])], 10, x)) : a("", !0)
|
|
83
83
|
], 2)]),
|
|
84
84
|
_: 3
|
|
85
85
|
}, 8, [
|
|
86
86
|
"as",
|
|
87
87
|
"aria-label",
|
|
88
88
|
"class"
|
|
89
|
-
])) :
|
|
89
|
+
])) : a("", !0);
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
//#endregion
|
|
@@ -90,9 +90,9 @@ type __VLS_Slots = {} & {
|
|
|
90
90
|
};
|
|
91
91
|
declare const __VLS_base: import("vue").DefineComponent<BarChartProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BarChartProps> & Readonly<{}>, {
|
|
92
92
|
unstyled: boolean;
|
|
93
|
+
orientation: "vertical" | "horizontal";
|
|
93
94
|
data: readonly BarChartDatum[];
|
|
94
95
|
legend: boolean;
|
|
95
|
-
orientation: "vertical" | "horizontal";
|
|
96
96
|
height: number;
|
|
97
97
|
ticks: number;
|
|
98
98
|
axis: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useIryxUiConfig as e } from "../config.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useElementSize as t } from "../composables/element-size.js";
|
|
3
|
+
import { cartesianLayout as n, clampTooltip as r, seriesColor as i, slotOf as a, tooltipHalfWidth as o, warnOnSlotOverflow as s } from "../composables/cartesian.js";
|
|
4
4
|
import { barChartTheme as c } from "../theme/bar-chart.js";
|
|
5
5
|
import l from "./ChartLegend.js";
|
|
6
6
|
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, defineComponent as g, guardReactiveProps as _, normalizeClass as v, normalizeProps as y, normalizeStyle as b, openBlock as x, ref as S, renderList as C, renderSlot as w, toDisplayString as T, unref as E } from "vue";
|
|
@@ -62,13 +62,13 @@ var ee = ["role", "aria-label"], D = [
|
|
|
62
62
|
ui: {}
|
|
63
63
|
},
|
|
64
64
|
setup(g) {
|
|
65
|
-
let j = g, M = e(), N = d(() => j.unstyled ?? M.unstyled), P = S(), { width: F } =
|
|
65
|
+
let j = g, M = e(), N = d(() => j.unstyled ?? M.unstyled), P = S(), { width: F } = t(P), I = d(() => new Intl.NumberFormat(j.locale, j.format));
|
|
66
66
|
function L(e) {
|
|
67
67
|
return I.value.format(e);
|
|
68
68
|
}
|
|
69
69
|
let R = d(() => {
|
|
70
70
|
let e = j.series?.length ? [...j.series] : [{ key: "value" }];
|
|
71
|
-
return
|
|
71
|
+
return s(e.length), e;
|
|
72
72
|
}), z = d(() => R.value.length > 1), oe = d(() => z.value || j.legend && R.value[0].name != null);
|
|
73
73
|
function B(e, t) {
|
|
74
74
|
let n = e[t];
|
|
@@ -83,7 +83,7 @@ var ee = ["role", "aria-label"], D = [
|
|
|
83
83
|
}
|
|
84
84
|
return [t, n];
|
|
85
85
|
}
|
|
86
|
-
let W = d(() =>
|
|
86
|
+
let W = d(() => n({
|
|
87
87
|
orientation: j.orientation,
|
|
88
88
|
values: H.value ? j.data.flatMap(U) : j.data.flatMap((e) => R.value.map((t) => B(e, t.key))),
|
|
89
89
|
categories: j.data.length,
|
|
@@ -153,25 +153,25 @@ var ee = ["role", "aria-label"], D = [
|
|
|
153
153
|
if (!e) return;
|
|
154
154
|
let t = R.value.map((t, n) => ({
|
|
155
155
|
name: t.name ?? t.key,
|
|
156
|
-
color:
|
|
156
|
+
color: i(a(t, n)),
|
|
157
157
|
value: B(e, t.key)
|
|
158
158
|
})).filter((e) => e.value != null).map((e) => ({
|
|
159
159
|
...e,
|
|
160
160
|
value: L(e.value)
|
|
161
161
|
}));
|
|
162
162
|
if (!t.length) return;
|
|
163
|
-
let
|
|
163
|
+
let n = H.value ? L(U(e).reduce((e, t) => e + t, 0)) : void 0, s = z.value ? Math.max(e.label.length, n ? n.length + 6 : 0, ...t.map((e) => e.name.length + e.value.length + 3)) : e.label.length + t[0].value.length + 2, c = W.value.bandCentre(X.value);
|
|
164
164
|
if (V.value) {
|
|
165
|
-
let
|
|
165
|
+
let i = H.value ? W.value.value(U(e)[0]) : Math.max(...R.value.map((t) => {
|
|
166
166
|
let n = B(e, t.key);
|
|
167
167
|
return n == null ? -Infinity : W.value.value(n);
|
|
168
|
-
})),
|
|
168
|
+
})), a = "x".repeat(s), l = o(a), u = i + l + 8, d = u + l <= F.value;
|
|
169
169
|
return {
|
|
170
170
|
label: e.label,
|
|
171
171
|
rows: t,
|
|
172
|
-
total:
|
|
172
|
+
total: n,
|
|
173
173
|
multi: z.value,
|
|
174
|
-
x:
|
|
174
|
+
x: r(d ? u : i - l - 8, a, F.value),
|
|
175
175
|
y: c
|
|
176
176
|
};
|
|
177
177
|
}
|
|
@@ -182,9 +182,9 @@ var ee = ["role", "aria-label"], D = [
|
|
|
182
182
|
return {
|
|
183
183
|
label: e.label,
|
|
184
184
|
rows: t,
|
|
185
|
-
total:
|
|
185
|
+
total: n,
|
|
186
186
|
multi: z.value,
|
|
187
|
-
x:
|
|
187
|
+
x: r(c, "x".repeat(s), F.value),
|
|
188
188
|
y: l
|
|
189
189
|
};
|
|
190
190
|
}), Q = d(() => c());
|
|
@@ -233,7 +233,7 @@ var ee = ["role", "aria-label"], D = [
|
|
|
233
233
|
(x(!0), m(u, null, C(se.value, (e, t) => (x(), m("path", {
|
|
234
234
|
key: `bar-${e.categoryIndex}-${e.seriesIndex}-${t}`,
|
|
235
235
|
d: ce(e),
|
|
236
|
-
style: b({ fill: E(
|
|
236
|
+
style: b({ fill: E(i)(E(a)(R.value[e.seriesIndex], e.seriesIndex)) }),
|
|
237
237
|
class: v(ue(e))
|
|
238
238
|
}, null, 14, k))), 128)),
|
|
239
239
|
(x(!0), m(u, null, C(j.data, (e, t) => (x(), m(u, { key: `label-${e.label}-${t}` }, [t % le.value === 0 ? (x(), m("text", {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import n from "
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { useIryxUiConfig as e } from "../config.js";
|
|
2
|
+
import t from "./Icon.js";
|
|
3
|
+
import { breadcrumbTheme as n } from "../theme/breadcrumb.js";
|
|
4
|
+
import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, normalizeClass as f, openBlock as p, renderList as m, renderSlot as h, resolveDynamicComponent as g, toDisplayString as _, unref as v, withCtx as y } from "vue";
|
|
5
|
+
import { ArrowRight01Icon as b } from "@hugeicons/core-free-icons";
|
|
6
6
|
import { Primitive as x } from "reka-ui";
|
|
7
7
|
//#region src/components/Breadcrumb.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var S = /*@__PURE__*/
|
|
8
|
+
var S = /*@__PURE__*/ d({
|
|
9
9
|
__name: "Breadcrumb",
|
|
10
10
|
props: {
|
|
11
11
|
items: {},
|
|
@@ -17,49 +17,49 @@ var S = /*@__PURE__*/ f({
|
|
|
17
17
|
class: {},
|
|
18
18
|
ui: {}
|
|
19
19
|
},
|
|
20
|
-
setup(
|
|
21
|
-
let S =
|
|
20
|
+
setup(d) {
|
|
21
|
+
let S = d, C = e(), w = i(() => S.unstyled ?? C.unstyled), T = i(() => S.items ?? []), E = i(() => T.value.length - 1), D = i(() => n());
|
|
22
22
|
function O(e) {
|
|
23
23
|
let t = S.ui?.[e];
|
|
24
24
|
return w.value ? t : D.value[e]({ class: t });
|
|
25
25
|
}
|
|
26
|
-
return (
|
|
26
|
+
return (e, n) => (p(), a(v(x), {
|
|
27
27
|
as: "nav",
|
|
28
28
|
"aria-label": S.label,
|
|
29
|
-
class:
|
|
29
|
+
class: f(w.value ? [S.ui?.root, S.class] : D.value.root({ class: [S.ui?.root, S.class] }))
|
|
30
30
|
}, {
|
|
31
|
-
default:
|
|
32
|
-
key:
|
|
33
|
-
class:
|
|
34
|
-
}, [
|
|
31
|
+
default: y(() => [c("ol", { class: f(O("list")) }, [(p(!0), s(r, null, m(T.value, (n, r) => (p(), s("li", {
|
|
32
|
+
key: r,
|
|
33
|
+
class: f(O("item"))
|
|
34
|
+
}, [r === E.value ? (p(), s("span", {
|
|
35
35
|
key: 0,
|
|
36
36
|
"aria-current": "page",
|
|
37
|
-
class:
|
|
38
|
-
}, [
|
|
37
|
+
class: f(O("current"))
|
|
38
|
+
}, [n.icon ? (p(), a(t, {
|
|
39
39
|
key: 0,
|
|
40
|
-
icon:
|
|
41
|
-
}, null, 8, ["icon"])) :
|
|
40
|
+
icon: n.icon
|
|
41
|
+
}, null, 8, ["icon"])) : o("", !0), l(" " + _(n.label), 1)], 2)) : (p(), a(g(n.href ? "a" : "button"), {
|
|
42
42
|
key: 1,
|
|
43
|
-
href:
|
|
44
|
-
type:
|
|
45
|
-
class:
|
|
46
|
-
onClick: (e) =>
|
|
43
|
+
href: n.href,
|
|
44
|
+
type: n.href ? void 0 : "button",
|
|
45
|
+
class: f(O("link")),
|
|
46
|
+
onClick: (e) => n.onSelect?.()
|
|
47
47
|
}, {
|
|
48
|
-
default:
|
|
48
|
+
default: y(() => [n.icon ? (p(), a(t, {
|
|
49
49
|
key: 0,
|
|
50
|
-
icon:
|
|
51
|
-
}, null, 8, ["icon"])) :
|
|
50
|
+
icon: n.icon
|
|
51
|
+
}, null, 8, ["icon"])) : o("", !0), l(" " + _(n.label), 1)]),
|
|
52
52
|
_: 2
|
|
53
53
|
}, 1032, [
|
|
54
54
|
"href",
|
|
55
55
|
"type",
|
|
56
56
|
"class",
|
|
57
57
|
"onClick"
|
|
58
|
-
])),
|
|
58
|
+
])), r === E.value ? o("", !0) : (p(), s("span", {
|
|
59
59
|
key: 2,
|
|
60
60
|
"aria-hidden": "true",
|
|
61
|
-
class:
|
|
62
|
-
}, [
|
|
61
|
+
class: f(O("separator"))
|
|
62
|
+
}, [h(e.$slots, "separator", {}, () => [u(t, { icon: v(b) }, null, 8, ["icon"])])], 2))], 2))), 128))], 2)]),
|
|
63
63
|
_: 3
|
|
64
64
|
}, 8, ["aria-label", "class"]));
|
|
65
65
|
}
|
|
@@ -28,9 +28,9 @@ type __VLS_Slots = {} & {
|
|
|
28
28
|
default?: (props: typeof __VLS_13) => any;
|
|
29
29
|
};
|
|
30
30
|
declare const __VLS_base: import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {
|
|
31
|
-
as: string;
|
|
32
|
-
unstyled: boolean;
|
|
33
31
|
type: "button" | "submit" | "reset";
|
|
32
|
+
unstyled: boolean;
|
|
33
|
+
as: string;
|
|
34
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
35
35
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
36
36
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import n from "
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { useIryxUiConfig as e } from "../config.js";
|
|
2
|
+
import t from "./Icon.js";
|
|
3
|
+
import { useButtonGroup as n } from "../composables/button-group.js";
|
|
4
|
+
import { buttonTheme as r } from "../theme/button.js";
|
|
5
|
+
import { computed as i, createBlock as a, createCommentVNode as o, defineComponent as s, normalizeClass as c, openBlock as l, renderSlot as u, unref as d, withCtx as f } from "vue";
|
|
6
|
+
import { Loading03Icon as p } from "@hugeicons/core-free-icons";
|
|
7
7
|
import { Primitive as m } from "reka-ui";
|
|
8
8
|
//#region src/components/Button.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var h = /*@__PURE__*/
|
|
9
|
+
var h = /*@__PURE__*/ s({
|
|
10
10
|
__name: "Button",
|
|
11
11
|
props: {
|
|
12
12
|
as: { default: "button" },
|
|
@@ -24,27 +24,27 @@ var h = /*@__PURE__*/ c({
|
|
|
24
24
|
type: { default: "button" },
|
|
25
25
|
class: {}
|
|
26
26
|
},
|
|
27
|
-
setup(
|
|
28
|
-
let h =
|
|
27
|
+
setup(s) {
|
|
28
|
+
let h = s, g = e(), _ = i(() => h.unstyled ?? g.unstyled), v = n(), y = i(() => h.size ?? v?.size.value), b = i(() => _.value ? h.class : r({
|
|
29
29
|
variant: h.variant,
|
|
30
30
|
size: y.value,
|
|
31
31
|
block: h.block,
|
|
32
32
|
square: h.square,
|
|
33
33
|
class: h.class
|
|
34
34
|
}));
|
|
35
|
-
return (
|
|
35
|
+
return (e, n) => (l(), a(d(m), {
|
|
36
36
|
as: h.as,
|
|
37
37
|
"as-child": h.asChild,
|
|
38
38
|
type: h.as === "button" ? h.type : void 0,
|
|
39
39
|
disabled: h.disabled || h.loading || void 0,
|
|
40
|
-
class:
|
|
40
|
+
class: c(b.value)
|
|
41
41
|
}, {
|
|
42
|
-
default:
|
|
42
|
+
default: f(() => [h.loading ? (l(), a(t, {
|
|
43
43
|
key: 0,
|
|
44
|
-
icon:
|
|
44
|
+
icon: d(p),
|
|
45
45
|
"data-icon": "inline-start",
|
|
46
46
|
class: "animate-spin"
|
|
47
|
-
}, null, 8, ["icon"])) :
|
|
47
|
+
}, null, 8, ["icon"])) : o("", !0), u(e.$slots, "default")]),
|
|
48
48
|
_: 3
|
|
49
49
|
}, 8, [
|
|
50
50
|
"as",
|
|
@@ -19,8 +19,8 @@ type __VLS_Slots = {} & {
|
|
|
19
19
|
default?: (props: typeof __VLS_8) => any;
|
|
20
20
|
};
|
|
21
21
|
declare const __VLS_base: import("vue").DefineComponent<ButtonGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {
|
|
22
|
-
as: string;
|
|
23
22
|
unstyled: boolean;
|
|
23
|
+
as: string;
|
|
24
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
26
|
declare const _default: typeof __VLS_export;
|
|
@@ -36,8 +36,8 @@ type __VLS_Slots = {} & {
|
|
|
36
36
|
footer?: (props: typeof __VLS_16) => any;
|
|
37
37
|
};
|
|
38
38
|
declare const __VLS_base: import("vue").DefineComponent<CardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {
|
|
39
|
-
as: string;
|
|
40
39
|
unstyled: boolean;
|
|
40
|
+
as: string;
|
|
41
41
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
42
42
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
43
43
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { useIryxUiConfig as e } from "../config.js";
|
|
2
|
+
import t from "./Icon.js";
|
|
3
|
+
import { checkboxTheme as n } from "../theme/checkbox.js";
|
|
4
|
+
import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, mergeProps as d, normalizeClass as f, openBlock as p, renderSlot as m, toDisplayString as h, unref as g, withCtx as _ } from "vue";
|
|
5
|
+
import { MinusSignIcon as v, Tick02Icon as y } from "@hugeicons/core-free-icons";
|
|
6
6
|
import { CheckboxIndicator as b, CheckboxRoot as x, Label as S, useForwardPropsEmits as C, useId as w } from "reka-ui";
|
|
7
7
|
//#region src/components/Checkbox.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var T = ["id"], E = /*@__PURE__*/
|
|
8
|
+
var T = ["id"], E = /*@__PURE__*/ u({
|
|
9
|
+
inheritAttrs: !1,
|
|
9
10
|
__name: "Checkbox",
|
|
10
11
|
props: {
|
|
11
12
|
label: {},
|
|
@@ -30,28 +31,31 @@ var T = ["id"], E = /*@__PURE__*/ f({
|
|
|
30
31
|
required: { type: Boolean }
|
|
31
32
|
},
|
|
32
33
|
emits: ["update:modelValue"],
|
|
33
|
-
setup(
|
|
34
|
-
let D =
|
|
34
|
+
setup(u, { emit: E }) {
|
|
35
|
+
let D = u, O = E, k = C(r(() => {
|
|
35
36
|
let { label: e, description: t, size: n, id: r, unstyled: i, class: a, ui: o, ...s } = D;
|
|
36
37
|
return s;
|
|
37
|
-
}), O), A = w(), j =
|
|
38
|
+
}), O), A = w(), j = r(() => D.id ?? A), M = r(() => !!(D.label || D.description)), N = e(), P = r(() => D.unstyled ?? N.unstyled), F = r(() => n({
|
|
38
39
|
size: D.size,
|
|
39
40
|
withText: M.value
|
|
40
|
-
})), I =
|
|
41
|
-
return (
|
|
41
|
+
})), I = r(() => P.value ? D.ui?.wrapper : F.value.wrapper({ class: D.ui?.wrapper })), L = r(() => P.value ? [D.ui?.root, D.class] : F.value.root({ class: [D.ui?.root, D.class] })), R = r(() => P.value ? D.ui?.indicator : F.value.indicator({ class: D.ui?.indicator })), z = r(() => P.value ? D.ui?.content : F.value.content({ class: D.ui?.content })), B = r(() => P.value ? D.ui?.label : F.value.label({ class: D.ui?.label })), V = r(() => P.value ? D.ui?.description : F.value.description({ class: D.ui?.description }));
|
|
42
|
+
return (e, n) => M.value ? (p(), o("div", {
|
|
42
43
|
key: 0,
|
|
43
|
-
class:
|
|
44
|
-
}, [
|
|
44
|
+
class: f(I.value)
|
|
45
|
+
}, [l(g(x), d({ id: j.value }, {
|
|
46
|
+
...g(k),
|
|
47
|
+
...e.$attrs
|
|
48
|
+
}, {
|
|
45
49
|
"aria-describedby": D.description ? `${j.value}-description` : void 0,
|
|
46
50
|
class: L.value
|
|
47
51
|
}), {
|
|
48
|
-
default:
|
|
49
|
-
default:
|
|
52
|
+
default: _(() => [l(g(b), { class: f(R.value) }, {
|
|
53
|
+
default: _(() => [m(e.$slots, "default", {}, () => [D.modelValue === "indeterminate" ? (p(), i(t, {
|
|
50
54
|
key: 0,
|
|
51
|
-
icon: v
|
|
52
|
-
}, null, 8, ["icon"])) : (
|
|
55
|
+
icon: g(v)
|
|
56
|
+
}, null, 8, ["icon"])) : (p(), i(t, {
|
|
53
57
|
key: 1,
|
|
54
|
-
icon:
|
|
58
|
+
icon: g(y)
|
|
55
59
|
}, null, 8, ["icon"]))])]),
|
|
56
60
|
_: 3
|
|
57
61
|
}, 8, ["class"])]),
|
|
@@ -60,27 +64,30 @@ var T = ["id"], E = /*@__PURE__*/ f({
|
|
|
60
64
|
"id",
|
|
61
65
|
"aria-describedby",
|
|
62
66
|
"class"
|
|
63
|
-
]),
|
|
67
|
+
]), s("div", { class: f(z.value) }, [l(g(S), {
|
|
64
68
|
for: j.value,
|
|
65
|
-
class:
|
|
69
|
+
class: f(B.value)
|
|
66
70
|
}, {
|
|
67
|
-
default:
|
|
71
|
+
default: _(() => [m(e.$slots, "label", {}, () => [c(h(D.label), 1)])]),
|
|
68
72
|
_: 3
|
|
69
|
-
}, 8, ["for", "class"]), D.description ||
|
|
73
|
+
}, 8, ["for", "class"]), D.description || e.$slots.description ? (p(), o("p", {
|
|
70
74
|
key: 0,
|
|
71
75
|
id: `${j.value}-description`,
|
|
72
|
-
class:
|
|
73
|
-
}, [
|
|
76
|
+
class: f(V.value)
|
|
77
|
+
}, [m(e.$slots, "description", {}, () => [c(h(D.description), 1)])], 10, T)) : a("", !0)], 2)], 2)) : (p(), i(g(x), d({
|
|
74
78
|
key: 1,
|
|
75
79
|
id: D.id
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
|
|
80
|
+
}, {
|
|
81
|
+
...g(k),
|
|
82
|
+
...e.$attrs
|
|
83
|
+
}, { class: L.value }), {
|
|
84
|
+
default: _(() => [l(g(b), { class: f(R.value) }, {
|
|
85
|
+
default: _(() => [m(e.$slots, "default", {}, () => [D.modelValue === "indeterminate" ? (p(), i(t, {
|
|
79
86
|
key: 0,
|
|
80
|
-
icon: v
|
|
81
|
-
}, null, 8, ["icon"])) : (
|
|
87
|
+
icon: g(v)
|
|
88
|
+
}, null, 8, ["icon"])) : (p(), i(t, {
|
|
82
89
|
key: 1,
|
|
83
|
-
icon:
|
|
90
|
+
icon: g(y)
|
|
84
91
|
}, null, 8, ["icon"]))])]),
|
|
85
92
|
_: 3
|
|
86
93
|
}, 8, ["class"])]),
|