@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.
- package/config.d.ts +8 -2
- package/config.js +85 -73
- package/dist/system/components/UiAutocomplete/types.d.ts +0 -1
- package/dist/system/components/UiDialog/UiDialogDescription.vue.d.ts +2 -1
- package/dist/system/components/UiDialog/UiDialogFooter.vue.d.ts +1 -2
- package/dist/system/components/UiDialog/UiDialogHeader.vue.d.ts +1 -2
- package/dist/system/components/UiDialog/UiDialogTitle.vue.d.ts +2 -1
- package/dist/system/components/UiDialog/types.d.ts +10 -4
- package/dist/system/components/UiDropdownMenu/UiDropdownMenuSub.vue.d.ts +3 -1
- package/dist/system/components/UiField/UiFieldError.vue.d.ts +8 -1
- package/dist/system/components/UiInput/UiInput.vue.d.ts +16 -1
- package/dist/system/components/UiStepper/UiStepperDescription.vue.d.ts +3 -1
- package/dist/system/components/UiStepper/UiStepperIndicator.vue.d.ts +3 -1
- package/dist/system/components/UiStepper/UiStepperItem.vue.d.ts +3 -1
- package/dist/system/components/UiTagsInput/types.d.ts +1 -2
- package/dist/system/components/core/accordion/AccordionItem.vue.d.ts +3 -1
- package/dist/system/components/core/calendar/CalendarHeading.vue.d.ts +2 -2
- package/dist/system/components/core/dropdown-menu/DropdownMenuSub.vue.d.ts +3 -1
- package/dist/system/components/core/range-calendar/RangeCalendarHeading.vue.d.ts +2 -2
- package/dist/system/components/core/stepper/StepperDescription.vue.d.ts +3 -1
- package/dist/system/components/core/stepper/StepperIndicator.vue.d.ts +3 -1
- package/dist/system/components/core/stepper/StepperItem.vue.d.ts +3 -1
- package/dist/system/index.d.ts +2 -1
- package/dist/system/lib/utils.d.ts +6 -0
- package/dist/system/lib.js +15498 -15548
- package/dist/system/patterns/UiSidebar/UiSidebarContent.vue.d.ts +1 -2
- package/dist/system/patterns/UiSidebar/UiSidebarFooter.vue.d.ts +1 -2
- package/dist/system/patterns/UiSidebar/UiSidebarGroupContent.vue.d.ts +1 -2
- package/dist/system/patterns/UiSidebar/UiSidebarInset.vue.d.ts +1 -2
- package/dist/system/patterns/UiSidebar/UiSidebarMenu.vue.d.ts +1 -2
- package/dist/system/patterns/UiSidebar/UiSidebarMenuItem.vue.d.ts +1 -2
- package/dist/system/patterns/UiSidebar/UiSidebarProvider.vue.d.ts +1 -2
- package/dist/system/patterns/UiSidebar/UiSidebarRail.vue.d.ts +1 -2
- package/dist/system/patterns/UiSidebar/__tests__/sidebar-test-helpers.d.ts +9 -9
- package/dist/system/patterns/UiSidebar/types.d.ts +8 -16
- package/dist/system/story-sidebar-icons.json +10 -0
- package/package.json +4 -1
- package/src/@types/shims-vue.d.ts +1 -1
- package/src/__tests__/test-utils.ts +1 -1
- package/src/components/UiAlertDialog/UiAlertDialogAction.vue +1 -1
- package/src/components/UiAlertDialog/UiAlertDialogCancel.vue +1 -1
- package/src/components/UiAlertDialog/UiAlertDialogContent.vue +4 -1
- package/src/components/UiAlertDialog/UiAlertDialogDescription.vue +1 -1
- package/src/components/UiAlertDialog/UiAlertDialogTitle.vue +1 -1
- package/src/components/UiAlertDialog/UiAlertDialogTrigger.vue +1 -1
- package/src/components/UiAutocomplete/types.ts +0 -1
- package/src/components/UiBadge/UiBadge.vue +1 -1
- package/src/components/UiBadge/constants.ts +1 -1
- package/src/components/UiBadge/types.ts +1 -1
- package/src/components/UiButton/UiButton.stories.ts +286 -198
- package/src/components/UiButton/mcp-docs.json +49 -0
- package/src/components/UiCalendar/UiCalendar.vue +2 -5
- package/src/components/UiCalendar/__tests__/UiCalendar.test.ts +4 -2
- package/src/components/UiCheckbox/UiCheckbox.stories.ts +176 -2
- package/src/components/UiCheckbox/mcp-docs.json +36 -0
- package/src/components/UiChip/types.ts +1 -1
- package/src/components/UiDialog/UiDialogFooter.vue +0 -3
- package/src/components/UiDialog/UiDialogHeader.vue +0 -3
- package/src/components/UiDialog/types.ts +10 -4
- package/src/components/UiDropdownMenu/__tests__/UiDropdownMenu.test.ts +1 -1
- package/src/components/UiField/UiField.stories.ts +265 -3
- package/src/components/UiField/UiField.vue +9 -2
- package/src/components/UiField/UiFieldError.vue +3 -3
- package/src/components/UiField/mcp-docs.json +72 -0
- package/src/components/UiFileItem/UiFileItem.stories.ts +11 -11
- package/src/components/UiFileUploadBox/UiFileUploadBox.vue +1 -1
- package/src/components/UiIcon/UiIcon.vue +3 -2
- package/src/components/UiInput/UiInput.vue +19 -3
- package/src/components/UiInput/mcp-docs.json +51 -0
- package/src/components/UiItem/UiItem.stories.ts +118 -2
- package/src/components/UiItem/__tests__/UiItem.test.ts +3 -5
- package/src/components/UiItem/mcp-docs.json +25 -0
- package/src/components/UiLabel/UiLabel.vue +1 -1
- package/src/components/UiListbox/UiListbox.vue +3 -6
- package/src/components/UiListbox/UiListboxFilter.vue +1 -1
- package/src/components/UiListbox/UiListboxItem.vue +1 -1
- package/src/components/UiProgress/UiProgress.vue +1 -1
- package/src/components/UiRadioGroup/UiRadioGroup.vue +1 -1
- package/src/components/UiRadioGroup/UiRadioGroupItem.vue +2 -2
- package/src/components/UiRadioGroup/__tests__/UiRadioGroup.test.ts +2 -2
- package/src/components/UiRangeCalendar/UiRangeCalendar.vue +2 -5
- package/src/components/UiRangeCalendar/__tests__/UiRangeCalendar.test.ts +9 -6
- package/src/components/UiSelect/UiSelectContent.vue +2 -4
- package/src/components/UiSwitch/UiSwitch.vue +1 -1
- package/src/components/UiTagsInput/UiTagsInput.vue +1 -1
- package/src/components/UiTagsInput/UiTagsInputInput.vue +1 -1
- package/src/components/UiTagsInput/UiTagsInputItem.vue +1 -1
- package/src/components/UiTagsInput/types.ts +1 -4
- package/src/components/UiTooltip/UiTooltip.stories.ts +0 -8
- package/src/components/core/accordion/AccordionItem.vue +1 -1
- package/src/components/core/alert-dialog/AlertDialogContent.vue +1 -1
- package/src/components/core/badge/Badge.vue +2 -5
- package/src/components/core/calendar/CalendarHeading.vue +1 -1
- package/src/components/core/dropdown-menu/DropdownMenuSub.vue +1 -1
- package/src/components/core/item/index.ts +1 -1
- package/src/components/core/listbox/Listbox.vue +2 -5
- package/src/components/core/listbox/ListboxContent.vue +2 -5
- package/src/components/core/listbox/ListboxFilter.vue +2 -5
- package/src/components/core/listbox/ListboxGroup.vue +2 -5
- package/src/components/core/listbox/ListboxGroupLabel.vue +2 -5
- package/src/components/core/listbox/ListboxItem.vue +2 -5
- package/src/components/core/listbox/ListboxItemIndicator.vue +2 -5
- package/src/components/core/range-calendar/RangeCalendarHeading.vue +1 -1
- package/src/components/core/sidebar/SidebarContent.vue +4 -5
- package/src/components/core/sidebar/SidebarFooter.vue +4 -5
- package/src/components/core/sidebar/SidebarGroup.vue +4 -5
- package/src/components/core/sidebar/SidebarHeader.vue +4 -5
- package/src/components/core/sidebar/SidebarMenu.vue +4 -5
- package/src/components/core/sidebar/SidebarMenuAction.vue +1 -1
- package/src/components/core/sidebar/SidebarMenuButtonChild.vue +1 -1
- package/src/components/core/sidebar/SidebarMenuSkeleton.vue +1 -1
- package/src/components/core/sidebar/SidebarMenuSubButton.vue +1 -1
- package/src/components/core/sidebar/SidebarSeparator.vue +4 -5
- package/src/components/core/stepper/StepperDescription.vue +1 -1
- package/src/components/core/stepper/StepperIndicator.vue +1 -1
- package/src/components/core/stepper/StepperItem.vue +1 -1
- package/src/components/core/tags-input/TagsInput.vue +2 -5
- package/src/components/core/tags-input/TagsInputInput.vue +2 -5
- package/src/components/core/tags-input/TagsInputItem.vue +2 -5
- package/src/components/core/tags-input/TagsInputItemDelete.vue +2 -5
- package/src/components/core/tags-input/TagsInputItemText.vue +2 -5
- package/src/components/core/toggle/Toggle.vue +1 -1
- package/src/index.ts +30 -5
- package/src/lib/useDrag.ts +1 -0
- package/src/lib/utils.ts +12 -0
- package/src/patterns/UiDataTable/UiDataTable.mock.ts +13 -4
- package/src/patterns/UiDataTable/UiDataTable.vue +1 -0
- package/src/patterns/UiDataTable/__tests__/UiDataTable.test.ts +11 -2
- package/src/patterns/UiDatePicker/__tests__/UiDatePicker.test.ts +28 -39
- package/src/patterns/UiSidebar/UiSidebarContent.vue +0 -3
- package/src/patterns/UiSidebar/UiSidebarFooter.vue +0 -3
- package/src/patterns/UiSidebar/UiSidebarGroup.vue +4 -5
- package/src/patterns/UiSidebar/UiSidebarGroupContent.vue +0 -3
- package/src/patterns/UiSidebar/UiSidebarHeader.vue +4 -5
- package/src/patterns/UiSidebar/UiSidebarInset.vue +0 -3
- package/src/patterns/UiSidebar/UiSidebarMenu.vue +0 -3
- package/src/patterns/UiSidebar/UiSidebarMenuButton.vue +4 -5
- package/src/patterns/UiSidebar/UiSidebarMenuItem.vue +0 -3
- package/src/patterns/UiSidebar/UiSidebarMenuSub.vue +4 -5
- package/src/patterns/UiSidebar/UiSidebarMenuSubItem.vue +4 -5
- package/src/patterns/UiSidebar/UiSidebarPopoverMenu.vue +4 -5
- package/src/patterns/UiSidebar/UiSidebarPopoverMenuItem.vue +4 -5
- package/src/patterns/UiSidebar/UiSidebarPopoverTrigger.vue +4 -5
- package/src/patterns/UiSidebar/UiSidebarProvider.vue +0 -3
- package/src/patterns/UiSidebar/UiSidebarRail.vue +0 -3
- package/src/patterns/UiSidebar/UiSidebarSub.vue +4 -5
- package/src/patterns/UiSidebar/__tests__/UiSidebar.test.ts +21 -17
- package/src/patterns/UiSidebar/__tests__/UiSidebarMenuButton.test.ts +12 -10
- package/src/patterns/UiSidebar/types.ts +8 -8
- 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<
|
|
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<
|
|
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<
|
|
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<
|
|
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<
|
|
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<
|
|
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<
|
|
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 {
|
|
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<
|
|
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<
|
|
21
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
22
22
|
__isFragment?: never;
|
|
23
23
|
__isTeleport?: never;
|
|
24
24
|
__isSuspense?: never;
|
|
25
|
-
} & import('vue').ComponentOptionsBase<Readonly<
|
|
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<
|
|
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<
|
|
70
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
71
71
|
__isFragment?: never;
|
|
72
72
|
__isTeleport?: never;
|
|
73
73
|
__isSuspense?: never;
|
|
74
|
-
} & import('vue').ComponentOptionsBase<Readonly<
|
|
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<
|
|
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<
|
|
97
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
98
98
|
__isFragment?: never;
|
|
99
99
|
__isTeleport?: never;
|
|
100
100
|
__isSuspense?: never;
|
|
101
|
-
} & import('vue').ComponentOptionsBase<Readonly<
|
|
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
|
|
284
|
-
}
|
|
283
|
+
export type UiSidebarContentProps = Record<string, never>;
|
|
285
284
|
/**
|
|
286
285
|
* @see UiSidebarContentProps
|
|
287
286
|
*/
|
|
288
|
-
export
|
|
289
|
-
}
|
|
287
|
+
export type UiSidebarFooterProps = Record<string, never>;
|
|
290
288
|
/**
|
|
291
289
|
* @see UiSidebarContentProps
|
|
292
290
|
*/
|
|
293
|
-
export
|
|
294
|
-
}
|
|
291
|
+
export type UiSidebarGroupContentProps = Record<string, never>;
|
|
295
292
|
/**
|
|
296
293
|
* @see UiSidebarContentProps
|
|
297
294
|
*/
|
|
298
|
-
export
|
|
299
|
-
}
|
|
295
|
+
export type UiSidebarInsetProps = Record<string, never>;
|
|
300
296
|
/**
|
|
301
297
|
* @see UiSidebarContentProps
|
|
302
298
|
*/
|
|
303
|
-
export
|
|
304
|
-
}
|
|
299
|
+
export type UiSidebarMenuProps = Record<string, never>;
|
|
305
300
|
/**
|
|
306
301
|
* @see UiSidebarContentProps
|
|
307
302
|
*/
|
|
308
|
-
export
|
|
309
|
-
}
|
|
303
|
+
export type UiSidebarMenuItemProps = Record<string, never>;
|
|
310
304
|
/**
|
|
311
305
|
* @see UiSidebarContentProps
|
|
312
306
|
*/
|
|
313
|
-
export
|
|
314
|
-
}
|
|
307
|
+
export type UiSidebarProviderProps = Record<string, never>;
|
|
315
308
|
/**
|
|
316
309
|
* @see UiSidebarContentProps
|
|
317
310
|
*/
|
|
318
|
-
export
|
|
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": "
|
|
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",
|
|
@@ -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
|
|
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 {
|
|
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
|