@utrecht/component-library-react 1.0.0-alpha.106 → 1.0.0-alpha.109

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.
@@ -1,6 +1,10 @@
1
1
  import { OptionHTMLAttributes, SelectHTMLAttributes } from 'react';
2
2
  export interface SelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
3
3
  invalid?: boolean;
4
+ /**
5
+ * `noscript`: Don't let it affect CSS :invalid
6
+ */
7
+ noscript?: boolean;
4
8
  }
5
9
  export declare const Select: import("react").ForwardRefExoticComponent<SelectProps & import("react").RefAttributes<HTMLSelectElement>>;
6
10
  export interface SelectOptionProps extends OptionHTMLAttributes<HTMLOptionElement> {
@@ -19,9 +19,8 @@ const jsx_runtime_1 = require("react/jsx-runtime");
19
19
  const clsx_1 = __importDefault(require("clsx"));
20
20
  const react_1 = require("react");
21
21
  exports.Select = react_1.forwardRef((_a, ref) => {
22
- var { disabled, invalid, required, className, children } = _a, restProps = __rest(_a, ["disabled", "invalid", "required", "className", "children"]);
23
- const noscript = true;
24
- return (jsx_runtime_1.jsx("select", Object.assign({}, restProps, { ref: ref, "aria-invalid": invalid || undefined, disabled: disabled, required: noscript ? required : false, "aria-required": noscript ? undefined : required, className: clsx_1.default('utrecht-select', disabled && 'utrecht-select--disabled', invalid && 'utrecht-select--invalid', required && 'utrecht-select--required', className) }, { children: children }), void 0));
22
+ var { invalid, required, className, noscript, children } = _a, restProps = __rest(_a, ["invalid", "required", "className", "noscript", "children"]);
23
+ return (jsx_runtime_1.jsx("select", Object.assign({}, restProps, { ref: ref, "aria-invalid": invalid || undefined, required: noscript ? required : false, "aria-required": noscript ? undefined : required, className: clsx_1.default('utrecht-select', 'utrecht-select--html-select', invalid && 'utrecht-select--invalid', required && 'utrecht-select--required', className) }, { children: children }), void 0));
25
24
  });
26
25
  exports.Select.displayName = 'Select';
27
26
  exports.SelectOption = react_1.forwardRef((_a, ref) => {
@@ -372,8 +372,8 @@
372
372
  "affectsGlobalScope": false
373
373
  },
374
374
  "../../src/Select.tsx": {
375
- "version": "3573ab6180068e20e5b834246002b863b45c897cf84f91110881f6eecfd90388",
376
- "signature": "952a895d953acc38444a5c3f55543edcbf04acc96be077edf6cd0e3265d6a07b",
375
+ "version": "77ef81b8fd879772fe5f283e8f60200cea606b0034dac2b5896ad9b5390663a5",
376
+ "signature": "5a33636de96b6da4e8188f2e2d6c83dfa5ac3a8597672847a9fdfcd4254207f3",
377
377
  "affectsGlobalScope": false
378
378
  },
379
379
  "../../src/Separator.tsx": {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0-alpha.106",
2
+ "version": "1.0.0-alpha.109",
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",
@@ -373,5 +373,5 @@
373
373
  "react": "^17.0.0",
374
374
  "react-dom": "^17.0.0"
375
375
  },
376
- "gitHead": "5e2a8199165a38a7ac3da97f75c86842f24319e9"
376
+ "gitHead": "0bfbba717942f7153bc7eb0d7d884c9240e82911"
377
377
  }