@delightui/components 0.1.148 → 0.1.150

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.
@@ -20,6 +20,10 @@ export type Notification = {
20
20
  duration?: number;
21
21
  style?: ToastNotificationStyleEnum;
22
22
  isDismissable?: boolean;
23
+ isCloseButtonShown?: boolean;
24
+ closeIcon?: ReactNode;
25
+ leadingIcon?: ReactNode;
26
+ trailingIcon?: ReactNode;
23
27
  };
24
28
  /**
25
29
  * Payload for triggering a new notification.
package/dist/index.d.ts CHANGED
@@ -69,6 +69,7 @@ type ButtonTypeEnum = 'Filled' | 'Outlined' | 'Ghost';
69
69
  type ButtonStyleEnum = 'Primary' | 'Secondary' | 'Destructive';
70
70
  type ButtonSizeEnum = 'Small' | 'Medium' | 'Large';
71
71
  type ButtonActionTypeEnum = 'button' | 'submit' | 'reset';
72
+ type ButtonContentAlignmentEnum = 'Center' | 'SpaceBetween';
72
73
  type ButtonProps = Omit<HTMLAttributes<HTMLButtonElement>, 'style'> & {
73
74
  /**
74
75
  * Appearance of the button.
@@ -121,6 +122,11 @@ type ButtonProps = Omit<HTMLAttributes<HTMLButtonElement>, 'style'> & {
121
122
  * @default 'button'
122
123
  */
123
124
  actionType?: ButtonActionTypeEnum;
125
+ /**
126
+ * Specifies alignment of the content like leading icon, content and trailing icon
127
+ * @default 'Center'
128
+ */
129
+ alignContent?: ButtonContentAlignmentEnum;
124
130
  };
125
131
 
126
132
  /**
@@ -2733,6 +2739,10 @@ type Notification = {
2733
2739
  duration?: number;
2734
2740
  style?: ToastNotificationStyleEnum;
2735
2741
  isDismissable?: boolean;
2742
+ isCloseButtonShown?: boolean;
2743
+ closeIcon?: ReactNode;
2744
+ leadingIcon?: ReactNode;
2745
+ trailingIcon?: ReactNode;
2736
2746
  };
2737
2747
  /**
2738
2748
  * Payload for triggering a new notification.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delightui/components",
3
- "version": "0.1.148",
3
+ "version": "0.1.150",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "vite",