@linzjs/lui 24.12.0 → 24.13.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/CHANGELOG.md +14 -0
- package/dist/components/Toast/Helpers/ToastTypes.d.ts +6 -0
- package/dist/index.js +12 -7
- package/dist/index.js.map +1 -1
- package/dist/lui.css +1 -1
- package/dist/lui.esm.js +12 -7
- package/dist/lui.esm.js.map +1 -1
- package/dist/scss/Components/LuiErrorPage/LuiErrorPage.scss +1 -1
- package/package.json +1 -1
package/dist/lui.css
CHANGED
|
@@ -5325,7 +5325,7 @@ body.LuiHeaderMenuV2-drawer-open {
|
|
|
5325
5325
|
display: grid;
|
|
5326
5326
|
grid-template-columns: 1fr;
|
|
5327
5327
|
grid-template-rows: minmax(min-content, max-content) 1fr minmax(min-content, max-content);
|
|
5328
|
-
height:
|
|
5328
|
+
min-height: 100vh;
|
|
5329
5329
|
}
|
|
5330
5330
|
|
|
5331
5331
|
.LuiErrorPage-wrapper {
|
package/dist/lui.esm.js
CHANGED
|
@@ -41168,8 +41168,12 @@ var getUniqueToastId = function () {
|
|
|
41168
41168
|
};
|
|
41169
41169
|
var toastFunctions = function (dispatch) {
|
|
41170
41170
|
var toast = function (notification, config) {
|
|
41171
|
+
var _a;
|
|
41171
41172
|
if (config === void 0) { config = {}; }
|
|
41172
|
-
var
|
|
41173
|
+
var _b = config.id, id = _b === void 0 ? getUniqueToastId() : _b, options = __rest(config, ["id"]);
|
|
41174
|
+
if (options.requireDismiss) {
|
|
41175
|
+
options.timeout = (_a = options.timeout) !== null && _a !== void 0 ? _a : Infinity;
|
|
41176
|
+
}
|
|
41173
41177
|
dispatch === null || dispatch === void 0 ? void 0 : dispatch({ type: 'add', notification: notification, options: options, id: id });
|
|
41174
41178
|
return id;
|
|
41175
41179
|
};
|
|
@@ -41179,18 +41183,19 @@ var toastFunctions = function (dispatch) {
|
|
|
41179
41183
|
if (config === void 0) { config = {}; }
|
|
41180
41184
|
var options = __assign(__assign({}, defaults), config);
|
|
41181
41185
|
return toast(function (_a) {
|
|
41182
|
-
var
|
|
41183
|
-
|
|
41186
|
+
var onDismissFn = _a.close;
|
|
41187
|
+
var onDismiss = options.requireDismiss === false ? undefined : onDismissFn;
|
|
41188
|
+
return React.createElement(ToastBanner, __assign({}, { level: level, children: children, onDismiss: onDismiss }));
|
|
41184
41189
|
}, options);
|
|
41185
41190
|
};
|
|
41186
41191
|
};
|
|
41187
41192
|
return {
|
|
41188
41193
|
toast: toast,
|
|
41189
41194
|
dismiss: function (id) { return dispatch === null || dispatch === void 0 ? void 0 : dispatch({ type: 'remove', id: id }); },
|
|
41190
|
-
info: banner('info'),
|
|
41191
|
-
success: banner('success'),
|
|
41192
|
-
error: banner('error', {
|
|
41193
|
-
warning: banner('warning', {
|
|
41195
|
+
info: banner('info', { requireDismiss: false }),
|
|
41196
|
+
success: banner('success', { requireDismiss: false }),
|
|
41197
|
+
error: banner('error', { requireDismiss: true }),
|
|
41198
|
+
warning: banner('warning', { requireDismiss: true }),
|
|
41194
41199
|
plain: banner()
|
|
41195
41200
|
};
|
|
41196
41201
|
};
|