@returnless/focus-ui 0.0.20 → 0.0.21
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/components/ActionList/ActionListItem.vue.d.ts +6 -2
- package/dist/components/Avatar/Avatar.vue.d.ts +3 -3
- package/dist/components/Badge/Badge.vue.d.ts +3 -3
- package/dist/components/Card/CardIcon.vue.d.ts +21 -0
- package/dist/components/Card/index.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.vue.d.ts +4 -4
- package/dist/components/ColorInput/ColorInput.vue.d.ts +55 -0
- package/dist/components/ColorInput/index.d.ts +1 -0
- package/dist/components/FormLayout/FormLayout.vue.d.ts +2 -2
- package/dist/components/Heading/types.d.ts +1 -1
- package/dist/components/RadioButton/RadioButton.vue.d.ts +3 -3
- package/dist/components/StatusIndicator/StatusIndicator.vue.d.ts +2 -2
- package/dist/components/TopBar/index.d.ts +0 -2
- package/dist/components/index.d.ts +3 -2
- package/dist/focus-ui.js +2416 -2400
- package/dist/focus-ui.umd.cjs +10 -10
- package/package.json +1 -2
- package/dist/components/TopBar/TopBarNavigationItem.vue.d.ts +0 -9
- package/dist/components/TopBar/TopBarUserMenu.vue.d.ts +0 -2
|
@@ -1,24 +1,28 @@
|
|
|
1
1
|
import { ButtonVariant } from '../Button';
|
|
2
|
+
import type { FunctionalComponent, HTMLAttributes, VNodeProps } from 'vue';
|
|
2
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
4
|
/** Whether the action list item is active. */
|
|
4
5
|
active?: boolean | undefined;
|
|
5
6
|
/** The icon to display next to the action list item. */
|
|
6
|
-
icon
|
|
7
|
+
icon?: FunctionalComponent<HTMLAttributes & VNodeProps, {}, any, {}> | null | undefined;
|
|
7
8
|
variant?: ButtonVariant | undefined;
|
|
8
9
|
}>, {
|
|
9
10
|
active: boolean;
|
|
11
|
+
icon: null;
|
|
10
12
|
variant: string;
|
|
11
13
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
12
14
|
/** Whether the action list item is active. */
|
|
13
15
|
active?: boolean | undefined;
|
|
14
16
|
/** The icon to display next to the action list item. */
|
|
15
|
-
icon
|
|
17
|
+
icon?: FunctionalComponent<HTMLAttributes & VNodeProps, {}, any, {}> | null | undefined;
|
|
16
18
|
variant?: ButtonVariant | undefined;
|
|
17
19
|
}>, {
|
|
18
20
|
active: boolean;
|
|
21
|
+
icon: null;
|
|
19
22
|
variant: string;
|
|
20
23
|
}>>>, {
|
|
21
24
|
variant: ButtonVariant;
|
|
25
|
+
icon: FunctionalComponent<HTMLAttributes & VNodeProps, {}, any, {}> | null;
|
|
22
26
|
active: boolean;
|
|
23
27
|
}, {}>, {
|
|
24
28
|
default?(_: {}): any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
2
2
|
/** The size of the avatar */
|
|
3
|
-
size?: "sm" | "
|
|
3
|
+
size?: "sm" | "lg" | "xl" | "xs" | "md" | undefined;
|
|
4
4
|
/** The name of the person, company or entity */
|
|
5
5
|
name?: string | undefined;
|
|
6
6
|
/** Initials of person to display. */
|
|
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
17
17
|
accessibilityLabel: null;
|
|
18
18
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
19
19
|
/** The size of the avatar */
|
|
20
|
-
size?: "sm" | "
|
|
20
|
+
size?: "sm" | "lg" | "xl" | "xs" | "md" | undefined;
|
|
21
21
|
/** The name of the person, company or entity */
|
|
22
22
|
name?: string | undefined;
|
|
23
23
|
/** Initials of person to display. */
|
|
@@ -35,7 +35,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
35
35
|
}>>>, {
|
|
36
36
|
source: string;
|
|
37
37
|
name: string;
|
|
38
|
-
size: "sm" | "
|
|
38
|
+
size: "sm" | "lg" | "xl" | "xs" | "md";
|
|
39
39
|
accessibilityLabel: string | null;
|
|
40
40
|
initials: string | null;
|
|
41
41
|
}, {}>;
|
|
@@ -4,7 +4,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
4
4
|
/** The color of the badge. */
|
|
5
5
|
color: "slate" | "gray" | "zinc" | "neutral" | "stone" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "lightBlue" | "warmGray" | "trueGray" | "coolGray" | "blueGray";
|
|
6
6
|
/** The size of the badge */
|
|
7
|
-
size?: "sm" | "
|
|
7
|
+
size?: "sm" | "lg" | "xl" | "md" | undefined;
|
|
8
8
|
}>, {
|
|
9
9
|
accessibilityLabel: null;
|
|
10
10
|
size: string;
|
|
@@ -14,12 +14,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
14
14
|
/** The color of the badge. */
|
|
15
15
|
color: "slate" | "gray" | "zinc" | "neutral" | "stone" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "lightBlue" | "warmGray" | "trueGray" | "coolGray" | "blueGray";
|
|
16
16
|
/** The size of the badge */
|
|
17
|
-
size?: "sm" | "
|
|
17
|
+
size?: "sm" | "lg" | "xl" | "md" | undefined;
|
|
18
18
|
}>, {
|
|
19
19
|
accessibilityLabel: null;
|
|
20
20
|
size: string;
|
|
21
21
|
}>>>, {
|
|
22
|
-
size: "sm" | "
|
|
22
|
+
size: "sm" | "lg" | "xl" | "md";
|
|
23
23
|
accessibilityLabel: string | null;
|
|
24
24
|
}, {}>, {
|
|
25
25
|
default?(_: {}): any;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
2
|
+
/** The alt text of the image. */
|
|
3
|
+
alt: string;
|
|
4
|
+
/** The source of the media. */
|
|
5
|
+
source: string;
|
|
6
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
7
|
+
/** The alt text of the image. */
|
|
8
|
+
alt: string;
|
|
9
|
+
/** The source of the media. */
|
|
10
|
+
source: string;
|
|
11
|
+
}>>>, {}, {}>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
+
type __VLS_TypePropsToOption<T> = {
|
|
15
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
+
} : {
|
|
18
|
+
type: import('vue').PropType<T[K]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -3,6 +3,7 @@ export { default as CardDescription } from './CardDescription.vue';
|
|
|
3
3
|
export { default as CardFooter } from './CardFooter.vue';
|
|
4
4
|
export { default as CardHeader } from './CardHeader.vue';
|
|
5
5
|
export { default as CardHelp } from './CardHelp.vue';
|
|
6
|
+
export { default as CardIcon } from './CardIcon.vue';
|
|
6
7
|
export { default as CardLayout } from './CardLayout.vue';
|
|
7
8
|
export { default as CardMedia } from './CardMedia.vue';
|
|
8
9
|
export { default as CardSection } from './CardSection.vue';
|
|
@@ -8,23 +8,23 @@ declare let __VLS_typeProps: {
|
|
|
8
8
|
/** Whether the label is hidden. */
|
|
9
9
|
labelHidden?: boolean;
|
|
10
10
|
/** The value of the checkbox. */
|
|
11
|
-
value:
|
|
11
|
+
value: string | number;
|
|
12
12
|
};
|
|
13
13
|
type __VLS_PublicProps = {
|
|
14
|
-
modelValue?: boolean |
|
|
14
|
+
modelValue?: boolean | Array<string | number>;
|
|
15
15
|
} & typeof __VLS_typeProps;
|
|
16
16
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
17
17
|
id: null;
|
|
18
18
|
helpText: null;
|
|
19
19
|
labelHidden: boolean;
|
|
20
20
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
-
"update:modelValue": (modelValue: boolean |
|
|
21
|
+
"update:modelValue": (modelValue: boolean | (string | number)[]) => void;
|
|
22
22
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
23
23
|
id: null;
|
|
24
24
|
helpText: null;
|
|
25
25
|
labelHidden: boolean;
|
|
26
26
|
}>>> & {
|
|
27
|
-
"onUpdate:modelValue"?: ((modelValue: boolean |
|
|
27
|
+
"onUpdate:modelValue"?: ((modelValue: boolean | (string | number)[]) => any) | undefined;
|
|
28
28
|
}, {
|
|
29
29
|
id: string | null;
|
|
30
30
|
labelHidden: boolean;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
declare let __VLS_typeProps: {
|
|
2
|
+
/** The error to display below the input. */
|
|
3
|
+
error?: string | null;
|
|
4
|
+
/** The help text to display below the input. */
|
|
5
|
+
helpText?: string | null;
|
|
6
|
+
/** The ID of the input the label is associated with. */
|
|
7
|
+
id?: string | null;
|
|
8
|
+
/** The label text. */
|
|
9
|
+
label: string;
|
|
10
|
+
/** Whether the label is hidden. */
|
|
11
|
+
labelHidden?: boolean;
|
|
12
|
+
/** The name of the input. */
|
|
13
|
+
name: string;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_PublicProps = {
|
|
16
|
+
modelValue?: string;
|
|
17
|
+
} & typeof __VLS_typeProps;
|
|
18
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
19
|
+
error: null;
|
|
20
|
+
helpText: null;
|
|
21
|
+
id: null;
|
|
22
|
+
labelHidden: boolean;
|
|
23
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
+
"update:modelValue": (modelValue: string) => void;
|
|
25
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
26
|
+
error: null;
|
|
27
|
+
helpText: null;
|
|
28
|
+
id: null;
|
|
29
|
+
labelHidden: boolean;
|
|
30
|
+
}>>> & {
|
|
31
|
+
"onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
id: string | null;
|
|
34
|
+
error: string | null;
|
|
35
|
+
labelHidden: boolean;
|
|
36
|
+
helpText: string | null;
|
|
37
|
+
}, {}>;
|
|
38
|
+
export default _default;
|
|
39
|
+
type __VLS_WithDefaults<P, D> = {
|
|
40
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
41
|
+
default: D[K];
|
|
42
|
+
}> : P[K];
|
|
43
|
+
};
|
|
44
|
+
type __VLS_Prettify<T> = {
|
|
45
|
+
[K in keyof T]: T[K];
|
|
46
|
+
} & {};
|
|
47
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
48
|
+
type __VLS_TypePropsToOption<T> = {
|
|
49
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
50
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
51
|
+
} : {
|
|
52
|
+
type: import('vue').PropType<T[K]>;
|
|
53
|
+
required: true;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ColorInput } from './ColorInput.vue';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
2
|
-
columns
|
|
2
|
+
columns?: number | undefined;
|
|
3
3
|
}>, {
|
|
4
4
|
columns: number;
|
|
5
5
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
6
|
-
columns
|
|
6
|
+
columns?: number | undefined;
|
|
7
7
|
}>, {
|
|
8
8
|
columns: number;
|
|
9
9
|
}>>>, {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
2
|
-
export type HeadingSize = 'xl' | '2xl';
|
|
2
|
+
export type HeadingSize = 'lg' | 'xl' | '2xl';
|
|
@@ -9,18 +9,18 @@ declare let __VLS_typeProps: {
|
|
|
9
9
|
value: any;
|
|
10
10
|
};
|
|
11
11
|
type __VLS_PublicProps = {
|
|
12
|
-
modelValue?: boolean;
|
|
12
|
+
modelValue?: boolean | string;
|
|
13
13
|
} & typeof __VLS_typeProps;
|
|
14
14
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
15
15
|
id: null;
|
|
16
16
|
helpText: null;
|
|
17
17
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
-
"update:modelValue": (modelValue: boolean) => void;
|
|
18
|
+
"update:modelValue": (modelValue: string | boolean) => void;
|
|
19
19
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
20
20
|
id: null;
|
|
21
21
|
helpText: null;
|
|
22
22
|
}>>> & {
|
|
23
|
-
"onUpdate:modelValue"?: ((modelValue: boolean) => any) | undefined;
|
|
23
|
+
"onUpdate:modelValue"?: ((modelValue: string | boolean) => any) | undefined;
|
|
24
24
|
}, {
|
|
25
25
|
id: string | null;
|
|
26
26
|
helpText: string | null;
|
|
@@ -4,7 +4,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
4
4
|
/** The color of the badge. */
|
|
5
5
|
color: "slate" | "gray" | "zinc" | "neutral" | "stone" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "lightBlue" | "warmGray" | "trueGray" | "coolGray" | "blueGray";
|
|
6
6
|
/** The size of the status-indicator. */
|
|
7
|
-
size
|
|
7
|
+
size?: "default" | "small" | undefined;
|
|
8
8
|
}>, {
|
|
9
9
|
accessibilityLabel: null;
|
|
10
10
|
size: string;
|
|
@@ -14,7 +14,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
14
14
|
/** The color of the badge. */
|
|
15
15
|
color: "slate" | "gray" | "zinc" | "neutral" | "stone" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "lightBlue" | "warmGray" | "trueGray" | "coolGray" | "blueGray";
|
|
16
16
|
/** The size of the status-indicator. */
|
|
17
|
-
size
|
|
17
|
+
size?: "default" | "small" | undefined;
|
|
18
18
|
}>, {
|
|
19
19
|
accessibilityLabel: null;
|
|
20
20
|
size: string;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export { default as TopBar } from './TopBar.vue';
|
|
2
2
|
export { default as TopBarLogo } from './TopBarLogo.vue';
|
|
3
3
|
export { default as TopBarNavigation } from './TopBarNavigation.vue';
|
|
4
|
-
export { default as TopBarNavigationItem } from './TopBarNavigationItem.vue';
|
|
5
4
|
export { default as TopBarSearch } from './TopBarSearch.vue';
|
|
6
|
-
export { default as TopBarUserMenu } from './TopBarUserMenu.vue';
|
|
@@ -8,9 +8,10 @@ export { Badge, BadgeContent, BadgeIcon } from './Badge';
|
|
|
8
8
|
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from './Breadcrumbs';
|
|
9
9
|
export { type ButtonVariant, Button, ButtonBadge, ButtonContent, ButtonIcon, } from './Button';
|
|
10
10
|
export { ButtonGroup } from './ButtonGroup';
|
|
11
|
-
export { Card, CardDescription, CardFooter, CardHeader, CardHelp, CardLayout, CardMedia, CardSection, CardTitle, } from './Card';
|
|
11
|
+
export { Card, CardDescription, CardFooter, CardHeader, CardHelp, CardIcon, CardLayout, CardMedia, CardSection, CardTitle, } from './Card';
|
|
12
12
|
export { Checkbox } from './Checkbox';
|
|
13
13
|
export { Collapsible } from './Collapsible';
|
|
14
|
+
export { ColorInput } from './ColorInput';
|
|
14
15
|
export { DataList, DataListContent, DataListItem, DataListItemLine, } from './DataList';
|
|
15
16
|
export { DatePicker, DatePickerCard, } from './DatePicker';
|
|
16
17
|
export { DescriptionList, DescriptionListDescription, DescriptionListItem, DescriptionListTerm, } from './DescriptionList';
|
|
@@ -51,5 +52,5 @@ export { TextStyle } from './TextStyle';
|
|
|
51
52
|
export { Toast, ToastGroup } from './Toast';
|
|
52
53
|
export { Toggle } from './Toggle';
|
|
53
54
|
export { Tooltip } from './Tooltip';
|
|
54
|
-
export { TopBar, TopBarLogo, TopBarNavigation,
|
|
55
|
+
export { TopBar, TopBarLogo, TopBarNavigation, TopBarSearch, } from './TopBar';
|
|
55
56
|
export { VisuallyHidden } from './VisuallyHidden';
|