@popsure/dirty-swan 0.54.24 → 0.54.26
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/dist/cjs/index.js +27 -30
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/components/table/components/IconRenderer/IconRenderer.d.ts +2 -1
- package/dist/cjs/lib/components/table/components/TableCell/BaseCell/BaseCell.d.ts +4 -1
- package/dist/cjs/lib/components/table/components/TableCell/BaseCell/BaseCell.stories.d.ts +1 -1
- package/dist/cjs/lib/components/table/components/TableCell/ButtonCell/ButtonCell.d.ts +4 -1
- package/dist/cjs/lib/components/table/components/TableCell/ButtonCell/ButtonCell.stories.d.ts +1 -1
- package/dist/cjs/lib/components/table/components/TableCell/CTACell/CTACell.d.ts +4 -1
- package/dist/cjs/lib/components/table/components/TableCell/CTACell/CTACell.stories.d.ts +1 -1
- package/dist/cjs/lib/models/styles.d.ts +1 -1
- package/dist/esm/{TableSection-125a084f.js → TableSection-3c13df54.js} +1 -1
- package/dist/esm/{TableSection-125a084f.js.map → TableSection-3c13df54.js.map} +1 -1
- package/dist/esm/components/icon/icons/CheckThick.js +2 -2
- package/dist/esm/components/icon/icons/CheckThick.js.map +1 -1
- package/dist/esm/components/icon/icons.stories.js +1 -1
- package/dist/esm/components/icon/index.stories.js +1 -1
- package/dist/esm/components/table/Table.js +4 -4
- package/dist/esm/components/table/Table.js.map +1 -1
- package/dist/esm/components/table/Table.stories.js +8 -4
- package/dist/esm/components/table/Table.stories.js.map +1 -1
- package/dist/esm/components/table/Table.test.js +2 -2
- package/dist/esm/components/table/components/IconRenderer/IconRenderer.js +2 -2
- package/dist/esm/components/table/components/IconRenderer/IconRenderer.js.map +1 -1
- package/dist/esm/components/table/components/TableCell/BaseCell/BaseCell.js +9 -12
- package/dist/esm/components/table/components/TableCell/BaseCell/BaseCell.js.map +1 -1
- package/dist/esm/components/table/components/TableCell/BaseCell/BaseCell.stories.js +1 -1
- package/dist/esm/components/table/components/TableCell/ButtonCell/ButtonCell.js +4 -4
- package/dist/esm/components/table/components/TableCell/ButtonCell/ButtonCell.js.map +1 -1
- package/dist/esm/components/table/components/TableCell/ButtonCell/ButtonCell.stories.js +1 -1
- package/dist/esm/components/table/components/TableCell/CTACell/CTACell.js +4 -3
- package/dist/esm/components/table/components/TableCell/CTACell/CTACell.js.map +1 -1
- package/dist/esm/components/table/components/TableCell/TableCell.js +2 -2
- package/dist/esm/components/table/components/TableCell/TableCell.test.js +1 -1
- package/dist/esm/components/table/components/TableContents/TableContents.js +7 -7
- package/dist/esm/components/table/components/TableContents/TableContents.js.map +1 -1
- package/dist/esm/components/table/components/TableContents/TableContents.test.js +2 -2
- package/dist/esm/components/table/components/TableControls/TableControls.js +1 -1
- package/dist/esm/components/table/components/TableSection/TableSection.js +2 -2
- package/dist/esm/components/table/components/TableSection/TableSection.test.js +2 -2
- package/dist/esm/{index-6189a998.js → index-2faa4731.js} +3 -3
- package/dist/esm/{index-6189a998.js.map → index-2faa4731.js.map} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/lib/components/table/components/IconRenderer/IconRenderer.d.ts +2 -1
- package/dist/esm/lib/components/table/components/TableCell/BaseCell/BaseCell.d.ts +4 -1
- package/dist/esm/lib/components/table/components/TableCell/BaseCell/BaseCell.stories.d.ts +1 -1
- package/dist/esm/lib/components/table/components/TableCell/ButtonCell/ButtonCell.d.ts +4 -1
- package/dist/esm/lib/components/table/components/TableCell/ButtonCell/ButtonCell.stories.d.ts +1 -1
- package/dist/esm/lib/components/table/components/TableCell/CTACell/CTACell.d.ts +4 -1
- package/dist/esm/lib/components/table/components/TableCell/CTACell/CTACell.stories.d.ts +1 -1
- package/dist/esm/lib/models/styles.d.ts +1 -1
- package/package.json +1 -1
- package/src/lib/components/table/Table.stories.tsx +6 -2
- package/src/lib/components/table/Table.tsx +3 -3
- package/src/lib/components/table/components/IconRenderer/IconRenderer.tsx +3 -2
- package/src/lib/components/table/components/TableCell/BaseCell/BaseCell.module.scss +0 -9
- package/src/lib/components/table/components/TableCell/BaseCell/BaseCell.tsx +34 -41
- package/src/lib/components/table/components/TableCell/ButtonCell/ButtonCell.tsx +14 -1
- package/src/lib/components/table/components/TableCell/CTACell/CTACell.tsx +6 -1
- package/src/lib/components/table/components/TableCell/TableCell.module.scss +7 -1
- package/src/lib/components/table/components/TableContents/TableContents.module.scss +5 -0
- package/src/lib/components/table/components/TableContents/TableContents.tsx +3 -3
- package/src/lib/components/table/components/TableControls/TableControls.module.scss +1 -0
- package/src/lib/models/styles.ts +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -2609,7 +2609,7 @@ var CheckSquare = (function (props) {
|
|
|
2609
2609
|
return require$$0.createElement(IconWrapper, props, jsxRuntime.jsx("path", { stroke: "currentColor", strokeLinecap: "round", strokeWidth: 2, d: "M16 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9m0-5-9.824 9.824a.25.25 0 0 1-.353 0l-2.651-2.652" }));
|
|
2610
2610
|
});
|
|
2611
2611
|
|
|
2612
|
-
var
|
|
2612
|
+
var CheckThickIcon = (function (props) {
|
|
2613
2613
|
return require$$0.createElement(IconWrapper, props, jsxRuntime.jsx("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 3, d: "M20 7 9 18l-5-5" }));
|
|
2614
2614
|
});
|
|
2615
2615
|
|
|
@@ -14357,12 +14357,12 @@ var Accordion = function (_a) {
|
|
|
14357
14357
|
}) }));
|
|
14358
14358
|
};
|
|
14359
14359
|
|
|
14360
|
-
var css_248z$9 = ".TableCell-module_th__2rjCU {\n vertical-align: middle;\n scroll-snap-align: end;\n width: 50%;\n}\n@media (min-width: 34rem) {\n .TableCell-module_th__2rjCU {\n width: auto;\n scroll-snap-align: unset;\n }\n}\n.TableCell-module_thNavigation__qZ2sY {\n width: auto;\n}\n\n.TableCell-module_fixedCell__cL3-m {\n position: sticky;\n left: 0;\n z-index: 2;\n}\n.TableCell-module_fixedCell__cL3-m:after {\n content: \"\";\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n width: 1px;\n background-color: #f5f6fb;\n}\n\n.TableCell-module_fixedCard__2LO8s {\n position: sticky;\n left: 0;\n right: 0;\n z-index: 2;\n width: 100%;\n}";
|
|
14360
|
+
var css_248z$9 = ".TableCell-module_th__2rjCU {\n vertical-align: middle;\n scroll-snap-align: end;\n width: 50%;\n}\n@media (min-width: 34rem) {\n .TableCell-module_th__2rjCU {\n width: auto;\n scroll-snap-align: unset;\n }\n}\n.TableCell-module_thNavigation__qZ2sY {\n width: 100%;\n}\n@media (min-width: 34rem) {\n .TableCell-module_thNavigation__qZ2sY {\n width: auto;\n }\n}\n\n.TableCell-module_fixedCell__cL3-m {\n position: sticky;\n left: 0;\n z-index: 2;\n}\n.TableCell-module_fixedCell__cL3-m:after {\n content: \"\";\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n width: 1px;\n background-color: #f5f6fb;\n}\n\n.TableCell-module_fixedCard__2LO8s {\n position: sticky;\n left: 0;\n right: 0;\n z-index: 2;\n width: 100%;\n}";
|
|
14361
14361
|
var styles$9 = {"th":"TableCell-module_th__2rjCU","thNavigation":"TableCell-module_thNavigation__qZ2sY","fixedCell":"TableCell-module_fixedCell__cL3-m","fixedCard":"TableCell-module_fixedCard__2LO8s"};
|
|
14362
14362
|
styleInject(css_248z$9);
|
|
14363
14363
|
|
|
14364
|
-
var css_248z$8 = "
|
|
14365
|
-
var styles$8 = {"
|
|
14364
|
+
var css_248z$8 = "@media (max-width: 34rem) {\n .BaseCell-module_maxWidth__14Cly {\n max-width: calc(100% - 64px);\n }\n}\n\n.BaseCell-module_icon__1775U {\n margin: 2px;\n}\n\n.BaseCell-module_description__3_kfe {\n word-break: break-word;\n}\n\n.BaseCell-module_bigWithUnderline__2xx5X {\n position: relative;\n display: flex;\n line-height: 38px;\n text-decoration: underline;\n text-decoration-color: #8e8cee;\n text-decoration-thickness: 4px;\n text-underline-offset: 8px;\n}";
|
|
14365
|
+
var styles$8 = {"maxWidth":"BaseCell-module_maxWidth__14Cly","icon":"BaseCell-module_icon__1775U","description":"BaseCell-module_description__3_kfe","bigWithUnderline":"BaseCell-module_bigWithUnderline__2xx5X"};
|
|
14366
14366
|
styleInject(css_248z$8);
|
|
14367
14367
|
|
|
14368
14368
|
var css_248z$7 = ".MiniProgressBar-module_progressBar__2K07F {\n margin-bottom: 4px;\n}\n.MiniProgressBar-module_progressBar__2K07F rect {\n fill: #ebebff;\n}\n\n.MiniProgressBar-module_filledBars1__ZhQbV rect:first-child {\n fill: #91919c;\n}\n\n.MiniProgressBar-module_filledBars2__2lH_z rect:nth-child(-n+2) {\n fill: #91919c;\n}\n\n.MiniProgressBar-module_filledBars3__1OKUj rect:nth-child(-n+3) {\n fill: #b0cdf3;\n}\n\n.MiniProgressBar-module_filledBars4__T9kuj rect:nth-child(-n+4) {\n fill: #b0cdf3;\n}\n\n.MiniProgressBar-module_filledBars5__WxVpb rect {\n fill: #8e8cee;\n}";
|
|
@@ -14388,7 +14388,7 @@ var progressLookup = {
|
|
|
14388
14388
|
};
|
|
14389
14389
|
var BaseCell = function (_a) {
|
|
14390
14390
|
var _b;
|
|
14391
|
-
var _c = _a.align, align = _c === void 0 ? 'center' : _c, checkmarkValue = _a.checkmarkValue, _d = _a.description, description = _d === void 0 ? '' : _d, _e = _a.fontVariant, fontVariant = _e === void 0 ? 'NORMAL' : _e, _f = _a.hideProgressBar, hideProgressBar = _f === void 0 ? false : _f, _g = _a.modalTitle, modalTitle = _g === void 0 ? '' : _g, _h = _a.modalContent, modalContent = _h === void 0 ? '' : _h, openModal = _a.openModal, rating = _a.rating, _j = _a.text, text = _j === void 0 ? '' : _j;
|
|
14391
|
+
var _c = _a.align, align = _c === void 0 ? 'center' : _c, checkmarkValue = _a.checkmarkValue, _d = _a.description, description = _d === void 0 ? '' : _d, _e = _a.fontVariant, fontVariant = _e === void 0 ? 'NORMAL' : _e, _f = _a.hideProgressBar, hideProgressBar = _f === void 0 ? false : _f, _g = _a.modalTitle, modalTitle = _g === void 0 ? '' : _g, _h = _a.modalContent, modalContent = _h === void 0 ? '' : _h, openModal = _a.openModal, rating = _a.rating, _j = _a.text, text = _j === void 0 ? '' : _j, className = _a.className;
|
|
14392
14392
|
var alignClassName = {
|
|
14393
14393
|
center: 'ta-center jc-center ai-center',
|
|
14394
14394
|
left: 'ta-left jc-start',
|
|
@@ -14399,19 +14399,16 @@ var BaseCell = function (_a) {
|
|
|
14399
14399
|
var progressBarValue = !hideProgressBar && typeof text === 'string'
|
|
14400
14400
|
? progressLookup[text]
|
|
14401
14401
|
: undefined;
|
|
14402
|
-
return (jsxRuntime.jsx("div", { className: classNames$1('d-flex gap8 ai-center', {
|
|
14402
|
+
return (jsxRuntime.jsx("div", { className: classNames$1(className, 'd-flex gap8 ai-center', {
|
|
14403
14403
|
'jc-center': align === 'center',
|
|
14404
|
-
}), children: jsxRuntime.jsxs("div", { className: classNames$1('d-flex fd-column', alignClassName,
|
|
14404
|
+
}), children: jsxRuntime.jsxs("div", { className: classNames$1('d-flex fd-column', alignClassName, (_b = {},
|
|
14405
|
+
_b[styles$8.maxWidth] = modalContent && align === 'center',
|
|
14406
|
+
_b)), children: [progressBarValue !== undefined && (jsxRuntime.jsx(MiniProgressBar, { nFilledBars: progressBarValue })), jsxRuntime.jsxs("div", { className: "d-flex ai-center", children: [(rating === null || rating === void 0 ? void 0 : rating.value) && (jsxRuntime.jsx("span", { "data-testid": "table-cell-rating", title: "".concat(rating === null || rating === void 0 ? void 0 : rating.value, " out of 3"), children: validRatingValues.map(function (value) { return (jsxRuntime.jsx(SelectedIcon, { "aria-hidden": "true", color: value <= (rating === null || rating === void 0 ? void 0 : rating.value) ? 'primary-500' : 'grey-400', className: styles$8.icon, size: (rating === null || rating === void 0 ? void 0 : rating.type) === 'zap' ? 16 : 14 }, value)); }) })), checkmarkValue !== undefined && (jsxRuntime.jsx("span", { className: 'd-inline-block mx8', title: checkmarkValue ? 'Yes' : 'No', children: checkmarkValue ? (jsxRuntime.jsx(CheckThickIcon, { noMargin: true, "data-testid": "table-cell-boolean-yes", size: 24, "aria-hidden": true, color: "primary-500" })) : (jsxRuntime.jsx(XIcon, { noMargin: true, "data-testid": "table-cell-boolean-no", size: 24, "aria-hidden": true, color: "grey-400" })) })), jsxRuntime.jsxs("div", { className: "d-inline", children: [text && fontVariant === 'NORMAL' && (jsxRuntime.jsx("div", { className: "p-p d-inline ml8", "data-testid": "table-cell-text", children: text })), text && fontVariant === 'PRICE' && (jsxRuntime.jsx("div", { className: "p-h1 p--serif tc-primary-500", "data-testid": "table-cell-content", children: text })), text && fontVariant === 'BIG_WITH_UNDERLINE' && (jsxRuntime.jsx("h2", { "aria-hidden": true, className: classNames$1('tc-grey-800 p-h2 p--serif', styles$8.bigWithUnderline), children: text })), modalContent && openModal && (jsxRuntime.jsx("span", { className: "ml8", children: jsxRuntime.jsx(TableInfoButton, { onClick: function () {
|
|
14405
14407
|
return openModal({
|
|
14406
14408
|
title: modalTitle,
|
|
14407
14409
|
body: modalContent,
|
|
14408
14410
|
});
|
|
14409
|
-
} }) }))] })] }), description && (jsxRuntime.jsx("div", { className: classNames$1(styles$8.description, 'd-flex p-p--small tc-grey-500', alignClassName), children: description }))
|
|
14410
|
-
return openModal({
|
|
14411
|
-
title: modalTitle,
|
|
14412
|
-
body: modalContent,
|
|
14413
|
-
});
|
|
14414
|
-
} }) }))] }) }));
|
|
14411
|
+
} }) }))] })] }), description && (jsxRuntime.jsx("div", { className: classNames$1(styles$8.description, 'd-flex p-p--small tc-grey-500', alignClassName), children: description }))] }) }));
|
|
14415
14412
|
};
|
|
14416
14413
|
|
|
14417
14414
|
var css_248z$6 = ".CTACell-module_narrow__1EPPT {\n height: 40px;\n padding: 8px !important;\n}";
|
|
@@ -14419,23 +14416,23 @@ var styles$6 = {"narrow":"CTACell-module_narrow__1EPPT"};
|
|
|
14419
14416
|
styleInject(css_248z$6);
|
|
14420
14417
|
|
|
14421
14418
|
var IconRenderer = function (_a) {
|
|
14422
|
-
var icon = _a.icon, imageComponent = _a.imageComponent;
|
|
14419
|
+
var icon = _a.icon, imageComponent = _a.imageComponent, _b = _a.width, width = _b === void 0 ? 24 : _b;
|
|
14423
14420
|
var ImageComponent = imageComponent !== null && imageComponent !== void 0 ? imageComponent : 'img';
|
|
14424
14421
|
var iconIsUrl = typeof icon === 'string';
|
|
14425
|
-
var renderedIcon = iconIsUrl ? (jsxRuntime.jsx(ImageComponent, { src: icon, width:
|
|
14422
|
+
var renderedIcon = iconIsUrl ? (jsxRuntime.jsx(ImageComponent, { src: icon, width: width, alt: "" })) : (icon);
|
|
14426
14423
|
return jsxRuntime.jsx(jsxRuntime.Fragment, { children: renderedIcon });
|
|
14427
14424
|
};
|
|
14428
14425
|
|
|
14429
14426
|
var CTACell = function (_a) {
|
|
14430
14427
|
var _b;
|
|
14431
|
-
var title = _a.title, price = _a.price, icon = _a.icon, grey = _a.grey, narrow = _a.narrow, href = _a.href, buttonCaption = _a.buttonCaption, imageComponent = _a.imageComponent;
|
|
14428
|
+
var title = _a.title, price = _a.price, icon = _a.icon, grey = _a.grey, narrow = _a.narrow, href = _a.href, buttonCaption = _a.buttonCaption, imageComponent = _a.imageComponent, className = _a.className, rest = __rest$1(_a, ["title", "price", "icon", "grey", "narrow", "href", "buttonCaption", "imageComponent", "className"]);
|
|
14432
14429
|
var renderedIcon = (jsxRuntime.jsx(IconRenderer, { icon: icon, imageComponent: imageComponent }));
|
|
14433
|
-
return (jsxRuntime.jsxs("div", { className: "ta-center", children: [jsxRuntime.jsxs("div", { className: "d-flex jc-center ai-center gap8", children: [renderedIcon, jsxRuntime.jsxs("p", { className: "p-h3", children: [title, price && jsxRuntime.jsxs("span", { className: "tc-purple-500", children: [" ", price] })] })] }), jsxRuntime.jsx("a", { className: classNames$1('mt16 w100 wmx3', (_b = {
|
|
14430
|
+
return (jsxRuntime.jsxs("div", __assign({ className: classNames$1(className, "ta-center") }, rest, { children: [jsxRuntime.jsxs("div", { className: "d-flex jc-center ai-center gap8", children: [renderedIcon, jsxRuntime.jsxs("p", { className: "p-h3", children: [title, price && jsxRuntime.jsxs("span", { className: "tc-purple-500", children: [" ", price] })] })] }), jsxRuntime.jsx("a", { className: classNames$1('mt16 w100 wmx3', (_b = {
|
|
14434
14431
|
'p-btn--primary': !grey,
|
|
14435
14432
|
'p-btn--secondary-grey': grey
|
|
14436
14433
|
},
|
|
14437
14434
|
_b[styles$6.narrow] = narrow,
|
|
14438
|
-
_b)), href: href, target: "_blank", rel: "noopener noreferrer", children: buttonCaption })] }));
|
|
14435
|
+
_b)), href: href, target: "_blank", rel: "noopener noreferrer", children: buttonCaption })] })));
|
|
14439
14436
|
};
|
|
14440
14437
|
|
|
14441
14438
|
var CardCell = function (_a) {
|
|
@@ -14450,12 +14447,12 @@ styleInject(css_248z$5);
|
|
|
14450
14447
|
|
|
14451
14448
|
var ButtonCell = function (_a) {
|
|
14452
14449
|
var _b;
|
|
14453
|
-
var isSelected = _a.isSelected, onClick = _a.onClick, buttonCaption = _a.buttonCaption, price = _a.price, disabled = _a.disabled;
|
|
14454
|
-
return (jsxRuntime.jsx("div", { className: "w100 d-flex fd-column ai-center jc-center gap8", children: jsxRuntime.jsxs(Button, { className: classNames$1('w100 wmx5 d-flex fd-column', styles$5.buttonCell, (_b = {},
|
|
14450
|
+
var isSelected = _a.isSelected, onClick = _a.onClick, buttonCaption = _a.buttonCaption, price = _a.price, disabled = _a.disabled, className = _a.className, rest = __rest$1(_a, ["isSelected", "onClick", "buttonCaption", "price", "disabled", "className"]);
|
|
14451
|
+
return (jsxRuntime.jsx("div", __assign({ className: classNames$1("w100 d-flex fd-column ai-center jc-center gap8", className) }, rest, { children: jsxRuntime.jsxs(Button, { className: classNames$1('w100 wmx5 d-flex fd-column', styles$5.buttonCell, (_b = {},
|
|
14455
14452
|
_b[styles$5.selected] = isSelected,
|
|
14456
14453
|
_b[styles$5.withoutPrice] = !price,
|
|
14457
14454
|
_b[styles$5.withPrice] = !!price,
|
|
14458
|
-
_b)), variant: "filledWhite", type: "submit", onClick: onClick, disabled: disabled, children: [buttonCaption, price && jsxRuntime.jsx("span", { className: "p-p tc-purple-500", children: price })] }) }));
|
|
14455
|
+
_b)), variant: "filledWhite", type: "submit", onClick: onClick, disabled: disabled, children: [buttonCaption, price && jsxRuntime.jsx("span", { className: "p-p tc-purple-500", children: price })] }) })));
|
|
14459
14456
|
};
|
|
14460
14457
|
|
|
14461
14458
|
var TableCell = require$$0__default['default'].memo(function (_a) {
|
|
@@ -14609,8 +14606,8 @@ var TableSection = function (_a) {
|
|
|
14609
14606
|
}) })] }));
|
|
14610
14607
|
};
|
|
14611
14608
|
|
|
14612
|
-
var css_248z$2 = ".TableContents-module_cardWrapper__2OVMv {\n height: 88px;\n}\n\n.TableContents-module_card__Mmz6h {\n position: absolute;\n left: 0;\n right: 0;\n z-index: 3;\n}";
|
|
14613
|
-
var styles$2 = {"cardWrapper":"TableContents-module_cardWrapper__2OVMv","card":"TableContents-module_card__Mmz6h"};
|
|
14609
|
+
var css_248z$2 = ".TableContents-module_cardWrapper__2OVMv {\n height: 88px;\n}\n\n.TableContents-module_card__Mmz6h {\n position: absolute;\n left: 0;\n right: 0;\n z-index: 3;\n}\n\n.TableContents-module_cardIcon__2DXbp {\n width: 20px;\n margin-right: 8px;\n}";
|
|
14610
|
+
var styles$2 = {"cardWrapper":"TableContents-module_cardWrapper__2OVMv","card":"TableContents-module_card__Mmz6h","cardIcon":"TableContents-module_cardIcon__2DXbp"};
|
|
14614
14611
|
styleInject(css_248z$2);
|
|
14615
14612
|
|
|
14616
14613
|
var css_248z$1 = ".Collapsible-module_collapsible__2wWKs {\n transition: max-height 0.3s ease-in-out;\n overflow-y: clip;\n}";
|
|
@@ -14670,10 +14667,10 @@ var TableContents = function (_a) {
|
|
|
14670
14667
|
? true
|
|
14671
14668
|
: isSectionOpen === index || isFirstSection;
|
|
14672
14669
|
var isVisible = hideDetails ? !shouldHideDetails : true;
|
|
14673
|
-
var renderedIcon = (jsxRuntime.jsx(IconRenderer, { icon: section.icon, imageComponent: imageComponent }));
|
|
14670
|
+
var renderedIcon = (jsxRuntime.jsx(IconRenderer, { icon: section.icon, imageComponent: imageComponent, width: 20 }));
|
|
14674
14671
|
return ((isFirstSection || isVisible) && (jsxRuntime.jsxs("div", { children: [(section === null || section === void 0 ? void 0 : section.title) && (jsxRuntime.jsx("div", { className: styles$2.cardWrapper, children: jsxRuntime.jsx("div", { className: classNames$1(styles$2.card, 'p0'), children: jsxRuntime.jsx(Card, __assign({ actionIcon: isExpanded ? (jsxRuntime.jsx(ChevronUpIcon, { size: 24 })) : (jsxRuntime.jsx(ChevronDownIcon, { size: 24 })), "aria-expanded": isExpanded ? 'true' : 'false', "aria-hidden": true, classNames: {
|
|
14675
|
-
wrapper: 'bg-
|
|
14676
|
-
icon: 'tc-grey-900',
|
|
14672
|
+
wrapper: 'bg-purple-50 pl16',
|
|
14673
|
+
icon: classNames$1(styles$2.cardIcon, 'tc-grey-900'),
|
|
14677
14674
|
}, dropShadow: false, icon: renderedIcon, title: section.title, titleVariant: "medium" }, (collapsibleSections
|
|
14678
14675
|
? {
|
|
14679
14676
|
onClick: function () { return handleToggleSection(index); },
|
|
@@ -14731,7 +14728,7 @@ var useTableNavigation = function (_a) {
|
|
|
14731
14728
|
};
|
|
14732
14729
|
};
|
|
14733
14730
|
|
|
14734
|
-
var css_248z = ".TableControls-module_stickyHeader__1f6Ta {\n display: flex;\n position: sticky;\n left: 0;\n right: 0;\n min-height: 72px;\n z-index: 9;\n}\n\n.TableControls-module_controlButton__2kQiG {\n border-radius: 50% !important;\n width: 32px;\n height: 32px;\n padding: 0;\n}";
|
|
14731
|
+
var css_248z = ".TableControls-module_stickyHeader__1f6Ta {\n display: flex;\n position: sticky;\n left: 0;\n right: 0;\n min-height: 72px;\n z-index: 9;\n}\n\n.TableControls-module_controlButton__2kQiG {\n border-radius: 50% !important;\n width: 32px;\n height: 32px;\n padding: 0;\n min-width: 32px;\n}";
|
|
14735
14732
|
var styles = {"stickyHeader":"TableControls-module_stickyHeader__1f6Ta","controlButton":"TableControls-module_controlButton__2kQiG"};
|
|
14736
14733
|
styleInject(css_248z);
|
|
14737
14734
|
|
|
@@ -14810,11 +14807,11 @@ var Table = function (_a) {
|
|
|
14810
14807
|
}
|
|
14811
14808
|
: {}), activeCellProps, { imageComponent: imageComponent, isNavigation: true })) })] })) : (jsxRuntime.jsx("div", { "aria-hidden": true, className: styles$4.stickyHeader, style: { top: "".concat(stickyHeaderTopOffset, "px") }, children: jsxRuntime.jsx("div", { className: styles$4.container, ref: headerRef, children: jsxRuntime.jsx(TableSection, { cellReplacements: cellReplacements, className: className, hideColumns: hideColumns, openModal: handleOpenModal, tableCellRows: [(_j = (_h = tableData === null || tableData === void 0 ? void 0 : tableData[0]) === null || _h === void 0 ? void 0 : _h.rows) === null || _j === void 0 ? void 0 : _j[0]], title: title, imageComponent: imageComponent }) }) })), jsxRuntime.jsx("div", { ref: containerRef, className: classNames$1(styles$4.container, 'pb8'), children: jsxRuntime.jsx(TableContents, { tableData: tableData, title: title, className: className, collapsibleSections: collapsibleSections, hideColumns: hideColumns, hideDetails: hideDetails, isMobile: isMobile, shouldHideDetails: shouldHideDetails, openModal: handleOpenModal, cellReplacements: cellReplacements, imageComponent: imageComponent }) }), hideDetails && (jsxRuntime.jsx(Card, { "data-testid": "show-hide-details", classNames: {
|
|
14812
14809
|
buttonWrapper: 'm8 mt32',
|
|
14813
|
-
title: 'd-flex gap8 ai-center jc-center',
|
|
14810
|
+
title: 'd-flex gap8 ai-center jc-center fw-bold',
|
|
14814
14811
|
wrapper: 'bg-grey-200',
|
|
14815
14812
|
}, title: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [shouldHideDetails
|
|
14816
14813
|
? textOverrides.showDetails
|
|
14817
|
-
: textOverrides.hideDetails, shouldHideDetails ? (jsxRuntime.jsx(ChevronDownIcon, { size:
|
|
14814
|
+
: textOverrides.hideDetails, shouldHideDetails ? (jsxRuntime.jsx(ChevronDownIcon, { size: 20 })) : (jsxRuntime.jsx(ChevronUpIcon, { size: 20 }))] }), actionIcon: null, dropShadow: false, titleVariant: "small", density: "compact", onClick: function () { return setShouldHideDetails(function (current) { return !current; }); } })), jsxRuntime.jsx(BottomOrRegularModal, { isOpen: (infoModalData === null || infoModalData === void 0 ? void 0 : infoModalData.body) ? true : false, title: infoModalData === null || infoModalData === void 0 ? void 0 : infoModalData.title, onClose: function () { return setInfoModalData(null); }, children: jsxRuntime.jsx("div", { className: "pt8 p24 wmn6", children: modalContentRenderer
|
|
14818
14815
|
? modalContentRenderer(infoModalData === null || infoModalData === void 0 ? void 0 : infoModalData.body)
|
|
14819
14816
|
: infoModalData === null || infoModalData === void 0 ? void 0 : infoModalData.body }) })] }));
|
|
14820
14817
|
};
|
|
@@ -14897,7 +14894,7 @@ exports.CheckIcon = CheckIcon;
|
|
|
14897
14894
|
exports.CheckInCircleFilledIcon = CheckInCircleFilled;
|
|
14898
14895
|
exports.CheckInCircleIcon = CheckInCircle;
|
|
14899
14896
|
exports.CheckSquareIcon = CheckSquare;
|
|
14900
|
-
exports.CheckThickIcon =
|
|
14897
|
+
exports.CheckThickIcon = CheckThickIcon;
|
|
14901
14898
|
exports.Checkbox = Checkbox;
|
|
14902
14899
|
exports.CheckboxCheckedIcon = CheckboxChecked;
|
|
14903
14900
|
exports.CheckboxUncheckedIcon = CheckboxUnchecked;
|