@bitrix24/b24ui-nuxt 0.6.8 → 0.7.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 (201) 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 +3 -11
  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 +35333 -15836
  58. package/dist/meta.mjs +35333 -15836
  59. package/dist/module.json +1 -1
  60. package/dist/module.mjs +11 -3
  61. package/dist/runtime/air-design-tokens.css +1 -0
  62. package/dist/runtime/components/Accordion.vue +96 -0
  63. package/dist/runtime/components/Accordion.vue.d.ts +78 -0
  64. package/dist/runtime/components/Advice.vue +1 -1
  65. package/dist/runtime/components/Alert.vue +1 -1
  66. package/dist/runtime/components/App.vue +1 -1
  67. package/dist/runtime/components/Avatar.vue +11 -3
  68. package/dist/runtime/components/Avatar.vue.d.ts +2 -1
  69. package/dist/runtime/components/AvatarGroup.vue +1 -1
  70. package/dist/runtime/components/Badge.vue +5 -3
  71. package/dist/runtime/components/Badge.vue.d.ts +2 -0
  72. package/dist/runtime/components/Button.vue +2 -3
  73. package/dist/runtime/components/Button.vue.d.ts +1 -1
  74. package/dist/runtime/components/Calendar.vue +1 -1
  75. package/dist/runtime/components/Checkbox.vue +13 -4
  76. package/dist/runtime/components/Checkbox.vue.d.ts +9 -0
  77. package/dist/runtime/components/Chip.vue +1 -1
  78. package/dist/runtime/components/Collapsible.vue +1 -1
  79. package/dist/runtime/components/Countdown.vue +1 -1
  80. package/dist/runtime/components/Countdown.vue.d.ts +2 -2
  81. package/dist/runtime/components/DescriptionList.vue +3 -2
  82. package/dist/runtime/components/DescriptionList.vue.d.ts +1 -1
  83. package/dist/runtime/components/DropdownMenu.vue +1 -1
  84. package/dist/runtime/components/DropdownMenu.vue.d.ts +2 -0
  85. package/dist/runtime/components/DropdownMenuContent.vue +74 -72
  86. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +4 -20
  87. package/dist/runtime/components/Form.vue +6 -6
  88. package/dist/runtime/components/Form.vue.d.ts +12 -11
  89. package/dist/runtime/components/FormField.vue +4 -4
  90. package/dist/runtime/components/Input.vue +12 -8
  91. package/dist/runtime/components/Input.vue.d.ts +31 -30
  92. package/dist/runtime/components/InputMenu.vue +23 -20
  93. package/dist/runtime/components/InputMenu.vue.d.ts +6 -4
  94. package/dist/runtime/components/InputNumber.vue +17 -10
  95. package/dist/runtime/components/InputNumber.vue.d.ts +6 -3
  96. package/dist/runtime/components/Link.vue +5 -13
  97. package/dist/runtime/components/Modal.vue +22 -14
  98. package/dist/runtime/components/Modal.vue.d.ts +18 -5
  99. package/dist/runtime/components/Navbar.vue +1 -1
  100. package/dist/runtime/components/NavbarDivider.vue +1 -1
  101. package/dist/runtime/components/NavbarSection.vue +1 -1
  102. package/dist/runtime/components/NavbarSpacer.vue +1 -1
  103. package/dist/runtime/components/NavigationMenu.vue +186 -44
  104. package/dist/runtime/components/NavigationMenu.vue.d.ts +39 -8
  105. package/dist/runtime/components/OverlayProvider.vue +2 -2
  106. package/dist/runtime/components/Popover.vue +4 -0
  107. package/dist/runtime/components/Popover.vue.d.ts +2 -1
  108. package/dist/runtime/components/Progress.vue +3 -2
  109. package/dist/runtime/components/Progress.vue.d.ts +2 -2
  110. package/dist/runtime/components/RadioGroup.vue +24 -8
  111. package/dist/runtime/components/RadioGroup.vue.d.ts +3 -1
  112. package/dist/runtime/components/Range.vue +2 -2
  113. package/dist/runtime/components/Range.vue.d.ts +19 -20
  114. package/dist/runtime/components/Select.vue +57 -31
  115. package/dist/runtime/components/Select.vue.d.ts +110 -2
  116. package/dist/runtime/components/SelectMenu.vue +77 -23
  117. package/dist/runtime/components/SelectMenu.vue.d.ts +111 -5
  118. package/dist/runtime/components/Separator.vue +3 -3
  119. package/dist/runtime/components/Sidebar.vue +1 -1
  120. package/dist/runtime/components/SidebarBody.vue +1 -1
  121. package/dist/runtime/components/SidebarFooter.vue +1 -1
  122. package/dist/runtime/components/SidebarHeader.vue +1 -1
  123. package/dist/runtime/components/SidebarHeading.vue +1 -1
  124. package/dist/runtime/components/SidebarLayout.vue +1 -1
  125. package/dist/runtime/components/SidebarSection.vue +1 -1
  126. package/dist/runtime/components/SidebarSpacer.vue +1 -1
  127. package/dist/runtime/components/Slideover.vue +23 -15
  128. package/dist/runtime/components/Slideover.vue.d.ts +18 -5
  129. package/dist/runtime/components/StackedLayout.vue +1 -1
  130. package/dist/runtime/components/Switch.vue +1 -1
  131. package/dist/runtime/components/Tabs.vue +28 -7
  132. package/dist/runtime/components/Tabs.vue.d.ts +6 -1
  133. package/dist/runtime/components/Textarea.vue +13 -9
  134. package/dist/runtime/components/Textarea.vue.d.ts +31 -30
  135. package/dist/runtime/components/Toast.vue +7 -6
  136. package/dist/runtime/components/Toast.vue.d.ts +6 -0
  137. package/dist/runtime/components/Toaster.vue +4 -4
  138. package/dist/runtime/components/Toaster.vue.d.ts +6 -0
  139. package/dist/runtime/components/Tooltip.vue +9 -2
  140. package/dist/runtime/components/Tooltip.vue.d.ts +2 -1
  141. package/dist/runtime/components/content/TableWrapper.vue +1 -1
  142. package/dist/runtime/composables/defineLocale.d.ts +2 -0
  143. package/dist/runtime/composables/defineLocale.js +4 -0
  144. package/dist/runtime/composables/defineShortcuts.js +8 -2
  145. package/dist/runtime/composables/useFormField.d.ts +1 -1
  146. package/dist/runtime/composables/useFormField.js +2 -1
  147. package/dist/runtime/composables/useKbd.d.ts +1 -0
  148. package/dist/runtime/composables/useKbd.js +4 -3
  149. package/dist/runtime/composables/useOverlay.d.ts +11 -11
  150. package/dist/runtime/composables/useOverlay.js +17 -11
  151. package/dist/runtime/index.css +1 -1
  152. package/dist/runtime/inertia/components/Link.vue +45 -60
  153. package/dist/runtime/inertia/components/Link.vue.d.ts +1 -1
  154. package/dist/runtime/inertia/components/LinkBase.vue +68 -0
  155. package/dist/runtime/inertia/components/LinkBase.vue.d.ts +25 -0
  156. package/dist/runtime/inertia/stubs.d.ts +1 -1
  157. package/dist/runtime/inertia/stubs.js +1 -1
  158. package/dist/runtime/prose/A.vue +1 -1
  159. package/dist/runtime/prose/Blockquote.vue +1 -1
  160. package/dist/runtime/prose/Code.vue +1 -1
  161. package/dist/runtime/prose/Em.vue +1 -1
  162. package/dist/runtime/prose/H1.vue +1 -1
  163. package/dist/runtime/prose/H2.vue +1 -1
  164. package/dist/runtime/prose/H3.vue +1 -1
  165. package/dist/runtime/prose/H4.vue +1 -1
  166. package/dist/runtime/prose/H5.vue +1 -1
  167. package/dist/runtime/prose/H6.vue +1 -1
  168. package/dist/runtime/prose/Hr.vue +1 -1
  169. package/dist/runtime/prose/Img.vue +1 -1
  170. package/dist/runtime/prose/Li.vue +1 -1
  171. package/dist/runtime/prose/Ol.vue +1 -1
  172. package/dist/runtime/prose/P.vue +1 -1
  173. package/dist/runtime/prose/Pre.vue +1 -1
  174. package/dist/runtime/prose/Strong.vue +1 -1
  175. package/dist/runtime/prose/Table.vue +1 -1
  176. package/dist/runtime/prose/Tbody.vue +1 -1
  177. package/dist/runtime/prose/Td.vue +1 -1
  178. package/dist/runtime/prose/Th.vue +1 -1
  179. package/dist/runtime/prose/Thead.vue +1 -1
  180. package/dist/runtime/prose/Tr.vue +1 -1
  181. package/dist/runtime/prose/Ul.vue +1 -1
  182. package/dist/runtime/types/form.d.ts +11 -10
  183. package/dist/runtime/types/index.d.ts +1 -0
  184. package/dist/runtime/types/index.js +1 -0
  185. package/dist/runtime/types/locale.d.ts +1 -0
  186. package/dist/runtime/types/tv.d.ts +53 -0
  187. package/dist/runtime/types/tv.js +0 -0
  188. package/dist/runtime/types/utils.d.ts +4 -51
  189. package/dist/runtime/types/utils.js +1 -0
  190. package/dist/runtime/utils/link.d.ts +1 -0
  191. package/dist/runtime/utils/link.js +12 -0
  192. package/dist/runtime/vue/components/Link.vue +26 -40
  193. package/dist/runtime/vue/composables/useAppConfig.js +3 -1
  194. package/dist/runtime/vue/stubs.d.ts +1 -1
  195. package/dist/runtime/vue/stubs.js +1 -1
  196. package/dist/shared/{b24ui-nuxt.jU270f-Q.mjs → b24ui-nuxt.CxsFEY3M.mjs} +268 -122
  197. package/dist/unplugin.d.mts +2 -2
  198. package/dist/unplugin.mjs +6 -3
  199. package/dist/vite.d.mts +1 -1
  200. package/dist/vite.mjs +2 -2
  201. package/package.json +30 -29
@@ -0,0 +1,20 @@
1
+ export default {
2
+ "slots": {
3
+ "root": "w-full",
4
+ "item": "border-b border-default last:border-b-0",
5
+ "header": "flex",
6
+ "trigger": "group flex-1 flex items-center gap-1.5 font-medium text-sm py-3 focus-visible:outline-primary min-w-0 cursor-pointer",
7
+ "content": "motion-safe:data-[state=open]:animate-[accordion-down_200ms_ease-out] motion-safe:data-[state=closed]:animate-[accordion-up_200ms_ease-out] overflow-hidden focus:outline-none",
8
+ "body": "text-sm pb-3",
9
+ "leadingIcon": "shrink-0 size-5",
10
+ "trailingIcon": "shrink-0 size-5 ms-auto group-data-[state=open]:rotate-180 transition-transform duration-200",
11
+ "label": "text-start break-words"
12
+ },
13
+ "variants": {
14
+ "disabled": {
15
+ "true": {
16
+ "trigger": "cursor-not-allowed opacity-75"
17
+ }
18
+ }
19
+ }
20
+ }
@@ -1,15 +1,9 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/advice"
2
-
3
1
  const angle = [
4
2
  "top",
5
3
  "bottom"
6
4
  ] as const
7
5
 
8
- const result = typeof template === 'function' ? (template as Function)({
9
- "colorMode": true
10
- }) : template
11
-
12
- const theme = {
6
+ export default {
13
7
  "slots": {
14
8
  "root": "flex items-end",
15
9
  "descriptionWrapper": "relative",
@@ -38,6 +32,4 @@ const theme = {
38
32
  "defaultVariants": {
39
33
  "angle": "bottom" as typeof angle[number]
40
34
  }
41
- }
42
-
43
- export default result as typeof theme
35
+ }
@@ -1,5 +1,3 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/alert"
2
-
3
1
  const color = [
4
2
  "default",
5
3
  "danger",
@@ -16,16 +14,7 @@ const size = [
16
14
  "md"
17
15
  ] as const
18
16
 
19
- const orientation = [
20
- "horizontal",
21
- "vertical"
22
- ] as const
23
-
24
- const result = typeof template === 'function' ? (template as Function)({
25
- "colorMode": true
26
- }) : template
27
-
28
- const theme = {
17
+ export default {
29
18
  "slots": {
30
19
  "root": "relative overflow-hidden w-full rounded-3xs flex",
31
20
  "wrapper": "min-w-0 flex-1 flex flex-col font-b24-primary font-normal",
@@ -131,6 +120,4 @@ const theme = {
131
120
  "color": "default" as typeof color[number],
132
121
  "size": "md" as typeof size[number]
133
122
  }
134
- }
135
-
136
- export default result as typeof theme
123
+ }
@@ -1,5 +1,3 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/avatar-group"
2
-
3
1
  const size = [
4
2
  "3xs",
5
3
  "2xs",
@@ -12,11 +10,7 @@ const size = [
12
10
  "3xl"
13
11
  ] as const
14
12
 
15
- const result = typeof template === 'function' ? (template as Function)({
16
- "colorMode": true
17
- }) : template
18
-
19
- const theme = {
13
+ export default {
20
14
  "slots": {
21
15
  "root": "inline-flex justify-end",
22
16
  "base": "relative rounded-full ring-white dark:ring-base-700 last:me-0"
@@ -55,6 +49,4 @@ const theme = {
55
49
  "defaultVariants": {
56
50
  "size": "md" as typeof size[number]
57
51
  }
58
- }
59
-
60
- export default result as typeof theme
52
+ }
@@ -1,5 +1,3 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/avatar"
2
-
3
1
  const size = [
4
2
  "3xs",
5
3
  "2xs",
@@ -12,13 +10,9 @@ const size = [
12
10
  "3xl"
13
11
  ] as const
14
12
 
15
- const result = typeof template === 'function' ? (template as Function)({
16
- "colorMode": true
17
- }) : template
18
-
19
- const theme = {
13
+ export default {
20
14
  "slots": {
21
- "root": "inline-flex items-center justify-center shrink-0 select-none overflow-hidden rounded-full align-middle bg-base-100 dark:bg-base-900",
15
+ "root": "inline-flex items-center justify-center shrink-0 select-none rounded-full align-middle bg-base-100 dark:bg-base-900",
22
16
  "image": "h-full w-full rounded-[inherit] object-cover",
23
17
  "fallback": "font-medium text-base-500 dark:text-base-600 truncate",
24
18
  "icon": "text-base-500 shrink-0 dark:text-base-600"
@@ -66,6 +60,4 @@ const theme = {
66
60
  "defaultVariants": {
67
61
  "size": "md" as typeof size[number]
68
62
  }
69
- }
70
-
71
- export default result as typeof theme
63
+ }
@@ -1,5 +1,3 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/badge"
2
-
3
1
  const buttonGroup = [
4
2
  "horizontal",
5
3
  "vertical"
@@ -30,11 +28,7 @@ const size = [
30
28
  "xl"
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
  "base": "select-none font-b24-secondary font-normal inline-flex items-center transition-all duration-200 ease-linear px-2 leading-normal rounded-md",
40
34
  "wrapper": "inline-flex items-center",
@@ -46,8 +40,8 @@ const theme = {
46
40
  },
47
41
  "variants": {
48
42
  "buttonGroup": {
49
- "horizontal": "focus-visible:outline-none ring ring-inset ring-0 focus-visible:ring-2 group-[.is-button-group]/items:not-only:first:rounded-e-none group-[.is-button-group]/items:not-only:last:rounded-s-none group-[.is-button-group]/items:not-last:not-first:rounded-none group-[.is-button-group]/items:not-only:first:border-e-0 group-[.is-button-group]/items:not-only:not-first:border-s-0",
50
- "vertical": "focus-visible:outline-none ring ring-inset ring-0 focus-visible:ring-2 not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none"
43
+ "horizontal": "focus-visible:outline-none ring ring-inset ring-0 focus-visible:ring-2 group-[.is-button-group]/items:not-only:first:rounded-e-none group-[.is-button-group]/items:not-only:last:rounded-s-none group-[.is-button-group]/items:not-last:not-first:rounded-none group-[.is-button-group]/items:not-only:first:border-e-0 group-[.is-button-group]/items:not-only:not-first:border-s-0 focus-visible:z-[1]",
44
+ "vertical": "focus-visible:outline-none ring ring-inset ring-0 focus-visible:ring-2 not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]"
51
45
  },
52
46
  "noSplit": {
53
47
  "false": "group-[.is-button-group]/items:not-only:not-first:after:content-[''] group-[.is-button-group]/items:not-only:not-first:after:absolute group-[.is-button-group]/items:not-only:not-first:after:top-[7px] group-[.is-button-group]/items:not-only:not-first:after:bottom-[6px] group-[.is-button-group]/items:not-only:not-first:after:left-0 group-[.is-button-group]/items:not-only:not-first:after:w-px group-[.is-button-group]/items:not-only:not-first:after:bg-current/30"
@@ -67,7 +61,7 @@ const theme = {
67
61
  "false": "bg-transparent"
68
62
  },
69
63
  "leading": {
70
- "true": "ps-2xs"
64
+ "true": "ps-1"
71
65
  },
72
66
  "color": {
73
67
  "default": "",
@@ -123,6 +117,9 @@ const theme = {
123
117
  "leadingAvatarSize": "xs",
124
118
  "trailingIcon": "size-[26px]"
125
119
  }
120
+ },
121
+ "square": {
122
+ "true": ""
126
123
  }
127
124
  },
128
125
  "compoundVariants": [
@@ -246,6 +243,46 @@ const theme = {
246
243
  "depth": "dark" as typeof depth[number],
247
244
  "class": "ring ring-inset text-white bg-ai-330 ring-ai-330 dark:text-ai-100 dark:bg-ai-400 dark:ring-ai-400"
248
245
  },
246
+ {
247
+ "size": "xs" as typeof size[number],
248
+ "square": true,
249
+ "class": {
250
+ "base": "p-0 ps-0 pe-0",
251
+ "wrapper": "p-0.5 gap-0"
252
+ }
253
+ },
254
+ {
255
+ "size": "sm" as typeof size[number],
256
+ "square": true,
257
+ "class": {
258
+ "base": "p-0 ps-0 pe-0",
259
+ "wrapper": "p-1 gap-0"
260
+ }
261
+ },
262
+ {
263
+ "size": "md" as typeof size[number],
264
+ "square": true,
265
+ "class": {
266
+ "base": "p-0 ps-0 pe-0",
267
+ "wrapper": "p-1 gap-0"
268
+ }
269
+ },
270
+ {
271
+ "size": "lg" as typeof size[number],
272
+ "square": true,
273
+ "class": {
274
+ "base": "p-0 ps-0 pe-0",
275
+ "wrapper": "p-1 gap-0"
276
+ }
277
+ },
278
+ {
279
+ "size": "xl" as typeof size[number],
280
+ "square": true,
281
+ "class": {
282
+ "base": "p-0 ps-0 pe-0",
283
+ "wrapper": "p-1 gap-0"
284
+ }
285
+ },
249
286
  {
250
287
  "useLink": true,
251
288
  "useFill": false,
@@ -273,6 +310,4 @@ const theme = {
273
310
  "size": "md" as typeof size[number],
274
311
  "useFill": false
275
312
  }
276
- }
277
-
278
- export default result as typeof theme
313
+ }
@@ -1,22 +1,4 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/button-group"
2
-
3
- const size = [
4
- "xs",
5
- "sm",
6
- "md",
7
- "lg"
8
- ] as const
9
-
10
- const orientation = [
11
- "horizontal",
12
- "vertical"
13
- ] as const
14
-
15
- const result = typeof template === 'function' ? (template as Function)({
16
- "colorMode": true
17
- }) : template
18
-
19
- const theme = {
1
+ export default {
20
2
  "base": "relative",
21
3
  "variants": {
22
4
  "size": {
@@ -30,6 +12,4 @@ const theme = {
30
12
  "vertical": "flex flex-col -space-y-px"
31
13
  }
32
14
  }
33
- }
34
-
35
- export default result as typeof theme
15
+ }
@@ -1,10 +1,3 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/button"
2
-
3
- const buttonGroup = [
4
- "horizontal",
5
- "vertical"
6
- ] as const
7
-
8
1
  const color = [
9
2
  "default",
10
3
  "danger",
@@ -30,11 +23,7 @@ const size = [
30
23
  "lg"
31
24
  ] as const
32
25
 
33
- const result = typeof template === 'function' ? (template as Function)({
34
- "colorMode": true
35
- }) : template
36
-
37
- const theme = {
26
+ export default {
38
27
  "slots": {
39
28
  "base": [
40
29
  "select-none cursor-pointer inline-flex items-center",
@@ -53,8 +42,8 @@ const theme = {
53
42
  },
54
43
  "variants": {
55
44
  "buttonGroup": {
56
- "horizontal": "focus-visible:outline-none ring ring-inset ring-0 focus-visible:ring-2 group-[.is-button-group]/items:not-only:first:rounded-e-none group-[.is-button-group]/items:not-only:last:rounded-s-none group-[.is-button-group]/items:not-last:not-first:rounded-none group-[.is-button-group]/items:not-only:first:border-e-0 group-[.is-button-group]/items:not-only:not-first:border-s-0",
57
- "vertical": "focus-visible:outline-none ring ring-inset ring-0 focus-visible:ring-2 not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none"
45
+ "horizontal": "focus-visible:outline-none ring ring-inset ring-0 focus-visible:ring-2 group-[.is-button-group]/items:not-only:first:rounded-e-none group-[.is-button-group]/items:not-only:last:rounded-s-none group-[.is-button-group]/items:not-last:not-first:rounded-none group-[.is-button-group]/items:not-only:first:border-e-0 group-[.is-button-group]/items:not-only:not-first:border-s-0 focus-visible:z-[1]",
46
+ "vertical": "focus-visible:outline-none ring ring-inset ring-0 focus-visible:ring-2 not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]"
58
47
  },
59
48
  "noSplit": {
60
49
  "false": "group-[.is-button-group]/items:not-only:not-first:after:content-[''] group-[.is-button-group]/items:not-only:not-first:after:absolute group-[.is-button-group]/items:not-only:not-first:after:top-[7px] group-[.is-button-group]/items:not-only:not-first:after:bottom-[6px] group-[.is-button-group]/items:not-only:not-first:after:left-0 group-[.is-button-group]/items:not-only:not-first:after:w-px group-[.is-button-group]/items:not-only:not-first:after:bg-current/30"
@@ -361,6 +350,4 @@ const theme = {
361
350
  "color": "default" as typeof color[number],
362
351
  "depth": "normal" as typeof depth[number]
363
352
  }
364
- }
365
-
366
- export default result as typeof theme
353
+ }
@@ -1,5 +1,3 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/calendar"
2
-
3
1
  const color = [
4
2
  "default",
5
3
  "danger",
@@ -18,18 +16,14 @@ 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": "font-b24-system w-full",
28
22
  "header": "flex items-center justify-between",
29
23
  "body": "flex flex-col space-y-4 pt-4 sm:flex-row sm:space-x-4 sm:space-y-0",
30
24
  "heading": "text-center font-semibold truncate mx-auto",
31
25
  "grid": "w-full border-collapse select-none space-y-1 focus:outline-none",
32
- "gridRow": "grid grid-cols-7",
26
+ "gridRow": "grid grid-cols-7 place-items-center",
33
27
  "gridWeekDaysRow": "mb-1 grid w-full grid-cols-7",
34
28
  "gridBody": "grid",
35
29
  "headCell": "font-normal text-base-500 dark:text-base-500",
@@ -95,6 +89,4 @@ const theme = {
95
89
  "size": "md" as typeof size[number],
96
90
  "color": "primary" as typeof color[number]
97
91
  }
98
- }
99
-
100
- export default result as typeof theme
92
+ }
@@ -1,5 +1,3 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/checkbox"
2
-
3
1
  const color = [
4
2
  "default",
5
3
  "danger",
@@ -11,6 +9,17 @@ const color = [
11
9
  "ai"
12
10
  ] as const
13
11
 
12
+ const variant = [
13
+ "list",
14
+ "card"
15
+ ] as const
16
+
17
+ const indicator = [
18
+ "start",
19
+ "end",
20
+ "hidden"
21
+ ] as const
22
+
14
23
  const size = [
15
24
  "xs",
16
25
  "sm",
@@ -18,14 +27,11 @@ const size = [
18
27
  "lg"
19
28
  ] as const
20
29
 
21
- const result = typeof template === 'function' ? (template as Function)({
22
- "colorMode": true
23
- }) : template
24
-
25
- const theme = {
30
+ export default {
26
31
  "slots": {
27
32
  "root": "relative flex items-start",
28
33
  "base": "cursor-pointer shrink-0 flex items-center justify-center rounded-2xs text-white dark:text-base-150 ring ring-inset ring-base-300 dark:ring-base-700 outline-transparent focus-visible:outline-2 focus-visible:outline-offset-2",
34
+ "indicator": "flex items-center justify-center size-full text-base-master dark:text-base-400" as typeof indicator[number],
29
35
  "container": "flex items-center",
30
36
  "wrapper": "font-b24-primary ms-2",
31
37
  "icon": "shrink-0 size-full",
@@ -43,6 +49,28 @@ const theme = {
43
49
  "collab": "focus-visible:outline-collab-500 dark:focus-visible:outline-collab-600",
44
50
  "ai": "focus-visible:outline-ai-500 dark:focus-visible:outline-ai-600"
45
51
  },
52
+ "variant": {
53
+ "list": {
54
+ "root": ""
55
+ },
56
+ "card": {
57
+ "root": "border border-muted rounded-lg"
58
+ }
59
+ },
60
+ "indicator": {
61
+ "start": {
62
+ "root": "flex-row",
63
+ "wrapper": "ms-2"
64
+ },
65
+ "end": {
66
+ "root": "flex-row-reverse",
67
+ "wrapper": "me-2"
68
+ },
69
+ "hidden": {
70
+ "base": "sr-only",
71
+ "wrapper": "text-center"
72
+ }
73
+ },
46
74
  "size": {
47
75
  "xs": {
48
76
  "base": "size-3",
@@ -86,51 +114,87 @@ const theme = {
86
114
  }
87
115
  },
88
116
  "compoundVariants": [
117
+ {
118
+ "size": "xs" as typeof size[number],
119
+ "variant": "card" as typeof variant[number],
120
+ "class": {
121
+ "root": "p-2.5"
122
+ }
123
+ },
124
+ {
125
+ "size": "sm" as typeof size[number],
126
+ "variant": "card" as typeof variant[number],
127
+ "class": {
128
+ "root": "p-3"
129
+ }
130
+ },
131
+ {
132
+ "size": "md" as typeof size[number],
133
+ "variant": "card" as typeof variant[number],
134
+ "class": {
135
+ "root": "p-3.5"
136
+ }
137
+ },
138
+ {
139
+ "size": "lg" as typeof size[number],
140
+ "variant": "card" as typeof variant[number],
141
+ "class": {
142
+ "root": "p-4"
143
+ }
144
+ },
89
145
  {
90
146
  "color": "default" as typeof color[number],
147
+ "variant": "list" as typeof variant[number],
91
148
  "checked": true,
92
149
  "class": "ring-2 ring-base-900 bg-base-900 dark:ring-base-350 dark:bg-base-350 dark:text-base-800"
93
150
  },
94
151
  {
95
152
  "color": "danger" as typeof color[number],
153
+ "variant": "list" as typeof variant[number],
96
154
  "checked": true,
97
155
  "class": "ring-2 ring-red-500 bg-red-500 dark:ring-red-600 dark:bg-red-600 dark:text-red-250"
98
156
  },
99
157
  {
100
158
  "color": "success" as typeof color[number],
159
+ "variant": "list" as typeof variant[number],
101
160
  "checked": true,
102
161
  "class": "ring-2 ring-green-500 bg-green-500 dark:ring-green-600 dark:bg-green-600 dark:text-green-250"
103
162
  },
104
163
  {
105
164
  "color": "warning" as typeof color[number],
165
+ "variant": "list" as typeof variant[number],
106
166
  "checked": true,
107
167
  "class": "ring-2 ring-orange-500 bg-orange-500 dark:ring-orange-600 dark:bg-orange-600 dark:text-orange-250"
108
168
  },
109
169
  {
110
170
  "color": "primary" as typeof color[number],
171
+ "variant": "list" as typeof variant[number],
111
172
  "checked": true,
112
173
  "class": "ring-2 ring-blue-500 bg-blue-500 dark:ring-blue-600 dark:bg-blue-600 dark:text-blue-250"
113
174
  },
114
175
  {
115
176
  "color": "secondary" as typeof color[number],
177
+ "variant": "list" as typeof variant[number],
116
178
  "checked": true,
117
179
  "class": "ring-2 ring-cyan-350 bg-cyan-350 dark:ring-cyan-500 dark:bg-cyan-500"
118
180
  },
119
181
  {
120
182
  "color": "collab" as typeof color[number],
183
+ "variant": "list" as typeof variant[number],
121
184
  "checked": true,
122
185
  "class": "ring-2 ring-collab-500 bg-collab-500 dark:ring-collab-600 dark:bg-collab-600 dark:text-collab-250"
123
186
  },
124
187
  {
125
188
  "color": "ai" as typeof color[number],
189
+ "variant": "list" as typeof variant[number],
126
190
  "checked": true,
127
191
  "class": "ring-2 ring-ai-500 bg-ai-500 dark:ring-ai-600 dark:bg-ai-600 dark:text-ai-250"
128
192
  }
129
193
  ],
130
194
  "defaultVariants": {
131
195
  "size": "md" as typeof size[number],
132
- "color": "primary" as typeof color[number]
196
+ "color": "primary" as typeof color[number],
197
+ "variant": "list" as typeof variant[number],
198
+ "indicator": "start" as typeof indicator[number]
133
199
  }
134
- }
135
-
136
- export default result as typeof theme
200
+ }
@@ -1,5 +1,3 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/chip"
2
-
3
1
  const color = [
4
2
  "default",
5
3
  "danger",
@@ -31,11 +29,7 @@ const position = [
31
29
  "bottom-left"
32
30
  ] as const
33
31
 
34
- const result = typeof template === 'function' ? (template as Function)({
35
- "colorMode": true
36
- }) : template
37
-
38
- const theme = {
32
+ export default {
39
33
  "slots": {
40
34
  "root": "relative inline-flex items-center justify-center shrink-0",
41
35
  "base": "select-none rounded-sm flex items-center justify-center p-1 text-white leading-none font-semibold font-b24-secondary whitespace-nowrap"
@@ -208,6 +202,4 @@ const theme = {
208
202
  "color": "danger" as typeof color[number],
209
203
  "position": "top-right" as typeof position[number]
210
204
  }
211
- }
212
-
213
- export default result as typeof theme
205
+ }
@@ -1,14 +1,6 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/collapsible"
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": "",
10
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"
11
5
  }
12
- }
13
-
14
- export default result as typeof theme
6
+ }
@@ -1,11 +1,3 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/container"
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": "w-full max-w-[80rem] mx-auto px-5"
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/countdown"
2
-
3
1
  const size = [
4
2
  "xs",
5
3
  "sm",
@@ -8,11 +6,7 @@ const size = [
8
6
  "xl"
9
7
  ] as const
10
8
 
11
- const result = typeof template === 'function' ? (template as Function)({
12
- "colorMode": true
13
- }) : template
14
-
15
- const theme = {
9
+ export default {
16
10
  "slots": {
17
11
  "base": "relative flex flex-row flex-nowrap items-center justify-between text-base-500 dark:text-base-600",
18
12
  "label": "",
@@ -92,6 +86,4 @@ const theme = {
92
86
  "defaultVariants": {
93
87
  "size": "md" as typeof size[number]
94
88
  }
95
- }
96
-
97
- export default result as typeof theme
89
+ }
@@ -1,20 +1,9 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/description-list"
2
-
3
1
  const size = [
4
2
  "sm",
5
3
  "md"
6
4
  ] as const
7
5
 
8
- const orientation = [
9
- "horizontal",
10
- "vertical"
11
- ] as const
12
-
13
- const result = typeof template === 'function' ? (template as Function)({
14
- "colorMode": true
15
- }) : template
16
-
17
- const theme = {
6
+ export default {
18
7
  "slots": {
19
8
  "root": "w-full shrink-0",
20
9
  "legend": "font-semibold text-black dark:text-base-150",
@@ -75,6 +64,4 @@ const theme = {
75
64
  "defaultVariants": {
76
65
  "size": "md" as typeof size[number]
77
66
  }
78
- }
79
-
80
- export default result as typeof theme
67
+ }
@@ -1,5 +1,3 @@
1
- import template from "/home/runner/work/b24ui/b24ui/src/theme/dropdown-menu"
2
-
3
1
  const color = [
4
2
  "default",
5
3
  "danger",
@@ -18,13 +16,10 @@ 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
- "content": "min-w-32 bg-white dark:bg-base-dark shadow-lg rounded-2xs ring ring-base-300 dark:ring-base-800 overflow-y-auto motion-safe:data-[state=open]:animate-[scale-in_100ms_ease-out] motion-safe:data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-dropdown-menu-content-transform-origin) divide-y divide-base-master/10 dark:divide-base-100/20 scroll-py-1 pointer-events-auto",
21
+ "content": "min-w-32 bg-white dark:bg-base-dark shadow-lg rounded-2xs ring ring-base-300 dark:ring-base-800 overflow-hidden motion-safe:data-[state=open]:animate-[scale-in_100ms_ease-out] motion-safe:data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-dropdown-menu-content-transform-origin) flex flex-col pointer-events-auto",
22
+ "viewport": "relative divide-y divide-base-master/10 dark:divide-base-100/20 scroll-py-1 overflow-y-auto flex-1",
28
23
  "arrow": "fill-base-master/10 dark:fill-base-100/20",
29
24
  "group": "p-1 isolate",
30
25
  "label": "w-full flex items-center font-semibold text-base-900 dark:text-base-200",
@@ -238,6 +233,4 @@ const theme = {
238
233
  "defaultVariants": {
239
234
  "size": "md" as typeof size[number]
240
235
  }
241
- }
242
-
243
- export default result as typeof theme
236
+ }