@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,354 +1,9 @@
|
|
|
1
|
-
import type { VariantProps } from 'tailwind-variants';
|
|
2
1
|
import type { ToastRootProps, ToastRootEmits } from 'reka-ui';
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
+
import theme from '#build/b24ui/toast';
|
|
3
4
|
import type { AvatarProps, ButtonProps, IconComponent } from '../types';
|
|
4
|
-
import type { StringOrVNode } from '../types/utils';
|
|
5
|
-
|
|
6
|
-
color: {
|
|
7
|
-
default: {
|
|
8
|
-
root: string;
|
|
9
|
-
icon: string;
|
|
10
|
-
progress: string;
|
|
11
|
-
};
|
|
12
|
-
danger: {
|
|
13
|
-
root: string;
|
|
14
|
-
icon: string;
|
|
15
|
-
progress: string;
|
|
16
|
-
};
|
|
17
|
-
success: {
|
|
18
|
-
root: string;
|
|
19
|
-
icon: string;
|
|
20
|
-
progress: string;
|
|
21
|
-
};
|
|
22
|
-
warning: {
|
|
23
|
-
root: string;
|
|
24
|
-
icon: string;
|
|
25
|
-
progress: string;
|
|
26
|
-
};
|
|
27
|
-
primary: {
|
|
28
|
-
root: string;
|
|
29
|
-
icon: string;
|
|
30
|
-
progress: string;
|
|
31
|
-
};
|
|
32
|
-
secondary: {
|
|
33
|
-
root: string;
|
|
34
|
-
icon: string;
|
|
35
|
-
progress: string;
|
|
36
|
-
};
|
|
37
|
-
collab: {
|
|
38
|
-
root: string;
|
|
39
|
-
icon: string;
|
|
40
|
-
progress: string;
|
|
41
|
-
};
|
|
42
|
-
ai: {
|
|
43
|
-
root: string;
|
|
44
|
-
icon: string;
|
|
45
|
-
progress: string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
orientation: {
|
|
49
|
-
horizontal: {
|
|
50
|
-
root: string;
|
|
51
|
-
actions: string;
|
|
52
|
-
};
|
|
53
|
-
vertical: {
|
|
54
|
-
root: string;
|
|
55
|
-
actions: string;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
title: {
|
|
59
|
-
true: {
|
|
60
|
-
description: string;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
}, {
|
|
64
|
-
root: string;
|
|
65
|
-
wrapper: string;
|
|
66
|
-
title: string;
|
|
67
|
-
description: string;
|
|
68
|
-
icon: string;
|
|
69
|
-
avatar: string;
|
|
70
|
-
avatarSize: string;
|
|
71
|
-
actions: string;
|
|
72
|
-
progress: string;
|
|
73
|
-
close: string;
|
|
74
|
-
}, undefined, {
|
|
75
|
-
color: {
|
|
76
|
-
default: {
|
|
77
|
-
root: string;
|
|
78
|
-
icon: string;
|
|
79
|
-
progress: string;
|
|
80
|
-
};
|
|
81
|
-
danger: {
|
|
82
|
-
root: string;
|
|
83
|
-
icon: string;
|
|
84
|
-
progress: string;
|
|
85
|
-
};
|
|
86
|
-
success: {
|
|
87
|
-
root: string;
|
|
88
|
-
icon: string;
|
|
89
|
-
progress: string;
|
|
90
|
-
};
|
|
91
|
-
warning: {
|
|
92
|
-
root: string;
|
|
93
|
-
icon: string;
|
|
94
|
-
progress: string;
|
|
95
|
-
};
|
|
96
|
-
primary: {
|
|
97
|
-
root: string;
|
|
98
|
-
icon: string;
|
|
99
|
-
progress: string;
|
|
100
|
-
};
|
|
101
|
-
secondary: {
|
|
102
|
-
root: string;
|
|
103
|
-
icon: string;
|
|
104
|
-
progress: string;
|
|
105
|
-
};
|
|
106
|
-
collab: {
|
|
107
|
-
root: string;
|
|
108
|
-
icon: string;
|
|
109
|
-
progress: string;
|
|
110
|
-
};
|
|
111
|
-
ai: {
|
|
112
|
-
root: string;
|
|
113
|
-
icon: string;
|
|
114
|
-
progress: string;
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
orientation: {
|
|
118
|
-
horizontal: {
|
|
119
|
-
root: string;
|
|
120
|
-
actions: string;
|
|
121
|
-
};
|
|
122
|
-
vertical: {
|
|
123
|
-
root: string;
|
|
124
|
-
actions: string;
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
title: {
|
|
128
|
-
true: {
|
|
129
|
-
description: string;
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
}, {
|
|
133
|
-
root: string;
|
|
134
|
-
wrapper: string;
|
|
135
|
-
title: string;
|
|
136
|
-
description: string;
|
|
137
|
-
icon: string;
|
|
138
|
-
avatar: string;
|
|
139
|
-
avatarSize: string;
|
|
140
|
-
actions: string;
|
|
141
|
-
progress: string;
|
|
142
|
-
close: string;
|
|
143
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
144
|
-
color: {
|
|
145
|
-
default: {
|
|
146
|
-
root: string;
|
|
147
|
-
icon: string;
|
|
148
|
-
progress: string;
|
|
149
|
-
};
|
|
150
|
-
danger: {
|
|
151
|
-
root: string;
|
|
152
|
-
icon: string;
|
|
153
|
-
progress: string;
|
|
154
|
-
};
|
|
155
|
-
success: {
|
|
156
|
-
root: string;
|
|
157
|
-
icon: string;
|
|
158
|
-
progress: string;
|
|
159
|
-
};
|
|
160
|
-
warning: {
|
|
161
|
-
root: string;
|
|
162
|
-
icon: string;
|
|
163
|
-
progress: string;
|
|
164
|
-
};
|
|
165
|
-
primary: {
|
|
166
|
-
root: string;
|
|
167
|
-
icon: string;
|
|
168
|
-
progress: string;
|
|
169
|
-
};
|
|
170
|
-
secondary: {
|
|
171
|
-
root: string;
|
|
172
|
-
icon: string;
|
|
173
|
-
progress: string;
|
|
174
|
-
};
|
|
175
|
-
collab: {
|
|
176
|
-
root: string;
|
|
177
|
-
icon: string;
|
|
178
|
-
progress: string;
|
|
179
|
-
};
|
|
180
|
-
ai: {
|
|
181
|
-
root: string;
|
|
182
|
-
icon: string;
|
|
183
|
-
progress: string;
|
|
184
|
-
};
|
|
185
|
-
};
|
|
186
|
-
orientation: {
|
|
187
|
-
horizontal: {
|
|
188
|
-
root: string;
|
|
189
|
-
actions: string;
|
|
190
|
-
};
|
|
191
|
-
vertical: {
|
|
192
|
-
root: string;
|
|
193
|
-
actions: string;
|
|
194
|
-
};
|
|
195
|
-
};
|
|
196
|
-
title: {
|
|
197
|
-
true: {
|
|
198
|
-
description: string;
|
|
199
|
-
};
|
|
200
|
-
};
|
|
201
|
-
}, {
|
|
202
|
-
root: string;
|
|
203
|
-
wrapper: string;
|
|
204
|
-
title: string;
|
|
205
|
-
description: string;
|
|
206
|
-
icon: string;
|
|
207
|
-
avatar: string;
|
|
208
|
-
avatarSize: string;
|
|
209
|
-
actions: string;
|
|
210
|
-
progress: string;
|
|
211
|
-
close: string;
|
|
212
|
-
}, undefined, {
|
|
213
|
-
color: {
|
|
214
|
-
default: {
|
|
215
|
-
root: string;
|
|
216
|
-
icon: string;
|
|
217
|
-
progress: string;
|
|
218
|
-
};
|
|
219
|
-
danger: {
|
|
220
|
-
root: string;
|
|
221
|
-
icon: string;
|
|
222
|
-
progress: string;
|
|
223
|
-
};
|
|
224
|
-
success: {
|
|
225
|
-
root: string;
|
|
226
|
-
icon: string;
|
|
227
|
-
progress: string;
|
|
228
|
-
};
|
|
229
|
-
warning: {
|
|
230
|
-
root: string;
|
|
231
|
-
icon: string;
|
|
232
|
-
progress: string;
|
|
233
|
-
};
|
|
234
|
-
primary: {
|
|
235
|
-
root: string;
|
|
236
|
-
icon: string;
|
|
237
|
-
progress: string;
|
|
238
|
-
};
|
|
239
|
-
secondary: {
|
|
240
|
-
root: string;
|
|
241
|
-
icon: string;
|
|
242
|
-
progress: string;
|
|
243
|
-
};
|
|
244
|
-
collab: {
|
|
245
|
-
root: string;
|
|
246
|
-
icon: string;
|
|
247
|
-
progress: string;
|
|
248
|
-
};
|
|
249
|
-
ai: {
|
|
250
|
-
root: string;
|
|
251
|
-
icon: string;
|
|
252
|
-
progress: string;
|
|
253
|
-
};
|
|
254
|
-
};
|
|
255
|
-
orientation: {
|
|
256
|
-
horizontal: {
|
|
257
|
-
root: string;
|
|
258
|
-
actions: string;
|
|
259
|
-
};
|
|
260
|
-
vertical: {
|
|
261
|
-
root: string;
|
|
262
|
-
actions: string;
|
|
263
|
-
};
|
|
264
|
-
};
|
|
265
|
-
title: {
|
|
266
|
-
true: {
|
|
267
|
-
description: string;
|
|
268
|
-
};
|
|
269
|
-
};
|
|
270
|
-
}, {
|
|
271
|
-
root: string;
|
|
272
|
-
wrapper: string;
|
|
273
|
-
title: string;
|
|
274
|
-
description: string;
|
|
275
|
-
icon: string;
|
|
276
|
-
avatar: string;
|
|
277
|
-
avatarSize: string;
|
|
278
|
-
actions: string;
|
|
279
|
-
progress: string;
|
|
280
|
-
close: string;
|
|
281
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
282
|
-
color: {
|
|
283
|
-
default: {
|
|
284
|
-
root: string;
|
|
285
|
-
icon: string;
|
|
286
|
-
progress: string;
|
|
287
|
-
};
|
|
288
|
-
danger: {
|
|
289
|
-
root: string;
|
|
290
|
-
icon: string;
|
|
291
|
-
progress: string;
|
|
292
|
-
};
|
|
293
|
-
success: {
|
|
294
|
-
root: string;
|
|
295
|
-
icon: string;
|
|
296
|
-
progress: string;
|
|
297
|
-
};
|
|
298
|
-
warning: {
|
|
299
|
-
root: string;
|
|
300
|
-
icon: string;
|
|
301
|
-
progress: string;
|
|
302
|
-
};
|
|
303
|
-
primary: {
|
|
304
|
-
root: string;
|
|
305
|
-
icon: string;
|
|
306
|
-
progress: string;
|
|
307
|
-
};
|
|
308
|
-
secondary: {
|
|
309
|
-
root: string;
|
|
310
|
-
icon: string;
|
|
311
|
-
progress: string;
|
|
312
|
-
};
|
|
313
|
-
collab: {
|
|
314
|
-
root: string;
|
|
315
|
-
icon: string;
|
|
316
|
-
progress: string;
|
|
317
|
-
};
|
|
318
|
-
ai: {
|
|
319
|
-
root: string;
|
|
320
|
-
icon: string;
|
|
321
|
-
progress: string;
|
|
322
|
-
};
|
|
323
|
-
};
|
|
324
|
-
orientation: {
|
|
325
|
-
horizontal: {
|
|
326
|
-
root: string;
|
|
327
|
-
actions: string;
|
|
328
|
-
};
|
|
329
|
-
vertical: {
|
|
330
|
-
root: string;
|
|
331
|
-
actions: string;
|
|
332
|
-
};
|
|
333
|
-
};
|
|
334
|
-
title: {
|
|
335
|
-
true: {
|
|
336
|
-
description: string;
|
|
337
|
-
};
|
|
338
|
-
};
|
|
339
|
-
}, {
|
|
340
|
-
root: string;
|
|
341
|
-
wrapper: string;
|
|
342
|
-
title: string;
|
|
343
|
-
description: string;
|
|
344
|
-
icon: string;
|
|
345
|
-
avatar: string;
|
|
346
|
-
avatarSize: string;
|
|
347
|
-
actions: string;
|
|
348
|
-
progress: string;
|
|
349
|
-
close: string;
|
|
350
|
-
}, undefined, unknown, unknown, undefined>>>;
|
|
351
|
-
type ToastVariants = VariantProps<typeof toast>;
|
|
5
|
+
import type { StringOrVNode, ComponentConfig } from '../types/utils';
|
|
6
|
+
type Toast = ComponentConfig<typeof theme, AppConfig, 'toast'>;
|
|
352
7
|
export interface ToastProps extends Pick<ToastRootProps, 'defaultOpen' | 'open' | 'type' | 'duration'> {
|
|
353
8
|
/**
|
|
354
9
|
* The element or component this component should render as.
|
|
@@ -365,12 +20,12 @@ export interface ToastProps extends Pick<ToastRootProps, 'defaultOpen' | 'open'
|
|
|
365
20
|
/**
|
|
366
21
|
* @defaultValue 'default'
|
|
367
22
|
*/
|
|
368
|
-
color?:
|
|
23
|
+
color?: Toast['variants']['color'];
|
|
369
24
|
/**
|
|
370
25
|
* The orientation between the content and the actions
|
|
371
26
|
* @defaultValue 'vertical'
|
|
372
27
|
*/
|
|
373
|
-
orientation?:
|
|
28
|
+
orientation?: Toast['variants']['orientation'];
|
|
374
29
|
/**
|
|
375
30
|
* Display a list of actions:
|
|
376
31
|
* - under the title and description when orientation is `vertical`
|
|
@@ -391,7 +46,7 @@ export interface ToastProps extends Pick<ToastRootProps, 'defaultOpen' | 'open'
|
|
|
391
46
|
*/
|
|
392
47
|
closeIcon?: IconComponent;
|
|
393
48
|
class?: any;
|
|
394
|
-
b24ui?:
|
|
49
|
+
b24ui?: Toast['slots'];
|
|
395
50
|
}
|
|
396
51
|
export interface ToastEmits extends ToastRootEmits {
|
|
397
52
|
}
|
|
@@ -401,7 +56,9 @@ export interface ToastSlots {
|
|
|
401
56
|
description(props?: {}): any;
|
|
402
57
|
actions(props?: {}): any;
|
|
403
58
|
close(props: {
|
|
404
|
-
b24ui:
|
|
59
|
+
b24ui: {
|
|
60
|
+
[K in keyof Required<Toast['slots']>]: (props?: Record<string, any>) => string;
|
|
61
|
+
};
|
|
405
62
|
}): any;
|
|
406
63
|
}
|
|
407
64
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ToastProps>, {
|
|
@@ -411,7 +68,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
411
68
|
height: import("vue").Ref<number, number>;
|
|
412
69
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
|
|
413
70
|
close: boolean | Partial<ButtonProps>;
|
|
414
|
-
orientation: "
|
|
71
|
+
orientation: Toast["variants"]["orientation"];
|
|
415
72
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<ToastSlots> & ToastSlots>;
|
|
416
73
|
export default _default;
|
|
417
74
|
type __VLS_WithDefaults<P, D> = {
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import _appConfig from "#build/app.config";
|
|
3
2
|
import theme from "#build/b24ui/toaster";
|
|
4
|
-
import { tv } from "../utils/tv";
|
|
5
|
-
const appConfigToaster = _appConfig;
|
|
6
|
-
const toaster = tv({ extend: tv(theme), ...appConfigToaster.b24ui?.toaster || {} });
|
|
7
3
|
export default {
|
|
8
4
|
name: "Toaster"
|
|
9
5
|
};
|
|
@@ -13,8 +9,10 @@ export default {
|
|
|
13
9
|
import { ref, computed } from "vue";
|
|
14
10
|
import { ToastProvider, ToastViewport, ToastPortal, useForwardProps } from "reka-ui";
|
|
15
11
|
import { reactivePick } from "@vueuse/core";
|
|
12
|
+
import { useAppConfig } from "#imports";
|
|
16
13
|
import { useToast } from "../composables/useToast";
|
|
17
14
|
import { omit } from "../utils";
|
|
15
|
+
import { tv } from "../utils/tv";
|
|
18
16
|
import B24Toast from "./Toast.vue";
|
|
19
17
|
const props = defineProps({
|
|
20
18
|
position: { type: null, required: false, default: "top-right" },
|
|
@@ -22,16 +20,17 @@ const props = defineProps({
|
|
|
22
20
|
portal: { type: Boolean, required: false, default: true },
|
|
23
21
|
duration: { type: Number, required: false, default: 5e3 },
|
|
24
22
|
class: { type: null, required: false },
|
|
25
|
-
b24ui: { type:
|
|
23
|
+
b24ui: { type: null, required: false },
|
|
26
24
|
label: { type: String, required: false },
|
|
27
25
|
swipeThreshold: { type: Number, required: false }
|
|
28
26
|
});
|
|
29
27
|
defineSlots();
|
|
28
|
+
const { toasts, remove } = useToast();
|
|
29
|
+
const appConfig = useAppConfig();
|
|
30
30
|
const providerProps = useForwardProps(reactivePick(props, "duration", "label", "swipeThreshold"));
|
|
31
31
|
const proxyToastProps = (toast) => {
|
|
32
32
|
return omit(toast, ["id", "close"]);
|
|
33
33
|
};
|
|
34
|
-
const { toasts, remove } = useToast();
|
|
35
34
|
const swipeDirection = computed(() => {
|
|
36
35
|
switch (props.position) {
|
|
37
36
|
case "top-center":
|
|
@@ -47,7 +46,7 @@ const swipeDirection = computed(() => {
|
|
|
47
46
|
}
|
|
48
47
|
return "right";
|
|
49
48
|
});
|
|
50
|
-
const b24ui = computed(() => toaster({
|
|
49
|
+
const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.toaster || {} })({
|
|
51
50
|
position: props.position,
|
|
52
51
|
swipeDirection: swipeDirection.value
|
|
53
52
|
}));
|
|
@@ -1,163 +1,14 @@
|
|
|
1
|
-
import type { VariantProps } from 'tailwind-variants';
|
|
2
1
|
import type { ToastProviderProps } from 'reka-ui';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
"top-center": {
|
|
9
|
-
viewport: string;
|
|
10
|
-
};
|
|
11
|
-
"top-right": {
|
|
12
|
-
viewport: string;
|
|
13
|
-
};
|
|
14
|
-
"bottom-left": {
|
|
15
|
-
viewport: string;
|
|
16
|
-
};
|
|
17
|
-
"bottom-center": {
|
|
18
|
-
viewport: string;
|
|
19
|
-
};
|
|
20
|
-
"bottom-right": {
|
|
21
|
-
viewport: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
swipeDirection: {
|
|
25
|
-
up: string;
|
|
26
|
-
right: string;
|
|
27
|
-
down: string;
|
|
28
|
-
left: string;
|
|
29
|
-
};
|
|
30
|
-
}, {
|
|
31
|
-
viewport: string;
|
|
32
|
-
base: string;
|
|
33
|
-
}, undefined, {
|
|
34
|
-
position: {
|
|
35
|
-
"top-left": {
|
|
36
|
-
viewport: string;
|
|
37
|
-
};
|
|
38
|
-
"top-center": {
|
|
39
|
-
viewport: string;
|
|
40
|
-
};
|
|
41
|
-
"top-right": {
|
|
42
|
-
viewport: string;
|
|
43
|
-
};
|
|
44
|
-
"bottom-left": {
|
|
45
|
-
viewport: string;
|
|
46
|
-
};
|
|
47
|
-
"bottom-center": {
|
|
48
|
-
viewport: string;
|
|
49
|
-
};
|
|
50
|
-
"bottom-right": {
|
|
51
|
-
viewport: string;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
swipeDirection: {
|
|
55
|
-
up: string;
|
|
56
|
-
right: string;
|
|
57
|
-
down: string;
|
|
58
|
-
left: string;
|
|
59
|
-
};
|
|
60
|
-
}, {
|
|
61
|
-
viewport: string;
|
|
62
|
-
base: string;
|
|
63
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
64
|
-
position: {
|
|
65
|
-
"top-left": {
|
|
66
|
-
viewport: string;
|
|
67
|
-
};
|
|
68
|
-
"top-center": {
|
|
69
|
-
viewport: string;
|
|
70
|
-
};
|
|
71
|
-
"top-right": {
|
|
72
|
-
viewport: string;
|
|
73
|
-
};
|
|
74
|
-
"bottom-left": {
|
|
75
|
-
viewport: string;
|
|
76
|
-
};
|
|
77
|
-
"bottom-center": {
|
|
78
|
-
viewport: string;
|
|
79
|
-
};
|
|
80
|
-
"bottom-right": {
|
|
81
|
-
viewport: string;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
swipeDirection: {
|
|
85
|
-
up: string;
|
|
86
|
-
right: string;
|
|
87
|
-
down: string;
|
|
88
|
-
left: string;
|
|
89
|
-
};
|
|
90
|
-
}, {
|
|
91
|
-
viewport: string;
|
|
92
|
-
base: string;
|
|
93
|
-
}, undefined, {
|
|
94
|
-
position: {
|
|
95
|
-
"top-left": {
|
|
96
|
-
viewport: string;
|
|
97
|
-
};
|
|
98
|
-
"top-center": {
|
|
99
|
-
viewport: string;
|
|
100
|
-
};
|
|
101
|
-
"top-right": {
|
|
102
|
-
viewport: string;
|
|
103
|
-
};
|
|
104
|
-
"bottom-left": {
|
|
105
|
-
viewport: string;
|
|
106
|
-
};
|
|
107
|
-
"bottom-center": {
|
|
108
|
-
viewport: string;
|
|
109
|
-
};
|
|
110
|
-
"bottom-right": {
|
|
111
|
-
viewport: string;
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
swipeDirection: {
|
|
115
|
-
up: string;
|
|
116
|
-
right: string;
|
|
117
|
-
down: string;
|
|
118
|
-
left: string;
|
|
119
|
-
};
|
|
120
|
-
}, {
|
|
121
|
-
viewport: string;
|
|
122
|
-
base: string;
|
|
123
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
124
|
-
position: {
|
|
125
|
-
"top-left": {
|
|
126
|
-
viewport: string;
|
|
127
|
-
};
|
|
128
|
-
"top-center": {
|
|
129
|
-
viewport: string;
|
|
130
|
-
};
|
|
131
|
-
"top-right": {
|
|
132
|
-
viewport: string;
|
|
133
|
-
};
|
|
134
|
-
"bottom-left": {
|
|
135
|
-
viewport: string;
|
|
136
|
-
};
|
|
137
|
-
"bottom-center": {
|
|
138
|
-
viewport: string;
|
|
139
|
-
};
|
|
140
|
-
"bottom-right": {
|
|
141
|
-
viewport: string;
|
|
142
|
-
};
|
|
143
|
-
};
|
|
144
|
-
swipeDirection: {
|
|
145
|
-
up: string;
|
|
146
|
-
right: string;
|
|
147
|
-
down: string;
|
|
148
|
-
left: string;
|
|
149
|
-
};
|
|
150
|
-
}, {
|
|
151
|
-
viewport: string;
|
|
152
|
-
base: string;
|
|
153
|
-
}, undefined, unknown, unknown, undefined>>>;
|
|
154
|
-
type ToasterVariants = VariantProps<typeof toaster>;
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
+
import theme from '#build/b24ui/toaster';
|
|
4
|
+
import type { ComponentConfig } from '../types/utils';
|
|
5
|
+
type Toaster = ComponentConfig<typeof theme, AppConfig, 'toaster'>;
|
|
155
6
|
export interface ToasterProps extends Omit<ToastProviderProps, 'swipeDirection'> {
|
|
156
7
|
/**
|
|
157
8
|
* The position on the screen to display the toasts.
|
|
158
9
|
* @defaultValue 'top-right'
|
|
159
10
|
*/
|
|
160
|
-
position?:
|
|
11
|
+
position?: Toaster['variants']['position'];
|
|
161
12
|
/**
|
|
162
13
|
* Expand the toasts to show multiple toasts at once.
|
|
163
14
|
* @defaultValue true
|
|
@@ -173,7 +24,7 @@ export interface ToasterProps extends Omit<ToastProviderProps, 'swipeDirection'>
|
|
|
173
24
|
*/
|
|
174
25
|
duration?: number;
|
|
175
26
|
class?: any;
|
|
176
|
-
b24ui?:
|
|
27
|
+
b24ui?: Toaster['slots'];
|
|
177
28
|
}
|
|
178
29
|
export interface ToasterSlots {
|
|
179
30
|
default(props?: {}): any;
|
|
@@ -189,8 +40,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
189
40
|
duration: number;
|
|
190
41
|
portal: boolean;
|
|
191
42
|
}>>> & Readonly<{}>, {
|
|
43
|
+
position: Toaster["variants"]["position"];
|
|
192
44
|
duration: number;
|
|
193
|
-
position: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
194
45
|
expand: boolean;
|
|
195
46
|
portal: boolean;
|
|
196
47
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<ToasterSlots> & ToasterSlots>;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import _appConfig from "#build/app.config";
|
|
3
2
|
import theme from "#build/b24ui/tooltip";
|
|
4
|
-
import { tv } from "../utils/tv";
|
|
5
|
-
const appConfigTooltip = _appConfig;
|
|
6
|
-
const tooltip = tv({ extend: tv(theme), ...appConfigTooltip.b24ui?.tooltip || {} });
|
|
7
3
|
</script>
|
|
8
4
|
|
|
9
5
|
<script setup>
|
|
@@ -11,6 +7,8 @@ import { computed, toRef } from "vue";
|
|
|
11
7
|
import { defu } from "defu";
|
|
12
8
|
import { TooltipRoot, TooltipTrigger, TooltipPortal, TooltipContent, TooltipArrow, useForwardPropsEmits } from "reka-ui";
|
|
13
9
|
import { reactivePick } from "@vueuse/core";
|
|
10
|
+
import { useAppConfig } from "#imports";
|
|
11
|
+
import { tv } from "../utils/tv";
|
|
14
12
|
import B24Kbd from "./Kbd.vue";
|
|
15
13
|
const props = defineProps({
|
|
16
14
|
text: { type: String, required: false },
|
|
@@ -19,7 +17,7 @@ const props = defineProps({
|
|
|
19
17
|
arrow: { type: [Boolean, Object], required: false },
|
|
20
18
|
portal: { type: Boolean, required: false, default: true },
|
|
21
19
|
class: { type: null, required: false },
|
|
22
|
-
b24ui: { type:
|
|
20
|
+
b24ui: { type: null, required: false },
|
|
23
21
|
defaultOpen: { type: Boolean, required: false },
|
|
24
22
|
open: { type: Boolean, required: false },
|
|
25
23
|
delayDuration: { type: Number, required: false },
|
|
@@ -30,10 +28,11 @@ const props = defineProps({
|
|
|
30
28
|
});
|
|
31
29
|
const emits = defineEmits(["update:open"]);
|
|
32
30
|
const slots = defineSlots();
|
|
31
|
+
const appConfig = useAppConfig();
|
|
33
32
|
const rootProps = useForwardPropsEmits(reactivePick(props, "defaultOpen", "open", "delayDuration", "disableHoverableContent", "disableClosingTrigger", "disabled", "ignoreNonKeyboardFocus"), emits);
|
|
34
33
|
const contentProps = toRef(() => defu(props.content, { side: "bottom", sideOffset: 8, collisionPadding: 8 }));
|
|
35
34
|
const arrowProps = toRef(() => props.arrow);
|
|
36
|
-
const b24ui = computed(() => tooltip({
|
|
35
|
+
const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.tooltip || {} })({
|
|
37
36
|
side: contentProps.value.side
|
|
38
37
|
}));
|
|
39
38
|
</script>
|