@aleph-alpha/ui-library 6.3.2 → 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/config.js +2 -0
- 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
|
@@ -1,9 +1,26 @@
|
|
|
1
1
|
import { ComponentPublicInstance } from 'vue';
|
|
2
|
+
import { UiLayoutContentSidebarMode } from './types';
|
|
2
3
|
/** A row in the sidebar navigation. */
|
|
3
4
|
type NavItem = {
|
|
4
5
|
/** Title shown on the row and echoed in the content column. */
|
|
5
6
|
title: string;
|
|
6
7
|
};
|
|
8
|
+
/**
|
|
9
|
+
* How the content area is arranged. `focus` is the plain twelve columns,
|
|
10
|
+
* `split` fills the `split` slot, and `sidebar` fills the `sidebar` slot at
|
|
11
|
+
* whichever `sidebarMode` is picked. Modals are not a slot mode — they are an
|
|
12
|
+
* overlay above `focus` — so they stay in their own stories.
|
|
13
|
+
*/
|
|
14
|
+
export type ContentMode = 'focus' | 'split' | 'sidebar';
|
|
15
|
+
/**
|
|
16
|
+
* Id of the content region the bar's layout switch points at with
|
|
17
|
+
* `aria-controls`, so the relation between the two is programmatic rather than
|
|
18
|
+
* only visual. Any shell that renders the switch has to carry it on its
|
|
19
|
+
* content column, or the reference dangles.
|
|
20
|
+
*/
|
|
21
|
+
export declare const CONTENT_REGION_ID = "layout-content";
|
|
22
|
+
/** How each sidebar mode reads in the switch and in the announcement. */
|
|
23
|
+
export declare const SIDEBAR_MODE_LABELS: Record<UiLayoutContentSidebarMode, string>;
|
|
7
24
|
/**
|
|
8
25
|
* Arranges the shell: a column holding the full-width bar, and a row beneath it
|
|
9
26
|
* holding the sidebar and the content.
|
|
@@ -784,6 +801,62 @@ export declare function renderShell(defaultOpen?: boolean, rows?: number, histor
|
|
|
784
801
|
default?(_: {}): any;
|
|
785
802
|
};
|
|
786
803
|
});
|
|
804
|
+
UiToggle: {
|
|
805
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
806
|
+
modelValue?: boolean;
|
|
807
|
+
} & import('../..').UiToggleProps> & Readonly<{
|
|
808
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
809
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
810
|
+
"update:modelValue": (value: boolean) => any;
|
|
811
|
+
}, import('vue').PublicProps, {
|
|
812
|
+
disabled: boolean;
|
|
813
|
+
size: "default" | "sm" | "lg";
|
|
814
|
+
variant: "default" | "outline" | "soft";
|
|
815
|
+
active: boolean;
|
|
816
|
+
leftIcon: string;
|
|
817
|
+
rightIcon: string;
|
|
818
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
819
|
+
P: {};
|
|
820
|
+
B: {};
|
|
821
|
+
D: {};
|
|
822
|
+
C: {};
|
|
823
|
+
M: {};
|
|
824
|
+
Defaults: {};
|
|
825
|
+
}, Readonly<{
|
|
826
|
+
modelValue?: boolean;
|
|
827
|
+
} & import('../..').UiToggleProps> & Readonly<{
|
|
828
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
829
|
+
}>, {}, {}, {}, {}, {
|
|
830
|
+
disabled: boolean;
|
|
831
|
+
size: "default" | "sm" | "lg";
|
|
832
|
+
variant: "default" | "outline" | "soft";
|
|
833
|
+
active: boolean;
|
|
834
|
+
leftIcon: string;
|
|
835
|
+
rightIcon: string;
|
|
836
|
+
}>;
|
|
837
|
+
__isFragment?: never;
|
|
838
|
+
__isTeleport?: never;
|
|
839
|
+
__isSuspense?: never;
|
|
840
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
841
|
+
modelValue?: boolean;
|
|
842
|
+
} & import('../..').UiToggleProps> & Readonly<{
|
|
843
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
844
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
845
|
+
"update:modelValue": (value: boolean) => any;
|
|
846
|
+
}, string, {
|
|
847
|
+
disabled: boolean;
|
|
848
|
+
size: "default" | "sm" | "lg";
|
|
849
|
+
variant: "default" | "outline" | "soft";
|
|
850
|
+
active: boolean;
|
|
851
|
+
leftIcon: string;
|
|
852
|
+
rightIcon: string;
|
|
853
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
854
|
+
$slots: {
|
|
855
|
+
'left-icon'?(_: {}): any;
|
|
856
|
+
default?(_: {}): any;
|
|
857
|
+
'right-icon'?(_: {}): any;
|
|
858
|
+
};
|
|
859
|
+
});
|
|
787
860
|
UiDropdownMenuLabel: {
|
|
788
861
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../..').UiDropdownMenuLabelProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
789
862
|
inset: boolean;
|
|
@@ -923,8 +996,10 @@ export declare function renderShell(defaultOpen?: boolean, rows?: number, histor
|
|
|
923
996
|
title: string;
|
|
924
997
|
meta: string;
|
|
925
998
|
}[];
|
|
999
|
+
contentRegionId: string;
|
|
926
1000
|
isActive: (title: string) => boolean;
|
|
927
|
-
layout: import('vue').Ref<
|
|
1001
|
+
layout: import('vue').Ref<ContentMode, ContentMode>;
|
|
1002
|
+
layoutStatus: import('vue').ComputedRef<string>;
|
|
928
1003
|
model: import('vue').Ref<string, string>;
|
|
929
1004
|
models: string[];
|
|
930
1005
|
mobileItems: {
|
|
@@ -932,6 +1007,8 @@ export declare function renderShell(defaultOpen?: boolean, rows?: number, histor
|
|
|
932
1007
|
icon: string;
|
|
933
1008
|
}[];
|
|
934
1009
|
open: import('vue').Ref<boolean, boolean>;
|
|
1010
|
+
primaryColumnCount: import('vue').ComputedRef<number>;
|
|
1011
|
+
primaryGridClass: import('vue').ComputedRef<string>;
|
|
935
1012
|
primaryItems: {
|
|
936
1013
|
title: string;
|
|
937
1014
|
icon: string;
|
|
@@ -945,7 +1022,11 @@ export declare function renderShell(defaultOpen?: boolean, rows?: number, histor
|
|
|
945
1022
|
shellStyle: import('vue').ComputedRef<{
|
|
946
1023
|
'--sidebar-offset-top': string;
|
|
947
1024
|
}>;
|
|
1025
|
+
sidebarColumnCount: import('vue').ComputedRef<number>;
|
|
1026
|
+
sidebarGridClass: import('vue').ComputedRef<string>;
|
|
1027
|
+
sidebarMode: import('vue').Ref<UiLayoutContentSidebarMode, UiLayoutContentSidebarMode>;
|
|
948
1028
|
topBarRef: import('vue').Ref<HTMLElement | ComponentPublicInstance | null, HTMLElement | ComponentPublicInstance | null>;
|
|
1029
|
+
accessoryOpen: import('vue').Ref<boolean, boolean>;
|
|
949
1030
|
language: import('vue').Ref<string, string>;
|
|
950
1031
|
};
|
|
951
1032
|
template: string;
|
|
@@ -958,9 +1039,12 @@ export declare function renderShell(defaultOpen?: boolean, rows?: number, histor
|
|
|
958
1039
|
* each, so there is no mode to change.
|
|
959
1040
|
* @param contentTemplate Template string for the content column.
|
|
960
1041
|
* @param extraComponents Components the content template uses.
|
|
1042
|
+
* @param layoutActions Whether the bar carries the layout switch. A template
|
|
1043
|
+
* that turns it on has to put `CONTENT_REGION_ID` on its content column, which
|
|
1044
|
+
* is what the switch's `aria-controls` points at.
|
|
961
1045
|
* @returns Story render definition.
|
|
962
1046
|
*/
|
|
963
|
-
export declare function renderShellWith(contentTemplate: string, extraComponents?: Record<string, unknown
|
|
1047
|
+
export declare function renderShellWith(contentTemplate: string, extraComponents?: Record<string, unknown>, layoutActions?: boolean): () => {
|
|
964
1048
|
components: {
|
|
965
1049
|
UiAvatar: {
|
|
966
1050
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../..').UiAvatarProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
@@ -1732,6 +1816,62 @@ export declare function renderShellWith(contentTemplate: string, extraComponents
|
|
|
1732
1816
|
default?(_: {}): any;
|
|
1733
1817
|
};
|
|
1734
1818
|
});
|
|
1819
|
+
UiToggle: {
|
|
1820
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1821
|
+
modelValue?: boolean;
|
|
1822
|
+
} & import('../..').UiToggleProps> & Readonly<{
|
|
1823
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
1824
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
1825
|
+
"update:modelValue": (value: boolean) => any;
|
|
1826
|
+
}, import('vue').PublicProps, {
|
|
1827
|
+
disabled: boolean;
|
|
1828
|
+
size: "default" | "sm" | "lg";
|
|
1829
|
+
variant: "default" | "outline" | "soft";
|
|
1830
|
+
active: boolean;
|
|
1831
|
+
leftIcon: string;
|
|
1832
|
+
rightIcon: string;
|
|
1833
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
1834
|
+
P: {};
|
|
1835
|
+
B: {};
|
|
1836
|
+
D: {};
|
|
1837
|
+
C: {};
|
|
1838
|
+
M: {};
|
|
1839
|
+
Defaults: {};
|
|
1840
|
+
}, Readonly<{
|
|
1841
|
+
modelValue?: boolean;
|
|
1842
|
+
} & import('../..').UiToggleProps> & Readonly<{
|
|
1843
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
1844
|
+
}>, {}, {}, {}, {}, {
|
|
1845
|
+
disabled: boolean;
|
|
1846
|
+
size: "default" | "sm" | "lg";
|
|
1847
|
+
variant: "default" | "outline" | "soft";
|
|
1848
|
+
active: boolean;
|
|
1849
|
+
leftIcon: string;
|
|
1850
|
+
rightIcon: string;
|
|
1851
|
+
}>;
|
|
1852
|
+
__isFragment?: never;
|
|
1853
|
+
__isTeleport?: never;
|
|
1854
|
+
__isSuspense?: never;
|
|
1855
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
1856
|
+
modelValue?: boolean;
|
|
1857
|
+
} & import('../..').UiToggleProps> & Readonly<{
|
|
1858
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
1859
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
1860
|
+
"update:modelValue": (value: boolean) => any;
|
|
1861
|
+
}, string, {
|
|
1862
|
+
disabled: boolean;
|
|
1863
|
+
size: "default" | "sm" | "lg";
|
|
1864
|
+
variant: "default" | "outline" | "soft";
|
|
1865
|
+
active: boolean;
|
|
1866
|
+
leftIcon: string;
|
|
1867
|
+
rightIcon: string;
|
|
1868
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
1869
|
+
$slots: {
|
|
1870
|
+
'left-icon'?(_: {}): any;
|
|
1871
|
+
default?(_: {}): any;
|
|
1872
|
+
'right-icon'?(_: {}): any;
|
|
1873
|
+
};
|
|
1874
|
+
});
|
|
1735
1875
|
UiDropdownMenuLabel: {
|
|
1736
1876
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../..').UiDropdownMenuLabelProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
1737
1877
|
inset: boolean;
|
|
@@ -1871,8 +2011,10 @@ export declare function renderShellWith(contentTemplate: string, extraComponents
|
|
|
1871
2011
|
title: string;
|
|
1872
2012
|
meta: string;
|
|
1873
2013
|
}[];
|
|
2014
|
+
contentRegionId: string;
|
|
1874
2015
|
isActive: (title: string) => boolean;
|
|
1875
|
-
layout: import('vue').Ref<
|
|
2016
|
+
layout: import('vue').Ref<ContentMode, ContentMode>;
|
|
2017
|
+
layoutStatus: import('vue').ComputedRef<string>;
|
|
1876
2018
|
model: import('vue').Ref<string, string>;
|
|
1877
2019
|
models: string[];
|
|
1878
2020
|
mobileItems: {
|
|
@@ -1880,6 +2022,8 @@ export declare function renderShellWith(contentTemplate: string, extraComponents
|
|
|
1880
2022
|
icon: string;
|
|
1881
2023
|
}[];
|
|
1882
2024
|
open: import('vue').Ref<boolean, boolean>;
|
|
2025
|
+
primaryColumnCount: import('vue').ComputedRef<number>;
|
|
2026
|
+
primaryGridClass: import('vue').ComputedRef<string>;
|
|
1883
2027
|
primaryItems: {
|
|
1884
2028
|
title: string;
|
|
1885
2029
|
icon: string;
|
|
@@ -1893,7 +2037,11 @@ export declare function renderShellWith(contentTemplate: string, extraComponents
|
|
|
1893
2037
|
shellStyle: import('vue').ComputedRef<{
|
|
1894
2038
|
'--sidebar-offset-top': string;
|
|
1895
2039
|
}>;
|
|
2040
|
+
sidebarColumnCount: import('vue').ComputedRef<number>;
|
|
2041
|
+
sidebarGridClass: import('vue').ComputedRef<string>;
|
|
2042
|
+
sidebarMode: import('vue').Ref<UiLayoutContentSidebarMode, UiLayoutContentSidebarMode>;
|
|
1896
2043
|
topBarRef: import('vue').Ref<HTMLElement | ComponentPublicInstance | null, HTMLElement | ComponentPublicInstance | null>;
|
|
2044
|
+
accessoryOpen: import('vue').Ref<boolean, boolean>;
|
|
1897
2045
|
language: import('vue').Ref<string, string>;
|
|
1898
2046
|
};
|
|
1899
2047
|
template: string;
|
|
@@ -2678,6 +2826,62 @@ export declare function renderMobileShell(defaultOpen?: boolean, rows?: number,
|
|
|
2678
2826
|
default?(_: {}): any;
|
|
2679
2827
|
};
|
|
2680
2828
|
});
|
|
2829
|
+
UiToggle: {
|
|
2830
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
2831
|
+
modelValue?: boolean;
|
|
2832
|
+
} & import('../..').UiToggleProps> & Readonly<{
|
|
2833
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
2834
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2835
|
+
"update:modelValue": (value: boolean) => any;
|
|
2836
|
+
}, import('vue').PublicProps, {
|
|
2837
|
+
disabled: boolean;
|
|
2838
|
+
size: "default" | "sm" | "lg";
|
|
2839
|
+
variant: "default" | "outline" | "soft";
|
|
2840
|
+
active: boolean;
|
|
2841
|
+
leftIcon: string;
|
|
2842
|
+
rightIcon: string;
|
|
2843
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
2844
|
+
P: {};
|
|
2845
|
+
B: {};
|
|
2846
|
+
D: {};
|
|
2847
|
+
C: {};
|
|
2848
|
+
M: {};
|
|
2849
|
+
Defaults: {};
|
|
2850
|
+
}, Readonly<{
|
|
2851
|
+
modelValue?: boolean;
|
|
2852
|
+
} & import('../..').UiToggleProps> & Readonly<{
|
|
2853
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
2854
|
+
}>, {}, {}, {}, {}, {
|
|
2855
|
+
disabled: boolean;
|
|
2856
|
+
size: "default" | "sm" | "lg";
|
|
2857
|
+
variant: "default" | "outline" | "soft";
|
|
2858
|
+
active: boolean;
|
|
2859
|
+
leftIcon: string;
|
|
2860
|
+
rightIcon: string;
|
|
2861
|
+
}>;
|
|
2862
|
+
__isFragment?: never;
|
|
2863
|
+
__isTeleport?: never;
|
|
2864
|
+
__isSuspense?: never;
|
|
2865
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
2866
|
+
modelValue?: boolean;
|
|
2867
|
+
} & import('../..').UiToggleProps> & Readonly<{
|
|
2868
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
2869
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2870
|
+
"update:modelValue": (value: boolean) => any;
|
|
2871
|
+
}, string, {
|
|
2872
|
+
disabled: boolean;
|
|
2873
|
+
size: "default" | "sm" | "lg";
|
|
2874
|
+
variant: "default" | "outline" | "soft";
|
|
2875
|
+
active: boolean;
|
|
2876
|
+
leftIcon: string;
|
|
2877
|
+
rightIcon: string;
|
|
2878
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
2879
|
+
$slots: {
|
|
2880
|
+
'left-icon'?(_: {}): any;
|
|
2881
|
+
default?(_: {}): any;
|
|
2882
|
+
'right-icon'?(_: {}): any;
|
|
2883
|
+
};
|
|
2884
|
+
});
|
|
2681
2885
|
UiDropdownMenuLabel: {
|
|
2682
2886
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../..').UiDropdownMenuLabelProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
2683
2887
|
inset: boolean;
|
|
@@ -2817,8 +3021,10 @@ export declare function renderMobileShell(defaultOpen?: boolean, rows?: number,
|
|
|
2817
3021
|
title: string;
|
|
2818
3022
|
meta: string;
|
|
2819
3023
|
}[];
|
|
3024
|
+
contentRegionId: string;
|
|
2820
3025
|
isActive: (title: string) => boolean;
|
|
2821
|
-
layout: import('vue').Ref<
|
|
3026
|
+
layout: import('vue').Ref<ContentMode, ContentMode>;
|
|
3027
|
+
layoutStatus: import('vue').ComputedRef<string>;
|
|
2822
3028
|
model: import('vue').Ref<string, string>;
|
|
2823
3029
|
models: string[];
|
|
2824
3030
|
mobileItems: {
|
|
@@ -2826,6 +3032,8 @@ export declare function renderMobileShell(defaultOpen?: boolean, rows?: number,
|
|
|
2826
3032
|
icon: string;
|
|
2827
3033
|
}[];
|
|
2828
3034
|
open: import('vue').Ref<boolean, boolean>;
|
|
3035
|
+
primaryColumnCount: import('vue').ComputedRef<number>;
|
|
3036
|
+
primaryGridClass: import('vue').ComputedRef<string>;
|
|
2829
3037
|
primaryItems: {
|
|
2830
3038
|
title: string;
|
|
2831
3039
|
icon: string;
|
|
@@ -2839,13 +3047,17 @@ export declare function renderMobileShell(defaultOpen?: boolean, rows?: number,
|
|
|
2839
3047
|
shellStyle: import('vue').ComputedRef<{
|
|
2840
3048
|
'--sidebar-offset-top': string;
|
|
2841
3049
|
}>;
|
|
3050
|
+
sidebarColumnCount: import('vue').ComputedRef<number>;
|
|
3051
|
+
sidebarGridClass: import('vue').ComputedRef<string>;
|
|
3052
|
+
sidebarMode: import('vue').Ref<UiLayoutContentSidebarMode, UiLayoutContentSidebarMode>;
|
|
2842
3053
|
topBarRef: import('vue').Ref<HTMLElement | ComponentPublicInstance | null, HTMLElement | ComponentPublicInstance | null>;
|
|
3054
|
+
accessoryOpen: import('vue').Ref<boolean, boolean>;
|
|
2843
3055
|
language: import('vue').Ref<string, string>;
|
|
2844
3056
|
};
|
|
2845
3057
|
template: string;
|
|
2846
3058
|
};
|
|
2847
3059
|
/** What the arrangement looks like in a product, with the scaffolding removed. */
|
|
2848
|
-
export declare const templateSource
|
|
3060
|
+
export declare const templateSource: string;
|
|
2849
3061
|
/** The same shell on a phone: mobile bar slots, and a page that slides aside. */
|
|
2850
3062
|
export declare const mobileTemplateSource = "<div class=\"relative h-svh w-full overflow-hidden\" :style=\"shellStyle\">\n <!-- the bar floats over both layers: mobile slots, no surface of its own -->\n <UiTopBar ref=\"topBarRef\" class=\"absolute inset-x-0 top-0 z-20 bg-transparent\">\n <template #logo><AppWordmark /></template>\n <template #mobile-logo><WorkspacePill /></template>\n <template #mobile-layout-actions>\n <MenuButton :aria-expanded=\"open\" @click=\"open = !open\" />\n </template>\n </UiTopBar>\n\n <!-- the base layer never moves, so it is a plain column, not the drawer; it\n starts below the bar, which is showing its controls -->\n <div class=\"absolute inset-0 isolate flex\" :style=\"{ paddingTop: 'var(--sidebar-offset-top, 3.75rem)' }\">\n <UiSidebar\n v-model:open=\"open\"\n collapsible=\"none\"\n class=\"h-full w-full\"\n role=\"navigation\"\n aria-label=\"Main\"\n :aria-hidden=\"open ? undefined : 'true'\"\n :inert=\"open ? undefined : true\"\n >\n <!-- the fade stays inside the scroll area here, so it dissolves the\n history above the profile row instead of over it -->\n <UiFadeMask position=\"bottom\" background=\"primary\" class=\"flex min-h-0 flex-1 flex-col overflow-hidden\">\n <UiSidebarContent>\u2026</UiSidebarContent>\n </UiFadeMask>\n <!-- the same card as on a wide screen, opening upwards from the row that\n replaces the avatar the bar gave up -->\n <UiSidebarFooter><ProfileCard /></UiSidebarFooter>\n </UiSidebar>\n </div>\n\n <!-- the sheet is what slides, revealing the layer it was covering; it runs\n the full height and fades at both ends, so the bar floats on the top one -->\n <main\n class=\"bg-background absolute inset-0 flex flex-col overflow-hidden transition-transform duration-200 ease-out\"\n :class=\"open ? 'translate-x-full' : 'translate-x-0'\"\n :inert=\"open || undefined\"\n >\n <!-- one mask, a band on each edge: the page fades under the bar and again\n at the bottom -->\n <UiFadeMask position=\"both\" background=\"secondary\" class=\"flex min-h-0 flex-1 flex-col overflow-hidden\">\n <!-- bottom padding matches the fade band so the last row clears it -->\n <div class=\"min-h-0 flex-1 overflow-y-auto pb-16 md:pb-24\" :style=\"{ paddingTop: 'var(--sidebar-offset-top, 3.75rem)' }\">\n <PageHeading />\n <PageContent />\n </div>\n </UiFadeMask>\n </main>\n</div>";
|
|
2851
3063
|
export {};
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
/** Every part the menu is built from. */
|
|
2
|
+
export declare const ACCESSORY_DROPDOWN_COMPONENTS: {
|
|
3
|
+
UiDropdownMenu: {
|
|
4
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../..').UiDropdownMenuProps> & Readonly<{
|
|
5
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
6
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
"update:open": (value: boolean) => any;
|
|
8
|
+
}, import('vue').PublicProps, {
|
|
9
|
+
open: boolean;
|
|
10
|
+
modal: boolean;
|
|
11
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
12
|
+
P: {};
|
|
13
|
+
B: {};
|
|
14
|
+
D: {};
|
|
15
|
+
C: {};
|
|
16
|
+
M: {};
|
|
17
|
+
Defaults: {};
|
|
18
|
+
}, Readonly<import('../..').UiDropdownMenuProps> & Readonly<{
|
|
19
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, {
|
|
21
|
+
open: boolean;
|
|
22
|
+
modal: boolean;
|
|
23
|
+
}>;
|
|
24
|
+
__isFragment?: never;
|
|
25
|
+
__isTeleport?: never;
|
|
26
|
+
__isSuspense?: never;
|
|
27
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('../..').UiDropdownMenuProps> & Readonly<{
|
|
28
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
29
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
|
+
"update:open": (value: boolean) => any;
|
|
31
|
+
}, string, {
|
|
32
|
+
open: boolean;
|
|
33
|
+
modal: boolean;
|
|
34
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
35
|
+
$slots: {
|
|
36
|
+
default?(_: {}): any;
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
UiDropdownMenuContent: {
|
|
40
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../..').UiDropdownMenuContentProps> & Readonly<{
|
|
41
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
42
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
43
|
+
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
44
|
+
}, import('vue').PublicProps, {
|
|
45
|
+
side: "top" | "right" | "bottom" | "left";
|
|
46
|
+
sideOffset: number;
|
|
47
|
+
align: "start" | "center" | "end";
|
|
48
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
49
|
+
P: {};
|
|
50
|
+
B: {};
|
|
51
|
+
D: {};
|
|
52
|
+
C: {};
|
|
53
|
+
M: {};
|
|
54
|
+
Defaults: {};
|
|
55
|
+
}, Readonly<import('../..').UiDropdownMenuContentProps> & Readonly<{
|
|
56
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
57
|
+
}>, {}, {}, {}, {}, {
|
|
58
|
+
side: "top" | "right" | "bottom" | "left";
|
|
59
|
+
sideOffset: number;
|
|
60
|
+
align: "start" | "center" | "end";
|
|
61
|
+
}>;
|
|
62
|
+
__isFragment?: never;
|
|
63
|
+
__isTeleport?: never;
|
|
64
|
+
__isSuspense?: never;
|
|
65
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('../..').UiDropdownMenuContentProps> & Readonly<{
|
|
66
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
67
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
68
|
+
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
69
|
+
}, string, {
|
|
70
|
+
side: "top" | "right" | "bottom" | "left";
|
|
71
|
+
sideOffset: number;
|
|
72
|
+
align: "start" | "center" | "end";
|
|
73
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
74
|
+
$slots: {
|
|
75
|
+
default?(_: {}): any;
|
|
76
|
+
};
|
|
77
|
+
});
|
|
78
|
+
UiDropdownMenuItem: {
|
|
79
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../..').UiDropdownMenuItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
80
|
+
disabled: boolean;
|
|
81
|
+
variant: "default" | "destructive";
|
|
82
|
+
textValue: string;
|
|
83
|
+
inset: boolean;
|
|
84
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
85
|
+
P: {};
|
|
86
|
+
B: {};
|
|
87
|
+
D: {};
|
|
88
|
+
C: {};
|
|
89
|
+
M: {};
|
|
90
|
+
Defaults: {};
|
|
91
|
+
}, Readonly<import('../..').UiDropdownMenuItemProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
92
|
+
disabled: boolean;
|
|
93
|
+
variant: "default" | "destructive";
|
|
94
|
+
textValue: string;
|
|
95
|
+
inset: boolean;
|
|
96
|
+
}>;
|
|
97
|
+
__isFragment?: never;
|
|
98
|
+
__isTeleport?: never;
|
|
99
|
+
__isSuspense?: never;
|
|
100
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('../..').UiDropdownMenuItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
101
|
+
disabled: boolean;
|
|
102
|
+
variant: "default" | "destructive";
|
|
103
|
+
textValue: string;
|
|
104
|
+
inset: boolean;
|
|
105
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
106
|
+
$slots: {
|
|
107
|
+
default?(_: {}): any;
|
|
108
|
+
};
|
|
109
|
+
});
|
|
110
|
+
UiDropdownMenuTrigger: {
|
|
111
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../..').UiDropdownMenuTriggerProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
112
|
+
disabled: boolean;
|
|
113
|
+
asChild: boolean;
|
|
114
|
+
ariaLabel: string;
|
|
115
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
116
|
+
P: {};
|
|
117
|
+
B: {};
|
|
118
|
+
D: {};
|
|
119
|
+
C: {};
|
|
120
|
+
M: {};
|
|
121
|
+
Defaults: {};
|
|
122
|
+
}, Readonly<import('../..').UiDropdownMenuTriggerProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
123
|
+
disabled: boolean;
|
|
124
|
+
asChild: boolean;
|
|
125
|
+
ariaLabel: string;
|
|
126
|
+
}>;
|
|
127
|
+
__isFragment?: never;
|
|
128
|
+
__isTeleport?: never;
|
|
129
|
+
__isSuspense?: never;
|
|
130
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('../..').UiDropdownMenuTriggerProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
131
|
+
disabled: boolean;
|
|
132
|
+
asChild: boolean;
|
|
133
|
+
ariaLabel: string;
|
|
134
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
135
|
+
$slots: {
|
|
136
|
+
default?(_: {}): any;
|
|
137
|
+
};
|
|
138
|
+
});
|
|
139
|
+
UiIcon: import('vue').DefineComponent<import('../..').UiIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('../..').UiIconProps> & Readonly<{}>, {
|
|
140
|
+
size: import('../..').UiIconSize | number | string;
|
|
141
|
+
strokeWidth: number | string;
|
|
142
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
143
|
+
UiToggle: {
|
|
144
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
145
|
+
modelValue?: boolean;
|
|
146
|
+
} & import('../..').UiToggleProps> & Readonly<{
|
|
147
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
148
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
149
|
+
"update:modelValue": (value: boolean) => any;
|
|
150
|
+
}, import('vue').PublicProps, {
|
|
151
|
+
disabled: boolean;
|
|
152
|
+
size: "default" | "sm" | "lg";
|
|
153
|
+
variant: "default" | "outline" | "soft";
|
|
154
|
+
active: boolean;
|
|
155
|
+
leftIcon: string;
|
|
156
|
+
rightIcon: string;
|
|
157
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
158
|
+
P: {};
|
|
159
|
+
B: {};
|
|
160
|
+
D: {};
|
|
161
|
+
C: {};
|
|
162
|
+
M: {};
|
|
163
|
+
Defaults: {};
|
|
164
|
+
}, Readonly<{
|
|
165
|
+
modelValue?: boolean;
|
|
166
|
+
} & import('../..').UiToggleProps> & Readonly<{
|
|
167
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
168
|
+
}>, {}, {}, {}, {}, {
|
|
169
|
+
disabled: boolean;
|
|
170
|
+
size: "default" | "sm" | "lg";
|
|
171
|
+
variant: "default" | "outline" | "soft";
|
|
172
|
+
active: boolean;
|
|
173
|
+
leftIcon: string;
|
|
174
|
+
rightIcon: string;
|
|
175
|
+
}>;
|
|
176
|
+
__isFragment?: never;
|
|
177
|
+
__isTeleport?: never;
|
|
178
|
+
__isSuspense?: never;
|
|
179
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
180
|
+
modelValue?: boolean;
|
|
181
|
+
} & import('../..').UiToggleProps> & Readonly<{
|
|
182
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
183
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
184
|
+
"update:modelValue": (value: boolean) => any;
|
|
185
|
+
}, string, {
|
|
186
|
+
disabled: boolean;
|
|
187
|
+
size: "default" | "sm" | "lg";
|
|
188
|
+
variant: "default" | "outline" | "soft";
|
|
189
|
+
active: boolean;
|
|
190
|
+
leftIcon: string;
|
|
191
|
+
rightIcon: string;
|
|
192
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
193
|
+
$slots: {
|
|
194
|
+
'left-icon'?(_: {}): any;
|
|
195
|
+
default?(_: {}): any;
|
|
196
|
+
'right-icon'?(_: {}): any;
|
|
197
|
+
};
|
|
198
|
+
});
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
* The trigger's accessible name. Exported so the plays query the control by the
|
|
202
|
+
* same name the template gives it.
|
|
203
|
+
*/
|
|
204
|
+
export declare const ACCESSORY_TRIGGER_NAME = "Accessibility";
|
|
205
|
+
/** What the menu offers, in the order it lists them. */
|
|
206
|
+
export declare const ACCESSORY_DROPDOWN_ITEMS: string[];
|
|
207
|
+
/**
|
|
208
|
+
* The menu's own open state. It is named apart from `open`, which the shells
|
|
209
|
+
* already bind to the sidebar.
|
|
210
|
+
* @returns Setup bindings for {@link ACCESSORY_DROPDOWN}.
|
|
211
|
+
*/
|
|
212
|
+
export declare function accessoryDropdownState(): {
|
|
213
|
+
accessoryOpen: import('vue').Ref<boolean, boolean>;
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* The accessibility toggle and the menu it opens. The trigger is a `UiToggle`
|
|
217
|
+
* bound to the same state as the menu, so the pressed look and the menu never
|
|
218
|
+
* disagree, and the chevron is a second signal rather than the only one.
|
|
219
|
+
*/
|
|
220
|
+
export declare const ACCESSORY_DROPDOWN: string;
|
|
221
|
+
/**
|
|
222
|
+
* The menu as a product would write it, for the docs source panels. The first
|
|
223
|
+
* line is left bare so it can be interpolated after an indent already in place.
|
|
224
|
+
* @param indent Indentation to put in front of every line but the first.
|
|
225
|
+
* @returns The markup, ready to drop into a template source string.
|
|
226
|
+
*/
|
|
227
|
+
export declare function accessoryDropdownSource(indent: string): 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",
|