@codeandfunction/callaloo 2.0.0 → 2.1.1

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 (71) hide show
  1. package/dist/assets/styles.css +1 -0
  2. package/dist/components/Assets/CLIcon.vue.d.ts +16 -0
  3. package/dist/components/Assets/index.d.ts +3 -0
  4. package/dist/components/Assets/utils.d.ts +6 -0
  5. package/dist/components/Buttons/CLA11yButton.vue.d.ts +39 -0
  6. package/dist/components/Buttons/CLButton.vue.d.ts +258 -0
  7. package/dist/components/Buttons/index.d.ts +5 -0
  8. package/dist/components/Buttons/utils.d.ts +8 -0
  9. package/dist/components/Containers/CLCard.vue.d.ts +48 -0
  10. package/dist/components/Containers/CLDisclosure.vue.d.ts +78 -0
  11. package/dist/components/Containers/Carousel/CLCarousel.vue.d.ts +59 -0
  12. package/dist/components/Containers/Carousel/CLCarouselNavigation.vue.d.ts +21 -0
  13. package/dist/components/Containers/Carousel/CLCarouselSlide.vue.d.ts +17 -0
  14. package/dist/components/Containers/index.d.ts +9 -0
  15. package/dist/components/Containers/utils.d.ts +8 -0
  16. package/dist/components/Form/CLCheckbox.vue.d.ts +54 -0
  17. package/dist/components/Form/CLFormField.vue.d.ts +23 -0
  18. package/dist/components/Form/CLInput.vue.d.ts +87 -0
  19. package/dist/components/Form/CLInputMessages.vue.d.ts +10 -0
  20. package/dist/components/Form/CLRadioButton.vue.d.ts +54 -0
  21. package/dist/components/Form/CLSelect.vue.d.ts +60 -0
  22. package/dist/components/Form/CLTextArea.vue.d.ts +79 -0
  23. package/dist/components/Form/index.d.ts +11 -0
  24. package/dist/components/Form/utils.d.ts +12 -0
  25. package/dist/components/Indicators/CLBadge.vue.d.ts +24 -0
  26. package/dist/components/Indicators/CLBanner.vue.d.ts +13 -0
  27. package/dist/components/Indicators/CLPill.vue.d.ts +29 -0
  28. package/dist/components/Indicators/index.d.ts +7 -0
  29. package/dist/components/Indicators/utils.d.ts +9 -0
  30. package/dist/components/Loading/CLSkeleton.vue.d.ts +20 -0
  31. package/dist/components/Loading/CLSpinner.vue.d.ts +21 -0
  32. package/dist/components/Loading/index.d.ts +5 -0
  33. package/dist/components/Loading/utils.d.ts +6 -0
  34. package/dist/components/Modals/CLModal.vue.d.ts +46 -0
  35. package/dist/components/Modals/index.d.ts +3 -0
  36. package/dist/components/Modals/utils.d.ts +1 -0
  37. package/dist/components/Navigation/CLLink.vue.d.ts +45 -0
  38. package/dist/components/Navigation/CLNavLink.vue.d.ts +43 -0
  39. package/dist/components/Navigation/CLNavSection.vue.d.ts +17 -0
  40. package/dist/components/Navigation/index.d.ts +7 -0
  41. package/dist/components/Navigation/utils.d.ts +7 -0
  42. package/dist/components/Popups/CLDropdownMenu.vue.d.ts +543 -0
  43. package/dist/components/Popups/CLToast.vue.d.ts +13 -0
  44. package/dist/components/Popups/index.d.ts +5 -0
  45. package/dist/components/Popups/utils.d.ts +7 -0
  46. package/dist/components/Table/CLTable.vue.d.ts +46 -0
  47. package/dist/components/Table/CLTableBody.vue.d.ts +17 -0
  48. package/dist/components/Table/CLTableCell.vue.d.ts +41 -0
  49. package/dist/components/Table/CLTableFooter.vue.d.ts +17 -0
  50. package/dist/components/Table/CLTableHeader.vue.d.ts +17 -0
  51. package/dist/components/Table/CLTableNestedCell.vue.d.ts +20 -0
  52. package/dist/components/Table/CLTableRow.vue.d.ts +22 -0
  53. package/dist/components/Table/index.d.ts +15 -0
  54. package/dist/components/Table/utils.d.ts +1 -0
  55. package/dist/components/Theme/CLThemeProvider.vue.d.ts +28 -0
  56. package/dist/components/Theme/base-theme.d.ts +41 -0
  57. package/dist/components/Theme/index.d.ts +3 -0
  58. package/dist/components/Theme/utils.d.ts +38 -0
  59. package/dist/components/Typography/CLHeading.vue.d.ts +63 -0
  60. package/dist/components/Typography/CLText.vue.d.ts +86 -0
  61. package/dist/components/Typography/index.d.ts +5 -0
  62. package/dist/components/Typography/utils.d.ts +6 -0
  63. package/dist/composables/useDropdown.d.ts +14 -0
  64. package/dist/composables/useEsc.d.ts +9 -0
  65. package/dist/composables/useHasSlotContent.d.ts +1 -0
  66. package/dist/constants.d.ts +22 -0
  67. package/dist/index.d.ts +15 -0
  68. package/dist/index.js +5287 -0
  69. package/dist/types.d.ts +586 -0
  70. package/dist/utils/helper.d.ts +16 -0
  71. package/package.json +3 -2
@@ -0,0 +1,29 @@
1
+ import { CLGenericFunction, CLIconNames, CLColors, CLColorVariants } from '../../index';
2
+ export interface Props {
3
+ /** Sets the color of the Pill. The property can be one of `CLColors`, e.g. `CLColors.Primary`. */
4
+ color?: CLColors;
5
+ /** The count to display in the Pill. */
6
+ count?: number;
7
+ /** The `elevated` property displays a shadow to indicate elevation. */
8
+ elevated?: boolean;
9
+ /** Sets the icon which is positioned before the Pill's label. */
10
+ icon?: CLIconNames;
11
+ /** The text to be displayed as the label. */
12
+ label: string;
13
+ /** A callback function to handle click events. */
14
+ onClick?: CLGenericFunction;
15
+ /** When set to `false` it will not render a Pill with rounded corners. */
16
+ rounded?: boolean;
17
+ /** Sets a custom ID used for unit tests. */
18
+ testId?: string;
19
+ /** Sets the color variant. The property can be on of `CLColorVariants`, e.g `CLColorVariants.Soft`. */
20
+ variant?: CLColorVariants;
21
+ }
22
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
23
+ color: CLColors;
24
+ variant: CLColorVariants;
25
+ elevated: boolean;
26
+ testId: string;
27
+ rounded: boolean;
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { default as CLBadge } from './CLBadge.vue';
2
+ import { default as CLBanner } from './CLBanner.vue';
3
+ import { default as CLPill } from './CLPill.vue';
4
+ export { CLBadge, CLBanner, CLPill };
5
+ export type CLBadge = InstanceType<typeof CLBadge>;
6
+ export type CLBanner = InstanceType<typeof CLBanner>;
7
+ export type CLPill = InstanceType<typeof CLPill>;
@@ -0,0 +1,9 @@
1
+ import { CLColors, CLColorVariants } from '../../index';
2
+ interface ThemeProps {
3
+ color: CLColors;
4
+ variant: CLColorVariants;
5
+ }
6
+ export declare const badgeTheme: ({ color, variant, }: ThemeProps) => string;
7
+ export declare const bannerTheme: ({ color, variant, }: ThemeProps) => string;
8
+ export declare const pillTheme: ({ color, variant, }: ThemeProps) => string;
9
+ export {};
@@ -0,0 +1,20 @@
1
+ import { CLBorderRadius } from '../../index';
2
+ export interface Props {
3
+ /** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
4
+ borderRadius?: CLBorderRadius;
5
+ /** Sets the height of the Skeleton, it's default value is `100%`. */
6
+ height?: string;
7
+ /** When set to `false` it will not render with rounded corners. */
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%`. */
12
+ width?: string;
13
+ }
14
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
15
+ width: string;
16
+ height: string;
17
+ testId: string;
18
+ rounded: boolean;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
20
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import { CLAlign, CLPosition, CLSizes, CLColors } from '../../index';
2
+ export interface Props {
3
+ /** Set the horizontal alignment of the Spinner on the page. The property can be one of `CLAlign`, e.g. `CLAlign.Left` */
4
+ align?: CLAlign;
5
+ /** Sets the color of the Spinner. The property can be one of `CLColors`, e.g. `CLColors.Primary` */
6
+ color?: CLColors;
7
+ /** Sets the css display property of the Spinner. The property can be one of `CLPosition`, e.g. `CLPosition.Absolute` */
8
+ position?: CLPosition;
9
+ /** Sets the size of the Spinner. The property can be one of `CLSizes`, e.g. `CLSizes.Medium` */
10
+ size?: CLSizes;
11
+ /** Sets a custom ID used for unit tests. */
12
+ testId?: string;
13
+ }
14
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
15
+ color: CLColors;
16
+ testId: string;
17
+ align: CLAlign;
18
+ size: CLSizes;
19
+ position: CLPosition;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
21
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { default as CLSkeleton } from './CLSkeleton.vue';
2
+ import { default as CLSpinner } from './CLSpinner.vue';
3
+ export { CLSkeleton, CLSpinner };
4
+ export type CLSkeleton = InstanceType<typeof CLSkeleton>;
5
+ export type CLSpinner = InstanceType<typeof CLSpinner>;
@@ -0,0 +1,6 @@
1
+ import { CLColors } from '../../index';
2
+ interface ThemeProps {
3
+ color: CLColors;
4
+ }
5
+ export declare const spinnerTheme: ({ color }: ThemeProps) => string;
6
+ export {};
@@ -0,0 +1,46 @@
1
+ import { CLBorderRadius, CLGenericFunction } from '../../index';
2
+ interface Props {
3
+ /** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
4
+ borderRadius?: CLBorderRadius;
5
+ /** When set to `true`, the Modal spans the available width and height of the page. */
6
+ fullscreen?: boolean;
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. */
14
+ title?: string;
15
+ /** The z-index of the Modal. */
16
+ zIndex?: number;
17
+ }
18
+ declare function __VLS_template(): {
19
+ attrs: Partial<{}>;
20
+ slots: {
21
+ header?(_: {}): any;
22
+ body?(_: {}): any;
23
+ footer?(_: {}): any;
24
+ };
25
+ refs: {
26
+ modalWindow: HTMLDivElement;
27
+ };
28
+ rootEl: any;
29
+ };
30
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
31
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
32
+ borderRadius: CLBorderRadius;
33
+ testId: string;
34
+ isOpen: boolean;
35
+ zIndex: number;
36
+ fullscreen: boolean;
37
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
38
+ modalWindow: HTMLDivElement;
39
+ }, any>;
40
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
41
+ export default _default;
42
+ type __VLS_WithTemplateSlots<T, S> = T & {
43
+ new (): {
44
+ $slots: S;
45
+ };
46
+ };
@@ -0,0 +1,3 @@
1
+ import { default as CLModal } from './CLModal.vue';
2
+ export { CLModal };
3
+ export type CLModal = InstanceType<typeof CLModal>;
@@ -0,0 +1 @@
1
+ export declare const modalTheme: () => string;
@@ -0,0 +1,45 @@
1
+ import { CLLinkTarget, CLColors, CLGenericFunction } from '../../index';
2
+ export interface Props {
3
+ /** Sets the aria-label on the Link element. */
4
+ ariaLabel?: string;
5
+ /** Set the color of the link. The property can be one of `CLColors`, e.g. `CLColors.Secondary`. */
6
+ color?: CLColors;
7
+ /** Sets the external attribute on the Link element. If set, it adds an icon indicating that the link will open a new tab/window. */
8
+ external?: boolean;
9
+ /** Sets the href attribute on the Link element. */
10
+ href?: string;
11
+ /** A callback function to handle click events. */
12
+ onClick?: CLGenericFunction;
13
+ /** Sets the rel attribute on the Link element. */
14
+ rel?: string;
15
+ /** Sets the target attribute on the Link element. The property can be one of `CLLinkTarget`, e.g. `CLLinkTarget.Self` */
16
+ target?: CLLinkTarget;
17
+ /** Sets a custom ID used for unit tests. */
18
+ testId?: string;
19
+ /** When set to `true`, it adds an underline to the link. */
20
+ underline?: boolean;
21
+ }
22
+ declare function __VLS_template(): {
23
+ attrs: Partial<{}>;
24
+ slots: {
25
+ default?(_: {}): any;
26
+ };
27
+ refs: {};
28
+ rootEl: HTMLAnchorElement;
29
+ };
30
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
31
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
32
+ color: CLColors;
33
+ testId: string;
34
+ target: CLLinkTarget;
35
+ external: boolean;
36
+ rel: string;
37
+ underline: boolean;
38
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLAnchorElement>;
39
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
40
+ export default _default;
41
+ type __VLS_WithTemplateSlots<T, S> = T & {
42
+ new (): {
43
+ $slots: S;
44
+ };
45
+ };
@@ -0,0 +1,43 @@
1
+ import { CLLinkTarget, CLColors, CLGenericFunction } from '../../index';
2
+ export interface Props {
3
+ /** Sets the aria-label on the NavLink element. */
4
+ ariaLabel?: string;
5
+ /** Set the color of the link. The property can be one of `CLColors`, e.g. `CLColors.Neutral`. */
6
+ color?: CLColors;
7
+ /** Sets the external attribute on the NavLink element. If set, it adds an icon indicating that the link will open a new tab/window. */
8
+ external?: boolean;
9
+ /** Sets the href attribute on the Link element. */
10
+ href?: string;
11
+ /** Sets the unique ID of the NavLink element. */
12
+ id?: string;
13
+ /** A callback function to handle click events. */
14
+ onClick?: CLGenericFunction;
15
+ /** Sets the rel attribute on the NavLink element. */
16
+ rel?: string;
17
+ /** Sets the target attribute on the NavLink element. The property can be one of `CLLinkTarget`, e.g. `CLLinkTarget.Self` */
18
+ target?: CLLinkTarget;
19
+ /** Sets a custom ID used for unit tests. */
20
+ testId?: string;
21
+ }
22
+ declare function __VLS_template(): {
23
+ attrs: Partial<{}>;
24
+ slots: {
25
+ default?(_: {}): any;
26
+ };
27
+ refs: {};
28
+ rootEl: HTMLAnchorElement;
29
+ };
30
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
31
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
32
+ color: CLColors;
33
+ testId: string;
34
+ external: boolean;
35
+ rel: string;
36
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLAnchorElement>;
37
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
38
+ export default _default;
39
+ type __VLS_WithTemplateSlots<T, S> = T & {
40
+ new (): {
41
+ $slots: S;
42
+ };
43
+ };
@@ -0,0 +1,17 @@
1
+ import { CLNavItem, CLOrientation, CLColors } from '../../index';
2
+ export interface Props {
3
+ /** Set the color of the link. The property can be one of `CLColors`, e.g. `CLColors.Secondary`. */
4
+ color?: CLColors;
5
+ /** An array of `CLNavItem` objects that will be rendered as a list of navigation items. */
6
+ navItems: CLNavItem[];
7
+ /** Sets a custom ID used for unit tests. */
8
+ testId?: string;
9
+ /** Sets the orientation of the navigation section. The property can be one of `CLOrientation`, e.g. `CLOrientation.Horizontal` */
10
+ type?: CLOrientation;
11
+ }
12
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
13
+ color: CLColors;
14
+ testId: string;
15
+ type: CLOrientation;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLUListElement>;
17
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { default as CLLink } from './CLLink.vue';
2
+ import { default as CLNavLink } from './CLNavLink.vue';
3
+ import { default as CLNavSection } from './CLNavSection.vue';
4
+ export { CLLink, CLNavLink, CLNavSection };
5
+ export type CLLink = InstanceType<typeof CLLink>;
6
+ export type CLNavLink = InstanceType<typeof CLNavLink>;
7
+ export type CLNavSection = InstanceType<typeof CLNavSection>;
@@ -0,0 +1,7 @@
1
+ import { CLColors } from '../../index';
2
+ interface BaseLinkProps {
3
+ color: CLColors;
4
+ underline?: boolean;
5
+ }
6
+ export declare const base_link: ({ color, underline }: BaseLinkProps) => string;
7
+ export {};