@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,22 +1,18 @@
1
1
  const size = [
2
+ "xss",
2
3
  "xs",
3
4
  "sm",
4
5
  "md",
5
- "lg"
6
+ "lg",
7
+ "xl"
6
8
  ] as const
7
9
 
8
10
  const color = [
9
- "default",
10
- "danger",
11
- "success",
12
- "warning",
13
- "primary",
14
- "secondary",
15
- "collab",
16
- "ai"
17
- ] as const
18
-
19
- const tagColor = [
11
+ "air-primary",
12
+ "air-primary-success",
13
+ "air-primary-alert",
14
+ "air-primary-copilot",
15
+ "air-primary-warning",
20
16
  "default",
21
17
  "danger",
22
18
  "success",
@@ -34,14 +30,14 @@ const type = [
34
30
  export default {
35
31
  "slots": {
36
32
  "root": "isolate relative inline-flex items-center w-full",
37
- "base": "px-3 w-full py-0 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-none align-middle text-ellipsis whitespace-nowrap",
33
+ "base": "px-3 w-full py-0 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) align-middle text-ellipsis whitespace-nowrap focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-(--b24ui-border-color)",
38
34
  "leading": "absolute inset-y-0 start-0 flex items-center",
39
- "leadingIcon": "shrink-0 text-base-400",
35
+ "leadingIcon": "shrink-0 text-(--b24ui-icon-color)",
40
36
  "leadingAvatar": "shrink-0",
41
37
  "leadingAvatarSize": "",
42
38
  "trailing": "absolute inset-y-0 end-0 flex items-center",
43
- "trailingIcon": "shrink-0 text-base-400",
44
- "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"
39
+ "trailingIcon": "shrink-0 text-(--b24ui-icon-color)",
40
+ "tag": "pointer-events-none select-none absolute z-10 -top-[7px] right-[14px] flex flex-col justify-center items-center"
45
41
  },
46
42
  "variants": {
47
43
  "buttonGroup": {
@@ -58,78 +54,100 @@ export default {
58
54
  "false": "group-not-only:not-first:after:content-[''] group-not-only:not-first:after:absolute group-not-only:not-first:after:top-[7px] group-not-only:not-first:after:bottom-[6px] group-not-only:not-first:after:left-0 group-not-only:not-first:after:w-px group-not-only:not-first:after:bg-current/30"
59
55
  },
60
56
  "size": {
57
+ "xss": {
58
+ "base": "h-[20px] gap-1 text-(length:--ui-font-size-4xs)/[normal]",
59
+ "leading": "px-1",
60
+ "trailing": "px-1",
61
+ "leadingIcon": "size-[12px]",
62
+ "leadingAvatarSize": "3xs",
63
+ "trailingIcon": "size-[12px]"
64
+ },
61
65
  "xs": {
62
- "base": "h-xl2 gap-1",
66
+ "base": "h-[24px] gap-1 text-(length:--ui-font-size-xs)/[normal]",
63
67
  "leading": "px-1",
64
68
  "trailing": "px-1",
65
- "leadingIcon": "size-lg2",
66
- "leadingAvatarSize": "2xs",
67
- "trailingIcon": "size-lg2"
69
+ "leadingIcon": "size-[14px]",
70
+ "leadingAvatarSize": "3xs",
71
+ "trailingIcon": "size-[14px]"
68
72
  },
69
73
  "sm": {
70
- "base": "h-8 gap-1.5",
74
+ "base": "h-[28px] gap-1.5 text-(length:--ui-font-size-sm)/[normal]",
71
75
  "leading": "px-1.5",
72
76
  "trailing": "px-1.5",
73
- "leadingIcon": "size-lg2",
74
- "leadingAvatarSize": "xs",
75
- "trailingIcon": "size-lg2"
77
+ "leadingIcon": "size-[16px]",
78
+ "leadingAvatar": "size-[16px]",
79
+ "leadingAvatarSize": "2xs",
80
+ "trailingIcon": "size-[16px]"
76
81
  },
77
82
  "md": {
78
- "base": "h-10 gap-1.5",
83
+ "base": "h-[34px] gap-1.5 text-(length:--ui-font-size-lg)/[normal]",
79
84
  "leading": "px-2",
80
85
  "trailing": "px-2",
81
- "leadingIcon": "size-[24px]",
82
- "leadingAvatarSize": "sm",
83
- "trailingIcon": "size-[24px]"
86
+ "leadingIcon": "size-[18px]",
87
+ "leadingAvatarSize": "2xs",
88
+ "trailingIcon": "size-[18px]"
84
89
  },
85
90
  "lg": {
86
- "base": "h-12 gap-2",
91
+ "base": "h-[38px] gap-2 text-(length:--ui-font-size-lg)/[normal]",
87
92
  "leading": "px-2",
88
93
  "trailing": "px-2",
89
- "leadingIcon": "size-[24px]",
90
- "leadingAvatarSize": "md",
91
- "trailingIcon": "size-[24px]"
94
+ "leadingIcon": "size-[22px]",
95
+ "leadingAvatarSize": "2xs",
96
+ "trailingIcon": "size-[22px]"
97
+ },
98
+ "xl": {
99
+ "base": "h-[46px] gap-2 text-(length:--ui-font-size-2xl)/[normal]",
100
+ "leading": "px-2",
101
+ "trailing": "px-2",
102
+ "leadingIcon": "size-[22px]",
103
+ "leadingAvatarSize": "2xs",
104
+ "trailingIcon": "size-[22px]"
92
105
  }
93
106
  },
94
107
  "color": {
95
- "default": "",
96
- "danger": "",
97
- "success": "",
98
- "warning": "",
99
- "primary": "",
100
- "secondary": "",
101
- "collab": "",
102
- "ai": ""
103
- },
104
- "tagColor": {
108
+ "air-primary": {
109
+ "base": "style-filled"
110
+ },
111
+ "air-primary-success": {
112
+ "base": "style-filled-success"
113
+ },
114
+ "air-primary-alert": {
115
+ "base": "style-filled-alert"
116
+ },
117
+ "air-primary-copilot": {
118
+ "base": "style-filled-copilot"
119
+ },
120
+ "air-primary-warning": {
121
+ "base": "style-filled-warning"
122
+ },
105
123
  "default": {
106
- "tag": "text-white bg-base-900 dark:text-base-150 dark:bg-base-900"
124
+ "base": "style-old-default"
107
125
  },
108
126
  "danger": {
109
- "tag": "text-white bg-red-500 dark:text-red-250 dark:bg-red-600"
127
+ "base": "style-old-danger"
110
128
  },
111
129
  "success": {
112
- "tag": "text-white bg-green-500 dark:text-green-250 dark:bg-green-600"
130
+ "base": "style-old-success"
113
131
  },
114
132
  "warning": {
115
- "tag": "text-white bg-orange-500 dark:text-orange-250 dark:bg-orange-600"
133
+ "base": "style-old-warning"
116
134
  },
117
135
  "primary": {
118
- "tag": "text-white bg-blue-500 dark:text-blue-250 dark:bg-blue-600"
136
+ "base": "style-old-primary"
119
137
  },
120
138
  "secondary": {
121
- "tag": "text-white bg-cyan-350 dark:text-base-150 dark:bg-cyan-500"
139
+ "base": "style-old-secondary"
122
140
  },
123
141
  "collab": {
124
- "tag": "text-white bg-collab-500 dark:text-collab-200 dark:bg-collab-800"
142
+ "base": "style-old-collab"
125
143
  },
126
144
  "ai": {
127
- "tag": "text-white bg-ai-500 dark:text-ai-200 dark:bg-ai-800"
145
+ "base": "style-old-ai"
128
146
  }
129
147
  },
130
148
  "rounded": {
131
- "true": "rounded-3xl",
132
- "false": "rounded-2xs"
149
+ "true": "rounded-(--ui-border-radius-3xl)",
150
+ "false": "rounded-(--ui-border-radius-sm)"
133
151
  },
134
152
  "noPadding": {
135
153
  "true": {
@@ -137,10 +155,10 @@ export default {
137
155
  }
138
156
  },
139
157
  "noBorder": {
140
- "true": "ring-0 focus-visible:ring-0"
158
+ "true": "ring-0 focus-visible:ring-0 style-transparent-bg"
141
159
  },
142
160
  "underline": {
143
- "true": "ring-0 focus-visible:ring-0 border-b border-b-base-300 rounded-none"
161
+ "true": "ring-0 focus-visible:ring-0 style-transparent-bg border-b-1 border-b-(--ui-color-design-outline-stroke) rounded-none"
144
162
  },
145
163
  "leading": {
146
164
  "true": ""
@@ -152,280 +170,140 @@ export default {
152
170
  "true": ""
153
171
  },
154
172
  "highlight": {
155
- "true": ""
173
+ "true": "ring ring-inset ring-(--b24ui-border-color)"
156
174
  },
157
175
  "type": {
158
- "file": "file:me-1.5 file:text-base-500 file:outline-none"
176
+ "file": [
177
+ "file:me-1.5",
178
+ "file:text-(--ui-color-design-plain-na-content-secondary)",
179
+ "file:outline-none"
180
+ ]
159
181
  }
160
182
  },
161
183
  "compoundVariants": [
162
184
  {
163
- "color": "default" as typeof color[number],
164
- "noBorder": false,
165
- "underline": false,
166
- "class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-base-900 dark:focus-visible:ring-base-350"
167
- },
168
- {
169
- "color": "default" as typeof color[number],
170
- "highlight": true,
171
- "noBorder": false,
172
- "underline": false,
173
- "class": "ring ring-inset ring-base-900 dark:ring-base-350"
174
- },
175
- {
176
- "color": "default" as typeof color[number],
177
- "noBorder": false,
178
- "underline": true,
179
- "class": "focus-visible:border-base-900 dark:focus-visible:border-b-base-350"
180
- },
181
- {
182
- "color": "default" as typeof color[number],
183
- "highlight": true,
184
- "noBorder": false,
185
- "underline": true,
186
- "class": "border-b-base-900 dark:border-b-base-350"
187
- },
188
- {
189
- "color": "danger" as typeof color[number],
190
- "noBorder": false,
191
- "underline": false,
192
- "class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-red-500 dark:focus-visible:ring-red-600"
193
- },
194
- {
195
- "color": "danger" as typeof color[number],
196
- "highlight": true,
197
- "noBorder": false,
198
- "underline": false,
199
- "class": "ring ring-inset ring-red-500 dark:ring-red-600"
200
- },
201
- {
202
- "color": "danger" as typeof color[number],
203
- "noBorder": false,
204
- "underline": true,
205
- "class": "focus-visible:border-b-red-500 dark:focus-visible:border-b-red-600"
206
- },
207
- {
208
- "color": "danger" as typeof color[number],
209
- "highlight": true,
210
- "noBorder": false,
211
- "underline": true,
212
- "class": "border-b-red-500 dark:border-b-red-600"
213
- },
214
- {
215
- "color": "success" as typeof color[number],
216
185
  "noBorder": false,
217
186
  "underline": false,
218
- "class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-green-500 dark:focus-visible:ring-green-600"
187
+ "class": ""
219
188
  },
220
189
  {
221
- "color": "success" as typeof color[number],
222
190
  "highlight": true,
223
191
  "noBorder": false,
224
192
  "underline": false,
225
- "class": "ring ring-inset ring-green-500 dark:ring-green-600"
193
+ "class": "ring ring-inset ring-(--b24ui-border-color)"
226
194
  },
227
195
  {
228
- "color": "success" as typeof color[number],
229
196
  "noBorder": false,
230
197
  "underline": true,
231
- "class": "focus-visible:border-b-green-500 dark:focus-visible:border-b-green-600"
198
+ "class": "focus-visible:border-(--b24ui-border-color)"
232
199
  },
233
200
  {
234
- "color": "success" as typeof color[number],
235
201
  "highlight": true,
236
202
  "noBorder": false,
237
203
  "underline": true,
238
- "class": "border-b-green-500 dark:border-b-green-600"
204
+ "class": "border-b-(--b24ui-border-color)"
239
205
  },
240
206
  {
241
- "color": "warning" as typeof color[number],
242
- "noBorder": false,
243
- "underline": false,
244
- "class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-orange-500 dark:focus-visible:ring-orange-600"
245
- },
246
- {
247
- "color": "warning" as typeof color[number],
248
- "highlight": true,
249
- "noBorder": false,
250
- "underline": false,
251
- "class": "ring ring-inset ring-orange-500 dark:ring-orange-600"
252
- },
253
- {
254
- "color": "warning" as typeof color[number],
255
- "noBorder": false,
256
- "underline": true,
257
- "class": "focus-visible:border-b-orange-500 dark:focus-visible:border-b-orange-600"
258
- },
259
- {
260
- "color": "warning" as typeof color[number],
261
- "highlight": true,
262
- "noBorder": false,
263
- "underline": true,
264
- "class": "border-b-orange-500 dark:border-b-orange-600"
265
- },
266
- {
267
- "color": "primary" as typeof color[number],
268
- "noBorder": false,
269
- "underline": false,
270
- "class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-blue-500 dark:focus-visible:ring-blue-600"
271
- },
272
- {
273
- "color": "primary" as typeof color[number],
274
- "highlight": true,
275
- "noBorder": false,
276
- "underline": false,
277
- "class": "ring ring-inset ring-blue-500 dark:ring-blue-600"
278
- },
279
- {
280
- "color": "primary" as typeof color[number],
281
- "noBorder": false,
282
- "underline": true,
283
- "class": "focus-visible:border-b-blue-500 dark:focus-visible:border-b-blue-600"
284
- },
285
- {
286
- "color": "primary" as typeof color[number],
287
- "highlight": true,
288
- "noBorder": false,
289
- "underline": true,
290
- "class": "border-b-blue-500 dark:border-b-blue-600"
291
- },
292
- {
293
- "color": "secondary" as typeof color[number],
294
- "noBorder": false,
295
- "underline": false,
296
- "class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-cyan-350 dark:focus-visible:ring-cyan-500"
297
- },
298
- {
299
- "color": "secondary" as typeof color[number],
300
- "highlight": true,
301
- "noBorder": false,
302
- "underline": false,
303
- "class": "ring ring-inset ring-cyan-350 dark:ring-cyan-500"
304
- },
305
- {
306
- "color": "secondary" as typeof color[number],
307
- "noBorder": false,
308
- "underline": true,
309
- "class": "focus-visible:border-b-cyan-350 dark:focus-visible:border-b-cyan-500"
310
- },
311
- {
312
- "color": "secondary" as typeof color[number],
313
- "highlight": true,
314
- "noBorder": false,
315
- "underline": true,
316
- "class": "border-b-cyan-350 dark:border-b-cyan-500"
317
- },
318
- {
319
- "color": "collab" as typeof color[number],
320
- "noBorder": false,
321
- "underline": false,
322
- "class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-collab-500 dark:focus-visible:ring-collab-600"
323
- },
324
- {
325
- "color": "collab" as typeof color[number],
326
- "highlight": true,
327
- "noBorder": false,
328
- "underline": false,
329
- "class": "ring ring-inset ring-collab-500 dark:ring-collab-600"
330
- },
331
- {
332
- "color": "collab" as typeof color[number],
333
- "noBorder": false,
334
- "underline": true,
335
- "class": "focus-visible:border-b-collab-500 dark:focus-visible:border-b-collab-600"
336
- },
337
- {
338
- "color": "collab" as typeof color[number],
339
- "highlight": true,
340
- "noBorder": false,
341
- "underline": true,
342
- "class": "border-b-collab-500 dark:border-b-collab-600"
343
- },
344
- {
345
- "color": "ai" as typeof color[number],
346
- "noBorder": false,
347
- "underline": false,
348
- "class": "focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-ai-500 dark:focus-visible:ring-ai-600"
349
- },
350
- {
351
- "color": "ai" as typeof color[number],
352
- "highlight": true,
353
- "noBorder": false,
354
- "underline": false,
355
- "class": "ring ring-inset ring-ai-500 dark:ring-ai-600"
356
- },
357
- {
358
- "color": "ai" as typeof color[number],
359
- "noBorder": false,
360
- "underline": true,
361
- "class": "focus-visible:border-b-ai-500 dark:focus-visible:border-b-ai-600"
362
- },
363
- {
364
- "color": "ai" as typeof color[number],
365
- "highlight": true,
366
- "noBorder": false,
367
- "underline": true,
368
- "class": "border-b-ai-500 dark:border-b-ai-600"
207
+ "type": "file" as typeof type[number],
208
+ "size": "xss" as typeof size[number],
209
+ "class": "py-[2px]"
369
210
  },
370
211
  {
371
212
  "type": "file" as typeof type[number],
372
213
  "size": "xs" as typeof size[number],
373
- "class": "py-1.5"
214
+ "class": "py-[4px]"
374
215
  },
375
216
  {
376
217
  "type": "file" as typeof type[number],
377
218
  "size": "sm" as typeof size[number],
378
- "class": "py-2.5"
219
+ "class": "py-[5px]"
379
220
  },
380
221
  {
381
222
  "type": "file" as typeof type[number],
382
223
  "size": "md" as typeof size[number],
383
- "class": "py-3"
224
+ "class": "py-[7px]"
384
225
  },
385
226
  {
386
227
  "type": "file" as typeof type[number],
387
228
  "size": "lg" as typeof size[number],
388
- "class": "py-4"
229
+ "class": "py-[9px]"
230
+ },
231
+ {
232
+ "type": "file" as typeof type[number],
233
+ "size": "xl" as typeof size[number],
234
+ "class": "py-[11px]"
235
+ },
236
+ {
237
+ "leading": true,
238
+ "noPadding": false,
239
+ "size": "xss" as typeof size[number],
240
+ "class": "ps-[20px]"
389
241
  },
390
242
  {
391
243
  "leading": true,
244
+ "noPadding": false,
392
245
  "size": "xs" as typeof size[number],
393
- "class": "ps-7"
246
+ "class": "ps-[22px]"
394
247
  },
395
248
  {
396
249
  "leading": true,
250
+ "noPadding": false,
397
251
  "size": "sm" as typeof size[number],
398
- "class": "ps-8"
252
+ "class": "ps-[28px]"
399
253
  },
400
254
  {
401
255
  "leading": true,
256
+ "noPadding": false,
402
257
  "size": "md" as typeof size[number],
403
- "class": "ps-[39px]"
258
+ "class": "ps-[34px]"
404
259
  },
405
260
  {
406
261
  "leading": true,
262
+ "noPadding": false,
407
263
  "size": "lg" as typeof size[number],
408
- "class": "ps-[42px]"
264
+ "class": "ps-[38px]"
265
+ },
266
+ {
267
+ "leading": true,
268
+ "noPadding": false,
269
+ "size": "xl" as typeof size[number],
270
+ "class": "ps-[38px]"
271
+ },
272
+ {
273
+ "trailing": true,
274
+ "noPadding": false,
275
+ "size": "xss" as typeof size[number],
276
+ "class": "pe-[20px]"
409
277
  },
410
278
  {
411
279
  "trailing": true,
280
+ "noPadding": false,
412
281
  "size": "xs" as typeof size[number],
413
- "class": "pe-7"
282
+ "class": "pe-[22px]"
414
283
  },
415
284
  {
416
285
  "trailing": true,
286
+ "noPadding": false,
417
287
  "size": "sm" as typeof size[number],
418
- "class": "pe-8"
288
+ "class": "pe-[28px]"
419
289
  },
420
290
  {
421
291
  "trailing": true,
292
+ "noPadding": false,
422
293
  "size": "md" as typeof size[number],
423
- "class": "pe-[39px]"
294
+ "class": "pe-[34px]"
424
295
  },
425
296
  {
426
297
  "trailing": true,
298
+ "noPadding": false,
427
299
  "size": "lg" as typeof size[number],
428
- "class": "pe-[39px]"
300
+ "class": "pe-[38px]"
301
+ },
302
+ {
303
+ "trailing": true,
304
+ "noPadding": false,
305
+ "size": "xl" as typeof size[number],
306
+ "class": "pe-[38px]"
429
307
  },
430
308
  {
431
309
  "loading": true,
@@ -444,8 +322,7 @@ export default {
444
322
  }
445
323
  ],
446
324
  "defaultVariants": {
447
- "size": "md" as typeof size[number],
448
- "color": "primary" as typeof color[number],
449
- "tagColor": "primary" as typeof tagColor[number]
325
+ "color": "air-primary" as typeof color[number],
326
+ "size": "md" as typeof size[number]
450
327
  }
451
328
  }
@@ -1,7 +1,7 @@
1
- const depth = [
2
- "light",
3
- "normal",
4
- "dark"
1
+ const accent = [
2
+ "default",
3
+ "accent",
4
+ "less"
5
5
  ] as const
6
6
 
7
7
  const size = [
@@ -11,21 +11,23 @@ const size = [
11
11
  ] as const
12
12
 
13
13
  export default {
14
- "base": "inline-flex items-center justify-center px-1 rounded-2xs font-normal font-b24-system-mono",
14
+ "slots": {
15
+ "base": "inline-flex items-center justify-center px-1 rounded-(--ui-border-radius-2xs) font-normal font-[family-name:var(--ui-font-family-system-mono)] border border-(length:--b24ui-border-width) border-(--b24ui-border-color) text-(--b24ui-color) bg-(--b24ui-background)"
16
+ },
15
17
  "variants": {
16
- "depth": {
17
- "light": "ring ring-inset text-base-900 bg-base-800/5 ring-base-800/20 dark:text-base-150 dark:bg-base-200/5 dark:ring-base-200/20",
18
- "normal": "ring ring-inset text-base-800 bg-base-150 ring-base-150 dark:text-base-950 dark:bg-base-200 dark:ring-base-200",
19
- "dark": "ring ring-inset text-white bg-base-500 ring-base-500 dark:text-base-50 dark:bg-base-600 dark:ring-base-600"
18
+ "accent": {
19
+ "default": "style-outline",
20
+ "accent": "style-outline-accent-1" as typeof accent[number],
21
+ "less": "style-outline-no-accent"
20
22
  },
21
23
  "size": {
22
- "sm": "h-[20px] min-w-[20px] text-[10px] leading-none",
23
- "md": "h-[24px] min-w-[24px] text-[14px] leading-none",
24
- "lg": "h-[28px] min-w-[28px] text-[18px] leading-none"
24
+ "sm": "h-[20px] min-w-[20px] text-(length:--ui-font-size-4xs)/(--ui-font-line-height-reset)",
25
+ "md": "h-[24px] min-w-[24px] text-(length:--ui-font-size-md)/(--ui-font-line-height-reset)",
26
+ "lg": "h-[28px] min-w-[28px] text-(length:--ui-font-size-2xl)/(--ui-font-line-height-reset)"
25
27
  }
26
28
  },
27
29
  "defaultVariants": {
28
- "depth": "light" as typeof depth[number],
30
+ "accent": "less" as typeof accent[number],
29
31
  "size": "md" as typeof size[number]
30
32
  }
31
33
  }
@@ -1,22 +1,22 @@
1
1
  export default {
2
- "base": "cursor-pointer focus-visible:outline-info-text",
2
+ "base": "cursor-pointer focus-visible:outline-(--ui-color-accent-main-primary) focus-visible:outline-1 focus-visible:rounded-[4px] text-start",
3
3
  "variants": {
4
4
  "active": {
5
- "true": "text-blue-700 dark:text-blue-300 hover:not-disabled:not-aria-disabled:underline underline-offset-2",
6
- "false": "text-base-900 dark:text-base-300 underline-offset-2"
5
+ "true": "text-(--ui-color-accent-main-primary) outline-(--ui-color-accent-main-primary) hover:not-disabled:not-aria-disabled:underline underline-offset-2",
6
+ "false": "text-(--ui-color-accent-main-link) underline-offset-2"
7
7
  },
8
8
  "disabled": {
9
9
  "true": "cursor-not-allowed opacity-75"
10
10
  },
11
11
  "isAction": {
12
- "true": "text-nowrap text-sm h-auto py-0 font-normal rounded-none border border-x-0 border-t-0 border-dashed border-b-base-900 text-base-900 dark:text-base-300 dark:border-b-base-300 hover:not-disabled:not-aria-disabled:no-underline hover:text-blue-700 hover:not-disabled:not-aria-disabled:text-blue-700 hover:border-b-blue-700 dark:hover:text-blue-300 dark:hover:not-disabled:not-aria-disabled:text-blue-300 dark:hover:border-b-blue-300 focus-visible:outline-base-700"
12
+ "true": "text-nowrap text-sm h-auto py-0 font-normal rounded-none border border-x-0 border-t-0 border-dashed text-(--ui-color-design-outline-a1-content) border-b-(--ui-color-design-outline-a1-content) hover:not-disabled:not-aria-disabled:no-underline hover:text(--ui-color-accent-soft-element-red) hover:not-disabled:not-aria-disabled:text-(--ui-color-accent-soft-element-red) hover:border-b-(--ui-color-accent-soft-element-red) focus-visible:outline-(--ui-color-accent-soft-element-red)"
13
13
  }
14
14
  },
15
15
  "compoundVariants": [
16
16
  {
17
17
  "active": false,
18
18
  "disabled": false,
19
- "class": "hover:text-blue-700 dark:hover:text-blue-300 hover:underline transition-colors"
19
+ "class": "hover:text-(--ui-color-accent-main-primary-alt) hover:underline"
20
20
  }
21
21
  ]
22
22
  }