@codeandfunction/callaloo 3.12.0 → 3.12.2

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 (100) hide show
  1. package/dist/assets/styles.css +1 -1
  2. package/dist/components/Assets/{CLIcon.vue.d.ts → CLIcon/CLIcon.vue.d.ts} +4 -3
  3. package/dist/components/Assets/CLIcon/index.d.ts +4 -0
  4. package/dist/components/Assets/index.d.ts +1 -2
  5. package/dist/components/Assets/utils.d.ts +1 -1
  6. package/dist/components/Buttons/{CLA11yButton.vue.d.ts → CLA11yButton/CLA11yButton.vue.d.ts} +8 -17
  7. package/dist/components/Buttons/CLA11yButton/index.d.ts +4 -0
  8. package/dist/components/Buttons/CLButton/CLButton.vue.d.ts +99 -0
  9. package/dist/components/Buttons/CLButton/index.d.ts +4 -0
  10. package/dist/components/Buttons/index.d.ts +2 -4
  11. package/dist/components/Buttons/utils.d.ts +1 -1
  12. package/dist/components/Containers/CLCard/CLCard.vue.d.ts +105 -0
  13. package/dist/components/Containers/CLCard/index.d.ts +4 -0
  14. package/dist/components/Containers/{Carousel → CLCarousel}/CLCarousel.vue.d.ts +9 -20
  15. package/dist/components/Containers/CLCarousel/CLCarouselNavigation.vue.d.ts +37 -0
  16. package/dist/components/Containers/CLCarousel/index.d.ts +11 -0
  17. package/dist/components/Containers/CLDisclosure/CLDisclosure.vue.d.ts +70 -0
  18. package/dist/components/Containers/CLDisclosure/index.d.ts +4 -0
  19. package/dist/components/Containers/index.d.ts +3 -9
  20. package/dist/components/Containers/utils.d.ts +1 -1
  21. package/dist/components/Form/{CLCheckbox.vue.d.ts → CLCheckbox/CLCheckbox.vue.d.ts} +26 -13
  22. package/dist/components/Form/CLCheckbox/index.d.ts +4 -0
  23. package/dist/components/Form/CLFormField.vue.d.ts +1 -1
  24. package/dist/components/Form/{CLInput.vue.d.ts → CLInput/CLInput.vue.d.ts} +42 -17
  25. package/dist/components/Form/CLInput/index.d.ts +4 -0
  26. package/dist/components/Form/CLInputMessages.vue.d.ts +1 -1
  27. package/dist/components/Form/{CLRadioButton.vue.d.ts → CLRadioButton/CLRadioButton.vue.d.ts} +9 -9
  28. package/dist/components/Form/CLRadioButton/index.d.ts +4 -0
  29. package/dist/components/Form/{CLSelect.vue.d.ts → CLSelect/CLSelect.vue.d.ts} +9 -9
  30. package/dist/components/Form/CLSelect/index.d.ts +4 -0
  31. package/dist/components/Form/{CLTextArea.vue.d.ts → CLTextArea/CLTextArea.vue.d.ts} +18 -18
  32. package/dist/components/Form/CLTextArea/index.d.ts +4 -0
  33. package/dist/components/Form/index.d.ts +5 -10
  34. package/dist/components/Form/utils.d.ts +1 -1
  35. package/dist/components/Indicators/{CLBadge.vue.d.ts → CLBadge/CLBadge.vue.d.ts} +6 -6
  36. package/dist/components/Indicators/CLBadge/index.d.ts +4 -0
  37. package/dist/components/Indicators/CLBanner/CLBanner.vue.d.ts +49 -0
  38. package/dist/components/Indicators/CLBanner/index.d.ts +4 -0
  39. package/dist/components/Indicators/{CLPill.vue.d.ts → CLPill/CLPill.vue.d.ts} +4 -4
  40. package/dist/components/Indicators/CLPill/index.d.ts +4 -0
  41. package/dist/components/Indicators/CLProgress/CLProgress.vue.d.ts +32 -0
  42. package/dist/components/Indicators/CLProgress/index.d.ts +4 -0
  43. package/dist/components/Indicators/index.d.ts +4 -9
  44. package/dist/components/Indicators/utils.d.ts +1 -1
  45. package/dist/components/Loading/{CLSkeleton.vue.d.ts → CLSkeleton/CLSkeleton.vue.d.ts} +3 -3
  46. package/dist/components/Loading/CLSkeleton/index.d.ts +4 -0
  47. package/dist/components/Loading/{CLSpinner.vue.d.ts → CLSpinner/CLSpinner.vue.d.ts} +4 -4
  48. package/dist/components/Loading/CLSpinner/index.d.ts +4 -0
  49. package/dist/components/Loading/index.d.ts +2 -4
  50. package/dist/components/Loading/utils.d.ts +1 -1
  51. package/dist/components/Modals/{CLModal.vue.d.ts → CLModal/CLModal.vue.d.ts} +16 -24
  52. package/dist/components/Modals/CLModal/index.d.ts +4 -0
  53. package/dist/components/Modals/index.d.ts +1 -2
  54. package/dist/components/Navigation/{CLLink.vue.d.ts → CLLink/CLLink.vue.d.ts} +6 -14
  55. package/dist/components/Navigation/CLLink/index.d.ts +4 -0
  56. package/dist/components/Navigation/{CLNavLink.vue.d.ts → CLNavLink/CLNavLink.vue.d.ts} +10 -14
  57. package/dist/components/Navigation/CLNavLink/index.d.ts +4 -0
  58. package/dist/components/Navigation/{CLNavSection.vue.d.ts → CLNavSection/CLNavSection.vue.d.ts} +3 -3
  59. package/dist/components/Navigation/CLNavSection/index.d.ts +4 -0
  60. package/dist/components/Navigation/index.d.ts +3 -6
  61. package/dist/components/Navigation/utils.d.ts +1 -1
  62. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.vue.d.ts +204 -0
  63. package/dist/components/Popups/CLDropdownMenu/index.d.ts +4 -0
  64. package/dist/components/Popups/{CLToast.vue.d.ts → CLToast/CLToast.vue.d.ts} +1 -1
  65. package/dist/components/Popups/CLToast/index.d.ts +4 -0
  66. package/dist/components/Popups/index.d.ts +2 -5
  67. package/dist/components/Popups/utils.d.ts +1 -1
  68. package/dist/components/{Theme → Providers/Theme}/CLThemeProvider.vue.d.ts +1 -1
  69. package/dist/components/{Theme → Providers/Theme}/base-theme.d.ts +15 -15
  70. package/dist/components/{Theme → Providers/Theme}/utils.d.ts +1 -1
  71. package/dist/components/Providers/Toast/CLToastProvider.vue.d.ts +2 -2
  72. package/dist/components/Providers/index.d.ts +3 -1
  73. package/dist/components/Table/CLTable.vue.d.ts +6 -14
  74. package/dist/components/Table/CLTableCell.vue.d.ts +9 -17
  75. package/dist/components/Table/CLTableNestedCell.vue.d.ts +5 -12
  76. package/dist/components/Table/CLTableRow.vue.d.ts +5 -13
  77. package/dist/components/Table/index.d.ts +32 -15
  78. package/dist/components/Typography/CLHeading/CLHeading.vue.d.ts +33 -0
  79. package/dist/components/Typography/CLHeading/index.d.ts +4 -0
  80. package/dist/components/Typography/CLText/CLText.vue.d.ts +43 -0
  81. package/dist/components/Typography/CLText/index.d.ts +4 -0
  82. package/dist/components/Typography/index.d.ts +2 -5
  83. package/dist/components/Typography/utils.d.ts +1 -1
  84. package/dist/composables/useDropdown.d.ts +1 -1
  85. package/dist/composables/useToast.d.ts +1 -1
  86. package/dist/index.d.ts +5 -5
  87. package/dist/index.js +3544 -3659
  88. package/dist/types.d.ts +73 -172
  89. package/package.json +11 -9
  90. package/dist/components/Buttons/CLButton.vue.d.ts +0 -288
  91. package/dist/components/Containers/CLCard.vue.d.ts +0 -51
  92. package/dist/components/Containers/CLDisclosure.vue.d.ts +0 -77
  93. package/dist/components/Containers/Carousel/CLCarouselNavigation.vue.d.ts +0 -22
  94. package/dist/components/Indicators/CLBanner.vue.d.ts +0 -13
  95. package/dist/components/Indicators/Progress/CLProgress.vue.d.ts +0 -45
  96. package/dist/components/Popups/CLDropdownMenu.vue.d.ts +0 -595
  97. package/dist/components/Theme/index.d.ts +0 -3
  98. package/dist/components/Typography/CLHeading.vue.d.ts +0 -85
  99. package/dist/components/Typography/CLText.vue.d.ts +0 -119
  100. /package/dist/components/Containers/{Carousel → CLCarousel}/CLCarouselSlide.vue.d.ts +0 -0
package/dist/types.d.ts CHANGED
@@ -1,46 +1,10 @@
1
- export declare enum Align {
1
+ export declare enum CLAlign {
2
2
  Left = "left",
3
3
  Center = "center",
4
4
  Right = "right"
5
5
  }
6
- export interface BannerProps {
7
- /** The action label text to be displayed. */
8
- actionLabel?: string;
9
- /** Set the horizontal alignment of content. The property can be one of `CLAlign`, e.g. `CLAlign.Left` */
10
- align?: Align;
11
- /** Sets the aria-label on the banner if the `onClick` property has been set. It should be used when the `onClick` property has been set. */
12
- ariaLabel?: string;
13
- /** A boolean value when set to `true`, adds a border to the banner. */
14
- bordered?: boolean;
15
- /** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
16
- borderRadius?: BorderRadius;
17
- /** A `boolean` value which dictates the busy state of the Banner. When set to `true`, it utilizes the `<CLSkeleton />` component. */
18
- busy?: boolean;
19
- /** Sets the color of the Badge. The property can be one of `CLColors`, e.g. `CLColors.Primary`. */
20
- color?: Colors;
21
- /** Sets the height of the Banner, it's default value is `auto`. */
22
- height?: string;
23
- /** The text to be displayed as the message. */
24
- message?: string;
25
- /** A callback function to handle click events */
26
- onAction?: GenericFunction;
27
- /** A callback function to handle click events. It should be used when in conjunction with the `ariaLabel` property. */
28
- onClick?: GenericFunction;
29
- /** A callback function to handle when the banner is dismissed. */
30
- onDismiss?: GenericFunction;
31
- /** When set to `false` it will not render a Banner with rounded corners. */
32
- rounded?: boolean;
33
- /** Sets a custom ID used for unit tests. */
34
- testId?: string;
35
- /** Set the text of the title which should be displayed. */
36
- title?: string;
37
- /** Sets the width of the Banner, it's default value is `100%`. */
38
- width?: string;
39
- /** Sets the color variant. The property can be one of `ColorVariants.Ghost | ColorVariants.Outline | ColorVariants.Soft | ColorVariants.Solid`, e.g `CLColorVariants.Soft`. */
40
- variant?: ColorVariants.Ghost | ColorVariants.Outline | ColorVariants.Soft | ColorVariants.Solid;
41
- }
42
- export type BlockTextHtmlTags = 'blockquote' | 'dd' | 'div' | 'dl' | 'dt' | 'figcaption' | 'figure' | 'hr' | 'li' | 'menu' | 'ol' | 'p' | 'pre' | 'ul';
43
- export declare enum BorderRadius {
6
+ export type CLBlockTextHtmlTags = 'blockquote' | 'dd' | 'div' | 'dl' | 'dt' | 'figcaption' | 'figure' | 'hr' | 'li' | 'menu' | 'ol' | 'p' | 'pre' | 'ul';
7
+ export declare enum CLBorderRadius {
44
8
  Full = "rounded-full",
45
9
  Large = "rounded-lg",
46
10
  Medium = "rounded-md",
@@ -51,83 +15,19 @@ export declare enum BorderRadius {
51
15
  XXXL = "rounded-3xl",
52
16
  XS = "rounded-xs"
53
17
  }
54
- export type ButtonTags = 'a' | 'button';
55
- export declare enum ButtonTypes {
18
+ export type CLButtonTags = 'a' | 'button';
19
+ export declare enum CLButtonTypes {
56
20
  Button = "button",
57
21
  Submit = "submit"
58
22
  }
59
- export declare enum CardTypes {
23
+ export declare enum CLCardTypes {
60
24
  Tiny = "tiny",
61
25
  Small = "small",
62
26
  Medium = "medium",
63
27
  Large = "large",
64
28
  XL = "xlarge"
65
29
  }
66
- export interface CardProps {
67
- /** When set to `true`, it elelvates the card to indicate it's active state. */
68
- active?: boolean;
69
- /** Set the horizontal alignment of content. The property can be one of `CLAlign`, e.g. `CLAlign.Left` */
70
- align?: Align;
71
- /** Sets the aria-label if the `onClick` or `href` property has been set. It should be used when the `onClick` or `href` property has been set. */
72
- ariaLabel?: string;
73
- /** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
74
- borderRadius?: BorderRadius;
75
- /** A boolean value when set to `true`, adds a border to the card. */
76
- bordered?: boolean;
77
- /** A `boolean` value which dictates the busy state of the card. When set to `true`, it utilizes the `<CLSkeleton />` component. */
78
- busy?: boolean;
79
- /** Appears below the title. Can be used to provide meta data, e.g. the time and date. */
80
- byline?: string;
81
- /** Sets the color of the Card. The property can be one of `CLColors`, e.g. `CLColors.Primary`. */
82
- color?: Colors;
83
- /** A boolean value which dictates the compact state of the card. When set to `true`, it utilizes a more compact layout. */
84
- compact?: boolean;
85
- /** The `elevated` property displays a shadow to indicate elevation. */
86
- elevated?: boolean;
87
- /** A callback function which provides a reference to the button. */
88
- forwardRef?: (elem: HTMLDivElement) => void;
89
- /** Sets the height of the Card, it's default value is `auto`. */
90
- height?: string;
91
- /** Provide a URL for the entire Card to behave as a link. */
92
- href?: string;
93
- /** Provide a URL/relative path to an image to be displayed. */
94
- image?: string;
95
- /** Set the alt text for an image, when the image prop has been set. */
96
- imageAltText?: string;
97
- /** Set the position of the image. If the row prop is not set, the image can be set to appear to the left or right of the slot content. */
98
- imageOrder?: Order;
99
- /** Sets the height of the image, it's default value is `auto`. */
100
- imageHeight?: string;
101
- /** Sets the width of the image, it's default value is `auto`. */
102
- imageWidth?: string;
103
- /** Indicates how the browser should load the image. Default is `CLLoading.Eager`*/
104
- imageLoading?: Loading;
105
- /** A callback function to handle click events. */
106
- onClick?: GenericFunction;
107
- /** When set to `false`, it will remove any horizontal and vertical padding of the slot content. */
108
- padded?: boolean;
109
- /** When set to `false` it will not render a Card with rounded corners. */
110
- rounded?: boolean;
111
- /** Sets where to display the linked URL. */
112
- target?: LinkTarget;
113
- /** Sets a custom ID used for unit tests. */
114
- testId?: string;
115
- /** Set the text of the title which should be displayed. */
116
- title?: string;
117
- /** Set the title type. The property can be one of `CLHeadingTypes`, e.g. `CLHeadingTypes.Title` */
118
- titleType?: HeadingTypes;
119
- /** Set the title heading level. The property can be one of `CLHeadingLevels`, e.g. `CLHeadingLevels.H1` */
120
- titleHLevel?: HeadingLevels;
121
- /** When set to `true`, truncate the title if it overflows its container. */
122
- truncateTitle?: boolean;
123
- /** Sets the Card type. The property can be one of `CLCardTypes`, e.g. `CLCardTypes.Medium`. */
124
- type?: CardTypes;
125
- /** Sets the width of the Card, it's default value is `auto`. */
126
- width?: string;
127
- /** Sets the color variant. The property can be on of `CLColorVariants`, e.g `CLColorVariants.Soft`. */
128
- variant?: ColorVariants;
129
- }
130
- export declare enum Colors {
30
+ export declare enum CLColors {
131
31
  Primary = "primary",
132
32
  Secondary = "secondary",
133
33
  Danger = "danger",
@@ -136,7 +36,7 @@ export declare enum Colors {
136
36
  Warning = "warning",
137
37
  Success = "success"
138
38
  }
139
- export declare enum ColorVariants {
39
+ export declare enum CLColorVariants {
140
40
  Contrast = "contrast",
141
41
  Ghost = "ghost",
142
42
  Outline = "outline",
@@ -144,10 +44,11 @@ export declare enum ColorVariants {
144
44
  Solid = "solid",
145
45
  Text = "text"
146
46
  }
147
- export type GenericFunction = (event?: Event) => void;
148
- export type GenericFocusFunction = (event: FocusEvent) => void;
149
- export type GenericInputFunction = (event?: Event) => void;
150
- export declare enum HeadingLevels {
47
+ export type CLButtonForwardRefFunction = (elem: HTMLButtonElement) => void;
48
+ export type CLGenericFunction = (event?: Event) => void;
49
+ export type CLGenericFocusFunction = (event: FocusEvent) => void;
50
+ export type CLGenericInputFunction = (event?: Event) => void;
51
+ export declare enum CLHeadingLevels {
151
52
  H1 = "h1",
152
53
  H2 = "h2",
153
54
  H3 = "h3",
@@ -155,7 +56,7 @@ export declare enum HeadingLevels {
155
56
  H5 = "h5",
156
57
  H6 = "h6"
157
58
  }
158
- export declare enum HeadingTypes {
59
+ export declare enum CLHeadingTypes {
159
60
  Title = "title",
160
61
  PageTitle = "pagetitle",
161
62
  Section = "section",
@@ -165,7 +66,7 @@ export declare enum HeadingTypes {
165
66
  Large = "large",
166
67
  XL = "xlarge"
167
68
  }
168
- export declare enum IconSizes {
69
+ export declare enum CLIconSizes {
169
70
  Tiny = "tiny",
170
71
  Small = "small",
171
72
  Medium = "medium",
@@ -175,7 +76,7 @@ export declare enum IconSizes {
175
76
  XXXL = "xxxlarge",
176
77
  XXXXL = "xxxxlarge"
177
78
  }
178
- export declare enum IconNames {
79
+ export declare enum CLIconNames {
179
80
  Activity = "tabler:activity",
180
81
  Adjustments = "tabler:adjustments",
181
82
  AdjustmentsHorizontal = "tabler:adjustments-horizontal",
@@ -561,8 +462,8 @@ export declare enum IconNames {
561
462
  WindowMinimize = "tabler:window-minimize",
562
463
  WorldWww = "tabler:world-www"
563
464
  }
564
- export type InlineTextHtmlTags = 'a' | 'abbr' | 'b' | 'bdi' | 'bdo' | 'br' | 'cite' | 'code' | 'data' | 'dfn' | 'em' | 'i' | 'kbd' | 'mark' | 'q' | 'rp' | 'rt' | 'ruby' | 's' | 'samp' | 'small' | 'span' | 'strong' | 'sub' | 'sup' | 'time' | 'u' | 'var' | 'wbr';
565
- export declare enum InputTypes {
465
+ export type CLInlineTextHtmlTags = 'a' | 'abbr' | 'b' | 'bdi' | 'bdo' | 'br' | 'cite' | 'code' | 'data' | 'dfn' | 'em' | 'i' | 'kbd' | 'mark' | 'q' | 'rp' | 'rt' | 'ruby' | 's' | 'samp' | 'small' | 'span' | 'strong' | 'sub' | 'sup' | 'time' | 'u' | 'var' | 'wbr';
466
+ export declare enum CLInputTypes {
566
467
  Color = "color",
567
468
  Date = "date",
568
469
  DateTimeLocal = "datetime-local",
@@ -579,29 +480,29 @@ export declare enum InputTypes {
579
480
  Time = "time",
580
481
  Url = "url"
581
482
  }
582
- export declare enum Loading {
483
+ export declare enum CLLoading {
583
484
  Eager = "eager",
584
485
  Lazy = "lazy"
585
486
  }
586
- export declare enum LinkTarget {
487
+ export declare enum CLLinkTarget {
587
488
  Blank = "_blank",
588
489
  Self = "_self"
589
490
  }
590
- export declare enum MessageType {
491
+ export declare enum CLMessageType {
591
492
  Danger = "danger",
592
493
  Default = "default",
593
494
  Success = "success",
594
495
  Warning = "warning"
595
496
  }
596
- export declare enum Mode {
497
+ export declare enum CLMode {
597
498
  Dark = "dark",
598
499
  Light = "light"
599
500
  }
600
- export interface NavItem {
501
+ export interface CLNavItem {
601
502
  /** Sets the aria-label on the NavLink element. */
602
503
  ariaLabel?: string;
603
504
  /** Sets the color of the NavLink element. The property can be one of `CLColors`, e.g. `CLColors.Default` */
604
- color?: Colors;
505
+ color?: CLColors;
605
506
  /** Sets the external attribute on the NavLink element. If set, it adds an icon indicating that the link will open a new tab/window. */
606
507
  external?: boolean;
607
508
  /** Sets the href attribute on the NavLink element. */
@@ -611,41 +512,42 @@ export interface NavItem {
611
512
  /** The text to be displayed as the label. */
612
513
  label: string;
613
514
  /** A callback function to handle click events. */
614
- onClick?: GenericFunction;
515
+ onClick?: CLGenericFunction;
615
516
  /** Sets the rel attribute on the NavLink element. */
616
517
  rel?: string;
617
518
  /** Sets the target attribute on the NavLink element. The property can be one of `CLLinkTarget`, e.g. `CLLinkTarget.Self` */
618
- target?: LinkTarget;
519
+ target?: CLLinkTarget;
619
520
  }
620
- export interface Option {
521
+ export interface CLOption {
621
522
  label: string;
622
523
  value: string | number | boolean | null;
623
524
  disabled?: boolean;
624
525
  }
625
- export declare enum Order {
526
+ export declare enum CLOrder {
626
527
  After = "after",
627
528
  Before = "before"
628
529
  }
629
- export declare enum Orientation {
530
+ export declare enum CLOrientation {
630
531
  Horizontal = "horizontal",
631
532
  Vertical = "vertical"
632
533
  }
633
- export declare enum PaginationType {
534
+ export declare enum CLPaginationType {
634
535
  Dots = "dots",
635
536
  Hidden = "hidden",
636
537
  Inline = "inline",
637
538
  Numbered = "numbered"
638
539
  }
639
- export interface Palette {
640
- primary?: Shades;
641
- secondary?: Shades;
642
- neutral?: Shades;
643
- danger?: Shades;
644
- warning?: Shades;
645
- success?: Shades;
646
- info?: Shades;
540
+ export interface CLPalette {
541
+ primary?: CLShades;
542
+ secondary?: CLShades;
543
+ neutral?: CLShades;
544
+ danger?: CLShades;
545
+ warning?: CLShades;
546
+ success?: CLShades;
547
+ info?: CLShades;
647
548
  }
648
- export declare enum Placement {
549
+ export type CLPaletteKeys = keyof CLPalette;
550
+ export declare enum CLPlacement {
649
551
  Bottom = "bottom",
650
552
  BottomEnd = "bottom-end",
651
553
  BottomStart = "bottom-start",
@@ -659,24 +561,25 @@ export declare enum Placement {
659
561
  TopEnd = "top-end",
660
562
  TopStart = "top-start"
661
563
  }
662
- export declare enum Position {
564
+ export declare enum CLPosition {
663
565
  Absolute = "absolute",
664
566
  Relative = "relative"
665
567
  }
666
- export declare enum Sizes {
568
+ export declare enum CLSizes {
667
569
  Tiny = "tiny",
668
570
  Small = "small",
669
571
  Medium = "medium",
670
572
  Large = "large",
671
573
  XL = "xlarge"
672
574
  }
673
- export declare enum TableTypes {
575
+ export type CLShades = Record<number, string>;
576
+ export declare enum CLTableTypes {
674
577
  Condensed = "condensed",
675
578
  Default = "default",
676
579
  Plain = "plain"
677
580
  }
678
- export type TextHtmlTags = BlockTextHtmlTags | InlineTextHtmlTags;
679
- export declare enum TextTypes {
581
+ export type CLTextHtmlTags = CLBlockTextHtmlTags | CLInlineTextHtmlTags;
582
+ export declare enum CLTextTypes {
680
583
  Body = "body",
681
584
  Summary = "summary",
682
585
  Tiny = "tiny",
@@ -685,16 +588,14 @@ export declare enum TextTypes {
685
588
  Large = "large",
686
589
  XL = "xlarge"
687
590
  }
688
- export type Shades = Record<number, string>;
689
- export interface ThemeConfig {
690
- colors?: Palette;
591
+ export interface CLThemeConfig {
592
+ colors?: CLPalette;
691
593
  darkMode: boolean;
692
594
  fontFamily?: string;
693
- mode?: Mode;
694
- borderRadius?: BorderRadius;
595
+ mode?: CLMode;
596
+ borderRadius?: CLBorderRadius;
695
597
  }
696
- export type PaletteKeys = keyof Palette;
697
- export declare enum ToastPosition {
598
+ export declare enum CLToastPosition {
698
599
  TopLeft = "top-left",
699
600
  TopCenter = "top-center",
700
601
  TopRight = "top-right",
@@ -702,35 +603,35 @@ export declare enum ToastPosition {
702
603
  BottomCenter = "bottom-center",
703
604
  BottomRight = "bottom-right"
704
605
  }
705
- export interface ToastProps {
706
- /** The action label text to be displayed. */
606
+ export interface CLToastProps {
607
+ /** The action label text to be displayed */
707
608
  actionLabel?: string;
708
- /** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
709
- borderRadius?: BorderRadius;
710
- /** Sets the color of the buttons and icons. The property can be one of `CLColors`, e.g. `CLColors.Default` */
711
- color?: Colors;
609
+ /** The border radius size */
610
+ borderRadius?: CLBorderRadius;
611
+ /** Sets the color of the buttons and icons */
612
+ color?: CLColors;
712
613
  /** Time in seconds e.g 5 = 5 seconds */
713
614
  dismissTimer?: number;
714
- /** The icon to be displayed. The property can be one of `CLIconNames`, e.g. `CLIconNames.Info`. */
715
- icon?: IconNames;
716
- /** The size of the icon. The property can be one of `CLSizes`, e.g. `CLSizes.Medium */
717
- iconSize?: IconSizes;
718
- /** The text to be displayed as the message. */
615
+ /** The icon to be displayed */
616
+ icon?: CLIconNames;
617
+ /** The size of the icon */
618
+ iconSize?: CLIconSizes;
619
+ /** The text to be displayed as the message */
719
620
  message?: string;
720
- /** Sets the position of the toast. The property can be one of `CLToastPosition`, e.g `CLToastPosition.TopRight`. */
721
- position?: ToastPosition;
722
- /** A callback function to handle click events. */
723
- onAction?: GenericFunction;
724
- /** A callback function to handle when the toast is dismissed. */
725
- onDismiss: GenericFunction;
726
- /** When set to `false` it will not render a Toast with rounded corners. */
621
+ /** A callback function to handle click events */
622
+ onAction?: CLGenericFunction;
623
+ /** A callback function to handle when the toast is dismissed */
624
+ onDismiss: CLGenericFunction;
625
+ /** Sets the position of the toast */
626
+ position?: CLToastPosition;
627
+ /** When set to `false` it will not render a Toast with rounded corners */
727
628
  rounded?: boolean;
728
- /** Sets a custom ID used for unit tests. */
629
+ /** Sets a custom ID used for unit tests */
729
630
  testId?: string;
730
- /** Set the text of the title which should be displayed. */
631
+ /** Set the text of the title which should be displayed */
731
632
  title?: string;
732
- /** Sets the color variant o the buttons and icons. The property can be on of `CLColorVariants`, e.g `CLColorVariants.Soft`. */
733
- variant?: ColorVariants;
633
+ /** Sets the color variant of the buttons and icons */
634
+ variant?: CLColorVariants;
734
635
  /** Sets the width of the Toast, it's default value is `24rem`. */
735
636
  width?: string;
736
637
  }
package/package.json CHANGED
@@ -17,15 +17,15 @@
17
17
  "ui components",
18
18
  "vuejs"
19
19
  ],
20
- "version": "3.12.0",
20
+ "version": "3.12.2",
21
21
  "license": "MIT",
22
22
  "type": "module",
23
23
  "scripts": {
24
24
  "build": "pnpm export:icons && vite build",
25
25
  "build:storybook": "pnpm export:icons && pnpm storybook build",
26
26
  "coverage": "vitest run --coverage",
27
- "export:icons": "npx tsx export-icons.ts",
28
- "export:meta": "npx tsx export-meta.ts",
27
+ "export:icons": "npx tsx scripts/export-icons.ts",
28
+ "export:meta": "npx tsx scripts/export-meta.ts",
29
29
  "lint": "pnpm lint:js && pnpm lint:prettier",
30
30
  "lint:js": "eslint 'src/**/*.{ts,vue}'",
31
31
  "lint:js:fix": "eslint 'src/**/*.{ts,vue}' --fix",
@@ -68,13 +68,13 @@
68
68
  "@storybook/test-runner": "^0.23.0",
69
69
  "@storybook/vue3-vite": "^9.1.9",
70
70
  "@types/lodash-es": "^4.17.12",
71
- "@types/node": "22.13.1",
71
+ "@types/node": "^22.18.8",
72
72
  "@types/stylis": "^4.2.7",
73
73
  "@vitejs/plugin-vue": "^5.2.4",
74
74
  "@vitejs/plugin-vue-jsx": "^4.2.0",
75
- "@vitest/browser": "3.0.4",
76
- "@vitest/coverage-istanbul": "3.0.4",
77
- "@vitest/coverage-v8": "3.0.4",
75
+ "@vitest/browser": "3.2.4",
76
+ "@vitest/coverage-istanbul": "3.2.4",
77
+ "@vitest/coverage-v8": "3.2.4",
78
78
  "@vitest/ui": "^3.2.4",
79
79
  "@vue/test-utils": "^2.4.6",
80
80
  "@vue/tsconfig": "^0.7.0",
@@ -93,13 +93,15 @@
93
93
  "storybook": "^9.1.9",
94
94
  "storybook-addon-deep-controls": "^0.9.5",
95
95
  "stylis": "^4.3.6",
96
+ "tsx": "^4.20.6",
96
97
  "unplugin-auto-import": "^19.3.0",
97
- "vite": "6.0.11",
98
+ "vite": "^6.3.6",
98
99
  "vite-plugin-dts": "^4.5.4",
99
100
  "vite-tsconfig-paths": "^5.1.4",
100
- "vitest": "3.0.4",
101
+ "vitest": "3.2.4",
101
102
  "vue": "^3.5.18",
102
103
  "vue-component-meta": "^3.1.0",
104
+ "vue-docgen-api": "^4.79.2",
103
105
  "vue-router": "^4.5.1",
104
106
  "vue-tsc": "^2.2.12"
105
107
  },