labsense-ui-kit 1.3.41 → 1.3.43
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.js +9 -21
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +10 -22
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6378,14 +6378,6 @@ var useTheme = function useTheme() {
|
|
|
6378
6378
|
|
|
6379
6379
|
var useNotification = function useNotification() {
|
|
6380
6380
|
var themeColors = useTheme();
|
|
6381
|
-
var _useToasterStore = reactHotToast.useToasterStore(),
|
|
6382
|
-
toasts = _useToasterStore.toasts;
|
|
6383
|
-
var getDuplicateToastId = function getDuplicateToastId(type, message) {
|
|
6384
|
-
var duplicate = toasts.find(function (t) {
|
|
6385
|
-
return t.visible && t.type === type && t.message === message;
|
|
6386
|
-
});
|
|
6387
|
-
return duplicate === null || duplicate === void 0 ? void 0 : duplicate.id;
|
|
6388
|
-
};
|
|
6389
6381
|
var sendNotification = function sendNotification(_ref) {
|
|
6390
6382
|
var type = _ref.type,
|
|
6391
6383
|
message = _ref.message,
|
|
@@ -6393,11 +6385,7 @@ var useNotification = function useNotification() {
|
|
|
6393
6385
|
customStyle = _ref.customStyle,
|
|
6394
6386
|
_ref$clearCurrent = _ref.clearCurrent,
|
|
6395
6387
|
clearCurrent = _ref$clearCurrent === void 0 ? false : _ref$clearCurrent;
|
|
6396
|
-
|
|
6397
|
-
if (duplicateToastId) {
|
|
6398
|
-
reactHotToast.toast.dismiss(duplicateToastId);
|
|
6399
|
-
}
|
|
6400
|
-
if (clearCurrent && !duplicateToastId) {
|
|
6388
|
+
if (clearCurrent) {
|
|
6401
6389
|
reactHotToast.toast.dismiss();
|
|
6402
6390
|
}
|
|
6403
6391
|
switch (type) {
|
|
@@ -6410,16 +6398,16 @@ var useNotification = function useNotification() {
|
|
|
6410
6398
|
case 'info':
|
|
6411
6399
|
reactHotToast.toast(message, {
|
|
6412
6400
|
icon: React__default.createElement(Container, {
|
|
6413
|
-
"$minWidth":
|
|
6414
|
-
"$height":
|
|
6415
|
-
"$width":
|
|
6416
|
-
"$alignItems":
|
|
6417
|
-
"$justifyContent":
|
|
6418
|
-
"$borderRadius":
|
|
6401
|
+
"$minWidth": '20px',
|
|
6402
|
+
"$height": '20px',
|
|
6403
|
+
"$width": '20px',
|
|
6404
|
+
"$alignItems": 'center',
|
|
6405
|
+
"$justifyContent": 'center',
|
|
6406
|
+
"$borderRadius": '100%',
|
|
6419
6407
|
"$background": themeColors.vms.disabled.info
|
|
6420
6408
|
}, React__default.createElement(Icon, {
|
|
6421
|
-
icon:
|
|
6422
|
-
weight:
|
|
6409
|
+
icon: 'InformationFilled',
|
|
6410
|
+
weight: '0px',
|
|
6423
6411
|
size: 20,
|
|
6424
6412
|
color: themeColors.vms["default"].info
|
|
6425
6413
|
})),
|