@bethinkpl/design-system 43.0.0 → 45.0.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.
- package/dist/design-system.css +1 -1
- package/dist/design-system.js +13826 -13252
- package/dist/design-system.js.map +1 -1
- package/dist/lib/js/components/Buttons/IconButton/IconButton.vue.d.ts +1 -1
- package/dist/lib/js/components/Callout/Callout.consts.d.ts +32 -0
- package/dist/lib/js/components/{ActionContent/ActionContent.vue.d.ts → Callout/Callout.vue.d.ts} +17 -6
- package/dist/lib/js/components/Callout/index.d.ts +4 -0
- package/dist/lib/js/components/DatePickers/DateBox/DateBox.vue.d.ts +1 -1
- package/dist/lib/js/components/DatePickers/DatePicker/DatePicker.vue.d.ts +5 -5
- package/dist/lib/js/components/DatePickers/DateRangePicker/DateRangePicker.vue.d.ts +2 -2
- package/dist/lib/js/components/Divider/Divider.vue.d.ts +1 -1
- package/dist/lib/js/components/Drawer/DrawerDivider/DrawerDivider.vue.d.ts +1 -1
- package/dist/lib/js/components/Drawer/DrawerSection/DrawerSection.vue.d.ts +4 -4
- package/dist/lib/js/components/Drawer/DrawerTile/DrawerTile.vue.d.ts +4 -4
- package/dist/lib/js/components/Dropdown/Dropdown.vue.d.ts +1 -1
- package/dist/lib/js/components/Form/FormField/FormField.utils.d.ts +1 -1
- package/dist/lib/js/components/Form/InputField/InputField.vue.d.ts +2 -2
- package/dist/lib/js/components/Form/PasswordField/PasswordField.vue.d.ts +2 -2
- package/dist/lib/js/components/Form/PinInputField/PinInputField.consts.d.ts +14 -0
- package/dist/lib/js/components/Form/PinInputField/PinInputField.types.d.ts +12 -0
- package/dist/lib/js/components/Form/PinInputField/PinInputField.utils.d.ts +2 -0
- package/dist/lib/js/components/Form/PinInputField/PinInputField.vue.d.ts +91 -0
- package/dist/lib/js/components/Form/PinInputField/index.d.ts +5 -0
- package/dist/lib/js/components/Form/PinInputField/usePinInputFieldWithinForm.d.ts +8 -0
- package/dist/lib/js/components/Form/SelectField/SelectField.vue.d.ts +2 -2
- package/dist/lib/js/components/Form/TextAreaField/TextAreaField.types.d.ts +9 -0
- package/dist/lib/js/components/Form/TextAreaField/TextAreaField.vue.d.ts +76 -0
- package/dist/lib/js/components/Form/TextAreaField/TextAreaFieldAutosized.vue.d.ts +6 -0
- package/dist/lib/js/components/Form/TextAreaField/index.d.ts +4 -0
- package/dist/lib/js/components/Headers/OverlayHeader/OverlayHeader.vue.d.ts +5 -5
- package/dist/lib/js/components/Headers/PageHeader/PageHeader.vue.d.ts +1 -1
- package/dist/lib/js/components/Headers/SectionHeader/SectionHeader.vue.d.ts +3 -3
- package/dist/lib/js/components/IconText/IconText.vue.d.ts +1 -1
- package/dist/lib/js/components/Image/Image.vue.d.ts +1 -1
- package/dist/lib/js/components/LabelValue/LabelValueItem/LabelValueItem.vue.d.ts +12 -1
- package/dist/lib/js/components/Menu/MenuDivider/MenuDivider.vue.d.ts +1 -1
- package/dist/lib/js/components/Modals/Modal/Modal.vue.d.ts +2 -2
- package/dist/lib/js/components/Modals/ModalDialog/ModalDialog.vue.d.ts +2 -2
- package/dist/lib/js/components/Pagination/Pagination.vue.d.ts +2 -2
- package/dist/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.vue.d.ts +7 -7
- package/dist/lib/js/components/RichList/RichListItem/RichListItem.vue.d.ts +3 -3
- package/dist/lib/js/components/SelectList/SelectListItemDivider/SelectListItemDivider.vue.d.ts +1 -1
- package/dist/lib/js/components/Skeleton/Skeleton.vue.d.ts +1 -1
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue.d.ts +3 -3
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue.d.ts +3 -3
- package/dist/lib/js/components/Tile/Tile.sb.shared.d.ts +2 -2
- package/dist/lib/js/components/Tile/Tile.vue.d.ts +2 -2
- package/dist/lib/js/components/Toast/Toast.consts.d.ts +11 -9
- package/dist/lib/js/components/Toast/Toast.vue.d.ts +51 -433
- package/dist/lib/js/components/Toggles/ToggleButton/ToggleButton.vue.d.ts +1 -1
- package/dist/lib/js/{components/Form/InputField/useInputFieldWithinForm.d.ts → composables/useTextFieldWithinForm.d.ts} +1 -1
- package/dist/lib/js/index.d.ts +6 -1
- package/lib/js/components/Callout/Callout.consts.ts +25 -0
- package/lib/js/components/Callout/Callout.spec.ts +257 -0
- package/lib/js/components/Callout/Callout.stories.ts +209 -0
- package/lib/js/components/Callout/Callout.vue +161 -0
- package/lib/js/components/Callout/index.ts +4 -0
- package/lib/js/components/Cards/Card/Card.vue +1 -1
- package/lib/js/components/Form/CheckboxGroupField/CheckboxGroupField.spec.ts +15 -0
- package/lib/js/components/Form/CheckboxGroupField/CheckboxGroupField.vue +5 -2
- package/lib/js/components/Form/Form.stories.ts +23 -2
- package/lib/js/components/Form/InputField/InputField.spec.ts +11 -1
- package/lib/js/components/Form/InputField/InputField.vue +7 -4
- package/lib/js/components/Form/PasswordField/PasswordField.vue +1 -1
- package/lib/js/components/Form/PinInputField/PinInputField.consts.ts +18 -0
- package/lib/js/components/Form/PinInputField/PinInputField.spec.ts +394 -0
- package/lib/js/components/Form/PinInputField/PinInputField.stories.ts +124 -0
- package/lib/js/components/Form/PinInputField/PinInputField.types.ts +42 -0
- package/lib/js/components/Form/PinInputField/PinInputField.utils.ts +5 -0
- package/lib/js/components/Form/PinInputField/PinInputField.vue +211 -0
- package/lib/js/components/Form/PinInputField/index.ts +6 -0
- package/lib/js/components/Form/PinInputField/usePinInputFieldWithinForm.ts +29 -0
- package/lib/js/components/Form/SelectField/SelectField.stories.ts +0 -5
- package/lib/js/components/Form/SelectField/useSelectFieldWithinForm.ts +1 -1
- package/lib/js/components/Form/TextAreaField/TextAreaField.spec.ts +341 -0
- package/lib/js/components/Form/TextAreaField/TextAreaField.stories.ts +99 -0
- package/lib/js/components/Form/TextAreaField/TextAreaField.types.ts +23 -0
- package/lib/js/components/Form/TextAreaField/TextAreaField.vue +190 -0
- package/lib/js/components/Form/TextAreaField/TextAreaFieldAutosized.vue +19 -0
- package/lib/js/components/Form/TextAreaField/index.ts +5 -0
- package/lib/js/components/LabelValue/LabelValueItem/LabelValueItem.spec.ts +26 -0
- package/lib/js/components/LabelValue/LabelValueItem/LabelValueItem.stories.ts +16 -3
- package/lib/js/components/LabelValue/LabelValueItem/LabelValueItem.vue +5 -0
- package/lib/js/components/LoadingBar/LoadingBar.spec.ts +84 -0
- package/lib/js/components/LoadingBar/LoadingBar.vue +30 -19
- package/lib/js/components/Toast/Toast.consts.ts +4 -2
- package/lib/js/components/Toast/Toast.spec.ts +177 -0
- package/lib/js/components/Toast/Toast.stories.ts +65 -31
- package/lib/js/components/Toast/Toast.vue +176 -195
- package/lib/js/{components/Form/InputField/useInputFieldWithinForm.ts → composables/useTextFieldWithinForm.ts} +7 -2
- package/lib/js/index.ts +6 -1
- package/package.json +1 -1
- package/dist/lib/js/components/ActionContent/index.d.ts +0 -3
- package/lib/js/components/ActionContent/ActionContent.spec.ts +0 -99
- package/lib/js/components/ActionContent/ActionContent.stories.ts +0 -141
- package/lib/js/components/ActionContent/ActionContent.vue +0 -104
- package/lib/js/components/ActionContent/index.ts +0 -3
|
@@ -450,9 +450,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
450
450
|
type: string;
|
|
451
451
|
touchableDeprecated: boolean;
|
|
452
452
|
color: string;
|
|
453
|
+
elevation: string;
|
|
453
454
|
radius: string;
|
|
454
455
|
state: string;
|
|
455
|
-
elevation: string;
|
|
456
456
|
colorScheme: string;
|
|
457
457
|
}, {}, {
|
|
458
458
|
WnlIcon: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Value } from '../../utils/type.utils';
|
|
2
|
+
import { FeatureIconColor } from '../Icons/FeatureIcon/FeatureIcon.consts';
|
|
3
|
+
import { TextGroupMainTextColor } from '../TextGroup/TextGroup.consts';
|
|
4
|
+
|
|
5
|
+
export declare const CALLOUT_LAYOUTS: {
|
|
6
|
+
readonly VERTICAL: "vertical";
|
|
7
|
+
readonly HORIZONTAL: "horizontal";
|
|
8
|
+
};
|
|
9
|
+
export type CalloutLayout = Value<typeof CALLOUT_LAYOUTS>;
|
|
10
|
+
export declare const CALLOUT_SIZES: {
|
|
11
|
+
readonly SMALL: "small";
|
|
12
|
+
readonly MEDIUM: "medium";
|
|
13
|
+
readonly LARGE: "large";
|
|
14
|
+
};
|
|
15
|
+
export type CalloutSize = Value<typeof CALLOUT_SIZES>;
|
|
16
|
+
export declare const CALLOUT_ICON_COLORS: {
|
|
17
|
+
readonly DANGER: "danger";
|
|
18
|
+
readonly INFO: "info";
|
|
19
|
+
readonly NEUTRAL: "neutral";
|
|
20
|
+
readonly NEUTRAL_WEAK: "neutralWeak";
|
|
21
|
+
readonly PRIMARY: "primary";
|
|
22
|
+
readonly SUCCESS: "success";
|
|
23
|
+
readonly WARNING: "warning";
|
|
24
|
+
readonly FAIL: "fail";
|
|
25
|
+
readonly ACCENT: "accent";
|
|
26
|
+
};
|
|
27
|
+
export type CalloutIconColor = FeatureIconColor;
|
|
28
|
+
export declare const CALLOUT_MAIN_TEXT_COLORS: {
|
|
29
|
+
readonly NEUTRAL: "neutral";
|
|
30
|
+
readonly PRIMARY: "primary";
|
|
31
|
+
};
|
|
32
|
+
export type CalloutMainTextColor = TextGroupMainTextColor;
|
package/dist/lib/js/components/{ActionContent/ActionContent.vue.d.ts → Callout/Callout.vue.d.ts}
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IconItem } from '../Icons/Icon';
|
|
2
|
+
import { CalloutIconColor, CalloutLayout, CalloutMainTextColor, CalloutSize } from './Callout.consts';
|
|
2
3
|
|
|
3
4
|
declare function __VLS_template(): Readonly<{
|
|
4
5
|
actions?: () => any;
|
|
@@ -6,23 +7,33 @@ declare function __VLS_template(): Readonly<{
|
|
|
6
7
|
actions?: () => any;
|
|
7
8
|
};
|
|
8
9
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
-
icon
|
|
10
|
+
icon: IconItem;
|
|
11
|
+
layout?: CalloutLayout;
|
|
12
|
+
size?: CalloutSize;
|
|
13
|
+
iconColor?: CalloutIconColor;
|
|
14
|
+
eyebrowText?: string | null;
|
|
10
15
|
mainText?: string | null;
|
|
11
16
|
supportingText?: string | null;
|
|
12
|
-
|
|
17
|
+
mainTextColor?: CalloutMainTextColor;
|
|
18
|
+
buttonLabel?: string | null;
|
|
13
19
|
buttonIcon?: IconItem | null;
|
|
14
20
|
isActionVertical?: boolean;
|
|
15
21
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
-
"button-clicked": () => void;
|
|
22
|
+
"button-clicked": (e: Event) => void;
|
|
17
23
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
18
|
-
icon
|
|
24
|
+
icon: IconItem;
|
|
25
|
+
layout?: CalloutLayout;
|
|
26
|
+
size?: CalloutSize;
|
|
27
|
+
iconColor?: CalloutIconColor;
|
|
28
|
+
eyebrowText?: string | null;
|
|
19
29
|
mainText?: string | null;
|
|
20
30
|
supportingText?: string | null;
|
|
21
|
-
|
|
31
|
+
mainTextColor?: CalloutMainTextColor;
|
|
32
|
+
buttonLabel?: string | null;
|
|
22
33
|
buttonIcon?: IconItem | null;
|
|
23
34
|
isActionVertical?: boolean;
|
|
24
35
|
}>>> & Readonly<{
|
|
25
|
-
"onButton-clicked"?: (() => any) | undefined;
|
|
36
|
+
"onButton-clicked"?: ((e: Event) => any) | undefined;
|
|
26
37
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
27
38
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
28
39
|
export default _default;
|
|
@@ -405,9 +405,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
405
405
|
};
|
|
406
406
|
}>> & Readonly<{}>, {
|
|
407
407
|
color: string;
|
|
408
|
-
isInteractive: boolean;
|
|
409
408
|
state: string;
|
|
410
409
|
isOpen: boolean;
|
|
410
|
+
isInteractive: boolean;
|
|
411
411
|
placeholder: string;
|
|
412
412
|
startDate: Date;
|
|
413
413
|
endDate: Date;
|
|
@@ -580,7 +580,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
580
580
|
readonly ICON_RIGHT_ONLY: "iconRightOnly";
|
|
581
581
|
};
|
|
582
582
|
}, {}, {
|
|
583
|
-
borderColor(): "
|
|
583
|
+
borderColor(): "primary" | "danger" | "neutralWeak" | "warning" | "dangerWeak" | "warningWeak";
|
|
584
584
|
resolvedPlaceholder(): any;
|
|
585
585
|
eyebrowText(): string;
|
|
586
586
|
text(): any;
|
|
@@ -611,10 +611,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
611
611
|
icon: any;
|
|
612
612
|
label: string;
|
|
613
613
|
color: string;
|
|
614
|
-
isInteractive: boolean;
|
|
615
614
|
state: string;
|
|
616
615
|
isIconHiddenOnMobile: boolean;
|
|
617
616
|
date: Date;
|
|
617
|
+
isInteractive: boolean;
|
|
618
618
|
isLabelUppercase: boolean;
|
|
619
619
|
placeholder: string;
|
|
620
620
|
additionalText: string;
|
|
@@ -755,11 +755,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
755
755
|
};
|
|
756
756
|
}>> & Readonly<{}>, {
|
|
757
757
|
color: TileColor;
|
|
758
|
-
eyebrowText: string;
|
|
759
|
-
isEyebrowTextUppercase: boolean;
|
|
760
758
|
state: TileState;
|
|
761
759
|
iconLeft: Record<string, any>;
|
|
762
760
|
iconRight: Record<string, any>;
|
|
761
|
+
eyebrowText: string;
|
|
762
|
+
isEyebrowTextUppercase: boolean;
|
|
763
763
|
interactive: boolean;
|
|
764
764
|
additionalText: string;
|
|
765
765
|
eyebrowEllipsis: boolean;
|
|
@@ -1172,9 +1172,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
1172
1172
|
};
|
|
1173
1173
|
}>> & Readonly<{}>, {
|
|
1174
1174
|
color: string;
|
|
1175
|
-
isInteractive: boolean;
|
|
1176
1175
|
state: string;
|
|
1177
1176
|
isOpen: boolean;
|
|
1177
|
+
isInteractive: boolean;
|
|
1178
1178
|
placeholder: string;
|
|
1179
1179
|
startDate: Date;
|
|
1180
1180
|
endDate: Date;
|
|
@@ -597,8 +597,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
597
597
|
}) => any) | undefined;
|
|
598
598
|
}>, {
|
|
599
599
|
color: string;
|
|
600
|
-
isInteractive: boolean;
|
|
601
600
|
state: string;
|
|
601
|
+
isInteractive: boolean;
|
|
602
602
|
placeholder: string;
|
|
603
603
|
startDate: Date;
|
|
604
604
|
endDate: Date;
|
|
@@ -1016,9 +1016,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
1016
1016
|
};
|
|
1017
1017
|
}>> & Readonly<{}>, {
|
|
1018
1018
|
color: string;
|
|
1019
|
-
isInteractive: boolean;
|
|
1020
1019
|
state: string;
|
|
1021
1020
|
isOpen: boolean;
|
|
1021
|
+
isInteractive: boolean;
|
|
1022
1022
|
placeholder: string;
|
|
1023
1023
|
startDate: Date;
|
|
1024
1024
|
endDate: Date;
|
|
@@ -38,7 +38,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
38
38
|
};
|
|
39
39
|
}>> & Readonly<{}>, {
|
|
40
40
|
size: string;
|
|
41
|
-
prominence: string;
|
|
42
41
|
isVertical: boolean;
|
|
42
|
+
prominence: string;
|
|
43
43
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
44
44
|
export default _default;
|
|
@@ -64,8 +64,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
64
64
|
};
|
|
65
65
|
}>> & Readonly<{}>, {
|
|
66
66
|
size: string;
|
|
67
|
-
prominence: string;
|
|
68
67
|
isVertical: boolean;
|
|
68
|
+
prominence: string;
|
|
69
69
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
70
70
|
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
71
71
|
export default _default;
|
|
@@ -439,10 +439,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
439
439
|
info: boolean;
|
|
440
440
|
size: string;
|
|
441
441
|
title: string;
|
|
442
|
-
supportingText: string;
|
|
443
442
|
iconLeft: any;
|
|
444
443
|
iconRight: any;
|
|
445
444
|
isExpanded: boolean;
|
|
445
|
+
supportingText: string;
|
|
446
446
|
titleEllipsis: boolean;
|
|
447
447
|
hasDivider: boolean;
|
|
448
448
|
isExpandable: boolean;
|
|
@@ -919,10 +919,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
919
919
|
}>, {
|
|
920
920
|
info: boolean;
|
|
921
921
|
size: string;
|
|
922
|
-
supportingText: string;
|
|
923
922
|
iconLeft: any;
|
|
924
923
|
iconRight: any;
|
|
925
924
|
isExpanded: boolean;
|
|
925
|
+
supportingText: string;
|
|
926
926
|
titleEllipsis: boolean;
|
|
927
927
|
hasDivider: boolean;
|
|
928
928
|
isExpandable: boolean;
|
|
@@ -1455,9 +1455,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1455
1455
|
type: string;
|
|
1456
1456
|
touchableDeprecated: boolean;
|
|
1457
1457
|
color: string;
|
|
1458
|
+
elevation: string;
|
|
1458
1459
|
radius: string;
|
|
1459
1460
|
state: string;
|
|
1460
|
-
elevation: string;
|
|
1461
1461
|
colorScheme: string;
|
|
1462
1462
|
}, {}, {
|
|
1463
1463
|
WnlIcon: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
@@ -1665,8 +1665,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1665
1665
|
};
|
|
1666
1666
|
}>> & Readonly<{}>, {
|
|
1667
1667
|
size: string;
|
|
1668
|
-
prominence: string;
|
|
1669
1668
|
isVertical: boolean;
|
|
1669
|
+
prominence: string;
|
|
1670
1670
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
1671
1671
|
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
1672
1672
|
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -130,11 +130,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
130
130
|
onClick?: (() => any) | undefined;
|
|
131
131
|
}>, {
|
|
132
132
|
color: import('../../Tile').TileColor;
|
|
133
|
-
eyebrowText: string;
|
|
134
|
-
isEyebrowTextUppercase: boolean;
|
|
135
133
|
state: import('../../Tile').TileState;
|
|
136
134
|
iconLeft: Record<string, any>;
|
|
137
135
|
iconRight: Record<string, any>;
|
|
136
|
+
eyebrowText: string;
|
|
137
|
+
isEyebrowTextUppercase: boolean;
|
|
138
138
|
interactive: boolean;
|
|
139
139
|
additionalText: string;
|
|
140
140
|
eyebrowEllipsis: boolean;
|
|
@@ -271,11 +271,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
271
271
|
};
|
|
272
272
|
}>> & Readonly<{}>, {
|
|
273
273
|
color: import('../../Tile').TileColor;
|
|
274
|
-
eyebrowText: string;
|
|
275
|
-
isEyebrowTextUppercase: boolean;
|
|
276
274
|
state: import('../../Tile').TileState;
|
|
277
275
|
iconLeft: Record<string, any>;
|
|
278
276
|
iconRight: Record<string, any>;
|
|
277
|
+
eyebrowText: string;
|
|
278
|
+
isEyebrowTextUppercase: boolean;
|
|
279
279
|
interactive: boolean;
|
|
280
280
|
additionalText: string;
|
|
281
281
|
eyebrowEllipsis: boolean;
|
|
@@ -85,8 +85,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
85
85
|
onHide?: ((...args: any[]) => any) | undefined;
|
|
86
86
|
"onDocument-click"?: ((...args: any[]) => any) | undefined;
|
|
87
87
|
}>, {
|
|
88
|
-
radius: string;
|
|
89
88
|
placement: string;
|
|
89
|
+
radius: string;
|
|
90
90
|
boundariesSelector: string;
|
|
91
91
|
forceShow: boolean;
|
|
92
92
|
sameWidth: boolean;
|
|
@@ -2,7 +2,7 @@ import { FormFieldProps } from './FormField.types';
|
|
|
2
2
|
|
|
3
3
|
export declare function extractFormFieldProps({ label, state, hasRequiredIndicator, labelInfo, subLabel, fieldId, messageText, }: FormFieldProps, errors?: Array<string>): {
|
|
4
4
|
label: string | undefined;
|
|
5
|
-
state: "
|
|
5
|
+
state: "success" | "default" | "error" | "disabled" | undefined;
|
|
6
6
|
hasRequiredIndicator: boolean | undefined;
|
|
7
7
|
labelInfo: string | undefined;
|
|
8
8
|
subLabel: string | undefined;
|
|
@@ -18,7 +18,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
18
18
|
type: import('vue').PropType<string>;
|
|
19
19
|
};
|
|
20
20
|
state: {
|
|
21
|
-
type: import('vue').PropType<"
|
|
21
|
+
type: import('vue').PropType<"success" | "default" | "error" | "disabled">;
|
|
22
22
|
};
|
|
23
23
|
hasRequiredIndicator: {
|
|
24
24
|
type: import('vue').PropType<boolean>;
|
|
@@ -51,7 +51,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
51
51
|
type: import('vue').PropType<string>;
|
|
52
52
|
};
|
|
53
53
|
state: {
|
|
54
|
-
type: import('vue').PropType<"
|
|
54
|
+
type: import('vue').PropType<"success" | "default" | "error" | "disabled">;
|
|
55
55
|
};
|
|
56
56
|
hasRequiredIndicator: {
|
|
57
57
|
type: import('vue').PropType<boolean>;
|
|
@@ -11,7 +11,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
11
11
|
type: import('vue').PropType<string>;
|
|
12
12
|
};
|
|
13
13
|
state: {
|
|
14
|
-
type: import('vue').PropType<"
|
|
14
|
+
type: import('vue').PropType<"success" | "default" | "error" | "disabled">;
|
|
15
15
|
};
|
|
16
16
|
hasRequiredIndicator: {
|
|
17
17
|
type: import('vue').PropType<boolean>;
|
|
@@ -43,7 +43,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
43
43
|
type: import('vue').PropType<string>;
|
|
44
44
|
};
|
|
45
45
|
state: {
|
|
46
|
-
type: import('vue').PropType<"
|
|
46
|
+
type: import('vue').PropType<"success" | "default" | "error" | "disabled">;
|
|
47
47
|
};
|
|
48
48
|
hasRequiredIndicator: {
|
|
49
49
|
type: import('vue').PropType<boolean>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Value } from '../../../utils/type.utils';
|
|
2
|
+
|
|
3
|
+
export declare const PIN_INPUT_FIELD_STATES: {
|
|
4
|
+
readonly DEFAULT: "default";
|
|
5
|
+
readonly ERROR: "error";
|
|
6
|
+
readonly LOADING: "loading";
|
|
7
|
+
};
|
|
8
|
+
export type PinInputFieldState = Value<typeof PIN_INPUT_FIELD_STATES>;
|
|
9
|
+
export declare const PIN_INPUT_FIELD_TYPES: {
|
|
10
|
+
readonly TEXT: "text";
|
|
11
|
+
readonly NUMBER: "number";
|
|
12
|
+
};
|
|
13
|
+
export type PinInputFieldType = Value<typeof PIN_INPUT_FIELD_TYPES>;
|
|
14
|
+
export declare const PIN_INPUT_FIELD_DEFAULT_LENGTH = 6;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FormFieldProps, FormFieldSlots } from '../FormField';
|
|
2
|
+
import { PinInputFieldState, PinInputFieldType } from './PinInputField.consts';
|
|
3
|
+
|
|
4
|
+
export interface PinInputFieldProps extends Omit<FormFieldProps, 'state'> {
|
|
5
|
+
state?: PinInputFieldState;
|
|
6
|
+
length?: number;
|
|
7
|
+
otp?: boolean;
|
|
8
|
+
type?: PinInputFieldType;
|
|
9
|
+
name?: string;
|
|
10
|
+
ariaLabel?: string;
|
|
11
|
+
}
|
|
12
|
+
export type PinInputFieldSlots = Omit<FormFieldSlots, 'field'>;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { PinInputFieldSlots } from './PinInputField.types';
|
|
2
|
+
|
|
3
|
+
declare function __VLS_template(): Readonly<PinInputFieldSlots> & PinInputFieldSlots;
|
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
|
+
modelValue: import('vue').PropType<string>;
|
|
6
|
+
state: {
|
|
7
|
+
type: import('vue').PropType<import('./PinInputField.consts').PinInputFieldState>;
|
|
8
|
+
};
|
|
9
|
+
length: {
|
|
10
|
+
type: import('vue').PropType<number>;
|
|
11
|
+
};
|
|
12
|
+
otp: {
|
|
13
|
+
type: import('vue').PropType<boolean>;
|
|
14
|
+
};
|
|
15
|
+
type: {
|
|
16
|
+
type: import('vue').PropType<import('./PinInputField.consts').PinInputFieldType>;
|
|
17
|
+
};
|
|
18
|
+
name: {
|
|
19
|
+
type: import('vue').PropType<string>;
|
|
20
|
+
};
|
|
21
|
+
ariaLabel: {
|
|
22
|
+
type: import('vue').PropType<string>;
|
|
23
|
+
};
|
|
24
|
+
label: {
|
|
25
|
+
type: import('vue').PropType<string>;
|
|
26
|
+
};
|
|
27
|
+
hasRequiredIndicator: {
|
|
28
|
+
type: import('vue').PropType<boolean>;
|
|
29
|
+
};
|
|
30
|
+
labelInfo: {
|
|
31
|
+
type: import('vue').PropType<string>;
|
|
32
|
+
};
|
|
33
|
+
subLabel: {
|
|
34
|
+
type: import('vue').PropType<string>;
|
|
35
|
+
};
|
|
36
|
+
fieldId: {
|
|
37
|
+
type: import('vue').PropType<string>;
|
|
38
|
+
};
|
|
39
|
+
messageText: {
|
|
40
|
+
type: import('vue').PropType<string>;
|
|
41
|
+
};
|
|
42
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
43
|
+
complete: (value: string) => void;
|
|
44
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
45
|
+
modelValue: import('vue').PropType<string>;
|
|
46
|
+
state: {
|
|
47
|
+
type: import('vue').PropType<import('./PinInputField.consts').PinInputFieldState>;
|
|
48
|
+
};
|
|
49
|
+
length: {
|
|
50
|
+
type: import('vue').PropType<number>;
|
|
51
|
+
};
|
|
52
|
+
otp: {
|
|
53
|
+
type: import('vue').PropType<boolean>;
|
|
54
|
+
};
|
|
55
|
+
type: {
|
|
56
|
+
type: import('vue').PropType<import('./PinInputField.consts').PinInputFieldType>;
|
|
57
|
+
};
|
|
58
|
+
name: {
|
|
59
|
+
type: import('vue').PropType<string>;
|
|
60
|
+
};
|
|
61
|
+
ariaLabel: {
|
|
62
|
+
type: import('vue').PropType<string>;
|
|
63
|
+
};
|
|
64
|
+
label: {
|
|
65
|
+
type: import('vue').PropType<string>;
|
|
66
|
+
};
|
|
67
|
+
hasRequiredIndicator: {
|
|
68
|
+
type: import('vue').PropType<boolean>;
|
|
69
|
+
};
|
|
70
|
+
labelInfo: {
|
|
71
|
+
type: import('vue').PropType<string>;
|
|
72
|
+
};
|
|
73
|
+
subLabel: {
|
|
74
|
+
type: import('vue').PropType<string>;
|
|
75
|
+
};
|
|
76
|
+
fieldId: {
|
|
77
|
+
type: import('vue').PropType<string>;
|
|
78
|
+
};
|
|
79
|
+
messageText: {
|
|
80
|
+
type: import('vue').PropType<string>;
|
|
81
|
+
};
|
|
82
|
+
}>> & Readonly<{
|
|
83
|
+
onComplete?: ((value: string) => any) | undefined;
|
|
84
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
85
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
86
|
+
export default _default;
|
|
87
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
88
|
+
new (): {
|
|
89
|
+
$slots: S;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MaybeRefOrGetter, Ref } from 'vue';
|
|
2
|
+
|
|
3
|
+
export declare function usePinInputFieldWithinForm(name: MaybeRefOrGetter<string | undefined>, modelValue: Ref<string | undefined>): {
|
|
4
|
+
value: Ref<string | undefined, string | undefined>;
|
|
5
|
+
errors: import('vue').ComputedRef<string[]>;
|
|
6
|
+
onComplete: (event: Event) => void;
|
|
7
|
+
onBlur: (event: Event) => void;
|
|
8
|
+
};
|
|
@@ -30,7 +30,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
30
30
|
type: import('vue').PropType<string>;
|
|
31
31
|
};
|
|
32
32
|
state: {
|
|
33
|
-
type: import('vue').PropType<"
|
|
33
|
+
type: import('vue').PropType<"success" | "default" | "error" | "disabled">;
|
|
34
34
|
};
|
|
35
35
|
hasRequiredIndicator: {
|
|
36
36
|
type: import('vue').PropType<boolean>;
|
|
@@ -78,7 +78,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
78
78
|
type: import('vue').PropType<string>;
|
|
79
79
|
};
|
|
80
80
|
state: {
|
|
81
|
-
type: import('vue').PropType<"
|
|
81
|
+
type: import('vue').PropType<"success" | "default" | "error" | "disabled">;
|
|
82
82
|
};
|
|
83
83
|
hasRequiredIndicator: {
|
|
84
84
|
type: import('vue').PropType<boolean>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TextareaHTMLAttributes } from 'vue';
|
|
2
|
+
import { FormFieldProps, FormFieldSlots } from '../FormField';
|
|
3
|
+
|
|
4
|
+
export interface TextAreaFieldProps extends FormFieldProps {
|
|
5
|
+
inputProps?: TextareaHTMLAttributes;
|
|
6
|
+
isAutoresizing?: boolean;
|
|
7
|
+
name?: string;
|
|
8
|
+
}
|
|
9
|
+
export type TextAreaFieldSlots = Omit<FormFieldSlots, 'field'>;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { TextareaHTMLAttributes } from 'vue';
|
|
2
|
+
import { TextAreaFieldSlots } from './TextAreaField.types';
|
|
3
|
+
|
|
4
|
+
declare function __VLS_template(): Readonly<TextAreaFieldSlots> & TextAreaFieldSlots;
|
|
5
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
6
|
+
modelValue: import('vue').PropType<string>;
|
|
7
|
+
inputProps: {
|
|
8
|
+
type: import('vue').PropType<TextareaHTMLAttributes>;
|
|
9
|
+
};
|
|
10
|
+
isAutoresizing: {
|
|
11
|
+
type: import('vue').PropType<boolean>;
|
|
12
|
+
};
|
|
13
|
+
name: {
|
|
14
|
+
type: import('vue').PropType<string>;
|
|
15
|
+
};
|
|
16
|
+
label: {
|
|
17
|
+
type: import('vue').PropType<string>;
|
|
18
|
+
};
|
|
19
|
+
state: {
|
|
20
|
+
type: import('vue').PropType<"success" | "default" | "error" | "disabled">;
|
|
21
|
+
};
|
|
22
|
+
hasRequiredIndicator: {
|
|
23
|
+
type: import('vue').PropType<boolean>;
|
|
24
|
+
};
|
|
25
|
+
labelInfo: {
|
|
26
|
+
type: import('vue').PropType<string>;
|
|
27
|
+
};
|
|
28
|
+
subLabel: {
|
|
29
|
+
type: import('vue').PropType<string>;
|
|
30
|
+
};
|
|
31
|
+
fieldId: {
|
|
32
|
+
type: import('vue').PropType<string>;
|
|
33
|
+
};
|
|
34
|
+
messageText: {
|
|
35
|
+
type: import('vue').PropType<string>;
|
|
36
|
+
};
|
|
37
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
38
|
+
modelValue: import('vue').PropType<string>;
|
|
39
|
+
inputProps: {
|
|
40
|
+
type: import('vue').PropType<TextareaHTMLAttributes>;
|
|
41
|
+
};
|
|
42
|
+
isAutoresizing: {
|
|
43
|
+
type: import('vue').PropType<boolean>;
|
|
44
|
+
};
|
|
45
|
+
name: {
|
|
46
|
+
type: import('vue').PropType<string>;
|
|
47
|
+
};
|
|
48
|
+
label: {
|
|
49
|
+
type: import('vue').PropType<string>;
|
|
50
|
+
};
|
|
51
|
+
state: {
|
|
52
|
+
type: import('vue').PropType<"success" | "default" | "error" | "disabled">;
|
|
53
|
+
};
|
|
54
|
+
hasRequiredIndicator: {
|
|
55
|
+
type: import('vue').PropType<boolean>;
|
|
56
|
+
};
|
|
57
|
+
labelInfo: {
|
|
58
|
+
type: import('vue').PropType<string>;
|
|
59
|
+
};
|
|
60
|
+
subLabel: {
|
|
61
|
+
type: import('vue').PropType<string>;
|
|
62
|
+
};
|
|
63
|
+
fieldId: {
|
|
64
|
+
type: import('vue').PropType<string>;
|
|
65
|
+
};
|
|
66
|
+
messageText: {
|
|
67
|
+
type: import('vue').PropType<string>;
|
|
68
|
+
};
|
|
69
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
70
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
71
|
+
export default _default;
|
|
72
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
73
|
+
new (): {
|
|
74
|
+
$slots: S;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
modelValue: import('vue').PropType<string>;
|
|
3
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
4
|
+
modelValue: import('vue').PropType<string>;
|
|
5
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -428,8 +428,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
428
428
|
onClose?: (() => any) | undefined;
|
|
429
429
|
onTitleClick?: (() => any) | undefined;
|
|
430
430
|
}>, {
|
|
431
|
-
eyebrowText: string;
|
|
432
431
|
state: string;
|
|
432
|
+
eyebrowText: string;
|
|
433
433
|
borderColor: string;
|
|
434
434
|
shortTitle: string;
|
|
435
435
|
isTitleInteractive: boolean;
|
|
@@ -884,9 +884,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
884
884
|
type: string;
|
|
885
885
|
touchableDeprecated: boolean;
|
|
886
886
|
color: string;
|
|
887
|
+
elevation: string;
|
|
887
888
|
radius: string;
|
|
888
889
|
state: string;
|
|
889
|
-
elevation: string;
|
|
890
890
|
colorScheme: string;
|
|
891
891
|
}, {}, {
|
|
892
892
|
WnlIcon: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
@@ -1094,8 +1094,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1094
1094
|
};
|
|
1095
1095
|
}>> & Readonly<{}>, {
|
|
1096
1096
|
size: string;
|
|
1097
|
-
prominence: string;
|
|
1098
1097
|
isVertical: boolean;
|
|
1098
|
+
prominence: string;
|
|
1099
1099
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
1100
1100
|
DsDropdown: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
1101
1101
|
boundariesSelector: {
|
|
@@ -1182,8 +1182,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1182
1182
|
onHide?: ((...args: any[]) => any) | undefined;
|
|
1183
1183
|
"onDocument-click"?: ((...args: any[]) => any) | undefined;
|
|
1184
1184
|
}>, {
|
|
1185
|
-
radius: string;
|
|
1186
1185
|
placement: string;
|
|
1186
|
+
radius: string;
|
|
1187
1187
|
boundariesSelector: string;
|
|
1188
1188
|
forceShow: boolean;
|
|
1189
1189
|
sameWidth: boolean;
|
|
@@ -1228,8 +1228,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1228
1228
|
default: string;
|
|
1229
1229
|
};
|
|
1230
1230
|
}>> & Readonly<{}>, {
|
|
1231
|
-
height: string;
|
|
1232
1231
|
radius: string;
|
|
1232
|
+
height: string;
|
|
1233
1233
|
width: string;
|
|
1234
1234
|
}, {}, {
|
|
1235
1235
|
PrimeSkeleton: import('@primevue/core').DefineComponent<import('primevue/skeleton').SkeletonProps, import('primevue/skeleton').SkeletonSlots, (e: string, ...args: any[]) => void>;
|
|
@@ -86,8 +86,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
86
86
|
};
|
|
87
87
|
}>> & Readonly<{}>, {
|
|
88
88
|
size: string;
|
|
89
|
-
prominence: string;
|
|
90
89
|
isVertical: boolean;
|
|
90
|
+
prominence: string;
|
|
91
91
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
92
92
|
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
93
93
|
export default _default;
|