labsense-ui-kit 1.3.87 → 1.3.88
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 +61 -59
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +61 -59
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -6814,70 +6814,72 @@ var useNotification = function useNotification() {
|
|
|
6814
6814
|
toast.remove();
|
|
6815
6815
|
}
|
|
6816
6816
|
toast.dismiss(toastId);
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
icon: React.createElement(Container, {
|
|
6832
|
-
"$minWidth": '20px',
|
|
6833
|
-
"$height": '20px',
|
|
6834
|
-
"$width": '20px',
|
|
6835
|
-
"$alignItems": 'center',
|
|
6836
|
-
"$justifyContent": 'center',
|
|
6837
|
-
"$borderRadius": '100%',
|
|
6838
|
-
"$background": themeColors.vms.disabled.info
|
|
6839
|
-
}, React.createElement(Icon, {
|
|
6840
|
-
icon: 'InformationFilled',
|
|
6841
|
-
size: 20,
|
|
6842
|
-
color: themeColors.vms["default"].info
|
|
6843
|
-
})),
|
|
6844
|
-
style: {
|
|
6845
|
-
borderRadius: '8px',
|
|
6846
|
-
background: themeColors.vms.text.white,
|
|
6847
|
-
color: themeColors.vms.text.dark,
|
|
6848
|
-
maxWidth: '648px'
|
|
6849
|
-
}
|
|
6850
|
-
});
|
|
6851
|
-
break;
|
|
6852
|
-
case 'promise':
|
|
6853
|
-
if (promiseConfig) {
|
|
6854
|
-
toast.promise(promiseConfig.promise, {
|
|
6855
|
-
loading: promiseConfig.loading,
|
|
6856
|
-
success: promiseConfig.success,
|
|
6857
|
-
error: promiseConfig.error
|
|
6858
|
-
}, {
|
|
6817
|
+
setTimeout(function () {
|
|
6818
|
+
switch (type) {
|
|
6819
|
+
case 'success':
|
|
6820
|
+
toast.success(message, {
|
|
6821
|
+
id: toastId
|
|
6822
|
+
});
|
|
6823
|
+
break;
|
|
6824
|
+
case 'error':
|
|
6825
|
+
toast.error(message, {
|
|
6826
|
+
id: toastId
|
|
6827
|
+
});
|
|
6828
|
+
break;
|
|
6829
|
+
case 'info':
|
|
6830
|
+
toast(message, {
|
|
6859
6831
|
id: toastId,
|
|
6832
|
+
icon: React.createElement(Container, {
|
|
6833
|
+
"$minWidth": '20px',
|
|
6834
|
+
"$height": '20px',
|
|
6835
|
+
"$width": '20px',
|
|
6836
|
+
"$alignItems": 'center',
|
|
6837
|
+
"$justifyContent": 'center',
|
|
6838
|
+
"$borderRadius": '100%',
|
|
6839
|
+
"$background": themeColors.vms.disabled.info
|
|
6840
|
+
}, React.createElement(Icon, {
|
|
6841
|
+
icon: 'InformationFilled',
|
|
6842
|
+
size: 20,
|
|
6843
|
+
color: themeColors.vms["default"].info
|
|
6844
|
+
})),
|
|
6860
6845
|
style: {
|
|
6861
|
-
|
|
6846
|
+
borderRadius: '8px',
|
|
6847
|
+
background: themeColors.vms.text.white,
|
|
6848
|
+
color: themeColors.vms.text.dark,
|
|
6849
|
+
maxWidth: '648px'
|
|
6862
6850
|
}
|
|
6863
6851
|
});
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
|
|
6876
|
-
|
|
6852
|
+
break;
|
|
6853
|
+
case 'promise':
|
|
6854
|
+
if (promiseConfig) {
|
|
6855
|
+
toast.promise(promiseConfig.promise, {
|
|
6856
|
+
loading: promiseConfig.loading,
|
|
6857
|
+
success: promiseConfig.success,
|
|
6858
|
+
error: promiseConfig.error
|
|
6859
|
+
}, {
|
|
6860
|
+
id: toastId,
|
|
6861
|
+
style: {
|
|
6862
|
+
minWidth: '300px'
|
|
6863
|
+
}
|
|
6864
|
+
});
|
|
6877
6865
|
}
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6866
|
+
break;
|
|
6867
|
+
case 'custom':
|
|
6868
|
+
toast(message, {
|
|
6869
|
+
id: toastId,
|
|
6870
|
+
icon: React.createElement(Icon, {
|
|
6871
|
+
icon: (customStyle === null || customStyle === void 0 ? void 0 : customStyle.icon) || 'Add_1',
|
|
6872
|
+
size: customStyle === null || customStyle === void 0 ? void 0 : customStyle.iconSize,
|
|
6873
|
+
weight: customStyle === null || customStyle === void 0 ? void 0 : customStyle.iconWeight
|
|
6874
|
+
}),
|
|
6875
|
+
style: {
|
|
6876
|
+
background: customStyle === null || customStyle === void 0 ? void 0 : customStyle.background,
|
|
6877
|
+
color: customStyle === null || customStyle === void 0 ? void 0 : customStyle.color
|
|
6878
|
+
}
|
|
6879
|
+
});
|
|
6880
|
+
break;
|
|
6881
|
+
}
|
|
6882
|
+
}, 100);
|
|
6881
6883
|
};
|
|
6882
6884
|
return {
|
|
6883
6885
|
sendNotification: sendNotification
|