@codeandfunction/callaloo 3.12.0 → 3.12.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.
- package/dist/assets/styles.css +1 -1
- package/dist/components/Assets/CLIcon.vue.d.ts +1 -1
- package/dist/components/Assets/utils.d.ts +1 -1
- package/dist/components/Buttons/CLA11yButton.vue.d.ts +1 -1
- package/dist/components/Buttons/CLButton.vue.d.ts +3 -3
- package/dist/components/Buttons/utils.d.ts +1 -1
- package/dist/components/Containers/CLCard.vue.d.ts +1 -1
- package/dist/components/Containers/CLDisclosure.vue.d.ts +1 -1
- package/dist/components/Containers/utils.d.ts +1 -1
- package/dist/components/Form/CLCheckbox.vue.d.ts +1 -1
- package/dist/components/Form/CLFormField.vue.d.ts +1 -1
- package/dist/components/Form/CLInput.vue.d.ts +1 -1
- package/dist/components/Form/CLInputMessages.vue.d.ts +1 -1
- package/dist/components/Form/CLRadioButton.vue.d.ts +1 -1
- package/dist/components/Form/CLSelect.vue.d.ts +1 -1
- package/dist/components/Form/CLTextArea.vue.d.ts +1 -1
- package/dist/components/Form/utils.d.ts +1 -1
- package/dist/components/Indicators/CLBadge.vue.d.ts +1 -1
- package/dist/components/Indicators/CLBanner.vue.d.ts +1 -1
- package/dist/components/Indicators/CLPill.vue.d.ts +1 -1
- package/dist/components/Indicators/utils.d.ts +1 -1
- package/dist/components/Loading/CLSkeleton.vue.d.ts +1 -1
- package/dist/components/Loading/CLSpinner.vue.d.ts +1 -1
- package/dist/components/Loading/utils.d.ts +1 -1
- package/dist/components/Modals/CLModal.vue.d.ts +1 -1
- package/dist/components/Navigation/CLLink.vue.d.ts +1 -1
- package/dist/components/Navigation/CLNavLink.vue.d.ts +1 -1
- package/dist/components/Navigation/CLNavSection.vue.d.ts +1 -1
- package/dist/components/Navigation/utils.d.ts +1 -1
- package/dist/components/Popups/CLDropdownMenu.vue.d.ts +49 -49
- package/dist/components/Popups/CLToast.vue.d.ts +1 -1
- package/dist/components/Popups/utils.d.ts +1 -1
- package/dist/components/{Theme → Providers/Theme}/CLThemeProvider.vue.d.ts +1 -1
- package/dist/components/{Theme → Providers/Theme}/base-theme.d.ts +15 -15
- package/dist/components/{Theme → Providers/Theme}/utils.d.ts +1 -1
- package/dist/components/Providers/Toast/CLToastProvider.vue.d.ts +2 -2
- package/dist/components/Providers/index.d.ts +3 -1
- package/dist/components/Table/CLTable.vue.d.ts +1 -1
- package/dist/components/Table/CLTableCell.vue.d.ts +1 -1
- package/dist/components/Table/CLTableRow.vue.d.ts +1 -1
- package/dist/components/Typography/CLHeading.vue.d.ts +1 -1
- package/dist/components/Typography/CLText.vue.d.ts +1 -1
- package/dist/components/Typography/utils.d.ts +1 -1
- package/dist/composables/useDropdown.d.ts +1 -1
- package/dist/composables/useToast.d.ts +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3337 -3329
- package/dist/types.d.ts +80 -79
- package/package.json +6 -6
- package/dist/components/Theme/index.d.ts +0 -3
package/dist/types.d.ts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
export declare enum
|
|
1
|
+
export declare enum CLAlign {
|
|
2
2
|
Left = "left",
|
|
3
3
|
Center = "center",
|
|
4
4
|
Right = "right"
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
6
|
+
export interface CLBannerProps {
|
|
7
7
|
/** The action label text to be displayed. */
|
|
8
8
|
actionLabel?: string;
|
|
9
9
|
/** Set the horizontal alignment of content. The property can be one of `CLAlign`, e.g. `CLAlign.Left` */
|
|
10
|
-
align?:
|
|
10
|
+
align?: CLAlign;
|
|
11
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
12
|
ariaLabel?: string;
|
|
13
13
|
/** A boolean value when set to `true`, adds a border to the banner. */
|
|
14
14
|
bordered?: boolean;
|
|
15
15
|
/** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
|
|
16
|
-
borderRadius?:
|
|
16
|
+
borderRadius?: CLBorderRadius;
|
|
17
17
|
/** A `boolean` value which dictates the busy state of the Banner. When set to `true`, it utilizes the `<CLSkeleton />` component. */
|
|
18
18
|
busy?: boolean;
|
|
19
19
|
/** Sets the color of the Badge. The property can be one of `CLColors`, e.g. `CLColors.Primary`. */
|
|
20
|
-
color?:
|
|
20
|
+
color?: CLColors;
|
|
21
21
|
/** Sets the height of the Banner, it's default value is `auto`. */
|
|
22
22
|
height?: string;
|
|
23
23
|
/** The text to be displayed as the message. */
|
|
24
24
|
message?: string;
|
|
25
25
|
/** A callback function to handle click events */
|
|
26
|
-
onAction?:
|
|
26
|
+
onAction?: CLGenericFunction;
|
|
27
27
|
/** A callback function to handle click events. It should be used when in conjunction with the `ariaLabel` property. */
|
|
28
|
-
onClick?:
|
|
28
|
+
onClick?: CLGenericFunction;
|
|
29
29
|
/** A callback function to handle when the banner is dismissed. */
|
|
30
|
-
onDismiss?:
|
|
30
|
+
onDismiss?: CLGenericFunction;
|
|
31
31
|
/** When set to `false` it will not render a Banner with rounded corners. */
|
|
32
32
|
rounded?: boolean;
|
|
33
33
|
/** Sets a custom ID used for unit tests. */
|
|
@@ -37,10 +37,10 @@ export interface BannerProps {
|
|
|
37
37
|
/** Sets the width of the Banner, it's default value is `100%`. */
|
|
38
38
|
width?: string;
|
|
39
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?:
|
|
40
|
+
variant?: CLColorVariants.Ghost | CLColorVariants.Outline | CLColorVariants.Soft | CLColorVariants.Solid;
|
|
41
41
|
}
|
|
42
|
-
export type
|
|
43
|
-
export declare enum
|
|
42
|
+
export type CLBlockTextHtmlTags = 'blockquote' | 'dd' | 'div' | 'dl' | 'dt' | 'figcaption' | 'figure' | 'hr' | 'li' | 'menu' | 'ol' | 'p' | 'pre' | 'ul';
|
|
43
|
+
export declare enum CLBorderRadius {
|
|
44
44
|
Full = "rounded-full",
|
|
45
45
|
Large = "rounded-lg",
|
|
46
46
|
Medium = "rounded-md",
|
|
@@ -51,27 +51,27 @@ export declare enum BorderRadius {
|
|
|
51
51
|
XXXL = "rounded-3xl",
|
|
52
52
|
XS = "rounded-xs"
|
|
53
53
|
}
|
|
54
|
-
export type
|
|
55
|
-
export declare enum
|
|
54
|
+
export type CLButtonTags = 'a' | 'button';
|
|
55
|
+
export declare enum CLButtonTypes {
|
|
56
56
|
Button = "button",
|
|
57
57
|
Submit = "submit"
|
|
58
58
|
}
|
|
59
|
-
export declare enum
|
|
59
|
+
export declare enum CLCardTypes {
|
|
60
60
|
Tiny = "tiny",
|
|
61
61
|
Small = "small",
|
|
62
62
|
Medium = "medium",
|
|
63
63
|
Large = "large",
|
|
64
64
|
XL = "xlarge"
|
|
65
65
|
}
|
|
66
|
-
export interface
|
|
66
|
+
export interface CLCardProps {
|
|
67
67
|
/** When set to `true`, it elelvates the card to indicate it's active state. */
|
|
68
68
|
active?: boolean;
|
|
69
69
|
/** Set the horizontal alignment of content. The property can be one of `CLAlign`, e.g. `CLAlign.Left` */
|
|
70
|
-
align?:
|
|
70
|
+
align?: CLAlign;
|
|
71
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
72
|
ariaLabel?: string;
|
|
73
73
|
/** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
|
|
74
|
-
borderRadius?:
|
|
74
|
+
borderRadius?: CLBorderRadius;
|
|
75
75
|
/** A boolean value when set to `true`, adds a border to the card. */
|
|
76
76
|
bordered?: boolean;
|
|
77
77
|
/** A `boolean` value which dictates the busy state of the card. When set to `true`, it utilizes the `<CLSkeleton />` component. */
|
|
@@ -79,7 +79,7 @@ export interface CardProps {
|
|
|
79
79
|
/** Appears below the title. Can be used to provide meta data, e.g. the time and date. */
|
|
80
80
|
byline?: string;
|
|
81
81
|
/** Sets the color of the Card. The property can be one of `CLColors`, e.g. `CLColors.Primary`. */
|
|
82
|
-
color?:
|
|
82
|
+
color?: CLColors;
|
|
83
83
|
/** A boolean value which dictates the compact state of the card. When set to `true`, it utilizes a more compact layout. */
|
|
84
84
|
compact?: boolean;
|
|
85
85
|
/** The `elevated` property displays a shadow to indicate elevation. */
|
|
@@ -95,39 +95,39 @@ export interface CardProps {
|
|
|
95
95
|
/** Set the alt text for an image, when the image prop has been set. */
|
|
96
96
|
imageAltText?: string;
|
|
97
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?:
|
|
98
|
+
imageOrder?: CLOrder;
|
|
99
99
|
/** Sets the height of the image, it's default value is `auto`. */
|
|
100
100
|
imageHeight?: string;
|
|
101
101
|
/** Sets the width of the image, it's default value is `auto`. */
|
|
102
102
|
imageWidth?: string;
|
|
103
103
|
/** Indicates how the browser should load the image. Default is `CLLoading.Eager`*/
|
|
104
|
-
imageLoading?:
|
|
104
|
+
imageLoading?: CLLoading;
|
|
105
105
|
/** A callback function to handle click events. */
|
|
106
|
-
onClick?:
|
|
106
|
+
onClick?: CLGenericFunction;
|
|
107
107
|
/** When set to `false`, it will remove any horizontal and vertical padding of the slot content. */
|
|
108
108
|
padded?: boolean;
|
|
109
109
|
/** When set to `false` it will not render a Card with rounded corners. */
|
|
110
110
|
rounded?: boolean;
|
|
111
111
|
/** Sets where to display the linked URL. */
|
|
112
|
-
target?:
|
|
112
|
+
target?: CLLinkTarget;
|
|
113
113
|
/** Sets a custom ID used for unit tests. */
|
|
114
114
|
testId?: string;
|
|
115
115
|
/** Set the text of the title which should be displayed. */
|
|
116
116
|
title?: string;
|
|
117
117
|
/** Set the title type. The property can be one of `CLHeadingTypes`, e.g. `CLHeadingTypes.Title` */
|
|
118
|
-
titleType?:
|
|
118
|
+
titleType?: CLHeadingTypes;
|
|
119
119
|
/** Set the title heading level. The property can be one of `CLHeadingLevels`, e.g. `CLHeadingLevels.H1` */
|
|
120
|
-
titleHLevel?:
|
|
120
|
+
titleHLevel?: CLHeadingLevels;
|
|
121
121
|
/** When set to `true`, truncate the title if it overflows its container. */
|
|
122
122
|
truncateTitle?: boolean;
|
|
123
123
|
/** Sets the Card type. The property can be one of `CLCardTypes`, e.g. `CLCardTypes.Medium`. */
|
|
124
|
-
type?:
|
|
124
|
+
type?: CLCardTypes;
|
|
125
125
|
/** Sets the width of the Card, it's default value is `auto`. */
|
|
126
126
|
width?: string;
|
|
127
127
|
/** Sets the color variant. The property can be on of `CLColorVariants`, e.g `CLColorVariants.Soft`. */
|
|
128
|
-
variant?:
|
|
128
|
+
variant?: CLColorVariants;
|
|
129
129
|
}
|
|
130
|
-
export declare enum
|
|
130
|
+
export declare enum CLColors {
|
|
131
131
|
Primary = "primary",
|
|
132
132
|
Secondary = "secondary",
|
|
133
133
|
Danger = "danger",
|
|
@@ -136,7 +136,7 @@ export declare enum Colors {
|
|
|
136
136
|
Warning = "warning",
|
|
137
137
|
Success = "success"
|
|
138
138
|
}
|
|
139
|
-
export declare enum
|
|
139
|
+
export declare enum CLColorVariants {
|
|
140
140
|
Contrast = "contrast",
|
|
141
141
|
Ghost = "ghost",
|
|
142
142
|
Outline = "outline",
|
|
@@ -144,10 +144,11 @@ export declare enum ColorVariants {
|
|
|
144
144
|
Solid = "solid",
|
|
145
145
|
Text = "text"
|
|
146
146
|
}
|
|
147
|
-
export type
|
|
148
|
-
export type
|
|
149
|
-
export type
|
|
150
|
-
export
|
|
147
|
+
export type CLButtonForwardRefFunction = (elem: HTMLButtonElement) => void;
|
|
148
|
+
export type CLGenericFunction = (event?: Event) => void;
|
|
149
|
+
export type CLGenericFocusFunction = (event: FocusEvent) => void;
|
|
150
|
+
export type CLGenericInputFunction = (event?: Event) => void;
|
|
151
|
+
export declare enum CLHeadingLevels {
|
|
151
152
|
H1 = "h1",
|
|
152
153
|
H2 = "h2",
|
|
153
154
|
H3 = "h3",
|
|
@@ -155,7 +156,7 @@ export declare enum HeadingLevels {
|
|
|
155
156
|
H5 = "h5",
|
|
156
157
|
H6 = "h6"
|
|
157
158
|
}
|
|
158
|
-
export declare enum
|
|
159
|
+
export declare enum CLHeadingTypes {
|
|
159
160
|
Title = "title",
|
|
160
161
|
PageTitle = "pagetitle",
|
|
161
162
|
Section = "section",
|
|
@@ -165,7 +166,7 @@ export declare enum HeadingTypes {
|
|
|
165
166
|
Large = "large",
|
|
166
167
|
XL = "xlarge"
|
|
167
168
|
}
|
|
168
|
-
export declare enum
|
|
169
|
+
export declare enum CLIconSizes {
|
|
169
170
|
Tiny = "tiny",
|
|
170
171
|
Small = "small",
|
|
171
172
|
Medium = "medium",
|
|
@@ -175,7 +176,7 @@ export declare enum IconSizes {
|
|
|
175
176
|
XXXL = "xxxlarge",
|
|
176
177
|
XXXXL = "xxxxlarge"
|
|
177
178
|
}
|
|
178
|
-
export declare enum
|
|
179
|
+
export declare enum CLIconNames {
|
|
179
180
|
Activity = "tabler:activity",
|
|
180
181
|
Adjustments = "tabler:adjustments",
|
|
181
182
|
AdjustmentsHorizontal = "tabler:adjustments-horizontal",
|
|
@@ -561,8 +562,8 @@ export declare enum IconNames {
|
|
|
561
562
|
WindowMinimize = "tabler:window-minimize",
|
|
562
563
|
WorldWww = "tabler:world-www"
|
|
563
564
|
}
|
|
564
|
-
export type
|
|
565
|
-
export declare enum
|
|
565
|
+
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';
|
|
566
|
+
export declare enum CLInputTypes {
|
|
566
567
|
Color = "color",
|
|
567
568
|
Date = "date",
|
|
568
569
|
DateTimeLocal = "datetime-local",
|
|
@@ -579,29 +580,29 @@ export declare enum InputTypes {
|
|
|
579
580
|
Time = "time",
|
|
580
581
|
Url = "url"
|
|
581
582
|
}
|
|
582
|
-
export declare enum
|
|
583
|
+
export declare enum CLLoading {
|
|
583
584
|
Eager = "eager",
|
|
584
585
|
Lazy = "lazy"
|
|
585
586
|
}
|
|
586
|
-
export declare enum
|
|
587
|
+
export declare enum CLLinkTarget {
|
|
587
588
|
Blank = "_blank",
|
|
588
589
|
Self = "_self"
|
|
589
590
|
}
|
|
590
|
-
export declare enum
|
|
591
|
+
export declare enum CLMessageType {
|
|
591
592
|
Danger = "danger",
|
|
592
593
|
Default = "default",
|
|
593
594
|
Success = "success",
|
|
594
595
|
Warning = "warning"
|
|
595
596
|
}
|
|
596
|
-
export declare enum
|
|
597
|
+
export declare enum CLMode {
|
|
597
598
|
Dark = "dark",
|
|
598
599
|
Light = "light"
|
|
599
600
|
}
|
|
600
|
-
export interface
|
|
601
|
+
export interface CLNavItem {
|
|
601
602
|
/** Sets the aria-label on the NavLink element. */
|
|
602
603
|
ariaLabel?: string;
|
|
603
604
|
/** Sets the color of the NavLink element. The property can be one of `CLColors`, e.g. `CLColors.Default` */
|
|
604
|
-
color?:
|
|
605
|
+
color?: CLColors;
|
|
605
606
|
/** 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
607
|
external?: boolean;
|
|
607
608
|
/** Sets the href attribute on the NavLink element. */
|
|
@@ -611,41 +612,42 @@ export interface NavItem {
|
|
|
611
612
|
/** The text to be displayed as the label. */
|
|
612
613
|
label: string;
|
|
613
614
|
/** A callback function to handle click events. */
|
|
614
|
-
onClick?:
|
|
615
|
+
onClick?: CLGenericFunction;
|
|
615
616
|
/** Sets the rel attribute on the NavLink element. */
|
|
616
617
|
rel?: string;
|
|
617
618
|
/** Sets the target attribute on the NavLink element. The property can be one of `CLLinkTarget`, e.g. `CLLinkTarget.Self` */
|
|
618
|
-
target?:
|
|
619
|
+
target?: CLLinkTarget;
|
|
619
620
|
}
|
|
620
|
-
export interface
|
|
621
|
+
export interface CLOption {
|
|
621
622
|
label: string;
|
|
622
623
|
value: string | number | boolean | null;
|
|
623
624
|
disabled?: boolean;
|
|
624
625
|
}
|
|
625
|
-
export declare enum
|
|
626
|
+
export declare enum CLOrder {
|
|
626
627
|
After = "after",
|
|
627
628
|
Before = "before"
|
|
628
629
|
}
|
|
629
|
-
export declare enum
|
|
630
|
+
export declare enum CLOrientation {
|
|
630
631
|
Horizontal = "horizontal",
|
|
631
632
|
Vertical = "vertical"
|
|
632
633
|
}
|
|
633
|
-
export declare enum
|
|
634
|
+
export declare enum CLPaginationType {
|
|
634
635
|
Dots = "dots",
|
|
635
636
|
Hidden = "hidden",
|
|
636
637
|
Inline = "inline",
|
|
637
638
|
Numbered = "numbered"
|
|
638
639
|
}
|
|
639
|
-
export interface
|
|
640
|
-
primary?:
|
|
641
|
-
secondary?:
|
|
642
|
-
neutral?:
|
|
643
|
-
danger?:
|
|
644
|
-
warning?:
|
|
645
|
-
success?:
|
|
646
|
-
info?:
|
|
640
|
+
export interface CLPalette {
|
|
641
|
+
primary?: CLShades;
|
|
642
|
+
secondary?: CLShades;
|
|
643
|
+
neutral?: CLShades;
|
|
644
|
+
danger?: CLShades;
|
|
645
|
+
warning?: CLShades;
|
|
646
|
+
success?: CLShades;
|
|
647
|
+
info?: CLShades;
|
|
647
648
|
}
|
|
648
|
-
export
|
|
649
|
+
export type CLPaletteKeys = keyof CLPalette;
|
|
650
|
+
export declare enum CLPlacement {
|
|
649
651
|
Bottom = "bottom",
|
|
650
652
|
BottomEnd = "bottom-end",
|
|
651
653
|
BottomStart = "bottom-start",
|
|
@@ -659,24 +661,25 @@ export declare enum Placement {
|
|
|
659
661
|
TopEnd = "top-end",
|
|
660
662
|
TopStart = "top-start"
|
|
661
663
|
}
|
|
662
|
-
export declare enum
|
|
664
|
+
export declare enum CLPosition {
|
|
663
665
|
Absolute = "absolute",
|
|
664
666
|
Relative = "relative"
|
|
665
667
|
}
|
|
666
|
-
export declare enum
|
|
668
|
+
export declare enum CLSizes {
|
|
667
669
|
Tiny = "tiny",
|
|
668
670
|
Small = "small",
|
|
669
671
|
Medium = "medium",
|
|
670
672
|
Large = "large",
|
|
671
673
|
XL = "xlarge"
|
|
672
674
|
}
|
|
673
|
-
export
|
|
675
|
+
export type CLShades = Record<number, string>;
|
|
676
|
+
export declare enum CLTableTypes {
|
|
674
677
|
Condensed = "condensed",
|
|
675
678
|
Default = "default",
|
|
676
679
|
Plain = "plain"
|
|
677
680
|
}
|
|
678
|
-
export type
|
|
679
|
-
export declare enum
|
|
681
|
+
export type CLTextHtmlTags = CLBlockTextHtmlTags | CLInlineTextHtmlTags;
|
|
682
|
+
export declare enum CLTextTypes {
|
|
680
683
|
Body = "body",
|
|
681
684
|
Summary = "summary",
|
|
682
685
|
Tiny = "tiny",
|
|
@@ -685,16 +688,14 @@ export declare enum TextTypes {
|
|
|
685
688
|
Large = "large",
|
|
686
689
|
XL = "xlarge"
|
|
687
690
|
}
|
|
688
|
-
export
|
|
689
|
-
|
|
690
|
-
colors?: Palette;
|
|
691
|
+
export interface CLThemeConfig {
|
|
692
|
+
colors?: CLPalette;
|
|
691
693
|
darkMode: boolean;
|
|
692
694
|
fontFamily?: string;
|
|
693
|
-
mode?:
|
|
694
|
-
borderRadius?:
|
|
695
|
+
mode?: CLMode;
|
|
696
|
+
borderRadius?: CLBorderRadius;
|
|
695
697
|
}
|
|
696
|
-
export
|
|
697
|
-
export declare enum ToastPosition {
|
|
698
|
+
export declare enum CLToastPosition {
|
|
698
699
|
TopLeft = "top-left",
|
|
699
700
|
TopCenter = "top-center",
|
|
700
701
|
TopRight = "top-right",
|
|
@@ -702,27 +703,27 @@ export declare enum ToastPosition {
|
|
|
702
703
|
BottomCenter = "bottom-center",
|
|
703
704
|
BottomRight = "bottom-right"
|
|
704
705
|
}
|
|
705
|
-
export interface
|
|
706
|
+
export interface CLToastProps {
|
|
706
707
|
/** The action label text to be displayed. */
|
|
707
708
|
actionLabel?: string;
|
|
708
709
|
/** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
|
|
709
|
-
borderRadius?:
|
|
710
|
+
borderRadius?: CLBorderRadius;
|
|
710
711
|
/** Sets the color of the buttons and icons. The property can be one of `CLColors`, e.g. `CLColors.Default` */
|
|
711
|
-
color?:
|
|
712
|
+
color?: CLColors;
|
|
712
713
|
/** Time in seconds e.g 5 = 5 seconds */
|
|
713
714
|
dismissTimer?: number;
|
|
714
715
|
/** The icon to be displayed. The property can be one of `CLIconNames`, e.g. `CLIconNames.Info`. */
|
|
715
|
-
icon?:
|
|
716
|
+
icon?: CLIconNames;
|
|
716
717
|
/** The size of the icon. The property can be one of `CLSizes`, e.g. `CLSizes.Medium */
|
|
717
|
-
iconSize?:
|
|
718
|
+
iconSize?: CLIconSizes;
|
|
718
719
|
/** The text to be displayed as the message. */
|
|
719
720
|
message?: string;
|
|
720
721
|
/** Sets the position of the toast. The property can be one of `CLToastPosition`, e.g `CLToastPosition.TopRight`. */
|
|
721
|
-
position?:
|
|
722
|
+
position?: CLToastPosition;
|
|
722
723
|
/** A callback function to handle click events. */
|
|
723
|
-
onAction?:
|
|
724
|
+
onAction?: CLGenericFunction;
|
|
724
725
|
/** A callback function to handle when the toast is dismissed. */
|
|
725
|
-
onDismiss:
|
|
726
|
+
onDismiss: CLGenericFunction;
|
|
726
727
|
/** When set to `false` it will not render a Toast with rounded corners. */
|
|
727
728
|
rounded?: boolean;
|
|
728
729
|
/** Sets a custom ID used for unit tests. */
|
|
@@ -730,7 +731,7 @@ export interface ToastProps {
|
|
|
730
731
|
/** Set the text of the title which should be displayed. */
|
|
731
732
|
title?: string;
|
|
732
733
|
/** Sets the color variant o the buttons and icons. The property can be on of `CLColorVariants`, e.g `CLColorVariants.Soft`. */
|
|
733
|
-
variant?:
|
|
734
|
+
variant?: CLColorVariants;
|
|
734
735
|
/** Sets the width of the Toast, it's default value is `24rem`. */
|
|
735
736
|
width?: string;
|
|
736
737
|
}
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"ui components",
|
|
18
18
|
"vuejs"
|
|
19
19
|
],
|
|
20
|
-
"version": "3.12.
|
|
20
|
+
"version": "3.12.1",
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"type": "module",
|
|
23
23
|
"scripts": {
|
|
@@ -72,9 +72,9 @@
|
|
|
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.
|
|
76
|
-
"@vitest/coverage-istanbul": "3.
|
|
77
|
-
"@vitest/coverage-v8": "3.
|
|
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",
|
|
@@ -94,10 +94,10 @@
|
|
|
94
94
|
"storybook-addon-deep-controls": "^0.9.5",
|
|
95
95
|
"stylis": "^4.3.6",
|
|
96
96
|
"unplugin-auto-import": "^19.3.0",
|
|
97
|
-
"vite": "6.
|
|
97
|
+
"vite": "^6.3.6",
|
|
98
98
|
"vite-plugin-dts": "^4.5.4",
|
|
99
99
|
"vite-tsconfig-paths": "^5.1.4",
|
|
100
|
-
"vitest": "3.
|
|
100
|
+
"vitest": "3.2.4",
|
|
101
101
|
"vue": "^3.5.18",
|
|
102
102
|
"vue-component-meta": "^3.1.0",
|
|
103
103
|
"vue-router": "^4.5.1",
|