@codeandfunction/callaloo 2.18.1 → 2.19.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/Popups/CLToast.vue.d.ts +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +744 -740
- package/dist/types.d.ts +10 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -629,6 +629,14 @@ export interface ThemeConfig {
|
|
|
629
629
|
borderRadius?: BorderRadius;
|
|
630
630
|
}
|
|
631
631
|
export type PaletteKeys = keyof Palette;
|
|
632
|
+
export declare enum ToastPosition {
|
|
633
|
+
TopLeft = "top-left",
|
|
634
|
+
TopCenter = "top-center",
|
|
635
|
+
TopRight = "top-right",
|
|
636
|
+
BottomLeft = "bottom-left",
|
|
637
|
+
BottomCenter = "bottom-center",
|
|
638
|
+
BottomRight = "bottom-right"
|
|
639
|
+
}
|
|
632
640
|
export interface ToastProps {
|
|
633
641
|
/** The action label text to be displayed. */
|
|
634
642
|
actionLabel?: string;
|
|
@@ -644,6 +652,8 @@ export interface ToastProps {
|
|
|
644
652
|
iconSize?: IconSizes;
|
|
645
653
|
/** The text to be displayed as the message. */
|
|
646
654
|
message?: string;
|
|
655
|
+
/** Sets the position of the toast. The property can be one of `CLToastPosition`, e.g `CLToastPosition.TopRight`. */
|
|
656
|
+
position?: ToastPosition;
|
|
647
657
|
/** A callback function to handle click events. */
|
|
648
658
|
onAction?: GenericFunction;
|
|
649
659
|
/** A callback function to handle when the toast is dismissed. */
|