@bitrix24/b24ui-nuxt 0.6.0 → 0.6.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 (217) hide show
  1. package/.nuxt/b24ui/advice.ts +10 -2
  2. package/.nuxt/b24ui/alert.ts +10 -2
  3. package/.nuxt/b24ui/avatar-group.ts +10 -2
  4. package/.nuxt/b24ui/avatar.ts +10 -2
  5. package/.nuxt/b24ui/badge.ts +10 -2
  6. package/.nuxt/b24ui/button-group.ts +10 -2
  7. package/.nuxt/b24ui/button.ts +16 -6
  8. package/.nuxt/b24ui/calendar.ts +10 -2
  9. package/.nuxt/b24ui/checkbox.ts +10 -2
  10. package/.nuxt/b24ui/chip.ts +10 -2
  11. package/.nuxt/b24ui/collapsible.ts +10 -2
  12. package/.nuxt/b24ui/container.ts +10 -2
  13. package/.nuxt/b24ui/countdown.ts +10 -2
  14. package/.nuxt/b24ui/description-list.ts +10 -2
  15. package/.nuxt/b24ui/dropdown-menu.ts +10 -2
  16. package/.nuxt/b24ui/form-field.ts +10 -2
  17. package/.nuxt/b24ui/form.ts +10 -2
  18. package/.nuxt/b24ui/input-menu.ts +10 -2
  19. package/.nuxt/b24ui/input-number.ts +10 -2
  20. package/.nuxt/b24ui/input.ts +10 -2
  21. package/.nuxt/b24ui/kbd.ts +10 -2
  22. package/.nuxt/b24ui/link.ts +10 -2
  23. package/.nuxt/b24ui/modal.ts +10 -2
  24. package/.nuxt/b24ui/navbar-divider.ts +10 -2
  25. package/.nuxt/b24ui/navbar-section.ts +10 -2
  26. package/.nuxt/b24ui/navbar-spacer.ts +10 -2
  27. package/.nuxt/b24ui/navbar.ts +10 -2
  28. package/.nuxt/b24ui/navigation-menu.ts +10 -2
  29. package/.nuxt/b24ui/popover.ts +10 -2
  30. package/.nuxt/b24ui/progress.ts +10 -2
  31. package/.nuxt/b24ui/radio-group.ts +10 -2
  32. package/.nuxt/b24ui/range.ts +10 -2
  33. package/.nuxt/b24ui/select-menu.ts +10 -2
  34. package/.nuxt/b24ui/select.ts +10 -2
  35. package/.nuxt/b24ui/separator.ts +10 -2
  36. package/.nuxt/b24ui/sidebar-body.ts +10 -2
  37. package/.nuxt/b24ui/sidebar-footer.ts +10 -2
  38. package/.nuxt/b24ui/sidebar-header.ts +10 -2
  39. package/.nuxt/b24ui/sidebar-heading.ts +10 -2
  40. package/.nuxt/b24ui/sidebar-layout.ts +10 -2
  41. package/.nuxt/b24ui/sidebar-section.ts +10 -2
  42. package/.nuxt/b24ui/sidebar-spacer.ts +10 -2
  43. package/.nuxt/b24ui/sidebar.ts +10 -2
  44. package/.nuxt/b24ui/skeleton.ts +10 -2
  45. package/.nuxt/b24ui/slideover.ts +10 -2
  46. package/.nuxt/b24ui/stacked-layout.ts +10 -2
  47. package/.nuxt/b24ui/switch.ts +10 -2
  48. package/.nuxt/b24ui/tabs.ts +10 -2
  49. package/.nuxt/b24ui/textarea.ts +10 -2
  50. package/.nuxt/b24ui/toast.ts +10 -2
  51. package/.nuxt/b24ui/toaster.ts +10 -2
  52. package/.nuxt/b24ui/tooltip.ts +10 -2
  53. package/cli/templates.mjs +19 -15
  54. package/dist/meta.d.mts +1388 -3373
  55. package/dist/meta.mjs +1388 -3373
  56. package/dist/module.json +1 -1
  57. package/dist/module.mjs +2 -2
  58. package/dist/runtime/components/Advice.vue +5 -6
  59. package/dist/runtime/components/Advice.vue.d.ts +7 -121
  60. package/dist/runtime/components/Alert.vue +5 -6
  61. package/dist/runtime/components/Alert.vue.d.ts +12 -379
  62. package/dist/runtime/components/Avatar.vue +5 -6
  63. package/dist/runtime/components/Avatar.vue.d.ts +6 -225
  64. package/dist/runtime/components/AvatarGroup.vue +5 -6
  65. package/dist/runtime/components/AvatarGroup.vue.d.ts +6 -170
  66. package/dist/runtime/components/Badge.vue +5 -6
  67. package/dist/runtime/components/Badge.vue.d.ts +8 -447
  68. package/dist/runtime/components/Button.vue +16 -14
  69. package/dist/runtime/components/Button.vue.d.ts +10 -535
  70. package/dist/runtime/components/ButtonGroup.vue +11 -6
  71. package/dist/runtime/components/ButtonGroup.vue.d.ts +8 -61
  72. package/dist/runtime/components/Calendar.vue +4 -5
  73. package/dist/runtime/components/Calendar.vue.d.ts +7 -337
  74. package/dist/runtime/components/Checkbox.vue +5 -6
  75. package/dist/runtime/components/Checkbox.vue.d.ts +7 -306
  76. package/dist/runtime/components/Chip.vue +5 -6
  77. package/dist/runtime/components/Chip.vue.d.ts +8 -202
  78. package/dist/runtime/components/Collapsible.vue +6 -6
  79. package/dist/runtime/components/Collapsible.vue.d.ts +5 -73
  80. package/dist/runtime/components/Container.vue +6 -5
  81. package/dist/runtime/components/Countdown.vue +6 -7
  82. package/dist/runtime/components/Countdown.vue.d.ts +7 -241
  83. package/dist/runtime/components/DescriptionList.vue +5 -6
  84. package/dist/runtime/components/DescriptionList.vue.d.ts +8 -278
  85. package/dist/runtime/components/DropdownMenu.vue +4 -5
  86. package/dist/runtime/components/DropdownMenu.vue.d.ts +9 -409
  87. package/dist/runtime/components/DropdownMenuContent.vue +1 -3
  88. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +9 -186
  89. package/dist/runtime/components/Form.vue +6 -5
  90. package/dist/runtime/components/FormField.vue +5 -6
  91. package/dist/runtime/components/FormField.vue.d.ts +6 -215
  92. package/dist/runtime/components/Input.vue +4 -5
  93. package/dist/runtime/components/Input.vue.d.ts +8 -628
  94. package/dist/runtime/components/InputMenu.vue +4 -5
  95. package/dist/runtime/components/InputMenu.vue.d.ts +19 -1185
  96. package/dist/runtime/components/InputNumber.vue +4 -5
  97. package/dist/runtime/components/InputNumber.vue.d.ts +10 -430
  98. package/dist/runtime/components/Kbd.vue +6 -5
  99. package/dist/runtime/components/Kbd.vue.d.ts +6 -60
  100. package/dist/runtime/components/Link.vue +12 -11
  101. package/dist/runtime/components/Modal.vue +5 -6
  102. package/dist/runtime/components/Modal.vue.d.ts +13 -216
  103. package/dist/runtime/components/Navbar.vue +6 -6
  104. package/dist/runtime/components/Navbar.vue.d.ts +5 -60
  105. package/dist/runtime/components/NavbarDivider.vue +6 -6
  106. package/dist/runtime/components/NavbarDivider.vue.d.ts +5 -60
  107. package/dist/runtime/components/NavbarSection.vue +6 -6
  108. package/dist/runtime/components/NavbarSection.vue.d.ts +5 -60
  109. package/dist/runtime/components/NavbarSpacer.vue +6 -6
  110. package/dist/runtime/components/NavbarSpacer.vue.d.ts +5 -60
  111. package/dist/runtime/components/NavigationMenu.vue +4 -5
  112. package/dist/runtime/components/NavigationMenu.vue.d.ts +11 -676
  113. package/dist/runtime/components/Popover.vue +5 -6
  114. package/dist/runtime/components/Popover.vue.d.ts +7 -75
  115. package/dist/runtime/components/Progress.vue +5 -6
  116. package/dist/runtime/components/Progress.vue.d.ts +11 -500
  117. package/dist/runtime/components/RadioGroup.vue +5 -6
  118. package/dist/runtime/components/RadioGroup.vue.d.ts +9 -644
  119. package/dist/runtime/components/Range.vue +5 -6
  120. package/dist/runtime/components/Range.vue.d.ts +7 -351
  121. package/dist/runtime/components/Select.vue +4 -5
  122. package/dist/runtime/components/Select.vue.d.ts +15 -1046
  123. package/dist/runtime/components/SelectMenu.vue +4 -5
  124. package/dist/runtime/components/SelectMenu.vue.d.ts +17 -1098
  125. package/dist/runtime/components/Separator.vue +5 -6
  126. package/dist/runtime/components/Separator.vue.d.ts +9 -332
  127. package/dist/runtime/components/Sidebar.vue +6 -6
  128. package/dist/runtime/components/Sidebar.vue.d.ts +5 -60
  129. package/dist/runtime/components/SidebarBody.vue +5 -6
  130. package/dist/runtime/components/SidebarBody.vue.d.ts +5 -42
  131. package/dist/runtime/components/SidebarFooter.vue +6 -6
  132. package/dist/runtime/components/SidebarFooter.vue.d.ts +5 -60
  133. package/dist/runtime/components/SidebarHeader.vue +6 -6
  134. package/dist/runtime/components/SidebarHeader.vue.d.ts +5 -60
  135. package/dist/runtime/components/SidebarHeading.vue +6 -6
  136. package/dist/runtime/components/SidebarHeading.vue.d.ts +5 -60
  137. package/dist/runtime/components/SidebarLayout.vue +6 -7
  138. package/dist/runtime/components/SidebarLayout.vue.d.ts +5 -162
  139. package/dist/runtime/components/SidebarSection.vue +6 -6
  140. package/dist/runtime/components/SidebarSection.vue.d.ts +5 -60
  141. package/dist/runtime/components/SidebarSpacer.vue +6 -6
  142. package/dist/runtime/components/SidebarSpacer.vue.d.ts +5 -60
  143. package/dist/runtime/components/Skeleton.vue +6 -5
  144. package/dist/runtime/components/Slideover.vue +5 -6
  145. package/dist/runtime/components/Slideover.vue.d.ts +15 -248
  146. package/dist/runtime/components/StackedLayout.vue +6 -7
  147. package/dist/runtime/components/StackedLayout.vue.d.ts +5 -132
  148. package/dist/runtime/components/Switch.vue +4 -5
  149. package/dist/runtime/components/Switch.vue.d.ts +7 -517
  150. package/dist/runtime/components/Tabs.vue +8 -5
  151. package/dist/runtime/components/Tabs.vue.d.ts +18 -367
  152. package/dist/runtime/components/Textarea.vue +4 -5
  153. package/dist/runtime/components/Textarea.vue.d.ts +7 -467
  154. package/dist/runtime/components/Toast.vue +5 -6
  155. package/dist/runtime/components/Toast.vue.d.ts +11 -354
  156. package/dist/runtime/components/Toaster.vue +6 -7
  157. package/dist/runtime/components/Toaster.vue.d.ts +7 -156
  158. package/dist/runtime/components/Tooltip.vue +5 -6
  159. package/dist/runtime/components/Tooltip.vue.d.ts +5 -126
  160. package/dist/runtime/components/content/TableWrapper.vue +5 -6
  161. package/dist/runtime/components/content/TableWrapper.vue.d.ts +6 -160
  162. package/dist/runtime/prose/A.vue +10 -9
  163. package/dist/runtime/prose/A.vue.d.ts +8 -65
  164. package/dist/runtime/prose/Blockquote.vue +8 -9
  165. package/dist/runtime/prose/Blockquote.vue.d.ts +8 -65
  166. package/dist/runtime/prose/Code.vue +6 -6
  167. package/dist/runtime/prose/Code.vue.d.ts +9 -75
  168. package/dist/runtime/prose/Em.vue +10 -9
  169. package/dist/runtime/prose/Em.vue.d.ts +8 -65
  170. package/dist/runtime/prose/H1.vue +8 -9
  171. package/dist/runtime/prose/H1.vue.d.ts +8 -78
  172. package/dist/runtime/prose/H2.vue +8 -9
  173. package/dist/runtime/prose/H2.vue.d.ts +8 -104
  174. package/dist/runtime/prose/H3.vue +8 -9
  175. package/dist/runtime/prose/H3.vue.d.ts +8 -104
  176. package/dist/runtime/prose/H4.vue +8 -9
  177. package/dist/runtime/prose/H4.vue.d.ts +8 -104
  178. package/dist/runtime/prose/H5.vue +8 -9
  179. package/dist/runtime/prose/H5.vue.d.ts +8 -104
  180. package/dist/runtime/prose/H6.vue +8 -9
  181. package/dist/runtime/prose/H6.vue.d.ts +8 -104
  182. package/dist/runtime/prose/Hr.vue +7 -9
  183. package/dist/runtime/prose/Hr.vue.d.ts +7 -62
  184. package/dist/runtime/prose/Img.vue +7 -9
  185. package/dist/runtime/prose/Img.vue.d.ts +7 -65
  186. package/dist/runtime/prose/Li.vue +8 -9
  187. package/dist/runtime/prose/Li.vue.d.ts +8 -65
  188. package/dist/runtime/prose/Ol.vue +8 -9
  189. package/dist/runtime/prose/Ol.vue.d.ts +8 -65
  190. package/dist/runtime/prose/P.vue +8 -9
  191. package/dist/runtime/prose/P.vue.d.ts +8 -65
  192. package/dist/runtime/prose/Pre.vue +7 -6
  193. package/dist/runtime/prose/Pre.vue.d.ts +10 -80
  194. package/dist/runtime/prose/Strong.vue +8 -9
  195. package/dist/runtime/prose/Strong.vue.d.ts +8 -65
  196. package/dist/runtime/prose/Table.vue +8 -9
  197. package/dist/runtime/prose/Table.vue.d.ts +10 -80
  198. package/dist/runtime/prose/Tbody.vue +8 -9
  199. package/dist/runtime/prose/Tbody.vue.d.ts +8 -65
  200. package/dist/runtime/prose/Td.vue +8 -9
  201. package/dist/runtime/prose/Td.vue.d.ts +8 -65
  202. package/dist/runtime/prose/Th.vue +8 -9
  203. package/dist/runtime/prose/Th.vue.d.ts +8 -65
  204. package/dist/runtime/prose/Thead.vue +8 -9
  205. package/dist/runtime/prose/Thead.vue.d.ts +8 -65
  206. package/dist/runtime/prose/Tr.vue +8 -9
  207. package/dist/runtime/prose/Tr.vue.d.ts +8 -65
  208. package/dist/runtime/prose/Ul.vue +8 -9
  209. package/dist/runtime/prose/Ul.vue.d.ts +8 -65
  210. package/dist/runtime/types/form.d.ts +1 -0
  211. package/dist/runtime/types/utils.d.ts +42 -3
  212. package/dist/runtime/utils/tv.js +2 -2
  213. package/dist/runtime/vue/components/Link.vue +12 -11
  214. package/dist/shared/{b24ui-nuxt.BA6Y2FnC.mjs → b24ui-nuxt.wBs9vEU5.mjs} +27 -2
  215. package/dist/unplugin.mjs +1 -1
  216. package/dist/vite.mjs +1 -1
  217. package/package.json +6 -6
@@ -1,3 +1,5 @@
1
+ import template from "/home/runner/work/b24ui/b24ui/src/theme/navigation-menu"
2
+
1
3
  const color = [
2
4
  "default",
3
5
  "danger",
@@ -35,7 +37,11 @@ const contentOrientation = [
35
37
  "vertical"
36
38
  ] as const
37
39
 
38
- export default {
40
+ const result = typeof template === 'function' ? (template as Function)({
41
+ "colorMode": true
42
+ }) : template
43
+
44
+ const theme = {
39
45
  "slots": {
40
46
  "root": "relative flex [&>div]:min-w-0 font-b24-secondary",
41
47
  "list": "isolate min-w-0",
@@ -819,4 +825,6 @@ export default {
819
825
  "contentOrientation": "vertical" as typeof contentOrientation[number],
820
826
  "variant": "link" as typeof variant[number]
821
827
  }
822
- }
828
+ }
829
+
830
+ export default result as typeof theme
@@ -1,6 +1,14 @@
1
- export default {
1
+ import template from "/home/runner/work/b24ui/b24ui/src/theme/popover"
2
+
3
+ const result = typeof template === 'function' ? (template as Function)({
4
+ "colorMode": true
5
+ }) : template
6
+
7
+ const theme = {
2
8
  "slots": {
3
9
  "content": "bg-white dark:bg-base-dark shadow-lg rounded-2xs ring ring-base-300 dark:ring-base-800 motion-safe:data-[state=open]:animate-[scale-in_100ms_ease-out] motion-safe:data-[state=closed]:animate-[scale-out_100ms_ease-in] focus:outline-none pointer-events-auto",
4
10
  "arrow": "fill-white dark:fill-base-dark stroke-base-300 dark:stroke-base-800"
5
11
  }
6
- }
12
+ }
13
+
14
+ export default result as typeof theme
@@ -1,3 +1,5 @@
1
+ import template from "/home/runner/work/b24ui/b24ui/src/theme/progress"
2
+
1
3
  const animation = [
2
4
  "loading",
3
5
  "carousel",
@@ -36,7 +38,11 @@ const orientation = [
36
38
  "vertical"
37
39
  ] as const
38
40
 
39
- export default {
41
+ const result = typeof template === 'function' ? (template as Function)({
42
+ "colorMode": true
43
+ }) : template
44
+
45
+ const theme = {
40
46
  "slots": {
41
47
  "root": "gap-2",
42
48
  "base": "relative overflow-hidden rounded-full bg-base-200 dark:bg-base-800",
@@ -300,4 +306,6 @@ export default {
300
306
  "color": "primary" as typeof color[number],
301
307
  "size": "md" as typeof size[number]
302
308
  }
303
- }
309
+ }
310
+
311
+ export default result as typeof theme
@@ -1,3 +1,5 @@
1
+ import template from "/home/runner/work/b24ui/b24ui/src/theme/radio-group"
2
+
1
3
  const color = [
2
4
  "default",
3
5
  "danger",
@@ -33,7 +35,11 @@ const size = [
33
35
  "lg"
34
36
  ] as const
35
37
 
36
- export default {
38
+ const result = typeof template === 'function' ? (template as Function)({
39
+ "colorMode": true
40
+ }) : template
41
+
42
+ const theme = {
37
43
  "slots": {
38
44
  "root": "relative",
39
45
  "fieldset": "flex",
@@ -340,4 +346,6 @@ export default {
340
346
  "orientation": "vertical" as typeof orientation[number],
341
347
  "indicator": "start" as typeof indicator[number]
342
348
  }
343
- }
349
+ }
350
+
351
+ export default result as typeof theme
@@ -1,3 +1,5 @@
1
+ import template from "/home/runner/work/b24ui/b24ui/src/theme/range"
2
+
1
3
  const color = [
2
4
  "default",
3
5
  "danger",
@@ -21,7 +23,11 @@ const orientation = [
21
23
  "vertical"
22
24
  ] as const
23
25
 
24
- export default {
26
+ const result = typeof template === 'function' ? (template as Function)({
27
+ "colorMode": true
28
+ }) : template
29
+
30
+ const theme = {
25
31
  "slots": {
26
32
  "root": "relative flex items-center select-none touch-none",
27
33
  "track": "relative bg-base-200 dark:bg-base-800 overflow-hidden rounded-full grow",
@@ -169,4 +175,6 @@ export default {
169
175
  "size": "md" as typeof size[number],
170
176
  "color": "primary" as typeof color[number]
171
177
  }
172
- }
178
+ }
179
+
180
+ export default result as typeof theme
@@ -1,3 +1,5 @@
1
+ import template from "/home/runner/work/b24ui/b24ui/src/theme/select-menu"
2
+
1
3
  const buttonGroup = [
2
4
  "horizontal",
3
5
  "vertical"
@@ -47,7 +49,11 @@ const colorItem = [
47
49
  "ai"
48
50
  ] as const
49
51
 
50
- export default {
52
+ const result = typeof template === 'function' ? (template as Function)({
53
+ "colorMode": true
54
+ }) : template
55
+
56
+ const theme = {
51
57
  "slots": {
52
58
  "root": "isolate relative inline-flex items-center w-full",
53
59
  "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",
@@ -557,4 +563,6 @@ export default {
557
563
  "color": "primary" as typeof color[number],
558
564
  "tagColor": "primary" as typeof tagColor[number]
559
565
  }
560
- }
566
+ }
567
+
568
+ export default result as typeof theme
@@ -1,3 +1,5 @@
1
+ import template from "/home/runner/work/b24ui/b24ui/src/theme/select"
2
+
1
3
  const buttonGroup = [
2
4
  "horizontal",
3
5
  "vertical"
@@ -47,7 +49,11 @@ const colorItem = [
47
49
  "ai"
48
50
  ] as const
49
51
 
50
- export default {
52
+ const result = typeof template === 'function' ? (template as Function)({
53
+ "colorMode": true
54
+ }) : template
55
+
56
+ const theme = {
51
57
  "slots": {
52
58
  "root": "isolate relative inline-flex items-center w-full",
53
59
  "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",
@@ -547,4 +553,6 @@ export default {
547
553
  "color": "primary" as typeof color[number],
548
554
  "tagColor": "primary" as typeof tagColor[number]
549
555
  }
550
- }
556
+ }
557
+
558
+ export default result as typeof theme
@@ -1,3 +1,5 @@
1
+ import template from "/home/runner/work/b24ui/b24ui/src/theme/separator"
2
+
1
3
  const color = [
2
4
  "default",
3
5
  "danger",
@@ -28,7 +30,11 @@ const type = [
28
30
  "dotted"
29
31
  ] as const
30
32
 
31
- export default {
33
+ const result = typeof template === 'function' ? (template as Function)({
34
+ "colorMode": true
35
+ }) : template
36
+
37
+ const theme = {
32
38
  "slots": {
33
39
  "root": "flex items-center align-center text-center",
34
40
  "border": "",
@@ -173,4 +179,6 @@ export default {
173
179
  "size": "xs" as typeof size[number],
174
180
  "type": "solid" as typeof type[number]
175
181
  }
176
- }
182
+ }
183
+
184
+ export default result as typeof theme
@@ -1,4 +1,10 @@
1
- export default {
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 = {
2
8
  "slots": {
3
9
  "root": "py-4 flex flex-1 flex-col overflow-y-auto [&>[data-slot=section]+[data-slot=section]]:mt-8"
4
10
  },
@@ -12,4 +18,6 @@ export default {
12
18
  "defaultVariants": {
13
19
  "scrollbarThin": true
14
20
  }
15
- }
21
+ }
22
+
23
+ export default result as typeof theme
@@ -1,5 +1,13 @@
1
- export default {
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 = {
2
8
  "slots": {
3
9
  "root": "py-4 flex flex-col max-lg:hidden [&>[data-slot=section]+[data-slot=section]]:mt-2.5"
4
10
  }
5
- }
11
+ }
12
+
13
+ export default result as typeof theme
@@ -1,5 +1,13 @@
1
- export default {
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 = {
2
8
  "slots": {
3
9
  "root": "py-4 flex flex-col [&>[data-slot=section]+[data-slot=section]]:mt-2.5"
4
10
  }
5
- }
11
+ }
12
+
13
+ export default result as typeof theme
@@ -1,5 +1,13 @@
1
- export default {
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 = {
2
8
  "slots": {
3
9
  "root": "mb-1 text-xs/6 font-medium text-base-500 dark:text-base-400"
4
10
  }
5
- }
11
+ }
12
+
13
+ export default result as typeof theme
@@ -1,4 +1,10 @@
1
- export default {
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 = {
2
8
  "slots": {
3
9
  "root": "min-h-svh w-full flex max-lg:flex-col relative isolate",
4
10
  "sidebar": "w-[240px] pr-[3px] fixed inset-y-0 left-0 max-lg:hidden",
@@ -37,4 +43,6 @@ export default {
37
43
  "defaultVariants": {
38
44
  "useLightContent": true
39
45
  }
40
- }
46
+ }
47
+
48
+ export default result as typeof theme
@@ -1,5 +1,13 @@
1
- export default {
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 = {
2
8
  "slots": {
3
9
  "root": "ps-2xl pe-xs flex flex-col gap-0.5"
4
10
  }
5
- }
11
+ }
12
+
13
+ export default result as typeof theme
@@ -1,5 +1,13 @@
1
- export default {
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 = {
2
8
  "slots": {
3
9
  "root": "mt-8 flex-1"
4
10
  }
5
- }
11
+ }
12
+
13
+ export default result as typeof theme
@@ -1,5 +1,13 @@
1
- export default {
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 = {
2
8
  "slots": {
3
9
  "root": "h-full min-h-0 flex flex-col"
4
10
  }
5
- }
11
+ }
12
+
13
+ export default result as typeof theme
@@ -1,3 +1,11 @@
1
- export default {
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 = {
2
8
  "base": "animate-pulse rounded-md bg-gray-200 dark:bg-gray-800"
3
- }
9
+ }
10
+
11
+ export default result as typeof theme
@@ -1,3 +1,5 @@
1
+ import template from "/home/runner/work/b24ui/b24ui/src/theme/slideover"
2
+
1
3
  const overlayBlur = [
2
4
  "auto",
3
5
  "on",
@@ -11,7 +13,11 @@ const side = [
11
13
  "left"
12
14
  ] as const
13
15
 
14
- export default {
16
+ const result = typeof template === 'function' ? (template as Function)({
17
+ "colorMode": true
18
+ }) : template
19
+
20
+ const theme = {
15
21
  "slots": {
16
22
  "overlay": "fixed inset-0 bg-base-950/20 dark:bg-base-950/30",
17
23
  "content": "fixed bg-base-50 dark:bg-base-950 sm:shadow-lg flex flex-col focus:outline-none",
@@ -117,4 +123,6 @@ export default {
117
123
  "scrollbarThin": true,
118
124
  "overlayBlur": "auto" as typeof overlayBlur[number]
119
125
  }
120
- }
126
+ }
127
+
128
+ export default result as typeof theme
@@ -1,4 +1,10 @@
1
- export default {
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 = {
2
8
  "slots": {
3
9
  "root": "min-h-svh w-full flex flex-col lg:px-2 relative isolate",
4
10
  "sidebarSlideoverContainer": "max-w-80 p-2 bg-transparent dark:bg-transparent sm:shadow-none",
@@ -31,4 +37,6 @@ export default {
31
37
  "defaultVariants": {
32
38
  "useLightContent": true
33
39
  }
34
- }
40
+ }
41
+
42
+ export default result as typeof theme
@@ -1,3 +1,5 @@
1
+ import template from "/home/runner/work/b24ui/b24ui/src/theme/switch"
2
+
1
3
  const color = [
2
4
  "default",
3
5
  "danger",
@@ -16,7 +18,11 @@ const size = [
16
18
  "lg"
17
19
  ] as const
18
20
 
19
- export default {
21
+ const result = typeof template === 'function' ? (template as Function)({
22
+ "colorMode": true
23
+ }) : template
24
+
25
+ const theme = {
20
26
  "slots": {
21
27
  "root": "relative flex items-start",
22
28
  "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",
@@ -125,4 +131,6 @@ export default {
125
131
  "color": "primary" as typeof color[number],
126
132
  "size": "md" as typeof size[number]
127
133
  }
128
- }
134
+ }
135
+
136
+ export default result as typeof theme
@@ -1,3 +1,5 @@
1
+ import template from "/home/runner/work/b24ui/b24ui/src/theme/tabs"
2
+
1
3
  const color = [
2
4
  "default",
3
5
  "danger",
@@ -27,7 +29,11 @@ const size = [
27
29
  "xl"
28
30
  ] as const
29
31
 
30
- export default {
32
+ const result = typeof template === 'function' ? (template as Function)({
33
+ "colorMode": true
34
+ }) : template
35
+
36
+ const theme = {
31
37
  "slots": {
32
38
  "root": "flex items-center gap-2",
33
39
  "list": "relative flex p-1 group",
@@ -331,4 +337,6 @@ export default {
331
337
  "variant": "link" as typeof variant[number],
332
338
  "size": "md" as typeof size[number]
333
339
  }
334
- }
340
+ }
341
+
342
+ export default result as typeof theme
@@ -1,3 +1,5 @@
1
+ import template from "/home/runner/work/b24ui/b24ui/src/theme/textarea"
2
+
1
3
  const buttonGroup = [
2
4
  "horizontal",
3
5
  "vertical"
@@ -25,7 +27,11 @@ const tagColor = [
25
27
  "ai"
26
28
  ] as const
27
29
 
28
- export default {
30
+ const result = typeof template === 'function' ? (template as Function)({
31
+ "colorMode": true
32
+ }) : template
33
+
34
+ const theme = {
29
35
  "slots": {
30
36
  "root": "isolate relative inline-flex items-center w-full",
31
37
  "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",
@@ -357,4 +363,6 @@ export default {
357
363
  "color": "primary" as typeof color[number],
358
364
  "tagColor": "primary" as typeof tagColor[number]
359
365
  }
360
- }
366
+ }
367
+
368
+ export default result as typeof theme
@@ -1,3 +1,5 @@
1
+ import template from "/home/runner/work/b24ui/b24ui/src/theme/toast"
2
+
1
3
  const color = [
2
4
  "default",
3
5
  "danger",
@@ -14,7 +16,11 @@ const orientation = [
14
16
  "vertical"
15
17
  ] as const
16
18
 
17
- export default {
19
+ const result = typeof template === 'function' ? (template as Function)({
20
+ "colorMode": true
21
+ }) : template
22
+
23
+ const theme = {
18
24
  "slots": {
19
25
  "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",
20
26
  "wrapper": "w-0 flex-1 flex flex-col",
@@ -89,4 +95,6 @@ export default {
89
95
  "defaultVariants": {
90
96
  "color": "default" as typeof color[number]
91
97
  }
92
- }
98
+ }
99
+
100
+ export default result as typeof theme
@@ -1,3 +1,5 @@
1
+ import template from "/home/runner/work/b24ui/b24ui/src/theme/toaster"
2
+
1
3
  const position = [
2
4
  "top-left",
3
5
  "top-center",
@@ -14,7 +16,11 @@ const swipeDirection = [
14
16
  "left"
15
17
  ] as const
16
18
 
17
- export default {
19
+ const result = typeof template === 'function' ? (template as Function)({
20
+ "colorMode": true
21
+ }) : template
22
+
23
+ const theme = {
18
24
  "slots": {
19
25
  "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)",
20
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"
@@ -88,4 +94,6 @@ export default {
88
94
  "defaultVariants": {
89
95
  "position": "top-right" as typeof position[number]
90
96
  }
91
- }
97
+ }
98
+
99
+ export default result as typeof theme
@@ -1,4 +1,10 @@
1
- export default {
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 = {
2
8
  "slots": {
3
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 pointer-events-auto",
4
10
  "arrow": "fill-base-dark dark:fill-base-100/20",
@@ -7,4 +13,6 @@ export default {
7
13
  "kbdsSize": "sm",
8
14
  "kbdsDepth": "normal"
9
15
  }
10
- }
16
+ }
17
+
18
+ export default result as typeof theme
package/cli/templates.mjs CHANGED
@@ -39,13 +39,10 @@ const component = ({ name, primitive, pro, prose, content }) => {
39
39
  ? replaceBrackets(`
40
40
  [[script lang="ts"]]
41
41
  import type { AppConfig } from '@nuxt/schema'
42
- import _appConfig from '#build/app.config'
43
42
  import theme from '#build/${path}/${prose ? 'prose/' : ''}${content ? 'content/' : ''}${kebabName}'
44
- import { tv } from '../utils/tv'
45
-
46
- const appConfig${camelName} = _appConfig as AppConfig & { ${key}: { ${prose ? 'prose: { ' : ''}${camelName}: Partial<typeof theme> } }${prose ? ' }' : ''}
43
+ import type { ComponentConfig } from '../types/utils'
47
44
 
48
- const ${camelName} = tv({ extend: tv(theme), ...(appConfig${camelName}.${key}?.${prose ? 'prose?.' : ''}${camelName} || {}) })
45
+ type ${upperName} = ComponentConfig<typeof theme, AppConfig, ${upperName}>
49
46
 
50
47
  export interface ${upperName}Props {
51
48
  /**
@@ -54,7 +51,7 @@ export interface ${upperName}Props {
54
51
  */
55
52
  as?: any
56
53
  class?: any
57
- b24ui?: Partial<typeof ${camelName}.slots>
54
+ b24ui?: ${upperName}['slots']
58
55
  }
59
56
 
60
57
  export interface ${upperName}Slots {
@@ -63,12 +60,17 @@ export interface ${upperName}Slots {
63
60
  [[/script]]
64
61
 
65
62
  [[script setup lang="ts"]]
63
+ import { computed } from 'vue'
66
64
  import { Primitive } from 'reka-ui'
65
+ import { useAppConfig } from '#imports'
66
+ import { tv } from '../utils/tv'
67
67
 
68
68
  const props = defineProps<${upperName}Props>()
69
69
  defineSlots<${upperName}Slots>()
70
70
 
71
- const b24ui = ${camelName}()
71
+ const appConfig = useAppConfig() as ${upperName}['AppConfig']
72
+
73
+ const b24ui = computed(() => tv({ extend: tv(theme), ...(appConfig.b24ui?.${camelName} || {}) })())
72
74
  [[/script]]
73
75
 
74
76
  [[template]]
@@ -79,22 +81,18 @@ const b24ui = ${camelName}()
79
81
  `)
80
82
  : replaceBrackets(`
81
83
  [[script lang="ts"]]
82
- import type { VariantProps } from 'tailwind-variants'
83
84
  import type { ${upperName}RootProps, ${upperName}RootEmits } from 'reka-ui'
84
85
  import type { AppConfig } from '@nuxt/schema'
85
- import _appConfig from '#build/app.config'
86
86
  import theme from '#build/${path}/${prose ? 'prose/' : ''}${content ? 'content/' : ''}${kebabName}'
87
- import { tv } from '../utils/tv'
87
+ import type { ComponentConfig } from '../types/utils'
88
88
 
89
89
  const appConfig${camelName} = _appConfig as AppConfig & { ${key}: { ${prose ? 'prose: { ' : ''}${camelName}: Partial[[typeof theme]] } }${prose ? ' }' : ''}
90
90
 
91
- const ${camelName} = tv({ extend: tv(theme), ...(appConfig${camelName}.${key}?.${prose ? 'prose?.' : ''}${camelName} || {}) })
92
-
93
- type ${upperName}Variants = VariantProps[[typeof ${camelName}]]
91
+ type ${upperName} = ComponentConfig<typeof theme, AppConfig, ${upperName}>
94
92
 
95
93
  export interface ${upperName}Props extends Pick[[${upperName}RootProps]] {
96
94
  class?: any
97
- b24ui?: Partial[[typeof ${camelName}.slots]]
95
+ b24ui?: ${upperName}['slots']
98
96
  }
99
97
 
100
98
  export interface ${upperName}Emits extends ${upperName}RootEmits {}
@@ -103,16 +101,22 @@ export interface ${upperName}Slots {}
103
101
  [[/script]]
104
102
 
105
103
  [[script setup lang="ts"]]
104
+
105
+
106
106
  import { ${upperName}Root, useForwardPropsEmits } from 'reka-ui'
107
107
  import { reactivePick } from '@vueuse/core'
108
+ import { useAppConfig } from '#imports'
109
+ import { tv } from '../utils/tv'
108
110
 
109
111
  const props = defineProps<${upperName}Props>()
110
112
  const emits = defineEmits<${upperName}Emits>()
111
113
  const slots = defineSlots<${upperName}Slots>()
112
114
 
115
+ const appConfig = useAppConfig() as ${upperName}['AppConfig']
116
+
113
117
  const rootProps = useForwardPropsEmits(reactivePick(props), emits)
114
118
 
115
- const b24ui = ${camelName}()
119
+ const b24ui = computed(() => tv({ extend: tv(theme), ...(appConfig.b24ui?.${camelName} || {}) })())
116
120
  [[/script]]
117
121
 
118
122
  [[template]]