baseui 10.12.0 → 11.0.1

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 (291) 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 +10 -2
  32. package/data-table/data-table.js.flow +4 -1
  33. package/data-table/header-cell.js +3 -0
  34. package/data-table/header-cell.js.flow +1 -1
  35. package/data-table/index.d.ts +7 -8
  36. package/data-table/stateful-data-table.js +2 -1
  37. package/data-table/stateful-data-table.js.flow +1 -0
  38. package/data-table/types.js.flow +8 -0
  39. package/datepicker/calendar.js +15 -7
  40. package/datepicker/calendar.js.flow +23 -9
  41. package/datepicker/constants.js +12 -2
  42. package/datepicker/constants.js.flow +10 -0
  43. package/datepicker/datepicker.js +61 -30
  44. package/datepicker/datepicker.js.flow +77 -37
  45. package/datepicker/day.js +85 -34
  46. package/datepicker/day.js.flow +118 -54
  47. package/datepicker/locale.js.flow +0 -1
  48. package/datepicker/month.js +3 -1
  49. package/datepicker/month.js.flow +2 -0
  50. package/datepicker/stateful-container.js.flow +2 -1
  51. package/datepicker/styled-components.js +23 -1
  52. package/datepicker/styled-components.js.flow +12 -2
  53. package/datepicker/types.js.flow +35 -10
  54. package/datepicker/utils/date-helpers.js +30 -0
  55. package/datepicker/utils/date-helpers.js.flow +12 -0
  56. package/datepicker/week.js +3 -1
  57. package/datepicker/week.js.flow +2 -0
  58. package/es/accordion/accordion.js +52 -12
  59. package/es/accordion/panel.js +7 -5
  60. package/es/accordion/stateless-accordion.js +2 -4
  61. package/es/button/constants.js +1 -2
  62. package/es/button/styled-components.js +2 -29
  63. package/es/checkbox/checkbox.js +7 -32
  64. package/es/checkbox/constants.js +2 -1
  65. package/es/checkbox/index.js +1 -1
  66. package/es/checkbox/styled-components.js +51 -146
  67. package/es/data-table/column-categorical.js +1 -1
  68. package/es/data-table/column-datetime.js +1 -1
  69. package/es/data-table/column.js +6 -2
  70. package/es/data-table/data-table.js +6 -2
  71. package/es/data-table/header-cell.js +3 -0
  72. package/es/data-table/stateful-data-table.js +2 -1
  73. package/es/datepicker/calendar.js +15 -7
  74. package/es/datepicker/constants.js +8 -0
  75. package/es/datepicker/datepicker.js +56 -29
  76. package/es/datepicker/day.js +77 -34
  77. package/es/datepicker/month.js +3 -1
  78. package/es/datepicker/styled-components.js +8 -2
  79. package/es/datepicker/types.js +1 -1
  80. package/es/datepicker/utils/date-helpers.js +16 -0
  81. package/es/datepicker/week.js +3 -1
  82. package/es/file-uploader/file-uploader.js +4 -4
  83. package/es/form-control/styled-components.js +0 -1
  84. package/es/header-navigation/styled-components.js +3 -3
  85. package/es/helpers/overrides.js +1 -2
  86. package/es/input/styled-components.js +4 -4
  87. package/es/layer/layer.js +4 -4
  88. package/es/list/list-item.js +5 -1
  89. package/es/list/menu-adapter.js +4 -0
  90. package/es/locale/index.js +0 -7
  91. package/es/menu/stateful-container.js +0 -1
  92. package/es/menu/styled-components.js +1 -1
  93. package/es/modal/index.js +1 -1
  94. package/es/modal/modal.js +19 -65
  95. package/es/modal/styled-components.js +12 -48
  96. package/es/phone-input/default-props.js +1 -1
  97. package/es/phone-input/index.js +0 -4
  98. package/es/phone-input/phone-input-lite.js +55 -31
  99. package/es/radio/radio.js +1 -7
  100. package/es/radio/radiogroup.js +3 -28
  101. package/es/radio/styled-components.js +4 -5
  102. package/es/rating/styled-components.js +3 -3
  103. package/es/select/index.js +1 -2
  104. package/es/select/select-component.js +20 -20
  105. package/es/select/styled-components.js +21 -17
  106. package/es/snackbar/styled-components.js +2 -2
  107. package/es/spinner/index.js +3 -9
  108. package/es/spinner/styled-components.js +2 -32
  109. package/es/table/filter.js +3 -3
  110. package/es/tag/styled-components.js +1 -1
  111. package/es/themes/dark-theme/color-component-tokens.js +0 -38
  112. package/es/themes/dark-theme/color-tokens.js +0 -2
  113. package/es/themes/dark-theme/create-dark-theme.js +0 -2
  114. package/es/themes/dark-theme/dark-theme.js +0 -2
  115. package/es/themes/light-theme/color-component-tokens.js +0 -38
  116. package/es/themes/light-theme/color-tokens.js +0 -2
  117. package/es/themes/light-theme/create-light-theme.js +0 -2
  118. package/es/themes/light-theme/light-theme.js +0 -2
  119. package/es/timepicker/timepicker.js +1 -8
  120. package/es/typography/index.js +1 -31
  121. package/esm/accordion/accordion.js +60 -13
  122. package/esm/accordion/panel.js +7 -6
  123. package/esm/accordion/stateless-accordion.js +2 -4
  124. package/esm/button/constants.js +1 -2
  125. package/esm/button/styled-components.js +2 -29
  126. package/esm/checkbox/checkbox.js +7 -30
  127. package/esm/checkbox/constants.js +2 -1
  128. package/esm/checkbox/index.js +1 -1
  129. package/esm/checkbox/styled-components.js +52 -147
  130. package/esm/data-table/column-categorical.js +1 -1
  131. package/esm/data-table/column-datetime.js +1 -1
  132. package/esm/data-table/column.js +6 -2
  133. package/esm/data-table/data-table.js +10 -2
  134. package/esm/data-table/header-cell.js +3 -0
  135. package/esm/data-table/stateful-data-table.js +2 -1
  136. package/esm/datepicker/calendar.js +15 -7
  137. package/esm/datepicker/constants.js +8 -0
  138. package/esm/datepicker/datepicker.js +60 -30
  139. package/esm/datepicker/day.js +84 -34
  140. package/esm/datepicker/month.js +3 -1
  141. package/esm/datepicker/styled-components.js +24 -2
  142. package/esm/datepicker/types.js +1 -1
  143. package/esm/datepicker/utils/date-helpers.js +30 -0
  144. package/esm/datepicker/week.js +3 -1
  145. package/esm/file-uploader/file-uploader.js +4 -4
  146. package/esm/form-control/styled-components.js +0 -1
  147. package/esm/header-navigation/styled-components.js +3 -3
  148. package/esm/helpers/overrides.js +1 -2
  149. package/esm/input/styled-components.js +4 -4
  150. package/esm/layer/layer.js +4 -4
  151. package/esm/list/list-item.js +5 -1
  152. package/esm/list/menu-adapter.js +4 -0
  153. package/esm/locale/index.js +0 -7
  154. package/esm/menu/stateful-container.js +0 -1
  155. package/esm/menu/styled-components.js +1 -1
  156. package/esm/modal/index.js +1 -1
  157. package/esm/modal/modal.js +28 -71
  158. package/esm/modal/styled-components.js +6 -38
  159. package/esm/phone-input/default-props.js +1 -1
  160. package/esm/phone-input/index.js +0 -4
  161. package/esm/phone-input/phone-input-lite.js +60 -37
  162. package/esm/radio/radio.js +1 -7
  163. package/esm/radio/radiogroup.js +3 -28
  164. package/esm/radio/styled-components.js +4 -5
  165. package/esm/rating/styled-components.js +3 -3
  166. package/esm/select/index.js +1 -2
  167. package/esm/select/select-component.js +20 -20
  168. package/esm/select/styled-components.js +21 -14
  169. package/esm/snackbar/styled-components.js +2 -2
  170. package/esm/spinner/index.js +3 -9
  171. package/esm/spinner/styled-components.js +2 -40
  172. package/esm/table/filter.js +3 -3
  173. package/esm/tag/styled-components.js +1 -1
  174. package/esm/themes/dark-theme/color-component-tokens.js +0 -38
  175. package/esm/themes/dark-theme/color-tokens.js +0 -2
  176. package/esm/themes/dark-theme/create-dark-theme.js +1 -2
  177. package/esm/themes/dark-theme/dark-theme.js +1 -2
  178. package/esm/themes/light-theme/color-component-tokens.js +0 -38
  179. package/esm/themes/light-theme/color-tokens.js +0 -2
  180. package/esm/themes/light-theme/create-light-theme.js +1 -2
  181. package/esm/themes/light-theme/light-theme.js +1 -2
  182. package/esm/timepicker/timepicker.js +1 -8
  183. package/esm/typography/index.js +1 -35
  184. package/file-uploader/file-uploader.js +3 -3
  185. package/file-uploader/file-uploader.js.flow +4 -4
  186. package/form-control/index.d.ts +9 -0
  187. package/form-control/styled-components.js +0 -1
  188. package/form-control/styled-components.js.flow +0 -1
  189. package/header-navigation/styled-components.js +3 -3
  190. package/header-navigation/styled-components.js.flow +3 -3
  191. package/helpers/overrides.js +1 -2
  192. package/helpers/overrides.js.flow +1 -1
  193. package/input/index.d.ts +5 -9
  194. package/input/styled-components.js +4 -4
  195. package/input/styled-components.js.flow +4 -4
  196. package/layer/layer.js +4 -4
  197. package/layer/layer.js.flow +4 -3
  198. package/list/list-item.js +5 -1
  199. package/list/list-item.js.flow +4 -0
  200. package/list/menu-adapter.js +4 -0
  201. package/list/menu-adapter.js.flow +4 -0
  202. package/list/types.js.flow +4 -0
  203. package/locale/index.js +0 -7
  204. package/locale/index.js.flow +0 -7
  205. package/locale.ts +0 -1
  206. package/menu/index.d.ts +1 -3
  207. package/menu/stateful-container.js +0 -1
  208. package/menu/stateful-container.js.flow +0 -1
  209. package/menu/styled-components.js +1 -1
  210. package/menu/styled-components.js.flow +1 -1
  211. package/modal/index.d.ts +4 -6
  212. package/modal/index.js +0 -6
  213. package/modal/index.js.flow +0 -1
  214. package/modal/modal.js +27 -70
  215. package/modal/modal.js.flow +17 -83
  216. package/modal/styled-components.js +7 -40
  217. package/modal/styled-components.js.flow +12 -44
  218. package/modal/types.js.flow +1 -10
  219. package/package.json +3 -2
  220. package/phone-input/default-props.js +1 -1
  221. package/phone-input/default-props.js.flow +1 -1
  222. package/phone-input/index.d.ts +0 -1
  223. package/phone-input/index.js +0 -36
  224. package/phone-input/index.js.flow +0 -4
  225. package/phone-input/phone-input-lite.js +63 -38
  226. package/phone-input/phone-input-lite.js.flow +66 -44
  227. package/radio/index.d.ts +4 -9
  228. package/radio/radio.js +1 -7
  229. package/radio/radio.js.flow +1 -8
  230. package/radio/radiogroup.js +3 -28
  231. package/radio/radiogroup.js.flow +2 -26
  232. package/radio/styled-components.js +4 -5
  233. package/radio/styled-components.js.flow +3 -4
  234. package/radio/types.js.flow +4 -15
  235. package/rating/styled-components.js +3 -3
  236. package/rating/styled-components.js.flow +3 -3
  237. package/select/index.d.ts +0 -2
  238. package/select/index.js +0 -6
  239. package/select/index.js.flow +0 -2
  240. package/select/select-component.js +23 -24
  241. package/select/select-component.js.flow +25 -14
  242. package/select/styled-components.js +23 -17
  243. package/select/styled-components.js.flow +17 -12
  244. package/snackbar/styled-components.js +1 -1
  245. package/snackbar/styled-components.js.flow +11 -11
  246. package/spinner/index.d.ts +5 -18
  247. package/spinner/index.js +2 -68
  248. package/spinner/index.js.flow +2 -27
  249. package/spinner/styled-components.js +9 -45
  250. package/spinner/styled-components.js.flow +2 -34
  251. package/spinner/types.js.flow +1 -19
  252. package/styles/types.js.flow +0 -2
  253. package/table/filter.js +3 -3
  254. package/table/filter.js.flow +3 -3
  255. package/tag/styled-components.js +1 -1
  256. package/tag/styled-components.js.flow +1 -1
  257. package/theme.ts +0 -81
  258. package/themes/dark-theme/color-component-tokens.js +0 -38
  259. package/themes/dark-theme/color-component-tokens.js.flow +0 -42
  260. package/themes/dark-theme/color-tokens.js +0 -2
  261. package/themes/dark-theme/color-tokens.js.flow +0 -2
  262. package/themes/dark-theme/create-dark-theme.js +1 -3
  263. package/themes/dark-theme/create-dark-theme.js.flow +0 -2
  264. package/themes/dark-theme/dark-theme.js +1 -3
  265. package/themes/dark-theme/dark-theme.js.flow +0 -2
  266. package/themes/light-theme/color-component-tokens.js +0 -38
  267. package/themes/light-theme/color-component-tokens.js.flow +0 -43
  268. package/themes/light-theme/color-tokens.js +0 -2
  269. package/themes/light-theme/color-tokens.js.flow +0 -2
  270. package/themes/light-theme/create-light-theme.js +1 -3
  271. package/themes/light-theme/create-light-theme.js.flow +0 -2
  272. package/themes/light-theme/light-theme.js +1 -3
  273. package/themes/light-theme/light-theme.js.flow +0 -2
  274. package/themes/types.js.flow +0 -68
  275. package/timepicker/timepicker.js +1 -8
  276. package/timepicker/timepicker.js.flow +4 -10
  277. package/typography/index.d.ts +0 -23
  278. package/typography/index.js +2 -57
  279. package/typography/index.js.flow +0 -31
  280. package/es/spinner/spinner.js +0 -68
  281. package/es/themes/dark-theme/color-deprecated-semantic-tokens.js +0 -35
  282. package/es/themes/light-theme/color-deprecated-semantic-tokens.js +0 -35
  283. package/esm/spinner/spinner.js +0 -125
  284. package/esm/themes/dark-theme/color-deprecated-semantic-tokens.js +0 -38
  285. package/esm/themes/light-theme/color-deprecated-semantic-tokens.js +0 -38
  286. package/spinner/spinner.js +0 -136
  287. package/spinner/spinner.js.flow +0 -75
  288. package/themes/dark-theme/color-deprecated-semantic-tokens.js +0 -50
  289. package/themes/dark-theme/color-deprecated-semantic-tokens.js.flow +0 -42
  290. package/themes/light-theme/color-deprecated-semantic-tokens.js +0 -50
  291. package/themes/light-theme/color-deprecated-semantic-tokens.js.flow +0 -42
@@ -46,15 +46,6 @@ export default (themePrimitives: ColorTokensT = colorTokens): ComponentColorToke
46
46
  buttonTertiarySpinnerForeground: themePrimitives.primary50,
47
47
  buttonTertiarySpinnerBackground: themePrimitives.primary500,
48
48
 
49
- buttonMinimalFill: 'transparent',
50
- buttonMinimalText: themePrimitives.primary,
51
- buttonMinimalHover: themePrimitives.primary700,
52
- buttonMinimalActive: themePrimitives.primary600,
53
- buttonMinimalSelectedText: themePrimitives.primary,
54
- buttonMinimalSelectedFill: themePrimitives.primary600,
55
- buttonMinimalSpinnerForeground: themePrimitives.primary50,
56
- buttonMinimalSpinnerBackground: themePrimitives.primary500,
57
-
58
49
  buttonDisabledFill: themePrimitives.mono600,
59
50
  buttonDisabledText: themePrimitives.mono300,
60
51
  buttonDisabledActiveFill: themePrimitives.mono200,
@@ -67,13 +58,6 @@ export default (themePrimitives: ColorTokensT = colorTokens): ComponentColorToke
67
58
  breadcrumbsSeparatorFill: themePrimitives.mono200,
68
59
 
69
60
  // Datepicker
70
- datepickerBackground: themePrimitives.mono600,
71
- datepickerDayFont: themePrimitives.white,
72
- datepickerDayFontDisabled: themePrimitives.mono100,
73
- datepickerDayPseudoSelected: themePrimitives.mono500,
74
- datepickerDayPseudoHighlighted: themePrimitives.mono600,
75
-
76
- // Calendar
77
61
  calendarBackground: themePrimitives.mono800,
78
62
  calendarForeground: themePrimitives.white,
79
63
  calendarForegroundDisabled: themePrimitives.mono300,
@@ -81,7 +65,6 @@ export default (themePrimitives: ColorTokensT = colorTokens): ComponentColorToke
81
65
  calendarHeaderForeground: themePrimitives.primary,
82
66
  calendarHeaderBackgroundActive: themePrimitives.primary600,
83
67
  calendarHeaderForegroundDisabled: themePrimitives.primary500,
84
- calendarDayBackgroundPseudoSelected: themePrimitives.primary700,
85
68
  calendarDayForegroundPseudoSelected: themePrimitives.primary,
86
69
  calendarDayBackgroundPseudoSelectedHighlighted: themePrimitives.primary600,
87
70
  calendarDayForegroundPseudoSelectedHighlighted: themePrimitives.primary,
@@ -110,15 +93,12 @@ export default (themePrimitives: ColorTokensT = colorTokens): ComponentColorToke
110
93
  // List
111
94
  listHeaderFill: themePrimitives.mono600,
112
95
  listBodyFill: themePrimitives.mono800,
113
- listIconFill: themePrimitives.mono100,
114
- listBorder: themePrimitives.mono500,
115
96
 
116
97
  // ProgressSteps
117
98
  progressStepsCompletedText: themePrimitives.black,
118
99
  progressStepsCompletedFill: themePrimitives.primary,
119
100
  progressStepsActiveText: themePrimitives.black,
120
101
  progressStepsActiveFill: themePrimitives.primary,
121
- progressStepsIconActiveFill: themePrimitives.primary,
122
102
 
123
103
  // Modal
124
104
  modalCloseColor: themePrimitives.mono300,
@@ -126,8 +106,6 @@ export default (themePrimitives: ColorTokensT = colorTokens): ComponentColorToke
126
106
  modalCloseColorFocus: themePrimitives.mono400,
127
107
 
128
108
  // Notification
129
- notificationPrimaryBackground: themePrimitives.primary700,
130
- notificationPrimaryText: themePrimitives.primaryA,
131
109
  notificationInfoBackground: themePrimitives.accent700,
132
110
  notificationInfoText: themePrimitives.primaryA,
133
111
  notificationPositiveBackground: themePrimitives.positive700,
@@ -141,7 +119,6 @@ export default (themePrimitives: ColorTokensT = colorTokens): ComponentColorToke
141
119
 
142
120
  // Custom ramps
143
121
  tagFontDisabledRampUnit: '600',
144
- tagOutlinedDisabledRampUnit: '700',
145
122
  tagSolidFontRampUnit: '0',
146
123
  tagSolidRampUnit: '500',
147
124
  tagOutlinedFontRampUnit: '500',
@@ -154,7 +131,6 @@ export default (themePrimitives: ColorTokensT = colorTokens): ComponentColorToke
154
131
  tagLightRampUnit: '700',
155
132
  tagLightHoverRampUnit: '700',
156
133
  tagLightActiveRampUnit: '600',
157
- tagLightDisabledRampUnit: '700',
158
134
  tagLightFontRampUnit: '100',
159
135
  tagLightFontHoverRampUnit: '100',
160
136
  tagOutlinedActiveRampUnit: '300',
@@ -304,7 +280,6 @@ export default (themePrimitives: ColorTokensT = colorTokens): ComponentColorToke
304
280
 
305
281
  // Toast
306
282
  toastText: themePrimitives.white,
307
- toastPrimaryBackground: themePrimitives.primary400,
308
283
  toastPrimaryText: themePrimitives.white,
309
284
  toastInfoBackground: themePrimitives.accent400,
310
285
  toastInfoText: themePrimitives.white,
@@ -354,23 +329,12 @@ export default (themePrimitives: ColorTokensT = colorTokens): ComponentColorToke
354
329
  sliderHandleFillDisabled: themePrimitives.primary500,
355
330
  sliderHandleInnerFill: themePrimitives.primaryA,
356
331
 
357
- sliderHandleFillHover: themePrimitives.mono300,
358
- sliderHandleFillActive: themePrimitives.mono300,
359
- sliderHandleFillSelected: themePrimitives.primary500,
360
- sliderHandleFillSelectedHover: themePrimitives.primary600,
361
- sliderHandleFillSelectedActive: themePrimitives.primary700,
362
332
  sliderTrackFillHover: themePrimitives.mono500,
363
333
  sliderTrackFillActive: themePrimitives.mono400,
364
- sliderTrackFillSelected: themePrimitives.primary500,
365
- sliderTrackFillSelectedActive: themePrimitives.primary600,
366
- sliderTrackFillSelectedHover: themePrimitives.primary700,
367
334
  sliderTrackFillDisabled: themePrimitives.mono700,
368
335
  sliderHandleInnerFillDisabled: themePrimitives.mono500,
369
336
  sliderHandleInnerFillSelectedHover: themePrimitives.primary600,
370
337
  sliderHandleInnerFillSelectedActive: themePrimitives.primary700,
371
- sliderBorder: themePrimitives.white,
372
- sliderBorderHover: themePrimitives.white,
373
- sliderBorderDisabled: themePrimitives.mono400,
374
338
 
375
339
  // Input
376
340
  inputBorder: themePrimitives.mono600,
@@ -396,12 +360,6 @@ export default (themePrimitives: ColorTokensT = colorTokens): ComponentColorToke
396
360
  menuFontHighlighted: themePrimitives.white,
397
361
  menuFontSelected: themePrimitives.white,
398
362
 
399
- // Pagination
400
- paginationTriangleDown: themePrimitives.mono100,
401
-
402
- // Header navigation
403
- headerNavigationFill: themePrimitives.mono700,
404
-
405
363
  // Tab
406
364
  tabBarFill: themePrimitives.mono1000,
407
365
  tabColor: themePrimitives.mono300,
@@ -82,8 +82,6 @@ var darkColorTokens = {
82
82
  mono900: '#111111',
83
83
  mono1000: _index.colors.black,
84
84
  // Rating Palette,
85
- rating200: _index.colors.yellow200,
86
- rating400: _index.colors.yellow400,
87
85
  ratingInactiveFill: _index.colors.gray500,
88
86
  ratingStroke: _index.colors.gray700
89
87
  };
@@ -77,8 +77,6 @@ export const darkColorTokens: ColorTokensT = {
77
77
  mono900: '#111111',
78
78
  mono1000: colors.black,
79
79
  // Rating Palette,
80
- rating200: colors.yellow200,
81
- rating400: colors.yellow400,
82
80
  ratingInactiveFill: colors.gray500,
83
81
  ratingStroke: colors.gray700,
84
82
  };
@@ -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,