@bitrix24/b24ui-nuxt 0.6.7 → 0.7.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 (198) hide show
  1. package/.nuxt/b24ui/accordion.ts +20 -0
  2. package/.nuxt/b24ui/advice.ts +2 -10
  3. package/.nuxt/b24ui/alert.ts +2 -15
  4. package/.nuxt/b24ui/avatar-group.ts +2 -10
  5. package/.nuxt/b24ui/avatar.ts +3 -11
  6. package/.nuxt/b24ui/badge.ts +48 -13
  7. package/.nuxt/b24ui/button-group.ts +2 -22
  8. package/.nuxt/b24ui/button.ts +4 -17
  9. package/.nuxt/b24ui/calendar.ts +3 -11
  10. package/.nuxt/b24ui/checkbox.ts +75 -11
  11. package/.nuxt/b24ui/chip.ts +2 -10
  12. package/.nuxt/b24ui/collapsible.ts +2 -10
  13. package/.nuxt/b24ui/container.ts +2 -10
  14. package/.nuxt/b24ui/countdown.ts +2 -10
  15. package/.nuxt/b24ui/description-list.ts +2 -15
  16. package/.nuxt/b24ui/dropdown-menu.ts +4 -11
  17. package/.nuxt/b24ui/form-field.ts +3 -10
  18. package/.nuxt/b24ui/form.ts +2 -10
  19. package/.nuxt/b24ui/index.ts +1 -0
  20. package/.nuxt/b24ui/input-menu.ts +6 -30
  21. package/.nuxt/b24ui/input-number.ts +15 -10
  22. package/.nuxt/b24ui/input.ts +4 -17
  23. package/.nuxt/b24ui/kbd.ts +2 -10
  24. package/.nuxt/b24ui/link.ts +11 -17
  25. package/.nuxt/b24ui/modal.ts +3 -11
  26. package/.nuxt/b24ui/navbar-divider.ts +2 -10
  27. package/.nuxt/b24ui/navbar-section.ts +2 -10
  28. package/.nuxt/b24ui/navbar-spacer.ts +2 -10
  29. package/.nuxt/b24ui/navbar.ts +2 -10
  30. package/.nuxt/b24ui/navigation-menu.ts +69 -60
  31. package/.nuxt/b24ui/popover.ts +2 -10
  32. package/.nuxt/b24ui/progress.ts +2 -10
  33. package/.nuxt/b24ui/radio-group.ts +3 -11
  34. package/.nuxt/b24ui/range.ts +2 -10
  35. package/.nuxt/b24ui/select-menu.ts +10 -40
  36. package/.nuxt/b24ui/select.ts +10 -40
  37. package/.nuxt/b24ui/separator.ts +2 -10
  38. package/.nuxt/b24ui/sidebar-body.ts +2 -10
  39. package/.nuxt/b24ui/sidebar-footer.ts +2 -10
  40. package/.nuxt/b24ui/sidebar-header.ts +2 -10
  41. package/.nuxt/b24ui/sidebar-heading.ts +2 -10
  42. package/.nuxt/b24ui/sidebar-layout.ts +2 -10
  43. package/.nuxt/b24ui/sidebar-section.ts +2 -10
  44. package/.nuxt/b24ui/sidebar-spacer.ts +2 -10
  45. package/.nuxt/b24ui/sidebar.ts +2 -10
  46. package/.nuxt/b24ui/skeleton.ts +2 -10
  47. package/.nuxt/b24ui/slideover.ts +2 -10
  48. package/.nuxt/b24ui/stacked-layout.ts +2 -10
  49. package/.nuxt/b24ui/switch.ts +2 -10
  50. package/.nuxt/b24ui/tabs.ts +6 -13
  51. package/.nuxt/b24ui/textarea.ts +4 -17
  52. package/.nuxt/b24ui/toast.ts +2 -15
  53. package/.nuxt/b24ui/toaster.ts +3 -11
  54. package/.nuxt/b24ui/tooltip.ts +3 -11
  55. package/.nuxt/b24ui.css +1 -1
  56. package/cli/templates.mjs +2 -2
  57. package/dist/meta.d.mts +38368 -18666
  58. package/dist/meta.mjs +38368 -18666
  59. package/dist/module.json +1 -1
  60. package/dist/module.mjs +11 -3
  61. package/dist/runtime/components/Accordion.vue +96 -0
  62. package/dist/runtime/components/Accordion.vue.d.ts +78 -0
  63. package/dist/runtime/components/Advice.vue +1 -1
  64. package/dist/runtime/components/Alert.vue +1 -1
  65. package/dist/runtime/components/Avatar.vue +11 -3
  66. package/dist/runtime/components/Avatar.vue.d.ts +2 -1
  67. package/dist/runtime/components/AvatarGroup.vue +1 -1
  68. package/dist/runtime/components/Badge.vue +5 -3
  69. package/dist/runtime/components/Badge.vue.d.ts +2 -0
  70. package/dist/runtime/components/Button.vue +2 -3
  71. package/dist/runtime/components/Button.vue.d.ts +1 -1
  72. package/dist/runtime/components/Calendar.vue +6 -2
  73. package/dist/runtime/components/Checkbox.vue +14 -5
  74. package/dist/runtime/components/Checkbox.vue.d.ts +9 -0
  75. package/dist/runtime/components/Chip.vue +1 -1
  76. package/dist/runtime/components/Collapsible.vue +1 -1
  77. package/dist/runtime/components/Countdown.vue +1 -1
  78. package/dist/runtime/components/Countdown.vue.d.ts +2 -2
  79. package/dist/runtime/components/DescriptionList.vue +3 -2
  80. package/dist/runtime/components/DescriptionList.vue.d.ts +1 -1
  81. package/dist/runtime/components/DropdownMenu.vue +1 -1
  82. package/dist/runtime/components/DropdownMenu.vue.d.ts +2 -0
  83. package/dist/runtime/components/DropdownMenuContent.vue +74 -72
  84. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +4 -20
  85. package/dist/runtime/components/Form.vue +6 -6
  86. package/dist/runtime/components/Form.vue.d.ts +12 -11
  87. package/dist/runtime/components/FormField.vue +4 -4
  88. package/dist/runtime/components/Input.vue +12 -8
  89. package/dist/runtime/components/Input.vue.d.ts +31 -30
  90. package/dist/runtime/components/InputMenu.vue +23 -20
  91. package/dist/runtime/components/InputMenu.vue.d.ts +214 -4
  92. package/dist/runtime/components/InputNumber.vue +17 -10
  93. package/dist/runtime/components/InputNumber.vue.d.ts +80 -3
  94. package/dist/runtime/components/Link.vue +5 -13
  95. package/dist/runtime/components/Modal.vue +22 -14
  96. package/dist/runtime/components/Modal.vue.d.ts +18 -5
  97. package/dist/runtime/components/Navbar.vue +1 -1
  98. package/dist/runtime/components/NavbarDivider.vue +1 -1
  99. package/dist/runtime/components/NavbarSection.vue +1 -1
  100. package/dist/runtime/components/NavbarSpacer.vue +1 -1
  101. package/dist/runtime/components/NavigationMenu.vue +186 -44
  102. package/dist/runtime/components/NavigationMenu.vue.d.ts +39 -8
  103. package/dist/runtime/components/OverlayProvider.vue +2 -2
  104. package/dist/runtime/components/Popover.vue +4 -0
  105. package/dist/runtime/components/Popover.vue.d.ts +2 -1
  106. package/dist/runtime/components/Progress.vue +3 -2
  107. package/dist/runtime/components/Progress.vue.d.ts +2 -2
  108. package/dist/runtime/components/RadioGroup.vue +26 -10
  109. package/dist/runtime/components/RadioGroup.vue.d.ts +3 -1
  110. package/dist/runtime/components/Range.vue +2 -2
  111. package/dist/runtime/components/Range.vue.d.ts +19 -20
  112. package/dist/runtime/components/Select.vue +57 -31
  113. package/dist/runtime/components/Select.vue.d.ts +110 -2
  114. package/dist/runtime/components/SelectMenu.vue +77 -23
  115. package/dist/runtime/components/SelectMenu.vue.d.ts +111 -5
  116. package/dist/runtime/components/Separator.vue +3 -3
  117. package/dist/runtime/components/Sidebar.vue +1 -1
  118. package/dist/runtime/components/SidebarBody.vue +1 -1
  119. package/dist/runtime/components/SidebarFooter.vue +1 -1
  120. package/dist/runtime/components/SidebarHeader.vue +1 -1
  121. package/dist/runtime/components/SidebarHeading.vue +1 -1
  122. package/dist/runtime/components/SidebarLayout.vue +1 -1
  123. package/dist/runtime/components/SidebarSection.vue +1 -1
  124. package/dist/runtime/components/SidebarSpacer.vue +1 -1
  125. package/dist/runtime/components/Slideover.vue +23 -15
  126. package/dist/runtime/components/Slideover.vue.d.ts +18 -5
  127. package/dist/runtime/components/StackedLayout.vue +1 -1
  128. package/dist/runtime/components/Switch.vue +1 -1
  129. package/dist/runtime/components/Tabs.vue +28 -7
  130. package/dist/runtime/components/Tabs.vue.d.ts +6 -1
  131. package/dist/runtime/components/Textarea.vue +13 -9
  132. package/dist/runtime/components/Textarea.vue.d.ts +31 -30
  133. package/dist/runtime/components/Toast.vue +7 -6
  134. package/dist/runtime/components/Toast.vue.d.ts +6 -0
  135. package/dist/runtime/components/Toaster.vue +4 -4
  136. package/dist/runtime/components/Toaster.vue.d.ts +6 -0
  137. package/dist/runtime/components/Tooltip.vue +9 -2
  138. package/dist/runtime/components/Tooltip.vue.d.ts +2 -1
  139. package/dist/runtime/components/content/TableWrapper.vue +1 -1
  140. package/dist/runtime/composables/defineLocale.d.ts +2 -0
  141. package/dist/runtime/composables/defineLocale.js +4 -0
  142. package/dist/runtime/composables/defineShortcuts.js +8 -2
  143. package/dist/runtime/composables/useFormField.d.ts +1 -1
  144. package/dist/runtime/composables/useFormField.js +2 -1
  145. package/dist/runtime/composables/useKbd.d.ts +1 -0
  146. package/dist/runtime/composables/useKbd.js +4 -3
  147. package/dist/runtime/composables/useOverlay.d.ts +11 -11
  148. package/dist/runtime/composables/useOverlay.js +17 -11
  149. package/dist/runtime/inertia/components/Link.vue +45 -60
  150. package/dist/runtime/inertia/components/Link.vue.d.ts +1 -1
  151. package/dist/runtime/inertia/components/LinkBase.vue +68 -0
  152. package/dist/runtime/inertia/components/LinkBase.vue.d.ts +25 -0
  153. package/dist/runtime/inertia/stubs.d.ts +1 -1
  154. package/dist/runtime/inertia/stubs.js +1 -1
  155. package/dist/runtime/prose/A.vue +1 -1
  156. package/dist/runtime/prose/Blockquote.vue +1 -1
  157. package/dist/runtime/prose/Code.vue +1 -1
  158. package/dist/runtime/prose/Em.vue +1 -1
  159. package/dist/runtime/prose/H1.vue +1 -1
  160. package/dist/runtime/prose/H2.vue +1 -1
  161. package/dist/runtime/prose/H3.vue +1 -1
  162. package/dist/runtime/prose/H4.vue +1 -1
  163. package/dist/runtime/prose/H5.vue +1 -1
  164. package/dist/runtime/prose/H6.vue +1 -1
  165. package/dist/runtime/prose/Hr.vue +1 -1
  166. package/dist/runtime/prose/Img.vue +1 -1
  167. package/dist/runtime/prose/Li.vue +1 -1
  168. package/dist/runtime/prose/Ol.vue +1 -1
  169. package/dist/runtime/prose/P.vue +1 -1
  170. package/dist/runtime/prose/Pre.vue +1 -1
  171. package/dist/runtime/prose/Strong.vue +1 -1
  172. package/dist/runtime/prose/Table.vue +1 -1
  173. package/dist/runtime/prose/Tbody.vue +1 -1
  174. package/dist/runtime/prose/Td.vue +1 -1
  175. package/dist/runtime/prose/Th.vue +1 -1
  176. package/dist/runtime/prose/Thead.vue +1 -1
  177. package/dist/runtime/prose/Tr.vue +1 -1
  178. package/dist/runtime/prose/Ul.vue +1 -1
  179. package/dist/runtime/types/form.d.ts +11 -10
  180. package/dist/runtime/types/index.d.ts +1 -0
  181. package/dist/runtime/types/index.js +1 -0
  182. package/dist/runtime/types/locale.d.ts +1 -0
  183. package/dist/runtime/types/tv.d.ts +53 -0
  184. package/dist/runtime/types/tv.js +0 -0
  185. package/dist/runtime/types/utils.d.ts +4 -51
  186. package/dist/runtime/types/utils.js +1 -0
  187. package/dist/runtime/utils/link.d.ts +1 -0
  188. package/dist/runtime/utils/link.js +12 -0
  189. package/dist/runtime/vue/components/Link.vue +26 -40
  190. package/dist/runtime/vue/composables/useAppConfig.js +3 -1
  191. package/dist/runtime/vue/stubs.d.ts +1 -1
  192. package/dist/runtime/vue/stubs.js +1 -1
  193. package/dist/shared/{b24ui-nuxt.jU270f-Q.mjs → b24ui-nuxt.C-kZb5Ac.mjs} +267 -121
  194. package/dist/unplugin.d.mts +2 -2
  195. package/dist/unplugin.mjs +6 -3
  196. package/dist/vite.d.mts +1 -1
  197. package/dist/vite.mjs +2 -2
  198. package/package.json +41 -40
@@ -1,10 +1,3 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/select"
2
-
3
- const buttonGroup = [
4
- "horizontal",
5
- "vertical"
6
- ] as const
7
-
8
1
  const size = [
9
2
  "xs",
10
3
  "sm",
@@ -38,22 +31,7 @@ const type = [
38
31
  "file"
39
32
  ] as const
40
33
 
41
- const colorItem = [
42
- "default",
43
- "danger",
44
- "success",
45
- "warning",
46
- "primary",
47
- "secondary",
48
- "collab",
49
- "ai"
50
- ] as const
51
-
52
- const result = typeof template === 'function' ? (template as Function)({
53
- "colorMode": true
54
- }) : template
55
-
56
- const theme = {
34
+ export default {
57
35
  "slots": {
58
36
  "root": "isolate relative inline-flex items-center w-full",
59
37
  "base": "px-3 relative inline-flex items-center group py-0 border-0 focus:outline-none cursor-pointer disabled:cursor-not-allowed disabled:bg-base-30/37 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 hover:text-base-900 focus:text-base-900 active:text-base-900 dark:text-base-150 dark:bg-transparent dark:hover:text-base-350 dark:focus:text-base-350 dark:active:text-base-350 font-b24-primary font-regular text-sm leading-tight align-middle text-ellipsis whitespace-nowrap",
@@ -67,10 +45,8 @@ const theme = {
67
45
  "value": "truncate pointer-events-none",
68
46
  "placeholder": "truncate text-base-400 dark:text-base-300",
69
47
  "arrow": "fill-base-master/10 dark:fill-base-100/20",
70
- "content": "w-(--reka-select-trigger-width) min-w-fit 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] origin-(--reka-select-content-transform-origin) pointer-events-auto",
71
- "scrollUpDownButton": "flex items-center justify-center h-[25px] cursor-default backdrop-blur text-base-800 bg-white dark:text-base-100 dark:bg-base-dark",
72
- "scrollUpDownButtonIcon": "",
73
- "viewport": "divide-y divide-base-master/10 dark:divide-base-100/20 scroll-py-1",
48
+ "content": "w-(--reka-select-trigger-width) min-w-fit 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] origin-(--reka-select-content-transform-origin) flex flex-col pointer-events-auto",
49
+ "viewport": "relative divide-y divide-base-master/10 dark:divide-base-100/20 scroll-py-1 overflow-y-auto flex-1",
74
50
  "group": "p-1 isolate",
75
51
  "empty": "py-2 text-center text-sm text-base-500 dark:text-base-600",
76
52
  "label": "flex items-center font-semibold text-base-900 dark:text-base-200",
@@ -88,11 +64,11 @@ const theme = {
88
64
  "variants": {
89
65
  "buttonGroup": {
90
66
  "horizontal": {
91
- "root": "group leading-none",
67
+ "root": "group leading-none has-focus-visible:z-[1]",
92
68
  "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"
93
69
  },
94
70
  "vertical": {
95
- "root": "group",
71
+ "root": "group has-focus-visible:z-[1]",
96
72
  "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"
97
73
  }
98
74
  },
@@ -113,8 +89,7 @@ const theme = {
113
89
  "itemLeadingAvatarSize": "2xs",
114
90
  "itemLeadingChip": "size-3 not-group-data-reka-collection-item:ps-2.5",
115
91
  "itemLeadingChipSize": "sm",
116
- "itemTrailingIcon": "size-3",
117
- "scrollUpDownButtonIcon": "size-4"
92
+ "itemTrailingIcon": "size-3"
118
93
  },
119
94
  "sm": {
120
95
  "base": "h-8 gap-1.5",
@@ -129,8 +104,7 @@ const theme = {
129
104
  "itemLeadingAvatarSize": "2xs",
130
105
  "itemLeadingChip": "size-3 not-group-data-reka-collection-item:ps-2.5",
131
106
  "itemLeadingChipSize": "sm",
132
- "itemTrailingIcon": "size-3",
133
- "scrollUpDownButtonIcon": "size-4"
107
+ "itemTrailingIcon": "size-3"
134
108
  },
135
109
  "md": {
136
110
  "base": "h-10 gap-1.5",
@@ -145,8 +119,7 @@ const theme = {
145
119
  "itemLeadingAvatarSize": "2xs",
146
120
  "itemLeadingChip": "size-3 not-group-data-reka-collection-item:ps-2.5",
147
121
  "itemLeadingChipSize": "sm",
148
- "itemTrailingIcon": "size-3",
149
- "scrollUpDownButtonIcon": "size-4"
122
+ "itemTrailingIcon": "size-3"
150
123
  },
151
124
  "lg": {
152
125
  "base": "h-12 gap-2",
@@ -161,8 +134,7 @@ const theme = {
161
134
  "itemLeadingAvatarSize": "2xs",
162
135
  "itemLeadingChip": "size-3 not-group-data-reka-collection-item:ps-2.5",
163
136
  "itemLeadingChipSize": "sm",
164
- "itemTrailingIcon": "size-3",
165
- "scrollUpDownButtonIcon": "size-4"
137
+ "itemTrailingIcon": "size-3"
166
138
  }
167
139
  },
168
140
  "color": {
@@ -553,6 +525,4 @@ const theme = {
553
525
  "color": "primary" as typeof color[number],
554
526
  "tagColor": "primary" as typeof tagColor[number]
555
527
  }
556
- }
557
-
558
- export default result as typeof theme
528
+ }
@@ -1,5 +1,3 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/separator"
2
-
3
1
  const color = [
4
2
  "default",
5
3
  "danger",
@@ -30,11 +28,7 @@ const type = [
30
28
  "dotted"
31
29
  ] as const
32
30
 
33
- const result = typeof template === 'function' ? (template as Function)({
34
- "colorMode": true
35
- }) : template
36
-
37
- const theme = {
31
+ export default {
38
32
  "slots": {
39
33
  "root": "flex items-center align-center text-center",
40
34
  "border": "",
@@ -179,6 +173,4 @@ const theme = {
179
173
  "size": "xs" as typeof size[number],
180
174
  "type": "solid" as typeof type[number]
181
175
  }
182
- }
183
-
184
- export default result as typeof theme
176
+ }
@@ -1,10 +1,4 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/sidebar-body"
2
-
3
- const result = typeof template === 'function' ? (template as Function)({
4
- "colorMode": true
5
- }) : template
6
-
7
- const theme = {
1
+ export default {
8
2
  "slots": {
9
3
  "root": "py-4 flex flex-1 flex-col overflow-y-auto [&>[data-slot=section]+[data-slot=section]]:mt-8"
10
4
  },
@@ -18,6 +12,4 @@ const theme = {
18
12
  "defaultVariants": {
19
13
  "scrollbarThin": true
20
14
  }
21
- }
22
-
23
- export default result as typeof theme
15
+ }
@@ -1,13 +1,5 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/sidebar-footer"
2
-
3
- const result = typeof template === 'function' ? (template as Function)({
4
- "colorMode": true
5
- }) : template
6
-
7
- const theme = {
1
+ export default {
8
2
  "slots": {
9
3
  "root": "py-4 flex flex-col max-lg:hidden [&>[data-slot=section]+[data-slot=section]]:mt-2.5"
10
4
  }
11
- }
12
-
13
- export default result as typeof theme
5
+ }
@@ -1,13 +1,5 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/sidebar-header"
2
-
3
- const result = typeof template === 'function' ? (template as Function)({
4
- "colorMode": true
5
- }) : template
6
-
7
- const theme = {
1
+ export default {
8
2
  "slots": {
9
3
  "root": "py-4 flex flex-col [&>[data-slot=section]+[data-slot=section]]:mt-2.5"
10
4
  }
11
- }
12
-
13
- export default result as typeof theme
5
+ }
@@ -1,13 +1,5 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/sidebar-heading"
2
-
3
- const result = typeof template === 'function' ? (template as Function)({
4
- "colorMode": true
5
- }) : template
6
-
7
- const theme = {
1
+ export default {
8
2
  "slots": {
9
3
  "root": "mb-1 text-xs/6 font-medium text-base-500 dark:text-base-400"
10
4
  }
11
- }
12
-
13
- export default result as typeof theme
5
+ }
@@ -1,10 +1,4 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/sidebar-layout"
2
-
3
- const result = typeof template === 'function' ? (template as Function)({
4
- "colorMode": true
5
- }) : template
6
-
7
- const theme = {
1
+ export default {
8
2
  "slots": {
9
3
  "root": "min-h-svh w-full flex max-lg:flex-col relative isolate",
10
4
  "sidebar": "w-[240px] pr-[3px] fixed inset-y-0 left-0 max-lg:hidden",
@@ -43,6 +37,4 @@ const theme = {
43
37
  "defaultVariants": {
44
38
  "useLightContent": true
45
39
  }
46
- }
47
-
48
- export default result as typeof theme
40
+ }
@@ -1,13 +1,5 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/sidebar-section"
2
-
3
- const result = typeof template === 'function' ? (template as Function)({
4
- "colorMode": true
5
- }) : template
6
-
7
- const theme = {
1
+ export default {
8
2
  "slots": {
9
3
  "root": "ps-2xl pe-xs flex flex-col gap-0.5"
10
4
  }
11
- }
12
-
13
- export default result as typeof theme
5
+ }
@@ -1,13 +1,5 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/sidebar-spacer"
2
-
3
- const result = typeof template === 'function' ? (template as Function)({
4
- "colorMode": true
5
- }) : template
6
-
7
- const theme = {
1
+ export default {
8
2
  "slots": {
9
3
  "root": "mt-8 flex-1"
10
4
  }
11
- }
12
-
13
- export default result as typeof theme
5
+ }
@@ -1,13 +1,5 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/sidebar"
2
-
3
- const result = typeof template === 'function' ? (template as Function)({
4
- "colorMode": true
5
- }) : template
6
-
7
- const theme = {
1
+ export default {
8
2
  "slots": {
9
3
  "root": "h-full min-h-0 flex flex-col"
10
4
  }
11
- }
12
-
13
- export default result as typeof theme
5
+ }
@@ -1,11 +1,3 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/skeleton"
2
-
3
- const result = typeof template === 'function' ? (template as Function)({
4
- "colorMode": true
5
- }) : template
6
-
7
- const theme = {
1
+ export default {
8
2
  "base": "animate-pulse rounded-md bg-gray-200 dark:bg-gray-800"
9
- }
10
-
11
- export default result as typeof theme
3
+ }
@@ -1,5 +1,3 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/slideover"
2
-
3
1
  const overlayBlur = [
4
2
  "auto",
5
3
  "on",
@@ -13,11 +11,7 @@ const side = [
13
11
  "left"
14
12
  ] as const
15
13
 
16
- const result = typeof template === 'function' ? (template as Function)({
17
- "colorMode": true
18
- }) : template
19
-
20
- const theme = {
14
+ export default {
21
15
  "slots": {
22
16
  "overlay": "fixed inset-0 bg-base-950/20 dark:bg-base-950/30",
23
17
  "content": "fixed bg-base-50 dark:bg-base-950 sm:shadow-lg flex flex-col focus:outline-none",
@@ -123,6 +117,4 @@ const theme = {
123
117
  "scrollbarThin": true,
124
118
  "overlayBlur": "auto" as typeof overlayBlur[number]
125
119
  }
126
- }
127
-
128
- export default result as typeof theme
120
+ }
@@ -1,10 +1,4 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/stacked-layout"
2
-
3
- const result = typeof template === 'function' ? (template as Function)({
4
- "colorMode": true
5
- }) : template
6
-
7
- const theme = {
1
+ export default {
8
2
  "slots": {
9
3
  "root": "min-h-svh w-full flex flex-col lg:px-2 relative isolate",
10
4
  "sidebarSlideoverContainer": "max-w-80 p-2 bg-transparent dark:bg-transparent sm:shadow-none",
@@ -37,6 +31,4 @@ const theme = {
37
31
  "defaultVariants": {
38
32
  "useLightContent": true
39
33
  }
40
- }
41
-
42
- export default result as typeof theme
34
+ }
@@ -1,5 +1,3 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/switch"
2
-
3
1
  const color = [
4
2
  "default",
5
3
  "danger",
@@ -18,11 +16,7 @@ const size = [
18
16
  "lg"
19
17
  ] as const
20
18
 
21
- const result = typeof template === 'function' ? (template as Function)({
22
- "colorMode": true
23
- }) : template
24
-
25
- const theme = {
19
+ export default {
26
20
  "slots": {
27
21
  "root": "relative flex items-start",
28
22
  "base": "cursor-pointer inline-flex items-center shrink-0 rounded-full border-2 border-transparent data-[state=unchecked]:bg-base-200 dark:data-[state=unchecked]:bg-base-800 outline-transparent focus-visible:outline-2 focus-visible:outline-offset-2 transition-[background] duration-200",
@@ -131,6 +125,4 @@ const theme = {
131
125
  "color": "primary" as typeof color[number],
132
126
  "size": "md" as typeof size[number]
133
127
  }
134
- }
135
-
136
- export default result as typeof theme
128
+ }
@@ -1,5 +1,3 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/tabs"
2
-
3
1
  const color = [
4
2
  "default",
5
3
  "danger",
@@ -29,16 +27,12 @@ const size = [
29
27
  "xl"
30
28
  ] as const
31
29
 
32
- const result = typeof template === 'function' ? (template as Function)({
33
- "colorMode": true
34
- }) : template
35
-
36
- const theme = {
30
+ export default {
37
31
  "slots": {
38
32
  "root": "flex items-center gap-2",
39
33
  "list": "relative flex p-1 group",
40
34
  "indicator": "absolute transition-[translate,width] duration-200",
41
- "trigger": "group relative inline-flex items-center shrink-0 min-w-0 data-[state=inactive]:text-base-600 dark:data-[state=inactive]:text-base-600 hover:data-[state=inactive]:not-disabled:text-base-master dark:hover:data-[state=inactive]:not-disabled:text-base-150 font-medium rounded-xl cursor-pointer disabled:cursor-not-allowed disabled:opacity-75 transition-colors",
35
+ "trigger": "group relative inline-flex items-center min-w-0 data-[state=inactive]:text-base-600 dark:data-[state=inactive]:text-base-600 hover:data-[state=inactive]:not-disabled:text-base-master dark:hover:data-[state=inactive]:not-disabled:text-base-150 font-medium rounded-xl cursor-pointer disabled:cursor-not-allowed disabled:opacity-75 transition-colors",
42
36
  "content": "focus:outline-none w-full",
43
37
  "leadingIcon": "shrink-0",
44
38
  "leadingAvatar": "shrink-0",
@@ -59,12 +53,13 @@ const theme = {
59
53
  "variant": {
60
54
  "pill": {
61
55
  "list": "bg-base-100 dark:bg-transparent rounded-md",
62
- "trigger": "flex-1 w-full",
56
+ "trigger": "grow",
63
57
  "indicator": "rounded-xl shadow-xs"
64
58
  },
65
59
  "link": {
66
60
  "list": "border-base-300 dark:border-base-800",
67
- "indicator": "rounded-full"
61
+ "indicator": "rounded-full",
62
+ "trigger": "focus:outline-none"
68
63
  }
69
64
  },
70
65
  "orientation": {
@@ -337,6 +332,4 @@ const theme = {
337
332
  "variant": "link" as typeof variant[number],
338
333
  "size": "md" as typeof size[number]
339
334
  }
340
- }
341
-
342
- export default result as typeof theme
335
+ }
@@ -1,10 +1,3 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/textarea"
2
-
3
- const buttonGroup = [
4
- "horizontal",
5
- "vertical"
6
- ] as const
7
-
8
1
  const color = [
9
2
  "default",
10
3
  "danger",
@@ -27,11 +20,7 @@ const tagColor = [
27
20
  "ai"
28
21
  ] as const
29
22
 
30
- const result = typeof template === 'function' ? (template as Function)({
31
- "colorMode": true
32
- }) : template
33
-
34
- const theme = {
23
+ export default {
35
24
  "slots": {
36
25
  "root": "isolate relative inline-flex items-center w-full",
37
26
  "base": "w-full px-3 py-1.5 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-normal align-middle",
@@ -46,11 +35,11 @@ const theme = {
46
35
  "variants": {
47
36
  "buttonGroup": {
48
37
  "horizontal": {
49
- "root": "group leading-none",
38
+ "root": "group leading-none has-focus-visible:z-[1]",
50
39
  "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"
51
40
  },
52
41
  "vertical": {
53
- "root": "group",
42
+ "root": "group has-focus-visible:z-[1]",
54
43
  "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"
55
44
  }
56
45
  },
@@ -363,6 +352,4 @@ const theme = {
363
352
  "color": "primary" as typeof color[number],
364
353
  "tagColor": "primary" as typeof tagColor[number]
365
354
  }
366
- }
367
-
368
- export default result as typeof theme
355
+ }
@@ -1,5 +1,3 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/toast"
2
-
3
1
  const color = [
4
2
  "default",
5
3
  "danger",
@@ -11,16 +9,7 @@ const color = [
11
9
  "ai"
12
10
  ] as const
13
11
 
14
- const orientation = [
15
- "horizontal",
16
- "vertical"
17
- ] as const
18
-
19
- const result = typeof template === 'function' ? (template as Function)({
20
- "colorMode": true
21
- }) : template
22
-
23
- const theme = {
12
+ export default {
24
13
  "slots": {
25
14
  "root": "relative group overflow-hidden rounded-[26px] py-3.5 ps-6 pe-4 flex items-center gap-2.5 focus:outline-none font-b24-primary dark:ring-2 dark:ring-base-900 bg-base-ebony/80 dark:bg-base-dark text-sm font-normal text-white dark:text-base-150",
26
15
  "wrapper": "w-0 flex-1 flex flex-col",
@@ -95,6 +84,4 @@ const theme = {
95
84
  "defaultVariants": {
96
85
  "color": "default" as typeof color[number]
97
86
  }
98
- }
99
-
100
- export default result as typeof theme
87
+ }
@@ -1,5 +1,3 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/toaster"
2
-
3
1
  const position = [
4
2
  "top-left",
5
3
  "top-center",
@@ -16,14 +14,10 @@ const swipeDirection = [
16
14
  "left"
17
15
  ] as const
18
16
 
19
- const result = typeof template === 'function' ? (template as Function)({
20
- "colorMode": true
21
- }) : template
22
-
23
- const theme = {
17
+ export default {
24
18
  "slots": {
25
19
  "viewport": "fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] data-[expanded=true]:h-(--height) focus:outline-none mr-(--scrollbar-width)",
26
- "base": "pointer-events-auto absolute inset-x-0 z-(--index) transform-(--transform) data-[expanded=false]:data-[front=false]:h-(--front-height) data-[expanded=false]:data-[front=false]:*:invisible data-[state=closed]:animate-[toast-closed_200ms_ease-in-out] data-[state=closed]:data-[expanded=false]:data-[front=false]:animate-[toast-collapsed-closed_200ms_ease-in-out] data-[swipe=move]:transition-none transition-[transform,translate,height] duration-200 ease-out"
20
+ "base": "pointer-events-auto absolute inset-x-0 z-(--index) transform-(--transform) data-[expanded=false]:data-[front=false]:h-(--front-height) data-[expanded=false]:data-[front=false]:*:opacity-0 data-[front=false]:*:transition-opacity data-[front=false]:*:duration-100 data-[state=closed]:animate-[toast-closed_200ms_ease-in-out] data-[state=closed]:data-[expanded=false]:data-[front=false]:animate-[toast-collapsed-closed_200ms_ease-in-out] data-[swipe=move]:transition-none transition-[transform,translate,height] duration-200 ease-out"
27
21
  },
28
22
  "variants": {
29
23
  "position": {
@@ -94,6 +88,4 @@ const theme = {
94
88
  "defaultVariants": {
95
89
  "position": "top-right" as typeof position[number]
96
90
  }
97
- }
98
-
99
- export default result as typeof theme
91
+ }
@@ -1,18 +1,10 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/tooltip"
2
-
3
- const result = typeof template === 'function' ? (template as Function)({
4
- "colorMode": true
5
- }) : template
6
-
7
- const theme = {
1
+ export default {
8
2
  "slots": {
9
- "content": "flex items-center gap-1 shadow-sm rounded-2xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] min-h-6 px-2 py-1 text-xs bg-base-dark text-white dark:bg-base-dark dark:text-base-150 dark:ring dark:ring-base-100/20 origin-(--reka-tooltip-content-transform-origin) pointer-events-auto",
3
+ "content": "flex items-center gap-1 shadow-sm rounded-2xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] min-h-6 px-2.5 py-1 text-xs bg-base-dark text-white dark:bg-base-dark dark:text-base-150 dark:ring dark:ring-base-100/20 origin-(--reka-tooltip-content-transform-origin) pointer-events-auto",
10
4
  "arrow": "fill-base-dark dark:fill-base-100/20",
11
5
  "text": "text-pretty max-w-[200px]",
12
6
  "kbds": "hidden lg:inline-flex items-center shrink-0 gap-0.5 before:content-[''] before:me-0.5",
13
7
  "kbdsSize": "sm",
14
8
  "kbdsDepth": "normal"
15
9
  }
16
- }
17
-
18
- export default result as typeof theme
10
+ }
package/.nuxt/b24ui.css CHANGED
@@ -1,3 +1,3 @@
1
1
  @source "./b24ui";
2
2
 
3
- @theme default {}
3
+ @theme default inline {}
package/cli/templates.mjs CHANGED
@@ -74,7 +74,7 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...(appConfig.b24ui?.${came
74
74
  [[/script]]
75
75
 
76
76
  [[template]]
77
- [[Primitive :as="as" :class="b24ui.root({ class: [props.class, props.b24ui?.root] })"]]
77
+ [[Primitive :as="as" :class="b24ui.root({ class: [props.b24ui?.root, props.class] })"]]
78
78
  [[slot /]]
79
79
  [[/Primitive]]
80
80
  [[/template]]
@@ -120,7 +120,7 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...(appConfig.b24ui?.${came
120
120
  [[/script]]
121
121
 
122
122
  [[template]]
123
- [[${upperName}Root v-bind="rootProps" :class="b24ui.root({ class: [props.class, props.b24ui?.root] })" /]]
123
+ [[${upperName}Root v-bind="rootProps" :class="b24ui.root({ class: [props.b24ui?.root, props.class] })" /]]
124
124
  [[/template]]
125
125
  `)
126
126
  }