@bitrix24/b24ui-nuxt 0.6.0 → 0.6.2
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 +1807 -3391
- package/dist/meta.mjs +1807 -3391
- 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 +8 -6
- package/dist/runtime/components/Form.vue.d.ts +6 -0
- 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/inertia/components/Link.vue +153 -0
- package/dist/runtime/inertia/components/Link.vue.d.ts +97 -0
- package/dist/runtime/inertia/stubs.d.ts +45 -0
- package/dist/runtime/inertia/stubs.js +84 -0
- 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 +47 -7
- package/dist/runtime/utils/tv.js +2 -2
- package/dist/runtime/vue/components/Link.vue +13 -12
- package/dist/runtime/vue/stubs.d.ts +1 -1
- package/dist/shared/{b24ui-nuxt.BA6Y2FnC.mjs → b24ui-nuxt.wBs9vEU5.mjs} +27 -2
- package/dist/unplugin.d.mts +4 -0
- package/dist/unplugin.mjs +12 -4
- package/dist/vite.mjs +1 -1
- package/package.json +21 -15
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import _appConfig from "#build/app.config";
|
|
3
2
|
import theme from "#build/b24ui/container";
|
|
4
|
-
import { tv } from "../utils/tv";
|
|
5
|
-
const appConfigContainer = _appConfig;
|
|
6
|
-
const container = tv({ extend: tv(theme), ...appConfigContainer.b24ui?.container || {} });
|
|
7
3
|
</script>
|
|
8
4
|
|
|
9
5
|
<script setup>
|
|
6
|
+
import { computed } from "vue";
|
|
10
7
|
import { Primitive } from "reka-ui";
|
|
8
|
+
import { useAppConfig } from "#imports";
|
|
9
|
+
import { tv } from "../utils/tv";
|
|
11
10
|
const props = defineProps({
|
|
12
11
|
as: { type: null, required: false },
|
|
13
12
|
class: { type: null, required: false }
|
|
14
13
|
});
|
|
15
14
|
defineSlots();
|
|
15
|
+
const appConfig = useAppConfig();
|
|
16
|
+
const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.container || {} }));
|
|
16
17
|
</script>
|
|
17
18
|
|
|
18
19
|
<template>
|
|
19
|
-
<Primitive :as="as" :class="
|
|
20
|
+
<Primitive :as="as" :class="b24ui({ class: props.class })">
|
|
20
21
|
<slot />
|
|
21
22
|
</Primitive>
|
|
22
23
|
</template>
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import _appConfig from "#build/app.config";
|
|
3
2
|
import theme from "#build/b24ui/countdown";
|
|
4
|
-
import { tv } from "../utils/tv";
|
|
5
|
-
const appConfigCountdown = _appConfig;
|
|
6
|
-
const countdown = tv({ extend: tv(theme), ...appConfigCountdown.b24ui?.countdown || {} });
|
|
7
3
|
</script>
|
|
8
4
|
|
|
9
5
|
<script setup>
|
|
10
6
|
import { ref, computed, watch, onMounted, onBeforeUnmount } from "vue";
|
|
11
|
-
import { useComponentIcons } from "../composables/useComponentIcons";
|
|
12
7
|
import { Primitive } from "reka-ui";
|
|
8
|
+
import { useAppConfig } from "#imports";
|
|
9
|
+
import { useComponentIcons } from "../composables/useComponentIcons";
|
|
10
|
+
import { tv } from "../utils/tv";
|
|
13
11
|
import B24Avatar from "./Avatar.vue";
|
|
14
12
|
const MILLISECONDS_SECOND = 1e3;
|
|
15
13
|
const MILLISECONDS_MINUTE = 60 * MILLISECONDS_SECOND;
|
|
@@ -27,7 +25,7 @@ const props = defineProps({
|
|
|
27
25
|
needStartImmediately: { type: Boolean, required: false, default: true },
|
|
28
26
|
now: { type: Function, required: false, default: () => Date.now() },
|
|
29
27
|
class: { type: null, required: false },
|
|
30
|
-
b24ui: { type:
|
|
28
|
+
b24ui: { type: null, required: false },
|
|
31
29
|
icon: { type: [Function, Object], required: false },
|
|
32
30
|
avatar: { type: Object, required: false }
|
|
33
31
|
});
|
|
@@ -36,7 +34,8 @@ defineSlots();
|
|
|
36
34
|
const { isLeading, leadingIconName } = useComponentIcons(
|
|
37
35
|
computed(() => ({ ...props, loading: false }))
|
|
38
36
|
);
|
|
39
|
-
const
|
|
37
|
+
const appConfig = useAppConfig();
|
|
38
|
+
const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.countdown || {} })({
|
|
40
39
|
size: props.size,
|
|
41
40
|
leading: Boolean(isLeading.value),
|
|
42
41
|
useCircle: Boolean(props.useCircle)
|
|
@@ -1,242 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
2
|
+
import theme from '#build/b24ui/countdown';
|
|
2
3
|
import type { UseComponentIconsProps } from '../composables/useComponentIcons';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
xs: {
|
|
6
|
-
base: string;
|
|
7
|
-
leadingIcon: string;
|
|
8
|
-
leadingAvatarSize: string;
|
|
9
|
-
};
|
|
10
|
-
sm: {
|
|
11
|
-
base: string;
|
|
12
|
-
leadingIcon: string;
|
|
13
|
-
leadingAvatarSize: string;
|
|
14
|
-
};
|
|
15
|
-
md: {
|
|
16
|
-
base: string;
|
|
17
|
-
leadingIcon: string;
|
|
18
|
-
leadingAvatarSize: string;
|
|
19
|
-
};
|
|
20
|
-
lg: {
|
|
21
|
-
base: string;
|
|
22
|
-
leadingIcon: string;
|
|
23
|
-
leadingAvatarSize: string;
|
|
24
|
-
};
|
|
25
|
-
xl: {
|
|
26
|
-
base: string;
|
|
27
|
-
leadingIcon: string;
|
|
28
|
-
leadingAvatarSize: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
leading: {
|
|
32
|
-
true: string;
|
|
33
|
-
};
|
|
34
|
-
useCircle: {
|
|
35
|
-
true: {
|
|
36
|
-
base: string;
|
|
37
|
-
circleBase: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
}, {
|
|
41
|
-
base: string;
|
|
42
|
-
label: string;
|
|
43
|
-
leadingIcon: string;
|
|
44
|
-
leadingAvatar: string;
|
|
45
|
-
leadingAvatarSize: string;
|
|
46
|
-
circleBase: string;
|
|
47
|
-
circleGroup: string;
|
|
48
|
-
circleElement: string;
|
|
49
|
-
circlePath: string;
|
|
50
|
-
}, undefined, {
|
|
51
|
-
size: {
|
|
52
|
-
xs: {
|
|
53
|
-
base: string;
|
|
54
|
-
leadingIcon: string;
|
|
55
|
-
leadingAvatarSize: string;
|
|
56
|
-
};
|
|
57
|
-
sm: {
|
|
58
|
-
base: string;
|
|
59
|
-
leadingIcon: string;
|
|
60
|
-
leadingAvatarSize: string;
|
|
61
|
-
};
|
|
62
|
-
md: {
|
|
63
|
-
base: string;
|
|
64
|
-
leadingIcon: string;
|
|
65
|
-
leadingAvatarSize: string;
|
|
66
|
-
};
|
|
67
|
-
lg: {
|
|
68
|
-
base: string;
|
|
69
|
-
leadingIcon: string;
|
|
70
|
-
leadingAvatarSize: string;
|
|
71
|
-
};
|
|
72
|
-
xl: {
|
|
73
|
-
base: string;
|
|
74
|
-
leadingIcon: string;
|
|
75
|
-
leadingAvatarSize: string;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
leading: {
|
|
79
|
-
true: string;
|
|
80
|
-
};
|
|
81
|
-
useCircle: {
|
|
82
|
-
true: {
|
|
83
|
-
base: string;
|
|
84
|
-
circleBase: string;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
}, {
|
|
88
|
-
base: string;
|
|
89
|
-
label: string;
|
|
90
|
-
leadingIcon: string;
|
|
91
|
-
leadingAvatar: string;
|
|
92
|
-
leadingAvatarSize: string;
|
|
93
|
-
circleBase: string;
|
|
94
|
-
circleGroup: string;
|
|
95
|
-
circleElement: string;
|
|
96
|
-
circlePath: string;
|
|
97
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
98
|
-
size: {
|
|
99
|
-
xs: {
|
|
100
|
-
base: string;
|
|
101
|
-
leadingIcon: string;
|
|
102
|
-
leadingAvatarSize: string;
|
|
103
|
-
};
|
|
104
|
-
sm: {
|
|
105
|
-
base: string;
|
|
106
|
-
leadingIcon: string;
|
|
107
|
-
leadingAvatarSize: string;
|
|
108
|
-
};
|
|
109
|
-
md: {
|
|
110
|
-
base: string;
|
|
111
|
-
leadingIcon: string;
|
|
112
|
-
leadingAvatarSize: string;
|
|
113
|
-
};
|
|
114
|
-
lg: {
|
|
115
|
-
base: string;
|
|
116
|
-
leadingIcon: string;
|
|
117
|
-
leadingAvatarSize: string;
|
|
118
|
-
};
|
|
119
|
-
xl: {
|
|
120
|
-
base: string;
|
|
121
|
-
leadingIcon: string;
|
|
122
|
-
leadingAvatarSize: string;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
leading: {
|
|
126
|
-
true: string;
|
|
127
|
-
};
|
|
128
|
-
useCircle: {
|
|
129
|
-
true: {
|
|
130
|
-
base: string;
|
|
131
|
-
circleBase: string;
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
}, {
|
|
135
|
-
base: string;
|
|
136
|
-
label: string;
|
|
137
|
-
leadingIcon: string;
|
|
138
|
-
leadingAvatar: string;
|
|
139
|
-
leadingAvatarSize: string;
|
|
140
|
-
circleBase: string;
|
|
141
|
-
circleGroup: string;
|
|
142
|
-
circleElement: string;
|
|
143
|
-
circlePath: string;
|
|
144
|
-
}, undefined, {
|
|
145
|
-
size: {
|
|
146
|
-
xs: {
|
|
147
|
-
base: string;
|
|
148
|
-
leadingIcon: string;
|
|
149
|
-
leadingAvatarSize: string;
|
|
150
|
-
};
|
|
151
|
-
sm: {
|
|
152
|
-
base: string;
|
|
153
|
-
leadingIcon: string;
|
|
154
|
-
leadingAvatarSize: string;
|
|
155
|
-
};
|
|
156
|
-
md: {
|
|
157
|
-
base: string;
|
|
158
|
-
leadingIcon: string;
|
|
159
|
-
leadingAvatarSize: string;
|
|
160
|
-
};
|
|
161
|
-
lg: {
|
|
162
|
-
base: string;
|
|
163
|
-
leadingIcon: string;
|
|
164
|
-
leadingAvatarSize: string;
|
|
165
|
-
};
|
|
166
|
-
xl: {
|
|
167
|
-
base: string;
|
|
168
|
-
leadingIcon: string;
|
|
169
|
-
leadingAvatarSize: string;
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
leading: {
|
|
173
|
-
true: string;
|
|
174
|
-
};
|
|
175
|
-
useCircle: {
|
|
176
|
-
true: {
|
|
177
|
-
base: string;
|
|
178
|
-
circleBase: string;
|
|
179
|
-
};
|
|
180
|
-
};
|
|
181
|
-
}, {
|
|
182
|
-
base: string;
|
|
183
|
-
label: string;
|
|
184
|
-
leadingIcon: string;
|
|
185
|
-
leadingAvatar: string;
|
|
186
|
-
leadingAvatarSize: string;
|
|
187
|
-
circleBase: string;
|
|
188
|
-
circleGroup: string;
|
|
189
|
-
circleElement: string;
|
|
190
|
-
circlePath: string;
|
|
191
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
192
|
-
size: {
|
|
193
|
-
xs: {
|
|
194
|
-
base: string;
|
|
195
|
-
leadingIcon: string;
|
|
196
|
-
leadingAvatarSize: string;
|
|
197
|
-
};
|
|
198
|
-
sm: {
|
|
199
|
-
base: string;
|
|
200
|
-
leadingIcon: string;
|
|
201
|
-
leadingAvatarSize: string;
|
|
202
|
-
};
|
|
203
|
-
md: {
|
|
204
|
-
base: string;
|
|
205
|
-
leadingIcon: string;
|
|
206
|
-
leadingAvatarSize: string;
|
|
207
|
-
};
|
|
208
|
-
lg: {
|
|
209
|
-
base: string;
|
|
210
|
-
leadingIcon: string;
|
|
211
|
-
leadingAvatarSize: string;
|
|
212
|
-
};
|
|
213
|
-
xl: {
|
|
214
|
-
base: string;
|
|
215
|
-
leadingIcon: string;
|
|
216
|
-
leadingAvatarSize: string;
|
|
217
|
-
};
|
|
218
|
-
};
|
|
219
|
-
leading: {
|
|
220
|
-
true: string;
|
|
221
|
-
};
|
|
222
|
-
useCircle: {
|
|
223
|
-
true: {
|
|
224
|
-
base: string;
|
|
225
|
-
circleBase: string;
|
|
226
|
-
};
|
|
227
|
-
};
|
|
228
|
-
}, {
|
|
229
|
-
base: string;
|
|
230
|
-
label: string;
|
|
231
|
-
leadingIcon: string;
|
|
232
|
-
leadingAvatar: string;
|
|
233
|
-
leadingAvatarSize: string;
|
|
234
|
-
circleBase: string;
|
|
235
|
-
circleGroup: string;
|
|
236
|
-
circleElement: string;
|
|
237
|
-
circlePath: string;
|
|
238
|
-
}, undefined, unknown, unknown, undefined>>>;
|
|
239
|
-
type CountdownVariants = VariantProps<typeof countdown>;
|
|
4
|
+
import type { ComponentConfig } from '../types/utils';
|
|
5
|
+
type Countdown = ComponentConfig<typeof theme, AppConfig, 'countdown'>;
|
|
240
6
|
export interface CountdownData {
|
|
241
7
|
days: number;
|
|
242
8
|
hours: number;
|
|
@@ -258,7 +24,7 @@ export interface CountdownProps extends Omit<UseComponentIconsProps, 'loading' |
|
|
|
258
24
|
/**
|
|
259
25
|
* @defaultValue 'md'
|
|
260
26
|
*/
|
|
261
|
-
size?:
|
|
27
|
+
size?: Countdown['variants']['size'];
|
|
262
28
|
/**
|
|
263
29
|
* Emits the countdown events
|
|
264
30
|
* @defaultValue true
|
|
@@ -295,7 +61,7 @@ export interface CountdownProps extends Omit<UseComponentIconsProps, 'loading' |
|
|
|
295
61
|
*/
|
|
296
62
|
now?: () => number;
|
|
297
63
|
class?: any;
|
|
298
|
-
b24ui?:
|
|
64
|
+
b24ui?: Countdown['slots'];
|
|
299
65
|
}
|
|
300
66
|
export interface CountdownEmits {
|
|
301
67
|
(e: 'start' | 'end' | 'abort'): void;
|
|
@@ -323,10 +89,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
323
89
|
restart: () => void;
|
|
324
90
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
|
|
325
91
|
as: any;
|
|
326
|
-
useCircle: boolean;
|
|
327
92
|
emitEvents: boolean;
|
|
328
93
|
seconds: number | string;
|
|
329
94
|
showMinutes: boolean;
|
|
95
|
+
useCircle: boolean;
|
|
330
96
|
interval: number;
|
|
331
97
|
needStartImmediately: boolean;
|
|
332
98
|
now: () => number;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import _appConfig from "#build/app.config";
|
|
3
2
|
import theme from "#build/b24ui/description-list";
|
|
4
|
-
import { tv } from "../utils/tv";
|
|
5
|
-
const appConfigDescriptionList = _appConfig;
|
|
6
|
-
const descriptionList = tv({ extend: tv(theme), ...appConfigDescriptionList.b24ui?.descriptionList || {} });
|
|
7
3
|
</script>
|
|
8
4
|
|
|
9
5
|
<script setup>
|
|
10
6
|
import { computed } from "vue";
|
|
7
|
+
import { useAppConfig } from "#imports";
|
|
11
8
|
import { get } from "../utils";
|
|
9
|
+
import { tv } from "../utils/tv";
|
|
12
10
|
import B24Avatar from "./Avatar.vue";
|
|
13
11
|
import B24Button from "./Button.vue";
|
|
14
12
|
const props = defineProps({
|
|
@@ -19,10 +17,11 @@ const props = defineProps({
|
|
|
19
17
|
items: { type: Array, required: false },
|
|
20
18
|
size: { type: null, required: false },
|
|
21
19
|
class: { type: null, required: false },
|
|
22
|
-
b24ui: { type:
|
|
20
|
+
b24ui: { type: null, required: false }
|
|
23
21
|
});
|
|
24
22
|
const slots = defineSlots();
|
|
25
|
-
const
|
|
23
|
+
const appConfig = useAppConfig();
|
|
24
|
+
const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.descriptionList || {} })({
|
|
26
25
|
size: props.size
|
|
27
26
|
}));
|
|
28
27
|
function normalizeItem(item) {
|
|
@@ -1,278 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
2
|
+
import theme from '#build/b24ui/description-list';
|
|
2
3
|
import type { AvatarProps, ButtonProps, IconComponent } from '../types';
|
|
3
|
-
import type { DynamicSlots } from '../types/utils';
|
|
4
|
-
|
|
5
|
-
size: {
|
|
6
|
-
sm: {
|
|
7
|
-
legend: string;
|
|
8
|
-
text: string;
|
|
9
|
-
container: string;
|
|
10
|
-
labelWrapper: string;
|
|
11
|
-
avatarSize: string;
|
|
12
|
-
label: string;
|
|
13
|
-
descriptionWrapper: string;
|
|
14
|
-
description: string;
|
|
15
|
-
footer: string;
|
|
16
|
-
};
|
|
17
|
-
md: {
|
|
18
|
-
legend: string;
|
|
19
|
-
text: string;
|
|
20
|
-
container: string;
|
|
21
|
-
labelWrapper: string;
|
|
22
|
-
avatarSize: string;
|
|
23
|
-
label: string;
|
|
24
|
-
descriptionWrapper: string;
|
|
25
|
-
description: string;
|
|
26
|
-
footer: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
orientation: {
|
|
30
|
-
horizontal: {
|
|
31
|
-
descriptionWrapper: string;
|
|
32
|
-
actions: string;
|
|
33
|
-
};
|
|
34
|
-
vertical: {
|
|
35
|
-
descriptionWrapper: string;
|
|
36
|
-
actions: string;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
title: {
|
|
40
|
-
true: {
|
|
41
|
-
description: string;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
}, {
|
|
45
|
-
root: string;
|
|
46
|
-
legend: string;
|
|
47
|
-
text: string;
|
|
48
|
-
container: string;
|
|
49
|
-
labelWrapper: string;
|
|
50
|
-
icon: string;
|
|
51
|
-
avatar: string;
|
|
52
|
-
avatarSize: string;
|
|
53
|
-
label: string;
|
|
54
|
-
descriptionWrapper: string;
|
|
55
|
-
description: string;
|
|
56
|
-
actions: string;
|
|
57
|
-
footer: string;
|
|
58
|
-
}, undefined, {
|
|
59
|
-
size: {
|
|
60
|
-
sm: {
|
|
61
|
-
legend: string;
|
|
62
|
-
text: string;
|
|
63
|
-
container: string;
|
|
64
|
-
labelWrapper: string;
|
|
65
|
-
avatarSize: string;
|
|
66
|
-
label: string;
|
|
67
|
-
descriptionWrapper: string;
|
|
68
|
-
description: string;
|
|
69
|
-
footer: string;
|
|
70
|
-
};
|
|
71
|
-
md: {
|
|
72
|
-
legend: string;
|
|
73
|
-
text: string;
|
|
74
|
-
container: string;
|
|
75
|
-
labelWrapper: string;
|
|
76
|
-
avatarSize: string;
|
|
77
|
-
label: string;
|
|
78
|
-
descriptionWrapper: string;
|
|
79
|
-
description: string;
|
|
80
|
-
footer: string;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
orientation: {
|
|
84
|
-
horizontal: {
|
|
85
|
-
descriptionWrapper: string;
|
|
86
|
-
actions: string;
|
|
87
|
-
};
|
|
88
|
-
vertical: {
|
|
89
|
-
descriptionWrapper: string;
|
|
90
|
-
actions: string;
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
title: {
|
|
94
|
-
true: {
|
|
95
|
-
description: string;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
}, {
|
|
99
|
-
root: string;
|
|
100
|
-
legend: string;
|
|
101
|
-
text: string;
|
|
102
|
-
container: string;
|
|
103
|
-
labelWrapper: string;
|
|
104
|
-
icon: string;
|
|
105
|
-
avatar: string;
|
|
106
|
-
avatarSize: string;
|
|
107
|
-
label: string;
|
|
108
|
-
descriptionWrapper: string;
|
|
109
|
-
description: string;
|
|
110
|
-
actions: string;
|
|
111
|
-
footer: string;
|
|
112
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
113
|
-
size: {
|
|
114
|
-
sm: {
|
|
115
|
-
legend: string;
|
|
116
|
-
text: string;
|
|
117
|
-
container: string;
|
|
118
|
-
labelWrapper: string;
|
|
119
|
-
avatarSize: string;
|
|
120
|
-
label: string;
|
|
121
|
-
descriptionWrapper: string;
|
|
122
|
-
description: string;
|
|
123
|
-
footer: string;
|
|
124
|
-
};
|
|
125
|
-
md: {
|
|
126
|
-
legend: string;
|
|
127
|
-
text: string;
|
|
128
|
-
container: string;
|
|
129
|
-
labelWrapper: string;
|
|
130
|
-
avatarSize: string;
|
|
131
|
-
label: string;
|
|
132
|
-
descriptionWrapper: string;
|
|
133
|
-
description: string;
|
|
134
|
-
footer: string;
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
orientation: {
|
|
138
|
-
horizontal: {
|
|
139
|
-
descriptionWrapper: string;
|
|
140
|
-
actions: string;
|
|
141
|
-
};
|
|
142
|
-
vertical: {
|
|
143
|
-
descriptionWrapper: string;
|
|
144
|
-
actions: string;
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
title: {
|
|
148
|
-
true: {
|
|
149
|
-
description: string;
|
|
150
|
-
};
|
|
151
|
-
};
|
|
152
|
-
}, {
|
|
153
|
-
root: string;
|
|
154
|
-
legend: string;
|
|
155
|
-
text: string;
|
|
156
|
-
container: string;
|
|
157
|
-
labelWrapper: string;
|
|
158
|
-
icon: string;
|
|
159
|
-
avatar: string;
|
|
160
|
-
avatarSize: string;
|
|
161
|
-
label: string;
|
|
162
|
-
descriptionWrapper: string;
|
|
163
|
-
description: string;
|
|
164
|
-
actions: string;
|
|
165
|
-
footer: string;
|
|
166
|
-
}, undefined, {
|
|
167
|
-
size: {
|
|
168
|
-
sm: {
|
|
169
|
-
legend: string;
|
|
170
|
-
text: string;
|
|
171
|
-
container: string;
|
|
172
|
-
labelWrapper: string;
|
|
173
|
-
avatarSize: string;
|
|
174
|
-
label: string;
|
|
175
|
-
descriptionWrapper: string;
|
|
176
|
-
description: string;
|
|
177
|
-
footer: string;
|
|
178
|
-
};
|
|
179
|
-
md: {
|
|
180
|
-
legend: string;
|
|
181
|
-
text: string;
|
|
182
|
-
container: string;
|
|
183
|
-
labelWrapper: string;
|
|
184
|
-
avatarSize: string;
|
|
185
|
-
label: string;
|
|
186
|
-
descriptionWrapper: string;
|
|
187
|
-
description: string;
|
|
188
|
-
footer: string;
|
|
189
|
-
};
|
|
190
|
-
};
|
|
191
|
-
orientation: {
|
|
192
|
-
horizontal: {
|
|
193
|
-
descriptionWrapper: string;
|
|
194
|
-
actions: string;
|
|
195
|
-
};
|
|
196
|
-
vertical: {
|
|
197
|
-
descriptionWrapper: string;
|
|
198
|
-
actions: string;
|
|
199
|
-
};
|
|
200
|
-
};
|
|
201
|
-
title: {
|
|
202
|
-
true: {
|
|
203
|
-
description: string;
|
|
204
|
-
};
|
|
205
|
-
};
|
|
206
|
-
}, {
|
|
207
|
-
root: string;
|
|
208
|
-
legend: string;
|
|
209
|
-
text: string;
|
|
210
|
-
container: string;
|
|
211
|
-
labelWrapper: string;
|
|
212
|
-
icon: string;
|
|
213
|
-
avatar: string;
|
|
214
|
-
avatarSize: string;
|
|
215
|
-
label: string;
|
|
216
|
-
descriptionWrapper: string;
|
|
217
|
-
description: string;
|
|
218
|
-
actions: string;
|
|
219
|
-
footer: string;
|
|
220
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
221
|
-
size: {
|
|
222
|
-
sm: {
|
|
223
|
-
legend: string;
|
|
224
|
-
text: string;
|
|
225
|
-
container: string;
|
|
226
|
-
labelWrapper: string;
|
|
227
|
-
avatarSize: string;
|
|
228
|
-
label: string;
|
|
229
|
-
descriptionWrapper: string;
|
|
230
|
-
description: string;
|
|
231
|
-
footer: string;
|
|
232
|
-
};
|
|
233
|
-
md: {
|
|
234
|
-
legend: string;
|
|
235
|
-
text: string;
|
|
236
|
-
container: string;
|
|
237
|
-
labelWrapper: string;
|
|
238
|
-
avatarSize: string;
|
|
239
|
-
label: string;
|
|
240
|
-
descriptionWrapper: string;
|
|
241
|
-
description: string;
|
|
242
|
-
footer: string;
|
|
243
|
-
};
|
|
244
|
-
};
|
|
245
|
-
orientation: {
|
|
246
|
-
horizontal: {
|
|
247
|
-
descriptionWrapper: string;
|
|
248
|
-
actions: string;
|
|
249
|
-
};
|
|
250
|
-
vertical: {
|
|
251
|
-
descriptionWrapper: string;
|
|
252
|
-
actions: string;
|
|
253
|
-
};
|
|
254
|
-
};
|
|
255
|
-
title: {
|
|
256
|
-
true: {
|
|
257
|
-
description: string;
|
|
258
|
-
};
|
|
259
|
-
};
|
|
260
|
-
}, {
|
|
261
|
-
root: string;
|
|
262
|
-
legend: string;
|
|
263
|
-
text: string;
|
|
264
|
-
container: string;
|
|
265
|
-
labelWrapper: string;
|
|
266
|
-
icon: string;
|
|
267
|
-
avatar: string;
|
|
268
|
-
avatarSize: string;
|
|
269
|
-
label: string;
|
|
270
|
-
descriptionWrapper: string;
|
|
271
|
-
description: string;
|
|
272
|
-
actions: string;
|
|
273
|
-
footer: string;
|
|
274
|
-
}, undefined, unknown, unknown, undefined>>>;
|
|
275
|
-
type DescriptionListVariants = VariantProps<typeof descriptionList>;
|
|
4
|
+
import type { DynamicSlots, ComponentConfig } from '../types/utils';
|
|
5
|
+
type DescriptionList = ComponentConfig<typeof theme, AppConfig, 'descriptionList'>;
|
|
276
6
|
export interface DescriptionListItem {
|
|
277
7
|
label?: string;
|
|
278
8
|
/**
|
|
@@ -287,7 +17,7 @@ export interface DescriptionListItem {
|
|
|
287
17
|
* The orientation between the content and the actions.
|
|
288
18
|
* @defaultValue 'vertical'
|
|
289
19
|
*/
|
|
290
|
-
orientation?:
|
|
20
|
+
orientation?: DescriptionList['variants']['orientation'];
|
|
291
21
|
/**
|
|
292
22
|
* Display a list of actions:
|
|
293
23
|
* - under the description when orientation is `vertical`
|
|
@@ -296,7 +26,7 @@ export interface DescriptionListItem {
|
|
|
296
26
|
*/
|
|
297
27
|
actions?: ButtonProps[];
|
|
298
28
|
class?: any;
|
|
299
|
-
b24ui?:
|
|
29
|
+
b24ui?: DescriptionList['slots'];
|
|
300
30
|
[key: string]: any;
|
|
301
31
|
}
|
|
302
32
|
export interface DescriptionListProps<T extends DescriptionListItem = DescriptionListItem> {
|
|
@@ -316,9 +46,9 @@ export interface DescriptionListProps<T extends DescriptionListItem = Descriptio
|
|
|
316
46
|
/**
|
|
317
47
|
* @defaultValue 'md'
|
|
318
48
|
*/
|
|
319
|
-
size?:
|
|
49
|
+
size?: DescriptionList['variants']['size'];
|
|
320
50
|
class?: any;
|
|
321
|
-
b24ui?:
|
|
51
|
+
b24ui?: DescriptionList['slots'];
|
|
322
52
|
}
|
|
323
53
|
type SlotProps<T extends DescriptionListItem> = (props: {
|
|
324
54
|
item: T;
|