@codeandfunction/callaloo 1.13.1 → 1.13.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.
Files changed (39) hide show
  1. package/README.md +10 -1
  2. package/dist/assets/index.css +1 -1
  3. package/dist/components/Assets/Icon.vue.d.ts +7 -3
  4. package/dist/components/Buttons/A11yButton.vue.d.ts +4 -0
  5. package/dist/components/Buttons/Button.vue.d.ts +61 -6
  6. package/dist/components/Containers/Card.vue.d.ts +2 -2
  7. package/dist/components/Containers/Carousel/Carousel.vue.d.ts +24 -1
  8. package/dist/components/Containers/Carousel/CarouselNavigation.vue.d.ts +15 -8
  9. package/dist/components/Containers/Carousel/CarouselSlide.vue.d.ts +16 -0
  10. package/dist/components/Containers/Disclosure.vue.d.ts +23 -4
  11. package/dist/components/Form/Checkbox.vue.d.ts +48 -3
  12. package/dist/components/Form/Input.vue.d.ts +72 -3
  13. package/dist/components/Form/RadioButton.vue.d.ts +48 -3
  14. package/dist/components/Form/Select.vue.d.ts +50 -3
  15. package/dist/components/Form/TextArea.vue.d.ts +68 -3
  16. package/dist/components/Indicators/Badge.vue.d.ts +8 -0
  17. package/dist/components/Indicators/Banner.vue.d.ts +3 -2
  18. package/dist/components/Indicators/Pill.vue.d.ts +13 -3
  19. package/dist/components/Loading/Skeleton.vue.d.ts +8 -1
  20. package/dist/components/Loading/Spinner.vue.d.ts +9 -2
  21. package/dist/components/Modals/CLModal.vue.d.ts +12 -3
  22. package/dist/components/Navigation/Link.vue.d.ts +12 -3
  23. package/dist/components/Navigation/NavLink.vue.d.ts +12 -3
  24. package/dist/components/Navigation/NavSection.vue.d.ts +5 -1
  25. package/dist/components/Popups/DropdownMenu.vue.d.ts +36 -11
  26. package/dist/components/Popups/Toast.vue.d.ts +3 -2
  27. package/dist/components/Table/Table.vue.d.ts +12 -0
  28. package/dist/components/Table/TableCell.vue.d.ts +14 -7
  29. package/dist/components/Table/TableRow.vue.d.ts +3 -1
  30. package/dist/components/Typography/Heading.vue.d.ts +36 -14
  31. package/dist/components/Typography/Text.vue.d.ts +40 -16
  32. package/dist/constants.d.ts +22 -0
  33. package/dist/index.d.ts +3 -2
  34. package/dist/index.js +996 -595
  35. package/dist/index.js.map +1 -1
  36. package/dist/types.d.ts +98 -54
  37. package/dist/{helper.d.ts → utils/helper.d.ts} +9 -2
  38. package/dist/utils/tests.d.ts +9 -0
  39. package/package.json +61 -33
@@ -1,9 +1,13 @@
1
- import { CLIconNames, CLSizes } from '../../index';
1
+ import { CLIconNames, CLIconSizes } from '../../index';
2
2
  interface Props {
3
+ /** The name of the icon in the icon set to display. */
3
4
  name: CLIconNames;
4
- size?: CLSizes;
5
+ /** The size of the icon. */
6
+ size?: CLIconSizes;
7
+ /** Sets a custom ID used for unit tests. */
8
+ testId?: string;
5
9
  }
6
10
  declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
7
- size: CLSizes;
11
+ size: CLIconSizes;
8
12
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
13
  export default _default;
@@ -1,7 +1,11 @@
1
1
  export interface Props {
2
+ /** When set to `false` it will mimic the disabled state of a standard `<button />`. */
2
3
  enabled?: boolean;
4
+ /** When set to true, sets the width of the A11yButton to 100% of it's parent. */
3
5
  fluid?: boolean;
6
+ /** When set to `false` it will not render with rounded corners. */
4
7
  rounded: boolean;
8
+ /** Sets a custom ID used for unit tests. */
5
9
  testId?: string;
6
10
  }
7
11
  declare function __VLS_template(): {
@@ -1,81 +1,109 @@
1
1
  import { PropType } from 'vue';
2
- import { CLAlign, CLBorderRadius, CLButtonTypes, CLIconNames, CLSizes, CLThemes } from '../../index';
2
+ import { CLAlign, CLBorderRadius, CLButtonTypes, CLIconNames, CLIconSizes, CLSizes, CLThemes } from '../../index';
3
+ /**
4
+ * The `<CLButton />` component extends the functionality of the native `<button />` element, by including support for icons and themes.
5
+ */
3
6
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
7
+ /** Set the horizontal alignment of content. The property can be one of `CLAlign`, e.g. `CLAlign.Left` */
4
8
  alignContent: {
5
9
  type: PropType<CLAlign>;
6
10
  default: CLAlign;
7
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. */
8
13
  ariaLabel: {
9
14
  type: StringConstructor;
10
15
  };
16
+ /** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
11
17
  borderRadius: {
12
18
  type: PropType<CLBorderRadius>;
13
19
  };
20
+ /** A `boolean` value which dictates the busy state of the button. */
14
21
  busy: {
15
22
  type: BooleanConstructor;
16
23
  };
24
+ /** The `elevated` property displays a shadow to indicate elevation. */
17
25
  elevated: {
18
26
  type: BooleanConstructor;
19
27
  default: boolean;
20
28
  };
29
+ /** The form whom the button belongs to. Useful for when buttons are not within a `form` element. */
21
30
  form: {
22
31
  type: StringConstructor;
23
32
  };
33
+ /** A callback function which provides a reference to the button. */
24
34
  forwardRef: {
25
35
  type: FunctionConstructor;
26
36
  };
37
+ /** Sets the height of the button, it's default value is `auto`. */
27
38
  height: {
28
39
  type: StringConstructor;
29
40
  default: string;
30
41
  };
42
+ /** Sets the icon which is positioned after the button's slot content. */
31
43
  iconAfter: {
32
44
  type: PropType<CLIconNames>;
33
45
  };
46
+ /** Sets the icon which is positioned before the button's slot content. */
34
47
  iconBefore: {
35
48
  type: PropType<CLIconNames>;
36
49
  };
50
+ /** Sets the `iconBefore` size. The property can be one of `CLIconSizes`, e.g. `CLIconSizes.Medium`. */
37
51
  iconSize: {
38
- type: PropType<CLSizes>;
52
+ type: PropType<CLIconSizes>;
53
+ default: CLIconSizes;
39
54
  };
55
+ /** Sets the `iconAfter` size. The property can be one of `CLIconSizes`, e.g. `CLIconSizes.Medium`. */
40
56
  iconAfterSize: {
41
- type: PropType<CLSizes>;
57
+ type: PropType<CLIconSizes>;
58
+ default: CLIconSizes;
42
59
  };
60
+ /** When set to `true` it will display the button as a `CLLink`. */
43
61
  link: {
44
62
  type: BooleanConstructor;
45
63
  };
64
+ /** A callback function to handle click events. */
46
65
  onClick: {
47
66
  type: FunctionConstructor;
48
67
  };
68
+ /** When set to `true` it will display the button as a `CLPill`. */
49
69
  pill: {
50
70
  type: BooleanConstructor;
51
71
  };
72
+ /** When set to `false` it will not render with rounded corners. */
52
73
  rounded: {
53
74
  type: BooleanConstructor;
54
75
  default: boolean;
55
76
  };
77
+ /** Sets the button size. The property can be one of `CLSizes`, e.g. `CLSizes.Medium`. */
56
78
  size: {
57
79
  type: PropType<CLSizes>;
58
80
  default: CLSizes;
59
81
  };
82
+ /** Sets the title attribute. */
60
83
  title: {
61
84
  type: StringConstructor;
62
85
  };
86
+ /** Sets a custom ID used for unit tests. */
63
87
  testId: {
64
88
  type: StringConstructor;
65
89
  default: string;
66
90
  };
91
+ /** Sets the button type. The property can be one of `CLButtonTypes`, e.g. `CLButtonTypes.Submit`. */
67
92
  type: {
68
93
  type: PropType<CLButtonTypes>;
69
94
  default: CLButtonTypes;
70
95
  };
96
+ /** Sets the style/theme. The property can be one of `CLThemes`, e.g. `CLThemes.Primary`. */
71
97
  theme: {
72
98
  type: PropType<CLThemes>;
73
99
  default: CLThemes;
74
100
  };
101
+ /** Sets the width of the button, it's default value is `auto`. */
75
102
  width: {
76
103
  type: StringConstructor;
77
104
  default: string;
78
105
  };
106
+ /** When set to `true`, it will remove any horizontal and vertical padding of the slot content. */
79
107
  wrap: {
80
108
  type: BooleanConstructor;
81
109
  default: boolean;
@@ -83,81 +111,106 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
83
111
  }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
84
112
  [key: string]: any;
85
113
  }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
114
+ /** Set the horizontal alignment of content. The property can be one of `CLAlign`, e.g. `CLAlign.Left` */
86
115
  alignContent: {
87
116
  type: PropType<CLAlign>;
88
117
  default: CLAlign;
89
118
  };
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. */
90
120
  ariaLabel: {
91
121
  type: StringConstructor;
92
122
  };
123
+ /** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
93
124
  borderRadius: {
94
125
  type: PropType<CLBorderRadius>;
95
126
  };
127
+ /** A `boolean` value which dictates the busy state of the button. */
96
128
  busy: {
97
129
  type: BooleanConstructor;
98
130
  };
131
+ /** The `elevated` property displays a shadow to indicate elevation. */
99
132
  elevated: {
100
133
  type: BooleanConstructor;
101
134
  default: boolean;
102
135
  };
136
+ /** The form whom the button belongs to. Useful for when buttons are not within a `form` element. */
103
137
  form: {
104
138
  type: StringConstructor;
105
139
  };
140
+ /** A callback function which provides a reference to the button. */
106
141
  forwardRef: {
107
142
  type: FunctionConstructor;
108
143
  };
144
+ /** Sets the height of the button, it's default value is `auto`. */
109
145
  height: {
110
146
  type: StringConstructor;
111
147
  default: string;
112
148
  };
149
+ /** Sets the icon which is positioned after the button's slot content. */
113
150
  iconAfter: {
114
151
  type: PropType<CLIconNames>;
115
152
  };
153
+ /** Sets the icon which is positioned before the button's slot content. */
116
154
  iconBefore: {
117
155
  type: PropType<CLIconNames>;
118
156
  };
157
+ /** Sets the `iconBefore` size. The property can be one of `CLIconSizes`, e.g. `CLIconSizes.Medium`. */
119
158
  iconSize: {
120
- type: PropType<CLSizes>;
159
+ type: PropType<CLIconSizes>;
160
+ default: CLIconSizes;
121
161
  };
162
+ /** Sets the `iconAfter` size. The property can be one of `CLIconSizes`, e.g. `CLIconSizes.Medium`. */
122
163
  iconAfterSize: {
123
- type: PropType<CLSizes>;
164
+ type: PropType<CLIconSizes>;
165
+ default: CLIconSizes;
124
166
  };
167
+ /** When set to `true` it will display the button as a `CLLink`. */
125
168
  link: {
126
169
  type: BooleanConstructor;
127
170
  };
171
+ /** A callback function to handle click events. */
128
172
  onClick: {
129
173
  type: FunctionConstructor;
130
174
  };
175
+ /** When set to `true` it will display the button as a `CLPill`. */
131
176
  pill: {
132
177
  type: BooleanConstructor;
133
178
  };
179
+ /** When set to `false` it will not render with rounded corners. */
134
180
  rounded: {
135
181
  type: BooleanConstructor;
136
182
  default: boolean;
137
183
  };
184
+ /** Sets the button size. The property can be one of `CLSizes`, e.g. `CLSizes.Medium`. */
138
185
  size: {
139
186
  type: PropType<CLSizes>;
140
187
  default: CLSizes;
141
188
  };
189
+ /** Sets the title attribute. */
142
190
  title: {
143
191
  type: StringConstructor;
144
192
  };
193
+ /** Sets a custom ID used for unit tests. */
145
194
  testId: {
146
195
  type: StringConstructor;
147
196
  default: string;
148
197
  };
198
+ /** Sets the button type. The property can be one of `CLButtonTypes`, e.g. `CLButtonTypes.Submit`. */
149
199
  type: {
150
200
  type: PropType<CLButtonTypes>;
151
201
  default: CLButtonTypes;
152
202
  };
203
+ /** Sets the style/theme. The property can be one of `CLThemes`, e.g. `CLThemes.Primary`. */
153
204
  theme: {
154
205
  type: PropType<CLThemes>;
155
206
  default: CLThemes;
156
207
  };
208
+ /** Sets the width of the button, it's default value is `auto`. */
157
209
  width: {
158
210
  type: StringConstructor;
159
211
  default: string;
160
212
  };
213
+ /** When set to `true`, it will remove any horizontal and vertical padding of the slot content. */
161
214
  wrap: {
162
215
  type: BooleanConstructor;
163
216
  default: boolean;
@@ -170,9 +223,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
170
223
  elevated: boolean;
171
224
  theme: CLThemes;
172
225
  busy: boolean;
173
- width: string;
174
226
  height: string;
227
+ width: string;
175
228
  alignContent: CLAlign;
229
+ iconSize: CLIconSizes;
230
+ iconAfterSize: CLIconSizes;
176
231
  pill: boolean;
177
232
  size: CLSizes;
178
233
  wrap: boolean;
@@ -17,10 +17,10 @@ declare const __VLS_component: import('vue').DefineComponent<CLCardProps, {}, {}
17
17
  target: CLLinkTarget;
18
18
  elevated: boolean;
19
19
  theme: CLThemes;
20
+ align: CLAlign;
20
21
  busy: boolean;
21
- width: string;
22
22
  height: string;
23
- align: CLAlign;
23
+ width: string;
24
24
  active: boolean;
25
25
  imageAltText: string;
26
26
  imageHeight: string;
@@ -1,12 +1,30 @@
1
- import { CLAlign, CLOrder, CLThemes } from '../../../index';
1
+ import { CLAlign, CLPaginationType, CLOrder, CLThemes } from '../../../index';
2
+ type PerPageBreakpoint = [number, number];
2
3
  export interface Props {
4
+ /** Set the horizontal alignment of the controls. The property can be one of `CLAlign`, e.g. `CLAlign.Right` */
3
5
  controlAlign?: CLAlign;
6
+ /** Set the position of the controls. The controls can be set to appear above or below the slot content. */
4
7
  controlPosition?: CLOrder;
8
+ /** When set to `false` it will remove the carousel's functionality and layout. */
5
9
  enabled?: boolean;
10
+ /** Set a custom label for the more button. Default is `More`. */
11
+ moreLabel?: string;
12
+ /** A callback function to handle when the more button is clicked. */
6
13
  onShowMore?: () => void;
14
+ /** Set the the display style of the pagination. The property can be one of `CLPaginationType`, e.g. `CLPaginationType.Numbered */
15
+ paginationType?: CLPaginationType;
16
+ /** Number of slides displayed on each page. */
17
+ perPage?: number;
18
+ /** An array of the number of slides displayed on each page, based on a provided breakpoint, e.g. [[768,2],[1024,4]]. When set, it uses the `perPage` value as the default for mobile. */
19
+ perPageByBreakpoints?: PerPageBreakpoint[];
20
+ /** Sets a custom ID used for unit tests. */
7
21
  testId?: string;
22
+ /** Sets the title of the carousel. */
8
23
  title?: string;
24
+ /** Sets the theme of the carousel navigation components. The property can be one of `CLThemes`, e.g. `CLThemes.Secondary`. */
9
25
  theme?: CLThemes;
26
+ /** Explicity set a width for the carousel. Default is 100% of it's parent container. */
27
+ width?: string;
10
28
  }
11
29
  declare function __VLS_template(): {
12
30
  slots: {
@@ -20,9 +38,14 @@ declare function __VLS_template(): {
20
38
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
21
39
  declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
22
40
  enabled: boolean;
41
+ testId: string;
23
42
  theme: CLThemes;
43
+ width: string;
44
+ moreLabel: string;
45
+ paginationType: CLPaginationType;
24
46
  controlAlign: CLAlign;
25
47
  controlPosition: CLOrder;
48
+ perPage: number;
26
49
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
50
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
51
  export default _default;
@@ -1,14 +1,21 @@
1
- import { CLThemes } from '../../../index';
1
+ import { CLGenericFunction, CLPaginationType, CLThemes } from '../../../index';
2
2
  interface Props {
3
- prefix: string;
4
3
  currentPage: number;
5
- totalPages: number;
6
- theme: CLThemes;
4
+ enabled: boolean;
5
+ gotoPage: (index: number) => void;
6
+ moreLabel: string;
7
+ moreAriaLabel?: string;
7
8
  nextPageEnabled: boolean;
9
+ paginationType: CLPaginationType;
10
+ prefix: string;
8
11
  prevPageEnabled: boolean;
9
- showPrevItems?: () => void;
10
- showNextItems?: () => void;
11
- showMore?: () => void;
12
+ showMore?: CLGenericFunction;
13
+ showNextItems?: CLGenericFunction;
14
+ showPrevItems?: CLGenericFunction;
15
+ totalPages: number;
16
+ theme: CLThemes;
12
17
  }
13
- 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>;
18
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
19
+ moreAriaLabel: string;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
21
  export default _default;
@@ -0,0 +1,16 @@
1
+ declare function __VLS_template(): {
2
+ slots: {
3
+ default?(_: {}): any;
4
+ };
5
+ refs: {};
6
+ attrs: Partial<{}>;
7
+ };
8
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
10
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
11
+ export default _default;
12
+ type __VLS_WithTemplateSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
@@ -1,23 +1,42 @@
1
- import { CLHeadingTypes, CLHeadingLevels, CLIconNames, CLTextTypes, CLSizes, CLBorderRadius } from '../../index';
1
+ import { CLHeadingTypes, CLHeadingLevels, CLIconNames, CLTextTypes, CLSizes, CLBorderRadius, CLIconSizes } 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
+ /** When set to `true`, it will remove any horizontal padding and overrides the vertical padding of the trigger and slot content. */
4
6
  compact?: boolean;
7
+ /** When set to `false`, it will remove any horizontal and vertical padding. */
5
8
  contentSpacing?: boolean;
9
+ /** A unique identifier, this is required. It ensures that if multiple disclosures are used, each will be handled properly. */
6
10
  disclosureId: string;
11
+ /** Set the expanded state of the disclosure. */
7
12
  expanded?: boolean;
13
+ /** Set the icon to display when the disclosure is expanded. */
8
14
  expandedIcon?: CLIconNames;
15
+ /** Set the text of the heading which should be displayed in the trigger. */
9
16
  heading?: string;
17
+ /** Set the heading type. The property can be one of `CLHeadingTypes`, e.g. `CLHeadingTypes.Title` */
10
18
  headingType?: CLHeadingTypes;
19
+ /** Set the heading level. The property can be one of `CLHeadingLevels`, e.g. `CLHeadingLevels.H1` */
11
20
  headingLevel?: CLHeadingLevels;
21
+ /** Set the icon to display before the heading text. */
12
22
  iconBefore?: CLIconNames;
13
- iconBeforeSize?: CLSizes;
23
+ /** Set the size of the icon before the heading text. The property can be one of `CLIconSizes`, e.g. `CLIconSizes.Medium` */
24
+ iconBeforeSize?: CLIconSizes;
25
+ /** Set the icon to display when the disclosure is collapsed. */
14
26
  iconAfter?: CLIconNames;
15
- iconAfterSize?: CLSizes;
27
+ /** Set the size of the icon after the heading text. The property can be one of `CLIconSizes`, e.g. `CLIconSizes.Medium` */
28
+ iconAfterSize?: CLIconSizes;
29
+ /** Set the rounded state of the disclosure. */
16
30
  rounded?: boolean;
31
+ /** Set the text of the sub-heading which should be displayed in the trigger after the heading. */
17
32
  subHeading?: string;
33
+ /** Set the sub-heading text type. The property can be one of `CLTextTypes`, e.g. `CLTextTypes.Body` */
18
34
  subHeadingType?: CLTextTypes;
35
+ /** Sets a custom ID used for unit tests. */
19
36
  testId?: string;
37
+ /** Set the transparency of the disclosure. When set to `true` it will remove the surrounding borders and background color. */
20
38
  transparent?: boolean;
39
+ /** Set the size of the trigger button. The property can be one of `CLSizes`, e.g. `CLSizes.Medium` */
21
40
  triggerButtonSize?: CLSizes;
22
41
  }
23
42
  declare function __VLS_template(): {
@@ -33,7 +52,7 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
33
52
  testId: string;
34
53
  borderRadius: CLBorderRadius;
35
54
  iconAfter: CLIconNames;
36
- iconAfterSize: CLSizes;
55
+ iconAfterSize: CLIconSizes;
37
56
  contentSpacing: boolean;
38
57
  disclosureId: string;
39
58
  expanded: boolean;
@@ -1,7 +1,52 @@
1
- import { CLInputProps, CLSizes, CLThemes } from '../../index';
2
- declare const _default: import('vue').DefineComponent<Omit<CLInputProps, "fluid" | "pattern" | "prefix" | "width" | "autoComplete" | "grouped" | "labelSize" | "maxLength" | "minLength" | "options" | "placeholder" | "readonly" | "resizable" | "rows" | "spellcheck" | "suffix">, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Omit<CLInputProps, "fluid" | "pattern" | "prefix" | "width" | "autoComplete" | "grouped" | "labelSize" | "maxLength" | "minLength" | "options" | "placeholder" | "readonly" | "resizable" | "rows" | "spellcheck" | "suffix">> & Readonly<{}>, {
1
+ import { CLBorderRadius, CLGenericFunction, CLGenericFocusFunction, CLMessageType, CLSizes, CLInputThemes } 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 checkbox. */
8
+ busy?: boolean;
9
+ /** Set the checked state. */
10
+ checked?: boolean;
11
+ /** Set the disabled state. */
12
+ disabled?: boolean;
13
+ /** The form whom the checkbox belongs to. Useful for when a checkbox 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 checkbox. */
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 checkbox. The name is submitted along with the checkbox value when the form it belongs to is submitted. */
24
+ name: string;
25
+ /** Set the required state. */
26
+ required?: boolean;
27
+ /** When set to `false` it will not render with rounded corners. */
28
+ rounded?: boolean;
29
+ /** Sets the checkbox size. The property can be one of `CLSizes`, e.g. `CLSizes.Medium`. */
30
+ size?: CLSizes;
31
+ /** Sets a custom ID used for unit tests. */
32
+ testId?: string;
33
+ /** Sets the style/theme. The property can be one of `CLThemes`, e.g. `CLThemes.Primary`. */
34
+ theme?: CLInputThemes;
35
+ /** Set the value for the checkbox when it's checked. */
36
+ value?: string | number;
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
+ /** A callback function which handles when the checkbox input state is updated. */
44
+ onInput?: CLGenericFunction;
45
+ }
46
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
3
47
  rounded: boolean;
4
- theme: CLThemes;
48
+ testId: string;
49
+ theme: CLInputThemes;
5
50
  size: CLSizes;
6
51
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
52
  export default _default;
@@ -1,9 +1,78 @@
1
- import { CLInputTypes, CLInputProps, CLSizes, CLThemes } from '../../index';
2
- declare const _default: import('vue').DefineComponent<Omit<CLInputProps, "options" | "resizable" | "rows" | "checked">, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Omit<CLInputProps, "options" | "resizable" | "rows" | "checked">> & Readonly<{}>, {
1
+ import { CLBorderRadius, CLIconNames, CLInputTypes, CLGenericFocusFunction, CLGenericFunction, CLMessageType, CLSizes, CLInputThemes } 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
+ /** See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#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 input. */
10
+ busy?: boolean;
11
+ /** Set the disabled state. */
12
+ disabled?: boolean;
13
+ /** When set to true, sets the width of the Input to 100% of it's parent. */
14
+ fluid?: boolean;
15
+ /** The form whom the input belongs to. Useful for when a input is not within a `form` element. */
16
+ form?: string;
17
+ /** When a prefix or suffix is set, setting this to `true` changes the layout. */
18
+ grouped?: boolean;
19
+ /** A unique identifier, this is required. */
20
+ id: string;
21
+ /** The label text to be displayed which is associated to the input. */
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 input. The name is submitted along with the input 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
+ /** Setting this value would render the string the `<CLPill />` component below the input. */
36
+ pill?: string;
37
+ /** The default text shown when there is no value. Useful for providing a hint of what type of input is expected. */
38
+ placeholder?: string;
39
+ /** Sets the icon or text to be displayed before the user input. */
40
+ prefix?: string | CLIconNames;
41
+ /** When set to `true` the input cannot be edited. */
42
+ readonly?: boolean;
43
+ /** Set the required state. */
44
+ required?: boolean;
45
+ /** When set to `false` it will not render with rounded corners. */
46
+ rounded?: boolean;
47
+ /** Sets the input 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 the icon or text to be displayed after the user input. */
52
+ suffix?: string | CLIconNames;
53
+ /** Sets a custom ID used for unit tests. */
54
+ testId?: string;
55
+ /** Sets the style/theme. The property can be one of `CLThemes`, e.g. `CLThemes.Primary`. */
56
+ theme?: CLInputThemes;
57
+ /**Set the type of input, supports various input types. */
58
+ type?: CLInputTypes;
59
+ /** Set the value for the input when it's checked. */
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. */
64
+ 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. */
68
+ onChange?: CLGenericFunction;
69
+ }
70
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
3
71
  fluid: boolean;
4
72
  rounded: boolean;
73
+ testId: string;
5
74
  type: CLInputTypes;
6
- theme: CLThemes;
75
+ theme: CLInputThemes;
7
76
  size: CLSizes;
8
77
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
78
  export default _default;
@@ -1,7 +1,52 @@
1
- import { CLInputProps, CLSizes, CLThemes } from '../../index';
2
- declare const _default: import('vue').DefineComponent<Omit<CLInputProps, "fluid" | "pattern" | "prefix" | "width" | "autoComplete" | "grouped" | "labelSize" | "maxLength" | "minLength" | "options" | "placeholder" | "readonly" | "resizable" | "rows" | "spellcheck" | "suffix">, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Omit<CLInputProps, "fluid" | "pattern" | "prefix" | "width" | "autoComplete" | "grouped" | "labelSize" | "maxLength" | "minLength" | "options" | "placeholder" | "readonly" | "resizable" | "rows" | "spellcheck" | "suffix">> & Readonly<{}>, {
1
+ import { CLBorderRadius, CLGenericFunction, CLGenericFocusFunction, CLMessageType, CLSizes, CLInputThemes } 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 radiobutton. */
8
+ busy?: boolean;
9
+ /** Set the checked state. */
10
+ checked?: boolean;
11
+ /** Set the disabled state. */
12
+ disabled?: boolean;
13
+ /** The form whom the radiobutton belongs to. Useful for when a radiobutton 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 radiobutton. */
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 radiobutton. The name is submitted along with the radiobutton value when the form it belongs to is submitted. */
24
+ name: string;
25
+ /** Set the required state. */
26
+ required?: boolean;
27
+ /** When set to `false` it will not render with rounded corners. */
28
+ rounded?: boolean;
29
+ /** Sets the radiobutton size. The property can be one of `CLSizes`, e.g. `CLSizes.Medium`. */
30
+ size?: CLSizes;
31
+ /** Sets a custom ID used for unit tests. */
32
+ testId?: string;
33
+ /** Sets the style/theme. The property can be one of `CLThemes`, e.g. `CLThemes.Primary`. */
34
+ theme?: CLInputThemes;
35
+ /** Set the value for the radiobutton when it's checked. */
36
+ value?: string | number;
37
+ /** A callback function which handles when the radiobutton loses focus. */
38
+ onBlur?: CLGenericFocusFunction;
39
+ /** A callback function which handles when the radiobutton is clicked. */
40
+ onChange?: CLGenericFunction;
41
+ /** A callback function which handles when the radiobutton gains focus. */
42
+ onFocus?: CLGenericFocusFunction;
43
+ /** A callback function which handles when the radiobutton input state is updated. */
44
+ onInput?: CLGenericFunction;
45
+ }
46
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
3
47
  rounded: boolean;
4
- theme: CLThemes;
48
+ testId: string;
49
+ theme: CLInputThemes;
5
50
  size: CLSizes;
6
51
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
52
  export default _default;