@box/blueprint-web 6.41.4 → 6.41.6

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.
@@ -19,7 +19,6 @@ const SearchInputControlled = /*#__PURE__*/forwardRef((props, forwardedRef) => {
19
19
  onKeyDown,
20
20
  onSubmit,
21
21
  placeholder = '',
22
- searchIconAriaLabel,
23
22
  searchInputAriaLabel,
24
23
  searchInputClearAriaLabel,
25
24
  searchInputClearButtonTooltip,
@@ -34,6 +33,9 @@ const SearchInputControlled = /*#__PURE__*/forwardRef((props, forwardedRef) => {
34
33
  switchCase({
35
34
  Enter: () => {
36
35
  e.preventDefault();
36
+ if (e.nativeEvent.isComposing) {
37
+ return;
38
+ } // prevents submitting when using Japanese IME
37
39
  onSubmit?.(value);
38
40
  },
39
41
  Escape: () => {
@@ -57,7 +59,7 @@ const SearchInputControlled = /*#__PURE__*/forwardRef((props, forwardedRef) => {
57
59
  return jsxs("div", {
58
60
  className: clsx(styles.search, className),
59
61
  children: [jsx(Search, {
60
- "aria-label": searchIconAriaLabel,
62
+ "aria-hidden": "true",
61
63
  className: clsx(styles.searchIcon, isGlobal && styles.global),
62
64
  color: IconIconOnLightSecondary
63
65
  }), jsx("input", {
@@ -30,7 +30,6 @@ const SearchInput = /*#__PURE__*/forwardRef((props, forwardedRef) => {
30
30
  onKeyDown,
31
31
  onSubmit,
32
32
  placeholder,
33
- searchIconAriaLabel,
34
33
  searchInputAriaLabel,
35
34
  searchInputClearAriaLabel,
36
35
  variant,
@@ -55,6 +54,9 @@ const SearchInput = /*#__PURE__*/forwardRef((props, forwardedRef) => {
55
54
  switchCase({
56
55
  Enter: () => {
57
56
  e.preventDefault();
57
+ if (e.nativeEvent.isComposing) {
58
+ return;
59
+ } // prevents submitting when using Japanese IME
58
60
  onSubmit?.(searchInputValue);
59
61
  },
60
62
  Escape: () => {
@@ -69,7 +71,7 @@ const SearchInput = /*#__PURE__*/forwardRef((props, forwardedRef) => {
69
71
  return jsxs("div", {
70
72
  className: clsx(styles.search, className),
71
73
  children: [jsx(Search, {
72
- "aria-label": searchIconAriaLabel,
74
+ "aria-hidden": "true",
73
75
  className: clsx(styles.searchIcon, isGlobal && styles.global),
74
76
  color: IconIconOnLightSecondary
75
77
  }), jsx("input", {
@@ -26,10 +26,6 @@ export interface SearchInputProps extends Omit<React.ComponentPropsWithRef<'inpu
26
26
  * Handler that is called when the SearchInput is submitted.
27
27
  */
28
28
  onSubmit?: (searchInputValue: string) => void;
29
- /**
30
- * Search through site content icon aria-label.
31
- */
32
- searchIconAriaLabel: string;
33
29
  /**
34
30
  * Search through site content input aria-label.
35
31
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/blueprint-web",
3
- "version": "6.41.4",
3
+ "version": "6.41.6",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -57,7 +57,7 @@
57
57
  "devDependencies": {
58
58
  "@box/storybook-utils": "^0.0.7"
59
59
  },
60
- "gitHead": "b5ed1ad632534166f23319540e923b5c0c2064f0",
60
+ "gitHead": "92231a3f69b728344ce29f602205d309d34bbded",
61
61
  "module": "lib-esm/index.js",
62
62
  "main": "lib-esm/index.js",
63
63
  "exports": {