@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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [21.54.0](https://github.com/linz/lui/compare/v21.53.4...v21.54.0) (2024-11-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* Add className to LuiSelectInput props ([#1175](https://github.com/linz/lui/issues/1175)) ([b9ddacd](https://github.com/linz/lui/commit/b9ddacdd69c3291fb4c93c43afe05345d61d4ac5))
|
|
7
|
+
|
|
1
8
|
## [21.53.4](https://github.com/linz/lui/compare/v21.53.3...v21.53.4) (2024-11-20)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -15,5 +15,6 @@ export interface SelectProps {
|
|
|
15
15
|
selectProps?: DetailedHTMLProps<SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>;
|
|
16
16
|
label: JSX.Element | string;
|
|
17
17
|
placeholderText?: string;
|
|
18
|
+
className?: string;
|
|
18
19
|
}
|
|
19
20
|
export declare const LuiSelectInput: (props: SelectProps) => JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -31986,7 +31986,7 @@ var extensionsAsHumanReadableList = function (extensions) {
|
|
|
31986
31986
|
var LuiSelectInput = function (props) {
|
|
31987
31987
|
var _a, _b;
|
|
31988
31988
|
var id = useGenerateOrDefaultId((_a = props.selectProps) === null || _a === void 0 ? void 0 : _a.id);
|
|
31989
|
-
return (React__default["default"].createElement("div", { className: clsx('LuiSelect', ((_b = props.selectProps) === null || _b === void 0 ? void 0 : _b.disabled) ? 'isDisabled' : '', props.error ? 'hasError' : '', props.warning ? 'hasWarning' : '') },
|
|
31989
|
+
return (React__default["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) },
|
|
31990
31990
|
React__default["default"].createElement("label", { htmlFor: id, className: "LuiSelect-label" },
|
|
31991
31991
|
props.mandatory && React__default["default"].createElement("span", { className: "LuiSelect-mandatory" }, "*"),
|
|
31992
31992
|
React__default["default"].createElement("span", { className: clsx('LuiSelect-label-text', props.hideLabel ? 'LuiScreenReadersOnly' : '') }, props.label),
|
|
@@ -60048,9 +60048,9 @@ var getTimeout = function (_a) {
|
|
|
60048
60048
|
*/
|
|
60049
60049
|
var useShowLUIMessageCompatibleInterface = function () {
|
|
60050
60050
|
var t = useToast();
|
|
60051
|
-
return function (props) {
|
|
60051
|
+
return React.useCallback(function (props) {
|
|
60052
60052
|
return t[props.messageLevel](props.message, { timeout: getTimeout(props) });
|
|
60053
|
-
};
|
|
60053
|
+
}, []);
|
|
60054
60054
|
};
|
|
60055
60055
|
|
|
60056
60056
|
/**
|