baseui 10.12.1 → 11.0.2
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 +10 -2
- package/data-table/data-table.js.flow +4 -1
- package/data-table/header-cell.js +3 -0
- package/data-table/header-cell.js.flow +1 -1
- package/data-table/index.d.ts +7 -8
- package/data-table/stateful-data-table.js +2 -1
- package/data-table/stateful-data-table.js.flow +1 -0
- package/data-table/types.js.flow +8 -0
- package/datepicker/calendar.js +28 -15
- package/datepicker/calendar.js.flow +31 -14
- package/datepicker/constants.js +12 -2
- package/datepicker/constants.js.flow +10 -0
- package/datepicker/datepicker.js +117 -86
- package/datepicker/datepicker.js.flow +123 -66
- 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-calendar.js +6 -1
- package/datepicker/stateful-calendar.js.flow +8 -1
- package/datepicker/stateful-container.js +23 -2
- package/datepicker/stateful-container.js.flow +17 -3
- package/datepicker/stateful-datepicker.js +6 -1
- package/datepicker/stateful-datepicker.js.flow +7 -1
- package/datepicker/styled-components.js +23 -1
- package/datepicker/styled-components.js.flow +12 -2
- package/datepicker/types.js.flow +46 -43
- 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 +6 -2
- package/es/data-table/header-cell.js +3 -0
- package/es/data-table/stateful-data-table.js +2 -1
- package/es/datepicker/calendar.js +28 -15
- package/es/datepicker/constants.js +8 -0
- package/es/datepicker/datepicker.js +106 -79
- package/es/datepicker/day.js +77 -34
- package/es/datepicker/month.js +3 -1
- package/es/datepicker/stateful-calendar.js +6 -1
- package/es/datepicker/stateful-container.js +22 -2
- package/es/datepicker/stateful-datepicker.js +6 -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/form-control/styled-components.js +0 -1
- 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/list/list-item.js +5 -1
- package/es/list/menu-adapter.js +4 -0
- 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 +20 -20
- package/es/select/styled-components.js +21 -17
- package/es/snackbar/snackbar-context.js +1 -1
- 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 +10 -2
- package/esm/data-table/header-cell.js +3 -0
- package/esm/data-table/stateful-data-table.js +2 -1
- package/esm/datepicker/calendar.js +28 -15
- package/esm/datepicker/constants.js +8 -0
- package/esm/datepicker/datepicker.js +116 -86
- package/esm/datepicker/day.js +84 -34
- package/esm/datepicker/month.js +3 -1
- package/esm/datepicker/stateful-calendar.js +6 -1
- package/esm/datepicker/stateful-container.js +23 -2
- package/esm/datepicker/stateful-datepicker.js +6 -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/form-control/styled-components.js +0 -1
- 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/list/list-item.js +5 -1
- package/esm/list/menu-adapter.js +4 -0
- 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 +20 -20
- package/esm/select/styled-components.js +21 -14
- package/esm/snackbar/snackbar-context.js +1 -1
- 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/form-control/index.d.ts +9 -0
- package/form-control/styled-components.js +0 -1
- package/form-control/styled-components.js.flow +0 -1
- 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/list/list-item.js +5 -1
- package/list/list-item.js.flow +4 -0
- package/list/menu-adapter.js +4 -0
- package/list/menu-adapter.js.flow +4 -0
- package/list/types.js.flow +4 -0
- 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 +3 -2
- 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/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 +0 -2
- package/select/index.js +0 -6
- package/select/index.js.flow +0 -2
- package/select/select-component.js +23 -24
- package/select/select-component.js.flow +25 -14
- package/select/styled-components.js +23 -17
- package/select/styled-components.js.flow +17 -12
- package/snackbar/snackbar-context.js +1 -1
- package/snackbar/snackbar-context.js.flow +1 -1
- 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/tag/types.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
|
@@ -42,14 +42,6 @@ export default (function () {
|
|
|
42
42
|
buttonTertiaryDisabledActiveText: themePrimitives.mono300,
|
|
43
43
|
buttonTertiarySpinnerForeground: themePrimitives.primary50,
|
|
44
44
|
buttonTertiarySpinnerBackground: themePrimitives.primary500,
|
|
45
|
-
buttonMinimalFill: 'transparent',
|
|
46
|
-
buttonMinimalText: themePrimitives.primary,
|
|
47
|
-
buttonMinimalHover: themePrimitives.primary700,
|
|
48
|
-
buttonMinimalActive: themePrimitives.primary600,
|
|
49
|
-
buttonMinimalSelectedText: themePrimitives.primary,
|
|
50
|
-
buttonMinimalSelectedFill: themePrimitives.primary600,
|
|
51
|
-
buttonMinimalSpinnerForeground: themePrimitives.primary50,
|
|
52
|
-
buttonMinimalSpinnerBackground: themePrimitives.primary500,
|
|
53
45
|
buttonDisabledFill: themePrimitives.mono600,
|
|
54
46
|
buttonDisabledText: themePrimitives.mono300,
|
|
55
47
|
buttonDisabledActiveFill: themePrimitives.mono200,
|
|
@@ -60,12 +52,6 @@ export default (function () {
|
|
|
60
52
|
breadcrumbsText: themePrimitives.mono100,
|
|
61
53
|
breadcrumbsSeparatorFill: themePrimitives.mono200,
|
|
62
54
|
// Datepicker
|
|
63
|
-
datepickerBackground: themePrimitives.mono600,
|
|
64
|
-
datepickerDayFont: themePrimitives.white,
|
|
65
|
-
datepickerDayFontDisabled: themePrimitives.mono100,
|
|
66
|
-
datepickerDayPseudoSelected: themePrimitives.mono500,
|
|
67
|
-
datepickerDayPseudoHighlighted: themePrimitives.mono600,
|
|
68
|
-
// Calendar
|
|
69
55
|
calendarBackground: themePrimitives.mono800,
|
|
70
56
|
calendarForeground: themePrimitives.white,
|
|
71
57
|
calendarForegroundDisabled: themePrimitives.mono300,
|
|
@@ -73,7 +59,6 @@ export default (function () {
|
|
|
73
59
|
calendarHeaderForeground: themePrimitives.primary,
|
|
74
60
|
calendarHeaderBackgroundActive: themePrimitives.primary600,
|
|
75
61
|
calendarHeaderForegroundDisabled: themePrimitives.primary500,
|
|
76
|
-
calendarDayBackgroundPseudoSelected: themePrimitives.primary700,
|
|
77
62
|
calendarDayForegroundPseudoSelected: themePrimitives.primary,
|
|
78
63
|
calendarDayBackgroundPseudoSelectedHighlighted: themePrimitives.primary600,
|
|
79
64
|
calendarDayForegroundPseudoSelectedHighlighted: themePrimitives.primary,
|
|
@@ -98,21 +83,16 @@ export default (function () {
|
|
|
98
83
|
// List
|
|
99
84
|
listHeaderFill: themePrimitives.mono600,
|
|
100
85
|
listBodyFill: themePrimitives.mono800,
|
|
101
|
-
listIconFill: themePrimitives.mono100,
|
|
102
|
-
listBorder: themePrimitives.mono500,
|
|
103
86
|
// ProgressSteps
|
|
104
87
|
progressStepsCompletedText: themePrimitives.black,
|
|
105
88
|
progressStepsCompletedFill: themePrimitives.primary,
|
|
106
89
|
progressStepsActiveText: themePrimitives.black,
|
|
107
90
|
progressStepsActiveFill: themePrimitives.primary,
|
|
108
|
-
progressStepsIconActiveFill: themePrimitives.primary,
|
|
109
91
|
// Modal
|
|
110
92
|
modalCloseColor: themePrimitives.mono300,
|
|
111
93
|
modalCloseColorHover: themePrimitives.mono400,
|
|
112
94
|
modalCloseColorFocus: themePrimitives.mono400,
|
|
113
95
|
// Notification
|
|
114
|
-
notificationPrimaryBackground: themePrimitives.primary700,
|
|
115
|
-
notificationPrimaryText: themePrimitives.primaryA,
|
|
116
96
|
notificationInfoBackground: themePrimitives.accent700,
|
|
117
97
|
notificationInfoText: themePrimitives.primaryA,
|
|
118
98
|
notificationPositiveBackground: themePrimitives.positive700,
|
|
@@ -124,7 +104,6 @@ export default (function () {
|
|
|
124
104
|
// Tag
|
|
125
105
|
// Custom ramps
|
|
126
106
|
tagFontDisabledRampUnit: '600',
|
|
127
|
-
tagOutlinedDisabledRampUnit: '700',
|
|
128
107
|
tagSolidFontRampUnit: '0',
|
|
129
108
|
tagSolidRampUnit: '500',
|
|
130
109
|
tagOutlinedFontRampUnit: '500',
|
|
@@ -137,7 +116,6 @@ export default (function () {
|
|
|
137
116
|
tagLightRampUnit: '700',
|
|
138
117
|
tagLightHoverRampUnit: '700',
|
|
139
118
|
tagLightActiveRampUnit: '600',
|
|
140
|
-
tagLightDisabledRampUnit: '700',
|
|
141
119
|
tagLightFontRampUnit: '100',
|
|
142
120
|
tagLightFontHoverRampUnit: '100',
|
|
143
121
|
tagOutlinedActiveRampUnit: '300',
|
|
@@ -280,7 +258,6 @@ export default (function () {
|
|
|
280
258
|
tableFilterFooterBackground: themePrimitives.mono800,
|
|
281
259
|
// Toast
|
|
282
260
|
toastText: themePrimitives.white,
|
|
283
|
-
toastPrimaryBackground: themePrimitives.primary400,
|
|
284
261
|
toastPrimaryText: themePrimitives.white,
|
|
285
262
|
toastInfoBackground: themePrimitives.accent400,
|
|
286
263
|
toastInfoText: themePrimitives.white,
|
|
@@ -320,23 +297,12 @@ export default (function () {
|
|
|
320
297
|
sliderHandleFill: themePrimitives.primaryA,
|
|
321
298
|
sliderHandleFillDisabled: themePrimitives.primary500,
|
|
322
299
|
sliderHandleInnerFill: themePrimitives.primaryA,
|
|
323
|
-
sliderHandleFillHover: themePrimitives.mono300,
|
|
324
|
-
sliderHandleFillActive: themePrimitives.mono300,
|
|
325
|
-
sliderHandleFillSelected: themePrimitives.primary500,
|
|
326
|
-
sliderHandleFillSelectedHover: themePrimitives.primary600,
|
|
327
|
-
sliderHandleFillSelectedActive: themePrimitives.primary700,
|
|
328
300
|
sliderTrackFillHover: themePrimitives.mono500,
|
|
329
301
|
sliderTrackFillActive: themePrimitives.mono400,
|
|
330
|
-
sliderTrackFillSelected: themePrimitives.primary500,
|
|
331
|
-
sliderTrackFillSelectedActive: themePrimitives.primary600,
|
|
332
|
-
sliderTrackFillSelectedHover: themePrimitives.primary700,
|
|
333
302
|
sliderTrackFillDisabled: themePrimitives.mono700,
|
|
334
303
|
sliderHandleInnerFillDisabled: themePrimitives.mono500,
|
|
335
304
|
sliderHandleInnerFillSelectedHover: themePrimitives.primary600,
|
|
336
305
|
sliderHandleInnerFillSelectedActive: themePrimitives.primary700,
|
|
337
|
-
sliderBorder: themePrimitives.white,
|
|
338
|
-
sliderBorderHover: themePrimitives.white,
|
|
339
|
-
sliderBorderDisabled: themePrimitives.mono400,
|
|
340
306
|
// Input
|
|
341
307
|
inputBorder: themePrimitives.mono600,
|
|
342
308
|
inputFill: themePrimitives.mono600,
|
|
@@ -359,10 +325,6 @@ export default (function () {
|
|
|
359
325
|
menuFontDisabled: themePrimitives.mono400,
|
|
360
326
|
menuFontHighlighted: themePrimitives.white,
|
|
361
327
|
menuFontSelected: themePrimitives.white,
|
|
362
|
-
// Pagination
|
|
363
|
-
paginationTriangleDown: themePrimitives.mono100,
|
|
364
|
-
// Header navigation
|
|
365
|
-
headerNavigationFill: themePrimitives.mono700,
|
|
366
328
|
// Tab
|
|
367
329
|
tabBarFill: themePrimitives.mono1000,
|
|
368
330
|
tabColor: themePrimitives.mono300,
|
|
@@ -20,7 +20,6 @@ import breakpoints from '../shared/breakpoints.js';
|
|
|
20
20
|
import deepMerge from '../../utils/deep-merge.js';
|
|
21
21
|
import defaultColorTokens from './color-tokens.js';
|
|
22
22
|
import getComponentColorTokens from './color-component-tokens.js';
|
|
23
|
-
import getDeprecatedSemanticColorTokens from './color-deprecated-semantic-tokens.js';
|
|
24
23
|
import getSemanticColorTokens from './color-semantic-tokens.js';
|
|
25
24
|
import getTypography from '../shared/typography.js';
|
|
26
25
|
import grid from '../shared/grid.js';
|
|
@@ -43,7 +42,7 @@ export default function createDarkTheme() {
|
|
|
43
42
|
animation: animation,
|
|
44
43
|
borders: borders,
|
|
45
44
|
breakpoints: breakpoints,
|
|
46
|
-
colors: _objectSpread(_objectSpread(_objectSpread(
|
|
45
|
+
colors: _objectSpread(_objectSpread(_objectSpread({}, colorTokens), getComponentColorTokens(colorTokens)), getSemanticColorTokens(colorTokens)),
|
|
47
46
|
direction: 'auto',
|
|
48
47
|
grid: grid,
|
|
49
48
|
lighting: lighting,
|
|
@@ -13,7 +13,6 @@ LICENSE file in the root directory of this source tree.
|
|
|
13
13
|
import colorTokens from './color-tokens.js';
|
|
14
14
|
import getSemanticColorTokens from './color-semantic-tokens.js';
|
|
15
15
|
import getComponentColorTokens from './color-component-tokens.js';
|
|
16
|
-
import getDeprecatedSemanticColorTokens from './color-deprecated-semantic-tokens.js';
|
|
17
16
|
import borders from './borders.js';
|
|
18
17
|
import lighting from '../shared/lighting.js';
|
|
19
18
|
import getTypography from '../shared/typography.js';
|
|
@@ -24,7 +23,7 @@ import mediaQuery from '../shared/media-query.js';
|
|
|
24
23
|
import sizing from '../shared/sizing.js';
|
|
25
24
|
export var DarkTheme = {
|
|
26
25
|
name: 'dark-theme',
|
|
27
|
-
colors: _objectSpread(_objectSpread(_objectSpread(
|
|
26
|
+
colors: _objectSpread(_objectSpread(_objectSpread({}, colorTokens), getComponentColorTokens()), getSemanticColorTokens()),
|
|
28
27
|
animation: animation,
|
|
29
28
|
breakpoints: breakpoints,
|
|
30
29
|
borders: borders,
|
|
@@ -42,14 +42,6 @@ export default (function () {
|
|
|
42
42
|
buttonTertiaryDisabledActiveText: themePrimitives.mono600,
|
|
43
43
|
buttonTertiarySpinnerForeground: themePrimitives.accent,
|
|
44
44
|
buttonTertiarySpinnerBackground: themePrimitives.primary100,
|
|
45
|
-
buttonMinimalFill: 'transparent',
|
|
46
|
-
buttonMinimalText: themePrimitives.primary,
|
|
47
|
-
buttonMinimalHover: themePrimitives.primary50,
|
|
48
|
-
buttonMinimalActive: themePrimitives.primary100,
|
|
49
|
-
buttonMinimalSelectedFill: themePrimitives.primary100,
|
|
50
|
-
buttonMinimalSelectedText: themePrimitives.primary,
|
|
51
|
-
buttonMinimalSpinnerForeground: themePrimitives.accent,
|
|
52
|
-
buttonMinimalSpinnerBackground: themePrimitives.primary100,
|
|
53
45
|
buttonDisabledFill: themePrimitives.mono200,
|
|
54
46
|
buttonDisabledText: themePrimitives.mono600,
|
|
55
47
|
buttonDisabledActiveFill: themePrimitives.mono700,
|
|
@@ -60,12 +52,6 @@ export default (function () {
|
|
|
60
52
|
breadcrumbsText: themePrimitives.mono900,
|
|
61
53
|
breadcrumbsSeparatorFill: themePrimitives.mono700,
|
|
62
54
|
// Datepicker
|
|
63
|
-
datepickerBackground: themePrimitives.mono100,
|
|
64
|
-
datepickerDayFont: themePrimitives.mono1000,
|
|
65
|
-
datepickerDayFontDisabled: themePrimitives.mono500,
|
|
66
|
-
datepickerDayPseudoSelected: themePrimitives.primary100,
|
|
67
|
-
datepickerDayPseudoHighlighted: themePrimitives.primary200,
|
|
68
|
-
// Calendar
|
|
69
55
|
calendarBackground: themePrimitives.mono100,
|
|
70
56
|
calendarForeground: themePrimitives.mono1000,
|
|
71
57
|
calendarForegroundDisabled: themePrimitives.mono500,
|
|
@@ -73,7 +59,6 @@ export default (function () {
|
|
|
73
59
|
calendarHeaderForeground: themePrimitives.primary,
|
|
74
60
|
calendarHeaderBackgroundActive: themePrimitives.primary700,
|
|
75
61
|
calendarHeaderForegroundDisabled: themePrimitives.primary500,
|
|
76
|
-
calendarDayBackgroundPseudoSelected: themePrimitives.primary100,
|
|
77
62
|
calendarDayForegroundPseudoSelected: themePrimitives.mono1000,
|
|
78
63
|
calendarDayBackgroundPseudoSelectedHighlighted: themePrimitives.primary200,
|
|
79
64
|
calendarDayForegroundPseudoSelectedHighlighted: themePrimitives.mono1000,
|
|
@@ -98,14 +83,11 @@ export default (function () {
|
|
|
98
83
|
// List
|
|
99
84
|
listHeaderFill: themePrimitives.white,
|
|
100
85
|
listBodyFill: themePrimitives.white,
|
|
101
|
-
listIconFill: themePrimitives.mono500,
|
|
102
|
-
listBorder: themePrimitives.mono500,
|
|
103
86
|
// ProgressSteps
|
|
104
87
|
progressStepsCompletedText: themePrimitives.white,
|
|
105
88
|
progressStepsCompletedFill: themePrimitives.primary,
|
|
106
89
|
progressStepsActiveText: themePrimitives.white,
|
|
107
90
|
progressStepsActiveFill: themePrimitives.primary,
|
|
108
|
-
progressStepsIconActiveFill: themePrimitives.primary,
|
|
109
91
|
// Toggle
|
|
110
92
|
toggleFill: themePrimitives.white,
|
|
111
93
|
toggleFillChecked: themePrimitives.primary,
|
|
@@ -138,21 +120,10 @@ export default (function () {
|
|
|
138
120
|
sliderHandleInnerFill: themePrimitives.primaryA,
|
|
139
121
|
sliderTrackFillHover: themePrimitives.mono500,
|
|
140
122
|
sliderTrackFillActive: themePrimitives.mono600,
|
|
141
|
-
sliderTrackFillSelected: themePrimitives.primary,
|
|
142
|
-
sliderTrackFillSelectedHover: themePrimitives.primary,
|
|
143
|
-
sliderTrackFillSelectedActive: themePrimitives.primary500,
|
|
144
123
|
sliderTrackFillDisabled: themePrimitives.mono300,
|
|
145
|
-
sliderHandleFillHover: themePrimitives.white,
|
|
146
|
-
sliderHandleFillActive: themePrimitives.white,
|
|
147
|
-
sliderHandleFillSelected: themePrimitives.white,
|
|
148
|
-
sliderHandleFillSelectedHover: themePrimitives.white,
|
|
149
|
-
sliderHandleFillSelectedActive: themePrimitives.white,
|
|
150
124
|
sliderHandleInnerFillDisabled: themePrimitives.mono400,
|
|
151
125
|
sliderHandleInnerFillSelectedHover: themePrimitives.primary,
|
|
152
126
|
sliderHandleInnerFillSelectedActive: themePrimitives.primary500,
|
|
153
|
-
sliderBorder: themePrimitives.mono500,
|
|
154
|
-
sliderBorderHover: themePrimitives.primary,
|
|
155
|
-
sliderBorderDisabled: themePrimitives.mono600,
|
|
156
127
|
// Inputs
|
|
157
128
|
inputBorder: themePrimitives.mono300,
|
|
158
129
|
inputFill: themePrimitives.mono300,
|
|
@@ -179,16 +150,10 @@ export default (function () {
|
|
|
179
150
|
modalCloseColor: themePrimitives.mono1000,
|
|
180
151
|
modalCloseColorHover: themePrimitives.mono800,
|
|
181
152
|
modalCloseColorFocus: themePrimitives.mono800,
|
|
182
|
-
// Pagination
|
|
183
|
-
paginationTriangleDown: themePrimitives.mono800,
|
|
184
|
-
// Header navigation
|
|
185
|
-
headerNavigationFill: 'transparent',
|
|
186
153
|
// Tab
|
|
187
154
|
tabBarFill: themePrimitives.mono200,
|
|
188
155
|
tabColor: themePrimitives.mono800,
|
|
189
156
|
// Notification
|
|
190
|
-
notificationPrimaryBackground: themePrimitives.primary50,
|
|
191
|
-
notificationPrimaryText: themePrimitives.primaryA,
|
|
192
157
|
notificationInfoBackground: themePrimitives.accent50,
|
|
193
158
|
notificationInfoText: themePrimitives.primaryA,
|
|
194
159
|
notificationPositiveBackground: themePrimitives.positive50,
|
|
@@ -200,7 +165,6 @@ export default (function () {
|
|
|
200
165
|
// Tag
|
|
201
166
|
// Custom ramps
|
|
202
167
|
tagFontDisabledRampUnit: '100',
|
|
203
|
-
tagOutlinedDisabledRampUnit: '200',
|
|
204
168
|
tagSolidFontRampUnit: '0',
|
|
205
169
|
tagSolidRampUnit: '400',
|
|
206
170
|
tagOutlinedFontRampUnit: '400',
|
|
@@ -213,7 +177,6 @@ export default (function () {
|
|
|
213
177
|
tagLightRampUnit: '50',
|
|
214
178
|
tagLightHoverRampUnit: '100',
|
|
215
179
|
tagLightActiveRampUnit: '100',
|
|
216
|
-
tagLightDisabledRampUnit: '50',
|
|
217
180
|
tagLightFontRampUnit: '500',
|
|
218
181
|
tagLightFontHoverRampUnit: '500',
|
|
219
182
|
tagOutlinedHoverRampUnit: '50',
|
|
@@ -355,7 +318,6 @@ export default (function () {
|
|
|
355
318
|
tableFilterFooterBackground: themePrimitives.mono200,
|
|
356
319
|
// Toast
|
|
357
320
|
toastText: themePrimitives.white,
|
|
358
|
-
toastPrimaryBackground: themePrimitives.primary400,
|
|
359
321
|
toastPrimaryText: themePrimitives.white,
|
|
360
322
|
toastInfoBackground: themePrimitives.accent400,
|
|
361
323
|
toastInfoText: themePrimitives.white,
|
|
@@ -20,7 +20,6 @@ import breakpoints from '../shared/breakpoints.js';
|
|
|
20
20
|
import deepMerge from '../../utils/deep-merge.js';
|
|
21
21
|
import defaultColorTokens from './color-tokens.js';
|
|
22
22
|
import getComponentColorTokens from './color-component-tokens.js';
|
|
23
|
-
import getDeprecatedSemanticColorTokens from './color-deprecated-semantic-tokens.js';
|
|
24
23
|
import getSemanticColorTokens from './color-semantic-tokens.js';
|
|
25
24
|
import getTypography from '../shared/typography.js';
|
|
26
25
|
import grid from '../shared/grid.js';
|
|
@@ -43,7 +42,7 @@ export default function createLightTheme() {
|
|
|
43
42
|
animation: animation,
|
|
44
43
|
borders: borders,
|
|
45
44
|
breakpoints: breakpoints,
|
|
46
|
-
colors: _objectSpread(_objectSpread(_objectSpread(
|
|
45
|
+
colors: _objectSpread(_objectSpread(_objectSpread({}, colorTokens), getComponentColorTokens(colorTokens)), getSemanticColorTokens(colorTokens)),
|
|
47
46
|
direction: 'auto',
|
|
48
47
|
grid: grid,
|
|
49
48
|
lighting: lighting,
|
|
@@ -13,7 +13,6 @@ LICENSE file in the root directory of this source tree.
|
|
|
13
13
|
import colorTokens from './color-tokens.js';
|
|
14
14
|
import getSemanticColorTokens from './color-semantic-tokens.js';
|
|
15
15
|
import getComponentColorTokens from './color-component-tokens.js';
|
|
16
|
-
import getDeprecatedSemanticColorTokens from './color-deprecated-semantic-tokens.js';
|
|
17
16
|
import borders from '../shared/borders.js';
|
|
18
17
|
import lighting from '../shared/lighting.js';
|
|
19
18
|
import getTypography from '../shared/typography.js';
|
|
@@ -24,7 +23,7 @@ import mediaQuery from '../shared/media-query.js';
|
|
|
24
23
|
import sizing from '../shared/sizing.js';
|
|
25
24
|
export var LightTheme = {
|
|
26
25
|
name: 'light-theme',
|
|
27
|
-
colors: _objectSpread(_objectSpread(_objectSpread(
|
|
26
|
+
colors: _objectSpread(_objectSpread(_objectSpread({}, colorTokens), getComponentColorTokens()), getSemanticColorTokens()),
|
|
28
27
|
animation: animation,
|
|
29
28
|
breakpoints: breakpoints,
|
|
30
29
|
borders: borders,
|
|
@@ -377,14 +377,7 @@ var TimePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
377
377
|
}, selectProps.overrides);
|
|
378
378
|
var value = this.props.value && adapter.isValid(this.props.value) ? this.buildSelectedOption(this.props.value, this.props.format) : this.state.value;
|
|
379
379
|
return /*#__PURE__*/React.createElement(LocaleContext.Consumer, null, function (locale) {
|
|
380
|
-
var ariaLabel;
|
|
381
|
-
|
|
382
|
-
if (locale.datepicker.timePickerAriaLabel) {
|
|
383
|
-
ariaLabel = locale.datepicker.timePickerAriaLabel;
|
|
384
|
-
} else {
|
|
385
|
-
ariaLabel = format === '12' ? locale.datepicker.timePickerAriaLabel12Hour : locale.datepicker.timePickerAriaLabel24Hour;
|
|
386
|
-
}
|
|
387
|
-
|
|
380
|
+
var ariaLabel = format === '12' ? locale.datepicker.timePickerAriaLabel12Hour : locale.datepicker.timePickerAriaLabel24Hour;
|
|
388
381
|
return /*#__PURE__*/React.createElement(OverriddenSelect, _extends({
|
|
389
382
|
"aria-label": ariaLabel,
|
|
390
383
|
disabled: _this2.props.disabled,
|
package/esm/typography/index.js
CHANGED
|
@@ -531,38 +531,4 @@ export var MonoParagraphXSmall = /*#__PURE__*/React.forwardRef(function (props,
|
|
|
531
531
|
}))
|
|
532
532
|
);
|
|
533
533
|
});
|
|
534
|
-
MonoParagraphXSmall.displayName = 'MonoParagraphXSmall';
|
|
535
|
-
// Aliases for backwards compatibility
|
|
536
|
-
|
|
537
|
-
export var Display = DisplayLarge;
|
|
538
|
-
export var Display1 = DisplayLarge;
|
|
539
|
-
export var Display2 = DisplayMedium;
|
|
540
|
-
export var Display3 = DisplaySmall;
|
|
541
|
-
export var Display4 = DisplayXSmall;
|
|
542
|
-
export var H1 = HeadingXXLarge;
|
|
543
|
-
export var H2 = HeadingXLarge;
|
|
544
|
-
export var H3 = HeadingLarge;
|
|
545
|
-
export var H4 = HeadingMedium;
|
|
546
|
-
export var H5 = HeadingSmall;
|
|
547
|
-
export var H6 = HeadingXSmall;
|
|
548
|
-
export var Paragraph1 = ParagraphLarge;
|
|
549
|
-
export var Paragraph2 = ParagraphMedium;
|
|
550
|
-
export var Paragraph3 = ParagraphSmall;
|
|
551
|
-
export var Paragraph4 = ParagraphXSmall;
|
|
552
|
-
export var Label1 = LabelLarge;
|
|
553
|
-
export var Label2 = LabelMedium;
|
|
554
|
-
export var Label3 = LabelSmall;
|
|
555
|
-
export var Label4 = LabelXSmall;
|
|
556
|
-
export var Caption1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
557
|
-
return /*#__PURE__*/React.createElement(Paragraph4, _extends({}, props, {
|
|
558
|
-
color: props.color || 'contentSecondary',
|
|
559
|
-
ref: ref
|
|
560
|
-
}));
|
|
561
|
-
});
|
|
562
|
-
Caption1.displayName = 'Caption1';
|
|
563
|
-
export var Caption2 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
564
|
-
return /*#__PURE__*/React.createElement(Label4, _extends({}, props, {
|
|
565
|
-
color: props.color || 'contentSecondary'
|
|
566
|
-
}));
|
|
567
|
-
});
|
|
568
|
-
Caption2.displayName = 'Caption2';
|
|
534
|
+
MonoParagraphXSmall.displayName = 'MonoParagraphXSmall';
|
|
@@ -105,7 +105,7 @@ function FileUploader(props) {
|
|
|
105
105
|
ButtonComponent = _getOverrides14[0],
|
|
106
106
|
buttonProps = _getOverrides14[1];
|
|
107
107
|
|
|
108
|
-
var _getOverrides15 = (0, _overrides.getOverrides)(overrides.Spinner, _index5.
|
|
108
|
+
var _getOverrides15 = (0, _overrides.getOverrides)(overrides.Spinner, _index5.Spinner),
|
|
109
109
|
_getOverrides16 = _slicedToArray(_getOverrides15, 2),
|
|
110
110
|
SpinnerComponent = _getOverrides16[0],
|
|
111
111
|
spinnerProps = _getOverrides16[1];
|
|
@@ -170,7 +170,7 @@ function FileUploader(props) {
|
|
|
170
170
|
marginBottom: theme.sizing.scale300
|
|
171
171
|
}
|
|
172
172
|
}, spinnerProps)), (props.errorMessage || props.progressMessage) && props.errorMessage ? /*#__PURE__*/React.createElement(ErrorMessage, _extends({}, prefixedStyledProps, errorMessageProps), props.errorMessage) : /*#__PURE__*/React.createElement(ContentMessage, _extends({}, prefixedStyledProps, contentMessageProps), props.progressMessage), props.errorMessage ? /*#__PURE__*/React.createElement(ButtonComponent, {
|
|
173
|
-
kind: _index3.KIND.
|
|
173
|
+
kind: _index3.KIND.tertiary,
|
|
174
174
|
onClick: function onClick() {
|
|
175
175
|
props.onRetry && props.onRetry();
|
|
176
176
|
},
|
|
@@ -178,7 +178,7 @@ function FileUploader(props) {
|
|
|
178
178
|
"aria-describedby": props['aria-describedby'],
|
|
179
179
|
"aria-errormessage": props.errorMessage
|
|
180
180
|
}, locale.fileuploader.retry) : /*#__PURE__*/React.createElement(ButtonComponent, {
|
|
181
|
-
kind: _index3.KIND.
|
|
181
|
+
kind: _index3.KIND.tertiary,
|
|
182
182
|
onClick: function onClick() {
|
|
183
183
|
props.onCancel && props.onCancel();
|
|
184
184
|
},
|
|
@@ -14,7 +14,7 @@ import { useStyletron } from '../styles/index.js';
|
|
|
14
14
|
import { Button, KIND, SHAPE, SIZE as BUTTON_SIZE } from '../button/index.js';
|
|
15
15
|
import { getOverrides } from '../helpers/overrides.js';
|
|
16
16
|
import { ProgressBar } from '../progress-bar/index.js';
|
|
17
|
-
import {
|
|
17
|
+
import { Spinner, SIZE as SPINNER_SIZE } from '../spinner/index.js';
|
|
18
18
|
|
|
19
19
|
import {
|
|
20
20
|
StyledRoot,
|
|
@@ -58,7 +58,7 @@ function FileUploader(props: PropsT) {
|
|
|
58
58
|
const [HiddenInput, hiddenInputProps] = getOverrides(overrides.HiddenInput, StyledHiddenInput);
|
|
59
59
|
const [ButtonComponent, buttonProps] = getOverrides(overrides.ButtonComponent, Button);
|
|
60
60
|
|
|
61
|
-
const [SpinnerComponent, spinnerProps] = getOverrides(overrides.Spinner,
|
|
61
|
+
const [SpinnerComponent, spinnerProps] = getOverrides(overrides.Spinner, Spinner);
|
|
62
62
|
|
|
63
63
|
const afterFileDrop = !!(props.progressAmount || props.progressMessage || props.errorMessage);
|
|
64
64
|
|
|
@@ -160,7 +160,7 @@ function FileUploader(props: PropsT) {
|
|
|
160
160
|
)}
|
|
161
161
|
{props.errorMessage ? (
|
|
162
162
|
<ButtonComponent
|
|
163
|
-
kind={KIND.
|
|
163
|
+
kind={KIND.tertiary}
|
|
164
164
|
onClick={() => {
|
|
165
165
|
props.onRetry && props.onRetry();
|
|
166
166
|
}}
|
|
@@ -172,7 +172,7 @@ function FileUploader(props: PropsT) {
|
|
|
172
172
|
</ButtonComponent>
|
|
173
173
|
) : (
|
|
174
174
|
<ButtonComponent
|
|
175
|
-
kind={KIND.
|
|
175
|
+
kind={KIND.tertiary}
|
|
176
176
|
onClick={() => {
|
|
177
177
|
props.onCancel && props.onCancel();
|
|
178
178
|
}}
|
package/form-control/index.d.ts
CHANGED
|
@@ -32,3 +32,12 @@ export class FormControl extends React.Component<
|
|
|
32
32
|
FormControlProps,
|
|
33
33
|
FormControlState
|
|
34
34
|
> {}
|
|
35
|
+
|
|
36
|
+
export interface FormControlChildProps {
|
|
37
|
+
'aria-describedby': string | null,
|
|
38
|
+
'aria-errormessage': string | null,
|
|
39
|
+
key: React.Key,
|
|
40
|
+
disabled: boolean,
|
|
41
|
+
error: boolean,
|
|
42
|
+
positive: boolean
|
|
43
|
+
}
|
|
@@ -19,7 +19,6 @@ var Label = (0, _index.styled)('label', function (props) {
|
|
|
19
19
|
colors = _props$$theme.colors,
|
|
20
20
|
typography = _props$$theme.typography;
|
|
21
21
|
return _objectSpread(_objectSpread({}, typography.font250), {}, {
|
|
22
|
-
fontWeight: 500,
|
|
23
22
|
width: '100%',
|
|
24
23
|
color: $disabled ? colors.contentSecondary : colors.contentPrimary,
|
|
25
24
|
display: 'block',
|
|
@@ -19,15 +19,15 @@ var Root = (0, _index.styled)('nav', function (props) {
|
|
|
19
19
|
var $theme = props.$theme;
|
|
20
20
|
var scale500 = $theme.sizing.scale500,
|
|
21
21
|
font300 = $theme.typography.font300,
|
|
22
|
-
|
|
22
|
+
borderOpaque = $theme.colors.borderOpaque;
|
|
23
23
|
return _objectSpread(_objectSpread({}, font300), {}, {
|
|
24
24
|
display: 'flex',
|
|
25
25
|
paddingBottom: scale500,
|
|
26
26
|
paddingTop: scale500,
|
|
27
27
|
borderBottomWidth: '1px',
|
|
28
28
|
borderBottomStyle: 'solid',
|
|
29
|
-
borderBottomColor: "".concat(
|
|
30
|
-
backgroundColor: $theme.colors.
|
|
29
|
+
borderBottomColor: "".concat(borderOpaque),
|
|
30
|
+
backgroundColor: $theme.colors.backgroundPrimary
|
|
31
31
|
});
|
|
32
32
|
});
|
|
33
33
|
exports.Root = Root;
|
|
@@ -13,7 +13,7 @@ export const Root = styled<{}>('nav', (props) => {
|
|
|
13
13
|
const {
|
|
14
14
|
sizing: { scale500 },
|
|
15
15
|
typography: { font300 },
|
|
16
|
-
colors: {
|
|
16
|
+
colors: { borderOpaque },
|
|
17
17
|
} = $theme;
|
|
18
18
|
return {
|
|
19
19
|
...font300,
|
|
@@ -22,8 +22,8 @@ export const Root = styled<{}>('nav', (props) => {
|
|
|
22
22
|
paddingTop: scale500,
|
|
23
23
|
borderBottomWidth: '1px',
|
|
24
24
|
borderBottomStyle: 'solid',
|
|
25
|
-
borderBottomColor: `${
|
|
26
|
-
backgroundColor: $theme.colors.
|
|
25
|
+
borderBottomColor: `${borderOpaque}`,
|
|
26
|
+
backgroundColor: $theme.colors.backgroundPrimary,
|
|
27
27
|
};
|
|
28
28
|
});
|
|
29
29
|
|
package/helpers/overrides.js
CHANGED
|
@@ -101,8 +101,7 @@ function toObjectOverride(override) {
|
|
|
101
101
|
/**
|
|
102
102
|
* Get a convenient override array that will always have [component, props]
|
|
103
103
|
*/
|
|
104
|
-
|
|
105
|
-
/* flowlint unclear-type:off */
|
|
104
|
+
// flowlint unclear-type:off
|
|
106
105
|
|
|
107
106
|
|
|
108
107
|
function getOverrides(override, defaultComponent) {
|
|
@@ -97,7 +97,7 @@ export function toObjectOverride<T>(override: OverrideT): OverrideObjectT {
|
|
|
97
97
|
/**
|
|
98
98
|
* Get a convenient override array that will always have [component, props]
|
|
99
99
|
*/
|
|
100
|
-
|
|
100
|
+
// flowlint unclear-type:off
|
|
101
101
|
export function getOverrides<T>(
|
|
102
102
|
override: Object,
|
|
103
103
|
defaultComponent: React.ComponentType<any>
|
package/input/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {StyletronComponent} from 'styletron-react';
|
|
3
|
-
import {Override} from '../overrides';
|
|
2
|
+
import { StyletronComponent } from 'styletron-react';
|
|
3
|
+
import { Override } from '../overrides';
|
|
4
4
|
|
|
5
5
|
export interface STATE_CHANGE_TYPE {
|
|
6
6
|
change: 'change';
|
|
@@ -123,10 +123,7 @@ export class Input extends React.Component<InputProps, InternalState> {
|
|
|
123
123
|
onBlur(e: React.FocusEvent<HTMLInputElement>): void;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
export class BaseInput extends React.Component<
|
|
127
|
-
BaseInputProps<HTMLInputElement>,
|
|
128
|
-
InternalState
|
|
129
|
-
> {
|
|
126
|
+
export class BaseInput extends React.Component<BaseInputProps<HTMLInputElement>, InternalState> {
|
|
130
127
|
onFocus(e: React.FocusEvent<HTMLInputElement>): void;
|
|
131
128
|
onBlur(e: React.FocusEvent<HTMLInputElement>): void;
|
|
132
129
|
}
|
|
@@ -144,13 +141,12 @@ export interface StatefulContainerProps {
|
|
|
144
141
|
stateReducer?: (
|
|
145
142
|
stateType: STATE_CHANGE_TYPE[keyof STATE_CHANGE_TYPE],
|
|
146
143
|
nextState: State,
|
|
147
|
-
currentState: State
|
|
144
|
+
currentState: State
|
|
148
145
|
) => State;
|
|
149
146
|
onChange?: React.FormEventHandler<HTMLInputElement>;
|
|
150
147
|
}
|
|
151
148
|
|
|
152
|
-
export type StatefulInputProps = InputProps &
|
|
153
|
-
StatefulContainerProps & {children?: never};
|
|
149
|
+
export type StatefulInputProps = InputProps & StatefulContainerProps & { children?: never };
|
|
154
150
|
|
|
155
151
|
export const StatefulInput: React.FC<StatefulInputProps>;
|
|
156
152
|
export const StatefulContainer: React.FC<StatefulContainerProps>;
|
|
@@ -129,10 +129,10 @@ function getRootColors($disabled, $isFocused, $error) {
|
|
|
129
129
|
|
|
130
130
|
if ($isFocused) {
|
|
131
131
|
return {
|
|
132
|
-
borderLeftColor: colors.
|
|
133
|
-
borderRightColor: colors.
|
|
134
|
-
borderTopColor: colors.
|
|
135
|
-
borderBottomColor: colors.
|
|
132
|
+
borderLeftColor: colors.borderSelected,
|
|
133
|
+
borderRightColor: colors.borderSelected,
|
|
134
|
+
borderTopColor: colors.borderSelected,
|
|
135
|
+
borderBottomColor: colors.borderSelected,
|
|
136
136
|
backgroundColor: colors.inputFillActive
|
|
137
137
|
};
|
|
138
138
|
}
|
|
@@ -164,10 +164,10 @@ function getRootColors(
|
|
|
164
164
|
|
|
165
165
|
if ($isFocused) {
|
|
166
166
|
return {
|
|
167
|
-
borderLeftColor: colors.
|
|
168
|
-
borderRightColor: colors.
|
|
169
|
-
borderTopColor: colors.
|
|
170
|
-
borderBottomColor: colors.
|
|
167
|
+
borderLeftColor: colors.borderSelected,
|
|
168
|
+
borderRightColor: colors.borderSelected,
|
|
169
|
+
borderTopColor: colors.borderSelected,
|
|
170
|
+
borderBottomColor: colors.borderSelected,
|
|
171
171
|
backgroundColor: colors.inputFillActive,
|
|
172
172
|
};
|
|
173
173
|
}
|
package/layer/layer.js
CHANGED
|
@@ -207,10 +207,10 @@ var LayerComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
207
207
|
}, children) : children;
|
|
208
208
|
|
|
209
209
|
if (typeof document !== 'undefined') {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
if (
|
|
213
|
-
return /*#__PURE__*/_reactDom.default.createPortal(childrenToRender,
|
|
210
|
+
if (mountNode) {
|
|
211
|
+
return /*#__PURE__*/_reactDom.default.createPortal(childrenToRender, mountNode);
|
|
212
|
+
} else if (container) {
|
|
213
|
+
return /*#__PURE__*/_reactDom.default.createPortal(childrenToRender, container);
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
return null;
|
package/layer/layer.js.flow
CHANGED
|
@@ -124,9 +124,10 @@ class LayerComponent extends React.Component<LayerComponentPropsT, LayerStateT>
|
|
|
124
124
|
// Only adding an additional wrapper when a layer has z-index to be set
|
|
125
125
|
const childrenToRender = zIndex ? <Container $zIndex={zIndex}>{children}</Container> : children;
|
|
126
126
|
if (__BROWSER__) {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
127
|
+
if (mountNode) {
|
|
128
|
+
return ReactDOM.createPortal(childrenToRender, mountNode);
|
|
129
|
+
} else if (container) {
|
|
130
|
+
return ReactDOM.createPortal(childrenToRender, container);
|
|
130
131
|
}
|
|
131
132
|
return null;
|
|
132
133
|
}
|
package/list/list-item.js
CHANGED
|
@@ -78,7 +78,11 @@ var ListItem = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
78
78
|
return /*#__PURE__*/_react.default.createElement(Root // flowlint-next-line unclear-type:off
|
|
79
79
|
, _extends({
|
|
80
80
|
ref: ref,
|
|
81
|
-
$shape: props.shape || _constants.SHAPE.DEFAULT
|
|
81
|
+
$shape: props.shape || _constants.SHAPE.DEFAULT,
|
|
82
|
+
"aria-label": props['aria-label'],
|
|
83
|
+
"aria-selected": props['aria-selected'],
|
|
84
|
+
id: props.id,
|
|
85
|
+
role: props.role
|
|
82
86
|
}, rootProps), Artwork && /*#__PURE__*/_react.default.createElement(ArtworkContainer, _extends({
|
|
83
87
|
$artworkSize: artworkSize,
|
|
84
88
|
$sublist: Boolean(props.sublist)
|