@delightui/components 0.1.163 → 0.1.165
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/ToastNotification/ToastNotification.types.d.ts +8 -0
- package/dist/cjs/components/molecules/DatePicker/DateInput/DateInput.types.d.ts +8 -0
- package/dist/cjs/components/molecules/ProgressBar/ProgressBar.types.d.ts +4 -0
- package/dist/cjs/library.css +1 -1
- package/dist/cjs/library.js +1 -1
- package/dist/cjs/library.js.map +1 -1
- package/dist/cjs/modules/notification/index.d.ts +2 -2
- package/dist/cjs/modules/notification/types.d.ts +13 -2
- package/dist/esm/components/atoms/ToastNotification/ToastNotification.types.d.ts +8 -0
- package/dist/esm/components/molecules/DatePicker/DateInput/DateInput.types.d.ts +8 -0
- package/dist/esm/components/molecules/ProgressBar/ProgressBar.types.d.ts +4 -0
- package/dist/esm/library.css +1 -1
- package/dist/esm/library.js +3 -3
- package/dist/esm/library.js.map +1 -1
- package/dist/esm/modules/notification/index.d.ts +2 -2
- package/dist/esm/modules/notification/types.d.ts +13 -2
- package/dist/index.d.ts +26 -3
- package/package.json +2 -2
|
@@ -36,6 +36,14 @@ export type ToastNotificationProps = Omit<HTMLAttributes<HTMLDivElement>, 'style
|
|
|
36
36
|
* Duration before the toast auto-closes (in milliseconds).
|
|
37
37
|
*/
|
|
38
38
|
duration?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Custom renderer for the inner content area inside the toast wrapper.
|
|
41
|
+
* When provided, it replaces the default layout (leading icon + text + trailing icon).
|
|
42
|
+
* It receives `removeToast` (always defined) so your custom component can close the toast.
|
|
43
|
+
*/
|
|
44
|
+
renderContent?: (helpers: {
|
|
45
|
+
removeToast: () => void;
|
|
46
|
+
}) => ReactNode;
|
|
39
47
|
/**
|
|
40
48
|
* Additional class for styling.
|
|
41
49
|
*/
|
|
@@ -12,4 +12,12 @@ export type DateInputProps = DatePickerBaseSharedProps & {
|
|
|
12
12
|
* Icon to be displayed after the input.
|
|
13
13
|
*/
|
|
14
14
|
trailingIcon?: React.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Accessible label (used as base for input and child suffixes e.g. --open-calendar).
|
|
17
|
+
*/
|
|
18
|
+
ariaLabel?: string;
|
|
19
|
+
/**
|
|
20
|
+
* ID(s) of element(s) that label this component (used as base for child suffixes).
|
|
21
|
+
*/
|
|
22
|
+
ariaLabelledBy?: string;
|
|
15
23
|
};
|
package/dist/cjs/library.css
CHANGED
|
@@ -35777,7 +35777,7 @@ span.flatpickr-weekday {
|
|
|
35777
35777
|
}
|
|
35778
35778
|
.ToastNotification-module_toastNotification__LCpoq {
|
|
35779
35779
|
display: flex;
|
|
35780
|
-
position:
|
|
35780
|
+
position: relative;
|
|
35781
35781
|
flex-direction: row;
|
|
35782
35782
|
align-items: center;
|
|
35783
35783
|
justify-content: center;
|