labsense-ui-kit 1.3.85 → 1.3.87
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/Table/Table.d.ts +1 -0
- package/dist/index.js +63 -64
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +63 -64
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/Table/Table.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -6817,73 +6817,71 @@ var useNotification = function useNotification() {
|
|
|
6817
6817
|
if (clearCurrent) {
|
|
6818
6818
|
reactHotToast.toast.remove();
|
|
6819
6819
|
}
|
|
6820
|
-
reactHotToast.toast.
|
|
6821
|
-
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
|
|
6833
|
-
|
|
6834
|
-
|
|
6835
|
-
|
|
6836
|
-
|
|
6837
|
-
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
maxWidth: '648px'
|
|
6854
|
-
}
|
|
6855
|
-
});
|
|
6856
|
-
break;
|
|
6857
|
-
case 'promise':
|
|
6858
|
-
if (promiseConfig) {
|
|
6859
|
-
reactHotToast.toast.promise(promiseConfig.promise, {
|
|
6860
|
-
loading: promiseConfig.loading,
|
|
6861
|
-
success: promiseConfig.success,
|
|
6862
|
-
error: promiseConfig.error
|
|
6863
|
-
}, {
|
|
6864
|
-
id: toastId,
|
|
6865
|
-
style: {
|
|
6866
|
-
minWidth: '300px'
|
|
6867
|
-
}
|
|
6868
|
-
});
|
|
6820
|
+
reactHotToast.toast.dismiss(toastId);
|
|
6821
|
+
switch (type) {
|
|
6822
|
+
case 'success':
|
|
6823
|
+
reactHotToast.toast.success(message, {
|
|
6824
|
+
id: toastId
|
|
6825
|
+
});
|
|
6826
|
+
break;
|
|
6827
|
+
case 'error':
|
|
6828
|
+
reactHotToast.toast.error(message, {
|
|
6829
|
+
id: toastId
|
|
6830
|
+
});
|
|
6831
|
+
break;
|
|
6832
|
+
case 'info':
|
|
6833
|
+
reactHotToast.toast(message, {
|
|
6834
|
+
id: toastId,
|
|
6835
|
+
icon: React__default.createElement(Container, {
|
|
6836
|
+
"$minWidth": '20px',
|
|
6837
|
+
"$height": '20px',
|
|
6838
|
+
"$width": '20px',
|
|
6839
|
+
"$alignItems": 'center',
|
|
6840
|
+
"$justifyContent": 'center',
|
|
6841
|
+
"$borderRadius": '100%',
|
|
6842
|
+
"$background": themeColors.vms.disabled.info
|
|
6843
|
+
}, React__default.createElement(Icon, {
|
|
6844
|
+
icon: 'InformationFilled',
|
|
6845
|
+
size: 20,
|
|
6846
|
+
color: themeColors.vms["default"].info
|
|
6847
|
+
})),
|
|
6848
|
+
style: {
|
|
6849
|
+
borderRadius: '8px',
|
|
6850
|
+
background: themeColors.vms.text.white,
|
|
6851
|
+
color: themeColors.vms.text.dark,
|
|
6852
|
+
maxWidth: '648px'
|
|
6869
6853
|
}
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6854
|
+
});
|
|
6855
|
+
break;
|
|
6856
|
+
case 'promise':
|
|
6857
|
+
if (promiseConfig) {
|
|
6858
|
+
reactHotToast.toast.promise(promiseConfig.promise, {
|
|
6859
|
+
loading: promiseConfig.loading,
|
|
6860
|
+
success: promiseConfig.success,
|
|
6861
|
+
error: promiseConfig.error
|
|
6862
|
+
}, {
|
|
6873
6863
|
id: toastId,
|
|
6874
|
-
icon: React__default.createElement(Icon, {
|
|
6875
|
-
icon: (customStyle === null || customStyle === void 0 ? void 0 : customStyle.icon) || 'Add_1',
|
|
6876
|
-
size: customStyle === null || customStyle === void 0 ? void 0 : customStyle.iconSize,
|
|
6877
|
-
weight: customStyle === null || customStyle === void 0 ? void 0 : customStyle.iconWeight
|
|
6878
|
-
}),
|
|
6879
6864
|
style: {
|
|
6880
|
-
|
|
6881
|
-
color: customStyle === null || customStyle === void 0 ? void 0 : customStyle.color
|
|
6865
|
+
minWidth: '300px'
|
|
6882
6866
|
}
|
|
6883
6867
|
});
|
|
6884
|
-
|
|
6885
|
-
|
|
6886
|
-
|
|
6868
|
+
}
|
|
6869
|
+
break;
|
|
6870
|
+
case 'custom':
|
|
6871
|
+
reactHotToast.toast(message, {
|
|
6872
|
+
id: toastId,
|
|
6873
|
+
icon: React__default.createElement(Icon, {
|
|
6874
|
+
icon: (customStyle === null || customStyle === void 0 ? void 0 : customStyle.icon) || 'Add_1',
|
|
6875
|
+
size: customStyle === null || customStyle === void 0 ? void 0 : customStyle.iconSize,
|
|
6876
|
+
weight: customStyle === null || customStyle === void 0 ? void 0 : customStyle.iconWeight
|
|
6877
|
+
}),
|
|
6878
|
+
style: {
|
|
6879
|
+
background: customStyle === null || customStyle === void 0 ? void 0 : customStyle.background,
|
|
6880
|
+
color: customStyle === null || customStyle === void 0 ? void 0 : customStyle.color
|
|
6881
|
+
}
|
|
6882
|
+
});
|
|
6883
|
+
break;
|
|
6884
|
+
}
|
|
6887
6885
|
};
|
|
6888
6886
|
return {
|
|
6889
6887
|
sendNotification: sendNotification
|
|
@@ -11449,7 +11447,8 @@ var Table = function Table(_ref9) {
|
|
|
11449
11447
|
filter = _ref9$filter === void 0 ? false : _ref9$filter,
|
|
11450
11448
|
loading = _ref9.loading,
|
|
11451
11449
|
_ref9$noDataText = _ref9.noDataText,
|
|
11452
|
-
noDataText = _ref9$noDataText === void 0 ? 'No Data Found!' : _ref9$noDataText
|
|
11450
|
+
noDataText = _ref9$noDataText === void 0 ? 'No Data Found!' : _ref9$noDataText,
|
|
11451
|
+
loadingTitle = _ref9.loadingTitle;
|
|
11453
11452
|
var themeColors = useTheme();
|
|
11454
11453
|
var rowconfig = tableObject.rowconfig,
|
|
11455
11454
|
tableheaderconfig = tableObject.tableheaderconfig;
|
|
@@ -11596,7 +11595,7 @@ var Table = function Table(_ref9) {
|
|
|
11596
11595
|
"$justifyContent": 'center',
|
|
11597
11596
|
"$padding": '24px 24px'
|
|
11598
11597
|
}, React__default.createElement(Loader$1, {
|
|
11599
|
-
title:
|
|
11598
|
+
title: loadingTitle
|
|
11600
11599
|
})) : rowconfig.length === 0 ? React__default.createElement(Container, {
|
|
11601
11600
|
"$flexDirection": 'column',
|
|
11602
11601
|
"$alignItems": 'center',
|