@codeandfunction/callaloo 1.13.6 → 1.14.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 (40) hide show
  1. package/README.md +11 -3
  2. package/dist/assets/index.css +1 -1
  3. package/dist/components/Buttons/CLButton.vue.d.ts +13 -10
  4. package/dist/components/Buttons/utils.d.ts +7 -0
  5. package/dist/components/Containers/CLCard.vue.d.ts +1 -0
  6. package/dist/components/Containers/utils.d.ts +7 -0
  7. package/dist/components/Form/CLCheckbox.vue.d.ts +2 -2
  8. package/dist/components/Form/CLInput.vue.d.ts +8 -8
  9. package/dist/components/Form/CLInputMessages.vue.d.ts +5 -3
  10. package/dist/components/Form/CLRadioButton.vue.d.ts +2 -2
  11. package/dist/components/Form/CLSelect.vue.d.ts +3 -3
  12. package/dist/components/Form/CLTextArea.vue.d.ts +8 -8
  13. package/dist/components/Form/utils.d.ts +12 -0
  14. package/dist/components/Indicators/CLBanner.vue.d.ts +1 -0
  15. package/dist/components/Indicators/utils.d.ts +8 -0
  16. package/dist/components/Loading/utils.d.ts +6 -0
  17. package/dist/components/Modals/CLModal.vue.d.ts +3 -1
  18. package/dist/components/Modals/utils.d.ts +1 -0
  19. package/dist/components/Navigation/CLNavSection.vue.d.ts +1 -0
  20. package/dist/components/Navigation/utils.d.ts +7 -0
  21. package/dist/components/Popups/CLDropdownMenu.vue.d.ts +18 -10
  22. package/dist/components/Popups/{Toast.vue.d.ts → CLToast.vue.d.ts} +1 -0
  23. package/dist/components/Popups/utils.d.ts +4 -0
  24. package/dist/components/Table/utils.d.ts +1 -0
  25. package/dist/components/Theme/CLThemeProvider.vue.d.ts +21 -0
  26. package/dist/components/Theme/base-theme.d.ts +188 -0
  27. package/dist/components/Theme/utils.d.ts +21 -0
  28. package/dist/components/Typography/CLHeading.vue.d.ts +5 -5
  29. package/dist/components/Typography/CLText.vue.d.ts +4 -6
  30. package/dist/components/Typography/utils.d.ts +7 -0
  31. package/dist/composables/useDropdown.d.ts +1 -0
  32. package/dist/composables/useEsc.d.ts +4 -2
  33. package/dist/index.d.ts +5 -3
  34. package/dist/index.js +7217 -4444
  35. package/dist/index.js.map +1 -1
  36. package/dist/types.d.ts +34 -1
  37. package/dist/utils/helper.d.ts +1 -0
  38. package/package.json +37 -29
  39. package/dist/utils/tests.d.ts +0 -9
  40. /package/dist/components/Indicators/{Pill.vue.d.ts → CLPill.vue.d.ts} +0 -0
@@ -18,7 +18,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
18
18
  type: StringConstructor;
19
19
  default: string;
20
20
  };
21
- /** Set the theme of the heading. The property can be one of `CLHeadingThemes`, e.g. `CLHeadingThemes.Dark` */
21
+ /** Set the theme of the heading. The property can be one of `CLHeadingThemes`, e.g. `CLThemes.Dark` */
22
22
  theme: {
23
23
  type: PropType<CLHeadingThemes>;
24
24
  default: CLThemes;
@@ -28,9 +28,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
28
28
  type: PropType<CLHeadingTypes>;
29
29
  default: CLHeadingTypes;
30
30
  };
31
- }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
32
- [key: string]: any;
33
- }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
31
+ }>, {}, {}, {}, {
32
+ getLevel(): CLHeadingLevels;
33
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
34
34
  /** Set the horizontal alignment of content. The property can be one of `CLAlign`, e.g. `CLAlign.Left` */
35
35
  align: {
36
36
  type: PropType<CLAlign>;
@@ -45,7 +45,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
45
45
  type: StringConstructor;
46
46
  default: string;
47
47
  };
48
- /** Set the theme of the heading. The property can be one of `CLHeadingThemes`, e.g. `CLHeadingThemes.Dark` */
48
+ /** Set the theme of the heading. The property can be one of `CLHeadingThemes`, e.g. `CLThemes.Dark` */
49
49
  theme: {
50
50
  type: PropType<CLHeadingThemes>;
51
51
  default: CLThemes;
@@ -24,7 +24,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
24
24
  type: StringConstructor;
25
25
  default: string;
26
26
  };
27
- /** Set the text theme. The property can be one of `CLTextThemes`, e.g. `Dark`. */
27
+ /** Set the text theme. The property can be one of `CLTextThemes`, e.g. `CLThemes.Dark`. */
28
28
  theme: {
29
29
  type: PropType<CLTextThemes>;
30
30
  default: CLThemes;
@@ -34,9 +34,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
34
34
  type: BooleanConstructor;
35
35
  default: boolean;
36
36
  };
37
- }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
38
- [key: string]: any;
39
- }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
37
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
40
38
  /** Set the HTML tag of the text element. The property can be one of `CLTextHtmlTags`, e.g. `p`. */
41
39
  as: {
42
40
  type: PropType<CLTextHtmlTags>;
@@ -57,7 +55,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
57
55
  type: StringConstructor;
58
56
  default: string;
59
57
  };
60
- /** Set the text theme. The property can be one of `CLTextThemes`, e.g. `Dark`. */
58
+ /** Set the text theme. The property can be one of `CLTextThemes`, e.g. `CLThemes.Dark`. */
61
59
  theme: {
62
60
  type: PropType<CLTextThemes>;
63
61
  default: CLThemes;
@@ -68,9 +66,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
68
66
  default: boolean;
69
67
  };
70
68
  }>> & Readonly<{}>, {
69
+ label: boolean;
71
70
  testId: string;
72
71
  type: CLTextTypes;
73
- label: boolean;
74
72
  theme: CLTextThemes;
75
73
  as: CLTextHtmlTags;
76
74
  truncate: boolean;
@@ -0,0 +1,7 @@
1
+ import { CLThemes } from '../../index';
2
+ interface TextThemeProps {
3
+ color?: CLThemes;
4
+ component: string;
5
+ }
6
+ export declare const textTheme: ({ color, component, }: TextThemeProps) => string;
7
+ export {};
@@ -9,5 +9,6 @@ export declare const useDropdown: ({ triggerRef, dropdownRef, openDropdownHandle
9
9
  open: Ref<boolean, boolean>;
10
10
  toggleDropdown: () => void;
11
11
  closeDropdown: () => void;
12
+ clearEventListeners: () => void;
12
13
  };
13
14
  export {};
@@ -1,7 +1,9 @@
1
1
  import { Ref } from 'vue';
2
2
  interface Props {
3
- escHandler: () => void;
3
+ escHandler?: () => void;
4
4
  triggerRef?: Ref<HTMLElement | undefined>;
5
5
  }
6
- export declare const useEsc: ({ escHandler, triggerRef }: Props) => void;
6
+ export declare const useEsc: ({ escHandler, triggerRef }: Props) => {
7
+ clearEventListeners: () => void;
8
+ };
7
9
  export {};
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, DarkMode as CLDarkMode, HeadingLevels as CLHeadingLevels, HeadingTypes as CLHeadingTypes, IconSizes as CLIconSizes, IconNames as CLIconNames, InputTypes as CLInputTypes, LinkTarget as CLLinkTarget, MessageType as CLMessageType, Orientation as CLOrientation, Order as CLOrder, PaginationType as CLPaginationType, Placement as CLPlacement, Position as CLPosition, Sizes as CLSizes, TableTypes as CLTableTypes, TextTypes as CLTextTypes, Themes as CLThemes, } from './types';
2
- export type { BadgeThemes as CLBadgeThemes, BannerProps as CLBannerProps, CardProps as CLCardProps, HeadingThemes as CLHeadingThemes, InputThemes as CLInputThemes, GenericFunction as CLGenericFunction, GenericFocusFunction as CLGenericFocusFunction, NavItem as CLNavItem, PillThemes as CLPillThemes, Option as CLOption, SimpleThemes as CLSimpleThemes, SpinnerThemes as CLSpinnerThemes, ToastProps as CLToastProps, TextThemes as CLTextThemes, TextHtmlTags as CLTextHtmlTags, } from './types';
2
+ export type { BadgeThemes as CLBadgeThemes, BannerProps as CLBannerProps, CardProps as CLCardProps, HeadingThemes as CLHeadingThemes, InputThemes as CLInputThemes, GenericFunction as CLGenericFunction, GenericFocusFunction as CLGenericFocusFunction, MessageThemes as CLMessageThemes, NavItem as CLNavItem, PillThemes as CLPillThemes, Option as CLOption, SimpleThemes as CLSimpleThemes, SpinnerThemes as CLSpinnerThemes, Theme as CLTheme, ThemeConfig as CLThemeConfig, ThemeKeys as CLThemeKeys, TextThemes as CLTextThemes, TextHtmlTags as CLTextHtmlTags, ToastProps as CLToastProps, ToastThemes as CLToastThemes, } from './types';
3
3
  export { default as CLA11yButton } from './components/Buttons/CLA11yButton.vue';
4
4
  export { default as CLBadge } from './components/Indicators/CLBadge.vue';
5
5
  export { default as CLBanner } from './components/Indicators/CLBanner.vue';
@@ -17,7 +17,7 @@ export { default as CLDropdownMenu } from './components/Popups/CLDropdownMenu.vu
17
17
  export { default as CLModal } from './components/Modals/CLModal.vue';
18
18
  export { default as CLNavLink } from './components/Navigation/CLNavLink.vue';
19
19
  export { default as CLNavSection } from './components/Navigation/CLNavSection.vue';
20
- export { default as CLPill } from './components/Indicators/Pill.vue';
20
+ export { default as CLPill } from './components/Indicators/CLPill.vue';
21
21
  export { default as CLRadioButton } from './components/Form/CLRadioButton.vue';
22
22
  export { default as CLSelect } from './components/Form/CLSelect.vue';
23
23
  export { default as CLSkeleton } from './components/Loading/CLSkeleton.vue';
@@ -31,4 +31,6 @@ export { default as CLTableNestedCell } from './components/Table/CLTableNestedCe
31
31
  export { default as CLTableRow } from './components/Table/CLTableRow.vue';
32
32
  export { default as CLText } from './components/Typography/CLText.vue';
33
33
  export { default as CLTextArea } from './components/Form/CLTextArea.vue';
34
- export { default as CLToast } from './components/Popups/Toast.vue';
34
+ export { default as CLThemeProvider } from './components/Theme/CLThemeProvider.vue';
35
+ export { default as CLToast } from './components/Popups/CLToast.vue';
36
+ export { DEFAULT_THEME, useTheme } from './components/Theme/base-theme';