@bitrix24/b24ui-nuxt 0.6.0 → 0.6.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/.nuxt/b24ui/advice.ts +10 -2
- package/.nuxt/b24ui/alert.ts +10 -2
- package/.nuxt/b24ui/avatar-group.ts +10 -2
- package/.nuxt/b24ui/avatar.ts +10 -2
- package/.nuxt/b24ui/badge.ts +10 -2
- package/.nuxt/b24ui/button-group.ts +10 -2
- package/.nuxt/b24ui/button.ts +16 -6
- package/.nuxt/b24ui/calendar.ts +10 -2
- package/.nuxt/b24ui/checkbox.ts +10 -2
- package/.nuxt/b24ui/chip.ts +10 -2
- package/.nuxt/b24ui/collapsible.ts +10 -2
- package/.nuxt/b24ui/container.ts +10 -2
- package/.nuxt/b24ui/countdown.ts +10 -2
- package/.nuxt/b24ui/description-list.ts +10 -2
- package/.nuxt/b24ui/dropdown-menu.ts +10 -2
- package/.nuxt/b24ui/form-field.ts +10 -2
- package/.nuxt/b24ui/form.ts +10 -2
- package/.nuxt/b24ui/input-menu.ts +10 -2
- package/.nuxt/b24ui/input-number.ts +10 -2
- package/.nuxt/b24ui/input.ts +10 -2
- package/.nuxt/b24ui/kbd.ts +10 -2
- package/.nuxt/b24ui/link.ts +10 -2
- package/.nuxt/b24ui/modal.ts +10 -2
- package/.nuxt/b24ui/navbar-divider.ts +10 -2
- package/.nuxt/b24ui/navbar-section.ts +10 -2
- package/.nuxt/b24ui/navbar-spacer.ts +10 -2
- package/.nuxt/b24ui/navbar.ts +10 -2
- package/.nuxt/b24ui/navigation-menu.ts +10 -2
- package/.nuxt/b24ui/popover.ts +10 -2
- package/.nuxt/b24ui/progress.ts +10 -2
- package/.nuxt/b24ui/radio-group.ts +10 -2
- package/.nuxt/b24ui/range.ts +10 -2
- package/.nuxt/b24ui/select-menu.ts +10 -2
- package/.nuxt/b24ui/select.ts +10 -2
- package/.nuxt/b24ui/separator.ts +10 -2
- package/.nuxt/b24ui/sidebar-body.ts +10 -2
- package/.nuxt/b24ui/sidebar-footer.ts +10 -2
- package/.nuxt/b24ui/sidebar-header.ts +10 -2
- package/.nuxt/b24ui/sidebar-heading.ts +10 -2
- package/.nuxt/b24ui/sidebar-layout.ts +10 -2
- package/.nuxt/b24ui/sidebar-section.ts +10 -2
- package/.nuxt/b24ui/sidebar-spacer.ts +10 -2
- package/.nuxt/b24ui/sidebar.ts +10 -2
- package/.nuxt/b24ui/skeleton.ts +10 -2
- package/.nuxt/b24ui/slideover.ts +10 -2
- package/.nuxt/b24ui/stacked-layout.ts +10 -2
- package/.nuxt/b24ui/switch.ts +10 -2
- package/.nuxt/b24ui/tabs.ts +10 -2
- package/.nuxt/b24ui/textarea.ts +10 -2
- package/.nuxt/b24ui/toast.ts +10 -2
- package/.nuxt/b24ui/toaster.ts +10 -2
- package/.nuxt/b24ui/tooltip.ts +10 -2
- package/cli/templates.mjs +19 -15
- package/dist/meta.d.mts +1388 -3373
- package/dist/meta.mjs +1388 -3373
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/components/Advice.vue +5 -6
- package/dist/runtime/components/Advice.vue.d.ts +7 -121
- package/dist/runtime/components/Alert.vue +5 -6
- package/dist/runtime/components/Alert.vue.d.ts +12 -379
- package/dist/runtime/components/Avatar.vue +5 -6
- package/dist/runtime/components/Avatar.vue.d.ts +6 -225
- package/dist/runtime/components/AvatarGroup.vue +5 -6
- package/dist/runtime/components/AvatarGroup.vue.d.ts +6 -170
- package/dist/runtime/components/Badge.vue +5 -6
- package/dist/runtime/components/Badge.vue.d.ts +8 -447
- package/dist/runtime/components/Button.vue +16 -14
- package/dist/runtime/components/Button.vue.d.ts +10 -535
- package/dist/runtime/components/ButtonGroup.vue +11 -6
- package/dist/runtime/components/ButtonGroup.vue.d.ts +8 -61
- package/dist/runtime/components/Calendar.vue +4 -5
- package/dist/runtime/components/Calendar.vue.d.ts +7 -337
- package/dist/runtime/components/Checkbox.vue +5 -6
- package/dist/runtime/components/Checkbox.vue.d.ts +7 -306
- package/dist/runtime/components/Chip.vue +5 -6
- package/dist/runtime/components/Chip.vue.d.ts +8 -202
- package/dist/runtime/components/Collapsible.vue +6 -6
- package/dist/runtime/components/Collapsible.vue.d.ts +5 -73
- package/dist/runtime/components/Container.vue +6 -5
- package/dist/runtime/components/Countdown.vue +6 -7
- package/dist/runtime/components/Countdown.vue.d.ts +7 -241
- package/dist/runtime/components/DescriptionList.vue +5 -6
- package/dist/runtime/components/DescriptionList.vue.d.ts +8 -278
- package/dist/runtime/components/DropdownMenu.vue +4 -5
- package/dist/runtime/components/DropdownMenu.vue.d.ts +9 -409
- package/dist/runtime/components/DropdownMenuContent.vue +1 -3
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +9 -186
- package/dist/runtime/components/Form.vue +6 -5
- package/dist/runtime/components/FormField.vue +5 -6
- package/dist/runtime/components/FormField.vue.d.ts +6 -215
- package/dist/runtime/components/Input.vue +4 -5
- package/dist/runtime/components/Input.vue.d.ts +8 -628
- package/dist/runtime/components/InputMenu.vue +4 -5
- package/dist/runtime/components/InputMenu.vue.d.ts +19 -1185
- package/dist/runtime/components/InputNumber.vue +4 -5
- package/dist/runtime/components/InputNumber.vue.d.ts +10 -430
- package/dist/runtime/components/Kbd.vue +6 -5
- package/dist/runtime/components/Kbd.vue.d.ts +6 -60
- package/dist/runtime/components/Link.vue +12 -11
- package/dist/runtime/components/Modal.vue +5 -6
- package/dist/runtime/components/Modal.vue.d.ts +13 -216
- package/dist/runtime/components/Navbar.vue +6 -6
- package/dist/runtime/components/Navbar.vue.d.ts +5 -60
- package/dist/runtime/components/NavbarDivider.vue +6 -6
- package/dist/runtime/components/NavbarDivider.vue.d.ts +5 -60
- package/dist/runtime/components/NavbarSection.vue +6 -6
- package/dist/runtime/components/NavbarSection.vue.d.ts +5 -60
- package/dist/runtime/components/NavbarSpacer.vue +6 -6
- package/dist/runtime/components/NavbarSpacer.vue.d.ts +5 -60
- package/dist/runtime/components/NavigationMenu.vue +4 -5
- package/dist/runtime/components/NavigationMenu.vue.d.ts +11 -676
- package/dist/runtime/components/Popover.vue +5 -6
- package/dist/runtime/components/Popover.vue.d.ts +7 -75
- package/dist/runtime/components/Progress.vue +5 -6
- package/dist/runtime/components/Progress.vue.d.ts +11 -500
- package/dist/runtime/components/RadioGroup.vue +5 -6
- package/dist/runtime/components/RadioGroup.vue.d.ts +9 -644
- package/dist/runtime/components/Range.vue +5 -6
- package/dist/runtime/components/Range.vue.d.ts +7 -351
- package/dist/runtime/components/Select.vue +4 -5
- package/dist/runtime/components/Select.vue.d.ts +15 -1046
- package/dist/runtime/components/SelectMenu.vue +4 -5
- package/dist/runtime/components/SelectMenu.vue.d.ts +17 -1098
- package/dist/runtime/components/Separator.vue +5 -6
- package/dist/runtime/components/Separator.vue.d.ts +9 -332
- package/dist/runtime/components/Sidebar.vue +6 -6
- package/dist/runtime/components/Sidebar.vue.d.ts +5 -60
- package/dist/runtime/components/SidebarBody.vue +5 -6
- package/dist/runtime/components/SidebarBody.vue.d.ts +5 -42
- package/dist/runtime/components/SidebarFooter.vue +6 -6
- package/dist/runtime/components/SidebarFooter.vue.d.ts +5 -60
- package/dist/runtime/components/SidebarHeader.vue +6 -6
- package/dist/runtime/components/SidebarHeader.vue.d.ts +5 -60
- package/dist/runtime/components/SidebarHeading.vue +6 -6
- package/dist/runtime/components/SidebarHeading.vue.d.ts +5 -60
- package/dist/runtime/components/SidebarLayout.vue +6 -7
- package/dist/runtime/components/SidebarLayout.vue.d.ts +5 -162
- package/dist/runtime/components/SidebarSection.vue +6 -6
- package/dist/runtime/components/SidebarSection.vue.d.ts +5 -60
- package/dist/runtime/components/SidebarSpacer.vue +6 -6
- package/dist/runtime/components/SidebarSpacer.vue.d.ts +5 -60
- package/dist/runtime/components/Skeleton.vue +6 -5
- package/dist/runtime/components/Slideover.vue +5 -6
- package/dist/runtime/components/Slideover.vue.d.ts +15 -248
- package/dist/runtime/components/StackedLayout.vue +6 -7
- package/dist/runtime/components/StackedLayout.vue.d.ts +5 -132
- package/dist/runtime/components/Switch.vue +4 -5
- package/dist/runtime/components/Switch.vue.d.ts +7 -517
- package/dist/runtime/components/Tabs.vue +8 -5
- package/dist/runtime/components/Tabs.vue.d.ts +18 -367
- package/dist/runtime/components/Textarea.vue +4 -5
- package/dist/runtime/components/Textarea.vue.d.ts +7 -467
- package/dist/runtime/components/Toast.vue +5 -6
- package/dist/runtime/components/Toast.vue.d.ts +11 -354
- package/dist/runtime/components/Toaster.vue +6 -7
- package/dist/runtime/components/Toaster.vue.d.ts +7 -156
- package/dist/runtime/components/Tooltip.vue +5 -6
- package/dist/runtime/components/Tooltip.vue.d.ts +5 -126
- package/dist/runtime/components/content/TableWrapper.vue +5 -6
- package/dist/runtime/components/content/TableWrapper.vue.d.ts +6 -160
- package/dist/runtime/prose/A.vue +10 -9
- package/dist/runtime/prose/A.vue.d.ts +8 -65
- package/dist/runtime/prose/Blockquote.vue +8 -9
- package/dist/runtime/prose/Blockquote.vue.d.ts +8 -65
- package/dist/runtime/prose/Code.vue +6 -6
- package/dist/runtime/prose/Code.vue.d.ts +9 -75
- package/dist/runtime/prose/Em.vue +10 -9
- package/dist/runtime/prose/Em.vue.d.ts +8 -65
- package/dist/runtime/prose/H1.vue +8 -9
- package/dist/runtime/prose/H1.vue.d.ts +8 -78
- package/dist/runtime/prose/H2.vue +8 -9
- package/dist/runtime/prose/H2.vue.d.ts +8 -104
- package/dist/runtime/prose/H3.vue +8 -9
- package/dist/runtime/prose/H3.vue.d.ts +8 -104
- package/dist/runtime/prose/H4.vue +8 -9
- package/dist/runtime/prose/H4.vue.d.ts +8 -104
- package/dist/runtime/prose/H5.vue +8 -9
- package/dist/runtime/prose/H5.vue.d.ts +8 -104
- package/dist/runtime/prose/H6.vue +8 -9
- package/dist/runtime/prose/H6.vue.d.ts +8 -104
- package/dist/runtime/prose/Hr.vue +7 -9
- package/dist/runtime/prose/Hr.vue.d.ts +7 -62
- package/dist/runtime/prose/Img.vue +7 -9
- package/dist/runtime/prose/Img.vue.d.ts +7 -65
- package/dist/runtime/prose/Li.vue +8 -9
- package/dist/runtime/prose/Li.vue.d.ts +8 -65
- package/dist/runtime/prose/Ol.vue +8 -9
- package/dist/runtime/prose/Ol.vue.d.ts +8 -65
- package/dist/runtime/prose/P.vue +8 -9
- package/dist/runtime/prose/P.vue.d.ts +8 -65
- package/dist/runtime/prose/Pre.vue +7 -6
- package/dist/runtime/prose/Pre.vue.d.ts +10 -80
- package/dist/runtime/prose/Strong.vue +8 -9
- package/dist/runtime/prose/Strong.vue.d.ts +8 -65
- package/dist/runtime/prose/Table.vue +8 -9
- package/dist/runtime/prose/Table.vue.d.ts +10 -80
- package/dist/runtime/prose/Tbody.vue +8 -9
- package/dist/runtime/prose/Tbody.vue.d.ts +8 -65
- package/dist/runtime/prose/Td.vue +8 -9
- package/dist/runtime/prose/Td.vue.d.ts +8 -65
- package/dist/runtime/prose/Th.vue +8 -9
- package/dist/runtime/prose/Th.vue.d.ts +8 -65
- package/dist/runtime/prose/Thead.vue +8 -9
- package/dist/runtime/prose/Thead.vue.d.ts +8 -65
- package/dist/runtime/prose/Tr.vue +8 -9
- package/dist/runtime/prose/Tr.vue.d.ts +8 -65
- package/dist/runtime/prose/Ul.vue +8 -9
- package/dist/runtime/prose/Ul.vue.d.ts +8 -65
- package/dist/runtime/types/form.d.ts +1 -0
- package/dist/runtime/types/utils.d.ts +42 -3
- package/dist/runtime/utils/tv.js +2 -2
- package/dist/runtime/vue/components/Link.vue +12 -11
- package/dist/shared/{b24ui-nuxt.BA6Y2FnC.mjs → b24ui-nuxt.wBs9vEU5.mjs} +27 -2
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +6 -6
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import _appConfig from "#build/app.config";
|
|
3
2
|
import theme from "#build/b24ui/popover";
|
|
4
|
-
import { tv } from "../utils/tv";
|
|
5
|
-
const appConfigPopover = _appConfig;
|
|
6
|
-
const popover = tv({ extend: tv(theme), ...appConfigPopover.b24ui?.popover || {} });
|
|
7
3
|
</script>
|
|
8
4
|
|
|
9
5
|
<script setup>
|
|
@@ -12,6 +8,8 @@ import { defu } from "defu";
|
|
|
12
8
|
import { useForwardPropsEmits } from "reka-ui";
|
|
13
9
|
import { Popover, HoverCard } from "reka-ui/namespaced";
|
|
14
10
|
import { reactivePick } from "@vueuse/core";
|
|
11
|
+
import { useAppConfig } from "#imports";
|
|
12
|
+
import { tv } from "../utils/tv";
|
|
15
13
|
const props = defineProps({
|
|
16
14
|
mode: { type: String, required: false, default: "click" },
|
|
17
15
|
content: { type: Object, required: false },
|
|
@@ -19,7 +17,7 @@ const props = defineProps({
|
|
|
19
17
|
portal: { type: Boolean, required: false, default: true },
|
|
20
18
|
dismissible: { type: Boolean, required: false, default: true },
|
|
21
19
|
class: { type: null, required: false },
|
|
22
|
-
b24ui: { type:
|
|
20
|
+
b24ui: { type: null, required: false },
|
|
23
21
|
defaultOpen: { type: Boolean, required: false },
|
|
24
22
|
open: { type: Boolean, required: false },
|
|
25
23
|
modal: { type: Boolean, required: false },
|
|
@@ -28,6 +26,7 @@ const props = defineProps({
|
|
|
28
26
|
});
|
|
29
27
|
const emits = defineEmits(["update:open"]);
|
|
30
28
|
const slots = defineSlots();
|
|
29
|
+
const appConfig = useAppConfig();
|
|
31
30
|
const pick = props.mode === "hover" ? reactivePick(props, "defaultOpen", "open", "openDelay", "closeDelay") : reactivePick(props, "defaultOpen", "open", "modal");
|
|
32
31
|
const rootProps = useForwardPropsEmits(pick, emits);
|
|
33
32
|
const contentProps = toRef(() => defu(props.content, { side: "bottom", sideOffset: 8, collisionPadding: 8 }));
|
|
@@ -42,7 +41,7 @@ const contentEvents = computed(() => {
|
|
|
42
41
|
return {};
|
|
43
42
|
});
|
|
44
43
|
const arrowProps = toRef(() => props.arrow);
|
|
45
|
-
const b24ui = computed(() => popover({
|
|
44
|
+
const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.popover || {} })({
|
|
46
45
|
side: contentProps.value.side
|
|
47
46
|
}));
|
|
48
47
|
const Component = computed(() => props.mode === "hover" ? HoverCard : Popover);
|
|
@@ -1,77 +1,9 @@
|
|
|
1
|
+
import { Popover } from 'reka-ui/namespaced';
|
|
1
2
|
import type { PopoverRootProps, HoverCardRootProps, PopoverRootEmits, PopoverContentProps, PopoverContentEmits, PopoverArrowProps } from 'reka-ui';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
content?: import("tailwind-variants").ClassValue;
|
|
7
|
-
arrow?: import("tailwind-variants").ClassValue;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
} | {
|
|
11
|
-
[x: string]: {
|
|
12
|
-
[x: string]: import("tailwind-variants").ClassValue | {
|
|
13
|
-
content?: import("tailwind-variants").ClassValue;
|
|
14
|
-
arrow?: import("tailwind-variants").ClassValue;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
} | {
|
|
18
|
-
[x: string]: {
|
|
19
|
-
[x: string]: import("tailwind-variants").ClassValue | {
|
|
20
|
-
content?: import("tailwind-variants").ClassValue;
|
|
21
|
-
arrow?: import("tailwind-variants").ClassValue;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
} | {}, {
|
|
25
|
-
content: string;
|
|
26
|
-
arrow: string;
|
|
27
|
-
}, undefined, {
|
|
28
|
-
[key: string]: {
|
|
29
|
-
[key: string]: import("tailwind-variants").ClassValue | {
|
|
30
|
-
content?: import("tailwind-variants").ClassValue;
|
|
31
|
-
arrow?: import("tailwind-variants").ClassValue;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
} | {
|
|
35
|
-
[x: string]: {
|
|
36
|
-
[x: string]: import("tailwind-variants").ClassValue | {
|
|
37
|
-
content?: import("tailwind-variants").ClassValue;
|
|
38
|
-
arrow?: import("tailwind-variants").ClassValue;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
} | {}, {
|
|
42
|
-
content: string;
|
|
43
|
-
arrow: string;
|
|
44
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
45
|
-
[key: string]: {
|
|
46
|
-
[key: string]: import("tailwind-variants").ClassValue | {
|
|
47
|
-
content?: import("tailwind-variants").ClassValue;
|
|
48
|
-
arrow?: import("tailwind-variants").ClassValue;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
} | {
|
|
52
|
-
[x: string]: {
|
|
53
|
-
[x: string]: import("tailwind-variants").ClassValue | {
|
|
54
|
-
content?: import("tailwind-variants").ClassValue;
|
|
55
|
-
arrow?: import("tailwind-variants").ClassValue;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
} | {}, {
|
|
59
|
-
content: string;
|
|
60
|
-
arrow: string;
|
|
61
|
-
}, undefined, {
|
|
62
|
-
[key: string]: {
|
|
63
|
-
[key: string]: import("tailwind-variants").ClassValue | {
|
|
64
|
-
content?: import("tailwind-variants").ClassValue;
|
|
65
|
-
arrow?: import("tailwind-variants").ClassValue;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
} | {}, {
|
|
69
|
-
content: string;
|
|
70
|
-
arrow: string;
|
|
71
|
-
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
72
|
-
content: string;
|
|
73
|
-
arrow: string;
|
|
74
|
-
}, undefined, unknown, unknown, undefined>>>;
|
|
3
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
4
|
+
import theme from '#build/b24ui/popover';
|
|
5
|
+
import type { EmitsToProps, ComponentConfig } from '../types/utils';
|
|
6
|
+
type Popover = ComponentConfig<typeof theme, AppConfig, 'popover'>;
|
|
75
7
|
export interface PopoverProps extends PopoverRootProps, Pick<HoverCardRootProps, 'openDelay' | 'closeDelay'> {
|
|
76
8
|
/**
|
|
77
9
|
* The display mode of the popover.
|
|
@@ -99,7 +31,7 @@ export interface PopoverProps extends PopoverRootProps, Pick<HoverCardRootProps,
|
|
|
99
31
|
*/
|
|
100
32
|
dismissible?: boolean;
|
|
101
33
|
class?: any;
|
|
102
|
-
b24ui?:
|
|
34
|
+
b24ui?: Popover['slots'];
|
|
103
35
|
}
|
|
104
36
|
export interface PopoverEmits extends PopoverRootEmits {
|
|
105
37
|
}
|
|
@@ -116,11 +48,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
116
48
|
closeDelay: number;
|
|
117
49
|
dismissible: boolean;
|
|
118
50
|
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
|
|
51
|
+
mode: "click" | "hover";
|
|
119
52
|
portal: boolean;
|
|
120
53
|
dismissible: boolean;
|
|
121
54
|
openDelay: number;
|
|
122
55
|
closeDelay: number;
|
|
123
|
-
mode: "click" | "hover";
|
|
124
56
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<PopoverSlots> & PopoverSlots>;
|
|
125
57
|
export default _default;
|
|
126
58
|
type __VLS_WithDefaults<P, D> = {
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import _appConfig from "#build/app.config";
|
|
3
2
|
import theme from "#build/b24ui/progress";
|
|
4
|
-
import { tv } from "../utils/tv";
|
|
5
|
-
const appConfigProgress = _appConfig;
|
|
6
|
-
const progress = tv({ extend: tv(theme), ...appConfigProgress.b24ui?.progress || {} });
|
|
7
3
|
</script>
|
|
8
4
|
|
|
9
5
|
<script setup>
|
|
10
6
|
import { computed } from "vue";
|
|
11
7
|
import { Primitive, ProgressRoot, ProgressIndicator, useForwardPropsEmits } from "reka-ui";
|
|
12
8
|
import { reactivePick } from "@vueuse/core";
|
|
9
|
+
import { useAppConfig } from "#imports";
|
|
13
10
|
import { useLocale } from "../composables/useLocale";
|
|
11
|
+
import { tv } from "../utils/tv";
|
|
14
12
|
const props = defineProps({
|
|
15
13
|
as: { type: null, required: false },
|
|
16
14
|
max: { type: [Number, Array], required: false },
|
|
@@ -21,13 +19,14 @@ const props = defineProps({
|
|
|
21
19
|
orientation: { type: null, required: false, default: "horizontal" },
|
|
22
20
|
animation: { type: null, required: false },
|
|
23
21
|
class: { type: null, required: false },
|
|
24
|
-
b24ui: { type:
|
|
22
|
+
b24ui: { type: null, required: false },
|
|
25
23
|
getValueLabel: { type: Function, required: false },
|
|
26
24
|
modelValue: { type: [Number, null], required: false, default: null }
|
|
27
25
|
});
|
|
28
26
|
const emits = defineEmits(["update:modelValue", "update:max"]);
|
|
29
27
|
const slots = defineSlots();
|
|
30
28
|
const { dir } = useLocale();
|
|
29
|
+
const appConfig = useAppConfig();
|
|
31
30
|
const rootProps = useForwardPropsEmits(reactivePick(props, "getValueLabel", "modelValue"), emits);
|
|
32
31
|
const isIndeterminate = computed(() => rootProps.value.modelValue === null);
|
|
33
32
|
const hasSteps = computed(() => Array.isArray(props.max));
|
|
@@ -100,7 +99,7 @@ function stepVariant(index) {
|
|
|
100
99
|
}
|
|
101
100
|
return "other";
|
|
102
101
|
}
|
|
103
|
-
const b24ui = computed(() => progress({
|
|
102
|
+
const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.progress || {} })({
|
|
104
103
|
animation: props.animation,
|
|
105
104
|
size: props.size,
|
|
106
105
|
color: props.color,
|