@equinor/eds-core-react 0.24.0-dev.20221007 → 0.24.0
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.
|
@@ -3112,7 +3112,10 @@ var AccordionHeader = /*#__PURE__*/react.forwardRef(function AccordionHeader(_re
|
|
|
3112
3112
|
style = _ref5.style,
|
|
3113
3113
|
props = _objectWithoutProperties__default["default"](_ref5, _excluded$10);
|
|
3114
3114
|
|
|
3115
|
-
var handleClick = function handleClick() {
|
|
3115
|
+
var handleClick = function handleClick(e) {
|
|
3116
|
+
e.preventDefault();
|
|
3117
|
+
e.stopPropagation();
|
|
3118
|
+
|
|
3116
3119
|
if (!disabled) {
|
|
3117
3120
|
toggleExpanded();
|
|
3118
3121
|
|
|
@@ -3122,8 +3125,8 @@ var AccordionHeader = /*#__PURE__*/react.forwardRef(function AccordionHeader(_re
|
|
|
3122
3125
|
}
|
|
3123
3126
|
};
|
|
3124
3127
|
|
|
3125
|
-
var handleKeyDown = function handleKeyDown(
|
|
3126
|
-
var key =
|
|
3128
|
+
var handleKeyDown = function handleKeyDown(e) {
|
|
3129
|
+
var key = e.key;
|
|
3127
3130
|
|
|
3128
3131
|
if (key === 'Enter' || key === ' ') {
|
|
3129
3132
|
toggleExpanded();
|
|
@@ -3132,7 +3135,8 @@ var AccordionHeader = /*#__PURE__*/react.forwardRef(function AccordionHeader(_re
|
|
|
3132
3135
|
props.onToggle();
|
|
3133
3136
|
}
|
|
3134
3137
|
|
|
3135
|
-
|
|
3138
|
+
e.preventDefault();
|
|
3139
|
+
e.stopPropagation();
|
|
3136
3140
|
}
|
|
3137
3141
|
};
|
|
3138
3142
|
|
|
@@ -3186,7 +3190,8 @@ var AccordionHeader = /*#__PURE__*/react.forwardRef(function AccordionHeader(_re
|
|
|
3186
3190
|
panelId: panelId,
|
|
3187
3191
|
onClick: handleClick,
|
|
3188
3192
|
onKeyDown: handleKeyDown,
|
|
3189
|
-
ref: ref
|
|
3193
|
+
ref: ref,
|
|
3194
|
+
type: "button"
|
|
3190
3195
|
}, props), {}, {
|
|
3191
3196
|
children: chevronPosition === 'left' ? newChildren : newChildren.reverse()
|
|
3192
3197
|
})), headerActions && headerActions]
|
|
@@ -9645,6 +9650,7 @@ function AutocompleteInner(props, ref) {
|
|
|
9645
9650
|
});
|
|
9646
9651
|
|
|
9647
9652
|
case downshift.useCombobox.stateChangeTypes.InputBlur:
|
|
9653
|
+
setTypedInputValue('');
|
|
9648
9654
|
return _objectSpread__default["default"](_objectSpread__default["default"]({}, changes), {}, {
|
|
9649
9655
|
inputValue: ''
|
|
9650
9656
|
});
|
|
@@ -88,7 +88,10 @@ var AccordionHeader = /*#__PURE__*/forwardRef(function AccordionHeader(_ref5, re
|
|
|
88
88
|
style = _ref5.style,
|
|
89
89
|
props = _objectWithoutProperties(_ref5, _excluded);
|
|
90
90
|
|
|
91
|
-
var handleClick = function handleClick() {
|
|
91
|
+
var handleClick = function handleClick(e) {
|
|
92
|
+
e.preventDefault();
|
|
93
|
+
e.stopPropagation();
|
|
94
|
+
|
|
92
95
|
if (!disabled) {
|
|
93
96
|
toggleExpanded();
|
|
94
97
|
|
|
@@ -98,8 +101,8 @@ var AccordionHeader = /*#__PURE__*/forwardRef(function AccordionHeader(_ref5, re
|
|
|
98
101
|
}
|
|
99
102
|
};
|
|
100
103
|
|
|
101
|
-
var handleKeyDown = function handleKeyDown(
|
|
102
|
-
var key =
|
|
104
|
+
var handleKeyDown = function handleKeyDown(e) {
|
|
105
|
+
var key = e.key;
|
|
103
106
|
|
|
104
107
|
if (key === 'Enter' || key === ' ') {
|
|
105
108
|
toggleExpanded();
|
|
@@ -108,7 +111,8 @@ var AccordionHeader = /*#__PURE__*/forwardRef(function AccordionHeader(_ref5, re
|
|
|
108
111
|
props.onToggle();
|
|
109
112
|
}
|
|
110
113
|
|
|
111
|
-
|
|
114
|
+
e.preventDefault();
|
|
115
|
+
e.stopPropagation();
|
|
112
116
|
}
|
|
113
117
|
};
|
|
114
118
|
|
|
@@ -162,7 +166,8 @@ var AccordionHeader = /*#__PURE__*/forwardRef(function AccordionHeader(_ref5, re
|
|
|
162
166
|
panelId: panelId,
|
|
163
167
|
onClick: handleClick,
|
|
164
168
|
onKeyDown: handleKeyDown,
|
|
165
|
-
ref: ref
|
|
169
|
+
ref: ref,
|
|
170
|
+
type: "button"
|
|
166
171
|
}, props), {}, {
|
|
167
172
|
children: chevronPosition === 'left' ? newChildren : newChildren.reverse()
|
|
168
173
|
})), headerActions && headerActions]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/eds-core-react",
|
|
3
|
-
"version": "0.24.0
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"description": "The React implementation of the Equinor Design System",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"**/*.css"
|
|
@@ -79,9 +79,9 @@
|
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
81
|
"@babel/runtime": "^7.19.0",
|
|
82
|
-
"@equinor/eds-icons": "0.15.0
|
|
83
|
-
"@equinor/eds-tokens": "0.8.0
|
|
84
|
-
"@equinor/eds-utils": "0.5.0
|
|
82
|
+
"@equinor/eds-icons": "0.15.0",
|
|
83
|
+
"@equinor/eds-tokens": "0.8.0",
|
|
84
|
+
"@equinor/eds-utils": "0.5.0",
|
|
85
85
|
"@floating-ui/react-dom-interactions": "^0.10.1",
|
|
86
86
|
"downshift": "^6.1.12"
|
|
87
87
|
},
|