@aleph-alpha/ui-library 6.3.3 → 6.3.4
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/dist/system/components/UiFileUploadBox/types.d.ts +8 -5
- package/dist/system/components/UiStepper/context.d.ts +8 -0
- package/dist/system/components/core/range-calendar/RangeCalendar.vue.d.ts +24 -24
- package/dist/system/icons/story-sidebar-icons.json +7 -0
- package/dist/system/lib.js +14776 -14598
- package/dist/system/patterns/UiLayout/layout-shell.d.ts +217 -5
- package/dist/system/patterns/UiTopBar/accessory-dropdown.d.ts +227 -0
- package/dist/system/story-sidebar-icons.json +7 -0
- package/package.json +1 -1
- package/src/components/UiAccordion/UiAccordion.stories.ts +1079 -0
- package/src/components/UiCalendar/UiCalendar.stories.ts +734 -0
- package/src/components/UiCalendar/__tests__/UiCalendar.test.ts +8 -5
- package/src/components/UiDropdownMenu/UiDropdownMenuTrigger.vue +3 -1
- package/src/components/UiFileUploadBox/UiFileUploadBox.stories.ts +389 -3
- package/src/components/UiFileUploadBox/UiFileUploadBox.vue +55 -75
- package/src/components/UiFileUploadBox/__tests__/UiFileUploadBox.test.ts +44 -0
- package/src/components/UiFileUploadBox/types.ts +8 -5
- package/src/components/UiNavigationMenu/UiNavigationMenu.stories.ts +723 -0
- package/src/components/UiRangeCalendar/UiRangeCalendar.stories.ts +819 -7
- package/src/components/UiRangeCalendar/__tests__/UiRangeCalendar.test.ts +8 -3
- package/src/components/UiResizable/UiResizable.stories.ts +1215 -5
- package/src/components/UiSnackbar/UiSnackbar.stories.ts +1017 -4
- package/src/components/UiSnackbar/UiSnackbar.vue +3 -2
- package/src/components/UiSnackbar/UiSnackbarContent.vue +1 -1
- package/src/components/UiSnackbar/__tests__/UiSnackbar.test.ts +3 -1
- package/src/components/UiStepper/UiStepper.stories.ts +566 -2
- package/src/components/UiStepper/UiStepper.vue +14 -1
- package/src/components/UiStepper/UiStepperItem.vue +22 -4
- package/src/components/UiStepper/__tests__/UiStepper.test.ts +66 -0
- package/src/components/UiStepper/context.ts +10 -0
- package/src/components/core/calendar/Calendar.vue +234 -2
- package/src/components/core/calendar/CalendarCellTrigger.vue +1 -1
- package/src/components/core/navigation-menu/NavigationMenuList.vue +1 -1
- package/src/components/core/range-calendar/RangeCalendar.vue +254 -6
- package/src/components/core/range-calendar/RangeCalendarCellTrigger.vue +1 -1
- package/src/patterns/UiDatePicker/UiDatePicker.stories.ts +846 -17
- package/src/patterns/UiDatePicker/UiDatePicker.vue +9 -0
- package/src/patterns/UiDatePicker/__tests__/UiDatePicker.test.ts +13 -8
- package/src/patterns/UiFileUpload/UiFileItem.stories.ts +23 -17
- package/src/patterns/UiFileUpload/UiFileUpload.stories.ts +138 -113
- package/src/patterns/UiFileUpload/UiFileUpload.vue +1 -1
- package/src/patterns/UiFileUpload/__tests__/UiFileUpload.test.ts +2 -2
- package/src/patterns/UiLayout/UiLayout.stories.ts +25 -0
- package/src/patterns/UiLayout/UiLayoutContent.stories.ts +359 -0
- package/src/patterns/UiLayout/UiLayoutContent.vue +45 -23
- package/src/patterns/UiLayout/UiLayoutMobile.stories.ts +13 -0
- package/src/patterns/UiLayout/layout-shell.ts +159 -13
- package/src/patterns/UiTopBar/UiTopBar.stories.ts +245 -36
- package/src/patterns/UiTopBar/UiTopBar.vue +4 -2
- package/src/patterns/UiTopBar/accessory-dropdown.ts +97 -0
|
@@ -28,9 +28,12 @@ export interface UiFileUploadBoxProps {
|
|
|
28
28
|
maxSizeLabel?: string;
|
|
29
29
|
/** Heading inside the drop zone. */
|
|
30
30
|
dropLabel?: string;
|
|
31
|
-
/** Label for the
|
|
31
|
+
/** Label for the button-styled hint inside the drop zone (the whole zone is the button). */
|
|
32
32
|
chooseLabel?: string;
|
|
33
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* Overrides the drop zone's accessible name, which otherwise comes from its visible text.
|
|
35
|
+
* Start it with the visible labels so speech-input users can still target it (WCAG 2.5.3).
|
|
36
|
+
*/
|
|
34
37
|
ariaLabel?: string;
|
|
35
38
|
}
|
|
36
39
|
/**
|
|
@@ -64,9 +67,9 @@ export interface UiFileUploadBoxEmits {
|
|
|
64
67
|
dragover: [event: DragEvent];
|
|
65
68
|
/** Re-emitted when files are dropped; processing runs after this emit. */
|
|
66
69
|
drop: [event: DragEvent];
|
|
67
|
-
/** Emitted for clicks on the drop zone
|
|
70
|
+
/** Emitted for clicks anywhere on the drop zone, before the picker opens. */
|
|
68
71
|
click: [event: MouseEvent];
|
|
69
|
-
/** Emitted for keydown on the drop zone (Enter/Space
|
|
72
|
+
/** Emitted for keydown on the drop zone (Enter/Space open the picker when enabled). */
|
|
70
73
|
keydown: [event: KeyboardEvent];
|
|
71
74
|
/** Emitted when the drop zone receives focus. */
|
|
72
75
|
focus: [event: FocusEvent];
|
|
@@ -75,7 +78,7 @@ export interface UiFileUploadBoxEmits {
|
|
|
75
78
|
/** Emitted from the hidden file input after the user picks files (before validation). */
|
|
76
79
|
change: [event: Event];
|
|
77
80
|
/**
|
|
78
|
-
* Emitted immediately before the native file picker opens (zone click
|
|
81
|
+
* Emitted immediately before the native file picker opens (zone click or keyboard).
|
|
79
82
|
* Useful for analytics or closing overlays.
|
|
80
83
|
*/
|
|
81
84
|
pickerOpen: [];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComputedRef, InjectionKey } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Current active step provided by `UiStepper` so `UiStepperItem` can expose
|
|
4
|
+
* `aria-current="step"` on the active item. reka-ui only sets
|
|
5
|
+
* `aria-current="true"`, which screen readers announce as a generic "current
|
|
6
|
+
* item" instead of the specific "current step".
|
|
7
|
+
*/
|
|
8
|
+
export declare const UI_STEPPER_CURRENT_STEP: InjectionKey<ComputedRef<number>>;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { RangeCalendarRootProps } from 'reka-ui';
|
|
1
|
+
import { DateValue, RangeCalendarRootProps } from 'reka-ui';
|
|
2
2
|
import { HTMLAttributes, nextTick } from 'vue';
|
|
3
3
|
type __VLS_Props = RangeCalendarRootProps & {
|
|
4
4
|
class?: HTMLAttributes['class'];
|
|
5
5
|
};
|
|
6
6
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
7
|
"update:modelValue": (date: import('reka-ui').DateRange) => any;
|
|
8
|
-
"update:placeholder": (date:
|
|
8
|
+
"update:placeholder": (date: DateValue) => any;
|
|
9
9
|
"update:validModelValue": (date: import('reka-ui').DateRange) => any;
|
|
10
|
-
"update:startValue": (date:
|
|
10
|
+
"update:startValue": (date: DateValue | undefined) => any;
|
|
11
11
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
12
|
"onUpdate:modelValue"?: ((date: import('reka-ui').DateRange) => any) | undefined;
|
|
13
|
-
"onUpdate:placeholder"?: ((date:
|
|
13
|
+
"onUpdate:placeholder"?: ((date: DateValue) => any) | undefined;
|
|
14
14
|
"onUpdate:validModelValue"?: ((date: import('reka-ui').DateRange) => any) | undefined;
|
|
15
|
-
"onUpdate:startValue"?: ((date:
|
|
15
|
+
"onUpdate:startValue"?: ((date: DateValue | undefined) => any) | undefined;
|
|
16
16
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
17
17
|
rangeCalendarRootRef: ({
|
|
18
18
|
$: import('vue').ComponentInternalInstance;
|
|
19
19
|
$data: {};
|
|
20
20
|
$props: {
|
|
21
|
-
readonly defaultPlaceholder?:
|
|
21
|
+
readonly defaultPlaceholder?: DateValue | undefined;
|
|
22
22
|
readonly defaultValue?: import('reka-ui').DateRange | undefined;
|
|
23
23
|
readonly modelValue?: (import('reka-ui').DateRange | null) | undefined;
|
|
24
|
-
readonly placeholder?:
|
|
24
|
+
readonly placeholder?: DateValue | undefined;
|
|
25
25
|
readonly allowNonContiguousRanges?: boolean | undefined;
|
|
26
26
|
readonly pagedNavigation?: boolean | undefined;
|
|
27
27
|
readonly preventDeselect?: boolean | undefined;
|
|
@@ -30,8 +30,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
30
30
|
readonly weekdayFormat?: import('reka-ui/date').WeekDayFormat | undefined;
|
|
31
31
|
readonly calendarLabel?: string | undefined;
|
|
32
32
|
readonly fixedWeeks?: boolean | undefined;
|
|
33
|
-
readonly maxValue?:
|
|
34
|
-
readonly minValue?:
|
|
33
|
+
readonly maxValue?: DateValue | undefined;
|
|
34
|
+
readonly minValue?: DateValue | undefined;
|
|
35
35
|
readonly locale?: string | undefined;
|
|
36
36
|
readonly numberOfMonths?: number | undefined;
|
|
37
37
|
readonly disabled?: boolean | undefined;
|
|
@@ -41,16 +41,16 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
41
41
|
readonly isDateUnavailable?: import('reka-ui/date').Matcher | undefined;
|
|
42
42
|
readonly isDateHighlightable?: import('reka-ui/date').Matcher | undefined;
|
|
43
43
|
readonly dir?: ("ltr" | "rtl") | undefined;
|
|
44
|
-
readonly nextPage?: ((placeholder:
|
|
45
|
-
readonly prevPage?: ((placeholder:
|
|
44
|
+
readonly nextPage?: ((placeholder: DateValue) => DateValue) | undefined;
|
|
45
|
+
readonly prevPage?: ((placeholder: DateValue) => DateValue) | undefined;
|
|
46
46
|
readonly disableDaysOutsideCurrentView?: boolean | undefined;
|
|
47
47
|
readonly fixedDate?: "start" | "end" | undefined;
|
|
48
48
|
readonly asChild?: boolean | undefined;
|
|
49
49
|
readonly as?: (import('reka-ui').AsTag | import('vue').Component) | undefined;
|
|
50
50
|
readonly "onUpdate:modelValue"?: ((date: import('reka-ui').DateRange) => any) | undefined | undefined;
|
|
51
51
|
readonly "onUpdate:validModelValue"?: ((date: import('reka-ui').DateRange) => any) | undefined | undefined;
|
|
52
|
-
readonly "onUpdate:placeholder"?: ((date:
|
|
53
|
-
readonly "onUpdate:startValue"?: ((date:
|
|
52
|
+
readonly "onUpdate:placeholder"?: ((date: DateValue) => any) | undefined | undefined;
|
|
53
|
+
readonly "onUpdate:startValue"?: ((date: DateValue | undefined) => any) | undefined | undefined;
|
|
54
54
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
55
55
|
$attrs: {
|
|
56
56
|
[x: string]: unknown;
|
|
@@ -64,23 +64,23 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
64
64
|
$root: import('vue').ComponentPublicInstance | null;
|
|
65
65
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
66
66
|
$host: Element | null;
|
|
67
|
-
$emit: ((event: "update:modelValue", date: import('reka-ui').DateRange) => void) & ((event: "update:placeholder", date:
|
|
67
|
+
$emit: ((event: "update:modelValue", date: import('reka-ui').DateRange) => void) & ((event: "update:placeholder", date: DateValue) => void) & ((event: "update:validModelValue", date: import('reka-ui').DateRange) => void) & ((event: "update:startValue", date: DateValue | undefined) => void);
|
|
68
68
|
$el: any;
|
|
69
69
|
$options: import('vue').ComponentOptionsBase<Readonly<RangeCalendarRootProps> & Readonly<{
|
|
70
70
|
"onUpdate:modelValue"?: ((date: import('reka-ui').DateRange) => any) | undefined;
|
|
71
71
|
"onUpdate:validModelValue"?: ((date: import('reka-ui').DateRange) => any) | undefined;
|
|
72
|
-
"onUpdate:placeholder"?: ((date:
|
|
73
|
-
"onUpdate:startValue"?: ((date:
|
|
72
|
+
"onUpdate:placeholder"?: ((date: DateValue) => any) | undefined;
|
|
73
|
+
"onUpdate:startValue"?: ((date: DateValue | undefined) => any) | undefined;
|
|
74
74
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
75
75
|
"update:modelValue": (date: import('reka-ui').DateRange) => any;
|
|
76
76
|
"update:validModelValue": (date: import('reka-ui').DateRange) => any;
|
|
77
|
-
"update:placeholder": (date:
|
|
78
|
-
"update:startValue": (date:
|
|
77
|
+
"update:placeholder": (date: DateValue) => any;
|
|
78
|
+
"update:startValue": (date: DateValue | undefined) => any;
|
|
79
79
|
}, string, {
|
|
80
80
|
as: import('reka-ui').AsTag | import('vue').Component;
|
|
81
81
|
disabled: boolean;
|
|
82
82
|
defaultValue: import('reka-ui').DateRange;
|
|
83
|
-
placeholder:
|
|
83
|
+
placeholder: DateValue;
|
|
84
84
|
readonly: boolean;
|
|
85
85
|
allowNonContiguousRanges: boolean;
|
|
86
86
|
pagedNavigation: boolean;
|
|
@@ -118,7 +118,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
118
118
|
as: import('reka-ui').AsTag | import('vue').Component;
|
|
119
119
|
disabled: boolean;
|
|
120
120
|
defaultValue: import('reka-ui').DateRange;
|
|
121
|
-
placeholder:
|
|
121
|
+
placeholder: DateValue;
|
|
122
122
|
readonly: boolean;
|
|
123
123
|
allowNonContiguousRanges: boolean;
|
|
124
124
|
pagedNavigation: boolean;
|
|
@@ -135,13 +135,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
135
135
|
}> & Omit<Readonly<RangeCalendarRootProps> & Readonly<{
|
|
136
136
|
"onUpdate:modelValue"?: ((date: import('reka-ui').DateRange) => any) | undefined;
|
|
137
137
|
"onUpdate:validModelValue"?: ((date: import('reka-ui').DateRange) => any) | undefined;
|
|
138
|
-
"onUpdate:placeholder"?: ((date:
|
|
139
|
-
"onUpdate:startValue"?: ((date:
|
|
138
|
+
"onUpdate:placeholder"?: ((date: DateValue) => any) | undefined;
|
|
139
|
+
"onUpdate:startValue"?: ((date: DateValue | undefined) => any) | undefined;
|
|
140
140
|
}>, "disabled" | "as" | "defaultValue" | "placeholder" | "pagedNavigation" | "preventDeselect" | "weekdayFormat" | "fixedWeeks" | "numberOfMonths" | "readonly" | "initialFocus" | "isDateDisabled" | "isDateUnavailable" | "disableDaysOutsideCurrentView" | "allowNonContiguousRanges" | "maximumDays" | "isDateHighlightable"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
141
141
|
$slots: {
|
|
142
142
|
default?: (props: {
|
|
143
|
-
date:
|
|
144
|
-
grid: import('reka-ui/date').Grid<
|
|
143
|
+
date: DateValue;
|
|
144
|
+
grid: import('reka-ui/date').Grid<DateValue>[];
|
|
145
145
|
weekDays: string[];
|
|
146
146
|
weekStartsOn: import('reka-ui/date').WeekStartsOn;
|
|
147
147
|
locale: string;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
+
"components-uiaccordion--accessibility": "accessibility",
|
|
3
|
+
"components-uicalendar--accessibility": "accessibility",
|
|
2
4
|
"components-uibutton--design-notes": "palette",
|
|
3
5
|
"components-uibutton--accessibility": "accessibility",
|
|
6
|
+
"components-uinavigationmenu--accessibility": "accessibility",
|
|
7
|
+
"components-uirangecalendar--accessibility": "accessibility",
|
|
8
|
+
"patterns-uidatepicker--accessibility": "accessibility",
|
|
4
9
|
"components-uibuttongroup--accessibility": "accessibility",
|
|
5
10
|
"components-uicheckbox--design-notes": "palette",
|
|
6
11
|
"components-uicheckbox--accessibility": "accessibility",
|
|
@@ -24,7 +29,9 @@
|
|
|
24
29
|
"components-uiradiogroup--accessibility": "accessibility",
|
|
25
30
|
"components-uiselect--accessibility": "accessibility",
|
|
26
31
|
"components-uisheet--accessibility": "accessibility",
|
|
32
|
+
"components-uisnackbar--accessibility": "accessibility",
|
|
27
33
|
"components-uislider--accessibility": "accessibility",
|
|
34
|
+
"components-uistepper--accessibility": "accessibility",
|
|
28
35
|
"components-uiswitch--accessibility": "accessibility",
|
|
29
36
|
"components-uitagsinput--accessibility": "accessibility",
|
|
30
37
|
"components-uitoggle--accessibility": "accessibility",
|