@equinor/eds-core-react 0.20.3 → 0.20.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.
@@ -2720,6 +2720,7 @@ const TextField = /*#__PURE__*/react.forwardRef(function TextField(_ref, ref) {
2720
2720
  inputIcon,
2721
2721
  helperIcon,
2722
2722
  rowsMax,
2723
+ style,
2723
2724
  ...other
2724
2725
  } = _ref;
2725
2726
  const helperTextId = edsUtils.useId(null, 'helpertext');
@@ -2746,7 +2747,7 @@ const TextField = /*#__PURE__*/react.forwardRef(function TextField(_ref, ref) {
2746
2747
  const containerProps = {
2747
2748
  ref,
2748
2749
  className,
2749
- style: other.style
2750
+ style
2750
2751
  };
2751
2752
  const labelProps = {
2752
2753
  htmlFor: id,
@@ -2860,7 +2861,7 @@ const findIcon = (name, data, size) => {
2860
2861
 
2861
2862
  const Icon$2 = /*#__PURE__*/react.forwardRef(function Icon(_ref4, ref) {
2862
2863
  let {
2863
- size = 24,
2864
+ size,
2864
2865
  color = 'currentColor',
2865
2866
  name,
2866
2867
  rotation,
@@ -10317,9 +10318,8 @@ function AutocompleteInner(props, ref) {
10317
10318
  }
10318
10319
  };
10319
10320
 
10320
- if (isControlled && !multiple) {
10321
+ if (!multiple) {
10321
10322
  comboBoxProps = { ...comboBoxProps,
10322
- selectedItem: selectedOptions[0] || null,
10323
10323
  onSelectedItemChange: changes => {
10324
10324
  if (onOptionsChange) {
10325
10325
  const {
@@ -10331,6 +10331,12 @@ function AutocompleteInner(props, ref) {
10331
10331
  }
10332
10332
  }
10333
10333
  };
10334
+
10335
+ if (isControlled) {
10336
+ comboBoxProps = { ...comboBoxProps,
10337
+ selectedItem: selectedOptions[0] || null
10338
+ };
10339
+ }
10334
10340
  }
10335
10341
 
10336
10342
  if (multiple) {
@@ -311,9 +311,8 @@ function AutocompleteInner(props, ref) {
311
311
  }
312
312
  };
313
313
 
314
- if (isControlled && !multiple) {
314
+ if (!multiple) {
315
315
  comboBoxProps = { ...comboBoxProps,
316
- selectedItem: selectedOptions[0] || null,
317
316
  onSelectedItemChange: changes => {
318
317
  if (onOptionsChange) {
319
318
  const {
@@ -325,6 +324,12 @@ function AutocompleteInner(props, ref) {
325
324
  }
326
325
  }
327
326
  };
327
+
328
+ if (isControlled) {
329
+ comboBoxProps = { ...comboBoxProps,
330
+ selectedItem: selectedOptions[0] || null
331
+ };
332
+ }
328
333
  }
329
334
 
330
335
  if (multiple) {
@@ -70,7 +70,7 @@ const findIcon = (name, data, size) => {
70
70
 
71
71
  const Icon = /*#__PURE__*/forwardRef(function Icon(_ref4, ref) {
72
72
  let {
73
- size = 24,
73
+ size,
74
74
  color = 'currentColor',
75
75
  name,
76
76
  rotation,
@@ -29,6 +29,7 @@ const TextField = /*#__PURE__*/forwardRef(function TextField(_ref, ref) {
29
29
  inputIcon,
30
30
  helperIcon,
31
31
  rowsMax,
32
+ style,
32
33
  ...other
33
34
  } = _ref;
34
35
  const helperTextId = useId(null, 'helpertext');
@@ -55,7 +56,7 @@ const TextField = /*#__PURE__*/forwardRef(function TextField(_ref, ref) {
55
56
  const containerProps = {
56
57
  ref,
57
58
  className,
58
- style: other.style
59
+ style
59
60
  };
60
61
  const labelProps = {
61
62
  htmlFor: id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/eds-core-react",
3
- "version": "0.20.3",
3
+ "version": "0.20.4",
4
4
  "description": "The React implementation of the Equinor Design System",
5
5
  "sideEffects": [
6
6
  "**/*.css"
@@ -88,11 +88,10 @@
88
88
  "@babel/runtime": "^7.17.9",
89
89
  "@equinor/eds-icons": "0.11.0",
90
90
  "@equinor/eds-tokens": "0.7.1",
91
- "@equinor/eds-utils": "0.2.2",
91
+ "@equinor/eds-utils": "0.2.3",
92
92
  "@popperjs/core": "2.9.2",
93
93
  "downshift": "^6.1.7",
94
- "react-fast-compare": "3.2.0",
95
- "react-popper": "2.2.5"
94
+ "react-fast-compare": "3.2.0"
96
95
  },
97
96
  "engines": {
98
97
  "pnpm": ">=4",