@bitrix24/b24ui-nuxt 0.7.2 → 1.0.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 (260) hide show
  1. package/.nuxt/b24ui/accordion.ts +3 -3
  2. package/.nuxt/b24ui/advice.ts +6 -5
  3. package/.nuxt/b24ui/alert.ts +102 -49
  4. package/.nuxt/b24ui/avatar-group.ts +10 -10
  5. package/.nuxt/b24ui/avatar.ts +18 -18
  6. package/.nuxt/b24ui/badge.ts +167 -176
  7. package/.nuxt/b24ui/button-group.ts +3 -1
  8. package/.nuxt/b24ui/button.ts +179 -170
  9. package/.nuxt/b24ui/calendar.ts +48 -28
  10. package/.nuxt/b24ui/checkbox.ts +82 -85
  11. package/.nuxt/b24ui/chip.ts +121 -32
  12. package/.nuxt/b24ui/container.ts +1 -1
  13. package/.nuxt/b24ui/content/table-wrapper.ts +11 -11
  14. package/.nuxt/b24ui/countdown.ts +11 -11
  15. package/.nuxt/b24ui/description-list.ts +6 -6
  16. package/.nuxt/b24ui/dropdown-menu.ts +111 -183
  17. package/.nuxt/b24ui/form-field.ts +19 -19
  18. package/.nuxt/b24ui/index.ts +0 -1
  19. package/.nuxt/b24ui/input-menu.ts +294 -357
  20. package/.nuxt/b24ui/input-number.ts +111 -259
  21. package/.nuxt/b24ui/input.ts +136 -259
  22. package/.nuxt/b24ui/kbd.ts +15 -13
  23. package/.nuxt/b24ui/link.ts +5 -5
  24. package/.nuxt/b24ui/modal.ts +14 -12
  25. package/.nuxt/b24ui/navbar-divider.ts +1 -1
  26. package/.nuxt/b24ui/navbar-section.ts +1 -1
  27. package/.nuxt/b24ui/navbar.ts +1 -1
  28. package/.nuxt/b24ui/navigation-menu.ts +70 -754
  29. package/.nuxt/b24ui/popover.ts +2 -2
  30. package/.nuxt/b24ui/progress.ts +58 -68
  31. package/.nuxt/b24ui/prose/a.ts +1 -1
  32. package/.nuxt/b24ui/prose/blockquote.ts +1 -1
  33. package/.nuxt/b24ui/prose/code.ts +45 -9
  34. package/.nuxt/b24ui/prose/h1.ts +21 -2
  35. package/.nuxt/b24ui/prose/h2.ts +21 -12
  36. package/.nuxt/b24ui/prose/h3.ts +21 -12
  37. package/.nuxt/b24ui/prose/h4.ts +21 -12
  38. package/.nuxt/b24ui/prose/h5.ts +21 -12
  39. package/.nuxt/b24ui/prose/h6.ts +21 -12
  40. package/.nuxt/b24ui/prose/hr.ts +1 -1
  41. package/.nuxt/b24ui/prose/ol.ts +1 -1
  42. package/.nuxt/b24ui/prose/p.ts +26 -1
  43. package/.nuxt/b24ui/prose/thead.ts +1 -1
  44. package/.nuxt/b24ui/prose/ul.ts +1 -1
  45. package/.nuxt/b24ui/radio-group.ts +115 -155
  46. package/.nuxt/b24ui/range.ts +38 -26
  47. package/.nuxt/b24ui/select-menu.ts +251 -306
  48. package/.nuxt/b24ui/select.ts +246 -301
  49. package/.nuxt/b24ui/separator.ts +40 -85
  50. package/.nuxt/b24ui/sidebar-header.ts +1 -1
  51. package/.nuxt/b24ui/sidebar-heading.ts +1 -1
  52. package/.nuxt/b24ui/sidebar-layout.ts +130 -19
  53. package/.nuxt/b24ui/sidebar-section.ts +1 -1
  54. package/.nuxt/b24ui/skeleton.ts +19 -1
  55. package/.nuxt/b24ui/slideover.ts +35 -34
  56. package/.nuxt/b24ui/switch.ts +59 -48
  57. package/.nuxt/b24ui/tabs.ts +26 -239
  58. package/.nuxt/b24ui/textarea.ts +50 -236
  59. package/.nuxt/b24ui/toast.ts +38 -30
  60. package/.nuxt/b24ui/toaster.ts +1 -1
  61. package/.nuxt/b24ui/tooltip.ts +5 -5
  62. package/cli/templates.mjs +2 -1
  63. package/dist/meta.d.mts +18759 -5002
  64. package/dist/meta.mjs +18759 -5002
  65. package/dist/module.d.mts +1 -0
  66. package/dist/module.json +2 -2
  67. package/dist/module.mjs +3 -5
  68. package/dist/runtime/air-design-tokens/001_b24_global.css +1 -0
  69. package/dist/runtime/air-design-tokens/002_b24_context_utility.css +0 -0
  70. package/dist/runtime/air-design-tokens/003_b24_context_light.css +1 -0
  71. package/dist/runtime/air-design-tokens/004_b24_context_dark.css +1 -0
  72. package/dist/runtime/air-design-tokens/005_b24_context_edge-light.css +1 -0
  73. package/dist/runtime/air-design-tokens/006_b24_context_edge-dark.css +1 -0
  74. package/dist/runtime/air-design-tokens/007_b24_global.css +1 -0
  75. package/dist/runtime/air-design-tokens/008_ui_global.css +1 -0
  76. package/dist/runtime/air-design-tokens/009_b24_tools.css +1 -0
  77. package/dist/runtime/air-design-tokens/components/badge-counter.css +1 -0
  78. package/dist/runtime/air-design-tokens/components/button.css +1 -0
  79. package/dist/runtime/air-design-tokens/components/navigation-menu.css +1 -0
  80. package/dist/runtime/air-design-tokens/components/popup.css +1 -0
  81. package/dist/runtime/air-design-tokens/components/scrollbar.css +2 -0
  82. package/dist/runtime/air-design-tokens/index.css +1 -0
  83. package/dist/runtime/components/Accordion.vue.d.ts +1 -1
  84. package/dist/runtime/components/Advice.vue +1 -13
  85. package/dist/runtime/components/Advice.vue.d.ts +1 -1
  86. package/dist/runtime/components/Alert.vue +6 -4
  87. package/dist/runtime/components/Alert.vue.d.ts +11 -4
  88. package/dist/runtime/components/App.vue.d.ts +1 -1
  89. package/dist/runtime/components/Avatar.vue.d.ts +1 -1
  90. package/dist/runtime/components/AvatarGroup.vue.d.ts +1 -1
  91. package/dist/runtime/components/Badge.vue +7 -11
  92. package/dist/runtime/components/Badge.vue.d.ts +6 -8
  93. package/dist/runtime/components/Button.vue +18 -15
  94. package/dist/runtime/components/Button.vue.d.ts +5 -7
  95. package/dist/runtime/components/ButtonGroup.vue.d.ts +1 -1
  96. package/dist/runtime/components/Calendar.vue +8 -8
  97. package/dist/runtime/components/Calendar.vue.d.ts +14 -8
  98. package/dist/runtime/components/Checkbox.vue.d.ts +2 -2
  99. package/dist/runtime/components/Chip.vue +28 -7
  100. package/dist/runtime/components/Chip.vue.d.ts +22 -2
  101. package/dist/runtime/components/Collapsible.vue.d.ts +1 -1
  102. package/dist/runtime/components/Container.vue.d.ts +1 -1
  103. package/dist/runtime/components/Countdown.vue.d.ts +5 -3
  104. package/dist/runtime/components/DescriptionList.vue.d.ts +1 -1
  105. package/dist/runtime/components/DropdownMenu.vue +20 -9
  106. package/dist/runtime/components/DropdownMenu.vue.d.ts +1 -5
  107. package/dist/runtime/components/DropdownMenuContent.vue +29 -7
  108. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +14 -6
  109. package/dist/runtime/components/Form.vue +3 -3
  110. package/dist/runtime/components/Form.vue.d.ts +6 -5
  111. package/dist/runtime/components/FormField.vue +2 -2
  112. package/dist/runtime/components/FormField.vue.d.ts +4 -4
  113. package/dist/runtime/components/Input.vue +8 -4
  114. package/dist/runtime/components/Input.vue.d.ts +9 -8
  115. package/dist/runtime/components/InputMenu.vue +44 -18
  116. package/dist/runtime/components/InputMenu.vue.d.ts +17 -223
  117. package/dist/runtime/components/InputNumber.vue +14 -11
  118. package/dist/runtime/components/InputNumber.vue.d.ts +13 -87
  119. package/dist/runtime/components/Kbd.vue +6 -3
  120. package/dist/runtime/components/Kbd.vue.d.ts +7 -3
  121. package/dist/runtime/components/Link.vue +6 -5
  122. package/dist/runtime/components/Link.vue.d.ts +1 -3
  123. package/dist/runtime/components/LinkBase.vue.d.ts +1 -1
  124. package/dist/runtime/components/Modal.vue +37 -33
  125. package/dist/runtime/components/Modal.vue.d.ts +2 -2
  126. package/dist/runtime/components/ModalDialogClose.vue.d.ts +1 -1
  127. package/dist/runtime/components/Navbar.vue.d.ts +1 -1
  128. package/dist/runtime/components/NavbarDivider.vue.d.ts +1 -1
  129. package/dist/runtime/components/NavbarSection.vue.d.ts +1 -1
  130. package/dist/runtime/components/NavbarSpacer.vue.d.ts +1 -1
  131. package/dist/runtime/components/NavigationMenu.vue +95 -84
  132. package/dist/runtime/components/NavigationMenu.vue.d.ts +31 -33
  133. package/dist/runtime/components/OverlayProvider.vue.d.ts +1 -1
  134. package/dist/runtime/components/Popover.vue +8 -2
  135. package/dist/runtime/components/Popover.vue.d.ts +9 -3
  136. package/dist/runtime/components/Progress.vue.d.ts +3 -3
  137. package/dist/runtime/components/RadioGroup.vue +1 -1
  138. package/dist/runtime/components/RadioGroup.vue.d.ts +6 -5
  139. package/dist/runtime/components/Range.vue.d.ts +6 -6
  140. package/dist/runtime/components/Select.vue +25 -11
  141. package/dist/runtime/components/Select.vue.d.ts +7 -7
  142. package/dist/runtime/components/SelectMenu.vue +38 -19
  143. package/dist/runtime/components/SelectMenu.vue.d.ts +11 -10
  144. package/dist/runtime/components/Separator.vue +4 -4
  145. package/dist/runtime/components/Separator.vue.d.ts +6 -3
  146. package/dist/runtime/components/Sidebar.vue.d.ts +4 -1
  147. package/dist/runtime/components/SidebarBody.vue.d.ts +4 -1
  148. package/dist/runtime/components/SidebarFooter.vue.d.ts +4 -1
  149. package/dist/runtime/components/SidebarHeader.vue.d.ts +4 -1
  150. package/dist/runtime/components/SidebarHeading.vue.d.ts +4 -1
  151. package/dist/runtime/components/SidebarLayout.vue +148 -63
  152. package/dist/runtime/components/SidebarLayout.vue.d.ts +61 -8
  153. package/dist/runtime/components/SidebarSection.vue.d.ts +4 -1
  154. package/dist/runtime/components/SidebarSpacer.vue.d.ts +4 -1
  155. package/dist/runtime/components/Skeleton.vue +7 -3
  156. package/dist/runtime/components/Skeleton.vue.d.ts +12 -1
  157. package/dist/runtime/components/Slideover.vue +120 -43
  158. package/dist/runtime/components/Slideover.vue.d.ts +22 -9
  159. package/dist/runtime/components/Switch.vue.d.ts +2 -2
  160. package/dist/runtime/components/Tabs.vue +11 -3
  161. package/dist/runtime/components/Tabs.vue.d.ts +8 -7
  162. package/dist/runtime/components/Textarea.vue +8 -4
  163. package/dist/runtime/components/Textarea.vue.d.ts +8 -7
  164. package/dist/runtime/components/Toast.vue +16 -8
  165. package/dist/runtime/components/Toast.vue.d.ts +16 -15
  166. package/dist/runtime/components/Toaster.vue.d.ts +2 -2
  167. package/dist/runtime/components/Tooltip.vue +9 -5
  168. package/dist/runtime/components/Tooltip.vue.d.ts +7 -1
  169. package/dist/runtime/components/content/TableWrapper.vue.d.ts +1 -1
  170. package/dist/runtime/composables/defineShortcuts.js +5 -3
  171. package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
  172. package/dist/runtime/composables/useButtonGroup.d.ts +1 -1
  173. package/dist/runtime/composables/useComponentIcons.d.ts +1 -1
  174. package/dist/runtime/composables/useFormField.d.ts +4 -7
  175. package/dist/runtime/composables/useFormField.js +6 -3
  176. package/dist/runtime/composables/useKbd.d.ts +1 -1
  177. package/dist/runtime/composables/useLocale.js +2 -2
  178. package/dist/runtime/composables/useOverlay.d.ts +29 -2
  179. package/dist/runtime/composables/useOverlay.js +8 -7
  180. package/dist/runtime/composables/usePortal.d.ts +1 -1
  181. package/dist/runtime/composables/useSidebarLayout.d.ts +20 -0
  182. package/dist/runtime/composables/useSidebarLayout.js +16 -0
  183. package/dist/runtime/dictionary/icons.js +7 -7
  184. package/dist/runtime/index.css +1 -1
  185. package/dist/runtime/inertia/components/Link.vue +3 -0
  186. package/dist/runtime/inertia/components/Link.vue.d.ts +1 -1
  187. package/dist/runtime/inertia/components/LinkBase.vue.d.ts +1 -1
  188. package/dist/runtime/inertia/stubs.d.ts +1 -0
  189. package/dist/runtime/inertia/stubs.js +4 -2
  190. package/dist/runtime/locale/ar.js +6 -0
  191. package/dist/runtime/locale/br.js +6 -0
  192. package/dist/runtime/locale/de.js +6 -0
  193. package/dist/runtime/locale/en.js +6 -0
  194. package/dist/runtime/locale/fr.js +6 -0
  195. package/dist/runtime/locale/id.js +6 -0
  196. package/dist/runtime/locale/it.js +6 -0
  197. package/dist/runtime/locale/ja.js +6 -0
  198. package/dist/runtime/locale/kz.js +6 -0
  199. package/dist/runtime/locale/la.js +6 -0
  200. package/dist/runtime/locale/ms.js +6 -0
  201. package/dist/runtime/locale/pl.js +6 -0
  202. package/dist/runtime/locale/ru.js +6 -0
  203. package/dist/runtime/locale/sc.js +6 -0
  204. package/dist/runtime/locale/tc.js +6 -0
  205. package/dist/runtime/locale/th.js +6 -0
  206. package/dist/runtime/locale/tr.js +6 -0
  207. package/dist/runtime/locale/ua.js +6 -0
  208. package/dist/runtime/locale/vn.js +6 -0
  209. package/dist/runtime/plugins/ui-version.d.ts +5 -0
  210. package/dist/runtime/plugins/ui-version.js +8 -0
  211. package/dist/runtime/prose/A.vue.d.ts +4 -1
  212. package/dist/runtime/prose/Blockquote.vue.d.ts +4 -1
  213. package/dist/runtime/prose/Code.vue.d.ts +4 -1
  214. package/dist/runtime/prose/Em.vue.d.ts +4 -1
  215. package/dist/runtime/prose/H1.vue +4 -1
  216. package/dist/runtime/prose/H1.vue.d.ts +7 -1
  217. package/dist/runtime/prose/H2.vue +4 -1
  218. package/dist/runtime/prose/H2.vue.d.ts +7 -1
  219. package/dist/runtime/prose/H3.vue +4 -1
  220. package/dist/runtime/prose/H3.vue.d.ts +7 -1
  221. package/dist/runtime/prose/H4.vue +4 -1
  222. package/dist/runtime/prose/H4.vue.d.ts +7 -1
  223. package/dist/runtime/prose/H5.vue +4 -1
  224. package/dist/runtime/prose/H5.vue.d.ts +7 -1
  225. package/dist/runtime/prose/H6.vue +4 -1
  226. package/dist/runtime/prose/H6.vue.d.ts +7 -1
  227. package/dist/runtime/prose/Hr.vue.d.ts +1 -1
  228. package/dist/runtime/prose/Img.vue.d.ts +1 -1
  229. package/dist/runtime/prose/Li.vue.d.ts +4 -1
  230. package/dist/runtime/prose/Ol.vue.d.ts +4 -1
  231. package/dist/runtime/prose/P.vue +6 -1
  232. package/dist/runtime/prose/P.vue.d.ts +12 -1
  233. package/dist/runtime/prose/Pre.vue.d.ts +4 -1
  234. package/dist/runtime/prose/Strong.vue.d.ts +4 -1
  235. package/dist/runtime/prose/Table.vue.d.ts +5 -2
  236. package/dist/runtime/prose/Tbody.vue.d.ts +4 -1
  237. package/dist/runtime/prose/Td.vue.d.ts +4 -1
  238. package/dist/runtime/prose/Th.vue.d.ts +4 -1
  239. package/dist/runtime/prose/Thead.vue.d.ts +4 -1
  240. package/dist/runtime/prose/Tr.vue.d.ts +4 -1
  241. package/dist/runtime/prose/Ul.vue.d.ts +4 -1
  242. package/dist/runtime/types/index.d.ts +0 -1
  243. package/dist/runtime/types/index.js +0 -1
  244. package/dist/runtime/types/locale.d.ts +6 -0
  245. package/dist/runtime/utils/index.d.ts +6 -0
  246. package/dist/runtime/utils/index.js +27 -0
  247. package/dist/runtime/utils/tv.js +66 -1
  248. package/dist/runtime/vue/components/Link.vue +3 -0
  249. package/dist/runtime/vue/components/Link.vue.d.ts +1 -1
  250. package/dist/runtime/vue/stubs.d.ts +1 -0
  251. package/dist/runtime/vue/stubs.js +3 -1
  252. package/dist/shared/b24ui-nuxt.dLc5H7ID.mjs +6100 -0
  253. package/dist/unplugin.mjs +1 -1
  254. package/dist/vite.mjs +1 -1
  255. package/package.json +40 -28
  256. package/.nuxt/b24ui/stacked-layout.ts +0 -34
  257. package/dist/runtime/air-design-tokens.css +0 -1
  258. package/dist/runtime/components/StackedLayout.vue +0 -117
  259. package/dist/runtime/components/StackedLayout.vue.d.ts +0 -44
  260. package/dist/shared/b24ui-nuxt.CxsFEY3M.mjs +0 -7895
@@ -1,15 +1,9 @@
1
1
  const color = [
2
- "default",
3
- "danger",
4
- "success",
5
- "warning",
6
- "primary",
7
- "secondary",
8
- "collab",
9
- "ai"
10
- ] as const
11
-
12
- const tagColor = [
2
+ "air-primary",
3
+ "air-primary-success",
4
+ "air-primary-alert",
5
+ "air-primary-copilot",
6
+ "air-primary-warning",
13
7
  "default",
14
8
  "danger",
15
9
  "success",
@@ -23,14 +17,14 @@ const tagColor = [
23
17
  export default {
24
18
  "slots": {
25
19
  "root": "isolate relative inline-flex items-center w-full",
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",
27
- "leading": "absolute start-0 flex items-start inset-y-1.5 px-1.5",
28
- "leadingIcon": "shrink-0 text-base-400 inset-y-1.5 size-lg2",
29
- "leadingAvatar": "shrink-0",
30
- "leadingAvatarSize": "xs",
31
- "trailing": "absolute end-0 flex items-start inset-y-1.5 px-1.5",
32
- "trailingIcon": "shrink-0 text-base-400 size-lg2",
33
- "tag": "pointer-events-none select-none absolute z-10 -top-1.5 right-3 h-sm px-1.5 flex flex-col justify-center items-center font-b24-primary font-bold text-6xs leading-none uppercase rounded-full"
20
+ "base": "px-3 w-full pt-[7px] pb-[8px] border-0 focus:outline-none disabled:cursor-not-allowed disabled:pointer-events-none disabled:opacity-30 disabled:resize-none appearance-none transition duration-300 ease-linear ring ring-inset ring-(--ui-color-design-outline-stroke) text-(--ui-color-base-1) style-blurred-bg-input placeholder:text-(--ui-color-design-plain-na-content-secondary) hover:text-(--ui-color-base-1) focus:text-(--ui-color-base-1) active:text-(--ui-color-base-1) font-[family-name:var(--ui-font-family-primary)] font-(--ui-font-weight-regular) text-(length:--ui-font-size-lg)/(--ui-font-line-height-2xs) align-middle focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-(--b24ui-border-color)",
21
+ "leading": "absolute inset-y-[7px] start-0 flex items-start px-[8px]",
22
+ "leadingIcon": "shrink-0 size-[18px] text-(--b24ui-icon-color)",
23
+ "leadingAvatar": "shrink-0 size-[20px]",
24
+ "leadingAvatarSize": "2xs",
25
+ "trailing": "absolute inset-y-[8px] end-0 flex items-start px-[6px]",
26
+ "trailingIcon": "shrink-0 size-[18px] text-(--b24ui-icon-color)",
27
+ "tag": "pointer-events-none select-none absolute z-10 -top-[6px] right-[12px]"
34
28
  },
35
29
  "variants": {
36
30
  "buttonGroup": {
@@ -52,44 +46,49 @@ export default {
52
46
  }
53
47
  },
54
48
  "color": {
55
- "default": "",
56
- "danger": "",
57
- "success": "",
58
- "warning": "",
59
- "primary": "",
60
- "secondary": "",
61
- "collab": "",
62
- "ai": ""
63
- },
64
- "tagColor": {
49
+ "air-primary": {
50
+ "base": "style-filled"
51
+ },
52
+ "air-primary-success": {
53
+ "base": "style-filled-success"
54
+ },
55
+ "air-primary-alert": {
56
+ "base": "style-filled-alert"
57
+ },
58
+ "air-primary-copilot": {
59
+ "base": "style-filled-copilot"
60
+ },
61
+ "air-primary-warning": {
62
+ "base": "style-filled-warning"
63
+ },
65
64
  "default": {
66
- "tag": "text-white bg-base-900 dark:text-base-150 dark:bg-base-900"
65
+ "base": "style-old-default"
67
66
  },
68
67
  "danger": {
69
- "tag": "text-white bg-red-500 dark:text-red-250 dark:bg-red-600"
68
+ "base": "style-old-danger"
70
69
  },
71
70
  "success": {
72
- "tag": "text-white bg-green-500 dark:text-green-250 dark:bg-green-600"
71
+ "base": "style-old-success"
73
72
  },
74
73
  "warning": {
75
- "tag": "text-white bg-orange-500 dark:text-orange-250 dark:bg-orange-600"
74
+ "base": "style-old-warning"
76
75
  },
77
76
  "primary": {
78
- "tag": "text-white bg-blue-500 dark:text-blue-250 dark:bg-blue-600"
77
+ "base": "style-old-primary"
79
78
  },
80
79
  "secondary": {
81
- "tag": "text-white bg-cyan-350 dark:text-base-150 dark:bg-cyan-500"
80
+ "base": "style-old-secondary"
82
81
  },
83
82
  "collab": {
84
- "tag": "text-white bg-collab-500 dark:text-collab-200 dark:bg-collab-800"
83
+ "base": "style-old-collab"
85
84
  },
86
85
  "ai": {
87
- "tag": "text-white bg-ai-500 dark:text-ai-200 dark:bg-ai-800"
86
+ "base": "style-old-ai"
88
87
  }
89
88
  },
90
89
  "rounded": {
91
- "true": "rounded-3xl",
92
- "false": "rounded-2xs"
90
+ "true": "rounded-(--ui-border-radius-3xl)",
91
+ "false": "rounded-(--ui-border-radius-sm)"
93
92
  },
94
93
  "noPadding": {
95
94
  "true": {
@@ -97,10 +96,10 @@ export default {
97
96
  }
98
97
  },
99
98
  "noBorder": {
100
- "true": "ring-0 focus-visible:ring-0"
99
+ "true": "ring-0 focus-visible:ring-0 style-transparent-bg"
101
100
  },
102
101
  "underline": {
103
- "true": "ring-0 focus-visible:ring-0 border-b border-b-base-300 rounded-none"
102
+ "true": "ring-0 focus-visible:ring-0 style-transparent-bg border-b-1 border-b-(--ui-color-design-outline-stroke) rounded-none"
104
103
  },
105
104
  "leading": {
106
105
  "true": ""
@@ -112,225 +111,41 @@ export default {
112
111
  "true": ""
113
112
  },
114
113
  "highlight": {
115
- "true": ""
114
+ "true": "ring ring-inset ring-(--b24ui-border-color)"
116
115
  }
117
116
  },
118
117
  "compoundVariants": [
119
118
  {
120
- "color": "default" as typeof color[number],
121
- "noBorder": false,
122
- "underline": false,
123
- "class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-base-900 dark:focus-visible:ring-base-350"
124
- },
125
- {
126
- "color": "default" as typeof color[number],
127
- "highlight": true,
128
- "noBorder": false,
129
- "underline": false,
130
- "class": "ring ring-inset ring-base-900 dark:ring-base-350"
131
- },
132
- {
133
- "color": "default" as typeof color[number],
134
- "noBorder": false,
135
- "underline": true,
136
- "class": "focus-visible:border-base-900 dark:focus-visible:border-b-base-350"
137
- },
138
- {
139
- "color": "default" as typeof color[number],
140
- "highlight": true,
141
- "noBorder": false,
142
- "underline": true,
143
- "class": "border-b-base-900 dark:border-b-base-350"
144
- },
145
- {
146
- "color": "danger" as typeof color[number],
147
- "noBorder": false,
148
- "underline": false,
149
- "class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-red-500 dark:focus-visible:ring-red-600"
150
- },
151
- {
152
- "color": "danger" as typeof color[number],
153
- "highlight": true,
154
- "noBorder": false,
155
- "underline": false,
156
- "class": "ring ring-inset ring-red-500 dark:ring-red-600"
157
- },
158
- {
159
- "color": "danger" as typeof color[number],
160
- "noBorder": false,
161
- "underline": true,
162
- "class": "focus-visible:border-b-red-500 dark:focus-visible:border-b-red-600"
163
- },
164
- {
165
- "color": "danger" as typeof color[number],
166
- "highlight": true,
167
- "noBorder": false,
168
- "underline": true,
169
- "class": "border-b-red-500 dark:border-b-red-600"
170
- },
171
- {
172
- "color": "success" as typeof color[number],
173
- "noBorder": false,
174
- "underline": false,
175
- "class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-green-500 dark:focus-visible:ring-green-600"
176
- },
177
- {
178
- "color": "success" as typeof color[number],
179
- "highlight": true,
180
- "noBorder": false,
181
- "underline": false,
182
- "class": "ring ring-inset ring-green-500 dark:ring-green-600"
183
- },
184
- {
185
- "color": "success" as typeof color[number],
186
- "noBorder": false,
187
- "underline": true,
188
- "class": "focus-visible:border-b-green-500 dark:focus-visible:border-b-green-600"
189
- },
190
- {
191
- "color": "success" as typeof color[number],
192
- "highlight": true,
193
- "noBorder": false,
194
- "underline": true,
195
- "class": "border-b-green-500 dark:border-b-green-600"
196
- },
197
- {
198
- "color": "warning" as typeof color[number],
199
- "noBorder": false,
200
- "underline": false,
201
- "class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-orange-500 dark:focus-visible:ring-orange-600"
202
- },
203
- {
204
- "color": "warning" as typeof color[number],
205
- "highlight": true,
206
- "noBorder": false,
207
- "underline": false,
208
- "class": "ring ring-inset ring-orange-500 dark:ring-orange-600"
209
- },
210
- {
211
- "color": "warning" as typeof color[number],
212
- "noBorder": false,
213
- "underline": true,
214
- "class": "focus-visible:border-b-orange-500 dark:focus-visible:border-b-orange-600"
215
- },
216
- {
217
- "color": "warning" as typeof color[number],
218
- "highlight": true,
219
- "noBorder": false,
220
- "underline": true,
221
- "class": "border-b-orange-500 dark:border-b-orange-600"
222
- },
223
- {
224
- "color": "primary" as typeof color[number],
225
- "noBorder": false,
226
- "underline": false,
227
- "class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-blue-500 dark:focus-visible:ring-blue-600"
228
- },
229
- {
230
- "color": "primary" as typeof color[number],
231
- "highlight": true,
232
- "noBorder": false,
233
- "underline": false,
234
- "class": "ring ring-inset ring-blue-500 dark:ring-blue-600"
235
- },
236
- {
237
- "color": "primary" as typeof color[number],
238
- "noBorder": false,
239
- "underline": true,
240
- "class": "focus-visible:border-b-blue-500 dark:focus-visible:border-b-blue-600"
241
- },
242
- {
243
- "color": "primary" as typeof color[number],
244
- "highlight": true,
245
- "noBorder": false,
246
- "underline": true,
247
- "class": "border-b-blue-500 dark:border-b-blue-600"
248
- },
249
- {
250
- "color": "secondary" as typeof color[number],
251
- "noBorder": false,
252
- "underline": false,
253
- "class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-cyan-350 dark:focus-visible:ring-cyan-500"
254
- },
255
- {
256
- "color": "secondary" as typeof color[number],
257
- "highlight": true,
258
- "noBorder": false,
259
- "underline": false,
260
- "class": "ring ring-inset ring-cyan-350 dark:ring-cyan-500"
261
- },
262
- {
263
- "color": "secondary" as typeof color[number],
264
- "noBorder": false,
265
- "underline": true,
266
- "class": "focus-visible:border-b-cyan-350 dark:focus-visible:border-b-cyan-500"
267
- },
268
- {
269
- "color": "secondary" as typeof color[number],
270
- "highlight": true,
271
- "noBorder": false,
272
- "underline": true,
273
- "class": "border-b-cyan-350 dark:border-b-cyan-500"
274
- },
275
- {
276
- "color": "collab" as typeof color[number],
277
- "noBorder": false,
278
- "underline": false,
279
- "class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-collab-500 dark:focus-visible:ring-collab-600"
280
- },
281
- {
282
- "color": "collab" as typeof color[number],
283
- "highlight": true,
284
- "noBorder": false,
285
- "underline": false,
286
- "class": "ring ring-inset ring-collab-500 dark:ring-collab-600"
287
- },
288
- {
289
- "color": "collab" as typeof color[number],
290
- "noBorder": false,
291
- "underline": true,
292
- "class": "focus-visible:border-b-collab-500 dark:focus-visible:border-b-collab-600"
293
- },
294
- {
295
- "color": "collab" as typeof color[number],
296
- "highlight": true,
297
- "noBorder": false,
298
- "underline": true,
299
- "class": "border-b-collab-500 dark:border-b-collab-600"
300
- },
301
- {
302
- "color": "ai" as typeof color[number],
303
119
  "noBorder": false,
304
120
  "underline": false,
305
- "class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-ai-500 dark:focus-visible:ring-ai-600"
121
+ "class": ""
306
122
  },
307
123
  {
308
- "color": "ai" as typeof color[number],
309
124
  "highlight": true,
310
125
  "noBorder": false,
311
126
  "underline": false,
312
- "class": "ring ring-inset ring-ai-500 dark:ring-ai-600"
127
+ "class": "ring ring-inset ring-(--b24ui-border-color)"
313
128
  },
314
129
  {
315
- "color": "ai" as typeof color[number],
316
130
  "noBorder": false,
317
131
  "underline": true,
318
- "class": "focus-visible:border-b-ai-500 dark:focus-visible:border-b-ai-600"
132
+ "class": "focus-visible:border-(--b24ui-border-color)"
319
133
  },
320
134
  {
321
- "color": "ai" as typeof color[number],
322
135
  "highlight": true,
323
136
  "noBorder": false,
324
137
  "underline": true,
325
- "class": "border-b-ai-500 dark:border-b-ai-600"
138
+ "class": "border-b-(--b24ui-border-color)"
326
139
  },
327
140
  {
328
141
  "leading": true,
329
- "class": "ps-8"
142
+ "noPadding": false,
143
+ "class": "ps-[34px]"
330
144
  },
331
145
  {
332
146
  "trailing": true,
333
- "class": "pe-8"
147
+ "noPadding": false,
148
+ "class": "pe-[34px]"
334
149
  },
335
150
  {
336
151
  "loading": true,
@@ -349,7 +164,6 @@ export default {
349
164
  }
350
165
  ],
351
166
  "defaultVariants": {
352
- "color": "primary" as typeof color[number],
353
- "tagColor": "primary" as typeof tagColor[number]
167
+ "color": "air-primary" as typeof color[number]
354
168
  }
355
169
  }
@@ -1,4 +1,10 @@
1
1
  const color = [
2
+ "air-primary",
3
+ "air-primary-success",
4
+ "air-primary-alert",
5
+ "air-primary-copilot",
6
+ "air-primary-warning",
7
+ "air-secondary",
2
8
  "default",
3
9
  "danger",
4
10
  "success",
@@ -11,58 +17,60 @@ const color = [
11
17
 
12
18
  export default {
13
19
  "slots": {
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",
20
+ "root": "dark relative group overflow-hidden rounded-[26px] py-3.5 ps-6 pe-4 flex items-center gap-2.5 focus-visible:outline-(length:--ui-design-outline-stroke-weight) focus-visible:outline-offset-2 focus-visible:outline-(--ui-color-design-outline-content-divider) font-[family-name:var(--ui-font-family-primary)] bg-(--ui-color-bg-content-primary)/80 text-(--ui-color-design-plain-na-focused-content) text-(length:--ui-font-size-sm) font-(--ui-font-weight-normal)",
15
21
  "wrapper": "w-0 flex-1 flex flex-col",
16
- "title": "font-medium",
22
+ "title": "font-(--ui-font-weight-medium)",
17
23
  "description": "",
18
- "icon": "shrink-0 size-6",
24
+ "icon": "shrink-0 size-6 text-(--b24ui-border-color)",
19
25
  "avatar": "shrink-0",
20
26
  "avatarSize": "xl",
21
27
  "actions": "flex gap-1.5 shrink-0",
22
- "progress": "absolute inset-x-0 bottom-0 h-1 z-[-1]",
23
- "close": "p-0 text-base-350 dark:text-base-350 hover:text-base-400 dark:hover:text-base-400"
28
+ "progress": "absolute inset-x-0 bottom-0",
29
+ "close": "p-0"
24
30
  },
25
31
  "variants": {
26
32
  "color": {
33
+ "air-primary": {
34
+ "root": "style-filled"
35
+ },
36
+ "air-primary-success": {
37
+ "root": "style-filled-success"
38
+ },
39
+ "air-primary-alert": {
40
+ "root": "style-filled-alert"
41
+ },
42
+ "air-primary-copilot": {
43
+ "root": "style-filled-copilot"
44
+ },
45
+ "air-primary-warning": {
46
+ "root": "style-filled-warning"
47
+ },
48
+ "air-secondary": {
49
+ "root": "style-filled-inverted"
50
+ },
27
51
  "default": {
28
- "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-base-400 dark:focus-visible:ring-base-400",
29
- "icon": "text-white",
30
- "progress": "bg-base-350 dark:bg-base-350"
52
+ "root": "old-style-default"
31
53
  },
32
54
  "danger": {
33
- "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-red-400 dark:focus-visible:ring-red-400",
34
- "icon": "text-red-500",
35
- "progress": "bg-red-500 dark:bg-red-500"
55
+ "root": "old-style-danger"
36
56
  },
37
57
  "success": {
38
- "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-green-400 dark:focus-visible:ring-green-400",
39
- "icon": "text-green-500",
40
- "progress": "bg-green-500 dark:bg-green-500"
58
+ "root": "old-style-success"
41
59
  },
42
60
  "warning": {
43
- "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-orange-400 dark:focus-visible:ring-orange-400",
44
- "icon": "text-orange-500",
45
- "progress": "bg-orange-500 dark:bg-orange-500"
61
+ "root": "old-style-warning"
46
62
  },
47
63
  "primary": {
48
- "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-blue-400 dark:focus-visible:ring-blue-400",
49
- "icon": "text-blue-500",
50
- "progress": "bg-blue-500 dark:bg-blue-500"
64
+ "root": "old-style-primary"
51
65
  },
52
66
  "secondary": {
53
- "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-cyan-400 dark:focus-visible:ring-cyan-400",
54
- "icon": "text-cyan-500",
55
- "progress": "bg-cyan-500 dark:bg-cyan-500"
67
+ "root": "old-style-secondary"
56
68
  },
57
69
  "collab": {
58
- "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-collab-400 dark:focus-visible:ring-collab-400",
59
- "icon": "text-collab-500",
60
- "progress": "bg-collab-500 dark:bg-collab-500"
70
+ "root": "old-style-collab"
61
71
  },
62
72
  "ai": {
63
- "root": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ai-400 dark:focus-visible:ring-ai-400",
64
- "icon": "text-ai-500",
65
- "progress": "bg-ai-500 dark:bg-ai-500"
73
+ "root": "old-style-ai"
66
74
  }
67
75
  },
68
76
  "orientation": {
@@ -82,6 +90,6 @@ export default {
82
90
  }
83
91
  },
84
92
  "defaultVariants": {
85
- "color": "default" as typeof color[number]
93
+ "color": "air-secondary" as typeof color[number]
86
94
  }
87
95
  }
@@ -16,7 +16,7 @@ const swipeDirection = [
16
16
 
17
17
  export default {
18
18
  "slots": {
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)",
19
+ "viewport": "fixed flex flex-col w-[calc(100%-2rem)] sm:w-[384px] z-[100] data-[expanded=true]:h-(--height) focus:outline-none mr-(--scrollbar-width)",
20
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"
21
21
  },
22
22
  "variants": {
@@ -1,10 +1,10 @@
1
1
  export default {
2
2
  "slots": {
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",
4
- "arrow": "fill-base-dark dark:fill-base-100/20",
5
- "text": "text-pretty max-w-[200px]",
6
- "kbds": "hidden lg:inline-flex items-center shrink-0 gap-0.5 before:content-[''] before:me-0.5",
3
+ "content": "dark flex flex-row items-center justify-between gap-[5px] will-change-[opacity] min-h-[37px] shadow-xl/20 select-none motion-safe:data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] motion-safe:data-[state=closed]:animate-[scale-out_100ms_ease-in] p-[10px] text-(length:--ui-font-size-sm)/(--ui-font-line-height-reset) font-[family-name:var(--ui-font-family-primary)] bg-(--ui-color-bg-content-primary)/80 text-(--ui-color-design-plain-na-focused-content) rounded-[calc(var(--popup-window-border-radius)-2px)] origin-(--reka-tooltip-content-transform-origin) pointer-events-auto",
4
+ "arrow": "fill-(--ui-color-bg-content-primary)/80",
5
+ "text": "text-pretty max-w-[200px] min-w-[100px]",
6
+ "kbds": "hidden lg:inline-flex items-center shrink-0 gap-0.5 not-first-of-type:before:content-[''] not-first-of-type:before:me-0.5",
7
7
  "kbdsSize": "sm",
8
- "kbdsDepth": "normal"
8
+ "kbdsAccent": "default"
9
9
  }
10
10
  }
package/cli/templates.mjs CHANGED
@@ -156,7 +156,8 @@ const test = ({ name, prose, content }) => {
156
156
  ? undefined
157
157
  : `
158
158
  import { describe, it, expect } from 'vitest'
159
- import ${upperName}, { type ${upperName}Props, type ${upperName}Slots } from '../../${content ? '../' : ''}src/runtime/components/${content ? 'content/' : ''}${upperName}.vue'
159
+ import ${upperName} from '../../${content ? '../' : ''}src/runtime/components/${content ? 'content/' : ''}${upperName}.vue'
160
+ import type { ${upperName}Props, ${upperName}Slots } from '../../${content ? '../' : ''}src/runtime/components/${content ? 'content/' : ''}${upperName}.vue'
160
161
  import ComponentRender from '../${content ? '../' : ''}component-render'
161
162
 
162
163
  describe('${upperName}', () => {