@codeandfunction/callaloo 1.13.4 → 1.14.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.
Files changed (39) hide show
  1. package/README.md +11 -3
  2. package/dist/assets/index.css +1 -1
  3. package/dist/components/Buttons/CLButton.vue.d.ts +13 -10
  4. package/dist/components/Buttons/utils.d.ts +7 -0
  5. package/dist/components/Containers/CLCard.vue.d.ts +1 -0
  6. package/dist/components/Containers/utils.d.ts +7 -0
  7. package/dist/components/Form/CLCheckbox.vue.d.ts +2 -2
  8. package/dist/components/Form/CLInput.vue.d.ts +8 -8
  9. package/dist/components/Form/CLInputMessages.vue.d.ts +5 -3
  10. package/dist/components/Form/CLRadioButton.vue.d.ts +2 -2
  11. package/dist/components/Form/CLSelect.vue.d.ts +3 -3
  12. package/dist/components/Form/CLTextArea.vue.d.ts +8 -8
  13. package/dist/components/Form/utils.d.ts +12 -0
  14. package/dist/components/Indicators/utils.d.ts +8 -0
  15. package/dist/components/Loading/utils.d.ts +6 -0
  16. package/dist/components/Modals/CLModal.vue.d.ts +3 -1
  17. package/dist/components/Modals/utils.d.ts +1 -0
  18. package/dist/components/Navigation/CLNavSection.vue.d.ts +1 -0
  19. package/dist/components/Navigation/utils.d.ts +7 -0
  20. package/dist/components/Popups/CLDropdownMenu.vue.d.ts +16 -10
  21. package/dist/components/Popups/{Toast.vue.d.ts → CLToast.vue.d.ts} +1 -0
  22. package/dist/components/Popups/utils.d.ts +4 -0
  23. package/dist/components/Table/utils.d.ts +1 -0
  24. package/dist/components/Theme/CLThemeProvider.vue.d.ts +21 -0
  25. package/dist/components/Theme/base-theme.d.ts +188 -0
  26. package/dist/components/Theme/utils.d.ts +20 -0
  27. package/dist/components/Typography/CLHeading.vue.d.ts +5 -5
  28. package/dist/components/Typography/CLText.vue.d.ts +4 -6
  29. package/dist/components/Typography/utils.d.ts +7 -0
  30. package/dist/composables/useDropdown.d.ts +1 -0
  31. package/dist/composables/useEsc.d.ts +3 -1
  32. package/dist/index.d.ts +5 -3
  33. package/dist/index.js +7202 -4436
  34. package/dist/index.js.map +1 -1
  35. package/dist/types.d.ts +32 -1
  36. package/dist/utils/helper.d.ts +1 -0
  37. package/package.json +37 -29
  38. package/dist/utils/tests.d.ts +0 -9
  39. /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 button. It should be used when there is no discernable text present, or if this is an icon only button. */
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 button. */
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 button. */
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
- }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
112
- [key: string]: any;
113
- }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
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 button. It should be used when there is no discernable text present, or if this is an icon only button. */
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 button. */
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 button. */
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;
@@ -0,0 +1,7 @@
1
+ import { CLThemes } from '../../index';
2
+ interface ThemeProps {
3
+ color: CLThemes;
4
+ }
5
+ export declare const a11yButtonTheme: () => string;
6
+ export declare const buttonTheme: ({ color }: ThemeProps) => string;
7
+ export {};
@@ -22,6 +22,7 @@ declare const __VLS_component: import('vue').DefineComponent<CLCardProps, {}, {}
22
22
  height: string;
23
23
  width: string;
24
24
  active: boolean;
25
+ bordered: boolean;
25
26
  imageAltText: string;
26
27
  imageHeight: string;
27
28
  imageWidth: string;
@@ -0,0 +1,7 @@
1
+ import { CLThemes } from '../../index';
2
+ interface ThemeProps {
3
+ color: CLThemes;
4
+ }
5
+ export declare const cardTheme: ({ color }: ThemeProps) => string;
6
+ export declare const disclosureTheme: () => string;
7
+ export {};
@@ -1,4 +1,4 @@
1
- import { CLBorderRadius, CLGenericFunction, CLGenericFocusFunction, CLMessageType, CLSizes, CLInputThemes } from '../../index';
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?: CLMessageType;
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, CLMessageType, CLSizes, CLInputThemes } from '../../index';
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?: CLMessageType;
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 state is updated. */
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 radiobutton gains focus. */
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 { CLMessageType } from '../../index';
1
+ import { CLMessageThemes } from '../../index';
2
2
  export interface Props {
3
3
  id: string;
4
4
  messages?: string[];
5
- messageType?: CLMessageType;
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<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
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, CLMessageType, CLSizes, CLInputThemes } from '../../index';
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?: CLMessageType;
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, CLMessageType, CLOption, CLSizes } from '../../index';
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?: CLMessageType;
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 radiobutton input state is updated. */
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, CLMessageType, CLSizes, CLInputThemes } from '../../index';
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?: CLMessageType;
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 state is updated. */
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 radiobutton gains focus. */
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,6 @@
1
+ import { CLThemes } from '../../index';
2
+ interface ThemeProps {
3
+ color: CLThemes;
4
+ }
5
+ export declare const spinnerTheme: ({ color }: ThemeProps) => string;
6
+ export {};
@@ -20,7 +20,9 @@ declare function __VLS_template(): {
20
20
  body?(_: {}): any;
21
21
  footer?(_: {}): any;
22
22
  };
23
- refs: {};
23
+ refs: {
24
+ modalWindow: HTMLDivElement;
25
+ };
24
26
  attrs: Partial<{}>;
25
27
  };
26
28
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
@@ -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;
@@ -0,0 +1,7 @@
1
+ import { CLThemes } from '../../index';
2
+ interface BaseLinkProps {
3
+ color: CLThemes;
4
+ underline?: boolean;
5
+ }
6
+ export declare const base_link: ({ color, underline, }: BaseLinkProps) => string;
7
+ export {};
@@ -13,7 +13,7 @@ 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
19
  /** Sets the icon to be displayed after the anchor button label. The property can be one of `CLIconNames`, e.g. `CLIconNames.ChevronDown`. */
@@ -122,13 +122,16 @@ declare function __VLS_template(): {
122
122
  type: BooleanConstructor;
123
123
  default: boolean;
124
124
  };
125
- }>> & Readonly<{}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
126
- [key: string]: any;
127
- }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
125
+ }>> & Readonly<{}>, {}, {
126
+ hasSlots: boolean;
127
+ }, {}, {
128
+ checkForSlots(): boolean;
129
+ getSpinnerSize(): CLSizes.Tiny | CLSizes.Small | CLSizes.Medium;
130
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
131
+ link: boolean;
128
132
  rounded: boolean;
129
133
  testId: string;
130
134
  type: import('../../types').ButtonTypes;
131
- link: boolean;
132
135
  elevated: boolean;
133
136
  theme: CLThemes;
134
137
  busy: boolean;
@@ -229,13 +232,16 @@ declare function __VLS_template(): {
229
232
  type: BooleanConstructor;
230
233
  default: boolean;
231
234
  };
232
- }>> & Readonly<{}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
233
- [key: string]: any;
234
- }>, {}, {}, {}, {
235
+ }>> & Readonly<{}>, {}, {
236
+ hasSlots: boolean;
237
+ }, {}, {
238
+ checkForSlots(): boolean;
239
+ getSpinnerSize(): CLSizes.Tiny | CLSizes.Small | CLSizes.Medium;
240
+ }, {
241
+ link: boolean;
235
242
  rounded: boolean;
236
243
  testId: string;
237
244
  type: import('../../types').ButtonTypes;
238
- link: boolean;
239
245
  elevated: boolean;
240
246
  theme: CLThemes;
241
247
  busy: boolean;
@@ -259,7 +265,7 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
259
265
  iconAfterSize: CLIconSizes;
260
266
  buttonSize: CLSizes;
261
267
  buttonTheme: CLThemes;
262
- containerTheme: CLThemes.Light | CLThemes.Dark;
268
+ containerTheme: CLThemes.Light | CLThemes.Dark | CLThemes.Transparent | CLThemes.Outline;
263
269
  contentWidth: string;
264
270
  isOpen: boolean;
265
271
  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,4 @@
1
+ import { CLThemes } from '../../index';
2
+ export declare const toastTheme: ({ color }: {
3
+ color?: CLThemes | undefined;
4
+ }) => string;
@@ -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,20 @@
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
+ shadowWidth?: string;
15
+ shadowColor?: string;
16
+ }
17
+ export declare const focusTheme: ({ borderColor, outlineWidth, outlineOffset, shadowWidth, shadowColor, }: FocusProps) => string;
18
+ export declare const getThemeKeys: (theme: CLThemes) => CLThemeKeys;
19
+ export declare const getOutlineColor: (outlineColor: string) => CLThemeKeys;
20
+ export {};
@@ -18,7 +18,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
18
18
  type: StringConstructor;
19
19
  default: string;
20
20
  };
21
- /** Set the theme of the heading. The property can be one of `CLHeadingThemes`, e.g. `CLHeadingThemes.Dark` */
21
+ /** Set the theme of the heading. The property can be one of `CLHeadingThemes`, e.g. `CLThemes.Dark` */
22
22
  theme: {
23
23
  type: PropType<CLHeadingThemes>;
24
24
  default: CLThemes;
@@ -28,9 +28,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
28
28
  type: PropType<CLHeadingTypes>;
29
29
  default: CLHeadingTypes;
30
30
  };
31
- }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
32
- [key: string]: any;
33
- }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
31
+ }>, {}, {}, {}, {
32
+ getLevel(): CLHeadingLevels;
33
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
34
34
  /** Set the horizontal alignment of content. The property can be one of `CLAlign`, e.g. `CLAlign.Left` */
35
35
  align: {
36
36
  type: PropType<CLAlign>;
@@ -45,7 +45,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
45
45
  type: StringConstructor;
46
46
  default: string;
47
47
  };
48
- /** Set the theme of the heading. The property can be one of `CLHeadingThemes`, e.g. `CLHeadingThemes.Dark` */
48
+ /** Set the theme of the heading. The property can be one of `CLHeadingThemes`, e.g. `CLThemes.Dark` */
49
49
  theme: {
50
50
  type: PropType<CLHeadingThemes>;
51
51
  default: CLThemes;