@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.
Files changed (179) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/__flow__/Badge/styles.js +1 -1
  3. package/__flow__/Banner/index.js +2 -1
  4. package/__flow__/Banner/styles.js +9 -6
  5. package/__flow__/Box/index.stories.js +3 -3
  6. package/__flow__/Box/styles.js +9 -9
  7. package/__flow__/Button/__snapshots__/index.test.js.snap +4 -4
  8. package/__flow__/Button/index.js +7 -2
  9. package/__flow__/Button/index.stories.js +6 -1
  10. package/__flow__/Button/styles.js +17 -12
  11. package/__flow__/Card/index.js +2 -2
  12. package/__flow__/CharacterCounter/styles.js +1 -1
  13. package/__flow__/ChartLegend/styles.js +6 -6
  14. package/__flow__/Checkbox/styles.js +18 -16
  15. package/__flow__/Collapsible/index.js +6 -24
  16. package/__flow__/Collapsible/index.stories.js +11 -82
  17. package/__flow__/Collapsible/styles.js +2 -28
  18. package/__flow__/DatePicker/styles.js +14 -12
  19. package/__flow__/Drawer/styles.js +1 -1
  20. package/__flow__/FormField/index.js +1 -1
  21. package/__flow__/Icon/index.stories.js +24 -6
  22. package/__flow__/Input/styles.js +6 -6
  23. package/__flow__/KeyboardKey/styles.js +2 -2
  24. package/__flow__/Link/styles.js +3 -5
  25. package/__flow__/Listbox/__snapshots__/index.test.js.snap +8 -2
  26. package/__flow__/Listbox/index.js +4 -4
  27. package/__flow__/Menu/__snapshots__/index.test.js.snap +5 -2
  28. package/__flow__/Menu/index.js +7 -2
  29. package/__flow__/Menu/styles.js +6 -3
  30. package/__flow__/Message/index.js +2 -2
  31. package/__flow__/Message/index.stories.js +1 -1
  32. package/__flow__/Modal/index.js +1 -1
  33. package/__flow__/Modal/index.stories.js +14 -8
  34. package/__flow__/Modal/styles.js +2 -2
  35. package/__flow__/Numeral/styles.js +2 -1
  36. package/__flow__/OverflowList/index.stories.js +15 -8
  37. package/__flow__/Popout/index.js +3 -3
  38. package/__flow__/Radio/styles.js +8 -8
  39. package/__flow__/SegmentedControl/styles.js +9 -5
  40. package/__flow__/Select/styles.js +5 -5
  41. package/__flow__/Skeleton/index.js +4 -4
  42. package/__flow__/Skeleton/index.stories.js +1 -1
  43. package/__flow__/Stack/index.js +1 -1
  44. package/__flow__/Stack/index.stories.js +3 -1
  45. package/__flow__/Switch/styles.js +13 -11
  46. package/__flow__/Table/styles.js +2 -1
  47. package/__flow__/TableCell/index.stories.js +2 -0
  48. package/__flow__/TableHeaderCell/index.stories.js +3 -0
  49. package/__flow__/TableRowAccordion/styles.js +2 -1
  50. package/__flow__/Tabs/styles.js +5 -5
  51. package/__flow__/Textarea/styles.js +5 -5
  52. package/__flow__/ThemeProvider/index.js +2 -2
  53. package/__flow__/Toast/index.js +1 -1
  54. package/__flow__/Toast/styles.js +3 -3
  55. package/__flow__/Token/styles.js +19 -8
  56. package/__flow__/TokenInput/index.js +2 -1
  57. package/__flow__/TokenInput/styles.js +14 -6
  58. package/__flow__/Tooltip/index.js +2 -2
  59. package/__flow__/index.js +2 -2
  60. package/__flow__/themes/dark/decorative-palettes.js +43 -0
  61. package/__flow__/themes/dark/theme.js +195 -0
  62. package/__flow__/themes/default/decorative-palettes.js +43 -0
  63. package/__flow__/themes/default/literal-colors.js +160 -0
  64. package/__flow__/themes/default/theme.js +336 -0
  65. package/__flow__/types/system-props.flow.js +2 -2
  66. package/__flow__/types/theme.colors.flow.js +244 -0
  67. package/__flow__/types/theme.flow.js +38 -213
  68. package/__flow__/utils/mixins.js +4 -3
  69. package/__flow__/utils/responsiveProps/index.js +1 -1
  70. package/commonjs/Badge/styles.js +1 -1
  71. package/commonjs/Banner/index.js +3 -2
  72. package/commonjs/Banner/styles.js +1 -1
  73. package/commonjs/Button/index.js +5 -3
  74. package/commonjs/Button/styles.js +12 -11
  75. package/commonjs/Card/index.js +2 -2
  76. package/commonjs/CharacterCounter/styles.js +1 -1
  77. package/commonjs/Checkbox/styles.js +7 -7
  78. package/commonjs/Collapsible/index.js +6 -15
  79. package/commonjs/Collapsible/styles.js +1 -8
  80. package/commonjs/DatePicker/styles.js +13 -11
  81. package/commonjs/Drawer/styles.js +1 -1
  82. package/commonjs/FormField/index.js +1 -1
  83. package/commonjs/Input/styles.js +6 -6
  84. package/commonjs/KeyboardKey/styles.js +2 -2
  85. package/commonjs/Link/styles.js +4 -8
  86. package/commonjs/Listbox/index.js +4 -4
  87. package/commonjs/Menu/index.js +2 -2
  88. package/commonjs/Menu/styles.js +10 -4
  89. package/commonjs/Message/index.js +2 -2
  90. package/commonjs/Modal/index.js +1 -1
  91. package/commonjs/Modal/styles.js +2 -2
  92. package/commonjs/Numeral/styles.js +1 -1
  93. package/commonjs/Popout/index.js +2 -2
  94. package/commonjs/Radio/styles.js +4 -4
  95. package/commonjs/SegmentedControl/styles.js +5 -5
  96. package/commonjs/Select/styles.js +5 -5
  97. package/commonjs/Skeleton/index.js +2 -2
  98. package/commonjs/Switch/styles.js +7 -7
  99. package/commonjs/Table/styles.js +1 -1
  100. package/commonjs/TableRowAccordion/styles.js +1 -1
  101. package/commonjs/Tabs/styles.js +5 -5
  102. package/commonjs/Textarea/styles.js +5 -5
  103. package/commonjs/ThemeProvider/index.js +1 -1
  104. package/commonjs/Toast/index.js +1 -1
  105. package/commonjs/Toast/styles.js +3 -3
  106. package/commonjs/Token/styles.js +18 -10
  107. package/commonjs/TokenInput/index.js +38 -35
  108. package/commonjs/TokenInput/styles.js +9 -7
  109. package/commonjs/Tooltip/index.js +2 -2
  110. package/commonjs/index.js +3 -3
  111. package/commonjs/themes/dark/decorative-palettes.js +51 -0
  112. package/commonjs/themes/dark/theme.js +195 -0
  113. package/commonjs/themes/default/decorative-palettes.js +51 -0
  114. package/commonjs/themes/default/literal-colors.js +165 -0
  115. package/commonjs/themes/default/theme.js +334 -0
  116. package/commonjs/types/theme.colors.flow.js +5 -0
  117. package/commonjs/types/theme.flow.js +1 -5
  118. package/commonjs/utils/mixins.js +2 -2
  119. package/commonjs/utils/responsiveProps/index.js +1 -1
  120. package/lib/Badge/styles.js +1 -1
  121. package/lib/Banner/index.js +3 -2
  122. package/lib/Banner/styles.js +1 -1
  123. package/lib/Button/index.js +5 -3
  124. package/lib/Button/styles.js +11 -11
  125. package/lib/Card/index.js +2 -2
  126. package/lib/CharacterCounter/styles.js +1 -1
  127. package/lib/Checkbox/styles.js +7 -7
  128. package/lib/Collapsible/index.js +6 -15
  129. package/lib/Collapsible/styles.js +1 -8
  130. package/lib/DatePicker/styles.js +12 -11
  131. package/lib/Drawer/styles.js +1 -1
  132. package/lib/FormField/index.js +1 -1
  133. package/lib/Input/styles.js +6 -6
  134. package/lib/KeyboardKey/styles.js +2 -2
  135. package/lib/Link/styles.js +4 -8
  136. package/lib/Listbox/index.js +4 -4
  137. package/lib/Menu/index.js +2 -2
  138. package/lib/Menu/styles.js +10 -4
  139. package/lib/Message/index.js +2 -2
  140. package/lib/Modal/index.js +1 -1
  141. package/lib/Modal/styles.js +2 -2
  142. package/lib/Numeral/styles.js +1 -1
  143. package/lib/Popout/index.js +2 -2
  144. package/lib/Radio/styles.js +4 -4
  145. package/lib/SegmentedControl/styles.js +5 -5
  146. package/lib/Select/styles.js +5 -5
  147. package/lib/Skeleton/index.js +2 -2
  148. package/lib/Switch/styles.js +7 -7
  149. package/lib/Table/styles.js +1 -1
  150. package/lib/TableRowAccordion/styles.js +1 -1
  151. package/lib/Tabs/styles.js +5 -5
  152. package/lib/Textarea/styles.js +5 -5
  153. package/lib/ThemeProvider/index.js +1 -1
  154. package/lib/Toast/index.js +1 -1
  155. package/lib/Toast/styles.js +3 -3
  156. package/lib/Token/styles.js +18 -10
  157. package/lib/TokenInput/index.js +38 -35
  158. package/lib/TokenInput/styles.js +9 -7
  159. package/lib/Tooltip/index.js +2 -2
  160. package/lib/index.js +2 -2
  161. package/lib/themes/dark/decorative-palettes.js +36 -0
  162. package/lib/themes/dark/theme.js +185 -0
  163. package/lib/themes/default/decorative-palettes.js +36 -0
  164. package/lib/themes/default/literal-colors.js +156 -0
  165. package/lib/themes/default/theme.js +306 -0
  166. package/lib/types/theme.colors.flow.js +1 -0
  167. package/lib/types/theme.flow.js +1 -1
  168. package/lib/utils/mixins.js +2 -2
  169. package/lib/utils/responsiveProps/index.js +1 -1
  170. package/package.json +2 -2
  171. package/__flow__/themes/dark.js +0 -133
  172. package/__flow__/themes/light.js +0 -7
  173. package/__flow__/utils/theme.js +0 -422
  174. package/commonjs/themes/dark.js +0 -140
  175. package/commonjs/themes/light.js +0 -14
  176. package/commonjs/utils/theme.js +0 -421
  177. package/lib/themes/dark.js +0 -131
  178. package/lib/themes/light.js +0 -5
  179. package/lib/utils/theme.js +0 -402
@@ -0,0 +1,334 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = exports.duration = exports.easing = exports.shadows = exports.borderWidths = exports.borders = exports.radii = exports.space = exports.fontWeights = exports.fontFamily = exports.typography = exports.breakpoints = void 0;
5
+
6
+ var _seedsColor = _interopRequireDefault(require("@sproutsocial/seeds-color"));
7
+
8
+ var _literalColors = _interopRequireDefault(require("./literal-colors"));
9
+
10
+ var _decorativePalettes = require("./decorative-palettes");
11
+
12
+ var _seedsNetworkcolor = _interopRequireDefault(require("@sproutsocial/seeds-networkcolor"));
13
+
14
+ var _seedsTypography = _interopRequireDefault(require("@sproutsocial/seeds-typography"));
15
+
16
+ var _seedsSpace = _interopRequireDefault(require("@sproutsocial/seeds-space"));
17
+
18
+ var _seedsDepth = _interopRequireDefault(require("@sproutsocial/seeds-depth"));
19
+
20
+ var _seedsMotion = _interopRequireDefault(require("@sproutsocial/seeds-motion"));
21
+
22
+ var _seedsBorder = _interopRequireDefault(require("@sproutsocial/seeds-border"));
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
+
26
+ 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); }
27
+
28
+ var breakpoints = ["900px", "1200px", "1500px", "1800px"];
29
+ exports.breakpoints = breakpoints;
30
+
31
+ var colors = _extends({
32
+ app: {
33
+ background: {
34
+ base: _seedsColor.default.COLOR_NEUTRAL_100
35
+ }
36
+ },
37
+ container: {
38
+ background: {
39
+ base: _seedsColor.default.COLOR_NEUTRAL_0,
40
+ success: _decorativePalettes.green.background,
41
+ warning: _decorativePalettes.yellow.background,
42
+ error: _decorativePalettes.red.background,
43
+ info: _decorativePalettes.blue.background,
44
+ opportunity: _decorativePalettes.purple.background,
45
+ danger: _decorativePalettes.red.background,
46
+ decorative: {
47
+ green: _decorativePalettes.green.background,
48
+ blue: _decorativePalettes.blue.background,
49
+ purple: _decorativePalettes.purple.background,
50
+ yellow: _decorativePalettes.yellow.background,
51
+ orange: _decorativePalettes.orange.background,
52
+ red: _decorativePalettes.red.background,
53
+ neutral: _decorativePalettes.neutral.background
54
+ },
55
+ selected: _seedsColor.default.COLOR_NEUTRAL_800
56
+ },
57
+ border: {
58
+ base: _seedsColor.default.COLOR_NEUTRAL_200,
59
+ success: _decorativePalettes.green.highlight,
60
+ warning: _decorativePalettes.yellow.highlight,
61
+ error: _decorativePalettes.red.highlight,
62
+ danger: _decorativePalettes.red.highlight,
63
+ info: _decorativePalettes.blue.highlight,
64
+ opportunity: _decorativePalettes.purple.highlight,
65
+ decorative: {
66
+ green: _decorativePalettes.green.highlight,
67
+ blue: _decorativePalettes.blue.highlight,
68
+ purple: _decorativePalettes.purple.highlight,
69
+ yellow: _decorativePalettes.yellow.highlight,
70
+ orange: _decorativePalettes.orange.highlight,
71
+ red: _decorativePalettes.red.highlight,
72
+ neutral: _decorativePalettes.neutral.highlight
73
+ },
74
+ selected: _seedsColor.default.COLOR_NEUTRAL_800
75
+ }
76
+ },
77
+ button: {
78
+ primary: {
79
+ background: {
80
+ base: _seedsColor.default.COLOR_BLUE_700,
81
+ hover: _seedsColor.default.COLOR_BLUE_800,
82
+ active: _seedsColor.default.COLOR_BLUE_900
83
+ },
84
+ border: {
85
+ base: "transparent"
86
+ },
87
+ text: {
88
+ base: _seedsColor.default.COLOR_NEUTRAL_0,
89
+ hover: _seedsColor.default.COLOR_NEUTRAL_0
90
+ }
91
+ },
92
+ secondary: {
93
+ background: {
94
+ base: "transparent",
95
+ hover: _seedsColor.default.COLOR_NEUTRAL_800,
96
+ active: _seedsColor.default.COLOR_NEUTRAL_900
97
+ },
98
+ border: {
99
+ base: _seedsColor.default.COLOR_NEUTRAL_800
100
+ },
101
+ text: {
102
+ base: _seedsColor.default.COLOR_NEUTRAL_800,
103
+ hover: _seedsColor.default.COLOR_NEUTRAL_0
104
+ }
105
+ },
106
+ pill: {
107
+ background: {
108
+ base: "transparent",
109
+ hover: _seedsColor.default.COLOR_NEUTRAL_100,
110
+ active: _seedsColor.default.COLOR_NEUTRAL_200
111
+ },
112
+ border: {
113
+ base: "transparent"
114
+ },
115
+ text: {
116
+ base: _seedsColor.default.COLOR_NEUTRAL_800,
117
+ hover: _seedsColor.default.COLOR_NEUTRAL_900
118
+ }
119
+ },
120
+ destructive: {
121
+ background: {
122
+ base: _seedsColor.default.COLOR_RED_800,
123
+ hover: _seedsColor.default.COLOR_RED_900,
124
+ active: _seedsColor.default.COLOR_RED_1000
125
+ },
126
+ border: {
127
+ base: "transparent"
128
+ },
129
+ text: {
130
+ base: _seedsColor.default.COLOR_NEUTRAL_0,
131
+ hover: _seedsColor.default.COLOR_NEUTRAL_0
132
+ }
133
+ },
134
+ placeholder: {
135
+ background: {
136
+ base: "transparent",
137
+ hover: _seedsColor.default.COLOR_NEUTRAL_0,
138
+ active: _seedsColor.default.COLOR_NEUTRAL_0
139
+ },
140
+ border: {
141
+ base: _seedsColor.default.COLOR_NEUTRAL_500
142
+ },
143
+ text: {
144
+ base: _seedsColor.default.COLOR_BLUE_700,
145
+ hover: _seedsColor.default.COLOR_BLUE_800
146
+ }
147
+ },
148
+ unstyled: {
149
+ background: {
150
+ base: "transparent"
151
+ },
152
+ border: {
153
+ base: "transparent"
154
+ },
155
+ text: {
156
+ base: _seedsColor.default.COLOR_NEUTRAL_700,
157
+ hover: _seedsColor.default.COLOR_NEUTRAL_900
158
+ }
159
+ }
160
+ },
161
+ link: {
162
+ base: _seedsColor.default.COLOR_BLUE_800,
163
+ hover: _seedsColor.default.COLOR_BLUE_900
164
+ },
165
+ text: {
166
+ headline: _seedsColor.default.COLOR_NEUTRAL_900,
167
+ subtext: _seedsColor.default.COLOR_NEUTRAL_700,
168
+ body: _seedsColor.default.COLOR_NEUTRAL_800,
169
+ inverse: _seedsColor.default.COLOR_NEUTRAL_0,
170
+ error: _seedsColor.default.COLOR_RED_800
171
+ },
172
+ icon: {
173
+ base: _seedsColor.default.COLOR_NEUTRAL_800,
174
+ inverse: _seedsColor.default.COLOR_NEUTRAL_0,
175
+ success: _decorativePalettes.green.foreground,
176
+ warning: _decorativePalettes.yellow.foreground,
177
+ error: _decorativePalettes.red.foreground,
178
+ danger: _decorativePalettes.red.foreground,
179
+ info: _decorativePalettes.blue.foreground,
180
+ opportunity: _decorativePalettes.purple.foreground
181
+ },
182
+ form: {
183
+ background: {
184
+ base: _seedsColor.default.COLOR_NEUTRAL_0,
185
+ selected: _seedsColor.default.COLOR_NEUTRAL_800
186
+ },
187
+ border: {
188
+ base: _seedsColor.default.COLOR_NEUTRAL_400,
189
+ error: _decorativePalettes.red.highlight,
190
+ warning: _decorativePalettes.yellow.highlight,
191
+ selected: _seedsColor.default.COLOR_NEUTRAL_800
192
+ },
193
+ placeholder: {
194
+ base: _seedsColor.default.COLOR_NEUTRAL_600
195
+ }
196
+ },
197
+ listItem: {
198
+ background: {
199
+ base: "transparent",
200
+ hover: _seedsColor.default.COLOR_NEUTRAL_100,
201
+ selected: _seedsColor.default.COLOR_NEUTRAL_800
202
+ }
203
+ },
204
+ network: {
205
+ twitter: _seedsNetworkcolor.default.NETWORK_COLOR_TWITTER,
206
+ twitter_like: _seedsNetworkcolor.default.NETWORK_COLOR_TWITTER_LIKE,
207
+ facebook: _seedsNetworkcolor.default.NETWORK_COLOR_FACEBOOK,
208
+ facebook_audience_network: _seedsNetworkcolor.default.NETWORK_COLOR_FACEBOOK_AUDIENCE_NETWORK,
209
+ linkedin: _seedsNetworkcolor.default.NETWORK_COLOR_LINKEDIN,
210
+ instagram: _seedsNetworkcolor.default.NETWORK_COLOR_INSTAGRAM,
211
+ feedly: _seedsNetworkcolor.default.NETWORK_COLOR_FEEDLY,
212
+ analytics: _seedsNetworkcolor.default.NETWORK_COLOR_ANALYTICS,
213
+ youtube: _seedsNetworkcolor.default.NETWORK_COLOR_YOUTUBE,
214
+ messenger: _seedsNetworkcolor.default.NETWORK_COLOR_MESSENGER,
215
+ snapchat: _seedsNetworkcolor.default.NETWORK_COLOR_SNAPCHAT,
216
+ pinterest: _seedsNetworkcolor.default.NETWORK_COLOR_PINTEREST,
217
+ tumblr: _seedsNetworkcolor.default.NETWORK_COLOR_TUMBLR,
218
+ reddit: _seedsNetworkcolor.default.NETWORK_COLOR_REDDIT,
219
+ tripadvisor: _seedsNetworkcolor.default.NETWORK_COLOR_TRIPADVISOR,
220
+ glassdoor: _seedsNetworkcolor.default.NETWORK_COLOR_GLASSDOOR,
221
+ google_my_business: _seedsNetworkcolor.default.NETWORK_COLOR_GOOGLE_MY_BUSINESS,
222
+ google_business_messages: _seedsNetworkcolor.default.NETWORK_COLOR_GOOGLE_BUSINESS_MESSAGES,
223
+ salesforce: _seedsNetworkcolor.default.NETWORK_COLOR_SALESFORCE,
224
+ zendesk: _seedsNetworkcolor.default.NETWORK_COLOR_ZENDESK,
225
+ hubspot: _seedsNetworkcolor.default.NETWORK_COLOR_HUBSPOT,
226
+ microsoft_dynamics: _seedsNetworkcolor.default.NETWORK_COLOR_MICROSOFT_DYNAMICS,
227
+ yelp: _seedsNetworkcolor.default.NETWORK_COLOR_YELP,
228
+ whatsapp: _seedsNetworkcolor.default.NETWORK_COLOR_WHATSAPP
229
+ }
230
+ }, _literalColors.default);
231
+
232
+ var typography = {
233
+ "100": _seedsTypography.default.TYPOGRAPHY_SIZE_100,
234
+ "200": _seedsTypography.default.TYPOGRAPHY_SIZE_200,
235
+ "300": _seedsTypography.default.TYPOGRAPHY_SIZE_300,
236
+ "400": _seedsTypography.default.TYPOGRAPHY_SIZE_400,
237
+ "500": _seedsTypography.default.TYPOGRAPHY_SIZE_500,
238
+ "600": _seedsTypography.default.TYPOGRAPHY_SIZE_600,
239
+ "700": _seedsTypography.default.TYPOGRAPHY_SIZE_700,
240
+ "800": _seedsTypography.default.TYPOGRAPHY_SIZE_800,
241
+ "900": _seedsTypography.default.TYPOGRAPHY_SIZE_900,
242
+ "1000": _seedsTypography.default.TYPOGRAPHY_SIZE_1000,
243
+ "1100": _seedsTypography.default.TYPOGRAPHY_SIZE_1100,
244
+ "1200": _seedsTypography.default.TYPOGRAPHY_SIZE_1200
245
+ };
246
+ exports.typography = typography;
247
+ var fontFamily = _seedsTypography.default.TYPOGRAPHY_FAMILY;
248
+ exports.fontFamily = fontFamily;
249
+ var fontWeights = {
250
+ normal: _seedsTypography.default.TYPOGRAPHY_WEIGHT_NORMAL,
251
+ semibold: _seedsTypography.default.TYPOGRAPHY_WEIGHT_SEMIBOLD,
252
+ bold: _seedsTypography.default.TYPOGRAPHY_WEIGHT_BOLD,
253
+ extrabold: _seedsTypography.default.TYPOGRAPHY_WEIGHT_EXTRA_BOLD
254
+ };
255
+ exports.fontWeights = fontWeights;
256
+ var space = {
257
+ "0": _seedsSpace.default.SPACE_SIZE_0,
258
+ "100": _seedsSpace.default.SPACE_SIZE_100,
259
+ "200": _seedsSpace.default.SPACE_SIZE_200,
260
+ "300": _seedsSpace.default.SPACE_SIZE_300,
261
+ "350": _seedsSpace.default.SPACE_SIZE_350,
262
+ "400": _seedsSpace.default.SPACE_SIZE_400,
263
+ "450": _seedsSpace.default.SPACE_SIZE_450,
264
+ "500": _seedsSpace.default.SPACE_SIZE_500,
265
+ "600": _seedsSpace.default.SPACE_SIZE_600
266
+ };
267
+ exports.space = space;
268
+ var radii = {
269
+ "400": _seedsBorder.default.BORDER_RADIUS_400,
270
+ "500": _seedsBorder.default.BORDER_RADIUS_500,
271
+ "600": _seedsBorder.default.BORDER_RADIUS_600,
272
+ "1000": _seedsBorder.default.BORDER_RADIUS_1000,
273
+ inner: _seedsBorder.default.BORDER_RADIUS_500,
274
+ outer: _seedsBorder.default.BORDER_RADIUS_600,
275
+ pill: _seedsBorder.default.BORDER_RADIUS_1000
276
+ };
277
+ exports.radii = radii;
278
+ var borders = {
279
+ "500": _seedsBorder.default.BORDER_WIDTH_500 + " solid"
280
+ };
281
+ exports.borders = borders;
282
+ var borderWidths = {
283
+ "500": _seedsBorder.default.BORDER_WIDTH_500
284
+ };
285
+ exports.borderWidths = borderWidths;
286
+ var shadows = {
287
+ "100": _seedsDepth.default.ELEVATION_LEVEL_100,
288
+ "200": _seedsDepth.default.ELEVATION_LEVEL_200,
289
+ "300": _seedsDepth.default.ELEVATION_LEVEL_300,
290
+ "400": _seedsDepth.default.ELEVATION_LEVEL_400
291
+ };
292
+ exports.shadows = shadows;
293
+ var easing = {
294
+ ease_in: _seedsMotion.default.MOTION_EASE_IN,
295
+ ease_out: _seedsMotion.default.MOTION_EASE_OUT,
296
+ ease_inout: _seedsMotion.default.MOTION_EASE_INOUT
297
+ };
298
+ exports.easing = easing;
299
+ var duration = {
300
+ fast: _seedsMotion.default.MOTION_DURATION_FAST,
301
+ medium: _seedsMotion.default.MOTION_DURATION_MEDIUM,
302
+ slow: _seedsMotion.default.MOTION_DURATION_SLOW
303
+ };
304
+ exports.duration = duration;
305
+ var theme = {
306
+ breakpoints: breakpoints,
307
+ colors: colors,
308
+ typography: _extends({}, typography, {
309
+ typography: typography
310
+ }),
311
+ fontFamily: fontFamily,
312
+ fontWeights: fontWeights,
313
+ space: _extends({}, space, {
314
+ space: space,
315
+ "-space": Object.keys(space).reduce(function (negativeSpace, key) {
316
+ // The values are strings (eg 24px) so we concatenate a negative sign
317
+ negativeSpace[key] = "-" + space[key];
318
+ return negativeSpace;
319
+ }, {})
320
+ }),
321
+ radii: _extends({}, radii, {
322
+ radii: radii
323
+ }),
324
+ borders: borders,
325
+ borderWidths: borderWidths,
326
+ shadows: _extends({}, shadows, {
327
+ shadows: shadows
328
+ }),
329
+ easing: easing,
330
+ duration: duration
331
+ };
332
+ console.log(theme.space);
333
+ var _default = theme;
334
+ exports.default = _default;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ var _literalColors = _interopRequireDefault(require("../themes/default/literal-colors"));
4
+
5
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -1,7 +1,3 @@
1
1
  "use strict";
2
2
 
3
- var _theme = _interopRequireWildcard(require("../utils/theme"));
4
-
5
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
6
-
7
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
3
+ var _theme = require("../themes/default/theme");
@@ -5,7 +5,7 @@ exports.disabled = exports.pill = exports.focusRing = exports.visuallyHidden = e
5
5
 
6
6
  var _styledComponents = require("styled-components");
7
7
 
8
- var _theme = _interopRequireDefault(require("./theme"));
8
+ var _theme = _interopRequireDefault(require("../themes/default/theme"));
9
9
 
10
10
  var _polished = require("polished");
11
11
 
@@ -21,7 +21,7 @@ var svgToDataURL = function svgToDataURL(svgStr) {
21
21
  exports.svgToDataURL = svgToDataURL;
22
22
  var visuallyHidden = (0, _styledComponents.css)(["position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0;"]);
23
23
  exports.visuallyHidden = visuallyHidden;
24
- var focusRing = (0, _styledComponents.css)(["box-shadow:0 0 0 1px ", ",0 0px 0px 4px ", ";outline:none;&::-moz-focus-inner{border:0;}"], _theme.default.colors.cta.primary.background, (0, _polished.transparentize)(0.7, _theme.default.colors.cta.primary.background));
24
+ var focusRing = (0, _styledComponents.css)(["box-shadow:0 0 0 1px ", ",0 0px 0px 4px ", ";outline:none;&::-moz-focus-inner{border:0;}"], _theme.default.colors.button.primary.background.base, (0, _polished.transparentize)(0.7, _theme.default.colors.button.primary.background.base));
25
25
  exports.focusRing = focusRing;
26
26
  var pill = (0, _styledComponents.css)(["min-width:", ";min-height:", ";padding:", " ", ";border-radius:", ";"], _theme.default.space[600], _theme.default.space[600], _theme.default.space[300], _theme.default.space[350], _theme.default.radii.pill);
27
27
  exports.pill = pill;
@@ -3,7 +3,7 @@
3
3
  exports.__esModule = true;
4
4
  exports.normalizeResponsiveProp = void 0;
5
5
 
6
- var _theme = _interopRequireDefault(require("../theme"));
6
+ var _theme = _interopRequireDefault(require("../../themes/default/theme"));
7
7
 
8
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
9
 
@@ -11,7 +11,7 @@ var colors = {
11
11
  suggestion: "colors.neutral.900"
12
12
  };
13
13
  var backgroundColors = {
14
- primary: "colors.cta.primary",
14
+ primary: "colors.blue.700",
15
15
  secondary: "colors.yellow.500",
16
16
  passive: "colors.neutral.200",
17
17
  common: "colors.aqua.600",
@@ -69,8 +69,9 @@ var Banner = /*#__PURE__*/function (_React$Component) {
69
69
  text = _this$props.text,
70
70
  rest = _objectWithoutPropertiesLoose(_this$props, ["type", "text"]);
71
71
 
72
- return /*#__PURE__*/React.createElement(Container, _extends({
73
- type: type,
72
+ return /*#__PURE__*/React.createElement(Container // danger needs to be properly deprecated and removed DS-1094
73
+ , _extends({
74
+ type: type === "danger" ? "error" : type,
74
75
  "data-qa-alert": "",
75
76
  "data-qa-alert-type": type,
76
77
  "data-qa-alert-text": text // $FlowIssue - upgrade v0.112.0
@@ -4,6 +4,6 @@ var Container = styled.div.withConfig({
4
4
  displayName: "styles__Container",
5
5
  componentId: "q43dr4-0"
6
6
  })(function (props) {
7
- return 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.headline, props.theme.radii.outer, props.theme.fontFamily, props.theme.typography[200], props.theme.space[300], props.theme.colors[props.type].border, props.theme.colors[props.type].background, props.theme.space[400], props.theme.colors[props.type].icon, props.theme.fontWeights.semibold, props.theme.colors.text.headline, COMMON, LAYOUT);
7
+ return 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, COMMON, LAYOUT);
8
8
  });
9
9
  export default Container;
@@ -8,7 +8,7 @@ import Container from "./styles";
8
8
  var Button = function Button(_ref) {
9
9
  var href = _ref.href,
10
10
  _ref$appearance = _ref.appearance,
11
- appearance = _ref$appearance === void 0 ? "default" : _ref$appearance,
11
+ appearance = _ref$appearance === void 0 ? "unstyled" : _ref$appearance,
12
12
  _ref$active = _ref.active,
13
13
  active = _ref$active === void 0 ? false : _ref$active,
14
14
  disabled = _ref.disabled,
@@ -27,8 +27,10 @@ var Button = function Button(_ref) {
27
27
 
28
28
  if (!href && external) {
29
29
  console.warn("Warning: external prop cannot be set without a href declaration");
30
- }
30
+ } // plans to properly deprecate captured in DS-1096
31
31
 
32
+
33
+ var appearanceCheck = appearance === "default" ? "unstyled" : appearance;
32
34
  return /*#__PURE__*/React.createElement(Container, _extends({
33
35
  title: title,
34
36
  active: active,
@@ -40,7 +42,7 @@ var Button = function Button(_ref) {
40
42
  "aria-disabled": disabled ? disabled : undefined,
41
43
  disabled: disabled,
42
44
  buttonSize: size,
43
- appearance: appearance,
45
+ appearance: appearanceCheck,
44
46
  ref: innerRef,
45
47
  onClick: onClick,
46
48
  "data-qa-button": title || "",
@@ -8,15 +8,15 @@ var Container = styled.button.withConfig({
8
8
  })(["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) {
9
9
  return props.theme.fontFamily;
10
10
  }, function (props) {
11
- return props.theme.colors.cta[props.appearance].borderColor;
11
+ return props.theme.colors.button[props.appearance].border.base;
12
12
  }, function (props) {
13
13
  return props.theme.radii[500];
14
14
  }, function (props) {
15
15
  return props.appearance === "placeholder" ? "dashed" : "solid";
16
16
  }, function (props) {
17
- return props.theme.colors.cta[props.appearance].background;
17
+ return props.theme.colors.button[props.appearance].background.base;
18
18
  }, function (props) {
19
- return props.theme.colors.cta[props.appearance].color;
19
+ return props.theme.colors.button[props.appearance].text.base;
20
20
  }, function (props) {
21
21
  return props.theme.fontWeights.bold;
22
22
  }, function (props) {
@@ -26,22 +26,22 @@ var Container = styled.button.withConfig({
26
26
  }, function (props) {
27
27
  return props.buttonSize === "default" ? props.theme.typography[200].fontSize : props.theme.typography[300].fontSize;
28
28
  }, function (props) {
29
- return props.theme.colors.cta[props.appearance].color;
29
+ return props.theme.colors.button[props.appearance].text.base;
30
30
  }, function (props) {
31
- return props.theme.colors.cta[props.appearance].hoverColor;
31
+ return props.theme.colors.button[props.appearance].text.hover;
32
32
  }, function (props) {
33
- return props.theme.colors.cta[props.appearance].hoverBackground;
33
+ return props.theme.colors.button[props.appearance].background.hover;
34
34
  }, function (props) {
35
35
  return props.appearance === "placeholder" ? props.theme.shadows[100] : "none";
36
36
  }, function (props) {
37
- return props.theme.colors.cta[props.appearance].hoverColor;
37
+ return props.theme.colors.button[props.appearance].text.hover;
38
38
  }, function (props) {
39
- return props.theme.colors.cta[props.appearance].activeBackground;
39
+ return props.theme.colors.button[props.appearance].background.active;
40
40
  }, focusRing, function (props) {
41
- return props.active && css(["color:", " !important;background:", " !important;"], props.theme.colors.cta[props.appearance].hoverColor, props.theme.colors.cta[props.appearance].activeBackground);
41
+ return props.active && css(["color:", " !important;background:", " !important;"], props.theme.colors.button[props.appearance].text.hover, props.theme.colors.button[props.appearance].background.active);
42
42
  }, function (props) {
43
43
  return props.disabled && disabled;
44
44
  }, function (props) {
45
- return props.appearance === "pill" && css(["display:inline-flex;align-items:center;justify-content:center;mix-blend-mode:multiply;", ""], pill);
45
+ return props.appearance === "pill" && css(["display:inline-flex;align-items:center;justify-content:center;mix-blend-mode:", ";", ""], props.theme.mode ? "screen" : "multiply", pill);
46
46
  }, Icon, LAYOUT, COMMON);
47
- export default Container;
47
+ export default Container; //${props.theme.mode === "dark" ? "screen" : "multiply"}
package/lib/Card/index.js CHANGED
@@ -17,11 +17,11 @@ var Card = function Card(_ref) {
17
17
  _ref$border = _ref.border,
18
18
  border = _ref$border === void 0 ? 500 : _ref$border,
19
19
  _ref$borderColor = _ref.borderColor,
20
- borderColor = _ref$borderColor === void 0 ? "border" : _ref$borderColor,
20
+ borderColor = _ref$borderColor === void 0 ? "container.border.base" : _ref$borderColor,
21
21
  _ref$color = _ref.color,
22
22
  color = _ref$color === void 0 ? "text.body" : _ref$color,
23
23
  _ref$bg = _ref.bg,
24
- bg = _ref$bg === void 0 ? "background.container" : _ref$bg,
24
+ bg = _ref$bg === void 0 ? "container.background.base" : _ref$bg,
25
25
  rest = _objectWithoutPropertiesLoose(_ref, ["onClick", "href", "children", "ariaLabel", "buttonProps", "border", "borderColor", "color", "bg"]);
26
26
 
27
27
  return /*#__PURE__*/React.createElement(Container, _extends({}, rest, {
@@ -10,7 +10,7 @@ var Container = styled.div.withConfig({
10
10
  }, function (props) {
11
11
  return props.theme.fontWeights.semibold;
12
12
  }, function (props) {
13
- return props.overlimit ? props.theme.colors.error.color : props.theme.colors.text.subtext;
13
+ return props.overlimit ? props.theme.colors.text.error : props.theme.colors.text.subtext;
14
14
  }, function (p) {
15
15
  return p.mini && css(["", ""], p.theme.typography[100]);
16
16
  }, COMMON);
@@ -18,11 +18,11 @@ export var InputWrapper = styled(Box).withConfig({
18
18
  }, function (props) {
19
19
  return props.theme.space[400];
20
20
  }, function (props) {
21
- return props.appearance === "pill" && css(["background-color:transparent;transition:all ", " ", ";mix-blend-mode:multiply;", " &:hover{background-color:", ";}", "{", "}"], function (props) {
21
+ return props.appearance === "pill" && css(["background-color:transparent;transition:all ", " ", ";mix-blend-mode:", ";", " &:hover{background-color:", ";}", "{", "}"], function (props) {
22
22
  return props.theme.duration.fast;
23
23
  }, function (props) {
24
24
  return props.theme.easing.ease_inout;
25
- }, pill, props.theme.colors.background.app, PillInput, pill);
25
+ }, props.theme.mode ? "screen" : "multiply", pill, props.theme.colors.app.background.base, PillInput, pill);
26
26
  });
27
27
  InputWrapper.displayName = "InputWrapper";
28
28
  export var CheckboxBox = styled.div.withConfig({
@@ -33,9 +33,9 @@ export var CheckboxBox = styled.div.withConfig({
33
33
  }, function (props) {
34
34
  return props.theme.space[400];
35
35
  }, function (props) {
36
- return props.theme.colors.forms.borderColor;
36
+ return props.theme.colors.form.border.base;
37
37
  }, function (props) {
38
- return props.theme.colors.background.container;
38
+ return props.theme.colors.form.background.base;
39
39
  }, function (props) {
40
40
  return props.theme.duration.fast;
41
41
  }, function (props) {
@@ -63,9 +63,9 @@ export var PillInput = styled.input.withConfig({
63
63
  }, focusRing, function (props) {
64
64
  return !props.checked && css(["&:hover,&:focus{~ ", " ", "{opacity:", ";color:", ";}}"], CheckboxBox, CheckIcon, function (props) {
65
65
  return props.disabled ? 0 : 1;
66
- }, props.theme.colors.forms.borderColor);
66
+ }, props.theme.colors.form.border.base);
67
67
  }, function (props) {
68
- return props.checked && css(["~ ", "{border-color:", ";background-color:", ";}~ ", " ", "{opacity:1;color:", ";}"], CheckboxBox, props.theme.colors.selection.border, props.theme.colors.selection.background, CheckboxBox, CheckIcon, props.theme.colors.icon.inverse);
68
+ return props.checked && 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);
69
69
  }, function (props) {
70
70
  return props.disabled && css(["~ ", "{opacity:0.4;}~ ", " ", "{opacity:", ";}"], CheckboxBox, CheckboxBox, CheckIcon, props.checked ? 1 : 0);
71
71
  });
@@ -105,6 +105,6 @@ export var CheckboxContainer = styled.span.withConfig({
105
105
  displayName: "styles__CheckboxContainer",
106
106
  componentId: "sc-59uw8o-6"
107
107
  })(function (props) {
108
- return 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.container : props.theme.colors.forms.borderColor), 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 && css(["opacity:0.4;"]), props.theme.space[400], props.theme.space[400], props.theme.colors.forms.borderColor, props.theme.colors.background.container, props.theme.duration.fast, props.theme.easing.ease_in, props.disabled ? "not-allowed" : "pointer", !props.indeterminate && css(["border-color:", " !important;background-color:", ";"], props.theme.colors.neutral[300], props.theme.colors.background.container), props.theme.colors.selection.border, props.theme.colors.selection.background, props.indeterminate && props.checked && css(["border-color:", " !important;background-color:", " !important;"], props.theme.colors.selection.border, props.theme.colors.selection), focusRing, COMMON);
108
+ return 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 && 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 && 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 && css(["border-color:", " !important;background-color:", " !important;"], props.theme.colors.form.border.selected, props.theme.colors.form.background.selected), focusRing, COMMON);
109
109
  });
110
110
  export default Container;
@@ -15,10 +15,7 @@ var Collapsible = function Collapsible(_ref) {
15
15
  _ref$isOpen = _ref.isOpen,
16
16
  isOpen = _ref$isOpen === void 0 ? false : _ref$isOpen,
17
17
  _ref$offset = _ref.offset,
18
- offset = _ref$offset === void 0 ? 0 : _ref$offset,
19
- _ref$collapsedHeight = _ref.collapsedHeight,
20
- collapsedHeight = _ref$collapsedHeight === void 0 ? 0 : _ref$collapsedHeight,
21
- openHeight = _ref.openHeight;
18
+ offset = _ref$offset === void 0 ? 0 : _ref$offset;
22
19
 
23
20
  var _useState = useState("Racine-collapsible-" + idCounter++),
24
21
  id = _useState[0];
@@ -27,9 +24,7 @@ var Collapsible = function Collapsible(_ref) {
27
24
  value: {
28
25
  isOpen: isOpen,
29
26
  id: id,
30
- offset: offset,
31
- collapsedHeight: collapsedHeight,
32
- openHeight: openHeight
27
+ offset: offset
33
28
  }
34
29
  }, children);
35
30
  };
@@ -55,9 +50,7 @@ var Panel = function Panel(_ref3) {
55
50
  var _useContext2 = useContext(CollapsibleContext),
56
51
  isOpen = _useContext2.isOpen,
57
52
  id = _useContext2.id,
58
- offset = _useContext2.offset,
59
- collapsedHeight = _useContext2.collapsedHeight,
60
- openHeight = _useContext2.openHeight;
53
+ offset = _useContext2.offset;
61
54
 
62
55
  var ref = useRef();
63
56
  var measurement = useMeasure(ref);
@@ -70,7 +63,7 @@ var Panel = function Panel(_ref3) {
70
63
  // There is no animation because css is not changing the maxHeight property after mount
71
64
 
72
65
 
73
- var maxHeight = typeof openHeight !== "undefined" ? openHeight : measurement.height + offset;
66
+ var maxHeight = isHidden === undefined ? undefined : measurement.height + offset;
74
67
  /* 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. */
75
68
 
76
69
  useEffect(function () {
@@ -96,14 +89,12 @@ var Panel = function Panel(_ref3) {
96
89
  }
97
90
  }, [isOpen]);
98
91
  return /*#__PURE__*/React.createElement(CollapsingBox, _extends({
99
- scrollable: isOpen,
100
- maxHeight: isOpen ? maxHeight : collapsedHeight,
101
- minHeight: collapsedHeight,
92
+ maxHeight: isOpen ? maxHeight : "0",
102
93
  "data-qa-collapsible": "",
103
94
  "data-qa-collapsible-isopen": isOpen === true
104
95
  }, rest), /*#__PURE__*/React.createElement(Box, {
105
96
  width: "100%",
106
- hidden: isHidden && collapsedHeight === 0,
97
+ hidden: isHidden,
107
98
  "aria-hidden": !isOpen,
108
99
  id: id,
109
100
  ref: ref
@@ -3,15 +3,8 @@ import Box from "../Box";
3
3
  export var CollapsingBox = styled(Box).withConfig({
4
4
  displayName: "styles__CollapsingBox",
5
5
  componentId: "sc-1xvfbl7-0"
6
- })(["transition:max-height ", " ", ";will-change:max-height;position:relative;overflow:auto;background:linear-gradient( ", " 30%,rgba(255,255,255,0) ),linear-gradient( rgba(255,255,255,0),", " 70% ) 0 100%,radial-gradient( farthest-side at 50% 0,rgb(39 51 51 / 5%),rgba(0,0,0,0) ),radial-gradient( farthest-side at 50% 100%,rgb(39 51 51 / 5%),rgba(0,0,0,0) ) 0 100%;background-repeat:no-repeat;background-size:100% 40px,100% 40px,100% 14px,100% 14px;background-attachment:local,local,scroll,scroll;", ";"], function (p) {
6
+ })(["transition:max-height ", " ", ";will-change:max-height;overflow:hidden;"], function (p) {
7
7
  return p.theme.duration.medium;
8
8
  }, function (p) {
9
9
  return p.theme.easing.ease_inout;
10
- }, function (p) {
11
- return p.theme.colors.neutral[100];
12
- }, function (p) {
13
- return p.theme.colors.neutral[100];
14
- }, function (_ref) {
15
- var scrollable = _ref.scrollable;
16
- return scrollable ? "overflow: auto" : "overflow: hidden";
17
10
  });