@sproutsocial/racine 11.1.2 → 11.3.0-beta.1

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.
Files changed (177) hide show
  1. package/__flow__/Input/index.js +116 -67
  2. package/__flow__/Input/index.stories.js +33 -0
  3. package/__flow__/Input/index.test.js +199 -1
  4. package/__flow__/Input/styles.js +1 -1
  5. package/commonjs/Avatar/index.js +7 -4
  6. package/commonjs/Badge/index.js +3 -1
  7. package/commonjs/Badge/styles.js +1 -1
  8. package/commonjs/Banner/index.js +3 -1
  9. package/commonjs/Banner/styles.js +1 -1
  10. package/commonjs/Box/styles.js +1 -1
  11. package/commonjs/Breadcrumb/index.js +5 -2
  12. package/commonjs/Button/index.js +3 -1
  13. package/commonjs/Card/index.js +3 -1
  14. package/commonjs/Card/styles.js +3 -3
  15. package/commonjs/CharacterCounter/index.js +3 -1
  16. package/commonjs/CharacterCounter/styles.js +1 -1
  17. package/commonjs/ChartLegend/index.js +3 -1
  18. package/commonjs/ChartLegend/styles.js +3 -3
  19. package/commonjs/Checkbox/index.js +3 -1
  20. package/commonjs/Checkbox/styles.js +1 -1
  21. package/commonjs/Collapsible/index.js +5 -2
  22. package/commonjs/DatePicker/DateRangePicker.js +3 -1
  23. package/commonjs/DatePicker/SingleDatePicker.js +3 -1
  24. package/commonjs/DatePicker/StatefulDateRangePicker.js +3 -1
  25. package/commonjs/DatePicker/StatefulSingleDatePicker.js +3 -1
  26. package/commonjs/DatePicker/common.js +1 -1
  27. package/commonjs/DatePicker/styles.js +2 -6
  28. package/commonjs/Drawer/SlideTransition.js +3 -1
  29. package/commonjs/Drawer/index.js +9 -4
  30. package/commonjs/Drawer/styles.js +2 -2
  31. package/commonjs/EmptyState/index.js +3 -1
  32. package/commonjs/Fieldset/index.js +7 -3
  33. package/commonjs/FormField/index.js +3 -1
  34. package/commonjs/Icon/index.js +5 -2
  35. package/commonjs/Icon/styles.js +1 -1
  36. package/commonjs/Image/index.js +3 -1
  37. package/commonjs/Image/styles.js +1 -1
  38. package/commonjs/Indicator/index.js +3 -1
  39. package/commonjs/Input/index.js +67 -29
  40. package/commonjs/Input/styles.js +3 -3
  41. package/commonjs/KeyboardKey/index.js +3 -1
  42. package/commonjs/Label/index.js +4 -2
  43. package/commonjs/Link/index.js +3 -1
  44. package/commonjs/Link/styles.js +1 -1
  45. package/commonjs/Listbox/index.js +7 -4
  46. package/commonjs/Loader/index.js +3 -1
  47. package/commonjs/Loader/styles.js +2 -2
  48. package/commonjs/LoaderButton/index.js +3 -1
  49. package/commonjs/Menu/constants.js +1 -1
  50. package/commonjs/Menu/descendants.js +10 -7
  51. package/commonjs/Menu/hooks.js +1 -1
  52. package/commonjs/Menu/index.js +22 -16
  53. package/commonjs/Menu/styles.js +2 -2
  54. package/commonjs/Message/index.js +3 -1
  55. package/commonjs/Message/styles.js +1 -1
  56. package/commonjs/Modal/index.js +7 -3
  57. package/commonjs/Modal/styles.js +4 -6
  58. package/commonjs/Numeral/constants.js +1 -1
  59. package/commonjs/Numeral/index.js +3 -1
  60. package/commonjs/Numeral/styles.js +3 -3
  61. package/commonjs/OverflowList/styles.js +1 -1
  62. package/commonjs/Popout/index.js +7 -3
  63. package/commonjs/Popout/styles.js +1 -1
  64. package/commonjs/Radio/index.js +3 -1
  65. package/commonjs/Radio/styles.js +4 -4
  66. package/commonjs/SegmentedControl/index.js +5 -2
  67. package/commonjs/Select/index.js +3 -1
  68. package/commonjs/Stack/index.js +3 -1
  69. package/commonjs/Switch/index.js +3 -1
  70. package/commonjs/Switch/styles.js +1 -1
  71. package/commonjs/Table/index.js +10 -5
  72. package/commonjs/TableCell/index.js +3 -1
  73. package/commonjs/TableHeaderCell/index.js +3 -1
  74. package/commonjs/TableRowAccordion/index.js +3 -1
  75. package/commonjs/Tabs/index.js +5 -2
  76. package/commonjs/Tabs/styles.js +4 -4
  77. package/commonjs/Text/index.js +3 -1
  78. package/commonjs/Text/styles.js +1 -1
  79. package/commonjs/Textarea/index.js +3 -1
  80. package/commonjs/Toast/index.js +15 -15
  81. package/commonjs/Toast/styles.js +4 -7
  82. package/commonjs/ToggleHint/index.js +3 -1
  83. package/commonjs/Token/index.js +3 -1
  84. package/commonjs/Token/styles.js +1 -1
  85. package/commonjs/TokenInput/index.js +3 -1
  86. package/commonjs/Tooltip/index.js +5 -2
  87. package/commonjs/Tooltip/styles.js +1 -1
  88. package/commonjs/VisuallyHidden/index.js +1 -1
  89. package/commonjs/index.js +1 -1
  90. package/commonjs/themes/dark/decorative-palettes.js +1 -1
  91. package/commonjs/themes/dark/theme.js +1 -1
  92. package/commonjs/themes/light/decorative-palettes.js +1 -1
  93. package/commonjs/themes/light/theme.js +1 -1
  94. package/commonjs/utils/hooks.js +3 -2
  95. package/commonjs/utils/mixins.js +1 -1
  96. package/commonjs/utils/system-props.js +1 -1
  97. package/dist/themes/dark/dark.scss +5 -5
  98. package/dist/themes/light/light.scss +95 -95
  99. package/lib/Avatar/index.js +7 -4
  100. package/lib/Badge/index.js +3 -1
  101. package/lib/Badge/styles.js +1 -1
  102. package/lib/Banner/index.js +3 -1
  103. package/lib/Banner/styles.js +1 -1
  104. package/lib/Box/styles.js +1 -1
  105. package/lib/Breadcrumb/index.js +5 -2
  106. package/lib/Button/index.js +3 -1
  107. package/lib/Card/index.js +3 -1
  108. package/lib/Card/styles.js +2 -2
  109. package/lib/CharacterCounter/index.js +3 -1
  110. package/lib/CharacterCounter/styles.js +1 -1
  111. package/lib/ChartLegend/index.js +3 -1
  112. package/lib/ChartLegend/styles.js +3 -3
  113. package/lib/Checkbox/index.js +3 -1
  114. package/lib/Collapsible/index.js +5 -2
  115. package/lib/DatePicker/DateRangePicker.js +3 -1
  116. package/lib/DatePicker/SingleDatePicker.js +3 -1
  117. package/lib/DatePicker/StatefulDateRangePicker.js +3 -1
  118. package/lib/DatePicker/StatefulSingleDatePicker.js +3 -1
  119. package/lib/DatePicker/styles.js +2 -6
  120. package/lib/Drawer/SlideTransition.js +3 -1
  121. package/lib/Drawer/index.js +9 -4
  122. package/lib/Drawer/styles.js +2 -2
  123. package/lib/EmptyState/index.js +3 -1
  124. package/lib/Fieldset/index.js +7 -3
  125. package/lib/FormField/index.js +3 -1
  126. package/lib/Icon/index.js +5 -2
  127. package/lib/Icon/styles.js +1 -1
  128. package/lib/Image/index.js +3 -1
  129. package/lib/Image/styles.js +1 -1
  130. package/lib/Indicator/index.js +3 -1
  131. package/lib/Input/index.js +60 -28
  132. package/lib/Input/styles.js +3 -3
  133. package/lib/KeyboardKey/index.js +3 -1
  134. package/lib/Label/index.js +4 -2
  135. package/lib/Link/index.js +3 -1
  136. package/lib/Link/styles.js +1 -1
  137. package/lib/Listbox/index.js +6 -3
  138. package/lib/Loader/index.js +3 -1
  139. package/lib/Loader/styles.js +2 -2
  140. package/lib/LoaderButton/index.js +3 -1
  141. package/lib/Menu/descendants.js +5 -2
  142. package/lib/Menu/index.js +20 -16
  143. package/lib/Menu/styles.js +2 -2
  144. package/lib/Message/index.js +3 -1
  145. package/lib/Modal/index.js +7 -3
  146. package/lib/Modal/styles.js +3 -5
  147. package/lib/Numeral/index.js +3 -1
  148. package/lib/Numeral/styles.js +2 -2
  149. package/lib/OverflowList/styles.js +1 -1
  150. package/lib/Popout/index.js +7 -3
  151. package/lib/Popout/styles.js +1 -1
  152. package/lib/Radio/index.js +3 -1
  153. package/lib/Radio/styles.js +4 -4
  154. package/lib/SegmentedControl/index.js +5 -2
  155. package/lib/Select/index.js +3 -1
  156. package/lib/Stack/index.js +3 -1
  157. package/lib/Switch/index.js +3 -1
  158. package/lib/Switch/styles.js +1 -1
  159. package/lib/Table/index.js +9 -4
  160. package/lib/TableCell/index.js +3 -1
  161. package/lib/TableHeaderCell/index.js +3 -1
  162. package/lib/TableRowAccordion/index.js +3 -1
  163. package/lib/Tabs/index.js +5 -2
  164. package/lib/Tabs/styles.js +3 -3
  165. package/lib/Text/index.js +3 -1
  166. package/lib/Text/styles.js +1 -1
  167. package/lib/Textarea/index.js +3 -1
  168. package/lib/Toast/index.js +14 -14
  169. package/lib/Toast/styles.js +3 -7
  170. package/lib/ToggleHint/index.js +3 -1
  171. package/lib/Token/index.js +3 -1
  172. package/lib/Token/styles.js +1 -1
  173. package/lib/TokenInput/index.js +3 -1
  174. package/lib/Tooltip/index.js +5 -2
  175. package/lib/Tooltip/styles.js +1 -1
  176. package/lib/VisuallyHidden/index.js +1 -1
  177. package/package.json +1 -1
@@ -3,7 +3,7 @@ import { COMMON } from "../utils/system-props";
3
3
  import { focusRing } from "../utils/mixins";
4
4
  var Container = styled.div.withConfig({
5
5
  displayName: "styles__Container",
6
- componentId: "uozj0s-0"
6
+ componentId: "sc-uozj0s-0"
7
7
  })(["box-sizing:border-box;position:relative;input{box-sizing:border-box;width:100%;border:1px solid transparent;border-radius:", ";background-color:", ";color:", ";outline:none;transition:border-color ", " ", ",box-shadow ", " ", ";font-family:", ";font-weight:", ";appearance:none;line-height:16px;margin:0;padding:", ";font-size:", ";&::-ms-clear{display:none;}&::-webkit-search-cancel-button{appearance:none;}&:focus{", "}&:not(output):not(:focus):-moz-ui-invalid{box-shadow:none;}&:placeholder{color:", ";}", " ", "}", " ", " ", " ", " ", ""], function (props) {
8
8
  return props.theme.radii[500];
9
9
  }, function (props) {
@@ -67,13 +67,13 @@ var Container = styled.div.withConfig({
67
67
  }, COMMON);
68
68
  export var Accessory = styled.div.withConfig({
69
69
  displayName: "styles__Accessory",
70
- componentId: "uozj0s-1"
70
+ componentId: "sc-uozj0s-1"
71
71
  })(["position:absolute;top:50%;transform:translateY(-50%);color:", ";display:flex;align-items:center;", ";", ";"], function (props) {
72
72
  return props.theme.colors.icon.base;
73
73
  }, function (props) {
74
74
  return props.before && css(["left:", ";"], props.theme.space[350]);
75
75
  }, function (props) {
76
- return props.after && css(["right:", ";"], props.theme.space[350]);
76
+ return props.after && css(["right:", ";"], props.isClearButton ? 0 : props.theme.space[350]);
77
77
  });
78
78
  Container.displayName = "InputContainer";
79
79
  Accessory.displayName = "InputAccessory";
@@ -1,3 +1,5 @@
1
+ var _excluded = ["children"];
2
+
1
3
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
2
4
 
3
5
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
@@ -20,7 +22,7 @@ var KeyboardKey = /*#__PURE__*/function (_React$Component) {
20
22
  _proto.render = function render() {
21
23
  var _this$props = this.props,
22
24
  children = _this$props.children,
23
- rest = _objectWithoutPropertiesLoose(_this$props, ["children"]);
25
+ rest = _objectWithoutPropertiesLoose(_this$props, _excluded);
24
26
 
25
27
  return /*#__PURE__*/React.createElement(Container, rest, /*#__PURE__*/React.createElement("kbd", {
26
28
  "data-qa-keyboardkey": children
@@ -1,5 +1,7 @@
1
1
  "no babel-plugin-flow-react-proptypes";
2
2
 
3
+ var _excluded = ["as"];
4
+
3
5
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
4
6
 
5
7
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -15,7 +17,7 @@ import Text from "../Text";
15
17
  var LabelBase = function LabelBase(_ref) {
16
18
  var _ref$as = _ref.as,
17
19
  as = _ref$as === void 0 ? "label" : _ref$as,
18
- rest = _objectWithoutPropertiesLoose(_ref, ["as"]);
20
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
19
21
 
20
22
  return /*#__PURE__*/React.createElement(Text, _extends({}, rest, {
21
23
  as: as
@@ -24,7 +26,7 @@ var LabelBase = function LabelBase(_ref) {
24
26
 
25
27
  var StyledLabel = styled(LabelBase).withConfig({
26
28
  displayName: "Label__StyledLabel",
27
- componentId: "rqdi0a-0"
29
+ componentId: "sc-rqdi0a-0"
28
30
  })(["display:flex;align-items:center;"]);
29
31
 
30
32
  var Label = /*#__PURE__*/function (_React$Component) {
package/lib/Link/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ var _excluded = ["href", "external", "children", "disabled", "onClick", "as", "underline", "qa"];
2
+
1
3
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
4
 
3
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -15,7 +17,7 @@ var Link = function Link(_ref) {
15
17
  underline = _ref.underline,
16
18
  _ref$qa = _ref.qa,
17
19
  qa = _ref$qa === void 0 ? {} : _ref$qa,
18
- rest = _objectWithoutPropertiesLoose(_ref, ["href", "external", "children", "disabled", "onClick", "as", "underline", "qa"]);
20
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
19
21
 
20
22
  if (!href && external) {
21
23
  console.warn("Warning: external prop cannot be set without a href declaration");
@@ -4,7 +4,7 @@ import Text from "../Text";
4
4
  import { TYPOGRAPHY, COMMON, FLEXBOX } from "../utils/system-props";
5
5
  var Container = styled(Text).withConfig({
6
6
  displayName: "styles__Container",
7
- componentId: "adcw4a-0"
7
+ componentId: "sc-adcw4a-0"
8
8
  })(["border:0;font-family:", ";text-decoration:", ";appearance:none;cursor:pointer;", " font-weight:", ";color:", ";&:hover{color:", ";text-decoration:underline;}&:active{color:", ";}&:focus{", "}&:focus:active{box-shadow:none;}", " ", " ", " ", " ", ""], function (props) {
9
9
  return props.theme.fontFamily;
10
10
  }, function (props) {
@@ -1,3 +1,6 @@
1
+ var _excluded = ["role", "children"],
2
+ _excluded2 = ["children"];
3
+
1
4
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
5
 
3
6
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -12,7 +15,7 @@ export var Listbox = function Listbox(_ref) {
12
15
  var _ref$role = _ref.role,
13
16
  role = _ref$role === void 0 ? MENU_ROLES.LISTBOX : _ref$role,
14
17
  children = _ref.children,
15
- rest = _objectWithoutPropertiesLoose(_ref, ["role", "children"]);
18
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
16
19
 
17
20
  return /*#__PURE__*/React.createElement(Menu, _extends({}, rest, {
18
21
  role: role
@@ -25,7 +28,7 @@ export var Listbox = function Listbox(_ref) {
25
28
 
26
29
  export var ListboxButtonContainer = styled(MenuButton).withConfig({
27
30
  displayName: "Listbox__ListboxButtonContainer",
28
- componentId: "c9mfi8-0"
31
+ componentId: "sc-c9mfi8-0"
29
32
  })(["position:relative;width:100%;border:1px solid ", ";border-radius:", ";background-color:", ";color:", ";cursor:", ";outline:none;appearance:none;transition:border-color ", " ", ",box-shadow ", " ", ";font-family:", ";font-weight:", ";text-align:left;margin:0;&:active{transform:none;}padding:", ";font-size:", ";", ""], function (props) {
30
33
  return props.theme.colors.form.border.base;
31
34
  }, function (props) {
@@ -79,7 +82,7 @@ export var ListboxButtonContainer = styled(MenuButton).withConfig({
79
82
  });
80
83
  export var ListboxButton = function ListboxButton(_ref2) {
81
84
  var children = _ref2.children,
82
- restProps = _objectWithoutPropertiesLoose(_ref2, ["children"]);
85
+ restProps = _objectWithoutPropertiesLoose(_ref2, _excluded2);
83
86
 
84
87
  return /*#__PURE__*/React.createElement(ListboxButtonContainer, _extends({}, restProps, {
85
88
  popoutProps: _extends({
@@ -1,3 +1,5 @@
1
+ var _excluded = ["text", "size", "delay", "color", "qa"];
2
+
1
3
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
4
 
3
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -25,7 +27,7 @@ var Loader = /*#__PURE__*/function (_React$Component) {
25
27
  delay = _this$props.delay,
26
28
  color = _this$props.color,
27
29
  qa = _this$props.qa,
28
- rest = _objectWithoutPropertiesLoose(_this$props, ["text", "size", "delay", "color", "qa"]);
30
+ rest = _objectWithoutPropertiesLoose(_this$props, _excluded);
29
31
 
30
32
  return /*#__PURE__*/React.createElement(Container, _extends({
31
33
  small: size === "small",
@@ -19,7 +19,7 @@ var Container = styled.div.attrs({
19
19
  className: "Loader"
20
20
  }).withConfig({
21
21
  displayName: "styles__Container",
22
- componentId: "zj8x0q-0"
22
+ componentId: "sc-zj8x0q-0"
23
23
  })(["position:relative;margin:0 auto;overflow:hidden;&:after{position:absolute;top:50%;left:50%;border-style:solid;border-radius:50%;content:\"\";transition:opacity 250ms;animation:", ";}", " ", " ", ""], function (props) {
24
24
  return props.delay ? css(["", " 2.25s infinite linear,", " 2s 1"], spin, delay) : css(["", " 2.25s infinite linear"], spin);
25
25
  }, function (props) {
@@ -29,6 +29,6 @@ var Container = styled.div.attrs({
29
29
  }, COMMON);
30
30
  export var Text = styled.div.withConfig({
31
31
  displayName: "styles__Text",
32
- componentId: "zj8x0q-1"
32
+ componentId: "sc-zj8x0q-1"
33
33
  })(["", ""], visuallyHidden);
34
34
  export default Container;
@@ -1,3 +1,5 @@
1
+ var _excluded = ["appearance", "isLoading", "disabled", "loaderLabel", "children"];
2
+
1
3
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
4
 
3
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -38,7 +40,7 @@ export var LoaderButton = function LoaderButton(_ref) {
38
40
  disabled = _ref.disabled,
39
41
  loaderLabel = _ref.loaderLabel,
40
42
  children = _ref.children,
41
- rest = _objectWithoutPropertiesLoose(_ref, ["appearance", "isLoading", "disabled", "loaderLabel", "children"]);
43
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
42
44
 
43
45
  var isLoading = Boolean(_isLoading);
44
46
  return /*#__PURE__*/React.createElement(Button, _extends({
@@ -1,3 +1,6 @@
1
+ var _excluded = ["context", "element"],
2
+ _excluded2 = ["element"];
3
+
1
4
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
2
5
 
3
6
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
@@ -91,7 +94,7 @@ export function createDescendantContext(name, initialValue) {
91
94
  export function useDescendant(_ref, indexProp) {
92
95
  var context = _ref.context,
93
96
  element = _ref.element,
94
- rest = _objectWithoutPropertiesLoose(_ref, ["context", "element"]);
97
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
95
98
 
96
99
  var _useState = useState(),
97
100
  forceUpdate = _useState[1];
@@ -125,7 +128,7 @@ export function DescendantProvider(_ref2) {
125
128
  set = _ref2.set;
126
129
  var registerDescendant = useCallback(function (_ref3) {
127
130
  var element = _ref3.element,
128
- rest = _objectWithoutPropertiesLoose(_ref3, ["element"]);
131
+ rest = _objectWithoutPropertiesLoose(_ref3, _excluded2);
129
132
 
130
133
  if (!element) {
131
134
  return;
package/lib/Menu/index.js CHANGED
@@ -1,4 +1,9 @@
1
1
  import _styled from "styled-components";
2
+ var _excluded = ["id", "index", "as", "children", "role", "elemBefore", "elemAfter", "value", "onKeyPress", "onClick", "selected", "disabled", "indeterminate", "label"],
3
+ _excluded2 = ["children", "title", "titleAs", "disabled"],
4
+ _excluded3 = ["children", "role", "multiselect", "innerRef"],
5
+ _excluded4 = ["role", "children", "onChange", "value", "multiselect", "innerRef"],
6
+ _excluded5 = ["content", "popoutProps", "children", "onClick", "closeOnItemClick", "id", "placement"];
2
7
 
3
8
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
9
 
@@ -67,7 +72,7 @@ export var MenuItem = function MenuItem(_ref) {
67
72
  disabled = _ref.disabled,
68
73
  indeterminate = _ref.indeterminate,
69
74
  labelProp = _ref.label,
70
- props = _objectWithoutPropertiesLoose(_ref, ["id", "index", "as", "children", "role", "elemBefore", "elemAfter", "value", "onKeyPress", "onClick", "selected", "disabled", "indeterminate", "label"]);
75
+ props = _objectWithoutPropertiesLoose(_ref, _excluded);
71
76
 
72
77
  var _useContext = useContext(MenuContext),
73
78
  menuRole = _useContext.role,
@@ -227,21 +232,13 @@ export var MenuRadio = function MenuRadio(props) {
227
232
  role: MENU_ITEM_ROLES.RADIO
228
233
  }, props));
229
234
  };
230
-
231
- var _StyledText = styled(Text).withConfig({
232
- displayName: "Menu___StyledText",
233
- componentId: "sc-1p3rdnp-0"
234
- })(["", ""], function (p) {
235
- return p._css;
236
- });
237
-
238
235
  export var MenuGroup = function MenuGroup(_ref2) {
239
236
  var children = _ref2.children,
240
237
  title = _ref2.title,
241
238
  titleAs = _ref2.titleAs,
242
239
  _ref2$disabled = _ref2.disabled,
243
240
  isDisabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
244
- props = _objectWithoutPropertiesLoose(_ref2, ["children", "title", "titleAs", "disabled"]);
241
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded2);
245
242
 
246
243
  return /*#__PURE__*/React.createElement(React.Fragment, null, title && /*#__PURE__*/React.createElement(Box, {
247
244
  pl: 400,
@@ -254,7 +251,7 @@ export var MenuGroup = function MenuGroup(_ref2) {
254
251
  fontWeight: 600,
255
252
  mt: 350,
256
253
  color: "text.headline",
257
- _css: isDisabled && disabled
254
+ $_css: isDisabled && disabled
258
255
  }, title)), /*#__PURE__*/React.createElement(Box, _extends({}, props, {
259
256
  p: 300,
260
257
  role: "group"
@@ -309,7 +306,7 @@ var MenuItems = function MenuItems(_ref3) {
309
306
  role = _ref3.role,
310
307
  multiselect = _ref3.multiselect,
311
308
  innerRef = _ref3.innerRef,
312
- props = _objectWithoutPropertiesLoose(_ref3, ["children", "role", "multiselect", "innerRef"]);
309
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded3);
313
310
 
314
311
  var _useMenuKeyDown = useMenuKeyDown(),
315
312
  handleKeyDown = _useMenuKeyDown.handleKeyDown,
@@ -337,7 +334,7 @@ export var Menu = function Menu(_ref4) {
337
334
  value = _ref4.value,
338
335
  multiselect = _ref4.multiselect,
339
336
  innerRef = _ref4.innerRef,
340
- props = _objectWithoutPropertiesLoose(_ref4, ["role", "children", "onChange", "value", "multiselect", "innerRef"]);
337
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded4);
341
338
 
342
339
  var _useDescendants = useDescendants(),
343
340
  descendants = _useDescendants[0],
@@ -397,7 +394,7 @@ Menu.Divider.displayName = "Menu.Divider";
397
394
  Menu.FilterInput.displayName = "Menu.FilterInput";
398
395
  var CustomPopoutContent = styled(Popout.Content).withConfig({
399
396
  displayName: "Menu__CustomPopoutContent",
400
- componentId: "sc-1p3rdnp-1"
397
+ componentId: "sc-1p3rdnp-0"
401
398
  })(["padding:0;margin-left:0;margin-right:0;"]);
402
399
  export var MenuButton = function MenuButton(_ref5) {
403
400
  var content = _ref5.content,
@@ -410,7 +407,7 @@ export var MenuButton = function MenuButton(_ref5) {
410
407
  id = _ref5$id === void 0 ? uniqueId("MenuButton-") : _ref5$id,
411
408
  _ref5$placement = _ref5.placement,
412
409
  placement = _ref5$placement === void 0 ? "bottom" : _ref5$placement,
413
- props = _objectWithoutPropertiesLoose(_ref5, ["content", "popoutProps", "children", "onClick", "closeOnItemClick", "id", "placement"]);
410
+ props = _objectWithoutPropertiesLoose(_ref5, _excluded5);
414
411
 
415
412
  var _useState3 = useState(false),
416
413
  isOpen = _useState3[0],
@@ -451,4 +448,11 @@ export var MenuButton = function MenuButton(_ref5) {
451
448
  }
452
449
  }), children)));
453
450
  };
454
- export default Menu;
451
+ export default Menu;
452
+
453
+ var _StyledText = styled(Text).withConfig({
454
+ displayName: "Menu___StyledText",
455
+ componentId: "sc-1p3rdnp-1"
456
+ })(["", ""], function (p) {
457
+ return p.$_css;
458
+ });
@@ -3,7 +3,7 @@ import Box from "../Box";
3
3
  import { disabled, focusRing } from "../utils/mixins";
4
4
  export var MenuItemContainer = styled(Box).withConfig({
5
5
  displayName: "styles__MenuItemContainer",
6
- componentId: "fjvae4-0"
6
+ componentId: "sc-fjvae4-0"
7
7
  })(["", ";width:100%;border-radius:", ";background-color:", ";border:none;text-align:left;color:", ";font-family:", ";font-weight:", ";padding:", ";list-style-type:none;outline:0;", ";", " ", " ", " ", " ", ""], function (props) {
8
8
  return !props.hidden && css(["display:block;"]);
9
9
  }, function (props) {
@@ -43,5 +43,5 @@ export var MenuItemContainer = styled(Box).withConfig({
43
43
  });
44
44
  export var MenuItemsContainer = styled(Box).withConfig({
45
45
  displayName: "styles__MenuItemsContainer",
46
- componentId: "fjvae4-1"
46
+ componentId: "sc-fjvae4-1"
47
47
  })(["list-style-type:none;&:focus{", "}"], focusRing);
@@ -1,3 +1,5 @@
1
+ var _excluded = ["children", "density", "borderColor", "bg", "indentContent", "innerRef", "qa"];
2
+
1
3
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
4
 
3
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -52,7 +54,7 @@ var Message = function Message(_ref) {
52
54
  indentContent = _ref$indentContent === void 0 ? true : _ref$indentContent,
53
55
  innerRef = _ref.innerRef,
54
56
  qa = _ref.qa,
55
- rest = _objectWithoutPropertiesLoose(_ref, ["children", "density", "borderColor", "bg", "indentContent", "innerRef", "qa"]);
57
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
56
58
 
57
59
  return /*#__PURE__*/React.createElement(MessageContext.Provider, {
58
60
  value: {
@@ -1,3 +1,7 @@
1
+ var _excluded = ["title", "subtitle", "children", "bordered"],
2
+ _excluded2 = ["children"],
3
+ _excluded3 = ["appElementSelector", "children", "isOpen", "label", "onClose", "closeButtonLabel", "width", "zIndex"];
4
+
1
5
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
6
 
3
7
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -16,7 +20,7 @@ var ModalHeader = function ModalHeader(props) {
16
20
  subtitle = props.subtitle,
17
21
  children = props.children,
18
22
  bordered = props.bordered,
19
- rest = _objectWithoutPropertiesLoose(props, ["title", "subtitle", "children", "bordered"]);
23
+ rest = _objectWithoutPropertiesLoose(props, _excluded);
20
24
 
21
25
  return (
22
26
  /*#__PURE__*/
@@ -71,7 +75,7 @@ ModalFooter.defaultProps = {
71
75
  var ModalContent = /*#__PURE__*/React.forwardRef( // $FlowIssue - upgrade v0.112.0
72
76
  function (_ref, ref) {
73
77
  var children = _ref.children,
74
- rest = _objectWithoutPropertiesLoose(_ref, ["children"]);
78
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded2);
75
79
 
76
80
  var _useContext2 = useContext(ModalContext),
77
81
  label = _useContext2.label;
@@ -95,7 +99,7 @@ var Modal = function Modal(props) {
95
99
  closeButtonLabel = props.closeButtonLabel,
96
100
  width = props.width,
97
101
  zIndex = props.zIndex,
98
- rest = _objectWithoutPropertiesLoose(props, ["appElementSelector", "children", "isOpen", "label", "onClose", "closeButtonLabel", "width", "zIndex"]);
102
+ rest = _objectWithoutPropertiesLoose(props, _excluded3);
99
103
 
100
104
  var isCloseable = Boolean(onClose);
101
105
  var appElement = appElementSelector && document ? document.querySelector(appElementSelector) : null;
@@ -1,6 +1,4 @@
1
- var _templateObject;
2
-
3
- function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }
1
+ var _excluded = ["className"];
4
2
 
5
3
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
6
4
 
@@ -17,7 +15,7 @@ var BODY_PADDING = "64px";
17
15
 
18
16
  function ReactModalAdapter(_ref) {
19
17
  var className = _ref.className,
20
- props = _objectWithoutPropertiesLoose(_ref, ["className"]);
18
+ props = _objectWithoutPropertiesLoose(_ref, _excluded);
21
19
 
22
20
  // We want to create *__Content and *__Overlay class names on the subcomponents.
23
21
  // Because `className` could be a space-separated list of class names, we make
@@ -36,7 +34,7 @@ function ReactModalAdapter(_ref) {
36
34
  }, props));
37
35
  }
38
36
 
39
- export var Body = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n .ReactModal__Body--open {\n overflow: hidden;\n }\n"]))); // eslint-disable-next-line prettier/prettier
37
+ export var Body = createGlobalStyle([".ReactModal__Body--open{overflow:hidden;}"]); // eslint-disable-next-line prettier/prettier
40
38
 
41
39
  export var Container = styled(ReactModalAdapter).withConfig({
42
40
  displayName: "styles__Container",
@@ -1,3 +1,5 @@
1
+ var _excluded = ["number", "locale", "format", "currency", "abbreviate", "precision", "qa"];
2
+
1
3
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
4
 
3
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -82,7 +84,7 @@ var normalizeArgs = function normalizeArgs(props) {
82
84
  abbreviate = _props$abbreviate === void 0 ? true : _props$abbreviate,
83
85
  precision = props.precision,
84
86
  qa = props.qa,
85
- rest = _objectWithoutPropertiesLoose(props, ["number", "locale", "format", "currency", "abbreviate", "precision", "qa"]);
87
+ rest = _objectWithoutPropertiesLoose(props, _excluded);
86
88
 
87
89
  var threshold = getThreshold(abbreviate);
88
90
 
@@ -2,11 +2,11 @@ import styled from "styled-components";
2
2
  import Text from "../Text";
3
3
  export var Container = styled(Text).withConfig({
4
4
  displayName: "styles__Container",
5
- componentId: "o79gt9-0"
5
+ componentId: "sc-o79gt9-0"
6
6
  })(["font-variant-numeric:tabular-nums;"]);
7
7
  export var AbbrContainer = styled(Text).withConfig({
8
8
  displayName: "styles__AbbrContainer",
9
- componentId: "o79gt9-1"
9
+ componentId: "sc-o79gt9-1"
10
10
  })(["font-variant-numeric:tabular-nums;border-bottom:1px dotted ", ";"], function (props) {
11
11
  return props.theme.colors.container.border.base;
12
12
  });
@@ -6,7 +6,7 @@ var Container = styled(function (props) {
6
6
  return /*#__PURE__*/React.createElement(List, props);
7
7
  }).withConfig({
8
8
  displayName: "styles__Container",
9
- componentId: "ugoond-0"
9
+ componentId: "sc-ugoond-0"
10
10
  })(["box-sizing:border-box;font-family:", ";", " ", " ", " ", " ", " ", ""], function (_ref) {
11
11
  var theme = _ref.theme;
12
12
  return theme.fontFamily;
@@ -1,3 +1,7 @@
1
+ var _excluded = ["isOpen", "setIsOpen", "content", "children", "placement", "fullWidth", "zIndex", "focusOnContent", "onOpen", "onClose", "qa", "popperProps", "scheduleUpdateRef", "appendToBody", "focusLockProps"],
2
+ _excluded2 = ["autoFocus", "returnFocus"],
3
+ _excluded3 = ["children"];
4
+
1
5
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
6
 
3
7
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -71,7 +75,7 @@ export default function Popout(_ref) {
71
75
  appendToBody = _ref$appendToBody === void 0 ? true : _ref$appendToBody,
72
76
  _ref$focusLockProps = _ref.focusLockProps,
73
77
  focusLockProps = _ref$focusLockProps === void 0 ? {} : _ref$focusLockProps,
74
- rest = _objectWithoutPropertiesLoose(_ref, ["isOpen", "setIsOpen", "content", "children", "placement", "fullWidth", "zIndex", "focusOnContent", "onOpen", "onClose", "qa", "popperProps", "scheduleUpdateRef", "appendToBody", "focusLockProps"]);
78
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
75
79
 
76
80
  var PopoutComponentWrapper = appendToBody ? Portal : React.Fragment;
77
81
 
@@ -101,7 +105,7 @@ export default function Popout(_ref) {
101
105
  autoFocus = _focusLockProps$autoF === void 0 ? true : _focusLockProps$autoF,
102
106
  _focusLockProps$retur = focusLockProps.returnFocus,
103
107
  returnFocus = _focusLockProps$retur === void 0 ? true : _focusLockProps$retur,
104
- restFocusLockProps = _objectWithoutPropertiesLoose(focusLockProps, ["autoFocus", "returnFocus"]);
108
+ restFocusLockProps = _objectWithoutPropertiesLoose(focusLockProps, _excluded2);
105
109
 
106
110
  var isInvalidContent = content === null || content === undefined; // Callbacks for showing, hiding, and toggling visibility of the popout
107
111
  // (Not used when isOpen is passed explicitly)
@@ -259,7 +263,7 @@ export default function Popout(_ref) {
259
263
 
260
264
  var PopoutContent = function PopoutContent(_ref4) {
261
265
  var children = _ref4.children,
262
- rest = _objectWithoutPropertiesLoose(_ref4, ["children"]);
266
+ rest = _objectWithoutPropertiesLoose(_ref4, _excluded3);
263
267
 
264
268
  return /*#__PURE__*/React.createElement(Box, _extends({
265
269
  bg: "container.background.base",
@@ -3,5 +3,5 @@ import { COMMON, LAYOUT } from "../utils/system-props";
3
3
  // eslint-disable-next-line prettier/prettier
4
4
  export var TargetWrapper = styled.div.withConfig({
5
5
  displayName: "styles__TargetWrapper",
6
- componentId: "qo3sn-0"
6
+ componentId: "sc-qo3sn-0"
7
7
  })(["display:inline-block;", " ", ""], COMMON, LAYOUT);
@@ -1,3 +1,5 @@
1
+ var _excluded = ["id", "value", "name", "label", "checked", "disabled", "onChange", "onFocus", "onBlur", "ariaLabel", "qa"];
2
+
1
3
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
4
 
3
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -63,7 +65,7 @@ var Radio = /*#__PURE__*/function (_React$Component) {
63
65
  ariaLabel = _this$props.ariaLabel,
64
66
  _this$props$qa = _this$props.qa,
65
67
  qa = _this$props$qa === void 0 ? {} : _this$props$qa,
66
- rest = _objectWithoutPropertiesLoose(_this$props, ["id", "value", "name", "label", "checked", "disabled", "onChange", "onFocus", "onBlur", "ariaLabel", "qa"]);
68
+ rest = _objectWithoutPropertiesLoose(_this$props, _excluded);
67
69
 
68
70
  return (
69
71
  /*#__PURE__*/
@@ -4,12 +4,12 @@ import { focusRing, disabled } from "../utils/mixins";
4
4
  import Text from "../Text/";
5
5
  var Container = styled.span.withConfig({
6
6
  displayName: "styles__Container",
7
- componentId: "uyr445-0"
7
+ componentId: "sc-uyr445-0"
8
8
  })(["display:inline-flex;align-items:center;box-sizing:border-box;", ""], COMMON);
9
9
  Container.displayName = "Radio";
10
10
  export var Input = styled.input.withConfig({
11
11
  displayName: "styles__Input",
12
- componentId: "uyr445-1"
12
+ componentId: "sc-uyr445-1"
13
13
  })(["box-sizing:border-box;position:absolute;top:0;left:0;width:100%;height:100%;margin:0;appearance:none;cursor:", ";border:1px solid ", ";border-radius:50%;background-color:", ";transition:border-color ", " ", ",background-color ", " ", ";&:focus{", "}"], function (props) {
14
14
  return props.disabled ? "not-allowed" : "pointer";
15
15
  }, function (props) {
@@ -29,7 +29,7 @@ Input.displayName = "Input"; // eslint-disable-next-line prettier/prettier
29
29
 
30
30
  export var InputWrapper = styled.span.withConfig({
31
31
  displayName: "styles__InputWrapper",
32
- componentId: "uyr445-2"
32
+ componentId: "sc-uyr445-2"
33
33
  })(["position:relative;width:", ";height:", ";cursor:", ";", " &:before{content:\"\";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:6px;height:6px;border-radius:50%;opacity:0;transition:opacity ", " ", ";z-index:1;pointer-events:none;cursor:", ";}", " ", ""], function (props) {
34
34
  return props.theme.space[400];
35
35
  }, function (props) {
@@ -52,7 +52,7 @@ export var InputWrapper = styled.span.withConfig({
52
52
  InputWrapper.displayName = "InputWrapper";
53
53
  export var LabelText = styled(Text).withConfig({
54
54
  displayName: "styles__LabelText",
55
- componentId: "uyr445-3"
55
+ componentId: "sc-uyr445-3"
56
56
  })(["margin-left:", ";font-size:", ";line-height:1;cursor:", ";color:", ";", ""], function (props) {
57
57
  return props.theme.space[300];
58
58
  }, function (props) {
@@ -1,3 +1,6 @@
1
+ var _excluded = ["value", "children"],
2
+ _excluded2 = ["selectedValue", "label", "onChange", "children"];
3
+
1
4
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
5
 
3
6
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -13,7 +16,7 @@ var SegmentedControlContext = /*#__PURE__*/React.createContext(null);
13
16
  var SegmentedControlItem = function SegmentedControlItem(_ref) {
14
17
  var value = _ref.value,
15
18
  children = _ref.children,
16
- rest = _objectWithoutPropertiesLoose(_ref, ["value", "children"]);
19
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
17
20
 
18
21
  var context = useContext(SegmentedControlContext);
19
22
 
@@ -55,7 +58,7 @@ var SegmentedControl = function SegmentedControl(_ref2) {
55
58
  label = _ref2.label,
56
59
  onChange = _ref2.onChange,
57
60
  children = _ref2.children,
58
- rest = _objectWithoutPropertiesLoose(_ref2, ["selectedValue", "label", "onChange", "children"]);
61
+ rest = _objectWithoutPropertiesLoose(_ref2, _excluded2);
59
62
 
60
63
  var _useState2 = useState("Racine-segmented-control-" + nameCounter++),
61
64
  name = _useState2[0];
@@ -1,3 +1,5 @@
1
+ var _excluded = ["id", "name", "children", "defaultValue", "value", "required", "isInvalid", "autoFocus", "disabled", "onChange", "ariaLabel", "ariaDescribedby", "size", "qa", "inputProps"];
2
+
1
3
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
4
 
3
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -54,7 +56,7 @@ var Select = /*#__PURE__*/function (_React$Component) {
54
56
  qa = _this$props$qa === void 0 ? {} : _this$props$qa,
55
57
  _this$props$inputProp = _this$props.inputProps,
56
58
  inputProps = _this$props$inputProp === void 0 ? {} : _this$props$inputProp,
57
- rest = _objectWithoutPropertiesLoose(_this$props, ["id", "name", "children", "defaultValue", "value", "required", "isInvalid", "autoFocus", "disabled", "onChange", "ariaLabel", "ariaDescribedby", "size", "qa", "inputProps"]);
59
+ rest = _objectWithoutPropertiesLoose(_this$props, _excluded);
58
60
 
59
61
  return (
60
62
  /*#__PURE__*/
@@ -1,3 +1,5 @@
1
+ var _excluded = ["children", "space", "align", "direction"];
2
+
1
3
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
4
 
3
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -51,7 +53,7 @@ var Stack = function Stack(_ref) {
51
53
  align = _ref$align === void 0 ? "left" : _ref$align,
52
54
  _ref$direction = _ref.direction,
53
55
  direction = _ref$direction === void 0 ? "vertical" : _ref$direction,
54
- rest = _objectWithoutPropertiesLoose(_ref, ["children", "space", "align", "direction"]);
56
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
55
57
 
56
58
  var stackItems = Children.toArray(children);
57
59
  var responsiveAlignment = normalizeResponsiveProp(align);
@@ -1,3 +1,5 @@
1
+ var _excluded = ["checked", "disabled", "name", "a11yLabels", "onClick", "qa"];
2
+
1
3
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
4
 
3
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -51,7 +53,7 @@ var Switch = /*#__PURE__*/function (_React$Component) {
51
53
  onClick = _this$props2.onClick,
52
54
  _this$props2$qa = _this$props2.qa,
53
55
  qa = _this$props2$qa === void 0 ? {} : _this$props2$qa,
54
- rest = _objectWithoutPropertiesLoose(_this$props2, ["checked", "disabled", "name", "a11yLabels", "onClick", "qa"]);
56
+ rest = _objectWithoutPropertiesLoose(_this$props2, _excluded);
55
57
 
56
58
  return /*#__PURE__*/React.createElement(Container, _extends({
57
59
  role: "button",
@@ -5,7 +5,7 @@ import Icon from "../Icon/styles";
5
5
  // eslint-disable-next-line prettier/prettier
6
6
  var Container = styled.button.withConfig({
7
7
  displayName: "styles__Container",
8
- componentId: "x5lhuq-0"
8
+ componentId: "sc-x5lhuq-0"
9
9
  })(["position:relative;display:inline-block;width:36px;height:22px;margin:0;padding:", " ", ";vertical-align:middle;appearance:none;background-color:", ";border-radius:11px;outline:none;cursor:pointer;transition:background-color ", " ", ";border:1px solid ", ";white-space:nowrap;overflow:hidden;&::after{position:absolute;top:50%;left:0;width:14px;height:14px;background-color:", ";opacity:0.64;border-radius:50%;content:\"\";transition:transform ", " ", ";transform:translate(4px,-50%);}&:focus{", "}", " ", " ", ""], function (props) {
10
10
  return props.theme.space[100];
11
11
  }, function (props) {