@giro-ds/react 1.0.3 → 1.0.4
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -811,7 +811,7 @@ const TextField = ({ name = 'textfield', className = '', value = '', label = '',
|
|
|
811
811
|
: helper && helperText
|
|
812
812
|
? `${componentId}-helper`
|
|
813
813
|
: undefined;
|
|
814
|
-
return (jsxs("div", { className: TextFieldClass, children: [label && (jsx("label", { htmlFor: componentId, className: styles$j['zds-textfield__wrapper-label'], children: tooltip ? (jsx(Tooltip, { text: tooltipText, position: positionTooltip, children: jsxs("div", { className: styles$j['zds-textfield__container-tooltip'], children: [label, required && jsx("span", { className: styles$j['zds-textfield__required'], children: "*" }), jsx(Info12Regular, { className: styles$j['zds-textfield__tooltip'] })] }) })) : (jsxs("div", { className: styles$j['zds-textfield__container-tooltip'], children: [label, required && jsx("span", { className: styles$j['zds-textfield__required'], children: "*" })] })) })), jsxs("div", { className: styles$j['zds-textfield__container__box'], children: [jsxs("div", { className: styles$j['zds-textfield__box__input'], children: [jsx("input", { id: componentId, name: name, type: type, value: inputValue, placeholder: placeholder, onChange: handleChange, onFocus: () => setFocus(true), onBlur: onBlur, maxLength: maxLength, disabled: disabled, "aria-invalid": !!inputError, "aria-required": required, "aria-describedby": helperId }), shouldRenderCustomIcon && (jsx("span", { className: styles$j['zds-textfield__icon'], children: icon })), shouldRenderClearIcon && (jsx(
|
|
814
|
+
return (jsxs("div", { className: TextFieldClass, children: [label && (jsx("label", { htmlFor: componentId, className: styles$j['zds-textfield__wrapper-label'], children: tooltip ? (jsx(Tooltip, { text: tooltipText, position: positionTooltip, children: jsxs("div", { className: styles$j['zds-textfield__container-tooltip'], children: [label, required && jsx("span", { className: styles$j['zds-textfield__required'], children: "*" }), jsx(Info12Regular, { className: styles$j['zds-textfield__tooltip'] })] }) })) : (jsxs("div", { className: styles$j['zds-textfield__container-tooltip'], children: [label, required && jsx("span", { className: styles$j['zds-textfield__required'], children: "*" })] })) })), jsxs("div", { className: styles$j['zds-textfield__container__box'], children: [jsxs("div", { className: styles$j['zds-textfield__box__input'], children: [jsx("input", { id: componentId, name: name, type: type, value: inputValue, placeholder: placeholder, onChange: handleChange, onFocus: () => setFocus(true), onBlur: onBlur, maxLength: maxLength, disabled: disabled, "aria-invalid": !!inputError, "aria-required": required, "aria-describedby": helperId }), shouldRenderCustomIcon && (jsx("span", { className: styles$j['zds-textfield__icon'], children: icon })), shouldRenderClearIcon && (jsx("span", { className: styles$j['zds-textfield__icon'], onClick: clearInput, onMouseDown: (e) => e.preventDefault(), role: "button", tabIndex: 0, "aria-label": "Limpar campo", children: jsx(Dismiss16Regular, {}) }))] }), jsx("span", { id: helperId, className: styles$j['zds-textfield__helper-text'], "aria-live": inputError ? 'polite' : undefined, children: helperContent })] })] }));
|
|
815
815
|
};
|
|
816
816
|
const MemoizedTextField = React__default.memo(TextField);
|
|
817
817
|
MemoizedTextField.displayName = 'TextField';
|