@nulogy/components 6.4.0 → 6.4.1
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/main.js +15 -20
- package/dist/main.module.js +15 -20
- package/dist/src/Toast/Toast.d.ts +1 -1
- package/dist/src/Toast/Toast.story.d.ts +6 -0
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -44183,22 +44183,6 @@
|
|
|
44183
44183
|
opacity: 0
|
|
44184
44184
|
}, visible ? FADE_IN_STYLES : FADE_OUT_STYLES);
|
|
44185
44185
|
});
|
|
44186
|
-
var AnimatedBoxBottom = styled__default['default'](Box).withConfig({
|
|
44187
|
-
displayName: "Toast__AnimatedBoxBottom",
|
|
44188
|
-
componentId: "sc-1cheg2k-1"
|
|
44189
|
-
})(function (_ref2) {
|
|
44190
|
-
var visible = _ref2.visible;
|
|
44191
|
-
return Object.assign({
|
|
44192
|
-
position: "fixed",
|
|
44193
|
-
bottom: 0,
|
|
44194
|
-
left: 0,
|
|
44195
|
-
right: 0,
|
|
44196
|
-
marginLeft: "auto",
|
|
44197
|
-
marginRight: "auto",
|
|
44198
|
-
width: "fit-content",
|
|
44199
|
-
tranform: "translateY(" + TOAST_Y_MIN + ")"
|
|
44200
|
-
}, visible ? SLIDE_IN_STYLES : SLIDE_OUT_STYLES);
|
|
44201
|
-
});
|
|
44202
44186
|
var Toast = function Toast(_a) {
|
|
44203
44187
|
var triggered = _a.triggered,
|
|
44204
44188
|
onHide = _a.onHide,
|
|
@@ -44207,7 +44191,8 @@
|
|
|
44207
44191
|
children = _a.children,
|
|
44208
44192
|
showDuration = _a.showDuration,
|
|
44209
44193
|
onHidden = _a.onHidden,
|
|
44210
|
-
|
|
44194
|
+
zIndex = _a.zIndex,
|
|
44195
|
+
props = __rest(_a, ["triggered", "onHide", "onShow", "isCloseable", "children", "showDuration", "onHidden", "zIndex"]);
|
|
44211
44196
|
|
|
44212
44197
|
var _useState = React.useState(triggered),
|
|
44213
44198
|
visible = _useState[0],
|
|
@@ -44270,13 +44255,23 @@
|
|
|
44270
44255
|
hideToast(0);
|
|
44271
44256
|
};
|
|
44272
44257
|
|
|
44273
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
44258
|
+
return /*#__PURE__*/React__default['default'].createElement(Box, Object.assign({
|
|
44274
44259
|
visible: visible,
|
|
44275
44260
|
onMouseEnter: onMouseIn,
|
|
44276
44261
|
onFocus: onMouseIn,
|
|
44277
44262
|
onMouseLeave: onMouseOut,
|
|
44278
|
-
onBlur: onMouseOut
|
|
44279
|
-
|
|
44263
|
+
onBlur: onMouseOut,
|
|
44264
|
+
position: "fixed",
|
|
44265
|
+
bottom: "0",
|
|
44266
|
+
left: "0",
|
|
44267
|
+
right: "0",
|
|
44268
|
+
marginLeft: "auto",
|
|
44269
|
+
marginRight: "auto",
|
|
44270
|
+
width: "fit-content",
|
|
44271
|
+
transform: "translateY(" + TOAST_Y_MIN + ")"
|
|
44272
|
+
}, visible ? SLIDE_IN_STYLES : SLIDE_OUT_STYLES, {
|
|
44273
|
+
zIndex: zIndex
|
|
44274
|
+
}), /*#__PURE__*/React__default['default'].createElement(AnimatedAlert, Object.assign({
|
|
44280
44275
|
visible: visible,
|
|
44281
44276
|
isCloseable: isCloseable,
|
|
44282
44277
|
onClose: handleCloseButtonClick,
|
package/dist/main.module.js
CHANGED
|
@@ -44157,22 +44157,6 @@ var AnimatedAlert = styled(Alert).withConfig({
|
|
|
44157
44157
|
opacity: 0
|
|
44158
44158
|
}, visible ? FADE_IN_STYLES : FADE_OUT_STYLES);
|
|
44159
44159
|
});
|
|
44160
|
-
var AnimatedBoxBottom = styled(Box).withConfig({
|
|
44161
|
-
displayName: "Toast__AnimatedBoxBottom",
|
|
44162
|
-
componentId: "sc-1cheg2k-1"
|
|
44163
|
-
})(function (_ref2) {
|
|
44164
|
-
var visible = _ref2.visible;
|
|
44165
|
-
return Object.assign({
|
|
44166
|
-
position: "fixed",
|
|
44167
|
-
bottom: 0,
|
|
44168
|
-
left: 0,
|
|
44169
|
-
right: 0,
|
|
44170
|
-
marginLeft: "auto",
|
|
44171
|
-
marginRight: "auto",
|
|
44172
|
-
width: "fit-content",
|
|
44173
|
-
tranform: "translateY(" + TOAST_Y_MIN + ")"
|
|
44174
|
-
}, visible ? SLIDE_IN_STYLES : SLIDE_OUT_STYLES);
|
|
44175
|
-
});
|
|
44176
44160
|
var Toast = function Toast(_a) {
|
|
44177
44161
|
var triggered = _a.triggered,
|
|
44178
44162
|
onHide = _a.onHide,
|
|
@@ -44181,7 +44165,8 @@ var Toast = function Toast(_a) {
|
|
|
44181
44165
|
children = _a.children,
|
|
44182
44166
|
showDuration = _a.showDuration,
|
|
44183
44167
|
onHidden = _a.onHidden,
|
|
44184
|
-
|
|
44168
|
+
zIndex = _a.zIndex,
|
|
44169
|
+
props = __rest(_a, ["triggered", "onHide", "onShow", "isCloseable", "children", "showDuration", "onHidden", "zIndex"]);
|
|
44185
44170
|
|
|
44186
44171
|
var _useState = useState(triggered),
|
|
44187
44172
|
visible = _useState[0],
|
|
@@ -44244,13 +44229,23 @@ var Toast = function Toast(_a) {
|
|
|
44244
44229
|
hideToast(0);
|
|
44245
44230
|
};
|
|
44246
44231
|
|
|
44247
|
-
return /*#__PURE__*/React__default.createElement(
|
|
44232
|
+
return /*#__PURE__*/React__default.createElement(Box, Object.assign({
|
|
44248
44233
|
visible: visible,
|
|
44249
44234
|
onMouseEnter: onMouseIn,
|
|
44250
44235
|
onFocus: onMouseIn,
|
|
44251
44236
|
onMouseLeave: onMouseOut,
|
|
44252
|
-
onBlur: onMouseOut
|
|
44253
|
-
|
|
44237
|
+
onBlur: onMouseOut,
|
|
44238
|
+
position: "fixed",
|
|
44239
|
+
bottom: "0",
|
|
44240
|
+
left: "0",
|
|
44241
|
+
right: "0",
|
|
44242
|
+
marginLeft: "auto",
|
|
44243
|
+
marginRight: "auto",
|
|
44244
|
+
width: "fit-content",
|
|
44245
|
+
transform: "translateY(" + TOAST_Y_MIN + ")"
|
|
44246
|
+
}, visible ? SLIDE_IN_STYLES : SLIDE_OUT_STYLES, {
|
|
44247
|
+
zIndex: zIndex
|
|
44248
|
+
}), /*#__PURE__*/React__default.createElement(AnimatedAlert, Object.assign({
|
|
44254
44249
|
visible: visible,
|
|
44255
44250
|
isCloseable: isCloseable,
|
|
44256
44251
|
onClose: handleCloseButtonClick,
|
|
@@ -8,7 +8,7 @@ declare type ToastProps = AlertProps & {
|
|
|
8
8
|
onHidden?: (...args: any[]) => any;
|
|
9
9
|
};
|
|
10
10
|
export declare const Toast: {
|
|
11
|
-
({ triggered, onHide, onShow, isCloseable, children, showDuration, onHidden, ...props }: ToastProps): JSX.Element;
|
|
11
|
+
({ triggered, onHide, onShow, isCloseable, children, showDuration, onHidden, zIndex, ...props }: ToastProps): JSX.Element;
|
|
12
12
|
defaultProps: {
|
|
13
13
|
triggered: boolean;
|
|
14
14
|
onShow: () => void;
|
|
@@ -22,6 +22,12 @@ export declare const WithCloseButton: {
|
|
|
22
22
|
name: string;
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
|
+
export declare const WithModal: {
|
|
26
|
+
(): JSX.Element;
|
|
27
|
+
story: {
|
|
28
|
+
name: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
25
31
|
export declare const CloseableWithMultiLineMessage: {
|
|
26
32
|
(): JSX.Element;
|
|
27
33
|
story: {
|