@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,10 +1,10 @@
1
1
  import type { NumberFieldRootProps } from 'reka-ui';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import theme from '#build/b24ui/input-number';
4
- import type { ButtonProps, IconComponent } from '../types';
4
+ import type { ButtonProps, BadgeProps, IconComponent } from '../types';
5
5
  import type { ComponentConfig } from '../types/utils';
6
6
  type InputNumber = ComponentConfig<typeof theme, AppConfig, 'inputNumber'>;
7
- export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue' | 'defaultValue' | 'min' | 'max' | 'stepSnapping' | 'step' | 'disabled' | 'required' | 'id' | 'name' | 'formatOptions' | 'disableWheelChange' | 'invertWheelChange'> {
7
+ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue' | 'defaultValue' | 'min' | 'max' | 'stepSnapping' | 'step' | 'disabled' | 'required' | 'id' | 'name' | 'formatOptions' | 'disableWheelChange' | 'invertWheelChange' | 'readonly'> {
8
8
  /**
9
9
  * The element or component this component should render as.
10
10
  * @defaultValue 'div'
@@ -15,7 +15,7 @@ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue
15
15
  */
16
16
  placeholder?: string;
17
17
  /**
18
- * @defaultValue 'primary'
18
+ * @defaultValue 'air-primary'
19
19
  */
20
20
  color?: InputNumber['variants']['color'];
21
21
  /**
@@ -44,9 +44,9 @@ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue
44
44
  rounded?: boolean;
45
45
  tag?: string;
46
46
  /**
47
- * @defaultValue 'primary'
47
+ * @defaultValue 'air-primary'
48
48
  */
49
- tagColor?: InputNumber['variants']['tagColor'];
49
+ tagColor?: BadgeProps['color'];
50
50
  /**
51
51
  * Highlight the ring color like a focus state
52
52
  * @defaultValue false
@@ -59,7 +59,7 @@ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue
59
59
  orientation?: 'vertical' | 'horizontal';
60
60
  /**
61
61
  * Configure the increment button. The `size` is inherited.
62
- * @defaultValue { color: 'link', depth: 'light' }
62
+ * @defaultValue { color: 'air-tertiary-no-accent' }
63
63
  */
64
64
  increment?: ButtonProps;
65
65
  /**
@@ -72,7 +72,7 @@ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue
72
72
  incrementDisabled?: boolean;
73
73
  /**
74
74
  * Configure the decrement button. The `size` is inherited.
75
- * @defaultValue { color: 'link', depth: 'light' }
75
+ * @defaultValue { color: 'air-tertiary-no-accent' }
76
76
  */
77
77
  decrement?: ButtonProps;
78
78
  /**
@@ -100,9 +100,9 @@ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue
100
100
  b24ui?: InputNumber['slots'];
101
101
  }
102
102
  export interface InputNumberEmits {
103
- (e: 'update:modelValue', payload: number): void;
104
- (e: 'blur', event: FocusEvent): void;
105
- (e: 'change', payload: Event): void;
103
+ 'update:modelValue': [payload: number];
104
+ 'blur': [event: FocusEvent];
105
+ 'change': [payload: Event];
106
106
  }
107
107
  export interface InputNumberSlots {
108
108
  increment(props?: {}): any;
@@ -121,43 +121,6 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<InputNumbe
121
121
  };
122
122
  $refs: {
123
123
  [x: string]: unknown;
124
- } & {
125
- primitiveElement: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
126
- asChild: {
127
- type: BooleanConstructor;
128
- default: boolean;
129
- };
130
- as: {
131
- type: import("vue").PropType<import("reka-ui").AsTag | import("vue").Component>;
132
- default: string;
133
- };
134
- }>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
135
- [key: string]: any;
136
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
137
- asChild: boolean;
138
- as: import("reka-ui").AsTag | import("vue").Component;
139
- }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
140
- P: {};
141
- B: {};
142
- D: {};
143
- C: {};
144
- M: {};
145
- Defaults: {};
146
- }, Readonly<import("vue").ExtractPropTypes<{
147
- asChild: {
148
- type: BooleanConstructor;
149
- default: boolean;
150
- };
151
- as: {
152
- type: import("vue").PropType<import("reka-ui").AsTag | import("vue").Component>;
153
- default: string;
154
- };
155
- }>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
156
- [key: string]: any;
157
- }>, {}, {}, {}, {
158
- asChild: boolean;
159
- as: import("reka-ui").AsTag | import("vue").Component;
160
- }> | null;
161
124
  };
162
125
  $slots: Readonly<{
163
126
  [name: string]: import("vue").Slot<any> | undefined;
@@ -193,7 +156,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<InputNumbe
193
156
  as: import("reka-ui").AsTag | import("vue").Component;
194
157
  }> & Omit<Readonly<import("reka-ui").NumberFieldInputProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
195
158
  $slots: {
196
- default?(_: {}): any;
159
+ default?: (props: {}) => any;
197
160
  };
198
161
  }) | null, ({
199
162
  $: import("vue").ComponentInternalInstance;
@@ -207,43 +170,6 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<InputNumbe
207
170
  };
208
171
  $refs: {
209
172
  [x: string]: unknown;
210
- } & {
211
- primitiveElement: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
212
- asChild: {
213
- type: BooleanConstructor;
214
- default: boolean;
215
- };
216
- as: {
217
- type: import("vue").PropType<import("reka-ui").AsTag | import("vue").Component>;
218
- default: string;
219
- };
220
- }>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
221
- [key: string]: any;
222
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
223
- asChild: boolean;
224
- as: import("reka-ui").AsTag | import("vue").Component;
225
- }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
226
- P: {};
227
- B: {};
228
- D: {};
229
- C: {};
230
- M: {};
231
- Defaults: {};
232
- }, Readonly<import("vue").ExtractPropTypes<{
233
- asChild: {
234
- type: BooleanConstructor;
235
- default: boolean;
236
- };
237
- as: {
238
- type: import("vue").PropType<import("reka-ui").AsTag | import("vue").Component>;
239
- default: string;
240
- };
241
- }>> & Readonly<{}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
242
- [key: string]: any;
243
- }>, {}, {}, {}, {
244
- asChild: boolean;
245
- as: import("reka-ui").AsTag | import("vue").Component;
246
- }> | null;
247
173
  };
248
174
  $slots: Readonly<{
249
175
  [name: string]: import("vue").Slot<any> | undefined;
@@ -279,10 +205,10 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<InputNumbe
279
205
  as: import("reka-ui").AsTag | import("vue").Component;
280
206
  }> & Omit<Readonly<import("reka-ui").NumberFieldInputProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
281
207
  $slots: {
282
- default?(_: {}): any;
208
+ default?: (props: {}) => any;
283
209
  };
284
210
  }) | null>;
285
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
211
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
286
212
  blur: (event: FocusEvent) => any;
287
213
  change: (payload: Event) => any;
288
214
  "update:modelValue": (payload: number) => any;
@@ -11,18 +11,21 @@ import { tv } from "../utils/tv";
11
11
  const props = defineProps({
12
12
  as: { type: null, required: false, default: "kbd" },
13
13
  value: { type: null, required: false },
14
- depth: { type: null, required: false },
14
+ accent: { type: null, required: false, default: "default" },
15
15
  size: { type: null, required: false },
16
16
  class: { type: null, required: false }
17
17
  });
18
18
  defineSlots();
19
19
  const { getKbdKey } = useKbd();
20
20
  const appConfig = useAppConfig();
21
- const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.kbd || {} }));
21
+ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.kbd || {} })({
22
+ accent: props.accent,
23
+ size: props.size
24
+ }));
22
25
  </script>
23
26
 
24
27
  <template>
25
- <Primitive :as="as" :class="b24ui({ depth, size, class: props.class })">
28
+ <Primitive :as="as" :class="b24ui.base({ class: props.class })">
26
29
  <slot>
27
30
  {{ getKbdKey(value) }}
28
31
  </slot>
@@ -3,6 +3,9 @@ import theme from '#build/b24ui/kbd';
3
3
  import type { KbdKey } from '../composables/useKbd';
4
4
  import type { ComponentConfig } from '../types/utils';
5
5
  type Kbd = ComponentConfig<typeof theme, AppConfig, 'kbd'>;
6
+ /**
7
+ * @remove depth
8
+ */
6
9
  export interface KbdProps {
7
10
  /**
8
11
  * The element or component this component should render as.
@@ -11,9 +14,9 @@ export interface KbdProps {
11
14
  as?: any;
12
15
  value?: KbdKey | string;
13
16
  /**
14
- * @defaultValue 'light'
17
+ * @defaultValue 'default'
15
18
  */
16
- depth?: Kbd['variants']['depth'];
19
+ accent?: Kbd['variants']['accent'];
17
20
  /**
18
21
  * @defaultValue 'md'
19
22
  */
@@ -23,7 +26,8 @@ export interface KbdProps {
23
26
  export interface KbdSlots {
24
27
  default(props?: {}): any;
25
28
  }
26
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<KbdProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KbdProps> & Readonly<{}>, {
29
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<KbdProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KbdProps> & Readonly<{}>, {
30
+ accent: Kbd["variants"]["accent"];
27
31
  as: any;
28
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, KbdSlots>;
29
33
  export default _default;
@@ -4,11 +4,12 @@ import theme from "#build/b24ui/link";
4
4
 
5
5
  <script setup>
6
6
  import { computed } from "vue";
7
- import { defu } from "defu";
8
7
  import { isEqual } from "ohash/utils";
9
8
  import { useForwardProps } from "reka-ui";
9
+ import { defu } from "defu";
10
10
  import { reactiveOmit } from "@vueuse/core";
11
11
  import { useRoute, useAppConfig } from "#imports";
12
+ import { mergeClasses } from "../utils";
12
13
  import { tv } from "../utils/tv";
13
14
  import { isPartiallyEqual } from "../utils/link";
14
15
  import B24LinkBase from "./LinkBase.vue";
@@ -21,7 +22,7 @@ const props = defineProps({
21
22
  exact: { type: Boolean, required: false },
22
23
  exactQuery: { type: [Boolean, String], required: false },
23
24
  exactHash: { type: Boolean, required: false },
24
- inactiveClass: { type: String, required: false, default: "" },
25
+ inactiveClass: { type: String, required: false },
25
26
  custom: { type: Boolean, required: false },
26
27
  isAction: { type: Boolean, required: false, default: false },
27
28
  raw: { type: Boolean, required: false },
@@ -36,7 +37,7 @@ const props = defineProps({
36
37
  prefetch: { type: Boolean, required: false },
37
38
  prefetchOn: { type: [String, Object], required: false },
38
39
  noPrefetch: { type: Boolean, required: false },
39
- activeClass: { type: String, required: false, default: "" },
40
+ activeClass: { type: String, required: false },
40
41
  exactActiveClass: { type: String, required: false },
41
42
  ariaCurrentValue: { type: String, required: false, default: "page" },
42
43
  viewTransition: { type: Boolean, required: false },
@@ -51,8 +52,8 @@ const b24ui = computed(() => tv({
51
52
  ...defu({
52
53
  variants: {
53
54
  active: {
54
- true: props.activeClass,
55
- false: props.inactiveClass
55
+ true: mergeClasses(appConfig.b24ui?.link?.variants?.active?.true, props.activeClass),
56
+ false: mergeClasses(appConfig.b24ui?.link?.variants?.active?.false, props.inactiveClass)
56
57
  }
57
58
  }
58
59
  }, appConfig.b24ui?.link || {})
@@ -79,13 +79,11 @@ export interface LinkSlots {
79
79
  active: boolean;
80
80
  }): any;
81
81
  }
82
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
82
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
83
83
  as: any;
84
84
  type: "reset" | "submit" | "button";
85
- activeClass: string;
86
85
  ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false";
87
86
  active: boolean;
88
- inactiveClass: string;
89
87
  isAction: boolean;
90
88
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
91
89
  export default _default;
@@ -11,7 +11,7 @@ export interface LinkBaseProps {
11
11
  active?: boolean;
12
12
  isExternal?: boolean;
13
13
  }
14
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkBaseProps> & Readonly<{}>, {
14
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkBaseProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkBaseProps> & Readonly<{}>, {
15
15
  as: string;
16
16
  type: string;
17
17
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
@@ -92,44 +92,48 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.modal |
92
92
  </VisuallyHidden>
93
93
 
94
94
  <slot name="content" :close="close">
95
- <div v-if="!!slots.header || (title || !!slots.title) || (description || !!slots.description) || (props.close || !!slots.close)" :class="b24ui.header({ class: props.b24ui?.header })">
96
- <slot name="header" :close="close">
97
- <div :class="b24ui.wrapper({ class: props.b24ui?.wrapper })">
98
- <DialogTitle v-if="title || !!slots.title" :class="b24ui.title({ class: props.b24ui?.title })">
99
- <slot name="title">
100
- {{ title }}
101
- </slot>
102
- </DialogTitle>
95
+ <div
96
+ v-if="!!slots.header || (title || !!slots.title) || (description || !!slots.description) || (props.close || !!slots.close) || !!slots.body"
97
+ :class="b24ui.contentWrapper({ class: props.b24ui?.contentWrapper })"
98
+ >
99
+ <div v-if="!!slots.header || (title || !!slots.title) || (description || !!slots.description) || (props.close || !!slots.close)" :class="b24ui.header({ class: props.b24ui?.header })">
100
+ <slot name="header" :close="close">
101
+ <div :class="b24ui.wrapper({ class: props.b24ui?.wrapper })">
102
+ <DialogTitle v-if="title || !!slots.title" :class="b24ui.title({ class: props.b24ui?.title })">
103
+ <slot name="title">
104
+ {{ title }}
105
+ </slot>
106
+ </DialogTitle>
103
107
 
104
- <DialogDescription v-if="description || !!slots.description" :class="b24ui.description({ class: props.b24ui?.description })">
105
- <slot name="description">
106
- {{ description }}
107
- </slot>
108
- </DialogDescription>
109
- </div>
108
+ <DialogDescription v-if="description || !!slots.description" :class="b24ui.description({ class: props.b24ui?.description })">
109
+ <slot name="description">
110
+ {{ description }}
111
+ </slot>
112
+ </DialogDescription>
113
+ </div>
110
114
 
111
- <slot name="actions" />
115
+ <slot name="actions" />
112
116
 
113
- <DialogClose v-if="props.close || !!slots.close" as-child>
114
- <slot name="close" :close="close" :b24ui="b24ui">
115
- <B24Button
116
- v-if="props.close"
117
- :icon="closeIcon || icons.close"
118
- size="xs"
119
- color="link"
120
- :aria-label="t('modal.close')"
121
- v-bind="typeof props.close === 'object' ? props.close : {}"
122
- :class="b24ui.close({ class: props.b24ui?.close })"
123
- />
124
- </slot>
125
- </DialogClose>
126
- </slot>
127
- </div>
117
+ <DialogClose v-if="props.close || !!slots.close" as-child>
118
+ <slot name="close" :close="close" :b24ui="b24ui">
119
+ <B24Button
120
+ v-if="props.close"
121
+ :icon="closeIcon || icons.close"
122
+ size="md"
123
+ color="air-tertiary-no-accent"
124
+ :aria-label="t('modal.close')"
125
+ v-bind="typeof props.close === 'object' ? props.close : {}"
126
+ :class="b24ui.close({ class: props.b24ui?.close })"
127
+ />
128
+ </slot>
129
+ </DialogClose>
130
+ </slot>
131
+ </div>
128
132
 
129
- <div v-if="!!slots.body" :class="b24ui.body({ class: props.b24ui?.body, scrollbarThin: Boolean(props.scrollbarThin) })">
130
- <slot name="body" :close="close" />
133
+ <div v-if="!!slots.body" :class="b24ui.body({ class: props.b24ui?.body, scrollbarThin: Boolean(props.scrollbarThin) })">
134
+ <slot name="body" :close="close" />
135
+ </div>
131
136
  </div>
132
-
133
137
  <div v-if="!!slots.footer" :class="b24ui.footer({ class: props.b24ui?.footer })">
134
138
  <slot name="footer" :close="close" />
135
139
  </div>
@@ -92,7 +92,7 @@ export interface ModalSlots {
92
92
  close: () => void;
93
93
  }): any;
94
94
  }
95
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ModalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
95
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ModalProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
96
96
  "update:open": (value: boolean) => any;
97
97
  "after:leave": () => any;
98
98
  "after:enter": () => any;
@@ -104,11 +104,11 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ModalProps
104
104
  "onClose:prevent"?: (() => any) | undefined;
105
105
  }>, {
106
106
  close: boolean | Partial<ButtonProps>;
107
+ transition: boolean;
107
108
  modal: boolean;
108
109
  portal: boolean | string | HTMLElement;
109
110
  overlay: boolean;
110
111
  overlayBlur: Modal["variants"]["overlayBlur"];
111
- transition: boolean;
112
112
  dismissible: boolean;
113
113
  scrollbarThin: boolean;
114
114
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ModalSlots>;
@@ -1,7 +1,7 @@
1
1
  export interface ModalDialogCloseSlots {
2
2
  default(props: {}): any;
3
3
  }
4
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, ModalDialogCloseSlots>;
4
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, ModalDialogCloseSlots>;
5
5
  export default _default;
6
6
  type __VLS_WithSlots<T, S> = T & {
7
7
  new (): {
@@ -14,7 +14,7 @@ export interface NavbarProps {
14
14
  export interface NavbarSlots {
15
15
  default(props?: {}): any;
16
16
  }
17
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<NavbarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NavbarProps> & Readonly<{}>, {
17
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<NavbarProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NavbarProps> & Readonly<{}>, {
18
18
  as: any;
19
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, NavbarSlots>;
20
20
  export default _default;
@@ -14,7 +14,7 @@ export interface NavbarDividerProps {
14
14
  export interface NavbarDividerSlots {
15
15
  default(props?: {}): any;
16
16
  }
17
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<NavbarDividerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NavbarDividerProps> & Readonly<{}>, {
17
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<NavbarDividerProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NavbarDividerProps> & Readonly<{}>, {
18
18
  as: any;
19
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, NavbarDividerSlots>;
20
20
  export default _default;
@@ -14,7 +14,7 @@ export interface NavbarSectionProps {
14
14
  export interface NavbarSectionSlots {
15
15
  default(props?: {}): any;
16
16
  }
17
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<NavbarSectionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NavbarSectionProps> & Readonly<{}>, {
17
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<NavbarSectionProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NavbarSectionProps> & Readonly<{}>, {
18
18
  as: any;
19
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, NavbarSectionSlots>;
20
20
  export default _default;
@@ -14,7 +14,7 @@ export interface NavbarSpacerProps {
14
14
  export interface NavbarSpacerSlots {
15
15
  default(props?: {}): any;
16
16
  }
17
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<NavbarSpacerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NavbarSpacerProps> & Readonly<{}>, {
17
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<NavbarSpacerProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NavbarSpacerProps> & Readonly<{}>, {
18
18
  as: any;
19
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, NavbarSpacerSlots>;
20
20
  export default _default;