@codeandfunction/callaloo 1.13.6 → 1.14.1
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 +11 -3
- package/dist/assets/index.css +1 -1
- package/dist/components/Buttons/CLButton.vue.d.ts +13 -10
- package/dist/components/Buttons/utils.d.ts +7 -0
- package/dist/components/Containers/CLCard.vue.d.ts +1 -0
- package/dist/components/Containers/utils.d.ts +7 -0
- package/dist/components/Form/CLCheckbox.vue.d.ts +2 -2
- package/dist/components/Form/CLInput.vue.d.ts +8 -8
- package/dist/components/Form/CLInputMessages.vue.d.ts +5 -3
- package/dist/components/Form/CLRadioButton.vue.d.ts +2 -2
- package/dist/components/Form/CLSelect.vue.d.ts +3 -3
- package/dist/components/Form/CLTextArea.vue.d.ts +8 -8
- package/dist/components/Form/utils.d.ts +12 -0
- package/dist/components/Indicators/CLBanner.vue.d.ts +1 -0
- package/dist/components/Indicators/utils.d.ts +8 -0
- package/dist/components/Loading/utils.d.ts +6 -0
- package/dist/components/Modals/CLModal.vue.d.ts +3 -1
- package/dist/components/Modals/utils.d.ts +1 -0
- package/dist/components/Navigation/CLNavSection.vue.d.ts +1 -0
- package/dist/components/Navigation/utils.d.ts +7 -0
- package/dist/components/Popups/CLDropdownMenu.vue.d.ts +18 -10
- package/dist/components/Popups/{Toast.vue.d.ts → CLToast.vue.d.ts} +1 -0
- package/dist/components/Popups/utils.d.ts +4 -0
- package/dist/components/Table/utils.d.ts +1 -0
- package/dist/components/Theme/CLThemeProvider.vue.d.ts +21 -0
- package/dist/components/Theme/base-theme.d.ts +188 -0
- package/dist/components/Theme/utils.d.ts +21 -0
- package/dist/components/Typography/CLHeading.vue.d.ts +5 -5
- package/dist/components/Typography/CLText.vue.d.ts +4 -6
- package/dist/components/Typography/utils.d.ts +7 -0
- package/dist/composables/useDropdown.d.ts +1 -0
- package/dist/composables/useEsc.d.ts +4 -2
- package/dist/index.d.ts +5 -3
- package/dist/index.js +7217 -4444
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +34 -1
- package/dist/utils/helper.d.ts +1 -0
- package/package.json +37 -29
- package/dist/utils/tests.d.ts +0 -9
- /package/dist/components/Indicators/{Pill.vue.d.ts → CLPill.vue.d.ts} +0 -0
|
@@ -9,7 +9,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
9
9
|
type: PropType<CLAlign>;
|
|
10
10
|
default: CLAlign;
|
|
11
11
|
};
|
|
12
|
-
/** Sets the aria-label on the
|
|
12
|
+
/** Sets the aria-label on the It should be used when there is no discernable text present, or if this is an icon only */
|
|
13
13
|
ariaLabel: {
|
|
14
14
|
type: StringConstructor;
|
|
15
15
|
};
|
|
@@ -17,7 +17,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
17
17
|
borderRadius: {
|
|
18
18
|
type: PropType<CLBorderRadius>;
|
|
19
19
|
};
|
|
20
|
-
/** A `boolean` value which dictates the busy state of the
|
|
20
|
+
/** A `boolean` value which dictates the busy state of the */
|
|
21
21
|
busy: {
|
|
22
22
|
type: BooleanConstructor;
|
|
23
23
|
};
|
|
@@ -30,7 +30,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
30
30
|
form: {
|
|
31
31
|
type: StringConstructor;
|
|
32
32
|
};
|
|
33
|
-
/** A callback function which provides a reference to the
|
|
33
|
+
/** A callback function which provides a reference to the */
|
|
34
34
|
forwardRef: {
|
|
35
35
|
type: FunctionConstructor;
|
|
36
36
|
};
|
|
@@ -108,15 +108,18 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
108
108
|
type: BooleanConstructor;
|
|
109
109
|
default: boolean;
|
|
110
110
|
};
|
|
111
|
-
}>,
|
|
112
|
-
|
|
113
|
-
}
|
|
111
|
+
}>, {}, {
|
|
112
|
+
hasSlots: boolean;
|
|
113
|
+
}, {}, {
|
|
114
|
+
checkForSlots(): boolean;
|
|
115
|
+
getSpinnerSize(): CLSizes.Tiny | CLSizes.Small | CLSizes.Medium;
|
|
116
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
114
117
|
/** Set the horizontal alignment of content. The property can be one of `CLAlign`, e.g. `CLAlign.Left` */
|
|
115
118
|
alignContent: {
|
|
116
119
|
type: PropType<CLAlign>;
|
|
117
120
|
default: CLAlign;
|
|
118
121
|
};
|
|
119
|
-
/** Sets the aria-label on the
|
|
122
|
+
/** Sets the aria-label on the It should be used when there is no discernable text present, or if this is an icon only */
|
|
120
123
|
ariaLabel: {
|
|
121
124
|
type: StringConstructor;
|
|
122
125
|
};
|
|
@@ -124,7 +127,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
124
127
|
borderRadius: {
|
|
125
128
|
type: PropType<CLBorderRadius>;
|
|
126
129
|
};
|
|
127
|
-
/** A `boolean` value which dictates the busy state of the
|
|
130
|
+
/** A `boolean` value which dictates the busy state of the */
|
|
128
131
|
busy: {
|
|
129
132
|
type: BooleanConstructor;
|
|
130
133
|
};
|
|
@@ -137,7 +140,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
137
140
|
form: {
|
|
138
141
|
type: StringConstructor;
|
|
139
142
|
};
|
|
140
|
-
/** A callback function which provides a reference to the
|
|
143
|
+
/** A callback function which provides a reference to the */
|
|
141
144
|
forwardRef: {
|
|
142
145
|
type: FunctionConstructor;
|
|
143
146
|
};
|
|
@@ -216,10 +219,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
216
219
|
default: boolean;
|
|
217
220
|
};
|
|
218
221
|
}>> & Readonly<{}>, {
|
|
222
|
+
link: boolean;
|
|
219
223
|
rounded: boolean;
|
|
220
224
|
testId: string;
|
|
221
225
|
type: CLButtonTypes;
|
|
222
|
-
link: boolean;
|
|
223
226
|
elevated: boolean;
|
|
224
227
|
theme: CLThemes;
|
|
225
228
|
busy: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CLBorderRadius, CLGenericFunction, CLGenericFocusFunction,
|
|
1
|
+
import { CLBorderRadius, CLGenericFunction, CLGenericFocusFunction, CLMessageThemes, CLSizes, CLInputThemes } 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;
|
|
@@ -19,7 +19,7 @@ interface Props {
|
|
|
19
19
|
/** An array of messages to be displayed. */
|
|
20
20
|
messages?: string[];
|
|
21
21
|
/** The message type. The property can be one of `CLMessageType`, e.g. `CLMessageType.Error`. */
|
|
22
|
-
messageType?:
|
|
22
|
+
messageType?: CLMessageThemes;
|
|
23
23
|
/** 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
24
|
name: string;
|
|
25
25
|
/** Set the required state. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CLBorderRadius, CLIconNames, CLInputTypes, CLGenericFocusFunction, CLGenericFunction,
|
|
1
|
+
import { CLBorderRadius, CLIconNames, CLInputTypes, CLGenericFocusFunction, CLGenericFunction, CLSizes, CLInputThemes, CLMessageThemes } 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;
|
|
@@ -27,7 +27,7 @@ interface Props {
|
|
|
27
27
|
/** An array of messages to be displayed. */
|
|
28
28
|
messages?: string[];
|
|
29
29
|
/** The message type. The property can be one of `CLMessageType`, e.g. `CLMessageType.Error`. */
|
|
30
|
-
messageType?:
|
|
30
|
+
messageType?: CLMessageThemes;
|
|
31
31
|
/** 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
32
|
name: string;
|
|
33
33
|
/** A regexp pattern that can be used for validation. */
|
|
@@ -58,14 +58,14 @@ interface Props {
|
|
|
58
58
|
type?: CLInputTypes;
|
|
59
59
|
/** Set the value for the input when it's checked. */
|
|
60
60
|
value?: string | number;
|
|
61
|
-
/** A callback function which handles when the input
|
|
62
|
-
onInput?: CLGenericFunction;
|
|
63
|
-
/** A callback function which handles when the radiobutton loses focus. */
|
|
61
|
+
/** A callback function which handles when the input loses focus. */
|
|
64
62
|
onBlur?: CLGenericFocusFunction;
|
|
65
|
-
/** A callback function which handles when the
|
|
66
|
-
onFocus?: CLGenericFocusFunction;
|
|
67
|
-
/** A callback function which handles when the radiobutton is clicked. */
|
|
63
|
+
/** A callback function which handles when the input value changes. */
|
|
68
64
|
onChange?: CLGenericFunction;
|
|
65
|
+
/** A callback function which handles when the input gains focus. */
|
|
66
|
+
onFocus?: CLGenericFocusFunction;
|
|
67
|
+
/** A callback function which handles when the input state is updated. */
|
|
68
|
+
onInput?: CLGenericFunction;
|
|
69
69
|
}
|
|
70
70
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
71
71
|
fluid: boolean;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CLMessageThemes } from '../../index';
|
|
2
2
|
export interface Props {
|
|
3
3
|
id: string;
|
|
4
4
|
messages?: string[];
|
|
5
|
-
messageType?:
|
|
5
|
+
messageType?: CLMessageThemes;
|
|
6
6
|
}
|
|
7
|
-
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
7
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
8
|
+
messageType: CLMessageThemes;
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
8
10
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CLBorderRadius, CLGenericFunction, CLGenericFocusFunction,
|
|
1
|
+
import { CLBorderRadius, CLGenericFunction, CLGenericFocusFunction, CLMessageThemes, CLSizes, CLInputThemes } 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;
|
|
@@ -19,7 +19,7 @@ interface Props {
|
|
|
19
19
|
/** An array of messages to be displayed. */
|
|
20
20
|
messages?: string[];
|
|
21
21
|
/** The message type. The property can be one of `CLMessageType`, e.g. `CLMessageType.Error`. */
|
|
22
|
-
messageType?:
|
|
22
|
+
messageType?: CLMessageThemes;
|
|
23
23
|
/** 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
24
|
name: string;
|
|
25
25
|
/** Set the required state. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CLBorderRadius, CLGenericFocusFunction, CLGenericFunction, CLInputThemes,
|
|
1
|
+
import { CLBorderRadius, CLGenericFocusFunction, CLGenericFunction, CLInputThemes, CLMessageThemes, CLOption, 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;
|
|
@@ -19,7 +19,7 @@ interface Props {
|
|
|
19
19
|
/** An array of messages to be displayed. */
|
|
20
20
|
messages?: string[];
|
|
21
21
|
/** The message type. The property can be one of `CLMessageType`, e.g. `CLMessageType.Error`. */
|
|
22
|
-
messageType?:
|
|
22
|
+
messageType?: CLMessageThemes;
|
|
23
23
|
/** 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
24
|
name: string;
|
|
25
25
|
/** A list of options */
|
|
@@ -42,7 +42,7 @@ interface Props {
|
|
|
42
42
|
onChange?: CLGenericFunction;
|
|
43
43
|
/** A callback function which handles when the select gains focus. */
|
|
44
44
|
onFocus?: CLGenericFocusFunction;
|
|
45
|
-
/** A callback function which handles when the
|
|
45
|
+
/** A callback function which handles when the select state is updated. */
|
|
46
46
|
onInput?: CLGenericFunction;
|
|
47
47
|
}
|
|
48
48
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CLBorderRadius, CLGenericFunction, CLGenericFocusFunction,
|
|
1
|
+
import { CLBorderRadius, CLGenericFunction, CLGenericFocusFunction, CLMessageThemes, CLSizes, CLInputThemes } 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;
|
|
@@ -27,7 +27,7 @@ interface Props {
|
|
|
27
27
|
/** An array of messages to be displayed. */
|
|
28
28
|
messages?: string[];
|
|
29
29
|
/** The message type. The property can be one of `CLMessageType`, e.g. `CLMessageType.Error`. */
|
|
30
|
-
messageType?:
|
|
30
|
+
messageType?: CLMessageThemes;
|
|
31
31
|
/** 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
32
|
name: string;
|
|
33
33
|
/** A regexp pattern that can be used for validation. */
|
|
@@ -54,14 +54,14 @@ interface Props {
|
|
|
54
54
|
theme?: CLInputThemes;
|
|
55
55
|
/** Set the value for the textarea when it's checked. */
|
|
56
56
|
value?: string | number;
|
|
57
|
-
/** A callback function which handles when the textarea
|
|
58
|
-
onInput?: CLGenericFunction;
|
|
59
|
-
/** A callback function which handles when the radiobutton loses focus. */
|
|
57
|
+
/** A callback function which handles when the textarea loses focus. */
|
|
60
58
|
onBlur?: CLGenericFocusFunction;
|
|
61
|
-
/** A callback function which handles when the
|
|
62
|
-
onFocus?: CLGenericFocusFunction;
|
|
63
|
-
/** A callback function which handles when the radiobutton is clicked. */
|
|
59
|
+
/** A callback function which handles when the textarea value changes. */
|
|
64
60
|
onChange?: CLGenericFunction;
|
|
61
|
+
/** A callback function which handles when the textarea gains focus. */
|
|
62
|
+
onFocus?: CLGenericFocusFunction;
|
|
63
|
+
/** A callback function which handles when the textarea state is updated. */
|
|
64
|
+
onInput?: CLGenericFunction;
|
|
65
65
|
}
|
|
66
66
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
67
67
|
fluid: boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CLThemes } from '../../index';
|
|
2
|
+
interface ThemeProps {
|
|
3
|
+
color: CLThemes;
|
|
4
|
+
component?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
readonly?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const checkboxTheme: ({ color, component, disabled }: ThemeProps) => string;
|
|
9
|
+
export declare const inputTheme: ({ color, component, disabled, readonly, }: ThemeProps) => string;
|
|
10
|
+
export declare const inputMessagesTheme: ({ color }: ThemeProps) => string;
|
|
11
|
+
export declare const selectTheme: ({ color, disabled }: ThemeProps) => string;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CLThemes } from '../../index';
|
|
2
|
+
interface ThemeProps {
|
|
3
|
+
color: CLThemes;
|
|
4
|
+
}
|
|
5
|
+
export declare const badgeTheme: ({ color }: ThemeProps) => string;
|
|
6
|
+
export declare const bannerTheme: ({ color }: ThemeProps) => string;
|
|
7
|
+
export declare const pillTheme: ({ color }: ThemeProps) => string;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const modalTheme: () => string;
|
|
@@ -12,5 +12,6 @@ export interface Props {
|
|
|
12
12
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
13
13
|
testId: string;
|
|
14
14
|
type: CLOrientation;
|
|
15
|
+
theme: CLSimpleThemes;
|
|
15
16
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
17
|
export default _default;
|
|
@@ -13,9 +13,11 @@ interface Props {
|
|
|
13
13
|
/** Set the border radius size on the content container. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
|
|
14
14
|
containerBorderRadius?: CLBorderRadius;
|
|
15
15
|
/** Sets the style/theme of the content container. The property can be one of `CLThemes`, e.g. `CLThemes.Primary`. */
|
|
16
|
-
containerTheme?: CLThemes.Light | CLThemes.Dark;
|
|
16
|
+
containerTheme?: CLThemes.Light | CLThemes.Dark | CLThemes.Transparent | CLThemes.Outline;
|
|
17
17
|
/** Sets the width of the content container. */
|
|
18
18
|
contentWidth?: string;
|
|
19
|
+
/** A unique identifier, this is required. It ensures that if multiple dropdowns are used, each will be handled properly. */
|
|
20
|
+
dropdownId: string;
|
|
19
21
|
/** Sets the icon to be displayed after the anchor button label. The property can be one of `CLIconNames`, e.g. `CLIconNames.ChevronDown`. */
|
|
20
22
|
iconAfter?: CLIconNames;
|
|
21
23
|
/** Sets the icon to be displayed before the anchor button label. The property can be one of `CLIconNames`, e.g. `CLIconNames.Menu`. */
|
|
@@ -122,13 +124,16 @@ declare function __VLS_template(): {
|
|
|
122
124
|
type: BooleanConstructor;
|
|
123
125
|
default: boolean;
|
|
124
126
|
};
|
|
125
|
-
}>> & Readonly<{}>,
|
|
126
|
-
|
|
127
|
-
}
|
|
127
|
+
}>> & Readonly<{}>, {}, {
|
|
128
|
+
hasSlots: boolean;
|
|
129
|
+
}, {}, {
|
|
130
|
+
checkForSlots(): boolean;
|
|
131
|
+
getSpinnerSize(): CLSizes.Tiny | CLSizes.Small | CLSizes.Medium;
|
|
132
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
133
|
+
link: boolean;
|
|
128
134
|
rounded: boolean;
|
|
129
135
|
testId: string;
|
|
130
136
|
type: import('../../types').ButtonTypes;
|
|
131
|
-
link: boolean;
|
|
132
137
|
elevated: boolean;
|
|
133
138
|
theme: CLThemes;
|
|
134
139
|
busy: boolean;
|
|
@@ -229,13 +234,16 @@ declare function __VLS_template(): {
|
|
|
229
234
|
type: BooleanConstructor;
|
|
230
235
|
default: boolean;
|
|
231
236
|
};
|
|
232
|
-
}>> & Readonly<{}>,
|
|
233
|
-
|
|
234
|
-
}
|
|
237
|
+
}>> & Readonly<{}>, {}, {
|
|
238
|
+
hasSlots: boolean;
|
|
239
|
+
}, {}, {
|
|
240
|
+
checkForSlots(): boolean;
|
|
241
|
+
getSpinnerSize(): CLSizes.Tiny | CLSizes.Small | CLSizes.Medium;
|
|
242
|
+
}, {
|
|
243
|
+
link: boolean;
|
|
235
244
|
rounded: boolean;
|
|
236
245
|
testId: string;
|
|
237
246
|
type: import('../../types').ButtonTypes;
|
|
238
|
-
link: boolean;
|
|
239
247
|
elevated: boolean;
|
|
240
248
|
theme: CLThemes;
|
|
241
249
|
busy: boolean;
|
|
@@ -259,7 +267,7 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
259
267
|
iconAfterSize: CLIconSizes;
|
|
260
268
|
buttonSize: CLSizes;
|
|
261
269
|
buttonTheme: CLThemes;
|
|
262
|
-
containerTheme: CLThemes.Light | CLThemes.Dark;
|
|
270
|
+
containerTheme: CLThemes.Light | CLThemes.Dark | CLThemes.Transparent | CLThemes.Outline;
|
|
263
271
|
contentWidth: string;
|
|
264
272
|
isOpen: boolean;
|
|
265
273
|
placement: CLPlacement;
|
|
@@ -2,6 +2,7 @@ import { CLIconSizes, CLToastProps } from '../../index';
|
|
|
2
2
|
declare const _default: import('vue').DefineComponent<CLToastProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CLToastProps> & Readonly<{}>, {
|
|
3
3
|
rounded: boolean;
|
|
4
4
|
testId: string;
|
|
5
|
+
theme: import('../../types').ToastThemes;
|
|
5
6
|
width: string;
|
|
6
7
|
iconSize: CLIconSizes;
|
|
7
8
|
dismissTimer: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const tableTheme: () => string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CLThemeConfig } from '../../index';
|
|
2
|
+
interface Props {
|
|
3
|
+
/** A theme configuration object. */
|
|
4
|
+
themeConfig?: CLThemeConfig;
|
|
5
|
+
}
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { CLTheme, CLThemeConfig } from '../../index';
|
|
2
|
+
export declare const DEFAULT_THEME: CLThemeConfig;
|
|
3
|
+
export declare enum COLOR_KEYS {
|
|
4
|
+
focusBorder = 600,
|
|
5
|
+
focusShadow = 100,
|
|
6
|
+
outlineBorderBase = 300,
|
|
7
|
+
outlineBorderHover = 700,
|
|
8
|
+
outlineBgHover = 100,
|
|
9
|
+
solidBgBase = 100,
|
|
10
|
+
solidBgDark = 900,
|
|
11
|
+
solidBgDarkHover = 700,
|
|
12
|
+
solidBgDarkBorder = 500,
|
|
13
|
+
solidBgDisabled = 100,
|
|
14
|
+
solidBgLight = 100,
|
|
15
|
+
solidBgLightHover = 200,
|
|
16
|
+
solidBgLightBorder = 300,
|
|
17
|
+
solidBgHover = 200,
|
|
18
|
+
solidBorderBase = 300,
|
|
19
|
+
solidBorderDisabled = 200,
|
|
20
|
+
text = 700,
|
|
21
|
+
textDark = 100,
|
|
22
|
+
textDarkHover = 200,
|
|
23
|
+
textDisabled = 300,
|
|
24
|
+
textHover = 900,
|
|
25
|
+
textLight = 800,
|
|
26
|
+
textLightHover = 900
|
|
27
|
+
}
|
|
28
|
+
export declare const setupTheme: (config?: CLThemeConfig) => void;
|
|
29
|
+
export declare const useTheme: () => {
|
|
30
|
+
colors: import('vue').Ref<{
|
|
31
|
+
primary?: {
|
|
32
|
+
100?: string | undefined;
|
|
33
|
+
200?: string | undefined;
|
|
34
|
+
300?: string | undefined;
|
|
35
|
+
400?: string | undefined;
|
|
36
|
+
500?: string | undefined;
|
|
37
|
+
600?: string | undefined;
|
|
38
|
+
700?: string | undefined;
|
|
39
|
+
800?: string | undefined;
|
|
40
|
+
900?: string | undefined;
|
|
41
|
+
} | undefined;
|
|
42
|
+
secondary?: {
|
|
43
|
+
100?: string | undefined;
|
|
44
|
+
200?: string | undefined;
|
|
45
|
+
300?: string | undefined;
|
|
46
|
+
400?: string | undefined;
|
|
47
|
+
500?: string | undefined;
|
|
48
|
+
600?: string | undefined;
|
|
49
|
+
700?: string | undefined;
|
|
50
|
+
800?: string | undefined;
|
|
51
|
+
900?: string | undefined;
|
|
52
|
+
} | undefined;
|
|
53
|
+
neutral?: {
|
|
54
|
+
100?: string | undefined;
|
|
55
|
+
200?: string | undefined;
|
|
56
|
+
300?: string | undefined;
|
|
57
|
+
400?: string | undefined;
|
|
58
|
+
500?: string | undefined;
|
|
59
|
+
600?: string | undefined;
|
|
60
|
+
700?: string | undefined;
|
|
61
|
+
800?: string | undefined;
|
|
62
|
+
900?: string | undefined;
|
|
63
|
+
} | undefined;
|
|
64
|
+
danger?: {
|
|
65
|
+
100?: string | undefined;
|
|
66
|
+
200?: string | undefined;
|
|
67
|
+
300?: string | undefined;
|
|
68
|
+
400?: string | undefined;
|
|
69
|
+
500?: string | undefined;
|
|
70
|
+
600?: string | undefined;
|
|
71
|
+
700?: string | undefined;
|
|
72
|
+
800?: string | undefined;
|
|
73
|
+
900?: string | undefined;
|
|
74
|
+
} | undefined;
|
|
75
|
+
warning?: {
|
|
76
|
+
100?: string | undefined;
|
|
77
|
+
200?: string | undefined;
|
|
78
|
+
300?: string | undefined;
|
|
79
|
+
400?: string | undefined;
|
|
80
|
+
500?: string | undefined;
|
|
81
|
+
600?: string | undefined;
|
|
82
|
+
700?: string | undefined;
|
|
83
|
+
800?: string | undefined;
|
|
84
|
+
900?: string | undefined;
|
|
85
|
+
} | undefined;
|
|
86
|
+
success?: {
|
|
87
|
+
100?: string | undefined;
|
|
88
|
+
200?: string | undefined;
|
|
89
|
+
300?: string | undefined;
|
|
90
|
+
400?: string | undefined;
|
|
91
|
+
500?: string | undefined;
|
|
92
|
+
600?: string | undefined;
|
|
93
|
+
700?: string | undefined;
|
|
94
|
+
800?: string | undefined;
|
|
95
|
+
900?: string | undefined;
|
|
96
|
+
} | undefined;
|
|
97
|
+
info?: {
|
|
98
|
+
100?: string | undefined;
|
|
99
|
+
200?: string | undefined;
|
|
100
|
+
300?: string | undefined;
|
|
101
|
+
400?: string | undefined;
|
|
102
|
+
500?: string | undefined;
|
|
103
|
+
600?: string | undefined;
|
|
104
|
+
700?: string | undefined;
|
|
105
|
+
800?: string | undefined;
|
|
106
|
+
900?: string | undefined;
|
|
107
|
+
} | undefined;
|
|
108
|
+
}, CLTheme | {
|
|
109
|
+
primary?: {
|
|
110
|
+
100?: string | undefined;
|
|
111
|
+
200?: string | undefined;
|
|
112
|
+
300?: string | undefined;
|
|
113
|
+
400?: string | undefined;
|
|
114
|
+
500?: string | undefined;
|
|
115
|
+
600?: string | undefined;
|
|
116
|
+
700?: string | undefined;
|
|
117
|
+
800?: string | undefined;
|
|
118
|
+
900?: string | undefined;
|
|
119
|
+
} | undefined;
|
|
120
|
+
secondary?: {
|
|
121
|
+
100?: string | undefined;
|
|
122
|
+
200?: string | undefined;
|
|
123
|
+
300?: string | undefined;
|
|
124
|
+
400?: string | undefined;
|
|
125
|
+
500?: string | undefined;
|
|
126
|
+
600?: string | undefined;
|
|
127
|
+
700?: string | undefined;
|
|
128
|
+
800?: string | undefined;
|
|
129
|
+
900?: string | undefined;
|
|
130
|
+
} | undefined;
|
|
131
|
+
neutral?: {
|
|
132
|
+
100?: string | undefined;
|
|
133
|
+
200?: string | undefined;
|
|
134
|
+
300?: string | undefined;
|
|
135
|
+
400?: string | undefined;
|
|
136
|
+
500?: string | undefined;
|
|
137
|
+
600?: string | undefined;
|
|
138
|
+
700?: string | undefined;
|
|
139
|
+
800?: string | undefined;
|
|
140
|
+
900?: string | undefined;
|
|
141
|
+
} | undefined;
|
|
142
|
+
danger?: {
|
|
143
|
+
100?: string | undefined;
|
|
144
|
+
200?: string | undefined;
|
|
145
|
+
300?: string | undefined;
|
|
146
|
+
400?: string | undefined;
|
|
147
|
+
500?: string | undefined;
|
|
148
|
+
600?: string | undefined;
|
|
149
|
+
700?: string | undefined;
|
|
150
|
+
800?: string | undefined;
|
|
151
|
+
900?: string | undefined;
|
|
152
|
+
} | undefined;
|
|
153
|
+
warning?: {
|
|
154
|
+
100?: string | undefined;
|
|
155
|
+
200?: string | undefined;
|
|
156
|
+
300?: string | undefined;
|
|
157
|
+
400?: string | undefined;
|
|
158
|
+
500?: string | undefined;
|
|
159
|
+
600?: string | undefined;
|
|
160
|
+
700?: string | undefined;
|
|
161
|
+
800?: string | undefined;
|
|
162
|
+
900?: string | undefined;
|
|
163
|
+
} | undefined;
|
|
164
|
+
success?: {
|
|
165
|
+
100?: string | undefined;
|
|
166
|
+
200?: string | undefined;
|
|
167
|
+
300?: string | undefined;
|
|
168
|
+
400?: string | undefined;
|
|
169
|
+
500?: string | undefined;
|
|
170
|
+
600?: string | undefined;
|
|
171
|
+
700?: string | undefined;
|
|
172
|
+
800?: string | undefined;
|
|
173
|
+
900?: string | undefined;
|
|
174
|
+
} | undefined;
|
|
175
|
+
info?: {
|
|
176
|
+
100?: string | undefined;
|
|
177
|
+
200?: string | undefined;
|
|
178
|
+
300?: string | undefined;
|
|
179
|
+
400?: string | undefined;
|
|
180
|
+
500?: string | undefined;
|
|
181
|
+
600?: string | undefined;
|
|
182
|
+
700?: string | undefined;
|
|
183
|
+
800?: string | undefined;
|
|
184
|
+
900?: string | undefined;
|
|
185
|
+
} | undefined;
|
|
186
|
+
}>;
|
|
187
|
+
updateBaseColors: (config: CLThemeConfig) => void;
|
|
188
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CLThemeKeys, CLThemes } from '../../index';
|
|
2
|
+
export declare const baseContentBox: () => string;
|
|
3
|
+
interface BaseFormElementProps {
|
|
4
|
+
borderColor?: string;
|
|
5
|
+
placeholderColor?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const baseFormElement: ({ borderColor, placeholderColor, }: BaseFormElementProps) => string;
|
|
8
|
+
export declare const css: (template: TemplateStringsArray, ...args: any[]) => string;
|
|
9
|
+
export declare const cx: (...classNames: any[]) => string;
|
|
10
|
+
interface FocusProps {
|
|
11
|
+
borderColor?: string;
|
|
12
|
+
outlineWidth?: string;
|
|
13
|
+
outlineOffset?: string;
|
|
14
|
+
outlineColor?: string;
|
|
15
|
+
shadowWidth?: string;
|
|
16
|
+
shadowColor?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const focusTheme: ({ borderColor, outlineWidth, outlineOffset, outlineColor, shadowWidth, shadowColor, }: FocusProps) => string;
|
|
19
|
+
export declare const getThemeKeys: (theme: CLThemes) => CLThemeKeys;
|
|
20
|
+
export declare const getOutlineColor: (outlineColor: string) => CLThemeKeys;
|
|
21
|
+
export {};
|