@sproutsocial/racine 11.3.1-beta-deps.3 → 11.4.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.
Files changed (197) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/__flow__/Button/__snapshots__/index.test.js.snap +511 -0
  3. package/__flow__/Button/index.js +0 -2
  4. package/__flow__/Button/index.stories.js +67 -51
  5. package/__flow__/Button/index.test.js +113 -0
  6. package/__flow__/Button/styles.js +1 -1
  7. package/__flow__/EmptyState/index.test.js +1 -1
  8. package/__flow__/Input/index.js +185 -66
  9. package/__flow__/Input/index.stories.js +65 -0
  10. package/__flow__/Input/index.test.js +230 -1
  11. package/__flow__/Input/styles.js +1 -1
  12. package/__flow__/Link/index.js +2 -1
  13. package/__flow__/Menu/__snapshots__/index.test.js.snap +2 -2
  14. package/__flow__/TokenInput/index.js +1 -1
  15. package/__flow__/setupTests.js +1 -1
  16. package/__flow__/systemProps/tests/__snapshots__/layout.test.js.snap +14 -0
  17. package/__flow__/systemProps/tests/layout.test.js +9 -0
  18. package/__flow__/themes/dark/theme.js +3 -0
  19. package/__flow__/themes/light/theme.js +3 -0
  20. package/__flow__/types/theme.colors.flow.js +3 -0
  21. package/commonjs/Avatar/index.js +4 -7
  22. package/commonjs/Badge/index.js +1 -3
  23. package/commonjs/Badge/styles.js +1 -1
  24. package/commonjs/Banner/index.js +1 -3
  25. package/commonjs/Banner/styles.js +1 -1
  26. package/commonjs/Box/styles.js +1 -1
  27. package/commonjs/Breadcrumb/index.js +2 -5
  28. package/commonjs/Button/index.js +1 -4
  29. package/commonjs/Button/styles.js +0 -1
  30. package/commonjs/Card/index.js +1 -3
  31. package/commonjs/Card/styles.js +3 -3
  32. package/commonjs/CharacterCounter/index.js +1 -3
  33. package/commonjs/CharacterCounter/styles.js +1 -1
  34. package/commonjs/ChartLegend/index.js +1 -3
  35. package/commonjs/ChartLegend/styles.js +3 -3
  36. package/commonjs/Checkbox/index.js +1 -3
  37. package/commonjs/Checkbox/styles.js +1 -1
  38. package/commonjs/Collapsible/index.js +2 -5
  39. package/commonjs/DatePicker/DateRangePicker.js +1 -3
  40. package/commonjs/DatePicker/SingleDatePicker.js +1 -3
  41. package/commonjs/DatePicker/StatefulDateRangePicker.js +1 -3
  42. package/commonjs/DatePicker/StatefulSingleDatePicker.js +1 -3
  43. package/commonjs/DatePicker/common.js +1 -1
  44. package/commonjs/DatePicker/styles.js +1 -1
  45. package/commonjs/Drawer/SlideTransition.js +1 -3
  46. package/commonjs/Drawer/index.js +4 -9
  47. package/commonjs/Drawer/styles.js +2 -2
  48. package/commonjs/EmptyState/index.js +1 -3
  49. package/commonjs/Fieldset/index.js +3 -7
  50. package/commonjs/FormField/index.js +1 -3
  51. package/commonjs/Icon/index.js +2 -5
  52. package/commonjs/Icon/styles.js +1 -1
  53. package/commonjs/Image/index.js +1 -3
  54. package/commonjs/Image/styles.js +1 -1
  55. package/commonjs/Indicator/index.js +1 -3
  56. package/commonjs/Input/index.js +123 -31
  57. package/commonjs/Input/styles.js +3 -3
  58. package/commonjs/KeyboardKey/index.js +1 -3
  59. package/commonjs/Label/index.js +2 -4
  60. package/commonjs/Link/index.js +1 -3
  61. package/commonjs/Link/styles.js +1 -1
  62. package/commonjs/Listbox/index.js +4 -7
  63. package/commonjs/Loader/index.js +1 -3
  64. package/commonjs/Loader/styles.js +2 -2
  65. package/commonjs/LoaderButton/index.js +1 -3
  66. package/commonjs/Menu/constants.js +1 -1
  67. package/commonjs/Menu/descendants.js +7 -10
  68. package/commonjs/Menu/hooks.js +1 -1
  69. package/commonjs/Menu/index.js +6 -12
  70. package/commonjs/Menu/styles.js +2 -2
  71. package/commonjs/Message/index.js +1 -3
  72. package/commonjs/Message/styles.js +1 -1
  73. package/commonjs/Modal/index.js +3 -7
  74. package/commonjs/Modal/styles.js +2 -4
  75. package/commonjs/Numeral/constants.js +1 -1
  76. package/commonjs/Numeral/index.js +1 -3
  77. package/commonjs/Numeral/styles.js +3 -3
  78. package/commonjs/OverflowList/styles.js +1 -1
  79. package/commonjs/Popout/index.js +3 -7
  80. package/commonjs/Popout/styles.js +1 -1
  81. package/commonjs/Radio/index.js +1 -3
  82. package/commonjs/Radio/styles.js +4 -4
  83. package/commonjs/SegmentedControl/index.js +2 -5
  84. package/commonjs/Select/index.js +1 -3
  85. package/commonjs/Stack/index.js +1 -3
  86. package/commonjs/Switch/index.js +1 -3
  87. package/commonjs/Switch/styles.js +1 -1
  88. package/commonjs/Table/index.js +5 -10
  89. package/commonjs/TableCell/index.js +1 -3
  90. package/commonjs/TableHeaderCell/index.js +1 -3
  91. package/commonjs/TableRowAccordion/index.js +1 -3
  92. package/commonjs/Tabs/index.js +2 -5
  93. package/commonjs/Tabs/styles.js +4 -4
  94. package/commonjs/Text/index.js +1 -3
  95. package/commonjs/Text/styles.js +1 -1
  96. package/commonjs/Textarea/index.js +1 -3
  97. package/commonjs/Toast/index.js +1 -1
  98. package/commonjs/Toast/styles.js +2 -2
  99. package/commonjs/ToggleHint/index.js +1 -3
  100. package/commonjs/Token/index.js +1 -3
  101. package/commonjs/Token/styles.js +1 -1
  102. package/commonjs/TokenInput/index.js +2 -4
  103. package/commonjs/Tooltip/index.js +2 -5
  104. package/commonjs/Tooltip/styles.js +1 -1
  105. package/commonjs/VisuallyHidden/index.js +1 -1
  106. package/commonjs/index.js +1 -1
  107. package/commonjs/themes/dark/decorative-palettes.js +1 -1
  108. package/commonjs/themes/dark/theme.js +5 -2
  109. package/commonjs/themes/light/decorative-palettes.js +1 -1
  110. package/commonjs/themes/light/theme.js +5 -2
  111. package/commonjs/utils/hooks.js +2 -3
  112. package/commonjs/utils/mixins.js +1 -1
  113. package/commonjs/utils/system-props.js +1 -1
  114. package/dist/themes/dark/dark.scss +9 -6
  115. package/dist/themes/light/light.scss +99 -96
  116. package/lib/Avatar/index.js +4 -7
  117. package/lib/Badge/index.js +1 -3
  118. package/lib/Badge/styles.js +1 -1
  119. package/lib/Banner/index.js +1 -3
  120. package/lib/Banner/styles.js +1 -1
  121. package/lib/Box/styles.js +1 -1
  122. package/lib/Breadcrumb/index.js +2 -5
  123. package/lib/Button/index.js +1 -4
  124. package/lib/Button/styles.js +0 -1
  125. package/lib/Card/index.js +1 -3
  126. package/lib/Card/styles.js +2 -2
  127. package/lib/CharacterCounter/index.js +1 -3
  128. package/lib/CharacterCounter/styles.js +1 -1
  129. package/lib/ChartLegend/index.js +1 -3
  130. package/lib/ChartLegend/styles.js +3 -3
  131. package/lib/Checkbox/index.js +1 -3
  132. package/lib/Collapsible/index.js +2 -5
  133. package/lib/DatePicker/DateRangePicker.js +1 -3
  134. package/lib/DatePicker/SingleDatePicker.js +1 -3
  135. package/lib/DatePicker/StatefulDateRangePicker.js +1 -3
  136. package/lib/DatePicker/StatefulSingleDatePicker.js +1 -3
  137. package/lib/DatePicker/styles.js +1 -1
  138. package/lib/Drawer/SlideTransition.js +1 -3
  139. package/lib/Drawer/index.js +4 -9
  140. package/lib/Drawer/styles.js +2 -2
  141. package/lib/EmptyState/index.js +1 -3
  142. package/lib/Fieldset/index.js +3 -7
  143. package/lib/FormField/index.js +1 -3
  144. package/lib/Icon/index.js +2 -5
  145. package/lib/Icon/styles.js +1 -1
  146. package/lib/Image/index.js +1 -3
  147. package/lib/Image/styles.js +1 -1
  148. package/lib/Indicator/index.js +1 -3
  149. package/lib/Input/index.js +117 -32
  150. package/lib/Input/styles.js +3 -3
  151. package/lib/KeyboardKey/index.js +1 -3
  152. package/lib/Label/index.js +2 -4
  153. package/lib/Link/index.js +1 -3
  154. package/lib/Link/styles.js +1 -1
  155. package/lib/Listbox/index.js +3 -6
  156. package/lib/Loader/index.js +1 -3
  157. package/lib/Loader/styles.js +2 -2
  158. package/lib/LoaderButton/index.js +1 -3
  159. package/lib/Menu/descendants.js +2 -5
  160. package/lib/Menu/index.js +5 -10
  161. package/lib/Menu/styles.js +2 -2
  162. package/lib/Message/index.js +1 -3
  163. package/lib/Modal/index.js +3 -7
  164. package/lib/Modal/styles.js +1 -3
  165. package/lib/Numeral/index.js +1 -3
  166. package/lib/Numeral/styles.js +2 -2
  167. package/lib/OverflowList/styles.js +1 -1
  168. package/lib/Popout/index.js +3 -7
  169. package/lib/Popout/styles.js +1 -1
  170. package/lib/Radio/index.js +1 -3
  171. package/lib/Radio/styles.js +4 -4
  172. package/lib/SegmentedControl/index.js +2 -5
  173. package/lib/Select/index.js +1 -3
  174. package/lib/Stack/index.js +1 -3
  175. package/lib/Switch/index.js +1 -3
  176. package/lib/Switch/styles.js +1 -1
  177. package/lib/Table/index.js +4 -9
  178. package/lib/TableCell/index.js +1 -3
  179. package/lib/TableHeaderCell/index.js +1 -3
  180. package/lib/TableRowAccordion/index.js +1 -3
  181. package/lib/Tabs/index.js +2 -5
  182. package/lib/Tabs/styles.js +3 -3
  183. package/lib/Text/index.js +1 -3
  184. package/lib/Text/styles.js +1 -1
  185. package/lib/Textarea/index.js +1 -3
  186. package/lib/Toast/styles.js +2 -2
  187. package/lib/ToggleHint/index.js +1 -3
  188. package/lib/Token/index.js +1 -3
  189. package/lib/Token/styles.js +1 -1
  190. package/lib/TokenInput/index.js +2 -4
  191. package/lib/Tooltip/index.js +2 -5
  192. package/lib/Tooltip/styles.js +1 -1
  193. package/lib/VisuallyHidden/index.js +1 -1
  194. package/lib/themes/dark/theme.js +4 -1
  195. package/lib/themes/light/theme.js +4 -1
  196. package/package.json +20 -24
  197. package/bin/buildNpm.js +0 -58
@@ -1,5 +1,3 @@
1
- var _excluded = ["autoComplete", "autoFocus", "disabled", "readOnly", "isInvalid", "hasWarning", "id", "name", "placeholder", "type", "required", "value", "elemBefore", "elemAfter", "maxLength", "ariaLabel", "ariaDescribedby", "innerRef", "onBlur", "onChange", "onFocus", "onKeyDown", "onKeyUp", "onPaste", "inputProps", "qa", "appearance"];
2
-
3
1
  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
2
 
5
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; }
@@ -10,6 +8,69 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
10
8
 
11
9
  import * as React from "react";
12
10
  import Container, { Accessory } from "./styles";
11
+ import Button from "../Button";
12
+ import Icon from "../Icon";
13
+ import styled from "styled-components";
14
+ var InputContext = /*#__PURE__*/React.createContext({});
15
+ var StyledButton = styled(Button).withConfig({
16
+ displayName: "Input__StyledButton",
17
+ componentId: "sc-1ck1dnm-0"
18
+ })(["&:hover,&:active{color:", ";}"], function (props) {
19
+ return props.theme.utils.interact(props.theme.colors.icon.base);
20
+ });
21
+
22
+ var ClearButton = function ClearButton() {
23
+ var _React$useContext = React.useContext(InputContext),
24
+ onClear = _React$useContext.onClear,
25
+ handleClear = _React$useContext.handleClear,
26
+ clearButtonLabel = _React$useContext.clearButtonLabel,
27
+ hasValue = _React$useContext.hasValue,
28
+ inputSize = _React$useContext.size; // Hide the button when there is no text to clear.
29
+
30
+
31
+ if (!hasValue) {
32
+ return null;
33
+ } // Log a warning and hide the button when no onClear callback is provided.
34
+ // If we called handleClear with no onClear prop, all the button would do is focus the Input.
35
+
36
+
37
+ if (!onClear) {
38
+ console.warn("Warning: No onClear prop provided to Input when using Input.ClearButton. Omitting Input.ClearButton.");
39
+ return null;
40
+ } // Warn if clearButtonLabel is not included, so that the unlocalized fallback will not be mistaken for a proper label.
41
+
42
+
43
+ if (!clearButtonLabel) {
44
+ console.warn("Warning: clearButtonLabel prop is required when using Input.ClearButton. Please pass a localized clearButtonLabel to Input.");
45
+ } // Reduce Button padding for size small Inputs so that the Button won't go outside the bounds of the Input.
46
+ // This adjustment is handled automatically for default and large Inputs via Button's size. There is no "small" Button.
47
+
48
+
49
+ var py = inputSize === "small" ? 100 : undefined;
50
+ var px = inputSize === "small" ? 200 : undefined;
51
+ var buttonSize = inputSize === "small" ? "default" : inputSize;
52
+ return /*#__PURE__*/React.createElement(StyledButton, {
53
+ onClick: handleClear,
54
+ size: buttonSize,
55
+ py: py,
56
+ px: px,
57
+ title: clearButtonLabel || "Clear",
58
+ ariaLabel: clearButtonLabel || "Clear",
59
+ color: "icon.base"
60
+ }, /*#__PURE__*/React.createElement(Icon, {
61
+ name: "circlex"
62
+ }));
63
+ }; // Used for positioning elementAfter. This logic will detect if the element is a ClearButton,
64
+ // regardless of whether it was manually passed as elemAfter or automatically added to a search Input.
65
+
66
+
67
+ var isClearButton = function isClearButton(elem) {
68
+ if (elem != null && elem.type) {
69
+ return elem.type.displayName === "Input.ClearButton";
70
+ }
71
+
72
+ return false;
73
+ };
13
74
 
14
75
  var Input = /*#__PURE__*/function (_React$Component) {
15
76
  _inheritsLoose(Input, _React$Component);
@@ -24,39 +85,38 @@ var Input = /*#__PURE__*/function (_React$Component) {
24
85
  _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
25
86
 
26
87
  _this.handleBlur = function (e) {
27
- if (_this.props.onBlur) {
28
- _this.props.onBlur(e);
88
+ return _this.props.onBlur == null ? void 0 : _this.props.onBlur(e);
89
+ };
90
+
91
+ _this.handleClear = function (e) {
92
+ // Only attempt to focus the input if the ref is an object. It won't work for refs that are functions.
93
+ if (typeof _this.props.innerRef === "object") {
94
+ var _this$props$innerRef$;
95
+
96
+ (_this$props$innerRef$ = _this.props.innerRef.current) == null ? void 0 : _this$props$innerRef$.focus();
29
97
  }
98
+
99
+ _this.props.onClear == null ? void 0 : _this.props.onClear(e);
30
100
  };
31
101
 
32
102
  _this.handleChange = function (e) {
33
- if (_this.props.onChange) {
34
- _this.props.onChange(e, e.currentTarget.value);
35
- }
103
+ return _this.props.onChange == null ? void 0 : _this.props.onChange(e, e.currentTarget.value);
36
104
  };
37
105
 
38
106
  _this.handleFocus = function (e) {
39
- if (_this.props.onFocus) {
40
- _this.props.onFocus(e);
41
- }
107
+ return _this.props.onFocus == null ? void 0 : _this.props.onFocus(e);
42
108
  };
43
109
 
44
110
  _this.handleKeyDown = function (e) {
45
- if (_this.props.onKeyDown) {
46
- _this.props.onKeyDown(e, e.currentTarget.value);
47
- }
111
+ return _this.props.onKeyDown == null ? void 0 : _this.props.onKeyDown(e, e.currentTarget.value);
48
112
  };
49
113
 
50
114
  _this.handleKeyUp = function (e) {
51
- if (_this.props.onKeyUp) {
52
- _this.props.onKeyUp(e, e.currentTarget.value);
53
- }
115
+ return _this.props.onKeyUp == null ? void 0 : _this.props.onKeyUp(e, e.currentTarget.value);
54
116
  };
55
117
 
56
118
  _this.handlePaste = function (e) {
57
- if (_this.props.onPaste) {
58
- _this.props.onPaste(e, e.currentTarget.value);
59
- }
119
+ return _this.props.onPaste == null ? void 0 : _this.props.onPaste(e, e.currentTarget.value);
60
120
  };
61
121
 
62
122
  return _this;
@@ -83,9 +143,11 @@ var Input = /*#__PURE__*/function (_React$Component) {
83
143
  maxLength = _this$props.maxLength,
84
144
  ariaLabel = _this$props.ariaLabel,
85
145
  ariaDescribedby = _this$props.ariaDescribedby,
146
+ clearButtonLabel = _this$props.clearButtonLabel,
86
147
  innerRef = _this$props.innerRef,
87
148
  onBlur = _this$props.onBlur,
88
149
  onChange = _this$props.onChange,
150
+ onClear = _this$props.onClear,
89
151
  onFocus = _this$props.onFocus,
90
152
  onKeyDown = _this$props.onKeyDown,
91
153
  onKeyUp = _this$props.onKeyUp,
@@ -95,25 +157,44 @@ var Input = /*#__PURE__*/function (_React$Component) {
95
157
  _this$props$qa = _this$props.qa,
96
158
  qa = _this$props$qa === void 0 ? {} : _this$props$qa,
97
159
  appearance = _this$props.appearance,
98
- rest = _objectWithoutPropertiesLoose(_this$props, _excluded);
160
+ size = _this$props.size,
161
+ rest = _objectWithoutPropertiesLoose(_this$props, ["autoComplete", "autoFocus", "disabled", "readOnly", "isInvalid", "hasWarning", "id", "name", "placeholder", "type", "required", "value", "elemBefore", "elemAfter", "maxLength", "ariaLabel", "ariaDescribedby", "clearButtonLabel", "innerRef", "onBlur", "onChange", "onClear", "onFocus", "onKeyDown", "onKeyUp", "onPaste", "inputProps", "qa", "appearance", "size"]); // Convert autoComplete from a boolean prop to a string value.
162
+
99
163
 
100
164
  var autoCompleteValue = undefined;
101
165
 
102
166
  if (autoComplete !== undefined) {
103
167
  autoCompleteValue = autoComplete ? "on" : "off";
104
- }
168
+ } // Add default elemBefore and elemAfter elements if type is search.
105
169
 
170
+
171
+ var elementBefore = type === "search" && !elemBefore ? /*#__PURE__*/React.createElement(Icon, {
172
+ name: "search",
173
+ ariaHidden: true,
174
+ color: "icon.base"
175
+ }) : elemBefore; // Do not add a ClearButton if no onClear callback is provided or if an elemAfter prop was passed.
176
+
177
+ var elementAfter = type === "search" && onClear && !elemAfter ? /*#__PURE__*/React.createElement(ClearButton, null) : elemAfter;
106
178
  return /*#__PURE__*/React.createElement(Container, _extends({
107
- hasBeforeElement: !!elemBefore,
108
- hasAfterElement: !!elemAfter,
179
+ hasBeforeElement: !!elementBefore,
180
+ hasAfterElement: !!elementAfter,
109
181
  disabled: disabled,
110
182
  invalid: !!isInvalid,
111
183
  warning: hasWarning,
112
- appearance: appearance // $FlowIssue - upgrade v0.112.0
113
-
114
- }, rest), elemBefore && /*#__PURE__*/React.createElement(Accessory, {
184
+ appearance: appearance,
185
+ size: size // $FlowIssue - upgrade v0.112.0
186
+
187
+ }, rest), /*#__PURE__*/React.createElement(InputContext.Provider, {
188
+ value: {
189
+ handleClear: this.handleClear,
190
+ hasValue: !!value,
191
+ clearButtonLabel: clearButtonLabel,
192
+ onClear: onClear,
193
+ size: size
194
+ }
195
+ }, elementBefore && /*#__PURE__*/React.createElement(Accessory, {
115
196
  before: true
116
- }, elemBefore), /*#__PURE__*/React.createElement("input", _extends({
197
+ }, elementBefore), /*#__PURE__*/React.createElement("input", _extends({
117
198
  "aria-invalid": !!isInvalid,
118
199
  "aria-label": ariaLabel,
119
200
  "aria-describedby": ariaDescribedby,
@@ -138,9 +219,10 @@ var Input = /*#__PURE__*/function (_React$Component) {
138
219
  "data-qa-input": name || "",
139
220
  "data-qa-input-isdisabled": disabled === true,
140
221
  "data-qa-input-isrequired": required === true
141
- }, qa, inputProps)), elemAfter && /*#__PURE__*/React.createElement(Accessory, {
142
- after: true
143
- }, elemAfter));
222
+ }, qa, inputProps)), elementAfter && /*#__PURE__*/React.createElement(Accessory, {
223
+ after: true,
224
+ isClearButton: isClearButton(elementAfter)
225
+ }, elementAfter)));
144
226
  };
145
227
 
146
228
  return Input;
@@ -151,6 +233,9 @@ Input.defaultProps = {
151
233
  disabled: false,
152
234
  type: "text",
153
235
  size: "default",
154
- appearance: "primary"
236
+ appearance: "primary",
237
+ innerRef: /*#__PURE__*/React.createRef()
155
238
  };
156
- export { Input as default };
239
+ Input.ClearButton = ClearButton;
240
+ Input.ClearButton.displayName = "Input.ClearButton";
241
+ export default Input;
@@ -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: "sc-uozj0s-0"
6
+ componentId: "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: "sc-uozj0s-1"
70
+ componentId: "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,5 +1,3 @@
1
- var _excluded = ["children"];
2
-
3
1
  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; }
4
2
 
5
3
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
@@ -22,7 +20,7 @@ var KeyboardKey = /*#__PURE__*/function (_React$Component) {
22
20
  _proto.render = function render() {
23
21
  var _this$props = this.props,
24
22
  children = _this$props.children,
25
- rest = _objectWithoutPropertiesLoose(_this$props, _excluded);
23
+ rest = _objectWithoutPropertiesLoose(_this$props, ["children"]);
26
24
 
27
25
  return /*#__PURE__*/React.createElement(Container, rest, /*#__PURE__*/React.createElement("kbd", {
28
26
  "data-qa-keyboardkey": children
@@ -1,7 +1,5 @@
1
1
  "no babel-plugin-flow-react-proptypes";
2
2
 
3
- var _excluded = ["as"];
4
-
5
3
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
6
4
 
7
5
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -17,7 +15,7 @@ import Text from "../Text";
17
15
  var LabelBase = function LabelBase(_ref) {
18
16
  var _ref$as = _ref.as,
19
17
  as = _ref$as === void 0 ? "label" : _ref$as,
20
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
18
+ rest = _objectWithoutPropertiesLoose(_ref, ["as"]);
21
19
 
22
20
  return /*#__PURE__*/React.createElement(Text, _extends({}, rest, {
23
21
  as: as
@@ -26,7 +24,7 @@ var LabelBase = function LabelBase(_ref) {
26
24
 
27
25
  var StyledLabel = styled(LabelBase).withConfig({
28
26
  displayName: "Label__StyledLabel",
29
- componentId: "sc-rqdi0a-0"
27
+ componentId: "rqdi0a-0"
30
28
  })(["display:flex;align-items:center;"]);
31
29
 
32
30
  var Label = /*#__PURE__*/function (_React$Component) {
package/lib/Link/index.js CHANGED
@@ -1,5 +1,3 @@
1
- var _excluded = ["href", "external", "children", "disabled", "onClick", "as", "underline", "qa"];
2
-
3
1
  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
2
 
5
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; }
@@ -17,7 +15,7 @@ var Link = function Link(_ref) {
17
15
  underline = _ref.underline,
18
16
  _ref$qa = _ref.qa,
19
17
  qa = _ref$qa === void 0 ? {} : _ref$qa,
20
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
18
+ rest = _objectWithoutPropertiesLoose(_ref, ["href", "external", "children", "disabled", "onClick", "as", "underline", "qa"]);
21
19
 
22
20
  if (!href && external) {
23
21
  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: "sc-adcw4a-0"
7
+ componentId: "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,6 +1,3 @@
1
- var _excluded = ["role", "children"],
2
- _excluded2 = ["children"];
3
-
4
1
  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); }
5
2
 
6
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; }
@@ -15,7 +12,7 @@ export var Listbox = function Listbox(_ref) {
15
12
  var _ref$role = _ref.role,
16
13
  role = _ref$role === void 0 ? MENU_ROLES.LISTBOX : _ref$role,
17
14
  children = _ref.children,
18
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
15
+ rest = _objectWithoutPropertiesLoose(_ref, ["role", "children"]);
19
16
 
20
17
  return /*#__PURE__*/React.createElement(Menu, _extends({}, rest, {
21
18
  role: role
@@ -28,7 +25,7 @@ export var Listbox = function Listbox(_ref) {
28
25
 
29
26
  export var ListboxButtonContainer = styled(MenuButton).withConfig({
30
27
  displayName: "Listbox__ListboxButtonContainer",
31
- componentId: "sc-c9mfi8-0"
28
+ componentId: "c9mfi8-0"
32
29
  })(["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) {
33
30
  return props.theme.colors.form.border.base;
34
31
  }, function (props) {
@@ -82,7 +79,7 @@ export var ListboxButtonContainer = styled(MenuButton).withConfig({
82
79
  });
83
80
  export var ListboxButton = function ListboxButton(_ref2) {
84
81
  var children = _ref2.children,
85
- restProps = _objectWithoutPropertiesLoose(_ref2, _excluded2);
82
+ restProps = _objectWithoutPropertiesLoose(_ref2, ["children"]);
86
83
 
87
84
  return /*#__PURE__*/React.createElement(ListboxButtonContainer, _extends({}, restProps, {
88
85
  popoutProps: _extends({
@@ -1,5 +1,3 @@
1
- var _excluded = ["text", "size", "delay", "color", "qa"];
2
-
3
1
  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
2
 
5
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; }
@@ -27,7 +25,7 @@ var Loader = /*#__PURE__*/function (_React$Component) {
27
25
  delay = _this$props.delay,
28
26
  color = _this$props.color,
29
27
  qa = _this$props.qa,
30
- rest = _objectWithoutPropertiesLoose(_this$props, _excluded);
28
+ rest = _objectWithoutPropertiesLoose(_this$props, ["text", "size", "delay", "color", "qa"]);
31
29
 
32
30
  return /*#__PURE__*/React.createElement(Container, _extends({
33
31
  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: "sc-zj8x0q-0"
22
+ componentId: "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: "sc-zj8x0q-1"
32
+ componentId: "zj8x0q-1"
33
33
  })(["", ""], visuallyHidden);
34
34
  export default Container;
@@ -1,5 +1,3 @@
1
- var _excluded = ["appearance", "isLoading", "disabled", "loaderLabel", "children"];
2
-
3
1
  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
2
 
5
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; }
@@ -40,7 +38,7 @@ export var LoaderButton = function LoaderButton(_ref) {
40
38
  disabled = _ref.disabled,
41
39
  loaderLabel = _ref.loaderLabel,
42
40
  children = _ref.children,
43
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
41
+ rest = _objectWithoutPropertiesLoose(_ref, ["appearance", "isLoading", "disabled", "loaderLabel", "children"]);
44
42
 
45
43
  var isLoading = Boolean(_isLoading);
46
44
  return /*#__PURE__*/React.createElement(Button, _extends({
@@ -1,6 +1,3 @@
1
- var _excluded = ["context", "element"],
2
- _excluded2 = ["element"];
3
-
4
1
  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; }
5
2
 
6
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); }
@@ -94,7 +91,7 @@ export function createDescendantContext(name, initialValue) {
94
91
  export function useDescendant(_ref, indexProp) {
95
92
  var context = _ref.context,
96
93
  element = _ref.element,
97
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
94
+ rest = _objectWithoutPropertiesLoose(_ref, ["context", "element"]);
98
95
 
99
96
  var _useState = useState(),
100
97
  forceUpdate = _useState[1];
@@ -128,7 +125,7 @@ export function DescendantProvider(_ref2) {
128
125
  set = _ref2.set;
129
126
  var registerDescendant = useCallback(function (_ref3) {
130
127
  var element = _ref3.element,
131
- rest = _objectWithoutPropertiesLoose(_ref3, _excluded2);
128
+ rest = _objectWithoutPropertiesLoose(_ref3, ["element"]);
132
129
 
133
130
  if (!element) {
134
131
  return;
package/lib/Menu/index.js CHANGED
@@ -1,9 +1,4 @@
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"];
7
2
 
8
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); }
9
4
 
@@ -72,7 +67,7 @@ export var MenuItem = function MenuItem(_ref) {
72
67
  disabled = _ref.disabled,
73
68
  indeterminate = _ref.indeterminate,
74
69
  labelProp = _ref.label,
75
- props = _objectWithoutPropertiesLoose(_ref, _excluded);
70
+ props = _objectWithoutPropertiesLoose(_ref, ["id", "index", "as", "children", "role", "elemBefore", "elemAfter", "value", "onKeyPress", "onClick", "selected", "disabled", "indeterminate", "label"]);
76
71
 
77
72
  var _useContext = useContext(MenuContext),
78
73
  menuRole = _useContext.role,
@@ -246,7 +241,7 @@ export var MenuGroup = function MenuGroup(_ref2) {
246
241
  titleAs = _ref2.titleAs,
247
242
  _ref2$disabled = _ref2.disabled,
248
243
  isDisabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
249
- props = _objectWithoutPropertiesLoose(_ref2, _excluded2);
244
+ props = _objectWithoutPropertiesLoose(_ref2, ["children", "title", "titleAs", "disabled"]);
250
245
 
251
246
  return /*#__PURE__*/React.createElement(React.Fragment, null, title && /*#__PURE__*/React.createElement(Box, {
252
247
  pl: 400,
@@ -314,7 +309,7 @@ var MenuItems = function MenuItems(_ref3) {
314
309
  role = _ref3.role,
315
310
  multiselect = _ref3.multiselect,
316
311
  innerRef = _ref3.innerRef,
317
- props = _objectWithoutPropertiesLoose(_ref3, _excluded3);
312
+ props = _objectWithoutPropertiesLoose(_ref3, ["children", "role", "multiselect", "innerRef"]);
318
313
 
319
314
  var _useMenuKeyDown = useMenuKeyDown(),
320
315
  handleKeyDown = _useMenuKeyDown.handleKeyDown,
@@ -342,7 +337,7 @@ export var Menu = function Menu(_ref4) {
342
337
  value = _ref4.value,
343
338
  multiselect = _ref4.multiselect,
344
339
  innerRef = _ref4.innerRef,
345
- props = _objectWithoutPropertiesLoose(_ref4, _excluded4);
340
+ props = _objectWithoutPropertiesLoose(_ref4, ["role", "children", "onChange", "value", "multiselect", "innerRef"]);
346
341
 
347
342
  var _useDescendants = useDescendants(),
348
343
  descendants = _useDescendants[0],
@@ -415,7 +410,7 @@ export var MenuButton = function MenuButton(_ref5) {
415
410
  id = _ref5$id === void 0 ? uniqueId("MenuButton-") : _ref5$id,
416
411
  _ref5$placement = _ref5.placement,
417
412
  placement = _ref5$placement === void 0 ? "bottom" : _ref5$placement,
418
- props = _objectWithoutPropertiesLoose(_ref5, _excluded5);
413
+ props = _objectWithoutPropertiesLoose(_ref5, ["content", "popoutProps", "children", "onClick", "closeOnItemClick", "id", "placement"]);
419
414
 
420
415
  var _useState3 = useState(false),
421
416
  isOpen = _useState3[0],
@@ -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: "sc-fjvae4-0"
6
+ componentId: "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: "sc-fjvae4-1"
46
+ componentId: "fjvae4-1"
47
47
  })(["list-style-type:none;&:focus{", "}"], focusRing);
@@ -1,5 +1,3 @@
1
- var _excluded = ["children", "density", "borderColor", "bg", "indentContent", "innerRef", "qa"];
2
-
3
1
  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
2
 
5
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; }
@@ -54,7 +52,7 @@ var Message = function Message(_ref) {
54
52
  indentContent = _ref$indentContent === void 0 ? true : _ref$indentContent,
55
53
  innerRef = _ref.innerRef,
56
54
  qa = _ref.qa,
57
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
55
+ rest = _objectWithoutPropertiesLoose(_ref, ["children", "density", "borderColor", "bg", "indentContent", "innerRef", "qa"]);
58
56
 
59
57
  return /*#__PURE__*/React.createElement(MessageContext.Provider, {
60
58
  value: {
@@ -1,7 +1,3 @@
1
- var _excluded = ["title", "subtitle", "children", "bordered"],
2
- _excluded2 = ["children"],
3
- _excluded3 = ["appElementSelector", "children", "isOpen", "label", "onClose", "closeButtonLabel", "width", "zIndex"];
4
-
5
1
  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
2
 
7
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; }
@@ -20,7 +16,7 @@ var ModalHeader = function ModalHeader(props) {
20
16
  subtitle = props.subtitle,
21
17
  children = props.children,
22
18
  bordered = props.bordered,
23
- rest = _objectWithoutPropertiesLoose(props, _excluded);
19
+ rest = _objectWithoutPropertiesLoose(props, ["title", "subtitle", "children", "bordered"]);
24
20
 
25
21
  return (
26
22
  /*#__PURE__*/
@@ -75,7 +71,7 @@ ModalFooter.defaultProps = {
75
71
  var ModalContent = /*#__PURE__*/React.forwardRef( // $FlowIssue - upgrade v0.112.0
76
72
  function (_ref, ref) {
77
73
  var children = _ref.children,
78
- rest = _objectWithoutPropertiesLoose(_ref, _excluded2);
74
+ rest = _objectWithoutPropertiesLoose(_ref, ["children"]);
79
75
 
80
76
  var _useContext2 = useContext(ModalContext),
81
77
  label = _useContext2.label;
@@ -99,7 +95,7 @@ var Modal = function Modal(props) {
99
95
  closeButtonLabel = props.closeButtonLabel,
100
96
  width = props.width,
101
97
  zIndex = props.zIndex,
102
- rest = _objectWithoutPropertiesLoose(props, _excluded3);
98
+ rest = _objectWithoutPropertiesLoose(props, ["appElementSelector", "children", "isOpen", "label", "onClose", "closeButtonLabel", "width", "zIndex"]);
103
99
 
104
100
  var isCloseable = Boolean(onClose);
105
101
  var appElement = appElementSelector && document ? document.querySelector(appElementSelector) : null;
@@ -1,7 +1,5 @@
1
1
  var _templateObject;
2
2
 
3
- var _excluded = ["className"];
4
-
5
3
  function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }
6
4
 
7
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); }
@@ -19,7 +17,7 @@ var BODY_PADDING = "64px";
19
17
 
20
18
  function ReactModalAdapter(_ref) {
21
19
  var className = _ref.className,
22
- props = _objectWithoutPropertiesLoose(_ref, _excluded);
20
+ props = _objectWithoutPropertiesLoose(_ref, ["className"]);
23
21
 
24
22
  // We want to create *__Content and *__Overlay class names on the subcomponents.
25
23
  // Because `className` could be a space-separated list of class names, we make
@@ -1,5 +1,3 @@
1
- var _excluded = ["number", "locale", "format", "currency", "abbreviate", "precision", "qa"];
2
-
3
1
  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
2
 
5
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; }
@@ -84,7 +82,7 @@ var normalizeArgs = function normalizeArgs(props) {
84
82
  abbreviate = _props$abbreviate === void 0 ? true : _props$abbreviate,
85
83
  precision = props.precision,
86
84
  qa = props.qa,
87
- rest = _objectWithoutPropertiesLoose(props, _excluded);
85
+ rest = _objectWithoutPropertiesLoose(props, ["number", "locale", "format", "currency", "abbreviate", "precision", "qa"]);
88
86
 
89
87
  var threshold = getThreshold(abbreviate);
90
88
 
@@ -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: "sc-o79gt9-0"
5
+ componentId: "o79gt9-0"
6
6
  })(["font-variant-numeric:tabular-nums;"]);
7
7
  export var AbbrContainer = styled(Text).withConfig({
8
8
  displayName: "styles__AbbrContainer",
9
- componentId: "sc-o79gt9-1"
9
+ componentId: "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: "sc-ugoond-0"
9
+ componentId: "ugoond-0"
10
10
  })(["box-sizing:border-box;font-family:", ";", " ", " ", " ", " ", " ", ""], function (_ref) {
11
11
  var theme = _ref.theme;
12
12
  return theme.fontFamily;