@codeandfunction/callaloo 3.12.1 → 3.12.3
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/dist/assets/styles.css +1 -1
- package/dist/chunks/icons.hu757pLK.js +5 -0
- package/dist/components/Assets/{CLIcon.vue.d.ts → CLIcon/CLIcon.vue.d.ts} +4 -3
- package/dist/components/Assets/CLIcon/index.d.ts +4 -0
- package/dist/components/Assets/index.d.ts +1 -2
- package/dist/components/Buttons/{CLA11yButton.vue.d.ts → CLA11yButton/CLA11yButton.vue.d.ts} +8 -17
- package/dist/components/Buttons/CLA11yButton/index.d.ts +4 -0
- package/dist/components/Buttons/CLButton/CLButton.vue.d.ts +99 -0
- package/dist/components/Buttons/CLButton/index.d.ts +4 -0
- package/dist/components/Buttons/index.d.ts +2 -4
- package/dist/components/Containers/CLCard/CLCard.vue.d.ts +105 -0
- package/dist/components/Containers/CLCard/index.d.ts +4 -0
- package/dist/components/Containers/{Carousel → CLCarousel}/CLCarousel.vue.d.ts +9 -20
- package/dist/components/Containers/CLCarousel/CLCarouselNavigation.vue.d.ts +37 -0
- package/dist/components/Containers/CLCarousel/index.d.ts +11 -0
- package/dist/components/Containers/CLDisclosure/CLDisclosure.vue.d.ts +70 -0
- package/dist/components/Containers/CLDisclosure/index.d.ts +4 -0
- package/dist/components/Containers/index.d.ts +3 -9
- package/dist/components/Form/{CLCheckbox.vue.d.ts → CLCheckbox/CLCheckbox.vue.d.ts} +26 -13
- package/dist/components/Form/CLCheckbox/index.d.ts +4 -0
- package/dist/components/Form/{CLInput.vue.d.ts → CLInput/CLInput.vue.d.ts} +42 -17
- package/dist/components/Form/CLInput/index.d.ts +4 -0
- package/dist/components/Form/{CLRadioButton.vue.d.ts → CLRadioButton/CLRadioButton.vue.d.ts} +9 -9
- package/dist/components/Form/CLRadioButton/index.d.ts +4 -0
- package/dist/components/Form/{CLSelect.vue.d.ts → CLSelect/CLSelect.vue.d.ts} +9 -9
- package/dist/components/Form/CLSelect/index.d.ts +4 -0
- package/dist/components/Form/{CLTextArea.vue.d.ts → CLTextArea/CLTextArea.vue.d.ts} +18 -18
- package/dist/components/Form/CLTextArea/index.d.ts +4 -0
- package/dist/components/Form/index.d.ts +5 -10
- package/dist/components/Indicators/{CLBadge.vue.d.ts → CLBadge/CLBadge.vue.d.ts} +6 -6
- package/dist/components/Indicators/CLBadge/index.d.ts +4 -0
- package/dist/components/Indicators/CLBanner/CLBanner.vue.d.ts +49 -0
- package/dist/components/Indicators/CLBanner/index.d.ts +4 -0
- package/dist/components/Indicators/{CLPill.vue.d.ts → CLPill/CLPill.vue.d.ts} +4 -4
- package/dist/components/Indicators/CLPill/index.d.ts +4 -0
- package/dist/components/Indicators/CLProgress/CLProgress.vue.d.ts +32 -0
- package/dist/components/Indicators/CLProgress/index.d.ts +4 -0
- package/dist/components/Indicators/index.d.ts +4 -9
- package/dist/components/Loading/{CLSkeleton.vue.d.ts → CLSkeleton/CLSkeleton.vue.d.ts} +3 -3
- package/dist/components/Loading/CLSkeleton/index.d.ts +4 -0
- package/dist/components/Loading/{CLSpinner.vue.d.ts → CLSpinner/CLSpinner.vue.d.ts} +4 -4
- package/dist/components/Loading/CLSpinner/index.d.ts +4 -0
- package/dist/components/Loading/index.d.ts +2 -4
- package/dist/components/Modals/{CLModal.vue.d.ts → CLModal/CLModal.vue.d.ts} +16 -24
- package/dist/components/Modals/CLModal/index.d.ts +4 -0
- package/dist/components/Modals/index.d.ts +1 -2
- package/dist/components/Navigation/{CLLink.vue.d.ts → CLLink/CLLink.vue.d.ts} +6 -14
- package/dist/components/Navigation/CLLink/index.d.ts +4 -0
- package/dist/components/Navigation/{CLNavLink.vue.d.ts → CLNavLink/CLNavLink.vue.d.ts} +10 -14
- package/dist/components/Navigation/CLNavLink/index.d.ts +4 -0
- package/dist/components/Navigation/{CLNavSection.vue.d.ts → CLNavSection/CLNavSection.vue.d.ts} +3 -3
- package/dist/components/Navigation/CLNavSection/index.d.ts +4 -0
- package/dist/components/Navigation/index.d.ts +3 -6
- package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.vue.d.ts +204 -0
- package/dist/components/Popups/CLDropdownMenu/index.d.ts +4 -0
- package/dist/components/Popups/{CLToast.vue.d.ts → CLToast/CLToast.vue.d.ts} +1 -1
- package/dist/components/Popups/CLToast/index.d.ts +4 -0
- package/dist/components/Popups/index.d.ts +2 -5
- package/dist/components/Table/CLTable.vue.d.ts +5 -13
- package/dist/components/Table/CLTableCell.vue.d.ts +8 -16
- package/dist/components/Table/CLTableNestedCell.vue.d.ts +5 -12
- package/dist/components/Table/CLTableRow.vue.d.ts +4 -12
- package/dist/components/Table/index.d.ts +32 -15
- package/dist/components/Typography/CLHeading/CLHeading.vue.d.ts +33 -0
- package/dist/components/Typography/CLHeading/index.d.ts +4 -0
- package/dist/components/Typography/CLText/CLText.vue.d.ts +43 -0
- package/dist/components/Typography/CLText/index.d.ts +4 -0
- package/dist/components/Typography/index.d.ts +2 -5
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3237 -3353
- package/dist/stats.json +3210 -0
- package/dist/types.d.ts +14 -114
- package/package.json +11 -5
- package/dist/components/Buttons/CLButton.vue.d.ts +0 -288
- package/dist/components/Containers/CLCard.vue.d.ts +0 -51
- package/dist/components/Containers/CLDisclosure.vue.d.ts +0 -77
- package/dist/components/Containers/Carousel/CLCarouselNavigation.vue.d.ts +0 -22
- package/dist/components/Indicators/CLBanner.vue.d.ts +0 -13
- package/dist/components/Indicators/Progress/CLProgress.vue.d.ts +0 -45
- package/dist/components/Popups/CLDropdownMenu.vue.d.ts +0 -595
- package/dist/components/Typography/CLHeading.vue.d.ts +0 -85
- package/dist/components/Typography/CLText.vue.d.ts +0 -119
- /package/dist/components/Containers/{Carousel → CLCarousel}/CLCarouselSlide.vue.d.ts +0 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { CLAlign, CLBorderRadius, CLCardTypes, CLColors, CLColorVariants, CLGenericFunction, CLHeadingLevels, CLHeadingTypes, CLLinkTarget, CLLoading, CLOrder } from '../../../index.ts';
|
|
2
|
+
export interface CLCardProps {
|
|
3
|
+
/** When set to `true`, it elevates the card to indicate its active state */
|
|
4
|
+
active?: boolean;
|
|
5
|
+
/** Set the horizontal alignment of content */
|
|
6
|
+
align?: CLAlign;
|
|
7
|
+
/** Sets the aria-label if the `onClick` or `href` property has been set */
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
/** The border radius size */
|
|
10
|
+
borderRadius?: CLBorderRadius;
|
|
11
|
+
/** When set to `true`, adds a border to the card */
|
|
12
|
+
bordered?: boolean;
|
|
13
|
+
/** When set to `true`, utilizes the `<CLSkeleton />` component for loading state */
|
|
14
|
+
busy?: boolean;
|
|
15
|
+
/** Appears below the title for meta data like time and date */
|
|
16
|
+
byline?: string;
|
|
17
|
+
/** Sets the color of the Card */
|
|
18
|
+
color?: CLColors;
|
|
19
|
+
/** When set to `true`, utilizes a more compact layout */
|
|
20
|
+
compact?: boolean;
|
|
21
|
+
/** Displays a shadow to indicate elevation */
|
|
22
|
+
elevated?: boolean;
|
|
23
|
+
/** Callback function which provides a reference to the element */
|
|
24
|
+
forwardRef?: (elem: HTMLDivElement) => void;
|
|
25
|
+
/** Sets the height of the Card */
|
|
26
|
+
height?: string;
|
|
27
|
+
/** Provide a URL for the entire Card to behave as a link */
|
|
28
|
+
href?: string;
|
|
29
|
+
/** Provide a URL/relative path to an image to be displayed */
|
|
30
|
+
image?: string;
|
|
31
|
+
/** Set the alt text for an image */
|
|
32
|
+
imageAltText?: string;
|
|
33
|
+
/** Sets the height of the image */
|
|
34
|
+
imageHeight?: string;
|
|
35
|
+
/** Indicates how the browser should load the image */
|
|
36
|
+
imageLoading?: CLLoading;
|
|
37
|
+
/** Set the position of the image relative to content */
|
|
38
|
+
imageOrder?: CLOrder;
|
|
39
|
+
/** Sets the width of the image */
|
|
40
|
+
imageWidth?: string;
|
|
41
|
+
/** Callback function to handle click events */
|
|
42
|
+
onClick?: CLGenericFunction;
|
|
43
|
+
/** When set to `false`, removes horizontal and vertical padding */
|
|
44
|
+
padded?: boolean;
|
|
45
|
+
/** When set to `false`, renders a Card without rounded corners */
|
|
46
|
+
rounded?: boolean;
|
|
47
|
+
/** Sets where to display the linked URL */
|
|
48
|
+
target?: CLLinkTarget;
|
|
49
|
+
/** Sets a custom ID used for unit tests */
|
|
50
|
+
testId?: string;
|
|
51
|
+
/** Set the text of the title to be displayed */
|
|
52
|
+
title?: string;
|
|
53
|
+
/** Set the title heading level */
|
|
54
|
+
titleHLevel?: CLHeadingLevels;
|
|
55
|
+
/** Set the title type */
|
|
56
|
+
titleType?: CLHeadingTypes;
|
|
57
|
+
/** When set to `true`, truncate the title if it overflows its container */
|
|
58
|
+
truncateTitle?: boolean;
|
|
59
|
+
/** Sets the Card type/size */
|
|
60
|
+
type?: CLCardTypes;
|
|
61
|
+
/** Sets the color variant */
|
|
62
|
+
variant?: CLColorVariants;
|
|
63
|
+
/** Sets the width of the Card */
|
|
64
|
+
width?: string;
|
|
65
|
+
}
|
|
66
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CLCardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CLCardProps> & Readonly<{}>, {
|
|
67
|
+
color: CLColors;
|
|
68
|
+
width: string;
|
|
69
|
+
height: string;
|
|
70
|
+
variant: CLColorVariants;
|
|
71
|
+
elevated: boolean;
|
|
72
|
+
testId: string;
|
|
73
|
+
type: CLCardTypes;
|
|
74
|
+
align: CLAlign;
|
|
75
|
+
bordered: boolean;
|
|
76
|
+
busy: boolean;
|
|
77
|
+
rounded: boolean;
|
|
78
|
+
active: boolean;
|
|
79
|
+
target: CLLinkTarget;
|
|
80
|
+
compact: boolean;
|
|
81
|
+
imageAltText: string;
|
|
82
|
+
imageHeight: string;
|
|
83
|
+
imageLoading: CLLoading;
|
|
84
|
+
imageWidth: string;
|
|
85
|
+
padded: boolean;
|
|
86
|
+
titleHLevel: CLHeadingLevels;
|
|
87
|
+
titleType: CLHeadingTypes;
|
|
88
|
+
truncateTitle: boolean;
|
|
89
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
90
|
+
refExpandedArea: HTMLDivElement;
|
|
91
|
+
slotContent: HTMLDivElement;
|
|
92
|
+
}, HTMLDivElement>, {
|
|
93
|
+
heading?(_: {}): any;
|
|
94
|
+
heading?(_: {}): any;
|
|
95
|
+
byline?(_: {}): any;
|
|
96
|
+
default?(_: {}): any;
|
|
97
|
+
footer?(_: {}): any;
|
|
98
|
+
image?(_: {}): any;
|
|
99
|
+
}>;
|
|
100
|
+
export default _default;
|
|
101
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
102
|
+
new (): {
|
|
103
|
+
$slots: S;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CLAlign, CLColors, CLColorVariants, CLPaginationType, CLOrder } from '../../../index';
|
|
2
|
-
export interface
|
|
1
|
+
import { CLAlign, CLColors, CLColorVariants, CLPaginationType, CLOrder } from '../../../index.ts';
|
|
2
|
+
export interface CLCarouselProps {
|
|
3
3
|
/** Sets the color of the carousel navigation components. The property can be one of `CLColors`, e.g. `CLColors.Primary`. */
|
|
4
4
|
color?: CLColors;
|
|
5
5
|
/** Set the horizontal alignment of the controls. The property can be one of `CLAlign`, e.g. `CLAlign.Right` */
|
|
@@ -22,25 +22,12 @@ export interface Props {
|
|
|
22
22
|
testId?: string;
|
|
23
23
|
/** Sets the title of the carousel. */
|
|
24
24
|
title?: string;
|
|
25
|
-
/** Explicity set a width for the carousel. Default is 100% of it's parent container. */
|
|
26
|
-
width?: string;
|
|
27
25
|
/** Sets the color variant which will be applied to pagination buttons. The property can be on of `CLColorVariants`, e.g `CLColorVariants.Soft`. */
|
|
28
26
|
variant?: CLColorVariants;
|
|
27
|
+
/** Explicity set a width for the carousel. Default is 100% of it's parent container. */
|
|
28
|
+
width?: string;
|
|
29
29
|
}
|
|
30
|
-
declare
|
|
31
|
-
attrs: Partial<{}>;
|
|
32
|
-
slots: {
|
|
33
|
-
title?(_: {}): any;
|
|
34
|
-
default?(_: {}): any;
|
|
35
|
-
};
|
|
36
|
-
refs: {
|
|
37
|
-
beforeControls: HTMLDivElement;
|
|
38
|
-
scrollContainer: HTMLDivElement;
|
|
39
|
-
};
|
|
40
|
-
rootEl: HTMLDivElement;
|
|
41
|
-
};
|
|
42
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
43
|
-
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
30
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CLCarouselProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CLCarouselProps> & Readonly<{}>, {
|
|
44
31
|
color: CLColors;
|
|
45
32
|
width: string;
|
|
46
33
|
variant: CLColorVariants;
|
|
@@ -54,8 +41,10 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
54
41
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
55
42
|
beforeControls: HTMLDivElement;
|
|
56
43
|
scrollContainer: HTMLDivElement;
|
|
57
|
-
}, HTMLDivElement
|
|
58
|
-
|
|
44
|
+
}, HTMLDivElement>, {
|
|
45
|
+
title?(_: {}): any;
|
|
46
|
+
default?(_: {}): any;
|
|
47
|
+
}>;
|
|
59
48
|
export default _default;
|
|
60
49
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
61
50
|
new (): {
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { CLColors, CLColorVariants, CLGenericFunction, CLPaginationType } from '../../../index.ts';
|
|
2
|
+
export interface CLCarouselNavigationProps {
|
|
3
|
+
/** Sets the color of the navigation components. */
|
|
4
|
+
color: CLColors;
|
|
5
|
+
/** The current active page number. */
|
|
6
|
+
currentPage: number;
|
|
7
|
+
/** Whether the navigation controls are enabled. */
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
/** Function to navigate to a specific page. */
|
|
10
|
+
gotoPage: (index: number) => void;
|
|
11
|
+
/** ARIA label for the more button. */
|
|
12
|
+
moreAriaLabel?: string;
|
|
13
|
+
/** Label text for the more button. */
|
|
14
|
+
moreLabel: string;
|
|
15
|
+
/** Whether the next page button is enabled. */
|
|
16
|
+
nextPageEnabled: boolean;
|
|
17
|
+
/** The type of pagination display to use. */
|
|
18
|
+
paginationType: CLPaginationType;
|
|
19
|
+
/** CSS class prefix for styling. */
|
|
20
|
+
prefix: string;
|
|
21
|
+
/** Whether the previous page button is enabled. */
|
|
22
|
+
prevPageEnabled: boolean;
|
|
23
|
+
/** Function to handle showing more items. */
|
|
24
|
+
showMore?: CLGenericFunction;
|
|
25
|
+
/** Function to show next page items. */
|
|
26
|
+
showNextItems?: CLGenericFunction;
|
|
27
|
+
/** Function to show previous page items. */
|
|
28
|
+
showPrevItems?: CLGenericFunction;
|
|
29
|
+
/** Total number of pages available. */
|
|
30
|
+
totalPages: number;
|
|
31
|
+
/** Color variant style for the navigation components. */
|
|
32
|
+
variant: CLColorVariants;
|
|
33
|
+
}
|
|
34
|
+
declare const _default: import('vue').DefineComponent<CLCarouselNavigationProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CLCarouselNavigationProps> & Readonly<{}>, {
|
|
35
|
+
moreAriaLabel: string;
|
|
36
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
37
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as CLCarouselComponent } from './CLCarousel.vue';
|
|
2
|
+
import { default as CLCarouselSlideComponent } from './CLCarouselSlide.vue';
|
|
3
|
+
declare const CLCarousel: typeof CLCarouselComponent & {
|
|
4
|
+
Slide: typeof CLCarouselSlideComponent;
|
|
5
|
+
};
|
|
6
|
+
export { CLCarousel };
|
|
7
|
+
export default CLCarousel;
|
|
8
|
+
export type CLCarousel = InstanceType<typeof CLCarouselComponent & {
|
|
9
|
+
Slide: typeof CLCarouselSlideComponent;
|
|
10
|
+
}>;
|
|
11
|
+
export type CLCarouselSlide = InstanceType<typeof CLCarouselSlideComponent>;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { CLBorderRadius, CLColors, CLColorVariants, CLHeadingLevels, CLHeadingTypes, CLIconNames, CLIconSizes, CLSizes, CLTextTypes } from '../../../index.ts';
|
|
2
|
+
export interface CLDisclosureProps {
|
|
3
|
+
/** When set to `true` adds borders to the disclosure's trigger container and content */
|
|
4
|
+
bordered?: boolean;
|
|
5
|
+
/** The border radius size */
|
|
6
|
+
borderRadius?: CLBorderRadius;
|
|
7
|
+
/** Sets the color of the Disclosure */
|
|
8
|
+
color?: CLColors;
|
|
9
|
+
/** When set to `true`, removes horizontal padding and overrides vertical padding */
|
|
10
|
+
compact?: boolean;
|
|
11
|
+
/** When set to `false`, removes horizontal and vertical padding */
|
|
12
|
+
contentSpacing?: boolean;
|
|
13
|
+
/** A unique identifier, required for proper handling of multiple disclosures */
|
|
14
|
+
disclosureId: string;
|
|
15
|
+
/** Set the expanded state of the disclosure */
|
|
16
|
+
expanded?: boolean;
|
|
17
|
+
/** Set the icon to display when the disclosure is expanded */
|
|
18
|
+
expandedIcon?: CLIconNames;
|
|
19
|
+
/** Set the text of the heading displayed in the trigger */
|
|
20
|
+
heading?: string;
|
|
21
|
+
/** Set the heading level */
|
|
22
|
+
headingLevel?: CLHeadingLevels;
|
|
23
|
+
/** Set the heading type */
|
|
24
|
+
headingType?: CLHeadingTypes;
|
|
25
|
+
/** Set the icon to display when the disclosure is collapsed */
|
|
26
|
+
iconAfter?: CLIconNames;
|
|
27
|
+
/** Set the size of the icon after the heading text */
|
|
28
|
+
iconAfterSize?: CLIconSizes;
|
|
29
|
+
/** Set the icon to display before the heading text */
|
|
30
|
+
iconBefore?: CLIconNames;
|
|
31
|
+
/** Set the size of the icon before the heading text */
|
|
32
|
+
iconBeforeSize?: CLIconSizes;
|
|
33
|
+
/** Set the rounded state of the disclosure */
|
|
34
|
+
rounded?: boolean;
|
|
35
|
+
/** Set the text of the sub-heading displayed after the heading */
|
|
36
|
+
subHeading?: string;
|
|
37
|
+
/** Set the sub-heading text type */
|
|
38
|
+
subHeadingType?: CLTextTypes;
|
|
39
|
+
/** Sets a custom ID used for unit tests */
|
|
40
|
+
testId?: string;
|
|
41
|
+
/** Set the size of the trigger button */
|
|
42
|
+
triggerButtonSize?: CLSizes;
|
|
43
|
+
/** Sets the color variant */
|
|
44
|
+
variant?: CLColorVariants;
|
|
45
|
+
}
|
|
46
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CLDisclosureProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CLDisclosureProps> & Readonly<{}>, {
|
|
47
|
+
color: CLColors;
|
|
48
|
+
variant: CLColorVariants;
|
|
49
|
+
borderRadius: CLBorderRadius;
|
|
50
|
+
testId: string;
|
|
51
|
+
bordered: boolean;
|
|
52
|
+
rounded: boolean;
|
|
53
|
+
iconAfter: CLIconNames;
|
|
54
|
+
iconAfterSize: CLIconSizes;
|
|
55
|
+
compact: boolean;
|
|
56
|
+
contentSpacing: boolean;
|
|
57
|
+
expanded: boolean;
|
|
58
|
+
expandedIcon: CLIconNames;
|
|
59
|
+
headingType: CLHeadingTypes;
|
|
60
|
+
subHeadingType: CLTextTypes;
|
|
61
|
+
triggerButtonSize: CLSizes;
|
|
62
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, {
|
|
63
|
+
default?(_: {}): any;
|
|
64
|
+
}>;
|
|
65
|
+
export default _default;
|
|
66
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
67
|
+
new (): {
|
|
68
|
+
$slots: S;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { default as CLDisclosure } from './CLDisclosure.vue';
|
|
5
|
-
export { CLCard, CLCarousel, CLCarouselSlide, CLDisclosure };
|
|
6
|
-
export type CLCard = InstanceType<typeof CLCard>;
|
|
7
|
-
export type CLCarousel = InstanceType<typeof CLCarousel>;
|
|
8
|
-
export type CLCarouselSlide = InstanceType<typeof CLCarouselSlide>;
|
|
9
|
-
export type CLDisclosure = InstanceType<typeof CLDisclosure>;
|
|
1
|
+
export { CLCard } from './CLCard';
|
|
2
|
+
export { CLCarousel } from './CLCarousel';
|
|
3
|
+
export { CLDisclosure } from './CLDisclosure';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CLBorderRadius, CLColors, CLColorVariants, CLGenericFunction, CLGenericFocusFunction, CLSizes } from '
|
|
2
|
-
interface
|
|
1
|
+
import { CLBorderRadius, CLColors, CLColorVariants, CLGenericFunction, CLGenericFocusFunction, CLSizes } from '../../../index.ts';
|
|
2
|
+
export interface CLCheckboxProps {
|
|
3
3
|
/** Sets the aria-label on the input. It should be used when there is no label present. */
|
|
4
4
|
ariaLabel?: string;
|
|
5
5
|
/** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
|
|
@@ -22,6 +22,12 @@ interface Props {
|
|
|
22
22
|
messageType?: CLColors;
|
|
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
|
+
/** A callback function which handles when the checkbox loses focus. */
|
|
26
|
+
onBlur?: CLGenericFocusFunction;
|
|
27
|
+
/** A callback function which handles when the checkbox is clicked. */
|
|
28
|
+
onChange?: CLGenericFunction;
|
|
29
|
+
/** A callback function which handles when the checkbox gains focus. */
|
|
30
|
+
onFocus?: CLGenericFocusFunction;
|
|
25
31
|
/** Set the required state. */
|
|
26
32
|
required?: boolean;
|
|
27
33
|
/** When set to `false` it will not render with rounded corners. */
|
|
@@ -34,29 +40,36 @@ interface Props {
|
|
|
34
40
|
value?: string | number | boolean;
|
|
35
41
|
/** Sets the color variant. The property can be one of `CLColorVariants.Outline | CLColorVariants.Ghost`, e.g `CLColorVariants.Outline`. */
|
|
36
42
|
variant?: CLColorVariants.Outline | CLColorVariants.Ghost;
|
|
37
|
-
/** A callback function which handles when the checkbox loses focus. */
|
|
38
|
-
onBlur?: CLGenericFocusFunction;
|
|
39
|
-
/** A callback function which handles when the checkbox is clicked. */
|
|
40
|
-
onChange?: CLGenericFunction;
|
|
41
|
-
/** A callback function which handles when the checkbox gains focus. */
|
|
42
|
-
onFocus?: CLGenericFocusFunction;
|
|
43
43
|
}
|
|
44
|
-
|
|
45
|
-
type __VLS_PublicProps = {
|
|
44
|
+
declare const _default: import('vue').DefineComponent<{
|
|
46
45
|
modelValue?: boolean;
|
|
47
|
-
} &
|
|
48
|
-
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
46
|
+
} & CLCheckboxProps, {
|
|
49
47
|
checkboxRef: Readonly<import('vue').ShallowRef<HTMLInputElement | null>>;
|
|
50
48
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
51
49
|
"update:modelValue": (value: boolean) => any;
|
|
52
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
50
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
51
|
+
modelValue?: boolean;
|
|
52
|
+
} & CLCheckboxProps> & Readonly<{
|
|
53
53
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
54
54
|
}>, {
|
|
55
55
|
color: CLColors;
|
|
56
|
+
form: string;
|
|
57
|
+
label: string;
|
|
56
58
|
variant: CLColorVariants.Outline | CLColorVariants.Ghost;
|
|
59
|
+
borderRadius: CLBorderRadius;
|
|
57
60
|
testId: string;
|
|
61
|
+
required: boolean;
|
|
62
|
+
onFocus: CLGenericFocusFunction;
|
|
63
|
+
onBlur: CLGenericFocusFunction;
|
|
64
|
+
onChange: CLGenericFunction;
|
|
65
|
+
ariaLabel: string;
|
|
66
|
+
busy: boolean;
|
|
58
67
|
rounded: boolean;
|
|
68
|
+
disabled: boolean;
|
|
59
69
|
size: CLSizes;
|
|
70
|
+
value: string | number | boolean;
|
|
71
|
+
messages: string[];
|
|
72
|
+
messageType: CLColors;
|
|
60
73
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
61
74
|
'checkbox-ref': HTMLInputElement;
|
|
62
75
|
}, HTMLDivElement>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CLBorderRadius, CLIconNames, CLInputTypes, CLGenericFocusFunction, CLGenericFunction, CLGenericInputFunction, CLSizes, CLColors, CLColorVariants, CLOrientation } from '
|
|
2
|
-
interface
|
|
1
|
+
import { CLBorderRadius, CLIconNames, CLInputTypes, CLGenericFocusFunction, CLGenericFunction, CLGenericInputFunction, CLSizes, CLColors, CLColorVariants, CLOrientation } from '../../../index.ts';
|
|
2
|
+
export interface CLInputProps {
|
|
3
3
|
/** Sets the aria-label on the input. It should be used when there is no label present. */
|
|
4
4
|
ariaLabel?: string;
|
|
5
5
|
/** See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#autocomplete for more details. */
|
|
@@ -26,14 +26,22 @@ interface Props {
|
|
|
26
26
|
label?: string;
|
|
27
27
|
/** The maximum amount of characters allowed for entry. */
|
|
28
28
|
maxLength?: number;
|
|
29
|
-
/** The minimum amount of characters required for entry. */
|
|
30
|
-
minLength?: number;
|
|
31
29
|
/** An array of messages to be displayed. */
|
|
32
30
|
messages?: string[];
|
|
33
31
|
/** The message type. The property can be one of `CLColors`, e.g. `CLColors.Danger`. */
|
|
34
32
|
messageType?: CLColors;
|
|
33
|
+
/** The minimum amount of characters required for entry. */
|
|
34
|
+
minLength?: number;
|
|
35
35
|
/** A string representing name of the input. The name is submitted along with the input value when the form it belongs to is submitted. */
|
|
36
36
|
name: string;
|
|
37
|
+
/** A callback function which handles when the input loses focus. */
|
|
38
|
+
onBlur?: CLGenericFocusFunction;
|
|
39
|
+
/** A callback function which handles when the input value changes. */
|
|
40
|
+
onChange?: CLGenericFunction;
|
|
41
|
+
/** A callback function which handles when the input gains focus. */
|
|
42
|
+
onFocus?: CLGenericFocusFunction;
|
|
43
|
+
/** A callback function which handles when the input value changes due to user input. */
|
|
44
|
+
onInput?: CLGenericInputFunction;
|
|
37
45
|
/** Sets the label position to be above or to the left of the form element. The property can be one of `CLOrientation` */
|
|
38
46
|
orientation?: CLOrientation;
|
|
39
47
|
/** A regexp pattern that can be used for validation. */
|
|
@@ -62,36 +70,53 @@ interface Props {
|
|
|
62
70
|
type?: CLInputTypes;
|
|
63
71
|
/** Sets the color variant. The property can be one of `CLColorVariants.Outline | CLColorVariants.Ghost`, e.g `CLColorVariants.Outline`. */
|
|
64
72
|
variant?: CLColorVariants.Outline | CLColorVariants.Ghost;
|
|
65
|
-
/** A callback function which handles when the input loses focus. */
|
|
66
|
-
onBlur?: CLGenericFocusFunction;
|
|
67
|
-
/** A callback function which handles when the input value changes. */
|
|
68
|
-
onChange?: CLGenericFunction;
|
|
69
|
-
/** A callback function which handles when the input value changes due to user input. */
|
|
70
|
-
onInput?: CLGenericInputFunction;
|
|
71
|
-
/** A callback function which handles when the input gains focus. */
|
|
72
|
-
onFocus?: CLGenericFocusFunction;
|
|
73
73
|
}
|
|
74
|
-
|
|
75
|
-
type __VLS_PublicProps = {
|
|
74
|
+
declare const _default: import('vue').DefineComponent<{
|
|
76
75
|
modelValue?: string | number;
|
|
77
|
-
} &
|
|
78
|
-
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
76
|
+
} & CLInputProps, {
|
|
79
77
|
inputRef: Readonly<import('vue').ShallowRef<HTMLInputElement | null>>;
|
|
80
78
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
81
79
|
reset: (...args: any[]) => void;
|
|
82
80
|
"update:modelValue": (value: string | number) => void;
|
|
83
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
81
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
82
|
+
modelValue?: string | number;
|
|
83
|
+
} & CLInputProps> & Readonly<{
|
|
84
84
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
85
85
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
86
86
|
}>, {
|
|
87
87
|
color: CLColors;
|
|
88
|
+
form: string;
|
|
89
|
+
label: string;
|
|
90
|
+
pattern: string;
|
|
88
91
|
variant: CLColorVariants.Outline | CLColorVariants.Ghost;
|
|
92
|
+
borderRadius: CLBorderRadius;
|
|
89
93
|
testId: string;
|
|
90
94
|
type: CLInputTypes;
|
|
95
|
+
required: boolean;
|
|
96
|
+
prefix: string | CLIconNames;
|
|
97
|
+
onFocus: CLGenericFocusFunction;
|
|
98
|
+
onBlur: CLGenericFocusFunction;
|
|
99
|
+
onChange: CLGenericFunction;
|
|
100
|
+
onInput: CLGenericInputFunction;
|
|
101
|
+
ariaLabel: string;
|
|
102
|
+
busy: boolean;
|
|
91
103
|
rounded: boolean;
|
|
92
104
|
fluid: boolean;
|
|
105
|
+
disabled: boolean;
|
|
106
|
+
pill: string;
|
|
93
107
|
size: CLSizes;
|
|
108
|
+
placeholder: string;
|
|
94
109
|
orientation: CLOrientation;
|
|
110
|
+
readonly: boolean;
|
|
111
|
+
messages: string[];
|
|
112
|
+
messageType: CLColors;
|
|
113
|
+
autoComplete: boolean;
|
|
114
|
+
charCounter: boolean;
|
|
115
|
+
grouped: boolean;
|
|
116
|
+
maxLength: number;
|
|
117
|
+
minLength: number;
|
|
118
|
+
spellCheck: boolean;
|
|
119
|
+
suffix: string | CLIconNames;
|
|
95
120
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
96
121
|
'input-elem': HTMLInputElement;
|
|
97
122
|
}, HTMLDivElement>;
|
package/dist/components/Form/{CLRadioButton.vue.d.ts → CLRadioButton/CLRadioButton.vue.d.ts}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { CLBorderRadius, CLColors, CLColorVariants, CLGenericFunction, CLGenericFocusFunction, CLSizes } from '
|
|
2
|
-
interface
|
|
1
|
+
import { CLBorderRadius, CLColors, CLColorVariants, CLGenericFunction, CLGenericFocusFunction, CLSizes } from '../../../index.ts';
|
|
2
|
+
export interface CLRadioButtonProps {
|
|
3
3
|
/** Sets the aria-label on the input. It should be used when there is no label present. */
|
|
4
4
|
ariaLabel?: string;
|
|
5
5
|
/** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
|
|
6
6
|
borderRadius?: CLBorderRadius;
|
|
7
7
|
/** A `boolean` value which dictates the busy state of the radiobutton. */
|
|
8
8
|
busy?: boolean;
|
|
9
|
-
/** Sets the color of element's borders. The property can be one of `CLColors`, e.g. `CLColors.Primary`. */
|
|
10
|
-
color?: CLColors;
|
|
11
9
|
/** Set the checked state. */
|
|
12
10
|
checked?: boolean;
|
|
11
|
+
/** Sets the color of element's borders. The property can be one of `CLColors`, e.g. `CLColors.Primary`. */
|
|
12
|
+
color?: CLColors;
|
|
13
13
|
/** Set the disabled state. */
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
/** The form whom the radiobutton belongs to. Useful for when a radiobutton is not within a `form` element. */
|
|
@@ -43,15 +43,15 @@ interface Props {
|
|
|
43
43
|
/** A callback function which handles when the radiobutton gains focus. */
|
|
44
44
|
onFocus?: CLGenericFocusFunction;
|
|
45
45
|
}
|
|
46
|
-
|
|
47
|
-
type __VLS_PublicProps = {
|
|
46
|
+
declare const _default: import('vue').DefineComponent<{
|
|
48
47
|
modelValue?: string | number;
|
|
49
|
-
} &
|
|
50
|
-
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
48
|
+
} & CLRadioButtonProps, {
|
|
51
49
|
radiobuttonRef: Readonly<import('vue').ShallowRef<HTMLInputElement | null>>;
|
|
52
50
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
53
51
|
"update:modelValue": (value: string | number) => any;
|
|
54
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
52
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
53
|
+
modelValue?: string | number;
|
|
54
|
+
} & CLRadioButtonProps> & Readonly<{
|
|
55
55
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
56
56
|
}>, {
|
|
57
57
|
color: CLColors;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CLBorderRadius, CLColors, CLColorVariants, CLGenericFocusFunction, CLGenericFunction, CLOption, CLOrientation, CLSizes } from '
|
|
2
|
-
interface
|
|
1
|
+
import { CLBorderRadius, CLColors, CLColorVariants, CLGenericFocusFunction, CLGenericFunction, CLOption, CLOrientation, CLSizes } from '../../../index.ts';
|
|
2
|
+
export interface CLSelectProps {
|
|
3
3
|
/** Sets the aria-label on the input. It should be used when there is no label present. */
|
|
4
4
|
ariaLabel?: string;
|
|
5
5
|
/** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
|
|
@@ -22,14 +22,14 @@ interface Props {
|
|
|
22
22
|
messages?: string[];
|
|
23
23
|
/** The message type. The property can be one of `CLColors`, e.g. `CLColors.Danger`. */
|
|
24
24
|
messageType?: CLColors;
|
|
25
|
-
/** The default text shown when there is no value. Useful for providing a hint of what is expected. */
|
|
26
|
-
placeholder?: string;
|
|
27
25
|
/** A string representing name of the select. The name is submitted along with the select value when the form it belongs to is submitted. */
|
|
28
26
|
name: string;
|
|
29
27
|
/** Sets the label position to be above or to the left of the form element. The property can be one of `CLOrientation` */
|
|
30
28
|
orientation?: CLOrientation;
|
|
31
29
|
/** A list of options */
|
|
32
30
|
options: CLOption[];
|
|
31
|
+
/** The default text shown when there is no value. Useful for providing a hint of what is expected. */
|
|
32
|
+
placeholder?: string;
|
|
33
33
|
/** Set the required state. */
|
|
34
34
|
required?: boolean;
|
|
35
35
|
/** When set to `false` it will not render with rounded corners. */
|
|
@@ -47,15 +47,15 @@ interface Props {
|
|
|
47
47
|
/** A callback function which handles when the select gains focus. */
|
|
48
48
|
onFocus?: CLGenericFocusFunction;
|
|
49
49
|
}
|
|
50
|
-
|
|
51
|
-
type __VLS_PublicProps = {
|
|
50
|
+
declare const _default: import('vue').DefineComponent<{
|
|
52
51
|
modelValue?: string | number | null;
|
|
53
|
-
} &
|
|
54
|
-
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
52
|
+
} & CLSelectProps, {
|
|
55
53
|
selectRef: Readonly<import('vue').ShallowRef<HTMLSelectElement | null>>;
|
|
56
54
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
57
55
|
"update:modelValue": (value: string | number | null) => any;
|
|
58
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
56
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
57
|
+
modelValue?: string | number | null;
|
|
58
|
+
} & CLSelectProps> & Readonly<{
|
|
59
59
|
"onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
|
|
60
60
|
}>, {
|
|
61
61
|
color: CLColors;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CLBorderRadius, CLGenericFunction, CLGenericFocusFunction, CLGenericInputFunction, CLOrientation, CLSizes, CLColors, CLColorVariants } from '
|
|
2
|
-
interface
|
|
1
|
+
import { CLBorderRadius, CLGenericFunction, CLGenericFocusFunction, CLGenericInputFunction, CLOrientation, CLSizes, CLColors, CLColorVariants } from '../../../index.ts';
|
|
2
|
+
export interface CLTextAreaProps {
|
|
3
3
|
/** Sets the aria-label on the textarea. It should be used when there is no label present. */
|
|
4
4
|
ariaLabel?: string;
|
|
5
5
|
/** See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#autocomplete for more details. */
|
|
@@ -26,14 +26,22 @@ interface Props {
|
|
|
26
26
|
label?: string;
|
|
27
27
|
/** The maximum amount of characters allowed for entry. */
|
|
28
28
|
maxLength?: number;
|
|
29
|
-
/** The minimum amount of characters required for entry. */
|
|
30
|
-
minLength?: number;
|
|
31
29
|
/** An array of messages to be displayed. */
|
|
32
30
|
messages?: string[];
|
|
33
31
|
/** The message type. The property can be one of `CLColors`, e.g. `CLColors.Danger`. */
|
|
34
32
|
messageType?: CLColors;
|
|
33
|
+
/** The minimum amount of characters required for entry. */
|
|
34
|
+
minLength?: number;
|
|
35
35
|
/** A string representing name of the textarea. The name is submitted along with the textarea value when the form it belongs to is submitted. */
|
|
36
36
|
name: string;
|
|
37
|
+
/** A callback function which handles when the textarea loses focus. */
|
|
38
|
+
onBlur?: CLGenericFocusFunction;
|
|
39
|
+
/** A callback function which handles when the textarea value changes. */
|
|
40
|
+
onChange?: CLGenericFunction;
|
|
41
|
+
/** A callback function which handles when the textarea gains focus. */
|
|
42
|
+
onFocus?: CLGenericFocusFunction;
|
|
43
|
+
/** A callback function which handles when the input value changes due to user input. */
|
|
44
|
+
onInput?: CLGenericInputFunction;
|
|
37
45
|
/** Sets the label position to be above or to the left of the form element. The property can be one of `CLOrientation` */
|
|
38
46
|
orientation?: CLOrientation;
|
|
39
47
|
/** A regexp pattern that can be used for validation. */
|
|
@@ -58,24 +66,16 @@ interface Props {
|
|
|
58
66
|
testId?: string;
|
|
59
67
|
/** Sets the color variant. The property can be one of `CLColorVariants.Outline | CLColorVariants.Ghost`, e.g `CLColorVariants.Outline`. */
|
|
60
68
|
variant?: CLColorVariants.Outline | CLColorVariants.Ghost;
|
|
61
|
-
/** A callback function which handles when the textarea loses focus. */
|
|
62
|
-
onBlur?: CLGenericFocusFunction;
|
|
63
|
-
/** A callback function which handles when the textarea value changes. */
|
|
64
|
-
onChange?: CLGenericFunction;
|
|
65
|
-
/** A callback function which handles when the input value changes due to user input. */
|
|
66
|
-
onInput?: CLGenericInputFunction;
|
|
67
|
-
/** A callback function which handles when the textarea gains focus. */
|
|
68
|
-
onFocus?: CLGenericFocusFunction;
|
|
69
69
|
}
|
|
70
|
-
|
|
71
|
-
type __VLS_PublicProps = {
|
|
70
|
+
declare const _default: import('vue').DefineComponent<{
|
|
72
71
|
modelValue?: string | number;
|
|
73
|
-
} &
|
|
74
|
-
|
|
75
|
-
textareaRef: Readonly<import('vue').ShallowRef<HTMLInputElement | null>>;
|
|
72
|
+
} & CLTextAreaProps, {
|
|
73
|
+
textareaRef: Readonly<import('vue').ShallowRef<HTMLTextAreaElement | null>>;
|
|
76
74
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
77
75
|
"update:modelValue": (value: string | number) => any;
|
|
78
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
76
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
77
|
+
modelValue?: string | number;
|
|
78
|
+
} & CLTextAreaProps> & Readonly<{
|
|
79
79
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
80
80
|
}>, {
|
|
81
81
|
color: CLColors;
|