@linzjs/lui 17.35.2 → 17.35.3

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
@@ -15633,8 +15633,8 @@ function useGenerateOrDefaultId(idFromProps) {
15633
15633
  var id = useState(idFromProps ? idFromProps : v4())[0];
15634
15634
  return id;
15635
15635
  }
15636
- var BareInput = function (props) { return (React__default.createElement("input", __assign$3({}, props))); };
15637
- var LuiTextInput = function (props) {
15636
+ var BareInput = forwardRef(function (props, ref) { return React__default.createElement("input", __assign$3({}, props, { ref: ref })); });
15637
+ var LuiTextInput = forwardRef(function (props, ref) {
15638
15638
  var _a, _b, _c;
15639
15639
  var id = useGenerateOrDefaultId((_a = props.inputProps) === null || _a === void 0 ? void 0 : _a.id);
15640
15640
  var LuiInput = ((_b = props.inputProps) === null || _b === void 0 ? void 0 : _b.type) === 'date' ? DateInput : BareInput;
@@ -15644,7 +15644,7 @@ var LuiTextInput = function (props) {
15644
15644
  React__default.createElement("span", { className: 'LuiTextInput-label-text ' +
15645
15645
  clsx$1(props.hideLabel ? 'LuiScreenReadersOnly' : '') }, props.label),
15646
15646
  React__default.createElement("span", { className: "LuiTextInput-inputWrapper" },
15647
- React__default.createElement(LuiInput, __assign$3({ className: clsx$1('LuiTextInput-input', props.showPadlockIcon ? 'LuiTextInput-padlock-icon ' : '', props.size ? "LuiTextInput-".concat(props.size) : ''), min: ((_c = props.inputProps) === null || _c === void 0 ? void 0 : _c.type) === 'date' ? undefined : '0', value: props.value, onChange: props.onChange }, props.inputProps, { id: id })),
15647
+ React__default.createElement(LuiInput, __assign$3({ ref: ref, className: clsx$1('LuiTextInput-input', props.showPadlockIcon ? 'LuiTextInput-padlock-icon ' : '', props.size ? "LuiTextInput-".concat(props.size) : ''), min: ((_c = props.inputProps) === null || _c === void 0 ? void 0 : _c.type) === 'date' ? undefined : '0', value: props.value, onChange: props.onChange }, props.inputProps, { id: id })),
15648
15648
  props.icon),
15649
15649
  props.error && (React__default.createElement("span", { className: "LuiTextInput-error" },
15650
15650
  React__default.createElement(LuiIcon, { alt: "error", name: "ic_error", className: "LuiTextInput-error-icon", size: "sm", status: "error" }),
@@ -15652,7 +15652,7 @@ var LuiTextInput = function (props) {
15652
15652
  props.warning && (React__default.createElement("span", { className: "LuiTextInput-warning" },
15653
15653
  React__default.createElement(LuiIcon, { alt: "warning", name: "ic_warning", className: "LuiTextInput-warning-icon", size: "sm", status: "warning" }),
15654
15654
  props.warning)))));
15655
- };
15655
+ });
15656
15656
 
15657
15657
  var LuiCheckboxInput = function (props) {
15658
15658
  var _a;