@codeandfunction/callaloo 1.18.10 → 2.1.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/README.md +2 -0
- package/dist/assets/styles.css +1 -0
- package/dist/components/Assets/CLIcon.vue.d.ts +4 -1
- package/dist/components/Assets/index.d.ts +3 -0
- package/dist/components/Assets/utils.d.ts +6 -0
- package/dist/components/Buttons/CLA11yButton.vue.d.ts +8 -6
- package/dist/components/Buttons/CLButton.vue.d.ts +42 -31
- package/dist/components/Buttons/index.d.ts +5 -0
- package/dist/components/Buttons/utils.d.ts +4 -3
- package/dist/components/Containers/CLCard.vue.d.ts +12 -8
- package/dist/components/Containers/CLDisclosure.vue.d.ts +9 -6
- package/dist/components/Containers/Carousel/CLCarousel.vue.d.ts +9 -7
- package/dist/components/Containers/Carousel/CLCarouselNavigation.vue.d.ts +2 -2
- package/dist/components/Containers/index.d.ts +9 -0
- package/dist/components/Containers/utils.d.ts +5 -4
- package/dist/components/Form/CLCheckbox.vue.d.ts +10 -8
- package/dist/components/Form/CLInput.vue.d.ts +11 -9
- package/dist/components/Form/CLInputMessages.vue.d.ts +3 -3
- package/dist/components/Form/CLRadioButton.vue.d.ts +10 -8
- package/dist/components/Form/CLSelect.vue.d.ts +11 -9
- package/dist/components/Form/CLTextArea.vue.d.ts +11 -9
- package/dist/components/Form/index.d.ts +11 -0
- package/dist/components/Form/utils.d.ts +3 -3
- package/dist/components/Indicators/CLBadge.vue.d.ts +9 -6
- package/dist/components/Indicators/CLBanner.vue.d.ts +6 -5
- package/dist/components/Indicators/CLPill.vue.d.ts +9 -6
- package/dist/components/Indicators/index.d.ts +7 -0
- package/dist/components/Indicators/utils.d.ts +6 -5
- package/dist/components/Loading/CLSkeleton.vue.d.ts +3 -3
- package/dist/components/Loading/CLSpinner.vue.d.ts +4 -4
- package/dist/components/Loading/index.d.ts +5 -0
- package/dist/components/Loading/utils.d.ts +2 -2
- package/dist/components/Modals/CLModal.vue.d.ts +4 -2
- package/dist/components/Modals/index.d.ts +3 -0
- package/dist/components/Navigation/CLLink.vue.d.ts +4 -4
- package/dist/components/Navigation/CLNavLink.vue.d.ts +4 -4
- package/dist/components/Navigation/CLNavSection.vue.d.ts +4 -4
- package/dist/components/Navigation/index.d.ts +7 -0
- package/dist/components/Navigation/utils.d.ts +3 -3
- package/dist/components/Popups/CLDropdownMenu.vue.d.ts +310 -58
- package/dist/components/Popups/CLToast.vue.d.ts +8 -5
- package/dist/components/Popups/index.d.ts +5 -0
- package/dist/components/Popups/utils.d.ts +7 -4
- package/dist/components/Table/CLTable.vue.d.ts +1 -1
- package/dist/components/Table/index.d.ts +15 -0
- package/dist/components/Theme/CLThemeProvider.vue.d.ts +24 -18
- package/dist/components/Theme/base-theme.d.ts +35 -182
- package/dist/components/Theme/index.d.ts +3 -0
- package/dist/components/Theme/utils.d.ts +22 -5
- package/dist/components/Typography/CLHeading.vue.d.ts +12 -13
- package/dist/components/Typography/CLText.vue.d.ts +14 -15
- package/dist/components/Typography/index.d.ts +5 -0
- package/dist/components/Typography/utils.d.ts +3 -4
- package/dist/composables/useHasSlotContent.d.ts +1 -0
- package/dist/index.d.ts +14 -36
- package/dist/index.js +4278 -7247
- package/dist/types.d.ts +69 -64
- package/dist/utils/helper.d.ts +2 -2
- package/package.json +54 -44
- package/dist/assets/index.css +0 -1
- package/dist/index.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CLBorderRadius, CLGenericFunction, CLGenericFocusFunction,
|
|
1
|
+
import { CLBorderRadius, CLColors, CLGenericFunction, CLGenericFocusFunction, CLSizes } from '../../index';
|
|
2
2
|
interface Props {
|
|
3
3
|
/** Sets the aria-label on the input. It should be used when there is no label present. */
|
|
4
4
|
ariaLabel?: string;
|
|
@@ -6,6 +6,8 @@ interface Props {
|
|
|
6
6
|
borderRadius?: CLBorderRadius;
|
|
7
7
|
/** A `boolean` value which dictates the busy state of the checkbox. */
|
|
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;
|
|
9
11
|
/** Set the checked state. */
|
|
10
12
|
checked?: boolean;
|
|
11
13
|
/** Set the disabled state. */
|
|
@@ -18,8 +20,8 @@ interface Props {
|
|
|
18
20
|
label?: string;
|
|
19
21
|
/** An array of messages to be displayed. */
|
|
20
22
|
messages?: string[];
|
|
21
|
-
/** The message type. The property can be one of `
|
|
22
|
-
messageType?:
|
|
23
|
+
/** The message type. The property can be one of `CLColors`, e.g. `CLColors.Danger`. */
|
|
24
|
+
messageType?: CLColors;
|
|
23
25
|
/** A string representing name of the checkbox. The name is submitted along with the checkbox value when the form it belongs to is submitted. */
|
|
24
26
|
name: string;
|
|
25
27
|
/** Set the required state. */
|
|
@@ -30,8 +32,6 @@ interface Props {
|
|
|
30
32
|
size?: CLSizes;
|
|
31
33
|
/** Sets a custom ID used for unit tests. */
|
|
32
34
|
testId?: string;
|
|
33
|
-
/** Sets the style/theme. The property can be one of `CLThemes`, e.g. `CLThemes.Primary`. */
|
|
34
|
-
theme?: CLInputThemes;
|
|
35
35
|
/** Set the value for the checkbox when it's checked. */
|
|
36
36
|
value?: string | number;
|
|
37
37
|
/** A callback function which handles when the checkbox loses focus. */
|
|
@@ -44,9 +44,11 @@ interface Props {
|
|
|
44
44
|
onInput?: CLGenericFunction;
|
|
45
45
|
}
|
|
46
46
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
47
|
-
|
|
48
|
-
theme: CLInputThemes;
|
|
47
|
+
color: CLColors;
|
|
49
48
|
testId: string;
|
|
49
|
+
rounded: boolean;
|
|
50
50
|
size: CLSizes;
|
|
51
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
51
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
52
|
+
checkboxElem: HTMLInputElement;
|
|
53
|
+
}, HTMLDivElement>;
|
|
52
54
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CLBorderRadius, CLIconNames, CLInputTypes, CLGenericFocusFunction, CLGenericFunction, CLSizes,
|
|
1
|
+
import { CLBorderRadius, CLIconNames, CLInputTypes, CLGenericFocusFunction, CLGenericFunction, CLSizes, CLColors, CLOrientation } from '../../index';
|
|
2
2
|
interface Props {
|
|
3
3
|
/** Sets the aria-label on the input. It should be used when there is no label present. */
|
|
4
4
|
ariaLabel?: string;
|
|
@@ -8,6 +8,8 @@ interface Props {
|
|
|
8
8
|
borderRadius?: CLBorderRadius;
|
|
9
9
|
/** A `boolean` value which dictates the busy state of the input. */
|
|
10
10
|
busy?: boolean;
|
|
11
|
+
/** Sets the color of element's borders. The property can be one of `CLColors`, e.g. `CLColors.Primary`. */
|
|
12
|
+
color?: CLColors;
|
|
11
13
|
/** Set the disabled state. */
|
|
12
14
|
disabled?: boolean;
|
|
13
15
|
/** When set to true, sets the width of the Input to 100% of it's parent. */
|
|
@@ -26,8 +28,8 @@ interface Props {
|
|
|
26
28
|
minLength?: number;
|
|
27
29
|
/** An array of messages to be displayed. */
|
|
28
30
|
messages?: string[];
|
|
29
|
-
/** The message type. The property can be one of `
|
|
30
|
-
messageType?:
|
|
31
|
+
/** The message type. The property can be one of `CLColors`, e.g. `CLColors.Danger`. */
|
|
32
|
+
messageType?: CLColors;
|
|
31
33
|
/** A string representing name of the input. The name is submitted along with the input value when the form it belongs to is submitted. */
|
|
32
34
|
name: string;
|
|
33
35
|
/** Sets the label position to be above or to the left of the form element. The property can be one of `CLOrientation` */
|
|
@@ -54,8 +56,6 @@ interface Props {
|
|
|
54
56
|
suffix?: string | CLIconNames;
|
|
55
57
|
/** Sets a custom ID used for unit tests. */
|
|
56
58
|
testId?: string;
|
|
57
|
-
/** Sets the style/theme. The property can be one of `CLThemes`, e.g. `CLThemes.Primary`. */
|
|
58
|
-
theme?: CLInputThemes;
|
|
59
59
|
/**Set the type of input, supports various input types. */
|
|
60
60
|
type?: CLInputTypes;
|
|
61
61
|
/** Set the value for the input when it's checked. */
|
|
@@ -74,12 +74,14 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
74
74
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
75
75
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
76
76
|
}>, {
|
|
77
|
-
|
|
78
|
-
rounded: boolean;
|
|
79
|
-
theme: CLInputThemes;
|
|
77
|
+
color: CLColors;
|
|
80
78
|
testId: string;
|
|
81
79
|
type: CLInputTypes;
|
|
80
|
+
rounded: boolean;
|
|
81
|
+
fluid: boolean;
|
|
82
82
|
size: CLSizes;
|
|
83
83
|
orientation: CLOrientation;
|
|
84
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
84
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
85
|
+
inputElem: HTMLInputElement;
|
|
86
|
+
}, HTMLDivElement>;
|
|
85
87
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CLColors } from '../../index';
|
|
2
2
|
export interface Props {
|
|
3
3
|
id: string;
|
|
4
4
|
messages?: string[];
|
|
5
|
-
messageType?:
|
|
5
|
+
messageType?: CLColors;
|
|
6
6
|
}
|
|
7
7
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
8
|
-
messageType:
|
|
8
|
+
messageType: CLColors;
|
|
9
9
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CLBorderRadius, CLGenericFunction, CLGenericFocusFunction,
|
|
1
|
+
import { CLColors, CLBorderRadius, CLGenericFunction, CLGenericFocusFunction, CLSizes } from '../../index';
|
|
2
2
|
interface Props {
|
|
3
3
|
/** Sets the aria-label on the input. It should be used when there is no label present. */
|
|
4
4
|
ariaLabel?: string;
|
|
@@ -6,6 +6,8 @@ interface Props {
|
|
|
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;
|
|
9
11
|
/** Set the checked state. */
|
|
10
12
|
checked?: boolean;
|
|
11
13
|
/** Set the disabled state. */
|
|
@@ -18,8 +20,8 @@ interface Props {
|
|
|
18
20
|
label?: string;
|
|
19
21
|
/** An array of messages to be displayed. */
|
|
20
22
|
messages?: string[];
|
|
21
|
-
/** The message type. The property can be one of `
|
|
22
|
-
messageType?:
|
|
23
|
+
/** The message type. The property can be one of `CLColors`, e.g. `CLColors.Danger`. */
|
|
24
|
+
messageType?: CLColors;
|
|
23
25
|
/** A string representing name of the radiobutton. The name is submitted along with the radiobutton value when the form it belongs to is submitted. */
|
|
24
26
|
name: string;
|
|
25
27
|
/** Set the required state. */
|
|
@@ -30,8 +32,6 @@ interface Props {
|
|
|
30
32
|
size?: CLSizes;
|
|
31
33
|
/** Sets a custom ID used for unit tests. */
|
|
32
34
|
testId?: string;
|
|
33
|
-
/** Sets the style/theme. The property can be one of `CLThemes`, e.g. `CLThemes.Primary`. */
|
|
34
|
-
theme?: CLInputThemes;
|
|
35
35
|
/** Set the value for the radiobutton when it's checked. */
|
|
36
36
|
value?: string | number;
|
|
37
37
|
/** A callback function which handles when the radiobutton loses focus. */
|
|
@@ -44,9 +44,11 @@ interface Props {
|
|
|
44
44
|
onInput?: CLGenericFunction;
|
|
45
45
|
}
|
|
46
46
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
47
|
-
|
|
48
|
-
theme: CLInputThemes;
|
|
47
|
+
color: CLColors;
|
|
49
48
|
testId: string;
|
|
49
|
+
rounded: boolean;
|
|
50
50
|
size: CLSizes;
|
|
51
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
51
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
52
|
+
radioButtonElem: HTMLInputElement;
|
|
53
|
+
}, HTMLDivElement>;
|
|
52
54
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CLBorderRadius, CLGenericFocusFunction, CLGenericFunction,
|
|
1
|
+
import { CLBorderRadius, CLColors, CLGenericFocusFunction, CLGenericFunction, CLOption, CLOrientation, CLSizes } from '../../index';
|
|
2
2
|
interface Props {
|
|
3
3
|
/** Sets the aria-label on the input. It should be used when there is no label present. */
|
|
4
4
|
ariaLabel?: string;
|
|
@@ -6,6 +6,8 @@ interface Props {
|
|
|
6
6
|
borderRadius?: CLBorderRadius;
|
|
7
7
|
/** A `boolean` value which dictates the busy state of the select. */
|
|
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;
|
|
9
11
|
/** Set the disabled state. */
|
|
10
12
|
disabled?: boolean;
|
|
11
13
|
/** When set to true, sets the width of the select to 100% of it's parent. */
|
|
@@ -18,8 +20,8 @@ interface Props {
|
|
|
18
20
|
label?: string;
|
|
19
21
|
/** An array of messages to be displayed. */
|
|
20
22
|
messages?: string[];
|
|
21
|
-
/** The message type. The property can be one of `
|
|
22
|
-
messageType?:
|
|
23
|
+
/** The message type. The property can be one of `CLColors`, e.g. `CLColors.Danger`. */
|
|
24
|
+
messageType?: CLColors;
|
|
23
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. */
|
|
24
26
|
name: string;
|
|
25
27
|
/** Sets the label position to be above or to the left of the form element. The property can be one of `CLOrientation` */
|
|
@@ -34,8 +36,6 @@ interface Props {
|
|
|
34
36
|
size?: CLSizes;
|
|
35
37
|
/** Sets a custom ID used for unit tests. */
|
|
36
38
|
testId?: string;
|
|
37
|
-
/** Sets the style/theme. The property can be one of `CLThemes`, e.g. `CLThemes.Primary`. */
|
|
38
|
-
theme?: CLInputThemes;
|
|
39
39
|
/** Set the default value for the select. */
|
|
40
40
|
value?: string | number;
|
|
41
41
|
/** A callback function which handles when the select loses focus. */
|
|
@@ -48,11 +48,13 @@ interface Props {
|
|
|
48
48
|
onInput?: CLGenericFunction;
|
|
49
49
|
}
|
|
50
50
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
51
|
-
|
|
52
|
-
rounded: boolean;
|
|
53
|
-
theme: CLInputThemes;
|
|
51
|
+
color: CLColors;
|
|
54
52
|
testId: string;
|
|
53
|
+
rounded: boolean;
|
|
54
|
+
fluid: boolean;
|
|
55
55
|
size: CLSizes;
|
|
56
56
|
orientation: CLOrientation;
|
|
57
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
57
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
58
|
+
selectElem: HTMLSelectElement;
|
|
59
|
+
}, HTMLDivElement>;
|
|
58
60
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CLBorderRadius, CLGenericFunction, CLGenericFocusFunction,
|
|
1
|
+
import { CLBorderRadius, CLGenericFunction, CLGenericFocusFunction, CLOrientation, CLSizes, CLColors } from '../../index';
|
|
2
2
|
interface Props {
|
|
3
3
|
/** Sets the aria-label on the textarea. It should be used when there is no label present. */
|
|
4
4
|
ariaLabel?: string;
|
|
@@ -8,6 +8,8 @@ interface Props {
|
|
|
8
8
|
borderRadius?: CLBorderRadius;
|
|
9
9
|
/** A `boolean` value which dictates the busy state of the textarea. */
|
|
10
10
|
busy?: boolean;
|
|
11
|
+
/** Sets the color of element's borders. The property can be one of `CLColors`, e.g. `CLColors.Primary`. */
|
|
12
|
+
color?: CLColors;
|
|
11
13
|
/** Set the exact number of columns, to specify the size of the rendered textarea. */
|
|
12
14
|
cols?: number;
|
|
13
15
|
/** Set the disabled state. */
|
|
@@ -26,8 +28,8 @@ interface Props {
|
|
|
26
28
|
minLength?: number;
|
|
27
29
|
/** An array of messages to be displayed. */
|
|
28
30
|
messages?: string[];
|
|
29
|
-
/** The message type. The property can be one of `
|
|
30
|
-
messageType?:
|
|
31
|
+
/** The message type. The property can be one of `CLColors`, e.g. `CLColors.Danger`. */
|
|
32
|
+
messageType?: CLColors;
|
|
31
33
|
/** A string representing name of the textarea. The name is submitted along with the textarea value when the form it belongs to is submitted. */
|
|
32
34
|
name: string;
|
|
33
35
|
/** Sets the label position to be above or to the left of the form element. The property can be one of `CLOrientation` */
|
|
@@ -52,8 +54,6 @@ interface Props {
|
|
|
52
54
|
spellCheck?: boolean;
|
|
53
55
|
/** Sets a custom ID used for unit tests. */
|
|
54
56
|
testId?: string;
|
|
55
|
-
/** Sets the style/theme. The property can be one of `CLThemes`, e.g. `CLThemes.Primary`. */
|
|
56
|
-
theme?: CLInputThemes;
|
|
57
57
|
/** Set the value for the textarea when it's checked. */
|
|
58
58
|
value?: string | number;
|
|
59
59
|
/** A callback function which handles when the textarea loses focus. */
|
|
@@ -66,12 +66,14 @@ interface Props {
|
|
|
66
66
|
onInput?: CLGenericFunction;
|
|
67
67
|
}
|
|
68
68
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
69
|
-
|
|
70
|
-
rounded: boolean;
|
|
71
|
-
theme: CLInputThemes;
|
|
69
|
+
color: CLColors;
|
|
72
70
|
testId: string;
|
|
71
|
+
rounded: boolean;
|
|
72
|
+
fluid: boolean;
|
|
73
73
|
size: CLSizes;
|
|
74
74
|
orientation: CLOrientation;
|
|
75
75
|
resizable: boolean;
|
|
76
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
76
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
77
|
+
inputElem: HTMLTextAreaElement;
|
|
78
|
+
}, HTMLDivElement>;
|
|
77
79
|
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as CLCheckbox } from './CLCheckbox.vue';
|
|
2
|
+
import { default as CLInput } from './CLInput.vue';
|
|
3
|
+
import { default as CLRadioButton } from './CLRadioButton.vue';
|
|
4
|
+
import { default as CLSelect } from './CLSelect.vue';
|
|
5
|
+
import { default as CLTextArea } from './CLTextArea.vue';
|
|
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,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CLColors } from '../../index';
|
|
2
2
|
interface ThemeProps {
|
|
3
|
-
color:
|
|
3
|
+
color: CLColors;
|
|
4
4
|
component?: string;
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
readonly?: boolean;
|
|
7
7
|
}
|
|
8
8
|
export declare const checkboxTheme: ({ color, component, disabled }: ThemeProps) => string;
|
|
9
|
-
export declare const inputTheme: ({ color, component, disabled, readonly
|
|
9
|
+
export declare const inputTheme: ({ color, component, disabled, readonly }: ThemeProps) => string;
|
|
10
10
|
export declare const inputMessagesTheme: ({ color }: ThemeProps) => string;
|
|
11
11
|
export declare const selectTheme: ({ color, disabled }: ThemeProps) => string;
|
|
12
12
|
export {};
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CLBorderRadius, CLColors, CLColorVariants } from '../../index';
|
|
2
2
|
export interface Props {
|
|
3
3
|
/** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
|
|
4
4
|
borderRadius?: CLBorderRadius;
|
|
5
|
+
/** Sets the color of the Badge. The property can be one of `CLColors`, e.g. `CLColors.Primary`. */
|
|
6
|
+
color?: CLColors;
|
|
5
7
|
/** The count to display in the Badge. */
|
|
6
|
-
label
|
|
8
|
+
label: string | number;
|
|
7
9
|
/** The `elevated` property displays a shadow to indicate elevation. */
|
|
8
10
|
elevated?: boolean;
|
|
9
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. */
|
|
10
12
|
limit?: number;
|
|
11
13
|
/** Sets a custom ID used for unit tests. */
|
|
12
14
|
testId?: string;
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
+
/** Sets the color variant. The property can be on of `CLColorVariants`, e.g `CLColorVariants.Soft`. */
|
|
16
|
+
variant?: CLColorVariants;
|
|
15
17
|
}
|
|
16
18
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
color: CLColors;
|
|
20
|
+
variant: CLColorVariants;
|
|
19
21
|
elevated: boolean;
|
|
22
|
+
testId: string;
|
|
20
23
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
21
24
|
export default _default;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { CLAlign, CLBannerProps } from '../../index';
|
|
1
|
+
import { CLAlign, CLBannerProps, CLColors, CLColorVariants } from '../../index';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<CLBannerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CLBannerProps> & Readonly<{}>, {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
color: CLColors;
|
|
4
|
+
width: string;
|
|
5
|
+
height: string;
|
|
6
|
+
variant: CLColorVariants;
|
|
5
7
|
testId: string;
|
|
6
8
|
align: CLAlign;
|
|
7
9
|
bordered: boolean;
|
|
8
10
|
busy: boolean;
|
|
9
|
-
|
|
10
|
-
width: string;
|
|
11
|
+
rounded: boolean;
|
|
11
12
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
12
13
|
export default _default;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { CLGenericFunction, CLIconNames,
|
|
1
|
+
import { CLGenericFunction, CLIconNames, CLColors, CLColorVariants } from '../../index';
|
|
2
2
|
export interface Props {
|
|
3
|
+
/** Sets the color of the Pill. The property can be one of `CLColors`, e.g. `CLColors.Primary`. */
|
|
4
|
+
color?: CLColors;
|
|
3
5
|
/** The count to display in the Pill. */
|
|
4
6
|
count?: number;
|
|
5
7
|
/** The `elevated` property displays a shadow to indicate elevation. */
|
|
@@ -14,13 +16,14 @@ export interface Props {
|
|
|
14
16
|
rounded?: boolean;
|
|
15
17
|
/** Sets a custom ID used for unit tests. */
|
|
16
18
|
testId?: string;
|
|
17
|
-
/**
|
|
18
|
-
|
|
19
|
+
/** Sets the color variant. The property can be on of `CLColorVariants`, e.g `CLColorVariants.Soft`. */
|
|
20
|
+
variant?: CLColorVariants;
|
|
19
21
|
}
|
|
20
22
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
testId: string;
|
|
23
|
+
color: CLColors;
|
|
24
|
+
variant: CLColorVariants;
|
|
24
25
|
elevated: boolean;
|
|
26
|
+
testId: string;
|
|
27
|
+
rounded: boolean;
|
|
25
28
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
29
|
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as CLBadge } from './CLBadge.vue';
|
|
2
|
+
import { default as CLBanner } from './CLBanner.vue';
|
|
3
|
+
import { default as CLPill } from './CLPill.vue';
|
|
4
|
+
export { CLBadge, CLBanner, CLPill };
|
|
5
|
+
export type CLBadge = InstanceType<typeof CLBadge>;
|
|
6
|
+
export type CLBanner = InstanceType<typeof CLBanner>;
|
|
7
|
+
export type CLPill = InstanceType<typeof CLPill>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CLColors, CLColorVariants } from '../../index';
|
|
2
2
|
interface ThemeProps {
|
|
3
|
-
color:
|
|
3
|
+
color: CLColors;
|
|
4
|
+
variant: CLColorVariants;
|
|
4
5
|
}
|
|
5
|
-
export declare const badgeTheme: ({ color }: ThemeProps) => string;
|
|
6
|
-
export declare const bannerTheme: ({ color }: ThemeProps) => string;
|
|
7
|
-
export declare const pillTheme: ({ color }: ThemeProps) => string;
|
|
6
|
+
export declare const badgeTheme: ({ color, variant, }: ThemeProps) => string;
|
|
7
|
+
export declare const bannerTheme: ({ color, variant, }: ThemeProps) => string;
|
|
8
|
+
export declare const pillTheme: ({ color, variant, }: ThemeProps) => string;
|
|
8
9
|
export {};
|
|
@@ -12,9 +12,9 @@ export interface Props {
|
|
|
12
12
|
width?: string;
|
|
13
13
|
}
|
|
14
14
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
15
|
-
rounded: boolean;
|
|
16
|
-
testId: string;
|
|
17
|
-
height: string;
|
|
18
15
|
width: string;
|
|
16
|
+
height: string;
|
|
17
|
+
testId: string;
|
|
18
|
+
rounded: boolean;
|
|
19
19
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
20
20
|
export default _default;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { CLAlign, CLPosition,
|
|
1
|
+
import { CLAlign, CLPosition, CLSizes, CLColors } from '../../index';
|
|
2
2
|
export interface Props {
|
|
3
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
|
+
/** Sets the color of the Spinner. The property can be one of `CLColors`, e.g. `CLColors.Primary` */
|
|
6
|
+
color?: CLColors;
|
|
5
7
|
/** Sets the css display property of the Spinner. The property can be one of `CLPosition`, e.g. `CLPosition.Absolute` */
|
|
6
8
|
position?: CLPosition;
|
|
7
9
|
/** Sets the size of the Spinner. The property can be one of `CLSizes`, e.g. `CLSizes.Medium` */
|
|
8
10
|
size?: CLSizes;
|
|
9
11
|
/** Sets a custom ID used for unit tests. */
|
|
10
12
|
testId?: string;
|
|
11
|
-
/** Sets the theme of the Spinner. The property can be one of `CLSpinnerThemes`, e.g. `CLSpinnerThemes.Primary` */
|
|
12
|
-
theme?: CLSpinnerThemes;
|
|
13
13
|
}
|
|
14
14
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
15
|
-
|
|
15
|
+
color: CLColors;
|
|
16
16
|
testId: string;
|
|
17
17
|
align: CLAlign;
|
|
18
18
|
size: CLSizes;
|
|
@@ -29,12 +29,14 @@ declare function __VLS_template(): {
|
|
|
29
29
|
};
|
|
30
30
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
31
31
|
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
32
|
-
testId: string;
|
|
33
32
|
borderRadius: CLBorderRadius;
|
|
33
|
+
testId: string;
|
|
34
34
|
isOpen: boolean;
|
|
35
35
|
zIndex: number;
|
|
36
36
|
fullscreen: boolean;
|
|
37
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
37
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
38
|
+
modalWindow: HTMLDivElement;
|
|
39
|
+
}, any>;
|
|
38
40
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
39
41
|
export default _default;
|
|
40
42
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { CLLinkTarget,
|
|
1
|
+
import { CLLinkTarget, CLColors, CLGenericFunction } from '../../index';
|
|
2
2
|
export interface Props {
|
|
3
3
|
/** Sets the aria-label on the Link element. */
|
|
4
4
|
ariaLabel?: string;
|
|
5
|
+
/** Set the color of the link. The property can be one of `CLColors`, e.g. `CLColors.Secondary`. */
|
|
6
|
+
color?: CLColors;
|
|
5
7
|
/** Sets the external attribute on the Link element. If set, it adds an icon indicating that the link will open a new tab/window. */
|
|
6
8
|
external?: boolean;
|
|
7
9
|
/** Sets the href attribute on the Link element. */
|
|
@@ -14,8 +16,6 @@ export interface Props {
|
|
|
14
16
|
target?: CLLinkTarget;
|
|
15
17
|
/** Sets a custom ID used for unit tests. */
|
|
16
18
|
testId?: string;
|
|
17
|
-
/** Sets the theme of the Link element. The property can be one of `CLSimpleThemes`, e.g. `CLThemes.Default` */
|
|
18
|
-
theme?: CLSimpleThemes;
|
|
19
19
|
/** When set to `true`, it adds an underline to the link. */
|
|
20
20
|
underline?: boolean;
|
|
21
21
|
}
|
|
@@ -29,7 +29,7 @@ declare function __VLS_template(): {
|
|
|
29
29
|
};
|
|
30
30
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
31
31
|
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
32
|
-
|
|
32
|
+
color: CLColors;
|
|
33
33
|
testId: string;
|
|
34
34
|
target: CLLinkTarget;
|
|
35
35
|
external: boolean;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { CLLinkTarget,
|
|
1
|
+
import { CLLinkTarget, CLColors, CLGenericFunction } from '../../index';
|
|
2
2
|
export interface Props {
|
|
3
3
|
/** Sets the aria-label on the NavLink element. */
|
|
4
4
|
ariaLabel?: string;
|
|
5
|
+
/** Set the color of the link. The property can be one of `CLColors`, e.g. `CLColors.Neutral`. */
|
|
6
|
+
color?: CLColors;
|
|
5
7
|
/** Sets the external attribute on the NavLink element. If set, it adds an icon indicating that the link will open a new tab/window. */
|
|
6
8
|
external?: boolean;
|
|
7
9
|
/** Sets the href attribute on the Link element. */
|
|
@@ -16,8 +18,6 @@ export interface Props {
|
|
|
16
18
|
target?: CLLinkTarget;
|
|
17
19
|
/** Sets a custom ID used for unit tests. */
|
|
18
20
|
testId?: string;
|
|
19
|
-
/** Sets the theme of the NavLink element. The property can be one of `CLSimpleThemes`, e.g. `CLThemes.Default` */
|
|
20
|
-
theme?: CLSimpleThemes;
|
|
21
21
|
}
|
|
22
22
|
declare function __VLS_template(): {
|
|
23
23
|
attrs: Partial<{}>;
|
|
@@ -29,7 +29,7 @@ declare function __VLS_template(): {
|
|
|
29
29
|
};
|
|
30
30
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
31
31
|
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
32
|
-
|
|
32
|
+
color: CLColors;
|
|
33
33
|
testId: string;
|
|
34
34
|
external: boolean;
|
|
35
35
|
rel: string;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { CLNavItem, CLOrientation,
|
|
1
|
+
import { CLNavItem, CLOrientation, CLColors } from '../../index';
|
|
2
2
|
export interface Props {
|
|
3
|
+
/** Set the color of the link. The property can be one of `CLColors`, e.g. `CLColors.Secondary`. */
|
|
4
|
+
color?: CLColors;
|
|
3
5
|
/** An array of `CLNavItem` objects that will be rendered as a list of navigation items. */
|
|
4
6
|
navItems: CLNavItem[];
|
|
5
7
|
/** Sets a custom ID used for unit tests. */
|
|
6
8
|
testId?: string;
|
|
7
|
-
/** Sets the theme of the navigation section. The property can be one of `CLSimpleThemes`, e.g. `CLThemes.Default` */
|
|
8
|
-
theme?: CLSimpleThemes;
|
|
9
9
|
/** Sets the orientation of the navigation section. The property can be one of `CLOrientation`, e.g. `CLOrientation.Horizontal` */
|
|
10
10
|
type?: CLOrientation;
|
|
11
11
|
}
|
|
12
12
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
13
|
-
|
|
13
|
+
color: CLColors;
|
|
14
14
|
testId: string;
|
|
15
15
|
type: CLOrientation;
|
|
16
16
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLUListElement>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as CLLink } from './CLLink.vue';
|
|
2
|
+
import { default as CLNavLink } from './CLNavLink.vue';
|
|
3
|
+
import { default as CLNavSection } from './CLNavSection.vue';
|
|
4
|
+
export { CLLink, CLNavLink, CLNavSection };
|
|
5
|
+
export type CLLink = InstanceType<typeof CLLink>;
|
|
6
|
+
export type CLNavLink = InstanceType<typeof CLNavLink>;
|
|
7
|
+
export type CLNavSection = InstanceType<typeof CLNavSection>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CLColors } from '../../index';
|
|
2
2
|
interface BaseLinkProps {
|
|
3
|
-
color:
|
|
3
|
+
color: CLColors;
|
|
4
4
|
underline?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare const base_link: ({ color, underline
|
|
6
|
+
export declare const base_link: ({ color, underline }: BaseLinkProps) => string;
|
|
7
7
|
export {};
|