@thecb/components 9.2.0-beta.5 → 9.2.0-beta.6
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/index.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.esm.js +5 -5
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/toast-notification/ToastNotification.js +3 -3
- package/src/components/molecules/toast-notification/index.d.ts +10 -0
package/dist/index.d.ts
CHANGED
|
@@ -1066,6 +1066,16 @@ declare const RadioGroup: React.FC<Expand<RadioGroupProps> &
|
|
|
1066
1066
|
React.HTMLAttributes<HTMLElement>>;
|
|
1067
1067
|
|
|
1068
1068
|
interface ToastNotificationProps {
|
|
1069
|
+
variant?: string;
|
|
1070
|
+
message: string;
|
|
1071
|
+
toastOpen: boolean;
|
|
1072
|
+
closeToastNotification: (event?: React.MouseEvent<HTMLElement>) => void;
|
|
1073
|
+
extraStyles?: string;
|
|
1074
|
+
minWidth?: string;
|
|
1075
|
+
maxWidth?: string;
|
|
1076
|
+
height?: string;
|
|
1077
|
+
childGap?: string;
|
|
1078
|
+
backgroundColor?: string;
|
|
1069
1079
|
}
|
|
1070
1080
|
|
|
1071
1081
|
declare const ToastNotification: React.FC<Expand<ToastNotificationProps> &
|
package/dist/index.esm.js
CHANGED
|
@@ -50290,8 +50290,12 @@ var VARIANTS = {
|
|
|
50290
50290
|
};
|
|
50291
50291
|
|
|
50292
50292
|
var ToastNotification = function ToastNotification(_ref) {
|
|
50293
|
-
var _ref$
|
|
50293
|
+
var _ref$variant = _ref.variant,
|
|
50294
|
+
variant = _ref$variant === void 0 ? VARIANTS.SUCCESS : _ref$variant,
|
|
50295
|
+
_ref$message = _ref.message,
|
|
50294
50296
|
message = _ref$message === void 0 ? "" : _ref$message,
|
|
50297
|
+
toastOpen = _ref.toastOpen,
|
|
50298
|
+
closeToastNotification = _ref.closeToastNotification,
|
|
50295
50299
|
extraStyles = _ref.extraStyles,
|
|
50296
50300
|
_ref$minWidth = _ref.minWidth,
|
|
50297
50301
|
minWidth = _ref$minWidth === void 0 ? "112px" : _ref$minWidth,
|
|
@@ -50301,10 +50305,6 @@ var ToastNotification = function ToastNotification(_ref) {
|
|
|
50301
50305
|
height = _ref$height === void 0 ? "56px" : _ref$height,
|
|
50302
50306
|
_ref$childGap = _ref.childGap,
|
|
50303
50307
|
childGap = _ref$childGap === void 0 ? "1rem" : _ref$childGap,
|
|
50304
|
-
closeToastNotification = _ref.closeToastNotification,
|
|
50305
|
-
toastOpen = _ref.toastOpen,
|
|
50306
|
-
_ref$variant = _ref.variant,
|
|
50307
|
-
variant = _ref$variant === void 0 ? VARIANTS.SUCCESS : _ref$variant,
|
|
50308
50308
|
backgroundColor = _ref.backgroundColor;
|
|
50309
50309
|
return /*#__PURE__*/React.createElement(Box, {
|
|
50310
50310
|
onClick: closeToastNotification,
|