@bitrix24/b24ui-nuxt 2.0.9 → 2.1.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 (143) hide show
  1. package/dist/meta.d.mts +79556 -44766
  2. package/dist/meta.mjs +79556 -44766
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +3 -3
  5. package/dist/runtime/components/App.d.vue.ts +1 -1
  6. package/dist/runtime/components/App.vue +2 -1
  7. package/dist/runtime/components/App.vue.d.ts +1 -1
  8. package/dist/runtime/components/Avatar.d.vue.ts +2 -1
  9. package/dist/runtime/components/Avatar.vue.d.ts +2 -1
  10. package/dist/runtime/components/Button.vue +1 -0
  11. package/dist/runtime/components/Calendar.vue +1 -3
  12. package/dist/runtime/components/ChatPrompt.d.vue.ts +2 -2
  13. package/dist/runtime/components/ChatPrompt.vue +5 -5
  14. package/dist/runtime/components/ChatPrompt.vue.d.ts +2 -2
  15. package/dist/runtime/components/ChatPromptSubmit.d.vue.ts +5 -5
  16. package/dist/runtime/components/ChatPromptSubmit.vue +53 -4
  17. package/dist/runtime/components/ChatPromptSubmit.vue.d.ts +5 -5
  18. package/dist/runtime/components/Checkbox.d.vue.ts +2 -1
  19. package/dist/runtime/components/Checkbox.vue.d.ts +2 -1
  20. package/dist/runtime/components/CommandPalette.vue +5 -4
  21. package/dist/runtime/components/DashboardSearch.d.vue.ts +3 -6
  22. package/dist/runtime/components/DashboardSearch.vue +2 -3
  23. package/dist/runtime/components/DashboardSearch.vue.d.ts +3 -6
  24. package/dist/runtime/components/DashboardSearchButton.d.vue.ts +2 -3
  25. package/dist/runtime/components/DashboardSearchButton.vue +44 -6
  26. package/dist/runtime/components/DashboardSearchButton.vue.d.ts +2 -3
  27. package/dist/runtime/components/Error.d.vue.ts +1 -1
  28. package/dist/runtime/components/Error.vue.d.ts +1 -1
  29. package/dist/runtime/components/FileUpload.d.vue.ts +3 -2
  30. package/dist/runtime/components/FileUpload.vue +9 -9
  31. package/dist/runtime/components/FileUpload.vue.d.ts +3 -2
  32. package/dist/runtime/components/Form.d.vue.ts +2 -1
  33. package/dist/runtime/components/Form.vue.d.ts +2 -1
  34. package/dist/runtime/components/Input.d.vue.ts +7 -7
  35. package/dist/runtime/components/Input.vue +2 -2
  36. package/dist/runtime/components/Input.vue.d.ts +7 -7
  37. package/dist/runtime/components/InputDate.d.vue.ts +110 -0
  38. package/dist/runtime/components/InputDate.vue +192 -0
  39. package/dist/runtime/components/InputDate.vue.d.ts +110 -0
  40. package/dist/runtime/components/InputMenu.d.vue.ts +7 -128
  41. package/dist/runtime/components/InputMenu.vue +3 -3
  42. package/dist/runtime/components/InputMenu.vue.d.ts +7 -128
  43. package/dist/runtime/components/InputNumber.d.vue.ts +25 -129
  44. package/dist/runtime/components/InputNumber.vue +4 -7
  45. package/dist/runtime/components/InputNumber.vue.d.ts +25 -129
  46. package/dist/runtime/components/InputTags.d.vue.ts +6 -109
  47. package/dist/runtime/components/InputTags.vue +8 -8
  48. package/dist/runtime/components/InputTags.vue.d.ts +6 -109
  49. package/dist/runtime/components/InputTime.d.vue.ts +94 -0
  50. package/dist/runtime/components/InputTime.vue +164 -0
  51. package/dist/runtime/components/InputTime.vue.d.ts +94 -0
  52. package/dist/runtime/components/Link.d.vue.ts +4 -49
  53. package/dist/runtime/components/Link.vue +1 -0
  54. package/dist/runtime/components/Link.vue.d.ts +4 -49
  55. package/dist/runtime/components/Modal.d.vue.ts +1 -1
  56. package/dist/runtime/components/Modal.vue.d.ts +1 -1
  57. package/dist/runtime/components/Pagination.d.vue.ts +2 -2
  58. package/dist/runtime/components/Pagination.vue.d.ts +2 -2
  59. package/dist/runtime/components/PinInput.d.vue.ts +3 -3
  60. package/dist/runtime/components/PinInput.vue.d.ts +3 -3
  61. package/dist/runtime/components/Progress.d.vue.ts +1 -1
  62. package/dist/runtime/components/Progress.vue.d.ts +1 -1
  63. package/dist/runtime/components/Select.d.vue.ts +6 -107
  64. package/dist/runtime/components/Select.vue +3 -3
  65. package/dist/runtime/components/Select.vue.d.ts +6 -107
  66. package/dist/runtime/components/SelectMenu.d.vue.ts +7 -106
  67. package/dist/runtime/components/SelectMenu.vue +3 -3
  68. package/dist/runtime/components/SelectMenu.vue.d.ts +7 -106
  69. package/dist/runtime/components/Slideover.d.vue.ts +1 -1
  70. package/dist/runtime/components/Slideover.vue.d.ts +1 -1
  71. package/dist/runtime/components/Switch.d.vue.ts +2 -1
  72. package/dist/runtime/components/Switch.vue.d.ts +2 -1
  73. package/dist/runtime/components/Table.d.vue.ts +5 -4
  74. package/dist/runtime/components/Table.vue +4 -3
  75. package/dist/runtime/components/Table.vue.d.ts +5 -4
  76. package/dist/runtime/components/Textarea.d.vue.ts +7 -6
  77. package/dist/runtime/components/Textarea.vue +2 -2
  78. package/dist/runtime/components/Textarea.vue.d.ts +7 -6
  79. package/dist/runtime/components/Toast.vue +5 -5
  80. package/dist/runtime/components/Toaster.d.vue.ts +1 -1
  81. package/dist/runtime/components/Toaster.vue.d.ts +1 -1
  82. package/dist/runtime/components/color-mode/ColorModeAvatar.d.vue.ts +3 -3
  83. package/dist/runtime/components/color-mode/ColorModeAvatar.vue +16 -4
  84. package/dist/runtime/components/color-mode/ColorModeAvatar.vue.d.ts +3 -3
  85. package/dist/runtime/components/color-mode/ColorModeButton.d.vue.ts +3 -3
  86. package/dist/runtime/components/color-mode/ColorModeButton.vue +54 -6
  87. package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +3 -3
  88. package/dist/runtime/components/color-mode/ColorModeImage.d.vue.ts +4 -3
  89. package/dist/runtime/components/color-mode/ColorModeImage.vue +4 -0
  90. package/dist/runtime/components/color-mode/ColorModeImage.vue.d.ts +4 -3
  91. package/dist/runtime/components/color-mode/ColorModeSelect.d.vue.ts +5 -3
  92. package/dist/runtime/components/color-mode/ColorModeSelect.vue +47 -5
  93. package/dist/runtime/components/color-mode/ColorModeSelect.vue.d.ts +5 -3
  94. package/dist/runtime/components/color-mode/ColorModeSwitch.d.vue.ts +2 -2
  95. package/dist/runtime/components/color-mode/ColorModeSwitch.vue +29 -5
  96. package/dist/runtime/components/color-mode/ColorModeSwitch.vue.d.ts +2 -2
  97. package/dist/runtime/components/content/ContentSearch.d.vue.ts +3 -6
  98. package/dist/runtime/components/content/ContentSearch.vue +2 -3
  99. package/dist/runtime/components/content/ContentSearch.vue.d.ts +3 -6
  100. package/dist/runtime/components/content/ContentSearchButton.d.vue.ts +2 -3
  101. package/dist/runtime/components/content/ContentSearchButton.vue +43 -5
  102. package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +2 -3
  103. package/dist/runtime/components/content/ContentSurround.vue +7 -1
  104. package/dist/runtime/components/locale/LocaleSelect.d.vue.ts +11 -7
  105. package/dist/runtime/components/locale/LocaleSelect.vue +50 -6
  106. package/dist/runtime/components/locale/LocaleSelect.vue.d.ts +11 -7
  107. package/dist/runtime/components/prose/Callout.vue +4 -0
  108. package/dist/runtime/composables/index.d.ts +8 -0
  109. package/dist/runtime/composables/index.js +8 -0
  110. package/dist/runtime/composables/useFileUpload.d.ts +2 -1
  111. package/dist/runtime/composables/useFileUpload.js +13 -4
  112. package/dist/runtime/inertia/components/Link.d.vue.ts +17 -10
  113. package/dist/runtime/inertia/components/Link.vue +8 -6
  114. package/dist/runtime/inertia/components/Link.vue.d.ts +17 -10
  115. package/dist/runtime/inertia/stubs.d.ts +1 -1
  116. package/dist/runtime/types/html.d.ts +8 -0
  117. package/dist/runtime/types/html.js +0 -0
  118. package/dist/runtime/types/index.d.ts +2 -0
  119. package/dist/runtime/types/index.js +2 -0
  120. package/dist/runtime/types/input.d.ts +5 -5
  121. package/dist/runtime/types/utils.d.ts +2 -0
  122. package/dist/runtime/utils/content.d.ts +2 -2
  123. package/dist/runtime/utils/dashboard.d.ts +1 -1
  124. package/dist/runtime/utils/link.d.ts +1 -0
  125. package/dist/runtime/utils/link.js +40 -24
  126. package/dist/runtime/vue/components/Link.d.vue.ts +8 -37
  127. package/dist/runtime/vue/components/Link.vue +6 -11
  128. package/dist/runtime/vue/components/Link.vue.d.ts +8 -37
  129. package/dist/runtime/vue/components/color-mode/ColorModeButton.d.vue.ts +2 -2
  130. package/dist/runtime/vue/components/color-mode/ColorModeButton.vue +55 -5
  131. package/dist/runtime/vue/components/color-mode/ColorModeButton.vue.d.ts +2 -2
  132. package/dist/runtime/vue/components/color-mode/ColorModeSelect.d.vue.ts +5 -3
  133. package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue +46 -3
  134. package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue.d.ts +5 -3
  135. package/dist/runtime/vue/components/color-mode/ColorModeSwitch.d.vue.ts +1 -1
  136. package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue +24 -3
  137. package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue.d.ts +1 -1
  138. package/dist/runtime/vue/stubs.d.ts +2 -2
  139. package/dist/runtime/vue/stubs.js +1 -1
  140. package/dist/shared/{b24ui-nuxt.4XNR9Ysu.mjs → b24ui-nuxt.B13KxxqP.mjs} +137 -3
  141. package/dist/unplugin.mjs +1 -1
  142. package/dist/vite.mjs +1 -1
  143. package/package.json +24 -14
@@ -3,7 +3,7 @@ import theme from "#build/b24ui/select-menu";
3
3
  </script>
4
4
 
5
5
  <script setup>
6
- import { ref, computed, onMounted, toRef, toRaw } from "vue";
6
+ import { useTemplateRef, computed, onMounted, toRef, toRaw } from "vue";
7
7
  import { Primitive, ComboboxRoot, ComboboxArrow, ComboboxAnchor, ComboboxInput, ComboboxTrigger, ComboboxPortal, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxVirtualizer, ComboboxLabel, ComboboxSeparator, ComboboxItem, ComboboxItemIndicator, FocusScope, useForwardPropsEmits, useFilter } from "reka-ui";
8
8
  import { defu } from "defu";
9
9
  import { reactivePick, createReusableTemplate } from "@vueuse/core";
@@ -174,7 +174,7 @@ const createItem = computed(() => {
174
174
  return !filteredItems.value.length;
175
175
  });
176
176
  const createItemPosition = computed(() => typeof props.createItem === "object" ? props.createItem.position : "bottom");
177
- const triggerRef = ref(null);
177
+ const triggerRef = useTemplateRef("triggerRef");
178
178
  function autoFocus() {
179
179
  if (props.autofocus) {
180
180
  triggerRef.value?.$el?.focus({
@@ -232,7 +232,7 @@ function isSelectItem(item) {
232
232
  return typeof item === "object" && item !== null;
233
233
  }
234
234
  defineExpose({
235
- triggerRef
235
+ triggerRef: toRef(() => triggerRef.value?.$el)
236
236
  });
237
237
  </script>
238
238
 
@@ -3,6 +3,7 @@ import type { AppConfig } from '@nuxt/schema';
3
3
  import theme from '#build/b24ui/select-menu';
4
4
  import type { UseComponentIconsProps } from '../composables/useComponentIcons';
5
5
  import type { AvatarProps, ChipProps, InputProps, BadgeProps, IconComponent } from '../types';
6
+ import type { ButtonHTMLAttributes } from '../types/html';
6
7
  import type { AcceptableValue, ArrayOrNested, GetItemKeys, GetModelValue, GetModelValueEmits, NestedItem, EmitsToProps } from '../types/utils';
7
8
  import type { ComponentConfig } from '../types/tv';
8
9
  type SelectMenu = ComponentConfig<typeof theme, AppConfig, 'selectMenu'>;
@@ -29,7 +30,7 @@ export type SelectMenuItem = SelectMenuValue | {
29
30
  b24ui?: Pick<SelectMenu['slots'], 'label' | 'separator' | 'item' | 'itemLeadingIcon' | 'itemLeadingAvatarSize' | 'itemLeadingAvatar' | 'itemLeadingChipSize' | 'itemLeadingChip' | 'itemWrapper' | 'itemLabel' | 'itemDescription' | 'itemTrailing' | 'itemTrailingIcon'>;
30
31
  [key: string]: any;
31
32
  };
32
- export interface SelectMenuProps<T extends ArrayOrNested<SelectMenuItem> = ArrayOrNested<SelectMenuItem>, VK extends GetItemKeys<T> | undefined = undefined, M extends boolean = false> extends Pick<ComboboxRootProps<T>, 'open' | 'defaultOpen' | 'disabled' | 'name' | 'resetSearchTermOnBlur' | 'resetSearchTermOnSelect' | 'highlightOnHover'>, UseComponentIconsProps {
33
+ export interface SelectMenuProps<T extends ArrayOrNested<SelectMenuItem> = ArrayOrNested<SelectMenuItem>, VK extends GetItemKeys<T> | undefined = undefined, M extends boolean = false> extends Pick<ComboboxRootProps<T>, 'open' | 'defaultOpen' | 'disabled' | 'name' | 'resetSearchTermOnBlur' | 'resetSearchTermOnSelect' | 'highlightOnHover'>, UseComponentIconsProps, /** @vue-ignore */ Omit<ButtonHTMLAttributes, 'type' | 'disabled' | 'name'> {
33
34
  id?: string;
34
35
  /** The placeholder text when the select is empty. */
35
36
  placeholder?: string;
@@ -64,7 +65,7 @@ export interface SelectMenuProps<T extends ArrayOrNested<SelectMenuItem> = Array
64
65
  */
65
66
  underline?: boolean;
66
67
  /**
67
- * Rounds the corners of the button
68
+ * Rounds the corners of the select
68
69
  * @defaultValue false
69
70
  */
70
71
  rounded?: boolean;
@@ -226,11 +227,11 @@ declare const __VLS_export: <T extends ArrayOrNested<SelectMenuItem>, VK extends
226
227
  props: __VLS_PrettifyLocal<(SelectMenuProps<T, VK, M> & {
227
228
  searchTerm?: string;
228
229
  }) & {
229
- onBlur?: ((event: FocusEvent) => any) | undefined;
230
230
  onChange?: ((event: Event) => any) | undefined;
231
+ onBlur?: ((event: FocusEvent) => any) | undefined;
231
232
  onFocus?: ((event: FocusEvent) => any) | undefined;
232
- onCreate?: ((item: string) => any) | undefined;
233
233
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
234
+ onCreate?: ((item: string) => any) | undefined;
234
235
  "onUpdate:modelValue"?: ((value: GetModelValue<T, VK, M>) => any) | undefined;
235
236
  onHighlight?: ((payload: {
236
237
  ref: HTMLElement;
@@ -239,111 +240,11 @@ declare const __VLS_export: <T extends ArrayOrNested<SelectMenuItem>, VK extends
239
240
  "onUpdate:searchTerm"?: ((value: string) => any) | undefined;
240
241
  }> & import("vue").PublicProps;
241
242
  expose: (exposed: import("vue").ShallowUnwrapRef<{
242
- triggerRef: import("vue").Ref<({
243
- $: import("vue").ComponentInternalInstance;
244
- $data: {};
245
- $props: {
246
- readonly disabled?: boolean | undefined;
247
- readonly asChild?: boolean | undefined;
248
- readonly as?: (import("reka-ui").AsTag | import("vue").Component) | undefined;
249
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
250
- $attrs: {
251
- [x: string]: unknown;
252
- };
253
- $refs: {
254
- [x: string]: unknown;
255
- };
256
- $slots: Readonly<{
257
- [name: string]: import("vue").Slot<any> | undefined;
258
- }>;
259
- $root: import("vue").ComponentPublicInstance | null;
260
- $parent: import("vue").ComponentPublicInstance | null;
261
- $host: Element | null;
262
- $emit: (event: string, ...args: any[]) => void;
263
- $el: any;
264
- $options: import("vue").ComponentOptionsBase<Readonly<import("reka-ui").ComboboxTriggerProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
265
- as: import("reka-ui").AsTag | import("vue").Component;
266
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
267
- beforeCreate?: (() => void) | (() => void)[];
268
- created?: (() => void) | (() => void)[];
269
- beforeMount?: (() => void) | (() => void)[];
270
- mounted?: (() => void) | (() => void)[];
271
- beforeUpdate?: (() => void) | (() => void)[];
272
- updated?: (() => void) | (() => void)[];
273
- activated?: (() => void) | (() => void)[];
274
- deactivated?: (() => void) | (() => void)[];
275
- beforeDestroy?: (() => void) | (() => void)[];
276
- beforeUnmount?: (() => void) | (() => void)[];
277
- destroyed?: (() => void) | (() => void)[];
278
- unmounted?: (() => void) | (() => void)[];
279
- renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
280
- renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
281
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
282
- };
283
- $forceUpdate: () => void;
284
- $nextTick: typeof import("vue").nextTick;
285
- $watch<T_1 extends string | ((...args: any) => any)>(source: T_1, cb: T_1 extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
286
- } & Readonly<{
287
- as: import("reka-ui").AsTag | import("vue").Component;
288
- }> & Omit<Readonly<import("reka-ui").ComboboxTriggerProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
289
- $slots: {
290
- default?: (props: {}) => any;
291
- };
292
- }) | null, ({
293
- $: import("vue").ComponentInternalInstance;
294
- $data: {};
295
- $props: {
296
- readonly disabled?: boolean | undefined;
297
- readonly asChild?: boolean | undefined;
298
- readonly as?: (import("reka-ui").AsTag | import("vue").Component) | undefined;
299
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
300
- $attrs: {
301
- [x: string]: unknown;
302
- };
303
- $refs: {
304
- [x: string]: unknown;
305
- };
306
- $slots: Readonly<{
307
- [name: string]: import("vue").Slot<any> | undefined;
308
- }>;
309
- $root: import("vue").ComponentPublicInstance | null;
310
- $parent: import("vue").ComponentPublicInstance | null;
311
- $host: Element | null;
312
- $emit: (event: string, ...args: any[]) => void;
313
- $el: any;
314
- $options: import("vue").ComponentOptionsBase<Readonly<import("reka-ui").ComboboxTriggerProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
315
- as: import("reka-ui").AsTag | import("vue").Component;
316
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
317
- beforeCreate?: (() => void) | (() => void)[];
318
- created?: (() => void) | (() => void)[];
319
- beforeMount?: (() => void) | (() => void)[];
320
- mounted?: (() => void) | (() => void)[];
321
- beforeUpdate?: (() => void) | (() => void)[];
322
- updated?: (() => void) | (() => void)[];
323
- activated?: (() => void) | (() => void)[];
324
- deactivated?: (() => void) | (() => void)[];
325
- beforeDestroy?: (() => void) | (() => void)[];
326
- beforeUnmount?: (() => void) | (() => void)[];
327
- destroyed?: (() => void) | (() => void)[];
328
- unmounted?: (() => void) | (() => void)[];
329
- renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
330
- renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
331
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
332
- };
333
- $forceUpdate: () => void;
334
- $nextTick: typeof import("vue").nextTick;
335
- $watch<T_1 extends string | ((...args: any) => any)>(source: T_1, cb: T_1 extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
336
- } & Readonly<{
337
- as: import("reka-ui").AsTag | import("vue").Component;
338
- }> & Omit<Readonly<import("reka-ui").ComboboxTriggerProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
339
- $slots: {
340
- default?: (props: {}) => any;
341
- };
342
- }) | null>;
243
+ triggerRef: Readonly<import("vue").Ref<HTMLButtonElement, HTMLButtonElement>>;
343
244
  }>) => void;
344
245
  attrs: any;
345
246
  slots: SelectMenuSlots<T, VK, M, NestedItem<T>>;
346
- emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "create", item: string) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: GetModelValue<T, VK, M>) => void) & ((evt: "highlight", payload: {
247
+ emit: (((evt: "change", event: Event) => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "create", item: string) => void) & ((evt: "update:modelValue", value: GetModelValue<T, VK, M>) => void) & ((evt: "highlight", payload: {
347
248
  ref: HTMLElement;
348
249
  value: GetModelValue<T, VK, M>;
349
250
  } | undefined) => void)) & ((evt: "update:searchTerm", value: string) => void);
@@ -107,11 +107,11 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Slideo
107
107
  "onAfter:enter"?: (() => any) | undefined;
108
108
  "onClose:prevent"?: (() => any) | undefined;
109
109
  }>, {
110
+ overlay: boolean;
110
111
  close: boolean | Partial<ButtonProps>;
111
112
  transition: boolean;
112
113
  modal: boolean;
113
114
  portal: boolean | string | HTMLElement;
114
- overlay: boolean;
115
115
  side: Slideover["variants"]["side"];
116
116
  overlayBlur: Slideover["variants"]["overlayBlur"];
117
117
  dismissible: boolean;
@@ -107,11 +107,11 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Slideo
107
107
  "onAfter:enter"?: (() => any) | undefined;
108
108
  "onClose:prevent"?: (() => any) | undefined;
109
109
  }>, {
110
+ overlay: boolean;
110
111
  close: boolean | Partial<ButtonProps>;
111
112
  transition: boolean;
112
113
  modal: boolean;
113
114
  portal: boolean | string | HTMLElement;
114
- overlay: boolean;
115
115
  side: Slideover["variants"]["side"];
116
116
  overlayBlur: Slideover["variants"]["overlayBlur"];
117
117
  dismissible: boolean;
@@ -2,9 +2,10 @@ import type { SwitchRootProps } from 'reka-ui';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import theme from '#build/b24ui/switch';
4
4
  import type { IconComponent } from '../types';
5
+ import type { ButtonHTMLAttributes } from '../types/html';
5
6
  import type { ComponentConfig } from '../types/tv';
6
7
  type Switch = ComponentConfig<typeof theme, AppConfig, 'switch'>;
7
- export interface SwitchProps extends Pick<SwitchRootProps, 'disabled' | 'id' | 'name' | 'required' | 'value' | 'defaultValue'> {
8
+ export interface SwitchProps extends Pick<SwitchRootProps, 'disabled' | 'id' | 'name' | 'required' | 'value' | 'defaultValue'>, /** @vue-ignore */ Omit<ButtonHTMLAttributes, 'type' | 'disabled' | 'name'> {
8
9
  /**
9
10
  * The element or component this component should render as.
10
11
  * @defaultValue 'div'
@@ -2,9 +2,10 @@ import type { SwitchRootProps } from 'reka-ui';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import theme from '#build/b24ui/switch';
4
4
  import type { IconComponent } from '../types';
5
+ import type { ButtonHTMLAttributes } from '../types/html';
5
6
  import type { ComponentConfig } from '../types/tv';
6
7
  type Switch = ComponentConfig<typeof theme, AppConfig, 'switch'>;
7
- export interface SwitchProps extends Pick<SwitchRootProps, 'disabled' | 'id' | 'name' | 'required' | 'value' | 'defaultValue'> {
8
+ export interface SwitchProps extends Pick<SwitchRootProps, 'disabled' | 'id' | 'name' | 'required' | 'value' | 'defaultValue'>, /** @vue-ignore */ Omit<ButtonHTMLAttributes, 'type' | 'disabled' | 'name'> {
8
9
  /**
9
10
  * The element or component this component should render as.
10
11
  * @defaultValue 'div'
@@ -1,9 +1,10 @@
1
- import type { Ref, WatchOptions } from 'vue';
1
+ import type { WatchOptions } from 'vue';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import type { Cell, Header, RowData, TableMeta } from '@tanstack/table-core';
4
4
  import type { CellContext, ColumnDef, ColumnFiltersOptions, ColumnFiltersState, ColumnOrderState, ColumnPinningOptions, ColumnPinningState, ColumnSizingInfoState, ColumnSizingOptions, ColumnSizingState, CoreOptions, ExpandedOptions, ExpandedState, FacetedOptions, GlobalFilterOptions, GroupingOptions, GroupingState, HeaderContext, PaginationOptions, PaginationState, Row, RowPinningOptions, RowPinningState, RowSelectionOptions, RowSelectionState, SortingOptions, SortingState, VisibilityOptions, VisibilityState } from '@tanstack/vue-table';
5
5
  import type { VirtualizerOptions } from '@tanstack/vue-virtual';
6
6
  import theme from '#build/b24ui/table';
7
+ import type { TableHTMLAttributes } from '../types/html';
7
8
  import type { ComponentConfig } from '../types/tv';
8
9
  declare module '@tanstack/table-core' {
9
10
  interface ColumnMeta<TData extends RowData, TValue> {
@@ -40,7 +41,7 @@ export interface TableOptions<T extends TableData = TableData> extends Omit<Core
40
41
  onStateChange?: CoreOptions<T>['onStateChange'];
41
42
  renderFallbackValue?: CoreOptions<T>['renderFallbackValue'];
42
43
  }
43
- export interface TableProps<T extends TableData = TableData> extends TableOptions<T> {
44
+ export interface TableProps<T extends TableData = TableData> extends TableOptions<T>, /** @vue-ignore */ TableHTMLAttributes {
44
45
  /**
45
46
  * The element or component this component should render as.
46
47
  * @defaultValue 'div'
@@ -205,8 +206,8 @@ declare const __VLS_export: <T extends TableData>(__VLS_props: NonNullable<Await
205
206
  "onUpdate:pagination"?: ((value: PaginationState) => any) | undefined;
206
207
  }> & import("vue").PublicProps;
207
208
  expose: (exposed: import("vue").ShallowUnwrapRef<{
208
- readonly $el: any;
209
- tableRef: Ref<HTMLTableElement | null, HTMLTableElement | null>;
209
+ readonly $el: HTMLElement;
210
+ tableRef: Readonly<import("vue").ShallowRef<HTMLTableElement | null>>;
210
211
  tableApi: import("@tanstack/table-core").Table<T>;
211
212
  }>) => void;
212
213
  attrs: any;
@@ -3,7 +3,7 @@ import theme from "#build/b24ui/table";
3
3
  </script>
4
4
 
5
5
  <script setup>
6
- import { computed, ref, watch, toRef } from "vue";
6
+ import { ref, computed, useTemplateRef, watch, toRef } from "vue";
7
7
  import { Primitive } from "reka-ui";
8
8
  import { upperFirst } from "scule";
9
9
  import { defu } from "defu";
@@ -134,8 +134,8 @@ const sortingState = defineModel("sorting", { type: Array, ...{ default: [] } })
134
134
  const groupingState = defineModel("grouping", { type: Array, ...{ default: [] } });
135
135
  const expandedState = defineModel("expanded", { type: [Boolean, Object], ...{ default: {} } });
136
136
  const paginationState = defineModel("pagination", { type: Object, ...{ default: {} } });
137
- const rootRef = ref();
138
- const tableRef = ref(null);
137
+ const rootRef = useTemplateRef("rootRef");
138
+ const tableRef = useTemplateRef("tableRef");
139
139
  const tableApi = useVueTable({
140
140
  ...reactiveOmit(props, "as", "data", "columns", "virtualize", "caption", "sticky", "loading", "loadingColor", "loadingAnimation", "class", "b24ui"),
141
141
  data,
@@ -349,6 +349,7 @@ defineExpose({
349
349
  ],
350
350
  pinned: !!header.column.getIsPinned()
351
351
  })"
352
+ :style="resolveValue(header.column.columnDef.meta?.style?.th, header)"
352
353
  >
353
354
  <slot :name="`${header.id}-header`" v-bind="header.getContext()">
354
355
  <FlexRender v-if="!header.isPlaceholder" :render="header.column.columnDef.header" :props="header.getContext()" />
@@ -1,9 +1,10 @@
1
- import type { Ref, WatchOptions } from 'vue';
1
+ import type { WatchOptions } from 'vue';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import type { Cell, Header, RowData, TableMeta } from '@tanstack/table-core';
4
4
  import type { CellContext, ColumnDef, ColumnFiltersOptions, ColumnFiltersState, ColumnOrderState, ColumnPinningOptions, ColumnPinningState, ColumnSizingInfoState, ColumnSizingOptions, ColumnSizingState, CoreOptions, ExpandedOptions, ExpandedState, FacetedOptions, GlobalFilterOptions, GroupingOptions, GroupingState, HeaderContext, PaginationOptions, PaginationState, Row, RowPinningOptions, RowPinningState, RowSelectionOptions, RowSelectionState, SortingOptions, SortingState, VisibilityOptions, VisibilityState } from '@tanstack/vue-table';
5
5
  import type { VirtualizerOptions } from '@tanstack/vue-virtual';
6
6
  import theme from '#build/b24ui/table';
7
+ import type { TableHTMLAttributes } from '../types/html';
7
8
  import type { ComponentConfig } from '../types/tv';
8
9
  declare module '@tanstack/table-core' {
9
10
  interface ColumnMeta<TData extends RowData, TValue> {
@@ -40,7 +41,7 @@ export interface TableOptions<T extends TableData = TableData> extends Omit<Core
40
41
  onStateChange?: CoreOptions<T>['onStateChange'];
41
42
  renderFallbackValue?: CoreOptions<T>['renderFallbackValue'];
42
43
  }
43
- export interface TableProps<T extends TableData = TableData> extends TableOptions<T> {
44
+ export interface TableProps<T extends TableData = TableData> extends TableOptions<T>, /** @vue-ignore */ TableHTMLAttributes {
44
45
  /**
45
46
  * The element or component this component should render as.
46
47
  * @defaultValue 'div'
@@ -205,8 +206,8 @@ declare const __VLS_export: <T extends TableData>(__VLS_props: NonNullable<Await
205
206
  "onUpdate:pagination"?: ((value: PaginationState) => any) | undefined;
206
207
  }> & import("vue").PublicProps;
207
208
  expose: (exposed: import("vue").ShallowUnwrapRef<{
208
- readonly $el: any;
209
- tableRef: Ref<HTMLTableElement | null, HTMLTableElement | null>;
209
+ readonly $el: HTMLElement;
210
+ tableRef: Readonly<import("vue").ShallowRef<HTMLTableElement | null>>;
210
211
  tableApi: import("@tanstack/table-core").Table<T>;
211
212
  }>) => void;
212
213
  attrs: any;
@@ -2,11 +2,12 @@ import type { AppConfig } from '@nuxt/schema';
2
2
  import theme from '#build/b24ui/textarea';
3
3
  import type { UseComponentIconsProps } from '../composables/useComponentIcons';
4
4
  import type { BadgeProps } from '../types';
5
+ import type { TextareaHTMLAttributes } from '../types/html';
5
6
  import type { ModelModifiers } from '../types/input';
6
7
  import type { ComponentConfig } from '../types/tv';
7
8
  type Textarea = ComponentConfig<typeof theme, AppConfig, 'textarea'>;
8
9
  type TextareaValue = string | number | null;
9
- export interface TextareaProps<T extends TextareaValue = TextareaValue> extends UseComponentIconsProps {
10
+ export interface TextareaProps<T extends TextareaValue = TextareaValue> extends UseComponentIconsProps, /** @vue-ignore */ Omit<TextareaHTMLAttributes, 'name' | 'placeholder' | 'required' | 'autofocus' | 'disabled' | 'rows'> {
10
11
  /**
11
12
  * The element or component this component should render as.
12
13
  * @defaultValue 'div'
@@ -36,7 +37,7 @@ export interface TextareaProps<T extends TextareaValue = TextareaValue> extends
36
37
  */
37
38
  underline?: boolean;
38
39
  /**
39
- * Rounds the corners of the button
40
+ * Rounds the corners of the textarea
40
41
  * @defaultValue false
41
42
  */
42
43
  rounded?: boolean;
@@ -60,7 +61,7 @@ export interface TextareaProps<T extends TextareaValue = TextareaValue> extends
60
61
  highlight?: boolean;
61
62
  modelValue?: T;
62
63
  defaultValue?: T;
63
- modelModifiers?: ModelModifiers;
64
+ modelModifiers?: ModelModifiers<T>;
64
65
  class?: any;
65
66
  b24ui?: Textarea['slots'];
66
67
  }
@@ -82,16 +83,16 @@ export interface TextareaSlots {
82
83
  }
83
84
  declare const __VLS_export: <T extends TextareaValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
84
85
  props: __VLS_PrettifyLocal<TextareaProps<T> & {
85
- onBlur?: ((event: FocusEvent) => any) | undefined;
86
86
  onChange?: ((event: Event) => any) | undefined;
87
+ onBlur?: ((event: FocusEvent) => any) | undefined;
87
88
  "onUpdate:modelValue"?: ((value: T) => any) | undefined;
88
89
  }> & import("vue").PublicProps;
89
90
  expose: (exposed: import("vue").ShallowUnwrapRef<{
90
- textareaRef: import("vue").Ref<HTMLTextAreaElement | null, HTMLTextAreaElement | null>;
91
+ textareaRef: Readonly<import("vue").ShallowRef<HTMLTextAreaElement | null>>;
91
92
  }>) => void;
92
93
  attrs: any;
93
94
  slots: TextareaSlots;
94
- emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void);
95
+ emit: ((evt: "change", event: Event) => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "update:modelValue", value: T) => void);
95
96
  }>) => import("vue").VNode & {
96
97
  __ctx?: Awaited<typeof __VLS_setup>;
97
98
  };
@@ -3,7 +3,7 @@ import theme from "#build/b24ui/textarea";
3
3
  </script>
4
4
 
5
5
  <script setup>
6
- import { ref, computed, onMounted, nextTick, watch } from "vue";
6
+ import { useTemplateRef, computed, onMounted, nextTick, watch } from "vue";
7
7
  import { Primitive } from "reka-ui";
8
8
  import { useVModel } from "@vueuse/core";
9
9
  import { useAppConfig } from "#imports";
@@ -68,7 +68,7 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.textare
68
68
  leading: Boolean(isLeading.value || !!props.avatar || !!slots.leading),
69
69
  trailing: Boolean(isTrailing.value || !!slots.trailing)
70
70
  }));
71
- const textareaRef = ref(null);
71
+ const textareaRef = useTemplateRef("textareaRef");
72
72
  function updateInput(value) {
73
73
  if (props.modelModifiers?.trim) {
74
74
  value = value?.trim() ?? null;
@@ -2,11 +2,12 @@ import type { AppConfig } from '@nuxt/schema';
2
2
  import theme from '#build/b24ui/textarea';
3
3
  import type { UseComponentIconsProps } from '../composables/useComponentIcons';
4
4
  import type { BadgeProps } from '../types';
5
+ import type { TextareaHTMLAttributes } from '../types/html';
5
6
  import type { ModelModifiers } from '../types/input';
6
7
  import type { ComponentConfig } from '../types/tv';
7
8
  type Textarea = ComponentConfig<typeof theme, AppConfig, 'textarea'>;
8
9
  type TextareaValue = string | number | null;
9
- export interface TextareaProps<T extends TextareaValue = TextareaValue> extends UseComponentIconsProps {
10
+ export interface TextareaProps<T extends TextareaValue = TextareaValue> extends UseComponentIconsProps, /** @vue-ignore */ Omit<TextareaHTMLAttributes, 'name' | 'placeholder' | 'required' | 'autofocus' | 'disabled' | 'rows'> {
10
11
  /**
11
12
  * The element or component this component should render as.
12
13
  * @defaultValue 'div'
@@ -36,7 +37,7 @@ export interface TextareaProps<T extends TextareaValue = TextareaValue> extends
36
37
  */
37
38
  underline?: boolean;
38
39
  /**
39
- * Rounds the corners of the button
40
+ * Rounds the corners of the textarea
40
41
  * @defaultValue false
41
42
  */
42
43
  rounded?: boolean;
@@ -60,7 +61,7 @@ export interface TextareaProps<T extends TextareaValue = TextareaValue> extends
60
61
  highlight?: boolean;
61
62
  modelValue?: T;
62
63
  defaultValue?: T;
63
- modelModifiers?: ModelModifiers;
64
+ modelModifiers?: ModelModifiers<T>;
64
65
  class?: any;
65
66
  b24ui?: Textarea['slots'];
66
67
  }
@@ -82,16 +83,16 @@ export interface TextareaSlots {
82
83
  }
83
84
  declare const __VLS_export: <T extends TextareaValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
84
85
  props: __VLS_PrettifyLocal<TextareaProps<T> & {
85
- onBlur?: ((event: FocusEvent) => any) | undefined;
86
86
  onChange?: ((event: Event) => any) | undefined;
87
+ onBlur?: ((event: FocusEvent) => any) | undefined;
87
88
  "onUpdate:modelValue"?: ((value: T) => any) | undefined;
88
89
  }> & import("vue").PublicProps;
89
90
  expose: (exposed: import("vue").ShallowUnwrapRef<{
90
- textareaRef: import("vue").Ref<HTMLTextAreaElement | null, HTMLTextAreaElement | null>;
91
+ textareaRef: Readonly<import("vue").ShallowRef<HTMLTextAreaElement | null>>;
91
92
  }>) => void;
92
93
  attrs: any;
93
94
  slots: TextareaSlots;
94
- emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void);
95
+ emit: ((evt: "change", event: Event) => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "update:modelValue", value: T) => void);
95
96
  }>) => import("vue").VNode & {
96
97
  __ctx?: Awaited<typeof __VLS_setup>;
97
98
  };
@@ -3,7 +3,7 @@ import theme from "#build/b24ui/toast";
3
3
  </script>
4
4
 
5
5
  <script setup>
6
- import { ref, computed, onMounted, nextTick } from "vue";
6
+ import { ref, computed, onMounted, nextTick, useTemplateRef } from "vue";
7
7
  import { ToastRoot, ToastTitle, ToastDescription, ToastAction, ToastClose, useForwardPropsEmits } from "reka-ui";
8
8
  import { reactivePick } from "@vueuse/core";
9
9
  import { useAppConfig } from "#imports";
@@ -42,14 +42,14 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.toast |
42
42
  orientation: props.orientation,
43
43
  title: !!props.title || !!slots.title
44
44
  }));
45
- const el = ref();
45
+ const rootRef = useTemplateRef("rootRef");
46
46
  const height = ref(0);
47
47
  onMounted(() => {
48
- if (!el.value) {
48
+ if (!rootRef.value) {
49
49
  return;
50
50
  }
51
51
  nextTick(() => {
52
- height.value = el.value?.$el?.getBoundingClientRect()?.height;
52
+ height.value = rootRef.value?.$el?.getBoundingClientRect()?.height;
53
53
  });
54
54
  });
55
55
  defineExpose({
@@ -59,7 +59,7 @@ defineExpose({
59
59
 
60
60
  <template>
61
61
  <ToastRoot
62
- ref="el"
62
+ ref="rootRef"
63
63
  v-slot="{ remaining, duration, open }"
64
64
  v-bind="rootProps"
65
65
  :data-orientation="orientation"
@@ -43,8 +43,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Toaste
43
43
  progress: boolean;
44
44
  duration: number;
45
45
  position: Toaster["variants"]["position"];
46
- expand: boolean;
47
46
  max: number;
47
+ expand: boolean;
48
48
  portal: boolean | string | HTMLElement;
49
49
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ToasterSlots>;
50
50
  declare const _default: typeof __VLS_export;
@@ -43,8 +43,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<Toaste
43
43
  progress: boolean;
44
44
  duration: number;
45
45
  position: Toaster["variants"]["position"];
46
- expand: boolean;
47
46
  max: number;
47
+ expand: boolean;
48
48
  portal: boolean | string | HTMLElement;
49
49
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ToasterSlots>;
50
50
  declare const _default: typeof __VLS_export;
@@ -1,8 +1,8 @@
1
- import type { AvatarProps } from '@bitrix24/b24ui-nuxt';
2
- export interface ColorModeAvatarProps extends /** @vue-ignore */ Omit<AvatarProps, 'src'> {
1
+ import type { AvatarProps } from '../../types';
2
+ export interface ColorModeAvatarProps extends Omit<AvatarProps, 'src'> {
3
3
  light: string;
4
4
  dark: string;
5
5
  }
6
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const __VLS_export: import("vue").DefineComponent<ColorModeAvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorModeAvatarProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
7
  declare const _default: typeof __VLS_export;
8
8
  export default _default;
@@ -3,15 +3,27 @@
3
3
  </script>
4
4
 
5
5
  <script setup>
6
+ import { useForwardProps } from "reka-ui";
7
+ import { reactiveOmit } from "@vueuse/core";
6
8
  import B24Avatar from "../Avatar.vue";
7
9
  defineOptions({ inheritAttrs: false });
8
- defineProps({
10
+ const props = defineProps({
9
11
  light: { type: String, required: true },
10
- dark: { type: String, required: true }
12
+ dark: { type: String, required: true },
13
+ as: { type: null, required: false },
14
+ alt: { type: String, required: false },
15
+ icon: { type: [Function, Object], required: false },
16
+ text: { type: String, required: false },
17
+ size: { type: null, required: false },
18
+ chip: { type: [Boolean, Object], required: false },
19
+ class: { type: null, required: false },
20
+ style: { type: null, required: false },
21
+ b24ui: { type: null, required: false }
11
22
  });
23
+ const avatarProps = useForwardProps(reactiveOmit(props, "light", "dark"));
12
24
  </script>
13
25
 
14
26
  <template>
15
- <B24Avatar :src="light" class="dark:hidden" v-bind="$attrs" />
16
- <B24Avatar :src="dark" class="hidden dark:block" v-bind="$attrs" />
27
+ <B24Avatar v-bind="{ ...avatarProps, ...$attrs }" :src="light" class="dark:hidden" />
28
+ <B24Avatar v-bind="{ ...avatarProps, ...$attrs }" :src="dark" class="hidden dark:block" />
17
29
  </template>
@@ -1,8 +1,8 @@
1
- import type { AvatarProps } from '@bitrix24/b24ui-nuxt';
2
- export interface ColorModeAvatarProps extends /** @vue-ignore */ Omit<AvatarProps, 'src'> {
1
+ import type { AvatarProps } from '../../types';
2
+ export interface ColorModeAvatarProps extends Omit<AvatarProps, 'src'> {
3
3
  light: string;
4
4
  dark: string;
5
5
  }
6
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const __VLS_export: import("vue").DefineComponent<ColorModeAvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorModeAvatarProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
7
  declare const _default: typeof __VLS_export;
8
8
  export default _default;
@@ -1,12 +1,12 @@
1
- import type { ButtonProps } from '@bitrix24/b24ui-nuxt';
2
- export interface ColorModeButtonProps extends /** @vue-ignore */ Pick<ButtonProps, 'as' | 'size' | 'disabled' | 'b24ui'> {
1
+ import type { ButtonProps } from '../../types';
2
+ export interface ColorModeButtonProps extends Omit<ButtonProps, 'color'> {
3
3
  /**
4
4
  * @defaultValue 'air-tertiary-no-accent'
5
5
  */
6
6
  color?: ButtonProps['color'];
7
7
  }
8
8
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ColorModeButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ColorModeButtonProps> & Readonly<{}>, {
9
- color: ButtonProps["color"];
9
+ color: "default" | "link" | "air-primary" | "air-primary-success" | "air-primary-alert" | "air-primary-copilot" | "air-secondary" | "air-secondary-accent" | "air-secondary-accent-1" | "air-tertiary" | "danger" | "success" | "warning" | "primary" | "secondary" | "collab" | "ai" | "air-secondary-alert" | "air-secondary-accent-2" | "air-secondary-no-accent" | "air-tertiary-accent" | "air-tertiary-no-accent" | "air-selection" | "air-boost";
10
10
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
11
11
  fallback(props?: {}): any;
12
12
  }>;