@sproutsocial/racine 11.4.0-input-beta.0 → 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.
- package/CHANGELOG.md +12 -0
- package/__flow__/Input/index.test.js +3 -0
- package/commonjs/Avatar/index.js +4 -7
- package/commonjs/Badge/index.js +1 -3
- package/commonjs/Badge/styles.js +1 -1
- package/commonjs/Banner/index.js +1 -3
- package/commonjs/Banner/styles.js +1 -1
- package/commonjs/Box/styles.js +1 -1
- package/commonjs/Breadcrumb/index.js +2 -5
- package/commonjs/Button/index.js +1 -3
- package/commonjs/Card/index.js +1 -3
- package/commonjs/Card/styles.js +3 -3
- package/commonjs/CharacterCounter/index.js +1 -3
- package/commonjs/CharacterCounter/styles.js +1 -1
- package/commonjs/ChartLegend/index.js +1 -3
- package/commonjs/ChartLegend/styles.js +3 -3
- package/commonjs/Checkbox/index.js +1 -3
- package/commonjs/Checkbox/styles.js +1 -1
- package/commonjs/Collapsible/index.js +2 -5
- package/commonjs/DatePicker/DateRangePicker.js +1 -3
- package/commonjs/DatePicker/SingleDatePicker.js +1 -3
- package/commonjs/DatePicker/StatefulDateRangePicker.js +1 -3
- package/commonjs/DatePicker/StatefulSingleDatePicker.js +1 -3
- package/commonjs/DatePicker/common.js +1 -1
- package/commonjs/DatePicker/styles.js +6 -2
- package/commonjs/Drawer/SlideTransition.js +1 -3
- package/commonjs/Drawer/index.js +4 -9
- package/commonjs/Drawer/styles.js +2 -2
- package/commonjs/EmptyState/index.js +1 -3
- package/commonjs/Fieldset/index.js +3 -7
- package/commonjs/FormField/index.js +1 -3
- package/commonjs/Icon/index.js +2 -5
- package/commonjs/Icon/styles.js +1 -1
- package/commonjs/Image/index.js +1 -3
- package/commonjs/Image/styles.js +1 -1
- package/commonjs/Indicator/index.js +1 -3
- package/commonjs/Input/index.js +1 -3
- package/commonjs/Input/styles.js +2 -2
- package/commonjs/KeyboardKey/index.js +1 -3
- package/commonjs/Label/index.js +2 -4
- package/commonjs/Link/index.js +1 -3
- package/commonjs/Link/styles.js +1 -1
- package/commonjs/Listbox/index.js +4 -7
- package/commonjs/Loader/index.js +1 -3
- package/commonjs/Loader/styles.js +2 -2
- package/commonjs/LoaderButton/index.js +1 -3
- package/commonjs/Menu/constants.js +1 -1
- package/commonjs/Menu/descendants.js +7 -10
- package/commonjs/Menu/hooks.js +1 -1
- package/commonjs/Menu/index.js +16 -22
- package/commonjs/Menu/styles.js +2 -2
- package/commonjs/Message/index.js +1 -3
- package/commonjs/Message/styles.js +1 -1
- package/commonjs/Modal/index.js +3 -7
- package/commonjs/Modal/styles.js +6 -4
- package/commonjs/Numeral/constants.js +1 -1
- package/commonjs/Numeral/index.js +1 -3
- package/commonjs/Numeral/styles.js +3 -3
- package/commonjs/OverflowList/styles.js +1 -1
- package/commonjs/Popout/index.js +3 -7
- package/commonjs/Popout/styles.js +1 -1
- package/commonjs/Radio/index.js +1 -3
- package/commonjs/Radio/styles.js +4 -4
- package/commonjs/SegmentedControl/index.js +2 -5
- package/commonjs/Select/index.js +1 -3
- package/commonjs/Stack/index.js +1 -3
- package/commonjs/Switch/index.js +1 -3
- package/commonjs/Switch/styles.js +1 -1
- package/commonjs/Table/index.js +5 -10
- package/commonjs/TableCell/index.js +1 -3
- package/commonjs/TableHeaderCell/index.js +1 -3
- package/commonjs/TableRowAccordion/index.js +1 -3
- package/commonjs/Tabs/index.js +2 -5
- package/commonjs/Tabs/styles.js +4 -4
- package/commonjs/Text/index.js +1 -3
- package/commonjs/Text/styles.js +1 -1
- package/commonjs/Textarea/index.js +1 -3
- package/commonjs/Toast/index.js +15 -15
- package/commonjs/Toast/styles.js +7 -4
- package/commonjs/ToggleHint/index.js +1 -3
- package/commonjs/Token/index.js +1 -3
- package/commonjs/Token/styles.js +1 -1
- package/commonjs/TokenInput/index.js +1 -3
- package/commonjs/Tooltip/index.js +2 -5
- package/commonjs/Tooltip/styles.js +1 -1
- package/commonjs/VisuallyHidden/index.js +1 -1
- package/commonjs/index.js +1 -1
- package/commonjs/themes/dark/decorative-palettes.js +1 -1
- package/commonjs/themes/dark/theme.js +1 -1
- package/commonjs/themes/light/decorative-palettes.js +1 -1
- package/commonjs/themes/light/theme.js +1 -1
- package/commonjs/utils/hooks.js +2 -3
- package/commonjs/utils/mixins.js +1 -1
- package/commonjs/utils/system-props.js +1 -1
- package/dist/themes/dark/dark.scss +5 -5
- package/dist/themes/light/light.scss +95 -95
- package/lib/Avatar/index.js +4 -7
- package/lib/Badge/index.js +1 -3
- package/lib/Badge/styles.js +1 -1
- package/lib/Banner/index.js +1 -3
- package/lib/Banner/styles.js +1 -1
- package/lib/Box/styles.js +1 -1
- package/lib/Breadcrumb/index.js +2 -5
- package/lib/Button/index.js +1 -3
- package/lib/Card/index.js +1 -3
- package/lib/Card/styles.js +2 -2
- package/lib/CharacterCounter/index.js +1 -3
- package/lib/CharacterCounter/styles.js +1 -1
- package/lib/ChartLegend/index.js +1 -3
- package/lib/ChartLegend/styles.js +3 -3
- package/lib/Checkbox/index.js +1 -3
- package/lib/Collapsible/index.js +2 -5
- package/lib/DatePicker/DateRangePicker.js +1 -3
- package/lib/DatePicker/SingleDatePicker.js +1 -3
- package/lib/DatePicker/StatefulDateRangePicker.js +1 -3
- package/lib/DatePicker/StatefulSingleDatePicker.js +1 -3
- package/lib/DatePicker/styles.js +6 -2
- package/lib/Drawer/SlideTransition.js +1 -3
- package/lib/Drawer/index.js +4 -9
- package/lib/Drawer/styles.js +2 -2
- package/lib/EmptyState/index.js +1 -3
- package/lib/Fieldset/index.js +3 -7
- package/lib/FormField/index.js +1 -3
- package/lib/Icon/index.js +2 -5
- package/lib/Icon/styles.js +1 -1
- package/lib/Image/index.js +1 -3
- package/lib/Image/styles.js +1 -1
- package/lib/Indicator/index.js +1 -3
- package/lib/Input/index.js +1 -3
- package/lib/Input/styles.js +2 -2
- package/lib/KeyboardKey/index.js +1 -3
- package/lib/Label/index.js +2 -4
- package/lib/Link/index.js +1 -3
- package/lib/Link/styles.js +1 -1
- package/lib/Listbox/index.js +3 -6
- package/lib/Loader/index.js +1 -3
- package/lib/Loader/styles.js +2 -2
- package/lib/LoaderButton/index.js +1 -3
- package/lib/Menu/descendants.js +2 -5
- package/lib/Menu/index.js +16 -20
- package/lib/Menu/styles.js +2 -2
- package/lib/Message/index.js +1 -3
- package/lib/Modal/index.js +3 -7
- package/lib/Modal/styles.js +5 -3
- package/lib/Numeral/index.js +1 -3
- package/lib/Numeral/styles.js +2 -2
- package/lib/OverflowList/styles.js +1 -1
- package/lib/Popout/index.js +3 -7
- package/lib/Popout/styles.js +1 -1
- package/lib/Radio/index.js +1 -3
- package/lib/Radio/styles.js +4 -4
- package/lib/SegmentedControl/index.js +2 -5
- package/lib/Select/index.js +1 -3
- package/lib/Stack/index.js +1 -3
- package/lib/Switch/index.js +1 -3
- package/lib/Switch/styles.js +1 -1
- package/lib/Table/index.js +4 -9
- package/lib/TableCell/index.js +1 -3
- package/lib/TableHeaderCell/index.js +1 -3
- package/lib/TableRowAccordion/index.js +1 -3
- package/lib/Tabs/index.js +2 -5
- package/lib/Tabs/styles.js +3 -3
- package/lib/Text/index.js +1 -3
- package/lib/Text/styles.js +1 -1
- package/lib/Textarea/index.js +1 -3
- package/lib/Toast/index.js +14 -14
- package/lib/Toast/styles.js +7 -3
- package/lib/ToggleHint/index.js +1 -3
- package/lib/Token/index.js +1 -3
- package/lib/Token/styles.js +1 -1
- package/lib/TokenInput/index.js +1 -3
- package/lib/Tooltip/index.js +2 -5
- package/lib/Tooltip/styles.js +1 -1
- package/lib/VisuallyHidden/index.js +1 -1
- package/package.json +1 -1
package/lib/Loader/styles.js
CHANGED
|
@@ -19,7 +19,7 @@ var Container = styled.div.attrs({
|
|
|
19
19
|
className: "Loader"
|
|
20
20
|
}).withConfig({
|
|
21
21
|
displayName: "styles__Container",
|
|
22
|
-
componentId: "
|
|
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: "
|
|
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,
|
|
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({
|
package/lib/Menu/descendants.js
CHANGED
|
@@ -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,
|
|
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,
|
|
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,
|
|
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,
|
|
@@ -232,13 +227,21 @@ export var MenuRadio = function MenuRadio(props) {
|
|
|
232
227
|
role: MENU_ITEM_ROLES.RADIO
|
|
233
228
|
}, props));
|
|
234
229
|
};
|
|
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
|
+
|
|
235
238
|
export var MenuGroup = function MenuGroup(_ref2) {
|
|
236
239
|
var children = _ref2.children,
|
|
237
240
|
title = _ref2.title,
|
|
238
241
|
titleAs = _ref2.titleAs,
|
|
239
242
|
_ref2$disabled = _ref2.disabled,
|
|
240
243
|
isDisabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
|
|
241
|
-
props = _objectWithoutPropertiesLoose(_ref2,
|
|
244
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["children", "title", "titleAs", "disabled"]);
|
|
242
245
|
|
|
243
246
|
return /*#__PURE__*/React.createElement(React.Fragment, null, title && /*#__PURE__*/React.createElement(Box, {
|
|
244
247
|
pl: 400,
|
|
@@ -251,7 +254,7 @@ export var MenuGroup = function MenuGroup(_ref2) {
|
|
|
251
254
|
fontWeight: 600,
|
|
252
255
|
mt: 350,
|
|
253
256
|
color: "text.headline",
|
|
254
|
-
|
|
257
|
+
_css: isDisabled && disabled
|
|
255
258
|
}, title)), /*#__PURE__*/React.createElement(Box, _extends({}, props, {
|
|
256
259
|
p: 300,
|
|
257
260
|
role: "group"
|
|
@@ -306,7 +309,7 @@ var MenuItems = function MenuItems(_ref3) {
|
|
|
306
309
|
role = _ref3.role,
|
|
307
310
|
multiselect = _ref3.multiselect,
|
|
308
311
|
innerRef = _ref3.innerRef,
|
|
309
|
-
props = _objectWithoutPropertiesLoose(_ref3,
|
|
312
|
+
props = _objectWithoutPropertiesLoose(_ref3, ["children", "role", "multiselect", "innerRef"]);
|
|
310
313
|
|
|
311
314
|
var _useMenuKeyDown = useMenuKeyDown(),
|
|
312
315
|
handleKeyDown = _useMenuKeyDown.handleKeyDown,
|
|
@@ -334,7 +337,7 @@ export var Menu = function Menu(_ref4) {
|
|
|
334
337
|
value = _ref4.value,
|
|
335
338
|
multiselect = _ref4.multiselect,
|
|
336
339
|
innerRef = _ref4.innerRef,
|
|
337
|
-
props = _objectWithoutPropertiesLoose(_ref4,
|
|
340
|
+
props = _objectWithoutPropertiesLoose(_ref4, ["role", "children", "onChange", "value", "multiselect", "innerRef"]);
|
|
338
341
|
|
|
339
342
|
var _useDescendants = useDescendants(),
|
|
340
343
|
descendants = _useDescendants[0],
|
|
@@ -394,7 +397,7 @@ Menu.Divider.displayName = "Menu.Divider";
|
|
|
394
397
|
Menu.FilterInput.displayName = "Menu.FilterInput";
|
|
395
398
|
var CustomPopoutContent = styled(Popout.Content).withConfig({
|
|
396
399
|
displayName: "Menu__CustomPopoutContent",
|
|
397
|
-
componentId: "sc-1p3rdnp-
|
|
400
|
+
componentId: "sc-1p3rdnp-1"
|
|
398
401
|
})(["padding:0;margin-left:0;margin-right:0;"]);
|
|
399
402
|
export var MenuButton = function MenuButton(_ref5) {
|
|
400
403
|
var content = _ref5.content,
|
|
@@ -407,7 +410,7 @@ export var MenuButton = function MenuButton(_ref5) {
|
|
|
407
410
|
id = _ref5$id === void 0 ? uniqueId("MenuButton-") : _ref5$id,
|
|
408
411
|
_ref5$placement = _ref5.placement,
|
|
409
412
|
placement = _ref5$placement === void 0 ? "bottom" : _ref5$placement,
|
|
410
|
-
props = _objectWithoutPropertiesLoose(_ref5,
|
|
413
|
+
props = _objectWithoutPropertiesLoose(_ref5, ["content", "popoutProps", "children", "onClick", "closeOnItemClick", "id", "placement"]);
|
|
411
414
|
|
|
412
415
|
var _useState3 = useState(false),
|
|
413
416
|
isOpen = _useState3[0],
|
|
@@ -448,11 +451,4 @@ export var MenuButton = function MenuButton(_ref5) {
|
|
|
448
451
|
}
|
|
449
452
|
}), children)));
|
|
450
453
|
};
|
|
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
|
-
});
|
|
454
|
+
export default Menu;
|
package/lib/Menu/styles.js
CHANGED
|
@@ -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: "
|
|
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: "
|
|
46
|
+
componentId: "fjvae4-1"
|
|
47
47
|
})(["list-style-type:none;&:focus{", "}"], focusRing);
|
package/lib/Message/index.js
CHANGED
|
@@ -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,
|
|
55
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["children", "density", "borderColor", "bg", "indentContent", "innerRef", "qa"]);
|
|
58
56
|
|
|
59
57
|
return /*#__PURE__*/React.createElement(MessageContext.Provider, {
|
|
60
58
|
value: {
|
package/lib/Modal/index.js
CHANGED
|
@@ -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,
|
|
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,
|
|
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,
|
|
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;
|
package/lib/Modal/styles.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _templateObject;
|
|
2
|
+
|
|
3
|
+
function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }
|
|
2
4
|
|
|
3
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); }
|
|
4
6
|
|
|
@@ -15,7 +17,7 @@ var BODY_PADDING = "64px";
|
|
|
15
17
|
|
|
16
18
|
function ReactModalAdapter(_ref) {
|
|
17
19
|
var className = _ref.className,
|
|
18
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
20
|
+
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
19
21
|
|
|
20
22
|
// We want to create *__Content and *__Overlay class names on the subcomponents.
|
|
21
23
|
// Because `className` could be a space-separated list of class names, we make
|
|
@@ -34,7 +36,7 @@ function ReactModalAdapter(_ref) {
|
|
|
34
36
|
}, props));
|
|
35
37
|
}
|
|
36
38
|
|
|
37
|
-
export var Body = createGlobalStyle([".ReactModal__Body--open{overflow:hidden
|
|
39
|
+
export var Body = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n .ReactModal__Body--open {\n overflow: hidden;\n }\n"]))); // eslint-disable-next-line prettier/prettier
|
|
38
40
|
|
|
39
41
|
export var Container = styled(ReactModalAdapter).withConfig({
|
|
40
42
|
displayName: "styles__Container",
|
package/lib/Numeral/index.js
CHANGED
|
@@ -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,
|
|
85
|
+
rest = _objectWithoutPropertiesLoose(props, ["number", "locale", "format", "currency", "abbreviate", "precision", "qa"]);
|
|
88
86
|
|
|
89
87
|
var threshold = getThreshold(abbreviate);
|
|
90
88
|
|
package/lib/Numeral/styles.js
CHANGED
|
@@ -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: "
|
|
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: "
|
|
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: "
|
|
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;
|
package/lib/Popout/index.js
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
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
|
-
|
|
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; }
|
|
@@ -75,7 +71,7 @@ export default function Popout(_ref) {
|
|
|
75
71
|
appendToBody = _ref$appendToBody === void 0 ? true : _ref$appendToBody,
|
|
76
72
|
_ref$focusLockProps = _ref.focusLockProps,
|
|
77
73
|
focusLockProps = _ref$focusLockProps === void 0 ? {} : _ref$focusLockProps,
|
|
78
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
74
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["isOpen", "setIsOpen", "content", "children", "placement", "fullWidth", "zIndex", "focusOnContent", "onOpen", "onClose", "qa", "popperProps", "scheduleUpdateRef", "appendToBody", "focusLockProps"]);
|
|
79
75
|
|
|
80
76
|
var PopoutComponentWrapper = appendToBody ? Portal : React.Fragment;
|
|
81
77
|
|
|
@@ -105,7 +101,7 @@ export default function Popout(_ref) {
|
|
|
105
101
|
autoFocus = _focusLockProps$autoF === void 0 ? true : _focusLockProps$autoF,
|
|
106
102
|
_focusLockProps$retur = focusLockProps.returnFocus,
|
|
107
103
|
returnFocus = _focusLockProps$retur === void 0 ? true : _focusLockProps$retur,
|
|
108
|
-
restFocusLockProps = _objectWithoutPropertiesLoose(focusLockProps,
|
|
104
|
+
restFocusLockProps = _objectWithoutPropertiesLoose(focusLockProps, ["autoFocus", "returnFocus"]);
|
|
109
105
|
|
|
110
106
|
var isInvalidContent = content === null || content === undefined; // Callbacks for showing, hiding, and toggling visibility of the popout
|
|
111
107
|
// (Not used when isOpen is passed explicitly)
|
|
@@ -263,7 +259,7 @@ export default function Popout(_ref) {
|
|
|
263
259
|
|
|
264
260
|
var PopoutContent = function PopoutContent(_ref4) {
|
|
265
261
|
var children = _ref4.children,
|
|
266
|
-
rest = _objectWithoutPropertiesLoose(_ref4,
|
|
262
|
+
rest = _objectWithoutPropertiesLoose(_ref4, ["children"]);
|
|
267
263
|
|
|
268
264
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
269
265
|
bg: "container.background.base",
|
package/lib/Popout/styles.js
CHANGED
|
@@ -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: "
|
|
6
|
+
componentId: "qo3sn-0"
|
|
7
7
|
})(["display:inline-block;", " ", ""], COMMON, LAYOUT);
|
package/lib/Radio/index.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
var _excluded = ["id", "value", "name", "label", "checked", "disabled", "onChange", "onFocus", "onBlur", "ariaLabel", "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; }
|
|
@@ -65,7 +63,7 @@ var Radio = /*#__PURE__*/function (_React$Component) {
|
|
|
65
63
|
ariaLabel = _this$props.ariaLabel,
|
|
66
64
|
_this$props$qa = _this$props.qa,
|
|
67
65
|
qa = _this$props$qa === void 0 ? {} : _this$props$qa,
|
|
68
|
-
rest = _objectWithoutPropertiesLoose(_this$props,
|
|
66
|
+
rest = _objectWithoutPropertiesLoose(_this$props, ["id", "value", "name", "label", "checked", "disabled", "onChange", "onFocus", "onBlur", "ariaLabel", "qa"]);
|
|
69
67
|
|
|
70
68
|
return (
|
|
71
69
|
/*#__PURE__*/
|
package/lib/Radio/styles.js
CHANGED
|
@@ -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: "
|
|
7
|
+
componentId: "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: "
|
|
12
|
+
componentId: "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: "
|
|
32
|
+
componentId: "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: "
|
|
55
|
+
componentId: "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,6 +1,3 @@
|
|
|
1
|
-
var _excluded = ["value", "children"],
|
|
2
|
-
_excluded2 = ["selectedValue", "label", "onChange", "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; }
|
|
@@ -16,7 +13,7 @@ var SegmentedControlContext = /*#__PURE__*/React.createContext(null);
|
|
|
16
13
|
var SegmentedControlItem = function SegmentedControlItem(_ref) {
|
|
17
14
|
var value = _ref.value,
|
|
18
15
|
children = _ref.children,
|
|
19
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
16
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["value", "children"]);
|
|
20
17
|
|
|
21
18
|
var context = useContext(SegmentedControlContext);
|
|
22
19
|
|
|
@@ -58,7 +55,7 @@ var SegmentedControl = function SegmentedControl(_ref2) {
|
|
|
58
55
|
label = _ref2.label,
|
|
59
56
|
onChange = _ref2.onChange,
|
|
60
57
|
children = _ref2.children,
|
|
61
|
-
rest = _objectWithoutPropertiesLoose(_ref2,
|
|
58
|
+
rest = _objectWithoutPropertiesLoose(_ref2, ["selectedValue", "label", "onChange", "children"]);
|
|
62
59
|
|
|
63
60
|
var _useState2 = useState("Racine-segmented-control-" + nameCounter++),
|
|
64
61
|
name = _useState2[0];
|
package/lib/Select/index.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
var _excluded = ["id", "name", "children", "defaultValue", "value", "required", "isInvalid", "autoFocus", "disabled", "onChange", "ariaLabel", "ariaDescribedby", "size", "qa", "inputProps"];
|
|
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; }
|
|
@@ -56,7 +54,7 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
56
54
|
qa = _this$props$qa === void 0 ? {} : _this$props$qa,
|
|
57
55
|
_this$props$inputProp = _this$props.inputProps,
|
|
58
56
|
inputProps = _this$props$inputProp === void 0 ? {} : _this$props$inputProp,
|
|
59
|
-
rest = _objectWithoutPropertiesLoose(_this$props,
|
|
57
|
+
rest = _objectWithoutPropertiesLoose(_this$props, ["id", "name", "children", "defaultValue", "value", "required", "isInvalid", "autoFocus", "disabled", "onChange", "ariaLabel", "ariaDescribedby", "size", "qa", "inputProps"]);
|
|
60
58
|
|
|
61
59
|
return (
|
|
62
60
|
/*#__PURE__*/
|
package/lib/Stack/index.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
var _excluded = ["children", "space", "align", "direction"];
|
|
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; }
|
|
@@ -53,7 +51,7 @@ var Stack = function Stack(_ref) {
|
|
|
53
51
|
align = _ref$align === void 0 ? "left" : _ref$align,
|
|
54
52
|
_ref$direction = _ref.direction,
|
|
55
53
|
direction = _ref$direction === void 0 ? "vertical" : _ref$direction,
|
|
56
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
54
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["children", "space", "align", "direction"]);
|
|
57
55
|
|
|
58
56
|
var stackItems = Children.toArray(children);
|
|
59
57
|
var responsiveAlignment = normalizeResponsiveProp(align);
|
package/lib/Switch/index.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
var _excluded = ["checked", "disabled", "name", "a11yLabels", "onClick", "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; }
|
|
@@ -53,7 +51,7 @@ var Switch = /*#__PURE__*/function (_React$Component) {
|
|
|
53
51
|
onClick = _this$props2.onClick,
|
|
54
52
|
_this$props2$qa = _this$props2.qa,
|
|
55
53
|
qa = _this$props2$qa === void 0 ? {} : _this$props2$qa,
|
|
56
|
-
rest = _objectWithoutPropertiesLoose(_this$props2,
|
|
54
|
+
rest = _objectWithoutPropertiesLoose(_this$props2, ["checked", "disabled", "name", "a11yLabels", "onClick", "qa"]);
|
|
57
55
|
|
|
58
56
|
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
59
57
|
role: "button",
|
package/lib/Switch/styles.js
CHANGED
|
@@ -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: "
|
|
8
|
+
componentId: "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) {
|
package/lib/Table/index.js
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
var _excluded = ["head", "rows", "onSort", "sortId", "sortDirection", "rowRender", "children"],
|
|
2
|
-
_excluded2 = ["children"],
|
|
3
|
-
_excluded3 = ["children"],
|
|
4
|
-
_excluded4 = ["children"];
|
|
5
|
-
|
|
6
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; }
|
|
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); }
|
|
@@ -37,7 +32,7 @@ export var Table = function Table(_ref) {
|
|
|
37
32
|
sortDirection = _ref.sortDirection,
|
|
38
33
|
rowRender = _ref.rowRender,
|
|
39
34
|
children = _ref.children,
|
|
40
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
35
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["head", "rows", "onSort", "sortId", "sortDirection", "rowRender", "children"]);
|
|
41
36
|
|
|
42
37
|
if (children) {
|
|
43
38
|
return /*#__PURE__*/React.createElement(Container, _extends({}, rest, {
|
|
@@ -62,19 +57,19 @@ export var Table = function Table(_ref) {
|
|
|
62
57
|
};
|
|
63
58
|
export var TableHead = function TableHead(_ref2) {
|
|
64
59
|
var children = _ref2.children,
|
|
65
|
-
props = _objectWithoutPropertiesLoose(_ref2,
|
|
60
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
66
61
|
|
|
67
62
|
return /*#__PURE__*/React.createElement("thead", props, children);
|
|
68
63
|
};
|
|
69
64
|
export var TableBody = function TableBody(_ref3) {
|
|
70
65
|
var children = _ref3.children,
|
|
71
|
-
props = _objectWithoutPropertiesLoose(_ref3,
|
|
66
|
+
props = _objectWithoutPropertiesLoose(_ref3, ["children"]);
|
|
72
67
|
|
|
73
68
|
return /*#__PURE__*/React.createElement("tbody", props, children);
|
|
74
69
|
};
|
|
75
70
|
export var TableRow = function TableRow(_ref4) {
|
|
76
71
|
var children = _ref4.children,
|
|
77
|
-
props = _objectWithoutPropertiesLoose(_ref4,
|
|
72
|
+
props = _objectWithoutPropertiesLoose(_ref4, ["children"]);
|
|
78
73
|
|
|
79
74
|
return /*#__PURE__*/React.createElement("tr", props, children);
|
|
80
75
|
};
|
package/lib/TableCell/index.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
var _excluded = ["id", "content", "colSpan", "width", "align", "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; }
|
|
@@ -31,7 +29,7 @@ var TableCell = /*#__PURE__*/function (_React$Component) {
|
|
|
31
29
|
width = _this$props.width,
|
|
32
30
|
align = _this$props.align,
|
|
33
31
|
children = _this$props.children,
|
|
34
|
-
rest = _objectWithoutPropertiesLoose(_this$props,
|
|
32
|
+
rest = _objectWithoutPropertiesLoose(_this$props, ["id", "content", "colSpan", "width", "align", "children"]);
|
|
35
33
|
|
|
36
34
|
return /*#__PURE__*/React.createElement(Container, _extends({}, rest, {
|
|
37
35
|
alignment: align || "left",
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
var _excluded = ["id", "content", "colSpan", "width", "align", "isSortable", "shouldTruncate", "onSort", "sortId", "sortDirection", "children", "onClick"];
|
|
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; }
|
|
@@ -82,7 +80,7 @@ var TableHeaderCell = /*#__PURE__*/function (_React$Component) {
|
|
|
82
80
|
sortDirection = _this$props2.sortDirection,
|
|
83
81
|
children = _this$props2.children,
|
|
84
82
|
onClick = _this$props2.onClick,
|
|
85
|
-
rest = _objectWithoutPropertiesLoose(_this$props2,
|
|
83
|
+
rest = _objectWithoutPropertiesLoose(_this$props2, ["id", "content", "colSpan", "width", "align", "isSortable", "shouldTruncate", "onSort", "sortId", "sortDirection", "children", "onClick"]);
|
|
86
84
|
|
|
87
85
|
return /*#__PURE__*/React.createElement(Container, _extends({}, rest, {
|
|
88
86
|
key: id,
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
var _excluded = ["id", "cells", "detail", "onToggle", "isExpanded"];
|
|
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; }
|
|
@@ -51,7 +49,7 @@ var TableRowAccordion = /*#__PURE__*/function (_React$Component) {
|
|
|
51
49
|
detail = _this$props2.detail,
|
|
52
50
|
onToggle = _this$props2.onToggle,
|
|
53
51
|
isExpanded = _this$props2.isExpanded,
|
|
54
|
-
rest = _objectWithoutPropertiesLoose(_this$props2,
|
|
52
|
+
rest = _objectWithoutPropertiesLoose(_this$props2, ["id", "cells", "detail", "onToggle", "isExpanded"]);
|
|
55
53
|
|
|
56
54
|
return /*#__PURE__*/React.createElement(Container, _extends({}, rest, {
|
|
57
55
|
"data-qa-table-row-accordion": isExpanded,
|
package/lib/Tabs/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
var _excluded = ["children", "id"],
|
|
2
|
-
_excluded2 = ["children", "qa"];
|
|
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; }
|
|
@@ -49,7 +46,7 @@ var TabItemButton = /*#__PURE__*/function (_React$Component) {
|
|
|
49
46
|
var _this$props = this.props,
|
|
50
47
|
children = _this$props.children,
|
|
51
48
|
id = _this$props.id,
|
|
52
|
-
rest = _objectWithoutPropertiesLoose(_this$props,
|
|
49
|
+
rest = _objectWithoutPropertiesLoose(_this$props, ["children", "id"]);
|
|
53
50
|
|
|
54
51
|
var _this$context = this.context,
|
|
55
52
|
selectedId = _this$context.selectedId,
|
|
@@ -186,7 +183,7 @@ var Tabs = /*#__PURE__*/function (_React$Component2) {
|
|
|
186
183
|
var _this$props2 = this.props,
|
|
187
184
|
children = _this$props2.children,
|
|
188
185
|
qa = _this$props2.qa,
|
|
189
|
-
rest = _objectWithoutPropertiesLoose(_this$props2,
|
|
186
|
+
rest = _objectWithoutPropertiesLoose(_this$props2, ["children", "qa"]);
|
|
190
187
|
|
|
191
188
|
return (
|
|
192
189
|
/*#__PURE__*/
|
package/lib/Tabs/styles.js
CHANGED
|
@@ -3,7 +3,7 @@ import { COMMON } from "../utils/system-props";
|
|
|
3
3
|
import Button from "../Button";
|
|
4
4
|
var Container = styled.ul.withConfig({
|
|
5
5
|
displayName: "styles__Container",
|
|
6
|
-
componentId: "
|
|
6
|
+
componentId: "vnjuiu-0"
|
|
7
7
|
})(["display:", ";justify-content:space-between;margin:0;padding:0;list-style:none;border-bottom:", " ", ";", ""], function (props) {
|
|
8
8
|
return props.fullWidth ? "flex" : "inline-flex";
|
|
9
9
|
}, function (props) {
|
|
@@ -13,7 +13,7 @@ var Container = styled.ul.withConfig({
|
|
|
13
13
|
}, COMMON);
|
|
14
14
|
export var TabItem = styled.li.withConfig({
|
|
15
15
|
displayName: "styles__TabItem",
|
|
16
|
-
componentId: "
|
|
16
|
+
componentId: "vnjuiu-1"
|
|
17
17
|
})(["margin-bottom:-1px;", ";&:not(:last-child){", ";}", ";&:hover{", ";}"], function (props) {
|
|
18
18
|
return props.fullWidth && css(["flex-grow:1;"]);
|
|
19
19
|
}, function (props) {
|
|
@@ -32,7 +32,7 @@ export var TabItem = styled.li.withConfig({
|
|
|
32
32
|
|
|
33
33
|
export var TabButton = styled(Button).withConfig({
|
|
34
34
|
displayName: "styles__TabButton",
|
|
35
|
-
componentId: "
|
|
35
|
+
componentId: "vnjuiu-2"
|
|
36
36
|
})(["padding:", ";color:", ";width:100%;", ";&:hover{", ";}&:active{transform:none;}"], function (props) {
|
|
37
37
|
return props.theme.space[350] + " 0";
|
|
38
38
|
}, function (props) {
|