@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,227 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
2
|
+
import theme from '#build/b24ui/avatar';
|
|
3
|
+
import type { ComponentConfig } from '../types/utils';
|
|
2
4
|
import type { IconComponent } from '../types';
|
|
3
|
-
|
|
4
|
-
size: {
|
|
5
|
-
"3xs": {
|
|
6
|
-
root: string;
|
|
7
|
-
icon: string;
|
|
8
|
-
};
|
|
9
|
-
"2xs": {
|
|
10
|
-
root: string;
|
|
11
|
-
icon: string;
|
|
12
|
-
};
|
|
13
|
-
xs: {
|
|
14
|
-
root: string;
|
|
15
|
-
icon: string;
|
|
16
|
-
};
|
|
17
|
-
sm: {
|
|
18
|
-
root: string;
|
|
19
|
-
icon: string;
|
|
20
|
-
};
|
|
21
|
-
md: {
|
|
22
|
-
root: string;
|
|
23
|
-
icon: string;
|
|
24
|
-
};
|
|
25
|
-
lg: {
|
|
26
|
-
root: string;
|
|
27
|
-
icon: string;
|
|
28
|
-
};
|
|
29
|
-
xl: {
|
|
30
|
-
root: string;
|
|
31
|
-
icon: string;
|
|
32
|
-
};
|
|
33
|
-
"2xl": {
|
|
34
|
-
root: string;
|
|
35
|
-
icon: string;
|
|
36
|
-
};
|
|
37
|
-
"3xl": {
|
|
38
|
-
root: string;
|
|
39
|
-
icon: string;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
}, {
|
|
43
|
-
root: string;
|
|
44
|
-
image: string;
|
|
45
|
-
fallback: string;
|
|
46
|
-
icon: string;
|
|
47
|
-
}, undefined, {
|
|
48
|
-
size: {
|
|
49
|
-
"3xs": {
|
|
50
|
-
root: string;
|
|
51
|
-
icon: string;
|
|
52
|
-
};
|
|
53
|
-
"2xs": {
|
|
54
|
-
root: string;
|
|
55
|
-
icon: string;
|
|
56
|
-
};
|
|
57
|
-
xs: {
|
|
58
|
-
root: string;
|
|
59
|
-
icon: string;
|
|
60
|
-
};
|
|
61
|
-
sm: {
|
|
62
|
-
root: string;
|
|
63
|
-
icon: string;
|
|
64
|
-
};
|
|
65
|
-
md: {
|
|
66
|
-
root: string;
|
|
67
|
-
icon: string;
|
|
68
|
-
};
|
|
69
|
-
lg: {
|
|
70
|
-
root: string;
|
|
71
|
-
icon: string;
|
|
72
|
-
};
|
|
73
|
-
xl: {
|
|
74
|
-
root: string;
|
|
75
|
-
icon: string;
|
|
76
|
-
};
|
|
77
|
-
"2xl": {
|
|
78
|
-
root: string;
|
|
79
|
-
icon: string;
|
|
80
|
-
};
|
|
81
|
-
"3xl": {
|
|
82
|
-
root: string;
|
|
83
|
-
icon: string;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
}, {
|
|
87
|
-
root: string;
|
|
88
|
-
image: string;
|
|
89
|
-
fallback: string;
|
|
90
|
-
icon: string;
|
|
91
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
92
|
-
size: {
|
|
93
|
-
"3xs": {
|
|
94
|
-
root: string;
|
|
95
|
-
icon: string;
|
|
96
|
-
};
|
|
97
|
-
"2xs": {
|
|
98
|
-
root: string;
|
|
99
|
-
icon: string;
|
|
100
|
-
};
|
|
101
|
-
xs: {
|
|
102
|
-
root: string;
|
|
103
|
-
icon: string;
|
|
104
|
-
};
|
|
105
|
-
sm: {
|
|
106
|
-
root: string;
|
|
107
|
-
icon: string;
|
|
108
|
-
};
|
|
109
|
-
md: {
|
|
110
|
-
root: string;
|
|
111
|
-
icon: string;
|
|
112
|
-
};
|
|
113
|
-
lg: {
|
|
114
|
-
root: string;
|
|
115
|
-
icon: string;
|
|
116
|
-
};
|
|
117
|
-
xl: {
|
|
118
|
-
root: string;
|
|
119
|
-
icon: string;
|
|
120
|
-
};
|
|
121
|
-
"2xl": {
|
|
122
|
-
root: string;
|
|
123
|
-
icon: string;
|
|
124
|
-
};
|
|
125
|
-
"3xl": {
|
|
126
|
-
root: string;
|
|
127
|
-
icon: string;
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
}, {
|
|
131
|
-
root: string;
|
|
132
|
-
image: string;
|
|
133
|
-
fallback: string;
|
|
134
|
-
icon: string;
|
|
135
|
-
}, undefined, {
|
|
136
|
-
size: {
|
|
137
|
-
"3xs": {
|
|
138
|
-
root: string;
|
|
139
|
-
icon: string;
|
|
140
|
-
};
|
|
141
|
-
"2xs": {
|
|
142
|
-
root: string;
|
|
143
|
-
icon: string;
|
|
144
|
-
};
|
|
145
|
-
xs: {
|
|
146
|
-
root: string;
|
|
147
|
-
icon: string;
|
|
148
|
-
};
|
|
149
|
-
sm: {
|
|
150
|
-
root: string;
|
|
151
|
-
icon: string;
|
|
152
|
-
};
|
|
153
|
-
md: {
|
|
154
|
-
root: string;
|
|
155
|
-
icon: string;
|
|
156
|
-
};
|
|
157
|
-
lg: {
|
|
158
|
-
root: string;
|
|
159
|
-
icon: string;
|
|
160
|
-
};
|
|
161
|
-
xl: {
|
|
162
|
-
root: string;
|
|
163
|
-
icon: string;
|
|
164
|
-
};
|
|
165
|
-
"2xl": {
|
|
166
|
-
root: string;
|
|
167
|
-
icon: string;
|
|
168
|
-
};
|
|
169
|
-
"3xl": {
|
|
170
|
-
root: string;
|
|
171
|
-
icon: string;
|
|
172
|
-
};
|
|
173
|
-
};
|
|
174
|
-
}, {
|
|
175
|
-
root: string;
|
|
176
|
-
image: string;
|
|
177
|
-
fallback: string;
|
|
178
|
-
icon: string;
|
|
179
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
180
|
-
size: {
|
|
181
|
-
"3xs": {
|
|
182
|
-
root: string;
|
|
183
|
-
icon: string;
|
|
184
|
-
};
|
|
185
|
-
"2xs": {
|
|
186
|
-
root: string;
|
|
187
|
-
icon: string;
|
|
188
|
-
};
|
|
189
|
-
xs: {
|
|
190
|
-
root: string;
|
|
191
|
-
icon: string;
|
|
192
|
-
};
|
|
193
|
-
sm: {
|
|
194
|
-
root: string;
|
|
195
|
-
icon: string;
|
|
196
|
-
};
|
|
197
|
-
md: {
|
|
198
|
-
root: string;
|
|
199
|
-
icon: string;
|
|
200
|
-
};
|
|
201
|
-
lg: {
|
|
202
|
-
root: string;
|
|
203
|
-
icon: string;
|
|
204
|
-
};
|
|
205
|
-
xl: {
|
|
206
|
-
root: string;
|
|
207
|
-
icon: string;
|
|
208
|
-
};
|
|
209
|
-
"2xl": {
|
|
210
|
-
root: string;
|
|
211
|
-
icon: string;
|
|
212
|
-
};
|
|
213
|
-
"3xl": {
|
|
214
|
-
root: string;
|
|
215
|
-
icon: string;
|
|
216
|
-
};
|
|
217
|
-
};
|
|
218
|
-
}, {
|
|
219
|
-
root: string;
|
|
220
|
-
image: string;
|
|
221
|
-
fallback: string;
|
|
222
|
-
icon: string;
|
|
223
|
-
}, undefined, unknown, unknown, undefined>>>;
|
|
224
|
-
type AvatarVariants = VariantProps<typeof avatar>;
|
|
5
|
+
type Avatar = ComponentConfig<typeof theme, AppConfig, 'avatar'>;
|
|
225
6
|
export interface AvatarProps {
|
|
226
7
|
/**
|
|
227
8
|
* The element or component this component should render as.
|
|
@@ -239,10 +20,10 @@ export interface AvatarProps {
|
|
|
239
20
|
/**
|
|
240
21
|
* @defaultValue 'md'
|
|
241
22
|
*/
|
|
242
|
-
size?:
|
|
23
|
+
size?: Avatar['variants']['size'];
|
|
243
24
|
class?: any;
|
|
244
25
|
style?: any;
|
|
245
|
-
b24ui?:
|
|
26
|
+
b24ui?: Avatar['slots'];
|
|
246
27
|
}
|
|
247
28
|
export interface AvatarSlots {
|
|
248
29
|
default(props?: {}): any;
|
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import _appConfig from "#build/app.config";
|
|
3
2
|
import theme from "#build/b24ui/avatar-group";
|
|
4
|
-
import { tv } from "../utils/tv";
|
|
5
|
-
const appConfigAvatarGroup = _appConfig;
|
|
6
|
-
const avatarGroup = tv({ extend: tv(theme), ...appConfigAvatarGroup.b24ui?.avatarGroup || {} });
|
|
7
3
|
</script>
|
|
8
4
|
|
|
9
5
|
<script setup>
|
|
10
6
|
import { computed, provide } from "vue";
|
|
11
7
|
import { Primitive } from "reka-ui";
|
|
8
|
+
import { useAppConfig } from "#imports";
|
|
12
9
|
import { avatarGroupInjectionKey } from "../composables/useAvatarGroup";
|
|
10
|
+
import { tv } from "../utils/tv";
|
|
13
11
|
import B24Avatar from "./Avatar.vue";
|
|
14
12
|
const props = defineProps({
|
|
15
13
|
as: { type: null, required: false },
|
|
16
14
|
size: { type: null, required: false },
|
|
17
15
|
max: { type: [Number, String], required: false },
|
|
18
16
|
class: { type: null, required: false },
|
|
19
|
-
b24ui: { type:
|
|
17
|
+
b24ui: { type: null, required: false }
|
|
20
18
|
});
|
|
21
19
|
const slots = defineSlots();
|
|
22
|
-
const
|
|
20
|
+
const appConfig = useAppConfig();
|
|
21
|
+
const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.avatarGroup || {} })({
|
|
23
22
|
size: props.size
|
|
24
23
|
}));
|
|
25
24
|
const max = computed(() => typeof props.max === "string" ? Number.parseInt(props.max, 10) : props.max);
|
|
@@ -1,171 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
base: string;
|
|
6
|
-
};
|
|
7
|
-
"2xs": {
|
|
8
|
-
base: string;
|
|
9
|
-
};
|
|
10
|
-
xs: {
|
|
11
|
-
base: string;
|
|
12
|
-
};
|
|
13
|
-
sm: {
|
|
14
|
-
base: string;
|
|
15
|
-
};
|
|
16
|
-
md: {
|
|
17
|
-
base: string;
|
|
18
|
-
};
|
|
19
|
-
lg: {
|
|
20
|
-
base: string;
|
|
21
|
-
};
|
|
22
|
-
xl: {
|
|
23
|
-
base: string;
|
|
24
|
-
};
|
|
25
|
-
"2xl": {
|
|
26
|
-
base: string;
|
|
27
|
-
};
|
|
28
|
-
"3xl": {
|
|
29
|
-
base: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
}, {
|
|
33
|
-
root: string;
|
|
34
|
-
base: string;
|
|
35
|
-
}, undefined, {
|
|
36
|
-
size: {
|
|
37
|
-
"3xs": {
|
|
38
|
-
base: string;
|
|
39
|
-
};
|
|
40
|
-
"2xs": {
|
|
41
|
-
base: string;
|
|
42
|
-
};
|
|
43
|
-
xs: {
|
|
44
|
-
base: string;
|
|
45
|
-
};
|
|
46
|
-
sm: {
|
|
47
|
-
base: string;
|
|
48
|
-
};
|
|
49
|
-
md: {
|
|
50
|
-
base: string;
|
|
51
|
-
};
|
|
52
|
-
lg: {
|
|
53
|
-
base: string;
|
|
54
|
-
};
|
|
55
|
-
xl: {
|
|
56
|
-
base: string;
|
|
57
|
-
};
|
|
58
|
-
"2xl": {
|
|
59
|
-
base: string;
|
|
60
|
-
};
|
|
61
|
-
"3xl": {
|
|
62
|
-
base: string;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
}, {
|
|
66
|
-
root: string;
|
|
67
|
-
base: string;
|
|
68
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
69
|
-
size: {
|
|
70
|
-
"3xs": {
|
|
71
|
-
base: string;
|
|
72
|
-
};
|
|
73
|
-
"2xs": {
|
|
74
|
-
base: string;
|
|
75
|
-
};
|
|
76
|
-
xs: {
|
|
77
|
-
base: string;
|
|
78
|
-
};
|
|
79
|
-
sm: {
|
|
80
|
-
base: string;
|
|
81
|
-
};
|
|
82
|
-
md: {
|
|
83
|
-
base: string;
|
|
84
|
-
};
|
|
85
|
-
lg: {
|
|
86
|
-
base: string;
|
|
87
|
-
};
|
|
88
|
-
xl: {
|
|
89
|
-
base: string;
|
|
90
|
-
};
|
|
91
|
-
"2xl": {
|
|
92
|
-
base: string;
|
|
93
|
-
};
|
|
94
|
-
"3xl": {
|
|
95
|
-
base: string;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
}, {
|
|
99
|
-
root: string;
|
|
100
|
-
base: string;
|
|
101
|
-
}, undefined, {
|
|
102
|
-
size: {
|
|
103
|
-
"3xs": {
|
|
104
|
-
base: string;
|
|
105
|
-
};
|
|
106
|
-
"2xs": {
|
|
107
|
-
base: string;
|
|
108
|
-
};
|
|
109
|
-
xs: {
|
|
110
|
-
base: string;
|
|
111
|
-
};
|
|
112
|
-
sm: {
|
|
113
|
-
base: string;
|
|
114
|
-
};
|
|
115
|
-
md: {
|
|
116
|
-
base: string;
|
|
117
|
-
};
|
|
118
|
-
lg: {
|
|
119
|
-
base: string;
|
|
120
|
-
};
|
|
121
|
-
xl: {
|
|
122
|
-
base: string;
|
|
123
|
-
};
|
|
124
|
-
"2xl": {
|
|
125
|
-
base: string;
|
|
126
|
-
};
|
|
127
|
-
"3xl": {
|
|
128
|
-
base: string;
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
}, {
|
|
132
|
-
root: string;
|
|
133
|
-
base: string;
|
|
134
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
135
|
-
size: {
|
|
136
|
-
"3xs": {
|
|
137
|
-
base: string;
|
|
138
|
-
};
|
|
139
|
-
"2xs": {
|
|
140
|
-
base: string;
|
|
141
|
-
};
|
|
142
|
-
xs: {
|
|
143
|
-
base: string;
|
|
144
|
-
};
|
|
145
|
-
sm: {
|
|
146
|
-
base: string;
|
|
147
|
-
};
|
|
148
|
-
md: {
|
|
149
|
-
base: string;
|
|
150
|
-
};
|
|
151
|
-
lg: {
|
|
152
|
-
base: string;
|
|
153
|
-
};
|
|
154
|
-
xl: {
|
|
155
|
-
base: string;
|
|
156
|
-
};
|
|
157
|
-
"2xl": {
|
|
158
|
-
base: string;
|
|
159
|
-
};
|
|
160
|
-
"3xl": {
|
|
161
|
-
base: string;
|
|
162
|
-
};
|
|
163
|
-
};
|
|
164
|
-
}, {
|
|
165
|
-
root: string;
|
|
166
|
-
base: string;
|
|
167
|
-
}, undefined, unknown, unknown, undefined>>>;
|
|
168
|
-
type AvatarGroupVariants = VariantProps<typeof avatarGroup>;
|
|
1
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
2
|
+
import theme from '#build/b24ui/avatar-group';
|
|
3
|
+
import type { ComponentConfig } from '../types/utils';
|
|
4
|
+
type AvatarGroup = ComponentConfig<typeof theme, AppConfig, 'avatarGroup'>;
|
|
169
5
|
export interface AvatarGroupProps {
|
|
170
6
|
/**
|
|
171
7
|
* The element or component this component should render as.
|
|
@@ -175,13 +11,13 @@ export interface AvatarGroupProps {
|
|
|
175
11
|
/**
|
|
176
12
|
* @defaultValue 'md'
|
|
177
13
|
*/
|
|
178
|
-
size?:
|
|
14
|
+
size?: AvatarGroup['variants']['size'];
|
|
179
15
|
/**
|
|
180
16
|
* The maximum number of avatars to display.
|
|
181
17
|
*/
|
|
182
18
|
max?: number | string;
|
|
183
19
|
class?: any;
|
|
184
|
-
b24ui?:
|
|
20
|
+
b24ui?: AvatarGroup['slots'];
|
|
185
21
|
}
|
|
186
22
|
export interface AvatarGroupSlots {
|
|
187
23
|
default(props?: {}): any;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import _appConfig from "#build/app.config";
|
|
3
2
|
import theme from "#build/b24ui/badge";
|
|
4
|
-
import { tv } from "../utils/tv";
|
|
5
|
-
const appConfigBadge = _appConfig;
|
|
6
|
-
const badge = tv({ extend: tv(theme), ...appConfigBadge.b24ui?.badge || {} });
|
|
7
3
|
</script>
|
|
8
4
|
|
|
9
5
|
<script setup>
|
|
10
6
|
import { computed } from "vue";
|
|
11
7
|
import { Primitive } from "reka-ui";
|
|
8
|
+
import { useAppConfig } from "#imports";
|
|
12
9
|
import { useButtonGroup } from "../composables/useButtonGroup";
|
|
13
10
|
import { useComponentIcons } from "../composables/useComponentIcons";
|
|
11
|
+
import { tv } from "../utils/tv";
|
|
14
12
|
import Cross20Icon from "@bitrix24/b24icons-vue/actions/Cross20Icon";
|
|
15
13
|
import B24Avatar from "./Avatar.vue";
|
|
16
14
|
const props = defineProps({
|
|
@@ -24,13 +22,14 @@ const props = defineProps({
|
|
|
24
22
|
onCloseClick: { type: [Function, Array], required: false },
|
|
25
23
|
useFill: { type: Boolean, required: false },
|
|
26
24
|
class: { type: null, required: false },
|
|
27
|
-
b24ui: { type:
|
|
25
|
+
b24ui: { type: null, required: false },
|
|
28
26
|
icon: { type: [Function, Object], required: false },
|
|
29
27
|
avatar: { type: Object, required: false },
|
|
30
28
|
trailing: { type: Boolean, required: false },
|
|
31
29
|
trailingIcon: { type: [Function, Object], required: false }
|
|
32
30
|
});
|
|
33
31
|
defineSlots();
|
|
32
|
+
const appConfig = useAppConfig();
|
|
34
33
|
async function onCloseClickWrapper(event) {
|
|
35
34
|
const callbacks = Array.isArray(props.onCloseClick) ? props.onCloseClick : [props.onCloseClick];
|
|
36
35
|
try {
|
|
@@ -40,7 +39,7 @@ async function onCloseClickWrapper(event) {
|
|
|
40
39
|
}
|
|
41
40
|
const { orientation, size: buttonGroupSize } = useButtonGroup(props);
|
|
42
41
|
const { isLeading, leadingIconName } = useComponentIcons(props);
|
|
43
|
-
const b24ui = computed(() => badge({
|
|
42
|
+
const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.badge || {} })({
|
|
44
43
|
color: props.color,
|
|
45
44
|
depth: props.depth,
|
|
46
45
|
size: buttonGroupSize.value || props.size,
|