@aleph-alpha/ui-library 5.5.0 → 5.6.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 (30) hide show
  1. package/dist/system/components/UiAutocomplete/UiAutocomplete.vue.d.ts +2 -0
  2. package/dist/system/components/UiButtonGroup/UiButtonGroup.vue.d.ts +20 -0
  3. package/dist/system/components/UiButtonGroup/index.d.ts +2 -0
  4. package/dist/system/components/UiButtonGroup/types.d.ts +20 -0
  5. package/dist/system/components/core/button-group/ButtonGroup.vue.d.ts +23 -0
  6. package/dist/system/components/core/button-group/ButtonGroupSeparator.vue.d.ts +9 -0
  7. package/dist/system/components/core/button-group/ButtonGroupText.vue.d.ts +26 -0
  8. package/dist/system/components/core/button-group/index.d.ts +8 -0
  9. package/dist/system/components/index.d.ts +1 -0
  10. package/dist/system/lib.js +7850 -7728
  11. package/dist/system/story-sidebar-icons.json +3 -0
  12. package/package.json +1 -1
  13. package/src/components/UiAutocomplete/UiAutocomplete.stories.ts +619 -0
  14. package/src/components/UiAutocomplete/UiAutocomplete.vue +28 -3
  15. package/src/components/UiAutocomplete/__tests__/UiAutocomplete.test.ts +14 -69
  16. package/src/components/UiButtonGroup/UiButtonGroup.stories.ts +690 -0
  17. package/src/components/UiButtonGroup/UiButtonGroup.vue +18 -0
  18. package/src/components/UiButtonGroup/__tests__/UiButtonGroup.test.ts +68 -0
  19. package/src/components/UiButtonGroup/index.ts +2 -0
  20. package/src/components/UiButtonGroup/types.ts +21 -0
  21. package/src/components/UiSelect/UiSelect.stories.ts +769 -0
  22. package/src/components/UiSelect/__tests__/UiSelect.test.ts +4 -73
  23. package/src/components/UiSelect/__tests__/UiSelectItem.test.ts +3 -31
  24. package/src/components/UiSelect/__tests__/UiSelectTrigger.test.ts +14 -5
  25. package/src/components/core/button-group/ButtonGroup.vue +24 -0
  26. package/src/components/core/button-group/ButtonGroupSeparator.vue +29 -0
  27. package/src/components/core/button-group/ButtonGroupText.vue +33 -0
  28. package/src/components/core/button-group/index.ts +25 -0
  29. package/src/components/core/select/SelectTrigger.vue +1 -1
  30. package/src/components/index.ts +1 -0
@@ -33,6 +33,7 @@ declare function __VLS_template(): {
33
33
  }): any;
34
34
  };
35
35
  refs: {
36
+ rootEl: HTMLDivElement;
36
37
  inputEl: HTMLInputElement;
37
38
  };
38
39
  rootEl: HTMLDivElement;
@@ -74,6 +75,7 @@ declare const __VLS_component: import('vue').DefineComponent<UiAutocompleteProps
74
75
  emptyText: string;
75
76
  showIndicator: boolean;
76
77
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
78
+ rootEl: HTMLDivElement;
77
79
  inputEl: HTMLInputElement;
78
80
  }, HTMLDivElement>;
79
81
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -0,0 +1,20 @@
1
+ import { UiButtonGroupProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: HTMLDivElement;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<UiButtonGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiButtonGroupProps> & Readonly<{}>, {
12
+ orientation: import('./types').UiButtonGroupOrientation;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
14
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,2 @@
1
+ export { default as UiButtonGroup } from './UiButtonGroup.vue';
2
+ export type { UiButtonGroupProps, UiButtonGroupOrientation } from './types';
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Layout direction for the buttons inside a `UiButtonGroup`.
3
+ */
4
+ export type UiButtonGroupOrientation = 'horizontal' | 'vertical';
5
+ /**
6
+ * Visually joins a set of related actions (and inputs) into a single, connected
7
+ * control. Renders a `role="group"` container and merges the borders and radii
8
+ * of its children so they read as one unit.
9
+ * @category Actions
10
+ * @useCases toolbar, segmented actions, split button, input with buttons, pagination controls
11
+ * @keywords button group, group, toolbar, segmented, joined, split button
12
+ * @related UiButton, UiInput
13
+ */
14
+ export interface UiButtonGroupProps {
15
+ /**
16
+ * The layout direction of the grouped buttons.
17
+ * @default 'horizontal'
18
+ */
19
+ orientation?: UiButtonGroupOrientation;
20
+ }
@@ -0,0 +1,23 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { ButtonGroupVariants } from '.';
3
+ type __VLS_Props = {
4
+ class?: HTMLAttributes['class'];
5
+ orientation?: ButtonGroupVariants['orientation'];
6
+ };
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ default?(_: {}): any;
11
+ };
12
+ refs: {};
13
+ rootEl: HTMLDivElement;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
17
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
+ export default _default;
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,9 @@
1
+ import { SeparatorProps } from 'reka-ui';
2
+ import { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = SeparatorProps & {
4
+ class?: HTMLAttributes['class'];
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
7
+ orientation: "vertical" | "horizontal";
8
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ export default _default;
@@ -0,0 +1,26 @@
1
+ import { PrimitiveProps } from 'reka-ui';
2
+ import { HTMLAttributes } from 'vue';
3
+ import { ButtonGroupVariants } from '.';
4
+ interface Props extends PrimitiveProps {
5
+ class?: HTMLAttributes['class'];
6
+ orientation?: ButtonGroupVariants['orientation'];
7
+ }
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ default?(_: {}): any;
12
+ };
13
+ refs: {};
14
+ rootEl: any;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
18
+ as: import('reka-ui').AsTag | import('vue').Component;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,8 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ export { default as ButtonGroup } from './ButtonGroup.vue';
3
+ export { default as ButtonGroupSeparator } from './ButtonGroupSeparator.vue';
4
+ export { default as ButtonGroupText } from './ButtonGroupText.vue';
5
+ export declare const buttonGroupVariants: (props?: ({
6
+ orientation?: "vertical" | "horizontal" | null | undefined;
7
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
+ export type ButtonGroupVariants = VariantProps<typeof buttonGroupVariants>;
@@ -9,6 +9,7 @@ export * from './UiAutocomplete';
9
9
  export * from './UiAvatar';
10
10
  export * from './UiBadge';
11
11
  export * from './UiButton';
12
+ export * from './UiButtonGroup';
12
13
  export * from './UiCalendar';
13
14
  export * from './UiCard';
14
15
  export * from './UiCheckbox';