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.
- package/README.md +3 -3
- package/accordion/accordion.js +60 -13
- package/accordion/accordion.js.flow +49 -12
- package/accordion/index.d.ts +0 -3
- package/accordion/panel.js +7 -6
- package/accordion/panel.js.flow +20 -20
- package/accordion/stateless-accordion.js +2 -4
- package/accordion/stateless-accordion.js.flow +0 -2
- package/accordion/types.js.flow +0 -5
- package/button/constants.js +1 -2
- package/button/constants.js.flow +0 -1
- package/button/index.d.ts +0 -1
- package/button/styled-components.js +2 -29
- package/button/styled-components.js.flow +2 -30
- package/checkbox/checkbox.js +6 -30
- package/checkbox/checkbox.js.flow +7 -38
- package/checkbox/constants.js +2 -1
- package/checkbox/constants.js.flow +2 -1
- package/checkbox/index.d.ts +4 -6
- package/checkbox/index.js +0 -6
- package/checkbox/index.js.flow +0 -1
- package/checkbox/styled-components.js +52 -149
- package/checkbox/styled-components.js.flow +59 -165
- package/checkbox/types.js.flow +0 -5
- package/data-table/column-categorical.js +1 -1
- package/data-table/column-categorical.js.flow +1 -1
- package/data-table/column-datetime.js +1 -1
- package/data-table/column-datetime.js.flow +3 -1
- package/data-table/column.js +6 -2
- package/data-table/column.js.flow +9 -7
- package/data-table/data-table.js +1 -1
- package/data-table/data-table.js.flow +1 -1
- package/data-table/header-cell.js +3 -0
- package/data-table/header-cell.js.flow +1 -1
- package/datepicker/calendar.js +15 -7
- package/datepicker/calendar.js.flow +23 -9
- package/datepicker/constants.js +12 -2
- package/datepicker/constants.js.flow +10 -0
- package/datepicker/datepicker.js +61 -30
- package/datepicker/datepicker.js.flow +77 -37
- package/datepicker/day.js +85 -34
- package/datepicker/day.js.flow +118 -54
- package/datepicker/locale.js.flow +0 -1
- package/datepicker/month.js +3 -1
- package/datepicker/month.js.flow +2 -0
- package/datepicker/stateful-container.js.flow +2 -1
- package/datepicker/styled-components.js +23 -1
- package/datepicker/styled-components.js.flow +12 -2
- package/datepicker/types.js.flow +35 -10
- package/datepicker/utils/date-helpers.js +30 -0
- package/datepicker/utils/date-helpers.js.flow +12 -0
- package/datepicker/week.js +3 -1
- package/datepicker/week.js.flow +2 -0
- package/es/accordion/accordion.js +52 -12
- package/es/accordion/panel.js +7 -5
- package/es/accordion/stateless-accordion.js +2 -4
- package/es/button/constants.js +1 -2
- package/es/button/styled-components.js +2 -29
- package/es/checkbox/checkbox.js +7 -32
- package/es/checkbox/constants.js +2 -1
- package/es/checkbox/index.js +1 -1
- package/es/checkbox/styled-components.js +51 -146
- package/es/data-table/column-categorical.js +1 -1
- package/es/data-table/column-datetime.js +1 -1
- package/es/data-table/column.js +6 -2
- package/es/data-table/data-table.js +1 -1
- package/es/data-table/header-cell.js +3 -0
- package/es/datepicker/calendar.js +15 -7
- package/es/datepicker/constants.js +8 -0
- package/es/datepicker/datepicker.js +56 -29
- package/es/datepicker/day.js +77 -34
- package/es/datepicker/month.js +3 -1
- package/es/datepicker/styled-components.js +8 -2
- package/es/datepicker/types.js +1 -1
- package/es/datepicker/utils/date-helpers.js +16 -0
- package/es/datepicker/week.js +3 -1
- package/es/file-uploader/file-uploader.js +4 -4
- package/es/header-navigation/styled-components.js +3 -3
- package/es/helpers/overrides.js +1 -2
- package/es/input/styled-components.js +4 -4
- package/es/layer/layer.js +4 -4
- package/es/locale/index.js +0 -7
- package/es/menu/stateful-container.js +0 -1
- package/es/menu/styled-components.js +1 -1
- package/es/modal/index.js +1 -1
- package/es/modal/modal.js +19 -65
- package/es/modal/styled-components.js +12 -48
- package/es/phone-input/default-props.js +1 -1
- package/es/phone-input/index.js +0 -4
- package/es/phone-input/phone-input-lite.js +55 -31
- package/es/radio/radio.js +1 -7
- package/es/radio/radiogroup.js +3 -28
- package/es/radio/styled-components.js +4 -5
- package/es/rating/styled-components.js +3 -3
- package/es/select/index.js +1 -2
- package/es/select/select-component.js +32 -20
- package/es/select/styled-components.js +4 -4
- package/es/snackbar/styled-components.js +2 -2
- package/es/spinner/index.js +3 -9
- package/es/spinner/styled-components.js +2 -32
- package/es/table/filter.js +3 -3
- package/es/tag/styled-components.js +1 -1
- package/es/themes/dark-theme/color-component-tokens.js +0 -38
- package/es/themes/dark-theme/color-tokens.js +0 -2
- package/es/themes/dark-theme/create-dark-theme.js +0 -2
- package/es/themes/dark-theme/dark-theme.js +0 -2
- package/es/themes/light-theme/color-component-tokens.js +0 -38
- package/es/themes/light-theme/color-tokens.js +0 -2
- package/es/themes/light-theme/create-light-theme.js +0 -2
- package/es/themes/light-theme/light-theme.js +0 -2
- package/es/timepicker/timepicker.js +1 -8
- package/es/typography/index.js +1 -31
- package/esm/accordion/accordion.js +60 -13
- package/esm/accordion/panel.js +7 -6
- package/esm/accordion/stateless-accordion.js +2 -4
- package/esm/button/constants.js +1 -2
- package/esm/button/styled-components.js +2 -29
- package/esm/checkbox/checkbox.js +7 -30
- package/esm/checkbox/constants.js +2 -1
- package/esm/checkbox/index.js +1 -1
- package/esm/checkbox/styled-components.js +52 -147
- package/esm/data-table/column-categorical.js +1 -1
- package/esm/data-table/column-datetime.js +1 -1
- package/esm/data-table/column.js +6 -2
- package/esm/data-table/data-table.js +1 -1
- package/esm/data-table/header-cell.js +3 -0
- package/esm/datepicker/calendar.js +15 -7
- package/esm/datepicker/constants.js +8 -0
- package/esm/datepicker/datepicker.js +60 -30
- package/esm/datepicker/day.js +84 -34
- package/esm/datepicker/month.js +3 -1
- package/esm/datepicker/styled-components.js +24 -2
- package/esm/datepicker/types.js +1 -1
- package/esm/datepicker/utils/date-helpers.js +30 -0
- package/esm/datepicker/week.js +3 -1
- package/esm/file-uploader/file-uploader.js +4 -4
- package/esm/header-navigation/styled-components.js +3 -3
- package/esm/helpers/overrides.js +1 -2
- package/esm/input/styled-components.js +4 -4
- package/esm/layer/layer.js +4 -4
- package/esm/locale/index.js +0 -7
- package/esm/menu/stateful-container.js +0 -1
- package/esm/menu/styled-components.js +1 -1
- package/esm/modal/index.js +1 -1
- package/esm/modal/modal.js +28 -71
- package/esm/modal/styled-components.js +6 -38
- package/esm/phone-input/default-props.js +1 -1
- package/esm/phone-input/index.js +0 -4
- package/esm/phone-input/phone-input-lite.js +60 -37
- package/esm/radio/radio.js +1 -7
- package/esm/radio/radiogroup.js +3 -28
- package/esm/radio/styled-components.js +4 -5
- package/esm/rating/styled-components.js +3 -3
- package/esm/select/index.js +1 -2
- package/esm/select/select-component.js +34 -19
- package/esm/select/styled-components.js +4 -4
- package/esm/snackbar/styled-components.js +2 -2
- package/esm/spinner/index.js +3 -9
- package/esm/spinner/styled-components.js +2 -40
- package/esm/table/filter.js +3 -3
- package/esm/tag/styled-components.js +1 -1
- package/esm/themes/dark-theme/color-component-tokens.js +0 -38
- package/esm/themes/dark-theme/color-tokens.js +0 -2
- package/esm/themes/dark-theme/create-dark-theme.js +1 -2
- package/esm/themes/dark-theme/dark-theme.js +1 -2
- package/esm/themes/light-theme/color-component-tokens.js +0 -38
- package/esm/themes/light-theme/color-tokens.js +0 -2
- package/esm/themes/light-theme/create-light-theme.js +1 -2
- package/esm/themes/light-theme/light-theme.js +1 -2
- package/esm/timepicker/timepicker.js +1 -8
- package/esm/typography/index.js +1 -35
- package/file-uploader/file-uploader.js +3 -3
- package/file-uploader/file-uploader.js.flow +4 -4
- package/header-navigation/styled-components.js +3 -3
- package/header-navigation/styled-components.js.flow +3 -3
- package/helpers/overrides.js +1 -2
- package/helpers/overrides.js.flow +1 -1
- package/input/index.d.ts +5 -9
- package/input/styled-components.js +4 -4
- package/input/styled-components.js.flow +4 -4
- package/layer/layer.js +4 -4
- package/layer/layer.js.flow +4 -3
- package/locale/index.js +0 -7
- package/locale/index.js.flow +0 -7
- package/locale.ts +0 -1
- package/menu/index.d.ts +1 -3
- package/menu/stateful-container.js +0 -1
- package/menu/stateful-container.js.flow +0 -1
- package/menu/styled-components.js +1 -1
- package/menu/styled-components.js.flow +1 -1
- package/modal/index.d.ts +4 -6
- package/modal/index.js +0 -6
- package/modal/index.js.flow +0 -1
- package/modal/modal.js +27 -70
- package/modal/modal.js.flow +17 -83
- package/modal/styled-components.js +7 -40
- package/modal/styled-components.js.flow +12 -44
- package/modal/types.js.flow +1 -10
- package/package.json +10 -10
- package/phone-input/default-props.js +1 -1
- package/phone-input/default-props.js.flow +1 -1
- package/phone-input/index.d.ts +0 -1
- package/phone-input/index.js +0 -36
- package/phone-input/index.js.flow +0 -4
- package/phone-input/phone-input-lite.js +63 -38
- package/phone-input/phone-input-lite.js.flow +66 -44
- package/progress-bar/index.d.ts +3 -3
- package/radio/index.d.ts +4 -9
- package/radio/radio.js +1 -7
- package/radio/radio.js.flow +1 -8
- package/radio/radiogroup.js +3 -28
- package/radio/radiogroup.js.flow +2 -26
- package/radio/styled-components.js +4 -5
- package/radio/styled-components.js.flow +3 -4
- package/radio/types.js.flow +4 -15
- package/rating/styled-components.js +3 -3
- package/rating/styled-components.js.flow +3 -3
- package/select/index.d.ts +8 -3
- package/select/index.js +0 -6
- package/select/index.js.flow +0 -2
- package/select/select-component.js +34 -19
- package/select/select-component.js.flow +29 -13
- package/select/styled-components.js +4 -4
- package/select/styled-components.js.flow +4 -4
- package/select/types.js.flow +11 -7
- package/snackbar/styled-components.js +1 -1
- package/snackbar/styled-components.js.flow +11 -11
- package/spinner/index.d.ts +5 -18
- package/spinner/index.js +2 -68
- package/spinner/index.js.flow +2 -27
- package/spinner/styled-components.js +9 -45
- package/spinner/styled-components.js.flow +2 -34
- package/spinner/types.js.flow +1 -19
- package/styles/types.js.flow +0 -2
- package/table/filter.js +3 -3
- package/table/filter.js.flow +3 -3
- package/tag/styled-components.js +1 -1
- package/tag/styled-components.js.flow +1 -1
- package/theme.ts +0 -81
- package/themes/dark-theme/color-component-tokens.js +0 -38
- package/themes/dark-theme/color-component-tokens.js.flow +0 -42
- package/themes/dark-theme/color-tokens.js +0 -2
- package/themes/dark-theme/color-tokens.js.flow +0 -2
- package/themes/dark-theme/create-dark-theme.js +1 -3
- package/themes/dark-theme/create-dark-theme.js.flow +0 -2
- package/themes/dark-theme/dark-theme.js +1 -3
- package/themes/dark-theme/dark-theme.js.flow +0 -2
- package/themes/light-theme/color-component-tokens.js +0 -38
- package/themes/light-theme/color-component-tokens.js.flow +0 -43
- package/themes/light-theme/color-tokens.js +0 -2
- package/themes/light-theme/color-tokens.js.flow +0 -2
- package/themes/light-theme/create-light-theme.js +1 -3
- package/themes/light-theme/create-light-theme.js.flow +0 -2
- package/themes/light-theme/light-theme.js +1 -3
- package/themes/light-theme/light-theme.js.flow +0 -2
- package/themes/types.js.flow +0 -68
- package/timepicker/timepicker.js +1 -8
- package/timepicker/timepicker.js.flow +4 -10
- package/typography/index.d.ts +0 -23
- package/typography/index.js +2 -57
- package/typography/index.js.flow +0 -31
- package/es/spinner/spinner.js +0 -68
- package/es/themes/dark-theme/color-deprecated-semantic-tokens.js +0 -35
- package/es/themes/light-theme/color-deprecated-semantic-tokens.js +0 -35
- package/esm/spinner/spinner.js +0 -125
- package/esm/themes/dark-theme/color-deprecated-semantic-tokens.js +0 -38
- package/esm/themes/light-theme/color-deprecated-semantic-tokens.js +0 -38
- package/spinner/spinner.js +0 -136
- package/spinner/spinner.js.flow +0 -75
- package/themes/dark-theme/color-deprecated-semantic-tokens.js +0 -50
- package/themes/dark-theme/color-deprecated-semantic-tokens.js.flow +0 -42
- package/themes/light-theme/color-deprecated-semantic-tokens.js +0 -50
- 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(
|
|
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(
|
|
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
|
};
|
|
@@ -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(
|
|
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(
|
|
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,
|
package/themes/types.js.flow
CHANGED
|
@@ -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
|
|};
|
package/timepicker/timepicker.js
CHANGED
|
@@ -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
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
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
|
package/typography/index.d.ts
CHANGED
|
@@ -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>;
|