baseui 11.0.1 → 11.1.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/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/calendar.js +16 -11
- package/datepicker/calendar.js.flow +12 -9
- package/datepicker/datepicker.js +58 -58
- package/datepicker/datepicker.js.flow +51 -34
- package/datepicker/index.d.ts +42 -63
- package/datepicker/stateful-calendar.js +6 -1
- package/datepicker/stateful-calendar.js.flow +8 -1
- package/datepicker/stateful-container.js +23 -2
- package/datepicker/stateful-container.js.flow +17 -4
- package/datepicker/stateful-datepicker.js +6 -1
- package/datepicker/stateful-datepicker.js.flow +7 -1
- package/datepicker/types.js.flow +21 -43
- 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/calendar.js +15 -10
- package/es/datepicker/datepicker.js +52 -52
- package/es/datepicker/stateful-calendar.js +6 -1
- package/es/datepicker/stateful-container.js +22 -2
- package/es/datepicker/stateful-datepicker.js +6 -1
- package/es/datepicker/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 +48 -23
- package/es/select/utils/default-filter-options.js +1 -1
- package/es/snackbar/snackbar-context.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/calendar.js +16 -11
- package/esm/datepicker/datepicker.js +58 -58
- package/esm/datepicker/stateful-calendar.js +6 -1
- package/esm/datepicker/stateful-container.js +23 -2
- package/esm/datepicker/stateful-datepicker.js +6 -1
- package/esm/datepicker/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 +85 -59
- package/esm/select/utils/default-filter-options.js +1 -1
- package/esm/snackbar/snackbar-context.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 +82 -56
- package/select/select-component.js.flow +46 -34
- 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/snackbar/snackbar-context.js +1 -1
- package/snackbar/snackbar-context.js.flow +1 -1
- 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/tag/types.js.flow +1 -1
- 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
|
@@ -13,8 +13,16 @@ var _styledComponents = require("./styled-components.js");
|
|
|
13
13
|
|
|
14
14
|
var _overrides = require("../helpers/overrides.js");
|
|
15
15
|
|
|
16
|
+
var _blank = _interopRequireDefault(require("../icon/blank.js"));
|
|
17
|
+
|
|
18
|
+
var _chevronDown = _interopRequireDefault(require("../icon/chevron-down.js"));
|
|
19
|
+
|
|
20
|
+
var _chevronUp = _interopRequireDefault(require("../icon/chevron-up.js"));
|
|
21
|
+
|
|
16
22
|
var _focusVisible = require("../utils/focusVisible.js");
|
|
17
23
|
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
+
|
|
18
26
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
19
27
|
|
|
20
28
|
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; }
|
|
@@ -175,20 +183,25 @@ var TableBuilder = /*#__PURE__*/function (_React$Component) {
|
|
|
175
183
|
TableEmptyMessage = _getOverrides22[0],
|
|
176
184
|
tableEmptyMessageProps = _getOverrides22[1];
|
|
177
185
|
|
|
178
|
-
var _getOverrides23 = (0, _overrides.getOverrides)(overrides.
|
|
186
|
+
var _getOverrides23 = (0, _overrides.getOverrides)(overrides.SortIconContainer, _styledComponents.StyledSortIconContainer),
|
|
179
187
|
_getOverrides24 = _slicedToArray(_getOverrides23, 2),
|
|
180
|
-
|
|
181
|
-
|
|
188
|
+
SortIconContainer = _getOverrides24[0],
|
|
189
|
+
sortIconContainerProps = _getOverrides24[1];
|
|
182
190
|
|
|
183
|
-
var _getOverrides25 = (0, _overrides.getOverrides)(overrides.
|
|
191
|
+
var _getOverrides25 = (0, _overrides.getOverrides)(overrides.SortAscIcon, _chevronUp.default),
|
|
184
192
|
_getOverrides26 = _slicedToArray(_getOverrides25, 2),
|
|
185
|
-
|
|
186
|
-
|
|
193
|
+
SortAscIcon = _getOverrides26[0],
|
|
194
|
+
sortAscIconProps = _getOverrides26[1];
|
|
187
195
|
|
|
188
|
-
var _getOverrides27 = (0, _overrides.getOverrides)(overrides.
|
|
196
|
+
var _getOverrides27 = (0, _overrides.getOverrides)(overrides.SortDescIcon, _chevronDown.default),
|
|
189
197
|
_getOverrides28 = _slicedToArray(_getOverrides27, 2),
|
|
190
|
-
|
|
191
|
-
|
|
198
|
+
SortDescIcon = _getOverrides28[0],
|
|
199
|
+
sortDescIconProps = _getOverrides28[1];
|
|
200
|
+
|
|
201
|
+
var _getOverrides29 = (0, _overrides.getOverrides)(overrides.SortNoneIcon, _blank.default),
|
|
202
|
+
_getOverrides30 = _slicedToArray(_getOverrides29, 2),
|
|
203
|
+
SortNoneIcon = _getOverrides30[0],
|
|
204
|
+
sortNoneIconProps = _getOverrides30[1];
|
|
192
205
|
|
|
193
206
|
var columns = React.Children.toArray(children).filter(Boolean).map(function (child) {
|
|
194
207
|
return child.props;
|
|
@@ -198,10 +211,10 @@ var TableBuilder = /*#__PURE__*/function (_React$Component) {
|
|
|
198
211
|
var colOverrides = col.overrides || {};
|
|
199
212
|
|
|
200
213
|
if (!col.sortable) {
|
|
201
|
-
var
|
|
202
|
-
|
|
203
|
-
ColTableHeadCell =
|
|
204
|
-
colTableHeadCellProps =
|
|
214
|
+
var _getOverrides31 = (0, _overrides.getOverrides)(colOverrides.TableHeadCell, TableHeadCell),
|
|
215
|
+
_getOverrides32 = _slicedToArray(_getOverrides31, 2),
|
|
216
|
+
ColTableHeadCell = _getOverrides32[0],
|
|
217
|
+
colTableHeadCellProps = _getOverrides32[1];
|
|
205
218
|
|
|
206
219
|
return /*#__PURE__*/React.createElement(ColTableHeadCell, _extends({
|
|
207
220
|
key: colIndex,
|
|
@@ -213,10 +226,10 @@ var TableBuilder = /*#__PURE__*/function (_React$Component) {
|
|
|
213
226
|
}, tableHeadCellProps, colTableHeadCellProps), col.header);
|
|
214
227
|
}
|
|
215
228
|
|
|
216
|
-
var
|
|
217
|
-
|
|
218
|
-
ColTableHeadCellSortable =
|
|
219
|
-
colTableHeadCellSortableProps =
|
|
229
|
+
var _getOverrides33 = (0, _overrides.getOverrides)(colOverrides.TableHeadCellSortable, TableHeadCellSortable),
|
|
230
|
+
_getOverrides34 = _slicedToArray(_getOverrides33, 2),
|
|
231
|
+
ColTableHeadCellSortable = _getOverrides34[0],
|
|
232
|
+
colTableHeadCellSortableProps = _getOverrides34[1];
|
|
220
233
|
|
|
221
234
|
var sortIcon = null;
|
|
222
235
|
var sortLabel = 'not sorted';
|
|
@@ -224,6 +237,7 @@ var TableBuilder = /*#__PURE__*/function (_React$Component) {
|
|
|
224
237
|
switch (col.id === sortColumn && sortOrder) {
|
|
225
238
|
case 'ASC':
|
|
226
239
|
sortIcon = /*#__PURE__*/React.createElement(SortAscIcon, _extends({
|
|
240
|
+
size: "16px",
|
|
227
241
|
"aria-hidden": true,
|
|
228
242
|
role: "presentation"
|
|
229
243
|
}, sortAscIconProps));
|
|
@@ -232,6 +246,7 @@ var TableBuilder = /*#__PURE__*/function (_React$Component) {
|
|
|
232
246
|
|
|
233
247
|
case 'DESC':
|
|
234
248
|
sortIcon = /*#__PURE__*/React.createElement(SortDescIcon, _extends({
|
|
249
|
+
size: "16px",
|
|
235
250
|
"aria-hidden": true,
|
|
236
251
|
role: "presentation"
|
|
237
252
|
}, sortDescIconProps));
|
|
@@ -240,6 +255,7 @@ var TableBuilder = /*#__PURE__*/function (_React$Component) {
|
|
|
240
255
|
|
|
241
256
|
default:
|
|
242
257
|
sortIcon = /*#__PURE__*/React.createElement(SortNoneIcon, _extends({
|
|
258
|
+
size: "16px",
|
|
243
259
|
"aria-hidden": true,
|
|
244
260
|
role: "presentation"
|
|
245
261
|
}, sortNoneIconProps));
|
|
@@ -265,16 +281,16 @@ var TableBuilder = /*#__PURE__*/function (_React$Component) {
|
|
|
265
281
|
onSort && onSort(col.id);
|
|
266
282
|
}
|
|
267
283
|
}
|
|
268
|
-
}, tableHeadCellSortableProps, colTableHeadCellSortableProps), col.header, sortIcon);
|
|
284
|
+
}, tableHeadCellSortableProps, colTableHeadCellSortableProps), col.header, /*#__PURE__*/React.createElement(SortIconContainer, sortIconContainerProps, sortIcon));
|
|
269
285
|
}
|
|
270
286
|
|
|
271
287
|
function renderCell(col, colIndex, row, rowIndex, lastRowindex) {
|
|
272
288
|
var colOverrides = col.overrides || {};
|
|
273
289
|
|
|
274
|
-
var
|
|
275
|
-
|
|
276
|
-
ColTableBodyCell =
|
|
277
|
-
colTableBodyCellProps =
|
|
290
|
+
var _getOverrides35 = (0, _overrides.getOverrides)(colOverrides.TableBodyCell, TableBodyCell),
|
|
291
|
+
_getOverrides36 = _slicedToArray(_getOverrides35, 2),
|
|
292
|
+
ColTableBodyCell = _getOverrides36[0],
|
|
293
|
+
colTableBodyCellProps = _getOverrides36[1];
|
|
278
294
|
|
|
279
295
|
return /*#__PURE__*/React.createElement(ColTableBodyCell, _extends({
|
|
280
296
|
key: colIndex,
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
StyledTableBodyCell,
|
|
20
20
|
StyledTableLoadingMessage,
|
|
21
21
|
StyledTableEmptyMessage,
|
|
22
|
-
|
|
23
|
-
StyledSortDescIcon,
|
|
24
|
-
StyledSortNoneIcon,
|
|
22
|
+
StyledSortIconContainer,
|
|
25
23
|
} from './styled-components.js';
|
|
26
24
|
import { getOverrides } from '../helpers/overrides.js';
|
|
25
|
+
import Blank from '../icon/blank.js';
|
|
26
|
+
import ChevronDown from '../icon/chevron-down.js';
|
|
27
|
+
import ChevronUp from '../icon/chevron-up.js';
|
|
27
28
|
import { isFocusVisible, forkFocus, forkBlur } from '../utils/focusVisible.js';
|
|
28
|
-
|
|
29
29
|
import type { TableBuilderPropsT } from './types.js';
|
|
30
30
|
|
|
31
31
|
export default class TableBuilder<T> extends React.Component<
|
|
@@ -113,17 +113,16 @@ export default class TableBuilder<T> extends React.Component<
|
|
|
113
113
|
StyledTableEmptyMessage
|
|
114
114
|
);
|
|
115
115
|
|
|
116
|
-
const [
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
overrides.SortDescIcon,
|
|
120
|
-
StyledSortDescIcon
|
|
116
|
+
const [SortIconContainer, sortIconContainerProps] = getOverrides(
|
|
117
|
+
overrides.SortIconContainer,
|
|
118
|
+
StyledSortIconContainer
|
|
121
119
|
);
|
|
122
120
|
|
|
123
|
-
const [
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
121
|
+
const [SortAscIcon, sortAscIconProps] = getOverrides(overrides.SortAscIcon, ChevronUp);
|
|
122
|
+
|
|
123
|
+
const [SortDescIcon, sortDescIconProps] = getOverrides(overrides.SortDescIcon, ChevronDown);
|
|
124
|
+
|
|
125
|
+
const [SortNoneIcon, sortNoneIconProps] = getOverrides(overrides.SortNoneIcon, Blank);
|
|
127
126
|
|
|
128
127
|
const columns = React.Children.toArray(children)
|
|
129
128
|
.filter(Boolean)
|
|
@@ -164,15 +163,31 @@ export default class TableBuilder<T> extends React.Component<
|
|
|
164
163
|
|
|
165
164
|
switch (col.id === sortColumn && sortOrder) {
|
|
166
165
|
case 'ASC':
|
|
167
|
-
sortIcon =
|
|
166
|
+
sortIcon = (
|
|
167
|
+
<SortAscIcon size="16px" aria-hidden={true} role="presentation" {...sortAscIconProps} />
|
|
168
|
+
);
|
|
168
169
|
sortLabel = 'ascending sorting';
|
|
169
170
|
break;
|
|
170
171
|
case 'DESC':
|
|
171
|
-
sortIcon =
|
|
172
|
+
sortIcon = (
|
|
173
|
+
<SortDescIcon
|
|
174
|
+
size="16px"
|
|
175
|
+
aria-hidden={true}
|
|
176
|
+
role="presentation"
|
|
177
|
+
{...sortDescIconProps}
|
|
178
|
+
/>
|
|
179
|
+
);
|
|
172
180
|
sortLabel = 'descending sorting';
|
|
173
181
|
break;
|
|
174
182
|
default:
|
|
175
|
-
sortIcon =
|
|
183
|
+
sortIcon = (
|
|
184
|
+
<SortNoneIcon
|
|
185
|
+
size="16px"
|
|
186
|
+
aria-hidden={true}
|
|
187
|
+
role="presentation"
|
|
188
|
+
{...sortNoneIconProps}
|
|
189
|
+
/>
|
|
190
|
+
);
|
|
176
191
|
break;
|
|
177
192
|
}
|
|
178
193
|
|
|
@@ -198,7 +213,7 @@ export default class TableBuilder<T> extends React.Component<
|
|
|
198
213
|
{...colTableHeadCellSortableProps}
|
|
199
214
|
>
|
|
200
215
|
{col.header}
|
|
201
|
-
{sortIcon}
|
|
216
|
+
<SortIconContainer {...sortIconContainerProps}>{sortIcon}</SortIconContainer>
|
|
202
217
|
</ColTableHeadCellSortable>
|
|
203
218
|
);
|
|
204
219
|
}
|
package/tabs/index.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
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
|
-
export
|
|
5
|
+
export declare const ORIENTATION: {
|
|
6
6
|
horizontal: 'horizontal';
|
|
7
7
|
vertical: 'vertical';
|
|
8
|
-
}
|
|
9
|
-
export
|
|
8
|
+
};
|
|
9
|
+
export declare const STATE_CHANGE_TYPE: {
|
|
10
10
|
change: 'change';
|
|
11
|
-
}
|
|
11
|
+
};
|
|
12
12
|
|
|
13
13
|
export interface State {
|
|
14
14
|
activeKey: React.Key;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export type StateReducer = (
|
|
18
|
-
stateChangeType: STATE_CHANGE_TYPE[keyof STATE_CHANGE_TYPE],
|
|
18
|
+
stateChangeType: typeof STATE_CHANGE_TYPE[keyof typeof STATE_CHANGE_TYPE],
|
|
19
19
|
nextState: State,
|
|
20
|
-
currentState: State
|
|
20
|
+
currentState: State
|
|
21
21
|
) => State;
|
|
22
22
|
|
|
23
23
|
export interface TabsOverrides<T> {
|
|
@@ -32,12 +32,12 @@ export interface TabsProps {
|
|
|
32
32
|
activeKey?: React.Key;
|
|
33
33
|
disabled?: boolean;
|
|
34
34
|
renderAll?: boolean;
|
|
35
|
-
onChange?: (args: {activeKey: React.Key}) => any;
|
|
36
|
-
orientation?: ORIENTATION[keyof ORIENTATION];
|
|
37
|
-
overrides?: TabsOverrides<SharedProps & {$active?: boolean}>;
|
|
35
|
+
onChange?: (args: { activeKey: React.Key }) => any;
|
|
36
|
+
orientation?: typeof ORIENTATION[keyof typeof ORIENTATION];
|
|
37
|
+
overrides?: TabsOverrides<SharedProps & { $active?: boolean }>;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export const Tabs: React.FC<TabsProps>;
|
|
40
|
+
export declare const Tabs: React.FC<TabsProps>;
|
|
41
41
|
|
|
42
42
|
export type StatefulTabsProps = TabsProps & {
|
|
43
43
|
activeKey?: never;
|
|
@@ -49,8 +49,8 @@ export type StatefulTabsProps = TabsProps & {
|
|
|
49
49
|
export class StatefulTabs extends React.Component<StatefulTabsProps, State> {
|
|
50
50
|
onTabChange(newState: State): void;
|
|
51
51
|
internalSetState(
|
|
52
|
-
type: STATE_CHANGE_TYPE[keyof STATE_CHANGE_TYPE],
|
|
53
|
-
changes: State
|
|
52
|
+
type: typeof STATE_CHANGE_TYPE[keyof typeof STATE_CHANGE_TYPE],
|
|
53
|
+
changes: State
|
|
54
54
|
): void;
|
|
55
55
|
getInitialKey(): any;
|
|
56
56
|
}
|
|
@@ -62,7 +62,7 @@ export interface TabOverrides<T> {
|
|
|
62
62
|
export interface SharedProps {
|
|
63
63
|
$disabled?: boolean;
|
|
64
64
|
$active?: boolean;
|
|
65
|
-
$orientation?: ORIENTATION[keyof ORIENTATION];
|
|
65
|
+
$orientation?: typeof ORIENTATION[keyof typeof ORIENTATION];
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
export interface TabProps {
|
|
@@ -76,7 +76,7 @@ export interface TabProps {
|
|
|
76
76
|
overrides?: TabOverrides<SharedProps>;
|
|
77
77
|
title?: React.ReactNode;
|
|
78
78
|
id?: string;
|
|
79
|
-
$orientation?: ORIENTATION[keyof ORIENTATION];
|
|
79
|
+
$orientation?: typeof ORIENTATION[keyof typeof ORIENTATION];
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
export class Tab extends React.Component<TabProps> {
|
|
@@ -85,10 +85,7 @@ export class Tab extends React.Component<TabProps> {
|
|
|
85
85
|
getSharedProps(): SharedProps;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
export const StyledRoot: StyletronComponent<any>;
|
|
89
|
-
export const StyledTab: StyletronComponent<any>;
|
|
90
|
-
export const StyledTabBar: StyletronComponent<any>;
|
|
91
|
-
export const StyledTabContent: StyletronComponent<any>;
|
|
92
|
-
|
|
93
|
-
export const ORIENTATION: ORIENTATION;
|
|
94
|
-
export const STATE_CHANGE_TYPE: STATE_CHANGE_TYPE;
|
|
88
|
+
export declare const StyledRoot: StyletronComponent<any>;
|
|
89
|
+
export declare const StyledTab: StyletronComponent<any>;
|
|
90
|
+
export declare const StyledTabBar: StyletronComponent<any>;
|
|
91
|
+
export declare const StyledTabContent: StyletronComponent<any>;
|
package/tabs-motion/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
|
// constants
|
|
6
6
|
|
|
@@ -20,23 +20,23 @@ export enum STATE_CHANGE_TYPE {
|
|
|
20
20
|
|
|
21
21
|
// utils
|
|
22
22
|
|
|
23
|
-
export const getTabId: (uid: string, key: React.Key) => string;
|
|
24
|
-
export const getTabPanelId: (uid: string, key: React.Key) => string;
|
|
25
|
-
export const isHorizontal: (orientation: ORIENTATION) => boolean;
|
|
26
|
-
export const isVertical: (orientation: ORIENTATION) => boolean;
|
|
27
|
-
export const isIntrinsic: (fill: FILL) => boolean;
|
|
28
|
-
export const isFixed: (fill: FILL) => boolean;
|
|
29
|
-
export const isRTL: (direction: string) => boolean;
|
|
23
|
+
export declare const getTabId: (uid: string, key: React.Key) => string;
|
|
24
|
+
export declare const getTabPanelId: (uid: string, key: React.Key) => string;
|
|
25
|
+
export declare const isHorizontal: (orientation: ORIENTATION) => boolean;
|
|
26
|
+
export declare const isVertical: (orientation: ORIENTATION) => boolean;
|
|
27
|
+
export declare const isIntrinsic: (fill: FILL) => boolean;
|
|
28
|
+
export declare const isFixed: (fill: FILL) => boolean;
|
|
29
|
+
export declare const isRTL: (direction: string) => boolean;
|
|
30
30
|
|
|
31
31
|
// styled-components
|
|
32
32
|
|
|
33
|
-
export const StyledRoot: StyletronComponent<any>;
|
|
34
|
-
export const StyledTabList: StyletronComponent<any>;
|
|
35
|
-
export const StyledTab: StyletronComponent<any>;
|
|
36
|
-
export const StyledArtworkContainer: StyletronComponent<any>;
|
|
37
|
-
export const StyledTabBorder: StyletronComponent<any>;
|
|
38
|
-
export const StyledTabHighlight: StyletronComponent<any>;
|
|
39
|
-
export const StyledTabPanel: StyletronComponent<any>;
|
|
33
|
+
export declare const StyledRoot: StyletronComponent<any>;
|
|
34
|
+
export declare const StyledTabList: StyletronComponent<any>;
|
|
35
|
+
export declare const StyledTab: StyletronComponent<any>;
|
|
36
|
+
export declare const StyledArtworkContainer: StyletronComponent<any>;
|
|
37
|
+
export declare const StyledTabBorder: StyletronComponent<any>;
|
|
38
|
+
export declare const StyledTabHighlight: StyletronComponent<any>;
|
|
39
|
+
export declare const StyledTabPanel: StyletronComponent<any>;
|
|
40
40
|
|
|
41
41
|
// tabs
|
|
42
42
|
|
|
@@ -63,16 +63,16 @@ interface TabsProps {
|
|
|
63
63
|
children: React.ReactNode;
|
|
64
64
|
activeKey?: React.Key;
|
|
65
65
|
disabled?: boolean;
|
|
66
|
-
fill?: FILL[keyof FILL];
|
|
67
|
-
orientation?: ORIENTATION[keyof ORIENTATION];
|
|
66
|
+
fill?: typeof FILL[keyof typeof FILL];
|
|
67
|
+
orientation?: typeof ORIENTATION[keyof typeof ORIENTATION];
|
|
68
68
|
activateOnFocus?: boolean;
|
|
69
69
|
renderAll?: boolean;
|
|
70
|
-
onChange?: (params: {activeKey: React.Key}) => void;
|
|
70
|
+
onChange?: (params: { activeKey: React.Key }) => void;
|
|
71
71
|
overrides?: TabsOverrides;
|
|
72
72
|
uid?: string;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
export const Tabs: React.FC<TabsProps>;
|
|
75
|
+
export declare const Tabs: React.FC<TabsProps>;
|
|
76
76
|
|
|
77
77
|
// tab
|
|
78
78
|
|
|
@@ -101,7 +101,7 @@ interface TabProps {
|
|
|
101
101
|
tabRef?: React.MutableRefObject<HTMLButtonElement | undefined>;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
export const Tab: React.FC<TabProps>;
|
|
104
|
+
export declare const Tab: React.FC<TabProps>;
|
|
105
105
|
|
|
106
106
|
// stateful-tabs
|
|
107
107
|
|
|
@@ -110,7 +110,7 @@ interface State {
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
interface Action {
|
|
113
|
-
type: STATE_CHANGE_TYPE[keyof STATE_CHANGE_TYPE];
|
|
113
|
+
type: typeof STATE_CHANGE_TYPE[keyof typeof STATE_CHANGE_TYPE];
|
|
114
114
|
payload: React.Key;
|
|
115
115
|
}
|
|
116
116
|
|
|
@@ -121,4 +121,4 @@ type StatefulTabsProps = TabsProps & {
|
|
|
121
121
|
stateReducer?: StateReducer;
|
|
122
122
|
};
|
|
123
123
|
|
|
124
|
-
export const StatefulTabs: React.FC<StatefulTabsProps>;
|
|
124
|
+
export declare const StatefulTabs: React.FC<StatefulTabsProps>;
|
package/tag/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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
|
-
export
|
|
5
|
+
export declare const KIND: {
|
|
6
6
|
custom: 'custom';
|
|
7
7
|
neutral: 'neutral';
|
|
8
8
|
primary: 'primary';
|
|
@@ -19,19 +19,19 @@ export interface KIND {
|
|
|
19
19
|
green: 'green';
|
|
20
20
|
purple: 'purple';
|
|
21
21
|
brown: 'brown';
|
|
22
|
-
}
|
|
22
|
+
};
|
|
23
23
|
|
|
24
|
-
export
|
|
24
|
+
export declare const VARIANT: {
|
|
25
25
|
solid: 'solid';
|
|
26
26
|
light: 'light';
|
|
27
27
|
outlined: 'outlined';
|
|
28
|
-
}
|
|
28
|
+
};
|
|
29
29
|
|
|
30
|
-
export
|
|
30
|
+
export declare const SIZE: {
|
|
31
31
|
small: 'small';
|
|
32
32
|
medium: 'medium';
|
|
33
33
|
large: 'large';
|
|
34
|
-
}
|
|
34
|
+
};
|
|
35
35
|
|
|
36
36
|
export interface TagOverrides {
|
|
37
37
|
Root?: Override<any>;
|
|
@@ -47,12 +47,12 @@ export interface TagProps {
|
|
|
47
47
|
disabled?: boolean;
|
|
48
48
|
isFocused?: boolean;
|
|
49
49
|
isHovered?: boolean;
|
|
50
|
-
kind?: KIND[keyof KIND];
|
|
51
|
-
variant?: VARIANT[keyof VARIANT];
|
|
50
|
+
kind?: typeof KIND[keyof typeof KIND];
|
|
51
|
+
variant?: typeof VARIANT[keyof typeof VARIANT];
|
|
52
52
|
children?: React.ReactNode;
|
|
53
53
|
title?: string;
|
|
54
54
|
color?: string;
|
|
55
|
-
size?: SIZE[keyof SIZE];
|
|
55
|
+
size?: typeof SIZE[keyof typeof SIZE];
|
|
56
56
|
onActionClick?: (e: Event, children?: React.ReactNode) => any;
|
|
57
57
|
onActionKeyDown?: (e: Event, children?: React.ReactNode) => any;
|
|
58
58
|
onClick?: (event: Event) => any;
|
|
@@ -65,10 +65,6 @@ export class Tag extends React.Component<TagProps> {
|
|
|
65
65
|
handleActionKeyDown(event: KeyboardEvent): void;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
export const StyledRoot: StyletronComponent<any>;
|
|
69
|
-
export const StyledAction: StyletronComponent<any>;
|
|
70
|
-
export const StyledText: StyletronComponent<any>;
|
|
71
|
-
|
|
72
|
-
export const KIND: KIND;
|
|
73
|
-
export const VARIANT: VARIANT;
|
|
74
|
-
export const SIZE: SIZE;
|
|
68
|
+
export declare const StyledRoot: StyletronComponent<any>;
|
|
69
|
+
export declare const StyledAction: StyletronComponent<any>;
|
|
70
|
+
export declare const StyledText: StyletronComponent<any>;
|
package/tag/types.js.flow
CHANGED
package/textarea/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {StyletronComponent} from 'styletron-react';
|
|
2
|
+
import { StyletronComponent } from 'styletron-react';
|
|
3
3
|
import {
|
|
4
4
|
BaseInputProps,
|
|
5
5
|
StatefulContainer,
|
|
@@ -13,30 +13,27 @@ export interface TextareaProps extends BaseInputProps<HTMLTextAreaElement> {
|
|
|
13
13
|
maxLength?: number;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export
|
|
16
|
+
export declare const ADJOINED: {
|
|
17
17
|
none: 'none';
|
|
18
18
|
left: 'left';
|
|
19
19
|
right: 'right';
|
|
20
20
|
both: 'both';
|
|
21
|
-
}
|
|
22
|
-
export
|
|
21
|
+
};
|
|
22
|
+
export declare const SIZE: {
|
|
23
23
|
default: 'default';
|
|
24
24
|
compact: 'compact';
|
|
25
25
|
large: 'large';
|
|
26
|
-
}
|
|
26
|
+
};
|
|
27
27
|
|
|
28
28
|
export class Textarea extends React.Component<TextareaProps> {}
|
|
29
29
|
|
|
30
|
-
export type StatefulTextareaProps = TextareaProps &
|
|
31
|
-
StatefulContainerProps & {children?: never};
|
|
30
|
+
export type StatefulTextareaProps = TextareaProps & StatefulContainerProps & { children?: never };
|
|
32
31
|
|
|
33
|
-
export const StatefulTextarea: React.FC<StatefulTextareaProps>;
|
|
32
|
+
export declare const StatefulTextarea: React.FC<StatefulTextareaProps>;
|
|
34
33
|
|
|
35
|
-
export {StatefulContainer};
|
|
34
|
+
export { StatefulContainer };
|
|
36
35
|
|
|
37
|
-
export const StyledTextareaContainer: StyletronComponent<any>;
|
|
38
|
-
export const StyledTextarea: StyletronComponent<any>;
|
|
36
|
+
export declare const StyledTextareaContainer: StyletronComponent<any>;
|
|
37
|
+
export declare const StyledTextarea: StyletronComponent<any>;
|
|
39
38
|
|
|
40
|
-
export
|
|
41
|
-
export const SIZE: SIZE;
|
|
42
|
-
export {STATE_CHANGE_TYPE};
|
|
39
|
+
export { STATE_CHANGE_TYPE };
|
package/textarea/textarea.js
CHANGED
|
@@ -72,23 +72,27 @@ var Textarea = /*#__PURE__*/function (_React$Component) {
|
|
|
72
72
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
73
73
|
|
|
74
74
|
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
75
|
-
isFocused: _this.props.autoFocus || false
|
|
75
|
+
isFocused: _this.props.autoFocus && !_this.props.readOnly || false
|
|
76
76
|
});
|
|
77
77
|
|
|
78
78
|
_defineProperty(_assertThisInitialized(_this), "onFocus", function (e) {
|
|
79
|
-
_this.
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
if (!_this.props.readOnly) {
|
|
80
|
+
_this.setState({
|
|
81
|
+
isFocused: true
|
|
82
|
+
});
|
|
82
83
|
|
|
83
|
-
|
|
84
|
+
_this.props.onFocus(e);
|
|
85
|
+
}
|
|
84
86
|
});
|
|
85
87
|
|
|
86
88
|
_defineProperty(_assertThisInitialized(_this), "onBlur", function (e) {
|
|
87
|
-
_this.
|
|
88
|
-
|
|
89
|
-
|
|
89
|
+
if (!_this.props.readOnly) {
|
|
90
|
+
_this.setState({
|
|
91
|
+
isFocused: false
|
|
92
|
+
});
|
|
90
93
|
|
|
91
|
-
|
|
94
|
+
_this.props.onBlur(e);
|
|
95
|
+
}
|
|
92
96
|
});
|
|
93
97
|
|
|
94
98
|
return _this;
|
|
@@ -116,6 +120,7 @@ var Textarea = /*#__PURE__*/function (_React$Component) {
|
|
|
116
120
|
return /*#__PURE__*/React.createElement(Root, _extends({
|
|
117
121
|
"data-baseweb": "textarea",
|
|
118
122
|
$isFocused: this.state.isFocused,
|
|
123
|
+
$isReadOnly: this.props.readOnly,
|
|
119
124
|
$disabled: this.props.disabled,
|
|
120
125
|
$error: this.props.error,
|
|
121
126
|
$positive: this.props.positive,
|
|
@@ -136,6 +141,7 @@ var Textarea = /*#__PURE__*/function (_React$Component) {
|
|
|
136
141
|
_defineProperty(Textarea, "defaultProps", {
|
|
137
142
|
autoFocus: false,
|
|
138
143
|
disabled: false,
|
|
144
|
+
readOnly: false,
|
|
139
145
|
error: false,
|
|
140
146
|
name: '',
|
|
141
147
|
onBlur: function onBlur() {},
|
|
@@ -19,6 +19,7 @@ class Textarea extends React.Component<TextareaPropsT, { isFocused: boolean }> {
|
|
|
19
19
|
static defaultProps = {
|
|
20
20
|
autoFocus: false,
|
|
21
21
|
disabled: false,
|
|
22
|
+
readOnly: false,
|
|
22
23
|
error: false,
|
|
23
24
|
name: '',
|
|
24
25
|
onBlur: () => {},
|
|
@@ -35,17 +36,21 @@ class Textarea extends React.Component<TextareaPropsT, { isFocused: boolean }> {
|
|
|
35
36
|
};
|
|
36
37
|
|
|
37
38
|
state = {
|
|
38
|
-
isFocused: this.props.autoFocus || false,
|
|
39
|
+
isFocused: (this.props.autoFocus && !this.props.readOnly) || false,
|
|
39
40
|
};
|
|
40
41
|
|
|
41
42
|
onFocus = (e: SyntheticFocusEvent<HTMLTextAreaElement>) => {
|
|
42
|
-
this.
|
|
43
|
-
|
|
43
|
+
if (!this.props.readOnly) {
|
|
44
|
+
this.setState({ isFocused: true });
|
|
45
|
+
this.props.onFocus(e);
|
|
46
|
+
}
|
|
44
47
|
};
|
|
45
48
|
|
|
46
49
|
onBlur = (e: SyntheticFocusEvent<HTMLTextAreaElement>) => {
|
|
47
|
-
this.
|
|
48
|
-
|
|
50
|
+
if (!this.props.readOnly) {
|
|
51
|
+
this.setState({ isFocused: false });
|
|
52
|
+
this.props.onBlur(e);
|
|
53
|
+
}
|
|
49
54
|
};
|
|
50
55
|
|
|
51
56
|
render() {
|
|
@@ -63,6 +68,7 @@ class Textarea extends React.Component<TextareaPropsT, { isFocused: boolean }> {
|
|
|
63
68
|
<Root
|
|
64
69
|
data-baseweb="textarea"
|
|
65
70
|
$isFocused={this.state.isFocused}
|
|
71
|
+
$isReadOnly={this.props.readOnly}
|
|
66
72
|
$disabled={this.props.disabled}
|
|
67
73
|
$error={this.props.error}
|
|
68
74
|
$positive={this.props.positive}
|