oa-componentbook 1.0.1-stage.456 → 1.0.1-stage.458
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.
|
@@ -91,11 +91,7 @@ function CustomInfo(_ref) {
|
|
|
91
91
|
return /*#__PURE__*/_react.default.createElement(_styles.InfoContainer, {
|
|
92
92
|
$color: color,
|
|
93
93
|
$borderColor: borderColor
|
|
94
|
-
}, /*#__PURE__*/_react.default.createElement(_styles.RowFlex, {
|
|
95
|
-
style: {
|
|
96
|
-
width: '100%'
|
|
97
|
-
}
|
|
98
|
-
}, iconConfig.position === 'left' && conditionallyAddTooltipToIcon(), /*#__PURE__*/_react.default.createElement(_styles.ColFlex, {
|
|
94
|
+
}, /*#__PURE__*/_react.default.createElement(_styles.RowFlex, null, iconConfig.position === 'left' && conditionallyAddTooltipToIcon(), /*#__PURE__*/_react.default.createElement(_styles.ColFlex, {
|
|
99
95
|
style: {
|
|
100
96
|
flex: 1
|
|
101
97
|
}
|
|
@@ -8,7 +8,7 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
8
8
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
10
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
11
|
-
const RowFlex = exports.RowFlex = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n gap: 8px;\n"])));
|
|
11
|
+
const RowFlex = exports.RowFlex = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n gap: 8px;\n width: 100%;\n"])));
|
|
12
12
|
const ColFlex = exports.ColFlex = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n gap: 8px;\n"])));
|
|
13
13
|
const InfoContainer = exports.InfoContainer = (0, _styledComponents.default)(RowFlex).attrs({
|
|
14
14
|
as: 'section'
|
|
@@ -1224,9 +1224,8 @@ function GenricLayOut(_ref) {
|
|
|
1224
1224
|
*/
|
|
1225
1225
|
const onTabClick = async key => {
|
|
1226
1226
|
var _ref4, _tabs$extraAction$che, _tabs$extraAction, _tabs$extraAction2, _tables$filter5, _tables$columns2, _staticFilter$data$fi2;
|
|
1227
|
-
// Store the checked value
|
|
1227
|
+
// Store the checked value to pass to handleTabClick
|
|
1228
1228
|
const extraActionChecked = (_ref4 = (_tabs$extraAction$che = tabs === null || tabs === void 0 || (_tabs$extraAction = tabs.extraAction) === null || _tabs$extraAction === void 0 ? void 0 : _tabs$extraAction.checked) !== null && _tabs$extraAction$che !== void 0 ? _tabs$extraAction$che : tabs === null || tabs === void 0 || (_tabs$extraAction2 = tabs.extraAction) === null || _tabs$extraAction2 === void 0 || (_tabs$extraAction2 = _tabs$extraAction2.props) === null || _tabs$extraAction2 === void 0 ? void 0 : _tabs$extraAction2.defaultChecked) !== null && _ref4 !== void 0 ? _ref4 : false;
|
|
1229
|
-
resetTabsExtraActionSwitch();
|
|
1230
1229
|
dispatch({
|
|
1231
1230
|
type: _layoutReducer.actionTypes.TAB_CLICK,
|
|
1232
1231
|
payload: {
|
|
@@ -2225,8 +2224,6 @@ function GenricLayOut(_ref) {
|
|
|
2225
2224
|
paragraph: {
|
|
2226
2225
|
rows: 1
|
|
2227
2226
|
}
|
|
2228
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
2229
|
-
className: "margin-bottom-12"
|
|
2230
2227
|
}, /*#__PURE__*/_react.default.createElement(_CustomInfo.default, {
|
|
2231
2228
|
closable: infoData === null || infoData === void 0 ? void 0 : infoData.closable,
|
|
2232
2229
|
description: infoData === null || infoData === void 0 ? void 0 : infoData.description,
|
|
@@ -2238,7 +2235,7 @@ function GenricLayOut(_ref) {
|
|
|
2238
2235
|
}),
|
|
2239
2236
|
position: (infoData === null || infoData === void 0 || (_infoData$iconConfig4 = infoData.iconConfig) === null || _infoData$iconConfig4 === void 0 ? void 0 : _infoData$iconConfig4.position) || "left"
|
|
2240
2237
|
}
|
|
2241
|
-
}))
|
|
2238
|
+
})), (cards === null || cards === void 0 ? void 0 : cards.visible) && /*#__PURE__*/_react.default.createElement(_antd.Skeleton, {
|
|
2242
2239
|
loading: state === null || state === void 0 ? void 0 : state.isLoading,
|
|
2243
2240
|
active: true,
|
|
2244
2241
|
paragraph: {
|