@bitrix24/b24ui-nuxt 0.4.10 → 0.5.0

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 (55) hide show
  1. package/.nuxt/b24ui/collapsible.ts +6 -0
  2. package/.nuxt/b24ui/index.ts +2 -0
  3. package/.nuxt/b24ui/navigation-menu.ts +312 -0
  4. package/.nuxt/b24ui/sidebar-body.ts +1 -1
  5. package/.nuxt/b24ui/sidebar-footer.ts +1 -1
  6. package/.nuxt/b24ui/sidebar-header.ts +1 -1
  7. package/.nuxt/b24ui/sidebar-heading.ts +1 -1
  8. package/.nuxt/b24ui/sidebar-section.ts +1 -1
  9. package/cli/package.json +1 -1
  10. package/dist/meta.cjs +9778 -588
  11. package/dist/meta.d.cts +9778 -588
  12. package/dist/meta.d.mts +9778 -588
  13. package/dist/meta.d.ts +9778 -588
  14. package/dist/meta.mjs +9778 -588
  15. package/dist/module.cjs +1 -1
  16. package/dist/module.json +1 -1
  17. package/dist/module.mjs +1 -1
  18. package/dist/runtime/components/Collapsible.vue +56 -0
  19. package/dist/runtime/components/DropdownMenu.vue +3 -1
  20. package/dist/runtime/components/Form.vue +21 -1
  21. package/dist/runtime/components/FormField.vue +5 -0
  22. package/dist/runtime/components/Navbar.vue +1 -2
  23. package/dist/runtime/components/NavbarDivider.vue +1 -2
  24. package/dist/runtime/components/NavbarSection.vue +1 -2
  25. package/dist/runtime/components/NavbarSpacer.vue +1 -2
  26. package/dist/runtime/components/NavigationMenu.vue +345 -0
  27. package/dist/runtime/components/Sidebar.vue +1 -2
  28. package/dist/runtime/components/SidebarFooter.vue +1 -2
  29. package/dist/runtime/components/SidebarHeader.vue +1 -2
  30. package/dist/runtime/components/SidebarHeading.vue +1 -2
  31. package/dist/runtime/components/SidebarLayout.vue +34 -8
  32. package/dist/runtime/components/SidebarSection.vue +1 -2
  33. package/dist/runtime/components/SidebarSpacer.vue +1 -2
  34. package/dist/runtime/components/StackedLayout.vue +1 -3
  35. package/dist/runtime/composables/defineLocale.js +1 -0
  36. package/dist/runtime/composables/defineShortcuts.js +1 -0
  37. package/dist/runtime/composables/useKbd.js +1 -1
  38. package/dist/runtime/composables/useLocale.js +2 -2
  39. package/dist/runtime/composables/useOverlay.js +1 -1
  40. package/dist/runtime/index.css +1 -1
  41. package/dist/runtime/types/form.d.ts +1 -3
  42. package/dist/runtime/types/index.d.ts +2 -0
  43. package/dist/runtime/types/index.js +2 -0
  44. package/dist/runtime/utils/form.d.ts +0 -4
  45. package/dist/runtime/utils/form.js +2 -47
  46. package/dist/runtime/utils/link.d.ts +8 -8
  47. package/dist/runtime/utils/tv.js +1 -1
  48. package/dist/runtime/vue/stubs.d.ts +1 -1
  49. package/dist/shared/{b24ui-nuxt._rviRWFf.mjs → b24ui-nuxt.Bj4fKDSa.mjs} +375 -4
  50. package/dist/shared/{b24ui-nuxt.CY35QViH.cjs → b24ui-nuxt.DHbGsmbj.cjs} +375 -4
  51. package/dist/unplugin.cjs +1 -1
  52. package/dist/unplugin.mjs +1 -1
  53. package/dist/vite.cjs +1 -1
  54. package/dist/vite.mjs +1 -1
  55. package/package.json +6 -6
@@ -0,0 +1,6 @@
1
+ export default {
2
+ "slots": {
3
+ "root": "",
4
+ "content": "motion-safe:data-[state=open]:animate-[collapsible-down_200ms_ease-out] motion-safe:data-[state=closed]:animate-[collapsible-up_200ms_ease-out] overflow-hidden"
5
+ }
6
+ }
@@ -8,6 +8,7 @@ export { default as buttonGroup } from './button-group'
8
8
  export { default as calendar } from './calendar'
9
9
  export { default as checkbox } from './checkbox'
10
10
  export { default as chip } from './chip'
11
+ export { default as collapsible } from './collapsible'
11
12
  export { default as container } from './container'
12
13
  export { default as countdown } from './countdown'
13
14
  export { default as descriptionList } from './description-list'
@@ -24,6 +25,7 @@ export { default as navbar } from './navbar'
24
25
  export { default as navbarDivider } from './navbar-divider'
25
26
  export { default as navbarSection } from './navbar-section'
26
27
  export { default as navbarSpacer } from './navbar-spacer'
28
+ export { default as navigationMenu } from './navigation-menu'
27
29
  export { default as popover } from './popover'
28
30
  export { default as progress } from './progress'
29
31
  export { default as radioGroup } from './radio-group'
@@ -0,0 +1,312 @@
1
+ const color = [
2
+ "default",
3
+ "danger",
4
+ "success",
5
+ "warning",
6
+ "primary",
7
+ "secondary",
8
+ "collab",
9
+ "ai"
10
+ ] as const
11
+
12
+ const highlightColor = [
13
+ "default",
14
+ "danger",
15
+ "success",
16
+ "warning",
17
+ "primary",
18
+ "secondary",
19
+ "collab",
20
+ "ai"
21
+ ] as const
22
+
23
+ const variant = [
24
+ "pill",
25
+ "link"
26
+ ] as const
27
+
28
+ const orientation = [
29
+ "horizontal",
30
+ "vertical"
31
+ ] as const
32
+
33
+ const contentOrientation = [
34
+ "horizontal",
35
+ "vertical"
36
+ ] as const
37
+
38
+ export default {
39
+ "slots": {
40
+ "root": "relative flex [&>div]:min-w-0 font-b24-secondary",
41
+ "list": "isolate min-w-0",
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",
43
+ "item": "min-w-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-5",
46
+ "linkLeadingAvatar": "shrink-0",
47
+ "linkLeadingAvatarSize": "2xs",
48
+ "linkTrailing": "ms-auto inline-flex gap-1.5 items-center",
49
+ "linkTrailingBadge": "shrink-0",
50
+ "linkTrailingBadgeSize": "sm",
51
+ "linkTrailingIcon": "text-base-600 size-5 transform shrink-0 group-data-[state=open]:rotate-180 transition-transform duration-200",
52
+ "linkLabel": "truncate",
53
+ "linkLabelExternalIcon": "inline-block h-6 w-3 align-top text-base-500 dark:text-base-700",
54
+ "childList": "",
55
+ "childItem": "",
56
+ "childLink": "group size-full px-3 py-2 flex items-start gap-2 text-start",
57
+ "childLinkWrapper": "flex flex-col items-start",
58
+ "childLinkIcon": "size-5 shrink-0",
59
+ "childLinkLabel": "font-semibold text-sm relative inline-flex",
60
+ "childLinkLabelExternalIcon": "inline-block h-6 w-3 align-top text-base-500 dark:text-base-700",
61
+ "childLinkDescription": "text-sm text-(--ui-text-muted)",
62
+ "separator": "px-2 h-px bg-(--ui-border)",
63
+ "viewportWrapper": "absolute top-full left-0 flex w-full",
64
+ "viewport": "relative overflow-hidden w-full bg-(--ui-bg) shadow-lg rounded-md ring ring-(--ui-border) 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]",
65
+ "content": "absolute top-0 left-0 w-full",
66
+ "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",
67
+ "arrow": "relative top-[50%] size-2.5 rotate-45 border border-(--ui-border) bg-(--ui-bg) z-[1] rounded-md"
68
+ },
69
+ "variants": {
70
+ "color": {
71
+ "default": {
72
+ "link": "focus-visible:before:ring-base-300 dark:focus-visible:before:ring-base-800",
73
+ "childLink": "focus-visible:outline-base-300 dark:focus-visible:outline-base-800"
74
+ },
75
+ "danger": "",
76
+ "success": "",
77
+ "warning": "",
78
+ "primary": "",
79
+ "secondary": "",
80
+ "collab": "",
81
+ "ai": ""
82
+ },
83
+ "highlightColor": {
84
+ "default": "",
85
+ "danger": "",
86
+ "success": "",
87
+ "warning": "",
88
+ "primary": "",
89
+ "secondary": "",
90
+ "collab": "",
91
+ "ai": ""
92
+ },
93
+ "variant": {
94
+ "pill": {
95
+ "link": "hover:before:bg-base-250/80 dark:hover:before:bg-white/10"
96
+ },
97
+ "link": ""
98
+ },
99
+ "orientation": {
100
+ "horizontal": {
101
+ "root": "items-center justify-between",
102
+ "list": "flex items-center",
103
+ "item": "py-2",
104
+ "link": "px-2.5 py-1.5 before:inset-x-px before:inset-y-0",
105
+ "childList": "grid p-2"
106
+ },
107
+ "vertical": {
108
+ "root": "flex-col w-full",
109
+ "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"
110
+ }
111
+ },
112
+ "contentOrientation": {
113
+ "horizontal": {
114
+ "viewport": "",
115
+ "viewportWrapper": "justify-center",
116
+ "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]"
117
+ },
118
+ "vertical": {
119
+ "viewport": "sm:w-(--reka-navigation-menu-viewport-width) left-(--reka-navigation-menu-viewport-left)",
120
+ "content": ""
121
+ }
122
+ },
123
+ "active": {
124
+ "true": {
125
+ "childLink": "bg-(--ui-bg-elevated) text-(--ui-text-highlighted)",
126
+ "childLinkIcon": "text-(--ui-text)"
127
+ },
128
+ "false": {
129
+ "link": "text-base-900 dark:text-base-200",
130
+ "linkLeadingIcon": "text-base-500 dark:text-base-700",
131
+ "childLink": "hover:bg-(--ui-bg-elevated)/50 text-(--ui-text) hover:text-(--ui-text-highlighted) transition-colors",
132
+ "childLinkIcon": "text-base-500 dark:text-base-700 group-hover:text-(--ui-text) transition-colors"
133
+ }
134
+ },
135
+ "disabled": {
136
+ "true": {
137
+ "link": "cursor-not-allowed opacity-75"
138
+ }
139
+ },
140
+ "highlight": {
141
+ "true": ""
142
+ },
143
+ "level": {
144
+ "true": ""
145
+ },
146
+ "collapsed": {
147
+ "true": ""
148
+ }
149
+ },
150
+ "compoundVariants": [
151
+ {
152
+ "orientation": "horizontal" as typeof orientation[number],
153
+ "contentOrientation": "horizontal" as typeof contentOrientation[number],
154
+ "class": {
155
+ "childList": "grid-cols-2 gap-2"
156
+ }
157
+ },
158
+ {
159
+ "orientation": "horizontal" as typeof orientation[number],
160
+ "contentOrientation": "vertical" as typeof contentOrientation[number],
161
+ "class": {
162
+ "childList": "gap-1",
163
+ "content": "w-60"
164
+ }
165
+ },
166
+ {
167
+ "orientation": "horizontal" as typeof orientation[number],
168
+ "highlight": true,
169
+ "class": {
170
+ "link": [
171
+ "after:absolute after:-bottom-2 after:inset-x-2.5 after:block after:h-px after:rounded-full",
172
+ "after:transition-colors"
173
+ ]
174
+ }
175
+ },
176
+ {
177
+ "orientation": "vertical" as typeof orientation[number],
178
+ "highlight": true,
179
+ "level": true,
180
+ "class": {
181
+ "link": [
182
+ "after:absolute after:-start-1.5 after:inset-y-0.5 after:block after:w-px after:rounded-full",
183
+ "after:transition-colors"
184
+ ]
185
+ }
186
+ },
187
+ {
188
+ "disabled": false,
189
+ "active": false,
190
+ "variant": "pill" as typeof variant[number],
191
+ "class": {
192
+ "link": "transition-colors before:transition-colors",
193
+ "linkLeadingIcon": "group-hover:text-(--ui-text) transition-colors"
194
+ }
195
+ },
196
+ {
197
+ "disabled": false,
198
+ "active": false,
199
+ "variant": "pill" as typeof variant[number],
200
+ "orientation": "horizontal" as typeof orientation[number],
201
+ "class": {
202
+ "link": "data-[state=open]:text-(--ui-text-highlighted)",
203
+ "linkLeadingIcon": "group-data-[state=open]:text-(--ui-text)"
204
+ }
205
+ },
206
+ {
207
+ "disabled": false,
208
+ "variant": "pill" as typeof variant[number],
209
+ "highlight": true,
210
+ "orientation": "horizontal" as typeof orientation[number],
211
+ "class": {
212
+ "link": "data-[state=open]:before:bg-(--ui-bg-elevated)/50"
213
+ }
214
+ },
215
+ {
216
+ "disabled": false,
217
+ "variant": "pill" as typeof variant[number],
218
+ "highlight": false,
219
+ "active": false,
220
+ "orientation": "horizontal" as typeof orientation[number],
221
+ "class": {
222
+ "link": "data-[state=open]:before:bg-(--ui-bg-elevated)/50"
223
+ }
224
+ },
225
+ {
226
+ "color": "default" as typeof color[number],
227
+ "variant": "pill" as typeof variant[number],
228
+ "active": true,
229
+ "class": {
230
+ "linkLeadingIcon": "text-(--ui-text-highlighted) group-data-[state=open]:text-(--ui-text-highlighted)",
231
+ "linkLabel": "text-white dark:text-white bg-base-800 dark:bg-white/35"
232
+ }
233
+ },
234
+ {
235
+ "variant": "pill" as typeof variant[number],
236
+ "active": true,
237
+ "highlight": false,
238
+ "class": {
239
+ "link": "leading-9",
240
+ "linkLabel": "px-3 -ms-3 me-3 rtl:-me-3 rtl:ms-3 font-semibold leading-[1.563rem] text-white dark:text-white bg-base-800 dark:bg-white/35 rounded-2xl"
241
+ }
242
+ },
243
+ {
244
+ "variant": "pill" as typeof variant[number],
245
+ "active": true,
246
+ "highlight": true,
247
+ "class": {
248
+ "link": [
249
+ "hover:before:bg-(--ui-bg-elevated)/50",
250
+ "before:transition-colors"
251
+ ]
252
+ }
253
+ },
254
+ {
255
+ "disabled": false,
256
+ "active": false,
257
+ "variant": "link" as typeof variant[number],
258
+ "class": {
259
+ "link": "hover:text-base-950 dark:hover:text-base-50 transition-colors",
260
+ "linkLeadingIcon": "group-hover:text-(--ui-text) transition-colors"
261
+ }
262
+ },
263
+ {
264
+ "disabled": false,
265
+ "active": false,
266
+ "variant": "link" as typeof variant[number],
267
+ "orientation": "horizontal" as typeof orientation[number],
268
+ "class": {
269
+ "link": "data-[state=open]:text-(--ui-text-highlighted)",
270
+ "linkLeadingIcon": "group-data-[state=open]:text-(--ui-text)"
271
+ }
272
+ },
273
+ {
274
+ "color": "default" as typeof color[number],
275
+ "variant": "link" as typeof variant[number],
276
+ "active": true,
277
+ "class": {
278
+ "link": "text-(--ui-text-highlighted)",
279
+ "linkLeadingIcon": "text-(--ui-text-highlighted) group-data-[state=open]:text-(--ui-text-highlighted)"
280
+ }
281
+ },
282
+ {
283
+ "highlightColor": "default" as typeof highlightColor[number],
284
+ "highlight": true,
285
+ "level": true,
286
+ "active": true,
287
+ "class": {
288
+ "link": "after:bg-(--ui-bg-inverted)"
289
+ }
290
+ },
291
+ {
292
+ "orientation": "vertical" as typeof orientation[number],
293
+ "collapsed": false,
294
+ "class": {
295
+ "childList": "v-1",
296
+ "childItem": "v-2 [&>a]:ps-[44px]"
297
+ }
298
+ },
299
+ {
300
+ "orientation": "vertical" as typeof orientation[number],
301
+ "collapsed": true,
302
+ "class": {
303
+ "link": "px-1.5"
304
+ }
305
+ }
306
+ ],
307
+ "defaultVariants": {
308
+ "color": "default" as typeof color[number],
309
+ "highlightColor": "default" as typeof highlightColor[number],
310
+ "variant": "pill" as typeof variant[number]
311
+ }
312
+ }
@@ -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/cli/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "dependencies": {
8
8
  "citty": "^0.1.6",
9
- "consola": "^3.4.0",
9
+ "consola": "^3.4.2",
10
10
  "pathe": "^2.0.3",
11
11
  "scule": "^1.3.0"
12
12
  }