baseui 0.0.0-next-e56fadb → 0.0.0-next-dc29154
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/accordion.js +4 -2
- package/accordion/accordion.js.flow +1 -1
- package/accordion/panel.js +3 -2
- package/accordion/stateful-panel-container.js +1 -0
- package/app-nav-bar/app-nav-bar.js +4 -2
- package/app-nav-bar/mobile-menu.js +2 -1
- package/app-nav-bar/styled-components.js +4 -2
- package/app-nav-bar/user-menu.js +1 -1
- package/aspect-ratio-box/aspect-ratio-box.js +3 -1
- package/banner/styled-components.js +2 -1
- package/block/block.js +3 -1
- package/button-group/stateful-button-group.js +1 -0
- package/button-group/stateful-container.js +3 -1
- package/card/images.d.ts +1 -1
- package/combobox/combobox.js +78 -71
- package/data-table/column-anchor.js +3 -0
- package/data-table/column-datetime.js +10 -4
- package/data-table/column-numerical.js +4 -4
- package/data-table/column-string.js +3 -0
- package/data-table/column.js +1 -1
- package/data-table/data-table.js +6 -3
- package/data-table/filter-menu.js +2 -1
- package/data-table/header-cell.js +4 -2
- package/data-table/measure-column-widths.js +2 -1
- package/data-table/stateful-container.js +2 -1
- package/datepicker/calendar-header.js +1 -0
- package/datepicker/calendar.js +2 -0
- package/datepicker/datepicker.js +1 -0
- package/datepicker/day.js +2 -1
- package/datepicker/stateful-calendar.js +7 -3
- package/datepicker/stateful-container.js +2 -0
- package/datepicker/stateful-datepicker.js +9 -4
- package/datepicker/styled-components.js +7 -3
- package/datepicker/utils/date-helpers.js +2 -1
- package/datepicker/utils/index.js +2 -1
- package/dnd-list/stateful-list-container.js +1 -0
- package/dnd-list/styled-components.js +1 -0
- package/drawer/constants.js +1 -0
- package/drawer/drawer.js +2 -3
- package/drawer/drawer.js.flow +1 -3
- package/drawer/styled-components.js +2 -1
- package/es/accordion/accordion.js +3 -3
- package/es/accordion/panel.js +3 -2
- package/es/accordion/stateful-panel-container.js +1 -0
- package/es/app-nav-bar/app-nav-bar.js +6 -2
- package/es/app-nav-bar/mobile-menu.js +4 -2
- package/es/app-nav-bar/styled-components.js +4 -2
- package/es/app-nav-bar/user-menu.js +1 -1
- package/es/aspect-ratio-box/aspect-ratio-box.js +3 -1
- package/es/banner/styled-components.js +2 -1
- package/es/block/block.js +3 -1
- package/es/button/button.js +8 -0
- package/es/button-group/stateful-button-group.js +1 -0
- package/es/button-group/stateful-container.js +3 -1
- package/es/card/index.js +2 -1
- package/es/card/styled-components.js +2 -1
- package/es/checkbox/index.js +1 -0
- package/es/checkbox/stateful-checkbox-container.js +3 -0
- package/es/combobox/combobox.js +76 -69
- package/es/data-table/column-anchor.js +3 -0
- package/es/data-table/column-datetime.js +12 -5
- package/es/data-table/column-numerical.js +5 -4
- package/es/data-table/column-string.js +3 -0
- package/es/data-table/column.js +1 -1
- package/es/data-table/data-table.js +6 -3
- package/es/data-table/filter-menu.js +2 -1
- package/es/data-table/header-cell.js +4 -2
- package/es/data-table/measure-column-widths.js +2 -1
- package/es/data-table/stateful-container.js +2 -1
- package/es/datepicker/calendar-header.js +1 -0
- package/es/datepicker/calendar.js +2 -0
- package/es/datepicker/datepicker.js +1 -0
- package/es/datepicker/day.js +2 -1
- package/es/datepicker/stateful-calendar.js +4 -1
- package/es/datepicker/stateful-container.js +2 -0
- package/es/datepicker/stateful-datepicker.js +5 -1
- package/es/datepicker/styled-components.js +7 -3
- package/es/datepicker/utils/date-helpers.js +2 -1
- package/es/datepicker/utils/index.js +2 -1
- package/es/dnd-list/stateful-list-container.js +1 -0
- package/es/dnd-list/styled-components.js +1 -0
- package/es/drawer/constants.js +1 -0
- package/es/drawer/drawer.js +2 -5
- package/es/drawer/styled-components.js +2 -1
- package/es/flex-grid/flex-grid-item.js +5 -6
- package/es/flex-grid/flex-grid.js +4 -1
- package/es/helpers/overrides.js +9 -5
- package/es/icon/build-icons.js +0 -2
- package/es/icon/omit-dollar-prefixed-keys.js +1 -0
- package/es/input/base-input.js +1 -0
- package/es/input/masked-input.js +9 -2
- package/es/input/stateful-container.js +1 -0
- package/es/layer/layers-manager.js +1 -0
- package/es/link/index.js +2 -1
- package/es/list/list-heading.js +21 -17
- package/es/list/list-item.js +2 -1
- package/es/map-marker/fixed-marker.js +1 -0
- package/es/map-marker/pin-head.js +1 -0
- package/es/menu/menu.js +7 -3
- package/es/menu/option-profile.js +1 -0
- package/es/menu/stateful-container.js +10 -0
- package/es/menu/styled-components.js +2 -1
- package/es/modal/modal.js +4 -6
- package/es/pagination/stateful-container.js +1 -0
- package/es/pagination/stateful-pagination.js +1 -0
- package/es/phone-input/base-country-picker.js +3 -1
- package/es/phone-input/country-select-dropdown.js +1 -0
- package/es/phone-input/styled-components.js +2 -1
- package/es/popover/popover.js +2 -4
- package/es/progress-bar/progressbar-rounded.js +1 -0
- package/es/progress-bar/styled-components.js +2 -1
- package/es/progress-steps/progress-steps.js +2 -1
- package/es/progress-steps/styled-components.js +8 -12
- package/es/radio/stateful-radiogroup-container.js +3 -0
- package/es/rating/emoticon-rating.js +2 -1
- package/es/rating/star-rating.js +2 -1
- package/es/rating/styled-components.js +1 -0
- package/es/select/autosize-input.js +2 -3
- package/es/select/dropdown.js +2 -1
- package/es/select/multi-value.js +2 -1
- package/es/select/select-component.js +9 -5
- package/es/select/stateful-select-container.js +2 -0
- package/es/select/value.js +2 -1
- package/es/side-navigation/index.js +2 -1
- package/es/side-navigation/nav-item.js +1 -0
- package/es/side-navigation/nav.js +1 -1
- package/es/side-navigation/stateful-container.js +1 -0
- package/es/side-navigation/styled-components.js +2 -1
- package/es/slider/slider.js +4 -2
- package/es/slider/stateful-slider-container.js +2 -0
- package/es/snackbar/snackbar-element.js +1 -0
- package/es/styles/__mocks__/styled.js +8 -5
- package/es/styles/styled.js +7 -6
- package/es/table/index.js +2 -1
- package/es/table-semantic/styled-components.js +7 -3
- package/es/tabs/stateful-tabs.js +1 -0
- package/es/tabs/tabs.js +4 -2
- package/es/tabs-motion/styled-components.js +1 -0
- package/es/tabs-motion/tab.js +1 -0
- package/es/tabs-motion/tabs.js +2 -1
- package/es/tag/styled-components.js +27 -0
- package/es/tag/tag.js +6 -2
- package/es/toast/toaster.js +0 -2
- package/es/tree-view/index.js +2 -1
- package/es/tree-view/tree-view.js +3 -1
- package/es/utils/deep-merge.js +0 -5
- package/es/utils/deprecated-component.js +1 -0
- package/es/utils/focusVisible.js +4 -2
- package/esm/accordion/accordion.js +4 -4
- package/esm/accordion/panel.js +3 -2
- package/esm/accordion/stateful-panel-container.js +1 -0
- package/esm/app-nav-bar/app-nav-bar.js +4 -2
- package/esm/app-nav-bar/mobile-menu.js +4 -2
- package/esm/app-nav-bar/styled-components.js +4 -2
- package/esm/app-nav-bar/user-menu.js +1 -1
- package/esm/aspect-ratio-box/aspect-ratio-box.js +3 -1
- package/esm/banner/styled-components.js +2 -1
- package/esm/block/block.js +3 -1
- package/esm/button-group/stateful-button-group.js +1 -0
- package/esm/button-group/stateful-container.js +3 -1
- package/esm/card/index.js +2 -1
- package/esm/card/styled-components.js +2 -1
- package/esm/checkbox/index.js +1 -0
- package/esm/combobox/combobox.js +78 -71
- package/esm/data-table/column-anchor.js +3 -0
- package/esm/data-table/column-datetime.js +12 -5
- package/esm/data-table/column-numerical.js +4 -4
- package/esm/data-table/column-string.js +3 -0
- package/esm/data-table/column.js +1 -1
- package/esm/data-table/data-table.js +6 -3
- package/esm/data-table/filter-menu.js +2 -1
- package/esm/data-table/header-cell.js +4 -2
- package/esm/data-table/measure-column-widths.js +2 -1
- package/esm/data-table/stateful-container.js +2 -1
- package/esm/datepicker/calendar-header.js +1 -0
- package/esm/datepicker/calendar.js +2 -0
- package/esm/datepicker/datepicker.js +1 -0
- package/esm/datepicker/day.js +2 -1
- package/esm/datepicker/stateful-calendar.js +7 -3
- package/esm/datepicker/stateful-container.js +2 -0
- package/esm/datepicker/stateful-datepicker.js +9 -4
- package/esm/datepicker/styled-components.js +7 -3
- package/esm/datepicker/utils/date-helpers.js +2 -1
- package/esm/datepicker/utils/index.js +2 -1
- package/esm/dnd-list/stateful-list-container.js +1 -0
- package/esm/dnd-list/styled-components.js +1 -0
- package/esm/drawer/constants.js +1 -0
- package/esm/drawer/drawer.js +2 -5
- package/esm/drawer/styled-components.js +2 -1
- package/esm/flex-grid/flex-grid-item.js +4 -5
- package/esm/flex-grid/flex-grid.js +7 -3
- package/esm/helpers/overrides.js +9 -5
- package/esm/icon/build-icons.js +0 -2
- package/esm/icon/omit-dollar-prefixed-keys.js +1 -0
- package/esm/input/base-input.js +1 -0
- package/esm/input/masked-input.js +5 -2
- package/esm/input/stateful-container.js +1 -0
- package/esm/layer/layers-manager.js +1 -0
- package/esm/link/index.js +2 -1
- package/esm/list/list-heading.js +21 -17
- package/esm/list/list-item.js +2 -1
- package/esm/menu/menu.js +6 -3
- package/esm/menu/option-profile.js +1 -0
- package/esm/menu/stateful-container.js +1 -0
- package/esm/menu/styled-components.js +7 -5
- package/esm/modal/modal.js +4 -6
- package/esm/pagination/stateful-container.js +1 -0
- package/esm/pagination/stateful-pagination.js +1 -0
- package/esm/phone-input/base-country-picker.js +3 -1
- package/esm/phone-input/country-select-dropdown.js +1 -0
- package/esm/phone-input/styled-components.js +7 -5
- package/esm/popover/popover.js +2 -4
- package/esm/progress-bar/progressbar-rounded.js +1 -0
- package/esm/progress-bar/styled-components.js +2 -1
- package/esm/progress-steps/progress-steps.js +2 -1
- package/esm/progress-steps/styled-components.js +16 -19
- package/esm/rating/emoticon-rating.js +2 -1
- package/esm/rating/star-rating.js +2 -1
- package/esm/rating/styled-components.js +1 -0
- package/esm/select/autosize-input.js +2 -3
- package/esm/select/dropdown.js +2 -1
- package/esm/select/multi-value.js +2 -1
- package/esm/select/select-component.js +9 -5
- package/esm/select/value.js +2 -1
- package/esm/side-navigation/index.js +2 -1
- package/esm/side-navigation/nav-item.js +1 -0
- package/esm/side-navigation/nav.js +1 -1
- package/esm/side-navigation/stateful-container.js +1 -0
- package/esm/side-navigation/styled-components.js +7 -5
- package/esm/slider/slider.js +4 -2
- package/esm/snackbar/snackbar-element.js +1 -0
- package/esm/styles/__mocks__/styled.js +8 -5
- package/esm/styles/styled.js +7 -6
- package/esm/table/index.js +2 -1
- package/esm/table-semantic/styled-components.js +7 -3
- package/esm/tabs/stateful-tabs.js +1 -0
- package/esm/tabs/tabs.js +4 -2
- package/esm/tabs-motion/tab.js +1 -0
- package/esm/tabs-motion/tabs.js +2 -1
- package/esm/tag/tag.js +4 -2
- package/esm/toast/toaster.js +0 -2
- package/esm/tree-view/index.js +2 -1
- package/esm/tree-view/tree-view.js +3 -1
- package/esm/utils/deep-merge.js +0 -5
- package/esm/utils/deprecated-component.js +1 -0
- package/esm/utils/focusVisible.js +4 -2
- package/flex-grid/flex-grid-item.d.ts +1 -1
- package/flex-grid/flex-grid-item.js +6 -8
- package/flex-grid/flex-grid.js +7 -3
- package/helpers/overrides.js +8 -3
- package/helpers/overrides.js.flow +1 -1
- package/icon/build-icons.js +0 -2
- package/icon/build-icons.js.flow +0 -1
- package/icon/omit-dollar-prefixed-keys.js +1 -0
- package/input/masked-input.js +5 -2
- package/input/stateful-container.js +1 -0
- package/layer/layers-manager.js +1 -0
- package/link/index.js +2 -1
- package/list/list-heading.js +21 -17
- package/list/list-item.js +2 -1
- package/menu/menu.js +6 -3
- package/menu/option-profile.js +1 -0
- package/menu/stateful-container.js +1 -0
- package/menu/styled-components.js +7 -5
- package/modal/modal.js +4 -4
- package/modal/modal.js.flow +1 -3
- package/package.json +4 -4
- package/pagination/stateful-container.js +1 -0
- package/pagination/stateful-pagination.js +1 -0
- package/phone-input/base-country-picker.js +3 -1
- package/phone-input/country-select-dropdown.js +1 -0
- package/phone-input/styled-components.js +8 -6
- package/popover/popover.js +2 -4
- package/popover/popover.js.flow +2 -12
- package/progress-bar/progressbar-rounded.js +1 -0
- package/progress-bar/styled-components.js +2 -1
- package/progress-steps/progress-steps.js +2 -1
- package/progress-steps/styled-components.js +16 -19
- package/rating/emoticon-rating.js +2 -1
- package/rating/star-rating.js +2 -1
- package/rating/styled-components.js +1 -0
- package/select/autosize-input.js +2 -1
- package/select/autosize-input.js.flow +1 -1
- package/select/dropdown.js +2 -1
- package/select/multi-value.js +1 -0
- package/select/select-component.js +9 -3
- package/select/select-component.js.flow +1 -1
- package/select/value.js +1 -0
- package/side-navigation/nav-item.js +1 -0
- package/side-navigation/nav.js +1 -1
- package/side-navigation/stateful-container.js +1 -0
- package/side-navigation/styled-components.js +7 -5
- package/slider/slider.js +4 -2
- package/snackbar/snackbar-element.js +1 -0
- package/styles/__mocks__/styled.js +8 -3
- package/styles/styled.js +7 -6
- package/table-semantic/styled-components.js +7 -3
- package/tabs/stateful-tabs.js +1 -0
- package/tabs/tabs.js +4 -2
- package/tabs-motion/tab.js +1 -0
- package/tabs-motion/tabs.js +2 -1
- package/tag/tag.js +4 -2
- package/toast/toaster.js.flow +1 -1
- package/tree-view/tree-view.js +3 -1
- package/utils/deep-merge.js +0 -6
- package/utils/deprecated-component.js +1 -0
- package/utils/focusVisible.js +4 -2
package/accordion/accordion.js
CHANGED
|
@@ -94,7 +94,8 @@ var Accordion = /*#__PURE__*/function (_React$Component) {
|
|
|
94
94
|
|
|
95
95
|
_createClass(Accordion, [{
|
|
96
96
|
key: "onPanelChange",
|
|
97
|
-
value:
|
|
97
|
+
value: // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
98
|
+
function onPanelChange(key, onChange) {
|
|
98
99
|
for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
|
99
100
|
args[_key2 - 2] = arguments[_key2];
|
|
100
101
|
}
|
|
@@ -195,7 +196,8 @@ var Accordion = /*#__PURE__*/function (_React$Component) {
|
|
|
195
196
|
disabled = _this$props2.disabled,
|
|
196
197
|
children = _this$props2.children,
|
|
197
198
|
renderAll = _this$props2.renderAll,
|
|
198
|
-
overrides = _this$props2.overrides;
|
|
199
|
+
overrides = _this$props2.overrides; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
200
|
+
|
|
199
201
|
return React.Children.map(children, function (child, index) {
|
|
200
202
|
if (!child) return;
|
|
201
203
|
var itemRef = /*#__PURE__*/React.createRef();
|
|
@@ -5,7 +5,7 @@ This source code is licensed under the MIT license found in the
|
|
|
5
5
|
LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
// @flow
|
|
8
|
-
|
|
8
|
+
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
import { getOverrides } from '../helpers/overrides.js';
|
|
11
11
|
import { Root as StyledRoot } from './styled-components.js';
|
package/accordion/panel.js
CHANGED
|
@@ -78,7 +78,8 @@ var Panel = function Panel(_ref, ref) {
|
|
|
78
78
|
}));
|
|
79
79
|
}
|
|
80
80
|
}, [localState]);
|
|
81
|
-
var handleBlur = React.useCallback(
|
|
81
|
+
var handleBlur = React.useCallback( // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
82
|
+
function (event) {
|
|
82
83
|
if (localState.isFocusVisible) {
|
|
83
84
|
setLocalState(_objectSpread(_objectSpread({}, localState), {}, {
|
|
84
85
|
isFocusVisible: false
|
|
@@ -114,7 +115,7 @@ var Panel = function Panel(_ref, ref) {
|
|
|
114
115
|
}
|
|
115
116
|
|
|
116
117
|
typeof onKeyDown === 'function' && onKeyDown(e);
|
|
117
|
-
}, [expanded, disabled, onChange, onKeyDown]);
|
|
118
|
+
}, [expanded, disabled, onChange, onKeyDown]); // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
118
119
|
|
|
119
120
|
var _animateRef = React.useRef(null);
|
|
120
121
|
|
|
@@ -97,6 +97,7 @@ var StatefulPanelContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
97
97
|
}, {
|
|
98
98
|
key: "render",
|
|
99
99
|
value: function render() {
|
|
100
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
100
101
|
var _this$props = this.props,
|
|
101
102
|
children = _this$props.children,
|
|
102
103
|
initialState = _this$props.initialState,
|
|
@@ -65,13 +65,15 @@ function MainMenuItem(props) {
|
|
|
65
65
|
if ((0, _focusVisible.isFocusVisible)(event)) {
|
|
66
66
|
setFocusVisible(true);
|
|
67
67
|
}
|
|
68
|
-
}
|
|
68
|
+
} // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
69
|
+
|
|
69
70
|
|
|
70
71
|
function handleBlur(event) {
|
|
71
72
|
if (focusVisible) {
|
|
72
73
|
setFocusVisible(false);
|
|
73
74
|
}
|
|
74
|
-
}
|
|
75
|
+
} // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
76
|
+
|
|
75
77
|
|
|
76
78
|
function handleClick(event) {
|
|
77
79
|
if (onSelect) {
|
|
@@ -72,7 +72,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
72
72
|
|
|
73
73
|
var USER_TITLE_ITEM = 'USER_TITLE_ITEM';
|
|
74
74
|
var USER_MENU_ITEM = 'USER_MENU_ITEM';
|
|
75
|
-
var PARENT_MENU_ITEM = 'PARENT_MENU_ITEM'; // eslint-disable-next-line react/display-name
|
|
75
|
+
var PARENT_MENU_ITEM = 'PARENT_MENU_ITEM'; // eslint-disable-next-line @typescript-eslint/no-explicit-any,react/display-name
|
|
76
76
|
|
|
77
77
|
var MobileNavMenuItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
78
78
|
var item = props.item,
|
|
@@ -169,6 +169,7 @@ function MobileMenu(props) {
|
|
|
169
169
|
|
|
170
170
|
drawerProps.overrides = (0, _overrides.mergeOverrides)({
|
|
171
171
|
DrawerBody: {
|
|
172
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
172
173
|
style: function style(_ref2) {
|
|
173
174
|
var $theme = _ref2.$theme;
|
|
174
175
|
return {
|
|
@@ -249,7 +249,8 @@ var StyledUserProfilePictureContainer = (0, _styles.styled)('div', function (_re
|
|
|
249
249
|
} : {
|
|
250
250
|
marginRight: $theme.sizing.scale600
|
|
251
251
|
});
|
|
252
|
-
});
|
|
252
|
+
}); // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
253
|
+
|
|
253
254
|
exports.StyledUserProfilePictureContainer = StyledUserProfilePictureContainer;
|
|
254
255
|
StyledUserProfilePictureContainer.displayName = "StyledUserProfilePictureContainer";
|
|
255
256
|
var StyledUserProfileInfoContainer = (0, _styles.styled)('div', function (_ref10) {
|
|
@@ -258,7 +259,8 @@ var StyledUserProfileInfoContainer = (0, _styles.styled)('div', function (_ref10
|
|
|
258
259
|
boxSizing: 'border-box',
|
|
259
260
|
alignSelf: 'center'
|
|
260
261
|
};
|
|
261
|
-
});
|
|
262
|
+
}); // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
263
|
+
|
|
262
264
|
exports.StyledUserProfileInfoContainer = StyledUserProfileInfoContainer;
|
|
263
265
|
StyledUserProfileInfoContainer.displayName = "StyledUserProfileInfoContainer";
|
|
264
266
|
var StyledDesktopMenuContainer = (0, _styles.styled)('div', function (_ref11) {
|
package/app-nav-bar/user-menu.js
CHANGED
|
@@ -57,7 +57,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
57
57
|
|
|
58
58
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
59
59
|
|
|
60
|
-
var MENU_ITEM_WIDTH = '275px'; // eslint-disable-next-line react/display-name
|
|
60
|
+
var MENU_ITEM_WIDTH = '275px'; // eslint-disable-next-line @typescript-eslint/no-explicit-any,react/display-name
|
|
61
61
|
|
|
62
62
|
var UserMenuListItem = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
63
63
|
var item = props.item,
|
|
@@ -44,7 +44,8 @@ var aspectRatioBoxStyle = function aspectRatioBoxStyle(_ref) {
|
|
|
44
44
|
clear: 'both'
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
|
-
};
|
|
47
|
+
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
48
|
+
|
|
48
49
|
|
|
49
50
|
var AspectRatioBox = function AspectRatioBox(_ref2) {
|
|
50
51
|
var forwardedRef = _ref2.forwardedRef,
|
|
@@ -62,6 +63,7 @@ var AspectRatioBox = function AspectRatioBox(_ref2) {
|
|
|
62
63
|
var blockOverrides = (0, _overrides.mergeOverrides)(aspectRatioBoxOverrides, overrides);
|
|
63
64
|
return /*#__PURE__*/React.createElement(_block.Block // coerced to any because of how react components are typed.
|
|
64
65
|
// cannot guarantee an html element
|
|
66
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
65
67
|
, _extends({
|
|
66
68
|
ref: forwardedRef,
|
|
67
69
|
overrides: blockOverrides,
|
|
@@ -58,7 +58,8 @@ var StyledMessageContent = (0, _index.styled)('div', function (_ref3) {
|
|
|
58
58
|
paddingBlockStart: $theme.sizing.scale600,
|
|
59
59
|
paddingBlockEnd: $actionPosition === _constants.ACTION_POSITION.trailing ? $theme.sizing.scale600 : null
|
|
60
60
|
};
|
|
61
|
-
});
|
|
61
|
+
}); // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
62
|
+
|
|
62
63
|
exports.StyledMessageContent = StyledMessageContent;
|
|
63
64
|
StyledMessageContent.displayName = "StyledMessageContent";
|
|
64
65
|
var StyledTrailingContent = (0, _index.styled)('div', function (_ref4) {
|
package/block/block.js
CHANGED
|
@@ -118,6 +118,7 @@ var Block = function Block(_ref) {
|
|
|
118
118
|
|
|
119
119
|
return /*#__PURE__*/React.createElement(BaseBlock // coerced to any because because of how react components are typed.
|
|
120
120
|
// cannot guarantee an html element
|
|
121
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
121
122
|
, _extends({
|
|
122
123
|
ref: forwardedRef,
|
|
123
124
|
$as: as,
|
|
@@ -188,7 +189,8 @@ var Block = function Block(_ref) {
|
|
|
188
189
|
$whiteSpace: whiteSpace,
|
|
189
190
|
"data-baseweb": "block"
|
|
190
191
|
}, restProps, baseBlockProps), children);
|
|
191
|
-
};
|
|
192
|
+
}; // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
193
|
+
|
|
192
194
|
|
|
193
195
|
var BlockComponent = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
194
196
|
return /*#__PURE__*/React.createElement(Block, _extends({}, props, {
|
|
@@ -28,6 +28,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
28
28
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
29
29
|
|
|
30
30
|
function StatefulButtonGroup(props) {
|
|
31
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
31
32
|
var children = props.children,
|
|
32
33
|
initialState = props.initialState,
|
|
33
34
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
@@ -64,7 +64,8 @@ function isSelectedDefined(selected) {
|
|
|
64
64
|
return Array.isArray(selected) || typeof selected === 'number';
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
function defaultStateReducer(type, nextState,
|
|
67
|
+
function defaultStateReducer(type, nextState, // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
68
|
+
currentState) {
|
|
68
69
|
return nextState;
|
|
69
70
|
}
|
|
70
71
|
|
|
@@ -133,6 +134,7 @@ var StatefulContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
133
134
|
_createClass(StatefulContainer, [{
|
|
134
135
|
key: "render",
|
|
135
136
|
value: function render() {
|
|
137
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
136
138
|
var _this$props = this.props,
|
|
137
139
|
initialState = _this$props.initialState,
|
|
138
140
|
stateReducer = _this$props.stateReducer,
|