@linzjs/lui 21.53.4 → 21.54.0
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/lui.esm.js
CHANGED
|
@@ -31957,7 +31957,7 @@ var extensionsAsHumanReadableList = function (extensions) {
|
|
|
31957
31957
|
var LuiSelectInput = function (props) {
|
|
31958
31958
|
var _a, _b;
|
|
31959
31959
|
var id = useGenerateOrDefaultId((_a = props.selectProps) === null || _a === void 0 ? void 0 : _a.id);
|
|
31960
|
-
return (React__default.createElement("div", { className: clsx('LuiSelect', ((_b = props.selectProps) === null || _b === void 0 ? void 0 : _b.disabled) ? 'isDisabled' : '', props.error ? 'hasError' : '', props.warning ? 'hasWarning' : '') },
|
|
31960
|
+
return (React__default.createElement("div", { className: clsx('LuiSelect', ((_b = props.selectProps) === null || _b === void 0 ? void 0 : _b.disabled) ? 'isDisabled' : '', props.error ? 'hasError' : '', props.warning ? 'hasWarning' : '', props.className) },
|
|
31961
31961
|
React__default.createElement("label", { htmlFor: id, className: "LuiSelect-label" },
|
|
31962
31962
|
props.mandatory && React__default.createElement("span", { className: "LuiSelect-mandatory" }, "*"),
|
|
31963
31963
|
React__default.createElement("span", { className: clsx('LuiSelect-label-text', props.hideLabel ? 'LuiScreenReadersOnly' : '') }, props.label),
|
|
@@ -60019,9 +60019,9 @@ var getTimeout = function (_a) {
|
|
|
60019
60019
|
*/
|
|
60020
60020
|
var useShowLUIMessageCompatibleInterface = function () {
|
|
60021
60021
|
var t = useToast();
|
|
60022
|
-
return function (props) {
|
|
60022
|
+
return useCallback(function (props) {
|
|
60023
60023
|
return t[props.messageLevel](props.message, { timeout: getTimeout(props) });
|
|
60024
|
-
};
|
|
60024
|
+
}, []);
|
|
60025
60025
|
};
|
|
60026
60026
|
|
|
60027
60027
|
/**
|