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
@@ -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>;
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.Caption2 = exports.Caption1 = exports.Label4 = exports.Label3 = exports.Label2 = exports.Label1 = exports.Paragraph4 = exports.Paragraph3 = exports.Paragraph2 = exports.Paragraph1 = exports.H6 = exports.H5 = exports.H4 = exports.H3 = exports.H2 = exports.H1 = exports.Display4 = exports.Display3 = exports.Display2 = exports.Display1 = exports.Display = exports.MonoParagraphXSmall = exports.MonoParagraphSmall = exports.MonoParagraphMedium = exports.MonoParagraphLarge = exports.MonoLabelXSmall = exports.MonoLabelSmall = exports.MonoLabelMedium = exports.MonoLabelLarge = exports.MonoHeadingXSmall = exports.MonoHeadingSmall = exports.MonoHeadingMedium = exports.MonoHeadingLarge = exports.MonoHeadingXLarge = exports.MonoHeadingXXLarge = exports.MonoDisplayXSmall = exports.MonoDisplaySmall = exports.MonoDisplayMedium = exports.MonoDisplayLarge = exports.ParagraphXSmall = exports.ParagraphSmall = exports.ParagraphMedium = exports.ParagraphLarge = exports.LabelXSmall = exports.LabelSmall = exports.LabelMedium = exports.LabelLarge = exports.HeadingXSmall = exports.HeadingSmall = exports.HeadingMedium = exports.HeadingLarge = exports.HeadingXLarge = exports.HeadingXXLarge = exports.DisplayXSmall = exports.DisplaySmall = exports.DisplayMedium = exports.DisplayLarge = void 0;
8
+ exports.MonoParagraphXSmall = exports.MonoParagraphSmall = exports.MonoParagraphMedium = exports.MonoParagraphLarge = exports.MonoLabelXSmall = exports.MonoLabelSmall = exports.MonoLabelMedium = exports.MonoLabelLarge = exports.MonoHeadingXSmall = exports.MonoHeadingSmall = exports.MonoHeadingMedium = exports.MonoHeadingLarge = exports.MonoHeadingXLarge = exports.MonoHeadingXXLarge = exports.MonoDisplayXSmall = exports.MonoDisplaySmall = exports.MonoDisplayMedium = exports.MonoDisplayLarge = exports.ParagraphXSmall = exports.ParagraphSmall = exports.ParagraphMedium = exports.ParagraphLarge = exports.LabelXSmall = exports.LabelSmall = exports.LabelMedium = exports.LabelLarge = exports.HeadingXSmall = exports.HeadingSmall = exports.HeadingMedium = exports.HeadingLarge = exports.HeadingXLarge = exports.HeadingXXLarge = exports.DisplayXSmall = exports.DisplaySmall = exports.DisplayMedium = exports.DisplayLarge = void 0;
9
9
 
10
10
  var React = _interopRequireWildcard(require("react"));
11
11
 
@@ -578,59 +578,4 @@ var MonoParagraphXSmall = /*#__PURE__*/React.forwardRef(function (props, ref) {
578
578
  );
579
579
  });
580
580
  exports.MonoParagraphXSmall = MonoParagraphXSmall;
581
- MonoParagraphXSmall.displayName = 'MonoParagraphXSmall'; // TODO(v11): remove
582
- // Aliases for backwards compatibility
583
-
584
- var Display = DisplayLarge;
585
- exports.Display = Display;
586
- var Display1 = DisplayLarge;
587
- exports.Display1 = Display1;
588
- var Display2 = DisplayMedium;
589
- exports.Display2 = Display2;
590
- var Display3 = DisplaySmall;
591
- exports.Display3 = Display3;
592
- var Display4 = DisplayXSmall;
593
- exports.Display4 = Display4;
594
- var H1 = HeadingXXLarge;
595
- exports.H1 = H1;
596
- var H2 = HeadingXLarge;
597
- exports.H2 = H2;
598
- var H3 = HeadingLarge;
599
- exports.H3 = H3;
600
- var H4 = HeadingMedium;
601
- exports.H4 = H4;
602
- var H5 = HeadingSmall;
603
- exports.H5 = H5;
604
- var H6 = HeadingXSmall;
605
- exports.H6 = H6;
606
- var Paragraph1 = ParagraphLarge;
607
- exports.Paragraph1 = Paragraph1;
608
- var Paragraph2 = ParagraphMedium;
609
- exports.Paragraph2 = Paragraph2;
610
- var Paragraph3 = ParagraphSmall;
611
- exports.Paragraph3 = Paragraph3;
612
- var Paragraph4 = ParagraphXSmall;
613
- exports.Paragraph4 = Paragraph4;
614
- var Label1 = LabelLarge;
615
- exports.Label1 = Label1;
616
- var Label2 = LabelMedium;
617
- exports.Label2 = Label2;
618
- var Label3 = LabelSmall;
619
- exports.Label3 = Label3;
620
- var Label4 = LabelXSmall;
621
- exports.Label4 = Label4;
622
- var Caption1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
623
- return /*#__PURE__*/React.createElement(Paragraph4, _extends({}, props, {
624
- color: props.color || 'contentSecondary',
625
- ref: ref
626
- }));
627
- });
628
- exports.Caption1 = Caption1;
629
- Caption1.displayName = 'Caption1';
630
- var Caption2 = /*#__PURE__*/React.forwardRef(function (props, ref) {
631
- return /*#__PURE__*/React.createElement(Label4, _extends({}, props, {
632
- color: props.color || 'contentSecondary'
633
- }));
634
- });
635
- exports.Caption2 = Caption2;
636
- Caption2.displayName = 'Caption2';
581
+ MonoParagraphXSmall.displayName = 'MonoParagraphXSmall';
@@ -462,37 +462,6 @@ export const MonoParagraphXSmall = React.forwardRef<BlockPropsT, HTMLElement>((p
462
462
  ));
463
463
  MonoParagraphXSmall.displayName = 'MonoParagraphXSmall';
464
464
 
465
- // TODO(v11): remove
466
- // Aliases for backwards compatibility
467
- export const Display = DisplayLarge;
468
- export const Display1 = DisplayLarge;
469
- export const Display2 = DisplayMedium;
470
- export const Display3 = DisplaySmall;
471
- export const Display4 = DisplayXSmall;
472
- export const H1 = HeadingXXLarge;
473
- export const H2 = HeadingXLarge;
474
- export const H3 = HeadingLarge;
475
- export const H4 = HeadingMedium;
476
- export const H5 = HeadingSmall;
477
- export const H6 = HeadingXSmall;
478
- export const Paragraph1 = ParagraphLarge;
479
- export const Paragraph2 = ParagraphMedium;
480
- export const Paragraph3 = ParagraphSmall;
481
- export const Paragraph4 = ParagraphXSmall;
482
- export const Label1 = LabelLarge;
483
- export const Label2 = LabelMedium;
484
- export const Label3 = LabelSmall;
485
- export const Label4 = LabelXSmall;
486
-
487
- export const Caption1 = React.forwardRef<BlockPropsT, HTMLElement>((props, ref) => (
488
- <Paragraph4 {...props} color={props.color || 'contentSecondary'} ref={ref} />
489
- ));
490
- Caption1.displayName = 'Caption1';
491
- export const Caption2 = React.forwardRef<BlockPropsT, HTMLElement>((props, ref) => (
492
- <Label4 {...props} color={props.color || 'contentSecondary'} />
493
- ));
494
- Caption2.displayName = 'Caption2';
495
-
496
465
  declare var __DEV__: boolean;
497
466
  declare var __NODE__: boolean;
498
467
  declare var __BROWSER__: boolean;
@@ -1,68 +0,0 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
-
5
- /*
6
- Copyright (c) Uber Technologies, Inc.
7
-
8
- This source code is licensed under the MIT license found in the
9
- LICENSE file in the root directory of this source tree.
10
- */
11
- import * as React from 'react';
12
- import { mergeOverrides, getOverrides } from '../helpers/overrides.js';
13
- import Icon from '../icon/icon.js';
14
- import { Svg as StyledSvg, StyledActivePath, StyledTrackPath } from './styled-components.js';
15
-
16
- class Spinner extends React.Component {
17
- componentDidMount() {
18
- // TODO(v11): remove warning when switching default Spinner
19
- if (process.env.NODE_ENV !== "production") {
20
- if (!this.props.$silenceV11DeprecationWarning) {
21
- console.warn(`❖ [baseui] Please consider using "StyledSpinnerNext" instead of "Spinner". ` + `In v11, "StyledSpinnerNext" will become the default "Spinner"` + ` and the current SVG based implementation will be deprecated.`);
22
- }
23
- }
24
- }
25
-
26
- render() {
27
- const {
28
- overrides = {}
29
- } = this.props;
30
- const mergedOverrides = mergeOverrides({
31
- Svg: StyledSvg
32
- }, overrides);
33
- const [TrackPath, trackPathProps] = getOverrides(overrides.TrackPath, StyledTrackPath);
34
- const [ActivePath, activePathProps] = getOverrides(overrides.ActivePath, StyledActivePath);
35
- return (
36
- /*#__PURE__*/
37
- // $FlowExpectedError[cannot-spread-inexact]
38
- React.createElement(Icon, _extends({
39
- "aria-label": 'Loading',
40
- "data-baseweb": "spinner",
41
- title: "Spinner",
42
- viewBox: "3 3 18 18"
43
- }, this.props, {
44
- overrides: mergedOverrides
45
- }), /*#__PURE__*/React.createElement(TrackPath, _extends({
46
- fillRule: "evenodd",
47
- clipRule: "evenodd",
48
- d: "M12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5ZM3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z",
49
- $color: this.props.color
50
- }, trackPathProps)), /*#__PURE__*/React.createElement(ActivePath, _extends({
51
- fillRule: "evenodd",
52
- clipRule: "evenodd",
53
- d: "M16.9497 7.05015C14.2161 4.31648 9.78392 4.31648 7.05025 7.05015C6.65973 7.44067 6.02656 7.44067 5.63604 7.05015C5.24551 6.65962 5.24551 6.02646 5.63604 5.63593C9.15076 2.12121 14.8492 2.12121 18.364 5.63593C18.7545 6.02646 18.7545 6.65962 18.364 7.05015C17.9734 7.44067 17.3403 7.44067 16.9497 7.05015Z",
54
- $color: this.props.color
55
- }, activePathProps)))
56
- );
57
- }
58
-
59
- }
60
-
61
- _defineProperty(Spinner, "defaultProps", {
62
- color: '',
63
- size: 44,
64
- title: 'Loading',
65
- overrides: {}
66
- });
67
-
68
- export default Spinner;
@@ -1,35 +0,0 @@
1
- /*
2
- Copyright (c) Uber Technologies, Inc.
3
-
4
- This source code is licensed under the MIT license found in the
5
- LICENSE file in the root directory of this source tree.
6
- */
7
- import colorTokens from './color-tokens.js';
8
-
9
- /* ---- DEPRECATED ---- */
10
- export default ((themePrimitives = colorTokens) => ({
11
- // TODO(#2318) Remove Legacy Semantic Colors values in the next v11 major
12
- // since it's not used in the component specific tokens
13
- // and we ship semantic tokens separately
14
-
15
- /* ---- Legacy Semantic Colors ---- */
16
- // Font Color
17
- colorPrimary: themePrimitives.mono100,
18
- colorSecondary: themePrimitives.mono200,
19
- // Background
20
- background: themePrimitives.mono1000,
21
- backgroundAlt: themePrimitives.mono700,
22
- backgroundInv: themePrimitives.mono100,
23
- // Foreground
24
- foreground: themePrimitives.mono100,
25
- foregroundAlt: themePrimitives.mono300,
26
- foregroundInv: themePrimitives.mono1000,
27
- // Borders
28
- border: themePrimitives.mono600,
29
- borderAlt: themePrimitives.mono700,
30
- borderFocus: themePrimitives.primary,
31
- borderError: themePrimitives.negative,
32
- // Shadow
33
- shadowFocus: 'rgba(39, 110, 241, 0.32)',
34
- shadowError: 'rgba(229, 73, 55, 0.32)'
35
- }));
@@ -1,35 +0,0 @@
1
- /*
2
- Copyright (c) Uber Technologies, Inc.
3
-
4
- This source code is licensed under the MIT license found in the
5
- LICENSE file in the root directory of this source tree.
6
- */
7
- import colorTokens from './color-tokens.js';
8
-
9
- /* ---- DEPRECATED ---- */
10
- export default ((themePrimitives = colorTokens) => ({
11
- // TODO(#2318) Remove Legacy Semantic Colors values in the next v11 major
12
- // since it's not used in the component specific tokens
13
- // and we ship semantic tokens separately
14
-
15
- /* ---- Legacy Semantic Colors ---- */
16
- // Font Color
17
- colorPrimary: themePrimitives.black,
18
- colorSecondary: themePrimitives.mono800,
19
- // Background
20
- background: themePrimitives.white,
21
- backgroundAlt: themePrimitives.white,
22
- backgroundInv: themePrimitives.primary,
23
- // Foreground
24
- foreground: themePrimitives.black,
25
- foregroundAlt: themePrimitives.mono800,
26
- foregroundInv: themePrimitives.white,
27
- // Borders
28
- border: themePrimitives.mono500,
29
- borderAlt: themePrimitives.mono600,
30
- borderFocus: themePrimitives.primary,
31
- borderError: themePrimitives.negative,
32
- // Shadow
33
- shadowFocus: 'rgba(39, 110, 241, 0.32)',
34
- shadowError: 'rgba(229, 73, 55, 0.32)'
35
- }));
@@ -1,125 +0,0 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
2
-
3
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
-
5
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
6
-
7
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
8
-
9
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
-
11
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
12
-
13
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
14
-
15
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
-
17
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
18
-
19
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
20
-
21
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
22
-
23
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
24
-
25
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
26
-
27
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
28
-
29
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
30
-
31
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
32
-
33
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
34
-
35
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
36
-
37
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
38
-
39
- /*
40
- Copyright (c) Uber Technologies, Inc.
41
-
42
- This source code is licensed under the MIT license found in the
43
- LICENSE file in the root directory of this source tree.
44
- */
45
- import * as React from 'react';
46
- import { mergeOverrides, getOverrides } from '../helpers/overrides.js';
47
- import Icon from '../icon/icon.js';
48
- import { Svg as StyledSvg, StyledActivePath, StyledTrackPath } from './styled-components.js';
49
-
50
- var Spinner = /*#__PURE__*/function (_React$Component) {
51
- _inherits(Spinner, _React$Component);
52
-
53
- var _super = _createSuper(Spinner);
54
-
55
- function Spinner() {
56
- _classCallCheck(this, Spinner);
57
-
58
- return _super.apply(this, arguments);
59
- }
60
-
61
- _createClass(Spinner, [{
62
- key: "componentDidMount",
63
- value: function componentDidMount() {
64
- // TODO(v11): remove warning when switching default Spinner
65
- if (process.env.NODE_ENV !== "production") {
66
- if (!this.props.$silenceV11DeprecationWarning) {
67
- console.warn("\u2756 [baseui] Please consider using \"StyledSpinnerNext\" instead of \"Spinner\". " + "In v11, \"StyledSpinnerNext\" will become the default \"Spinner\"" + " and the current SVG based implementation will be deprecated.");
68
- }
69
- }
70
- }
71
- }, {
72
- key: "render",
73
- value: function render() {
74
- var _this$props$overrides = this.props.overrides,
75
- overrides = _this$props$overrides === void 0 ? {} : _this$props$overrides;
76
- var mergedOverrides = mergeOverrides({
77
- Svg: StyledSvg
78
- }, overrides);
79
-
80
- var _getOverrides = getOverrides(overrides.TrackPath, StyledTrackPath),
81
- _getOverrides2 = _slicedToArray(_getOverrides, 2),
82
- TrackPath = _getOverrides2[0],
83
- trackPathProps = _getOverrides2[1];
84
-
85
- var _getOverrides3 = getOverrides(overrides.ActivePath, StyledActivePath),
86
- _getOverrides4 = _slicedToArray(_getOverrides3, 2),
87
- ActivePath = _getOverrides4[0],
88
- activePathProps = _getOverrides4[1];
89
-
90
- return (
91
- /*#__PURE__*/
92
- // $FlowExpectedError[cannot-spread-inexact]
93
- React.createElement(Icon, _extends({
94
- "aria-label": 'Loading',
95
- "data-baseweb": "spinner",
96
- title: "Spinner",
97
- viewBox: "3 3 18 18"
98
- }, this.props, {
99
- overrides: mergedOverrides
100
- }), /*#__PURE__*/React.createElement(TrackPath, _extends({
101
- fillRule: "evenodd",
102
- clipRule: "evenodd",
103
- d: "M12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5ZM3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z",
104
- $color: this.props.color
105
- }, trackPathProps)), /*#__PURE__*/React.createElement(ActivePath, _extends({
106
- fillRule: "evenodd",
107
- clipRule: "evenodd",
108
- d: "M16.9497 7.05015C14.2161 4.31648 9.78392 4.31648 7.05025 7.05015C6.65973 7.44067 6.02656 7.44067 5.63604 7.05015C5.24551 6.65962 5.24551 6.02646 5.63604 5.63593C9.15076 2.12121 14.8492 2.12121 18.364 5.63593C18.7545 6.02646 18.7545 6.65962 18.364 7.05015C17.9734 7.44067 17.3403 7.44067 16.9497 7.05015Z",
109
- $color: this.props.color
110
- }, activePathProps)))
111
- );
112
- }
113
- }]);
114
-
115
- return Spinner;
116
- }(React.Component);
117
-
118
- _defineProperty(Spinner, "defaultProps", {
119
- color: '',
120
- size: 44,
121
- title: 'Loading',
122
- overrides: {}
123
- });
124
-
125
- export default Spinner;
@@ -1,38 +0,0 @@
1
- /*
2
- Copyright (c) Uber Technologies, Inc.
3
-
4
- This source code is licensed under the MIT license found in the
5
- LICENSE file in the root directory of this source tree.
6
- */
7
- import colorTokens from './color-tokens.js';
8
-
9
- /* ---- DEPRECATED ---- */
10
- export default (function () {
11
- var themePrimitives = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : colorTokens;
12
- return {
13
- // TODO(#2318) Remove Legacy Semantic Colors values in the next v11 major
14
- // since it's not used in the component specific tokens
15
- // and we ship semantic tokens separately
16
-
17
- /* ---- Legacy Semantic Colors ---- */
18
- // Font Color
19
- colorPrimary: themePrimitives.mono100,
20
- colorSecondary: themePrimitives.mono200,
21
- // Background
22
- background: themePrimitives.mono1000,
23
- backgroundAlt: themePrimitives.mono700,
24
- backgroundInv: themePrimitives.mono100,
25
- // Foreground
26
- foreground: themePrimitives.mono100,
27
- foregroundAlt: themePrimitives.mono300,
28
- foregroundInv: themePrimitives.mono1000,
29
- // Borders
30
- border: themePrimitives.mono600,
31
- borderAlt: themePrimitives.mono700,
32
- borderFocus: themePrimitives.primary,
33
- borderError: themePrimitives.negative,
34
- // Shadow
35
- shadowFocus: 'rgba(39, 110, 241, 0.32)',
36
- shadowError: 'rgba(229, 73, 55, 0.32)'
37
- };
38
- });