@sproutsocial/racine 11.3.0-beta.5 → 11.3.0-beta.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.
@@ -44,7 +44,9 @@ type TypeProps = {
44
44
  /** Props to spread onto the underlying input element */
45
45
  inputProps?: any,
46
46
  /** Used to get a reference to the underlying element */
47
- innerRef?: {| current: HTMLInputElement | null |},
47
+ innerRef?:
48
+ | {| current: HTMLInputElement | null | undefined |}
49
+ | ((React.ElementRef<any> | HTMLInputElement) => mixed),
48
50
  onBlur?: (e: SyntheticFocusEvent<HTMLInputElement>) => void,
49
51
  onChange?: (e: SyntheticInputEvent<HTMLInputElement>, value: string) => void,
50
52
  /** Input.ClearButton onClick callback. Required when using <Input type="search"/> or <Input.ClearButton/>.
@@ -132,6 +134,7 @@ const ClearButton = () => {
132
134
  py={py}
133
135
  px={px}
134
136
  title={clearButtonLabel || "Clear"}
137
+ ariaLabel={clearButtonLabel || "Clear"}
135
138
  color="icon.base"
136
139
  >
137
140
  <Icon name="circlex" />
@@ -414,7 +414,6 @@ export const Menu = ({
414
414
  >
415
415
  <MenuContext.Provider
416
416
  value={{
417
- // $FlowIssue
418
417
  menuRef: innerRef || menuRef,
419
418
  role,
420
419
  onChange,
@@ -73,6 +73,7 @@ var ClearButton = function ClearButton() {
73
73
  py: py,
74
74
  px: px,
75
75
  title: clearButtonLabel || "Clear",
76
+ ariaLabel: clearButtonLabel || "Clear",
76
77
  color: "icon.base"
77
78
  }, /*#__PURE__*/React.createElement(_Icon.default, {
78
79
  name: "circlex"
@@ -403,7 +403,6 @@ var Menu = function Menu(_ref4) {
403
403
  set: setDescendants
404
404
  }, /*#__PURE__*/React.createElement(_hooks2.MenuContext.Provider, {
405
405
  value: {
406
- // $FlowIssue
407
406
  menuRef: innerRef || menuRef,
408
407
  role: role,
409
408
  onChange: onChange,
@@ -57,6 +57,7 @@ var ClearButton = function ClearButton() {
57
57
  py: py,
58
58
  px: px,
59
59
  title: clearButtonLabel || "Clear",
60
+ ariaLabel: clearButtonLabel || "Clear",
60
61
  color: "icon.base"
61
62
  }, /*#__PURE__*/React.createElement(Icon, {
62
63
  name: "circlex"
package/lib/Menu/index.js CHANGED
@@ -363,7 +363,6 @@ export var Menu = function Menu(_ref4) {
363
363
  set: setDescendants
364
364
  }, /*#__PURE__*/React.createElement(MenuContext.Provider, {
365
365
  value: {
366
- // $FlowIssue
367
366
  menuRef: innerRef || menuRef,
368
367
  role: role,
369
368
  onChange: onChange,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sproutsocial/racine",
3
- "version": "11.3.0-beta.5",
3
+ "version": "11.3.0-beta.6",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "__flow__",