@sproutsocial/racine 7.6.0 → 8.0.0-beta-dark-mode.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/__flow__/Badge/styles.js +3 -1
- package/__flow__/Banner/index.js +2 -1
- package/__flow__/Banner/styles.js +9 -6
- package/__flow__/Box/index.stories.js +3 -3
- package/__flow__/Box/styles.js +4 -4
- package/__flow__/Button/__snapshots__/index.test.js.snap +4 -4
- package/__flow__/Button/index.js +7 -2
- package/__flow__/Button/index.stories.js +6 -1
- package/__flow__/Button/styles.js +17 -12
- package/__flow__/Card/index.js +2 -2
- package/__flow__/CharacterCounter/styles.js +1 -1
- package/__flow__/Checkbox/styles.js +18 -16
- package/__flow__/Collapsible/index.stories.js +11 -5
- package/__flow__/DatePicker/styles.js +14 -12
- package/__flow__/Drawer/styles.js +1 -1
- package/__flow__/FormField/index.js +1 -1
- package/__flow__/Icon/index.stories.js +24 -6
- package/__flow__/Input/styles.js +6 -6
- package/__flow__/KeyboardKey/styles.js +2 -2
- package/__flow__/Link/styles.js +3 -5
- package/__flow__/Listbox/__snapshots__/index.test.js.snap +8 -2
- package/__flow__/Listbox/index.js +4 -4
- package/__flow__/Menu/__snapshots__/index.test.js.snap +5 -2
- package/__flow__/Menu/index.js +7 -2
- package/__flow__/Menu/styles.js +6 -3
- package/__flow__/Message/index.js +2 -2
- package/__flow__/Message/index.stories.js +1 -1
- package/__flow__/Modal/index.js +1 -1
- package/__flow__/Modal/index.stories.js +14 -8
- package/__flow__/Modal/styles.js +2 -2
- package/__flow__/Numeral/styles.js +2 -1
- package/__flow__/OverflowList/index.stories.js +15 -8
- package/__flow__/Popout/index.js +3 -3
- package/__flow__/Radio/styles.js +8 -8
- package/__flow__/SegmentedControl/styles.js +9 -5
- package/__flow__/Select/styles.js +5 -5
- package/__flow__/Skeleton/index.js +4 -4
- package/__flow__/Skeleton/index.stories.js +1 -1
- package/__flow__/Stack/index.stories.js +3 -1
- package/__flow__/Switch/styles.js +13 -11
- package/__flow__/Table/styles.js +2 -1
- package/__flow__/TableCell/index.stories.js +2 -0
- package/__flow__/TableHeaderCell/index.stories.js +3 -0
- package/__flow__/TableRowAccordion/styles.js +2 -1
- package/__flow__/Tabs/styles.js +5 -5
- package/__flow__/Textarea/styles.js +5 -5
- package/__flow__/ThemeProvider/index.js +2 -2
- package/__flow__/Toast/index.js +1 -1
- package/__flow__/Toast/styles.js +3 -3
- package/__flow__/Token/styles.js +19 -10
- package/__flow__/TokenInput/index.js +2 -1
- package/__flow__/TokenInput/styles.js +14 -6
- package/__flow__/Tooltip/index.js +2 -2
- package/__flow__/index.js +2 -2
- package/__flow__/themes/dark/decorative-palettes.js +43 -0
- package/__flow__/themes/dark/theme.js +195 -0
- package/__flow__/themes/default/decorative-palettes.js +43 -0
- package/__flow__/themes/default/literal-colors.js +160 -0
- package/__flow__/themes/default/theme.js +332 -0
- package/__flow__/types/system-props.flow.js +2 -2
- package/__flow__/types/theme.colors.flow.js +239 -0
- package/__flow__/types/theme.flow.js +38 -213
- package/__flow__/utils/mixins.js +4 -3
- package/__flow__/utils/responsiveProps/index.js +1 -1
- package/commonjs/Badge/styles.js +2 -1
- package/commonjs/Banner/index.js +3 -2
- package/commonjs/Banner/styles.js +1 -1
- package/commonjs/Button/index.js +5 -3
- package/commonjs/Button/styles.js +12 -11
- package/commonjs/Card/index.js +2 -2
- package/commonjs/CharacterCounter/styles.js +1 -1
- package/commonjs/Checkbox/styles.js +7 -7
- package/commonjs/DatePicker/styles.js +13 -11
- package/commonjs/Drawer/styles.js +1 -1
- package/commonjs/FormField/index.js +1 -1
- package/commonjs/Input/styles.js +6 -6
- package/commonjs/KeyboardKey/styles.js +2 -2
- package/commonjs/Link/styles.js +4 -8
- package/commonjs/Listbox/index.js +4 -4
- package/commonjs/Menu/index.js +2 -2
- package/commonjs/Menu/styles.js +10 -4
- package/commonjs/Message/index.js +2 -2
- package/commonjs/Modal/index.js +1 -1
- package/commonjs/Modal/styles.js +2 -2
- package/commonjs/Numeral/styles.js +1 -1
- package/commonjs/Popout/index.js +2 -2
- package/commonjs/Radio/styles.js +4 -4
- package/commonjs/SegmentedControl/styles.js +5 -5
- package/commonjs/Select/styles.js +5 -5
- package/commonjs/Skeleton/index.js +2 -2
- package/commonjs/Switch/styles.js +7 -7
- package/commonjs/Table/styles.js +1 -1
- package/commonjs/TableRowAccordion/styles.js +1 -1
- package/commonjs/Tabs/styles.js +5 -5
- package/commonjs/Textarea/styles.js +5 -5
- package/commonjs/ThemeProvider/index.js +1 -1
- package/commonjs/Toast/index.js +1 -1
- package/commonjs/Toast/styles.js +3 -3
- package/commonjs/Token/styles.js +16 -12
- package/commonjs/TokenInput/index.js +38 -35
- package/commonjs/TokenInput/styles.js +9 -7
- package/commonjs/Tooltip/index.js +2 -2
- package/commonjs/index.js +3 -3
- package/commonjs/themes/dark/decorative-palettes.js +51 -0
- package/commonjs/themes/dark/theme.js +195 -0
- package/commonjs/themes/default/decorative-palettes.js +51 -0
- package/commonjs/themes/default/literal-colors.js +165 -0
- package/commonjs/themes/default/theme.js +333 -0
- package/commonjs/types/theme.colors.flow.js +1 -0
- package/commonjs/types/theme.flow.js +1 -5
- package/commonjs/utils/mixins.js +2 -2
- package/commonjs/utils/responsiveProps/index.js +1 -1
- package/lib/Badge/styles.js +2 -1
- package/lib/Banner/index.js +3 -2
- package/lib/Banner/styles.js +1 -1
- package/lib/Button/index.js +5 -3
- package/lib/Button/styles.js +11 -11
- package/lib/Card/index.js +2 -2
- package/lib/CharacterCounter/styles.js +1 -1
- package/lib/Checkbox/styles.js +7 -7
- package/lib/DatePicker/styles.js +12 -11
- package/lib/Drawer/styles.js +1 -1
- package/lib/FormField/index.js +1 -1
- package/lib/Input/styles.js +6 -6
- package/lib/KeyboardKey/styles.js +2 -2
- package/lib/Link/styles.js +4 -8
- package/lib/Listbox/index.js +4 -4
- package/lib/Menu/index.js +2 -2
- package/lib/Menu/styles.js +10 -4
- package/lib/Message/index.js +2 -2
- package/lib/Modal/index.js +1 -1
- package/lib/Modal/styles.js +2 -2
- package/lib/Numeral/styles.js +1 -1
- package/lib/Popout/index.js +2 -2
- package/lib/Radio/styles.js +4 -4
- package/lib/SegmentedControl/styles.js +5 -5
- package/lib/Select/styles.js +5 -5
- package/lib/Skeleton/index.js +2 -2
- package/lib/Switch/styles.js +7 -7
- package/lib/Table/styles.js +1 -1
- package/lib/TableRowAccordion/styles.js +1 -1
- package/lib/Tabs/styles.js +5 -5
- package/lib/Textarea/styles.js +5 -5
- package/lib/ThemeProvider/index.js +1 -1
- package/lib/Toast/index.js +1 -1
- package/lib/Toast/styles.js +3 -3
- package/lib/Token/styles.js +16 -12
- package/lib/TokenInput/index.js +38 -35
- package/lib/TokenInput/styles.js +9 -7
- package/lib/Tooltip/index.js +2 -2
- package/lib/index.js +2 -2
- package/lib/themes/dark/decorative-palettes.js +36 -0
- package/lib/themes/dark/theme.js +185 -0
- package/lib/themes/default/decorative-palettes.js +36 -0
- package/lib/themes/default/literal-colors.js +156 -0
- package/lib/themes/default/theme.js +305 -0
- package/lib/types/theme.colors.flow.js +0 -0
- package/lib/types/theme.flow.js +1 -1
- package/lib/utils/mixins.js +2 -2
- package/lib/utils/responsiveProps/index.js +1 -1
- package/package.json +1 -1
- package/__flow__/themes/dark.js +0 -133
- package/__flow__/themes/light.js +0 -7
- package/__flow__/utils/theme.js +0 -422
- package/commonjs/themes/dark.js +0 -140
- package/commonjs/themes/light.js +0 -14
- package/commonjs/utils/theme.js +0 -421
- package/lib/themes/dark.js +0 -131
- package/lib/themes/light.js +0 -5
- package/lib/utils/theme.js +0 -402
|
@@ -36,11 +36,11 @@ var InputWrapper = (0, _styledComponents.default)(_Box.default).withConfig({
|
|
|
36
36
|
}, function (props) {
|
|
37
37
|
return props.theme.space[400];
|
|
38
38
|
}, function (props) {
|
|
39
|
-
return props.appearance === "pill" && (0, _styledComponents.css)(["background-color:transparent;transition:all ", " ", ";mix-blend-mode:
|
|
39
|
+
return props.appearance === "pill" && (0, _styledComponents.css)(["background-color:transparent;transition:all ", " ", ";mix-blend-mode:", ";", " &:hover{background-color:", ";}", "{", "}"], function (props) {
|
|
40
40
|
return props.theme.duration.fast;
|
|
41
41
|
}, function (props) {
|
|
42
42
|
return props.theme.easing.ease_inout;
|
|
43
|
-
}, _mixins.pill, props.theme.colors.background.
|
|
43
|
+
}, props.theme.mode ? "screen" : "multiply", _mixins.pill, props.theme.colors.app.background.base, PillInput, _mixins.pill);
|
|
44
44
|
});
|
|
45
45
|
exports.InputWrapper = InputWrapper;
|
|
46
46
|
InputWrapper.displayName = "InputWrapper";
|
|
@@ -53,9 +53,9 @@ var CheckboxBox = _styledComponents.default.div.withConfig({
|
|
|
53
53
|
}, function (props) {
|
|
54
54
|
return props.theme.space[400];
|
|
55
55
|
}, function (props) {
|
|
56
|
-
return props.theme.colors.
|
|
56
|
+
return props.theme.colors.form.border.base;
|
|
57
57
|
}, function (props) {
|
|
58
|
-
return props.theme.colors.background.
|
|
58
|
+
return props.theme.colors.form.background.base;
|
|
59
59
|
}, function (props) {
|
|
60
60
|
return props.theme.duration.fast;
|
|
61
61
|
}, function (props) {
|
|
@@ -87,9 +87,9 @@ var PillInput = _styledComponents.default.input.withConfig({
|
|
|
87
87
|
}, _mixins.focusRing, function (props) {
|
|
88
88
|
return !props.checked && (0, _styledComponents.css)(["&:hover,&:focus{~ ", " ", "{opacity:", ";color:", ";}}"], CheckboxBox, CheckIcon, function (props) {
|
|
89
89
|
return props.disabled ? 0 : 1;
|
|
90
|
-
}, props.theme.colors.
|
|
90
|
+
}, props.theme.colors.form.border.base);
|
|
91
91
|
}, function (props) {
|
|
92
|
-
return props.checked && (0, _styledComponents.css)(["~ ", "{border-color:", ";background-color:", ";}~ ", " ", "{opacity:1;color:", ";}"], CheckboxBox, props.theme.colors.
|
|
92
|
+
return props.checked && (0, _styledComponents.css)(["~ ", "{border-color:", ";background-color:", ";}~ ", " ", "{opacity:1;color:", ";}"], CheckboxBox, props.theme.colors.form.border.selected, props.theme.colors.form.background.selected, CheckboxBox, CheckIcon, props.theme.colors.icon.inverse);
|
|
93
93
|
}, function (props) {
|
|
94
94
|
return props.disabled && (0, _styledComponents.css)(["~ ", "{opacity:0.4;}~ ", " ", "{opacity:", ";}"], CheckboxBox, CheckboxBox, CheckIcon, props.checked ? 1 : 0);
|
|
95
95
|
});
|
|
@@ -132,7 +132,7 @@ var CheckboxContainer = _styledComponents.default.span.withConfig({
|
|
|
132
132
|
displayName: "styles__CheckboxContainer",
|
|
133
133
|
componentId: "sc-59uw8o-6"
|
|
134
134
|
})(function (props) {
|
|
135
|
-
return (0, _styledComponents.css)(["display:inline-flex;align-items:center;box-sizing:border-box;position:relative;transition:all ", " ", ";@supports (-webkit-appearance:none){&:before{content:url(\"data:image/svg+xml;utf8,", "\");opacity:", ";position:absolute;width:", ";height:", ";text-align:center;transform:translateY(1px);line-height:1;margin:auto;pointer-events:none;transition:", " ", ";}&:hover:before{opacity:", ";}", " input[type='checkbox']{box-sizing:border-box;appearance:none;margin:0;padding:0;width:", ";height:", ";border:1px solid ", ";border-radius:4px;background-color:", ";transition:all ", " ", ";cursor:", ";flex-shrink:0;&:not(:checked){", "}&:checked{border-color:", ";background-color:", ";}", " &:focus{", "}}}", ""], props.theme.duration.fast, props.theme.easing.ease_in, getIcon(props.indeterminate ? "indeterminate" : "check", props.checked ? props.theme.colors.background.
|
|
135
|
+
return (0, _styledComponents.css)(["display:inline-flex;align-items:center;box-sizing:border-box;position:relative;transition:all ", " ", ";@supports (-webkit-appearance:none){&:before{content:url(\"data:image/svg+xml;utf8,", "\");opacity:", ";position:absolute;width:", ";height:", ";text-align:center;transform:translateY(1px);line-height:1;margin:auto;pointer-events:none;transition:", " ", ";}&:hover:before{opacity:", ";}", " input[type='checkbox']{box-sizing:border-box;appearance:none;margin:0;padding:0;width:", ";height:", ";border:1px solid ", ";border-radius:4px;background-color:", ";transition:all ", " ", ";cursor:", ";flex-shrink:0;&:not(:checked){", "}&:checked{border-color:", ";background-color:", ";}", " &:focus{", "}}}", ""], props.theme.duration.fast, props.theme.easing.ease_in, getIcon(props.indeterminate ? "indeterminate" : "check", props.checked ? props.theme.colors.form.background.base : props.theme.colors.form.border.base), props.checked ? 1 : 0, props.theme.space[400], props.theme.space[400], props.theme.duration.fast, props.theme.easing.ease_inout, props.disabled && !props.checked ? 0 : 1, props.disabled && (0, _styledComponents.css)(["opacity:0.4;"]), props.theme.space[400], props.theme.space[400], props.theme.colors.form.border.base, props.theme.colors.form.background.base, props.theme.duration.fast, props.theme.easing.ease_in, props.disabled ? "not-allowed" : "pointer", !props.indeterminate && (0, _styledComponents.css)(["border-color:", " !important;background-color:", ";"], props.theme.colors.neutral[300], props.theme.colors.form.background.base), props.theme.colors.form.border.selected, props.theme.colors.form.background.selected, props.indeterminate && props.checked && (0, _styledComponents.css)(["border-color:", " !important;background-color:", " !important;"], props.theme.colors.form.border.selected, props.theme.colors.form.background.selected), _mixins.focusRing, _systemProps.COMMON);
|
|
136
136
|
});
|
|
137
137
|
|
|
138
138
|
exports.CheckboxContainer = CheckboxContainer;
|
|
@@ -9,6 +9,8 @@ var _moment = _interopRequireDefault(require("moment"));
|
|
|
9
9
|
|
|
10
10
|
var _Box = _interopRequireDefault(require("../Box"));
|
|
11
11
|
|
|
12
|
+
var _mixins = require("../utils/mixins");
|
|
13
|
+
|
|
12
14
|
var _templateObject;
|
|
13
15
|
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -75,13 +77,13 @@ var CalendarDay = (0, _styledComponents.default)(_Box.default).withConfig({
|
|
|
75
77
|
theme = _ref.theme;
|
|
76
78
|
|
|
77
79
|
if (isSelected(modifiers)) {
|
|
78
|
-
return (0, _styledComponents.css)(["background-color:", ";color:", ";margin-left:", ";margin-right:", ";border-top-left-radius:", ";border-bottom-left-radius:", ";border-top-right-radius:", ";border-bottom-right-radius:", ";"], theme.colors.
|
|
80
|
+
return (0, _styledComponents.css)(["background-color:", ";color:", ";margin-left:", ";margin-right:", ";border-top-left-radius:", ";border-bottom-left-radius:", ";border-top-right-radius:", ";border-bottom-right-radius:", ";"], theme.colors.container.background.selected, theme.colors.text.inverse, shouldHaveLeftPill(modifiers, day) && theme.space[200], shouldHaveRightPill(modifiers, day) && theme.space[200], shouldHaveLeftPill(modifiers, day) && theme.radii.pill, shouldHaveLeftPill(modifiers, day) && theme.radii.pill, shouldHaveRightPill(modifiers, day) && theme.radii.pill, shouldHaveRightPill(modifiers, day) && theme.radii.pill);
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
if (isHoveredAndInRange(modifiers)) {
|
|
82
|
-
return (0, _styledComponents.css)(["margin:0 ", ";border-radius:", ";border:1px solid ", ";"], theme.space[200], theme.radii.pill, theme.colors.
|
|
84
|
+
return (0, _styledComponents.css)(["margin:0 ", ";border-radius:", ";border:1px solid ", ";"], theme.space[200], theme.radii.pill, theme.colors.container.border.selected);
|
|
83
85
|
} else if (isOutOfRange(modifiers)) {
|
|
84
|
-
return (0, _styledComponents.css)(["color:", ";"], theme.colors.
|
|
86
|
+
return (0, _styledComponents.css)(["color:", ";", ";"], theme.colors.text.subtext, _mixins.disabled);
|
|
85
87
|
}
|
|
86
88
|
});
|
|
87
89
|
exports.CalendarDay = CalendarDay;
|
|
@@ -95,7 +97,7 @@ var ReactDatesCssOverrides = (0, _styledComponents.createGlobalStyle)(_templateO
|
|
|
95
97
|
return theme.colors.text.headline;
|
|
96
98
|
}, function (_ref4) {
|
|
97
99
|
var theme = _ref4.theme;
|
|
98
|
-
return theme.colors.border;
|
|
100
|
+
return theme.colors.container.border.base;
|
|
99
101
|
}, function (_ref5) {
|
|
100
102
|
var theme = _ref5.theme;
|
|
101
103
|
return theme.typography[200];
|
|
@@ -107,7 +109,7 @@ var ReactDatesCssOverrides = (0, _styledComponents.createGlobalStyle)(_templateO
|
|
|
107
109
|
return theme.fontWeights.semibold;
|
|
108
110
|
}, function (_ref8) {
|
|
109
111
|
var theme = _ref8.theme;
|
|
110
|
-
return theme.colors.background.
|
|
112
|
+
return theme.colors.container.background.base;
|
|
111
113
|
}, function (_ref9) {
|
|
112
114
|
var theme = _ref9.theme;
|
|
113
115
|
return theme.colors.text.body;
|
|
@@ -119,7 +121,7 @@ var ReactDatesCssOverrides = (0, _styledComponents.createGlobalStyle)(_templateO
|
|
|
119
121
|
return theme.typography[200];
|
|
120
122
|
}, function (_ref12) {
|
|
121
123
|
var theme = _ref12.theme;
|
|
122
|
-
return theme.colors.background.
|
|
124
|
+
return theme.colors.container.background.base;
|
|
123
125
|
}, function (_ref13) {
|
|
124
126
|
var theme = _ref13.theme;
|
|
125
127
|
return theme.typography[200];
|
|
@@ -128,21 +130,21 @@ var ReactDatesCssOverrides = (0, _styledComponents.createGlobalStyle)(_templateO
|
|
|
128
130
|
return theme.colors.text.headline;
|
|
129
131
|
}, function (_ref15) {
|
|
130
132
|
var theme = _ref15.theme;
|
|
131
|
-
return theme.colors.background.
|
|
133
|
+
return theme.colors.container.background.base;
|
|
132
134
|
}, function (_ref16) {
|
|
133
135
|
var theme = _ref16.theme;
|
|
134
136
|
return theme.fontWeights.semibold;
|
|
135
137
|
}, function (_ref17) {
|
|
136
138
|
var theme = _ref17.theme;
|
|
137
|
-
return theme.colors.background.
|
|
139
|
+
return theme.colors.container.background.base;
|
|
138
140
|
}, function (_ref18) {
|
|
139
141
|
var theme = _ref18.theme;
|
|
140
|
-
return theme.colors.
|
|
142
|
+
return theme.colors.button.pill.text.base;
|
|
141
143
|
}, function (_ref19) {
|
|
142
144
|
var theme = _ref19.theme;
|
|
143
|
-
return theme.colors.
|
|
145
|
+
return theme.colors.button.pill.background.base;
|
|
144
146
|
}, function (_ref20) {
|
|
145
147
|
var theme = _ref20.theme;
|
|
146
|
-
return theme.colors.
|
|
148
|
+
return theme.colors.button.pill.background.hover;
|
|
147
149
|
});
|
|
148
150
|
exports.ReactDatesCssOverrides = ReactDatesCssOverrides;
|
|
@@ -27,7 +27,7 @@ var Container = _styledComponents.default.div.withConfig({
|
|
|
27
27
|
})(["display:flex;flex-direction:column;position:fixed;top:0;height:100%;width:", "px;background-color:", ";box-shadow:", ";filter:blur(0);", " ", ""], function (props) {
|
|
28
28
|
return props.width;
|
|
29
29
|
}, function (props) {
|
|
30
|
-
return props.theme.colors.background.
|
|
30
|
+
return props.theme.colors.container.background.base;
|
|
31
31
|
}, function (props) {
|
|
32
32
|
return props.theme.shadows[400];
|
|
33
33
|
}, function (props) {
|
|
@@ -72,7 +72,7 @@ var FormField = function FormField(_ref) {
|
|
|
72
72
|
}), isInvalid && error && /*#__PURE__*/React.createElement(_Text.default, {
|
|
73
73
|
as: "div",
|
|
74
74
|
fontSize: 200,
|
|
75
|
-
color: "error
|
|
75
|
+
color: "text.error",
|
|
76
76
|
mt: 300,
|
|
77
77
|
id: errorId,
|
|
78
78
|
"data-qa-formfield-error": qa && qa["data-qa-formfield-error"] || errorContainerText.current
|
package/commonjs/Input/styles.js
CHANGED
|
@@ -19,7 +19,7 @@ var Container = _styledComponents.default.div.withConfig({
|
|
|
19
19
|
})(["box-sizing:border-box;position:relative;input{box-sizing:border-box;width:100%;border:1px solid transparent;border-radius:", ";background-color:", ";color:", ";outline:none;transition:border-color ", " ", ",box-shadow ", " ", ";font-family:", ";font-weight:", ";appearance:none;line-height:16px;margin:0;padding:", ";font-size:", ";&::-ms-clear{display:none;}&::-webkit-search-cancel-button{appearance:none;}&:focus{", "}&:not(output):not(:focus):-moz-ui-invalid{box-shadow:none;}&:placeholder{color:", ";}", " ", "}", " ", " ", " ", " ", ""], function (props) {
|
|
20
20
|
return props.theme.radii[500];
|
|
21
21
|
}, function (props) {
|
|
22
|
-
return props.theme.colors.background.
|
|
22
|
+
return props.theme.colors.form.background.base;
|
|
23
23
|
}, function (props) {
|
|
24
24
|
return props.theme.colors.text.body;
|
|
25
25
|
}, function (props) {
|
|
@@ -57,7 +57,7 @@ var Container = _styledComponents.default.div.withConfig({
|
|
|
57
57
|
return props.theme.typography[200].fontSize;
|
|
58
58
|
}
|
|
59
59
|
}, _mixins.focusRing, function (props) {
|
|
60
|
-
return props.theme.colors.
|
|
60
|
+
return props.theme.colors.form.placeholder.base;
|
|
61
61
|
}, function (props) {
|
|
62
62
|
return props.hasBeforeElement && (0, _styledComponents.css)(["padding-left:40px;"]);
|
|
63
63
|
}, function (props) {
|
|
@@ -66,15 +66,15 @@ var Container = _styledComponents.default.div.withConfig({
|
|
|
66
66
|
return props.disabled && (0, _styledComponents.css)(["opacity:0.4;input{cursor:not-allowed;}"]);
|
|
67
67
|
}, function (props) {
|
|
68
68
|
return props.appearance === "primary" && (0, _styledComponents.css)(["input{border:1px solid ", ";}"], function (props) {
|
|
69
|
-
return props.theme.colors.
|
|
69
|
+
return props.theme.colors.form.border.base;
|
|
70
70
|
});
|
|
71
71
|
}, function (props) {
|
|
72
72
|
return props.invalid && (0, _styledComponents.css)(["input{border-color:", ";}"], function (props) {
|
|
73
|
-
return props.theme.colors.error
|
|
73
|
+
return props.theme.colors.form.border.error;
|
|
74
74
|
});
|
|
75
75
|
}, function (props) {
|
|
76
76
|
return props.warning && (0, _styledComponents.css)(["input{border-color:", ";}"], function (props) {
|
|
77
|
-
return props.theme.colors.warning
|
|
77
|
+
return props.theme.colors.form.border.warning;
|
|
78
78
|
});
|
|
79
79
|
}, _systemProps.COMMON);
|
|
80
80
|
|
|
@@ -82,7 +82,7 @@ var Accessory = _styledComponents.default.div.withConfig({
|
|
|
82
82
|
displayName: "styles__Accessory",
|
|
83
83
|
componentId: "uozj0s-1"
|
|
84
84
|
})(["position:absolute;top:50%;transform:translateY(-50%);color:", ";display:flex;align-items:center;", ";", ";"], function (props) {
|
|
85
|
-
return props.theme.colors.icon.
|
|
85
|
+
return props.theme.colors.icon.base;
|
|
86
86
|
}, function (props) {
|
|
87
87
|
return props.before && (0, _styledComponents.css)(["left:", ";"], props.theme.space[350]);
|
|
88
88
|
}, function (props) {
|
|
@@ -15,9 +15,9 @@ var Container = _styledComponents.default.div.withConfig({
|
|
|
15
15
|
})(["display:inline-flex;color:", ";background-color:", ";border:1px solid ", ";border-radius:", ";box-shadow:", ";padding:0 ", ";min-width:20px;justify-content:center;", ""], function (props) {
|
|
16
16
|
return props.theme.colors.text.body;
|
|
17
17
|
}, function (props) {
|
|
18
|
-
return props.theme.colors.background.
|
|
18
|
+
return props.theme.colors.container.background.base;
|
|
19
19
|
}, function (props) {
|
|
20
|
-
return props.theme.colors.border;
|
|
20
|
+
return props.theme.colors.container.border.base;
|
|
21
21
|
}, function (props) {
|
|
22
22
|
return props.theme.radii[500];
|
|
23
23
|
}, function (props) {
|
package/commonjs/Link/styles.js
CHANGED
|
@@ -20,12 +20,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
20
20
|
var Container = (0, _styledComponents.default)(_Text.default).withConfig({
|
|
21
21
|
displayName: "styles__Container",
|
|
22
22
|
componentId: "adcw4a-0"
|
|
23
|
-
})(["border:0;font-family:", ";
|
|
23
|
+
})(["border:0;font-family:", ";text-decoration:", ";appearance:none;cursor:pointer;", " font-weight:", ";color:", ";&:hover{color:", ";text-decoration:underline;}&:active{color:", ";}&:focus{", "}&:focus:active{box-shadow:none;}", " ", " ", " ", ""], function (props) {
|
|
24
24
|
return props.theme.fontFamily;
|
|
25
|
-
}, function (props) {
|
|
26
|
-
return props.theme.duration.fast;
|
|
27
|
-
}, function (props) {
|
|
28
|
-
return props.theme.easing.ease_inout;
|
|
29
25
|
}, function (props) {
|
|
30
26
|
return props.underline ? "underline" : "none";
|
|
31
27
|
}, function (props) {
|
|
@@ -33,11 +29,11 @@ var Container = (0, _styledComponents.default)(_Text.default).withConfig({
|
|
|
33
29
|
}, function (props) {
|
|
34
30
|
return props.theme.fontWeights.semibold;
|
|
35
31
|
}, function (props) {
|
|
36
|
-
return props.theme.colors.
|
|
32
|
+
return props.theme.colors.link.base;
|
|
37
33
|
}, function (props) {
|
|
38
|
-
return props.theme.colors.
|
|
34
|
+
return props.theme.colors.link.hover;
|
|
39
35
|
}, function (props) {
|
|
40
|
-
return props.theme.colors.
|
|
36
|
+
return props.theme.colors.link.hover;
|
|
41
37
|
}, _mixins.focusRing, function (props) {
|
|
42
38
|
return !props.href && (0, _styledComponents.css)(["background:none;"]);
|
|
43
39
|
}, function (props) {
|
|
@@ -46,11 +46,11 @@ var ListboxButtonContainer = (0, _styledComponents.default)(_Menu.MenuButton).wi
|
|
|
46
46
|
displayName: "Listbox__ListboxButtonContainer",
|
|
47
47
|
componentId: "c9mfi8-0"
|
|
48
48
|
})(["position:relative;width:100%;border:1px solid ", ";border-radius:", ";background-color:", ";color:", ";cursor:", ";outline:none;appearance:none;transition:border-color ", " ", ",box-shadow ", " ", ";font-family:", ";font-weight:", ";text-align:left;margin:0;&:active{transform:none;}padding:", ";font-size:", ";", ""], function (props) {
|
|
49
|
-
return props.theme.colors.
|
|
49
|
+
return props.theme.colors.form.border.base;
|
|
50
50
|
}, function (props) {
|
|
51
51
|
return props.theme.radii[500];
|
|
52
52
|
}, function (props) {
|
|
53
|
-
return props.theme.colors.background.
|
|
53
|
+
return props.theme.colors.form.background.base;
|
|
54
54
|
}, function (props) {
|
|
55
55
|
return props.theme.colors.text.body;
|
|
56
56
|
}, function (props) {
|
|
@@ -91,9 +91,9 @@ var ListboxButtonContainer = (0, _styledComponents.default)(_Menu.MenuButton).wi
|
|
|
91
91
|
}
|
|
92
92
|
}, function (props) {
|
|
93
93
|
return props.invalid && (0, _styledComponents.css)(["border-color:", ";", "{color:", ";}"], function (props) {
|
|
94
|
-
return props.theme.colors.
|
|
94
|
+
return props.theme.colors.form.border.error;
|
|
95
95
|
}, _styles.Arrow, function (props) {
|
|
96
|
-
return props.theme.colors.error
|
|
96
|
+
return props.theme.colors.icon.error;
|
|
97
97
|
});
|
|
98
98
|
});
|
|
99
99
|
exports.ListboxButtonContainer = ListboxButtonContainer;
|
package/commonjs/Menu/index.js
CHANGED
|
@@ -268,7 +268,7 @@ var MenuGroup = function MenuGroup(_ref2) {
|
|
|
268
268
|
return /*#__PURE__*/React.createElement(React.Fragment, null, title && /*#__PURE__*/React.createElement(_Box.default, {
|
|
269
269
|
pl: 400,
|
|
270
270
|
borderTop: "1px solid",
|
|
271
|
-
borderColor: "border",
|
|
271
|
+
borderColor: "container.border.base",
|
|
272
272
|
mt: "-1px"
|
|
273
273
|
}, /*#__PURE__*/React.createElement(_StyledText, {
|
|
274
274
|
forwardedAs: titleAs || "div",
|
|
@@ -289,7 +289,7 @@ var MenuDivider = function MenuDivider(props) {
|
|
|
289
289
|
as: "li",
|
|
290
290
|
role: "separator",
|
|
291
291
|
borderTop: "1px solid",
|
|
292
|
-
borderColor: "border"
|
|
292
|
+
borderColor: "container.border.base"
|
|
293
293
|
}, props));
|
|
294
294
|
};
|
|
295
295
|
|
package/commonjs/Menu/styles.js
CHANGED
|
@@ -18,10 +18,12 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
18
18
|
var MenuItemContainer = (0, _styledComponents.default)(_Box.default).withConfig({
|
|
19
19
|
displayName: "styles__MenuItemContainer",
|
|
20
20
|
componentId: "fjvae4-0"
|
|
21
|
-
})(["", ";width:100%;border-radius:", ";background-color:
|
|
21
|
+
})(["", ";width:100%;border-radius:", ";background-color:", ";border:none;text-align:left;color:", ";font-family:", ";font-weight:", ";padding:", ";list-style-type:none;outline:0;", ";", " ", " ", " ", " ", ""], function (props) {
|
|
22
22
|
return !props.hidden && (0, _styledComponents.css)(["display:block;"]);
|
|
23
23
|
}, function (props) {
|
|
24
24
|
return props.theme.radii[500];
|
|
25
|
+
}, function (props) {
|
|
26
|
+
return props.theme.colors.listItem.background.base;
|
|
25
27
|
}, function (props) {
|
|
26
28
|
return props.theme.colors.text.body;
|
|
27
29
|
}, function (props) {
|
|
@@ -33,14 +35,18 @@ var MenuItemContainer = (0, _styledComponents.default)(_Box.default).withConfig(
|
|
|
33
35
|
}, function (props) {
|
|
34
36
|
return (0, _styledComponents.css)(["", ";"], props.theme.typography[200]);
|
|
35
37
|
}, function (props) {
|
|
36
|
-
return props.active && !props.disabled && (0, _styledComponents.css)(["background-color:", ";"], props
|
|
38
|
+
return props.active && !props.disabled && (0, _styledComponents.css)(["color:", ";background-color:", ";"], function (props) {
|
|
39
|
+
return props.theme.colors.text.inverse;
|
|
40
|
+
}, props.theme.colors.listItem.background.selected);
|
|
37
41
|
}, function (props) {
|
|
38
42
|
return props.selected && !props.isCheckboxOrRadio && (0, _styledComponents.css)(["font-weight:", ";"], function (props) {
|
|
39
43
|
return props.theme.fontWeights.semibold;
|
|
40
44
|
});
|
|
41
45
|
}, function (props) {
|
|
42
|
-
return !props.disabled && (0, _styledComponents.css)(["&:focus,&:hover{background-color:", ";}"], function (props) {
|
|
43
|
-
return props.theme.colors.
|
|
46
|
+
return !props.disabled && (0, _styledComponents.css)(["&:focus,&:hover{color:", ";background-color:", ";}"], function (props) {
|
|
47
|
+
return props.theme.colors.text.body;
|
|
48
|
+
}, function (props) {
|
|
49
|
+
return props.theme.colors.listItem.background.hover;
|
|
44
50
|
});
|
|
45
51
|
}, function (props) {
|
|
46
52
|
return props.interactive && !props.disabled ? (0, _styledComponents.css)(["&:hover{cursor:pointer;}"]) : (0, _styledComponents.css)(["&:hover{cursor:default;}"]);
|
|
@@ -51,7 +51,7 @@ var avatarSizeMap = function avatarSizeMap(density) {
|
|
|
51
51
|
// $FlowIssue Upgrade 0.111.1
|
|
52
52
|
var MessageContext = /*#__PURE__*/React.createContext({
|
|
53
53
|
density: MESSAGE_DENSITIES.SMALL,
|
|
54
|
-
borderColor: "border",
|
|
54
|
+
borderColor: "container.border.base",
|
|
55
55
|
bg: "background.container",
|
|
56
56
|
indentContent: true
|
|
57
57
|
});
|
|
@@ -61,7 +61,7 @@ var Message = function Message(_ref) {
|
|
|
61
61
|
_ref$density = _ref.density,
|
|
62
62
|
density = _ref$density === void 0 ? MESSAGE_DENSITIES.SMALL : _ref$density,
|
|
63
63
|
_ref$borderColor = _ref.borderColor,
|
|
64
|
-
borderColor = _ref$borderColor === void 0 ? "border" : _ref$borderColor,
|
|
64
|
+
borderColor = _ref$borderColor === void 0 ? "container.border.base" : _ref$borderColor,
|
|
65
65
|
_ref$bg = _ref.bg,
|
|
66
66
|
bg = _ref$bg === void 0 ? "background.container" : _ref$bg,
|
|
67
67
|
_ref$indentContent = _ref.indentContent,
|
package/commonjs/Modal/index.js
CHANGED
package/commonjs/Modal/styles.js
CHANGED
|
@@ -68,7 +68,7 @@ var Container = (0, _styledComponents.default)(ReactModalAdapter).withConfig({
|
|
|
68
68
|
}, function (props) {
|
|
69
69
|
return props.theme.easing.ease_inout;
|
|
70
70
|
}, _styledSystem.zIndex, function (props) {
|
|
71
|
-
return props.theme.colors.background.
|
|
71
|
+
return props.theme.colors.container.background.base;
|
|
72
72
|
}, function (props) {
|
|
73
73
|
return props.theme.radii[500];
|
|
74
74
|
}, function (props) {
|
|
@@ -107,7 +107,7 @@ var Header = (0, _styledComponents.default)(HeaderContainer).withConfig({
|
|
|
107
107
|
})(["display:flex;align-items:center;justify-content:space-between;flex:0 0 auto;border-bottom-width:", ";border-bottom-color:", ";border-bottom-style:solid;"], function (props) {
|
|
108
108
|
return props.theme.borderWidths[500];
|
|
109
109
|
}, function (props) {
|
|
110
|
-
return props.bordered ? props.theme.colors.border : "transparent";
|
|
110
|
+
return props.bordered ? props.theme.colors.container.border.base : "transparent";
|
|
111
111
|
});
|
|
112
112
|
exports.Header = Header;
|
|
113
113
|
var Footer = (0, _styledComponents.default)(_Box.default).withConfig({
|
|
@@ -18,6 +18,6 @@ var AbbrContainer = (0, _styledComponents.default)(_Text.default).withConfig({
|
|
|
18
18
|
displayName: "styles__AbbrContainer",
|
|
19
19
|
componentId: "o79gt9-1"
|
|
20
20
|
})(["font-variant-numeric:tabular-nums;border-bottom:1px dotted ", ";"], function (props) {
|
|
21
|
-
return props.theme.colors.border;
|
|
21
|
+
return props.theme.colors.container.border.base;
|
|
22
22
|
});
|
|
23
23
|
exports.AbbrContainer = AbbrContainer;
|
package/commonjs/Popout/index.js
CHANGED
|
@@ -285,10 +285,10 @@ Popout.Content = function (_ref4) {
|
|
|
285
285
|
rest = _objectWithoutPropertiesLoose(_ref4, ["children"]);
|
|
286
286
|
|
|
287
287
|
return /*#__PURE__*/React.createElement(_Box.default, _extends({
|
|
288
|
-
bg: "background.
|
|
288
|
+
bg: "container.background.base",
|
|
289
289
|
color: "text.body",
|
|
290
290
|
border: 500,
|
|
291
|
-
borderColor: "border",
|
|
291
|
+
borderColor: "container.border.base",
|
|
292
292
|
borderRadius: "outer",
|
|
293
293
|
boxShadow: 300,
|
|
294
294
|
p: 400,
|
package/commonjs/Radio/styles.js
CHANGED
|
@@ -30,9 +30,9 @@ var Input = _styledComponents.default.input.withConfig({
|
|
|
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) {
|
|
33
|
-
return props.theme.colors.
|
|
33
|
+
return props.theme.colors.form.border.base;
|
|
34
34
|
}, function (props) {
|
|
35
|
-
return props.theme.colors.background.
|
|
35
|
+
return props.theme.colors.form.background.base;
|
|
36
36
|
}, function (props) {
|
|
37
37
|
return props.theme.duration.fast;
|
|
38
38
|
}, function (props) {
|
|
@@ -64,9 +64,9 @@ var InputWrapper = _styledComponents.default.span.withConfig({
|
|
|
64
64
|
}, function (props) {
|
|
65
65
|
return props.disabled ? "not-allowed" : "pointer";
|
|
66
66
|
}, function (props) {
|
|
67
|
-
return !props.checked && (0, _styledComponents.css)(["&:hover,&:focus{", "{border-color:", ";background-color:", ";}&:before{opacity:", ";background-color:", ";}}"], Input, props.theme.colors.
|
|
67
|
+
return !props.checked && (0, _styledComponents.css)(["&:hover,&:focus{", "{border-color:", ";background-color:", ";}&:before{opacity:", ";background-color:", ";}}"], Input, props.theme.colors.form.border.base, props.theme.colors.form.background.base, props.disabled ? 0 : 1, props.theme.colors.form.background.base);
|
|
68
68
|
}, function (props) {
|
|
69
|
-
return props.checked && (0, _styledComponents.css)(["", "{border-color:", ";background-color:", ";}&:before{opacity:1;background-color:", ";}"], Input, props.theme.colors.
|
|
69
|
+
return props.checked && (0, _styledComponents.css)(["", "{border-color:", ";background-color:", ";}&:before{opacity:1;background-color:", ";}"], Input, props.theme.colors.form.border.selected, props.theme.colors.form.background.selected, props.theme.colors.form.background.base);
|
|
70
70
|
});
|
|
71
71
|
|
|
72
72
|
exports.InputWrapper = InputWrapper;
|
|
@@ -22,7 +22,7 @@ var SegmentedControlContainer = (0, _styledComponents.default)(_Box.default).wit
|
|
|
22
22
|
displayName: "styles__SegmentedControlContainer",
|
|
23
23
|
componentId: "sc-1o18lau-0"
|
|
24
24
|
})(["border:1px solid ", ";border-radius:", ";padding:", ";legend{", "}", ""], function (props) {
|
|
25
|
-
return props.theme.colors.
|
|
25
|
+
return props.theme.colors.button.secondary.border.base;
|
|
26
26
|
}, function (props) {
|
|
27
27
|
return props.theme.radii.outer;
|
|
28
28
|
}, function (props) {
|
|
@@ -56,14 +56,14 @@ var SegmentedControlLabel = (0, _styledComponents.default)(_Text.default).withCo
|
|
|
56
56
|
}, function (props) {
|
|
57
57
|
return props.theme.duration.fast;
|
|
58
58
|
}, function (props) {
|
|
59
|
-
return props.theme.colors.
|
|
59
|
+
return props.theme.colors.listItem.background.hover;
|
|
60
60
|
}, function (props) {
|
|
61
61
|
return props.isActive && (0, _styledComponents.css)(["color:", ";background-color:", ";&:hover{background-color:", ";}"], function (props) {
|
|
62
|
-
return props.theme.colors.
|
|
62
|
+
return props.theme.colors.text.inverse;
|
|
63
63
|
}, function (props) {
|
|
64
|
-
return props.theme.colors.
|
|
64
|
+
return props.theme.colors.listItem.background.selected;
|
|
65
65
|
}, function (props) {
|
|
66
|
-
return props.theme.colors.
|
|
66
|
+
return props.theme.colors.listItem.background.selected;
|
|
67
67
|
});
|
|
68
68
|
});
|
|
69
69
|
exports.SegmentedControlLabel = SegmentedControlLabel;
|
|
@@ -17,11 +17,11 @@ var Container = _styledComponents.default.div.withConfig({
|
|
|
17
17
|
displayName: "styles__Container",
|
|
18
18
|
componentId: "sc-1j75x48-0"
|
|
19
19
|
})(["position:relative;box-sizing:border-box;select{box-sizing:border-box;width:100%;border:1px solid ", ";border-radius:", ";background-color:", ";color:", ";cursor:", ";outline:none;appearance:none;transition:border-color ", " ", ",box-shadow ", " ", ";font-family:", ";font-weight:", ";margin:0;visibility:visible;padding:", ";font-size:", ";&::-ms-expand{display:none;}&:focus{", "}&:not(output):not(:focus):-moz-ui-invalid{box-shadow:none;}}@-moz-document url-prefix(){select{line-height:14px;}}", " ", " ", ""], function (props) {
|
|
20
|
-
return props.theme.colors.
|
|
20
|
+
return props.theme.colors.form.border.base;
|
|
21
21
|
}, function (props) {
|
|
22
22
|
return props.theme.radii[500];
|
|
23
23
|
}, function (props) {
|
|
24
|
-
return props.theme.colors.background.
|
|
24
|
+
return props.theme.colors.form.background.base;
|
|
25
25
|
}, function (props) {
|
|
26
26
|
return props.theme.colors.text.body;
|
|
27
27
|
}, function (props) {
|
|
@@ -64,9 +64,9 @@ var Container = _styledComponents.default.div.withConfig({
|
|
|
64
64
|
return props.disabled && (0, _styledComponents.css)(["opacity:0.4;"]);
|
|
65
65
|
}, function (props) {
|
|
66
66
|
return props.invalid && (0, _styledComponents.css)(["select{border-color:", ";}", "{color:", ";}"], function (props) {
|
|
67
|
-
return props.theme.colors.error
|
|
67
|
+
return props.theme.colors.form.border.error;
|
|
68
68
|
}, Arrow, function (props) {
|
|
69
|
-
return props.theme.colors.error
|
|
69
|
+
return props.theme.colors.icon.error;
|
|
70
70
|
});
|
|
71
71
|
}, _systemProps.COMMON);
|
|
72
72
|
|
|
@@ -86,7 +86,7 @@ var Arrow = _styledComponents.default.span.withConfig({
|
|
|
86
86
|
return props.theme.space[350];
|
|
87
87
|
}
|
|
88
88
|
}, function (props) {
|
|
89
|
-
return props.theme.colors.icon.
|
|
89
|
+
return props.theme.colors.icon.base;
|
|
90
90
|
});
|
|
91
91
|
|
|
92
92
|
exports.Arrow = Arrow;
|
|
@@ -15,9 +15,9 @@ var Skeleton = (0, _styledComponents.default)(_Box.default).withConfig({
|
|
|
15
15
|
displayName: "Skeleton",
|
|
16
16
|
componentId: "sc-1fovt5u-0"
|
|
17
17
|
})(["background:", ";background-image:", ";background-size:400%;background-repeat:no-repeat;animation:SkeletonShimmer 2.5s linear infinite reverse;@media (prefers-reduced-motion){{animation:none;}}@keyframes SkeletonShimmer{0%{background-position:0% 0;}100%{background-position:100% 0;}}"], function (p) {
|
|
18
|
-
return p.theme.colors.background.
|
|
18
|
+
return p.theme.colors.app.background.base;
|
|
19
19
|
}, function (props) {
|
|
20
|
-
return "linear-gradient(\n 288deg,\n " + (0, _polished.transparentize)(0.7, props.theme.colors.border) + " 32%,\n " + (0, _polished.transparentize)(0.05, props.theme.colors.border) + ",\n " + (0, _polished.transparentize)(0.7, props.theme.colors.border) + " 68%\n );";
|
|
20
|
+
return "linear-gradient(\n 288deg,\n " + (0, _polished.transparentize)(0.7, props.theme.colors.container.border.base) + " 32%,\n " + (0, _polished.transparentize)(0.05, props.theme.colors.container.border.base) + ",\n " + (0, _polished.transparentize)(0.7, props.theme.colors.container.border.base) + " 68%\n );";
|
|
21
21
|
});
|
|
22
22
|
var _default = Skeleton; //rgba(243, 244, 244, 0.7)
|
|
23
23
|
|
|
@@ -21,33 +21,33 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
21
21
|
var Container = _styledComponents.default.button.withConfig({
|
|
22
22
|
displayName: "styles__Container",
|
|
23
23
|
componentId: "x5lhuq-0"
|
|
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:", ";border-radius:50%;content:\"\";transition:transform ", " ", ";transform:translate(4px,-50%);}&:focus{", "}", " ", " ", ""], function (props) {
|
|
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) {
|
|
27
27
|
return props.theme.space[200];
|
|
28
28
|
}, function (props) {
|
|
29
|
-
return props.theme.colors.background.
|
|
29
|
+
return props.theme.colors.form.background.base;
|
|
30
30
|
}, function (props) {
|
|
31
31
|
return props.theme.duration.fast;
|
|
32
32
|
}, function (props) {
|
|
33
33
|
return props.theme.easing.ease_inout;
|
|
34
34
|
}, function (props) {
|
|
35
|
-
return props.theme.colors.
|
|
35
|
+
return props.theme.colors.form.border.base;
|
|
36
36
|
}, function (props) {
|
|
37
|
-
return props.theme.colors.
|
|
37
|
+
return props.theme.colors.icon.base;
|
|
38
38
|
}, function (props) {
|
|
39
39
|
return props.theme.duration.fast;
|
|
40
40
|
}, function (props) {
|
|
41
41
|
return props.theme.easing.ease_inout;
|
|
42
42
|
}, _mixins.focusRing, function (props) {
|
|
43
43
|
if (props.checked) {
|
|
44
|
-
return (0, _styledComponents.css)(["color:", ";text-align:left;border-color:", ";background-color:", ";&::after{background-color:", ";transform:translate(17px,-50%);}", "{position:absolute;top:50%;left:4px;transform:translate(0,-50%);color:", ";}"], props.theme.colors.
|
|
44
|
+
return (0, _styledComponents.css)(["color:", ";text-align:left;border-color:", ";background-color:", ";&::after{background-color:", ";opacity:1;transform:translate(17px,-50%);}", "{position:absolute;top:50%;left:4px;transform:translate(0,-50%);color:", ";}"], props.theme.colors.text.body, props.theme.colors.form.border.selected, props.theme.colors.form.background.selected, props.theme.colors.icon.inverse, _styles.default, props.theme.colors.icon.inverse);
|
|
45
45
|
} else {
|
|
46
|
-
return "\n &:hover,\n &:focus {\n border-color: " + props.theme.colors.
|
|
46
|
+
return "\n &:hover,\n &:focus {\n border-color: " + props.theme.colors.form.border.base + ";\n background-color: " + props.theme.colors.form.background.base + ";\n }\n &:hover {\n &::after {\n transform: translate(6px, -50%);\n }\n }\n ";
|
|
47
47
|
}
|
|
48
48
|
}, function (props) {
|
|
49
49
|
return props.disabled && (0, _styledComponents.css)(["opacity:0.4;cursor:not-allowed;&[aria-pressed=\"true\"]{&:hover,&:focus{background-color:", ";}}"], function (props) {
|
|
50
|
-
return props.theme.colors.
|
|
50
|
+
return props.theme.colors.container.background.selected;
|
|
51
51
|
});
|
|
52
52
|
}, _systemProps.COMMON);
|
|
53
53
|
|
package/commonjs/Table/styles.js
CHANGED
|
@@ -13,7 +13,7 @@ var Container = _styledComponents.default.table.withConfig({
|
|
|
13
13
|
displayName: "styles__Container",
|
|
14
14
|
componentId: "sc-1t7lqra-0"
|
|
15
15
|
})(["width:100%;border-collapse:collapse;thead{vertical-align:bottom;}tr,thead{border-bottom:1px solid ", ";}", ""], function (props) {
|
|
16
|
-
return props.theme.colors.border;
|
|
16
|
+
return props.theme.colors.container.border.base;
|
|
17
17
|
}, _systemProps.COMMON);
|
|
18
18
|
|
|
19
19
|
var _default = Container;
|
|
@@ -15,7 +15,7 @@ var Container = _styledComponents.default.tbody.withConfig({
|
|
|
15
15
|
displayName: "styles__Container",
|
|
16
16
|
componentId: "sc-17hu4uw-0"
|
|
17
17
|
})(["border-bottom:1px solid ", ";", ""], function (props) {
|
|
18
|
-
return props.theme.colors.border;
|
|
18
|
+
return props.theme.colors.container.border.base;
|
|
19
19
|
}, _systemProps.COMMON); // eslint-disable-next-line prettier/prettier
|
|
20
20
|
|
|
21
21
|
|
package/commonjs/Tabs/styles.js
CHANGED
|
@@ -23,7 +23,7 @@ var Container = _styledComponents.default.ul.withConfig({
|
|
|
23
23
|
}, function (props) {
|
|
24
24
|
return props.theme.borders[500];
|
|
25
25
|
}, function (props) {
|
|
26
|
-
return props.theme.colors.border;
|
|
26
|
+
return props.theme.colors.container.border.base;
|
|
27
27
|
}, _systemProps.COMMON);
|
|
28
28
|
|
|
29
29
|
var TabItem = _styledComponents.default.li.withConfig({
|
|
@@ -37,11 +37,11 @@ var TabItem = _styledComponents.default.li.withConfig({
|
|
|
37
37
|
});
|
|
38
38
|
}, function (props) {
|
|
39
39
|
return props.isSelected && (0, _styledComponents.css)(["box-shadow:", ";"], function (props) {
|
|
40
|
-
return "inset 0 -3px 0 0 " + props.theme.colors.
|
|
40
|
+
return "inset 0 -3px 0 0 " + props.theme.colors.button.primary.background.base;
|
|
41
41
|
});
|
|
42
42
|
}, function (props) {
|
|
43
43
|
return props.isSelected && (0, _styledComponents.css)(["box-shadow:", ";"], function (props) {
|
|
44
|
-
return "inset 0 -3px 0 0 " + props.theme.colors.
|
|
44
|
+
return "inset 0 -3px 0 0 " + props.theme.colors.button.primary.background.hover;
|
|
45
45
|
});
|
|
46
46
|
}); // eslint-disable-next-line prettier/prettier
|
|
47
47
|
|
|
@@ -56,11 +56,11 @@ var TabButton = (0, _styledComponents.default)(_Button.default).withConfig({
|
|
|
56
56
|
return props.theme.colors.text.headline;
|
|
57
57
|
}, function (props) {
|
|
58
58
|
return props.isSelected && (0, _styledComponents.css)(["color:", ";"], function (props) {
|
|
59
|
-
return props.theme.colors.
|
|
59
|
+
return props.theme.colors.link.base;
|
|
60
60
|
});
|
|
61
61
|
}, function (props) {
|
|
62
62
|
return props.isSelected && (0, _styledComponents.css)(["color:", ";"], function (props) {
|
|
63
|
-
return props.theme.colors.
|
|
63
|
+
return props.theme.colors.link.hover;
|
|
64
64
|
});
|
|
65
65
|
});
|
|
66
66
|
exports.TabButton = TabButton;
|