@utrecht/component-library-react 1.0.0-alpha.90 → 1.0.0-alpha.91
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/cjs/Textbox.js
CHANGED
|
@@ -20,6 +20,6 @@ const clsx_1 = __importDefault(require("clsx"));
|
|
|
20
20
|
const react_1 = require("react");
|
|
21
21
|
exports.Textbox = react_1.forwardRef((_a, ref) => {
|
|
22
22
|
var { disabled, invalid, readOnly, required, className, type = 'text', maxLength, inputMode } = _a, restProps = __rest(_a, ["disabled", "invalid", "readOnly", "required", "className", "type", "maxLength", "inputMode"]);
|
|
23
|
-
return (jsx_runtime_1.jsx("input", Object.assign({}, restProps, { ref: ref, type: type, className: clsx_1.default('utrecht-textbox', 'utrecht-textbox--html-input',
|
|
23
|
+
return (jsx_runtime_1.jsx("input", Object.assign({}, restProps, { ref: ref, type: type, className: clsx_1.default('utrecht-textbox', 'utrecht-textbox--html-input', disabled && 'utrecht-textbox--disabled', invalid && 'utrecht-textbox--invalid', readOnly && 'utrecht-textbox--readonly', required && 'utrecht-textbox--required', className), maxLength: maxLength, disabled: disabled, readOnly: readOnly, required: required, "aria-invalid": invalid || undefined, inputMode: inputMode || (type === 'number' ? 'numeric' : undefined) }), void 0));
|
|
24
24
|
});
|
|
25
25
|
exports.Textbox.displayName = 'utrecht-textbox';
|
|
@@ -432,7 +432,7 @@
|
|
|
432
432
|
"affectsGlobalScope": false
|
|
433
433
|
},
|
|
434
434
|
"../../src/Textbox.tsx": {
|
|
435
|
-
"version": "
|
|
435
|
+
"version": "7432fb47f3157b07e5a5c44b4ab219f67dbba15a855548611fd88878c7f313c4",
|
|
436
436
|
"signature": "5c459b0a99552a86dccb21a5a6d733abe97331b4b7619fb0aceb946b35f384ae",
|
|
437
437
|
"affectsGlobalScope": false
|
|
438
438
|
},
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.0.0-alpha.
|
|
2
|
+
"version": "1.0.0-alpha.91",
|
|
3
3
|
"author": "Community for NL Design System",
|
|
4
4
|
"description": "React component library bundle for the Municipality of Utrecht based on the NL Design System architecture",
|
|
5
5
|
"license": "EUPL-1.2",
|
|
@@ -370,5 +370,5 @@
|
|
|
370
370
|
"react": "^17.0.0",
|
|
371
371
|
"react-dom": "^17.0.0"
|
|
372
372
|
},
|
|
373
|
-
"gitHead": "
|
|
373
|
+
"gitHead": "125594e9de1b7a20960c48898322825c137f8162"
|
|
374
374
|
}
|