@sproutsocial/racine 11.4.0 → 11.4.2-input-beta.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 +8 -0
- package/__flow__/Input/index.js +34 -9
- package/__flow__/Input/index.stories.js +14 -0
- package/__flow__/Input/index.test.js +18 -0
- package/__flow__/utils/index.js +23 -0
- package/commonjs/Avatar/index.js +7 -4
- package/commonjs/Badge/index.js +3 -1
- package/commonjs/Badge/styles.js +1 -1
- package/commonjs/Banner/index.js +3 -1
- package/commonjs/Banner/styles.js +1 -1
- package/commonjs/Box/styles.js +1 -1
- package/commonjs/Breadcrumb/index.js +5 -2
- package/commonjs/Button/index.js +3 -1
- package/commonjs/Card/index.js +3 -1
- package/commonjs/Card/styles.js +3 -3
- package/commonjs/CharacterCounter/index.js +3 -1
- package/commonjs/CharacterCounter/styles.js +1 -1
- package/commonjs/ChartLegend/index.js +3 -1
- package/commonjs/ChartLegend/styles.js +3 -3
- package/commonjs/Checkbox/index.js +3 -1
- package/commonjs/Checkbox/styles.js +1 -1
- package/commonjs/Collapsible/index.js +5 -2
- package/commonjs/DatePicker/DateRangePicker.js +3 -1
- package/commonjs/DatePicker/SingleDatePicker.js +3 -1
- package/commonjs/DatePicker/StatefulDateRangePicker.js +3 -1
- package/commonjs/DatePicker/StatefulSingleDatePicker.js +3 -1
- package/commonjs/DatePicker/common.js +1 -1
- package/commonjs/DatePicker/styles.js +2 -6
- package/commonjs/Drawer/SlideTransition.js +3 -1
- package/commonjs/Drawer/index.js +9 -4
- package/commonjs/Drawer/styles.js +2 -2
- package/commonjs/EmptyState/index.js +3 -1
- package/commonjs/Fieldset/index.js +7 -3
- package/commonjs/FormField/index.js +3 -1
- package/commonjs/Icon/index.js +5 -2
- package/commonjs/Icon/styles.js +1 -1
- package/commonjs/Image/index.js +3 -1
- package/commonjs/Image/styles.js +1 -1
- package/commonjs/Indicator/index.js +3 -1
- package/commonjs/Input/index.js +32 -18
- package/commonjs/Input/styles.js +2 -2
- package/commonjs/KeyboardKey/index.js +3 -1
- package/commonjs/Label/index.js +4 -2
- package/commonjs/Link/index.js +3 -1
- package/commonjs/Link/styles.js +1 -1
- package/commonjs/Listbox/index.js +7 -4
- package/commonjs/Loader/index.js +3 -1
- package/commonjs/Loader/styles.js +2 -2
- package/commonjs/LoaderButton/index.js +3 -1
- package/commonjs/Menu/constants.js +1 -1
- package/commonjs/Menu/descendants.js +10 -7
- package/commonjs/Menu/hooks.js +1 -1
- package/commonjs/Menu/index.js +22 -16
- package/commonjs/Menu/styles.js +2 -2
- package/commonjs/Message/index.js +3 -1
- package/commonjs/Message/styles.js +1 -1
- package/commonjs/Modal/index.js +7 -3
- package/commonjs/Modal/styles.js +4 -6
- package/commonjs/Numeral/constants.js +1 -1
- package/commonjs/Numeral/index.js +3 -1
- package/commonjs/Numeral/styles.js +3 -3
- package/commonjs/OverflowList/styles.js +1 -1
- package/commonjs/Popout/index.js +7 -3
- package/commonjs/Popout/styles.js +1 -1
- package/commonjs/Radio/index.js +3 -1
- package/commonjs/Radio/styles.js +4 -4
- package/commonjs/SegmentedControl/index.js +5 -2
- package/commonjs/Select/index.js +3 -1
- package/commonjs/Stack/index.js +3 -1
- package/commonjs/Switch/index.js +3 -1
- package/commonjs/Switch/styles.js +1 -1
- package/commonjs/Table/index.js +10 -5
- package/commonjs/TableCell/index.js +3 -1
- package/commonjs/TableHeaderCell/index.js +3 -1
- package/commonjs/TableRowAccordion/index.js +3 -1
- package/commonjs/Tabs/index.js +5 -2
- package/commonjs/Tabs/styles.js +4 -4
- package/commonjs/Text/index.js +3 -1
- package/commonjs/Text/styles.js +1 -1
- package/commonjs/Textarea/index.js +3 -1
- package/commonjs/Toast/index.js +15 -15
- package/commonjs/Toast/styles.js +4 -7
- package/commonjs/ToggleHint/index.js +3 -1
- package/commonjs/Token/index.js +3 -1
- package/commonjs/Token/styles.js +1 -1
- package/commonjs/TokenInput/index.js +3 -1
- package/commonjs/Tooltip/index.js +5 -2
- 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 +3 -2
- package/commonjs/utils/index.js +29 -2
- 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 +7 -4
- package/lib/Badge/index.js +3 -1
- package/lib/Badge/styles.js +1 -1
- package/lib/Banner/index.js +3 -1
- package/lib/Banner/styles.js +1 -1
- package/lib/Box/styles.js +1 -1
- package/lib/Breadcrumb/index.js +5 -2
- package/lib/Button/index.js +3 -1
- package/lib/Card/index.js +3 -1
- package/lib/Card/styles.js +2 -2
- package/lib/CharacterCounter/index.js +3 -1
- package/lib/CharacterCounter/styles.js +1 -1
- package/lib/ChartLegend/index.js +3 -1
- package/lib/ChartLegend/styles.js +3 -3
- package/lib/Checkbox/index.js +3 -1
- package/lib/Collapsible/index.js +5 -2
- package/lib/DatePicker/DateRangePicker.js +3 -1
- package/lib/DatePicker/SingleDatePicker.js +3 -1
- package/lib/DatePicker/StatefulDateRangePicker.js +3 -1
- package/lib/DatePicker/StatefulSingleDatePicker.js +3 -1
- package/lib/DatePicker/styles.js +2 -6
- package/lib/Drawer/SlideTransition.js +3 -1
- package/lib/Drawer/index.js +9 -4
- package/lib/Drawer/styles.js +2 -2
- package/lib/EmptyState/index.js +3 -1
- package/lib/Fieldset/index.js +7 -3
- package/lib/FormField/index.js +3 -1
- package/lib/Icon/index.js +5 -2
- package/lib/Icon/styles.js +1 -1
- package/lib/Image/index.js +3 -1
- package/lib/Image/styles.js +1 -1
- package/lib/Indicator/index.js +3 -1
- package/lib/Input/index.js +31 -18
- package/lib/Input/styles.js +2 -2
- package/lib/KeyboardKey/index.js +3 -1
- package/lib/Label/index.js +4 -2
- package/lib/Link/index.js +3 -1
- package/lib/Link/styles.js +1 -1
- package/lib/Listbox/index.js +6 -3
- package/lib/Loader/index.js +3 -1
- package/lib/Loader/styles.js +2 -2
- package/lib/LoaderButton/index.js +3 -1
- package/lib/Menu/descendants.js +5 -2
- package/lib/Menu/index.js +20 -16
- package/lib/Menu/styles.js +2 -2
- package/lib/Message/index.js +3 -1
- package/lib/Modal/index.js +7 -3
- package/lib/Modal/styles.js +3 -5
- package/lib/Numeral/index.js +3 -1
- package/lib/Numeral/styles.js +2 -2
- package/lib/OverflowList/styles.js +1 -1
- package/lib/Popout/index.js +7 -3
- package/lib/Popout/styles.js +1 -1
- package/lib/Radio/index.js +3 -1
- package/lib/Radio/styles.js +4 -4
- package/lib/SegmentedControl/index.js +5 -2
- package/lib/Select/index.js +3 -1
- package/lib/Stack/index.js +3 -1
- package/lib/Switch/index.js +3 -1
- package/lib/Switch/styles.js +1 -1
- package/lib/Table/index.js +9 -4
- package/lib/TableCell/index.js +3 -1
- package/lib/TableHeaderCell/index.js +3 -1
- package/lib/TableRowAccordion/index.js +3 -1
- package/lib/Tabs/index.js +5 -2
- package/lib/Tabs/styles.js +3 -3
- package/lib/Text/index.js +3 -1
- package/lib/Text/styles.js +1 -1
- package/lib/Textarea/index.js +3 -1
- package/lib/Toast/index.js +14 -14
- package/lib/Toast/styles.js +3 -7
- package/lib/ToggleHint/index.js +3 -1
- package/lib/Token/index.js +3 -1
- package/lib/Token/styles.js +1 -1
- package/lib/TokenInput/index.js +3 -1
- package/lib/Tooltip/index.js +5 -2
- package/lib/Tooltip/styles.js +1 -1
- package/lib/VisuallyHidden/index.js +1 -1
- package/lib/utils/index.js +24 -0
- package/package.json +1 -1
package/lib/Message/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
var _excluded = ["children", "density", "borderColor", "bg", "indentContent", "innerRef", "qa"];
|
|
2
|
+
|
|
1
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
4
|
|
|
3
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -52,7 +54,7 @@ var Message = function Message(_ref) {
|
|
|
52
54
|
indentContent = _ref$indentContent === void 0 ? true : _ref$indentContent,
|
|
53
55
|
innerRef = _ref.innerRef,
|
|
54
56
|
qa = _ref.qa,
|
|
55
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
57
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
56
58
|
|
|
57
59
|
return /*#__PURE__*/React.createElement(MessageContext.Provider, {
|
|
58
60
|
value: {
|
package/lib/Modal/index.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
var _excluded = ["title", "subtitle", "children", "bordered"],
|
|
2
|
+
_excluded2 = ["children"],
|
|
3
|
+
_excluded3 = ["appElementSelector", "children", "isOpen", "label", "onClose", "closeButtonLabel", "width", "zIndex"];
|
|
4
|
+
|
|
1
5
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
6
|
|
|
3
7
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -16,7 +20,7 @@ var ModalHeader = function ModalHeader(props) {
|
|
|
16
20
|
subtitle = props.subtitle,
|
|
17
21
|
children = props.children,
|
|
18
22
|
bordered = props.bordered,
|
|
19
|
-
rest = _objectWithoutPropertiesLoose(props,
|
|
23
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded);
|
|
20
24
|
|
|
21
25
|
return (
|
|
22
26
|
/*#__PURE__*/
|
|
@@ -71,7 +75,7 @@ ModalFooter.defaultProps = {
|
|
|
71
75
|
var ModalContent = /*#__PURE__*/React.forwardRef( // $FlowIssue - upgrade v0.112.0
|
|
72
76
|
function (_ref, ref) {
|
|
73
77
|
var children = _ref.children,
|
|
74
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
78
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded2);
|
|
75
79
|
|
|
76
80
|
var _useContext2 = useContext(ModalContext),
|
|
77
81
|
label = _useContext2.label;
|
|
@@ -95,7 +99,7 @@ var Modal = function Modal(props) {
|
|
|
95
99
|
closeButtonLabel = props.closeButtonLabel,
|
|
96
100
|
width = props.width,
|
|
97
101
|
zIndex = props.zIndex,
|
|
98
|
-
rest = _objectWithoutPropertiesLoose(props,
|
|
102
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded3);
|
|
99
103
|
|
|
100
104
|
var isCloseable = Boolean(onClose);
|
|
101
105
|
var appElement = appElementSelector && document ? document.querySelector(appElementSelector) : null;
|
package/lib/Modal/styles.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }
|
|
1
|
+
var _excluded = ["className"];
|
|
4
2
|
|
|
5
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
6
4
|
|
|
@@ -17,7 +15,7 @@ var BODY_PADDING = "64px";
|
|
|
17
15
|
|
|
18
16
|
function ReactModalAdapter(_ref) {
|
|
19
17
|
var className = _ref.className,
|
|
20
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
18
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
21
19
|
|
|
22
20
|
// We want to create *__Content and *__Overlay class names on the subcomponents.
|
|
23
21
|
// Because `className` could be a space-separated list of class names, we make
|
|
@@ -36,7 +34,7 @@ function ReactModalAdapter(_ref) {
|
|
|
36
34
|
}, props));
|
|
37
35
|
}
|
|
38
36
|
|
|
39
|
-
export var Body = createGlobalStyle(
|
|
37
|
+
export var Body = createGlobalStyle([".ReactModal__Body--open{overflow:hidden;}"]); // eslint-disable-next-line prettier/prettier
|
|
40
38
|
|
|
41
39
|
export var Container = styled(ReactModalAdapter).withConfig({
|
|
42
40
|
displayName: "styles__Container",
|
package/lib/Numeral/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
var _excluded = ["number", "locale", "format", "currency", "abbreviate", "precision", "qa"];
|
|
2
|
+
|
|
1
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
4
|
|
|
3
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -82,7 +84,7 @@ var normalizeArgs = function normalizeArgs(props) {
|
|
|
82
84
|
abbreviate = _props$abbreviate === void 0 ? true : _props$abbreviate,
|
|
83
85
|
precision = props.precision,
|
|
84
86
|
qa = props.qa,
|
|
85
|
-
rest = _objectWithoutPropertiesLoose(props,
|
|
87
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded);
|
|
86
88
|
|
|
87
89
|
var threshold = getThreshold(abbreviate);
|
|
88
90
|
|
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: "o79gt9-0"
|
|
5
|
+
componentId: "sc-o79gt9-0"
|
|
6
6
|
})(["font-variant-numeric:tabular-nums;"]);
|
|
7
7
|
export var AbbrContainer = styled(Text).withConfig({
|
|
8
8
|
displayName: "styles__AbbrContainer",
|
|
9
|
-
componentId: "o79gt9-1"
|
|
9
|
+
componentId: "sc-o79gt9-1"
|
|
10
10
|
})(["font-variant-numeric:tabular-nums;border-bottom:1px dotted ", ";"], function (props) {
|
|
11
11
|
return props.theme.colors.container.border.base;
|
|
12
12
|
});
|
|
@@ -6,7 +6,7 @@ var Container = styled(function (props) {
|
|
|
6
6
|
return /*#__PURE__*/React.createElement(List, props);
|
|
7
7
|
}).withConfig({
|
|
8
8
|
displayName: "styles__Container",
|
|
9
|
-
componentId: "ugoond-0"
|
|
9
|
+
componentId: "sc-ugoond-0"
|
|
10
10
|
})(["box-sizing:border-box;font-family:", ";", " ", " ", " ", " ", " ", ""], function (_ref) {
|
|
11
11
|
var theme = _ref.theme;
|
|
12
12
|
return theme.fontFamily;
|
package/lib/Popout/index.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
var _excluded = ["isOpen", "setIsOpen", "content", "children", "placement", "fullWidth", "zIndex", "focusOnContent", "onOpen", "onClose", "qa", "popperProps", "scheduleUpdateRef", "appendToBody", "focusLockProps"],
|
|
2
|
+
_excluded2 = ["autoFocus", "returnFocus"],
|
|
3
|
+
_excluded3 = ["children"];
|
|
4
|
+
|
|
1
5
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
6
|
|
|
3
7
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -71,7 +75,7 @@ export default function Popout(_ref) {
|
|
|
71
75
|
appendToBody = _ref$appendToBody === void 0 ? true : _ref$appendToBody,
|
|
72
76
|
_ref$focusLockProps = _ref.focusLockProps,
|
|
73
77
|
focusLockProps = _ref$focusLockProps === void 0 ? {} : _ref$focusLockProps,
|
|
74
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
78
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
75
79
|
|
|
76
80
|
var PopoutComponentWrapper = appendToBody ? Portal : React.Fragment;
|
|
77
81
|
|
|
@@ -101,7 +105,7 @@ export default function Popout(_ref) {
|
|
|
101
105
|
autoFocus = _focusLockProps$autoF === void 0 ? true : _focusLockProps$autoF,
|
|
102
106
|
_focusLockProps$retur = focusLockProps.returnFocus,
|
|
103
107
|
returnFocus = _focusLockProps$retur === void 0 ? true : _focusLockProps$retur,
|
|
104
|
-
restFocusLockProps = _objectWithoutPropertiesLoose(focusLockProps,
|
|
108
|
+
restFocusLockProps = _objectWithoutPropertiesLoose(focusLockProps, _excluded2);
|
|
105
109
|
|
|
106
110
|
var isInvalidContent = content === null || content === undefined; // Callbacks for showing, hiding, and toggling visibility of the popout
|
|
107
111
|
// (Not used when isOpen is passed explicitly)
|
|
@@ -259,7 +263,7 @@ export default function Popout(_ref) {
|
|
|
259
263
|
|
|
260
264
|
var PopoutContent = function PopoutContent(_ref4) {
|
|
261
265
|
var children = _ref4.children,
|
|
262
|
-
rest = _objectWithoutPropertiesLoose(_ref4,
|
|
266
|
+
rest = _objectWithoutPropertiesLoose(_ref4, _excluded3);
|
|
263
267
|
|
|
264
268
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
265
269
|
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: "qo3sn-0"
|
|
6
|
+
componentId: "sc-qo3sn-0"
|
|
7
7
|
})(["display:inline-block;", " ", ""], COMMON, LAYOUT);
|
package/lib/Radio/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
var _excluded = ["id", "value", "name", "label", "checked", "disabled", "onChange", "onFocus", "onBlur", "ariaLabel", "qa"];
|
|
2
|
+
|
|
1
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
4
|
|
|
3
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -63,7 +65,7 @@ var Radio = /*#__PURE__*/function (_React$Component) {
|
|
|
63
65
|
ariaLabel = _this$props.ariaLabel,
|
|
64
66
|
_this$props$qa = _this$props.qa,
|
|
65
67
|
qa = _this$props$qa === void 0 ? {} : _this$props$qa,
|
|
66
|
-
rest = _objectWithoutPropertiesLoose(_this$props,
|
|
68
|
+
rest = _objectWithoutPropertiesLoose(_this$props, _excluded);
|
|
67
69
|
|
|
68
70
|
return (
|
|
69
71
|
/*#__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: "uyr445-0"
|
|
7
|
+
componentId: "sc-uyr445-0"
|
|
8
8
|
})(["display:inline-flex;align-items:center;box-sizing:border-box;", ""], COMMON);
|
|
9
9
|
Container.displayName = "Radio";
|
|
10
10
|
export var Input = styled.input.withConfig({
|
|
11
11
|
displayName: "styles__Input",
|
|
12
|
-
componentId: "uyr445-1"
|
|
12
|
+
componentId: "sc-uyr445-1"
|
|
13
13
|
})(["box-sizing:border-box;position:absolute;top:0;left:0;width:100%;height:100%;margin:0;appearance:none;cursor:", ";border:1px solid ", ";border-radius:50%;background-color:", ";transition:border-color ", " ", ",background-color ", " ", ";&:focus{", "}"], function (props) {
|
|
14
14
|
return props.disabled ? "not-allowed" : "pointer";
|
|
15
15
|
}, function (props) {
|
|
@@ -29,7 +29,7 @@ Input.displayName = "Input"; // eslint-disable-next-line prettier/prettier
|
|
|
29
29
|
|
|
30
30
|
export var InputWrapper = styled.span.withConfig({
|
|
31
31
|
displayName: "styles__InputWrapper",
|
|
32
|
-
componentId: "uyr445-2"
|
|
32
|
+
componentId: "sc-uyr445-2"
|
|
33
33
|
})(["position:relative;width:", ";height:", ";cursor:", ";", " &:before{content:\"\";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:6px;height:6px;border-radius:50%;opacity:0;transition:opacity ", " ", ";z-index:1;pointer-events:none;cursor:", ";}", " ", ""], function (props) {
|
|
34
34
|
return props.theme.space[400];
|
|
35
35
|
}, function (props) {
|
|
@@ -52,7 +52,7 @@ export var InputWrapper = styled.span.withConfig({
|
|
|
52
52
|
InputWrapper.displayName = "InputWrapper";
|
|
53
53
|
export var LabelText = styled(Text).withConfig({
|
|
54
54
|
displayName: "styles__LabelText",
|
|
55
|
-
componentId: "uyr445-3"
|
|
55
|
+
componentId: "sc-uyr445-3"
|
|
56
56
|
})(["margin-left:", ";font-size:", ";line-height:1;cursor:", ";color:", ";", ""], function (props) {
|
|
57
57
|
return props.theme.space[300];
|
|
58
58
|
}, function (props) {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
var _excluded = ["value", "children"],
|
|
2
|
+
_excluded2 = ["selectedValue", "label", "onChange", "children"];
|
|
3
|
+
|
|
1
4
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
5
|
|
|
3
6
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -13,7 +16,7 @@ var SegmentedControlContext = /*#__PURE__*/React.createContext(null);
|
|
|
13
16
|
var SegmentedControlItem = function SegmentedControlItem(_ref) {
|
|
14
17
|
var value = _ref.value,
|
|
15
18
|
children = _ref.children,
|
|
16
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
19
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
17
20
|
|
|
18
21
|
var context = useContext(SegmentedControlContext);
|
|
19
22
|
|
|
@@ -55,7 +58,7 @@ var SegmentedControl = function SegmentedControl(_ref2) {
|
|
|
55
58
|
label = _ref2.label,
|
|
56
59
|
onChange = _ref2.onChange,
|
|
57
60
|
children = _ref2.children,
|
|
58
|
-
rest = _objectWithoutPropertiesLoose(_ref2,
|
|
61
|
+
rest = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
59
62
|
|
|
60
63
|
var _useState2 = useState("Racine-segmented-control-" + nameCounter++),
|
|
61
64
|
name = _useState2[0];
|
package/lib/Select/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
var _excluded = ["id", "name", "children", "defaultValue", "value", "required", "isInvalid", "autoFocus", "disabled", "onChange", "ariaLabel", "ariaDescribedby", "size", "qa", "inputProps"];
|
|
2
|
+
|
|
1
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
4
|
|
|
3
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -54,7 +56,7 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
54
56
|
qa = _this$props$qa === void 0 ? {} : _this$props$qa,
|
|
55
57
|
_this$props$inputProp = _this$props.inputProps,
|
|
56
58
|
inputProps = _this$props$inputProp === void 0 ? {} : _this$props$inputProp,
|
|
57
|
-
rest = _objectWithoutPropertiesLoose(_this$props,
|
|
59
|
+
rest = _objectWithoutPropertiesLoose(_this$props, _excluded);
|
|
58
60
|
|
|
59
61
|
return (
|
|
60
62
|
/*#__PURE__*/
|
package/lib/Stack/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
var _excluded = ["children", "space", "align", "direction"];
|
|
2
|
+
|
|
1
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
4
|
|
|
3
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -51,7 +53,7 @@ var Stack = function Stack(_ref) {
|
|
|
51
53
|
align = _ref$align === void 0 ? "left" : _ref$align,
|
|
52
54
|
_ref$direction = _ref.direction,
|
|
53
55
|
direction = _ref$direction === void 0 ? "vertical" : _ref$direction,
|
|
54
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
56
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
55
57
|
|
|
56
58
|
var stackItems = Children.toArray(children);
|
|
57
59
|
var responsiveAlignment = normalizeResponsiveProp(align);
|
package/lib/Switch/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
var _excluded = ["checked", "disabled", "name", "a11yLabels", "onClick", "qa"];
|
|
2
|
+
|
|
1
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
4
|
|
|
3
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -51,7 +53,7 @@ var Switch = /*#__PURE__*/function (_React$Component) {
|
|
|
51
53
|
onClick = _this$props2.onClick,
|
|
52
54
|
_this$props2$qa = _this$props2.qa,
|
|
53
55
|
qa = _this$props2$qa === void 0 ? {} : _this$props2$qa,
|
|
54
|
-
rest = _objectWithoutPropertiesLoose(_this$props2,
|
|
56
|
+
rest = _objectWithoutPropertiesLoose(_this$props2, _excluded);
|
|
55
57
|
|
|
56
58
|
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
57
59
|
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: "x5lhuq-0"
|
|
8
|
+
componentId: "sc-x5lhuq-0"
|
|
9
9
|
})(["position:relative;display:inline-block;width:36px;height:22px;margin:0;padding:", " ", ";vertical-align:middle;appearance:none;background-color:", ";border-radius:11px;outline:none;cursor:pointer;transition:background-color ", " ", ";border:1px solid ", ";white-space:nowrap;overflow:hidden;&::after{position:absolute;top:50%;left:0;width:14px;height:14px;background-color:", ";opacity:0.64;border-radius:50%;content:\"\";transition:transform ", " ", ";transform:translate(4px,-50%);}&:focus{", "}", " ", " ", ""], function (props) {
|
|
10
10
|
return props.theme.space[100];
|
|
11
11
|
}, function (props) {
|
package/lib/Table/index.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
var _excluded = ["head", "rows", "onSort", "sortId", "sortDirection", "rowRender", "children"],
|
|
2
|
+
_excluded2 = ["children"],
|
|
3
|
+
_excluded3 = ["children"],
|
|
4
|
+
_excluded4 = ["children"];
|
|
5
|
+
|
|
1
6
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
2
7
|
|
|
3
8
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -32,7 +37,7 @@ export var Table = function Table(_ref) {
|
|
|
32
37
|
sortDirection = _ref.sortDirection,
|
|
33
38
|
rowRender = _ref.rowRender,
|
|
34
39
|
children = _ref.children,
|
|
35
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
40
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
36
41
|
|
|
37
42
|
if (children) {
|
|
38
43
|
return /*#__PURE__*/React.createElement(Container, _extends({}, rest, {
|
|
@@ -57,19 +62,19 @@ export var Table = function Table(_ref) {
|
|
|
57
62
|
};
|
|
58
63
|
export var TableHead = function TableHead(_ref2) {
|
|
59
64
|
var children = _ref2.children,
|
|
60
|
-
props = _objectWithoutPropertiesLoose(_ref2,
|
|
65
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
61
66
|
|
|
62
67
|
return /*#__PURE__*/React.createElement("thead", props, children);
|
|
63
68
|
};
|
|
64
69
|
export var TableBody = function TableBody(_ref3) {
|
|
65
70
|
var children = _ref3.children,
|
|
66
|
-
props = _objectWithoutPropertiesLoose(_ref3,
|
|
71
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3);
|
|
67
72
|
|
|
68
73
|
return /*#__PURE__*/React.createElement("tbody", props, children);
|
|
69
74
|
};
|
|
70
75
|
export var TableRow = function TableRow(_ref4) {
|
|
71
76
|
var children = _ref4.children,
|
|
72
|
-
props = _objectWithoutPropertiesLoose(_ref4,
|
|
77
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4);
|
|
73
78
|
|
|
74
79
|
return /*#__PURE__*/React.createElement("tr", props, children);
|
|
75
80
|
};
|
package/lib/TableCell/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
var _excluded = ["id", "content", "colSpan", "width", "align", "children"];
|
|
2
|
+
|
|
1
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
4
|
|
|
3
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -29,7 +31,7 @@ var TableCell = /*#__PURE__*/function (_React$Component) {
|
|
|
29
31
|
width = _this$props.width,
|
|
30
32
|
align = _this$props.align,
|
|
31
33
|
children = _this$props.children,
|
|
32
|
-
rest = _objectWithoutPropertiesLoose(_this$props,
|
|
34
|
+
rest = _objectWithoutPropertiesLoose(_this$props, _excluded);
|
|
33
35
|
|
|
34
36
|
return /*#__PURE__*/React.createElement(Container, _extends({}, rest, {
|
|
35
37
|
alignment: align || "left",
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
var _excluded = ["id", "content", "colSpan", "width", "align", "isSortable", "shouldTruncate", "onSort", "sortId", "sortDirection", "children", "onClick"];
|
|
2
|
+
|
|
1
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
4
|
|
|
3
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -80,7 +82,7 @@ var TableHeaderCell = /*#__PURE__*/function (_React$Component) {
|
|
|
80
82
|
sortDirection = _this$props2.sortDirection,
|
|
81
83
|
children = _this$props2.children,
|
|
82
84
|
onClick = _this$props2.onClick,
|
|
83
|
-
rest = _objectWithoutPropertiesLoose(_this$props2,
|
|
85
|
+
rest = _objectWithoutPropertiesLoose(_this$props2, _excluded);
|
|
84
86
|
|
|
85
87
|
return /*#__PURE__*/React.createElement(Container, _extends({}, rest, {
|
|
86
88
|
key: id,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
var _excluded = ["id", "cells", "detail", "onToggle", "isExpanded"];
|
|
2
|
+
|
|
1
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
4
|
|
|
3
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -49,7 +51,7 @@ var TableRowAccordion = /*#__PURE__*/function (_React$Component) {
|
|
|
49
51
|
detail = _this$props2.detail,
|
|
50
52
|
onToggle = _this$props2.onToggle,
|
|
51
53
|
isExpanded = _this$props2.isExpanded,
|
|
52
|
-
rest = _objectWithoutPropertiesLoose(_this$props2,
|
|
54
|
+
rest = _objectWithoutPropertiesLoose(_this$props2, _excluded);
|
|
53
55
|
|
|
54
56
|
return /*#__PURE__*/React.createElement(Container, _extends({}, rest, {
|
|
55
57
|
"data-qa-table-row-accordion": isExpanded,
|
package/lib/Tabs/index.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
var _excluded = ["children", "id"],
|
|
2
|
+
_excluded2 = ["children", "qa"];
|
|
3
|
+
|
|
1
4
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
5
|
|
|
3
6
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -46,7 +49,7 @@ var TabItemButton = /*#__PURE__*/function (_React$Component) {
|
|
|
46
49
|
var _this$props = this.props,
|
|
47
50
|
children = _this$props.children,
|
|
48
51
|
id = _this$props.id,
|
|
49
|
-
rest = _objectWithoutPropertiesLoose(_this$props,
|
|
52
|
+
rest = _objectWithoutPropertiesLoose(_this$props, _excluded);
|
|
50
53
|
|
|
51
54
|
var _this$context = this.context,
|
|
52
55
|
selectedId = _this$context.selectedId,
|
|
@@ -183,7 +186,7 @@ var Tabs = /*#__PURE__*/function (_React$Component2) {
|
|
|
183
186
|
var _this$props2 = this.props,
|
|
184
187
|
children = _this$props2.children,
|
|
185
188
|
qa = _this$props2.qa,
|
|
186
|
-
rest = _objectWithoutPropertiesLoose(_this$props2,
|
|
189
|
+
rest = _objectWithoutPropertiesLoose(_this$props2, _excluded2);
|
|
187
190
|
|
|
188
191
|
return (
|
|
189
192
|
/*#__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: "vnjuiu-0"
|
|
6
|
+
componentId: "sc-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: "vnjuiu-1"
|
|
16
|
+
componentId: "sc-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: "vnjuiu-2"
|
|
35
|
+
componentId: "sc-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) {
|
package/lib/Text/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
var _excluded = ["fontSize", "children", "qa"];
|
|
2
|
+
|
|
1
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
4
|
|
|
3
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -72,7 +74,7 @@ var Text = function Text(_ref) {
|
|
|
72
74
|
var fontSize = _ref.fontSize,
|
|
73
75
|
children = _ref.children,
|
|
74
76
|
qa = _ref.qa,
|
|
75
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
77
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
76
78
|
|
|
77
79
|
var qaText = typeof children === "string" ? children : undefined;
|
|
78
80
|
return (
|
package/lib/Text/styles.js
CHANGED
|
@@ -2,7 +2,7 @@ import styled, { css } from "styled-components";
|
|
|
2
2
|
import { COMMON, LAYOUT, TYPOGRAPHY } from "../utils/system-props";
|
|
3
3
|
var Container = styled.span.withConfig({
|
|
4
4
|
displayName: "styles__Container",
|
|
5
|
-
componentId: "mmg963-0"
|
|
5
|
+
componentId: "sc-mmg963-0"
|
|
6
6
|
})(["margin:0;padding-left:0;padding-right:0;font-family:", ";font-style:", ";", " ", " ", " ", " ", ""], function (props) {
|
|
7
7
|
return props.theme.fontFamily;
|
|
8
8
|
}, function (props) {
|
package/lib/Textarea/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
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"];
|
|
2
|
+
|
|
1
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
4
|
|
|
3
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -85,7 +87,7 @@ var Textarea = /*#__PURE__*/function (_React$Component) {
|
|
|
85
87
|
qa = _this$props$qa === void 0 ? {} : _this$props$qa,
|
|
86
88
|
_this$props$inputProp = _this$props.inputProps,
|
|
87
89
|
inputProps = _this$props$inputProp === void 0 ? {} : _this$props$inputProp,
|
|
88
|
-
rest = _objectWithoutPropertiesLoose(_this$props,
|
|
90
|
+
rest = _objectWithoutPropertiesLoose(_this$props, _excluded);
|
|
89
91
|
|
|
90
92
|
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
91
93
|
hasBeforeElement: !!elemBefore,
|
package/lib/Toast/index.js
CHANGED
|
@@ -63,26 +63,14 @@ export function toast(options) {
|
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
var _StyledBox = _styled(Box).withConfig({
|
|
67
|
-
displayName: "Toast___StyledBox",
|
|
68
|
-
componentId: "sc-1vii3dq-0"
|
|
69
|
-
})(["", ""], function (p) {
|
|
70
|
-
return p._css;
|
|
71
|
-
});
|
|
72
|
-
|
|
73
66
|
var IconBox = function IconBox(props) {
|
|
74
67
|
return /*#__PURE__*/React.createElement(_StyledBox, _extends({
|
|
75
68
|
display: "inline-block"
|
|
76
69
|
}, props, {
|
|
77
|
-
_css: "line-height: 1;"
|
|
70
|
+
$_css: "line-height: 1;"
|
|
78
71
|
}));
|
|
79
72
|
};
|
|
80
73
|
|
|
81
|
-
var _StyledBox2 = _styled(Box).withConfig({
|
|
82
|
-
displayName: "Toast___StyledBox2",
|
|
83
|
-
componentId: "sc-1vii3dq-1"
|
|
84
|
-
})(["transform:translateY(1px);"]);
|
|
85
|
-
|
|
86
74
|
var Toast = function Toast(_ref) {
|
|
87
75
|
var content = _ref.content,
|
|
88
76
|
theme = _ref.theme,
|
|
@@ -120,4 +108,16 @@ var Toast = function Toast(_ref) {
|
|
|
120
108
|
}))));
|
|
121
109
|
};
|
|
122
110
|
|
|
123
|
-
export default ToastContainer;
|
|
111
|
+
export default ToastContainer;
|
|
112
|
+
|
|
113
|
+
var _StyledBox = _styled(Box).withConfig({
|
|
114
|
+
displayName: "Toast___StyledBox",
|
|
115
|
+
componentId: "sc-1vii3dq-0"
|
|
116
|
+
})(["", ""], function (p) {
|
|
117
|
+
return p.$_css;
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
var _StyledBox2 = _styled(Box).withConfig({
|
|
121
|
+
displayName: "Toast___StyledBox2",
|
|
122
|
+
componentId: "sc-1vii3dq-1"
|
|
123
|
+
})(["transform:translateY(1px);"]);
|
package/lib/Toast/styles.js
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
var _templateObject;
|
|
2
|
-
|
|
3
|
-
function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }
|
|
4
|
-
|
|
5
1
|
import styled, { createGlobalStyle } from "styled-components";
|
|
6
2
|
import Box from "../Box";
|
|
7
3
|
import Icon from "../Icon"; // $FlowIssue
|
|
@@ -9,7 +5,7 @@ import Icon from "../Icon"; // $FlowIssue
|
|
|
9
5
|
import toastStyles from "!!raw-loader!react-toastify/dist/ReactToastify.css";
|
|
10
6
|
var Container = styled(Box).withConfig({
|
|
11
7
|
displayName: "styles__Container",
|
|
12
|
-
componentId: "wp5x29-0"
|
|
8
|
+
componentId: "sc-wp5x29-0"
|
|
13
9
|
})(["display:flex;align-items:center;font-family:", ";", " position:relative;background:", ";border-left:2px solid ", ";"], function (p) {
|
|
14
10
|
return p.theme.fontFamily;
|
|
15
11
|
}, function (p) {
|
|
@@ -21,13 +17,13 @@ var Container = styled(Box).withConfig({
|
|
|
21
17
|
});
|
|
22
18
|
export var CustomIcon = styled(Icon).withConfig({
|
|
23
19
|
displayName: "styles__CustomIcon",
|
|
24
|
-
componentId: "wp5x29-1"
|
|
20
|
+
componentId: "sc-wp5x29-1"
|
|
25
21
|
})(["margin-right:", ";transform:translateY(4px);color:", ";"], function (props) {
|
|
26
22
|
return props.theme.space[400];
|
|
27
23
|
}, function (p) {
|
|
28
24
|
return p.customColor ? undefined : p.theme.colors.icon[p.type];
|
|
29
25
|
});
|
|
30
|
-
export var GlobalToastStyles = createGlobalStyle(
|
|
26
|
+
export var GlobalToastStyles = createGlobalStyle(["", " .Toastify__toast:last-of-type{margin-bottom:0;}.Toastify-container-overrides{padding:0;width:360px;}.Toastify-toast-overrides{padding:0;min-height:0;border-radius:2px;}.Toastify__toast-container--bottom-right{bottom:", ";right:", ";}@media only screen and (max-width:480px){.Toastify-container-overrides{min-width:initial;}}"], toastStyles, function (p) {
|
|
31
27
|
return p.theme.space[400];
|
|
32
28
|
}, function (p) {
|
|
33
29
|
return p.theme.space[400];
|
package/lib/ToggleHint/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
var _excluded = ["icon", "isOpen", "openString", "closeString", "qa", "className"];
|
|
2
|
+
|
|
1
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
4
|
|
|
3
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -50,7 +52,7 @@ var ToggleHint = /*#__PURE__*/function (_React$Component) {
|
|
|
50
52
|
closeString = _this$props.closeString,
|
|
51
53
|
qa = _this$props.qa,
|
|
52
54
|
className = _this$props.className,
|
|
53
|
-
rest = _objectWithoutPropertiesLoose(_this$props,
|
|
55
|
+
rest = _objectWithoutPropertiesLoose(_this$props, _excluded);
|
|
54
56
|
|
|
55
57
|
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
56
58
|
icon: icon,
|
package/lib/Token/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
var _excluded = ["children", "closeable", "onClick", "qa", "valid", "disabled", "palette"];
|
|
2
|
+
|
|
1
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
4
|
|
|
3
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -20,7 +22,7 @@ var Token = function Token(_ref) {
|
|
|
20
22
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
21
23
|
_ref$palette = _ref.palette,
|
|
22
24
|
palette = _ref$palette === void 0 ? "neutral" : _ref$palette,
|
|
23
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
25
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
24
26
|
|
|
25
27
|
var textContainer = useTextContent("");
|
|
26
28
|
return /*#__PURE__*/React.createElement(Container, _extends({
|
package/lib/Token/styles.js
CHANGED
|
@@ -3,7 +3,7 @@ import { COMMON } from "../utils/system-props";
|
|
|
3
3
|
import { focusRing } from "../utils/mixins";
|
|
4
4
|
var Container = styled.button.withConfig({
|
|
5
5
|
displayName: "styles__Container",
|
|
6
|
-
componentId: "nyn5zy-0"
|
|
6
|
+
componentId: "sc-nyn5zy-0"
|
|
7
7
|
})(["position:relative;display:inline-block;margin:0;line-height:1;vertical-align:middle;outline:none;", " &:focus{", "}", " ", " ", " ", " ", ""], function (_ref) {
|
|
8
8
|
var theme = _ref.theme;
|
|
9
9
|
return css(["", " font-family:", ";font-weight:", ";border:1px solid ", ";border-radius:", ";color:", ";background:", ";padding:", " ", ";transition:all ", " ", ";"], theme.typography[200], theme.fontFamily, theme.fontWeights.normal, theme.colors.container.border.base, theme.radii[500], theme.colors.text.body, theme.colors.container.background.base, theme.space[200], theme.space[300], theme.duration.fast, theme.easing.ease_inout);
|