@moda/om 21.6.7 → 21.6.9
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.js +8 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +8 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/SearchInput/SearchInput.scss +7 -0
- package/src/components/SearchInput/SearchInput.test.tsx +3 -3
- package/src/components/SearchInput/SearchInput.tsx +9 -3
package/dist/index.esm.js
CHANGED
|
@@ -10355,11 +10355,13 @@ var SearchInput = function SearchInput(_ref) {
|
|
|
10355
10355
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
10356
10356
|
className: classNames('SearchInput', className)
|
|
10357
10357
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
10358
|
-
className: "SearchInput__icon"
|
|
10358
|
+
className: "SearchInput__icon",
|
|
10359
|
+
"aria-hidden": "true"
|
|
10359
10360
|
}, /*#__PURE__*/React__default.createElement(Search20, {
|
|
10360
10361
|
height: "".concat(searchIconSize, "px"),
|
|
10361
10362
|
width: "".concat(searchIconSize, "px")
|
|
10362
10363
|
})), /*#__PURE__*/React__default.createElement(TextInput, _extends$1({
|
|
10364
|
+
type: "search",
|
|
10363
10365
|
className: classNames('SearchInput__input', {
|
|
10364
10366
|
'SearchInput__input--round-borders': roundBorders,
|
|
10365
10367
|
'SearchInput__input--no-borders': noBorders
|
|
@@ -10370,8 +10372,11 @@ var SearchInput = function SearchInput(_ref) {
|
|
|
10370
10372
|
}, rest)), controlledValue && /*#__PURE__*/React__default.createElement(Clickable, {
|
|
10371
10373
|
className: "SearchInput__clear",
|
|
10372
10374
|
onClick: handleClear,
|
|
10373
|
-
type: "reset"
|
|
10374
|
-
|
|
10375
|
+
type: "reset",
|
|
10376
|
+
"aria-label": "Clear search"
|
|
10377
|
+
}, /*#__PURE__*/React__default.createElement(Exit20, {
|
|
10378
|
+
"aria-hidden": "true"
|
|
10379
|
+
})));
|
|
10375
10380
|
};
|
|
10376
10381
|
|
|
10377
10382
|
var t = function t(_t) {
|