@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.
- package/dist/cjs/components/atoms/Button/Button.contants.d.ts +2 -0
- package/dist/cjs/components/atoms/Button/Button.types.d.ts +6 -0
- package/dist/cjs/components/atoms/Button/ButtonExample.d.ts +3 -0
- package/dist/cjs/components/atoms/ToastNotification/ToastNotification.types.d.ts +7 -2
- package/dist/cjs/components/atoms/ToggleButton/ToggleButton.presenter.d.ts +1 -0
- package/dist/cjs/components/molecules/DatePicker/DatePickerBase/DatePickerBase.presenter.d.ts +14 -10
- package/dist/cjs/library.css +78 -44
- package/dist/cjs/library.js +3 -3
- package/dist/cjs/library.js.map +1 -1
- package/dist/cjs/modules/notification/types.d.ts +4 -0
- package/dist/esm/components/atoms/Button/Button.contants.d.ts +2 -0
- package/dist/esm/components/atoms/Button/Button.types.d.ts +6 -0
- package/dist/esm/components/atoms/Button/ButtonExample.d.ts +3 -0
- package/dist/esm/components/atoms/ToastNotification/ToastNotification.types.d.ts +7 -2
- package/dist/esm/components/atoms/ToggleButton/ToggleButton.presenter.d.ts +1 -0
- package/dist/esm/components/molecules/DatePicker/DatePickerBase/DatePickerBase.presenter.d.ts +14 -10
- package/dist/esm/library.css +78 -44
- package/dist/esm/library.js +3 -3
- package/dist/esm/library.js.map +1 -1
- package/dist/esm/modules/notification/types.d.ts +4 -0
- package/dist/index.d.ts +10 -0
- package/package.json +1 -1
|
@@ -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.
|