@bitrix24/b24ui-nuxt 0.1.7 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nuxt/b24ui/alert.ts +18 -8
- package/.nuxt/b24ui/badge.ts +1 -1
- package/.nuxt/b24ui/content/description-list.ts +17 -7
- package/.nuxt/b24ui/dropdown-menu.ts +235 -0
- package/.nuxt/b24ui/index.ts +2 -0
- package/.nuxt/b24ui/input-menu.ts +591 -0
- package/.nuxt/b24ui/input.ts +5 -5
- package/.nuxt/b24ui/select-menu.ts +6 -6
- package/.nuxt/b24ui/select.ts +6 -6
- package/.nuxt/b24ui/toast.ts +18 -8
- package/.nuxt/b24ui.css +2 -0
- package/README.md +8 -8
- package/dist/meta.cjs +13508 -1751
- package/dist/meta.d.cts +13508 -1751
- package/dist/meta.d.mts +13508 -1751
- package/dist/meta.d.ts +13508 -1751
- package/dist/meta.mjs +13508 -1751
- package/dist/module.cjs +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/Alert.vue +13 -10
- package/dist/runtime/components/DropdownMenu.vue +135 -0
- package/dist/runtime/components/DropdownMenuContent.vue +182 -0
- package/dist/runtime/components/InputMenu.vue +507 -0
- package/dist/runtime/components/Toast.vue +26 -14
- package/dist/runtime/components/Toaster.vue +2 -2
- package/dist/runtime/components/content/DescriptionList.vue +9 -7
- package/dist/runtime/composables/useComponentIcons.d.ts +2 -2
- package/dist/runtime/composables/useToast.d.ts +5 -4
- package/dist/runtime/composables/useToast.js +2 -2
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/types/index.d.ts +2 -0
- package/dist/runtime/types/index.js +2 -0
- package/dist/runtime/types/utils.d.ts +5 -0
- package/dist/runtime/vue/components/Link.vue +1 -0
- package/dist/shared/{b24ui-nuxt.vQRZieQw.mjs → b24ui-nuxt.CYvh5VlN.mjs} +653 -31
- package/dist/shared/{b24ui-nuxt.ZUYaG6CJ.cjs → b24ui-nuxt.DgnM0VWe.cjs} +653 -31
- package/dist/unplugin.cjs +1 -1
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.cjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +24 -5
|
@@ -0,0 +1,591 @@
|
|
|
1
|
+
const buttonGroup = [
|
|
2
|
+
"horizontal",
|
|
3
|
+
"vertical"
|
|
4
|
+
] as const
|
|
5
|
+
|
|
6
|
+
const size = [
|
|
7
|
+
"xs",
|
|
8
|
+
"sm",
|
|
9
|
+
"md",
|
|
10
|
+
"lg"
|
|
11
|
+
] as const
|
|
12
|
+
|
|
13
|
+
const color = [
|
|
14
|
+
"default",
|
|
15
|
+
"danger",
|
|
16
|
+
"success",
|
|
17
|
+
"warning",
|
|
18
|
+
"primary",
|
|
19
|
+
"secondary",
|
|
20
|
+
"collab",
|
|
21
|
+
"ai"
|
|
22
|
+
] as const
|
|
23
|
+
|
|
24
|
+
const tagColor = [
|
|
25
|
+
"default",
|
|
26
|
+
"danger",
|
|
27
|
+
"success",
|
|
28
|
+
"warning",
|
|
29
|
+
"primary",
|
|
30
|
+
"secondary",
|
|
31
|
+
"collab",
|
|
32
|
+
"ai"
|
|
33
|
+
] as const
|
|
34
|
+
|
|
35
|
+
const type = [
|
|
36
|
+
"file"
|
|
37
|
+
] as const
|
|
38
|
+
|
|
39
|
+
export default {
|
|
40
|
+
"slots": {
|
|
41
|
+
"root": "relative inline-flex items-center w-full",
|
|
42
|
+
"base": "py-0 w-full border-0 focus:outline-none disabled:cursor-not-allowed disabled:bg-base-30/37 disabled:resize-none disabled:text-base-500 dark:disabled:bg-base-900/37 dark:disabled:text-base-800 appearance-none transition duration-300 ease-linear ring ring-inset ring-base-300 dark:ring-base-800 text-base-master bg-white placeholder:text-base-400 hover:text-base-900 focus:text-base-900 active:text-base-900 dark:text-base-150 dark:bg-transparent dark:placeholder:text-base-300 dark:hover:text-base-350 dark:focus:text-base-350 dark:active:text-base-350 font-b24-primary font-regular text-md leading-none align-middle transition-colors",
|
|
43
|
+
"leading": "absolute inset-y-0 start-0 flex items-center",
|
|
44
|
+
"leadingIcon": "shrink-0 text-base-400",
|
|
45
|
+
"leadingAvatar": "shrink-0",
|
|
46
|
+
"leadingAvatarSize": "",
|
|
47
|
+
"trailing": "group absolute inset-y-0 end-0 flex items-center disabled:cursor-not-allowed disabled:opacity-75",
|
|
48
|
+
"trailingIcon": "shrink-0 text-base-400",
|
|
49
|
+
"tag": "pointer-events-none select-none absolute z-10 -top-1.5 right-3 h-sm px-1.5 flex flex-col justify-center items-center font-b24-primary font-bold text-6xs leading-none uppercase rounded-full",
|
|
50
|
+
"arrow": "fill-base-master/10 dark:fill-base-100/20",
|
|
51
|
+
"content": "w-[var(--reka-popper-anchor-width)] bg-white dark:bg-base-dark shadow-md rounded-2xs ring ring-base-300 dark:ring-base-800 overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] pointer-events-auto",
|
|
52
|
+
"viewport": "divide-y divide-base-master/10 dark:divide-base-100/20 scroll-py-1",
|
|
53
|
+
"group": "p-1 isolate",
|
|
54
|
+
"empty": "py-2 text-center text-sm text-base-500 dark:text-base-600",
|
|
55
|
+
"label": "flex items-center font-semibold text-base-900 dark:text-base-200",
|
|
56
|
+
"separator": "-mx-1 my-1 h-px bg-base-master/10 dark:bg-base-100/20",
|
|
57
|
+
"item": "group relative w-full flex items-center select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-2xs cursor-pointer data-disabled:cursor-not-allowed data-disabled:opacity-75 text-base-master dark:text-base-150 data-highlighted:text-base-900 dark:data-highlighted:text-base-200 data-highlighted:before:bg-base-100/50 dark:data-highlighted:before:bg-base-900 data-[state=checked]:text-base-900 dark:data-[state=checked]:text-base-200 data-[state=checked]:before:bg-base-100/50 dark:data-[state=checked]:before:bg-base-900 transition-colors before:transition-colors",
|
|
58
|
+
"itemLeadingIcon": "shrink-0 text-base-500 dark:text-base-700 group-data-highlighted:text-base-master dark:group-data-highlighted:text-base-150 group-data-[state=checked]:text-base-master dark:group-data-[state=checked]:text-base-150 transition-colors",
|
|
59
|
+
"itemLeadingAvatar": "shrink-0",
|
|
60
|
+
"itemLeadingAvatarSize": "",
|
|
61
|
+
"itemLeadingChip": "shrink-0",
|
|
62
|
+
"itemLeadingChipSize": "",
|
|
63
|
+
"itemTrailing": "ms-auto inline-flex gap-1.5 items-center",
|
|
64
|
+
"itemTrailingIcon": "shrink-0",
|
|
65
|
+
"itemLabel": "truncate",
|
|
66
|
+
"tagsItem": "px-2 rounded-2xs font-b24-secondary font-normal leading-normal inline-flex items-center gap-1 ring ring-inset data-disabled:cursor-not-allowed data-disabled:opacity-75 text-blue-700 bg-blue-250 ring-blue-250 dark:text-blue-700 dark:bg-blue-300 dark:ring-blue-300",
|
|
67
|
+
"tagsItemText": "truncate",
|
|
68
|
+
"tagsItemDelete": "cursor-pointer hover:rounded-full inline-flex items-center rounded-md disabled:pointer-events-none text-base-500 hover:text-base-master hover:bg-blue-300 dark:text-base-500 dark:text-base-700 dark:hover:text-base-master dark:hover:bg-blue-400 transition-colors",
|
|
69
|
+
"tagsItemDeleteIcon": "",
|
|
70
|
+
"tagsInput": ""
|
|
71
|
+
},
|
|
72
|
+
"variants": {
|
|
73
|
+
"buttonGroup": {
|
|
74
|
+
"horizontal": {
|
|
75
|
+
"root": "group leading-none",
|
|
76
|
+
"base": "focus-visible:outline-none ring ring-inset ring-1 focus-visible:ring-2 group-not-only:group-first:rounded-e-3xl group-not-only:group-last:rounded-s-none group-not-last:group-not-first:rounded-none group-not-only:group-first:rounded-e-none group-not-only:group-last:rounded-s-none group-not-last:group-not-first:rounded-none group-not-only:group-first:border-e-0 group-not-only:group-not-first:border-s-0"
|
|
77
|
+
},
|
|
78
|
+
"vertical": {
|
|
79
|
+
"root": "group",
|
|
80
|
+
"base": "focus-visible:outline-none ring ring-inset ring-1 focus-visible:ring-2 group-not-only:group-first:rounded-b-none group-not-only:group-last:rounded-t-none group-not-last:group-not-first:rounded-none"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"noSplit": {
|
|
84
|
+
"false": "group-not-only:not-first:after:content-[''] group-not-only:not-first:after:absolute group-not-only:not-first:after:top-[7px] group-not-only:not-first:after:bottom-[6px] group-not-only:not-first:after:left-0 group-not-only:not-first:after:w-px group-not-only:not-first:after:bg-current/30"
|
|
85
|
+
},
|
|
86
|
+
"size": {
|
|
87
|
+
"xs": {
|
|
88
|
+
"base": "h-xl2 gap-1",
|
|
89
|
+
"leading": "px-1",
|
|
90
|
+
"trailing": "px-1",
|
|
91
|
+
"leadingIcon": "size-lg2",
|
|
92
|
+
"leadingAvatarSize": "2xs",
|
|
93
|
+
"trailingIcon": "size-lg2",
|
|
94
|
+
"tagsItem": "text-5xs h-[14px] gap-0.5",
|
|
95
|
+
"tagsItemDeleteIcon": "size-sm",
|
|
96
|
+
"label": "h-9 ps-2 pe-3 text-sm gap-2",
|
|
97
|
+
"item": "h-9 ps-3 pe-3 text-sm gap-2",
|
|
98
|
+
"itemLeadingIcon": "size-5",
|
|
99
|
+
"itemLeadingAvatarSize": "2xs",
|
|
100
|
+
"itemLeadingChip": "size-3 not-group-data-reka-collection-item:ps-2.5",
|
|
101
|
+
"itemLeadingChipSize": "sm",
|
|
102
|
+
"itemTrailingIcon": "size-3"
|
|
103
|
+
},
|
|
104
|
+
"sm": {
|
|
105
|
+
"base": "h-8 gap-1.5",
|
|
106
|
+
"leading": "px-1.5",
|
|
107
|
+
"trailing": "px-1.5",
|
|
108
|
+
"leadingIcon": "size-lg2",
|
|
109
|
+
"leadingAvatarSize": "xs",
|
|
110
|
+
"trailingIcon": "size-lg2",
|
|
111
|
+
"tagsItem": "text-5xs h-[14px] gap-0.5",
|
|
112
|
+
"tagsItemDeleteIcon": "size-3",
|
|
113
|
+
"label": "h-9 ps-2 pe-3 text-sm gap-2",
|
|
114
|
+
"item": "h-9 ps-3 pe-3 text-sm gap-2",
|
|
115
|
+
"itemLeadingIcon": "size-5",
|
|
116
|
+
"itemLeadingAvatarSize": "2xs",
|
|
117
|
+
"itemLeadingChip": "size-3 not-group-data-reka-collection-item:ps-2.5",
|
|
118
|
+
"itemLeadingChipSize": "sm",
|
|
119
|
+
"itemTrailingIcon": "size-3"
|
|
120
|
+
},
|
|
121
|
+
"md": {
|
|
122
|
+
"base": "h-10 gap-1.5",
|
|
123
|
+
"leading": "px-2",
|
|
124
|
+
"trailing": "px-2",
|
|
125
|
+
"leadingIcon": "size-[24px]",
|
|
126
|
+
"leadingAvatarSize": "sm",
|
|
127
|
+
"trailingIcon": "size-lg2",
|
|
128
|
+
"tagsItem": "text-md h-[31px] gap-1",
|
|
129
|
+
"tagsItemDeleteIcon": "size-3.5",
|
|
130
|
+
"label": "h-9 ps-2 pe-3 text-sm gap-2",
|
|
131
|
+
"item": "h-9 ps-3 pe-3 text-sm gap-2",
|
|
132
|
+
"itemLeadingIcon": "size-5",
|
|
133
|
+
"itemLeadingAvatarSize": "2xs",
|
|
134
|
+
"itemLeadingChip": "size-3 not-group-data-reka-collection-item:ps-2.5",
|
|
135
|
+
"itemLeadingChipSize": "sm",
|
|
136
|
+
"itemTrailingIcon": "size-3"
|
|
137
|
+
},
|
|
138
|
+
"lg": {
|
|
139
|
+
"base": "h-12 gap-2",
|
|
140
|
+
"leading": "px-2",
|
|
141
|
+
"trailing": "px-2",
|
|
142
|
+
"leadingIcon": "size-[24px]",
|
|
143
|
+
"leadingAvatarSize": "md",
|
|
144
|
+
"trailingIcon": "size-lg2",
|
|
145
|
+
"tagsItem": "text-md h-[31px] gap-1",
|
|
146
|
+
"tagsItemDeleteIcon": "size-3.5",
|
|
147
|
+
"label": "h-9 ps-2 pe-3 text-sm gap-2",
|
|
148
|
+
"item": "h-9 ps-3 pe-3 text-sm gap-2",
|
|
149
|
+
"itemLeadingIcon": "size-5",
|
|
150
|
+
"itemLeadingAvatarSize": "2xs",
|
|
151
|
+
"itemLeadingChip": "size-3 not-group-data-reka-collection-item:ps-2.5",
|
|
152
|
+
"itemLeadingChipSize": "sm",
|
|
153
|
+
"itemTrailingIcon": "size-3"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"color": {
|
|
157
|
+
"default": "",
|
|
158
|
+
"danger": "",
|
|
159
|
+
"success": "",
|
|
160
|
+
"warning": "",
|
|
161
|
+
"primary": "",
|
|
162
|
+
"secondary": "",
|
|
163
|
+
"collab": "",
|
|
164
|
+
"ai": ""
|
|
165
|
+
},
|
|
166
|
+
"tagColor": {
|
|
167
|
+
"default": {
|
|
168
|
+
"tag": "text-white bg-base-900 dark:text-base-150 dark:bg-base-900"
|
|
169
|
+
},
|
|
170
|
+
"danger": {
|
|
171
|
+
"tag": "text-white bg-red-500 dark:text-red-250 dark:bg-red-600"
|
|
172
|
+
},
|
|
173
|
+
"success": {
|
|
174
|
+
"tag": "text-white bg-green-500 dark:text-green-250 dark:bg-green-600"
|
|
175
|
+
},
|
|
176
|
+
"warning": {
|
|
177
|
+
"tag": "text-white bg-orange-500 dark:text-orange-250 dark:bg-orange-600"
|
|
178
|
+
},
|
|
179
|
+
"primary": {
|
|
180
|
+
"tag": "text-white bg-blue-500 dark:text-blue-250 dark:bg-blue-600"
|
|
181
|
+
},
|
|
182
|
+
"secondary": {
|
|
183
|
+
"tag": "text-white bg-cyan-350 dark:text-base-150 dark:bg-cyan-500"
|
|
184
|
+
},
|
|
185
|
+
"collab": {
|
|
186
|
+
"tag": "text-white bg-collab-500 dark:text-collab-200 dark:bg-collab-800"
|
|
187
|
+
},
|
|
188
|
+
"ai": {
|
|
189
|
+
"tag": "text-white bg-ai-500 dark:text-ai-200 dark:bg-ai-800"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"rounded": {
|
|
193
|
+
"true": "rounded-3xl",
|
|
194
|
+
"false": "rounded-2xs"
|
|
195
|
+
},
|
|
196
|
+
"noPadding": {
|
|
197
|
+
"true": {
|
|
198
|
+
"base": "px-0"
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"noBorder": {
|
|
202
|
+
"true": "ring-0 focus-visible:ring-0"
|
|
203
|
+
},
|
|
204
|
+
"underline": {
|
|
205
|
+
"true": "ring-0 focus-visible:ring-0 border-b border-b-base-300 rounded-none"
|
|
206
|
+
},
|
|
207
|
+
"leading": {
|
|
208
|
+
"true": ""
|
|
209
|
+
},
|
|
210
|
+
"trailing": {
|
|
211
|
+
"true": ""
|
|
212
|
+
},
|
|
213
|
+
"loading": {
|
|
214
|
+
"true": ""
|
|
215
|
+
},
|
|
216
|
+
"highlight": {
|
|
217
|
+
"true": ""
|
|
218
|
+
},
|
|
219
|
+
"type": {
|
|
220
|
+
"file": "file:me-1.5 file:text-base-500 file:outline-none"
|
|
221
|
+
},
|
|
222
|
+
"addNew": {
|
|
223
|
+
"true": {
|
|
224
|
+
"group": "p-0 isolate -m-px",
|
|
225
|
+
"item": "before:rounded-none text-base-master dark:text-base-150 before:bg-blue-200 dark:before:bg-blue-800 data-highlighted:text-base-900 dark:data-highlighted:text-base-200 data-highlighted:before:bg-blue-200 dark:data-highlighted:before:bg-blue-800 data-[state=checked]:text-base-900 dark:data-[state=checked]:text-base-200 data-[state=checked]:before:bg-blue-200 dark:data-[state=checked]:before:bg-blue-800",
|
|
226
|
+
"itemLabel": "flex flex-row flex-nowrap items-center justify-start gap-2",
|
|
227
|
+
"itemLeadingIcon": "size-5 rounded-full text-white dark:text-base-150 bg-blue-500 dark:bg-blue-600 group-data-highlighted:text-white dark:group-data-highlighted:text-base-150 group-data-highlighted:bg-blue-500 dark:group-data-highlighted:bg-blue-600 group-data-[state=checked]:text-white dark:group-data-[state=checked]:text-base-150 group-data-[state=checked]:bg-blue-500 dark:group-data-[state=checked]:bg-blue-600"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"multiple": {
|
|
231
|
+
"true": {
|
|
232
|
+
"root": "flex-wrap",
|
|
233
|
+
"base": "py-1.5 ps-1.5 pe-[39px]",
|
|
234
|
+
"tagsInput": "w-2/5 border-0 bg-transparent ps-1.5 pe-3 py-0 placeholder:text-base-400 dark:placeholder:text-base-300 focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 focus:ring-0 focus-visible:ring-0"
|
|
235
|
+
},
|
|
236
|
+
"false": {
|
|
237
|
+
"base": "px-3 placeholder:text-base-400 dark:placeholder:text-base-300 focus:outline-none disabled:cursor-not-allowed disabled:opacity-75"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"compoundVariants": [
|
|
242
|
+
{
|
|
243
|
+
"color": "default" as typeof color[number],
|
|
244
|
+
"multiple": true,
|
|
245
|
+
"class": "has-focus-visible:ring-1 has-focus-visible:ring-base-900 dark:has-focus-visible:ring-base-700"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"color": "danger" as typeof color[number],
|
|
249
|
+
"multiple": true,
|
|
250
|
+
"class": "has-focus-visible:ring-1 has-focus-visible:ring-red-500 dark:has-focus-visible:ring-red-600"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"color": "success" as typeof color[number],
|
|
254
|
+
"multiple": true,
|
|
255
|
+
"class": "has-focus-visible:ring-1 has-focus-visible:ring-green-500 dark:has-focus-visible:ring-green-600"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"color": "warning" as typeof color[number],
|
|
259
|
+
"multiple": true,
|
|
260
|
+
"class": "has-focus-visible:ring-1 has-focus-visible:ring-orange-500 dark:has-focus-visible:ring-orange-600"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"color": "primary" as typeof color[number],
|
|
264
|
+
"multiple": true,
|
|
265
|
+
"class": "has-focus-visible:ring-1 has-focus-visible:ring-blue-500 dark:has-focus-visible:ring-blue-600"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"color": "secondary" as typeof color[number],
|
|
269
|
+
"multiple": true,
|
|
270
|
+
"class": "has-focus-visible:ring-1 has-focus-visible:ring-cyan-500 dark:has-focus-visible:ring-cyan-600"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"color": "collab" as typeof color[number],
|
|
274
|
+
"multiple": true,
|
|
275
|
+
"class": "has-focus-visible:ring-1 has-focus-visible:ring-collab-500 dark:has-focus-visible:ring-collab-600"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"color": "ai" as typeof color[number],
|
|
279
|
+
"multiple": true,
|
|
280
|
+
"class": "has-focus-visible:ring-1 has-focus-visible:ring-ai-500 dark:has-focus-visible:ring-ai-600"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"size": "xs" as typeof size[number],
|
|
284
|
+
"multiple": true,
|
|
285
|
+
"class": "min-h-xl2 h-auto"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"size": "sm" as typeof size[number],
|
|
289
|
+
"multiple": true,
|
|
290
|
+
"class": "min-h-8 h-auto"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"size": "md" as typeof size[number],
|
|
294
|
+
"multiple": true,
|
|
295
|
+
"class": "min-h-10 h-auto"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"size": "lg" as typeof size[number],
|
|
299
|
+
"multiple": true,
|
|
300
|
+
"class": "min-h-12 h-auto"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"color": "default" as typeof color[number],
|
|
304
|
+
"noBorder": false,
|
|
305
|
+
"underline": false,
|
|
306
|
+
"class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-base-900 dark:focus-visible:ring-base-350"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"color": "default" as typeof color[number],
|
|
310
|
+
"highlight": true,
|
|
311
|
+
"noBorder": false,
|
|
312
|
+
"underline": false,
|
|
313
|
+
"class": "ring ring-inset ring-base-900 dark:ring-base-350"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"color": "default" as typeof color[number],
|
|
317
|
+
"noBorder": false,
|
|
318
|
+
"underline": true,
|
|
319
|
+
"class": "focus-visible:border-base-900 dark:focus-visible:border-b-base-350"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"color": "default" as typeof color[number],
|
|
323
|
+
"highlight": true,
|
|
324
|
+
"noBorder": false,
|
|
325
|
+
"underline": true,
|
|
326
|
+
"class": "border-b-base-900 dark:border-b-base-350"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"color": "danger" as typeof color[number],
|
|
330
|
+
"noBorder": false,
|
|
331
|
+
"underline": false,
|
|
332
|
+
"class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-red-500 dark:focus-visible:ring-red-600"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"color": "danger" as typeof color[number],
|
|
336
|
+
"highlight": true,
|
|
337
|
+
"noBorder": false,
|
|
338
|
+
"underline": false,
|
|
339
|
+
"class": "ring ring-inset ring-red-500 dark:ring-red-600"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"color": "danger" as typeof color[number],
|
|
343
|
+
"noBorder": false,
|
|
344
|
+
"underline": true,
|
|
345
|
+
"class": "focus-visible:border-b-red-500 dark:focus-visible:border-b-red-600"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"color": "danger" as typeof color[number],
|
|
349
|
+
"highlight": true,
|
|
350
|
+
"noBorder": false,
|
|
351
|
+
"underline": true,
|
|
352
|
+
"class": "border-b-red-500 dark:border-b-red-600"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"color": "success" as typeof color[number],
|
|
356
|
+
"noBorder": false,
|
|
357
|
+
"underline": false,
|
|
358
|
+
"class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-green-500 dark:focus-visible:ring-green-600"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"color": "success" as typeof color[number],
|
|
362
|
+
"highlight": true,
|
|
363
|
+
"noBorder": false,
|
|
364
|
+
"underline": false,
|
|
365
|
+
"class": "ring ring-inset ring-green-500 dark:ring-green-600"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"color": "success" as typeof color[number],
|
|
369
|
+
"noBorder": false,
|
|
370
|
+
"underline": true,
|
|
371
|
+
"class": "focus-visible:border-b-green-500 dark:focus-visible:border-b-green-600"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"color": "success" as typeof color[number],
|
|
375
|
+
"highlight": true,
|
|
376
|
+
"noBorder": false,
|
|
377
|
+
"underline": true,
|
|
378
|
+
"class": "border-b-green-500 dark:border-b-green-600"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"color": "warning" as typeof color[number],
|
|
382
|
+
"noBorder": false,
|
|
383
|
+
"underline": false,
|
|
384
|
+
"class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-orange-500 dark:focus-visible:ring-orange-600"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"color": "warning" as typeof color[number],
|
|
388
|
+
"highlight": true,
|
|
389
|
+
"noBorder": false,
|
|
390
|
+
"underline": false,
|
|
391
|
+
"class": "ring ring-inset ring-orange-500 dark:ring-orange-600"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"color": "warning" as typeof color[number],
|
|
395
|
+
"noBorder": false,
|
|
396
|
+
"underline": true,
|
|
397
|
+
"class": "focus-visible:border-b-orange-500 dark:focus-visible:border-b-orange-600"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"color": "warning" as typeof color[number],
|
|
401
|
+
"highlight": true,
|
|
402
|
+
"noBorder": false,
|
|
403
|
+
"underline": true,
|
|
404
|
+
"class": "border-b-orange-500 dark:border-b-orange-600"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"color": "primary" as typeof color[number],
|
|
408
|
+
"noBorder": false,
|
|
409
|
+
"underline": false,
|
|
410
|
+
"class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-blue-500 dark:focus-visible:ring-blue-600"
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"color": "primary" as typeof color[number],
|
|
414
|
+
"highlight": true,
|
|
415
|
+
"noBorder": false,
|
|
416
|
+
"underline": false,
|
|
417
|
+
"class": "ring ring-inset ring-blue-500 dark:ring-blue-600"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"color": "primary" as typeof color[number],
|
|
421
|
+
"noBorder": false,
|
|
422
|
+
"underline": true,
|
|
423
|
+
"class": "focus-visible:border-b-blue-500 dark:focus-visible:border-b-blue-600"
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"color": "primary" as typeof color[number],
|
|
427
|
+
"highlight": true,
|
|
428
|
+
"noBorder": false,
|
|
429
|
+
"underline": true,
|
|
430
|
+
"class": "border-b-blue-500 dark:border-b-blue-600"
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"color": "secondary" as typeof color[number],
|
|
434
|
+
"noBorder": false,
|
|
435
|
+
"underline": false,
|
|
436
|
+
"class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-cyan-350 dark:focus-visible:ring-cyan-500"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"color": "secondary" as typeof color[number],
|
|
440
|
+
"highlight": true,
|
|
441
|
+
"noBorder": false,
|
|
442
|
+
"underline": false,
|
|
443
|
+
"class": "ring ring-inset ring-cyan-350 dark:ring-cyan-500"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"color": "secondary" as typeof color[number],
|
|
447
|
+
"noBorder": false,
|
|
448
|
+
"underline": true,
|
|
449
|
+
"class": "focus-visible:border-b-cyan-350 dark:focus-visible:border-b-cyan-500"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"color": "secondary" as typeof color[number],
|
|
453
|
+
"highlight": true,
|
|
454
|
+
"noBorder": false,
|
|
455
|
+
"underline": true,
|
|
456
|
+
"class": "border-b-cyan-350 dark:border-b-cyan-500"
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"color": "collab" as typeof color[number],
|
|
460
|
+
"noBorder": false,
|
|
461
|
+
"underline": false,
|
|
462
|
+
"class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-collab-500 dark:focus-visible:ring-collab-600"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"color": "collab" as typeof color[number],
|
|
466
|
+
"highlight": true,
|
|
467
|
+
"noBorder": false,
|
|
468
|
+
"underline": false,
|
|
469
|
+
"class": "ring ring-inset ring-collab-500 dark:ring-collab-600"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"color": "collab" as typeof color[number],
|
|
473
|
+
"noBorder": false,
|
|
474
|
+
"underline": true,
|
|
475
|
+
"class": "focus-visible:border-b-collab-500 dark:focus-visible:border-b-collab-600"
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"color": "collab" as typeof color[number],
|
|
479
|
+
"highlight": true,
|
|
480
|
+
"noBorder": false,
|
|
481
|
+
"underline": true,
|
|
482
|
+
"class": "border-b-collab-500 dark:border-b-collab-600"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"color": "ai" as typeof color[number],
|
|
486
|
+
"noBorder": false,
|
|
487
|
+
"underline": false,
|
|
488
|
+
"class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-ai-500 dark:focus-visible:ring-ai-600"
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"color": "ai" as typeof color[number],
|
|
492
|
+
"highlight": true,
|
|
493
|
+
"noBorder": false,
|
|
494
|
+
"underline": false,
|
|
495
|
+
"class": "ring ring-inset ring-ai-500 dark:ring-ai-600"
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"color": "ai" as typeof color[number],
|
|
499
|
+
"noBorder": false,
|
|
500
|
+
"underline": true,
|
|
501
|
+
"class": "focus-visible:border-b-ai-500 dark:focus-visible:border-b-ai-600"
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"color": "ai" as typeof color[number],
|
|
505
|
+
"highlight": true,
|
|
506
|
+
"noBorder": false,
|
|
507
|
+
"underline": true,
|
|
508
|
+
"class": "border-b-ai-500 dark:border-b-ai-600"
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"type": "file" as typeof type[number],
|
|
512
|
+
"size": "xs" as typeof size[number],
|
|
513
|
+
"class": "py-1.5"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"type": "file" as typeof type[number],
|
|
517
|
+
"size": "sm" as typeof size[number],
|
|
518
|
+
"class": "py-2.5"
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"type": "file" as typeof type[number],
|
|
522
|
+
"size": "md" as typeof size[number],
|
|
523
|
+
"class": "py-3"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"type": "file" as typeof type[number],
|
|
527
|
+
"size": "lg" as typeof size[number],
|
|
528
|
+
"class": "py-4"
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"leading": true,
|
|
532
|
+
"size": "xs" as typeof size[number],
|
|
533
|
+
"class": "ps-7"
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"leading": true,
|
|
537
|
+
"size": "sm" as typeof size[number],
|
|
538
|
+
"class": "ps-8"
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
"leading": true,
|
|
542
|
+
"size": "md" as typeof size[number],
|
|
543
|
+
"class": "ps-[39px]"
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"leading": true,
|
|
547
|
+
"size": "lg" as typeof size[number],
|
|
548
|
+
"class": "ps-[42px]"
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
"trailing": true,
|
|
552
|
+
"size": "xs" as typeof size[number],
|
|
553
|
+
"class": "pe-7"
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"trailing": true,
|
|
557
|
+
"size": "sm" as typeof size[number],
|
|
558
|
+
"class": "pe-8"
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"trailing": true,
|
|
562
|
+
"size": "md" as typeof size[number],
|
|
563
|
+
"class": "pe-[39px]"
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
"trailing": true,
|
|
567
|
+
"size": "lg" as typeof size[number],
|
|
568
|
+
"class": "pe-[39px]"
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
"loading": true,
|
|
572
|
+
"leading": true,
|
|
573
|
+
"class": {
|
|
574
|
+
"leadingIcon": "size-[21px]"
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"loading": true,
|
|
579
|
+
"leading": false,
|
|
580
|
+
"trailing": true,
|
|
581
|
+
"class": {
|
|
582
|
+
"trailingIcon": "size-[21px]"
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
],
|
|
586
|
+
"defaultVariants": {
|
|
587
|
+
"size": "md" as typeof size[number],
|
|
588
|
+
"color": "primary" as typeof color[number],
|
|
589
|
+
"tagColor": "primary" as typeof tagColor[number]
|
|
590
|
+
}
|
|
591
|
+
}
|
package/.nuxt/b24ui/input.ts
CHANGED
|
@@ -39,7 +39,7 @@ const type = [
|
|
|
39
39
|
export default {
|
|
40
40
|
"slots": {
|
|
41
41
|
"root": "relative inline-flex items-center w-full",
|
|
42
|
-
"base": "w-full py-0 border-0 focus:outline-none disabled:cursor-not-allowed disabled:bg-base-30/37 disabled:resize-none disabled:text-base-500 dark:disabled:bg-base-900/37 dark:disabled:text-base-800 appearance-none transition duration-300 ease-linear ring ring-inset ring-base-300 dark:ring-base-800 text-base-master bg-white placeholder:text-base-400 hover:text-base-900 focus:text-base-900 active:text-base-900 dark:text-base-150 dark:bg-transparent dark:placeholder:text-base-300 dark:hover:text-base-350 dark:focus:text-base-350 dark:active:text-base-350 font-b24-primary font-regular text-md leading-none align-middle text-ellipsis whitespace-nowrap",
|
|
42
|
+
"base": "px-3 w-full py-0 border-0 focus:outline-none disabled:cursor-not-allowed disabled:bg-base-30/37 disabled:resize-none disabled:text-base-500 dark:disabled:bg-base-900/37 dark:disabled:text-base-800 appearance-none transition duration-300 ease-linear ring ring-inset ring-base-300 dark:ring-base-800 text-base-master bg-white placeholder:text-base-400 hover:text-base-900 focus:text-base-900 active:text-base-900 dark:text-base-150 dark:bg-transparent dark:placeholder:text-base-300 dark:hover:text-base-350 dark:focus:text-base-350 dark:active:text-base-350 font-b24-primary font-regular text-md leading-none align-middle text-ellipsis whitespace-nowrap",
|
|
43
43
|
"leading": "absolute inset-y-0 start-0 flex items-center",
|
|
44
44
|
"leadingIcon": "shrink-0 text-base-400",
|
|
45
45
|
"leadingAvatar": "shrink-0",
|
|
@@ -64,7 +64,7 @@ export default {
|
|
|
64
64
|
},
|
|
65
65
|
"size": {
|
|
66
66
|
"xs": {
|
|
67
|
-
"base": "
|
|
67
|
+
"base": "h-xl2 gap-1",
|
|
68
68
|
"leading": "px-1",
|
|
69
69
|
"trailing": "px-1",
|
|
70
70
|
"leadingIcon": "size-lg2",
|
|
@@ -72,7 +72,7 @@ export default {
|
|
|
72
72
|
"trailingIcon": "size-lg2"
|
|
73
73
|
},
|
|
74
74
|
"sm": {
|
|
75
|
-
"base": "
|
|
75
|
+
"base": "h-8 gap-1.5",
|
|
76
76
|
"leading": "px-1.5",
|
|
77
77
|
"trailing": "px-1.5",
|
|
78
78
|
"leadingIcon": "size-lg2",
|
|
@@ -80,7 +80,7 @@ export default {
|
|
|
80
80
|
"trailingIcon": "size-lg2"
|
|
81
81
|
},
|
|
82
82
|
"md": {
|
|
83
|
-
"base": "
|
|
83
|
+
"base": "h-10 gap-1.5",
|
|
84
84
|
"leading": "px-2",
|
|
85
85
|
"trailing": "px-2",
|
|
86
86
|
"leadingIcon": "size-[24px]",
|
|
@@ -88,7 +88,7 @@ export default {
|
|
|
88
88
|
"trailingIcon": "size-[24px]"
|
|
89
89
|
},
|
|
90
90
|
"lg": {
|
|
91
|
-
"base": "
|
|
91
|
+
"base": "h-12 gap-2",
|
|
92
92
|
"leading": "px-2",
|
|
93
93
|
"trailing": "px-2",
|
|
94
94
|
"leadingIcon": "size-[24px]",
|