baseui 10.12.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 +4 -8
- 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 +4 -8
- 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 +2 -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 +4 -8
- package/select/select-component.js.flow +2 -3
- package/select/styled-components.js +4 -4
- package/select/styled-components.js.flow +4 -4
- 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
|
@@ -38,11 +38,11 @@ export var StyledStar = styled('li', function (_ref2) {
|
|
|
38
38
|
var prePartialStarFill;
|
|
39
39
|
|
|
40
40
|
if ($isActive) {
|
|
41
|
-
starStroke = starFill = $theme.colors.
|
|
41
|
+
starStroke = starFill = $theme.colors.warning400;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
if ($isPartialActive && !$isActive) {
|
|
45
|
-
prePartialStarStroke = prePartialStarFill = $theme.colors.
|
|
45
|
+
prePartialStarStroke = prePartialStarFill = $theme.colors.warning400;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
var styles = {
|
|
@@ -99,7 +99,7 @@ export var StyledEmoticon = styled('li', function (_ref3) {
|
|
|
99
99
|
var emoticonFill = $theme.colors.ratingInactiveFill;
|
|
100
100
|
|
|
101
101
|
if ($isActive) {
|
|
102
|
-
emoticonFill = $theme.colors.
|
|
102
|
+
emoticonFill = $theme.colors.warning400;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
var ratingIcons = [angryRatingSVG(emoticonFill, $size), sadRatingSVG(emoticonFill, $size), neutralRatingSVG(emoticonFill, $size), happyRatingSVG(emoticonFill, $size), veryHappyRatingSVG(emoticonFill, $size)];
|
package/esm/select/index.js
CHANGED
|
@@ -14,7 +14,6 @@ export { default as SelectDropdown } from './dropdown.js';
|
|
|
14
14
|
export { default as StatefulSelect } from './stateful-select.js';
|
|
15
15
|
export { default as StatefulSelectContainer } from './stateful-select-container.js'; // Styled elements
|
|
16
16
|
|
|
17
|
-
export { StyledRoot, StyledControlContainer, StyledValueContainer, StyledPlaceholder, StyledSingleValue, StyledInputContainer, StyledInput, StyledInputSizer, StyledIconsContainer, StyledSelectArrow, StyledClearIcon
|
|
18
|
-
, StyledSearchIconContainer as StyledSearchIcon, StyledSearchIconContainer, StyledDropdownContainer, StyledDropdown, StyledDropdownListItem, StyledOptionContent } from './styled-components.js';
|
|
17
|
+
export { StyledRoot, StyledControlContainer, StyledValueContainer, StyledPlaceholder, StyledSingleValue, StyledInputContainer, StyledInput, StyledInputSizer, StyledIconsContainer, StyledSelectArrow, StyledClearIcon, StyledSearchIconContainer, StyledDropdownContainer, StyledDropdown, StyledDropdownListItem, StyledOptionContent } from './styled-components.js';
|
|
19
18
|
export { default as filterOptions } from './utils/default-filter-options.js';
|
|
20
19
|
export { SIZE, TYPE, STATE_CHANGE_TYPE } from './constants.js';
|
|
@@ -1002,14 +1002,10 @@ var Select = /*#__PURE__*/function (_React$Component) {
|
|
|
1002
1002
|
searchIconProps = _getOverrides12[1];
|
|
1003
1003
|
|
|
1004
1004
|
var sharedProps = this.getSharedProps();
|
|
1005
|
-
return (
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
size: 16,
|
|
1010
|
-
title: 'search'
|
|
1011
|
-
}, searchIconProps)))
|
|
1012
|
-
);
|
|
1005
|
+
return /*#__PURE__*/React.createElement(SearchIconContainer, _extends({}, sharedProps, searchIconContainerProps), /*#__PURE__*/React.createElement(SearchIcon, _extends({
|
|
1006
|
+
size: 16,
|
|
1007
|
+
title: 'search'
|
|
1008
|
+
}, sharedProps, searchIconProps)));
|
|
1013
1009
|
}
|
|
1014
1010
|
}, {
|
|
1015
1011
|
key: "filterOptions",
|
|
@@ -102,10 +102,10 @@ function getControlContainerColors($disabled, $isFocused, $isPseudoFocused, $pos
|
|
|
102
102
|
if ($isFocused || $isPseudoFocused) {
|
|
103
103
|
return {
|
|
104
104
|
color: colors.contentPrimary,
|
|
105
|
-
borderLeftColor: colors.
|
|
106
|
-
borderRightColor: colors.
|
|
107
|
-
borderTopColor: colors.
|
|
108
|
-
borderBottomColor: colors.
|
|
105
|
+
borderLeftColor: colors.borderSelected,
|
|
106
|
+
borderRightColor: colors.borderSelected,
|
|
107
|
+
borderTopColor: colors.borderSelected,
|
|
108
|
+
borderBottomColor: colors.borderSelected,
|
|
109
109
|
backgroundColor: colors.inputFillActive
|
|
110
110
|
};
|
|
111
111
|
}
|
|
@@ -10,7 +10,7 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
10
10
|
This source code is licensed under the MIT license found in the
|
|
11
11
|
LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
|
-
import {
|
|
13
|
+
import { Spinner } from '../spinner/index.js';
|
|
14
14
|
import { styled, withStyle } from '../styles/index.js';
|
|
15
15
|
import { PLACEMENT } from './constants.js';
|
|
16
16
|
export var StyledRoot = styled('div', function (_ref) {
|
|
@@ -44,7 +44,7 @@ export var StyledStartEnhancerContainer = styled('span', function (_ref2) {
|
|
|
44
44
|
}, paddingDir, $theme.sizing.scale600);
|
|
45
45
|
});
|
|
46
46
|
StyledStartEnhancerContainer.displayName = "StyledStartEnhancerContainer";
|
|
47
|
-
export var StyledSpinner = withStyle(
|
|
47
|
+
export var StyledSpinner = withStyle(Spinner, function (_ref4) {
|
|
48
48
|
var $height = _ref4.$height,
|
|
49
49
|
$width = _ref4.$width;
|
|
50
50
|
return {
|
package/esm/spinner/index.js
CHANGED
|
@@ -4,12 +4,6 @@ Copyright (c) Uber Technologies, Inc.
|
|
|
4
4
|
This source code is licensed under the MIT license found in the
|
|
5
5
|
LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
8
|
-
export {
|
|
9
|
-
|
|
10
|
-
export { Svg as StyledSvg, StyledTrackPath, StyledActivePath, StyledSpinnerNext } from './styled-components.js';
|
|
11
|
-
export { SIZE } from './constants.js'; // Flow
|
|
12
|
-
|
|
13
|
-
// Backward compatibility with SpinnerDeterminate
|
|
14
|
-
// Deprecated
|
|
15
|
-
export { ProgressBarRounded as SpinnerDeterminate, StyledProgressBarRoundedRoot as StyledSpinnerDeterminateRoot, StyledProgressBarRoundedSvg as StyledSpinnerDeterminateSvg, StyledProgressBarRoundedTrackBackground as StyledSpinnerDeterminateTrackBackground, StyledProgressBarRoundedTrackForeground as StyledSpinnerDeterminateTrackForeground, StyledProgressBarRoundedText as StyledSpinnerDeterminateText };
|
|
7
|
+
import { StyledSpinner } from './styled-components.js';
|
|
8
|
+
export { StyledSpinner as Spinner };
|
|
9
|
+
export { SIZE } from './constants.js'; // Flow
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
2
|
-
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
4
|
-
|
|
5
|
-
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; }
|
|
6
|
-
|
|
7
1
|
/*
|
|
8
2
|
Copyright (c) Uber Technologies, Inc.
|
|
9
3
|
|
|
@@ -11,7 +5,6 @@ This source code is licensed under the MIT license found in the
|
|
|
11
5
|
LICENSE file in the root directory of this source tree.
|
|
12
6
|
*/
|
|
13
7
|
import { styled } from '../styles/index.js';
|
|
14
|
-
import { getSvgStyles } from '../icon/styled-components.js';
|
|
15
8
|
import { SIZE } from './constants.js';
|
|
16
9
|
var spin = {
|
|
17
10
|
from: {
|
|
@@ -21,38 +14,7 @@ var spin = {
|
|
|
21
14
|
transform: 'rotate(360deg)'
|
|
22
15
|
}
|
|
23
16
|
};
|
|
24
|
-
|
|
25
|
-
* Spinner icon overrides
|
|
26
|
-
*/
|
|
27
|
-
|
|
28
|
-
export var Svg = styled('svg', function (props) {
|
|
29
|
-
var $theme = props.$theme,
|
|
30
|
-
$color = props.$color;
|
|
31
|
-
return _objectSpread(_objectSpread({}, getSvgStyles(props)), {}, {
|
|
32
|
-
fill: $color || $theme.colors.accent,
|
|
33
|
-
cursor: 'wait',
|
|
34
|
-
animationName: spin,
|
|
35
|
-
animationDuration: $theme.animation.timing1000,
|
|
36
|
-
animationIterationCount: 'infinite',
|
|
37
|
-
animationTimingFunction: 'linear'
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
Svg.displayName = "Svg";
|
|
41
|
-
export var StyledTrackPath = styled('path', function (props) {
|
|
42
|
-
return {
|
|
43
|
-
fill: props.$theme.colors.spinnerTrackFill,
|
|
44
|
-
opacity: 0.16
|
|
45
|
-
};
|
|
46
|
-
});
|
|
47
|
-
StyledTrackPath.displayName = "StyledTrackPath";
|
|
48
|
-
export var StyledActivePath = styled('path', function (props) {
|
|
49
|
-
return {
|
|
50
|
-
fill: props.$color || props.$theme.colors.accent
|
|
51
|
-
};
|
|
52
|
-
}); // TODO(v11): Replace Spinner with SpinnerNext
|
|
53
|
-
|
|
54
|
-
StyledActivePath.displayName = "StyledActivePath";
|
|
55
|
-
export var StyledSpinnerNext = styled('i', function (_ref) {
|
|
17
|
+
export var StyledSpinner = styled('i', function (_ref) {
|
|
56
18
|
var $theme = _ref.$theme,
|
|
57
19
|
_ref$$color = _ref.$color,
|
|
58
20
|
$color = _ref$$color === void 0 ? $theme.colors.contentAccent : _ref$$color,
|
|
@@ -110,4 +72,4 @@ export var StyledSpinnerNext = styled('i', function (_ref) {
|
|
|
110
72
|
cursor: 'wait'
|
|
111
73
|
};
|
|
112
74
|
});
|
|
113
|
-
|
|
75
|
+
StyledSpinner.displayName = "StyledSpinner";
|
package/esm/table/filter.js
CHANGED
|
@@ -79,19 +79,19 @@ export default function Filter(props) {
|
|
|
79
79
|
,
|
|
80
80
|
crossFrame: false
|
|
81
81
|
}, /*#__PURE__*/React.createElement(Heading, headingProps, "Filter Column"), /*#__PURE__*/React.createElement(Content, contentProps, props.children), /*#__PURE__*/React.createElement(Footer, footerProps, /*#__PURE__*/React.createElement(Button, {
|
|
82
|
-
kind: KIND.
|
|
82
|
+
kind: KIND.tertiary,
|
|
83
83
|
size: SIZE.compact,
|
|
84
84
|
onClick: function onClick() {
|
|
85
85
|
onSelectAll();
|
|
86
86
|
}
|
|
87
87
|
}, "Select All"), /*#__PURE__*/React.createElement(Button, {
|
|
88
|
-
kind: KIND.
|
|
88
|
+
kind: KIND.tertiary,
|
|
89
89
|
size: SIZE.compact,
|
|
90
90
|
onClick: function onClick() {
|
|
91
91
|
onReset();
|
|
92
92
|
}
|
|
93
93
|
}, "Reset"), props.hasCloseButton && /*#__PURE__*/React.createElement(Button, {
|
|
94
|
-
kind: KIND.
|
|
94
|
+
kind: KIND.tertiary,
|
|
95
95
|
size: SIZE.compact,
|
|
96
96
|
onClick: close
|
|
97
97
|
}, "Close")));
|
|
@@ -241,7 +241,7 @@ var customColorStates = (_customColorStates = {}, _defineProperty(_customColorSt
|
|
|
241
241
|
return {
|
|
242
242
|
color: customOnRamp(color, theme.colors.tagFontDisabledRampUnit),
|
|
243
243
|
backgroundColor: null,
|
|
244
|
-
borderColor: customOnRamp(color, theme.colors.
|
|
244
|
+
borderColor: customOnRamp(color, theme.colors.tagSolidDisabledRampUnit)
|
|
245
245
|
};
|
|
246
246
|
}), _defineProperty(_customColorStates, COLOR_STATE.solid, function (theme, color) {
|
|
247
247
|
return {
|
|
@@ -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
|
}}
|