@codeandfunction/callaloo 2.17.0 → 2.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/styles.css +1 -1
- package/dist/components/Buttons/CLButton.vue.d.ts +31 -1
- package/dist/components/Form/CLFormField.vue.d.ts +1 -0
- package/dist/components/Form/CLInput.vue.d.ts +2 -0
- package/dist/components/Form/CLTextArea.vue.d.ts +2 -0
- package/dist/components/Popups/CLDropdownMenu.vue.d.ts +52 -0
- package/dist/components/Providers/Toast/CLToastProvider.vue.d.ts +24 -0
- package/dist/components/Providers/index.d.ts +4 -0
- package/dist/components/Typography/CLText.vue.d.ts +1 -1
- package/dist/composables/useToast.d.ts +6 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1497 -1402
- package/dist/types.d.ts +16 -0
- package/package.json +23 -27
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CLAlign, CLBorderRadius, CLButtonTypes, CLColors, CLColorVariants, CLIconNames, CLIconSizes, CLSizes } from '../../index';
|
|
1
|
+
import { CLAlign, CLBorderRadius, CLButtonTypes, CLButtonTags, CLColors, CLColorVariants, CLIconNames, CLIconSizes, CLLinkTarget, CLSizes } from '../../index';
|
|
2
2
|
/**
|
|
3
3
|
* The `<CLButton />` component extends the functionality of the native `<button />` element, by including support for icons and colors.
|
|
4
4
|
*/
|
|
@@ -17,6 +17,11 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
17
17
|
ariaLabel: {
|
|
18
18
|
type: StringConstructor;
|
|
19
19
|
};
|
|
20
|
+
/** Set the HTML tag of the text element. The property can be one of `CLTextHtmlTags`, e.g. `p`. */
|
|
21
|
+
as: {
|
|
22
|
+
type: PropType<CLButtonTags>;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
20
25
|
/** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
|
|
21
26
|
borderRadius: {
|
|
22
27
|
type: PropType<CLBorderRadius>;
|
|
@@ -52,6 +57,10 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
52
57
|
type: StringConstructor;
|
|
53
58
|
default: string;
|
|
54
59
|
};
|
|
60
|
+
/** Sets the href attribute on the button element. This is useful when the button acts as a link. */
|
|
61
|
+
href: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
};
|
|
55
64
|
/** Sets the icon which is positioned after the button's slot content. */
|
|
56
65
|
iconAfter: {
|
|
57
66
|
type: PropType<CLIconNames>;
|
|
@@ -88,6 +97,11 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
88
97
|
type: PropType<CLSizes>;
|
|
89
98
|
default: CLSizes;
|
|
90
99
|
};
|
|
100
|
+
/** Sets the target attribute on the Link element. The property can be one of `CLLinkTarget`, e.g. `CLLinkTarget.Self` */
|
|
101
|
+
target: {
|
|
102
|
+
type: PropType<CLLinkTarget>;
|
|
103
|
+
default: CLLinkTarget;
|
|
104
|
+
};
|
|
91
105
|
/** Sets the title attribute. */
|
|
92
106
|
title: {
|
|
93
107
|
type: StringConstructor;
|
|
@@ -136,6 +150,11 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
136
150
|
ariaLabel: {
|
|
137
151
|
type: StringConstructor;
|
|
138
152
|
};
|
|
153
|
+
/** Set the HTML tag of the text element. The property can be one of `CLTextHtmlTags`, e.g. `p`. */
|
|
154
|
+
as: {
|
|
155
|
+
type: PropType<CLButtonTags>;
|
|
156
|
+
default: string;
|
|
157
|
+
};
|
|
139
158
|
/** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
|
|
140
159
|
borderRadius: {
|
|
141
160
|
type: PropType<CLBorderRadius>;
|
|
@@ -171,6 +190,10 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
171
190
|
type: StringConstructor;
|
|
172
191
|
default: string;
|
|
173
192
|
};
|
|
193
|
+
/** Sets the href attribute on the button element. This is useful when the button acts as a link. */
|
|
194
|
+
href: {
|
|
195
|
+
type: StringConstructor;
|
|
196
|
+
};
|
|
174
197
|
/** Sets the icon which is positioned after the button's slot content. */
|
|
175
198
|
iconAfter: {
|
|
176
199
|
type: PropType<CLIconNames>;
|
|
@@ -207,6 +230,11 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
207
230
|
type: PropType<CLSizes>;
|
|
208
231
|
default: CLSizes;
|
|
209
232
|
};
|
|
233
|
+
/** Sets the target attribute on the Link element. The property can be one of `CLLinkTarget`, e.g. `CLLinkTarget.Self` */
|
|
234
|
+
target: {
|
|
235
|
+
type: PropType<CLLinkTarget>;
|
|
236
|
+
default: CLLinkTarget;
|
|
237
|
+
};
|
|
210
238
|
/** Sets the title attribute. */
|
|
211
239
|
title: {
|
|
212
240
|
type: StringConstructor;
|
|
@@ -248,11 +276,13 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
248
276
|
rounded: boolean;
|
|
249
277
|
active: boolean;
|
|
250
278
|
alignContent: CLAlign;
|
|
279
|
+
as: CLButtonTags;
|
|
251
280
|
disabled: boolean;
|
|
252
281
|
iconSize: CLIconSizes;
|
|
253
282
|
iconAfterSize: CLIconSizes;
|
|
254
283
|
pill: boolean;
|
|
255
284
|
size: CLSizes;
|
|
285
|
+
target: CLLinkTarget;
|
|
256
286
|
wrap: boolean;
|
|
257
287
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
258
288
|
export default _default;
|
|
@@ -8,6 +8,8 @@ interface Props {
|
|
|
8
8
|
borderRadius?: CLBorderRadius;
|
|
9
9
|
/** A `boolean` value which dictates the busy state of the input. */
|
|
10
10
|
busy?: boolean;
|
|
11
|
+
/** When set to `true` and `maxLength` is set, it will display a character counter below the input. */
|
|
12
|
+
charCounter?: boolean;
|
|
11
13
|
/** Sets the color of element's borders. The property can be one of `CLColors`, e.g. `CLColors.Primary`. */
|
|
12
14
|
color?: CLColors;
|
|
13
15
|
/** Set the disabled state. */
|
|
@@ -8,6 +8,8 @@ interface Props {
|
|
|
8
8
|
borderRadius?: CLBorderRadius;
|
|
9
9
|
/** A `boolean` value which dictates the busy state of the textarea. */
|
|
10
10
|
busy?: boolean;
|
|
11
|
+
/** When set to `true` and `maxLength` is set, it will display a character counter below the textarea. */
|
|
12
|
+
charCounter?: boolean;
|
|
11
13
|
/** Sets the color of element's borders. The property can be one of `CLColors`, e.g. `CLColors.Primary`. */
|
|
12
14
|
color?: CLColors;
|
|
13
15
|
/** Set the exact number of columns, to specify the size of the rendered textarea. */
|
|
@@ -59,6 +59,10 @@ declare function __VLS_template(): {
|
|
|
59
59
|
ariaLabel: {
|
|
60
60
|
type: StringConstructor;
|
|
61
61
|
};
|
|
62
|
+
as: {
|
|
63
|
+
type: PropType<import('../../types').ButtonTags>;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
62
66
|
borderRadius: {
|
|
63
67
|
type: PropType<CLBorderRadius>;
|
|
64
68
|
};
|
|
@@ -86,6 +90,9 @@ declare function __VLS_template(): {
|
|
|
86
90
|
type: StringConstructor;
|
|
87
91
|
default: string;
|
|
88
92
|
};
|
|
93
|
+
href: {
|
|
94
|
+
type: StringConstructor;
|
|
95
|
+
};
|
|
89
96
|
iconAfter: {
|
|
90
97
|
type: PropType<CLIconNames>;
|
|
91
98
|
};
|
|
@@ -114,6 +121,10 @@ declare function __VLS_template(): {
|
|
|
114
121
|
type: PropType<CLSizes>;
|
|
115
122
|
default: CLSizes;
|
|
116
123
|
};
|
|
124
|
+
target: {
|
|
125
|
+
type: PropType<import('../../types').LinkTarget>;
|
|
126
|
+
default: import('../../types').LinkTarget;
|
|
127
|
+
};
|
|
117
128
|
title: {
|
|
118
129
|
type: StringConstructor;
|
|
119
130
|
};
|
|
@@ -153,11 +164,13 @@ declare function __VLS_template(): {
|
|
|
153
164
|
rounded: boolean;
|
|
154
165
|
active: boolean;
|
|
155
166
|
alignContent: import('../../types').Align;
|
|
167
|
+
as: import('../../types').ButtonTags;
|
|
156
168
|
disabled: boolean;
|
|
157
169
|
iconSize: CLIconSizes;
|
|
158
170
|
iconAfterSize: CLIconSizes;
|
|
159
171
|
pill: boolean;
|
|
160
172
|
size: CLSizes;
|
|
173
|
+
target: import('../../types').LinkTarget;
|
|
161
174
|
wrap: boolean;
|
|
162
175
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
163
176
|
P: {};
|
|
@@ -178,6 +191,10 @@ declare function __VLS_template(): {
|
|
|
178
191
|
ariaLabel: {
|
|
179
192
|
type: StringConstructor;
|
|
180
193
|
};
|
|
194
|
+
as: {
|
|
195
|
+
type: PropType<import('../../types').ButtonTags>;
|
|
196
|
+
default: string;
|
|
197
|
+
};
|
|
181
198
|
borderRadius: {
|
|
182
199
|
type: PropType<CLBorderRadius>;
|
|
183
200
|
};
|
|
@@ -205,6 +222,9 @@ declare function __VLS_template(): {
|
|
|
205
222
|
type: StringConstructor;
|
|
206
223
|
default: string;
|
|
207
224
|
};
|
|
225
|
+
href: {
|
|
226
|
+
type: StringConstructor;
|
|
227
|
+
};
|
|
208
228
|
iconAfter: {
|
|
209
229
|
type: PropType<CLIconNames>;
|
|
210
230
|
};
|
|
@@ -233,6 +253,10 @@ declare function __VLS_template(): {
|
|
|
233
253
|
type: PropType<CLSizes>;
|
|
234
254
|
default: CLSizes;
|
|
235
255
|
};
|
|
256
|
+
target: {
|
|
257
|
+
type: PropType<import('../../types').LinkTarget>;
|
|
258
|
+
default: import('../../types').LinkTarget;
|
|
259
|
+
};
|
|
236
260
|
title: {
|
|
237
261
|
type: StringConstructor;
|
|
238
262
|
};
|
|
@@ -272,11 +296,13 @@ declare function __VLS_template(): {
|
|
|
272
296
|
rounded: boolean;
|
|
273
297
|
active: boolean;
|
|
274
298
|
alignContent: import('../../types').Align;
|
|
299
|
+
as: import('../../types').ButtonTags;
|
|
275
300
|
disabled: boolean;
|
|
276
301
|
iconSize: CLIconSizes;
|
|
277
302
|
iconAfterSize: CLIconSizes;
|
|
278
303
|
pill: boolean;
|
|
279
304
|
size: CLSizes;
|
|
305
|
+
target: import('../../types').LinkTarget;
|
|
280
306
|
wrap: boolean;
|
|
281
307
|
}> | null;
|
|
282
308
|
dropdownElem: HTMLDivElement;
|
|
@@ -310,6 +336,10 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
310
336
|
ariaLabel: {
|
|
311
337
|
type: StringConstructor;
|
|
312
338
|
};
|
|
339
|
+
as: {
|
|
340
|
+
type: PropType<import('../../types').ButtonTags>;
|
|
341
|
+
default: string;
|
|
342
|
+
};
|
|
313
343
|
borderRadius: {
|
|
314
344
|
type: PropType<CLBorderRadius>;
|
|
315
345
|
};
|
|
@@ -337,6 +367,9 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
337
367
|
type: StringConstructor;
|
|
338
368
|
default: string;
|
|
339
369
|
};
|
|
370
|
+
href: {
|
|
371
|
+
type: StringConstructor;
|
|
372
|
+
};
|
|
340
373
|
iconAfter: {
|
|
341
374
|
type: PropType<CLIconNames>;
|
|
342
375
|
};
|
|
@@ -365,6 +398,10 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
365
398
|
type: PropType<CLSizes>;
|
|
366
399
|
default: CLSizes;
|
|
367
400
|
};
|
|
401
|
+
target: {
|
|
402
|
+
type: PropType<import('../../types').LinkTarget>;
|
|
403
|
+
default: import('../../types').LinkTarget;
|
|
404
|
+
};
|
|
368
405
|
title: {
|
|
369
406
|
type: StringConstructor;
|
|
370
407
|
};
|
|
@@ -404,11 +441,13 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
404
441
|
rounded: boolean;
|
|
405
442
|
active: boolean;
|
|
406
443
|
alignContent: import('../../types').Align;
|
|
444
|
+
as: import('../../types').ButtonTags;
|
|
407
445
|
disabled: boolean;
|
|
408
446
|
iconSize: CLIconSizes;
|
|
409
447
|
iconAfterSize: CLIconSizes;
|
|
410
448
|
pill: boolean;
|
|
411
449
|
size: CLSizes;
|
|
450
|
+
target: import('../../types').LinkTarget;
|
|
412
451
|
wrap: boolean;
|
|
413
452
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
414
453
|
P: {};
|
|
@@ -429,6 +468,10 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
429
468
|
ariaLabel: {
|
|
430
469
|
type: StringConstructor;
|
|
431
470
|
};
|
|
471
|
+
as: {
|
|
472
|
+
type: PropType<import('../../types').ButtonTags>;
|
|
473
|
+
default: string;
|
|
474
|
+
};
|
|
432
475
|
borderRadius: {
|
|
433
476
|
type: PropType<CLBorderRadius>;
|
|
434
477
|
};
|
|
@@ -456,6 +499,9 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
456
499
|
type: StringConstructor;
|
|
457
500
|
default: string;
|
|
458
501
|
};
|
|
502
|
+
href: {
|
|
503
|
+
type: StringConstructor;
|
|
504
|
+
};
|
|
459
505
|
iconAfter: {
|
|
460
506
|
type: PropType<CLIconNames>;
|
|
461
507
|
};
|
|
@@ -484,6 +530,10 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
484
530
|
type: PropType<CLSizes>;
|
|
485
531
|
default: CLSizes;
|
|
486
532
|
};
|
|
533
|
+
target: {
|
|
534
|
+
type: PropType<import('../../types').LinkTarget>;
|
|
535
|
+
default: import('../../types').LinkTarget;
|
|
536
|
+
};
|
|
487
537
|
title: {
|
|
488
538
|
type: StringConstructor;
|
|
489
539
|
};
|
|
@@ -523,11 +573,13 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
523
573
|
rounded: boolean;
|
|
524
574
|
active: boolean;
|
|
525
575
|
alignContent: import('../../types').Align;
|
|
576
|
+
as: import('../../types').ButtonTags;
|
|
526
577
|
disabled: boolean;
|
|
527
578
|
iconSize: CLIconSizes;
|
|
528
579
|
iconAfterSize: CLIconSizes;
|
|
529
580
|
pill: boolean;
|
|
530
581
|
size: CLSizes;
|
|
582
|
+
target: import('../../types').LinkTarget;
|
|
531
583
|
wrap: boolean;
|
|
532
584
|
}> | null;
|
|
533
585
|
dropdownElem: HTMLDivElement;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { CLToastProps } from '../../../index';
|
|
3
|
+
export interface CLToastProviderOutput {
|
|
4
|
+
visible: Ref<boolean>;
|
|
5
|
+
showToast: (toastProps: Omit<CLToastProps, 'onDismiss'>) => void;
|
|
6
|
+
hideToast: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: {
|
|
11
|
+
default?(_: {}): any;
|
|
12
|
+
};
|
|
13
|
+
refs: {};
|
|
14
|
+
rootEl: HTMLDivElement;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -90,8 +90,8 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
90
90
|
type: CLTextTypes;
|
|
91
91
|
bold: boolean;
|
|
92
92
|
align: CLAlign;
|
|
93
|
+
as: CLTextHtmlTags;
|
|
93
94
|
bolder: boolean;
|
|
94
95
|
truncate: boolean;
|
|
95
|
-
as: CLTextHtmlTags;
|
|
96
96
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
97
97
|
export default _default;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Align as CLAlign, BorderRadius as CLBorderRadius, ButtonTypes as CLButtonTypes, CardTypes as CLCardTypes, Colors as CLColors, ColorVariants as CLColorVariants, HeadingLevels as CLHeadingLevels, HeadingTypes as CLHeadingTypes, IconSizes as CLIconSizes, IconNames as CLIconNames, InputTypes as CLInputTypes, LinkTarget as CLLinkTarget, Loading as CLLoading, Mode as CLMode, Orientation as CLOrientation, Order as CLOrder, PaginationType as CLPaginationType, Placement as CLPlacement, Position as CLPosition, Sizes as CLSizes, TableTypes as CLTableTypes, TextTypes as CLTextTypes } from './types';
|
|
2
|
-
export type { BannerProps as CLBannerProps, CardProps as CLCardProps, GenericFunction as CLGenericFunction, GenericFocusFunction as CLGenericFocusFunction, NavItem as CLNavItem, Palette as CLPalette, Option as CLOption, ThemeConfig as CLThemeConfig, TextHtmlTags as CLTextHtmlTags, ToastProps as CLToastProps } from './types';
|
|
2
|
+
export type { BannerProps as CLBannerProps, ButtonTags as CLButtonTags, CardProps as CLCardProps, GenericFunction as CLGenericFunction, GenericFocusFunction as CLGenericFocusFunction, NavItem as CLNavItem, Palette as CLPalette, Option as CLOption, ThemeConfig as CLThemeConfig, TextHtmlTags as CLTextHtmlTags, ToastProps as CLToastProps } from './types';
|
|
3
3
|
export { CLBadge, CLBanner, CLPill } from './components/Indicators';
|
|
4
4
|
export { CLA11yButton, CLButton } from './components/Buttons';
|
|
5
5
|
export { CLCard, CLCarousel, CLCarouselSlide, CLDisclosure } from './components/Containers';
|
|
@@ -12,4 +12,6 @@ export { CLModal } from './components/Modals';
|
|
|
12
12
|
export { CLSkeleton, CLSpinner } from './components/Loading';
|
|
13
13
|
export { CLTable, CLTableBody, CLTableCell, CLTableFooter, CLTableHeader, CLTableNestedCell, CLTableRow } from './components/Table';
|
|
14
14
|
export { CLThemeProvider } from './components/Theme';
|
|
15
|
+
export { CLToastProvider, type CLToastProviderOutput } from './components/Providers';
|
|
16
|
+
export { useToast } from './composables/useToast';
|
|
15
17
|
export { DEFAULT_THEME, useTheme } from './components/Theme/base-theme';
|