@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.
Files changed (170) hide show
  1. package/__flow__/Badge/styles.js +3 -1
  2. package/__flow__/Banner/index.js +2 -1
  3. package/__flow__/Banner/styles.js +9 -6
  4. package/__flow__/Box/index.stories.js +3 -3
  5. package/__flow__/Box/styles.js +4 -4
  6. package/__flow__/Button/__snapshots__/index.test.js.snap +4 -4
  7. package/__flow__/Button/index.js +7 -2
  8. package/__flow__/Button/index.stories.js +6 -1
  9. package/__flow__/Button/styles.js +17 -12
  10. package/__flow__/Card/index.js +2 -2
  11. package/__flow__/CharacterCounter/styles.js +1 -1
  12. package/__flow__/Checkbox/styles.js +18 -16
  13. package/__flow__/Collapsible/index.stories.js +11 -5
  14. package/__flow__/DatePicker/styles.js +14 -12
  15. package/__flow__/Drawer/styles.js +1 -1
  16. package/__flow__/FormField/index.js +1 -1
  17. package/__flow__/Icon/index.stories.js +24 -6
  18. package/__flow__/Input/styles.js +6 -6
  19. package/__flow__/KeyboardKey/styles.js +2 -2
  20. package/__flow__/Link/styles.js +3 -5
  21. package/__flow__/Listbox/__snapshots__/index.test.js.snap +8 -2
  22. package/__flow__/Listbox/index.js +4 -4
  23. package/__flow__/Menu/__snapshots__/index.test.js.snap +5 -2
  24. package/__flow__/Menu/index.js +7 -2
  25. package/__flow__/Menu/styles.js +6 -3
  26. package/__flow__/Message/index.js +2 -2
  27. package/__flow__/Message/index.stories.js +1 -1
  28. package/__flow__/Modal/index.js +1 -1
  29. package/__flow__/Modal/index.stories.js +14 -8
  30. package/__flow__/Modal/styles.js +2 -2
  31. package/__flow__/Numeral/styles.js +2 -1
  32. package/__flow__/OverflowList/index.stories.js +15 -8
  33. package/__flow__/Popout/index.js +3 -3
  34. package/__flow__/Radio/styles.js +8 -8
  35. package/__flow__/SegmentedControl/styles.js +9 -5
  36. package/__flow__/Select/styles.js +5 -5
  37. package/__flow__/Skeleton/index.js +4 -4
  38. package/__flow__/Skeleton/index.stories.js +1 -1
  39. package/__flow__/Stack/index.stories.js +3 -1
  40. package/__flow__/Switch/styles.js +13 -11
  41. package/__flow__/Table/styles.js +2 -1
  42. package/__flow__/TableCell/index.stories.js +2 -0
  43. package/__flow__/TableHeaderCell/index.stories.js +3 -0
  44. package/__flow__/TableRowAccordion/styles.js +2 -1
  45. package/__flow__/Tabs/styles.js +5 -5
  46. package/__flow__/Textarea/styles.js +5 -5
  47. package/__flow__/ThemeProvider/index.js +2 -2
  48. package/__flow__/Toast/index.js +1 -1
  49. package/__flow__/Toast/styles.js +3 -3
  50. package/__flow__/Token/styles.js +19 -10
  51. package/__flow__/TokenInput/index.js +2 -1
  52. package/__flow__/TokenInput/styles.js +14 -6
  53. package/__flow__/Tooltip/index.js +2 -2
  54. package/__flow__/index.js +2 -2
  55. package/__flow__/themes/dark/decorative-palettes.js +43 -0
  56. package/__flow__/themes/dark/theme.js +195 -0
  57. package/__flow__/themes/default/decorative-palettes.js +43 -0
  58. package/__flow__/themes/default/literal-colors.js +160 -0
  59. package/__flow__/themes/default/theme.js +332 -0
  60. package/__flow__/types/system-props.flow.js +2 -2
  61. package/__flow__/types/theme.colors.flow.js +239 -0
  62. package/__flow__/types/theme.flow.js +38 -213
  63. package/__flow__/utils/mixins.js +4 -3
  64. package/__flow__/utils/responsiveProps/index.js +1 -1
  65. package/commonjs/Badge/styles.js +2 -1
  66. package/commonjs/Banner/index.js +3 -2
  67. package/commonjs/Banner/styles.js +1 -1
  68. package/commonjs/Button/index.js +5 -3
  69. package/commonjs/Button/styles.js +12 -11
  70. package/commonjs/Card/index.js +2 -2
  71. package/commonjs/CharacterCounter/styles.js +1 -1
  72. package/commonjs/Checkbox/styles.js +7 -7
  73. package/commonjs/DatePicker/styles.js +13 -11
  74. package/commonjs/Drawer/styles.js +1 -1
  75. package/commonjs/FormField/index.js +1 -1
  76. package/commonjs/Input/styles.js +6 -6
  77. package/commonjs/KeyboardKey/styles.js +2 -2
  78. package/commonjs/Link/styles.js +4 -8
  79. package/commonjs/Listbox/index.js +4 -4
  80. package/commonjs/Menu/index.js +2 -2
  81. package/commonjs/Menu/styles.js +10 -4
  82. package/commonjs/Message/index.js +2 -2
  83. package/commonjs/Modal/index.js +1 -1
  84. package/commonjs/Modal/styles.js +2 -2
  85. package/commonjs/Numeral/styles.js +1 -1
  86. package/commonjs/Popout/index.js +2 -2
  87. package/commonjs/Radio/styles.js +4 -4
  88. package/commonjs/SegmentedControl/styles.js +5 -5
  89. package/commonjs/Select/styles.js +5 -5
  90. package/commonjs/Skeleton/index.js +2 -2
  91. package/commonjs/Switch/styles.js +7 -7
  92. package/commonjs/Table/styles.js +1 -1
  93. package/commonjs/TableRowAccordion/styles.js +1 -1
  94. package/commonjs/Tabs/styles.js +5 -5
  95. package/commonjs/Textarea/styles.js +5 -5
  96. package/commonjs/ThemeProvider/index.js +1 -1
  97. package/commonjs/Toast/index.js +1 -1
  98. package/commonjs/Toast/styles.js +3 -3
  99. package/commonjs/Token/styles.js +16 -12
  100. package/commonjs/TokenInput/index.js +38 -35
  101. package/commonjs/TokenInput/styles.js +9 -7
  102. package/commonjs/Tooltip/index.js +2 -2
  103. package/commonjs/index.js +3 -3
  104. package/commonjs/themes/dark/decorative-palettes.js +51 -0
  105. package/commonjs/themes/dark/theme.js +195 -0
  106. package/commonjs/themes/default/decorative-palettes.js +51 -0
  107. package/commonjs/themes/default/literal-colors.js +165 -0
  108. package/commonjs/themes/default/theme.js +333 -0
  109. package/commonjs/types/theme.colors.flow.js +1 -0
  110. package/commonjs/types/theme.flow.js +1 -5
  111. package/commonjs/utils/mixins.js +2 -2
  112. package/commonjs/utils/responsiveProps/index.js +1 -1
  113. package/lib/Badge/styles.js +2 -1
  114. package/lib/Banner/index.js +3 -2
  115. package/lib/Banner/styles.js +1 -1
  116. package/lib/Button/index.js +5 -3
  117. package/lib/Button/styles.js +11 -11
  118. package/lib/Card/index.js +2 -2
  119. package/lib/CharacterCounter/styles.js +1 -1
  120. package/lib/Checkbox/styles.js +7 -7
  121. package/lib/DatePicker/styles.js +12 -11
  122. package/lib/Drawer/styles.js +1 -1
  123. package/lib/FormField/index.js +1 -1
  124. package/lib/Input/styles.js +6 -6
  125. package/lib/KeyboardKey/styles.js +2 -2
  126. package/lib/Link/styles.js +4 -8
  127. package/lib/Listbox/index.js +4 -4
  128. package/lib/Menu/index.js +2 -2
  129. package/lib/Menu/styles.js +10 -4
  130. package/lib/Message/index.js +2 -2
  131. package/lib/Modal/index.js +1 -1
  132. package/lib/Modal/styles.js +2 -2
  133. package/lib/Numeral/styles.js +1 -1
  134. package/lib/Popout/index.js +2 -2
  135. package/lib/Radio/styles.js +4 -4
  136. package/lib/SegmentedControl/styles.js +5 -5
  137. package/lib/Select/styles.js +5 -5
  138. package/lib/Skeleton/index.js +2 -2
  139. package/lib/Switch/styles.js +7 -7
  140. package/lib/Table/styles.js +1 -1
  141. package/lib/TableRowAccordion/styles.js +1 -1
  142. package/lib/Tabs/styles.js +5 -5
  143. package/lib/Textarea/styles.js +5 -5
  144. package/lib/ThemeProvider/index.js +1 -1
  145. package/lib/Toast/index.js +1 -1
  146. package/lib/Toast/styles.js +3 -3
  147. package/lib/Token/styles.js +16 -12
  148. package/lib/TokenInput/index.js +38 -35
  149. package/lib/TokenInput/styles.js +9 -7
  150. package/lib/Tooltip/index.js +2 -2
  151. package/lib/index.js +2 -2
  152. package/lib/themes/dark/decorative-palettes.js +36 -0
  153. package/lib/themes/dark/theme.js +185 -0
  154. package/lib/themes/default/decorative-palettes.js +36 -0
  155. package/lib/themes/default/literal-colors.js +156 -0
  156. package/lib/themes/default/theme.js +305 -0
  157. package/lib/types/theme.colors.flow.js +0 -0
  158. package/lib/types/theme.flow.js +1 -1
  159. package/lib/utils/mixins.js +2 -2
  160. package/lib/utils/responsiveProps/index.js +1 -1
  161. package/package.json +1 -1
  162. package/__flow__/themes/dark.js +0 -133
  163. package/__flow__/themes/light.js +0 -7
  164. package/__flow__/utils/theme.js +0 -422
  165. package/commonjs/themes/dark.js +0 -140
  166. package/commonjs/themes/light.js +0 -14
  167. package/commonjs/utils/theme.js +0 -421
  168. package/lib/themes/dark.js +0 -131
  169. package/lib/themes/light.js +0 -5
  170. package/lib/utils/theme.js +0 -402
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;
@@ -5,6 +5,7 @@ function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.s
5
5
  import styled, { createGlobalStyle, css } from "styled-components";
6
6
  import moment from "moment";
7
7
  import Box from "../Box";
8
+ import { disabled } from "../utils/mixins";
8
9
 
9
10
  /*
10
11
  * Partial list of modifiers given to renderDayContents by airbnb/react-dates. There may be more.
@@ -62,13 +63,13 @@ export var CalendarDay = styled(Box).withConfig({
62
63
  theme = _ref.theme;
63
64
 
64
65
  if (isSelected(modifiers)) {
65
- return 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.selection.background, theme.colors.selection.color, 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);
66
+ return 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);
66
67
  }
67
68
 
68
69
  if (isHoveredAndInRange(modifiers)) {
69
- return css(["margin:0 ", ";border-radius:", ";border:1px solid ", ";"], theme.space[200], theme.radii.pill, theme.colors.selection.border);
70
+ return css(["margin:0 ", ";border-radius:", ";border:1px solid ", ";"], theme.space[200], theme.radii.pill, theme.colors.container.border.selected);
70
71
  } else if (isOutOfRange(modifiers)) {
71
- return css(["color:", ";"], theme.colors.selection.disabledColor);
72
+ return css(["color:", ";", ";"], theme.colors.text.subtext, disabled);
72
73
  }
73
74
  });
74
75
  export var ReactDatesCssOverrides = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n\t.DayPicker {\n\t\tbox-sizing: content-box;\n\t\tfont-weight: ", ";\n\t\tfont-family: ", ";\n\n\t\t/* override react-dates height to better reflect how tall the component actually is */\n\t\t/* adding margin/padding will be more truer to our seeds system because the height */\n\t\t/* of the calendar adds an extra row of padding if we do not override it */\n\t\t&_transitionContainer {\n\t\t\t/* need !important because react-dates sets height on the element itself */\n\t\t\theight: 228px !important;\n\t\t}\n\n\t\t&_weekHeader {\n\t\t\tcolor: ", ";\n\t\t\tborder-bottom: 1px solid ", ";\n\n \t\t\t/* Magic number to match position of .CalendarMonth_caption */\n\t\t\ttop: 26px;\n\n\t\t\t/* Magic number to make the bottom border line stretch the full width */\n\t\t\twidth: 230px;\n\n\t\t\t&_ul {\n \t\t\t\t/* Magic number to line up day name headings over the correct numbers */\n\t\t\t\tpadding-left: 10px;\n\t\t\t}\n\t\t}\n\n\t\t&_weekHeaders__horizontal {\n\t\t\tmargin-left: 0\n\t\t}\n\n\t\t&_weekHeader_li {\n\t\t\t", "\n\t\t\tcolor: ", ";\n\t\t\tfont-weight: ", ";\n\t\t\tmargin: 0;\n\t\t}\n\n\t\t&__horizontal {\n\t\t\tbox-shadow: none;\n\t\t\tbackground: ", ";\n\t\t}\n\t}\n\n .CalendarDay {\n\t\tbackground-color: transparent;\n\n &__selected, &__selected_span, &:hover {\n background-color: transparent;\n\t\t}\n\n\t\t&__default {\n\t\t\tcolor: ", ";\n\t\t}\n\t\t&__default,\n\t\t&__default:hover {\n\t\t\tborder: none;\n\t\t\tcolor: ", ";\n\t\t}\n\t}\n\n .CalendarMonth {\n\t\t", "\n\t\tbackground: ", ";\n\n \t\t/* spacing between visible months and months off canvas */\n\t\tpadding: 0 15px;\n\n\t\t&_caption {\n\t\t\t", "\n\t\t\tcolor: ", ";\n\t\t\tpadding-top: 0;\n\t\t\tbackground: ", ";\n\n\t\t\tstrong {\n\t\t\t\tfont-weight: ", ";\n\t\t\t}\n\n\t\t}\n\t\t&_table {\n\t\t\tline-height: 21.333px;\n\t\t\ttr {\n\t\t\t\tvertical-align: middle;\n\t\t\t}\n\t\t\ttd {\n\t\t\t\tpadding: 0;\n\t\t\t\tborder-bottom: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t.CalendarMonthGrid {\n\t\tbackground: ", ";\n\t}\n\n\t/* Left and Right Arrow Buttons to navigate months */\n\t.DayPickerNavigation_button__horizontal {\n\t\tcolor: ", ";\n\t\ttop: -4px;\n\t\tpadding: 7px 8px;\n\t\tposition: absolute;\n\t\tline-height: 0.78;\n\t\tborder-radius: 9999px;\n\t\tborder: none;\n\t\tbackground: ", ";\n\n\t\t&:nth-child(1) {\n\t\t\tleft: 22px;\n\t\t}\n\t\t&:nth-child(2) {\n\t\t\tright: 22px;\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground: ", ";\n\t\t}\n\t}\n"])), function (_ref2) {
@@ -81,7 +82,7 @@ export var ReactDatesCssOverrides = createGlobalStyle(_templateObject || (_templ
81
82
  return theme.colors.text.headline;
82
83
  }, function (_ref4) {
83
84
  var theme = _ref4.theme;
84
- return theme.colors.border;
85
+ return theme.colors.container.border.base;
85
86
  }, function (_ref5) {
86
87
  var theme = _ref5.theme;
87
88
  return theme.typography[200];
@@ -93,7 +94,7 @@ export var ReactDatesCssOverrides = createGlobalStyle(_templateObject || (_templ
93
94
  return theme.fontWeights.semibold;
94
95
  }, function (_ref8) {
95
96
  var theme = _ref8.theme;
96
- return theme.colors.background.container;
97
+ return theme.colors.container.background.base;
97
98
  }, function (_ref9) {
98
99
  var theme = _ref9.theme;
99
100
  return theme.colors.text.body;
@@ -105,7 +106,7 @@ export var ReactDatesCssOverrides = createGlobalStyle(_templateObject || (_templ
105
106
  return theme.typography[200];
106
107
  }, function (_ref12) {
107
108
  var theme = _ref12.theme;
108
- return theme.colors.background.container;
109
+ return theme.colors.container.background.base;
109
110
  }, function (_ref13) {
110
111
  var theme = _ref13.theme;
111
112
  return theme.typography[200];
@@ -114,20 +115,20 @@ export var ReactDatesCssOverrides = createGlobalStyle(_templateObject || (_templ
114
115
  return theme.colors.text.headline;
115
116
  }, function (_ref15) {
116
117
  var theme = _ref15.theme;
117
- return theme.colors.background.container;
118
+ return theme.colors.container.background.base;
118
119
  }, function (_ref16) {
119
120
  var theme = _ref16.theme;
120
121
  return theme.fontWeights.semibold;
121
122
  }, function (_ref17) {
122
123
  var theme = _ref17.theme;
123
- return theme.colors.background.container;
124
+ return theme.colors.container.background.base;
124
125
  }, function (_ref18) {
125
126
  var theme = _ref18.theme;
126
- return theme.colors.cta.pill.color;
127
+ return theme.colors.button.pill.text.base;
127
128
  }, function (_ref19) {
128
129
  var theme = _ref19.theme;
129
- return theme.colors.cta.pill.background;
130
+ return theme.colors.button.pill.background.base;
130
131
  }, function (_ref20) {
131
132
  var theme = _ref20.theme;
132
- return theme.colors.cta.pill.hoverBackground;
133
+ return theme.colors.button.pill.background.hover;
133
134
  });
@@ -11,7 +11,7 @@ var Container = styled.div.withConfig({
11
11
  })(["display:flex;flex-direction:column;position:fixed;top:0;height:100%;width:", "px;background-color:", ";box-shadow:", ";filter:blur(0);", " ", ""], function (props) {
12
12
  return props.width;
13
13
  }, function (props) {
14
- return props.theme.colors.background.container;
14
+ return props.theme.colors.container.background.base;
15
15
  }, function (props) {
16
16
  return props.theme.shadows[400];
17
17
  }, function (props) {
@@ -58,7 +58,7 @@ var FormField = function FormField(_ref) {
58
58
  }), isInvalid && error && /*#__PURE__*/React.createElement(Text, {
59
59
  as: "div",
60
60
  fontSize: 200,
61
- color: "error.color",
61
+ color: "text.error",
62
62
  mt: 300,
63
63
  id: errorId,
64
64
  "data-qa-formfield-error": qa && qa["data-qa-formfield-error"] || errorContainerText.current
@@ -7,7 +7,7 @@ var Container = styled.div.withConfig({
7
7
  })(["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) {
8
8
  return props.theme.radii[500];
9
9
  }, function (props) {
10
- return props.theme.colors.background.container;
10
+ return props.theme.colors.form.background.base;
11
11
  }, function (props) {
12
12
  return props.theme.colors.text.body;
13
13
  }, function (props) {
@@ -45,7 +45,7 @@ var Container = styled.div.withConfig({
45
45
  return props.theme.typography[200].fontSize;
46
46
  }
47
47
  }, focusRing, function (props) {
48
- return props.theme.colors.forms.placeholderColor;
48
+ return props.theme.colors.form.placeholder.base;
49
49
  }, function (props) {
50
50
  return props.hasBeforeElement && css(["padding-left:40px;"]);
51
51
  }, function (props) {
@@ -54,22 +54,22 @@ var Container = styled.div.withConfig({
54
54
  return props.disabled && css(["opacity:0.4;input{cursor:not-allowed;}"]);
55
55
  }, function (props) {
56
56
  return props.appearance === "primary" && css(["input{border:1px solid ", ";}"], function (props) {
57
- return props.theme.colors.forms.borderColor;
57
+ return props.theme.colors.form.border.base;
58
58
  });
59
59
  }, function (props) {
60
60
  return props.invalid && css(["input{border-color:", ";}"], function (props) {
61
- return props.theme.colors.error.color;
61
+ return props.theme.colors.form.border.error;
62
62
  });
63
63
  }, function (props) {
64
64
  return props.warning && css(["input{border-color:", ";}"], function (props) {
65
- return props.theme.colors.warning.color;
65
+ return props.theme.colors.form.border.warning;
66
66
  });
67
67
  }, COMMON);
68
68
  export var Accessory = styled.div.withConfig({
69
69
  displayName: "styles__Accessory",
70
70
  componentId: "uozj0s-1"
71
71
  })(["position:absolute;top:50%;transform:translateY(-50%);color:", ";display:flex;align-items:center;", ";", ";"], function (props) {
72
- return props.theme.colors.icon.primary;
72
+ return props.theme.colors.icon.base;
73
73
  }, function (props) {
74
74
  return props.before && css(["left:", ";"], props.theme.space[350]);
75
75
  }, function (props) {
@@ -6,9 +6,9 @@ var Container = styled.div.withConfig({
6
6
  })(["display:inline-flex;color:", ";background-color:", ";border:1px solid ", ";border-radius:", ";box-shadow:", ";padding:0 ", ";min-width:20px;justify-content:center;", ""], function (props) {
7
7
  return props.theme.colors.text.body;
8
8
  }, function (props) {
9
- return props.theme.colors.background.container;
9
+ return props.theme.colors.container.background.base;
10
10
  }, function (props) {
11
- return props.theme.colors.border;
11
+ return props.theme.colors.container.border.base;
12
12
  }, function (props) {
13
13
  return props.theme.radii[500];
14
14
  }, function (props) {
@@ -5,12 +5,8 @@ import { TYPOGRAPHY, COMMON } from "../utils/system-props";
5
5
  var Container = styled(Text).withConfig({
6
6
  displayName: "styles__Container",
7
7
  componentId: "adcw4a-0"
8
- })(["border:0;font-family:", ";transition:all ", " ", ";text-decoration:", ";appearance:none;cursor:pointer;", " font-weight:", ";color:", ";&:hover{color:", ";text-decoration:underline;}&:active{color:", ";}&:focus{", "}&:focus:active{box-shadow:none;}", " ", " ", " ", ""], function (props) {
8
+ })(["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) {
9
9
  return props.theme.fontFamily;
10
- }, function (props) {
11
- return props.theme.duration.fast;
12
- }, function (props) {
13
- return props.theme.easing.ease_inout;
14
10
  }, function (props) {
15
11
  return props.underline ? "underline" : "none";
16
12
  }, function (props) {
@@ -18,11 +14,11 @@ var Container = styled(Text).withConfig({
18
14
  }, function (props) {
19
15
  return props.theme.fontWeights.semibold;
20
16
  }, function (props) {
21
- return props.theme.colors.cta.link.color;
17
+ return props.theme.colors.link.base;
22
18
  }, function (props) {
23
- return props.theme.colors.cta.link.color;
19
+ return props.theme.colors.link.hover;
24
20
  }, function (props) {
25
- return props.theme.colors.cta.link.hoverColor;
21
+ return props.theme.colors.link.hover;
26
22
  }, focusRing, function (props) {
27
23
  return !props.href && css(["background:none;"]);
28
24
  }, function (props) {
@@ -27,11 +27,11 @@ export var ListboxButtonContainer = styled(MenuButton).withConfig({
27
27
  displayName: "Listbox__ListboxButtonContainer",
28
28
  componentId: "c9mfi8-0"
29
29
  })(["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) {
30
- return props.theme.colors.forms.borderColor;
30
+ return props.theme.colors.form.border.base;
31
31
  }, function (props) {
32
32
  return props.theme.radii[500];
33
33
  }, function (props) {
34
- return props.theme.colors.background.container;
34
+ return props.theme.colors.form.background.base;
35
35
  }, function (props) {
36
36
  return props.theme.colors.text.body;
37
37
  }, function (props) {
@@ -72,9 +72,9 @@ export var ListboxButtonContainer = styled(MenuButton).withConfig({
72
72
  }
73
73
  }, function (props) {
74
74
  return props.invalid && css(["border-color:", ";", "{color:", ";}"], function (props) {
75
- return props.theme.colors.error.border;
75
+ return props.theme.colors.form.border.error;
76
76
  }, Arrow, function (props) {
77
- return props.theme.colors.error.color;
77
+ return props.theme.colors.icon.error;
78
78
  });
79
79
  });
80
80
  export var ListboxButton = function ListboxButton(_ref2) {
package/lib/Menu/index.js CHANGED
@@ -235,7 +235,7 @@ export var MenuGroup = function MenuGroup(_ref2) {
235
235
  return /*#__PURE__*/React.createElement(React.Fragment, null, title && /*#__PURE__*/React.createElement(Box, {
236
236
  pl: 400,
237
237
  borderTop: "1px solid",
238
- borderColor: "border",
238
+ borderColor: "container.border.base",
239
239
  mt: "-1px"
240
240
  }, /*#__PURE__*/React.createElement(_StyledText, {
241
241
  forwardedAs: titleAs || "div",
@@ -253,7 +253,7 @@ export var MenuDivider = function MenuDivider(props) {
253
253
  as: "li",
254
254
  role: "separator",
255
255
  borderTop: "1px solid",
256
- borderColor: "border"
256
+ borderColor: "container.border.base"
257
257
  }, props));
258
258
  };
259
259
 
@@ -4,10 +4,12 @@ import { disabled } from "../utils/mixins";
4
4
  export var MenuItemContainer = styled(Box).withConfig({
5
5
  displayName: "styles__MenuItemContainer",
6
6
  componentId: "fjvae4-0"
7
- })(["", ";width:100%;border-radius:", ";background-color:transparent;border:none;text-align:left;color:", ";font-family:", ";font-weight:", ";padding:", ";list-style-type:none;outline:0;", ";", " ", " ", " ", " ", ""], function (props) {
7
+ })(["", ";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) {
8
8
  return !props.hidden && css(["display:block;"]);
9
9
  }, function (props) {
10
10
  return props.theme.radii[500];
11
+ }, function (props) {
12
+ return props.theme.colors.listItem.background.base;
11
13
  }, function (props) {
12
14
  return props.theme.colors.text.body;
13
15
  }, function (props) {
@@ -19,14 +21,18 @@ export var MenuItemContainer = styled(Box).withConfig({
19
21
  }, function (props) {
20
22
  return css(["", ";"], props.theme.typography[200]);
21
23
  }, function (props) {
22
- return props.active && !props.disabled && css(["background-color:", ";"], props.theme.colors.background.app);
24
+ return props.active && !props.disabled && css(["color:", ";background-color:", ";"], function (props) {
25
+ return props.theme.colors.text.inverse;
26
+ }, props.theme.colors.listItem.background.selected);
23
27
  }, function (props) {
24
28
  return props.selected && !props.isCheckboxOrRadio && css(["font-weight:", ";"], function (props) {
25
29
  return props.theme.fontWeights.semibold;
26
30
  });
27
31
  }, function (props) {
28
- return !props.disabled && css(["&:focus,&:hover{background-color:", ";}"], function (props) {
29
- return props.theme.colors.background.app;
32
+ return !props.disabled && css(["&:focus,&:hover{color:", ";background-color:", ";}"], function (props) {
33
+ return props.theme.colors.text.body;
34
+ }, function (props) {
35
+ return props.theme.colors.listItem.background.hover;
30
36
  });
31
37
  }, function (props) {
32
38
  return props.interactive && !props.disabled ? css(["&:hover{cursor:pointer;}"]) : css(["&:hover{cursor:default;}"]);
@@ -35,7 +35,7 @@ var avatarSizeMap = function avatarSizeMap(density) {
35
35
  // $FlowIssue Upgrade 0.111.1
36
36
  var MessageContext = /*#__PURE__*/React.createContext({
37
37
  density: MESSAGE_DENSITIES.SMALL,
38
- borderColor: "border",
38
+ borderColor: "container.border.base",
39
39
  bg: "background.container",
40
40
  indentContent: true
41
41
  });
@@ -45,7 +45,7 @@ var Message = function Message(_ref) {
45
45
  _ref$density = _ref.density,
46
46
  density = _ref$density === void 0 ? MESSAGE_DENSITIES.SMALL : _ref$density,
47
47
  _ref$borderColor = _ref.borderColor,
48
- borderColor = _ref$borderColor === void 0 ? "border" : _ref$borderColor,
48
+ borderColor = _ref$borderColor === void 0 ? "container.border.base" : _ref$borderColor,
49
49
  _ref$bg = _ref.bg,
50
50
  bg = _ref$bg === void 0 ? "background.container" : _ref$bg,
51
51
  _ref$indentContent = _ref.indentContent,
@@ -60,7 +60,7 @@ var ModalFooter = function ModalFooter(props) {
60
60
  // $FlowIssue - upgrade v0.112.0
61
61
  React.createElement(Footer, _extends({
62
62
  borderTop: 500,
63
- borderColor: "border"
63
+ borderColor: "container.border.base"
64
64
  }, props))
65
65
  );
66
66
  };
@@ -49,7 +49,7 @@ export var Container = styled(ReactModalAdapter).withConfig({
49
49
  }, function (props) {
50
50
  return props.theme.easing.ease_inout;
51
51
  }, zIndex, function (props) {
52
- return props.theme.colors.background.container;
52
+ return props.theme.colors.container.background.base;
53
53
  }, function (props) {
54
54
  return props.theme.radii[500];
55
55
  }, function (props) {
@@ -85,7 +85,7 @@ export var Header = styled(HeaderContainer).withConfig({
85
85
  })(["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) {
86
86
  return props.theme.borderWidths[500];
87
87
  }, function (props) {
88
- return props.bordered ? props.theme.colors.border : "transparent";
88
+ return props.bordered ? props.theme.colors.container.border.base : "transparent";
89
89
  });
90
90
  export var Footer = styled(Box).withConfig({
91
91
  displayName: "styles__Footer",
@@ -8,5 +8,5 @@ export var AbbrContainer = styled(Text).withConfig({
8
8
  displayName: "styles__AbbrContainer",
9
9
  componentId: "o79gt9-1"
10
10
  })(["font-variant-numeric:tabular-nums;border-bottom:1px dotted ", ";"], function (props) {
11
- return props.theme.colors.border;
11
+ return props.theme.colors.container.border.base;
12
12
  });
@@ -262,10 +262,10 @@ Popout.Content = function (_ref4) {
262
262
  rest = _objectWithoutPropertiesLoose(_ref4, ["children"]);
263
263
 
264
264
  return /*#__PURE__*/React.createElement(Box, _extends({
265
- bg: "background.container",
265
+ bg: "container.background.base",
266
266
  color: "text.body",
267
267
  border: 500,
268
- borderColor: "border",
268
+ borderColor: "container.border.base",
269
269
  borderRadius: "outer",
270
270
  boxShadow: 300,
271
271
  p: 400,
@@ -13,9 +13,9 @@ export var Input = styled.input.withConfig({
13
13
  })(["box-sizing:border-box;position:absolute;top:0;left:0;width:100%;height:100%;margin:0;appearance:none;cursor:", ";border:1px solid ", ";border-radius:50%;background-color:", ";transition:border-color ", " ", ",background-color ", " ", ";&:focus{", "}"], function (props) {
14
14
  return props.disabled ? "not-allowed" : "pointer";
15
15
  }, function (props) {
16
- return props.theme.colors.forms.borderColor;
16
+ return props.theme.colors.form.border.base;
17
17
  }, function (props) {
18
- return props.theme.colors.background.container;
18
+ return props.theme.colors.form.background.base;
19
19
  }, function (props) {
20
20
  return props.theme.duration.fast;
21
21
  }, function (props) {
@@ -45,9 +45,9 @@ export var InputWrapper = styled.span.withConfig({
45
45
  }, function (props) {
46
46
  return props.disabled ? "not-allowed" : "pointer";
47
47
  }, function (props) {
48
- return !props.checked && css(["&:hover,&:focus{", "{border-color:", ";background-color:", ";}&:before{opacity:", ";background-color:", ";}}"], Input, props.theme.colors.forms.borderColor, props.theme.colors.background.container, props.disabled ? 0 : 1, props.theme.colors.forms.borderColor);
48
+ return !props.checked && 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);
49
49
  }, function (props) {
50
- return props.checked && css(["", "{border-color:", ";background-color:", ";}&:before{opacity:1;background-color:", ";}"], Input, props.theme.colors.selection.border, props.theme.colors.selection.background, props.theme.colors.background.container);
50
+ return props.checked && 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);
51
51
  });
52
52
  InputWrapper.displayName = "InputWrapper";
53
53
  export var LabelText = styled(Text).withConfig({
@@ -7,7 +7,7 @@ export var SegmentedControlContainer = styled(Box).withConfig({
7
7
  displayName: "styles__SegmentedControlContainer",
8
8
  componentId: "sc-1o18lau-0"
9
9
  })(["border:1px solid ", ";border-radius:", ";padding:", ";legend{", "}", ""], function (props) {
10
- return props.theme.colors.selection.border;
10
+ return props.theme.colors.button.secondary.border.base;
11
11
  }, function (props) {
12
12
  return props.theme.radii.outer;
13
13
  }, function (props) {
@@ -39,13 +39,13 @@ export var SegmentedControlLabel = styled(Text).withConfig({
39
39
  }, function (props) {
40
40
  return props.theme.duration.fast;
41
41
  }, function (props) {
42
- return props.theme.colors.border;
42
+ return props.theme.colors.listItem.background.hover;
43
43
  }, function (props) {
44
44
  return props.isActive && css(["color:", ";background-color:", ";&:hover{background-color:", ";}"], function (props) {
45
- return props.theme.colors.background.container;
45
+ return props.theme.colors.text.inverse;
46
46
  }, function (props) {
47
- return props.theme.colors.selection.background;
47
+ return props.theme.colors.listItem.background.selected;
48
48
  }, function (props) {
49
- return props.theme.colors.selection.background;
49
+ return props.theme.colors.listItem.background.selected;
50
50
  });
51
51
  });
@@ -5,11 +5,11 @@ var Container = styled.div.withConfig({
5
5
  displayName: "styles__Container",
6
6
  componentId: "sc-1j75x48-0"
7
7
  })(["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) {
8
- return props.theme.colors.forms.borderColor;
8
+ return props.theme.colors.form.border.base;
9
9
  }, function (props) {
10
10
  return props.theme.radii[500];
11
11
  }, function (props) {
12
- return props.theme.colors.background.container;
12
+ return props.theme.colors.form.background.base;
13
13
  }, function (props) {
14
14
  return props.theme.colors.text.body;
15
15
  }, function (props) {
@@ -52,9 +52,9 @@ var Container = styled.div.withConfig({
52
52
  return props.disabled && css(["opacity:0.4;"]);
53
53
  }, function (props) {
54
54
  return props.invalid && css(["select{border-color:", ";}", "{color:", ";}"], function (props) {
55
- return props.theme.colors.error.color;
55
+ return props.theme.colors.form.border.error;
56
56
  }, Arrow, function (props) {
57
- return props.theme.colors.error.color;
57
+ return props.theme.colors.icon.error;
58
58
  });
59
59
  }, COMMON);
60
60
  export var Arrow = styled.span.withConfig({
@@ -73,7 +73,7 @@ export var Arrow = styled.span.withConfig({
73
73
  return props.theme.space[350];
74
74
  }
75
75
  }, function (props) {
76
- return props.theme.colors.icon.primary;
76
+ return props.theme.colors.icon.base;
77
77
  });
78
78
  Container.displayName = "SelectContainer";
79
79
  Arrow.displayName = "Select Arrow";
@@ -5,8 +5,8 @@ var Skeleton = styled(Box).withConfig({
5
5
  displayName: "Skeleton",
6
6
  componentId: "sc-1fovt5u-0"
7
7
  })(["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) {
8
- return p.theme.colors.background.app;
8
+ return p.theme.colors.app.background.base;
9
9
  }, function (props) {
10
- return "linear-gradient(\n 288deg,\n " + transparentize(0.7, props.theme.colors.border) + " 32%,\n " + transparentize(0.05, props.theme.colors.border) + ",\n " + transparentize(0.7, props.theme.colors.border) + " 68%\n );";
10
+ return "linear-gradient(\n 288deg,\n " + transparentize(0.7, props.theme.colors.container.border.base) + " 32%,\n " + transparentize(0.05, props.theme.colors.container.border.base) + ",\n " + transparentize(0.7, props.theme.colors.container.border.base) + " 68%\n );";
11
11
  });
12
12
  export default Skeleton; //rgba(243, 244, 244, 0.7)
@@ -6,33 +6,33 @@ import Icon from "../Icon/styles";
6
6
  var Container = styled.button.withConfig({
7
7
  displayName: "styles__Container",
8
8
  componentId: "x5lhuq-0"
9
- })(["position:relative;display:inline-block;width:36px;height:22px;margin:0;padding:", " ", ";vertical-align:middle;appearance:none;background-color:", ";border-radius:11px;outline:none;cursor:pointer;transition:background-color ", " ", ";border:1px solid ", ";white-space:nowrap;overflow:hidden;&::after{position:absolute;top:50%;left:0;width:14px;height:14px;background-color:", ";border-radius:50%;content:\"\";transition:transform ", " ", ";transform:translate(4px,-50%);}&:focus{", "}", " ", " ", ""], function (props) {
9
+ })(["position:relative;display:inline-block;width:36px;height:22px;margin:0;padding:", " ", ";vertical-align:middle;appearance:none;background-color:", ";border-radius:11px;outline:none;cursor:pointer;transition:background-color ", " ", ";border:1px solid ", ";white-space:nowrap;overflow:hidden;&::after{position:absolute;top:50%;left:0;width:14px;height:14px;background-color:", ";opacity:0.64;border-radius:50%;content:\"\";transition:transform ", " ", ";transform:translate(4px,-50%);}&:focus{", "}", " ", " ", ""], function (props) {
10
10
  return props.theme.space[100];
11
11
  }, function (props) {
12
12
  return props.theme.space[200];
13
13
  }, function (props) {
14
- return props.theme.colors.background.container;
14
+ return props.theme.colors.form.background.base;
15
15
  }, function (props) {
16
16
  return props.theme.duration.fast;
17
17
  }, function (props) {
18
18
  return props.theme.easing.ease_inout;
19
19
  }, function (props) {
20
- return props.theme.colors.forms.borderColor;
20
+ return props.theme.colors.form.border.base;
21
21
  }, function (props) {
22
- return props.theme.colors.forms.borderColor;
22
+ return props.theme.colors.icon.base;
23
23
  }, function (props) {
24
24
  return props.theme.duration.fast;
25
25
  }, function (props) {
26
26
  return props.theme.easing.ease_inout;
27
27
  }, focusRing, function (props) {
28
28
  if (props.checked) {
29
- return 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.selection.color, props.theme.colors.selection.border, props.theme.colors.selection.background, props.theme.colors.background.container, Icon, props.theme.colors.background.container);
29
+ return 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, Icon, props.theme.colors.icon.inverse);
30
30
  } else {
31
- return "\n &:hover,\n &:focus {\n border-color: " + props.theme.colors.forms.borderColor + ";\n background-color: " + props.theme.colors.background.container + ";\n }\n &:hover {\n &::after {\n transform: translate(6px, -50%);\n }\n }\n ";
31
+ 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 ";
32
32
  }
33
33
  }, function (props) {
34
34
  return props.disabled && css(["opacity:0.4;cursor:not-allowed;&[aria-pressed=\"true\"]{&:hover,&:focus{background-color:", ";}}"], function (props) {
35
- return props.theme.colors.selection.background;
35
+ return props.theme.colors.container.background.selected;
36
36
  });
37
37
  }, COMMON);
38
38
  export default Container;
@@ -4,6 +4,6 @@ var Container = styled.table.withConfig({
4
4
  displayName: "styles__Container",
5
5
  componentId: "sc-1t7lqra-0"
6
6
  })(["width:100%;border-collapse:collapse;thead{vertical-align:bottom;}tr,thead{border-bottom:1px solid ", ";}", ""], function (props) {
7
- return props.theme.colors.border;
7
+ return props.theme.colors.container.border.base;
8
8
  }, COMMON);
9
9
  export default Container;
@@ -4,7 +4,7 @@ var Container = styled.tbody.withConfig({
4
4
  displayName: "styles__Container",
5
5
  componentId: "sc-17hu4uw-0"
6
6
  })(["border-bottom:1px solid ", ";", ""], function (props) {
7
- return props.theme.colors.border;
7
+ return props.theme.colors.container.border.base;
8
8
  }, COMMON); // eslint-disable-next-line prettier/prettier
9
9
 
10
10
  export var Detail = styled.tr.withConfig({