@bitrix24/b24ui-nuxt 0.4.11 → 0.5.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.
Files changed (44) hide show
  1. package/.nuxt/b24ui/navigation-menu.ts +301 -68
  2. package/.nuxt/b24ui/sidebar-body.ts +1 -1
  3. package/.nuxt/b24ui/sidebar-footer.ts +1 -1
  4. package/.nuxt/b24ui/sidebar-header.ts +1 -1
  5. package/.nuxt/b24ui/sidebar-heading.ts +1 -1
  6. package/.nuxt/b24ui/sidebar-section.ts +1 -1
  7. package/.nuxt/b24ui.css +1 -1
  8. package/README.md +2 -2
  9. package/dist/meta.cjs +6503 -263
  10. package/dist/meta.d.cts +6503 -263
  11. package/dist/meta.d.mts +6503 -263
  12. package/dist/meta.d.ts +6503 -263
  13. package/dist/meta.mjs +6503 -263
  14. package/dist/module.cjs +1 -1
  15. package/dist/module.json +1 -1
  16. package/dist/module.mjs +1 -1
  17. package/dist/runtime/components/DropdownMenu.vue +5 -5
  18. package/dist/runtime/components/Form.vue +21 -1
  19. package/dist/runtime/components/FormField.vue +5 -0
  20. package/dist/runtime/components/InputMenu.vue +3 -3
  21. package/dist/runtime/components/Modal.vue +10 -7
  22. package/dist/runtime/components/NavigationMenu.vue +44 -36
  23. package/dist/runtime/components/Popover.vue +3 -2
  24. package/dist/runtime/components/RadioGroup.vue +2 -2
  25. package/dist/runtime/components/Select.vue +3 -3
  26. package/dist/runtime/components/SelectMenu.vue +3 -3
  27. package/dist/runtime/components/Slideover.vue +10 -7
  28. package/dist/runtime/components/Toast.vue +1 -1
  29. package/dist/runtime/components/Tooltip.vue +3 -2
  30. package/dist/runtime/composables/useComponentIcons.d.ts +2 -2
  31. package/dist/runtime/index.css +1 -1
  32. package/dist/runtime/plugins/colors.d.ts +3 -0
  33. package/dist/runtime/types/form.d.ts +1 -3
  34. package/dist/runtime/utils/form.d.ts +0 -4
  35. package/dist/runtime/utils/form.js +2 -47
  36. package/dist/runtime/utils/link.d.ts +8 -8
  37. package/dist/runtime/vue/stubs.d.ts +1 -1
  38. package/dist/shared/{b24ui-nuxt.CJqO7fYv.mjs → b24ui-nuxt.CBnBA3PE.mjs} +466 -56
  39. package/dist/shared/{b24ui-nuxt.CltBJi1M.cjs → b24ui-nuxt.ClMXHpMM.cjs} +466 -56
  40. package/dist/unplugin.cjs +1 -1
  41. package/dist/unplugin.mjs +1 -1
  42. package/dist/vite.cjs +1 -1
  43. package/dist/vite.mjs +1 -1
  44. package/package.json +11 -11
@@ -1,9 +1,23 @@
1
1
  const color = [
2
- "default"
2
+ "default",
3
+ "danger",
4
+ "success",
5
+ "warning",
6
+ "primary",
7
+ "secondary",
8
+ "collab",
9
+ "ai"
3
10
  ] as const
4
11
 
5
12
  const highlightColor = [
6
- "default"
13
+ "default",
14
+ "danger",
15
+ "success",
16
+ "warning",
17
+ "primary",
18
+ "secondary",
19
+ "collab",
20
+ "ai"
7
21
  ] as const
8
22
 
9
23
  const variant = [
@@ -23,47 +37,85 @@ const contentOrientation = [
23
37
 
24
38
  export default {
25
39
  "slots": {
26
- "root": "relative flex gap-1.5 [&>div]:min-w-0",
40
+ "root": "relative flex [&>div]:min-w-0 font-b24-secondary",
27
41
  "list": "isolate min-w-0",
28
- "label": "w-full flex items-center gap-1.5 font-semibold text-xs/5 text-(--ui-text-highlighted) px-2.5 py-1.5",
42
+ "label": "w-full min-h-6 flex items-center rtl:flex-row-reverse gap-1.5 font-medium text-xs/6 text-base-500 dark:text-base-400 ps-2xl pe-xs rtl:ps-xs rtl:pe-2xl",
29
43
  "item": "min-w-0",
30
- "link": "group relative w-full flex items-center gap-1.5 font-medium text-sm before:absolute before:z-[-1] before:rounded-[calc(var(--ui-radius)*1.5)] focus:outline-none focus-visible:outline-none dark:focus-visible:outline-none focus-visible:before:ring-inset focus-visible:before:ring-2",
31
- "linkLeadingIcon": "shrink-0 size-5",
32
- "linkLeadingAvatar": "shrink-0",
44
+ "link": "group relative cursor-pointer w-full flex items-center gap-1.5 font-normal text-lg leading-9 min-h-9 before:absolute before:z-[-1] focus:outline-none focus-visible:before:rounded-md focus-visible:outline-none dark:focus-visible:outline-none focus-visible:before:ring-inset focus-visible:before:ring-2",
45
+ "linkLeadingIcon": "shrink-0 size-4 -ms-1 rtl:-ms-0 rtl:-me-1",
46
+ "linkLeadingAvatar": "shrink-0 -ms-1 rtl:-ms-0 rtl:-me-1",
33
47
  "linkLeadingAvatarSize": "2xs",
34
- "linkTrailing": "ms-auto inline-flex gap-1.5 items-center",
48
+ "linkTrailing": "inline-flex gap-1.5 items-center",
35
49
  "linkTrailingBadge": "shrink-0",
36
50
  "linkTrailingBadgeSize": "sm",
37
- "linkTrailingIcon": "size-5 transform shrink-0 group-data-[state=open]:rotate-180 transition-transform duration-200",
51
+ "linkTrailingIcon": "text-base-600 size-4 transform shrink-0 group-data-[state=open]:rotate-180 transition-transform duration-200",
38
52
  "linkLabel": "truncate",
39
- "linkLabelExternalIcon": "inline-block size-3 align-top text-(--ui-text-dimmed)",
53
+ "linkLabelWrapper": "flex items-center items-center justify-between rtl:flex-row-reverse gap-1.5",
54
+ "linkLabelExternalIcon": "inline-block h-6 w-3 align-top text-base-500 dark:text-base-700",
40
55
  "childList": "",
41
56
  "childItem": "",
42
- "childLink": "group size-full px-3 py-2 rounded-[calc(var(--ui-radius)*1.5)] flex items-start gap-2 text-start",
57
+ "childLink": "group size-full px-3 py-2 rounded-2xs flex items-start gap-2 text-start",
43
58
  "childLinkWrapper": "flex flex-col items-start",
44
59
  "childLinkIcon": "size-5 shrink-0",
45
60
  "childLinkLabel": "font-semibold text-sm relative inline-flex",
46
- "childLinkLabelExternalIcon": "inline-block size-3 align-top text-(--ui-text-dimmed)",
47
- "childLinkDescription": "text-sm text-(--ui-text-muted)",
48
- "separator": "px-2 h-px bg-(--ui-border)",
61
+ "childLinkLabelExternalIcon": "inline-block h-6 w-3 align-top text-base-500 dark:text-base-700",
62
+ "childLinkDescription": "text-sm text-base-500 dark:text-base-700",
63
+ "separator": "px-2 h-px bg-base-950/10 dark:bg-base-100/20",
49
64
  "viewportWrapper": "absolute top-full left-0 flex w-full",
50
- "viewport": "relative overflow-hidden bg-(--ui-bg) shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-(--ui-border) h-(--reka-navigation-menu-viewport-height) w-full transition-[width,height,left] duration-200 origin-[top_center] data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
65
+ "viewport": "relative overflow-hidden w-full bg-white dark:bg-base-dark shadow-lg rounded-2xs ring ring-base-300 dark:ring-base-800 h-(--reka-navigation-menu-viewport-height) transition-[width,height,left] duration-200 origin-[top_center] motion-safe:data-[state=open]:animate-[scale-in_100ms_ease-out] motion-safe:data-[state=closed]:animate-[scale-out_100ms_ease-in]",
51
66
  "content": "absolute top-0 left-0 w-full",
52
- "indicator": "absolute data-[state=visible]:animate-[fade-in_100ms_ease-out] data-[state=hidden]:animate-[fade-out_100ms_ease-in] data-[state=hidden]:opacity-0 bottom-0 z-[1] w-(--reka-navigation-menu-indicator-size) translate-x-(--reka-navigation-menu-indicator-position) flex h-2.5 items-end justify-center overflow-hidden transition-[translate,width] duration-200",
53
- "arrow": "relative top-[50%] size-2.5 rotate-45 border border-(--ui-border) bg-(--ui-bg) z-[1] rounded-[calc(var(--ui-radius)/2)]"
67
+ "indicator": "absolute motion-safe:data-[state=visible]:animate-[fade-in_100ms_ease-out] motion-safe:data-[state=hidden]:animate-[fade-out_100ms_ease-in] data-[state=hidden]:opacity-0 bottom-0 z-[1] w-(--reka-navigation-menu-indicator-size) h-2.5 translate-x-(--reka-navigation-menu-indicator-position) flex items-end justify-center overflow-hidden transition-[translate,width] duration-200",
68
+ "arrow": "relative top-[50%] size-2.5 rotate-45 border border-base-300 dark:border-base-800 bg-white dark:bg-base-dark z-[1] rounded-3xs"
54
69
  },
55
70
  "variants": {
56
71
  "color": {
57
72
  "default": {
58
- "link": "focus-visible:before:ring-(--ui-border-inverted)",
59
- "childLink": "focus-visible:outline-(--ui-border-inverted)"
73
+ "link": "focus-visible:before:ring-base-300 dark:focus-visible:before:ring-base-800",
74
+ "childLink": "focus-visible:outline-base-300 dark:focus-visible:outline-base-800"
75
+ },
76
+ "danger": {
77
+ "link": "focus-visible:before:ring-red-300 dark:focus-visible:before:ring-red-800",
78
+ "childLink": "focus-visible:outline-red-300 dark:focus-visible:outline-red-800"
79
+ },
80
+ "success": {
81
+ "link": "focus-visible:before:ring-green-300 dark:focus-visible:before:ring-green-800",
82
+ "childLink": "focus-visible:outline-green-300 dark:focus-visible:outline-green-800"
83
+ },
84
+ "warning": {
85
+ "link": "focus-visible:before:ring-orange-300 dark:focus-visible:before:ring-orange-800",
86
+ "childLink": "focus-visible:outline-orange-300 dark:focus-visible:outline-orange-800"
87
+ },
88
+ "primary": {
89
+ "link": "focus-visible:before:ring-blue-300 dark:focus-visible:before:ring-blue-800",
90
+ "childLink": "focus-visible:outline-blue-300 dark:focus-visible:outline-blue-800"
91
+ },
92
+ "secondary": {
93
+ "link": "focus-visible:before:ring-cyan-300 dark:focus-visible:before:ring-cyan-800",
94
+ "childLink": "focus-visible:outline-cyan-300 dark:focus-visible:outline-cyan-800"
95
+ },
96
+ "collab": {
97
+ "link": "focus-visible:before:ring-collab-300 dark:focus-visible:before:ring-collab-800",
98
+ "childLink": "focus-visible:outline-collab-300 dark:focus-visible:outline-collab-800"
99
+ },
100
+ "ai": {
101
+ "link": "focus-visible:before:ring-ai-300 dark:focus-visible:before:ring-ai-800",
102
+ "childLink": "focus-visible:outline-ai-300 dark:focus-visible:outline-ai-800"
60
103
  }
61
104
  },
62
105
  "highlightColor": {
63
- "default": ""
106
+ "default": "",
107
+ "danger": "",
108
+ "success": "",
109
+ "warning": "",
110
+ "primary": "",
111
+ "secondary": "",
112
+ "collab": "",
113
+ "ai": ""
64
114
  },
65
115
  "variant": {
66
- "pill": "",
116
+ "pill": {
117
+ "link": "hover:before:bg-base-250/80 dark:hover:before:bg-white/10"
118
+ },
67
119
  "link": ""
68
120
  },
69
121
  "orientation": {
@@ -75,15 +127,15 @@ export default {
75
127
  "childList": "grid p-2"
76
128
  },
77
129
  "vertical": {
78
- "root": "flex-col",
79
- "link": "flex-row px-2.5 py-1.5 before:inset-y-px before:inset-x-0"
130
+ "root": "flex-col w-full",
131
+ "link": "ps-2xl pe-xs rtl:ps-xs rtl:pe-2xl flex-row rtl:flex-row-reverse before:inset-y-px before:inset-x-0"
80
132
  }
81
133
  },
82
134
  "contentOrientation": {
83
135
  "horizontal": {
84
136
  "viewport": "",
85
137
  "viewportWrapper": "justify-center",
86
- "content": "data-[motion=from-start]:animate-[enter-from-left_200ms_ease] data-[motion=from-end]:animate-[enter-from-right_200ms_ease] data-[motion=to-start]:animate-[exit-to-left_200ms_ease] data-[motion=to-end]:animate-[exit-to-right_200ms_ease]"
138
+ "content": "motion-safe:data-[motion=from-start]:animate-[enter-from-left_200ms_ease] motion-safe:data-[motion=from-end]:animate-[enter-from-right_200ms_ease] motion-safe:data-[motion=to-start]:animate-[exit-to-left_200ms_ease] motion-safe:data-[motion=to-end]:animate-[exit-to-right_200ms_ease]"
87
139
  },
88
140
  "vertical": {
89
141
  "viewport": "sm:w-(--reka-navigation-menu-viewport-width) left-(--reka-navigation-menu-viewport-left)",
@@ -92,20 +144,14 @@ export default {
92
144
  },
93
145
  "active": {
94
146
  "true": {
95
- "childLink": "bg-(--ui-bg-elevated) text-(--ui-text-highlighted)",
96
- "childLinkIcon": "text-(--ui-text)"
147
+ "childLink": "bg-base-250/80 dark:bg-white/10 text-base-950 dark:text-base-50 font-semibold",
148
+ "childLinkIcon": "text-base-950 dark:text-base-50"
97
149
  },
98
150
  "false": {
99
- "link": "text-(--ui-text-muted)",
100
- "linkLeadingIcon": "text-(--ui-text-dimmed)",
101
- "childLink": [
102
- "hover:bg-(--ui-bg-elevated)/50 text-(--ui-text) hover:text-(--ui-text-highlighted)",
103
- "transition-colors"
104
- ],
105
- "childLinkIcon": [
106
- "text-(--ui-text-dimmed) group-hover:text-(--ui-text)",
107
- "transition-colors"
108
- ]
151
+ "link": "text-base-900 dark:text-base-200",
152
+ "linkLeadingIcon": "text-base-500 dark:text-base-700",
153
+ "childLink": "hover:bg-base-250/80 dark:hover:bg-white/10 text-base-500 dark:text-base-700 hover:text-base-950 dark:hover:dark:text-base-50 transition-colors",
154
+ "childLinkIcon": "text-base-500 dark:text-base-700 group-hover:text-base-950 dark:group-hover:text-base-50 transition-colors"
109
155
  }
110
156
  },
111
157
  "disabled": {
@@ -155,7 +201,7 @@ export default {
155
201
  "level": true,
156
202
  "class": {
157
203
  "link": [
158
- "after:absolute after:-start-1.5 after:inset-y-0.5 after:block after:w-px after:rounded-full",
204
+ "after:absolute after:-start-1.5 after:inset-y-0.5 after:block after:w-[7px] after:rounded-full",
159
205
  "after:transition-colors"
160
206
  ]
161
207
  }
@@ -165,14 +211,8 @@ export default {
165
211
  "active": false,
166
212
  "variant": "pill" as typeof variant[number],
167
213
  "class": {
168
- "link": [
169
- "hover:text-(--ui-text-highlighted) hover:before:bg-(--ui-bg-elevated)/50",
170
- "transition-colors before:transition-colors"
171
- ],
172
- "linkLeadingIcon": [
173
- "group-hover:text-(--ui-text)",
174
- "transition-colors"
175
- ]
214
+ "link": "transition-colors before:transition-colors",
215
+ "linkLeadingIcon": "group-hover:text-base-900 dark:group-hover:text-base-200 transition-colors"
176
216
  }
177
217
  },
178
218
  {
@@ -181,8 +221,8 @@ export default {
181
221
  "variant": "pill" as typeof variant[number],
182
222
  "orientation": "horizontal" as typeof orientation[number],
183
223
  "class": {
184
- "link": "data-[state=open]:text-(--ui-text-highlighted)",
185
- "linkLeadingIcon": "group-data-[state=open]:text-(--ui-text)"
224
+ "link": "before:rounded-md data-[state=open]:text-base-950 dark:data-[state=open]:text-base-50",
225
+ "linkLeadingIcon": "group-data-[state=open]:text-base-950 dark:group-data-[state=open]:text-base-50"
186
226
  }
187
227
  },
188
228
  {
@@ -191,7 +231,7 @@ export default {
191
231
  "highlight": true,
192
232
  "orientation": "horizontal" as typeof orientation[number],
193
233
  "class": {
194
- "link": "data-[state=open]:before:bg-(--ui-bg-elevated)/50"
234
+ "link": "data-[state=open]:before:rounded-md data-[state=open]:before:bg-base-250/80 dark:data-[state=open]:before:bg-white/10"
195
235
  }
196
236
  },
197
237
  {
@@ -201,7 +241,7 @@ export default {
201
241
  "active": false,
202
242
  "orientation": "horizontal" as typeof orientation[number],
203
243
  "class": {
204
- "link": "data-[state=open]:before:bg-(--ui-bg-elevated)/50"
244
+ "link": "data-[state=open]:before:bg-base-250/80 dark:data-[state=open]:before:bg-white/10"
205
245
  }
206
246
  },
207
247
  {
@@ -209,8 +249,79 @@ export default {
209
249
  "variant": "pill" as typeof variant[number],
210
250
  "active": true,
211
251
  "class": {
212
- "link": "text-(--ui-text-highlighted)",
213
- "linkLeadingIcon": "text-(--ui-text-highlighted) group-data-[state=open]:text-(--ui-text-highlighted)"
252
+ "linkLeadingIcon": "text-white dark:text-white group-data-[state=open]:text-white dark:group-data-[state=open]:text-white",
253
+ "linkLabel": "font-semibold text-white dark:text-white",
254
+ "linkLabelWrapper": "px-3 -ms-3 rtl:-me-3 rtl:ms-0 leading-[1.563rem] bg-base-800 dark:bg-white/35 rounded-2xl"
255
+ }
256
+ },
257
+ {
258
+ "color": "danger" as typeof color[number],
259
+ "variant": "pill" as typeof variant[number],
260
+ "active": true,
261
+ "class": {
262
+ "linkLeadingIcon": "text-white dark:text-white group-data-[state=open]:text-white dark:group-data-[state=open]:text-white",
263
+ "linkLabel": "font-semibold text-white dark:text-white",
264
+ "linkLabelWrapper": "px-3 -ms-3 rtl:-me-3 rtl:ms-0 leading-[1.563rem] bg-red-800 dark:bg-red-800 rounded-2xl"
265
+ }
266
+ },
267
+ {
268
+ "color": "success" as typeof color[number],
269
+ "variant": "pill" as typeof variant[number],
270
+ "active": true,
271
+ "class": {
272
+ "linkLeadingIcon": "text-white dark:text-white group-data-[state=open]:text-white dark:group-data-[state=open]:text-white",
273
+ "linkLabel": "font-semibold text-white dark:text-white",
274
+ "linkLabelWrapper": "px-3 -ms-3 rtl:-me-3 rtl:ms-0 leading-[1.563rem] bg-green-800 dark:bg-green-800 rounded-2xl"
275
+ }
276
+ },
277
+ {
278
+ "color": "warning" as typeof color[number],
279
+ "variant": "pill" as typeof variant[number],
280
+ "active": true,
281
+ "class": {
282
+ "linkLeadingIcon": "text-white dark:text-white group-data-[state=open]:text-white dark:group-data-[state=open]:text-white",
283
+ "linkLabel": "font-semibold text-white dark:text-white",
284
+ "linkLabelWrapper": "px-3 -ms-3 rtl:-me-3 rtl:ms-0 leading-[1.563rem] bg-orange-800 dark:bg-orange-800 rounded-2xl"
285
+ }
286
+ },
287
+ {
288
+ "color": "primary" as typeof color[number],
289
+ "variant": "pill" as typeof variant[number],
290
+ "active": true,
291
+ "class": {
292
+ "linkLeadingIcon": "text-white dark:text-white group-data-[state=open]:text-white dark:group-data-[state=open]:text-white",
293
+ "linkLabel": "font-semibold text-white dark:text-white",
294
+ "linkLabelWrapper": "px-3 -ms-3 rtl:-me-3 rtl:ms-0 leading-[1.563rem] bg-blue-800 dark:bg-blue-800 rounded-2xl"
295
+ }
296
+ },
297
+ {
298
+ "color": "secondary" as typeof color[number],
299
+ "variant": "pill" as typeof variant[number],
300
+ "active": true,
301
+ "class": {
302
+ "linkLeadingIcon": "text-white dark:text-white group-data-[state=open]:text-white dark:group-data-[state=open]:text-white",
303
+ "linkLabel": "font-semibold text-white dark:text-white",
304
+ "linkLabelWrapper": "px-3 -ms-3 rtl:-me-3 rtl:ms-0 leading-[1.563rem] bg-cyan-800 dark:bg-cyan-800 rounded-2xl"
305
+ }
306
+ },
307
+ {
308
+ "color": "collab" as typeof color[number],
309
+ "variant": "pill" as typeof variant[number],
310
+ "active": true,
311
+ "class": {
312
+ "linkLeadingIcon": "text-white dark:text-white group-data-[state=open]:text-white dark:group-data-[state=open]:text-white",
313
+ "linkLabel": "font-semibold text-white dark:text-white",
314
+ "linkLabelWrapper": "px-3 -ms-3 rtl:-me-3 rtl:ms-0 leading-[1.563rem] bg-collab-800 dark:bg-collab-800 rounded-2xl"
315
+ }
316
+ },
317
+ {
318
+ "color": "ai" as typeof color[number],
319
+ "variant": "pill" as typeof variant[number],
320
+ "active": true,
321
+ "class": {
322
+ "linkLeadingIcon": "text-white dark:text-white group-data-[state=open]:text-white dark:group-data-[state=open]:text-white",
323
+ "linkLabel": "font-semibold text-white dark:text-white",
324
+ "linkLabelWrapper": "px-3 -ms-3 rtl:-me-3 rtl:ms-0 leading-[1.563rem] bg-ai-800 dark:bg-ai-800 rounded-2xl"
214
325
  }
215
326
  },
216
327
  {
@@ -218,7 +329,9 @@ export default {
218
329
  "active": true,
219
330
  "highlight": false,
220
331
  "class": {
221
- "link": "before:bg-(--ui-bg-elevated)"
332
+ "link": "leading-9",
333
+ "linkLabel": "font-semibold text-white dark:text-white",
334
+ "linkLabelWrapper": "px-3 -ms-3 rtl:-me-3 rtl:ms-0 leading-[1.563rem] bg-base-800 dark:bg-white/35 rounded-2xl"
222
335
  }
223
336
  },
224
337
  {
@@ -227,7 +340,7 @@ export default {
227
340
  "highlight": true,
228
341
  "class": {
229
342
  "link": [
230
- "hover:before:bg-(--ui-bg-elevated)/50",
343
+ "hover:before:bg-base-250/80 dark:hover:before:bg-white/10",
231
344
  "before:transition-colors"
232
345
  ]
233
346
  }
@@ -237,14 +350,8 @@ export default {
237
350
  "active": false,
238
351
  "variant": "link" as typeof variant[number],
239
352
  "class": {
240
- "link": [
241
- "hover:text-(--ui-text-highlighted)",
242
- "transition-colors"
243
- ],
244
- "linkLeadingIcon": [
245
- "group-hover:text-(--ui-text)",
246
- "transition-colors"
247
- ]
353
+ "link": "hover:text-base-950 dark:hover:text-base-50 transition-colors",
354
+ "linkLeadingIcon": "group-hover:text-base-950 dark:group-hover:text-base-50 transition-colors"
248
355
  }
249
356
  },
250
357
  {
@@ -253,8 +360,8 @@ export default {
253
360
  "variant": "link" as typeof variant[number],
254
361
  "orientation": "horizontal" as typeof orientation[number],
255
362
  "class": {
256
- "link": "data-[state=open]:text-(--ui-text-highlighted)",
257
- "linkLeadingIcon": "group-data-[state=open]:text-(--ui-text)"
363
+ "link": "data-[state=open]:text-base-950 dark:data-[state=open]:text-base-50",
364
+ "linkLeadingIcon": "group-data-[state=open]:text-base-950 dark:group-data-[state=open]:text-base-50"
258
365
  }
259
366
  },
260
367
  {
@@ -262,8 +369,71 @@ export default {
262
369
  "variant": "link" as typeof variant[number],
263
370
  "active": true,
264
371
  "class": {
265
- "link": "text-(--ui-text-highlighted)",
266
- "linkLeadingIcon": "text-(--ui-text-highlighted) group-data-[state=open]:text-(--ui-text-highlighted)"
372
+ "link": "font-semibold text-base-950 dark:text-base-50",
373
+ "linkLeadingIcon": "text-base-950 group-data-[state=open]:text-base-950 dark:text-base-50 dark:group-data-[state=open]:text-base-50"
374
+ }
375
+ },
376
+ {
377
+ "color": "danger" as typeof color[number],
378
+ "variant": "link" as typeof variant[number],
379
+ "active": true,
380
+ "class": {
381
+ "link": "font-semibold text-red-800 dark:text-red-600",
382
+ "linkLeadingIcon": "text-red-800 group-data-[state=open]:text-red-600 dark:text-red-600 dark:group-data-[state=open]:text-red-600"
383
+ }
384
+ },
385
+ {
386
+ "color": "success" as typeof color[number],
387
+ "variant": "link" as typeof variant[number],
388
+ "active": true,
389
+ "class": {
390
+ "link": "font-semibold text-green-800 dark:text-green-600",
391
+ "linkLeadingIcon": "text-green-800 group-data-[state=open]:text-green-600 dark:text-green-600 dark:group-data-[state=open]:text-green-600"
392
+ }
393
+ },
394
+ {
395
+ "color": "warning" as typeof color[number],
396
+ "variant": "link" as typeof variant[number],
397
+ "active": true,
398
+ "class": {
399
+ "link": "font-semibold text-orange-800 dark:text-orange-600",
400
+ "linkLeadingIcon": "text-orange-800 group-data-[state=open]:text-orange-600 dark:text-orange-600 dark:group-data-[state=open]:text-orange-600"
401
+ }
402
+ },
403
+ {
404
+ "color": "primary" as typeof color[number],
405
+ "variant": "link" as typeof variant[number],
406
+ "active": true,
407
+ "class": {
408
+ "link": "font-semibold text-blue-800 dark:text-blue-600",
409
+ "linkLeadingIcon": "text-blue-800 group-data-[state=open]:text-blue-600 dark:text-blue-600 dark:group-data-[state=open]:text-blue-600"
410
+ }
411
+ },
412
+ {
413
+ "color": "secondary" as typeof color[number],
414
+ "variant": "link" as typeof variant[number],
415
+ "active": true,
416
+ "class": {
417
+ "link": "font-semibold text-cyan-800 dark:text-cyan-600",
418
+ "linkLeadingIcon": "text-cyan-800 group-data-[state=open]:text-cyan-600 dark:text-cyan-600 dark:group-data-[state=open]:text-cyan-600"
419
+ }
420
+ },
421
+ {
422
+ "color": "collab" as typeof color[number],
423
+ "variant": "link" as typeof variant[number],
424
+ "active": true,
425
+ "class": {
426
+ "link": "font-semibold text-collab-800 dark:text-collab-600",
427
+ "linkLeadingIcon": "text-collab-800 group-data-[state=open]:text-collab-600 dark:text-collab-600 dark:group-data-[state=open]:text-collab-600"
428
+ }
429
+ },
430
+ {
431
+ "color": "ai" as typeof color[number],
432
+ "variant": "link" as typeof variant[number],
433
+ "active": true,
434
+ "class": {
435
+ "link": "font-semibold text-ai-800 dark:text-ai-600",
436
+ "linkLeadingIcon": "text-ai-800 group-data-[state=open]:text-ai-600 dark:text-ai-600 dark:group-data-[state=open]:text-ai-600"
267
437
  }
268
438
  },
269
439
  {
@@ -272,15 +442,78 @@ export default {
272
442
  "level": true,
273
443
  "active": true,
274
444
  "class": {
275
- "link": "after:bg-(--ui-bg-inverted)"
445
+ "link": "after:bg-base-500"
446
+ }
447
+ },
448
+ {
449
+ "highlightColor": "danger" as typeof highlightColor[number],
450
+ "highlight": true,
451
+ "level": true,
452
+ "active": true,
453
+ "class": {
454
+ "link": "after:bg-red-500 dark:after:bg-red-600"
455
+ }
456
+ },
457
+ {
458
+ "highlightColor": "success" as typeof highlightColor[number],
459
+ "highlight": true,
460
+ "level": true,
461
+ "active": true,
462
+ "class": {
463
+ "link": "after:bg-green-500 dark:after:bg-green-600"
464
+ }
465
+ },
466
+ {
467
+ "highlightColor": "warning" as typeof highlightColor[number],
468
+ "highlight": true,
469
+ "level": true,
470
+ "active": true,
471
+ "class": {
472
+ "link": "after:bg-orange-500 dark:after:bg-orange-600"
473
+ }
474
+ },
475
+ {
476
+ "highlightColor": "primary" as typeof highlightColor[number],
477
+ "highlight": true,
478
+ "level": true,
479
+ "active": true,
480
+ "class": {
481
+ "link": "after:bg-blue-500 dark:after:bg-blue-600"
482
+ }
483
+ },
484
+ {
485
+ "highlightColor": "secondary" as typeof highlightColor[number],
486
+ "highlight": true,
487
+ "level": true,
488
+ "active": true,
489
+ "class": {
490
+ "link": "after:bg-cyan-500 dark:after:bg-cyan-600"
491
+ }
492
+ },
493
+ {
494
+ "highlightColor": "collab" as typeof highlightColor[number],
495
+ "highlight": true,
496
+ "level": true,
497
+ "active": true,
498
+ "class": {
499
+ "link": "after:bg-collab-500 dark:after:bg-collab-600"
500
+ }
501
+ },
502
+ {
503
+ "highlightColor": "ai" as typeof highlightColor[number],
504
+ "highlight": true,
505
+ "level": true,
506
+ "active": true,
507
+ "class": {
508
+ "link": "after:bg-ai-500 dark:after:bg-ai-600"
276
509
  }
277
510
  },
278
511
  {
279
512
  "orientation": "vertical" as typeof orientation[number],
280
513
  "collapsed": false,
281
514
  "class": {
282
- "childList": "ms-5 border-s border-(--ui-border)",
283
- "childItem": "ps-1.5 -ms-px"
515
+ "childList": "",
516
+ "childItem": "[&>*]:ps-[44px] rtl:[&>*]:pe-[44px]"
284
517
  }
285
518
  },
286
519
  {
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "slots": {
3
- "root": "p-4 flex flex-1 flex-col overflow-y-auto [&>[data-slot=section]+[data-slot=section]]:mt-8"
3
+ "root": "py-4 flex flex-1 flex-col overflow-y-auto [&>[data-slot=section]+[data-slot=section]]:mt-8"
4
4
  },
5
5
  "variants": {
6
6
  "scrollbarThin": {
@@ -1,5 +1,5 @@
1
1
  export default {
2
2
  "slots": {
3
- "root": "p-4 flex flex-col max-lg:hidden [&>[data-slot=section]+[data-slot=section]]:mt-2.5"
3
+ "root": "py-4 flex flex-col max-lg:hidden [&>[data-slot=section]+[data-slot=section]]:mt-2.5"
4
4
  }
5
5
  }
@@ -1,5 +1,5 @@
1
1
  export default {
2
2
  "slots": {
3
- "root": "p-4 flex flex-col [&>[data-slot=section]+[data-slot=section]]:mt-2.5"
3
+ "root": "py-4 flex flex-col [&>[data-slot=section]+[data-slot=section]]:mt-2.5"
4
4
  }
5
5
  }
@@ -1,5 +1,5 @@
1
1
  export default {
2
2
  "slots": {
3
- "root": "mb-1 px-2 text-xs/6 font-medium text-base-500 dark:text-base-400"
3
+ "root": "mb-1 text-xs/6 font-medium text-base-500 dark:text-base-400"
4
4
  }
5
5
  }
@@ -1,5 +1,5 @@
1
1
  export default {
2
2
  "slots": {
3
- "root": "flex flex-col gap-0.5"
3
+ "root": "ps-2xl pe-xs flex flex-col gap-0.5"
4
4
  }
5
5
  }
package/.nuxt/b24ui.css CHANGED
@@ -1,3 +1,3 @@
1
1
  @source "./b24ui";
2
2
 
3
- @theme default static {}
3
+ @theme default {}
package/README.md CHANGED
@@ -39,7 +39,7 @@ export default defineNuxtConfig({
39
39
  2. Import Tailwind CSS and Bitrix24 UI in your CSS:
40
40
 
41
41
  ```css [assets/css/main.css]
42
- @import "tailwindcss" theme(static);
42
+ @import "tailwindcss";
43
43
  @import "@bitrix24/b24ui-nuxt";
44
44
  ```
45
45
 
@@ -85,7 +85,7 @@ app.mount('#app')
85
85
  3. Import Tailwind CSS and Bitrix24 UI in your CSS:
86
86
 
87
87
  ```css [assets/main.css]
88
- @import "tailwindcss" theme(static);
88
+ @import "tailwindcss";
89
89
  @import "@bitrix24/b24ui-nuxt";
90
90
  ```
91
91