@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.
- package/CHANGELOG.md +34 -0
- package/__flow__/Button/__snapshots__/index.test.js.snap +511 -0
- package/__flow__/Button/index.js +0 -2
- package/__flow__/Button/index.stories.js +67 -51
- package/__flow__/Button/index.test.js +113 -0
- package/__flow__/Button/styles.js +1 -1
- package/__flow__/EmptyState/index.test.js +1 -1
- package/__flow__/Input/index.js +185 -66
- package/__flow__/Input/index.stories.js +65 -0
- package/__flow__/Input/index.test.js +230 -1
- package/__flow__/Input/styles.js +1 -1
- package/__flow__/Link/index.js +2 -1
- package/__flow__/Menu/__snapshots__/index.test.js.snap +2 -2
- package/__flow__/TokenInput/index.js +1 -1
- package/__flow__/setupTests.js +1 -1
- package/__flow__/systemProps/tests/__snapshots__/layout.test.js.snap +14 -0
- package/__flow__/systemProps/tests/layout.test.js +9 -0
- package/__flow__/themes/dark/theme.js +3 -0
- package/__flow__/themes/light/theme.js +3 -0
- package/__flow__/types/theme.colors.flow.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 -4
- package/commonjs/Button/styles.js +0 -1
- 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 +1 -1
- 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 +123 -31
- package/commonjs/Input/styles.js +3 -3
- 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 +6 -12
- 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 +2 -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 +1 -1
- package/commonjs/Toast/styles.js +2 -2
- 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 +2 -4
- 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 +5 -2
- package/commonjs/themes/light/decorative-palettes.js +1 -1
- package/commonjs/themes/light/theme.js +5 -2
- 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 +9 -6
- package/dist/themes/light/light.scss +99 -96
- 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 -4
- package/lib/Button/styles.js +0 -1
- 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 +1 -1
- 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 +117 -32
- package/lib/Input/styles.js +3 -3
- 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 +5 -10
- 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 +1 -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/styles.js +2 -2
- 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 +2 -4
- package/lib/Tooltip/index.js +2 -5
- package/lib/Tooltip/styles.js +1 -1
- package/lib/VisuallyHidden/index.js +1 -1
- package/lib/themes/dark/theme.js +4 -1
- package/lib/themes/light/theme.js +4 -1
- package/package.json +20 -24
- package/bin/buildNpm.js +0 -58
package/commonjs/Modal/index.js
CHANGED
|
@@ -15,10 +15,6 @@ var _Text = _interopRequireDefault(require("../Text"));
|
|
|
15
15
|
|
|
16
16
|
var _styles = require("./styles");
|
|
17
17
|
|
|
18
|
-
var _excluded = ["title", "subtitle", "children", "bordered"],
|
|
19
|
-
_excluded2 = ["children"],
|
|
20
|
-
_excluded3 = ["appElementSelector", "children", "isOpen", "label", "onClose", "closeButtonLabel", "width", "zIndex"];
|
|
21
|
-
|
|
22
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
19
|
|
|
24
20
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -36,7 +32,7 @@ var ModalHeader = function ModalHeader(props) {
|
|
|
36
32
|
subtitle = props.subtitle,
|
|
37
33
|
children = props.children,
|
|
38
34
|
bordered = props.bordered,
|
|
39
|
-
rest = _objectWithoutPropertiesLoose(props,
|
|
35
|
+
rest = _objectWithoutPropertiesLoose(props, ["title", "subtitle", "children", "bordered"]);
|
|
40
36
|
|
|
41
37
|
return (
|
|
42
38
|
/*#__PURE__*/
|
|
@@ -91,7 +87,7 @@ ModalFooter.defaultProps = {
|
|
|
91
87
|
var ModalContent = /*#__PURE__*/React.forwardRef( // $FlowIssue - upgrade v0.112.0
|
|
92
88
|
function (_ref, ref) {
|
|
93
89
|
var children = _ref.children,
|
|
94
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
90
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["children"]);
|
|
95
91
|
|
|
96
92
|
var _useContext2 = (0, React.useContext)(ModalContext),
|
|
97
93
|
label = _useContext2.label;
|
|
@@ -115,7 +111,7 @@ var Modal = function Modal(props) {
|
|
|
115
111
|
closeButtonLabel = props.closeButtonLabel,
|
|
116
112
|
width = props.width,
|
|
117
113
|
zIndex = props.zIndex,
|
|
118
|
-
rest = _objectWithoutPropertiesLoose(props,
|
|
114
|
+
rest = _objectWithoutPropertiesLoose(props, ["appElementSelector", "children", "isOpen", "label", "onClose", "closeButtonLabel", "width", "zIndex"]);
|
|
119
115
|
|
|
120
116
|
var isCloseable = Boolean(onClose);
|
|
121
117
|
var appElement = appElementSelector && document ? document.querySelector(appElementSelector) : null;
|
package/commonjs/Modal/styles.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.
|
|
4
|
+
exports.Footer = exports.Header = exports.HeaderContainer = exports.Content = exports.Container = exports.Body = void 0;
|
|
5
5
|
|
|
6
6
|
var _react = _interopRequireDefault(require("react"));
|
|
7
7
|
|
|
@@ -17,8 +17,6 @@ var _systemProps = require("../utils/system-props");
|
|
|
17
17
|
|
|
18
18
|
var _templateObject;
|
|
19
19
|
|
|
20
|
-
var _excluded = ["className"];
|
|
21
|
-
|
|
22
20
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
21
|
|
|
24
22
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -36,7 +34,7 @@ var BODY_PADDING = "64px";
|
|
|
36
34
|
|
|
37
35
|
function ReactModalAdapter(_ref) {
|
|
38
36
|
var className = _ref.className,
|
|
39
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
37
|
+
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
40
38
|
|
|
41
39
|
// We want to create *__Content and *__Overlay class names on the subcomponents.
|
|
42
40
|
// Because `className` could be a space-separated list of class names, we make
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.
|
|
4
|
+
exports.DefaultPrecisions = exports.ABBREV_PRECISION = exports.MAX_PRECISION = exports.COMPARE_OBJECTS = exports.MEMO_CACHE_SIZE = exports.DEFAULT_THRESHOLD = void 0;
|
|
5
5
|
var DEFAULT_THRESHOLD = 10000;
|
|
6
6
|
exports.DEFAULT_THRESHOLD = DEFAULT_THRESHOLD;
|
|
7
7
|
var MEMO_CACHE_SIZE = 10;
|
|
@@ -15,8 +15,6 @@ var _constants = require("./constants");
|
|
|
15
15
|
|
|
16
16
|
var _constants2 = require("../utils/constants");
|
|
17
17
|
|
|
18
|
-
var _excluded = ["number", "locale", "format", "currency", "abbreviate", "precision", "qa"];
|
|
19
|
-
|
|
20
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
19
|
|
|
22
20
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -100,7 +98,7 @@ var normalizeArgs = function normalizeArgs(props) {
|
|
|
100
98
|
abbreviate = _props$abbreviate === void 0 ? true : _props$abbreviate,
|
|
101
99
|
precision = props.precision,
|
|
102
100
|
qa = props.qa,
|
|
103
|
-
rest = _objectWithoutPropertiesLoose(props,
|
|
101
|
+
rest = _objectWithoutPropertiesLoose(props, ["number", "locale", "format", "currency", "abbreviate", "precision", "qa"]);
|
|
104
102
|
|
|
105
103
|
var threshold = getThreshold(abbreviate);
|
|
106
104
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.
|
|
4
|
+
exports.AbbrContainer = exports.Container = void 0;
|
|
5
5
|
|
|
6
6
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
7
7
|
|
|
@@ -11,12 +11,12 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
11
11
|
|
|
12
12
|
var Container = (0, _styledComponents.default)(_Text.default).withConfig({
|
|
13
13
|
displayName: "styles__Container",
|
|
14
|
-
componentId: "
|
|
14
|
+
componentId: "o79gt9-0"
|
|
15
15
|
})(["font-variant-numeric:tabular-nums;"]);
|
|
16
16
|
exports.Container = Container;
|
|
17
17
|
var AbbrContainer = (0, _styledComponents.default)(_Text.default).withConfig({
|
|
18
18
|
displayName: "styles__AbbrContainer",
|
|
19
|
-
componentId: "
|
|
19
|
+
componentId: "o79gt9-1"
|
|
20
20
|
})(["font-variant-numeric:tabular-nums;border-bottom:1px dotted ", ";"], function (props) {
|
|
21
21
|
return props.theme.colors.container.border.base;
|
|
22
22
|
});
|
|
@@ -21,7 +21,7 @@ var Container = (0, _styledComponents.default)(function (props) {
|
|
|
21
21
|
return /*#__PURE__*/React.createElement(_reactVirtualized.List, props);
|
|
22
22
|
}).withConfig({
|
|
23
23
|
displayName: "styles__Container",
|
|
24
|
-
componentId: "
|
|
24
|
+
componentId: "ugoond-0"
|
|
25
25
|
})(["box-sizing:border-box;font-family:", ";", " ", " ", " ", " ", " ", ""], function (_ref) {
|
|
26
26
|
var theme = _ref.theme;
|
|
27
27
|
return theme.fontFamily;
|
package/commonjs/Popout/index.js
CHANGED
|
@@ -22,10 +22,6 @@ var _hooks = require("../utils/hooks");
|
|
|
22
22
|
|
|
23
23
|
var _reactFocusLock = _interopRequireDefault(require("react-focus-lock"));
|
|
24
24
|
|
|
25
|
-
var _excluded = ["isOpen", "setIsOpen", "content", "children", "placement", "fullWidth", "zIndex", "focusOnContent", "onOpen", "onClose", "qa", "popperProps", "scheduleUpdateRef", "appendToBody", "focusLockProps"],
|
|
26
|
-
_excluded2 = ["autoFocus", "returnFocus"],
|
|
27
|
-
_excluded3 = ["children"];
|
|
28
|
-
|
|
29
25
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
30
26
|
|
|
31
27
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -98,7 +94,7 @@ function Popout(_ref) {
|
|
|
98
94
|
appendToBody = _ref$appendToBody === void 0 ? true : _ref$appendToBody,
|
|
99
95
|
_ref$focusLockProps = _ref.focusLockProps,
|
|
100
96
|
focusLockProps = _ref$focusLockProps === void 0 ? {} : _ref$focusLockProps,
|
|
101
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
97
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["isOpen", "setIsOpen", "content", "children", "placement", "fullWidth", "zIndex", "focusOnContent", "onOpen", "onClose", "qa", "popperProps", "scheduleUpdateRef", "appendToBody", "focusLockProps"]);
|
|
102
98
|
|
|
103
99
|
var PopoutComponentWrapper = appendToBody ? _Portal.default : React.Fragment;
|
|
104
100
|
|
|
@@ -128,7 +124,7 @@ function Popout(_ref) {
|
|
|
128
124
|
autoFocus = _focusLockProps$autoF === void 0 ? true : _focusLockProps$autoF,
|
|
129
125
|
_focusLockProps$retur = focusLockProps.returnFocus,
|
|
130
126
|
returnFocus = _focusLockProps$retur === void 0 ? true : _focusLockProps$retur,
|
|
131
|
-
restFocusLockProps = _objectWithoutPropertiesLoose(focusLockProps,
|
|
127
|
+
restFocusLockProps = _objectWithoutPropertiesLoose(focusLockProps, ["autoFocus", "returnFocus"]);
|
|
132
128
|
|
|
133
129
|
var isInvalidContent = content === null || content === undefined; // Callbacks for showing, hiding, and toggling visibility of the popout
|
|
134
130
|
// (Not used when isOpen is passed explicitly)
|
|
@@ -286,7 +282,7 @@ function Popout(_ref) {
|
|
|
286
282
|
|
|
287
283
|
var PopoutContent = function PopoutContent(_ref4) {
|
|
288
284
|
var children = _ref4.children,
|
|
289
|
-
rest = _objectWithoutPropertiesLoose(_ref4,
|
|
285
|
+
rest = _objectWithoutPropertiesLoose(_ref4, ["children"]);
|
|
290
286
|
|
|
291
287
|
return /*#__PURE__*/React.createElement(_Box.default, _extends({
|
|
292
288
|
bg: "container.background.base",
|
|
@@ -12,7 +12,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
12
12
|
// eslint-disable-next-line prettier/prettier
|
|
13
13
|
var TargetWrapper = _styledComponents.default.div.withConfig({
|
|
14
14
|
displayName: "styles__TargetWrapper",
|
|
15
|
-
componentId: "
|
|
15
|
+
componentId: "qo3sn-0"
|
|
16
16
|
})(["display:inline-block;", " ", ""], _systemProps.COMMON, _systemProps.LAYOUT);
|
|
17
17
|
|
|
18
18
|
exports.TargetWrapper = TargetWrapper;
|
package/commonjs/Radio/index.js
CHANGED
|
@@ -7,8 +7,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
7
7
|
|
|
8
8
|
var _styles = _interopRequireWildcard(require("./styles"));
|
|
9
9
|
|
|
10
|
-
var _excluded = ["id", "value", "name", "label", "checked", "disabled", "onChange", "onFocus", "onBlur", "ariaLabel", "qa"];
|
|
11
|
-
|
|
12
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
11
|
|
|
14
12
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -75,7 +73,7 @@ var Radio = /*#__PURE__*/function (_React$Component) {
|
|
|
75
73
|
ariaLabel = _this$props.ariaLabel,
|
|
76
74
|
_this$props$qa = _this$props.qa,
|
|
77
75
|
qa = _this$props$qa === void 0 ? {} : _this$props$qa,
|
|
78
|
-
rest = _objectWithoutPropertiesLoose(_this$props,
|
|
76
|
+
rest = _objectWithoutPropertiesLoose(_this$props, ["id", "value", "name", "label", "checked", "disabled", "onChange", "onFocus", "onBlur", "ariaLabel", "qa"]);
|
|
79
77
|
|
|
80
78
|
return (
|
|
81
79
|
/*#__PURE__*/
|
package/commonjs/Radio/styles.js
CHANGED
|
@@ -19,14 +19,14 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
19
19
|
|
|
20
20
|
var Container = _styledComponents.default.span.withConfig({
|
|
21
21
|
displayName: "styles__Container",
|
|
22
|
-
componentId: "
|
|
22
|
+
componentId: "uyr445-0"
|
|
23
23
|
})(["display:inline-flex;align-items:center;box-sizing:border-box;", ""], _systemProps.COMMON);
|
|
24
24
|
|
|
25
25
|
Container.displayName = "Radio";
|
|
26
26
|
|
|
27
27
|
var Input = _styledComponents.default.input.withConfig({
|
|
28
28
|
displayName: "styles__Input",
|
|
29
|
-
componentId: "
|
|
29
|
+
componentId: "uyr445-1"
|
|
30
30
|
})(["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) {
|
|
31
31
|
return props.disabled ? "not-allowed" : "pointer";
|
|
32
32
|
}, function (props) {
|
|
@@ -48,7 +48,7 @@ Input.displayName = "Input"; // eslint-disable-next-line prettier/prettier
|
|
|
48
48
|
|
|
49
49
|
var InputWrapper = _styledComponents.default.span.withConfig({
|
|
50
50
|
displayName: "styles__InputWrapper",
|
|
51
|
-
componentId: "
|
|
51
|
+
componentId: "uyr445-2"
|
|
52
52
|
})(["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) {
|
|
53
53
|
return props.theme.space[400];
|
|
54
54
|
}, function (props) {
|
|
@@ -73,7 +73,7 @@ exports.InputWrapper = InputWrapper;
|
|
|
73
73
|
InputWrapper.displayName = "InputWrapper";
|
|
74
74
|
var LabelText = (0, _styledComponents.default)(_Text.default).withConfig({
|
|
75
75
|
displayName: "styles__LabelText",
|
|
76
|
-
componentId: "
|
|
76
|
+
componentId: "uyr445-3"
|
|
77
77
|
})(["margin-left:", ";font-size:", ";line-height:1;cursor:", ";color:", ";", ""], function (props) {
|
|
78
78
|
return props.theme.space[300];
|
|
79
79
|
}, function (props) {
|
|
@@ -9,9 +9,6 @@ var _styles = require("./styles");
|
|
|
9
9
|
|
|
10
10
|
var _Box = _interopRequireDefault(require("../Box"));
|
|
11
11
|
|
|
12
|
-
var _excluded = ["value", "children"],
|
|
13
|
-
_excluded2 = ["selectedValue", "label", "onChange", "children"];
|
|
14
|
-
|
|
15
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
13
|
|
|
17
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -29,7 +26,7 @@ var SegmentedControlContext = /*#__PURE__*/React.createContext(null);
|
|
|
29
26
|
var SegmentedControlItem = function SegmentedControlItem(_ref) {
|
|
30
27
|
var value = _ref.value,
|
|
31
28
|
children = _ref.children,
|
|
32
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
29
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["value", "children"]);
|
|
33
30
|
|
|
34
31
|
var context = (0, React.useContext)(SegmentedControlContext);
|
|
35
32
|
|
|
@@ -71,7 +68,7 @@ var SegmentedControl = function SegmentedControl(_ref2) {
|
|
|
71
68
|
label = _ref2.label,
|
|
72
69
|
onChange = _ref2.onChange,
|
|
73
70
|
children = _ref2.children,
|
|
74
|
-
rest = _objectWithoutPropertiesLoose(_ref2,
|
|
71
|
+
rest = _objectWithoutPropertiesLoose(_ref2, ["selectedValue", "label", "onChange", "children"]);
|
|
75
72
|
|
|
76
73
|
var _useState2 = (0, React.useState)("Racine-segmented-control-" + nameCounter++),
|
|
77
74
|
name = _useState2[0];
|
package/commonjs/Select/index.js
CHANGED
|
@@ -9,8 +9,6 @@ var _styles = _interopRequireWildcard(require("./styles"));
|
|
|
9
9
|
|
|
10
10
|
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
11
11
|
|
|
12
|
-
var _excluded = ["id", "name", "children", "defaultValue", "value", "required", "isInvalid", "autoFocus", "disabled", "onChange", "ariaLabel", "ariaDescribedby", "size", "qa", "inputProps"];
|
|
13
|
-
|
|
14
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
13
|
|
|
16
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -69,7 +67,7 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
69
67
|
qa = _this$props$qa === void 0 ? {} : _this$props$qa,
|
|
70
68
|
_this$props$inputProp = _this$props.inputProps,
|
|
71
69
|
inputProps = _this$props$inputProp === void 0 ? {} : _this$props$inputProp,
|
|
72
|
-
rest = _objectWithoutPropertiesLoose(_this$props,
|
|
70
|
+
rest = _objectWithoutPropertiesLoose(_this$props, ["id", "name", "children", "defaultValue", "value", "required", "isInvalid", "autoFocus", "disabled", "onChange", "ariaLabel", "ariaDescribedby", "size", "qa", "inputProps"]);
|
|
73
71
|
|
|
74
72
|
return (
|
|
75
73
|
/*#__PURE__*/
|
package/commonjs/Stack/index.js
CHANGED
|
@@ -9,8 +9,6 @@ var _Box = _interopRequireDefault(require("../Box"));
|
|
|
9
9
|
|
|
10
10
|
var _responsiveProps = require("../utils/responsiveProps");
|
|
11
11
|
|
|
12
|
-
var _excluded = ["children", "space", "align", "direction"];
|
|
13
|
-
|
|
14
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
13
|
|
|
16
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -66,7 +64,7 @@ var Stack = function Stack(_ref) {
|
|
|
66
64
|
align = _ref$align === void 0 ? "left" : _ref$align,
|
|
67
65
|
_ref$direction = _ref.direction,
|
|
68
66
|
direction = _ref$direction === void 0 ? "vertical" : _ref$direction,
|
|
69
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
67
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["children", "space", "align", "direction"]);
|
|
70
68
|
|
|
71
69
|
var stackItems = React.Children.toArray(children);
|
|
72
70
|
var responsiveAlignment = (0, _responsiveProps.normalizeResponsiveProp)(align);
|
package/commonjs/Switch/index.js
CHANGED
|
@@ -11,8 +11,6 @@ var _Icon = _interopRequireDefault(require("../Icon"));
|
|
|
11
11
|
|
|
12
12
|
var _VisuallyHidden = require("../VisuallyHidden");
|
|
13
13
|
|
|
14
|
-
var _excluded = ["checked", "disabled", "name", "a11yLabels", "onClick", "qa"];
|
|
15
|
-
|
|
16
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
15
|
|
|
18
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -67,7 +65,7 @@ var Switch = /*#__PURE__*/function (_React$Component) {
|
|
|
67
65
|
onClick = _this$props2.onClick,
|
|
68
66
|
_this$props2$qa = _this$props2.qa,
|
|
69
67
|
qa = _this$props2$qa === void 0 ? {} : _this$props2$qa,
|
|
70
|
-
rest = _objectWithoutPropertiesLoose(_this$props2,
|
|
68
|
+
rest = _objectWithoutPropertiesLoose(_this$props2, ["checked", "disabled", "name", "a11yLabels", "onClick", "qa"]);
|
|
71
69
|
|
|
72
70
|
return /*#__PURE__*/React.createElement(_styles.default, _extends({
|
|
73
71
|
role: "button",
|
|
@@ -20,7 +20,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
20
20
|
// eslint-disable-next-line prettier/prettier
|
|
21
21
|
var Container = _styledComponents.default.button.withConfig({
|
|
22
22
|
displayName: "styles__Container",
|
|
23
|
-
componentId: "
|
|
23
|
+
componentId: "x5lhuq-0"
|
|
24
24
|
})(["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) {
|
|
25
25
|
return props.theme.space[100];
|
|
26
26
|
}, function (props) {
|
package/commonjs/Table/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.default = exports.TableRow = exports.
|
|
4
|
+
exports.default = exports.TableRow = exports.TableBody = exports.TableHead = exports.Table = void 0;
|
|
5
5
|
|
|
6
6
|
var React = _interopRequireWildcard(require("react"));
|
|
7
7
|
|
|
@@ -11,11 +11,6 @@ var _TableHeaderCell = _interopRequireDefault(require("../TableHeaderCell"));
|
|
|
11
11
|
|
|
12
12
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
13
13
|
|
|
14
|
-
var _excluded = ["head", "rows", "onSort", "sortId", "sortDirection", "rowRender", "children"],
|
|
15
|
-
_excluded2 = ["children"],
|
|
16
|
-
_excluded3 = ["children"],
|
|
17
|
-
_excluded4 = ["children"];
|
|
18
|
-
|
|
19
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
15
|
|
|
21
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -51,7 +46,7 @@ var Table = function Table(_ref) {
|
|
|
51
46
|
sortDirection = _ref.sortDirection,
|
|
52
47
|
rowRender = _ref.rowRender,
|
|
53
48
|
children = _ref.children,
|
|
54
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
49
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["head", "rows", "onSort", "sortId", "sortDirection", "rowRender", "children"]);
|
|
55
50
|
|
|
56
51
|
if (children) {
|
|
57
52
|
return /*#__PURE__*/React.createElement(_styles.default, _extends({}, rest, {
|
|
@@ -79,7 +74,7 @@ exports.Table = Table;
|
|
|
79
74
|
|
|
80
75
|
var TableHead = function TableHead(_ref2) {
|
|
81
76
|
var children = _ref2.children,
|
|
82
|
-
props = _objectWithoutPropertiesLoose(_ref2,
|
|
77
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
83
78
|
|
|
84
79
|
return /*#__PURE__*/React.createElement("thead", props, children);
|
|
85
80
|
};
|
|
@@ -88,7 +83,7 @@ exports.TableHead = TableHead;
|
|
|
88
83
|
|
|
89
84
|
var TableBody = function TableBody(_ref3) {
|
|
90
85
|
var children = _ref3.children,
|
|
91
|
-
props = _objectWithoutPropertiesLoose(_ref3,
|
|
86
|
+
props = _objectWithoutPropertiesLoose(_ref3, ["children"]);
|
|
92
87
|
|
|
93
88
|
return /*#__PURE__*/React.createElement("tbody", props, children);
|
|
94
89
|
};
|
|
@@ -97,7 +92,7 @@ exports.TableBody = TableBody;
|
|
|
97
92
|
|
|
98
93
|
var TableRow = function TableRow(_ref4) {
|
|
99
94
|
var children = _ref4.children,
|
|
100
|
-
props = _objectWithoutPropertiesLoose(_ref4,
|
|
95
|
+
props = _objectWithoutPropertiesLoose(_ref4, ["children"]);
|
|
101
96
|
|
|
102
97
|
return /*#__PURE__*/React.createElement("tr", props, children);
|
|
103
98
|
};
|
|
@@ -7,8 +7,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
7
7
|
|
|
8
8
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
9
9
|
|
|
10
|
-
var _excluded = ["id", "content", "colSpan", "width", "align", "children"];
|
|
11
|
-
|
|
12
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
11
|
|
|
14
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -43,7 +41,7 @@ var TableCell = /*#__PURE__*/function (_React$Component) {
|
|
|
43
41
|
width = _this$props.width,
|
|
44
42
|
align = _this$props.align,
|
|
45
43
|
children = _this$props.children,
|
|
46
|
-
rest = _objectWithoutPropertiesLoose(_this$props,
|
|
44
|
+
rest = _objectWithoutPropertiesLoose(_this$props, ["id", "content", "colSpan", "width", "align", "children"]);
|
|
47
45
|
|
|
48
46
|
return /*#__PURE__*/React.createElement(_styles.default, _extends({}, rest, {
|
|
49
47
|
alignment: align || "left",
|
|
@@ -9,8 +9,6 @@ var _styles = _interopRequireWildcard(require("./styles"));
|
|
|
9
9
|
|
|
10
10
|
var _Icon = _interopRequireDefault(require("../Icon/"));
|
|
11
11
|
|
|
12
|
-
var _excluded = ["id", "content", "colSpan", "width", "align", "isSortable", "shouldTruncate", "onSort", "sortId", "sortDirection", "children", "onClick"];
|
|
13
|
-
|
|
14
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
13
|
|
|
16
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -97,7 +95,7 @@ var TableHeaderCell = /*#__PURE__*/function (_React$Component) {
|
|
|
97
95
|
sortDirection = _this$props2.sortDirection,
|
|
98
96
|
children = _this$props2.children,
|
|
99
97
|
onClick = _this$props2.onClick,
|
|
100
|
-
rest = _objectWithoutPropertiesLoose(_this$props2,
|
|
98
|
+
rest = _objectWithoutPropertiesLoose(_this$props2, ["id", "content", "colSpan", "width", "align", "isSortable", "shouldTruncate", "onSort", "sortId", "sortDirection", "children", "onClick"]);
|
|
101
99
|
|
|
102
100
|
return /*#__PURE__*/React.createElement(_styles.default, _extends({}, rest, {
|
|
103
101
|
key: id,
|
|
@@ -11,8 +11,6 @@ var _Icon = _interopRequireDefault(require("../Icon"));
|
|
|
11
11
|
|
|
12
12
|
var _TableCell = _interopRequireDefault(require("../TableCell"));
|
|
13
13
|
|
|
14
|
-
var _excluded = ["id", "cells", "detail", "onToggle", "isExpanded"];
|
|
15
|
-
|
|
16
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
15
|
|
|
18
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -65,7 +63,7 @@ var TableRowAccordion = /*#__PURE__*/function (_React$Component) {
|
|
|
65
63
|
detail = _this$props2.detail,
|
|
66
64
|
onToggle = _this$props2.onToggle,
|
|
67
65
|
isExpanded = _this$props2.isExpanded,
|
|
68
|
-
rest = _objectWithoutPropertiesLoose(_this$props2,
|
|
66
|
+
rest = _objectWithoutPropertiesLoose(_this$props2, ["id", "cells", "detail", "onToggle", "isExpanded"]);
|
|
69
67
|
|
|
70
68
|
return /*#__PURE__*/React.createElement(_styles.default, _extends({}, rest, {
|
|
71
69
|
"data-qa-table-row-accordion": isExpanded,
|
package/commonjs/Tabs/index.js
CHANGED
|
@@ -7,9 +7,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
7
7
|
|
|
8
8
|
var _styles = _interopRequireWildcard(require("./styles"));
|
|
9
9
|
|
|
10
|
-
var _excluded = ["children", "id"],
|
|
11
|
-
_excluded2 = ["children", "qa"];
|
|
12
|
-
|
|
13
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
11
|
|
|
15
12
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -60,7 +57,7 @@ var TabItemButton = /*#__PURE__*/function (_React$Component) {
|
|
|
60
57
|
var _this$props = this.props,
|
|
61
58
|
children = _this$props.children,
|
|
62
59
|
id = _this$props.id,
|
|
63
|
-
rest = _objectWithoutPropertiesLoose(_this$props,
|
|
60
|
+
rest = _objectWithoutPropertiesLoose(_this$props, ["children", "id"]);
|
|
64
61
|
|
|
65
62
|
var _this$context = this.context,
|
|
66
63
|
selectedId = _this$context.selectedId,
|
|
@@ -197,7 +194,7 @@ var Tabs = /*#__PURE__*/function (_React$Component2) {
|
|
|
197
194
|
var _this$props2 = this.props,
|
|
198
195
|
children = _this$props2.children,
|
|
199
196
|
qa = _this$props2.qa,
|
|
200
|
-
rest = _objectWithoutPropertiesLoose(_this$props2,
|
|
197
|
+
rest = _objectWithoutPropertiesLoose(_this$props2, ["children", "qa"]);
|
|
201
198
|
|
|
202
199
|
return (
|
|
203
200
|
/*#__PURE__*/
|
package/commonjs/Tabs/styles.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.default = exports.
|
|
4
|
+
exports.default = exports.TabButton = exports.TabItem = void 0;
|
|
5
5
|
|
|
6
6
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
7
7
|
|
|
@@ -17,7 +17,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
17
17
|
|
|
18
18
|
var Container = _styledComponents.default.ul.withConfig({
|
|
19
19
|
displayName: "styles__Container",
|
|
20
|
-
componentId: "
|
|
20
|
+
componentId: "vnjuiu-0"
|
|
21
21
|
})(["display:", ";justify-content:space-between;margin:0;padding:0;list-style:none;border-bottom:", " ", ";", ""], function (props) {
|
|
22
22
|
return props.fullWidth ? "flex" : "inline-flex";
|
|
23
23
|
}, function (props) {
|
|
@@ -28,7 +28,7 @@ var Container = _styledComponents.default.ul.withConfig({
|
|
|
28
28
|
|
|
29
29
|
var TabItem = _styledComponents.default.li.withConfig({
|
|
30
30
|
displayName: "styles__TabItem",
|
|
31
|
-
componentId: "
|
|
31
|
+
componentId: "vnjuiu-1"
|
|
32
32
|
})(["margin-bottom:-1px;", ";&:not(:last-child){", ";}", ";&:hover{", ";}"], function (props) {
|
|
33
33
|
return props.fullWidth && (0, _styledComponents.css)(["flex-grow:1;"]);
|
|
34
34
|
}, function (props) {
|
|
@@ -49,7 +49,7 @@ var TabItem = _styledComponents.default.li.withConfig({
|
|
|
49
49
|
exports.TabItem = TabItem;
|
|
50
50
|
var TabButton = (0, _styledComponents.default)(_Button.default).withConfig({
|
|
51
51
|
displayName: "styles__TabButton",
|
|
52
|
-
componentId: "
|
|
52
|
+
componentId: "vnjuiu-2"
|
|
53
53
|
})(["padding:", ";color:", ";width:100%;", ";&:hover{", ";}&:active{transform:none;}"], function (props) {
|
|
54
54
|
return props.theme.space[350] + " 0";
|
|
55
55
|
}, function (props) {
|
package/commonjs/Text/index.js
CHANGED
|
@@ -9,8 +9,6 @@ var _styles = _interopRequireDefault(require("./styles"));
|
|
|
9
9
|
|
|
10
10
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
11
|
|
|
12
|
-
var _excluded = ["fontSize", "children", "qa"];
|
|
13
|
-
|
|
14
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
13
|
|
|
16
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -88,7 +86,7 @@ var Text = function Text(_ref) {
|
|
|
88
86
|
var fontSize = _ref.fontSize,
|
|
89
87
|
children = _ref.children,
|
|
90
88
|
qa = _ref.qa,
|
|
91
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
89
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["fontSize", "children", "qa"]);
|
|
92
90
|
|
|
93
91
|
var qaText = typeof children === "string" ? children : undefined;
|
|
94
92
|
return (
|
package/commonjs/Text/styles.js
CHANGED
|
@@ -13,7 +13,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
13
13
|
|
|
14
14
|
var Container = _styledComponents.default.span.withConfig({
|
|
15
15
|
displayName: "styles__Container",
|
|
16
|
-
componentId: "
|
|
16
|
+
componentId: "mmg963-0"
|
|
17
17
|
})(["margin:0;padding-left:0;padding-right:0;font-family:", ";font-style:", ";", " ", " ", " ", " ", ""], function (props) {
|
|
18
18
|
return props.theme.fontFamily;
|
|
19
19
|
}, function (props) {
|
|
@@ -7,8 +7,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
7
7
|
|
|
8
8
|
var _styles = _interopRequireWildcard(require("./styles"));
|
|
9
9
|
|
|
10
|
-
var _excluded = ["autoFocus", "disabled", "readOnly", "isInvalid", "id", "name", "placeholder", "value", "enableSpellcheck", "enableResize", "required", "rows", "elemBefore", "elemAfter", "maxLength", "ariaLabel", "ariaDescribedby", "innerRef", "onBlur", "onChange", "onFocus", "onKeyDown", "onKeyUp", "qa", "inputProps"];
|
|
11
|
-
|
|
12
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
11
|
|
|
14
12
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -97,7 +95,7 @@ var Textarea = /*#__PURE__*/function (_React$Component) {
|
|
|
97
95
|
qa = _this$props$qa === void 0 ? {} : _this$props$qa,
|
|
98
96
|
_this$props$inputProp = _this$props.inputProps,
|
|
99
97
|
inputProps = _this$props$inputProp === void 0 ? {} : _this$props$inputProp,
|
|
100
|
-
rest = _objectWithoutPropertiesLoose(_this$props,
|
|
98
|
+
rest = _objectWithoutPropertiesLoose(_this$props, ["autoFocus", "disabled", "readOnly", "isInvalid", "id", "name", "placeholder", "value", "enableSpellcheck", "enableResize", "required", "rows", "elemBefore", "elemAfter", "maxLength", "ariaLabel", "ariaDescribedby", "innerRef", "onBlur", "onChange", "onFocus", "onKeyDown", "onKeyUp", "qa", "inputProps"]);
|
|
101
99
|
|
|
102
100
|
return /*#__PURE__*/React.createElement(_styles.default, _extends({
|
|
103
101
|
hasBeforeElement: !!elemBefore,
|
package/commonjs/Toast/index.js
CHANGED
package/commonjs/Toast/styles.js
CHANGED
|
@@ -23,7 +23,7 @@ function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.s
|
|
|
23
23
|
|
|
24
24
|
var Container = (0, _styledComponents.default)(_Box.default).withConfig({
|
|
25
25
|
displayName: "styles__Container",
|
|
26
|
-
componentId: "
|
|
26
|
+
componentId: "wp5x29-0"
|
|
27
27
|
})(["display:flex;align-items:center;font-family:", ";", " position:relative;background:", ";border-left:2px solid ", ";"], function (p) {
|
|
28
28
|
return p.theme.fontFamily;
|
|
29
29
|
}, function (p) {
|
|
@@ -35,7 +35,7 @@ var Container = (0, _styledComponents.default)(_Box.default).withConfig({
|
|
|
35
35
|
});
|
|
36
36
|
var CustomIcon = (0, _styledComponents.default)(_Icon.default).withConfig({
|
|
37
37
|
displayName: "styles__CustomIcon",
|
|
38
|
-
componentId: "
|
|
38
|
+
componentId: "wp5x29-1"
|
|
39
39
|
})(["margin-right:", ";transform:translateY(4px);color:", ";"], function (props) {
|
|
40
40
|
return props.theme.space[400];
|
|
41
41
|
}, function (p) {
|
|
@@ -9,8 +9,6 @@ var _Icon = _interopRequireDefault(require("../Icon"));
|
|
|
9
9
|
|
|
10
10
|
var _styles = _interopRequireWildcard(require("./styles"));
|
|
11
11
|
|
|
12
|
-
var _excluded = ["icon", "isOpen", "openString", "closeString", "qa", "className"];
|
|
13
|
-
|
|
14
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
13
|
|
|
16
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -65,7 +63,7 @@ var ToggleHint = /*#__PURE__*/function (_React$Component) {
|
|
|
65
63
|
closeString = _this$props.closeString,
|
|
66
64
|
qa = _this$props.qa,
|
|
67
65
|
className = _this$props.className,
|
|
68
|
-
rest = _objectWithoutPropertiesLoose(_this$props,
|
|
66
|
+
rest = _objectWithoutPropertiesLoose(_this$props, ["icon", "isOpen", "openString", "closeString", "qa", "className"]);
|
|
69
67
|
|
|
70
68
|
return /*#__PURE__*/React.createElement(_styles.default, _extends({
|
|
71
69
|
icon: icon,
|