@codeandfunction/callaloo 3.12.1 → 3.12.2
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/assets/styles.css +1 -1
- package/dist/components/Assets/{CLIcon.vue.d.ts → CLIcon/CLIcon.vue.d.ts} +4 -3
- package/dist/components/Assets/CLIcon/index.d.ts +4 -0
- package/dist/components/Assets/index.d.ts +1 -2
- package/dist/components/Buttons/{CLA11yButton.vue.d.ts → CLA11yButton/CLA11yButton.vue.d.ts} +8 -17
- package/dist/components/Buttons/CLA11yButton/index.d.ts +4 -0
- package/dist/components/Buttons/CLButton/CLButton.vue.d.ts +99 -0
- package/dist/components/Buttons/CLButton/index.d.ts +4 -0
- package/dist/components/Buttons/index.d.ts +2 -4
- package/dist/components/Containers/CLCard/CLCard.vue.d.ts +105 -0
- package/dist/components/Containers/CLCard/index.d.ts +4 -0
- package/dist/components/Containers/{Carousel → CLCarousel}/CLCarousel.vue.d.ts +9 -20
- package/dist/components/Containers/CLCarousel/CLCarouselNavigation.vue.d.ts +37 -0
- package/dist/components/Containers/CLCarousel/index.d.ts +11 -0
- package/dist/components/Containers/CLDisclosure/CLDisclosure.vue.d.ts +70 -0
- package/dist/components/Containers/CLDisclosure/index.d.ts +4 -0
- package/dist/components/Containers/index.d.ts +3 -9
- package/dist/components/Form/{CLCheckbox.vue.d.ts → CLCheckbox/CLCheckbox.vue.d.ts} +26 -13
- package/dist/components/Form/CLCheckbox/index.d.ts +4 -0
- package/dist/components/Form/{CLInput.vue.d.ts → CLInput/CLInput.vue.d.ts} +42 -17
- package/dist/components/Form/CLInput/index.d.ts +4 -0
- package/dist/components/Form/{CLRadioButton.vue.d.ts → CLRadioButton/CLRadioButton.vue.d.ts} +9 -9
- package/dist/components/Form/CLRadioButton/index.d.ts +4 -0
- package/dist/components/Form/{CLSelect.vue.d.ts → CLSelect/CLSelect.vue.d.ts} +9 -9
- package/dist/components/Form/CLSelect/index.d.ts +4 -0
- package/dist/components/Form/{CLTextArea.vue.d.ts → CLTextArea/CLTextArea.vue.d.ts} +18 -18
- package/dist/components/Form/CLTextArea/index.d.ts +4 -0
- package/dist/components/Form/index.d.ts +5 -10
- package/dist/components/Indicators/{CLBadge.vue.d.ts → CLBadge/CLBadge.vue.d.ts} +6 -6
- package/dist/components/Indicators/CLBadge/index.d.ts +4 -0
- package/dist/components/Indicators/CLBanner/CLBanner.vue.d.ts +49 -0
- package/dist/components/Indicators/CLBanner/index.d.ts +4 -0
- package/dist/components/Indicators/{CLPill.vue.d.ts → CLPill/CLPill.vue.d.ts} +4 -4
- package/dist/components/Indicators/CLPill/index.d.ts +4 -0
- package/dist/components/Indicators/CLProgress/CLProgress.vue.d.ts +32 -0
- package/dist/components/Indicators/CLProgress/index.d.ts +4 -0
- package/dist/components/Indicators/index.d.ts +4 -9
- package/dist/components/Loading/{CLSkeleton.vue.d.ts → CLSkeleton/CLSkeleton.vue.d.ts} +3 -3
- package/dist/components/Loading/CLSkeleton/index.d.ts +4 -0
- package/dist/components/Loading/{CLSpinner.vue.d.ts → CLSpinner/CLSpinner.vue.d.ts} +4 -4
- package/dist/components/Loading/CLSpinner/index.d.ts +4 -0
- package/dist/components/Loading/index.d.ts +2 -4
- package/dist/components/Modals/{CLModal.vue.d.ts → CLModal/CLModal.vue.d.ts} +16 -24
- package/dist/components/Modals/CLModal/index.d.ts +4 -0
- package/dist/components/Modals/index.d.ts +1 -2
- package/dist/components/Navigation/{CLLink.vue.d.ts → CLLink/CLLink.vue.d.ts} +6 -14
- package/dist/components/Navigation/CLLink/index.d.ts +4 -0
- package/dist/components/Navigation/{CLNavLink.vue.d.ts → CLNavLink/CLNavLink.vue.d.ts} +10 -14
- package/dist/components/Navigation/CLNavLink/index.d.ts +4 -0
- package/dist/components/Navigation/{CLNavSection.vue.d.ts → CLNavSection/CLNavSection.vue.d.ts} +3 -3
- package/dist/components/Navigation/CLNavSection/index.d.ts +4 -0
- package/dist/components/Navigation/index.d.ts +3 -6
- package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.vue.d.ts +204 -0
- package/dist/components/Popups/CLDropdownMenu/index.d.ts +4 -0
- package/dist/components/Popups/{CLToast.vue.d.ts → CLToast/CLToast.vue.d.ts} +1 -1
- package/dist/components/Popups/CLToast/index.d.ts +4 -0
- package/dist/components/Popups/index.d.ts +2 -5
- package/dist/components/Table/CLTable.vue.d.ts +5 -13
- package/dist/components/Table/CLTableCell.vue.d.ts +8 -16
- package/dist/components/Table/CLTableNestedCell.vue.d.ts +5 -12
- package/dist/components/Table/CLTableRow.vue.d.ts +4 -12
- package/dist/components/Table/index.d.ts +32 -15
- package/dist/components/Typography/CLHeading/CLHeading.vue.d.ts +33 -0
- package/dist/components/Typography/CLHeading/index.d.ts +4 -0
- package/dist/components/Typography/CLText/CLText.vue.d.ts +43 -0
- package/dist/components/Typography/CLText/index.d.ts +4 -0
- package/dist/components/Typography/index.d.ts +2 -5
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3109 -3232
- package/dist/types.d.ts +14 -114
- package/package.json +6 -4
- package/dist/components/Buttons/CLButton.vue.d.ts +0 -288
- package/dist/components/Containers/CLCard.vue.d.ts +0 -51
- package/dist/components/Containers/CLDisclosure.vue.d.ts +0 -77
- package/dist/components/Containers/Carousel/CLCarouselNavigation.vue.d.ts +0 -22
- package/dist/components/Indicators/CLBanner.vue.d.ts +0 -13
- package/dist/components/Indicators/Progress/CLProgress.vue.d.ts +0 -45
- package/dist/components/Popups/CLDropdownMenu.vue.d.ts +0 -595
- package/dist/components/Typography/CLHeading.vue.d.ts +0 -85
- package/dist/components/Typography/CLText.vue.d.ts +0 -119
- /package/dist/components/Containers/{Carousel → CLCarousel}/CLCarouselSlide.vue.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CLBorderRadius, CLIconNames, CLInputTypes, CLGenericFocusFunction, CLGenericFunction, CLGenericInputFunction, CLSizes, CLColors, CLColorVariants, CLOrientation } from '
|
|
2
|
-
interface
|
|
1
|
+
import { CLBorderRadius, CLIconNames, CLInputTypes, CLGenericFocusFunction, CLGenericFunction, CLGenericInputFunction, CLSizes, CLColors, CLColorVariants, CLOrientation } from '../../../index.ts';
|
|
2
|
+
export interface CLInputProps {
|
|
3
3
|
/** Sets the aria-label on the input. It should be used when there is no label present. */
|
|
4
4
|
ariaLabel?: string;
|
|
5
5
|
/** See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#autocomplete for more details. */
|
|
@@ -26,14 +26,22 @@ interface Props {
|
|
|
26
26
|
label?: string;
|
|
27
27
|
/** The maximum amount of characters allowed for entry. */
|
|
28
28
|
maxLength?: number;
|
|
29
|
-
/** The minimum amount of characters required for entry. */
|
|
30
|
-
minLength?: number;
|
|
31
29
|
/** An array of messages to be displayed. */
|
|
32
30
|
messages?: string[];
|
|
33
31
|
/** The message type. The property can be one of `CLColors`, e.g. `CLColors.Danger`. */
|
|
34
32
|
messageType?: CLColors;
|
|
33
|
+
/** The minimum amount of characters required for entry. */
|
|
34
|
+
minLength?: number;
|
|
35
35
|
/** A string representing name of the input. The name is submitted along with the input value when the form it belongs to is submitted. */
|
|
36
36
|
name: string;
|
|
37
|
+
/** A callback function which handles when the input loses focus. */
|
|
38
|
+
onBlur?: CLGenericFocusFunction;
|
|
39
|
+
/** A callback function which handles when the input value changes. */
|
|
40
|
+
onChange?: CLGenericFunction;
|
|
41
|
+
/** A callback function which handles when the input gains focus. */
|
|
42
|
+
onFocus?: CLGenericFocusFunction;
|
|
43
|
+
/** A callback function which handles when the input value changes due to user input. */
|
|
44
|
+
onInput?: CLGenericInputFunction;
|
|
37
45
|
/** Sets the label position to be above or to the left of the form element. The property can be one of `CLOrientation` */
|
|
38
46
|
orientation?: CLOrientation;
|
|
39
47
|
/** A regexp pattern that can be used for validation. */
|
|
@@ -62,36 +70,53 @@ interface Props {
|
|
|
62
70
|
type?: CLInputTypes;
|
|
63
71
|
/** Sets the color variant. The property can be one of `CLColorVariants.Outline | CLColorVariants.Ghost`, e.g `CLColorVariants.Outline`. */
|
|
64
72
|
variant?: CLColorVariants.Outline | CLColorVariants.Ghost;
|
|
65
|
-
/** A callback function which handles when the input loses focus. */
|
|
66
|
-
onBlur?: CLGenericFocusFunction;
|
|
67
|
-
/** A callback function which handles when the input value changes. */
|
|
68
|
-
onChange?: CLGenericFunction;
|
|
69
|
-
/** A callback function which handles when the input value changes due to user input. */
|
|
70
|
-
onInput?: CLGenericInputFunction;
|
|
71
|
-
/** A callback function which handles when the input gains focus. */
|
|
72
|
-
onFocus?: CLGenericFocusFunction;
|
|
73
73
|
}
|
|
74
|
-
|
|
75
|
-
type __VLS_PublicProps = {
|
|
74
|
+
declare const _default: import('vue').DefineComponent<{
|
|
76
75
|
modelValue?: string | number;
|
|
77
|
-
} &
|
|
78
|
-
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
76
|
+
} & CLInputProps, {
|
|
79
77
|
inputRef: Readonly<import('vue').ShallowRef<HTMLInputElement | null>>;
|
|
80
78
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
81
79
|
reset: (...args: any[]) => void;
|
|
82
80
|
"update:modelValue": (value: string | number) => void;
|
|
83
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
81
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
82
|
+
modelValue?: string | number;
|
|
83
|
+
} & CLInputProps> & Readonly<{
|
|
84
84
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
85
85
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
86
86
|
}>, {
|
|
87
87
|
color: CLColors;
|
|
88
|
+
form: string;
|
|
89
|
+
label: string;
|
|
90
|
+
pattern: string;
|
|
88
91
|
variant: CLColorVariants.Outline | CLColorVariants.Ghost;
|
|
92
|
+
borderRadius: CLBorderRadius;
|
|
89
93
|
testId: string;
|
|
90
94
|
type: CLInputTypes;
|
|
95
|
+
required: boolean;
|
|
96
|
+
prefix: string | CLIconNames;
|
|
97
|
+
onFocus: CLGenericFocusFunction;
|
|
98
|
+
onBlur: CLGenericFocusFunction;
|
|
99
|
+
onChange: CLGenericFunction;
|
|
100
|
+
onInput: CLGenericInputFunction;
|
|
101
|
+
ariaLabel: string;
|
|
102
|
+
busy: boolean;
|
|
91
103
|
rounded: boolean;
|
|
92
104
|
fluid: boolean;
|
|
105
|
+
disabled: boolean;
|
|
106
|
+
pill: string;
|
|
93
107
|
size: CLSizes;
|
|
108
|
+
placeholder: string;
|
|
94
109
|
orientation: CLOrientation;
|
|
110
|
+
readonly: boolean;
|
|
111
|
+
messages: string[];
|
|
112
|
+
messageType: CLColors;
|
|
113
|
+
autoComplete: boolean;
|
|
114
|
+
charCounter: boolean;
|
|
115
|
+
grouped: boolean;
|
|
116
|
+
maxLength: number;
|
|
117
|
+
minLength: number;
|
|
118
|
+
spellCheck: boolean;
|
|
119
|
+
suffix: string | CLIconNames;
|
|
95
120
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
96
121
|
'input-elem': HTMLInputElement;
|
|
97
122
|
}, HTMLDivElement>;
|
package/dist/components/Form/{CLRadioButton.vue.d.ts → CLRadioButton/CLRadioButton.vue.d.ts}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { CLBorderRadius, CLColors, CLColorVariants, CLGenericFunction, CLGenericFocusFunction, CLSizes } from '
|
|
2
|
-
interface
|
|
1
|
+
import { CLBorderRadius, CLColors, CLColorVariants, CLGenericFunction, CLGenericFocusFunction, CLSizes } from '../../../index.ts';
|
|
2
|
+
export interface CLRadioButtonProps {
|
|
3
3
|
/** Sets the aria-label on the input. It should be used when there is no label present. */
|
|
4
4
|
ariaLabel?: string;
|
|
5
5
|
/** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
|
|
6
6
|
borderRadius?: CLBorderRadius;
|
|
7
7
|
/** A `boolean` value which dictates the busy state of the radiobutton. */
|
|
8
8
|
busy?: boolean;
|
|
9
|
-
/** Sets the color of element's borders. The property can be one of `CLColors`, e.g. `CLColors.Primary`. */
|
|
10
|
-
color?: CLColors;
|
|
11
9
|
/** Set the checked state. */
|
|
12
10
|
checked?: boolean;
|
|
11
|
+
/** Sets the color of element's borders. The property can be one of `CLColors`, e.g. `CLColors.Primary`. */
|
|
12
|
+
color?: CLColors;
|
|
13
13
|
/** Set the disabled state. */
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
/** The form whom the radiobutton belongs to. Useful for when a radiobutton is not within a `form` element. */
|
|
@@ -43,15 +43,15 @@ interface Props {
|
|
|
43
43
|
/** A callback function which handles when the radiobutton gains focus. */
|
|
44
44
|
onFocus?: CLGenericFocusFunction;
|
|
45
45
|
}
|
|
46
|
-
|
|
47
|
-
type __VLS_PublicProps = {
|
|
46
|
+
declare const _default: import('vue').DefineComponent<{
|
|
48
47
|
modelValue?: string | number;
|
|
49
|
-
} &
|
|
50
|
-
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
48
|
+
} & CLRadioButtonProps, {
|
|
51
49
|
radiobuttonRef: Readonly<import('vue').ShallowRef<HTMLInputElement | null>>;
|
|
52
50
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
53
51
|
"update:modelValue": (value: string | number) => any;
|
|
54
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
52
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
53
|
+
modelValue?: string | number;
|
|
54
|
+
} & CLRadioButtonProps> & Readonly<{
|
|
55
55
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
56
56
|
}>, {
|
|
57
57
|
color: CLColors;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CLBorderRadius, CLColors, CLColorVariants, CLGenericFocusFunction, CLGenericFunction, CLOption, CLOrientation, CLSizes } from '
|
|
2
|
-
interface
|
|
1
|
+
import { CLBorderRadius, CLColors, CLColorVariants, CLGenericFocusFunction, CLGenericFunction, CLOption, CLOrientation, CLSizes } from '../../../index.ts';
|
|
2
|
+
export interface CLSelectProps {
|
|
3
3
|
/** Sets the aria-label on the input. It should be used when there is no label present. */
|
|
4
4
|
ariaLabel?: string;
|
|
5
5
|
/** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
|
|
@@ -22,14 +22,14 @@ interface Props {
|
|
|
22
22
|
messages?: string[];
|
|
23
23
|
/** The message type. The property can be one of `CLColors`, e.g. `CLColors.Danger`. */
|
|
24
24
|
messageType?: CLColors;
|
|
25
|
-
/** The default text shown when there is no value. Useful for providing a hint of what is expected. */
|
|
26
|
-
placeholder?: string;
|
|
27
25
|
/** A string representing name of the select. The name is submitted along with the select value when the form it belongs to is submitted. */
|
|
28
26
|
name: string;
|
|
29
27
|
/** Sets the label position to be above or to the left of the form element. The property can be one of `CLOrientation` */
|
|
30
28
|
orientation?: CLOrientation;
|
|
31
29
|
/** A list of options */
|
|
32
30
|
options: CLOption[];
|
|
31
|
+
/** The default text shown when there is no value. Useful for providing a hint of what is expected. */
|
|
32
|
+
placeholder?: string;
|
|
33
33
|
/** Set the required state. */
|
|
34
34
|
required?: boolean;
|
|
35
35
|
/** When set to `false` it will not render with rounded corners. */
|
|
@@ -47,15 +47,15 @@ interface Props {
|
|
|
47
47
|
/** A callback function which handles when the select gains focus. */
|
|
48
48
|
onFocus?: CLGenericFocusFunction;
|
|
49
49
|
}
|
|
50
|
-
|
|
51
|
-
type __VLS_PublicProps = {
|
|
50
|
+
declare const _default: import('vue').DefineComponent<{
|
|
52
51
|
modelValue?: string | number | null;
|
|
53
|
-
} &
|
|
54
|
-
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
52
|
+
} & CLSelectProps, {
|
|
55
53
|
selectRef: Readonly<import('vue').ShallowRef<HTMLSelectElement | null>>;
|
|
56
54
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
57
55
|
"update:modelValue": (value: string | number | null) => any;
|
|
58
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
56
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
57
|
+
modelValue?: string | number | null;
|
|
58
|
+
} & CLSelectProps> & Readonly<{
|
|
59
59
|
"onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
|
|
60
60
|
}>, {
|
|
61
61
|
color: CLColors;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CLBorderRadius, CLGenericFunction, CLGenericFocusFunction, CLGenericInputFunction, CLOrientation, CLSizes, CLColors, CLColorVariants } from '
|
|
2
|
-
interface
|
|
1
|
+
import { CLBorderRadius, CLGenericFunction, CLGenericFocusFunction, CLGenericInputFunction, CLOrientation, CLSizes, CLColors, CLColorVariants } from '../../../index.ts';
|
|
2
|
+
export interface CLTextAreaProps {
|
|
3
3
|
/** Sets the aria-label on the textarea. It should be used when there is no label present. */
|
|
4
4
|
ariaLabel?: string;
|
|
5
5
|
/** See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#autocomplete for more details. */
|
|
@@ -26,14 +26,22 @@ interface Props {
|
|
|
26
26
|
label?: string;
|
|
27
27
|
/** The maximum amount of characters allowed for entry. */
|
|
28
28
|
maxLength?: number;
|
|
29
|
-
/** The minimum amount of characters required for entry. */
|
|
30
|
-
minLength?: number;
|
|
31
29
|
/** An array of messages to be displayed. */
|
|
32
30
|
messages?: string[];
|
|
33
31
|
/** The message type. The property can be one of `CLColors`, e.g. `CLColors.Danger`. */
|
|
34
32
|
messageType?: CLColors;
|
|
33
|
+
/** The minimum amount of characters required for entry. */
|
|
34
|
+
minLength?: number;
|
|
35
35
|
/** A string representing name of the textarea. The name is submitted along with the textarea value when the form it belongs to is submitted. */
|
|
36
36
|
name: string;
|
|
37
|
+
/** A callback function which handles when the textarea loses focus. */
|
|
38
|
+
onBlur?: CLGenericFocusFunction;
|
|
39
|
+
/** A callback function which handles when the textarea value changes. */
|
|
40
|
+
onChange?: CLGenericFunction;
|
|
41
|
+
/** A callback function which handles when the textarea gains focus. */
|
|
42
|
+
onFocus?: CLGenericFocusFunction;
|
|
43
|
+
/** A callback function which handles when the input value changes due to user input. */
|
|
44
|
+
onInput?: CLGenericInputFunction;
|
|
37
45
|
/** Sets the label position to be above or to the left of the form element. The property can be one of `CLOrientation` */
|
|
38
46
|
orientation?: CLOrientation;
|
|
39
47
|
/** A regexp pattern that can be used for validation. */
|
|
@@ -58,24 +66,16 @@ interface Props {
|
|
|
58
66
|
testId?: string;
|
|
59
67
|
/** Sets the color variant. The property can be one of `CLColorVariants.Outline | CLColorVariants.Ghost`, e.g `CLColorVariants.Outline`. */
|
|
60
68
|
variant?: CLColorVariants.Outline | CLColorVariants.Ghost;
|
|
61
|
-
/** A callback function which handles when the textarea loses focus. */
|
|
62
|
-
onBlur?: CLGenericFocusFunction;
|
|
63
|
-
/** A callback function which handles when the textarea value changes. */
|
|
64
|
-
onChange?: CLGenericFunction;
|
|
65
|
-
/** A callback function which handles when the input value changes due to user input. */
|
|
66
|
-
onInput?: CLGenericInputFunction;
|
|
67
|
-
/** A callback function which handles when the textarea gains focus. */
|
|
68
|
-
onFocus?: CLGenericFocusFunction;
|
|
69
69
|
}
|
|
70
|
-
|
|
71
|
-
type __VLS_PublicProps = {
|
|
70
|
+
declare const _default: import('vue').DefineComponent<{
|
|
72
71
|
modelValue?: string | number;
|
|
73
|
-
} &
|
|
74
|
-
|
|
75
|
-
textareaRef: Readonly<import('vue').ShallowRef<HTMLInputElement | null>>;
|
|
72
|
+
} & CLTextAreaProps, {
|
|
73
|
+
textareaRef: Readonly<import('vue').ShallowRef<HTMLTextAreaElement | null>>;
|
|
76
74
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
77
75
|
"update:modelValue": (value: string | number) => any;
|
|
78
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
76
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
77
|
+
modelValue?: string | number;
|
|
78
|
+
} & CLTextAreaProps> & Readonly<{
|
|
79
79
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
80
80
|
}>, {
|
|
81
81
|
color: CLColors;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { CLCheckbox } from './CLCheckbox';
|
|
2
|
+
import { CLInput } from './CLInput';
|
|
3
|
+
import { CLRadioButton } from './CLRadioButton';
|
|
4
|
+
import { CLSelect } from './CLSelect';
|
|
5
|
+
import { CLTextArea } from './CLTextArea';
|
|
6
6
|
export { CLCheckbox, CLInput, CLRadioButton, CLSelect, CLTextArea };
|
|
7
|
-
export type CLCheckbox = InstanceType<typeof CLCheckbox>;
|
|
8
|
-
export type CLInput = InstanceType<typeof CLInput>;
|
|
9
|
-
export type CLRadioButton = InstanceType<typeof CLRadioButton>;
|
|
10
|
-
export type CLSelect = InstanceType<typeof CLSelect>;
|
|
11
|
-
export type CLTextArea = InstanceType<typeof CLTextArea>;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { CLBorderRadius, CLColors, CLColorVariants } from '
|
|
2
|
-
export interface
|
|
1
|
+
import { CLBorderRadius, CLColors, CLColorVariants } from '../../../index.ts';
|
|
2
|
+
export interface CLBadgeProps {
|
|
3
3
|
/** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
|
|
4
4
|
borderRadius?: CLBorderRadius;
|
|
5
5
|
/** Sets the color of the Badge. The property can be one of `CLColors`, e.g. `CLColors.Primary`. */
|
|
6
6
|
color?: CLColors;
|
|
7
|
-
/** The count to display in the Badge. */
|
|
8
|
-
label: string | number;
|
|
9
7
|
/** The `elevated` property displays a shadow to indicate elevation. */
|
|
10
8
|
elevated?: boolean;
|
|
9
|
+
/** The count to display in the Badge. */
|
|
10
|
+
label: string | number;
|
|
11
11
|
/** The maximum amount of characters to display. Once the amount characters goes beyond the limit, a plus sign is added after the displayed characters. */
|
|
12
12
|
limit?: number;
|
|
13
13
|
/** Sets a custom ID used for unit tests. */
|
|
14
14
|
testId?: string;
|
|
15
|
-
/** Sets the color variant. The property can be
|
|
15
|
+
/** Sets the color variant. The property can be one of `CLColorVariants`, e.g `CLColorVariants.Soft`. */
|
|
16
16
|
variant?: CLColorVariants;
|
|
17
17
|
}
|
|
18
|
-
declare const _default: import('vue').DefineComponent<
|
|
18
|
+
declare const _default: import('vue').DefineComponent<CLBadgeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CLBadgeProps> & Readonly<{}>, {
|
|
19
19
|
color: CLColors;
|
|
20
20
|
variant: CLColorVariants;
|
|
21
21
|
elevated: boolean;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { CLAlign, CLBorderRadius, CLColors, CLColorVariants, CLGenericFunction } from '../../../index.ts';
|
|
2
|
+
export interface CLBannerProps {
|
|
3
|
+
/** The action label text to be displayed. */
|
|
4
|
+
actionLabel?: string;
|
|
5
|
+
/** Set the horizontal alignment of content. The property can be one of `CLAlign`, e.g. `CLAlign.Left` */
|
|
6
|
+
align?: CLAlign;
|
|
7
|
+
/** Sets the aria-label on the banner if the `onClick` property has been set. It should be used when the `onClick` property has been set. */
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
/** A boolean value when set to `true`, adds a border to the banner. */
|
|
10
|
+
bordered?: boolean;
|
|
11
|
+
/** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
|
|
12
|
+
borderRadius?: CLBorderRadius;
|
|
13
|
+
/** A `boolean` value which dictates the busy state of the Banner. When set to `true`, it utilizes the `<CLSkeleton />` component. */
|
|
14
|
+
busy?: boolean;
|
|
15
|
+
/** Sets the color of the Badge. The property can be one of `CLColors`, e.g. `CLColors.Primary`. */
|
|
16
|
+
color?: CLColors;
|
|
17
|
+
/** Sets the height of the Banner, it's default value is `auto`. */
|
|
18
|
+
height?: string;
|
|
19
|
+
/** The text to be displayed as the message. */
|
|
20
|
+
message?: string;
|
|
21
|
+
/** A callback function to handle click events */
|
|
22
|
+
onAction?: CLGenericFunction;
|
|
23
|
+
/** A callback function to handle click events. It should be used when in conjunction with the `ariaLabel` property. */
|
|
24
|
+
onClick?: CLGenericFunction;
|
|
25
|
+
/** A callback function to handle when the banner is dismissed. */
|
|
26
|
+
onDismiss?: CLGenericFunction;
|
|
27
|
+
/** When set to `false` it will not render a Banner with rounded corners. */
|
|
28
|
+
rounded?: boolean;
|
|
29
|
+
/** Sets a custom ID used for unit tests. */
|
|
30
|
+
testId?: string;
|
|
31
|
+
/** Set the text of the title which should be displayed. */
|
|
32
|
+
title?: string;
|
|
33
|
+
/** Sets the width of the Banner, it's default value is `100%`. */
|
|
34
|
+
width?: string;
|
|
35
|
+
/** Sets the color variant. The property can be one of `ColorVariants.Ghost | ColorVariants.Outline | ColorVariants.Soft | ColorVariants.Solid`, e.g `CLColorVariants.Soft`. */
|
|
36
|
+
variant?: CLColorVariants.Ghost | CLColorVariants.Outline | CLColorVariants.Soft | CLColorVariants.Solid;
|
|
37
|
+
}
|
|
38
|
+
declare const _default: import('vue').DefineComponent<CLBannerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CLBannerProps> & Readonly<{}>, {
|
|
39
|
+
color: CLColors;
|
|
40
|
+
width: string;
|
|
41
|
+
height: string;
|
|
42
|
+
variant: CLColorVariants.Ghost | CLColorVariants.Outline | CLColorVariants.Soft | CLColorVariants.Solid;
|
|
43
|
+
testId: string;
|
|
44
|
+
align: CLAlign;
|
|
45
|
+
bordered: boolean;
|
|
46
|
+
busy: boolean;
|
|
47
|
+
rounded: boolean;
|
|
48
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
49
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CLGenericFunction, CLIconNames, CLColors, CLColorVariants } from '
|
|
2
|
-
export interface
|
|
1
|
+
import { CLGenericFunction, CLIconNames, CLColors, CLColorVariants } from '../../../index.ts';
|
|
2
|
+
export interface CLPillProps {
|
|
3
3
|
/** Sets the color of the Pill. The property can be one of `CLColors`, e.g. `CLColors.Primary`. */
|
|
4
4
|
color?: CLColors;
|
|
5
5
|
/** The count to display in the Pill. */
|
|
@@ -16,10 +16,10 @@ export interface Props {
|
|
|
16
16
|
rounded?: boolean;
|
|
17
17
|
/** Sets a custom ID used for unit tests. */
|
|
18
18
|
testId?: string;
|
|
19
|
-
/** Sets the color variant. The property can be
|
|
19
|
+
/** Sets the color variant. The property can be one of `CLColorVariants`, e.g `CLColorVariants.Soft`. */
|
|
20
20
|
variant?: CLColorVariants;
|
|
21
21
|
}
|
|
22
|
-
declare const _default: import('vue').DefineComponent<
|
|
22
|
+
declare const _default: import('vue').DefineComponent<CLPillProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CLPillProps> & Readonly<{}>, {
|
|
23
23
|
color: CLColors;
|
|
24
24
|
variant: CLColorVariants;
|
|
25
25
|
elevated: boolean;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CLColors, CLSizes } from '../../../index.ts';
|
|
2
|
+
export interface CLProgressProps {
|
|
3
|
+
/** The color of the progress bar */
|
|
4
|
+
color?: CLColors;
|
|
5
|
+
/** Set to true to invert the direction of the progress bar */
|
|
6
|
+
inverted?: boolean;
|
|
7
|
+
/** When set to `false` it will not render with rounded corners */
|
|
8
|
+
rounded?: boolean;
|
|
9
|
+
/** The size of the progress bar */
|
|
10
|
+
size?: CLSizes;
|
|
11
|
+
/** Set the value to true to display the current progress value above the bar */
|
|
12
|
+
status?: boolean;
|
|
13
|
+
/** Test ID for testing purposes */
|
|
14
|
+
testId?: string;
|
|
15
|
+
}
|
|
16
|
+
declare const _default: import('vue').DefineComponent<{
|
|
17
|
+
modelValue?: number;
|
|
18
|
+
} & CLProgressProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
"update:modelValue": (value: number) => any;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
21
|
+
modelValue?: number;
|
|
22
|
+
} & CLProgressProps> & Readonly<{
|
|
23
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
color: CLColors;
|
|
26
|
+
testId: string;
|
|
27
|
+
rounded: boolean;
|
|
28
|
+
size: CLSizes;
|
|
29
|
+
inverted: boolean;
|
|
30
|
+
status: boolean;
|
|
31
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
32
|
+
export default _default;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export { CLBadge, CLBanner, CLPill, CLProgress };
|
|
6
|
-
export type CLBadge = InstanceType<typeof CLBadge>;
|
|
7
|
-
export type CLBanner = InstanceType<typeof CLBanner>;
|
|
8
|
-
export type CLPill = InstanceType<typeof CLPill>;
|
|
9
|
-
export type CLProgress = InstanceType<typeof CLProgress>;
|
|
1
|
+
export { CLBadge } from './CLBadge';
|
|
2
|
+
export { CLBanner } from './CLBanner';
|
|
3
|
+
export { CLPill } from './CLPill';
|
|
4
|
+
export { CLProgress } from './CLProgress';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CLBorderRadius } from '
|
|
2
|
-
export interface
|
|
1
|
+
import { CLBorderRadius } from '../../../index.ts';
|
|
2
|
+
export interface CLSkeletonProps {
|
|
3
3
|
/** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
|
|
4
4
|
borderRadius?: CLBorderRadius;
|
|
5
5
|
/** Sets the height of the Skeleton, it's default value is `100%`. */
|
|
@@ -11,7 +11,7 @@ export interface Props {
|
|
|
11
11
|
/** Sets the width of the Skeleton, it's default value is `100%`. */
|
|
12
12
|
width?: string;
|
|
13
13
|
}
|
|
14
|
-
declare const _default: import('vue').DefineComponent<
|
|
14
|
+
declare const _default: import('vue').DefineComponent<CLSkeletonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CLSkeletonProps> & Readonly<{}>, {
|
|
15
15
|
width: string;
|
|
16
16
|
height: string;
|
|
17
17
|
testId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CLAlign, CLPosition, CLSizes, CLColors } from '
|
|
2
|
-
export interface
|
|
3
|
-
/** Set the horizontal alignment of the Spinner on the page. The property can be one of `CLAlign`, e.g. `CLAlign.Left`
|
|
1
|
+
import { CLAlign, CLPosition, CLSizes, CLColors } from '../../../index.ts';
|
|
2
|
+
export interface CLSpinnerProps {
|
|
3
|
+
/** Set the horizontal alignment of the Spinner on the page. The property can be one of `CLAlign`, e.g. `CLAlign.Left` */
|
|
4
4
|
align?: CLAlign;
|
|
5
5
|
/** Sets the color of the Spinner. The property can be one of `CLColors`, e.g. `CLColors.Primary` */
|
|
6
6
|
color?: CLColors;
|
|
@@ -11,7 +11,7 @@ export interface Props {
|
|
|
11
11
|
/** Sets a custom ID used for unit tests. */
|
|
12
12
|
testId?: string;
|
|
13
13
|
}
|
|
14
|
-
declare const _default: import('vue').DefineComponent<
|
|
14
|
+
declare const _default: import('vue').DefineComponent<CLSpinnerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CLSpinnerProps> & Readonly<{}>, {
|
|
15
15
|
color: CLColors;
|
|
16
16
|
testId: string;
|
|
17
17
|
align: CLAlign;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { CLSkeleton } from './CLSkeleton';
|
|
2
|
+
import { CLSpinner } from './CLSpinner';
|
|
3
3
|
export { CLSkeleton, CLSpinner };
|
|
4
|
-
export type CLSkeleton = InstanceType<typeof CLSkeleton>;
|
|
5
|
-
export type CLSpinner = InstanceType<typeof CLSpinner>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CLBorderRadius, CLGenericFunction } from '
|
|
2
|
-
interface
|
|
1
|
+
import { CLBorderRadius, CLGenericFunction } from '../../../index.ts';
|
|
2
|
+
export interface CLModalProps {
|
|
3
3
|
/** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
|
|
4
4
|
borderRadius?: CLBorderRadius;
|
|
5
5
|
/** Display a close button to dismiss the modal. It's default value is `true`. */
|
|
@@ -12,6 +12,8 @@ interface Props {
|
|
|
12
12
|
fullscreen?: boolean;
|
|
13
13
|
/** When set to `true`, the Modal is visible. */
|
|
14
14
|
isOpen?: boolean;
|
|
15
|
+
/** Sets the max width of the modal, it's default value is `640px`. */
|
|
16
|
+
maxWidth?: string;
|
|
15
17
|
/** The unique identifier of the Modal. */
|
|
16
18
|
modalId: string;
|
|
17
19
|
/** A callback function to be called when the Modal is closed. */
|
|
@@ -22,46 +24,36 @@ interface Props {
|
|
|
22
24
|
testId?: string;
|
|
23
25
|
/** The title content of the Modal. */
|
|
24
26
|
title?: string;
|
|
25
|
-
/** Sets the max width of the modal, it's default value is `640px`. */
|
|
26
|
-
maxWidth?: string;
|
|
27
27
|
/** The z-index of the Modal. */
|
|
28
28
|
zIndex?: number | string;
|
|
29
29
|
}
|
|
30
|
-
declare
|
|
31
|
-
attrs: Partial<{}>;
|
|
32
|
-
slots: {
|
|
33
|
-
header?(_: {}): any;
|
|
34
|
-
body?(_: {}): any;
|
|
35
|
-
footer?(_: {}): any;
|
|
36
|
-
};
|
|
37
|
-
refs: {
|
|
38
|
-
'modal-window': HTMLDivElement;
|
|
39
|
-
'overlay-ref': HTMLDivElement;
|
|
40
|
-
};
|
|
41
|
-
rootEl: any;
|
|
42
|
-
};
|
|
43
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
44
|
-
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CLModalProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
45
31
|
"modal-open": () => any;
|
|
46
32
|
"modal-close": () => any;
|
|
47
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
33
|
+
}, string, import('vue').PublicProps, Readonly<CLModalProps> & Readonly<{
|
|
48
34
|
"onModal-open"?: (() => any) | undefined;
|
|
49
35
|
"onModal-close"?: (() => any) | undefined;
|
|
50
36
|
}>, {
|
|
51
|
-
|
|
37
|
+
title: string;
|
|
38
|
+
borderRadius: CLBorderRadius;
|
|
52
39
|
close: boolean;
|
|
40
|
+
testId: string;
|
|
53
41
|
isOpen: boolean;
|
|
54
42
|
zIndex: number | string;
|
|
55
43
|
closeBorderRadius: CLBorderRadius;
|
|
56
44
|
dismissible: boolean;
|
|
57
45
|
fullscreen: boolean;
|
|
58
|
-
overlay: boolean;
|
|
59
46
|
maxWidth: string;
|
|
47
|
+
onClose: CLGenericFunction;
|
|
48
|
+
overlay: boolean;
|
|
60
49
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
61
50
|
'modal-window': HTMLDivElement;
|
|
62
51
|
'overlay-ref': HTMLDivElement;
|
|
63
|
-
}, any
|
|
64
|
-
|
|
52
|
+
}, any>, {
|
|
53
|
+
header?(_: {}): any;
|
|
54
|
+
body?(_: {}): any;
|
|
55
|
+
footer?(_: {}): any;
|
|
56
|
+
}>;
|
|
65
57
|
export default _default;
|
|
66
58
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
67
59
|
new (): {
|