baseui 11.0.2 → 11.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/a11y/index.d.ts +1 -1
- package/accordion/index.d.ts +25 -28
- package/app-nav-bar/app-nav-bar.js +33 -40
- package/app-nav-bar/app-nav-bar.js.flow +46 -62
- package/app-nav-bar/index.d.ts +9 -8
- package/app-nav-bar/styled-components.js +49 -29
- package/app-nav-bar/styled-components.js.flow +25 -8
- package/app-nav-bar/types.js.flow +2 -0
- package/aspect-ratio-box/index.d.ts +2 -4
- package/avatar/index.d.ts +6 -12
- package/badge/badge.js +109 -0
- package/badge/badge.js.flow +91 -0
- package/badge/constants.js +54 -0
- package/badge/constants.js.flow +52 -0
- package/badge/hint-dot.js +96 -0
- package/badge/hint-dot.js.flow +68 -0
- package/badge/index.d.ts +97 -0
- package/badge/index.js +80 -0
- package/badge/index.js.flow +20 -0
- package/badge/notification-circle.js +103 -0
- package/badge/notification-circle.js.flow +81 -0
- package/badge/package.json +4 -0
- package/badge/styled-components.js +242 -0
- package/badge/styled-components.js.flow +325 -0
- package/badge/types.js +11 -0
- package/badge/types.js.flow +59 -0
- package/badge/utils.js +33 -0
- package/badge/utils.js.flow +23 -0
- package/banner/banner.js +283 -0
- package/banner/banner.js.flow +253 -0
- package/banner/constants.js +35 -0
- package/banner/constants.js.flow +33 -0
- package/banner/index.d.ts +75 -0
- package/banner/index.js +44 -0
- package/banner/index.js.flow +16 -0
- package/banner/package.json +4 -0
- package/banner/styled-components.js +131 -0
- package/banner/styled-components.js.flow +119 -0
- package/banner/types.js +11 -0
- package/banner/types.js.flow +66 -0
- package/block/index.d.ts +4 -4
- package/breadcrumbs/breadcrumbs.js +5 -1
- package/breadcrumbs/breadcrumbs.js.flow +2 -2
- package/breadcrumbs/index.d.ts +5 -5
- package/button/button.js +2 -1
- package/button/button.js.flow +1 -0
- package/button/index.d.ts +19 -29
- package/button-group/index.d.ts +18 -24
- package/card/index.d.ts +16 -14
- package/checkbox/index.d.ts +17 -21
- package/combobox/index.d.ts +7 -11
- package/data-table/index.d.ts +7 -10
- package/datepicker/index.d.ts +42 -63
- package/datepicker/types.js.flow +2 -2
- package/datepicker/utils/date-helpers.js +1 -1
- package/datepicker/utils/date-helpers.js.flow +1 -1
- package/dnd-list/index.d.ts +22 -35
- package/drawer/index.d.ts +22 -27
- package/es/app-nav-bar/app-nav-bar.js +9 -19
- package/es/app-nav-bar/styled-components.js +32 -13
- package/es/badge/badge.js +70 -0
- package/es/badge/constants.js +42 -0
- package/es/badge/hint-dot.js +55 -0
- package/es/badge/index.js +11 -0
- package/es/badge/notification-circle.js +65 -0
- package/es/badge/styled-components.js +296 -0
- package/es/badge/types.js +8 -0
- package/es/badge/utils.js +17 -0
- package/es/banner/banner.js +213 -0
- package/es/banner/constants.js +24 -0
- package/es/banner/index.js +9 -0
- package/es/banner/styled-components.js +122 -0
- package/es/banner/types.js +8 -0
- package/es/breadcrumbs/breadcrumbs.js +5 -1
- package/es/button/button.js +1 -0
- package/es/datepicker/utils/date-helpers.js +1 -1
- package/es/helper/helper-steps.js +3 -1
- package/es/input/base-input.js +18 -11
- package/es/input/input.js +15 -10
- package/es/input/masked-input.js +5 -2
- package/es/input/utils.js +4 -2
- package/es/locale/tr_TR.js +115 -0
- package/es/notification/notification.js +16 -1
- package/es/payment-card/custom-cards.config.js +22 -0
- package/es/payment-card/icons/uatp.js +52 -0
- package/es/payment-card/payment-card.js +8 -3
- package/es/popover/popover.js +2 -1
- package/es/popover/stateful-container.js +2 -0
- package/es/popover/styled-components.js +2 -1
- package/es/progress-steps/numbered-step.js +2 -2
- package/es/select/select-component.js +44 -21
- package/es/select/utils/default-filter-options.js +1 -1
- package/es/table-semantic/styled-components.js +14 -0
- package/es/table-semantic/table-builder.js +12 -5
- package/es/textarea/textarea.js +15 -9
- package/es/themes/dark-theme/color-component-tokens.js +8 -0
- package/es/themes/light-theme/color-component-tokens.js +8 -0
- package/es/tree-view/tree-label.js +9 -1
- package/esm/app-nav-bar/app-nav-bar.js +32 -38
- package/esm/app-nav-bar/styled-components.js +46 -28
- package/esm/badge/badge.js +97 -0
- package/esm/badge/constants.js +42 -0
- package/esm/badge/hint-dot.js +83 -0
- package/esm/badge/index.js +11 -0
- package/esm/badge/notification-circle.js +91 -0
- package/esm/badge/styled-components.js +235 -0
- package/esm/badge/types.js +8 -0
- package/esm/badge/utils.js +17 -0
- package/esm/banner/banner.js +271 -0
- package/esm/banner/constants.js +24 -0
- package/esm/banner/index.js +9 -0
- package/esm/banner/styled-components.js +113 -0
- package/esm/banner/types.js +8 -0
- package/esm/breadcrumbs/breadcrumbs.js +5 -1
- package/esm/button/button.js +2 -1
- package/esm/datepicker/utils/date-helpers.js +1 -1
- package/esm/helper/helper-steps.js +3 -1
- package/esm/input/base-input.js +18 -11
- package/esm/input/input.js +15 -10
- package/esm/input/masked-input.js +6 -3
- package/esm/input/utils.js +4 -2
- package/esm/locale/tr_TR.js +115 -0
- package/esm/notification/notification.js +17 -1
- package/esm/payment-card/custom-cards.config.js +22 -0
- package/esm/payment-card/icons/uatp.js +53 -0
- package/esm/payment-card/payment-card.js +9 -7
- package/esm/popover/popover.js +2 -1
- package/esm/popover/stateful-container.js +2 -0
- package/esm/popover/styled-components.js +3 -2
- package/esm/progress-steps/numbered-step.js +2 -2
- package/esm/select/select-component.js +81 -57
- package/esm/select/utils/default-filter-options.js +1 -1
- package/esm/table-semantic/styled-components.js +31 -18
- package/esm/table-semantic/table-builder.js +34 -23
- package/esm/textarea/textarea.js +15 -9
- package/esm/themes/dark-theme/color-component-tokens.js +8 -0
- package/esm/themes/light-theme/color-component-tokens.js +8 -0
- package/esm/tree-view/tree-label.js +10 -2
- package/file-uploader/index.d.ts +11 -11
- package/flex-grid/index.d.ts +3 -3
- package/form-control/index.d.ts +7 -19
- package/header-navigation/index.d.ts +8 -9
- package/heading/index.d.ts +3 -4
- package/helper/helper-steps.js +19 -13
- package/helper/helper-steps.js.flow +3 -1
- package/helper/index.d.ts +7 -7
- package/helpers/base-provider.d.ts +16 -0
- package/helpers/overrides.d.ts +23 -0
- package/icon/index.d.ts +32 -32
- package/index.d.ts +34 -114
- package/input/base-input.js +18 -11
- package/input/base-input.js.flow +18 -6
- package/input/index.d.ts +29 -32
- package/input/input.js +15 -10
- package/input/input.js.flow +10 -5
- package/input/masked-input.js +6 -3
- package/input/masked-input.js.flow +3 -0
- package/input/types.js.flow +4 -0
- package/input/utils.js +4 -2
- package/input/utils.js.flow +2 -1
- package/layer/index.d.ts +6 -11
- package/layout-grid/index.d.ts +25 -7
- package/link/index.d.ts +2 -2
- package/list/index.d.ts +26 -31
- package/{locale.ts → locale/index.d.ts} +8 -0
- package/locale/tr_TR.js +123 -0
- package/locale/tr_TR.js.flow +124 -0
- package/map-marker/index.d.ts +41 -47
- package/menu/index.d.ts +27 -37
- package/modal/index.d.ts +28 -38
- package/notification/index.d.ts +2 -3
- package/notification/notification.js +18 -1
- package/notification/notification.js.flow +15 -1
- package/overrides.ts +2 -22
- package/package.json +26 -17
- package/pagination/index.d.ts +22 -26
- package/payment-card/custom-cards.config.js +30 -0
- package/payment-card/custom-cards.config.js.flow +29 -0
- package/payment-card/icons/uatp.js +67 -0
- package/payment-card/icons/uatp.js.flow +62 -0
- package/payment-card/index.d.ts +8 -8
- package/payment-card/payment-card.js +12 -7
- package/payment-card/payment-card.js.flow +12 -0
- package/phone-input/index.d.ts +261 -269
- package/pin-code/index.d.ts +11 -18
- package/popover/index.d.ts +39 -55
- package/popover/popover.js +2 -1
- package/popover/popover.js.flow +2 -1
- package/popover/stateful-container.js +2 -0
- package/popover/stateful-container.js.flow +2 -0
- package/popover/styled-components.js +3 -2
- package/popover/styled-components.js.flow +2 -1
- package/popover/types.js.flow +1 -0
- package/progress-bar/index.d.ts +11 -12
- package/progress-steps/index.d.ts +16 -16
- package/progress-steps/numbered-step.js.flow +2 -2
- package/radio/index.d.ts +12 -15
- package/rating/index.d.ts +9 -12
- package/select/index.d.ts +34 -36
- package/select/select-component.js +78 -54
- package/select/select-component.js.flow +42 -32
- package/select/types.js.flow +1 -0
- package/select/utils/default-filter-options.js +1 -1
- package/select/utils/default-filter-options.js.flow +1 -1
- package/side-navigation/index.d.ts +11 -13
- package/skeleton/index.d.ts +1 -1
- package/slider/index.d.ts +17 -26
- package/snackbar/index.d.ts +8 -8
- package/spinner/index.d.ts +4 -3
- package/styles/index.d.ts +82 -2
- package/table/index.d.ts +16 -16
- package/table-grid/index.d.ts +6 -8
- package/table-semantic/index.d.ts +26 -32
- package/table-semantic/styled-components.js +33 -19
- package/table-semantic/styled-components.js.flow +12 -0
- package/table-semantic/table-builder.js +38 -22
- package/table-semantic/table-builder.js.flow +32 -17
- package/table-semantic/types.js.flow +1 -0
- package/tabs/index.d.ts +20 -23
- package/tabs-motion/index.d.ts +23 -23
- package/tag/index.d.ts +14 -18
- package/textarea/index.d.ts +11 -14
- package/textarea/textarea.js +15 -9
- package/textarea/textarea.js.flow +11 -5
- package/textarea/types.js.flow +1 -0
- package/theme.ts +36 -777
- package/themes/dark-theme/color-component-tokens.js +8 -0
- package/themes/dark-theme/color-component-tokens.js.flow +9 -0
- package/themes/index.d.ts +765 -0
- package/themes/light-theme/color-component-tokens.js +8 -0
- package/themes/light-theme/color-component-tokens.js.flow +9 -0
- package/themes/types.js.flow +9 -0
- package/timepicker/index.d.ts +5 -8
- package/timezonepicker/index.d.ts +5 -8
- package/toast/index.d.ts +26 -40
- package/tokens/index.d.ts +1 -1
- package/tooltip/index.d.ts +7 -9
- package/tree-view/index.d.ts +15 -19
- package/tree-view/tree-label.js +10 -2
- package/tree-view/tree-label.js.flow +4 -4
- package/typography/index.d.ts +37 -37
package/banner/index.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _exportNames = {
|
|
7
|
+
Banner: true
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "Banner", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function get() {
|
|
12
|
+
return _banner.Banner;
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
var _banner = require("./banner.js");
|
|
17
|
+
|
|
18
|
+
var _constants = require("./constants.js");
|
|
19
|
+
|
|
20
|
+
Object.keys(_constants).forEach(function (key) {
|
|
21
|
+
if (key === "default" || key === "__esModule") return;
|
|
22
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
23
|
+
if (key in exports && exports[key] === _constants[key]) return;
|
|
24
|
+
Object.defineProperty(exports, key, {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _constants[key];
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
var _styledComponents = require("./styled-components.js");
|
|
33
|
+
|
|
34
|
+
Object.keys(_styledComponents).forEach(function (key) {
|
|
35
|
+
if (key === "default" || key === "__esModule") return;
|
|
36
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
37
|
+
if (key in exports && exports[key] === _styledComponents[key]) return;
|
|
38
|
+
Object.defineProperty(exports, key, {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function get() {
|
|
41
|
+
return _styledComponents[key];
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) Uber Technologies, Inc.
|
|
3
|
+
|
|
4
|
+
This source code is licensed under the MIT license found in the
|
|
5
|
+
LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
// @flow
|
|
8
|
+
|
|
9
|
+
export { Banner } from './banner.js';
|
|
10
|
+
export * from './constants.js';
|
|
11
|
+
export * from './styled-components.js';
|
|
12
|
+
export type * from './types.js';
|
|
13
|
+
|
|
14
|
+
declare var __DEV__: boolean;
|
|
15
|
+
declare var __NODE__: boolean;
|
|
16
|
+
declare var __BROWSER__: boolean;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.StyledTrailingIconButton = exports.StyledTrailingButtonContainer = exports.StyledMessage = exports.StyledTitle = exports.StyledBelowContent = exports.StyledTrailingContent = exports.StyledMessageContent = exports.StyledLeadingContent = exports.StyledRoot = void 0;
|
|
7
|
+
|
|
8
|
+
var _index = require("../styles/index.js");
|
|
9
|
+
|
|
10
|
+
var _constants = require("./constants.js");
|
|
11
|
+
|
|
12
|
+
/*
|
|
13
|
+
Copyright (c) Uber Technologies, Inc.
|
|
14
|
+
|
|
15
|
+
This source code is licensed under the MIT license found in the
|
|
16
|
+
LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/
|
|
18
|
+
var StyledRoot = (0, _index.styled)('div', function (_ref) {
|
|
19
|
+
var $theme = _ref.$theme,
|
|
20
|
+
$backgroundColor = _ref.$backgroundColor,
|
|
21
|
+
$color = _ref.$color,
|
|
22
|
+
$nested = _ref.$nested;
|
|
23
|
+
var radius = $nested ? $theme.borders.radius300 : $theme.borders.radius400;
|
|
24
|
+
return {
|
|
25
|
+
backgroundColor: $backgroundColor,
|
|
26
|
+
borderStartStartRadius: radius,
|
|
27
|
+
borderStartEndRadius: radius,
|
|
28
|
+
borderEndStartRadius: radius,
|
|
29
|
+
borderEndEndRadius: radius,
|
|
30
|
+
color: $color,
|
|
31
|
+
display: 'grid',
|
|
32
|
+
gridColumnGap: $theme.sizing.scale600,
|
|
33
|
+
gridTemplateColumns: 'min-content auto min-content',
|
|
34
|
+
gridTemplateRows: 'auto min-content',
|
|
35
|
+
margin: $theme.sizing.scale600
|
|
36
|
+
};
|
|
37
|
+
});
|
|
38
|
+
exports.StyledRoot = StyledRoot;
|
|
39
|
+
StyledRoot.displayName = "StyledRoot";
|
|
40
|
+
var StyledLeadingContent = (0, _index.styled)('div', function (_ref2) {
|
|
41
|
+
var $theme = _ref2.$theme,
|
|
42
|
+
$includesArtwork = _ref2.$includesArtwork;
|
|
43
|
+
return {
|
|
44
|
+
alignItems: 'center',
|
|
45
|
+
display: 'flex',
|
|
46
|
+
paddingInlineStart: $includesArtwork ? $theme.sizing.scale600 : null
|
|
47
|
+
};
|
|
48
|
+
});
|
|
49
|
+
exports.StyledLeadingContent = StyledLeadingContent;
|
|
50
|
+
StyledLeadingContent.displayName = "StyledLeadingContent";
|
|
51
|
+
var StyledMessageContent = (0, _index.styled)('div', function (_ref3) {
|
|
52
|
+
var $theme = _ref3.$theme,
|
|
53
|
+
$actionPosition = _ref3.$actionPosition;
|
|
54
|
+
return {
|
|
55
|
+
display: 'flex',
|
|
56
|
+
flexDirection: 'column',
|
|
57
|
+
justifyContent: 'center',
|
|
58
|
+
paddingBlockStart: $theme.sizing.scale600,
|
|
59
|
+
paddingBlockEnd: $actionPosition === _constants.ACTION_POSITION.trailing ? $theme.sizing.scale600 : null
|
|
60
|
+
};
|
|
61
|
+
});
|
|
62
|
+
exports.StyledMessageContent = StyledMessageContent;
|
|
63
|
+
StyledMessageContent.displayName = "StyledMessageContent";
|
|
64
|
+
var StyledTrailingContent = (0, _index.styled)('div', function (_ref4) {
|
|
65
|
+
var $theme = _ref4.$theme;
|
|
66
|
+
return {
|
|
67
|
+
display: 'flex',
|
|
68
|
+
gridRowEnd: 'span 2',
|
|
69
|
+
marginInlineStart: 'auto'
|
|
70
|
+
};
|
|
71
|
+
});
|
|
72
|
+
exports.StyledTrailingContent = StyledTrailingContent;
|
|
73
|
+
StyledTrailingContent.displayName = "StyledTrailingContent";
|
|
74
|
+
var StyledBelowContent = (0, _index.styled)('div', function (_ref5) {
|
|
75
|
+
var $theme = _ref5.$theme,
|
|
76
|
+
$actionPosition = _ref5.$actionPosition;
|
|
77
|
+
return {
|
|
78
|
+
gridColumnStart: 2,
|
|
79
|
+
paddingBlockStart: $actionPosition === _constants.ACTION_POSITION.below ? $theme.sizing.scale300 : null,
|
|
80
|
+
paddingBlockEnd: $actionPosition === _constants.ACTION_POSITION.below ? $theme.sizing.scale600 : null
|
|
81
|
+
};
|
|
82
|
+
});
|
|
83
|
+
exports.StyledBelowContent = StyledBelowContent;
|
|
84
|
+
StyledBelowContent.displayName = "StyledBelowContent";
|
|
85
|
+
var StyledTitle = (0, _index.styled)('div', function (_ref6) {
|
|
86
|
+
var $theme = _ref6.$theme;
|
|
87
|
+
return $theme.typography.LabelMedium;
|
|
88
|
+
});
|
|
89
|
+
exports.StyledTitle = StyledTitle;
|
|
90
|
+
StyledTitle.displayName = "StyledTitle";
|
|
91
|
+
var StyledMessage = (0, _index.styled)('div', function (_ref7) {
|
|
92
|
+
var $theme = _ref7.$theme;
|
|
93
|
+
return $theme.typography.ParagraphMedium;
|
|
94
|
+
});
|
|
95
|
+
exports.StyledMessage = StyledMessage;
|
|
96
|
+
StyledMessage.displayName = "StyledMessage";
|
|
97
|
+
var StyledTrailingButtonContainer = (0, _index.styled)('div', function (_ref8) {
|
|
98
|
+
var $theme = _ref8.$theme;
|
|
99
|
+
return {
|
|
100
|
+
display: 'flex',
|
|
101
|
+
alignItems: 'center',
|
|
102
|
+
paddingInlineEnd: $theme.sizing.scale600
|
|
103
|
+
};
|
|
104
|
+
});
|
|
105
|
+
exports.StyledTrailingButtonContainer = StyledTrailingButtonContainer;
|
|
106
|
+
StyledTrailingButtonContainer.displayName = "StyledTrailingButtonContainer";
|
|
107
|
+
var StyledTrailingIconButton = (0, _index.styled)('button', function (_ref9) {
|
|
108
|
+
var $theme = _ref9.$theme,
|
|
109
|
+
$nested = _ref9.$nested;
|
|
110
|
+
var radius = $nested ? $theme.borders.radius300 : $theme.borders.radius400;
|
|
111
|
+
return {
|
|
112
|
+
alignItems: 'center',
|
|
113
|
+
background: 'none',
|
|
114
|
+
border: 'none',
|
|
115
|
+
borderStartEndRadius: radius,
|
|
116
|
+
borderEndEndRadius: radius,
|
|
117
|
+
color: 'inherit',
|
|
118
|
+
cursor: 'pointer',
|
|
119
|
+
display: 'flex',
|
|
120
|
+
paddingInlineStart: $theme.sizing.scale600,
|
|
121
|
+
paddingInlineEnd: $theme.sizing.scale600,
|
|
122
|
+
':hover': {
|
|
123
|
+
boxShadow: 'inset 999px 999px 0px rgba(0, 0, 0, 0.04)'
|
|
124
|
+
},
|
|
125
|
+
':active': {
|
|
126
|
+
boxShadow: 'inset 999px 999px 0px rgba(0, 0, 0, 0.08)'
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
});
|
|
130
|
+
exports.StyledTrailingIconButton = StyledTrailingIconButton;
|
|
131
|
+
StyledTrailingIconButton.displayName = "StyledTrailingIconButton";
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) Uber Technologies, Inc.
|
|
3
|
+
|
|
4
|
+
This source code is licensed under the MIT license found in the
|
|
5
|
+
LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
// @flow
|
|
8
|
+
|
|
9
|
+
import { styled } from '../styles/index.js';
|
|
10
|
+
import { ACTION_POSITION } from './constants.js';
|
|
11
|
+
import type { ActionPositionT } from './types.js';
|
|
12
|
+
|
|
13
|
+
export const StyledRoot = styled<{ $backgroundColor: string, $color: string, $nested: boolean }>(
|
|
14
|
+
'div',
|
|
15
|
+
({ $theme, $backgroundColor, $color, $nested }) => {
|
|
16
|
+
const radius = $nested ? $theme.borders.radius300 : $theme.borders.radius400;
|
|
17
|
+
return {
|
|
18
|
+
backgroundColor: $backgroundColor,
|
|
19
|
+
borderStartStartRadius: radius,
|
|
20
|
+
borderStartEndRadius: radius,
|
|
21
|
+
borderEndStartRadius: radius,
|
|
22
|
+
borderEndEndRadius: radius,
|
|
23
|
+
color: $color,
|
|
24
|
+
display: 'grid',
|
|
25
|
+
gridColumnGap: $theme.sizing.scale600,
|
|
26
|
+
gridTemplateColumns: 'min-content auto min-content',
|
|
27
|
+
gridTemplateRows: 'auto min-content',
|
|
28
|
+
margin: $theme.sizing.scale600,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
export const StyledLeadingContent = styled<{ $includesArtwork: boolean }>(
|
|
34
|
+
'div',
|
|
35
|
+
({ $theme, $includesArtwork }) => {
|
|
36
|
+
return {
|
|
37
|
+
alignItems: 'center',
|
|
38
|
+
display: 'flex',
|
|
39
|
+
paddingInlineStart: $includesArtwork ? $theme.sizing.scale600 : null,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
export const StyledMessageContent = styled<{ $actionPosition: ActionPositionT }>(
|
|
45
|
+
'div',
|
|
46
|
+
({ $theme, $actionPosition }) => {
|
|
47
|
+
return {
|
|
48
|
+
display: 'flex',
|
|
49
|
+
flexDirection: 'column',
|
|
50
|
+
justifyContent: 'center',
|
|
51
|
+
paddingBlockStart: $theme.sizing.scale600,
|
|
52
|
+
paddingBlockEnd: $actionPosition === ACTION_POSITION.trailing ? $theme.sizing.scale600 : null,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
|
|
57
|
+
export const StyledTrailingContent = styled<{}>('div', ({ $theme }) => {
|
|
58
|
+
return {
|
|
59
|
+
display: 'flex',
|
|
60
|
+
gridRowEnd: 'span 2',
|
|
61
|
+
marginInlineStart: 'auto',
|
|
62
|
+
};
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
export const StyledBelowContent = styled<{ $actionPosition: ActionPositionT }>(
|
|
66
|
+
'div',
|
|
67
|
+
({ $theme, $actionPosition }) => {
|
|
68
|
+
return {
|
|
69
|
+
gridColumnStart: 2,
|
|
70
|
+
paddingBlockStart: $actionPosition === ACTION_POSITION.below ? $theme.sizing.scale300 : null,
|
|
71
|
+
paddingBlockEnd: $actionPosition === ACTION_POSITION.below ? $theme.sizing.scale600 : null,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
export const StyledTitle = styled<{}>('div', ({ $theme }) => {
|
|
77
|
+
return $theme.typography.LabelMedium;
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
export const StyledMessage = styled<{}>('div', ({ $theme }) => {
|
|
81
|
+
return $theme.typography.ParagraphMedium;
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
export const StyledTrailingButtonContainer = styled<{}>('div', ({ $theme }) => {
|
|
85
|
+
return {
|
|
86
|
+
display: 'flex',
|
|
87
|
+
alignItems: 'center',
|
|
88
|
+
paddingInlineEnd: $theme.sizing.scale600,
|
|
89
|
+
};
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
export const StyledTrailingIconButton = styled<{ $nested: boolean }>(
|
|
93
|
+
'button',
|
|
94
|
+
({ $theme, $nested }) => {
|
|
95
|
+
const radius = $nested ? $theme.borders.radius300 : $theme.borders.radius400;
|
|
96
|
+
return {
|
|
97
|
+
alignItems: 'center',
|
|
98
|
+
background: 'none',
|
|
99
|
+
border: 'none',
|
|
100
|
+
borderStartEndRadius: radius,
|
|
101
|
+
borderEndEndRadius: radius,
|
|
102
|
+
color: 'inherit',
|
|
103
|
+
cursor: 'pointer',
|
|
104
|
+
display: 'flex',
|
|
105
|
+
paddingInlineStart: $theme.sizing.scale600,
|
|
106
|
+
paddingInlineEnd: $theme.sizing.scale600,
|
|
107
|
+
':hover': {
|
|
108
|
+
boxShadow: 'inset 999px 999px 0px rgba(0, 0, 0, 0.04)',
|
|
109
|
+
},
|
|
110
|
+
':active': {
|
|
111
|
+
boxShadow: 'inset 999px 999px 0px rgba(0, 0, 0, 0.08)',
|
|
112
|
+
},
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
|
|
117
|
+
declare var __DEV__: boolean;
|
|
118
|
+
declare var __NODE__: boolean;
|
|
119
|
+
declare var __BROWSER__: boolean;
|
package/banner/types.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
var React = _interopRequireWildcard(require("react"));
|
|
6
|
+
|
|
7
|
+
var _constants = require("./constants.js");
|
|
8
|
+
|
|
9
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
10
|
+
|
|
11
|
+
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) Uber Technologies, Inc.
|
|
3
|
+
|
|
4
|
+
This source code is licensed under the MIT license found in the
|
|
5
|
+
LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
// @flow
|
|
8
|
+
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
import type { OverrideT } from '../helpers/overrides.js';
|
|
11
|
+
import { ACTION_POSITION, ARTWORK_TYPE, HIERARCHY, KIND } from './constants.js';
|
|
12
|
+
|
|
13
|
+
export type ActionPositionT = $Values<typeof ACTION_POSITION>;
|
|
14
|
+
export type ArtworkTypeT = $Values<typeof ARTWORK_TYPE>;
|
|
15
|
+
export type HierarchyT = $Values<typeof HIERARCHY>;
|
|
16
|
+
export type KindT = $Values<typeof KIND>;
|
|
17
|
+
|
|
18
|
+
export type ActionContentT = {|
|
|
19
|
+
// Text shown within action button or applied to aria label.
|
|
20
|
+
label: string,
|
|
21
|
+
// If provided renders this icon instead of the text label.
|
|
22
|
+
icon?: ({ size: string }) => React.Node,
|
|
23
|
+
// Called when action button is activated.
|
|
24
|
+
onClick: (SyntheticEvent<HTMLButtonElement>) => mixed,
|
|
25
|
+
// Determines if action button is positioned trailing message or below.
|
|
26
|
+
position?: ActionPositionT,
|
|
27
|
+
|};
|
|
28
|
+
|
|
29
|
+
export type ArtworkContentT = {|
|
|
30
|
+
// Element displayed, usually an icon.
|
|
31
|
+
icon: ({ size: string }) => React.Node,
|
|
32
|
+
// Determines artwork size. Icon for graphics with a strong silhouette or badge for more nuance.
|
|
33
|
+
type?: ArtworkTypeT,
|
|
34
|
+
|};
|
|
35
|
+
|
|
36
|
+
export type PropsT = {|
|
|
37
|
+
// Provide a method to "accept", "dismiss", or otherwise interact with the message shown.
|
|
38
|
+
action?: ActionContentT,
|
|
39
|
+
// Visually convey the message text.
|
|
40
|
+
artwork?: ArtworkContentT,
|
|
41
|
+
// Message to display.
|
|
42
|
+
children: React.Node,
|
|
43
|
+
// Determines message priority by rendering in pale or saturated colors.
|
|
44
|
+
hierarchy?: HierarchyT,
|
|
45
|
+
// Determines color scheme and conveys message intent.
|
|
46
|
+
kind?: KindT,
|
|
47
|
+
overrides?: {|
|
|
48
|
+
BelowContent?: OverrideT,
|
|
49
|
+
LeadingContent?: OverrideT,
|
|
50
|
+
Message?: OverrideT,
|
|
51
|
+
MessageContent?: OverrideT,
|
|
52
|
+
Root?: OverrideT,
|
|
53
|
+
Title?: OverrideT,
|
|
54
|
+
TrailingContent?: OverrideT,
|
|
55
|
+
TrailingButtonContainer?: OverrideT,
|
|
56
|
+
TrailingIconButton?: OverrideT,
|
|
57
|
+
|},
|
|
58
|
+
// Used to make the banner visually distinct from its container element.
|
|
59
|
+
nested?: boolean,
|
|
60
|
+
// Bold text displayed when message content should be separated to two lines.
|
|
61
|
+
title?: React.Node,
|
|
62
|
+
|};
|
|
63
|
+
|
|
64
|
+
declare var __DEV__: boolean;
|
|
65
|
+
declare var __NODE__: boolean;
|
|
66
|
+
declare var __BROWSER__: boolean;
|
package/block/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {Override} from '../overrides';
|
|
3
|
-
import {
|
|
2
|
+
import { Override } from '../overrides';
|
|
3
|
+
import { StyleObject } from 'styletron-react';
|
|
4
4
|
|
|
5
5
|
export type Responsive<T> = T | T[];
|
|
6
6
|
|
|
@@ -216,7 +216,7 @@ export interface BlockProps {
|
|
|
216
216
|
children?: React.ReactNode;
|
|
217
217
|
className?: String;
|
|
218
218
|
as?: React.ElementType;
|
|
219
|
-
$style?:
|
|
219
|
+
$style?: StyleObject | ((props: BlockProps) => StyleObject);
|
|
220
220
|
overrides?: BlockOverrides;
|
|
221
221
|
color?: Responsive<string>;
|
|
222
222
|
backgroundAttachment?: Responsive<string>;
|
|
@@ -319,4 +319,4 @@ export interface BlockProps {
|
|
|
319
319
|
bottom?: Responsive<Scale>;
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
-
export const Block: React.FC<BlockProps>;
|
|
322
|
+
export declare const Block: React.FC<BlockProps>;
|
|
@@ -95,7 +95,11 @@ function Breadcrumbs(props) {
|
|
|
95
95
|
}, baseListItemProps), child, (showTrailingSeparator || index !== childrenArray.length - 1) && /*#__PURE__*/_react.default.createElement(Separator, _extends({}, baseSeparatorProps, {
|
|
96
96
|
key: "separator-".concat(index)
|
|
97
97
|
}), /*#__PURE__*/_react.default.createElement(_themeProvider.ThemeContext.Consumer, null, function (theme) {
|
|
98
|
-
return theme.direction === 'rtl' ? /*#__PURE__*/_react.default.createElement(Left,
|
|
98
|
+
return theme.direction === 'rtl' ? /*#__PURE__*/_react.default.createElement(Left, _extends({
|
|
99
|
+
size: 16
|
|
100
|
+
}, baseIconProps)) : /*#__PURE__*/_react.default.createElement(Right, _extends({
|
|
101
|
+
size: 16
|
|
102
|
+
}, baseIconProps));
|
|
99
103
|
}))));
|
|
100
104
|
});
|
|
101
105
|
return /*#__PURE__*/_react.default.createElement(_index.LocaleContext.Consumer, null, function (locale) {
|
|
@@ -43,9 +43,9 @@ export function Breadcrumbs(props: BreadcrumbsPropsT) {
|
|
|
43
43
|
<ThemeContext.Consumer>
|
|
44
44
|
{(theme) =>
|
|
45
45
|
theme.direction === 'rtl' ? (
|
|
46
|
-
<Left {...baseIconProps} />
|
|
46
|
+
<Left size={16} {...baseIconProps} />
|
|
47
47
|
) : (
|
|
48
|
-
<Right {...baseIconProps} />
|
|
48
|
+
<Right size={16} {...baseIconProps} />
|
|
49
49
|
)
|
|
50
50
|
}
|
|
51
51
|
</ThemeContext.Consumer>
|
package/breadcrumbs/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 BreadcrumbsOverrides {
|
|
6
6
|
Root?: Override<any>;
|
|
@@ -18,7 +18,7 @@ export interface BreadcrumbsProps {
|
|
|
18
18
|
showTrailingSeparator?: boolean;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
export const Breadcrumbs: React.FC<BreadcrumbsProps>;
|
|
21
|
+
export declare const Breadcrumbs: React.FC<BreadcrumbsProps>;
|
|
22
22
|
|
|
23
|
-
export const StyledRoot: StyletronComponent<any>;
|
|
24
|
-
export const StyledSeparator: StyletronComponent<any>;
|
|
23
|
+
export declare const StyledRoot: StyletronComponent<any>;
|
|
24
|
+
export declare const StyledSeparator: StyletronComponent<any>;
|
package/button/button.js
CHANGED
|
@@ -144,7 +144,8 @@ var Button = /*#__PURE__*/function (_React$Component) {
|
|
|
144
144
|
endEnhancer = _this$props2.endEnhancer,
|
|
145
145
|
children = _this$props2.children,
|
|
146
146
|
forwardedRef = _this$props2.forwardedRef,
|
|
147
|
-
|
|
147
|
+
colors = _this$props2.colors,
|
|
148
|
+
restProps = _objectWithoutProperties(_this$props2, ["overrides", "size", "kind", "shape", "isLoading", "isSelected", "startEnhancer", "endEnhancer", "children", "forwardedRef", "colors"]); // Get overrides
|
|
148
149
|
|
|
149
150
|
|
|
150
151
|
var _getOverrides = (0, _overrides.getOverrides)( // adding both (1) BaseButton and (2) Root
|
package/button/button.js.flow
CHANGED
package/button/index.d.ts
CHANGED
|
@@ -1,31 +1,27 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
StyletronComponent,
|
|
5
|
-
StyletronComponentInjectedProps,
|
|
6
|
-
} from 'styletron-react';
|
|
7
|
-
import {Override} from '../overrides';
|
|
2
|
+
import { StyletronComponent } from 'styletron-react';
|
|
3
|
+
import { Override } from '../overrides';
|
|
8
4
|
|
|
9
|
-
export
|
|
5
|
+
export declare const KIND: {
|
|
10
6
|
primary: 'primary';
|
|
11
7
|
secondary: 'secondary';
|
|
12
8
|
tertiary: 'tertiary';
|
|
13
|
-
}
|
|
9
|
+
};
|
|
14
10
|
|
|
15
|
-
export
|
|
11
|
+
export declare const SIZE: {
|
|
16
12
|
compact: 'compact';
|
|
17
13
|
default: 'default';
|
|
18
14
|
large: 'large';
|
|
19
15
|
mini: 'mini';
|
|
20
|
-
}
|
|
16
|
+
};
|
|
21
17
|
|
|
22
|
-
export
|
|
18
|
+
export declare const SHAPE: {
|
|
23
19
|
default: 'default';
|
|
24
20
|
pill: 'pill';
|
|
25
21
|
round: 'round';
|
|
26
22
|
circle: 'circle';
|
|
27
23
|
square: 'square';
|
|
28
|
-
}
|
|
24
|
+
};
|
|
29
25
|
|
|
30
26
|
export interface ButtonOverrides {
|
|
31
27
|
Root?: Override<any>;
|
|
@@ -41,8 +37,8 @@ export interface CustomColorsT {
|
|
|
41
37
|
color: string;
|
|
42
38
|
}
|
|
43
39
|
|
|
44
|
-
export interface ButtonProps
|
|
45
|
-
|
|
40
|
+
export interface ButtonProps {
|
|
41
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
46
42
|
colors?: CustomColorsT;
|
|
47
43
|
href?: string;
|
|
48
44
|
target?: string;
|
|
@@ -51,25 +47,19 @@ export interface ButtonProps
|
|
|
51
47
|
endEnhancer?: React.ReactNode;
|
|
52
48
|
isLoading?: boolean;
|
|
53
49
|
isSelected?: boolean;
|
|
54
|
-
kind?: KIND[keyof KIND];
|
|
50
|
+
kind?: typeof KIND[keyof typeof KIND];
|
|
55
51
|
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => any;
|
|
56
52
|
overrides?: ButtonOverrides;
|
|
57
|
-
shape?: SHAPE[keyof SHAPE];
|
|
58
|
-
size?: SIZE[keyof SIZE];
|
|
53
|
+
shape?: typeof SHAPE[keyof typeof SHAPE];
|
|
54
|
+
size?: typeof SIZE[keyof typeof SIZE];
|
|
59
55
|
startEnhancer?: React.ReactNode;
|
|
60
56
|
type?: 'submit' | 'reset' | 'button';
|
|
61
57
|
}
|
|
62
58
|
|
|
63
|
-
export const StyledBaseButton: StyletronComponent<any>;
|
|
64
|
-
export const StyledStartEnhancer: StyletronComponent<any>;
|
|
65
|
-
export const StyledEndEnhancer: StyletronComponent<any>;
|
|
66
|
-
export const StyledLoadingSpinner: StyletronComponent<any>;
|
|
67
|
-
export const StyledLoadingSpinnerContainer: StyletronComponent<any>;
|
|
68
|
-
|
|
69
|
-
export const Button: React.ForwardRefExoticComponent<
|
|
70
|
-
React.PropsWithoutRef<ButtonProps> & React.RefAttributes<HTMLButtonElement>
|
|
71
|
-
>;
|
|
59
|
+
export declare const StyledBaseButton: StyletronComponent<any>;
|
|
60
|
+
export declare const StyledStartEnhancer: StyletronComponent<any>;
|
|
61
|
+
export declare const StyledEndEnhancer: StyletronComponent<any>;
|
|
62
|
+
export declare const StyledLoadingSpinner: StyletronComponent<any>;
|
|
63
|
+
export declare const StyledLoadingSpinnerContainer: StyletronComponent<any>;
|
|
72
64
|
|
|
73
|
-
export const
|
|
74
|
-
export const SHAPE: SHAPE;
|
|
75
|
-
export const SIZE: SIZE;
|
|
65
|
+
export declare const Button: StyletronComponent<ButtonProps>;
|
package/button-group/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {SHAPE, SIZE, KIND} from '../button';
|
|
4
|
-
import {Override} from '../overrides';
|
|
2
|
+
import { StyletronComponent } from 'styletron-react';
|
|
3
|
+
import { SHAPE, SIZE, KIND } from '../button';
|
|
4
|
+
import { Override } from '../overrides';
|
|
5
5
|
|
|
6
|
-
export {SHAPE, SIZE};
|
|
6
|
+
export { SHAPE, SIZE };
|
|
7
7
|
|
|
8
|
-
export
|
|
8
|
+
export declare const MODE: {
|
|
9
9
|
checkbox: 'checkbox';
|
|
10
10
|
radio: 'radio';
|
|
11
|
-
}
|
|
11
|
+
};
|
|
12
12
|
|
|
13
|
-
export
|
|
13
|
+
export declare const STATE_CHANGE_TYPE: {
|
|
14
14
|
change: 'change';
|
|
15
|
-
}
|
|
15
|
+
};
|
|
16
16
|
|
|
17
|
-
export const StyledRoot: StyletronComponent<any>;
|
|
17
|
+
export declare const StyledRoot: StyletronComponent<any>;
|
|
18
18
|
|
|
19
19
|
export interface ButtonGroupOverrides {
|
|
20
20
|
Root?: Override<any>;
|
|
@@ -25,16 +25,16 @@ export interface ButtonGroupProps {
|
|
|
25
25
|
'aria-label'?: string;
|
|
26
26
|
children: React.ReactNode;
|
|
27
27
|
disabled?: boolean;
|
|
28
|
-
mode?: MODE[keyof MODE];
|
|
28
|
+
mode?: typeof MODE[keyof typeof MODE];
|
|
29
29
|
onClick?: (event: React.MouseEvent<HTMLButtonElement>, index: number) => any;
|
|
30
30
|
overrides?: ButtonGroupOverrides;
|
|
31
31
|
selected?: number | number[];
|
|
32
|
-
shape?: SHAPE[keyof SHAPE];
|
|
33
|
-
size?: SIZE[keyof SIZE];
|
|
34
|
-
kind?: KIND[keyof KIND];
|
|
32
|
+
shape?: typeof SHAPE[keyof typeof SHAPE];
|
|
33
|
+
size?: typeof SIZE[keyof typeof SIZE];
|
|
34
|
+
kind?: typeof KIND[keyof typeof KIND];
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
export const ButtonGroup: React.FC<ButtonGroupProps>;
|
|
37
|
+
export declare const ButtonGroup: React.FC<ButtonGroupProps>;
|
|
38
38
|
|
|
39
39
|
export interface InitialState {
|
|
40
40
|
selected: number | number[];
|
|
@@ -47,21 +47,15 @@ export interface State {
|
|
|
47
47
|
export interface StatefulButtonGroupProps extends ButtonGroupProps {
|
|
48
48
|
initialState?: InitialState;
|
|
49
49
|
stateReducer?: (
|
|
50
|
-
stateType: STATE_CHANGE_TYPE,
|
|
50
|
+
stateType: typeof STATE_CHANGE_TYPE[keyof typeof STATE_CHANGE_TYPE],
|
|
51
51
|
nextState: State,
|
|
52
|
-
currentState: State
|
|
52
|
+
currentState: State
|
|
53
53
|
) => State;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
export const StatefulButtonGroup: React.FC<StatefulButtonGroupProps>;
|
|
56
|
+
export declare const StatefulButtonGroup: React.FC<StatefulButtonGroupProps>;
|
|
57
57
|
|
|
58
|
-
export class StatefulContainer extends React.Component<
|
|
59
|
-
StatefulButtonGroupProps,
|
|
60
|
-
State
|
|
61
|
-
> {
|
|
58
|
+
export class StatefulContainer extends React.Component<StatefulButtonGroupProps, State> {
|
|
62
59
|
changeState(nextState: State): void;
|
|
63
60
|
onClick(event: React.MouseEvent<HTMLButtonElement>, index: number): void;
|
|
64
61
|
}
|
|
65
|
-
|
|
66
|
-
export const MODE: MODE;
|
|
67
|
-
export const STATE_CHANGE_TYPE: STATE_CHANGE_TYPE;
|