@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,17 +1,15 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import _appConfig from "#build/app.config";
|
|
3
2
|
import theme from "#build/b24ui/input-number";
|
|
4
|
-
import { tv } from "../utils/tv";
|
|
5
|
-
const appConfigInputNumber = _appConfig;
|
|
6
|
-
const inputNumber = tv({ extend: tv(theme), ...appConfigInputNumber.b24ui?.inputNumber || {} });
|
|
7
3
|
</script>
|
|
8
4
|
|
|
9
5
|
<script setup>
|
|
10
6
|
import { onMounted, ref, computed } from "vue";
|
|
11
7
|
import { NumberFieldRoot, NumberFieldInput, NumberFieldDecrement, NumberFieldIncrement, useForwardPropsEmits } from "reka-ui";
|
|
12
8
|
import { reactivePick } from "@vueuse/core";
|
|
9
|
+
import { useAppConfig } from "#imports";
|
|
13
10
|
import { useFormField } from "../composables/useFormField";
|
|
14
11
|
import { useLocale } from "../composables/useLocale";
|
|
12
|
+
import { tv } from "../utils/tv";
|
|
15
13
|
import icons from "../dictionary/icons";
|
|
16
14
|
import B24Button from "./Button.vue";
|
|
17
15
|
defineOptions({ inheritAttrs: false });
|
|
@@ -52,6 +50,7 @@ const props = defineProps({
|
|
|
52
50
|
});
|
|
53
51
|
const emits = defineEmits(["update:modelValue", "blur", "change"]);
|
|
54
52
|
defineSlots();
|
|
53
|
+
const appConfig = useAppConfig();
|
|
55
54
|
const rootProps = useForwardPropsEmits(reactivePick(props, "as", "modelValue", "defaultValue", "min", "max", "step", "stepSnapping", "formatOptions", "disableWheelChange"), emits);
|
|
56
55
|
const { emitFormBlur, emitFormFocus, emitFormChange, emitFormInput, id, color, size, name, highlight, disabled, ariaAttrs } = useFormField(props);
|
|
57
56
|
const { t, code: codeLocale } = useLocale();
|
|
@@ -59,7 +58,7 @@ const locale = computed(() => props.locale || codeLocale.value);
|
|
|
59
58
|
const isTag = computed(() => {
|
|
60
59
|
return props.tag;
|
|
61
60
|
});
|
|
62
|
-
const b24ui = computed(() => inputNumber({
|
|
61
|
+
const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.inputNumber || {} })({
|
|
63
62
|
color: color.value,
|
|
64
63
|
size: size.value,
|
|
65
64
|
tagColor: props.tagColor,
|
|
@@ -1,429 +1,9 @@
|
|
|
1
|
-
import type { VariantProps } from 'tailwind-variants';
|
|
2
1
|
import type { NumberFieldRootProps } from 'reka-ui';
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
+
import theme from '#build/b24ui/input-number';
|
|
3
4
|
import type { ButtonProps, IconComponent } from '../types';
|
|
4
|
-
import type {
|
|
5
|
-
|
|
6
|
-
size: {
|
|
7
|
-
xs: string;
|
|
8
|
-
sm: string;
|
|
9
|
-
md: string;
|
|
10
|
-
lg: string;
|
|
11
|
-
};
|
|
12
|
-
color: {
|
|
13
|
-
default: string;
|
|
14
|
-
danger: string;
|
|
15
|
-
success: string;
|
|
16
|
-
warning: string;
|
|
17
|
-
primary: string;
|
|
18
|
-
secondary: string;
|
|
19
|
-
collab: string;
|
|
20
|
-
ai: string;
|
|
21
|
-
};
|
|
22
|
-
tagColor: {
|
|
23
|
-
default: {
|
|
24
|
-
tag: string;
|
|
25
|
-
};
|
|
26
|
-
danger: {
|
|
27
|
-
tag: string;
|
|
28
|
-
};
|
|
29
|
-
success: {
|
|
30
|
-
tag: string;
|
|
31
|
-
};
|
|
32
|
-
warning: {
|
|
33
|
-
tag: string;
|
|
34
|
-
};
|
|
35
|
-
primary: {
|
|
36
|
-
tag: string;
|
|
37
|
-
};
|
|
38
|
-
secondary: {
|
|
39
|
-
tag: string;
|
|
40
|
-
};
|
|
41
|
-
collab: {
|
|
42
|
-
tag: string;
|
|
43
|
-
};
|
|
44
|
-
ai: {
|
|
45
|
-
tag: string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
rounded: {
|
|
49
|
-
true: string;
|
|
50
|
-
false: string;
|
|
51
|
-
};
|
|
52
|
-
noPadding: {
|
|
53
|
-
true: {
|
|
54
|
-
base: string;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
noBorder: {
|
|
58
|
-
true: string;
|
|
59
|
-
};
|
|
60
|
-
underline: {
|
|
61
|
-
true: string;
|
|
62
|
-
};
|
|
63
|
-
disabled: {
|
|
64
|
-
true: {
|
|
65
|
-
increment: string;
|
|
66
|
-
decrement: string;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
orientation: {
|
|
70
|
-
horizontal: {
|
|
71
|
-
base: string;
|
|
72
|
-
increment: string;
|
|
73
|
-
decrement: string;
|
|
74
|
-
};
|
|
75
|
-
vertical: {
|
|
76
|
-
increment: string;
|
|
77
|
-
decrement: string;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
highlight: {
|
|
81
|
-
true: string;
|
|
82
|
-
};
|
|
83
|
-
}, {
|
|
84
|
-
root: string;
|
|
85
|
-
base: string;
|
|
86
|
-
increment: string;
|
|
87
|
-
decrement: string;
|
|
88
|
-
tag: string;
|
|
89
|
-
}, undefined, {
|
|
90
|
-
size: {
|
|
91
|
-
xs: string;
|
|
92
|
-
sm: string;
|
|
93
|
-
md: string;
|
|
94
|
-
lg: string;
|
|
95
|
-
};
|
|
96
|
-
color: {
|
|
97
|
-
default: string;
|
|
98
|
-
danger: string;
|
|
99
|
-
success: string;
|
|
100
|
-
warning: string;
|
|
101
|
-
primary: string;
|
|
102
|
-
secondary: string;
|
|
103
|
-
collab: string;
|
|
104
|
-
ai: string;
|
|
105
|
-
};
|
|
106
|
-
tagColor: {
|
|
107
|
-
default: {
|
|
108
|
-
tag: string;
|
|
109
|
-
};
|
|
110
|
-
danger: {
|
|
111
|
-
tag: string;
|
|
112
|
-
};
|
|
113
|
-
success: {
|
|
114
|
-
tag: string;
|
|
115
|
-
};
|
|
116
|
-
warning: {
|
|
117
|
-
tag: string;
|
|
118
|
-
};
|
|
119
|
-
primary: {
|
|
120
|
-
tag: string;
|
|
121
|
-
};
|
|
122
|
-
secondary: {
|
|
123
|
-
tag: string;
|
|
124
|
-
};
|
|
125
|
-
collab: {
|
|
126
|
-
tag: string;
|
|
127
|
-
};
|
|
128
|
-
ai: {
|
|
129
|
-
tag: string;
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
rounded: {
|
|
133
|
-
true: string;
|
|
134
|
-
false: string;
|
|
135
|
-
};
|
|
136
|
-
noPadding: {
|
|
137
|
-
true: {
|
|
138
|
-
base: string;
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
noBorder: {
|
|
142
|
-
true: string;
|
|
143
|
-
};
|
|
144
|
-
underline: {
|
|
145
|
-
true: string;
|
|
146
|
-
};
|
|
147
|
-
disabled: {
|
|
148
|
-
true: {
|
|
149
|
-
increment: string;
|
|
150
|
-
decrement: string;
|
|
151
|
-
};
|
|
152
|
-
};
|
|
153
|
-
orientation: {
|
|
154
|
-
horizontal: {
|
|
155
|
-
base: string;
|
|
156
|
-
increment: string;
|
|
157
|
-
decrement: string;
|
|
158
|
-
};
|
|
159
|
-
vertical: {
|
|
160
|
-
increment: string;
|
|
161
|
-
decrement: string;
|
|
162
|
-
};
|
|
163
|
-
};
|
|
164
|
-
highlight: {
|
|
165
|
-
true: string;
|
|
166
|
-
};
|
|
167
|
-
}, {
|
|
168
|
-
root: string;
|
|
169
|
-
base: string;
|
|
170
|
-
increment: string;
|
|
171
|
-
decrement: string;
|
|
172
|
-
tag: string;
|
|
173
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
174
|
-
size: {
|
|
175
|
-
xs: string;
|
|
176
|
-
sm: string;
|
|
177
|
-
md: string;
|
|
178
|
-
lg: string;
|
|
179
|
-
};
|
|
180
|
-
color: {
|
|
181
|
-
default: string;
|
|
182
|
-
danger: string;
|
|
183
|
-
success: string;
|
|
184
|
-
warning: string;
|
|
185
|
-
primary: string;
|
|
186
|
-
secondary: string;
|
|
187
|
-
collab: string;
|
|
188
|
-
ai: string;
|
|
189
|
-
};
|
|
190
|
-
tagColor: {
|
|
191
|
-
default: {
|
|
192
|
-
tag: string;
|
|
193
|
-
};
|
|
194
|
-
danger: {
|
|
195
|
-
tag: string;
|
|
196
|
-
};
|
|
197
|
-
success: {
|
|
198
|
-
tag: string;
|
|
199
|
-
};
|
|
200
|
-
warning: {
|
|
201
|
-
tag: string;
|
|
202
|
-
};
|
|
203
|
-
primary: {
|
|
204
|
-
tag: string;
|
|
205
|
-
};
|
|
206
|
-
secondary: {
|
|
207
|
-
tag: string;
|
|
208
|
-
};
|
|
209
|
-
collab: {
|
|
210
|
-
tag: string;
|
|
211
|
-
};
|
|
212
|
-
ai: {
|
|
213
|
-
tag: string;
|
|
214
|
-
};
|
|
215
|
-
};
|
|
216
|
-
rounded: {
|
|
217
|
-
true: string;
|
|
218
|
-
false: string;
|
|
219
|
-
};
|
|
220
|
-
noPadding: {
|
|
221
|
-
true: {
|
|
222
|
-
base: string;
|
|
223
|
-
};
|
|
224
|
-
};
|
|
225
|
-
noBorder: {
|
|
226
|
-
true: string;
|
|
227
|
-
};
|
|
228
|
-
underline: {
|
|
229
|
-
true: string;
|
|
230
|
-
};
|
|
231
|
-
disabled: {
|
|
232
|
-
true: {
|
|
233
|
-
increment: string;
|
|
234
|
-
decrement: string;
|
|
235
|
-
};
|
|
236
|
-
};
|
|
237
|
-
orientation: {
|
|
238
|
-
horizontal: {
|
|
239
|
-
base: string;
|
|
240
|
-
increment: string;
|
|
241
|
-
decrement: string;
|
|
242
|
-
};
|
|
243
|
-
vertical: {
|
|
244
|
-
increment: string;
|
|
245
|
-
decrement: string;
|
|
246
|
-
};
|
|
247
|
-
};
|
|
248
|
-
highlight: {
|
|
249
|
-
true: string;
|
|
250
|
-
};
|
|
251
|
-
}, {
|
|
252
|
-
root: string;
|
|
253
|
-
base: string;
|
|
254
|
-
increment: string;
|
|
255
|
-
decrement: string;
|
|
256
|
-
tag: string;
|
|
257
|
-
}, undefined, {
|
|
258
|
-
size: {
|
|
259
|
-
xs: string;
|
|
260
|
-
sm: string;
|
|
261
|
-
md: string;
|
|
262
|
-
lg: string;
|
|
263
|
-
};
|
|
264
|
-
color: {
|
|
265
|
-
default: string;
|
|
266
|
-
danger: string;
|
|
267
|
-
success: string;
|
|
268
|
-
warning: string;
|
|
269
|
-
primary: string;
|
|
270
|
-
secondary: string;
|
|
271
|
-
collab: string;
|
|
272
|
-
ai: string;
|
|
273
|
-
};
|
|
274
|
-
tagColor: {
|
|
275
|
-
default: {
|
|
276
|
-
tag: string;
|
|
277
|
-
};
|
|
278
|
-
danger: {
|
|
279
|
-
tag: string;
|
|
280
|
-
};
|
|
281
|
-
success: {
|
|
282
|
-
tag: string;
|
|
283
|
-
};
|
|
284
|
-
warning: {
|
|
285
|
-
tag: string;
|
|
286
|
-
};
|
|
287
|
-
primary: {
|
|
288
|
-
tag: string;
|
|
289
|
-
};
|
|
290
|
-
secondary: {
|
|
291
|
-
tag: string;
|
|
292
|
-
};
|
|
293
|
-
collab: {
|
|
294
|
-
tag: string;
|
|
295
|
-
};
|
|
296
|
-
ai: {
|
|
297
|
-
tag: string;
|
|
298
|
-
};
|
|
299
|
-
};
|
|
300
|
-
rounded: {
|
|
301
|
-
true: string;
|
|
302
|
-
false: string;
|
|
303
|
-
};
|
|
304
|
-
noPadding: {
|
|
305
|
-
true: {
|
|
306
|
-
base: string;
|
|
307
|
-
};
|
|
308
|
-
};
|
|
309
|
-
noBorder: {
|
|
310
|
-
true: string;
|
|
311
|
-
};
|
|
312
|
-
underline: {
|
|
313
|
-
true: string;
|
|
314
|
-
};
|
|
315
|
-
disabled: {
|
|
316
|
-
true: {
|
|
317
|
-
increment: string;
|
|
318
|
-
decrement: string;
|
|
319
|
-
};
|
|
320
|
-
};
|
|
321
|
-
orientation: {
|
|
322
|
-
horizontal: {
|
|
323
|
-
base: string;
|
|
324
|
-
increment: string;
|
|
325
|
-
decrement: string;
|
|
326
|
-
};
|
|
327
|
-
vertical: {
|
|
328
|
-
increment: string;
|
|
329
|
-
decrement: string;
|
|
330
|
-
};
|
|
331
|
-
};
|
|
332
|
-
highlight: {
|
|
333
|
-
true: string;
|
|
334
|
-
};
|
|
335
|
-
}, {
|
|
336
|
-
root: string;
|
|
337
|
-
base: string;
|
|
338
|
-
increment: string;
|
|
339
|
-
decrement: string;
|
|
340
|
-
tag: string;
|
|
341
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
342
|
-
size: {
|
|
343
|
-
xs: string;
|
|
344
|
-
sm: string;
|
|
345
|
-
md: string;
|
|
346
|
-
lg: string;
|
|
347
|
-
};
|
|
348
|
-
color: {
|
|
349
|
-
default: string;
|
|
350
|
-
danger: string;
|
|
351
|
-
success: string;
|
|
352
|
-
warning: string;
|
|
353
|
-
primary: string;
|
|
354
|
-
secondary: string;
|
|
355
|
-
collab: string;
|
|
356
|
-
ai: string;
|
|
357
|
-
};
|
|
358
|
-
tagColor: {
|
|
359
|
-
default: {
|
|
360
|
-
tag: string;
|
|
361
|
-
};
|
|
362
|
-
danger: {
|
|
363
|
-
tag: string;
|
|
364
|
-
};
|
|
365
|
-
success: {
|
|
366
|
-
tag: string;
|
|
367
|
-
};
|
|
368
|
-
warning: {
|
|
369
|
-
tag: string;
|
|
370
|
-
};
|
|
371
|
-
primary: {
|
|
372
|
-
tag: string;
|
|
373
|
-
};
|
|
374
|
-
secondary: {
|
|
375
|
-
tag: string;
|
|
376
|
-
};
|
|
377
|
-
collab: {
|
|
378
|
-
tag: string;
|
|
379
|
-
};
|
|
380
|
-
ai: {
|
|
381
|
-
tag: string;
|
|
382
|
-
};
|
|
383
|
-
};
|
|
384
|
-
rounded: {
|
|
385
|
-
true: string;
|
|
386
|
-
false: string;
|
|
387
|
-
};
|
|
388
|
-
noPadding: {
|
|
389
|
-
true: {
|
|
390
|
-
base: string;
|
|
391
|
-
};
|
|
392
|
-
};
|
|
393
|
-
noBorder: {
|
|
394
|
-
true: string;
|
|
395
|
-
};
|
|
396
|
-
underline: {
|
|
397
|
-
true: string;
|
|
398
|
-
};
|
|
399
|
-
disabled: {
|
|
400
|
-
true: {
|
|
401
|
-
increment: string;
|
|
402
|
-
decrement: string;
|
|
403
|
-
};
|
|
404
|
-
};
|
|
405
|
-
orientation: {
|
|
406
|
-
horizontal: {
|
|
407
|
-
base: string;
|
|
408
|
-
increment: string;
|
|
409
|
-
decrement: string;
|
|
410
|
-
};
|
|
411
|
-
vertical: {
|
|
412
|
-
increment: string;
|
|
413
|
-
decrement: string;
|
|
414
|
-
};
|
|
415
|
-
};
|
|
416
|
-
highlight: {
|
|
417
|
-
true: string;
|
|
418
|
-
};
|
|
419
|
-
}, {
|
|
420
|
-
root: string;
|
|
421
|
-
base: string;
|
|
422
|
-
increment: string;
|
|
423
|
-
decrement: string;
|
|
424
|
-
tag: string;
|
|
425
|
-
}, undefined, unknown, unknown, undefined>>>;
|
|
426
|
-
type InputNumberVariants = VariantProps<typeof inputNumber>;
|
|
5
|
+
import type { ComponentConfig } from '../types/utils';
|
|
6
|
+
type InputNumber = ComponentConfig<typeof theme, AppConfig, 'inputNumber'>;
|
|
427
7
|
export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue' | 'defaultValue' | 'min' | 'max' | 'stepSnapping' | 'step' | 'disabled' | 'required' | 'id' | 'name' | 'formatOptions' | 'disableWheelChange'> {
|
|
428
8
|
/**
|
|
429
9
|
* The element or component this component should render as.
|
|
@@ -437,11 +17,11 @@ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue
|
|
|
437
17
|
/**
|
|
438
18
|
* @defaultValue 'primary'
|
|
439
19
|
*/
|
|
440
|
-
color?:
|
|
20
|
+
color?: InputNumber['variants']['color'];
|
|
441
21
|
/**
|
|
442
22
|
* @defaultValue 'md'
|
|
443
23
|
*/
|
|
444
|
-
size?:
|
|
24
|
+
size?: InputNumber['variants']['size'];
|
|
445
25
|
/**
|
|
446
26
|
* Removes padding from input
|
|
447
27
|
* @defaultValue false
|
|
@@ -466,7 +46,7 @@ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue
|
|
|
466
46
|
/**
|
|
467
47
|
* @defaultValue 'primary'
|
|
468
48
|
*/
|
|
469
|
-
tagColor?:
|
|
49
|
+
tagColor?: InputNumber['variants']['tagColor'];
|
|
470
50
|
/**
|
|
471
51
|
* Highlight the ring color like a focus state
|
|
472
52
|
* @defaultValue false
|
|
@@ -513,7 +93,7 @@ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue
|
|
|
513
93
|
*/
|
|
514
94
|
locale?: string;
|
|
515
95
|
class?: any;
|
|
516
|
-
b24ui?:
|
|
96
|
+
b24ui?: InputNumber['slots'];
|
|
517
97
|
}
|
|
518
98
|
export interface InputNumberEmits {
|
|
519
99
|
(e: 'update:modelValue', payload: number): void;
|
|
@@ -629,9 +209,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
629
209
|
};
|
|
630
210
|
}) | null>;
|
|
631
211
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
|
|
632
|
-
size: "
|
|
212
|
+
size: InputNumber["variants"]["size"];
|
|
633
213
|
orientation: "vertical" | "horizontal";
|
|
634
|
-
color: "
|
|
214
|
+
color: InputNumber["variants"]["color"];
|
|
635
215
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<InputNumberSlots> & InputNumberSlots>;
|
|
636
216
|
export default _default;
|
|
637
217
|
type __VLS_WithDefaults<P, D> = {
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import _appConfig from "#build/app.config";
|
|
3
2
|
import theme from "#build/b24ui/kbd";
|
|
4
|
-
import { tv } from "../utils/tv";
|
|
5
|
-
const appConfigKbd = _appConfig;
|
|
6
|
-
const kbd = tv({ extend: tv(theme), ...appConfigKbd.b24ui?.kbd || {} });
|
|
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";
|
|
11
9
|
import { useKbd } from "../composables/useKbd";
|
|
10
|
+
import { tv } from "../utils/tv";
|
|
12
11
|
const props = defineProps({
|
|
13
12
|
as: { type: null, required: false, default: "kbd" },
|
|
14
13
|
value: { type: null, required: false },
|
|
@@ -18,10 +17,12 @@ const props = defineProps({
|
|
|
18
17
|
});
|
|
19
18
|
defineSlots();
|
|
20
19
|
const { getKbdKey } = useKbd();
|
|
20
|
+
const appConfig = useAppConfig();
|
|
21
|
+
const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.kbd || {} }));
|
|
21
22
|
</script>
|
|
22
23
|
|
|
23
24
|
<template>
|
|
24
|
-
<Primitive :as="as" :class="
|
|
25
|
+
<Primitive :as="as" :class="b24ui({ depth, size, class: props.class })">
|
|
25
26
|
<slot>
|
|
26
27
|
{{ getKbdKey(value) }}
|
|
27
28
|
</slot>
|
|
@@ -1,62 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
2
|
+
import theme from '#build/b24ui/kbd';
|
|
2
3
|
import type { KbdKey } from '../composables/useKbd';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
light: string;
|
|
6
|
-
normal: string;
|
|
7
|
-
dark: string;
|
|
8
|
-
};
|
|
9
|
-
size: {
|
|
10
|
-
sm: string;
|
|
11
|
-
md: string;
|
|
12
|
-
lg: string;
|
|
13
|
-
};
|
|
14
|
-
}, undefined, string, {
|
|
15
|
-
depth: {
|
|
16
|
-
light: string;
|
|
17
|
-
normal: string;
|
|
18
|
-
dark: string;
|
|
19
|
-
};
|
|
20
|
-
size: {
|
|
21
|
-
sm: string;
|
|
22
|
-
md: string;
|
|
23
|
-
lg: string;
|
|
24
|
-
};
|
|
25
|
-
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
26
|
-
depth: {
|
|
27
|
-
light: string;
|
|
28
|
-
normal: string;
|
|
29
|
-
dark: string;
|
|
30
|
-
};
|
|
31
|
-
size: {
|
|
32
|
-
sm: string;
|
|
33
|
-
md: string;
|
|
34
|
-
lg: string;
|
|
35
|
-
};
|
|
36
|
-
}, undefined, string, {
|
|
37
|
-
depth: {
|
|
38
|
-
light: string;
|
|
39
|
-
normal: string;
|
|
40
|
-
dark: string;
|
|
41
|
-
};
|
|
42
|
-
size: {
|
|
43
|
-
sm: string;
|
|
44
|
-
md: string;
|
|
45
|
-
lg: string;
|
|
46
|
-
};
|
|
47
|
-
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
48
|
-
depth: {
|
|
49
|
-
light: string;
|
|
50
|
-
normal: string;
|
|
51
|
-
dark: string;
|
|
52
|
-
};
|
|
53
|
-
size: {
|
|
54
|
-
sm: string;
|
|
55
|
-
md: string;
|
|
56
|
-
lg: string;
|
|
57
|
-
};
|
|
58
|
-
}, undefined, string, unknown, unknown, undefined>>>;
|
|
59
|
-
type KbdVariants = VariantProps<typeof kbd>;
|
|
4
|
+
import type { ComponentConfig } from '../types/utils';
|
|
5
|
+
type Kbd = ComponentConfig<typeof theme, AppConfig, 'kbd'>;
|
|
60
6
|
export interface KbdProps {
|
|
61
7
|
/**
|
|
62
8
|
* The element or component this component should render as.
|
|
@@ -67,11 +13,11 @@ export interface KbdProps {
|
|
|
67
13
|
/**
|
|
68
14
|
* @defaultValue 'light'
|
|
69
15
|
*/
|
|
70
|
-
depth?:
|
|
16
|
+
depth?: Kbd['variants']['depth'];
|
|
71
17
|
/**
|
|
72
18
|
* @defaultValue 'md'
|
|
73
19
|
*/
|
|
74
|
-
size?:
|
|
20
|
+
size?: Kbd['variants']['size'];
|
|
75
21
|
class?: any;
|
|
76
22
|
}
|
|
77
23
|
export interface KbdSlots {
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import _appConfig from "#build/app.config";
|
|
3
2
|
import theme from "#build/b24ui/link";
|
|
4
|
-
import { tv } from "../utils/tv";
|
|
5
|
-
const appConfigLink = _appConfig;
|
|
6
|
-
const link = tv({ extend: tv(theme), ...appConfigLink.b24ui?.link || {} });
|
|
7
3
|
</script>
|
|
8
4
|
|
|
9
5
|
<script setup>
|
|
10
6
|
import { computed } from "vue";
|
|
7
|
+
import { defu } from "defu";
|
|
11
8
|
import { isEqual, diff } from "ohash/utils";
|
|
12
9
|
import { useForwardProps } from "reka-ui";
|
|
13
10
|
import { reactiveOmit } from "@vueuse/core";
|
|
14
|
-
import { useRoute } from "#imports";
|
|
11
|
+
import { useRoute, useAppConfig } from "#imports";
|
|
12
|
+
import { tv } from "../utils/tv";
|
|
15
13
|
import B24LinkBase from "./LinkBase.vue";
|
|
16
14
|
defineOptions({ inheritAttrs: false });
|
|
17
15
|
const props = defineProps({
|
|
@@ -45,15 +43,18 @@ const props = defineProps({
|
|
|
45
43
|
});
|
|
46
44
|
defineSlots();
|
|
47
45
|
const route = useRoute();
|
|
46
|
+
const appConfig = useAppConfig();
|
|
48
47
|
const nuxtLinkProps = useForwardProps(reactiveOmit(props, "as", "type", "disabled", "active", "exact", "exactQuery", "exactHash", "activeClass", "inactiveClass", "raw", "class"));
|
|
49
48
|
const b24ui = computed(() => tv({
|
|
50
|
-
extend:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
extend: tv(theme),
|
|
50
|
+
...defu({
|
|
51
|
+
variants: {
|
|
52
|
+
active: {
|
|
53
|
+
true: props.activeClass,
|
|
54
|
+
false: props.inactiveClass
|
|
55
|
+
}
|
|
55
56
|
}
|
|
56
|
-
}
|
|
57
|
+
}, appConfig.b24ui?.link || {})
|
|
57
58
|
}));
|
|
58
59
|
function isPartiallyEqual(item1, item2) {
|
|
59
60
|
const diffedKeys = diff(item1, item2).reduce((filtered, q) => {
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import _appConfig from "#build/app.config";
|
|
3
2
|
import theme from "#build/b24ui/modal";
|
|
4
|
-
import { tv } from "../utils/tv";
|
|
5
|
-
const appConfigModal = _appConfig;
|
|
6
|
-
const modal = tv({ extend: tv(theme), ...appConfigModal.b24ui?.modal || {} });
|
|
7
3
|
</script>
|
|
8
4
|
|
|
9
5
|
<script setup>
|
|
10
6
|
import { computed, toRef } from "vue";
|
|
11
7
|
import { DialogRoot, DialogTrigger, DialogPortal, DialogOverlay, DialogContent, DialogTitle, DialogDescription, DialogClose, VisuallyHidden, 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
|
import icons from "../dictionary/icons";
|
|
15
13
|
import B24Button from "./Button.vue";
|
|
16
14
|
const props = defineProps({
|
|
@@ -27,7 +25,7 @@ const props = defineProps({
|
|
|
27
25
|
dismissible: { type: Boolean, required: false, default: true },
|
|
28
26
|
scrollbarThin: { type: Boolean, required: false, default: true },
|
|
29
27
|
class: { type: null, required: false },
|
|
30
|
-
b24ui: { type:
|
|
28
|
+
b24ui: { type: null, required: false },
|
|
31
29
|
open: { type: Boolean, required: false },
|
|
32
30
|
defaultOpen: { type: Boolean, required: false },
|
|
33
31
|
modal: { type: Boolean, required: false, default: true }
|
|
@@ -35,6 +33,7 @@ const props = defineProps({
|
|
|
35
33
|
const emits = defineEmits(["after:leave", "update:open"]);
|
|
36
34
|
const slots = defineSlots();
|
|
37
35
|
const { t } = useLocale();
|
|
36
|
+
const appConfig = useAppConfig();
|
|
38
37
|
const rootProps = useForwardPropsEmits(reactivePick(props, "open", "defaultOpen", "modal"), emits);
|
|
39
38
|
const contentProps = toRef(() => props.content);
|
|
40
39
|
const contentEvents = computed(() => {
|
|
@@ -51,7 +50,7 @@ const contentEvents = computed(() => {
|
|
|
51
50
|
}
|
|
52
51
|
return events;
|
|
53
52
|
});
|
|
54
|
-
const b24ui = computed(() => modal({
|
|
53
|
+
const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.modal || {} })({
|
|
55
54
|
transition: props.transition,
|
|
56
55
|
fullscreen: props.fullscreen,
|
|
57
56
|
overlayBlur: props.overlayBlur
|