@aleph-alpha/ui-library 2.11.0 → 3.0.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 (150) hide show
  1. package/config.d.ts +8 -2
  2. package/config.js +85 -73
  3. package/dist/system/components/UiAutocomplete/types.d.ts +0 -1
  4. package/dist/system/components/UiDialog/UiDialogDescription.vue.d.ts +2 -1
  5. package/dist/system/components/UiDialog/UiDialogFooter.vue.d.ts +1 -2
  6. package/dist/system/components/UiDialog/UiDialogHeader.vue.d.ts +1 -2
  7. package/dist/system/components/UiDialog/UiDialogTitle.vue.d.ts +2 -1
  8. package/dist/system/components/UiDialog/types.d.ts +10 -4
  9. package/dist/system/components/UiDropdownMenu/UiDropdownMenuSub.vue.d.ts +3 -1
  10. package/dist/system/components/UiField/UiFieldError.vue.d.ts +8 -1
  11. package/dist/system/components/UiInput/UiInput.vue.d.ts +16 -1
  12. package/dist/system/components/UiStepper/UiStepperDescription.vue.d.ts +3 -1
  13. package/dist/system/components/UiStepper/UiStepperIndicator.vue.d.ts +3 -1
  14. package/dist/system/components/UiStepper/UiStepperItem.vue.d.ts +3 -1
  15. package/dist/system/components/UiTagsInput/types.d.ts +1 -2
  16. package/dist/system/components/core/accordion/AccordionItem.vue.d.ts +3 -1
  17. package/dist/system/components/core/calendar/CalendarHeading.vue.d.ts +2 -2
  18. package/dist/system/components/core/dropdown-menu/DropdownMenuSub.vue.d.ts +3 -1
  19. package/dist/system/components/core/range-calendar/RangeCalendarHeading.vue.d.ts +2 -2
  20. package/dist/system/components/core/stepper/StepperDescription.vue.d.ts +3 -1
  21. package/dist/system/components/core/stepper/StepperIndicator.vue.d.ts +3 -1
  22. package/dist/system/components/core/stepper/StepperItem.vue.d.ts +3 -1
  23. package/dist/system/index.d.ts +2 -1
  24. package/dist/system/lib/utils.d.ts +6 -0
  25. package/dist/system/lib.js +15498 -15548
  26. package/dist/system/patterns/UiSidebar/UiSidebarContent.vue.d.ts +1 -2
  27. package/dist/system/patterns/UiSidebar/UiSidebarFooter.vue.d.ts +1 -2
  28. package/dist/system/patterns/UiSidebar/UiSidebarGroupContent.vue.d.ts +1 -2
  29. package/dist/system/patterns/UiSidebar/UiSidebarInset.vue.d.ts +1 -2
  30. package/dist/system/patterns/UiSidebar/UiSidebarMenu.vue.d.ts +1 -2
  31. package/dist/system/patterns/UiSidebar/UiSidebarMenuItem.vue.d.ts +1 -2
  32. package/dist/system/patterns/UiSidebar/UiSidebarProvider.vue.d.ts +1 -2
  33. package/dist/system/patterns/UiSidebar/UiSidebarRail.vue.d.ts +1 -2
  34. package/dist/system/patterns/UiSidebar/__tests__/sidebar-test-helpers.d.ts +9 -9
  35. package/dist/system/patterns/UiSidebar/types.d.ts +8 -16
  36. package/dist/system/story-sidebar-icons.json +10 -0
  37. package/package.json +4 -1
  38. package/src/@types/shims-vue.d.ts +1 -1
  39. package/src/__tests__/test-utils.ts +1 -1
  40. package/src/components/UiAlertDialog/UiAlertDialogAction.vue +1 -1
  41. package/src/components/UiAlertDialog/UiAlertDialogCancel.vue +1 -1
  42. package/src/components/UiAlertDialog/UiAlertDialogContent.vue +4 -1
  43. package/src/components/UiAlertDialog/UiAlertDialogDescription.vue +1 -1
  44. package/src/components/UiAlertDialog/UiAlertDialogTitle.vue +1 -1
  45. package/src/components/UiAlertDialog/UiAlertDialogTrigger.vue +1 -1
  46. package/src/components/UiAutocomplete/types.ts +0 -1
  47. package/src/components/UiBadge/UiBadge.vue +1 -1
  48. package/src/components/UiBadge/constants.ts +1 -1
  49. package/src/components/UiBadge/types.ts +1 -1
  50. package/src/components/UiButton/UiButton.stories.ts +286 -198
  51. package/src/components/UiButton/mcp-docs.json +49 -0
  52. package/src/components/UiCalendar/UiCalendar.vue +2 -5
  53. package/src/components/UiCalendar/__tests__/UiCalendar.test.ts +4 -2
  54. package/src/components/UiCheckbox/UiCheckbox.stories.ts +176 -2
  55. package/src/components/UiCheckbox/mcp-docs.json +36 -0
  56. package/src/components/UiChip/types.ts +1 -1
  57. package/src/components/UiDialog/UiDialogFooter.vue +0 -3
  58. package/src/components/UiDialog/UiDialogHeader.vue +0 -3
  59. package/src/components/UiDialog/types.ts +10 -4
  60. package/src/components/UiDropdownMenu/__tests__/UiDropdownMenu.test.ts +1 -1
  61. package/src/components/UiField/UiField.stories.ts +265 -3
  62. package/src/components/UiField/UiField.vue +9 -2
  63. package/src/components/UiField/UiFieldError.vue +3 -3
  64. package/src/components/UiField/mcp-docs.json +72 -0
  65. package/src/components/UiFileItem/UiFileItem.stories.ts +11 -11
  66. package/src/components/UiFileUploadBox/UiFileUploadBox.vue +1 -1
  67. package/src/components/UiIcon/UiIcon.vue +3 -2
  68. package/src/components/UiInput/UiInput.vue +19 -3
  69. package/src/components/UiInput/mcp-docs.json +51 -0
  70. package/src/components/UiItem/UiItem.stories.ts +118 -2
  71. package/src/components/UiItem/__tests__/UiItem.test.ts +3 -5
  72. package/src/components/UiItem/mcp-docs.json +25 -0
  73. package/src/components/UiLabel/UiLabel.vue +1 -1
  74. package/src/components/UiListbox/UiListbox.vue +3 -6
  75. package/src/components/UiListbox/UiListboxFilter.vue +1 -1
  76. package/src/components/UiListbox/UiListboxItem.vue +1 -1
  77. package/src/components/UiProgress/UiProgress.vue +1 -1
  78. package/src/components/UiRadioGroup/UiRadioGroup.vue +1 -1
  79. package/src/components/UiRadioGroup/UiRadioGroupItem.vue +2 -2
  80. package/src/components/UiRadioGroup/__tests__/UiRadioGroup.test.ts +2 -2
  81. package/src/components/UiRangeCalendar/UiRangeCalendar.vue +2 -5
  82. package/src/components/UiRangeCalendar/__tests__/UiRangeCalendar.test.ts +9 -6
  83. package/src/components/UiSelect/UiSelectContent.vue +2 -4
  84. package/src/components/UiSwitch/UiSwitch.vue +1 -1
  85. package/src/components/UiTagsInput/UiTagsInput.vue +1 -1
  86. package/src/components/UiTagsInput/UiTagsInputInput.vue +1 -1
  87. package/src/components/UiTagsInput/UiTagsInputItem.vue +1 -1
  88. package/src/components/UiTagsInput/types.ts +1 -4
  89. package/src/components/UiTooltip/UiTooltip.stories.ts +0 -8
  90. package/src/components/core/accordion/AccordionItem.vue +1 -1
  91. package/src/components/core/alert-dialog/AlertDialogContent.vue +1 -1
  92. package/src/components/core/badge/Badge.vue +2 -5
  93. package/src/components/core/calendar/CalendarHeading.vue +1 -1
  94. package/src/components/core/dropdown-menu/DropdownMenuSub.vue +1 -1
  95. package/src/components/core/item/index.ts +1 -1
  96. package/src/components/core/listbox/Listbox.vue +2 -5
  97. package/src/components/core/listbox/ListboxContent.vue +2 -5
  98. package/src/components/core/listbox/ListboxFilter.vue +2 -5
  99. package/src/components/core/listbox/ListboxGroup.vue +2 -5
  100. package/src/components/core/listbox/ListboxGroupLabel.vue +2 -5
  101. package/src/components/core/listbox/ListboxItem.vue +2 -5
  102. package/src/components/core/listbox/ListboxItemIndicator.vue +2 -5
  103. package/src/components/core/range-calendar/RangeCalendarHeading.vue +1 -1
  104. package/src/components/core/sidebar/SidebarContent.vue +4 -5
  105. package/src/components/core/sidebar/SidebarFooter.vue +4 -5
  106. package/src/components/core/sidebar/SidebarGroup.vue +4 -5
  107. package/src/components/core/sidebar/SidebarHeader.vue +4 -5
  108. package/src/components/core/sidebar/SidebarMenu.vue +4 -5
  109. package/src/components/core/sidebar/SidebarMenuAction.vue +1 -1
  110. package/src/components/core/sidebar/SidebarMenuButtonChild.vue +1 -1
  111. package/src/components/core/sidebar/SidebarMenuSkeleton.vue +1 -1
  112. package/src/components/core/sidebar/SidebarMenuSubButton.vue +1 -1
  113. package/src/components/core/sidebar/SidebarSeparator.vue +4 -5
  114. package/src/components/core/stepper/StepperDescription.vue +1 -1
  115. package/src/components/core/stepper/StepperIndicator.vue +1 -1
  116. package/src/components/core/stepper/StepperItem.vue +1 -1
  117. package/src/components/core/tags-input/TagsInput.vue +2 -5
  118. package/src/components/core/tags-input/TagsInputInput.vue +2 -5
  119. package/src/components/core/tags-input/TagsInputItem.vue +2 -5
  120. package/src/components/core/tags-input/TagsInputItemDelete.vue +2 -5
  121. package/src/components/core/tags-input/TagsInputItemText.vue +2 -5
  122. package/src/components/core/toggle/Toggle.vue +1 -1
  123. package/src/index.ts +30 -5
  124. package/src/lib/useDrag.ts +1 -0
  125. package/src/lib/utils.ts +12 -0
  126. package/src/patterns/UiDataTable/UiDataTable.mock.ts +13 -4
  127. package/src/patterns/UiDataTable/UiDataTable.vue +1 -0
  128. package/src/patterns/UiDataTable/__tests__/UiDataTable.test.ts +11 -2
  129. package/src/patterns/UiDatePicker/__tests__/UiDatePicker.test.ts +28 -39
  130. package/src/patterns/UiSidebar/UiSidebarContent.vue +0 -3
  131. package/src/patterns/UiSidebar/UiSidebarFooter.vue +0 -3
  132. package/src/patterns/UiSidebar/UiSidebarGroup.vue +4 -5
  133. package/src/patterns/UiSidebar/UiSidebarGroupContent.vue +0 -3
  134. package/src/patterns/UiSidebar/UiSidebarHeader.vue +4 -5
  135. package/src/patterns/UiSidebar/UiSidebarInset.vue +0 -3
  136. package/src/patterns/UiSidebar/UiSidebarMenu.vue +0 -3
  137. package/src/patterns/UiSidebar/UiSidebarMenuButton.vue +4 -5
  138. package/src/patterns/UiSidebar/UiSidebarMenuItem.vue +0 -3
  139. package/src/patterns/UiSidebar/UiSidebarMenuSub.vue +4 -5
  140. package/src/patterns/UiSidebar/UiSidebarMenuSubItem.vue +4 -5
  141. package/src/patterns/UiSidebar/UiSidebarPopoverMenu.vue +4 -5
  142. package/src/patterns/UiSidebar/UiSidebarPopoverMenuItem.vue +4 -5
  143. package/src/patterns/UiSidebar/UiSidebarPopoverTrigger.vue +4 -5
  144. package/src/patterns/UiSidebar/UiSidebarProvider.vue +0 -3
  145. package/src/patterns/UiSidebar/UiSidebarRail.vue +0 -3
  146. package/src/patterns/UiSidebar/UiSidebarSub.vue +4 -5
  147. package/src/patterns/UiSidebar/__tests__/UiSidebar.test.ts +21 -17
  148. package/src/patterns/UiSidebar/__tests__/UiSidebarMenuButton.test.ts +12 -10
  149. package/src/patterns/UiSidebar/types.ts +8 -8
  150. package/src/theme/Typography.stories.ts +3 -2
@@ -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.11.0",
3
+ "version": "3.0.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",
@@ -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',
@@ -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
@@ -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.