baseui 10.11.1 → 11.0.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 (273) hide show
  1. package/README.md +3 -3
  2. package/accordion/accordion.js +60 -13
  3. package/accordion/accordion.js.flow +49 -12
  4. package/accordion/index.d.ts +0 -3
  5. package/accordion/panel.js +7 -6
  6. package/accordion/panel.js.flow +20 -20
  7. package/accordion/stateless-accordion.js +2 -4
  8. package/accordion/stateless-accordion.js.flow +0 -2
  9. package/accordion/types.js.flow +0 -5
  10. package/button/constants.js +1 -2
  11. package/button/constants.js.flow +0 -1
  12. package/button/index.d.ts +0 -1
  13. package/button/styled-components.js +2 -29
  14. package/button/styled-components.js.flow +2 -30
  15. package/checkbox/checkbox.js +6 -30
  16. package/checkbox/checkbox.js.flow +7 -38
  17. package/checkbox/constants.js +2 -1
  18. package/checkbox/constants.js.flow +2 -1
  19. package/checkbox/index.d.ts +4 -6
  20. package/checkbox/index.js +0 -6
  21. package/checkbox/index.js.flow +0 -1
  22. package/checkbox/styled-components.js +52 -149
  23. package/checkbox/styled-components.js.flow +59 -165
  24. package/checkbox/types.js.flow +0 -5
  25. package/data-table/column-categorical.js +1 -1
  26. package/data-table/column-categorical.js.flow +1 -1
  27. package/data-table/column-datetime.js +1 -1
  28. package/data-table/column-datetime.js.flow +3 -1
  29. package/data-table/column.js +6 -2
  30. package/data-table/column.js.flow +9 -7
  31. package/data-table/data-table.js +1 -1
  32. package/data-table/data-table.js.flow +1 -1
  33. package/data-table/header-cell.js +3 -0
  34. package/data-table/header-cell.js.flow +1 -1
  35. package/datepicker/calendar.js +15 -7
  36. package/datepicker/calendar.js.flow +23 -9
  37. package/datepicker/constants.js +12 -2
  38. package/datepicker/constants.js.flow +10 -0
  39. package/datepicker/datepicker.js +61 -30
  40. package/datepicker/datepicker.js.flow +77 -37
  41. package/datepicker/day.js +85 -34
  42. package/datepicker/day.js.flow +118 -54
  43. package/datepicker/locale.js.flow +0 -1
  44. package/datepicker/month.js +3 -1
  45. package/datepicker/month.js.flow +2 -0
  46. package/datepicker/stateful-container.js.flow +2 -1
  47. package/datepicker/styled-components.js +23 -1
  48. package/datepicker/styled-components.js.flow +12 -2
  49. package/datepicker/types.js.flow +35 -10
  50. package/datepicker/utils/date-helpers.js +30 -0
  51. package/datepicker/utils/date-helpers.js.flow +12 -0
  52. package/datepicker/week.js +3 -1
  53. package/datepicker/week.js.flow +2 -0
  54. package/es/accordion/accordion.js +52 -12
  55. package/es/accordion/panel.js +7 -5
  56. package/es/accordion/stateless-accordion.js +2 -4
  57. package/es/button/constants.js +1 -2
  58. package/es/button/styled-components.js +2 -29
  59. package/es/checkbox/checkbox.js +7 -32
  60. package/es/checkbox/constants.js +2 -1
  61. package/es/checkbox/index.js +1 -1
  62. package/es/checkbox/styled-components.js +51 -146
  63. package/es/data-table/column-categorical.js +1 -1
  64. package/es/data-table/column-datetime.js +1 -1
  65. package/es/data-table/column.js +6 -2
  66. package/es/data-table/data-table.js +1 -1
  67. package/es/data-table/header-cell.js +3 -0
  68. package/es/datepicker/calendar.js +15 -7
  69. package/es/datepicker/constants.js +8 -0
  70. package/es/datepicker/datepicker.js +56 -29
  71. package/es/datepicker/day.js +77 -34
  72. package/es/datepicker/month.js +3 -1
  73. package/es/datepicker/styled-components.js +8 -2
  74. package/es/datepicker/types.js +1 -1
  75. package/es/datepicker/utils/date-helpers.js +16 -0
  76. package/es/datepicker/week.js +3 -1
  77. package/es/file-uploader/file-uploader.js +4 -4
  78. package/es/header-navigation/styled-components.js +3 -3
  79. package/es/helpers/overrides.js +1 -2
  80. package/es/input/styled-components.js +4 -4
  81. package/es/layer/layer.js +4 -4
  82. package/es/locale/index.js +0 -7
  83. package/es/menu/stateful-container.js +0 -1
  84. package/es/menu/styled-components.js +1 -1
  85. package/es/modal/index.js +1 -1
  86. package/es/modal/modal.js +19 -65
  87. package/es/modal/styled-components.js +12 -48
  88. package/es/phone-input/default-props.js +1 -1
  89. package/es/phone-input/index.js +0 -4
  90. package/es/phone-input/phone-input-lite.js +55 -31
  91. package/es/radio/radio.js +1 -7
  92. package/es/radio/radiogroup.js +3 -28
  93. package/es/radio/styled-components.js +4 -5
  94. package/es/rating/styled-components.js +3 -3
  95. package/es/select/index.js +1 -2
  96. package/es/select/select-component.js +32 -20
  97. package/es/select/styled-components.js +4 -4
  98. package/es/snackbar/styled-components.js +2 -2
  99. package/es/spinner/index.js +3 -9
  100. package/es/spinner/styled-components.js +2 -32
  101. package/es/table/filter.js +3 -3
  102. package/es/tag/styled-components.js +1 -1
  103. package/es/themes/dark-theme/color-component-tokens.js +0 -38
  104. package/es/themes/dark-theme/color-tokens.js +0 -2
  105. package/es/themes/dark-theme/create-dark-theme.js +0 -2
  106. package/es/themes/dark-theme/dark-theme.js +0 -2
  107. package/es/themes/light-theme/color-component-tokens.js +0 -38
  108. package/es/themes/light-theme/color-tokens.js +0 -2
  109. package/es/themes/light-theme/create-light-theme.js +0 -2
  110. package/es/themes/light-theme/light-theme.js +0 -2
  111. package/es/timepicker/timepicker.js +1 -8
  112. package/es/typography/index.js +1 -31
  113. package/esm/accordion/accordion.js +60 -13
  114. package/esm/accordion/panel.js +7 -6
  115. package/esm/accordion/stateless-accordion.js +2 -4
  116. package/esm/button/constants.js +1 -2
  117. package/esm/button/styled-components.js +2 -29
  118. package/esm/checkbox/checkbox.js +7 -30
  119. package/esm/checkbox/constants.js +2 -1
  120. package/esm/checkbox/index.js +1 -1
  121. package/esm/checkbox/styled-components.js +52 -147
  122. package/esm/data-table/column-categorical.js +1 -1
  123. package/esm/data-table/column-datetime.js +1 -1
  124. package/esm/data-table/column.js +6 -2
  125. package/esm/data-table/data-table.js +1 -1
  126. package/esm/data-table/header-cell.js +3 -0
  127. package/esm/datepicker/calendar.js +15 -7
  128. package/esm/datepicker/constants.js +8 -0
  129. package/esm/datepicker/datepicker.js +60 -30
  130. package/esm/datepicker/day.js +84 -34
  131. package/esm/datepicker/month.js +3 -1
  132. package/esm/datepicker/styled-components.js +24 -2
  133. package/esm/datepicker/types.js +1 -1
  134. package/esm/datepicker/utils/date-helpers.js +30 -0
  135. package/esm/datepicker/week.js +3 -1
  136. package/esm/file-uploader/file-uploader.js +4 -4
  137. package/esm/header-navigation/styled-components.js +3 -3
  138. package/esm/helpers/overrides.js +1 -2
  139. package/esm/input/styled-components.js +4 -4
  140. package/esm/layer/layer.js +4 -4
  141. package/esm/locale/index.js +0 -7
  142. package/esm/menu/stateful-container.js +0 -1
  143. package/esm/menu/styled-components.js +1 -1
  144. package/esm/modal/index.js +1 -1
  145. package/esm/modal/modal.js +28 -71
  146. package/esm/modal/styled-components.js +6 -38
  147. package/esm/phone-input/default-props.js +1 -1
  148. package/esm/phone-input/index.js +0 -4
  149. package/esm/phone-input/phone-input-lite.js +60 -37
  150. package/esm/radio/radio.js +1 -7
  151. package/esm/radio/radiogroup.js +3 -28
  152. package/esm/radio/styled-components.js +4 -5
  153. package/esm/rating/styled-components.js +3 -3
  154. package/esm/select/index.js +1 -2
  155. package/esm/select/select-component.js +34 -19
  156. package/esm/select/styled-components.js +4 -4
  157. package/esm/snackbar/styled-components.js +2 -2
  158. package/esm/spinner/index.js +3 -9
  159. package/esm/spinner/styled-components.js +2 -40
  160. package/esm/table/filter.js +3 -3
  161. package/esm/tag/styled-components.js +1 -1
  162. package/esm/themes/dark-theme/color-component-tokens.js +0 -38
  163. package/esm/themes/dark-theme/color-tokens.js +0 -2
  164. package/esm/themes/dark-theme/create-dark-theme.js +1 -2
  165. package/esm/themes/dark-theme/dark-theme.js +1 -2
  166. package/esm/themes/light-theme/color-component-tokens.js +0 -38
  167. package/esm/themes/light-theme/color-tokens.js +0 -2
  168. package/esm/themes/light-theme/create-light-theme.js +1 -2
  169. package/esm/themes/light-theme/light-theme.js +1 -2
  170. package/esm/timepicker/timepicker.js +1 -8
  171. package/esm/typography/index.js +1 -35
  172. package/file-uploader/file-uploader.js +3 -3
  173. package/file-uploader/file-uploader.js.flow +4 -4
  174. package/header-navigation/styled-components.js +3 -3
  175. package/header-navigation/styled-components.js.flow +3 -3
  176. package/helpers/overrides.js +1 -2
  177. package/helpers/overrides.js.flow +1 -1
  178. package/input/index.d.ts +5 -9
  179. package/input/styled-components.js +4 -4
  180. package/input/styled-components.js.flow +4 -4
  181. package/layer/layer.js +4 -4
  182. package/layer/layer.js.flow +4 -3
  183. package/locale/index.js +0 -7
  184. package/locale/index.js.flow +0 -7
  185. package/locale.ts +0 -1
  186. package/menu/index.d.ts +1 -3
  187. package/menu/stateful-container.js +0 -1
  188. package/menu/stateful-container.js.flow +0 -1
  189. package/menu/styled-components.js +1 -1
  190. package/menu/styled-components.js.flow +1 -1
  191. package/modal/index.d.ts +4 -6
  192. package/modal/index.js +0 -6
  193. package/modal/index.js.flow +0 -1
  194. package/modal/modal.js +27 -70
  195. package/modal/modal.js.flow +17 -83
  196. package/modal/styled-components.js +7 -40
  197. package/modal/styled-components.js.flow +12 -44
  198. package/modal/types.js.flow +1 -10
  199. package/package.json +10 -10
  200. package/phone-input/default-props.js +1 -1
  201. package/phone-input/default-props.js.flow +1 -1
  202. package/phone-input/index.d.ts +0 -1
  203. package/phone-input/index.js +0 -36
  204. package/phone-input/index.js.flow +0 -4
  205. package/phone-input/phone-input-lite.js +63 -38
  206. package/phone-input/phone-input-lite.js.flow +66 -44
  207. package/progress-bar/index.d.ts +3 -3
  208. package/radio/index.d.ts +4 -9
  209. package/radio/radio.js +1 -7
  210. package/radio/radio.js.flow +1 -8
  211. package/radio/radiogroup.js +3 -28
  212. package/radio/radiogroup.js.flow +2 -26
  213. package/radio/styled-components.js +4 -5
  214. package/radio/styled-components.js.flow +3 -4
  215. package/radio/types.js.flow +4 -15
  216. package/rating/styled-components.js +3 -3
  217. package/rating/styled-components.js.flow +3 -3
  218. package/select/index.d.ts +8 -3
  219. package/select/index.js +0 -6
  220. package/select/index.js.flow +0 -2
  221. package/select/select-component.js +34 -19
  222. package/select/select-component.js.flow +29 -13
  223. package/select/styled-components.js +4 -4
  224. package/select/styled-components.js.flow +4 -4
  225. package/select/types.js.flow +11 -7
  226. package/snackbar/styled-components.js +1 -1
  227. package/snackbar/styled-components.js.flow +11 -11
  228. package/spinner/index.d.ts +5 -18
  229. package/spinner/index.js +2 -68
  230. package/spinner/index.js.flow +2 -27
  231. package/spinner/styled-components.js +9 -45
  232. package/spinner/styled-components.js.flow +2 -34
  233. package/spinner/types.js.flow +1 -19
  234. package/styles/types.js.flow +0 -2
  235. package/table/filter.js +3 -3
  236. package/table/filter.js.flow +3 -3
  237. package/tag/styled-components.js +1 -1
  238. package/tag/styled-components.js.flow +1 -1
  239. package/theme.ts +0 -81
  240. package/themes/dark-theme/color-component-tokens.js +0 -38
  241. package/themes/dark-theme/color-component-tokens.js.flow +0 -42
  242. package/themes/dark-theme/color-tokens.js +0 -2
  243. package/themes/dark-theme/color-tokens.js.flow +0 -2
  244. package/themes/dark-theme/create-dark-theme.js +1 -3
  245. package/themes/dark-theme/create-dark-theme.js.flow +0 -2
  246. package/themes/dark-theme/dark-theme.js +1 -3
  247. package/themes/dark-theme/dark-theme.js.flow +0 -2
  248. package/themes/light-theme/color-component-tokens.js +0 -38
  249. package/themes/light-theme/color-component-tokens.js.flow +0 -43
  250. package/themes/light-theme/color-tokens.js +0 -2
  251. package/themes/light-theme/color-tokens.js.flow +0 -2
  252. package/themes/light-theme/create-light-theme.js +1 -3
  253. package/themes/light-theme/create-light-theme.js.flow +0 -2
  254. package/themes/light-theme/light-theme.js +1 -3
  255. package/themes/light-theme/light-theme.js.flow +0 -2
  256. package/themes/types.js.flow +0 -68
  257. package/timepicker/timepicker.js +1 -8
  258. package/timepicker/timepicker.js.flow +4 -10
  259. package/typography/index.d.ts +0 -23
  260. package/typography/index.js +2 -57
  261. package/typography/index.js.flow +0 -31
  262. package/es/spinner/spinner.js +0 -68
  263. package/es/themes/dark-theme/color-deprecated-semantic-tokens.js +0 -35
  264. package/es/themes/light-theme/color-deprecated-semantic-tokens.js +0 -35
  265. package/esm/spinner/spinner.js +0 -125
  266. package/esm/themes/dark-theme/color-deprecated-semantic-tokens.js +0 -38
  267. package/esm/themes/light-theme/color-deprecated-semantic-tokens.js +0 -38
  268. package/spinner/spinner.js +0 -136
  269. package/spinner/spinner.js.flow +0 -75
  270. package/themes/dark-theme/color-deprecated-semantic-tokens.js +0 -50
  271. package/themes/dark-theme/color-deprecated-semantic-tokens.js.flow +0 -42
  272. package/themes/light-theme/color-deprecated-semantic-tokens.js +0 -50
  273. package/themes/light-theme/color-deprecated-semantic-tokens.js.flow +0 -42
@@ -17,8 +17,6 @@ var _colorTokens = _interopRequireDefault(require("./color-tokens.js"));
17
17
 
18
18
  var _colorComponentTokens = _interopRequireDefault(require("./color-component-tokens.js"));
19
19
 
20
- var _colorDeprecatedSemanticTokens = _interopRequireDefault(require("./color-deprecated-semantic-tokens.js"));
21
-
22
20
  var _colorSemanticTokens = _interopRequireDefault(require("./color-semantic-tokens.js"));
23
21
 
24
22
  var _typography = _interopRequireDefault(require("../shared/typography.js"));
@@ -59,7 +57,7 @@ function createDarkTheme() {
59
57
  animation: _animation.default,
60
58
  borders: _borders.default,
61
59
  breakpoints: _breakpoints.default,
62
- colors: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, colorTokens), (0, _colorComponentTokens.default)(colorTokens)), (0, _colorDeprecatedSemanticTokens.default)(colorTokens)), (0, _colorSemanticTokens.default)(colorTokens)),
60
+ colors: _objectSpread(_objectSpread(_objectSpread({}, colorTokens), (0, _colorComponentTokens.default)(colorTokens)), (0, _colorSemanticTokens.default)(colorTokens)),
63
61
  direction: 'auto',
64
62
  grid: _grid.default,
65
63
  lighting: _lighting.default,
@@ -12,7 +12,6 @@ import breakpoints from '../shared/breakpoints.js';
12
12
  import deepMerge from '../../utils/deep-merge.js';
13
13
  import defaultColorTokens from './color-tokens.js';
14
14
  import getComponentColorTokens from './color-component-tokens.js';
15
- import getDeprecatedSemanticColorTokens from './color-deprecated-semantic-tokens.js';
16
15
  import getSemanticColorTokens from './color-semantic-tokens.js';
17
16
  import getTypography from '../shared/typography.js';
18
17
  import grid from '../shared/grid.js';
@@ -43,7 +42,6 @@ export default function createDarkTheme(
43
42
  colors: {
44
43
  ...colorTokens,
45
44
  ...getComponentColorTokens(colorTokens),
46
- ...getDeprecatedSemanticColorTokens(colorTokens),
47
45
  ...getSemanticColorTokens(colorTokens),
48
46
  },
49
47
  direction: 'auto',
@@ -11,8 +11,6 @@ var _colorSemanticTokens = _interopRequireDefault(require("./color-semantic-toke
11
11
 
12
12
  var _colorComponentTokens = _interopRequireDefault(require("./color-component-tokens.js"));
13
13
 
14
- var _colorDeprecatedSemanticTokens = _interopRequireDefault(require("./color-deprecated-semantic-tokens.js"));
15
-
16
14
  var _borders = _interopRequireDefault(require("./borders.js"));
17
15
 
18
16
  var _lighting = _interopRequireDefault(require("../shared/lighting.js"));
@@ -39,7 +37,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
39
37
 
40
38
  var DarkTheme = {
41
39
  name: 'dark-theme',
42
- colors: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _colorTokens.default), (0, _colorComponentTokens.default)()), (0, _colorDeprecatedSemanticTokens.default)()), (0, _colorSemanticTokens.default)()),
40
+ colors: _objectSpread(_objectSpread(_objectSpread({}, _colorTokens.default), (0, _colorComponentTokens.default)()), (0, _colorSemanticTokens.default)()),
43
41
  animation: _animation.default,
44
42
  breakpoints: _breakpoints.default,
45
43
  borders: _borders.default,
@@ -8,7 +8,6 @@ LICENSE file in the root directory of this source tree.
8
8
  import colorTokens from './color-tokens.js';
9
9
  import getSemanticColorTokens from './color-semantic-tokens.js';
10
10
  import getComponentColorTokens from './color-component-tokens.js';
11
- import getDeprecatedSemanticColorTokens from './color-deprecated-semantic-tokens.js';
12
11
  import borders from './borders.js';
13
12
  import lighting from '../shared/lighting.js';
14
13
  import getTypography from '../shared/typography.js';
@@ -25,7 +24,6 @@ export const DarkTheme: ThemeT = {
25
24
  colors: {
26
25
  ...colorTokens,
27
26
  ...getComponentColorTokens(),
28
- ...getDeprecatedSemanticColorTokens(),
29
27
  ...getSemanticColorTokens(),
30
28
  },
31
29
  animation,
@@ -52,14 +52,6 @@ var _default = function _default() {
52
52
  buttonTertiaryDisabledActiveText: themePrimitives.mono600,
53
53
  buttonTertiarySpinnerForeground: themePrimitives.accent,
54
54
  buttonTertiarySpinnerBackground: themePrimitives.primary100,
55
- buttonMinimalFill: 'transparent',
56
- buttonMinimalText: themePrimitives.primary,
57
- buttonMinimalHover: themePrimitives.primary50,
58
- buttonMinimalActive: themePrimitives.primary100,
59
- buttonMinimalSelectedFill: themePrimitives.primary100,
60
- buttonMinimalSelectedText: themePrimitives.primary,
61
- buttonMinimalSpinnerForeground: themePrimitives.accent,
62
- buttonMinimalSpinnerBackground: themePrimitives.primary100,
63
55
  buttonDisabledFill: themePrimitives.mono200,
64
56
  buttonDisabledText: themePrimitives.mono600,
65
57
  buttonDisabledActiveFill: themePrimitives.mono700,
@@ -70,12 +62,6 @@ var _default = function _default() {
70
62
  breadcrumbsText: themePrimitives.mono900,
71
63
  breadcrumbsSeparatorFill: themePrimitives.mono700,
72
64
  // Datepicker
73
- datepickerBackground: themePrimitives.mono100,
74
- datepickerDayFont: themePrimitives.mono1000,
75
- datepickerDayFontDisabled: themePrimitives.mono500,
76
- datepickerDayPseudoSelected: themePrimitives.primary100,
77
- datepickerDayPseudoHighlighted: themePrimitives.primary200,
78
- // Calendar
79
65
  calendarBackground: themePrimitives.mono100,
80
66
  calendarForeground: themePrimitives.mono1000,
81
67
  calendarForegroundDisabled: themePrimitives.mono500,
@@ -83,7 +69,6 @@ var _default = function _default() {
83
69
  calendarHeaderForeground: themePrimitives.primary,
84
70
  calendarHeaderBackgroundActive: themePrimitives.primary700,
85
71
  calendarHeaderForegroundDisabled: themePrimitives.primary500,
86
- calendarDayBackgroundPseudoSelected: themePrimitives.primary100,
87
72
  calendarDayForegroundPseudoSelected: themePrimitives.mono1000,
88
73
  calendarDayBackgroundPseudoSelectedHighlighted: themePrimitives.primary200,
89
74
  calendarDayForegroundPseudoSelectedHighlighted: themePrimitives.mono1000,
@@ -108,14 +93,11 @@ var _default = function _default() {
108
93
  // List
109
94
  listHeaderFill: themePrimitives.white,
110
95
  listBodyFill: themePrimitives.white,
111
- listIconFill: themePrimitives.mono500,
112
- listBorder: themePrimitives.mono500,
113
96
  // ProgressSteps
114
97
  progressStepsCompletedText: themePrimitives.white,
115
98
  progressStepsCompletedFill: themePrimitives.primary,
116
99
  progressStepsActiveText: themePrimitives.white,
117
100
  progressStepsActiveFill: themePrimitives.primary,
118
- progressStepsIconActiveFill: themePrimitives.primary,
119
101
  // Toggle
120
102
  toggleFill: themePrimitives.white,
121
103
  toggleFillChecked: themePrimitives.primary,
@@ -148,21 +130,10 @@ var _default = function _default() {
148
130
  sliderHandleInnerFill: themePrimitives.primaryA,
149
131
  sliderTrackFillHover: themePrimitives.mono500,
150
132
  sliderTrackFillActive: themePrimitives.mono600,
151
- sliderTrackFillSelected: themePrimitives.primary,
152
- sliderTrackFillSelectedHover: themePrimitives.primary,
153
- sliderTrackFillSelectedActive: themePrimitives.primary500,
154
133
  sliderTrackFillDisabled: themePrimitives.mono300,
155
- sliderHandleFillHover: themePrimitives.white,
156
- sliderHandleFillActive: themePrimitives.white,
157
- sliderHandleFillSelected: themePrimitives.white,
158
- sliderHandleFillSelectedHover: themePrimitives.white,
159
- sliderHandleFillSelectedActive: themePrimitives.white,
160
134
  sliderHandleInnerFillDisabled: themePrimitives.mono400,
161
135
  sliderHandleInnerFillSelectedHover: themePrimitives.primary,
162
136
  sliderHandleInnerFillSelectedActive: themePrimitives.primary500,
163
- sliderBorder: themePrimitives.mono500,
164
- sliderBorderHover: themePrimitives.primary,
165
- sliderBorderDisabled: themePrimitives.mono600,
166
137
  // Inputs
167
138
  inputBorder: themePrimitives.mono300,
168
139
  inputFill: themePrimitives.mono300,
@@ -189,16 +160,10 @@ var _default = function _default() {
189
160
  modalCloseColor: themePrimitives.mono1000,
190
161
  modalCloseColorHover: themePrimitives.mono800,
191
162
  modalCloseColorFocus: themePrimitives.mono800,
192
- // Pagination
193
- paginationTriangleDown: themePrimitives.mono800,
194
- // Header navigation
195
- headerNavigationFill: 'transparent',
196
163
  // Tab
197
164
  tabBarFill: themePrimitives.mono200,
198
165
  tabColor: themePrimitives.mono800,
199
166
  // Notification
200
- notificationPrimaryBackground: themePrimitives.primary50,
201
- notificationPrimaryText: themePrimitives.primaryA,
202
167
  notificationInfoBackground: themePrimitives.accent50,
203
168
  notificationInfoText: themePrimitives.primaryA,
204
169
  notificationPositiveBackground: themePrimitives.positive50,
@@ -210,7 +175,6 @@ var _default = function _default() {
210
175
  // Tag
211
176
  // Custom ramps
212
177
  tagFontDisabledRampUnit: '100',
213
- tagOutlinedDisabledRampUnit: '200',
214
178
  tagSolidFontRampUnit: '0',
215
179
  tagSolidRampUnit: '400',
216
180
  tagOutlinedFontRampUnit: '400',
@@ -223,7 +187,6 @@ var _default = function _default() {
223
187
  tagLightRampUnit: '50',
224
188
  tagLightHoverRampUnit: '100',
225
189
  tagLightActiveRampUnit: '100',
226
- tagLightDisabledRampUnit: '50',
227
190
  tagLightFontRampUnit: '500',
228
191
  tagLightFontHoverRampUnit: '500',
229
192
  tagOutlinedHoverRampUnit: '50',
@@ -365,7 +328,6 @@ var _default = function _default() {
365
328
  tableFilterFooterBackground: themePrimitives.mono200,
366
329
  // Toast
367
330
  toastText: themePrimitives.white,
368
- toastPrimaryBackground: themePrimitives.primary400,
369
331
  toastPrimaryText: themePrimitives.white,
370
332
  toastInfoBackground: themePrimitives.accent400,
371
333
  toastInfoText: themePrimitives.white,
@@ -46,15 +46,6 @@ export default (themePrimitives: ColorTokensT = colorTokens): ComponentColorToke
46
46
  buttonTertiarySpinnerForeground: themePrimitives.accent,
47
47
  buttonTertiarySpinnerBackground: themePrimitives.primary100,
48
48
 
49
- buttonMinimalFill: 'transparent',
50
- buttonMinimalText: themePrimitives.primary,
51
- buttonMinimalHover: themePrimitives.primary50,
52
- buttonMinimalActive: themePrimitives.primary100,
53
- buttonMinimalSelectedFill: themePrimitives.primary100,
54
- buttonMinimalSelectedText: themePrimitives.primary,
55
- buttonMinimalSpinnerForeground: themePrimitives.accent,
56
- buttonMinimalSpinnerBackground: themePrimitives.primary100,
57
-
58
49
  buttonDisabledFill: themePrimitives.mono200,
59
50
  buttonDisabledText: themePrimitives.mono600,
60
51
  buttonDisabledActiveFill: themePrimitives.mono700,
@@ -67,13 +58,6 @@ export default (themePrimitives: ColorTokensT = colorTokens): ComponentColorToke
67
58
  breadcrumbsSeparatorFill: themePrimitives.mono700,
68
59
 
69
60
  // Datepicker
70
- datepickerBackground: themePrimitives.mono100,
71
- datepickerDayFont: themePrimitives.mono1000,
72
- datepickerDayFontDisabled: themePrimitives.mono500,
73
- datepickerDayPseudoSelected: themePrimitives.primary100,
74
- datepickerDayPseudoHighlighted: themePrimitives.primary200,
75
-
76
- // Calendar
77
61
  calendarBackground: themePrimitives.mono100,
78
62
  calendarForeground: themePrimitives.mono1000,
79
63
  calendarForegroundDisabled: themePrimitives.mono500,
@@ -81,7 +65,6 @@ export default (themePrimitives: ColorTokensT = colorTokens): ComponentColorToke
81
65
  calendarHeaderForeground: themePrimitives.primary,
82
66
  calendarHeaderBackgroundActive: themePrimitives.primary700,
83
67
  calendarHeaderForegroundDisabled: themePrimitives.primary500,
84
- calendarDayBackgroundPseudoSelected: themePrimitives.primary100,
85
68
  calendarDayForegroundPseudoSelected: themePrimitives.mono1000,
86
69
  calendarDayBackgroundPseudoSelectedHighlighted: themePrimitives.primary200,
87
70
  calendarDayForegroundPseudoSelectedHighlighted: themePrimitives.mono1000,
@@ -110,15 +93,12 @@ export default (themePrimitives: ColorTokensT = colorTokens): ComponentColorToke
110
93
  // List
111
94
  listHeaderFill: themePrimitives.white,
112
95
  listBodyFill: themePrimitives.white,
113
- listIconFill: themePrimitives.mono500,
114
- listBorder: themePrimitives.mono500,
115
96
 
116
97
  // ProgressSteps
117
98
  progressStepsCompletedText: themePrimitives.white,
118
99
  progressStepsCompletedFill: themePrimitives.primary,
119
100
  progressStepsActiveText: themePrimitives.white,
120
101
  progressStepsActiveFill: themePrimitives.primary,
121
- progressStepsIconActiveFill: themePrimitives.primary,
122
102
 
123
103
  // Toggle
124
104
  toggleFill: themePrimitives.white,
@@ -157,24 +137,12 @@ export default (themePrimitives: ColorTokensT = colorTokens): ComponentColorToke
157
137
  sliderHandleFill: themePrimitives.primaryA,
158
138
  sliderHandleFillDisabled: themePrimitives.primary400,
159
139
  sliderHandleInnerFill: themePrimitives.primaryA,
160
-
161
140
  sliderTrackFillHover: themePrimitives.mono500,
162
141
  sliderTrackFillActive: themePrimitives.mono600,
163
- sliderTrackFillSelected: themePrimitives.primary,
164
- sliderTrackFillSelectedHover: themePrimitives.primary,
165
- sliderTrackFillSelectedActive: themePrimitives.primary500,
166
142
  sliderTrackFillDisabled: themePrimitives.mono300,
167
- sliderHandleFillHover: themePrimitives.white,
168
- sliderHandleFillActive: themePrimitives.white,
169
- sliderHandleFillSelected: themePrimitives.white,
170
- sliderHandleFillSelectedHover: themePrimitives.white,
171
- sliderHandleFillSelectedActive: themePrimitives.white,
172
143
  sliderHandleInnerFillDisabled: themePrimitives.mono400,
173
144
  sliderHandleInnerFillSelectedHover: themePrimitives.primary,
174
145
  sliderHandleInnerFillSelectedActive: themePrimitives.primary500,
175
- sliderBorder: themePrimitives.mono500,
176
- sliderBorderHover: themePrimitives.primary,
177
- sliderBorderDisabled: themePrimitives.mono600,
178
146
 
179
147
  // Inputs
180
148
  inputBorder: themePrimitives.mono300,
@@ -205,19 +173,11 @@ export default (themePrimitives: ColorTokensT = colorTokens): ComponentColorToke
205
173
  modalCloseColorHover: themePrimitives.mono800,
206
174
  modalCloseColorFocus: themePrimitives.mono800,
207
175
 
208
- // Pagination
209
- paginationTriangleDown: themePrimitives.mono800,
210
-
211
- // Header navigation
212
- headerNavigationFill: 'transparent',
213
-
214
176
  // Tab
215
177
  tabBarFill: themePrimitives.mono200,
216
178
  tabColor: themePrimitives.mono800,
217
179
 
218
180
  // Notification
219
- notificationPrimaryBackground: themePrimitives.primary50,
220
- notificationPrimaryText: themePrimitives.primaryA,
221
181
  notificationInfoBackground: themePrimitives.accent50,
222
182
  notificationInfoText: themePrimitives.primaryA,
223
183
  notificationPositiveBackground: themePrimitives.positive50,
@@ -231,7 +191,6 @@ export default (themePrimitives: ColorTokensT = colorTokens): ComponentColorToke
231
191
 
232
192
  // Custom ramps
233
193
  tagFontDisabledRampUnit: '100',
234
- tagOutlinedDisabledRampUnit: '200',
235
194
  tagSolidFontRampUnit: '0',
236
195
  tagSolidRampUnit: '400',
237
196
  tagOutlinedFontRampUnit: '400',
@@ -244,7 +203,6 @@ export default (themePrimitives: ColorTokensT = colorTokens): ComponentColorToke
244
203
  tagLightRampUnit: '50',
245
204
  tagLightHoverRampUnit: '100',
246
205
  tagLightActiveRampUnit: '100',
247
- tagLightDisabledRampUnit: '50',
248
206
  tagLightFontRampUnit: '500',
249
207
  tagLightFontHoverRampUnit: '500',
250
208
  tagOutlinedHoverRampUnit: '50',
@@ -394,7 +352,6 @@ export default (themePrimitives: ColorTokensT = colorTokens): ComponentColorToke
394
352
 
395
353
  // Toast
396
354
  toastText: themePrimitives.white,
397
- toastPrimaryBackground: themePrimitives.primary400,
398
355
  toastPrimaryText: themePrimitives.white,
399
356
  toastInfoBackground: themePrimitives.accent400,
400
357
  toastInfoText: themePrimitives.white,
@@ -81,8 +81,6 @@ var lightColorTokens = {
81
81
  mono900: _index.colors.gray700,
82
82
  mono1000: _index.colors.black,
83
83
  // Rating Palette,
84
- rating200: _index.colors.yellow200,
85
- rating400: _index.colors.yellow400,
86
84
  ratingInactiveFill: _index.colors.gray100,
87
85
  ratingStroke: _index.colors.gray300
88
86
  };
@@ -76,8 +76,6 @@ const lightColorTokens: ColorTokensT = {
76
76
  mono900: colors.gray700,
77
77
  mono1000: colors.black,
78
78
  // Rating Palette,
79
- rating200: colors.yellow200,
80
- rating400: colors.yellow400,
81
79
  ratingInactiveFill: colors.gray100,
82
80
  ratingStroke: colors.gray300,
83
81
  };
@@ -17,8 +17,6 @@ var _colorTokens = _interopRequireDefault(require("./color-tokens.js"));
17
17
 
18
18
  var _colorComponentTokens = _interopRequireDefault(require("./color-component-tokens.js"));
19
19
 
20
- var _colorDeprecatedSemanticTokens = _interopRequireDefault(require("./color-deprecated-semantic-tokens.js"));
21
-
22
20
  var _colorSemanticTokens = _interopRequireDefault(require("./color-semantic-tokens.js"));
23
21
 
24
22
  var _typography = _interopRequireDefault(require("../shared/typography.js"));
@@ -59,7 +57,7 @@ function createLightTheme() {
59
57
  animation: _animation.default,
60
58
  borders: _borders.default,
61
59
  breakpoints: _breakpoints.default,
62
- colors: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, colorTokens), (0, _colorComponentTokens.default)(colorTokens)), (0, _colorDeprecatedSemanticTokens.default)(colorTokens)), (0, _colorSemanticTokens.default)(colorTokens)),
60
+ colors: _objectSpread(_objectSpread(_objectSpread({}, colorTokens), (0, _colorComponentTokens.default)(colorTokens)), (0, _colorSemanticTokens.default)(colorTokens)),
63
61
  direction: 'auto',
64
62
  grid: _grid.default,
65
63
  lighting: _lighting.default,
@@ -12,7 +12,6 @@ import breakpoints from '../shared/breakpoints.js';
12
12
  import deepMerge from '../../utils/deep-merge.js';
13
13
  import defaultColorTokens from './color-tokens.js';
14
14
  import getComponentColorTokens from './color-component-tokens.js';
15
- import getDeprecatedSemanticColorTokens from './color-deprecated-semantic-tokens.js';
16
15
  import getSemanticColorTokens from './color-semantic-tokens.js';
17
16
  import getTypography from '../shared/typography.js';
18
17
  import grid from '../shared/grid.js';
@@ -43,7 +42,6 @@ export default function createLightTheme(
43
42
  colors: {
44
43
  ...colorTokens,
45
44
  ...getComponentColorTokens(colorTokens),
46
- ...getDeprecatedSemanticColorTokens(colorTokens),
47
45
  ...getSemanticColorTokens(colorTokens),
48
46
  },
49
47
  direction: 'auto',
@@ -11,8 +11,6 @@ var _colorSemanticTokens = _interopRequireDefault(require("./color-semantic-toke
11
11
 
12
12
  var _colorComponentTokens = _interopRequireDefault(require("./color-component-tokens.js"));
13
13
 
14
- var _colorDeprecatedSemanticTokens = _interopRequireDefault(require("./color-deprecated-semantic-tokens.js"));
15
-
16
14
  var _borders = _interopRequireDefault(require("../shared/borders.js"));
17
15
 
18
16
  var _lighting = _interopRequireDefault(require("../shared/lighting.js"));
@@ -39,7 +37,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
39
37
 
40
38
  var LightTheme = {
41
39
  name: 'light-theme',
42
- colors: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _colorTokens.default), (0, _colorComponentTokens.default)()), (0, _colorDeprecatedSemanticTokens.default)()), (0, _colorSemanticTokens.default)()),
40
+ colors: _objectSpread(_objectSpread(_objectSpread({}, _colorTokens.default), (0, _colorComponentTokens.default)()), (0, _colorSemanticTokens.default)()),
43
41
  animation: _animation.default,
44
42
  breakpoints: _breakpoints.default,
45
43
  borders: _borders.default,
@@ -8,7 +8,6 @@ LICENSE file in the root directory of this source tree.
8
8
  import colorTokens from './color-tokens.js';
9
9
  import getSemanticColorTokens from './color-semantic-tokens.js';
10
10
  import getComponentColorTokens from './color-component-tokens.js';
11
- import getDeprecatedSemanticColorTokens from './color-deprecated-semantic-tokens.js';
12
11
  import borders from '../shared/borders.js';
13
12
  import lighting from '../shared/lighting.js';
14
13
  import getTypography from '../shared/typography.js';
@@ -25,7 +24,6 @@ export const LightTheme: ThemeT = {
25
24
  colors: {
26
25
  ...colorTokens,
27
26
  ...getComponentColorTokens(),
28
- ...getDeprecatedSemanticColorTokens(),
29
27
  ...getSemanticColorTokens(),
30
28
  },
31
29
  animation,
@@ -94,8 +94,6 @@ export type ColorTokensT = {
94
94
  mono1000: string,
95
95
 
96
96
  // Rating Palette
97
- rating200: string,
98
- rating400: string,
99
97
  ratingInactiveFill: string,
100
98
  ratingStroke: string,
101
99
  };
@@ -202,14 +200,6 @@ export type ComponentColorTokensT = {|
202
200
  buttonTertiaryDisabledActiveText: string,
203
201
  buttonTertiarySpinnerForeground: string,
204
202
  buttonTertiarySpinnerBackground: string,
205
- buttonMinimalFill: string,
206
- buttonMinimalText: string,
207
- buttonMinimalHover: string,
208
- buttonMinimalActive: string,
209
- buttonMinimalSelectedText: string,
210
- buttonMinimalSelectedFill: string,
211
- buttonMinimalSpinnerForeground: string,
212
- buttonMinimalSpinnerBackground: string,
213
203
  buttonDisabledFill: string,
214
204
  buttonDisabledText: string,
215
205
  buttonDisabledActiveFill: string,
@@ -222,12 +212,6 @@ export type ComponentColorTokensT = {|
222
212
  breadcrumbsSeparatorFill: string,
223
213
 
224
214
  // Datepicker
225
- datepickerBackground: string,
226
- datepickerDayFont: string,
227
- datepickerDayFontDisabled: string,
228
- datepickerDayPseudoSelected: string,
229
- datepickerDayPseudoHighlighted: string,
230
-
231
215
  calendarBackground: string,
232
216
  calendarForeground: string,
233
217
  calendarForegroundDisabled: string,
@@ -235,7 +219,6 @@ export type ComponentColorTokensT = {|
235
219
  calendarHeaderForeground: string,
236
220
  calendarHeaderBackgroundActive: string,
237
221
  calendarHeaderForegroundDisabled: string,
238
- calendarDayBackgroundPseudoSelected: string,
239
222
  calendarDayForegroundPseudoSelected: string,
240
223
  calendarDayBackgroundPseudoSelectedHighlighted: string,
241
224
  calendarDayForegroundPseudoSelectedHighlighted: string,
@@ -264,15 +247,12 @@ export type ComponentColorTokensT = {|
264
247
  // Lists
265
248
  listHeaderFill: string,
266
249
  listBodyFill: string,
267
- listIconFill: string,
268
- listBorder: string,
269
250
 
270
251
  // ProgressSteps
271
252
  progressStepsCompletedText: string,
272
253
  progressStepsCompletedFill: string,
273
254
  progressStepsActiveText: string,
274
255
  progressStepsActiveFill: string,
275
- progressStepsIconActiveFill: string,
276
256
 
277
257
  // Toggle
278
258
  toggleFill: string,
@@ -305,24 +285,13 @@ export type ComponentColorTokensT = {|
305
285
  sliderTrackFill: string,
306
286
  sliderTrackFillHover: string,
307
287
  sliderTrackFillActive: string,
308
- sliderTrackFillSelected: string,
309
- sliderTrackFillSelectedHover: string,
310
- sliderTrackFillSelectedActive: string,
311
288
  sliderTrackFillDisabled: string,
312
289
  sliderHandleFill: string,
313
- sliderHandleFillHover: string,
314
- sliderHandleFillActive: string,
315
- sliderHandleFillSelected: string,
316
- sliderHandleFillSelectedHover: string,
317
- sliderHandleFillSelectedActive: string,
318
290
  sliderHandleFillDisabled: string,
319
291
  sliderHandleInnerFill: string,
320
292
  sliderHandleInnerFillDisabled: string,
321
293
  sliderHandleInnerFillSelectedHover: string,
322
294
  sliderHandleInnerFillSelectedActive: string,
323
- sliderBorder: string,
324
- sliderBorderHover: string,
325
- sliderBorderDisabled: string,
326
295
 
327
296
  // Input
328
297
  inputBorder: string,
@@ -341,8 +310,6 @@ export type ComponentColorTokensT = {|
341
310
  inputPlaceholderDisabled: string,
342
311
 
343
312
  // Notification
344
- notificationPrimaryBackground: string,
345
- notificationPrimaryText: string,
346
313
  notificationInfoBackground: string,
347
314
  notificationInfoText: string,
348
315
  notificationPositiveBackground: string,
@@ -365,12 +332,6 @@ export type ComponentColorTokensT = {|
365
332
  modalCloseColorHover: string,
366
333
  modalCloseColorFocus: string,
367
334
 
368
- // Pagination
369
- paginationTriangleDown: string,
370
-
371
- // Header navigation
372
- headerNavigationFill: string,
373
-
374
335
  // Tab
375
336
  tabBarFill: string,
376
337
  tabColor: string,
@@ -385,13 +346,11 @@ export type ComponentColorTokensT = {|
385
346
  tagLightRampUnit: string,
386
347
  tagLightHoverRampUnit: string,
387
348
  tagLightActiveRampUnit: string,
388
- tagLightDisabledRampUnit: string,
389
349
  tagLightFontRampUnit: string,
390
350
  tagLightFontHoverRampUnit: string,
391
351
  tagOutlinedRampUnit: string,
392
352
  tagOutlinedHoverRampUnit: string,
393
353
  tagOutlinedActiveRampUnit: string,
394
- tagOutlinedDisabledRampUnit: string,
395
354
  tagOutlinedFontRampUnit: string,
396
355
  tagOutlinedFontHoverRampUnit: string,
397
356
  tagFontDisabledRampUnit: string,
@@ -527,7 +486,6 @@ export type ComponentColorTokensT = {|
527
486
 
528
487
  // Toast
529
488
  toastText: string,
530
- toastPrimaryBackground: string,
531
489
  toastPrimaryText: string,
532
490
  toastInfoBackground: string,
533
491
  toastInfoText: string,
@@ -549,32 +507,6 @@ export type ComponentColorTokensT = {|
549
507
  tooltipText: string,
550
508
  |};
551
509
 
552
- export type DeprecatedSemanticColorTokensT = {|
553
- // Font Color
554
- colorPrimary: string,
555
- colorSecondary: string,
556
-
557
- // Background
558
- background: string,
559
- backgroundAlt: string,
560
- backgroundInv: string,
561
-
562
- // Foreground
563
- foreground: string,
564
- foregroundAlt: string,
565
- foregroundInv: string,
566
-
567
- // Borders
568
- border: string,
569
- borderAlt: string,
570
- borderFocus: string,
571
- borderError: string,
572
-
573
- // Shadow
574
- shadowFocus: string,
575
- shadowError: string,
576
- |};
577
-
578
510
  export type FontTokensT = {|
579
511
  primaryFontFamily: string,
580
512
  |};
@@ -390,14 +390,7 @@ var TimePicker = /*#__PURE__*/function (_React$Component) {
390
390
  }, selectProps.overrides);
391
391
  var value = this.props.value && adapter.isValid(this.props.value) ? this.buildSelectedOption(this.props.value, this.props.format) : this.state.value;
392
392
  return /*#__PURE__*/React.createElement(_index.LocaleContext.Consumer, null, function (locale) {
393
- var ariaLabel;
394
-
395
- if (locale.datepicker.timePickerAriaLabel) {
396
- ariaLabel = locale.datepicker.timePickerAriaLabel;
397
- } else {
398
- ariaLabel = format === '12' ? locale.datepicker.timePickerAriaLabel12Hour : locale.datepicker.timePickerAriaLabel24Hour;
399
- }
400
-
393
+ var ariaLabel = format === '12' ? locale.datepicker.timePickerAriaLabel12Hour : locale.datepicker.timePickerAriaLabel24Hour;
401
394
  return /*#__PURE__*/React.createElement(OverriddenSelect, _extends({
402
395
  "aria-label": ariaLabel,
403
396
  disabled: _this2.props.disabled,
@@ -289,16 +289,10 @@ class TimePicker<T = Date> extends React.Component<TimePickerPropsT<T>, TimePick
289
289
  return (
290
290
  <LocaleContext.Consumer>
291
291
  {(locale) => {
292
- let ariaLabel;
293
-
294
- if (locale.datepicker.timePickerAriaLabel) {
295
- ariaLabel = locale.datepicker.timePickerAriaLabel;
296
- } else {
297
- ariaLabel =
298
- format === '12'
299
- ? locale.datepicker.timePickerAriaLabel12Hour
300
- : locale.datepicker.timePickerAriaLabel24Hour;
301
- }
292
+ const ariaLabel =
293
+ format === '12'
294
+ ? locale.datepicker.timePickerAriaLabel12Hour
295
+ : locale.datepicker.timePickerAriaLabel24Hour;
302
296
 
303
297
  return (
304
298
  <OverriddenSelect
@@ -37,26 +37,3 @@ export const MonoParagraphLarge: React.FC<BlockProps>;
37
37
  export const MonoParagraphMedium: React.FC<BlockProps>;
38
38
  export const MonoParagraphSmall: React.FC<BlockProps>;
39
39
  export const MonoParagraphXSmall: React.FC<BlockProps>;
40
-
41
- // TODO(v11): remove
42
- export const Caption1: React.FC<BlockProps>;
43
- export const Caption2: React.FC<BlockProps>;
44
- export const Display: React.FC<BlockProps>;
45
- export const Display1: React.FC<BlockProps>;
46
- export const Display2: React.FC<BlockProps>;
47
- export const Display3: React.FC<BlockProps>;
48
- export const Display4: React.FC<BlockProps>;
49
- export const H1: React.FC<BlockProps>;
50
- export const H2: React.FC<BlockProps>;
51
- export const H3: React.FC<BlockProps>;
52
- export const H4: React.FC<BlockProps>;
53
- export const H5: React.FC<BlockProps>;
54
- export const H6: React.FC<BlockProps>;
55
- export const Label1: React.FC<BlockProps>;
56
- export const Label2: React.FC<BlockProps>;
57
- export const Label3: React.FC<BlockProps>;
58
- export const Label4: React.FC<BlockProps>;
59
- export const Paragraph1: React.FC<BlockProps>;
60
- export const Paragraph2: React.FC<BlockProps>;
61
- export const Paragraph3: React.FC<BlockProps>;
62
- export const Paragraph4: React.FC<BlockProps>;