@bitrix24/b24ui-nuxt 0.4.9 → 0.4.11

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 (63) hide show
  1. package/.nuxt/b24ui/collapsible.ts +6 -0
  2. package/.nuxt/b24ui/index.ts +15 -0
  3. package/.nuxt/b24ui/navbar-divider.ts +5 -0
  4. package/.nuxt/b24ui/navbar-section.ts +5 -0
  5. package/.nuxt/b24ui/navbar-spacer.ts +5 -0
  6. package/.nuxt/b24ui/navbar.ts +5 -0
  7. package/.nuxt/b24ui/navigation-menu.ts +299 -0
  8. package/.nuxt/b24ui/sidebar-body.ts +15 -0
  9. package/.nuxt/b24ui/sidebar-footer.ts +5 -0
  10. package/.nuxt/b24ui/sidebar-header.ts +5 -0
  11. package/.nuxt/b24ui/sidebar-heading.ts +5 -0
  12. package/.nuxt/b24ui/sidebar-layout.ts +38 -0
  13. package/.nuxt/b24ui/sidebar-section.ts +5 -0
  14. package/.nuxt/b24ui/sidebar-spacer.ts +5 -0
  15. package/.nuxt/b24ui/sidebar.ts +5 -0
  16. package/.nuxt/b24ui/stacked-layout.ts +9 -0
  17. package/cli/package.json +1 -1
  18. package/dist/meta.cjs +10969 -846
  19. package/dist/meta.d.cts +10969 -846
  20. package/dist/meta.d.mts +10969 -846
  21. package/dist/meta.d.ts +10969 -846
  22. package/dist/meta.mjs +10969 -846
  23. package/dist/module.cjs +1 -1
  24. package/dist/module.json +1 -1
  25. package/dist/module.mjs +1 -1
  26. package/dist/runtime/components/Collapsible.vue +56 -0
  27. package/dist/runtime/components/DropdownMenu.vue +2 -0
  28. package/dist/runtime/components/Navbar.vue +43 -0
  29. package/dist/runtime/components/NavbarDivider.vue +42 -0
  30. package/dist/runtime/components/NavbarSection.vue +46 -0
  31. package/dist/runtime/components/NavbarSpacer.vue +42 -0
  32. package/dist/runtime/components/NavigationMenu.vue +340 -0
  33. package/dist/runtime/components/Sidebar.vue +43 -0
  34. package/dist/runtime/components/SidebarBody.vue +49 -0
  35. package/dist/runtime/components/SidebarFooter.vue +42 -0
  36. package/dist/runtime/components/SidebarHeader.vue +42 -0
  37. package/dist/runtime/components/SidebarHeading.vue +42 -0
  38. package/dist/runtime/components/SidebarLayout.vue +157 -0
  39. package/dist/runtime/components/SidebarSection.vue +46 -0
  40. package/dist/runtime/components/SidebarSpacer.vue +42 -0
  41. package/dist/runtime/components/StackedLayout.vue +49 -0
  42. package/dist/runtime/composables/defineLocale.js +1 -0
  43. package/dist/runtime/composables/defineShortcuts.js +1 -0
  44. package/dist/runtime/composables/useComponentIcons.d.ts +2 -2
  45. package/dist/runtime/composables/useKbd.js +1 -1
  46. package/dist/runtime/composables/useLocale.js +2 -2
  47. package/dist/runtime/composables/useOverlay.js +1 -1
  48. package/dist/runtime/index.css +1 -1
  49. package/dist/runtime/plugins/colors.js +2 -5
  50. package/dist/runtime/types/index.d.ts +15 -0
  51. package/dist/runtime/types/index.js +15 -0
  52. package/dist/runtime/utils/link.d.ts +7 -7
  53. package/dist/runtime/utils/tv.js +1 -1
  54. package/dist/runtime/vue/plugins/head.js +3 -0
  55. package/dist/runtime/vue/stubs.d.ts +1 -2
  56. package/dist/runtime/vue/stubs.js +1 -2
  57. package/dist/shared/{b24ui-nuxt.D6rkGFKm.mjs → b24ui-nuxt.CJqO7fYv.mjs} +495 -0
  58. package/dist/shared/{b24ui-nuxt.CH0xlXgy.cjs → b24ui-nuxt.CltBJi1M.cjs} +495 -0
  59. package/dist/unplugin.cjs +6 -2
  60. package/dist/unplugin.mjs +6 -2
  61. package/dist/vite.cjs +1 -1
  62. package/dist/vite.mjs +1 -1
  63. package/package.json +5 -5
@@ -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'
@@ -20,6 +21,11 @@ export { default as inputNumber } from './input-number'
20
21
  export { default as kbd } from './kbd'
21
22
  export { default as link } from './link'
22
23
  export { default as modal } from './modal'
24
+ export { default as navbar } from './navbar'
25
+ export { default as navbarDivider } from './navbar-divider'
26
+ export { default as navbarSection } from './navbar-section'
27
+ export { default as navbarSpacer } from './navbar-spacer'
28
+ export { default as navigationMenu } from './navigation-menu'
23
29
  export { default as popover } from './popover'
24
30
  export { default as progress } from './progress'
25
31
  export { default as radioGroup } from './radio-group'
@@ -27,8 +33,17 @@ export { default as range } from './range'
27
33
  export { default as select } from './select'
28
34
  export { default as selectMenu } from './select-menu'
29
35
  export { default as separator } from './separator'
36
+ export { default as sidebar } from './sidebar'
37
+ export { default as sidebarBody } from './sidebar-body'
38
+ export { default as sidebarFooter } from './sidebar-footer'
39
+ export { default as sidebarHeader } from './sidebar-header'
40
+ export { default as sidebarHeading } from './sidebar-heading'
41
+ export { default as sidebarLayout } from './sidebar-layout'
42
+ export { default as sidebarSection } from './sidebar-section'
43
+ export { default as sidebarSpacer } from './sidebar-spacer'
30
44
  export { default as skeleton } from './skeleton'
31
45
  export { default as slideover } from './slideover'
46
+ export { default as stackedLayout } from './stacked-layout'
32
47
  export { default as switch } from './switch'
33
48
  export { default as tabs } from './tabs'
34
49
  export { default as textarea } from './textarea'
@@ -0,0 +1,5 @@
1
+ export default {
2
+ "slots": {
3
+ "root": "h-6 w-px bg-base-950/10 dark:bg-base-100/20"
4
+ }
5
+ }
@@ -0,0 +1,5 @@
1
+ export default {
2
+ "slots": {
3
+ "root": "flex items-center gap-3"
4
+ }
5
+ }
@@ -0,0 +1,5 @@
1
+ export default {
2
+ "slots": {
3
+ "root": "-ml-4 flex-1"
4
+ }
5
+ }
@@ -0,0 +1,5 @@
1
+ export default {
2
+ "slots": {
3
+ "root": "py-2.5 flex-1 flex items-center gap-4"
4
+ }
5
+ }
@@ -0,0 +1,299 @@
1
+ const color = [
2
+ "default"
3
+ ] as const
4
+
5
+ const highlightColor = [
6
+ "default"
7
+ ] as const
8
+
9
+ const variant = [
10
+ "pill",
11
+ "link"
12
+ ] as const
13
+
14
+ const orientation = [
15
+ "horizontal",
16
+ "vertical"
17
+ ] as const
18
+
19
+ const contentOrientation = [
20
+ "horizontal",
21
+ "vertical"
22
+ ] as const
23
+
24
+ export default {
25
+ "slots": {
26
+ "root": "relative flex gap-1.5 [&>div]:min-w-0",
27
+ "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",
29
+ "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",
33
+ "linkLeadingAvatarSize": "2xs",
34
+ "linkTrailing": "ms-auto inline-flex gap-1.5 items-center",
35
+ "linkTrailingBadge": "shrink-0",
36
+ "linkTrailingBadgeSize": "sm",
37
+ "linkTrailingIcon": "size-5 transform shrink-0 group-data-[state=open]:rotate-180 transition-transform duration-200",
38
+ "linkLabel": "truncate",
39
+ "linkLabelExternalIcon": "inline-block size-3 align-top text-(--ui-text-dimmed)",
40
+ "childList": "",
41
+ "childItem": "",
42
+ "childLink": "group size-full px-3 py-2 rounded-[calc(var(--ui-radius)*1.5)] flex items-start gap-2 text-start",
43
+ "childLinkWrapper": "flex flex-col items-start",
44
+ "childLinkIcon": "size-5 shrink-0",
45
+ "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)",
49
+ "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]",
51
+ "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)]"
54
+ },
55
+ "variants": {
56
+ "color": {
57
+ "default": {
58
+ "link": "focus-visible:before:ring-(--ui-border-inverted)",
59
+ "childLink": "focus-visible:outline-(--ui-border-inverted)"
60
+ }
61
+ },
62
+ "highlightColor": {
63
+ "default": ""
64
+ },
65
+ "variant": {
66
+ "pill": "",
67
+ "link": ""
68
+ },
69
+ "orientation": {
70
+ "horizontal": {
71
+ "root": "items-center justify-between",
72
+ "list": "flex items-center",
73
+ "item": "py-2",
74
+ "link": "px-2.5 py-1.5 before:inset-x-px before:inset-y-0",
75
+ "childList": "grid p-2"
76
+ },
77
+ "vertical": {
78
+ "root": "flex-col",
79
+ "link": "flex-row px-2.5 py-1.5 before:inset-y-px before:inset-x-0"
80
+ }
81
+ },
82
+ "contentOrientation": {
83
+ "horizontal": {
84
+ "viewport": "",
85
+ "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]"
87
+ },
88
+ "vertical": {
89
+ "viewport": "sm:w-(--reka-navigation-menu-viewport-width) left-(--reka-navigation-menu-viewport-left)",
90
+ "content": ""
91
+ }
92
+ },
93
+ "active": {
94
+ "true": {
95
+ "childLink": "bg-(--ui-bg-elevated) text-(--ui-text-highlighted)",
96
+ "childLinkIcon": "text-(--ui-text)"
97
+ },
98
+ "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
+ ]
109
+ }
110
+ },
111
+ "disabled": {
112
+ "true": {
113
+ "link": "cursor-not-allowed opacity-75"
114
+ }
115
+ },
116
+ "highlight": {
117
+ "true": ""
118
+ },
119
+ "level": {
120
+ "true": ""
121
+ },
122
+ "collapsed": {
123
+ "true": ""
124
+ }
125
+ },
126
+ "compoundVariants": [
127
+ {
128
+ "orientation": "horizontal" as typeof orientation[number],
129
+ "contentOrientation": "horizontal" as typeof contentOrientation[number],
130
+ "class": {
131
+ "childList": "grid-cols-2 gap-2"
132
+ }
133
+ },
134
+ {
135
+ "orientation": "horizontal" as typeof orientation[number],
136
+ "contentOrientation": "vertical" as typeof contentOrientation[number],
137
+ "class": {
138
+ "childList": "gap-1",
139
+ "content": "w-60"
140
+ }
141
+ },
142
+ {
143
+ "orientation": "horizontal" as typeof orientation[number],
144
+ "highlight": true,
145
+ "class": {
146
+ "link": [
147
+ "after:absolute after:-bottom-2 after:inset-x-2.5 after:block after:h-px after:rounded-full",
148
+ "after:transition-colors"
149
+ ]
150
+ }
151
+ },
152
+ {
153
+ "orientation": "vertical" as typeof orientation[number],
154
+ "highlight": true,
155
+ "level": true,
156
+ "class": {
157
+ "link": [
158
+ "after:absolute after:-start-1.5 after:inset-y-0.5 after:block after:w-px after:rounded-full",
159
+ "after:transition-colors"
160
+ ]
161
+ }
162
+ },
163
+ {
164
+ "disabled": false,
165
+ "active": false,
166
+ "variant": "pill" as typeof variant[number],
167
+ "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
+ ]
176
+ }
177
+ },
178
+ {
179
+ "disabled": false,
180
+ "active": false,
181
+ "variant": "pill" as typeof variant[number],
182
+ "orientation": "horizontal" as typeof orientation[number],
183
+ "class": {
184
+ "link": "data-[state=open]:text-(--ui-text-highlighted)",
185
+ "linkLeadingIcon": "group-data-[state=open]:text-(--ui-text)"
186
+ }
187
+ },
188
+ {
189
+ "disabled": false,
190
+ "variant": "pill" as typeof variant[number],
191
+ "highlight": true,
192
+ "orientation": "horizontal" as typeof orientation[number],
193
+ "class": {
194
+ "link": "data-[state=open]:before:bg-(--ui-bg-elevated)/50"
195
+ }
196
+ },
197
+ {
198
+ "disabled": false,
199
+ "variant": "pill" as typeof variant[number],
200
+ "highlight": false,
201
+ "active": false,
202
+ "orientation": "horizontal" as typeof orientation[number],
203
+ "class": {
204
+ "link": "data-[state=open]:before:bg-(--ui-bg-elevated)/50"
205
+ }
206
+ },
207
+ {
208
+ "color": "default" as typeof color[number],
209
+ "variant": "pill" as typeof variant[number],
210
+ "active": true,
211
+ "class": {
212
+ "link": "text-(--ui-text-highlighted)",
213
+ "linkLeadingIcon": "text-(--ui-text-highlighted) group-data-[state=open]:text-(--ui-text-highlighted)"
214
+ }
215
+ },
216
+ {
217
+ "variant": "pill" as typeof variant[number],
218
+ "active": true,
219
+ "highlight": false,
220
+ "class": {
221
+ "link": "before:bg-(--ui-bg-elevated)"
222
+ }
223
+ },
224
+ {
225
+ "variant": "pill" as typeof variant[number],
226
+ "active": true,
227
+ "highlight": true,
228
+ "class": {
229
+ "link": [
230
+ "hover:before:bg-(--ui-bg-elevated)/50",
231
+ "before:transition-colors"
232
+ ]
233
+ }
234
+ },
235
+ {
236
+ "disabled": false,
237
+ "active": false,
238
+ "variant": "link" as typeof variant[number],
239
+ "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
+ ]
248
+ }
249
+ },
250
+ {
251
+ "disabled": false,
252
+ "active": false,
253
+ "variant": "link" as typeof variant[number],
254
+ "orientation": "horizontal" as typeof orientation[number],
255
+ "class": {
256
+ "link": "data-[state=open]:text-(--ui-text-highlighted)",
257
+ "linkLeadingIcon": "group-data-[state=open]:text-(--ui-text)"
258
+ }
259
+ },
260
+ {
261
+ "color": "default" as typeof color[number],
262
+ "variant": "link" as typeof variant[number],
263
+ "active": true,
264
+ "class": {
265
+ "link": "text-(--ui-text-highlighted)",
266
+ "linkLeadingIcon": "text-(--ui-text-highlighted) group-data-[state=open]:text-(--ui-text-highlighted)"
267
+ }
268
+ },
269
+ {
270
+ "highlightColor": "default" as typeof highlightColor[number],
271
+ "highlight": true,
272
+ "level": true,
273
+ "active": true,
274
+ "class": {
275
+ "link": "after:bg-(--ui-bg-inverted)"
276
+ }
277
+ },
278
+ {
279
+ "orientation": "vertical" as typeof orientation[number],
280
+ "collapsed": false,
281
+ "class": {
282
+ "childList": "ms-5 border-s border-(--ui-border)",
283
+ "childItem": "ps-1.5 -ms-px"
284
+ }
285
+ },
286
+ {
287
+ "orientation": "vertical" as typeof orientation[number],
288
+ "collapsed": true,
289
+ "class": {
290
+ "link": "px-1.5"
291
+ }
292
+ }
293
+ ],
294
+ "defaultVariants": {
295
+ "color": "default" as typeof color[number],
296
+ "highlightColor": "default" as typeof highlightColor[number],
297
+ "variant": "pill" as typeof variant[number]
298
+ }
299
+ }
@@ -0,0 +1,15 @@
1
+ export default {
2
+ "slots": {
3
+ "root": "p-4 flex flex-1 flex-col overflow-y-auto [&>[data-slot=section]+[data-slot=section]]:mt-8"
4
+ },
5
+ "variants": {
6
+ "scrollbarThin": {
7
+ "true": {
8
+ "root": "scrollbar-thin scrollbar-transparent"
9
+ }
10
+ }
11
+ },
12
+ "defaultVariants": {
13
+ "scrollbarThin": true
14
+ }
15
+ }
@@ -0,0 +1,5 @@
1
+ export default {
2
+ "slots": {
3
+ "root": "p-4 flex flex-col max-lg:hidden [&>[data-slot=section]+[data-slot=section]]:mt-2.5"
4
+ }
5
+ }
@@ -0,0 +1,5 @@
1
+ export default {
2
+ "slots": {
3
+ "root": "p-4 flex flex-col [&>[data-slot=section]+[data-slot=section]]:mt-2.5"
4
+ }
5
+ }
@@ -0,0 +1,5 @@
1
+ export default {
2
+ "slots": {
3
+ "root": "mb-1 px-2 text-xs/6 font-medium text-base-500 dark:text-base-400"
4
+ }
5
+ }
@@ -0,0 +1,38 @@
1
+ export default {
2
+ "slots": {
3
+ "root": "min-h-svh w-full flex max-lg:flex-col relative isolate",
4
+ "sidebar": "w-[240px] pr-[3px] fixed inset-y-0 left-0 max-lg:hidden",
5
+ "sidebarSlideoverContainer": "max-w-80 p-2 bg-transparent dark:bg-transparent sm:shadow-none",
6
+ "sidebarSlideover": "h-full overflow-hidden flex flex-col bg-white dark:bg-base-dark ring-1 ring-base-950/5 dark:ring-white/10 shadow-xs rounded-lg",
7
+ "sidebarSlideoverBtnClose": "-mb-3 px-4 pt-3",
8
+ "header": "px-4 flex items-center lg:hidden",
9
+ "headerPaddings": "py-2.5",
10
+ "headerWrapper": "min-w-0 flex-1",
11
+ "container": "flex-1 flex flex-col lg:min-w-0 pb-2 lg:pt-2 lg:pr-2",
12
+ "containerWrapper": "grow",
13
+ "containerWrapperInner": ""
14
+ },
15
+ "variants": {
16
+ "useSidebar": {
17
+ "true": {
18
+ "container": "lg:pl-[240px]"
19
+ },
20
+ "false": {
21
+ "container": ""
22
+ }
23
+ },
24
+ "useLightContent": {
25
+ "true": {
26
+ "root": "bg-white dark:bg-white/10 lg:bg-base-50 dark:lg:bg-base-dark",
27
+ "containerWrapper": "p-6 lg:p-10 lg:bg-white dark:lg:bg-white/10 lg:ring-1 lg:ring-base-950/5 dark:lg:ring-white/10 lg:shadow-xs lg:rounded-lg"
28
+ },
29
+ "false": {
30
+ "container": "px-4"
31
+ }
32
+ }
33
+ },
34
+ "compoundVariants": [],
35
+ "defaultVariants": {
36
+ "useLightContent": true
37
+ }
38
+ }
@@ -0,0 +1,5 @@
1
+ export default {
2
+ "slots": {
3
+ "root": "flex flex-col gap-0.5"
4
+ }
5
+ }
@@ -0,0 +1,5 @@
1
+ export default {
2
+ "slots": {
3
+ "root": "mt-8 flex-1"
4
+ }
5
+ }
@@ -0,0 +1,5 @@
1
+ export default {
2
+ "slots": {
3
+ "root": "h-full min-h-0 flex flex-col"
4
+ }
5
+ }
@@ -0,0 +1,9 @@
1
+ export default {
2
+ "slots": {
3
+ "root": "",
4
+ "container": ""
5
+ },
6
+ "variants": {},
7
+ "compoundVariants": [],
8
+ "defaultVariants": {}
9
+ }
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
  }