@sproutsocial/racine 7.7.0-beta-collapsible.0 → 8.0.0-beta-dark-mode.3
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 +6 -0
- package/__flow__/Badge/styles.js +1 -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 +9 -9
- 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__/ChartLegend/styles.js +6 -6
- package/__flow__/Checkbox/styles.js +18 -16
- package/__flow__/Collapsible/index.js +6 -24
- package/__flow__/Collapsible/index.stories.js +11 -82
- package/__flow__/Collapsible/styles.js +2 -28
- 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.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 -8
- 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 +336 -0
- package/__flow__/types/system-props.flow.js +2 -2
- package/__flow__/types/theme.colors.flow.js +244 -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 +1 -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/Collapsible/index.js +6 -15
- package/commonjs/Collapsible/styles.js +1 -8
- 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 +18 -10
- 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 +334 -0
- package/commonjs/types/theme.colors.flow.js +5 -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 +1 -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/Collapsible/index.js +6 -15
- package/lib/Collapsible/styles.js +1 -8
- 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 +18 -10
- 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 +306 -0
- package/lib/types/theme.colors.flow.js +1 -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 +2 -2
- 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
|
@@ -1,218 +1,43 @@
|
|
|
1
1
|
// @flow strict-local
|
|
2
|
-
import
|
|
2
|
+
import {
|
|
3
3
|
breakpoints,
|
|
4
|
+
typography,
|
|
4
5
|
fontWeights,
|
|
6
|
+
radii,
|
|
7
|
+
borders,
|
|
8
|
+
borderWidths,
|
|
9
|
+
shadows,
|
|
10
|
+
space,
|
|
5
11
|
easing,
|
|
6
12
|
duration,
|
|
7
|
-
} from "../
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export type
|
|
12
|
-
|
|
13
|
-
export type
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
| "green.400"
|
|
39
|
-
| "green.500"
|
|
40
|
-
| "green.600"
|
|
41
|
-
| "green.700"
|
|
42
|
-
| "green.800"
|
|
43
|
-
| "green.900"
|
|
44
|
-
| "green.1000"
|
|
45
|
-
| "green.1100"
|
|
46
|
-
| "red.0"
|
|
47
|
-
| "red.100"
|
|
48
|
-
| "red.200"
|
|
49
|
-
| "red.300"
|
|
50
|
-
| "red.400"
|
|
51
|
-
| "red.500"
|
|
52
|
-
| "red.600"
|
|
53
|
-
| "red.700"
|
|
54
|
-
| "red.800"
|
|
55
|
-
| "red.900"
|
|
56
|
-
| "red.1000"
|
|
57
|
-
| "blue.0"
|
|
58
|
-
| "blue.100"
|
|
59
|
-
| "blue.200"
|
|
60
|
-
| "blue.300"
|
|
61
|
-
| "blue.400"
|
|
62
|
-
| "blue.500"
|
|
63
|
-
| "blue.600"
|
|
64
|
-
| "blue.700"
|
|
65
|
-
| "blue.800"
|
|
66
|
-
| "blue.900"
|
|
67
|
-
| "blue.1000"
|
|
68
|
-
| "blue.1100"
|
|
69
|
-
| "teal.0"
|
|
70
|
-
| "teal.100"
|
|
71
|
-
| "teal.200"
|
|
72
|
-
| "teal.300"
|
|
73
|
-
| "teal.400"
|
|
74
|
-
| "teal.500"
|
|
75
|
-
| "teal.600"
|
|
76
|
-
| "teal.700"
|
|
77
|
-
| "teal.800"
|
|
78
|
-
| "teal.900"
|
|
79
|
-
| "teal.1000"
|
|
80
|
-
| "teal.1100"
|
|
81
|
-
| "aqua.0"
|
|
82
|
-
| "aqua.100"
|
|
83
|
-
| "aqua.200"
|
|
84
|
-
| "aqua.300"
|
|
85
|
-
| "aqua.400"
|
|
86
|
-
| "aqua.500"
|
|
87
|
-
| "aqua.600"
|
|
88
|
-
| "aqua.700"
|
|
89
|
-
| "aqua.800"
|
|
90
|
-
| "aqua.900"
|
|
91
|
-
| "aqua.1000"
|
|
92
|
-
| "aqua.1100"
|
|
93
|
-
| "purple.0"
|
|
94
|
-
| "purple.100"
|
|
95
|
-
| "purple.200"
|
|
96
|
-
| "purple.300"
|
|
97
|
-
| "purple.400"
|
|
98
|
-
| "purple.500"
|
|
99
|
-
| "purple.600"
|
|
100
|
-
| "purple.700"
|
|
101
|
-
| "purple.800"
|
|
102
|
-
| "purple.900"
|
|
103
|
-
| "purple.1000"
|
|
104
|
-
| "purple.1100"
|
|
105
|
-
| "yellow.0"
|
|
106
|
-
| "yellow.100"
|
|
107
|
-
| "yellow.200"
|
|
108
|
-
| "yellow.300"
|
|
109
|
-
| "yellow.400"
|
|
110
|
-
| "yellow.500"
|
|
111
|
-
| "yellow.600"
|
|
112
|
-
| "yellow.700"
|
|
113
|
-
| "yellow.800"
|
|
114
|
-
| "yellow.900"
|
|
115
|
-
| "yellow.1000"
|
|
116
|
-
| "yellow.1100"
|
|
117
|
-
| "pink.0"
|
|
118
|
-
| "pink.100"
|
|
119
|
-
| "pink.200"
|
|
120
|
-
| "pink.300"
|
|
121
|
-
| "pink.400"
|
|
122
|
-
| "pink.500"
|
|
123
|
-
| "pink.600"
|
|
124
|
-
| "pink.700"
|
|
125
|
-
| "pink.800"
|
|
126
|
-
| "pink.900"
|
|
127
|
-
| "pink.1000"
|
|
128
|
-
| "pink.1100"
|
|
129
|
-
| "orange.0"
|
|
130
|
-
| "orange.100"
|
|
131
|
-
| "orange.200"
|
|
132
|
-
| "orange.300"
|
|
133
|
-
| "orange.400"
|
|
134
|
-
| "orange.500"
|
|
135
|
-
| "orange.600"
|
|
136
|
-
| "orange.700"
|
|
137
|
-
| "orange.800"
|
|
138
|
-
| "orange.900"
|
|
139
|
-
| "orange.1000"
|
|
140
|
-
| "orange.1100"
|
|
141
|
-
| "pink.0"
|
|
142
|
-
| "pink.100"
|
|
143
|
-
| "pink.200"
|
|
144
|
-
| "pink.300"
|
|
145
|
-
| "pink.400"
|
|
146
|
-
| "pink.500"
|
|
147
|
-
| "pink.600"
|
|
148
|
-
| "pink.700"
|
|
149
|
-
| "pink.800"
|
|
150
|
-
| "pink.900"
|
|
151
|
-
| "pink.1000"
|
|
152
|
-
| "pink.1100"
|
|
153
|
-
| "network.twitter"
|
|
154
|
-
| "network.twitter_like"
|
|
155
|
-
| "network.facebook"
|
|
156
|
-
| "network.facebook_audience_network"
|
|
157
|
-
| "network.linkedin"
|
|
158
|
-
| "network.instagram"
|
|
159
|
-
| "network.feedly"
|
|
160
|
-
| "network.analytics"
|
|
161
|
-
| "network.youtube"
|
|
162
|
-
| "network.messenger"
|
|
163
|
-
| "network.snapchat"
|
|
164
|
-
| "network.pinterest"
|
|
165
|
-
| "network.tumblr"
|
|
166
|
-
| "network.reddit"
|
|
167
|
-
| "network.tripadvisor"
|
|
168
|
-
| "network.google_my_business";
|
|
169
|
-
|
|
170
|
-
export type TypeTypographySize =
|
|
171
|
-
| 100
|
|
172
|
-
| 200
|
|
173
|
-
| 300
|
|
174
|
-
| 400
|
|
175
|
-
| 500
|
|
176
|
-
| 600
|
|
177
|
-
| 700
|
|
178
|
-
| 800
|
|
179
|
-
| 900
|
|
180
|
-
| 1000
|
|
181
|
-
| 1100
|
|
182
|
-
| 1200;
|
|
183
|
-
|
|
184
|
-
export type TypeFontWeight = $Keys<typeof fontWeights>;
|
|
185
|
-
|
|
186
|
-
export type TypeSpace =
|
|
187
|
-
| 0
|
|
188
|
-
| 100
|
|
189
|
-
| 200
|
|
190
|
-
| 300
|
|
191
|
-
| 350
|
|
192
|
-
| 400
|
|
193
|
-
| 450
|
|
194
|
-
| 500
|
|
195
|
-
| 600
|
|
196
|
-
| -100
|
|
197
|
-
| -200
|
|
198
|
-
| -300
|
|
199
|
-
| -350
|
|
200
|
-
| -400
|
|
201
|
-
| -450
|
|
202
|
-
| -500
|
|
203
|
-
| -600
|
|
204
|
-
| string;
|
|
205
|
-
|
|
206
|
-
export type TypeRadii = 400 | 500 | 600 | 1000 | "inner" | "outer" | "pill";
|
|
207
|
-
|
|
208
|
-
export type TypeBorder = 500;
|
|
209
|
-
|
|
210
|
-
export type TypeBorderWidth = 500;
|
|
211
|
-
|
|
212
|
-
export type TypeShadow = 100 | 200 | 300 | 400;
|
|
213
|
-
|
|
214
|
-
export type TypeEasing = $Keys<typeof easing>;
|
|
215
|
-
|
|
216
|
-
export type TypeDuration = $Keys<typeof duration>;
|
|
217
|
-
|
|
218
|
-
export type TypeSize = "default" | "large";
|
|
13
|
+
} from "../themes/default/theme";
|
|
14
|
+
import type { TypeColors } from "./theme.colors.flow.js";
|
|
15
|
+
import type { TypeFontFamilyString } from "../themes/default/theme";
|
|
16
|
+
|
|
17
|
+
export type TypeBreakpoint = typeof breakpoints;
|
|
18
|
+
export type TypeTypography = typeof typography;
|
|
19
|
+
export type TypeFontWeight = typeof fontWeights;
|
|
20
|
+
export type TypeFontFamily = TypeFontFamilyString;
|
|
21
|
+
export type TypeSpace = typeof space;
|
|
22
|
+
export type TypeColor = TypeColors;
|
|
23
|
+
export type TypeRadii = typeof radii;
|
|
24
|
+
export type TypeBorder = typeof borders;
|
|
25
|
+
export type TypeBorderWidth = typeof borderWidths;
|
|
26
|
+
export type TypeShadow = typeof shadows;
|
|
27
|
+
export type TypeEasing = typeof easing;
|
|
28
|
+
export type TypeDuration = typeof duration;
|
|
29
|
+
|
|
30
|
+
export type TypeTheme = {
|
|
31
|
+
breakpoints: TypeBreakpoint,
|
|
32
|
+
colors: TypeColor,
|
|
33
|
+
typography: TypeTypography,
|
|
34
|
+
fontWeights: TypeFontWeight,
|
|
35
|
+
fontFamily: TypeFontFamily,
|
|
36
|
+
space: TypeSpace,
|
|
37
|
+
radii: TypeRadii,
|
|
38
|
+
borders: TypeBorder,
|
|
39
|
+
borderWidths: TypeBorderWidth,
|
|
40
|
+
shadows: TypeShadow,
|
|
41
|
+
easing: TypeEasing,
|
|
42
|
+
duration: TypeDuration,
|
|
43
|
+
};
|
package/__flow__/utils/mixins.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @flow strict-local
|
|
2
2
|
import { css } from "styled-components";
|
|
3
|
-
import theme from "
|
|
3
|
+
import theme from "../themes/default/theme";
|
|
4
4
|
import { transparentize } from "polished";
|
|
5
5
|
|
|
6
6
|
export const svgToDataURL = (svgStr: string) => {
|
|
@@ -26,8 +26,9 @@ export const visuallyHidden = css`
|
|
|
26
26
|
`;
|
|
27
27
|
|
|
28
28
|
export const focusRing = css`
|
|
29
|
-
box-shadow: 0 0 0 1px ${theme.colors.
|
|
30
|
-
0 0px 0px 4px
|
|
29
|
+
box-shadow: 0 0 0 1px ${theme.colors.button.primary.background.base},
|
|
30
|
+
0 0px 0px 4px
|
|
31
|
+
${transparentize(0.7, theme.colors.button.primary.background.base)};
|
|
31
32
|
outline: none;
|
|
32
33
|
|
|
33
34
|
&::-moz-focus-inner {
|
package/commonjs/Badge/styles.js
CHANGED
package/commonjs/Banner/index.js
CHANGED
|
@@ -83,8 +83,9 @@ var Banner = /*#__PURE__*/function (_React$Component) {
|
|
|
83
83
|
text = _this$props.text,
|
|
84
84
|
rest = _objectWithoutPropertiesLoose(_this$props, ["type", "text"]);
|
|
85
85
|
|
|
86
|
-
return /*#__PURE__*/React.createElement(_styles.default
|
|
87
|
-
|
|
86
|
+
return /*#__PURE__*/React.createElement(_styles.default // danger needs to be properly deprecated and removed DS-1094
|
|
87
|
+
, _extends({
|
|
88
|
+
type: type === "danger" ? "error" : type,
|
|
88
89
|
"data-qa-alert": "",
|
|
89
90
|
"data-qa-alert-type": type,
|
|
90
91
|
"data-qa-alert-text": text // $FlowIssue - upgrade v0.112.0
|
|
@@ -15,7 +15,7 @@ var Container = _styledComponents.default.div.withConfig({
|
|
|
15
15
|
displayName: "styles__Container",
|
|
16
16
|
componentId: "q43dr4-0"
|
|
17
17
|
})(function (props) {
|
|
18
|
-
return (0, _styledComponents.css)(["display:flex;overflow:hidden;align-items:center;justify-content:space-between;color:", ";border-radius:", ";font-family:", ";", " padding:", ";border:1px solid ", ";background-color:", ";.Icon{align-self:flex-start;margin-top:3px;margin-right:", ";min-width:16px;color:", ";}a,button{font-weight:", ";color:", ";font-size:inherit;text-decoration:underline;}> span:not(.Icon){display:block;}", " ", ""], props.theme.colors.text.
|
|
18
|
+
return (0, _styledComponents.css)(["display:flex;overflow:hidden;align-items:center;justify-content:space-between;color:", ";border-radius:", ";font-family:", ";", " padding:", ";border:1px solid ", ";background-color:", ";.Icon{align-self:flex-start;margin-top:3px;margin-right:", ";min-width:16px;color:", ";}a,button{font-weight:", ";color:", ";font-size:inherit;&:hover{color:", ";text-decoration:underline;}}> span:not(.Icon){display:block;}", " ", ""], props.theme.colors.text.body, props.theme.radii.outer, props.theme.fontFamily, props.theme.typography[200], props.theme.space[300], props.theme.colors.container.border[props.type], props.theme.colors.container.background[props.type], props.theme.space[400], props.theme.colors.icon[props.type], props.theme.fontWeights.semibold, props.theme.colors.text.body, props.theme.colors.text.body, _systemProps.COMMON, _systemProps.LAYOUT);
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
var _default = Container;
|
package/commonjs/Button/index.js
CHANGED
|
@@ -20,7 +20,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
20
20
|
var Button = function Button(_ref) {
|
|
21
21
|
var href = _ref.href,
|
|
22
22
|
_ref$appearance = _ref.appearance,
|
|
23
|
-
appearance = _ref$appearance === void 0 ? "
|
|
23
|
+
appearance = _ref$appearance === void 0 ? "unstyled" : _ref$appearance,
|
|
24
24
|
_ref$active = _ref.active,
|
|
25
25
|
active = _ref$active === void 0 ? false : _ref$active,
|
|
26
26
|
disabled = _ref.disabled,
|
|
@@ -39,8 +39,10 @@ var Button = function Button(_ref) {
|
|
|
39
39
|
|
|
40
40
|
if (!href && external) {
|
|
41
41
|
console.warn("Warning: external prop cannot be set without a href declaration");
|
|
42
|
-
}
|
|
42
|
+
} // plans to properly deprecate captured in DS-1096
|
|
43
43
|
|
|
44
|
+
|
|
45
|
+
var appearanceCheck = appearance === "default" ? "unstyled" : appearance;
|
|
44
46
|
return /*#__PURE__*/React.createElement(_styles.default, _extends({
|
|
45
47
|
title: title,
|
|
46
48
|
active: active,
|
|
@@ -52,7 +54,7 @@ var Button = function Button(_ref) {
|
|
|
52
54
|
"aria-disabled": disabled ? disabled : undefined,
|
|
53
55
|
disabled: disabled,
|
|
54
56
|
buttonSize: size,
|
|
55
|
-
appearance:
|
|
57
|
+
appearance: appearanceCheck,
|
|
56
58
|
ref: innerRef,
|
|
57
59
|
onClick: onClick,
|
|
58
60
|
"data-qa-button": title || "",
|
|
@@ -23,15 +23,15 @@ var Container = _styledComponents.default.button.withConfig({
|
|
|
23
23
|
})(["display:inline-block;box-sizing:border-box;text-align:center;font-family:", ";border:1px solid ", ";border-radius:", ";border-style:", ";background:", ";color:", ";cursor:pointer;text-decoration:none;line-height:16px;white-space:nowrap;font-weight:", ";transition:all ", " linear;margin:0;padding:", ";font-size:", ";&:visited{color:", ";}&:hover{color:", ";background:", ";text-decoration:none;box-shadow:", ";}&:active{color:", ";background:", ";transform:translateY(1px);}&:focus{", "}&:focus:active{box-shadow:none;}", " ", " ", " ", "{vertical-align:text-bottom;}", " ", ""], function (props) {
|
|
24
24
|
return props.theme.fontFamily;
|
|
25
25
|
}, function (props) {
|
|
26
|
-
return props.theme.colors.
|
|
26
|
+
return props.theme.colors.button[props.appearance].border.base;
|
|
27
27
|
}, function (props) {
|
|
28
28
|
return props.theme.radii[500];
|
|
29
29
|
}, function (props) {
|
|
30
30
|
return props.appearance === "placeholder" ? "dashed" : "solid";
|
|
31
31
|
}, function (props) {
|
|
32
|
-
return props.theme.colors.
|
|
32
|
+
return props.theme.colors.button[props.appearance].background.base;
|
|
33
33
|
}, function (props) {
|
|
34
|
-
return props.theme.colors.
|
|
34
|
+
return props.theme.colors.button[props.appearance].text.base;
|
|
35
35
|
}, function (props) {
|
|
36
36
|
return props.theme.fontWeights.bold;
|
|
37
37
|
}, function (props) {
|
|
@@ -41,24 +41,25 @@ var Container = _styledComponents.default.button.withConfig({
|
|
|
41
41
|
}, function (props) {
|
|
42
42
|
return props.buttonSize === "default" ? props.theme.typography[200].fontSize : props.theme.typography[300].fontSize;
|
|
43
43
|
}, function (props) {
|
|
44
|
-
return props.theme.colors.
|
|
44
|
+
return props.theme.colors.button[props.appearance].text.base;
|
|
45
45
|
}, function (props) {
|
|
46
|
-
return props.theme.colors.
|
|
46
|
+
return props.theme.colors.button[props.appearance].text.hover;
|
|
47
47
|
}, function (props) {
|
|
48
|
-
return props.theme.colors.
|
|
48
|
+
return props.theme.colors.button[props.appearance].background.hover;
|
|
49
49
|
}, function (props) {
|
|
50
50
|
return props.appearance === "placeholder" ? props.theme.shadows[100] : "none";
|
|
51
51
|
}, function (props) {
|
|
52
|
-
return props.theme.colors.
|
|
52
|
+
return props.theme.colors.button[props.appearance].text.hover;
|
|
53
53
|
}, function (props) {
|
|
54
|
-
return props.theme.colors.
|
|
54
|
+
return props.theme.colors.button[props.appearance].background.active;
|
|
55
55
|
}, _mixins.focusRing, function (props) {
|
|
56
|
-
return props.active && (0, _styledComponents.css)(["color:", " !important;background:", " !important;"], props.theme.colors.
|
|
56
|
+
return props.active && (0, _styledComponents.css)(["color:", " !important;background:", " !important;"], props.theme.colors.button[props.appearance].text.hover, props.theme.colors.button[props.appearance].background.active);
|
|
57
57
|
}, function (props) {
|
|
58
58
|
return props.disabled && _mixins.disabled;
|
|
59
59
|
}, function (props) {
|
|
60
|
-
return props.appearance === "pill" && (0, _styledComponents.css)(["display:inline-flex;align-items:center;justify-content:center;mix-blend-mode:
|
|
60
|
+
return props.appearance === "pill" && (0, _styledComponents.css)(["display:inline-flex;align-items:center;justify-content:center;mix-blend-mode:", ";", ""], props.theme.mode ? "screen" : "multiply", _mixins.pill);
|
|
61
61
|
}, _styles.default, _systemProps.LAYOUT, _systemProps.COMMON);
|
|
62
62
|
|
|
63
|
-
var _default = Container;
|
|
63
|
+
var _default = Container; //${props.theme.mode === "dark" ? "screen" : "multiply"}
|
|
64
|
+
|
|
64
65
|
exports.default = _default;
|
package/commonjs/Card/index.js
CHANGED
|
@@ -26,11 +26,11 @@ var Card = function Card(_ref) {
|
|
|
26
26
|
_ref$border = _ref.border,
|
|
27
27
|
border = _ref$border === void 0 ? 500 : _ref$border,
|
|
28
28
|
_ref$borderColor = _ref.borderColor,
|
|
29
|
-
borderColor = _ref$borderColor === void 0 ? "border" : _ref$borderColor,
|
|
29
|
+
borderColor = _ref$borderColor === void 0 ? "container.border.base" : _ref$borderColor,
|
|
30
30
|
_ref$color = _ref.color,
|
|
31
31
|
color = _ref$color === void 0 ? "text.body" : _ref$color,
|
|
32
32
|
_ref$bg = _ref.bg,
|
|
33
|
-
bg = _ref$bg === void 0 ? "background.
|
|
33
|
+
bg = _ref$bg === void 0 ? "container.background.base" : _ref$bg,
|
|
34
34
|
rest = _objectWithoutPropertiesLoose(_ref, ["onClick", "href", "children", "ariaLabel", "buttonProps", "border", "borderColor", "color", "bg"]);
|
|
35
35
|
|
|
36
36
|
return /*#__PURE__*/React.createElement(_styles.Container, _extends({}, rest, {
|
|
@@ -21,7 +21,7 @@ var Container = _styledComponents.default.div.withConfig({
|
|
|
21
21
|
}, function (props) {
|
|
22
22
|
return props.theme.fontWeights.semibold;
|
|
23
23
|
}, function (props) {
|
|
24
|
-
return props.overlimit ? props.theme.colors.error
|
|
24
|
+
return props.overlimit ? props.theme.colors.text.error : props.theme.colors.text.subtext;
|
|
25
25
|
}, function (p) {
|
|
26
26
|
return p.mini && (0, _styledComponents.css)(["", ""], p.theme.typography[100]);
|
|
27
27
|
}, _systemProps.COMMON);
|
|
@@ -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;
|
|
@@ -29,10 +29,7 @@ var Collapsible = function Collapsible(_ref) {
|
|
|
29
29
|
_ref$isOpen = _ref.isOpen,
|
|
30
30
|
isOpen = _ref$isOpen === void 0 ? false : _ref$isOpen,
|
|
31
31
|
_ref$offset = _ref.offset,
|
|
32
|
-
offset = _ref$offset === void 0 ? 0 : _ref$offset
|
|
33
|
-
_ref$collapsedHeight = _ref.collapsedHeight,
|
|
34
|
-
collapsedHeight = _ref$collapsedHeight === void 0 ? 0 : _ref$collapsedHeight,
|
|
35
|
-
openHeight = _ref.openHeight;
|
|
32
|
+
offset = _ref$offset === void 0 ? 0 : _ref$offset;
|
|
36
33
|
|
|
37
34
|
var _useState = (0, React.useState)("Racine-collapsible-" + idCounter++),
|
|
38
35
|
id = _useState[0];
|
|
@@ -41,9 +38,7 @@ var Collapsible = function Collapsible(_ref) {
|
|
|
41
38
|
value: {
|
|
42
39
|
isOpen: isOpen,
|
|
43
40
|
id: id,
|
|
44
|
-
offset: offset
|
|
45
|
-
collapsedHeight: collapsedHeight,
|
|
46
|
-
openHeight: openHeight
|
|
41
|
+
offset: offset
|
|
47
42
|
}
|
|
48
43
|
}, children);
|
|
49
44
|
};
|
|
@@ -69,9 +64,7 @@ var Panel = function Panel(_ref3) {
|
|
|
69
64
|
var _useContext2 = (0, React.useContext)(CollapsibleContext),
|
|
70
65
|
isOpen = _useContext2.isOpen,
|
|
71
66
|
id = _useContext2.id,
|
|
72
|
-
offset = _useContext2.offset
|
|
73
|
-
collapsedHeight = _useContext2.collapsedHeight,
|
|
74
|
-
openHeight = _useContext2.openHeight;
|
|
67
|
+
offset = _useContext2.offset;
|
|
75
68
|
|
|
76
69
|
var ref = (0, React.useRef)();
|
|
77
70
|
var measurement = (0, _useMeasure.default)(ref);
|
|
@@ -84,7 +77,7 @@ var Panel = function Panel(_ref3) {
|
|
|
84
77
|
// There is no animation because css is not changing the maxHeight property after mount
|
|
85
78
|
|
|
86
79
|
|
|
87
|
-
var maxHeight =
|
|
80
|
+
var maxHeight = isHidden === undefined ? undefined : measurement.height + offset;
|
|
88
81
|
/* We use the "hidden" attribute to remove the contents of the panel from the tab order of the page, but it fucks with the animation. This logic sets a slight timeout on setting the prop so that the animation has time to complete before the attribute is set. */
|
|
89
82
|
|
|
90
83
|
(0, React.useEffect)(function () {
|
|
@@ -110,14 +103,12 @@ var Panel = function Panel(_ref3) {
|
|
|
110
103
|
}
|
|
111
104
|
}, [isOpen]);
|
|
112
105
|
return /*#__PURE__*/React.createElement(_styles.CollapsingBox, _extends({
|
|
113
|
-
|
|
114
|
-
maxHeight: isOpen ? maxHeight : collapsedHeight,
|
|
115
|
-
minHeight: collapsedHeight,
|
|
106
|
+
maxHeight: isOpen ? maxHeight : "0",
|
|
116
107
|
"data-qa-collapsible": "",
|
|
117
108
|
"data-qa-collapsible-isopen": isOpen === true
|
|
118
109
|
}, rest), /*#__PURE__*/React.createElement(_Box.default, {
|
|
119
110
|
width: "100%",
|
|
120
|
-
hidden: isHidden
|
|
111
|
+
hidden: isHidden,
|
|
121
112
|
"aria-hidden": !isOpen,
|
|
122
113
|
id: id,
|
|
123
114
|
ref: ref
|
|
@@ -12,16 +12,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
12
12
|
var CollapsingBox = (0, _styledComponents.default)(_Box.default).withConfig({
|
|
13
13
|
displayName: "styles__CollapsingBox",
|
|
14
14
|
componentId: "sc-1xvfbl7-0"
|
|
15
|
-
})(["transition:max-height ", " ", ";will-change:max-height;
|
|
15
|
+
})(["transition:max-height ", " ", ";will-change:max-height;overflow:hidden;"], function (p) {
|
|
16
16
|
return p.theme.duration.medium;
|
|
17
17
|
}, function (p) {
|
|
18
18
|
return p.theme.easing.ease_inout;
|
|
19
|
-
}, function (p) {
|
|
20
|
-
return p.theme.colors.neutral[100];
|
|
21
|
-
}, function (p) {
|
|
22
|
-
return p.theme.colors.neutral[100];
|
|
23
|
-
}, function (_ref) {
|
|
24
|
-
var scrollable = _ref.scrollable;
|
|
25
|
-
return scrollable ? "overflow: auto" : "overflow: hidden";
|
|
26
19
|
});
|
|
27
20
|
exports.CollapsingBox = CollapsingBox;
|
|
@@ -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) {
|