@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,188 +1,41 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CLColorVariants, CLMode, CLPalette, CLThemeConfig } from '../../index';
|
|
2
2
|
export declare const DEFAULT_THEME: CLThemeConfig;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
solidBgLight = 100,
|
|
15
|
-
solidBgLightHover = 200,
|
|
16
|
-
solidBgLightBorder = 300,
|
|
17
|
-
solidBgHover = 200,
|
|
18
|
-
solidBorderBase = 300,
|
|
19
|
-
solidBorderDisabled = 200,
|
|
20
|
-
text = 800,
|
|
21
|
-
textDark = 100,
|
|
22
|
-
textDarkHover = 200,
|
|
23
|
-
textDisabled = 300,
|
|
24
|
-
textHover = 900,
|
|
25
|
-
textLight = 800,
|
|
26
|
-
textLightHover = 900
|
|
3
|
+
type ColorMap = Record<CLColorVariants, Record<CLMode, ColorModesKeys>>;
|
|
4
|
+
export interface ColorModesKeys {
|
|
5
|
+
bg?: number;
|
|
6
|
+
border?: number;
|
|
7
|
+
borderHover?: number;
|
|
8
|
+
disabled?: number;
|
|
9
|
+
focus?: number;
|
|
10
|
+
hover?: number;
|
|
11
|
+
shadow?: number;
|
|
12
|
+
text?: number;
|
|
13
|
+
textDisabled?: number;
|
|
27
14
|
}
|
|
15
|
+
export declare const COLOR_VARIANTS_MAP: ColorMap;
|
|
28
16
|
export declare const setupTheme: (config?: CLThemeConfig) => void;
|
|
29
17
|
export declare const useTheme: () => {
|
|
30
|
-
colors:
|
|
31
|
-
primary?:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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;
|
|
18
|
+
colors: globalThis.Ref<{
|
|
19
|
+
primary?: import('../../types').Shades | undefined;
|
|
20
|
+
secondary?: import('../../types').Shades | undefined;
|
|
21
|
+
neutral?: import('../../types').Shades | undefined;
|
|
22
|
+
danger?: import('../../types').Shades | undefined;
|
|
23
|
+
warning?: import('../../types').Shades | undefined;
|
|
24
|
+
success?: import('../../types').Shades | undefined;
|
|
25
|
+
info?: import('../../types').Shades | undefined;
|
|
26
|
+
}, CLPalette | {
|
|
27
|
+
primary?: import('../../types').Shades | undefined;
|
|
28
|
+
secondary?: import('../../types').Shades | undefined;
|
|
29
|
+
neutral?: import('../../types').Shades | undefined;
|
|
30
|
+
danger?: import('../../types').Shades | undefined;
|
|
31
|
+
warning?: import('../../types').Shades | undefined;
|
|
32
|
+
success?: import('../../types').Shades | undefined;
|
|
33
|
+
info?: import('../../types').Shades | undefined;
|
|
186
34
|
}>;
|
|
187
|
-
|
|
35
|
+
darkMode: globalThis.Ref<boolean | undefined, boolean | undefined>;
|
|
36
|
+
fontFamily: globalThis.Ref<string | undefined, string | undefined>;
|
|
37
|
+
setColors: (colors: CLPalette) => void;
|
|
38
|
+
setDarkMode: (enabled: boolean) => void;
|
|
39
|
+
setFontFamily: (font?: string) => void;
|
|
188
40
|
};
|
|
41
|
+
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CLColors, CLColorVariants, CLMode, CLPalette } from '../../index';
|
|
2
2
|
export declare const baseContentBox: () => string;
|
|
3
3
|
interface BaseFormElementProps {
|
|
4
|
+
backgroundColor?: string;
|
|
4
5
|
borderColor?: string;
|
|
5
6
|
placeholderColor?: string;
|
|
6
7
|
}
|
|
7
|
-
export declare const baseFormElement: ({ borderColor, placeholderColor
|
|
8
|
+
export declare const baseFormElement: ({ backgroundColor, borderColor, placeholderColor }: BaseFormElementProps) => string;
|
|
8
9
|
export declare const css: (template: TemplateStringsArray, ...args: any[]) => string;
|
|
9
10
|
export declare const cx: (...classNames: any[]) => string;
|
|
10
11
|
interface FocusProps {
|
|
@@ -15,7 +16,23 @@ interface FocusProps {
|
|
|
15
16
|
shadowWidth?: string;
|
|
16
17
|
shadowColor?: string;
|
|
17
18
|
}
|
|
18
|
-
export declare const focusTheme: ({ borderColor, outlineWidth, outlineOffset, outlineColor, shadowWidth, shadowColor
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
export declare const focusTheme: ({ borderColor, outlineWidth, outlineOffset, outlineColor, shadowWidth, shadowColor }: FocusProps) => string;
|
|
20
|
+
interface GetColorsArgs {
|
|
21
|
+
color: CLColors;
|
|
22
|
+
colors: CLPalette;
|
|
23
|
+
mode: CLMode;
|
|
24
|
+
variant: CLColorVariants;
|
|
25
|
+
}
|
|
26
|
+
interface GetColorsReturn {
|
|
27
|
+
bg?: string;
|
|
28
|
+
border?: string;
|
|
29
|
+
borderHover?: string;
|
|
30
|
+
disabled?: string;
|
|
31
|
+
focus?: string;
|
|
32
|
+
hover?: string;
|
|
33
|
+
shadow?: string;
|
|
34
|
+
text?: string;
|
|
35
|
+
textDisabled?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare const getColorValues: ({ color, colors, mode, variant }: GetColorsArgs) => GetColorsReturn | undefined;
|
|
21
38
|
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CLAlign, CLHeadingLevels, CLHeadingTypes, CLHeadingThemes, CLThemes } from '../../index';
|
|
1
|
+
import { CLAlign, CLHeadingLevels, CLHeadingTypes, CLColors } from '../../index';
|
|
3
2
|
/**
|
|
4
3
|
* The `<CLHeading />` component renders text as a heading element.
|
|
5
4
|
*/
|
|
6
|
-
declare const _default: import('vue').DefineComponent<
|
|
5
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
7
6
|
/** Set the horizontal alignment of content. The property can be one of `CLAlign`, e.g. `CLAlign.Left` */
|
|
8
7
|
align: {
|
|
9
8
|
type: PropType<CLAlign>;
|
|
@@ -18,10 +17,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
18
17
|
type: StringConstructor;
|
|
19
18
|
default: string;
|
|
20
19
|
};
|
|
21
|
-
/** Set the
|
|
22
|
-
|
|
23
|
-
type: PropType<
|
|
24
|
-
default:
|
|
20
|
+
/** Set the color of the heading. The property can be one of `CLColors`, e.g. `CLColors.Neutral` */
|
|
21
|
+
color: {
|
|
22
|
+
type: PropType<CLColors>;
|
|
23
|
+
default: CLColors;
|
|
25
24
|
};
|
|
26
25
|
/** Set the type of the heading. The property can be one of `CLHeadingTypes`, e.g. `CLHeadingTypes.Title` */
|
|
27
26
|
type: {
|
|
@@ -30,7 +29,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
30
29
|
};
|
|
31
30
|
}>, {}, {}, {}, {
|
|
32
31
|
getLevel(): CLHeadingLevels;
|
|
33
|
-
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<
|
|
32
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
34
33
|
/** Set the horizontal alignment of content. The property can be one of `CLAlign`, e.g. `CLAlign.Left` */
|
|
35
34
|
align: {
|
|
36
35
|
type: PropType<CLAlign>;
|
|
@@ -45,10 +44,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
45
44
|
type: StringConstructor;
|
|
46
45
|
default: string;
|
|
47
46
|
};
|
|
48
|
-
/** Set the
|
|
49
|
-
|
|
50
|
-
type: PropType<
|
|
51
|
-
default:
|
|
47
|
+
/** Set the color of the heading. The property can be one of `CLColors`, e.g. `CLColors.Neutral` */
|
|
48
|
+
color: {
|
|
49
|
+
type: PropType<CLColors>;
|
|
50
|
+
default: CLColors;
|
|
52
51
|
};
|
|
53
52
|
/** Set the type of the heading. The property can be one of `CLHeadingTypes`, e.g. `CLHeadingTypes.Title` */
|
|
54
53
|
type: {
|
|
@@ -56,7 +55,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
56
55
|
default: CLHeadingTypes;
|
|
57
56
|
};
|
|
58
57
|
}>> & Readonly<{}>, {
|
|
59
|
-
|
|
58
|
+
color: CLColors;
|
|
60
59
|
testId: string;
|
|
61
60
|
type: CLHeadingTypes;
|
|
62
61
|
align: CLAlign;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CLAlign, CLTextHtmlTags, CLTextThemes, CLTextTypes, CLThemes } from '../../index';
|
|
1
|
+
import { CLAlign, CLTextHtmlTags, CLTextTypes, CLColors } from '../../index';
|
|
3
2
|
/**
|
|
4
3
|
* The `<CLText />` component renders a text element.
|
|
5
4
|
*/
|
|
6
|
-
declare const _default: import('vue').DefineComponent<
|
|
5
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
7
6
|
/** Set the horizontal alignment of content. The property can be one of `CLAlign`, e.g. `CLAlign.Left` */
|
|
8
7
|
align: {
|
|
9
8
|
type: PropType<CLAlign>;
|
|
@@ -14,6 +13,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
14
13
|
type: PropType<CLTextHtmlTags>;
|
|
15
14
|
default: string;
|
|
16
15
|
};
|
|
16
|
+
/** Set the text color. The property can be one of `CLColors`, e.g. `CLColors.Neutral`. */
|
|
17
|
+
color: {
|
|
18
|
+
type: PropType<CLColors>;
|
|
19
|
+
default: CLColors;
|
|
20
|
+
};
|
|
17
21
|
/** Rendered a bolded text. */
|
|
18
22
|
label: {
|
|
19
23
|
type: BooleanConstructor;
|
|
@@ -29,17 +33,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
29
33
|
type: StringConstructor;
|
|
30
34
|
default: string;
|
|
31
35
|
};
|
|
32
|
-
/** Set the text theme. The property can be one of `CLTextThemes`, e.g. `CLThemes.Dark`. */
|
|
33
|
-
theme: {
|
|
34
|
-
type: PropType<CLTextThemes>;
|
|
35
|
-
default: CLThemes;
|
|
36
|
-
};
|
|
37
36
|
/** When set to `true`, truncate the text if it overflows its container. */
|
|
38
37
|
truncate: {
|
|
39
38
|
type: BooleanConstructor;
|
|
40
39
|
default: boolean;
|
|
41
40
|
};
|
|
42
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<
|
|
41
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
43
42
|
/** Set the horizontal alignment of content. The property can be one of `CLAlign`, e.g. `CLAlign.Left` */
|
|
44
43
|
align: {
|
|
45
44
|
type: PropType<CLAlign>;
|
|
@@ -50,6 +49,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
50
49
|
type: PropType<CLTextHtmlTags>;
|
|
51
50
|
default: string;
|
|
52
51
|
};
|
|
52
|
+
/** Set the text color. The property can be one of `CLColors`, e.g. `CLColors.Neutral`. */
|
|
53
|
+
color: {
|
|
54
|
+
type: PropType<CLColors>;
|
|
55
|
+
default: CLColors;
|
|
56
|
+
};
|
|
53
57
|
/** Rendered a bolded text. */
|
|
54
58
|
label: {
|
|
55
59
|
type: BooleanConstructor;
|
|
@@ -65,19 +69,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
65
69
|
type: StringConstructor;
|
|
66
70
|
default: string;
|
|
67
71
|
};
|
|
68
|
-
/** Set the text theme. The property can be one of `CLTextThemes`, e.g. `CLThemes.Dark`. */
|
|
69
|
-
theme: {
|
|
70
|
-
type: PropType<CLTextThemes>;
|
|
71
|
-
default: CLThemes;
|
|
72
|
-
};
|
|
73
72
|
/** When set to `true`, truncate the text if it overflows its container. */
|
|
74
73
|
truncate: {
|
|
75
74
|
type: BooleanConstructor;
|
|
76
75
|
default: boolean;
|
|
77
76
|
};
|
|
78
77
|
}>> & Readonly<{}>, {
|
|
78
|
+
color: CLColors;
|
|
79
79
|
label: boolean;
|
|
80
|
-
theme: CLTextThemes;
|
|
81
80
|
testId: string;
|
|
82
81
|
type: CLTextTypes;
|
|
83
82
|
align: CLAlign;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CLColors } from '../../index';
|
|
2
2
|
interface TextThemeProps {
|
|
3
|
-
color?:
|
|
4
|
-
component: string;
|
|
3
|
+
color?: CLColors;
|
|
5
4
|
}
|
|
6
|
-
export declare const textTheme: ({ color
|
|
5
|
+
export declare const textTheme: ({ color }: TextThemeProps) => string;
|
|
7
6
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useHasSlotContent: (name?: string) => globalThis.ComputedRef<boolean>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,37 +1,15 @@
|
|
|
1
|
-
export { Align as CLAlign, BorderRadius as CLBorderRadius, ButtonTypes as CLButtonTypes, CardTypes as CLCardTypes,
|
|
2
|
-
export type {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export { default as CLInput } from './components/Form/CLInput.vue';
|
|
16
|
-
export { default as CLLink } from './components/Navigation/CLLink.vue';
|
|
17
|
-
export { default as CLDropdownMenu } from './components/Popups/CLDropdownMenu.vue';
|
|
18
|
-
export { default as CLModal } from './components/Modals/CLModal.vue';
|
|
19
|
-
export { default as CLNavLink } from './components/Navigation/CLNavLink.vue';
|
|
20
|
-
export { default as CLNavSection } from './components/Navigation/CLNavSection.vue';
|
|
21
|
-
export { default as CLPill } from './components/Indicators/CLPill.vue';
|
|
22
|
-
export { default as CLRadioButton } from './components/Form/CLRadioButton.vue';
|
|
23
|
-
export { default as CLSelect } from './components/Form/CLSelect.vue';
|
|
24
|
-
export { default as CLSkeleton } from './components/Loading/CLSkeleton.vue';
|
|
25
|
-
export { default as CLSpinner } from './components/Loading/CLSpinner.vue';
|
|
26
|
-
export { default as CLTable } from './components/Table/CLTable.vue';
|
|
27
|
-
export { default as CLTableBody } from './components/Table/CLTableBody.vue';
|
|
28
|
-
export { default as CLTableCell } from './components/Table/CLTableCell.vue';
|
|
29
|
-
export { default as CLTableFooter } from './components/Table/CLTableFooter.vue';
|
|
30
|
-
export { default as CLTableHeader } from './components/Table/CLTableHeader.vue';
|
|
31
|
-
export { default as CLTableNestedCell } from './components/Table/CLTableNestedCell.vue';
|
|
32
|
-
export { default as CLTableRow } from './components/Table/CLTableRow.vue';
|
|
33
|
-
export { default as CLText } from './components/Typography/CLText.vue';
|
|
34
|
-
export { default as CLTextArea } from './components/Form/CLTextArea.vue';
|
|
35
|
-
export { default as CLThemeProvider } from './components/Theme/CLThemeProvider.vue';
|
|
36
|
-
export { default as CLToast } from './components/Popups/CLToast.vue';
|
|
1
|
+
export { Align as CLAlign, BorderRadius as CLBorderRadius, ButtonTypes as CLButtonTypes, CardTypes as CLCardTypes, Colors as CLColors, ColorVariants as CLColorVariants, HeadingLevels as CLHeadingLevels, HeadingTypes as CLHeadingTypes, IconSizes as CLIconSizes, IconNames as CLIconNames, InputTypes as CLInputTypes, LinkTarget as CLLinkTarget, Loading as CLLoading, Mode as CLMode, Orientation as CLOrientation, Order as CLOrder, PaginationType as CLPaginationType, Placement as CLPlacement, Position as CLPosition, Sizes as CLSizes, TableTypes as CLTableTypes, TextTypes as CLTextTypes } from './types';
|
|
2
|
+
export type { BannerProps as CLBannerProps, CardProps as CLCardProps, GenericFunction as CLGenericFunction, GenericFocusFunction as CLGenericFocusFunction, NavItem as CLNavItem, Palette as CLPalette, Option as CLOption, ThemeConfig as CLThemeConfig, TextHtmlTags as CLTextHtmlTags, ToastProps as CLToastProps } from './types';
|
|
3
|
+
export { CLBadge, CLBanner, CLPill } from './components/Indicators';
|
|
4
|
+
export { CLA11yButton, CLButton } from './components/Buttons';
|
|
5
|
+
export { CLCard, CLCarousel, CLCarouselSlide, CLDisclosure } from './components/Containers';
|
|
6
|
+
export { CLCheckbox, CLInput, CLRadioButton, CLSelect, CLTextArea } from './components/Form';
|
|
7
|
+
export { CLHeading, CLText } from './components/Typography';
|
|
8
|
+
export { CLIcon } from './components/Assets';
|
|
9
|
+
export { CLLink, CLNavLink, CLNavSection } from './components/Navigation';
|
|
10
|
+
export { CLDropdownMenu, CLToast } from './components/Popups';
|
|
11
|
+
export { CLModal } from './components/Modals';
|
|
12
|
+
export { CLSkeleton, CLSpinner } from './components/Loading';
|
|
13
|
+
export { CLTable, CLTableBody, CLTableCell, CLTableFooter, CLTableHeader, CLTableNestedCell, CLTableRow } from './components/Table';
|
|
14
|
+
export { CLThemeProvider } from './components/Theme';
|
|
37
15
|
export { DEFAULT_THEME, useTheme } from './components/Theme/base-theme';
|