@bethinkpl/design-system 42.0.0 → 44.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 +17470 -13135
- package/dist/design-system.js.map +1 -1
- package/dist/lib/js/components/Cards/Card/Card.consts.d.ts +14 -0
- package/dist/lib/js/components/Cards/Card/Card.vue.d.ts +10 -5
- package/dist/lib/js/components/Cards/CardExpandable/CardExpandable.vue.d.ts +33 -15
- 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.types.d.ts +26 -0
- package/dist/lib/js/components/Form/SelectField/SelectField.utils.d.ts +7 -0
- package/dist/lib/js/components/Form/SelectField/SelectField.vue.d.ts +107 -0
- package/dist/lib/js/components/Form/SelectField/SelectFieldOption.vue.d.ts +19 -0
- package/dist/lib/js/components/Form/SelectField/index.d.ts +4 -0
- package/dist/lib/js/components/Form/SelectField/useSelectFieldWithinForm.d.ts +8 -0
- 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/LabelValue/LabelValueItem/LabelValueItem.vue.d.ts +12 -1
- package/dist/lib/js/components/Pagination/Pagination.vue.d.ts +2 -0
- package/dist/lib/js/components/SelectList/SelectListItem/SelectListItem.vue.d.ts +2 -0
- package/dist/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.vue.d.ts +2 -0
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue.d.ts +33 -15
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue.d.ts +33 -15
- package/dist/lib/js/components/Toast/Toast.consts.d.ts +11 -9
- package/dist/lib/js/components/Toast/Toast.vue.d.ts +51 -415
- package/dist/lib/js/composables/useFormFieldWithinForm.d.ts +3 -3
- package/dist/lib/js/composables/useTextFieldWithinForm.d.ts +8 -0
- package/dist/lib/js/index.d.ts +6 -0
- package/lib/js/components/Cards/Card/Card.consts.ts +18 -0
- package/lib/js/components/Cards/Card/Card.spec.ts +159 -33
- package/lib/js/components/Cards/Card/Card.stories.ts +21 -2
- package/lib/js/components/Cards/Card/Card.vue +90 -23
- package/lib/js/components/Dropdown/Dropdown.vue +6 -10
- 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 +37 -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/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.spec.ts +495 -0
- package/lib/js/components/Form/SelectField/SelectField.stories.ts +282 -0
- package/lib/js/components/Form/SelectField/SelectField.types.ts +65 -0
- package/lib/js/components/Form/SelectField/SelectField.utils.ts +83 -0
- package/lib/js/components/Form/SelectField/SelectField.vue +342 -0
- package/lib/js/components/Form/SelectField/SelectFieldOption.vue +51 -0
- package/lib/js/components/Form/SelectField/index.ts +5 -0
- package/lib/js/components/Form/SelectField/useSelectFieldWithinForm.ts +27 -0
- 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/SelectList/SelectListItem/SelectListItem.spec.ts +77 -0
- package/lib/js/components/SelectList/SelectListItem/SelectListItem.vue +4 -1
- 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/composables/useFormFieldWithinForm.ts +4 -4
- package/lib/js/{components/Form/InputField/useInputFieldWithinForm.ts → composables/useTextFieldWithinForm.ts} +7 -2
- package/lib/js/index.ts +6 -0
- package/lib/js/styles/Shadows/Shadows.stories.scss +16 -0
- package/lib/js/styles/Shadows/Shadows.stories.ts +4 -0
- package/lib/styles/mixins/_dropdown-surface.scss +24 -0
- package/lib/styles/settings/_shadows.scss +18 -0
- package/package.json +1 -1
- package/dist/lib/js/components/Form/InputField/useInputFieldWithinForm.d.ts +0 -8
|
@@ -2,14 +2,28 @@ import { Value } from '../../../utils/type.utils';
|
|
|
2
2
|
|
|
3
3
|
export declare const CARD_PADDING_SIZES: {
|
|
4
4
|
readonly SMALL: "small";
|
|
5
|
+
readonly MEDIUM: "medium";
|
|
5
6
|
readonly LARGE: "large";
|
|
6
7
|
};
|
|
7
8
|
export type CardPaddingSize = Value<typeof CARD_PADDING_SIZES>;
|
|
8
9
|
export declare const CARD_BACKGROUND_COLORS: {
|
|
9
10
|
readonly DEFAULT: "default";
|
|
10
11
|
readonly NEUTRAL: "neutral";
|
|
12
|
+
readonly NONE: "none";
|
|
11
13
|
};
|
|
12
14
|
export type CardBackgroundColor = Value<typeof CARD_BACKGROUND_COLORS>;
|
|
15
|
+
export declare const CARD_ELEVATIONS: {
|
|
16
|
+
readonly DEFAULT: "default";
|
|
17
|
+
readonly TOP: "top";
|
|
18
|
+
readonly NONE: "none";
|
|
19
|
+
};
|
|
20
|
+
export type CardElevation = Value<typeof CARD_ELEVATIONS>;
|
|
21
|
+
export declare const CARD_RADIUSES: {
|
|
22
|
+
readonly ALL: "all";
|
|
23
|
+
readonly TOP: "top";
|
|
24
|
+
readonly NONE: "none";
|
|
25
|
+
};
|
|
26
|
+
export type CardRadius = Value<typeof CARD_RADIUSES>;
|
|
13
27
|
export declare const CARD_RIBBON_COLORS: {
|
|
14
28
|
readonly NEUTRAL: "neutral";
|
|
15
29
|
readonly NEUTRAL_HEAVY: "neutral-heavy";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LoadingBarColors } from '../../LoadingBar';
|
|
2
|
-
import {
|
|
2
|
+
import { RemovedProp } from '../../../utils/type.utils';
|
|
3
|
+
import { CardBackgroundColor, CardElevation, CardRadius, CardRibbonColors, CardRibbonPositions, CardRibbonSizes, CardPaddingSize } from './Card.consts';
|
|
3
4
|
|
|
4
5
|
declare function __VLS_template(): Readonly<{
|
|
5
6
|
header?: () => any;
|
|
@@ -19,8 +20,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
19
20
|
paddingSize?: CardPaddingSize;
|
|
20
21
|
dividerUnderHeader?: boolean;
|
|
21
22
|
hasRibbon?: boolean;
|
|
22
|
-
|
|
23
|
+
elevation?: CardElevation;
|
|
24
|
+
radius?: CardRadius;
|
|
23
25
|
backgroundColor?: CardBackgroundColor;
|
|
26
|
+
isFlat?: boolean;
|
|
24
27
|
ribbonPosition?: CardRibbonPositions;
|
|
25
28
|
ribbonSize?: CardRibbonSizes;
|
|
26
29
|
ribbonColor?: CardRibbonColors;
|
|
@@ -28,8 +31,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
28
31
|
hasLoadingBar?: boolean;
|
|
29
32
|
loadingBarColor?: LoadingBarColors;
|
|
30
33
|
loadingBarTime?: string;
|
|
31
|
-
isFlat?: boolean;
|
|
32
34
|
isContentScrollable?: boolean;
|
|
35
|
+
hasRadius?: RemovedProp<"renamed to radius">;
|
|
33
36
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
34
37
|
contentHasPadding?: boolean;
|
|
35
38
|
headerHasPadding?: boolean;
|
|
@@ -37,8 +40,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
37
40
|
paddingSize?: CardPaddingSize;
|
|
38
41
|
dividerUnderHeader?: boolean;
|
|
39
42
|
hasRibbon?: boolean;
|
|
40
|
-
|
|
43
|
+
elevation?: CardElevation;
|
|
44
|
+
radius?: CardRadius;
|
|
41
45
|
backgroundColor?: CardBackgroundColor;
|
|
46
|
+
isFlat?: boolean;
|
|
42
47
|
ribbonPosition?: CardRibbonPositions;
|
|
43
48
|
ribbonSize?: CardRibbonSizes;
|
|
44
49
|
ribbonColor?: CardRibbonColors;
|
|
@@ -46,8 +51,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
46
51
|
hasLoadingBar?: boolean;
|
|
47
52
|
loadingBarColor?: LoadingBarColors;
|
|
48
53
|
loadingBarTime?: string;
|
|
49
|
-
isFlat?: boolean;
|
|
50
54
|
isContentScrollable?: boolean;
|
|
55
|
+
hasRadius?: RemovedProp<"renamed to radius">;
|
|
51
56
|
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
52
57
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
53
58
|
export default _default;
|
|
@@ -385,12 +385,18 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
385
385
|
hasRibbon: {
|
|
386
386
|
type: import('vue').PropType<boolean>;
|
|
387
387
|
};
|
|
388
|
-
|
|
389
|
-
type: import('vue').PropType<
|
|
388
|
+
elevation: {
|
|
389
|
+
type: import('vue').PropType<import('../Card/Card.consts').CardElevation>;
|
|
390
|
+
};
|
|
391
|
+
radius: {
|
|
392
|
+
type: import('vue').PropType<import('../Card/Card.consts').CardRadius>;
|
|
390
393
|
};
|
|
391
394
|
backgroundColor: {
|
|
392
395
|
type: import('vue').PropType<import('../Card/Card.consts').CardBackgroundColor>;
|
|
393
396
|
};
|
|
397
|
+
isFlat: {
|
|
398
|
+
type: import('vue').PropType<boolean>;
|
|
399
|
+
};
|
|
394
400
|
ribbonPosition: {
|
|
395
401
|
type: import('vue').PropType<import('../Card/Card.consts').CardRibbonPositions>;
|
|
396
402
|
};
|
|
@@ -412,12 +418,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
412
418
|
loadingBarTime: {
|
|
413
419
|
type: import('vue').PropType<string>;
|
|
414
420
|
};
|
|
415
|
-
isFlat: {
|
|
416
|
-
type: import('vue').PropType<boolean>;
|
|
417
|
-
};
|
|
418
421
|
isContentScrollable: {
|
|
419
422
|
type: import('vue').PropType<boolean>;
|
|
420
423
|
};
|
|
424
|
+
hasRadius: {
|
|
425
|
+
type: import('vue').PropType<import('../../../utils/type.utils').RemovedProp<"renamed to radius">>;
|
|
426
|
+
};
|
|
421
427
|
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
422
428
|
P: {};
|
|
423
429
|
B: {};
|
|
@@ -444,12 +450,18 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
444
450
|
hasRibbon: {
|
|
445
451
|
type: import('vue').PropType<boolean>;
|
|
446
452
|
};
|
|
447
|
-
|
|
448
|
-
type: import('vue').PropType<
|
|
453
|
+
elevation: {
|
|
454
|
+
type: import('vue').PropType<import('../Card/Card.consts').CardElevation>;
|
|
455
|
+
};
|
|
456
|
+
radius: {
|
|
457
|
+
type: import('vue').PropType<import('../Card/Card.consts').CardRadius>;
|
|
449
458
|
};
|
|
450
459
|
backgroundColor: {
|
|
451
460
|
type: import('vue').PropType<import('../Card/Card.consts').CardBackgroundColor>;
|
|
452
461
|
};
|
|
462
|
+
isFlat: {
|
|
463
|
+
type: import('vue').PropType<boolean>;
|
|
464
|
+
};
|
|
453
465
|
ribbonPosition: {
|
|
454
466
|
type: import('vue').PropType<import('../Card/Card.consts').CardRibbonPositions>;
|
|
455
467
|
};
|
|
@@ -471,12 +483,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
471
483
|
loadingBarTime: {
|
|
472
484
|
type: import('vue').PropType<string>;
|
|
473
485
|
};
|
|
474
|
-
isFlat: {
|
|
475
|
-
type: import('vue').PropType<boolean>;
|
|
476
|
-
};
|
|
477
486
|
isContentScrollable: {
|
|
478
487
|
type: import('vue').PropType<boolean>;
|
|
479
488
|
};
|
|
489
|
+
hasRadius: {
|
|
490
|
+
type: import('vue').PropType<import('../../../utils/type.utils').RemovedProp<"renamed to radius">>;
|
|
491
|
+
};
|
|
480
492
|
}>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
481
493
|
__isFragment?: never;
|
|
482
494
|
__isTeleport?: never;
|
|
@@ -500,12 +512,18 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
500
512
|
hasRibbon: {
|
|
501
513
|
type: import('vue').PropType<boolean>;
|
|
502
514
|
};
|
|
503
|
-
|
|
504
|
-
type: import('vue').PropType<
|
|
515
|
+
elevation: {
|
|
516
|
+
type: import('vue').PropType<import('../Card/Card.consts').CardElevation>;
|
|
517
|
+
};
|
|
518
|
+
radius: {
|
|
519
|
+
type: import('vue').PropType<import('../Card/Card.consts').CardRadius>;
|
|
505
520
|
};
|
|
506
521
|
backgroundColor: {
|
|
507
522
|
type: import('vue').PropType<import('../Card/Card.consts').CardBackgroundColor>;
|
|
508
523
|
};
|
|
524
|
+
isFlat: {
|
|
525
|
+
type: import('vue').PropType<boolean>;
|
|
526
|
+
};
|
|
509
527
|
ribbonPosition: {
|
|
510
528
|
type: import('vue').PropType<import('../Card/Card.consts').CardRibbonPositions>;
|
|
511
529
|
};
|
|
@@ -527,12 +545,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
527
545
|
loadingBarTime: {
|
|
528
546
|
type: import('vue').PropType<string>;
|
|
529
547
|
};
|
|
530
|
-
isFlat: {
|
|
531
|
-
type: import('vue').PropType<boolean>;
|
|
532
|
-
};
|
|
533
548
|
isContentScrollable: {
|
|
534
549
|
type: import('vue').PropType<boolean>;
|
|
535
550
|
};
|
|
551
|
+
hasRadius: {
|
|
552
|
+
type: import('vue').PropType<import('../../../utils/type.utils').RemovedProp<"renamed to radius">>;
|
|
553
|
+
};
|
|
536
554
|
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
537
555
|
$slots: Readonly<{
|
|
538
556
|
header?: () => any;
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FormFieldProps, FormFieldSlots } from '../FormField';
|
|
2
|
+
import { IconItem } from '../../Icons/Icon';
|
|
3
|
+
|
|
4
|
+
export type SelectFieldValue = string | number;
|
|
5
|
+
export interface SelectFieldOption {
|
|
6
|
+
value: SelectFieldValue;
|
|
7
|
+
label: string;
|
|
8
|
+
iconLeft?: IconItem | null;
|
|
9
|
+
eyebrowText?: string;
|
|
10
|
+
isDisabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface SelectFieldOptionGroup {
|
|
13
|
+
label?: string;
|
|
14
|
+
options: Array<SelectFieldOption>;
|
|
15
|
+
}
|
|
16
|
+
export interface SelectFieldProps extends FormFieldProps {
|
|
17
|
+
options: Array<SelectFieldOption | SelectFieldOptionGroup>;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
leftIcon?: IconItem | null;
|
|
20
|
+
ariaLabel?: string;
|
|
21
|
+
maxHeight?: string | number;
|
|
22
|
+
name?: string;
|
|
23
|
+
autocomplete?: string;
|
|
24
|
+
isGroupLabelUppercase?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export type SelectFieldSlots = Omit<FormFieldSlots, 'field'>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SelectFieldOption, SelectFieldOptionGroup } from './SelectField.types';
|
|
2
|
+
|
|
3
|
+
export declare function isSelectFieldOptionGroup(option: SelectFieldOption | SelectFieldOptionGroup): option is SelectFieldOptionGroup;
|
|
4
|
+
export declare function normalizeOptions(options: Array<SelectFieldOption | SelectFieldOptionGroup>): Array<SelectFieldOptionGroup>;
|
|
5
|
+
export declare function assertOptionValues(groups: Array<SelectFieldOptionGroup>): void;
|
|
6
|
+
export declare function toCssLength(value: string | number | undefined): string | undefined;
|
|
7
|
+
export declare function getOptionAccessibleName(option: SelectFieldOption): string;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { SelectFieldSlots, SelectFieldValue } from './SelectField.types';
|
|
2
|
+
|
|
3
|
+
declare function __VLS_template(): Readonly<SelectFieldSlots> & SelectFieldSlots;
|
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
|
+
modelValue: import('vue').PropType<SelectFieldValue>;
|
|
6
|
+
options: {
|
|
7
|
+
type: import('vue').PropType<(import('./SelectField.types').SelectFieldOption | import('./SelectField.types').SelectFieldOptionGroup)[]>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
placeholder: {
|
|
11
|
+
type: import('vue').PropType<string>;
|
|
12
|
+
};
|
|
13
|
+
leftIcon: import('../../Icons/Icon').IconItem | null;
|
|
14
|
+
ariaLabel: {
|
|
15
|
+
type: import('vue').PropType<string>;
|
|
16
|
+
};
|
|
17
|
+
maxHeight: {
|
|
18
|
+
type: import('vue').PropType<string | number>;
|
|
19
|
+
};
|
|
20
|
+
name: {
|
|
21
|
+
type: import('vue').PropType<string>;
|
|
22
|
+
};
|
|
23
|
+
autocomplete: {
|
|
24
|
+
type: import('vue').PropType<string>;
|
|
25
|
+
};
|
|
26
|
+
isGroupLabelUppercase: {
|
|
27
|
+
type: import('vue').PropType<boolean>;
|
|
28
|
+
};
|
|
29
|
+
label: {
|
|
30
|
+
type: import('vue').PropType<string>;
|
|
31
|
+
};
|
|
32
|
+
state: {
|
|
33
|
+
type: import('vue').PropType<"default" | "success" | "error" | "disabled">;
|
|
34
|
+
};
|
|
35
|
+
hasRequiredIndicator: {
|
|
36
|
+
type: import('vue').PropType<boolean>;
|
|
37
|
+
};
|
|
38
|
+
labelInfo: {
|
|
39
|
+
type: import('vue').PropType<string>;
|
|
40
|
+
};
|
|
41
|
+
subLabel: {
|
|
42
|
+
type: import('vue').PropType<string>;
|
|
43
|
+
};
|
|
44
|
+
fieldId: {
|
|
45
|
+
type: import('vue').PropType<string>;
|
|
46
|
+
};
|
|
47
|
+
messageText: {
|
|
48
|
+
type: import('vue').PropType<string>;
|
|
49
|
+
};
|
|
50
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
51
|
+
"open-change": (isOpen: boolean) => void;
|
|
52
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
53
|
+
modelValue: import('vue').PropType<SelectFieldValue>;
|
|
54
|
+
options: {
|
|
55
|
+
type: import('vue').PropType<(import('./SelectField.types').SelectFieldOption | import('./SelectField.types').SelectFieldOptionGroup)[]>;
|
|
56
|
+
required: true;
|
|
57
|
+
};
|
|
58
|
+
placeholder: {
|
|
59
|
+
type: import('vue').PropType<string>;
|
|
60
|
+
};
|
|
61
|
+
leftIcon: import('../../Icons/Icon').IconItem | null;
|
|
62
|
+
ariaLabel: {
|
|
63
|
+
type: import('vue').PropType<string>;
|
|
64
|
+
};
|
|
65
|
+
maxHeight: {
|
|
66
|
+
type: import('vue').PropType<string | number>;
|
|
67
|
+
};
|
|
68
|
+
name: {
|
|
69
|
+
type: import('vue').PropType<string>;
|
|
70
|
+
};
|
|
71
|
+
autocomplete: {
|
|
72
|
+
type: import('vue').PropType<string>;
|
|
73
|
+
};
|
|
74
|
+
isGroupLabelUppercase: {
|
|
75
|
+
type: import('vue').PropType<boolean>;
|
|
76
|
+
};
|
|
77
|
+
label: {
|
|
78
|
+
type: import('vue').PropType<string>;
|
|
79
|
+
};
|
|
80
|
+
state: {
|
|
81
|
+
type: import('vue').PropType<"default" | "success" | "error" | "disabled">;
|
|
82
|
+
};
|
|
83
|
+
hasRequiredIndicator: {
|
|
84
|
+
type: import('vue').PropType<boolean>;
|
|
85
|
+
};
|
|
86
|
+
labelInfo: {
|
|
87
|
+
type: import('vue').PropType<string>;
|
|
88
|
+
};
|
|
89
|
+
subLabel: {
|
|
90
|
+
type: import('vue').PropType<string>;
|
|
91
|
+
};
|
|
92
|
+
fieldId: {
|
|
93
|
+
type: import('vue').PropType<string>;
|
|
94
|
+
};
|
|
95
|
+
messageText: {
|
|
96
|
+
type: import('vue').PropType<string>;
|
|
97
|
+
};
|
|
98
|
+
}>> & Readonly<{
|
|
99
|
+
"onOpen-change"?: ((isOpen: boolean) => any) | undefined;
|
|
100
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
101
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
102
|
+
export default _default;
|
|
103
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
104
|
+
new (): {
|
|
105
|
+
$slots: S;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SelectFieldOption as SelectFieldOptionType } from './SelectField.types';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
option: SelectFieldOptionType;
|
|
5
|
+
isSelected?: boolean;
|
|
6
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
option: SelectFieldOptionType;
|
|
8
|
+
isSelected?: boolean;
|
|
9
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: import('vue').PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MaybeRefOrGetter, Ref } from 'vue';
|
|
2
|
+
import { SelectFieldValue } from './SelectField.types';
|
|
3
|
+
|
|
4
|
+
export declare function useSelectFieldWithinForm(name: MaybeRefOrGetter<string | undefined>, modelValue: Ref<SelectFieldValue | undefined>): {
|
|
5
|
+
value: Ref<SelectFieldValue | undefined, SelectFieldValue | undefined>;
|
|
6
|
+
errors: Ref<string[], string[]>;
|
|
7
|
+
onClose: (event: Event) => void;
|
|
8
|
+
};
|
|
@@ -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<"default" | "success" | "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<"default" | "success" | "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;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { LabelValueItemSize, LabelValueItemState, LabelValueItemValueColor } from './LabelValueItem.consts';
|
|
2
2
|
|
|
3
|
-
declare
|
|
3
|
+
declare function __VLS_template(): Readonly<{
|
|
4
|
+
accessory?: () => any;
|
|
5
|
+
}> & {
|
|
6
|
+
accessory?: () => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
9
|
state?: LabelValueItemState;
|
|
5
10
|
label: string;
|
|
6
11
|
valueText: string;
|
|
@@ -15,6 +20,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
15
20
|
isLabelStrong?: boolean;
|
|
16
21
|
valueColor?: LabelValueItemValueColor;
|
|
17
22
|
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
18
24
|
export default _default;
|
|
19
25
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
26
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -25,3 +31,8 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
25
31
|
required: true;
|
|
26
32
|
};
|
|
27
33
|
};
|
|
34
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -1210,9 +1210,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1210
1210
|
$slots: Readonly<{
|
|
1211
1211
|
accessory?: () => any;
|
|
1212
1212
|
metadata?: () => any;
|
|
1213
|
+
text?: () => any;
|
|
1213
1214
|
}> & {
|
|
1214
1215
|
accessory?: () => any;
|
|
1215
1216
|
metadata?: () => any;
|
|
1217
|
+
text?: () => any;
|
|
1216
1218
|
};
|
|
1217
1219
|
});
|
|
1218
1220
|
SelectList: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|