baseui 11.1.1 → 11.2.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/accordion/index.d.ts +7 -7
- package/app-nav-bar/styled-components.js +43 -9
- package/app-nav-bar/styled-components.js.flow +41 -8
- package/avatar/index.d.ts +3 -3
- package/badge/index.d.ts +20 -25
- package/banner/index.d.ts +22 -27
- package/breadcrumbs/index.d.ts +2 -2
- package/button/index.d.ts +6 -6
- package/button-group/index.d.ts +1 -1
- package/card/index.d.ts +8 -8
- package/checkbox/index.d.ts +7 -7
- package/dnd-list/index.d.ts +6 -6
- package/drawer/index.d.ts +5 -5
- package/es/app-nav-bar/styled-components.js +41 -9
- package/es/file-uploader/file-uploader.js +8 -5
- package/es/map-marker/index.js +1 -1
- package/es/themes/shared/borders.js +1 -1
- package/esm/app-nav-bar/styled-components.js +42 -9
- package/esm/file-uploader/file-uploader.js +23 -8
- package/esm/map-marker/index.js +1 -1
- package/esm/themes/shared/borders.js +1 -1
- package/file-uploader/file-uploader.js +23 -8
- package/file-uploader/file-uploader.js.flow +18 -5
- package/file-uploader/index.d.ts +5 -5
- package/file-uploader/types.js.flow +3 -0
- package/form-control/index.d.ts +3 -3
- package/header-navigation/index.d.ts +3 -3
- package/helper/index.d.ts +2 -2
- package/icon/index.d.ts +1 -1
- package/input/index.d.ts +6 -6
- package/layout-grid/index.d.ts +2 -2
- package/link/index.d.ts +1 -1
- package/list/index.d.ts +14 -11
- package/map-marker/index.js +6 -0
- package/map-marker/index.js.flow +1 -0
- package/menu/index.d.ts +10 -10
- package/modal/index.d.ts +7 -7
- package/package.json +4 -7
- package/pagination/index.d.ts +3 -3
- package/payment-card/index.d.ts +1 -1
- package/phone-input/index.d.ts +9 -9
- package/popover/index.d.ts +4 -4
- package/progress-bar/index.d.ts +6 -6
- package/progress-steps/index.d.ts +11 -11
- package/radio/index.d.ts +7 -7
- package/rating/index.d.ts +3 -3
- package/select/index.d.ts +16 -16
- package/side-navigation/index.d.ts +5 -5
- package/slider/index.d.ts +8 -8
- package/spinner/index.d.ts +1 -1
- package/styles/index.d.ts +8 -12
- package/table/index.d.ts +12 -12
- package/table-grid/index.d.ts +3 -3
- package/table-semantic/index.d.ts +14 -14
- package/tabs/index.d.ts +4 -4
- package/tabs-motion/index.d.ts +7 -7
- package/tag/index.d.ts +3 -3
- package/textarea/index.d.ts +2 -2
- package/themes/shared/borders.js +1 -1
- package/themes/shared/borders.js.flow +1 -1
- package/toast/index.d.ts +3 -3
- package/tooltip/index.d.ts +3 -3
- package/tree-view/index.d.ts +4 -4
|
@@ -11,6 +11,7 @@ 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
13
|
import { styled, withStyle } from '../styles/index.js';
|
|
14
|
+
import { getMediaQueries } from '../helpers/responsive-helpers.js';
|
|
14
15
|
import { StyledListItem } from '../menu/index.js';
|
|
15
16
|
import { KIND } from './constants.js';
|
|
16
17
|
var StyledButton = styled('button', function (_ref) {
|
|
@@ -46,10 +47,46 @@ var StyledButton = styled('button', function (_ref) {
|
|
|
46
47
|
StyledButton.displayName = "StyledButton";
|
|
47
48
|
export var StyledRoot = styled('div', function (props) {
|
|
48
49
|
var $theme = props.$theme;
|
|
49
|
-
|
|
50
|
+
var mediaQueries = getMediaQueries($theme.breakpoints);
|
|
51
|
+
var breakpoints = Object.values($theme.breakpoints).sort();
|
|
52
|
+
var margins = [];
|
|
53
|
+
|
|
54
|
+
if (Array.isArray($theme.grid.margins)) {
|
|
55
|
+
for (var i = 0; i < breakpoints.length; i++) {
|
|
56
|
+
var margin = $theme.grid.margins[i];
|
|
57
|
+
|
|
58
|
+
if (margin == null) {
|
|
59
|
+
margins.push($theme.grid.margins[$theme.grid.margins.length - 1]);
|
|
60
|
+
} else {
|
|
61
|
+
margins.push(margin);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
} else {
|
|
65
|
+
for (var _i = 0; _i < breakpoints.length; _i++) {
|
|
66
|
+
margins.push($theme.grid.margins);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
var style = _objectSpread(_objectSpread({}, $theme.typography.font300), {}, {
|
|
50
71
|
boxSizing: 'border-box',
|
|
51
|
-
backgroundColor: $theme.colors.backgroundPrimary
|
|
72
|
+
backgroundColor: $theme.colors.backgroundPrimary,
|
|
73
|
+
borderBottomWidth: '1px',
|
|
74
|
+
borderBottomStyle: 'solid',
|
|
75
|
+
borderBottomColor: "".concat($theme.colors.borderOpaque),
|
|
76
|
+
paddingInlineStart: margins[0] + 'px',
|
|
77
|
+
paddingInlineEnd: margins[0] + 'px'
|
|
52
78
|
});
|
|
79
|
+
|
|
80
|
+
for (var _i2 = 1; _i2 < mediaQueries.length; _i2++) {
|
|
81
|
+
var _margin = Array.isArray($theme.grid.margins) ? $theme.grid.margins[_i2] : $theme.grid.margins;
|
|
82
|
+
|
|
83
|
+
style[mediaQueries[_i2]] = {
|
|
84
|
+
paddingInlineStart: _margin + 'px',
|
|
85
|
+
paddingInlineEnd: _margin + 'px'
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return style;
|
|
53
90
|
});
|
|
54
91
|
StyledRoot.displayName = "StyledRoot";
|
|
55
92
|
export var StyledSubnavContainer = styled('div', {});
|
|
@@ -156,7 +193,7 @@ export var StyledSecondaryMenuContainer = styled('div', function (_ref6) {
|
|
|
156
193
|
flexWrap: 'nowrap',
|
|
157
194
|
justifyContent: 'flex-start',
|
|
158
195
|
margin: 'auto',
|
|
159
|
-
maxWidth: "".concat($theme.
|
|
196
|
+
maxWidth: "".concat($theme.grid.maxWidth, "px"),
|
|
160
197
|
alignItems: 'stretch',
|
|
161
198
|
overflow: 'auto'
|
|
162
199
|
};
|
|
@@ -208,11 +245,7 @@ export var StyledUserProfileInfoContainer = styled('div', function (_ref10) {
|
|
|
208
245
|
StyledUserProfileInfoContainer.displayName = "StyledUserProfileInfoContainer";
|
|
209
246
|
export var StyledDesktopMenuContainer = styled('div', function (_ref11) {
|
|
210
247
|
var $theme = _ref11.$theme;
|
|
211
|
-
return {
|
|
212
|
-
borderBottomWidth: '1px',
|
|
213
|
-
borderBottomStyle: 'solid',
|
|
214
|
-
borderBottomColor: "".concat($theme.colors.borderOpaque)
|
|
215
|
-
};
|
|
248
|
+
return {};
|
|
216
249
|
});
|
|
217
250
|
StyledDesktopMenuContainer.displayName = "StyledDesktopMenuContainer";
|
|
218
251
|
export var StyledDesktopMenu = styled('div', function (_ref12) {
|
|
@@ -222,7 +255,7 @@ export var StyledDesktopMenu = styled('div', function (_ref12) {
|
|
|
222
255
|
display: 'flex',
|
|
223
256
|
justifyContent: 'space-between',
|
|
224
257
|
margin: 'auto',
|
|
225
|
-
maxWidth: "".concat($theme.
|
|
258
|
+
maxWidth: "".concat($theme.grid.maxWidth, "px"),
|
|
226
259
|
paddingBlockStart: '18px',
|
|
227
260
|
paddingBlockEnd: '18px'
|
|
228
261
|
};
|
|
@@ -88,10 +88,25 @@ function FileUploader(props) {
|
|
|
88
88
|
ButtonComponent = _getOverrides14[0],
|
|
89
89
|
buttonProps = _getOverrides14[1];
|
|
90
90
|
|
|
91
|
-
var _getOverrides15 = getOverrides(overrides.
|
|
91
|
+
var _getOverrides15 = getOverrides(overrides.RetryButtonComponent, Button),
|
|
92
92
|
_getOverrides16 = _slicedToArray(_getOverrides15, 2),
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
RetryButtonComponent = _getOverrides16[0],
|
|
94
|
+
retryButtonProps = _getOverrides16[1];
|
|
95
|
+
|
|
96
|
+
var _getOverrides17 = getOverrides(overrides.CancelButtonComponent, Button),
|
|
97
|
+
_getOverrides18 = _slicedToArray(_getOverrides17, 2),
|
|
98
|
+
CancelButtonComponent = _getOverrides18[0],
|
|
99
|
+
cancelButtonProps = _getOverrides18[1];
|
|
100
|
+
|
|
101
|
+
var _getOverrides19 = getOverrides(overrides.Spinner, Spinner),
|
|
102
|
+
_getOverrides20 = _slicedToArray(_getOverrides19, 2),
|
|
103
|
+
SpinnerComponent = _getOverrides20[0],
|
|
104
|
+
spinnerProps = _getOverrides20[1];
|
|
105
|
+
|
|
106
|
+
var _getOverrides21 = getOverrides(overrides.ProgressBar, ProgressBar),
|
|
107
|
+
_getOverrides22 = _slicedToArray(_getOverrides21, 2),
|
|
108
|
+
ProgressBarComponent = _getOverrides22[0],
|
|
109
|
+
progressBarProps = _getOverrides22[1];
|
|
95
110
|
|
|
96
111
|
var afterFileDrop = !!(props.progressAmount || props.progressMessage || props.errorMessage);
|
|
97
112
|
return /*#__PURE__*/React.createElement(Dropzone, _extends({}, props, {
|
|
@@ -135,7 +150,7 @@ function FileUploader(props) {
|
|
|
135
150
|
}
|
|
136
151
|
}
|
|
137
152
|
}
|
|
138
|
-
}, prefixedStyledProps, buttonProps), locale.fileuploader.browseFiles)), afterFileDrop && /*#__PURE__*/React.createElement(React.Fragment, null, typeof props.progressAmount === 'number' ? /*#__PURE__*/React.createElement(
|
|
153
|
+
}, prefixedStyledProps, buttonProps), locale.fileuploader.browseFiles)), afterFileDrop && /*#__PURE__*/React.createElement(React.Fragment, null, typeof props.progressAmount === 'number' ? /*#__PURE__*/React.createElement(ProgressBarComponent, _extends({
|
|
139
154
|
value: props.progressAmount,
|
|
140
155
|
overrides: {
|
|
141
156
|
BarProgress: {
|
|
@@ -147,12 +162,12 @@ function FileUploader(props) {
|
|
|
147
162
|
}
|
|
148
163
|
}
|
|
149
164
|
}
|
|
150
|
-
}) : props.errorMessage ? null : /*#__PURE__*/React.createElement(SpinnerComponent, _extends({
|
|
165
|
+
}, progressBarProps)) : props.errorMessage ? null : /*#__PURE__*/React.createElement(SpinnerComponent, _extends({
|
|
151
166
|
$size: SPINNER_SIZE.medium,
|
|
152
167
|
$style: {
|
|
153
168
|
marginBottom: theme.sizing.scale300
|
|
154
169
|
}
|
|
155
|
-
}, 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(
|
|
170
|
+
}, 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(RetryButtonComponent, _extends({
|
|
156
171
|
kind: KIND.tertiary,
|
|
157
172
|
onClick: function onClick() {
|
|
158
173
|
props.onRetry && props.onRetry();
|
|
@@ -160,7 +175,7 @@ function FileUploader(props) {
|
|
|
160
175
|
"aria-invalid": Boolean(props.errorMessage),
|
|
161
176
|
"aria-describedby": props['aria-describedby'],
|
|
162
177
|
"aria-errormessage": props.errorMessage
|
|
163
|
-
}, locale.fileuploader.retry) : /*#__PURE__*/React.createElement(
|
|
178
|
+
}, retryButtonProps), locale.fileuploader.retry) : /*#__PURE__*/React.createElement(CancelButtonComponent, _extends({
|
|
164
179
|
kind: KIND.tertiary,
|
|
165
180
|
onClick: function onClick() {
|
|
166
181
|
props.onCancel && props.onCancel();
|
|
@@ -176,7 +191,7 @@ function FileUploader(props) {
|
|
|
176
191
|
}
|
|
177
192
|
}
|
|
178
193
|
}
|
|
179
|
-
}, locale.fileuploader.cancel))), /*#__PURE__*/React.createElement(HiddenInput, _extends({
|
|
194
|
+
}, cancelButtonProps), locale.fileuploader.cancel))), /*#__PURE__*/React.createElement(HiddenInput, _extends({
|
|
180
195
|
"aria-invalid": Boolean(props.errorMessage) || null,
|
|
181
196
|
"aria-describedby": props['aria-describedby'],
|
|
182
197
|
"aria-errormessage": props.errorMessage || null
|
package/esm/map-marker/index.js
CHANGED
|
@@ -6,4 +6,4 @@ LICENSE file in the root directory of this source tree.
|
|
|
6
6
|
*/
|
|
7
7
|
export { default as FixedMarker } from './fixed-marker.js';
|
|
8
8
|
export { default as FloatingMarker } from './floating-marker.js';
|
|
9
|
-
export { FLOATING_MARKER_ANCHOR_POSITIONS, FLOATING_MARKER_SIZES, FLOATING_MARKER_ANCHOR_TYPES, NEEDLE_SIZES, PINHEAD_SIZES_SHAPES, BADGE_ENHANCER_SIZES, LABEL_ENHANCER_POSITIONS, KIND } from './constants.js';
|
|
9
|
+
export { FLOATING_MARKER_ANCHOR_POSITIONS, FLOATING_MARKER_SIZES, FLOATING_MARKER_ANCHOR_TYPES, NEEDLE_SIZES, PINHEAD_SIZES_SHAPES, BADGE_ENHANCER_SIZES, LABEL_ENHANCER_POSITIONS, KIND, PINHEAD_DIMENSIONS } from './constants.js';
|
|
@@ -105,10 +105,25 @@ function FileUploader(props) {
|
|
|
105
105
|
ButtonComponent = _getOverrides14[0],
|
|
106
106
|
buttonProps = _getOverrides14[1];
|
|
107
107
|
|
|
108
|
-
var _getOverrides15 = (0, _overrides.getOverrides)(overrides.
|
|
108
|
+
var _getOverrides15 = (0, _overrides.getOverrides)(overrides.RetryButtonComponent, _index3.Button),
|
|
109
109
|
_getOverrides16 = _slicedToArray(_getOverrides15, 2),
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
RetryButtonComponent = _getOverrides16[0],
|
|
111
|
+
retryButtonProps = _getOverrides16[1];
|
|
112
|
+
|
|
113
|
+
var _getOverrides17 = (0, _overrides.getOverrides)(overrides.CancelButtonComponent, _index3.Button),
|
|
114
|
+
_getOverrides18 = _slicedToArray(_getOverrides17, 2),
|
|
115
|
+
CancelButtonComponent = _getOverrides18[0],
|
|
116
|
+
cancelButtonProps = _getOverrides18[1];
|
|
117
|
+
|
|
118
|
+
var _getOverrides19 = (0, _overrides.getOverrides)(overrides.Spinner, _index5.Spinner),
|
|
119
|
+
_getOverrides20 = _slicedToArray(_getOverrides19, 2),
|
|
120
|
+
SpinnerComponent = _getOverrides20[0],
|
|
121
|
+
spinnerProps = _getOverrides20[1];
|
|
122
|
+
|
|
123
|
+
var _getOverrides21 = (0, _overrides.getOverrides)(overrides.ProgressBar, _index4.ProgressBar),
|
|
124
|
+
_getOverrides22 = _slicedToArray(_getOverrides21, 2),
|
|
125
|
+
ProgressBarComponent = _getOverrides22[0],
|
|
126
|
+
progressBarProps = _getOverrides22[1];
|
|
112
127
|
|
|
113
128
|
var afterFileDrop = !!(props.progressAmount || props.progressMessage || props.errorMessage);
|
|
114
129
|
return /*#__PURE__*/React.createElement(_reactDropzone.default, _extends({}, props, {
|
|
@@ -152,7 +167,7 @@ function FileUploader(props) {
|
|
|
152
167
|
}
|
|
153
168
|
}
|
|
154
169
|
}
|
|
155
|
-
}, prefixedStyledProps, buttonProps), locale.fileuploader.browseFiles)), afterFileDrop && /*#__PURE__*/React.createElement(React.Fragment, null, typeof props.progressAmount === 'number' ? /*#__PURE__*/React.createElement(
|
|
170
|
+
}, prefixedStyledProps, buttonProps), locale.fileuploader.browseFiles)), afterFileDrop && /*#__PURE__*/React.createElement(React.Fragment, null, typeof props.progressAmount === 'number' ? /*#__PURE__*/React.createElement(ProgressBarComponent, _extends({
|
|
156
171
|
value: props.progressAmount,
|
|
157
172
|
overrides: {
|
|
158
173
|
BarProgress: {
|
|
@@ -164,12 +179,12 @@ function FileUploader(props) {
|
|
|
164
179
|
}
|
|
165
180
|
}
|
|
166
181
|
}
|
|
167
|
-
}) : props.errorMessage ? null : /*#__PURE__*/React.createElement(SpinnerComponent, _extends({
|
|
182
|
+
}, progressBarProps)) : props.errorMessage ? null : /*#__PURE__*/React.createElement(SpinnerComponent, _extends({
|
|
168
183
|
$size: _index5.SIZE.medium,
|
|
169
184
|
$style: {
|
|
170
185
|
marginBottom: theme.sizing.scale300
|
|
171
186
|
}
|
|
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(
|
|
187
|
+
}, 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(RetryButtonComponent, _extends({
|
|
173
188
|
kind: _index3.KIND.tertiary,
|
|
174
189
|
onClick: function onClick() {
|
|
175
190
|
props.onRetry && props.onRetry();
|
|
@@ -177,7 +192,7 @@ function FileUploader(props) {
|
|
|
177
192
|
"aria-invalid": Boolean(props.errorMessage),
|
|
178
193
|
"aria-describedby": props['aria-describedby'],
|
|
179
194
|
"aria-errormessage": props.errorMessage
|
|
180
|
-
}, locale.fileuploader.retry) : /*#__PURE__*/React.createElement(
|
|
195
|
+
}, retryButtonProps), locale.fileuploader.retry) : /*#__PURE__*/React.createElement(CancelButtonComponent, _extends({
|
|
181
196
|
kind: _index3.KIND.tertiary,
|
|
182
197
|
onClick: function onClick() {
|
|
183
198
|
props.onCancel && props.onCancel();
|
|
@@ -193,7 +208,7 @@ function FileUploader(props) {
|
|
|
193
208
|
}
|
|
194
209
|
}
|
|
195
210
|
}
|
|
196
|
-
}, locale.fileuploader.cancel))), /*#__PURE__*/React.createElement(HiddenInput, _extends({
|
|
211
|
+
}, cancelButtonProps), locale.fileuploader.cancel))), /*#__PURE__*/React.createElement(HiddenInput, _extends({
|
|
197
212
|
"aria-invalid": Boolean(props.errorMessage) || null,
|
|
198
213
|
"aria-describedby": props['aria-describedby'],
|
|
199
214
|
"aria-errormessage": props.errorMessage || null
|
|
@@ -58,7 +58,17 @@ 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 [RetryButtonComponent, retryButtonProps] = getOverrides(
|
|
62
|
+
overrides.RetryButtonComponent,
|
|
63
|
+
Button
|
|
64
|
+
);
|
|
65
|
+
const [CancelButtonComponent, cancelButtonProps] = getOverrides(
|
|
66
|
+
overrides.CancelButtonComponent,
|
|
67
|
+
Button
|
|
68
|
+
);
|
|
69
|
+
|
|
61
70
|
const [SpinnerComponent, spinnerProps] = getOverrides(overrides.Spinner, Spinner);
|
|
71
|
+
const [ProgressBarComponent, progressBarProps] = getOverrides(overrides.ProgressBar, ProgressBar);
|
|
62
72
|
|
|
63
73
|
const afterFileDrop = !!(props.progressAmount || props.progressMessage || props.errorMessage);
|
|
64
74
|
|
|
@@ -130,7 +140,7 @@ function FileUploader(props: PropsT) {
|
|
|
130
140
|
* future. We do not want to flash the spinner in this case.
|
|
131
141
|
*/}
|
|
132
142
|
{typeof props.progressAmount === 'number' ? (
|
|
133
|
-
<
|
|
143
|
+
<ProgressBarComponent
|
|
134
144
|
value={props.progressAmount}
|
|
135
145
|
overrides={{
|
|
136
146
|
BarProgress: {
|
|
@@ -141,6 +151,7 @@ function FileUploader(props: PropsT) {
|
|
|
141
151
|
}),
|
|
142
152
|
},
|
|
143
153
|
}}
|
|
154
|
+
{...progressBarProps}
|
|
144
155
|
/>
|
|
145
156
|
) : props.errorMessage ? null : (
|
|
146
157
|
<SpinnerComponent
|
|
@@ -159,7 +170,7 @@ function FileUploader(props: PropsT) {
|
|
|
159
170
|
</ContentMessage>
|
|
160
171
|
)}
|
|
161
172
|
{props.errorMessage ? (
|
|
162
|
-
<
|
|
173
|
+
<RetryButtonComponent
|
|
163
174
|
kind={KIND.tertiary}
|
|
164
175
|
onClick={() => {
|
|
165
176
|
props.onRetry && props.onRetry();
|
|
@@ -167,11 +178,12 @@ function FileUploader(props: PropsT) {
|
|
|
167
178
|
aria-invalid={Boolean(props.errorMessage)}
|
|
168
179
|
aria-describedby={props['aria-describedby']}
|
|
169
180
|
aria-errormessage={props.errorMessage}
|
|
181
|
+
{...retryButtonProps}
|
|
170
182
|
>
|
|
171
183
|
{locale.fileuploader.retry}
|
|
172
|
-
</
|
|
184
|
+
</RetryButtonComponent>
|
|
173
185
|
) : (
|
|
174
|
-
<
|
|
186
|
+
<CancelButtonComponent
|
|
175
187
|
kind={KIND.tertiary}
|
|
176
188
|
onClick={() => {
|
|
177
189
|
props.onCancel && props.onCancel();
|
|
@@ -184,9 +196,10 @@ function FileUploader(props: PropsT) {
|
|
|
184
196
|
}),
|
|
185
197
|
},
|
|
186
198
|
}}
|
|
199
|
+
{...cancelButtonProps}
|
|
187
200
|
>
|
|
188
201
|
{locale.fileuploader.cancel}
|
|
189
|
-
</
|
|
202
|
+
</CancelButtonComponent>
|
|
190
203
|
)}
|
|
191
204
|
</React.Fragment>
|
|
192
205
|
)}
|
package/file-uploader/index.d.ts
CHANGED
|
@@ -69,8 +69,8 @@ export interface FileUploaderProps {
|
|
|
69
69
|
}
|
|
70
70
|
export declare const FileUploader: React.FC<FileUploaderProps>;
|
|
71
71
|
|
|
72
|
-
export declare const StyledRoot: StyletronComponent<any>;
|
|
73
|
-
export declare const StyledFileDragAndDrop: StyletronComponent<any>;
|
|
74
|
-
export declare const StyledContentMessage: StyletronComponent<any>;
|
|
75
|
-
export declare const StyledErrorMessage: StyletronComponent<any>;
|
|
76
|
-
export declare const StyledHiddenInput: StyletronComponent<any>;
|
|
72
|
+
export declare const StyledRoot: StyletronComponent<any, any>;
|
|
73
|
+
export declare const StyledFileDragAndDrop: StyletronComponent<any, any>;
|
|
74
|
+
export declare const StyledContentMessage: StyletronComponent<any, any>;
|
|
75
|
+
export declare const StyledErrorMessage: StyletronComponent<any, any>;
|
|
76
|
+
export declare const StyledHiddenInput: StyletronComponent<any, any>;
|
|
@@ -26,7 +26,10 @@ export type OverridesT = {
|
|
|
26
26
|
ProgressMessage?: OverrideT,
|
|
27
27
|
ErrorMessage?: OverrideT,
|
|
28
28
|
ButtonComponent?: OverrideT,
|
|
29
|
+
CancelButtonComponent?: OverrideT,
|
|
30
|
+
RetryButtonComponent?: OverrideT,
|
|
29
31
|
Spinner?: OverrideT,
|
|
32
|
+
ProgressBar?: OverrideT,
|
|
30
33
|
};
|
|
31
34
|
|
|
32
35
|
export type PropsT = {|
|
package/form-control/index.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import * as React from 'react';
|
|
|
2
2
|
import { StyletronComponent } from 'styletron-react';
|
|
3
3
|
import { Override } from '../overrides';
|
|
4
4
|
|
|
5
|
-
export declare const StyledLabel: StyletronComponent<any>;
|
|
6
|
-
export declare const StyledCaption: StyletronComponent<any>;
|
|
7
|
-
export declare const StyledControlContainer: StyletronComponent<any>;
|
|
5
|
+
export declare const StyledLabel: StyletronComponent<any, any>;
|
|
6
|
+
export declare const StyledCaption: StyletronComponent<any, any>;
|
|
7
|
+
export declare const StyledControlContainer: StyletronComponent<any, any>;
|
|
8
8
|
|
|
9
9
|
export interface FormControlOverrides {
|
|
10
10
|
Label?: Override<any>;
|
|
@@ -19,6 +19,6 @@ export interface HeaderNavigationProps {
|
|
|
19
19
|
|
|
20
20
|
export class HeaderNavigation extends React.Component<HeaderNavigationProps> {}
|
|
21
21
|
|
|
22
|
-
export declare const StyledRoot: StyletronComponent<any>;
|
|
23
|
-
export declare const StyledNavigationItem: StyletronComponent<any>;
|
|
24
|
-
export declare const StyledNavigationList: StyletronComponent<any>;
|
|
22
|
+
export declare const StyledRoot: StyletronComponent<any, any>;
|
|
23
|
+
export declare const StyledNavigationItem: StyletronComponent<any, any>;
|
|
24
|
+
export declare const StyledNavigationList: StyletronComponent<any, any>;
|
package/helper/index.d.ts
CHANGED
|
@@ -22,8 +22,8 @@ export type HelperStepsPropsT = {
|
|
|
22
22
|
|
|
23
23
|
export { ACCESSIBILITY_TYPE, PLACEMENT, TRIGGER_TYPE };
|
|
24
24
|
|
|
25
|
-
export declare const StyledArrow: StyletronComponent<any>;
|
|
26
|
-
export declare const StyledBody: StyletronComponent<any>;
|
|
25
|
+
export declare const StyledArrow: StyletronComponent<any, any>;
|
|
26
|
+
export declare const StyledBody: StyletronComponent<any, any>;
|
|
27
27
|
|
|
28
28
|
export declare const Unstable_Helper: React.FC<PropsT>;
|
|
29
29
|
export declare const Unstable_StatefulHelper: React.FC<StatefulPropsT>;
|
package/icon/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export interface IconProps {
|
|
|
21
21
|
|
|
22
22
|
export declare const Icon: React.FC<IconProps>;
|
|
23
23
|
|
|
24
|
-
export declare const StyledSvg: StyletronComponent<any>;
|
|
24
|
+
export declare const StyledSvg: StyletronComponent<any, any>;
|
|
25
25
|
|
|
26
26
|
export declare const Alert: React.FC<IconProps>;
|
|
27
27
|
export declare const ArrowDown: React.FC<IconProps>;
|
package/input/index.d.ts
CHANGED
|
@@ -154,9 +154,9 @@ export type StatefulInputProps = InputProps & StatefulContainerProps & { childre
|
|
|
154
154
|
export declare const StatefulInput: React.FC<StatefulInputProps>;
|
|
155
155
|
export declare const StatefulContainer: React.FC<StatefulContainerProps>;
|
|
156
156
|
|
|
157
|
-
export declare const StyledRoot: StyletronComponent<any>;
|
|
158
|
-
export declare const StyledInputEnhancer: StyletronComponent<any>;
|
|
159
|
-
export declare const StyledStartEnhancer: StyletronComponent<any>;
|
|
160
|
-
export declare const StyledEndEnhancer: StyletronComponent<any>;
|
|
161
|
-
export declare const StyledInputContainer: StyletronComponent<any>;
|
|
162
|
-
export declare const StyledInput: StyletronComponent<any>;
|
|
157
|
+
export declare const StyledRoot: StyletronComponent<any, any>;
|
|
158
|
+
export declare const StyledInputEnhancer: StyletronComponent<any, any>;
|
|
159
|
+
export declare const StyledStartEnhancer: StyletronComponent<any, any>;
|
|
160
|
+
export declare const StyledEndEnhancer: StyletronComponent<any, any>;
|
|
161
|
+
export declare const StyledInputContainer: StyletronComponent<any, any>;
|
|
162
|
+
export declare const StyledInput: StyletronComponent<any, any>;
|
package/layout-grid/index.d.ts
CHANGED
|
@@ -94,5 +94,5 @@ export type StyledCellProps = {
|
|
|
94
94
|
|
|
95
95
|
export declare const Grid: React.FunctionComponent<GridProps>;
|
|
96
96
|
export declare const Cell: React.FunctionComponent<CellProps>;
|
|
97
|
-
export declare const StyledGrid: StyletronComponent<StyledGridProps>;
|
|
98
|
-
export declare const StyledCell: StyletronComponent<StyledCellProps>;
|
|
97
|
+
export declare const StyledGrid: StyletronComponent<any, StyledGridProps>;
|
|
98
|
+
export declare const StyledCell: StyletronComponent<any, StyledCellProps>;
|
package/link/index.d.ts
CHANGED
package/list/index.d.ts
CHANGED
|
@@ -73,10 +73,10 @@ export declare const ListItem: React.ForwardRefExoticComponent<
|
|
|
73
73
|
export declare const ListItemLabel: React.FC<LabelPropsT>;
|
|
74
74
|
export declare const MenuAdapter: React.FC<MenuAdapterPropsT>;
|
|
75
75
|
|
|
76
|
-
export declare const StyledRoot: StyletronComponent<{}>;
|
|
77
|
-
export declare const StyledContent: StyletronComponent<StyledContentPropsT>;
|
|
78
|
-
export declare const StyledEndEnhancerContainer: StyletronComponent<{}>;
|
|
79
|
-
export declare const StyledArtworkContainer: StyletronComponent<StyledArtworkContainerPropsT>;
|
|
76
|
+
export declare const StyledRoot: StyletronComponent<any, {}>;
|
|
77
|
+
export declare const StyledContent: StyletronComponent<any, StyledContentPropsT>;
|
|
78
|
+
export declare const StyledEndEnhancerContainer: StyletronComponent<any, {}>;
|
|
79
|
+
export declare const StyledArtworkContainer: StyletronComponent<any, StyledArtworkContainerPropsT>;
|
|
80
80
|
|
|
81
81
|
export interface HeadingPropsT {
|
|
82
82
|
heading: React.ReactNode;
|
|
@@ -99,10 +99,13 @@ export declare const ListHeading: React.ForwardRefExoticComponent<
|
|
|
99
99
|
HeadingPropsT & React.RefAttributes<HTMLLIElement>
|
|
100
100
|
>;
|
|
101
101
|
|
|
102
|
-
export declare const StyledHeadingRoot: StyletronComponent<{}>;
|
|
103
|
-
export declare const StyledHeadingContent: StyletronComponent<{}>;
|
|
104
|
-
export declare const StyledHeadingContentRow: StyletronComponent<{}>;
|
|
105
|
-
export declare const StyledHeadingMainHeading: StyletronComponent<StyledHeadingHeadingPropsT>;
|
|
106
|
-
export declare const StyledHeadingSubHeading: StyletronComponent<StyledHeadingHeadingPropsT>;
|
|
107
|
-
export declare const StyledHeadingEndEnhancerContainer: StyletronComponent<
|
|
108
|
-
|
|
102
|
+
export declare const StyledHeadingRoot: StyletronComponent<any, {}>;
|
|
103
|
+
export declare const StyledHeadingContent: StyletronComponent<any, {}>;
|
|
104
|
+
export declare const StyledHeadingContentRow: StyletronComponent<any, {}>;
|
|
105
|
+
export declare const StyledHeadingMainHeading: StyletronComponent<any, StyledHeadingHeadingPropsT>;
|
|
106
|
+
export declare const StyledHeadingSubHeading: StyletronComponent<any, StyledHeadingHeadingPropsT>;
|
|
107
|
+
export declare const StyledHeadingEndEnhancerContainer: StyletronComponent<
|
|
108
|
+
any,
|
|
109
|
+
StyledHeadingEndEnhancerContainerPropsT
|
|
110
|
+
>;
|
|
111
|
+
export declare const StyledHeadingEndEnhancerDescriptionContainer: StyletronComponent<any, {}>;
|
package/map-marker/index.js
CHANGED
|
@@ -63,6 +63,12 @@ Object.defineProperty(exports, "KIND", {
|
|
|
63
63
|
return _constants.KIND;
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
|
+
Object.defineProperty(exports, "PINHEAD_DIMENSIONS", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function get() {
|
|
69
|
+
return _constants.PINHEAD_DIMENSIONS;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
66
72
|
|
|
67
73
|
var _fixedMarker = _interopRequireDefault(require("./fixed-marker.js"));
|
|
68
74
|
|
package/map-marker/index.js.flow
CHANGED
package/menu/index.d.ts
CHANGED
|
@@ -200,13 +200,13 @@ export class NestedMenus extends React.Component<NestedMenuProps, NestedMenuStat
|
|
|
200
200
|
isNestedMenuVisible(ref: React.Ref<HTMLElement>): boolean;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
export declare const StyledEmptyState: StyletronComponent<any>;
|
|
204
|
-
export declare const StyledList: StyletronComponent<any>;
|
|
205
|
-
export declare const StyledListItem: StyletronComponent<any>;
|
|
206
|
-
export declare const StyledListItemProfile: StyletronComponent<any>;
|
|
207
|
-
export declare const StyledProfileImgContainer: StyletronComponent<any>;
|
|
208
|
-
export declare const StyledProfileImg: StyletronComponent<any>;
|
|
209
|
-
export declare const StyledProfileLabelsContainer: StyletronComponent<any>;
|
|
210
|
-
export declare const StyledProfileTitle: StyletronComponent<any>;
|
|
211
|
-
export declare const StyledProfileSubtitle: StyletronComponent<any>;
|
|
212
|
-
export declare const StyledProfileBody: StyletronComponent<any>;
|
|
203
|
+
export declare const StyledEmptyState: StyletronComponent<any, any>;
|
|
204
|
+
export declare const StyledList: StyletronComponent<any, any>;
|
|
205
|
+
export declare const StyledListItem: StyletronComponent<any, any>;
|
|
206
|
+
export declare const StyledListItemProfile: StyletronComponent<any, any>;
|
|
207
|
+
export declare const StyledProfileImgContainer: StyletronComponent<any, any>;
|
|
208
|
+
export declare const StyledProfileImg: StyletronComponent<any, any>;
|
|
209
|
+
export declare const StyledProfileLabelsContainer: StyletronComponent<any, any>;
|
|
210
|
+
export declare const StyledProfileTitle: StyletronComponent<any, any>;
|
|
211
|
+
export declare const StyledProfileSubtitle: StyletronComponent<any, any>;
|
|
212
|
+
export declare const StyledProfileBody: StyletronComponent<any, any>;
|
package/modal/index.d.ts
CHANGED
|
@@ -85,10 +85,10 @@ export class ModalButton extends React.Component<ButtonProps & { autoFocus?: boo
|
|
|
85
85
|
|
|
86
86
|
export class FocusOnce extends React.Component<{ children: React.ReactNode }> {}
|
|
87
87
|
|
|
88
|
-
export declare const StyledRoot: StyletronComponent<any>;
|
|
89
|
-
export declare const StyledDialog: StyletronComponent<any>;
|
|
90
|
-
export declare const StyledDialogContainer: StyletronComponent<any>;
|
|
91
|
-
export declare const StyledClose: StyletronComponent<any>;
|
|
92
|
-
export declare const ModalHeader: StyletronComponent<any>;
|
|
93
|
-
export declare const ModalBody: StyletronComponent<any>;
|
|
94
|
-
export declare const ModalFooter: StyletronComponent<any>;
|
|
88
|
+
export declare const StyledRoot: StyletronComponent<any, any>;
|
|
89
|
+
export declare const StyledDialog: StyletronComponent<any, any>;
|
|
90
|
+
export declare const StyledDialogContainer: StyletronComponent<any, any>;
|
|
91
|
+
export declare const StyledClose: StyletronComponent<any, any>;
|
|
92
|
+
export declare const ModalHeader: StyletronComponent<any, any>;
|
|
93
|
+
export declare const ModalBody: StyletronComponent<any, any>;
|
|
94
|
+
export declare const ModalFooter: StyletronComponent<any, any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "baseui",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.2.1",
|
|
4
4
|
"description": "A React Component library implementing the Base design language",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -109,9 +109,6 @@
|
|
|
109
109
|
"@types/react-dom": "^16.8.4",
|
|
110
110
|
"@types/react-virtualized": "^9.21.3",
|
|
111
111
|
"@types/react-window": "^1.8.1",
|
|
112
|
-
"@types/styletron-engine-atomic": "^1.1.1",
|
|
113
|
-
"@types/styletron-react": "^5.0.3",
|
|
114
|
-
"@types/styletron-standard": "^2.0.2",
|
|
115
112
|
"@types/webpack": "^4.41.32",
|
|
116
113
|
"@typescript-eslint/eslint-plugin": "^5.26.0",
|
|
117
114
|
"@typescript-eslint/parser": "^5.26.0",
|
|
@@ -193,9 +190,9 @@
|
|
|
193
190
|
"semver": "^6.2.0",
|
|
194
191
|
"shx": "^0.3.2",
|
|
195
192
|
"static-server": "^2.2.1",
|
|
196
|
-
"styletron-engine-atomic": "^1.
|
|
197
|
-
"styletron-react": "^
|
|
198
|
-
"styletron-standard": "^3.0.
|
|
193
|
+
"styletron-engine-atomic": "^1.5.0-beta.2",
|
|
194
|
+
"styletron-react": "^6.1.0-beta.2",
|
|
195
|
+
"styletron-standard": "^3.1.0-beta.2",
|
|
199
196
|
"tar": "^5.0.0",
|
|
200
197
|
"tsconfig-paths": "^3.9.0",
|
|
201
198
|
"typescript": "^4.7.2",
|
package/pagination/index.d.ts
CHANGED
|
@@ -87,6 +87,6 @@ export class StatefulContainer extends React.Component<StatefulContainerProps, S
|
|
|
87
87
|
onPageChange(args: { nextPage: number }): void;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
export declare const StyledRoot: StyletronComponent<any>;
|
|
91
|
-
export declare const StyledMaxLabel: StyletronComponent<any>;
|
|
92
|
-
export declare const StyledDropdownContainer: StyletronComponent<any>;
|
|
90
|
+
export declare const StyledRoot: StyletronComponent<any, any>;
|
|
91
|
+
export declare const StyledMaxLabel: StyletronComponent<any, any>;
|
|
92
|
+
export declare const StyledDropdownContainer: StyletronComponent<any, any>;
|
package/payment-card/index.d.ts
CHANGED
|
@@ -25,4 +25,4 @@ export type StatefulPaymentCardProps = InputProps &
|
|
|
25
25
|
export declare const StatefulPaymentCard: React.FC<StatefulPaymentCardProps>;
|
|
26
26
|
export class PaymentCard extends React.Component<PaymentCardProps> {}
|
|
27
27
|
|
|
28
|
-
export declare const StyledIconWrapper: StyletronComponent<any>;
|
|
28
|
+
export declare const StyledIconWrapper: StyletronComponent<any, any>;
|
package/phone-input/index.d.ts
CHANGED
|
@@ -426,15 +426,15 @@ export interface FlagProps {
|
|
|
426
426
|
}
|
|
427
427
|
export declare const Flag: React.FC<FlagProps>;
|
|
428
428
|
|
|
429
|
-
export declare const StyledFlag: StyletronComponent<any>;
|
|
430
|
-
export declare const StyledRoot: StyletronComponent<any>;
|
|
431
|
-
export declare const StyledDialCode: StyletronComponent<any>;
|
|
432
|
-
export declare const StyledCountrySelectContainer: StyletronComponent<any>;
|
|
433
|
-
export declare const StyledCountrySelectDropdownContainer: StyletronComponent<any>;
|
|
434
|
-
export declare const StyledCountrySelectDropdownListItem: StyletronComponent<any>;
|
|
435
|
-
export declare const StyledCountrySelectDropdownFlagColumn: StyletronComponent<any>;
|
|
436
|
-
export declare const StyledCountrySelectDropdownNameColumn: StyletronComponent<any>;
|
|
437
|
-
export declare const StyledCountrySelectDropdownDialcodeColumn: StyletronComponent<any>;
|
|
429
|
+
export declare const StyledFlag: StyletronComponent<any, any>;
|
|
430
|
+
export declare const StyledRoot: StyletronComponent<any, any>;
|
|
431
|
+
export declare const StyledDialCode: StyletronComponent<any, any>;
|
|
432
|
+
export declare const StyledCountrySelectContainer: StyletronComponent<any, any>;
|
|
433
|
+
export declare const StyledCountrySelectDropdownContainer: StyletronComponent<any, any>;
|
|
434
|
+
export declare const StyledCountrySelectDropdownListItem: StyletronComponent<any, any>;
|
|
435
|
+
export declare const StyledCountrySelectDropdownFlagColumn: StyletronComponent<any, any>;
|
|
436
|
+
export declare const StyledCountrySelectDropdownNameColumn: StyletronComponent<any, any>;
|
|
437
|
+
export declare const StyledCountrySelectDropdownDialcodeColumn: StyletronComponent<any, any>;
|
|
438
438
|
|
|
439
439
|
export declare const DEFAULT_MAX_DROPDOWN_WIDTH: '400px';
|
|
440
440
|
export declare const DEFAULT_MAX_DROPDOWN_HEIGHT: '400px';
|
package/popover/index.d.ts
CHANGED
|
@@ -177,10 +177,10 @@ export class Popover extends React.Component<PopoverProps, PopoverPrivateState>
|
|
|
177
177
|
renderPopover(): React.ReactNode;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
export declare const StyledArrow: StyletronComponent<any>;
|
|
181
|
-
export declare const StyledBody: StyletronComponent<any>;
|
|
182
|
-
export declare const StyledInner: StyletronComponent<any>;
|
|
183
|
-
export declare const StyledPadding: StyletronComponent<any>;
|
|
180
|
+
export declare const StyledArrow: StyletronComponent<any, any>;
|
|
181
|
+
export declare const StyledBody: StyletronComponent<any, any>;
|
|
182
|
+
export declare const StyledInner: StyletronComponent<any, any>;
|
|
183
|
+
export declare const StyledPadding: StyletronComponent<any, any>;
|
|
184
184
|
|
|
185
185
|
export declare const POPOVER_MARGIN: 8;
|
|
186
186
|
export declare const ARROW_SIZE: 6;
|