@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,550 +1,25 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
2
|
+
import theme from '#build/b24ui/button';
|
|
2
3
|
import type { LinkProps } from './Link.vue';
|
|
3
4
|
import type { UseComponentIconsProps } from '../composables/useComponentIcons';
|
|
4
|
-
import type {
|
|
5
|
-
|
|
6
|
-
buttonGroup: {
|
|
7
|
-
horizontal: string;
|
|
8
|
-
vertical: string;
|
|
9
|
-
};
|
|
10
|
-
noSplit: {
|
|
11
|
-
false: string;
|
|
12
|
-
};
|
|
13
|
-
color: {
|
|
14
|
-
default: string;
|
|
15
|
-
danger: string;
|
|
16
|
-
success: string;
|
|
17
|
-
warning: string;
|
|
18
|
-
primary: string;
|
|
19
|
-
secondary: string;
|
|
20
|
-
collab: string;
|
|
21
|
-
ai: string;
|
|
22
|
-
link: string;
|
|
23
|
-
};
|
|
24
|
-
depth: {
|
|
25
|
-
light: string;
|
|
26
|
-
normal: string;
|
|
27
|
-
dark: string;
|
|
28
|
-
};
|
|
29
|
-
size: {
|
|
30
|
-
xs: {
|
|
31
|
-
base: string;
|
|
32
|
-
baseLine: string;
|
|
33
|
-
leadingIcon: string;
|
|
34
|
-
leadingAvatarSize: string;
|
|
35
|
-
trailingIcon: string;
|
|
36
|
-
};
|
|
37
|
-
sm: {
|
|
38
|
-
base: string;
|
|
39
|
-
baseLine: string;
|
|
40
|
-
leadingIcon: string;
|
|
41
|
-
leadingAvatarSize: string;
|
|
42
|
-
trailingIcon: string;
|
|
43
|
-
};
|
|
44
|
-
md: {
|
|
45
|
-
base: string;
|
|
46
|
-
baseLine: string;
|
|
47
|
-
leadingIcon: string;
|
|
48
|
-
leadingAvatarSize: string;
|
|
49
|
-
trailingIcon: string;
|
|
50
|
-
};
|
|
51
|
-
lg: {
|
|
52
|
-
base: string;
|
|
53
|
-
baseLine: string;
|
|
54
|
-
leadingIcon: string;
|
|
55
|
-
leadingAvatarSize: string;
|
|
56
|
-
trailingIcon: string;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
block: {
|
|
60
|
-
true: {
|
|
61
|
-
base: string;
|
|
62
|
-
baseLine: string;
|
|
63
|
-
trailingIcon: string;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
rounded: {
|
|
67
|
-
true: string;
|
|
68
|
-
false: string;
|
|
69
|
-
};
|
|
70
|
-
leading: {
|
|
71
|
-
true: string;
|
|
72
|
-
};
|
|
73
|
-
useLabel: {
|
|
74
|
-
true: string;
|
|
75
|
-
false: string;
|
|
76
|
-
};
|
|
77
|
-
useDropdown: {
|
|
78
|
-
true: string;
|
|
79
|
-
};
|
|
80
|
-
useWait: {
|
|
81
|
-
true: string;
|
|
82
|
-
};
|
|
83
|
-
useClock: {
|
|
84
|
-
true: string;
|
|
85
|
-
};
|
|
86
|
-
loading: {
|
|
87
|
-
true: string;
|
|
88
|
-
};
|
|
89
|
-
normalCase: {
|
|
90
|
-
true: string;
|
|
91
|
-
false: string;
|
|
92
|
-
};
|
|
93
|
-
active: {
|
|
94
|
-
true: {
|
|
95
|
-
base: string;
|
|
96
|
-
};
|
|
97
|
-
false: {
|
|
98
|
-
base: string;
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
}, {
|
|
102
|
-
base: string[];
|
|
103
|
-
baseLine: string;
|
|
104
|
-
label: string;
|
|
105
|
-
leadingIcon: string;
|
|
106
|
-
leadingAvatar: string;
|
|
107
|
-
leadingAvatarSize: string;
|
|
108
|
-
trailingIcon: string;
|
|
109
|
-
safeList: string;
|
|
110
|
-
}, undefined, {
|
|
111
|
-
buttonGroup: {
|
|
112
|
-
horizontal: string;
|
|
113
|
-
vertical: string;
|
|
114
|
-
};
|
|
115
|
-
noSplit: {
|
|
116
|
-
false: string;
|
|
117
|
-
};
|
|
118
|
-
color: {
|
|
119
|
-
default: string;
|
|
120
|
-
danger: string;
|
|
121
|
-
success: string;
|
|
122
|
-
warning: string;
|
|
123
|
-
primary: string;
|
|
124
|
-
secondary: string;
|
|
125
|
-
collab: string;
|
|
126
|
-
ai: string;
|
|
127
|
-
link: string;
|
|
128
|
-
};
|
|
129
|
-
depth: {
|
|
130
|
-
light: string;
|
|
131
|
-
normal: string;
|
|
132
|
-
dark: string;
|
|
133
|
-
};
|
|
134
|
-
size: {
|
|
135
|
-
xs: {
|
|
136
|
-
base: string;
|
|
137
|
-
baseLine: string;
|
|
138
|
-
leadingIcon: string;
|
|
139
|
-
leadingAvatarSize: string;
|
|
140
|
-
trailingIcon: string;
|
|
141
|
-
};
|
|
142
|
-
sm: {
|
|
143
|
-
base: string;
|
|
144
|
-
baseLine: string;
|
|
145
|
-
leadingIcon: string;
|
|
146
|
-
leadingAvatarSize: string;
|
|
147
|
-
trailingIcon: string;
|
|
148
|
-
};
|
|
149
|
-
md: {
|
|
150
|
-
base: string;
|
|
151
|
-
baseLine: string;
|
|
152
|
-
leadingIcon: string;
|
|
153
|
-
leadingAvatarSize: string;
|
|
154
|
-
trailingIcon: string;
|
|
155
|
-
};
|
|
156
|
-
lg: {
|
|
157
|
-
base: string;
|
|
158
|
-
baseLine: string;
|
|
159
|
-
leadingIcon: string;
|
|
160
|
-
leadingAvatarSize: string;
|
|
161
|
-
trailingIcon: string;
|
|
162
|
-
};
|
|
163
|
-
};
|
|
164
|
-
block: {
|
|
165
|
-
true: {
|
|
166
|
-
base: string;
|
|
167
|
-
baseLine: string;
|
|
168
|
-
trailingIcon: string;
|
|
169
|
-
};
|
|
170
|
-
};
|
|
171
|
-
rounded: {
|
|
172
|
-
true: string;
|
|
173
|
-
false: string;
|
|
174
|
-
};
|
|
175
|
-
leading: {
|
|
176
|
-
true: string;
|
|
177
|
-
};
|
|
178
|
-
useLabel: {
|
|
179
|
-
true: string;
|
|
180
|
-
false: string;
|
|
181
|
-
};
|
|
182
|
-
useDropdown: {
|
|
183
|
-
true: string;
|
|
184
|
-
};
|
|
185
|
-
useWait: {
|
|
186
|
-
true: string;
|
|
187
|
-
};
|
|
188
|
-
useClock: {
|
|
189
|
-
true: string;
|
|
190
|
-
};
|
|
191
|
-
loading: {
|
|
192
|
-
true: string;
|
|
193
|
-
};
|
|
194
|
-
normalCase: {
|
|
195
|
-
true: string;
|
|
196
|
-
false: string;
|
|
197
|
-
};
|
|
198
|
-
active: {
|
|
199
|
-
true: {
|
|
200
|
-
base: string;
|
|
201
|
-
};
|
|
202
|
-
false: {
|
|
203
|
-
base: string;
|
|
204
|
-
};
|
|
205
|
-
};
|
|
206
|
-
}, {
|
|
207
|
-
base: string[];
|
|
208
|
-
baseLine: string;
|
|
209
|
-
label: string;
|
|
210
|
-
leadingIcon: string;
|
|
211
|
-
leadingAvatar: string;
|
|
212
|
-
leadingAvatarSize: string;
|
|
213
|
-
trailingIcon: string;
|
|
214
|
-
safeList: string;
|
|
215
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
216
|
-
buttonGroup: {
|
|
217
|
-
horizontal: string;
|
|
218
|
-
vertical: string;
|
|
219
|
-
};
|
|
220
|
-
noSplit: {
|
|
221
|
-
false: string;
|
|
222
|
-
};
|
|
223
|
-
color: {
|
|
224
|
-
default: string;
|
|
225
|
-
danger: string;
|
|
226
|
-
success: string;
|
|
227
|
-
warning: string;
|
|
228
|
-
primary: string;
|
|
229
|
-
secondary: string;
|
|
230
|
-
collab: string;
|
|
231
|
-
ai: string;
|
|
232
|
-
link: string;
|
|
233
|
-
};
|
|
234
|
-
depth: {
|
|
235
|
-
light: string;
|
|
236
|
-
normal: string;
|
|
237
|
-
dark: string;
|
|
238
|
-
};
|
|
239
|
-
size: {
|
|
240
|
-
xs: {
|
|
241
|
-
base: string;
|
|
242
|
-
baseLine: string;
|
|
243
|
-
leadingIcon: string;
|
|
244
|
-
leadingAvatarSize: string;
|
|
245
|
-
trailingIcon: string;
|
|
246
|
-
};
|
|
247
|
-
sm: {
|
|
248
|
-
base: string;
|
|
249
|
-
baseLine: string;
|
|
250
|
-
leadingIcon: string;
|
|
251
|
-
leadingAvatarSize: string;
|
|
252
|
-
trailingIcon: string;
|
|
253
|
-
};
|
|
254
|
-
md: {
|
|
255
|
-
base: string;
|
|
256
|
-
baseLine: string;
|
|
257
|
-
leadingIcon: string;
|
|
258
|
-
leadingAvatarSize: string;
|
|
259
|
-
trailingIcon: string;
|
|
260
|
-
};
|
|
261
|
-
lg: {
|
|
262
|
-
base: string;
|
|
263
|
-
baseLine: string;
|
|
264
|
-
leadingIcon: string;
|
|
265
|
-
leadingAvatarSize: string;
|
|
266
|
-
trailingIcon: string;
|
|
267
|
-
};
|
|
268
|
-
};
|
|
269
|
-
block: {
|
|
270
|
-
true: {
|
|
271
|
-
base: string;
|
|
272
|
-
baseLine: string;
|
|
273
|
-
trailingIcon: string;
|
|
274
|
-
};
|
|
275
|
-
};
|
|
276
|
-
rounded: {
|
|
277
|
-
true: string;
|
|
278
|
-
false: string;
|
|
279
|
-
};
|
|
280
|
-
leading: {
|
|
281
|
-
true: string;
|
|
282
|
-
};
|
|
283
|
-
useLabel: {
|
|
284
|
-
true: string;
|
|
285
|
-
false: string;
|
|
286
|
-
};
|
|
287
|
-
useDropdown: {
|
|
288
|
-
true: string;
|
|
289
|
-
};
|
|
290
|
-
useWait: {
|
|
291
|
-
true: string;
|
|
292
|
-
};
|
|
293
|
-
useClock: {
|
|
294
|
-
true: string;
|
|
295
|
-
};
|
|
296
|
-
loading: {
|
|
297
|
-
true: string;
|
|
298
|
-
};
|
|
299
|
-
normalCase: {
|
|
300
|
-
true: string;
|
|
301
|
-
false: string;
|
|
302
|
-
};
|
|
303
|
-
active: {
|
|
304
|
-
true: {
|
|
305
|
-
base: string;
|
|
306
|
-
};
|
|
307
|
-
false: {
|
|
308
|
-
base: string;
|
|
309
|
-
};
|
|
310
|
-
};
|
|
311
|
-
}, {
|
|
312
|
-
base: string[];
|
|
313
|
-
baseLine: string;
|
|
314
|
-
label: string;
|
|
315
|
-
leadingIcon: string;
|
|
316
|
-
leadingAvatar: string;
|
|
317
|
-
leadingAvatarSize: string;
|
|
318
|
-
trailingIcon: string;
|
|
319
|
-
safeList: string;
|
|
320
|
-
}, undefined, {
|
|
321
|
-
buttonGroup: {
|
|
322
|
-
horizontal: string;
|
|
323
|
-
vertical: string;
|
|
324
|
-
};
|
|
325
|
-
noSplit: {
|
|
326
|
-
false: string;
|
|
327
|
-
};
|
|
328
|
-
color: {
|
|
329
|
-
default: string;
|
|
330
|
-
danger: string;
|
|
331
|
-
success: string;
|
|
332
|
-
warning: string;
|
|
333
|
-
primary: string;
|
|
334
|
-
secondary: string;
|
|
335
|
-
collab: string;
|
|
336
|
-
ai: string;
|
|
337
|
-
link: string;
|
|
338
|
-
};
|
|
339
|
-
depth: {
|
|
340
|
-
light: string;
|
|
341
|
-
normal: string;
|
|
342
|
-
dark: string;
|
|
343
|
-
};
|
|
344
|
-
size: {
|
|
345
|
-
xs: {
|
|
346
|
-
base: string;
|
|
347
|
-
baseLine: string;
|
|
348
|
-
leadingIcon: string;
|
|
349
|
-
leadingAvatarSize: string;
|
|
350
|
-
trailingIcon: string;
|
|
351
|
-
};
|
|
352
|
-
sm: {
|
|
353
|
-
base: string;
|
|
354
|
-
baseLine: string;
|
|
355
|
-
leadingIcon: string;
|
|
356
|
-
leadingAvatarSize: string;
|
|
357
|
-
trailingIcon: string;
|
|
358
|
-
};
|
|
359
|
-
md: {
|
|
360
|
-
base: string;
|
|
361
|
-
baseLine: string;
|
|
362
|
-
leadingIcon: string;
|
|
363
|
-
leadingAvatarSize: string;
|
|
364
|
-
trailingIcon: string;
|
|
365
|
-
};
|
|
366
|
-
lg: {
|
|
367
|
-
base: string;
|
|
368
|
-
baseLine: string;
|
|
369
|
-
leadingIcon: string;
|
|
370
|
-
leadingAvatarSize: string;
|
|
371
|
-
trailingIcon: string;
|
|
372
|
-
};
|
|
373
|
-
};
|
|
374
|
-
block: {
|
|
375
|
-
true: {
|
|
376
|
-
base: string;
|
|
377
|
-
baseLine: string;
|
|
378
|
-
trailingIcon: string;
|
|
379
|
-
};
|
|
380
|
-
};
|
|
381
|
-
rounded: {
|
|
382
|
-
true: string;
|
|
383
|
-
false: string;
|
|
384
|
-
};
|
|
385
|
-
leading: {
|
|
386
|
-
true: string;
|
|
387
|
-
};
|
|
388
|
-
useLabel: {
|
|
389
|
-
true: string;
|
|
390
|
-
false: string;
|
|
391
|
-
};
|
|
392
|
-
useDropdown: {
|
|
393
|
-
true: string;
|
|
394
|
-
};
|
|
395
|
-
useWait: {
|
|
396
|
-
true: string;
|
|
397
|
-
};
|
|
398
|
-
useClock: {
|
|
399
|
-
true: string;
|
|
400
|
-
};
|
|
401
|
-
loading: {
|
|
402
|
-
true: string;
|
|
403
|
-
};
|
|
404
|
-
normalCase: {
|
|
405
|
-
true: string;
|
|
406
|
-
false: string;
|
|
407
|
-
};
|
|
408
|
-
active: {
|
|
409
|
-
true: {
|
|
410
|
-
base: string;
|
|
411
|
-
};
|
|
412
|
-
false: {
|
|
413
|
-
base: string;
|
|
414
|
-
};
|
|
415
|
-
};
|
|
416
|
-
}, {
|
|
417
|
-
base: string[];
|
|
418
|
-
baseLine: string;
|
|
419
|
-
label: string;
|
|
420
|
-
leadingIcon: string;
|
|
421
|
-
leadingAvatar: string;
|
|
422
|
-
leadingAvatarSize: string;
|
|
423
|
-
trailingIcon: string;
|
|
424
|
-
safeList: string;
|
|
425
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
426
|
-
buttonGroup: {
|
|
427
|
-
horizontal: string;
|
|
428
|
-
vertical: string;
|
|
429
|
-
};
|
|
430
|
-
noSplit: {
|
|
431
|
-
false: string;
|
|
432
|
-
};
|
|
433
|
-
color: {
|
|
434
|
-
default: string;
|
|
435
|
-
danger: string;
|
|
436
|
-
success: string;
|
|
437
|
-
warning: string;
|
|
438
|
-
primary: string;
|
|
439
|
-
secondary: string;
|
|
440
|
-
collab: string;
|
|
441
|
-
ai: string;
|
|
442
|
-
link: string;
|
|
443
|
-
};
|
|
444
|
-
depth: {
|
|
445
|
-
light: string;
|
|
446
|
-
normal: string;
|
|
447
|
-
dark: string;
|
|
448
|
-
};
|
|
449
|
-
size: {
|
|
450
|
-
xs: {
|
|
451
|
-
base: string;
|
|
452
|
-
baseLine: string;
|
|
453
|
-
leadingIcon: string;
|
|
454
|
-
leadingAvatarSize: string;
|
|
455
|
-
trailingIcon: string;
|
|
456
|
-
};
|
|
457
|
-
sm: {
|
|
458
|
-
base: string;
|
|
459
|
-
baseLine: string;
|
|
460
|
-
leadingIcon: string;
|
|
461
|
-
leadingAvatarSize: string;
|
|
462
|
-
trailingIcon: string;
|
|
463
|
-
};
|
|
464
|
-
md: {
|
|
465
|
-
base: string;
|
|
466
|
-
baseLine: string;
|
|
467
|
-
leadingIcon: string;
|
|
468
|
-
leadingAvatarSize: string;
|
|
469
|
-
trailingIcon: string;
|
|
470
|
-
};
|
|
471
|
-
lg: {
|
|
472
|
-
base: string;
|
|
473
|
-
baseLine: string;
|
|
474
|
-
leadingIcon: string;
|
|
475
|
-
leadingAvatarSize: string;
|
|
476
|
-
trailingIcon: string;
|
|
477
|
-
};
|
|
478
|
-
};
|
|
479
|
-
block: {
|
|
480
|
-
true: {
|
|
481
|
-
base: string;
|
|
482
|
-
baseLine: string;
|
|
483
|
-
trailingIcon: string;
|
|
484
|
-
};
|
|
485
|
-
};
|
|
486
|
-
rounded: {
|
|
487
|
-
true: string;
|
|
488
|
-
false: string;
|
|
489
|
-
};
|
|
490
|
-
leading: {
|
|
491
|
-
true: string;
|
|
492
|
-
};
|
|
493
|
-
useLabel: {
|
|
494
|
-
true: string;
|
|
495
|
-
false: string;
|
|
496
|
-
};
|
|
497
|
-
useDropdown: {
|
|
498
|
-
true: string;
|
|
499
|
-
};
|
|
500
|
-
useWait: {
|
|
501
|
-
true: string;
|
|
502
|
-
};
|
|
503
|
-
useClock: {
|
|
504
|
-
true: string;
|
|
505
|
-
};
|
|
506
|
-
loading: {
|
|
507
|
-
true: string;
|
|
508
|
-
};
|
|
509
|
-
normalCase: {
|
|
510
|
-
true: string;
|
|
511
|
-
false: string;
|
|
512
|
-
};
|
|
513
|
-
active: {
|
|
514
|
-
true: {
|
|
515
|
-
base: string;
|
|
516
|
-
};
|
|
517
|
-
false: {
|
|
518
|
-
base: string;
|
|
519
|
-
};
|
|
520
|
-
};
|
|
521
|
-
}, {
|
|
522
|
-
base: string[];
|
|
523
|
-
baseLine: string;
|
|
524
|
-
label: string;
|
|
525
|
-
leadingIcon: string;
|
|
526
|
-
leadingAvatar: string;
|
|
527
|
-
leadingAvatarSize: string;
|
|
528
|
-
trailingIcon: string;
|
|
529
|
-
safeList: string;
|
|
530
|
-
}, undefined, unknown, unknown, undefined>>>;
|
|
531
|
-
type ButtonVariants = VariantProps<typeof button>;
|
|
5
|
+
import type { ComponentConfig } from '../types/utils';
|
|
6
|
+
type Button = ComponentConfig<typeof theme, AppConfig, 'button'>;
|
|
532
7
|
export interface ButtonProps extends Omit<UseComponentIconsProps, 'trailing' | 'trailingIcon'>, Omit<LinkProps, 'raw' | 'custom'> {
|
|
533
8
|
label?: string;
|
|
534
9
|
/**
|
|
535
10
|
* @defaultValue 'default'
|
|
536
11
|
*/
|
|
537
|
-
color?:
|
|
538
|
-
activeColor?:
|
|
12
|
+
color?: Button['variants']['color'];
|
|
13
|
+
activeColor?: Button['variants']['color'];
|
|
539
14
|
/**
|
|
540
15
|
* @defaultValue 'normal'
|
|
541
16
|
*/
|
|
542
|
-
depth?:
|
|
543
|
-
activeDepth?:
|
|
17
|
+
depth?: Button['variants']['depth'];
|
|
18
|
+
activeDepth?: Button['variants']['depth'];
|
|
544
19
|
/**
|
|
545
20
|
* @defaultValue 'md'
|
|
546
21
|
*/
|
|
547
|
-
size?:
|
|
22
|
+
size?: Button['variants']['size'];
|
|
548
23
|
/**
|
|
549
24
|
* Rounds the corners of the button
|
|
550
25
|
* @defaultValue false
|
|
@@ -592,7 +67,7 @@ export interface ButtonProps extends Omit<UseComponentIconsProps, 'trailing' | '
|
|
|
592
67
|
* @defaultValue ''
|
|
593
68
|
*/
|
|
594
69
|
inactiveClass?: string;
|
|
595
|
-
b24ui?:
|
|
70
|
+
b24ui?: Button['slots'];
|
|
596
71
|
}
|
|
597
72
|
export interface ButtonSlots {
|
|
598
73
|
leading(props?: {}): any;
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import _appConfig from "#build/app.config";
|
|
3
2
|
import theme from "#build/b24ui/button-group";
|
|
4
|
-
import { tv } from "../utils/tv";
|
|
5
|
-
const appConfigButtonGroup = _appConfig;
|
|
6
|
-
const buttonGroup = tv({ extend: tv(theme), ...appConfigButtonGroup.b24ui?.buttonGroup });
|
|
7
3
|
</script>
|
|
8
4
|
|
|
9
5
|
<script setup>
|
|
10
6
|
import { provide, computed } from "vue";
|
|
11
7
|
import { Primitive } from "reka-ui";
|
|
8
|
+
import { useAppConfig } from "#imports";
|
|
12
9
|
import { buttonGroupInjectionKey } from "../composables/useButtonGroup";
|
|
10
|
+
import { tv } from "../utils/tv";
|
|
13
11
|
const props = defineProps({
|
|
14
12
|
as: { type: null, required: false },
|
|
15
13
|
size: { type: null, required: false },
|
|
16
14
|
orientation: { type: null, required: false, default: "horizontal" },
|
|
17
15
|
noSplit: { type: Boolean, required: false, default: false },
|
|
18
|
-
class: { type: null, required: false }
|
|
16
|
+
class: { type: null, required: false },
|
|
17
|
+
b24ui: { type: null, required: false }
|
|
19
18
|
});
|
|
20
19
|
defineSlots();
|
|
20
|
+
const appConfig = useAppConfig();
|
|
21
|
+
const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.buttonGroup || {} }));
|
|
21
22
|
provide(buttonGroupInjectionKey, computed(() => ({
|
|
22
23
|
orientation: props.orientation,
|
|
23
24
|
noSplit: Boolean(props.noSplit),
|
|
@@ -26,7 +27,11 @@ provide(buttonGroupInjectionKey, computed(() => ({
|
|
|
26
27
|
</script>
|
|
27
28
|
|
|
28
29
|
<template>
|
|
29
|
-
<Primitive
|
|
30
|
+
<Primitive
|
|
31
|
+
:as="as"
|
|
32
|
+
class="group/items is-button-group"
|
|
33
|
+
:class="b24ui({ orientation, class: props.class })"
|
|
34
|
+
>
|
|
30
35
|
<slot />
|
|
31
36
|
</Primitive>
|
|
32
37
|
</template>
|
|
@@ -1,61 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
sm: string;
|
|
6
|
-
md: string;
|
|
7
|
-
lg: string;
|
|
8
|
-
};
|
|
9
|
-
orientation: {
|
|
10
|
-
horizontal: string;
|
|
11
|
-
vertical: string;
|
|
12
|
-
};
|
|
13
|
-
}, undefined, string, {
|
|
14
|
-
size: {
|
|
15
|
-
xs: string;
|
|
16
|
-
sm: string;
|
|
17
|
-
md: string;
|
|
18
|
-
lg: string;
|
|
19
|
-
};
|
|
20
|
-
orientation: {
|
|
21
|
-
horizontal: string;
|
|
22
|
-
vertical: string;
|
|
23
|
-
};
|
|
24
|
-
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
25
|
-
size: {
|
|
26
|
-
xs: string;
|
|
27
|
-
sm: string;
|
|
28
|
-
md: string;
|
|
29
|
-
lg: string;
|
|
30
|
-
};
|
|
31
|
-
orientation: {
|
|
32
|
-
horizontal: string;
|
|
33
|
-
vertical: string;
|
|
34
|
-
};
|
|
35
|
-
}, undefined, string, {
|
|
36
|
-
size: {
|
|
37
|
-
xs: string;
|
|
38
|
-
sm: string;
|
|
39
|
-
md: string;
|
|
40
|
-
lg: string;
|
|
41
|
-
};
|
|
42
|
-
orientation: {
|
|
43
|
-
horizontal: string;
|
|
44
|
-
vertical: string;
|
|
45
|
-
};
|
|
46
|
-
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
47
|
-
size: {
|
|
48
|
-
xs: string;
|
|
49
|
-
sm: string;
|
|
50
|
-
md: string;
|
|
51
|
-
lg: string;
|
|
52
|
-
};
|
|
53
|
-
orientation: {
|
|
54
|
-
horizontal: string;
|
|
55
|
-
vertical: string;
|
|
56
|
-
};
|
|
57
|
-
}, undefined, string, unknown, unknown, undefined>>>;
|
|
58
|
-
type ButtonGroupVariants = VariantProps<typeof buttonGroup>;
|
|
1
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
2
|
+
import theme from '#build/b24ui/button-group';
|
|
3
|
+
import type { ComponentConfig } from '../types/utils';
|
|
4
|
+
type ButtonGroup = ComponentConfig<typeof theme, AppConfig, 'buttonGroup'>;
|
|
59
5
|
export interface ButtonGroupProps {
|
|
60
6
|
/**
|
|
61
7
|
* The element or component this component should render as.
|
|
@@ -65,18 +11,19 @@ export interface ButtonGroupProps {
|
|
|
65
11
|
/**
|
|
66
12
|
* @defaultValue 'md'
|
|
67
13
|
*/
|
|
68
|
-
size?:
|
|
14
|
+
size?: ButtonGroup['variants']['size'];
|
|
69
15
|
/**
|
|
70
16
|
* The orientation the buttons are laid out.
|
|
71
17
|
* @defaultValue 'horizontal'
|
|
72
18
|
*/
|
|
73
|
-
orientation?:
|
|
19
|
+
orientation?: ButtonGroup['variants']['orientation'];
|
|
74
20
|
/**
|
|
75
21
|
* Disable show split
|
|
76
22
|
* @defaultValue false
|
|
77
23
|
*/
|
|
78
24
|
noSplit?: boolean;
|
|
79
25
|
class?: any;
|
|
26
|
+
b24ui?: ButtonGroup['slots'];
|
|
80
27
|
}
|
|
81
28
|
export interface ButtonGroupSlots {
|
|
82
29
|
default(props?: {}): any;
|
|
@@ -88,7 +35,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
88
35
|
orientation: string;
|
|
89
36
|
noSplit: boolean;
|
|
90
37
|
}>>> & Readonly<{}>, {
|
|
91
|
-
orientation: "
|
|
38
|
+
orientation: ButtonGroup["variants"]["orientation"];
|
|
92
39
|
noSplit: boolean;
|
|
93
40
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<ButtonGroupSlots> & ButtonGroupSlots>;
|
|
94
41
|
export default _default;
|