@codeandfunction/callaloo 1.13.1 → 1.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -1
- package/dist/assets/index.css +1 -1
- package/dist/components/Assets/Icon.vue.d.ts +7 -3
- package/dist/components/Buttons/A11yButton.vue.d.ts +4 -0
- package/dist/components/Buttons/Button.vue.d.ts +61 -6
- package/dist/components/Containers/Card.vue.d.ts +2 -2
- package/dist/components/Containers/Carousel/Carousel.vue.d.ts +24 -1
- package/dist/components/Containers/Carousel/CarouselNavigation.vue.d.ts +15 -8
- package/dist/components/Containers/Carousel/CarouselSlide.vue.d.ts +16 -0
- package/dist/components/Containers/Disclosure.vue.d.ts +23 -4
- package/dist/components/Form/Checkbox.vue.d.ts +48 -3
- package/dist/components/Form/Input.vue.d.ts +72 -3
- package/dist/components/Form/RadioButton.vue.d.ts +48 -3
- package/dist/components/Form/Select.vue.d.ts +50 -3
- package/dist/components/Form/TextArea.vue.d.ts +68 -3
- package/dist/components/Indicators/Badge.vue.d.ts +8 -0
- package/dist/components/Indicators/Banner.vue.d.ts +3 -2
- package/dist/components/Indicators/Pill.vue.d.ts +13 -3
- package/dist/components/Loading/Skeleton.vue.d.ts +8 -1
- package/dist/components/Loading/Spinner.vue.d.ts +9 -2
- package/dist/components/Modals/CLModal.vue.d.ts +12 -3
- package/dist/components/Navigation/Link.vue.d.ts +12 -3
- package/dist/components/Navigation/NavLink.vue.d.ts +12 -3
- package/dist/components/Navigation/NavSection.vue.d.ts +5 -1
- package/dist/components/Popups/DropdownMenu.vue.d.ts +36 -11
- package/dist/components/Popups/Toast.vue.d.ts +3 -2
- package/dist/components/Table/Table.vue.d.ts +12 -0
- package/dist/components/Table/TableCell.vue.d.ts +14 -7
- package/dist/components/Table/TableRow.vue.d.ts +3 -1
- package/dist/components/Typography/Heading.vue.d.ts +36 -14
- package/dist/components/Typography/Text.vue.d.ts +40 -16
- package/dist/constants.d.ts +22 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +996 -595
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +98 -54
- package/dist/{helper.d.ts → utils/helper.d.ts} +9 -2
- package/dist/utils/tests.d.ts +9 -0
- package/package.json +61 -33
|
@@ -1,8 +1,55 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { CLBorderRadius, CLGenericFocusFunction, CLGenericFunction, CLInputThemes, CLMessageType, CLOption, CLSizes } from '../../index';
|
|
2
|
+
interface Props {
|
|
3
|
+
/** Sets the aria-label on the input. It should be used when there is no label present. */
|
|
4
|
+
ariaLabel?: string;
|
|
5
|
+
/** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
|
|
6
|
+
borderRadius?: CLBorderRadius;
|
|
7
|
+
/** A `boolean` value which dictates the busy state of the select. */
|
|
8
|
+
busy?: boolean;
|
|
9
|
+
/** Set the disabled state. */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** When set to true, sets the width of the select to 100% of it's parent. */
|
|
12
|
+
fluid?: boolean;
|
|
13
|
+
/** The form whom the select belongs to. Useful for when a select is not within a `form` element. */
|
|
14
|
+
form?: string;
|
|
15
|
+
/** A unique identifier, this is required. */
|
|
16
|
+
id: string;
|
|
17
|
+
/** The label text to be displayed which is associated to the select. */
|
|
18
|
+
label?: string;
|
|
19
|
+
/** An array of messages to be displayed. */
|
|
20
|
+
messages?: string[];
|
|
21
|
+
/** The message type. The property can be one of `CLMessageType`, e.g. `CLMessageType.Error`. */
|
|
22
|
+
messageType?: CLMessageType;
|
|
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
|
+
name: string;
|
|
25
|
+
/** A list of options */
|
|
26
|
+
options: CLOption[];
|
|
27
|
+
/** Set the required state. */
|
|
28
|
+
required?: boolean;
|
|
29
|
+
/** When set to `false` it will not render with rounded corners. */
|
|
30
|
+
rounded?: boolean;
|
|
31
|
+
/** Sets the select size. The property can be one of `CLSizes`, e.g. `CLSizes.Medium`. */
|
|
32
|
+
size?: CLSizes;
|
|
33
|
+
/** Sets a custom ID used for unit tests. */
|
|
34
|
+
testId?: string;
|
|
35
|
+
/** Sets the style/theme. The property can be one of `CLThemes`, e.g. `CLThemes.Primary`. */
|
|
36
|
+
theme?: CLInputThemes;
|
|
37
|
+
/** Set the default value for the select. */
|
|
38
|
+
value?: string | number;
|
|
39
|
+
/** A callback function which handles when the select loses focus. */
|
|
40
|
+
onBlur?: CLGenericFocusFunction;
|
|
41
|
+
/** A callback function which handles when the select is clicked. */
|
|
42
|
+
onChange?: CLGenericFunction;
|
|
43
|
+
/** A callback function which handles when the select gains focus. */
|
|
44
|
+
onFocus?: CLGenericFocusFunction;
|
|
45
|
+
/** A callback function which handles when the radiobutton input state is updated. */
|
|
46
|
+
onInput?: CLGenericFunction;
|
|
47
|
+
}
|
|
48
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
3
49
|
fluid: boolean;
|
|
4
50
|
rounded: boolean;
|
|
5
|
-
|
|
51
|
+
testId: string;
|
|
52
|
+
theme: CLInputThemes;
|
|
6
53
|
size: CLSizes;
|
|
7
54
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
8
55
|
export default _default;
|
|
@@ -1,8 +1,73 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { CLBorderRadius, CLGenericFunction, CLGenericFocusFunction, CLMessageType, CLSizes, CLInputThemes } from '../../index';
|
|
2
|
+
interface Props {
|
|
3
|
+
/** Sets the aria-label on the textarea. It should be used when there is no label present. */
|
|
4
|
+
ariaLabel?: string;
|
|
5
|
+
/** See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#autocomplete for more details. */
|
|
6
|
+
autoComplete?: boolean;
|
|
7
|
+
/** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
|
|
8
|
+
borderRadius?: CLBorderRadius;
|
|
9
|
+
/** A `boolean` value which dictates the busy state of the textarea. */
|
|
10
|
+
busy?: boolean;
|
|
11
|
+
/** Set the exact number of columns, to specify the size of the rendered textarea. */
|
|
12
|
+
cols?: number;
|
|
13
|
+
/** Set the disabled state. */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** When set to true, sets the width of the TextArea to 100% of it's parent. */
|
|
16
|
+
fluid?: boolean;
|
|
17
|
+
/** The form whom the textarea belongs to. Useful for when a textarea is not within a `form` element. */
|
|
18
|
+
form?: string;
|
|
19
|
+
/** A unique identifier, this is required. */
|
|
20
|
+
id: string;
|
|
21
|
+
/** The label text to be displayed which is associated to the textarea. */
|
|
22
|
+
label?: string;
|
|
23
|
+
/** The maximum amount of characters allowed for entry. */
|
|
24
|
+
maxLength?: number;
|
|
25
|
+
/** The minimum amount of characters required for entry. */
|
|
26
|
+
minLength?: number;
|
|
27
|
+
/** An array of messages to be displayed. */
|
|
28
|
+
messages?: string[];
|
|
29
|
+
/** The message type. The property can be one of `CLMessageType`, e.g. `CLMessageType.Error`. */
|
|
30
|
+
messageType?: CLMessageType;
|
|
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
|
+
name: string;
|
|
33
|
+
/** A regexp pattern that can be used for validation. */
|
|
34
|
+
pattern?: string;
|
|
35
|
+
/** The default text shown when there is no value. Useful for providing a hint of what type of textarea is expected. */
|
|
36
|
+
placeholder?: string;
|
|
37
|
+
/** When set to `true` the textarea cannot be edited. */
|
|
38
|
+
readonly?: boolean;
|
|
39
|
+
/** Set the required state. */
|
|
40
|
+
required?: boolean;
|
|
41
|
+
/** When set to `true` the textarea will be able to be resized. */
|
|
42
|
+
resizable?: boolean;
|
|
43
|
+
/** When set to `false` it will not render with rounded corners. */
|
|
44
|
+
rounded?: boolean;
|
|
45
|
+
/** Set the exact number of rows, to specify the size of the rendered textarea */
|
|
46
|
+
rows?: number;
|
|
47
|
+
/** Sets the textarea size. The property can be one of `CLSizes`, e.g. `CLSizes.Medium`. */
|
|
48
|
+
size?: CLSizes;
|
|
49
|
+
/** A hint provided to browsers that support it, whether or not to check for spelling errors. */
|
|
50
|
+
spellCheck?: boolean;
|
|
51
|
+
/** Sets a custom ID used for unit tests. */
|
|
52
|
+
testId?: string;
|
|
53
|
+
/** Sets the style/theme. The property can be one of `CLThemes`, e.g. `CLThemes.Primary`. */
|
|
54
|
+
theme?: CLInputThemes;
|
|
55
|
+
/** Set the value for the textarea when it's checked. */
|
|
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. */
|
|
60
|
+
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. */
|
|
64
|
+
onChange?: CLGenericFunction;
|
|
65
|
+
}
|
|
66
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
3
67
|
fluid: boolean;
|
|
4
68
|
rounded: boolean;
|
|
5
|
-
|
|
69
|
+
testId: string;
|
|
70
|
+
theme: CLInputThemes;
|
|
6
71
|
size: CLSizes;
|
|
7
72
|
resizable: boolean;
|
|
8
73
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
import { CLBadgeThemes, CLBorderRadius } from '../../index';
|
|
2
2
|
export interface Props {
|
|
3
|
+
/** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
|
|
3
4
|
borderRadius?: CLBorderRadius;
|
|
5
|
+
/** The count to display in the Badge. */
|
|
4
6
|
count?: number;
|
|
7
|
+
/** The `elevated` property displays a shadow to indicate elevation. */
|
|
5
8
|
elevated?: boolean;
|
|
9
|
+
/** The maximum amount of characters to display. Once the amount characters goes beyond the limit, a plus sign is added after the displayed characters. */
|
|
6
10
|
limit?: number;
|
|
11
|
+
/** Sets a custom ID used for unit tests. */
|
|
12
|
+
testId?: string;
|
|
13
|
+
/** The theme of the Badge. The property can be one of `CLBadgeThemes`, e.g. `CLBadgeThemes.Default`. */
|
|
7
14
|
theme?: CLBadgeThemes;
|
|
8
15
|
}
|
|
9
16
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
17
|
+
testId: string;
|
|
10
18
|
elevated: boolean;
|
|
11
19
|
theme: CLBadgeThemes;
|
|
12
20
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { CLAlign, CLBannerProps } 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
3
|
rounded: boolean;
|
|
4
|
+
testId: string;
|
|
4
5
|
theme: import('../../types').BannerThemes;
|
|
6
|
+
align: CLAlign;
|
|
5
7
|
busy: boolean;
|
|
6
|
-
width: string;
|
|
7
8
|
height: string;
|
|
8
|
-
|
|
9
|
+
width: string;
|
|
9
10
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
11
|
export default _default;
|
|
@@ -1,15 +1,25 @@
|
|
|
1
|
-
import { CLIconNames, CLPillThemes } from '../../index';
|
|
1
|
+
import { CLGenericFunction, CLIconNames, CLPillThemes } from '../../index';
|
|
2
2
|
export interface Props {
|
|
3
|
-
|
|
3
|
+
/** The count to display in the Pill. */
|
|
4
4
|
count?: number;
|
|
5
|
+
/** The `elevated` property displays a shadow to indicate elevation. */
|
|
5
6
|
elevated?: boolean;
|
|
7
|
+
/** Sets the icon which is positioned before the Pill's label. */
|
|
6
8
|
icon?: CLIconNames;
|
|
9
|
+
/** The text to be displayed as the label. */
|
|
10
|
+
label: string;
|
|
11
|
+
/** A callback function to handle click events. */
|
|
12
|
+
onClick?: CLGenericFunction;
|
|
13
|
+
/** When set to `false` it will not render a Pill with rounded corners. */
|
|
7
14
|
rounded?: boolean;
|
|
15
|
+
/** Sets a custom ID used for unit tests. */
|
|
16
|
+
testId?: string;
|
|
17
|
+
/** The theme of the Pill. The property can be one of `CLPillThemes`, e.g. `CLPillThemes.Default`. */
|
|
8
18
|
theme?: CLPillThemes;
|
|
9
|
-
onClick?: () => void;
|
|
10
19
|
}
|
|
11
20
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
12
21
|
rounded: boolean;
|
|
22
|
+
testId: string;
|
|
13
23
|
elevated: boolean;
|
|
14
24
|
theme: CLPillThemes;
|
|
15
25
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import { CLBorderRadius } from '../../index';
|
|
2
2
|
export interface Props {
|
|
3
|
+
/** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
|
|
3
4
|
borderRadius?: CLBorderRadius;
|
|
5
|
+
/** Sets the height of the Skeleton, it's default value is `100%`. */
|
|
4
6
|
height?: string;
|
|
7
|
+
/** When set to `false` it will not render with rounded corners. */
|
|
5
8
|
rounded?: boolean;
|
|
9
|
+
/** Sets a custom ID used for unit tests. */
|
|
10
|
+
testId?: string;
|
|
11
|
+
/** Sets the width of the Skeleton, it's default value is `100%`. */
|
|
6
12
|
width?: string;
|
|
7
13
|
}
|
|
8
14
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
9
15
|
rounded: boolean;
|
|
10
|
-
|
|
16
|
+
testId: string;
|
|
11
17
|
height: string;
|
|
18
|
+
width: string;
|
|
12
19
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
20
|
export default _default;
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { CLAlign, CLPosition, CLSpinnerThemes, CLSizes } from '../../index';
|
|
2
2
|
export interface Props {
|
|
3
|
-
|
|
4
|
-
size?: CLSizes;
|
|
3
|
+
/** Set the horizontal alignment of the Spinner on the page. The property can be one of `CLAlign`, e.g. `CLAlign.Left` */
|
|
5
4
|
align?: CLAlign;
|
|
5
|
+
/** Sets the css display property of the Spinner. The property can be one of `CLPosition`, e.g. `CLPosition.Absolute` */
|
|
6
6
|
position?: CLPosition;
|
|
7
|
+
/** Sets the size of the Spinner. The property can be one of `CLSizes`, e.g. `CLSizes.Medium` */
|
|
8
|
+
size?: CLSizes;
|
|
9
|
+
/** Sets a custom ID used for unit tests. */
|
|
10
|
+
testId?: string;
|
|
11
|
+
/** Sets the theme of the Spinner. The property can be one of `CLSpinnerThemes`, e.g. `CLSpinnerThemes.Primary` */
|
|
12
|
+
theme?: CLSpinnerThemes;
|
|
7
13
|
}
|
|
8
14
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
15
|
+
testId: string;
|
|
9
16
|
theme: CLSpinnerThemes;
|
|
10
17
|
align: CLAlign;
|
|
11
18
|
size: CLSizes;
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
import { CLBorderRadius } from '../../index';
|
|
1
|
+
import { CLBorderRadius, CLGenericFunction } from '../../index';
|
|
2
2
|
interface Props {
|
|
3
|
+
/** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
|
|
3
4
|
borderRadius?: CLBorderRadius;
|
|
5
|
+
/** When set to `true`, the Modal spans the available width and height of the page. */
|
|
4
6
|
fullscreen?: boolean;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
+
/** When set to `true`, the Modal is visible. */
|
|
8
|
+
isOpen?: boolean;
|
|
9
|
+
/** A callback function to be called when the Modal is closed. */
|
|
10
|
+
onClose?: CLGenericFunction;
|
|
11
|
+
/** Sets a custom ID used for unit tests. */
|
|
12
|
+
testId?: string;
|
|
13
|
+
/** The title content of the Modal. */
|
|
7
14
|
title?: string;
|
|
15
|
+
/** The z-index of the Modal. */
|
|
8
16
|
zIndex?: number;
|
|
9
17
|
}
|
|
10
18
|
declare function __VLS_template(): {
|
|
@@ -17,6 +25,7 @@ declare function __VLS_template(): {
|
|
|
17
25
|
};
|
|
18
26
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
27
|
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
28
|
+
testId: string;
|
|
20
29
|
borderRadius: CLBorderRadius;
|
|
21
30
|
isOpen: boolean;
|
|
22
31
|
zIndex: number;
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
import { CLLinkTarget, CLSimpleThemes } from '../../index';
|
|
1
|
+
import { CLLinkTarget, CLSimpleThemes, CLGenericFunction } from '../../index';
|
|
2
2
|
export interface Props {
|
|
3
|
+
/** Sets the aria-label on the Link element. */
|
|
3
4
|
ariaLabel?: string;
|
|
5
|
+
/** Sets the external attribute on the Link element. If set, it adds an icon indicating that the link will open a new tab/window. */
|
|
4
6
|
external?: boolean;
|
|
7
|
+
/** Sets the href attribute on the Link element. */
|
|
5
8
|
href?: string;
|
|
6
|
-
|
|
9
|
+
/** A callback function to handle click events. */
|
|
10
|
+
onClick?: CLGenericFunction;
|
|
11
|
+
/** Sets the rel attribute on the Link element. */
|
|
7
12
|
rel?: string;
|
|
13
|
+
/** Sets the target attribute on the Link element. The property can be one of `CLLinkTarget`, e.g. `CLLinkTarget.Self` */
|
|
8
14
|
target?: CLLinkTarget;
|
|
9
|
-
|
|
15
|
+
/** Sets a custom ID used for unit tests. */
|
|
10
16
|
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
|
+
/** When set to `true`, it adds an underline to the link. */
|
|
11
20
|
underline?: boolean;
|
|
12
21
|
}
|
|
13
22
|
declare function __VLS_template(): {
|
|
@@ -1,14 +1,23 @@
|
|
|
1
|
-
import { CLLinkTarget, CLSimpleThemes } from '../../index';
|
|
1
|
+
import { CLLinkTarget, CLSimpleThemes, CLGenericFunction } from '../../index';
|
|
2
2
|
export interface Props {
|
|
3
|
+
/** Sets the aria-label on the NavLink element. */
|
|
3
4
|
ariaLabel?: string;
|
|
5
|
+
/** Sets the external attribute on the NavLink element. If set, it adds an icon indicating that the link will open a new tab/window. */
|
|
4
6
|
external?: boolean;
|
|
7
|
+
/** Sets the href attribute on the Link element. */
|
|
5
8
|
href?: string;
|
|
9
|
+
/** Sets the unique ID of the NavLink element. */
|
|
6
10
|
id?: string;
|
|
7
|
-
|
|
8
|
-
onClick?:
|
|
11
|
+
/** A callback function to handle click events. */
|
|
12
|
+
onClick?: CLGenericFunction;
|
|
13
|
+
/** Sets the rel attribute on the NavLink element. */
|
|
9
14
|
rel?: string;
|
|
15
|
+
/** Sets the target attribute on the NavLink element. The property can be one of `CLLinkTarget`, e.g. `CLLinkTarget.Self` */
|
|
10
16
|
target?: CLLinkTarget;
|
|
17
|
+
/** Sets a custom ID used for unit tests. */
|
|
11
18
|
testId?: string;
|
|
19
|
+
/** Sets the theme of the NavLink element. The property can be one of `CLSimpleThemes`, e.g. `CLThemes.Default` */
|
|
20
|
+
theme?: CLSimpleThemes;
|
|
12
21
|
}
|
|
13
22
|
declare function __VLS_template(): {
|
|
14
23
|
slots: {
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { CLNavItem, CLOrientation, CLSimpleThemes } from '../../index';
|
|
2
2
|
export interface Props {
|
|
3
|
+
/** An array of `CLNavItem` objects that will be rendered as a list of navigation items. */
|
|
3
4
|
navItems: CLNavItem[];
|
|
4
|
-
|
|
5
|
+
/** Sets a custom ID used for unit tests. */
|
|
5
6
|
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
|
+
/** Sets the orientation of the navigation section. The property can be one of `CLOrientation`, e.g. `CLOrientation.Horizontal` */
|
|
6
10
|
type?: CLOrientation;
|
|
7
11
|
}
|
|
8
12
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
@@ -1,21 +1,38 @@
|
|
|
1
|
-
import { CLBorderRadius, CLIconNames, CLPlacement, CLSizes, CLThemes } from '../../index';
|
|
1
|
+
import { CLBorderRadius, CLIconNames, CLIconSizes, CLPlacement, CLSizes, CLThemes } from '../../index';
|
|
2
2
|
interface Props {
|
|
3
|
+
/** Sets the aria-label on the anchor button. */
|
|
3
4
|
buttonAriaLabel: string;
|
|
5
|
+
/** Set the border radius size on the anchor button. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
|
|
4
6
|
buttonBorderRadius?: CLBorderRadius;
|
|
7
|
+
/** Sets the anchor button size. The property can be one of `CLSizes`, e.g. `CLSizes.Medium`. */
|
|
5
8
|
buttonSize?: CLSizes;
|
|
9
|
+
/** Sets the style/theme of the anchor button. The property can be one of `CLThemes`, e.g. `CLThemes.Primary`. */
|
|
6
10
|
buttonTheme?: CLThemes;
|
|
11
|
+
/** A callback function to be called when the DropdownMenu is closed. */
|
|
7
12
|
onCloseHandler?: () => void;
|
|
13
|
+
/** Set the border radius size on the content container. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
|
|
8
14
|
containerBorderRadius?: CLBorderRadius;
|
|
15
|
+
/** Sets the style/theme of the content container. The property can be one of `CLThemes`, e.g. `CLThemes.Primary`. */
|
|
9
16
|
containerTheme?: CLThemes.Light | CLThemes.Dark;
|
|
17
|
+
/** Sets the width of the content container. */
|
|
10
18
|
contentWidth?: string;
|
|
19
|
+
/** Sets the icon to be displayed after the anchor button label. The property can be one of `CLIconNames`, e.g. `CLIconNames.ChevronDown`. */
|
|
11
20
|
iconAfter?: CLIconNames;
|
|
21
|
+
/** Sets the icon to be displayed before the anchor button label. The property can be one of `CLIconNames`, e.g. `CLIconNames.Menu`. */
|
|
12
22
|
iconBefore?: CLIconNames;
|
|
13
|
-
|
|
14
|
-
|
|
23
|
+
/** Sets the size of the icon displayed after the anchor button label. The property can be one of `CLIconSizes`, e.g. `CLIconSizes.Tiny`. */
|
|
24
|
+
iconAfterSize?: CLIconSizes;
|
|
25
|
+
/** Sets the size of the icon displayed before the anchor button label. The property can be one of `CLIconSizes`, e.g. `CLIconSizes.Tiny`. */
|
|
26
|
+
iconSize?: CLIconSizes;
|
|
27
|
+
/** Sets the initial open state of the DropdownMenu. */
|
|
15
28
|
isOpen?: boolean;
|
|
29
|
+
/** Sets the label on the anchor button. */
|
|
16
30
|
label?: string;
|
|
31
|
+
/** A callback function to be called when the DropdownMenu is opened. */
|
|
17
32
|
onOpenHandler?: () => void;
|
|
33
|
+
/** Sets the placement of the content container. The property can be one of `CLPlacement`, e.g. `CLPlacement.BottomStart`. */
|
|
18
34
|
placement?: CLPlacement;
|
|
35
|
+
/** Sets the z-index of the content container. */
|
|
19
36
|
zIndex?: number;
|
|
20
37
|
}
|
|
21
38
|
declare function __VLS_template(): {
|
|
@@ -58,10 +75,12 @@ declare function __VLS_template(): {
|
|
|
58
75
|
type: import('vue').PropType<CLIconNames>;
|
|
59
76
|
};
|
|
60
77
|
iconSize: {
|
|
61
|
-
type: import('vue').PropType<
|
|
78
|
+
type: import('vue').PropType<CLIconSizes>;
|
|
79
|
+
default: CLIconSizes;
|
|
62
80
|
};
|
|
63
81
|
iconAfterSize: {
|
|
64
|
-
type: import('vue').PropType<
|
|
82
|
+
type: import('vue').PropType<CLIconSizes>;
|
|
83
|
+
default: CLIconSizes;
|
|
65
84
|
};
|
|
66
85
|
link: {
|
|
67
86
|
type: BooleanConstructor;
|
|
@@ -113,9 +132,11 @@ declare function __VLS_template(): {
|
|
|
113
132
|
elevated: boolean;
|
|
114
133
|
theme: CLThemes;
|
|
115
134
|
busy: boolean;
|
|
116
|
-
width: string;
|
|
117
135
|
height: string;
|
|
136
|
+
width: string;
|
|
118
137
|
alignContent: import('../../types').Align;
|
|
138
|
+
iconSize: CLIconSizes;
|
|
139
|
+
iconAfterSize: CLIconSizes;
|
|
119
140
|
pill: boolean;
|
|
120
141
|
size: CLSizes;
|
|
121
142
|
wrap: boolean;
|
|
@@ -161,10 +182,12 @@ declare function __VLS_template(): {
|
|
|
161
182
|
type: import('vue').PropType<CLIconNames>;
|
|
162
183
|
};
|
|
163
184
|
iconSize: {
|
|
164
|
-
type: import('vue').PropType<
|
|
185
|
+
type: import('vue').PropType<CLIconSizes>;
|
|
186
|
+
default: CLIconSizes;
|
|
165
187
|
};
|
|
166
188
|
iconAfterSize: {
|
|
167
|
-
type: import('vue').PropType<
|
|
189
|
+
type: import('vue').PropType<CLIconSizes>;
|
|
190
|
+
default: CLIconSizes;
|
|
168
191
|
};
|
|
169
192
|
link: {
|
|
170
193
|
type: BooleanConstructor;
|
|
@@ -216,9 +239,11 @@ declare function __VLS_template(): {
|
|
|
216
239
|
elevated: boolean;
|
|
217
240
|
theme: CLThemes;
|
|
218
241
|
busy: boolean;
|
|
219
|
-
width: string;
|
|
220
242
|
height: string;
|
|
243
|
+
width: string;
|
|
221
244
|
alignContent: import('../../types').Align;
|
|
245
|
+
iconSize: CLIconSizes;
|
|
246
|
+
iconAfterSize: CLIconSizes;
|
|
222
247
|
pill: boolean;
|
|
223
248
|
size: CLSizes;
|
|
224
249
|
wrap: boolean;
|
|
@@ -230,8 +255,8 @@ declare function __VLS_template(): {
|
|
|
230
255
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
231
256
|
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
232
257
|
iconAfter: CLIconNames;
|
|
233
|
-
iconSize:
|
|
234
|
-
iconAfterSize:
|
|
258
|
+
iconSize: CLIconSizes;
|
|
259
|
+
iconAfterSize: CLIconSizes;
|
|
235
260
|
buttonSize: CLSizes;
|
|
236
261
|
buttonTheme: CLThemes;
|
|
237
262
|
containerTheme: CLThemes.Light | CLThemes.Dark;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
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
|
+
testId: string;
|
|
4
5
|
width: string;
|
|
5
|
-
iconSize:
|
|
6
|
+
iconSize: CLIconSizes;
|
|
6
7
|
dismissTimer: number;
|
|
7
8
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
8
9
|
export default _default;
|
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
import { CLBorderRadius, CLTableTypes } from '../../index';
|
|
2
2
|
export interface Props {
|
|
3
|
+
/** When set to `true` adds borders to the entire table and its rows and columns. */
|
|
3
4
|
bordered?: boolean;
|
|
5
|
+
/** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
|
|
4
6
|
borderRadius?: CLBorderRadius;
|
|
7
|
+
/** Customize the width of each column. */
|
|
5
8
|
colWidths?: string[];
|
|
9
|
+
/** Sets the unique ID of the Table element. */
|
|
6
10
|
id?: string;
|
|
11
|
+
/** When set to `false` it will not render with rounded corners. */
|
|
7
12
|
rounded?: boolean;
|
|
13
|
+
/** Sets the height of each row. */
|
|
8
14
|
rowHeight?: string;
|
|
15
|
+
/** When set to `true` adds alternating background colors to the rows. */
|
|
9
16
|
striped?: boolean;
|
|
17
|
+
/** Sets a custom ID used for unit tests. */
|
|
18
|
+
testId?: string;
|
|
19
|
+
/** Sets the type of the table. The property can be one of `CLTableTypes`, e.g. `CLTableTypes.Default`. */
|
|
10
20
|
type?: CLTableTypes;
|
|
21
|
+
/** When set to `true` adds vertical lines to the table. */
|
|
11
22
|
withVerticalLines?: boolean;
|
|
12
23
|
}
|
|
13
24
|
declare function __VLS_template(): {
|
|
@@ -20,6 +31,7 @@ declare function __VLS_template(): {
|
|
|
20
31
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
32
|
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
22
33
|
rounded: boolean;
|
|
34
|
+
testId: string;
|
|
23
35
|
type: CLTableTypes;
|
|
24
36
|
id: string;
|
|
25
37
|
rowHeight: string;
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
+
import { CLGenericFunction } from '../../index';
|
|
1
2
|
export interface Props {
|
|
2
|
-
|
|
3
|
-
|
|
3
|
+
/** The number of columns that the cell should span. */
|
|
4
|
+
colSpan?: number;
|
|
5
|
+
/** When set to `true` sets the horizontal alignment of the cell content to right. */
|
|
4
6
|
isAction?: boolean;
|
|
7
|
+
/** When set to `true` adds a background color to the cell to bring more attention to it. */
|
|
5
8
|
isActive?: boolean;
|
|
6
|
-
|
|
7
|
-
|
|
9
|
+
/** When set to `true` bolds any text content within the cell. */
|
|
10
|
+
isHeader?: boolean;
|
|
11
|
+
/** When set to `true` aligns the cell content to the right. */
|
|
12
|
+
isNumber?: boolean;
|
|
13
|
+
/** The function to call when the cell is clicked. */
|
|
14
|
+
onClick?: CLGenericFunction;
|
|
8
15
|
}
|
|
9
16
|
declare function __VLS_template(): {
|
|
10
17
|
slots: {
|
|
@@ -18,11 +25,11 @@ declare function __VLS_template(): {
|
|
|
18
25
|
};
|
|
19
26
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
27
|
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
21
|
-
|
|
22
|
-
isNumber: boolean;
|
|
28
|
+
colSpan: number;
|
|
23
29
|
isAction: boolean;
|
|
24
30
|
isActive: boolean;
|
|
25
|
-
|
|
31
|
+
isHeader: boolean;
|
|
32
|
+
isNumber: boolean;
|
|
26
33
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
34
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
35
|
export default _default;
|
|
@@ -1,40 +1,62 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { CLAlign, CLHeadingLevels, CLHeadingTypes, CLHeadingThemes, CLThemes } from '../../index';
|
|
3
|
+
/**
|
|
4
|
+
* The `<CLHeading />` component renders text as a heading element.
|
|
5
|
+
*/
|
|
3
6
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
-
|
|
5
|
-
type: PropType<CLHeadingTypes>;
|
|
6
|
-
default: CLHeadingTypes;
|
|
7
|
-
};
|
|
8
|
-
theme: {
|
|
9
|
-
type: PropType<CLHeadingThemes>;
|
|
10
|
-
default: CLThemes;
|
|
11
|
-
};
|
|
7
|
+
/** Set the horizontal alignment of content. The property can be one of `CLAlign`, e.g. `CLAlign.Left` */
|
|
12
8
|
align: {
|
|
13
9
|
type: PropType<CLAlign>;
|
|
14
10
|
default: CLAlign;
|
|
15
11
|
};
|
|
12
|
+
/** Set the heading level. The property can be one of `CLHeadingLevels`, e.g. `CLHeadingLevels.H1` */
|
|
16
13
|
level: {
|
|
17
14
|
type: PropType<CLHeadingLevels>;
|
|
18
15
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
type: PropType<CLHeadingTypes>;
|
|
24
|
-
default: CLHeadingTypes;
|
|
16
|
+
/** Sets a custom ID used for unit tests. */
|
|
17
|
+
testId: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
25
20
|
};
|
|
21
|
+
/** Set the theme of the heading. The property can be one of `CLHeadingThemes`, e.g. `CLHeadingThemes.Dark` */
|
|
26
22
|
theme: {
|
|
27
23
|
type: PropType<CLHeadingThemes>;
|
|
28
24
|
default: CLThemes;
|
|
29
25
|
};
|
|
26
|
+
/** Set the type of the heading. The property can be one of `CLHeadingTypes`, e.g. `CLHeadingTypes.Title` */
|
|
27
|
+
type: {
|
|
28
|
+
type: PropType<CLHeadingTypes>;
|
|
29
|
+
default: CLHeadingTypes;
|
|
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<{
|
|
34
|
+
/** Set the horizontal alignment of content. The property can be one of `CLAlign`, e.g. `CLAlign.Left` */
|
|
30
35
|
align: {
|
|
31
36
|
type: PropType<CLAlign>;
|
|
32
37
|
default: CLAlign;
|
|
33
38
|
};
|
|
39
|
+
/** Set the heading level. The property can be one of `CLHeadingLevels`, e.g. `CLHeadingLevels.H1` */
|
|
34
40
|
level: {
|
|
35
41
|
type: PropType<CLHeadingLevels>;
|
|
36
42
|
};
|
|
43
|
+
/** Sets a custom ID used for unit tests. */
|
|
44
|
+
testId: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
/** Set the theme of the heading. The property can be one of `CLHeadingThemes`, e.g. `CLHeadingThemes.Dark` */
|
|
49
|
+
theme: {
|
|
50
|
+
type: PropType<CLHeadingThemes>;
|
|
51
|
+
default: CLThemes;
|
|
52
|
+
};
|
|
53
|
+
/** Set the type of the heading. The property can be one of `CLHeadingTypes`, e.g. `CLHeadingTypes.Title` */
|
|
54
|
+
type: {
|
|
55
|
+
type: PropType<CLHeadingTypes>;
|
|
56
|
+
default: CLHeadingTypes;
|
|
57
|
+
};
|
|
37
58
|
}>> & Readonly<{}>, {
|
|
59
|
+
testId: string;
|
|
38
60
|
type: CLHeadingTypes;
|
|
39
61
|
theme: CLHeadingThemes;
|
|
40
62
|
align: CLAlign;
|