@aleph-alpha/ui-library 2.10.0 → 2.12.0

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 (171) hide show
  1. package/config.d.ts +8 -2
  2. package/config.js +85 -73
  3. package/dist/system/components/UiAutocomplete/UiAutocomplete.vue.d.ts +0 -1
  4. package/dist/system/components/UiAutocomplete/types.d.ts +0 -3
  5. package/dist/system/components/UiDialog/UiDialogDescription.vue.d.ts +2 -1
  6. package/dist/system/components/UiDialog/UiDialogFooter.vue.d.ts +1 -2
  7. package/dist/system/components/UiDialog/UiDialogHeader.vue.d.ts +1 -2
  8. package/dist/system/components/UiDialog/UiDialogTitle.vue.d.ts +2 -1
  9. package/dist/system/components/UiDialog/types.d.ts +10 -4
  10. package/dist/system/components/UiDropdownMenu/UiDropdownMenuSub.vue.d.ts +3 -1
  11. package/dist/system/components/UiField/UiFieldError.vue.d.ts +8 -1
  12. package/dist/system/components/UiInput/UiInput.vue.d.ts +16 -1
  13. package/dist/system/components/UiSelect/UiSelect.vue.d.ts +4 -5
  14. package/dist/system/components/UiSelect/UiSelectContent.vue.d.ts +0 -1
  15. package/dist/system/components/UiSelect/UiSelectItem.vue.d.ts +2 -9
  16. package/dist/system/components/UiSelect/UiSelectTrigger.vue.d.ts +0 -2
  17. package/dist/system/components/UiSelect/UiSelectValue.vue.d.ts +0 -3
  18. package/dist/system/components/UiSelect/types.d.ts +26 -6
  19. package/dist/system/components/UiStepper/UiStepperDescription.vue.d.ts +3 -1
  20. package/dist/system/components/UiStepper/UiStepperIndicator.vue.d.ts +3 -1
  21. package/dist/system/components/UiStepper/UiStepperItem.vue.d.ts +3 -1
  22. package/dist/system/components/UiTagsInput/types.d.ts +1 -2
  23. package/dist/system/components/core/accordion/AccordionItem.vue.d.ts +3 -1
  24. package/dist/system/components/core/calendar/CalendarHeading.vue.d.ts +2 -2
  25. package/dist/system/components/core/dropdown-menu/DropdownMenuSub.vue.d.ts +3 -1
  26. package/dist/system/components/core/range-calendar/RangeCalendarHeading.vue.d.ts +2 -2
  27. package/dist/system/components/core/stepper/StepperDescription.vue.d.ts +3 -1
  28. package/dist/system/components/core/stepper/StepperIndicator.vue.d.ts +3 -1
  29. package/dist/system/components/core/stepper/StepperItem.vue.d.ts +3 -1
  30. package/dist/system/index.d.ts +2 -1
  31. package/dist/system/lib/utils.d.ts +6 -0
  32. package/dist/system/lib.js +9685 -9895
  33. package/dist/system/patterns/UiSidebar/UiSidebarContent.vue.d.ts +1 -2
  34. package/dist/system/patterns/UiSidebar/UiSidebarFooter.vue.d.ts +1 -2
  35. package/dist/system/patterns/UiSidebar/UiSidebarGroupContent.vue.d.ts +1 -2
  36. package/dist/system/patterns/UiSidebar/UiSidebarInset.vue.d.ts +1 -2
  37. package/dist/system/patterns/UiSidebar/UiSidebarMenu.vue.d.ts +1 -2
  38. package/dist/system/patterns/UiSidebar/UiSidebarMenuItem.vue.d.ts +1 -2
  39. package/dist/system/patterns/UiSidebar/UiSidebarProvider.vue.d.ts +1 -2
  40. package/dist/system/patterns/UiSidebar/UiSidebarRail.vue.d.ts +1 -2
  41. package/dist/system/patterns/UiSidebar/__tests__/sidebar-test-helpers.d.ts +9 -9
  42. package/dist/system/patterns/UiSidebar/types.d.ts +8 -16
  43. package/dist/system/story-sidebar-icons.json +10 -0
  44. package/package.json +5 -2
  45. package/src/@types/shims-vue.d.ts +1 -1
  46. package/src/__tests__/test-utils.ts +1 -1
  47. package/src/components/UiAlertDialog/UiAlertDialogAction.vue +1 -1
  48. package/src/components/UiAlertDialog/UiAlertDialogCancel.vue +1 -1
  49. package/src/components/UiAlertDialog/UiAlertDialogContent.vue +4 -1
  50. package/src/components/UiAlertDialog/UiAlertDialogDescription.vue +1 -1
  51. package/src/components/UiAlertDialog/UiAlertDialogTitle.vue +1 -1
  52. package/src/components/UiAlertDialog/UiAlertDialogTrigger.vue +1 -1
  53. package/src/components/UiAutocomplete/UiAutocomplete.vue +9 -9
  54. package/src/components/UiAutocomplete/__tests__/UiAutocomplete.test.ts +76 -5
  55. package/src/components/UiAutocomplete/types.ts +0 -3
  56. package/src/components/UiBadge/UiBadge.vue +1 -1
  57. package/src/components/UiBadge/constants.ts +1 -1
  58. package/src/components/UiBadge/types.ts +1 -1
  59. package/src/components/UiButton/UiButton.stories.ts +286 -198
  60. package/src/components/UiButton/mcp-docs.json +49 -0
  61. package/src/components/UiCalendar/UiCalendar.vue +2 -5
  62. package/src/components/UiCalendar/__tests__/UiCalendar.test.ts +4 -2
  63. package/src/components/UiCheckbox/UiCheckbox.stories.ts +176 -2
  64. package/src/components/UiCheckbox/mcp-docs.json +36 -0
  65. package/src/components/UiChip/types.ts +1 -1
  66. package/src/components/UiDialog/UiDialogFooter.vue +0 -3
  67. package/src/components/UiDialog/UiDialogHeader.vue +0 -3
  68. package/src/components/UiDialog/types.ts +10 -4
  69. package/src/components/UiDropdownMenu/__tests__/UiDropdownMenu.test.ts +1 -1
  70. package/src/components/UiField/UiField.stories.ts +265 -3
  71. package/src/components/UiField/UiField.vue +9 -2
  72. package/src/components/UiField/UiFieldError.vue +3 -3
  73. package/src/components/UiField/mcp-docs.json +72 -0
  74. package/src/components/UiFileItem/UiFileItem.stories.ts +11 -11
  75. package/src/components/UiFileUploadBox/UiFileUploadBox.vue +1 -1
  76. package/src/components/UiIcon/UiIcon.vue +3 -2
  77. package/src/components/UiInput/UiInput.vue +19 -3
  78. package/src/components/UiInput/mcp-docs.json +51 -0
  79. package/src/components/UiItem/UiItem.stories.ts +118 -2
  80. package/src/components/UiItem/__tests__/UiItem.test.ts +3 -5
  81. package/src/components/UiItem/mcp-docs.json +25 -0
  82. package/src/components/UiLabel/UiLabel.vue +1 -1
  83. package/src/components/UiListbox/UiListbox.vue +3 -6
  84. package/src/components/UiListbox/UiListboxFilter.vue +1 -1
  85. package/src/components/UiListbox/UiListboxItem.vue +1 -1
  86. package/src/components/UiProgress/UiProgress.vue +1 -1
  87. package/src/components/UiRadioGroup/UiRadioGroup.vue +1 -1
  88. package/src/components/UiRadioGroup/UiRadioGroupItem.vue +2 -2
  89. package/src/components/UiRadioGroup/__tests__/UiRadioGroup.test.ts +2 -2
  90. package/src/components/UiRangeCalendar/UiRangeCalendar.vue +2 -5
  91. package/src/components/UiRangeCalendar/__tests__/UiRangeCalendar.test.ts +9 -6
  92. package/src/components/UiSelect/UiSelect.stories.ts +4 -90
  93. package/src/components/UiSelect/UiSelect.vue +66 -144
  94. package/src/components/UiSelect/UiSelectContent.vue +8 -21
  95. package/src/components/UiSelect/UiSelectItem.vue +0 -82
  96. package/src/components/UiSelect/UiSelectTrigger.vue +1 -62
  97. package/src/components/UiSelect/UiSelectValue.vue +1 -47
  98. package/src/components/UiSelect/__tests__/UiSelect.test.ts +47 -98
  99. package/src/components/UiSelect/__tests__/UiSelectContent.test.ts +36 -3
  100. package/src/components/UiSelect/__tests__/UiSelectItem.test.ts +1 -1
  101. package/src/components/UiSelect/__tests__/UiSelectTrigger.test.ts +2 -2
  102. package/src/components/UiSelect/types.ts +29 -6
  103. package/src/components/UiSwitch/UiSwitch.vue +1 -1
  104. package/src/components/UiTagsInput/UiTagsInput.vue +1 -1
  105. package/src/components/UiTagsInput/UiTagsInputInput.vue +1 -1
  106. package/src/components/UiTagsInput/UiTagsInputItem.vue +1 -1
  107. package/src/components/UiTagsInput/types.ts +1 -4
  108. package/src/components/UiTooltip/UiTooltip.stories.ts +0 -8
  109. package/src/components/core/accordion/AccordionItem.vue +1 -1
  110. package/src/components/core/alert-dialog/AlertDialogContent.vue +1 -1
  111. package/src/components/core/badge/Badge.vue +2 -5
  112. package/src/components/core/calendar/CalendarHeading.vue +1 -1
  113. package/src/components/core/dropdown-menu/DropdownMenuSub.vue +1 -1
  114. package/src/components/core/item/index.ts +1 -1
  115. package/src/components/core/listbox/Listbox.vue +2 -5
  116. package/src/components/core/listbox/ListboxContent.vue +2 -5
  117. package/src/components/core/listbox/ListboxFilter.vue +2 -5
  118. package/src/components/core/listbox/ListboxGroup.vue +2 -5
  119. package/src/components/core/listbox/ListboxGroupLabel.vue +2 -5
  120. package/src/components/core/listbox/ListboxItem.vue +2 -5
  121. package/src/components/core/listbox/ListboxItemIndicator.vue +2 -5
  122. package/src/components/core/range-calendar/RangeCalendarHeading.vue +1 -1
  123. package/src/components/core/sidebar/SidebarContent.vue +4 -5
  124. package/src/components/core/sidebar/SidebarFooter.vue +4 -5
  125. package/src/components/core/sidebar/SidebarGroup.vue +4 -5
  126. package/src/components/core/sidebar/SidebarHeader.vue +4 -5
  127. package/src/components/core/sidebar/SidebarMenu.vue +4 -5
  128. package/src/components/core/sidebar/SidebarMenuAction.vue +1 -1
  129. package/src/components/core/sidebar/SidebarMenuButtonChild.vue +1 -1
  130. package/src/components/core/sidebar/SidebarMenuSkeleton.vue +1 -1
  131. package/src/components/core/sidebar/SidebarMenuSubButton.vue +1 -1
  132. package/src/components/core/sidebar/SidebarSeparator.vue +4 -5
  133. package/src/components/core/stepper/StepperDescription.vue +1 -1
  134. package/src/components/core/stepper/StepperIndicator.vue +1 -1
  135. package/src/components/core/stepper/StepperItem.vue +1 -1
  136. package/src/components/core/tags-input/TagsInput.vue +2 -5
  137. package/src/components/core/tags-input/TagsInputInput.vue +2 -5
  138. package/src/components/core/tags-input/TagsInputItem.vue +2 -5
  139. package/src/components/core/tags-input/TagsInputItemDelete.vue +2 -5
  140. package/src/components/core/tags-input/TagsInputItemText.vue +2 -5
  141. package/src/components/core/toggle/Toggle.vue +1 -1
  142. package/src/index.ts +30 -5
  143. package/src/lib/useDrag.ts +1 -0
  144. package/src/lib/utils.ts +12 -0
  145. package/src/patterns/UiDataTable/UiDataTable.mock.ts +13 -4
  146. package/src/patterns/UiDataTable/UiDataTable.vue +1 -0
  147. package/src/patterns/UiDataTable/__tests__/UiDataTable.test.ts +11 -2
  148. package/src/patterns/UiDatePicker/__tests__/UiDatePicker.test.ts +28 -39
  149. package/src/patterns/UiSidebar/UiSidebarContent.vue +0 -3
  150. package/src/patterns/UiSidebar/UiSidebarFooter.vue +0 -3
  151. package/src/patterns/UiSidebar/UiSidebarGroup.vue +4 -5
  152. package/src/patterns/UiSidebar/UiSidebarGroupContent.vue +0 -3
  153. package/src/patterns/UiSidebar/UiSidebarHeader.vue +4 -5
  154. package/src/patterns/UiSidebar/UiSidebarInset.vue +0 -3
  155. package/src/patterns/UiSidebar/UiSidebarMenu.vue +0 -3
  156. package/src/patterns/UiSidebar/UiSidebarMenuButton.vue +4 -5
  157. package/src/patterns/UiSidebar/UiSidebarMenuItem.vue +0 -3
  158. package/src/patterns/UiSidebar/UiSidebarMenuSub.vue +4 -5
  159. package/src/patterns/UiSidebar/UiSidebarMenuSubItem.vue +4 -5
  160. package/src/patterns/UiSidebar/UiSidebarPopoverMenu.vue +4 -5
  161. package/src/patterns/UiSidebar/UiSidebarPopoverMenuItem.vue +4 -5
  162. package/src/patterns/UiSidebar/UiSidebarPopoverTrigger.vue +4 -5
  163. package/src/patterns/UiSidebar/UiSidebarProvider.vue +0 -3
  164. package/src/patterns/UiSidebar/UiSidebarRail.vue +0 -3
  165. package/src/patterns/UiSidebar/UiSidebarSub.vue +4 -5
  166. package/src/patterns/UiSidebar/__tests__/UiSidebar.test.ts +21 -17
  167. package/src/patterns/UiSidebar/__tests__/UiSidebarMenuButton.test.ts +12 -10
  168. package/src/patterns/UiSidebar/types.ts +8 -8
  169. package/src/theme/Typography.stories.ts +3 -2
  170. package/dist/system/components/UiSelect/context.d.ts +0 -28
  171. package/src/components/UiSelect/context.ts +0 -42
@@ -1,4 +1,3 @@
1
- import { UiSidebarContentProps } from './types';
2
1
  declare function __VLS_template(): {
3
2
  attrs: Partial<{}>;
4
3
  slots: {
@@ -8,7 +7,7 @@ declare function __VLS_template(): {
8
7
  rootEl: any;
9
8
  };
10
9
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: import('vue').DefineComponent<UiSidebarContentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiSidebarContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
12
11
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
12
  export default _default;
14
13
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,4 +1,3 @@
1
- import { UiSidebarFooterProps } from './types';
2
1
  declare function __VLS_template(): {
3
2
  attrs: Partial<{}>;
4
3
  slots: {
@@ -8,7 +7,7 @@ declare function __VLS_template(): {
8
7
  rootEl: any;
9
8
  };
10
9
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: import('vue').DefineComponent<UiSidebarFooterProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiSidebarFooterProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
12
11
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
12
  export default _default;
14
13
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,4 +1,3 @@
1
- import { UiSidebarGroupContentProps } from './types';
2
1
  declare function __VLS_template(): {
3
2
  attrs: Partial<{}>;
4
3
  slots: {
@@ -8,7 +7,7 @@ declare function __VLS_template(): {
8
7
  rootEl: any;
9
8
  };
10
9
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: import('vue').DefineComponent<UiSidebarGroupContentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiSidebarGroupContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
12
11
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
12
  export default _default;
14
13
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,4 +1,3 @@
1
- import { UiSidebarInsetProps } from './types';
2
1
  declare function __VLS_template(): {
3
2
  attrs: Partial<{}>;
4
3
  slots: {
@@ -8,7 +7,7 @@ declare function __VLS_template(): {
8
7
  rootEl: any;
9
8
  };
10
9
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: import('vue').DefineComponent<UiSidebarInsetProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiSidebarInsetProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
12
11
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
12
  export default _default;
14
13
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,4 +1,3 @@
1
- import { UiSidebarMenuProps } from './types';
2
1
  declare function __VLS_template(): {
3
2
  attrs: Partial<{}>;
4
3
  slots: {
@@ -8,7 +7,7 @@ declare function __VLS_template(): {
8
7
  rootEl: any;
9
8
  };
10
9
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: import('vue').DefineComponent<UiSidebarMenuProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiSidebarMenuProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
12
11
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
12
  export default _default;
14
13
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,4 +1,3 @@
1
- import { UiSidebarMenuItemProps } from './types';
2
1
  declare function __VLS_template(): {
3
2
  attrs: Partial<{}>;
4
3
  slots: {
@@ -8,7 +7,7 @@ declare function __VLS_template(): {
8
7
  rootEl: any;
9
8
  };
10
9
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: import('vue').DefineComponent<UiSidebarMenuItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiSidebarMenuItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
12
11
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
12
  export default _default;
14
13
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,4 +1,3 @@
1
- import { UiSidebarProviderProps } from './types';
2
1
  declare function __VLS_template(): {
3
2
  attrs: Partial<{}>;
4
3
  slots: {
@@ -8,7 +7,7 @@ declare function __VLS_template(): {
8
7
  rootEl: any;
9
8
  };
10
9
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: import('vue').DefineComponent<UiSidebarProviderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiSidebarProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
12
11
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
12
  export default _default;
14
13
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,3 +1,2 @@
1
- import { UiSidebarRailProps } from './types';
2
- declare const _default: import('vue').DefineComponent<UiSidebarRailProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiSidebarRailProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
3
2
  export default _default;
@@ -11,18 +11,18 @@ export declare function mockMatchMediaDesktop(): void;
11
11
  export declare function createSidebarShell(innerTemplate: string, extraComponents?: Record<string, unknown>): {
12
12
  components: {
13
13
  UiSidebarProvider: {
14
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('..').UiSidebarProviderProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
14
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
15
15
  P: {};
16
16
  B: {};
17
17
  D: {};
18
18
  C: {};
19
19
  M: {};
20
20
  Defaults: {};
21
- }, Readonly<import('..').UiSidebarProviderProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
21
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
22
22
  __isFragment?: never;
23
23
  __isTeleport?: never;
24
24
  __isSuspense?: never;
25
- } & import('vue').ComponentOptionsBase<Readonly<import('..').UiSidebarProviderProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
25
+ } & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
26
26
  $slots: {
27
27
  default?(_: {}): any;
28
28
  };
@@ -60,18 +60,18 @@ export declare function createSidebarShell(innerTemplate: string, extraComponent
60
60
  };
61
61
  });
62
62
  UiSidebarContent: {
63
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('..').UiSidebarContentProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
63
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
64
64
  P: {};
65
65
  B: {};
66
66
  D: {};
67
67
  C: {};
68
68
  M: {};
69
69
  Defaults: {};
70
- }, Readonly<import('..').UiSidebarContentProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
70
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
71
71
  __isFragment?: never;
72
72
  __isTeleport?: never;
73
73
  __isSuspense?: never;
74
- } & import('vue').ComponentOptionsBase<Readonly<import('..').UiSidebarContentProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
74
+ } & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
75
75
  $slots: {
76
76
  default?(_: {}): any;
77
77
  };
@@ -87,18 +87,18 @@ export declare function createSidebarShell(innerTemplate: string, extraComponent
87
87
  export declare function createOffcanvasSidebar(innerTemplate: string, extraComponents?: Record<string, unknown>): {
88
88
  components: {
89
89
  UiSidebarProvider: {
90
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('..').UiSidebarProviderProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
90
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
91
91
  P: {};
92
92
  B: {};
93
93
  D: {};
94
94
  C: {};
95
95
  M: {};
96
96
  Defaults: {};
97
- }, Readonly<import('..').UiSidebarProviderProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
97
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
98
98
  __isFragment?: never;
99
99
  __isTeleport?: never;
100
100
  __isSuspense?: never;
101
- } & import('vue').ComponentOptionsBase<Readonly<import('..').UiSidebarProviderProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
101
+ } & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
102
102
  $slots: {
103
103
  default?(_: {}): any;
104
104
  };
@@ -280,40 +280,32 @@ export type UiSidebarPopoverMenuItemEmits = Record<string, never>;
280
280
  /**
281
281
  * Pass-through pattern shells: no pattern-level props; attributes are forwarded to the core sidebar component.
282
282
  */
283
- export interface UiSidebarContentProps {
284
- }
283
+ export type UiSidebarContentProps = Record<string, never>;
285
284
  /**
286
285
  * @see UiSidebarContentProps
287
286
  */
288
- export interface UiSidebarFooterProps {
289
- }
287
+ export type UiSidebarFooterProps = Record<string, never>;
290
288
  /**
291
289
  * @see UiSidebarContentProps
292
290
  */
293
- export interface UiSidebarGroupContentProps {
294
- }
291
+ export type UiSidebarGroupContentProps = Record<string, never>;
295
292
  /**
296
293
  * @see UiSidebarContentProps
297
294
  */
298
- export interface UiSidebarInsetProps {
299
- }
295
+ export type UiSidebarInsetProps = Record<string, never>;
300
296
  /**
301
297
  * @see UiSidebarContentProps
302
298
  */
303
- export interface UiSidebarMenuProps {
304
- }
299
+ export type UiSidebarMenuProps = Record<string, never>;
305
300
  /**
306
301
  * @see UiSidebarContentProps
307
302
  */
308
- export interface UiSidebarMenuItemProps {
309
- }
303
+ export type UiSidebarMenuItemProps = Record<string, never>;
310
304
  /**
311
305
  * @see UiSidebarContentProps
312
306
  */
313
- export interface UiSidebarProviderProps {
314
- }
307
+ export type UiSidebarProviderProps = Record<string, never>;
315
308
  /**
316
309
  * @see UiSidebarContentProps
317
310
  */
318
- export interface UiSidebarRailProps {
319
- }
311
+ export type UiSidebarRailProps = Record<string, never>;
@@ -0,0 +1,10 @@
1
+ {
2
+ "components-uibutton--design-notes": "palette",
3
+ "components-uibutton--accessibility": "accessibility",
4
+ "components-uicheckbox--design-notes": "palette",
5
+ "components-uicheckbox--accessibility": "accessibility",
6
+ "components-uifield--design-notes": "palette",
7
+ "components-uifield--accessibility": "accessibility",
8
+ "components-uiitem--design-notes": "palette",
9
+ "components-uiitem--accessibility": "accessibility"
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aleph-alpha/ui-library",
3
- "version": "2.10.0",
3
+ "version": "2.12.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/system/lib.js",
@@ -65,6 +65,8 @@
65
65
  "http-server": "14.1.1",
66
66
  "playwright": "^1.57.0",
67
67
  "postcss": "8.5.10",
68
+ "react": "^18.3.1",
69
+ "react-dom": "^18.3.1",
68
70
  "sb-addon-versions": "^1.0.12",
69
71
  "storybook": "10.2.17",
70
72
  "storybook-addon-tag-badges": "^3.1.0",
@@ -79,8 +81,8 @@
79
81
  "vue-router": "4.6.4",
80
82
  "vue-tsc": "^2.2.12",
81
83
  "wait-on": "9.0.3",
82
- "@aleph-alpha/eslint-config-frontend": "0.6.0",
83
84
  "@aleph-alpha/prettier-config-frontend": "2.1.0",
85
+ "@aleph-alpha/eslint-config-frontend": "0.6.0",
84
86
  "@aleph-alpha/tsconfig-frontend": "0.7.0"
85
87
  },
86
88
  "peerDependencies": {
@@ -120,6 +122,7 @@
120
122
  "build": "node scripts/prepare-build.cjs && vite build",
121
123
  "ci": "pnpm install --immutable --immutable-cache --check-cache",
122
124
  "dev": "vite build --watch",
125
+ "typecheck": "vue-tsc --noEmit",
123
126
  "format:check": "prettier --check 'src/**/*.{ts,tsx,js,jsx,vue,json,css,scss}'",
124
127
  "format:fix": "prettier --write 'src/**/*.{ts,tsx,js,jsx,vue,json,css,scss}'",
125
128
  "lint": "eslint 'src/**/*.{js,vue,ts}' --cache",
@@ -1,5 +1,5 @@
1
1
  declare module '*.vue' {
2
2
  import type { DefineComponent } from 'vue';
3
- const component: DefineComponent<object, object, any>;
3
+ const component: DefineComponent<object, object, object>;
4
4
  export default component;
5
5
  }
@@ -19,7 +19,7 @@ import { defineComponent, markRaw, type Component } from 'vue';
19
19
  * expect(getByTestId('my-icon')).toBeInTheDocument();
20
20
  * ```
21
21
  */
22
- export function createMockIcon(testId: string = 'mock-icon'): Component {
22
+ export function createMockIcon(testId = 'mock-icon'): Component {
23
23
  return markRaw(
24
24
  defineComponent({
25
25
  name: 'MockIcon',
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
2
  import { AlertDialogAction as ShadcnAlertDialogAction } from '@/components/core/alert-dialog';
3
- import { UiAlertDialogActionProps } from './types';
3
+ import { type UiAlertDialogActionProps } from './types';
4
4
 
5
5
  defineOptions({
6
6
  name: 'UiAlertDialogAction',
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
2
  import { AlertDialogCancel as ShadcnAlertDialogCancel } from '@/components/core/alert-dialog';
3
- import { UiAlertDialogCancelProps } from './types';
3
+ import { type UiAlertDialogCancelProps } from './types';
4
4
 
5
5
  defineOptions({
6
6
  name: 'UiAlertDialogCancel',
@@ -1,6 +1,9 @@
1
1
  <script setup lang="ts">
2
2
  import { AlertDialogContent as ShadcnAlertDialogContent } from '@/components/core/alert-dialog';
3
- import { UiAlertDialogContentProps, UiAlertDialogContentEmits } from './types';
3
+ import {
4
+ type UiAlertDialogContentProps,
5
+ type UiAlertDialogContentEmits,
6
+ } from './types';
4
7
 
5
8
  defineOptions({
6
9
  name: 'UiAlertDialogContent',
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
2
  import { AlertDialogDescription as ShadcnAlertDialogDescription } from '@/components/core/alert-dialog';
3
- import { UiAlertDialogDescriptionProps } from './types';
3
+ import { type UiAlertDialogDescriptionProps } from './types';
4
4
 
5
5
  defineOptions({
6
6
  name: 'UiAlertDialogDescription',
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
2
  import { AlertDialogTitle as ShadcnAlertDialogTitle } from '@/components/core/alert-dialog';
3
- import { UiAlertDialogTitleProps } from './types';
3
+ import { type UiAlertDialogTitleProps } from './types';
4
4
 
5
5
  defineOptions({
6
6
  name: 'UiAlertDialogTitle',
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { AlertDialogTrigger as ShadcnAlertDialogTrigger } from '@/components/core/alert-dialog';
3
3
 
4
- import { UiAlertDialogTriggerProps } from './types';
4
+ import { type UiAlertDialogTriggerProps } from './types';
5
5
 
6
6
  defineOptions({
7
7
  name: 'UiAlertDialogTrigger',
@@ -30,7 +30,6 @@ const props = withDefaults(defineProps<UiAutocompleteProps>(), {
30
30
  required: false,
31
31
  name: undefined,
32
32
  dir: 'ltr',
33
- size: 'default',
34
33
  emptyText: 'No results found.',
35
34
  startIcon: undefined,
36
35
  showIndicator: true,
@@ -97,8 +96,10 @@ const displayText = computed(() =>
97
96
  selectedOptions.value.map((option) => option.label).join(', '),
98
97
  );
99
98
 
99
+ const hasSelection = computed(() => selectedValues.value.length > 0);
100
+
100
101
  const showSelectionDisplay = computed(
101
- () => inputText.value.length === 0 && selectedValues.value.length > 0,
102
+ () => inputText.value.length === 0 && hasSelection.value,
102
103
  );
103
104
 
104
105
  const filteredOptions = computed(() => {
@@ -142,8 +143,7 @@ const inputSlotProps = computed(() => ({
142
143
 
143
144
  const shellClasses = computed(() =>
144
145
  cn(
145
- 'border-input focus-within:border-border-surface-focus-ring focus-within:ring-ring/50 focus-within:shadow-xs aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex w-full min-w-0 items-center gap-2 rounded-md border bg-background-input-default px-3 text-sm shadow-xs transition-[color,box-shadow] outline-none focus-within:ring-[3px]',
146
- props.size === 'default' ? 'h-9 py-2' : 'h-8 py-1.5',
146
+ 'border-input data-[placeholder]:bg-background-input-default [&:not([data-placeholder])]:border-border-surface-focus-ring focus-within:border-border-surface-focus-ring focus-within:ring-ring/50 focus-within:shadow-xs aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex h-9 w-full min-w-0 items-center gap-2 rounded-md border bg-accent px-3 py-2 text-sm transition-[color,box-shadow] outline-none focus-within:ring-[3px]',
147
147
  props.disabled && 'pointer-events-none cursor-not-allowed opacity-50',
148
148
  ),
149
149
  );
@@ -282,10 +282,6 @@ function syncHighlightToSelection() {
282
282
 
283
283
  function setHighlightedIndex(index: number) {
284
284
  highlightedIndex.value = index;
285
- const value = keyboardValues.value[index];
286
- if (!props.multiple && value) {
287
- applySelectionValue(value, false);
288
- }
289
285
  }
290
286
 
291
287
  function applySelectionValue(
@@ -317,7 +313,11 @@ provideUiAutocompleteContext({
317
313
  <div class="flex flex-col" :dir="props.dir">
318
314
  <ShadcnPopover v-model:open="openState">
319
315
  <ShadcnPopoverAnchor as-child>
320
- <div data-slot="autocomplete-trigger" :class="shellClasses">
316
+ <div
317
+ data-slot="autocomplete-trigger"
318
+ :data-placeholder="hasSelection ? undefined : ''"
319
+ :class="shellClasses"
320
+ >
321
321
  <UiIcon
322
322
  v-if="props.startIcon"
323
323
  :name="props.startIcon"
@@ -1,5 +1,5 @@
1
1
  import '@testing-library/jest-dom/vitest';
2
- import { render, waitFor } from '@testing-library/vue';
2
+ import { fireEvent, render, waitFor } from '@testing-library/vue';
3
3
  import userEvent from '@testing-library/user-event';
4
4
  import { describe, expect, test, vi } from 'vitest';
5
5
  import { ref } from 'vue';
@@ -25,6 +25,42 @@ describe('UiAutocomplete', () => {
25
25
  expect(input).toHaveAttribute('placeholder', 'Search fruit');
26
26
  });
27
27
 
28
+ test('uses the input surface when no value is selected', () => {
29
+ const { container } = render(UiAutocomplete, {
30
+ props: {
31
+ options,
32
+ placeholder: 'Search fruit',
33
+ },
34
+ });
35
+
36
+ const trigger = container.querySelector(
37
+ '[data-slot="autocomplete-trigger"]',
38
+ );
39
+ expect(trigger).toHaveAttribute('data-placeholder');
40
+ expect(trigger).toHaveClass(
41
+ 'data-[placeholder]:bg-background-input-default',
42
+ );
43
+ });
44
+
45
+ test('uses the filled select surface when a value is selected', () => {
46
+ const { container } = render(UiAutocomplete, {
47
+ props: {
48
+ options,
49
+ defaultValue: 'apple',
50
+ placeholder: 'Search fruit',
51
+ },
52
+ });
53
+
54
+ const trigger = container.querySelector(
55
+ '[data-slot="autocomplete-trigger"]',
56
+ );
57
+ expect(trigger).not.toHaveAttribute('data-placeholder');
58
+ expect(trigger).toHaveClass('bg-accent');
59
+ expect(trigger).toHaveClass(
60
+ '[&:not([data-placeholder])]:border-border-surface-focus-ring',
61
+ );
62
+ });
63
+
28
64
  test('opens suggestions and filters by input text', async () => {
29
65
  const user = userEvent.setup();
30
66
  const { getByRole, queryByRole } = render(UiAutocomplete, {
@@ -95,7 +131,7 @@ describe('UiAutocomplete', () => {
95
131
  );
96
132
  expect(
97
133
  document.querySelector('[data-slot="autocomplete-value"]'),
98
- ).toHaveTextContent('Apple');
134
+ ).not.toBeInTheDocument();
99
135
  });
100
136
 
101
137
  await user.keyboard('{ArrowDown}');
@@ -107,7 +143,7 @@ describe('UiAutocomplete', () => {
107
143
  );
108
144
  expect(
109
145
  document.querySelector('[data-slot="autocomplete-value"]'),
110
- ).toHaveTextContent('Banana');
146
+ ).not.toBeInTheDocument();
111
147
  });
112
148
 
113
149
  await user.keyboard('{Enter}');
@@ -140,6 +176,9 @@ describe('UiAutocomplete', () => {
140
176
  'data-highlighted',
141
177
  '',
142
178
  );
179
+ expect(
180
+ document.querySelector('[data-slot="autocomplete-value"]'),
181
+ ).toHaveTextContent('Banana');
143
182
  });
144
183
 
145
184
  await user.keyboard('{Enter}');
@@ -177,7 +216,7 @@ describe('UiAutocomplete', () => {
177
216
  );
178
217
  expect(
179
218
  document.querySelector('[data-slot="autocomplete-value"]'),
180
- ).toHaveTextContent('Apple');
219
+ ).not.toBeInTheDocument();
181
220
  });
182
221
 
183
222
  await user.keyboard('{ArrowDown}');
@@ -189,7 +228,7 @@ describe('UiAutocomplete', () => {
189
228
  );
190
229
  expect(
191
230
  document.querySelector('[data-slot="autocomplete-value"]'),
192
- ).toHaveTextContent('Banana');
231
+ ).not.toBeInTheDocument();
193
232
  });
194
233
 
195
234
  await user.keyboard('{Enter}');
@@ -226,6 +265,9 @@ describe('UiAutocomplete', () => {
226
265
  'data-highlighted',
227
266
  '',
228
267
  );
268
+ expect(
269
+ document.querySelector('[data-slot="autocomplete-value"]'),
270
+ ).toHaveTextContent('Banana');
229
271
  });
230
272
 
231
273
  await user.keyboard('{Enter}');
@@ -237,6 +279,35 @@ describe('UiAutocomplete', () => {
237
279
  });
238
280
  });
239
281
 
282
+ test('hovering an option highlights it without changing the selected value', async () => {
283
+ const user = userEvent.setup();
284
+ const { getByRole } = render({
285
+ components: { UiAutocomplete },
286
+ template: `
287
+ <UiAutocomplete v-model="value" :options="options" placeholder="Search fruit" />
288
+ `,
289
+ setup() {
290
+ const value = ref('apple');
291
+ return { value, options };
292
+ },
293
+ });
294
+
295
+ await user.click(getByRole('textbox'));
296
+ await waitFor(() => expect(getByRole('listbox')).toBeInTheDocument());
297
+
298
+ await fireEvent.pointerMove(getByRole('option', { name: 'Banana' }));
299
+
300
+ await waitFor(() => {
301
+ expect(getByRole('option', { name: 'Banana' })).toHaveAttribute(
302
+ 'data-highlighted',
303
+ '',
304
+ );
305
+ expect(
306
+ document.querySelector('[data-slot="autocomplete-value"]'),
307
+ ).toHaveTextContent('Apple');
308
+ });
309
+ });
310
+
240
311
  test('selects multiple options and keeps selected labels truncated in one value span', async () => {
241
312
  const user = userEvent.setup();
242
313
  const { getByRole } = render({
@@ -14,7 +14,6 @@ export type UiAutocompleteOption = {
14
14
 
15
15
  /**
16
16
  * Filterable select input for choosing one or many options.
17
- *
18
17
  * @category Form Inputs
19
18
  * @useCases autocomplete, searchable select, multi select, command picker
20
19
  * @keywords autocomplete, combobox, select, search, filter, multi-select
@@ -53,8 +52,6 @@ export type UiAutocompleteProps = {
53
52
  name?: string;
54
53
  /** Reading direction. */
55
54
  dir?: 'ltr' | 'rtl';
56
- /** Trigger/input size. */
57
- size?: 'default' | 'sm';
58
55
  /** Text shown when filtering returns no options. */
59
56
  emptyText?: string;
60
57
  /** Optional leading icon name. */
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { Badge as ShadcnBadge } from '@/components/core/badge';
3
3
  import { reactiveOmit } from '@vueuse/core';
4
- import { UiBadgeProps } from './types';
4
+ import { type UiBadgeProps } from './types';
5
5
 
6
6
  defineOptions({
7
7
  name: 'UiBadge',
@@ -1,4 +1,4 @@
1
- import { UiBadgeSize, UiBadgeVariants } from './types';
1
+ import { type UiBadgeSize, type UiBadgeVariants } from './types';
2
2
 
3
3
  export const BadgeVariants: UiBadgeVariants[] = [
4
4
  'default',
@@ -1,4 +1,4 @@
1
- import { Component } from 'vue';
1
+ import { type Component } from 'vue';
2
2
 
3
3
  /**
4
4
  * Visual variants for the UiBadge component.