@aleph-alpha/ui-library 5.5.0 → 5.7.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 (41) hide show
  1. package/config.js +5 -0
  2. package/dist/system/components/UiAutocomplete/UiAutocomplete.vue.d.ts +2 -0
  3. package/dist/system/components/UiButtonGroup/UiButtonGroup.vue.d.ts +20 -0
  4. package/dist/system/components/UiButtonGroup/index.d.ts +2 -0
  5. package/dist/system/components/UiButtonGroup/types.d.ts +20 -0
  6. package/dist/system/components/UiField/types.d.ts +2 -1
  7. package/dist/system/components/core/button-group/ButtonGroup.vue.d.ts +23 -0
  8. package/dist/system/components/core/button-group/ButtonGroupSeparator.vue.d.ts +9 -0
  9. package/dist/system/components/core/button-group/ButtonGroupText.vue.d.ts +26 -0
  10. package/dist/system/components/core/button-group/index.d.ts +8 -0
  11. package/dist/system/components/index.d.ts +1 -0
  12. package/dist/system/lib.js +7855 -7732
  13. package/dist/system/story-sidebar-icons.json +3 -0
  14. package/package.json +5 -5
  15. package/src/components/UiAutocomplete/UiAutocomplete.stories.ts +619 -0
  16. package/src/components/UiAutocomplete/UiAutocomplete.vue +28 -3
  17. package/src/components/UiAutocomplete/__tests__/UiAutocomplete.test.ts +14 -69
  18. package/src/components/UiButtonGroup/UiButtonGroup.stories.ts +690 -0
  19. package/src/components/UiButtonGroup/UiButtonGroup.vue +18 -0
  20. package/src/components/UiButtonGroup/__tests__/UiButtonGroup.test.ts +68 -0
  21. package/src/components/UiButtonGroup/index.ts +2 -0
  22. package/src/components/UiButtonGroup/types.ts +21 -0
  23. package/src/components/UiCheckbox/UiCheckbox.stories.ts +625 -74
  24. package/src/components/UiField/UiField.stories.ts +1 -1
  25. package/src/components/UiField/types.ts +2 -1
  26. package/src/components/UiRadioGroup/UiRadioGroup.stories.ts +995 -0
  27. package/src/components/UiSelect/UiSelect.stories.ts +769 -0
  28. package/src/components/UiSelect/__tests__/UiSelect.test.ts +4 -73
  29. package/src/components/UiSelect/__tests__/UiSelectItem.test.ts +3 -31
  30. package/src/components/UiSelect/__tests__/UiSelectTrigger.test.ts +14 -5
  31. package/src/components/core/button-group/ButtonGroup.vue +24 -0
  32. package/src/components/core/button-group/ButtonGroupSeparator.vue +29 -0
  33. package/src/components/core/button-group/ButtonGroupText.vue +33 -0
  34. package/src/components/core/button-group/index.ts +25 -0
  35. package/src/components/core/field/FieldDescription.vue +1 -1
  36. package/src/components/core/field/FieldLabel.vue +3 -2
  37. package/src/components/core/field/FieldTitle.vue +1 -1
  38. package/src/components/core/select/SelectTrigger.vue +1 -1
  39. package/src/components/index.ts +1 -0
  40. package/src/components/UiCheckbox/__tests__/UiCheckbox.test.ts +0 -14
  41. package/src/components/UiRadioGroup/__tests__/UiRadioGroup.test.ts +0 -412
package/config.js CHANGED
@@ -928,6 +928,11 @@ export const presetUiLibraryThemeFromTokens = (options = {}) => {
928
928
  :root, :host {
929
929
  --font-sans: '${fontBody}', sans-serif;
930
930
  --font-heading: '${fontHeading}', sans-serif;
931
+ }
932
+ *,
933
+ ::before,
934
+ ::after {
935
+ font-variant-ligatures: no-contextual;
931
936
  }`.trim();
932
937
 
933
938
  // Return preset with token-related config: CSS variables, token colors, semantic overrides, typography, fonts
@@ -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
+ }
@@ -1,9 +1,10 @@
1
1
  /**
2
2
  * Layout orientation supported by `UiField`.
3
3
  * - `vertical`: stacked layout (label above input).
4
+ * - `horizontal`: side-by-side layout that never collapses.
4
5
  * - `responsive`: horizontal by default, collapses to vertical on small screens.
5
6
  */
6
- export type UiFieldOrientation = 'vertical' | 'responsive';
7
+ export type UiFieldOrientation = 'vertical' | 'horizontal' | 'responsive';
7
8
  /**
8
9
  * Error shape supported by `UiFieldError`.
9
10
  */
@@ -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';