@popsure/dirty-swan 0.55.2 → 0.55.3

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.
Files changed (30) hide show
  1. package/dist/cjs/index.js +7 -7
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/lib/components/table/components/TableCell/ButtonCell/ButtonCell.d.ts +1 -1
  4. package/dist/cjs/lib/components/table/components/TableCell/ButtonCell/ButtonCell.stories.d.ts +1 -1
  5. package/dist/cjs/lib/components/table/components/TableCell/CTACell/CTACell.d.ts +1 -1
  6. package/dist/cjs/lib/components/table/components/TableCell/CTACell/CTACell.stories.d.ts +1 -1
  7. package/dist/esm/{TableSection-d7dbad68.js → TableSection-a1be2bd3.js} +1 -1
  8. package/dist/esm/{TableSection-d7dbad68.js.map → TableSection-a1be2bd3.js.map} +1 -1
  9. package/dist/esm/components/table/Table.js +2 -2
  10. package/dist/esm/components/table/Table.js.map +1 -1
  11. package/dist/esm/components/table/Table.stories.js +1 -1
  12. package/dist/esm/components/table/Table.test.js +1 -1
  13. package/dist/esm/components/table/components/TableCell/ButtonCell/ButtonCell.js +4 -4
  14. package/dist/esm/components/table/components/TableCell/ButtonCell/ButtonCell.js.map +1 -1
  15. package/dist/esm/components/table/components/TableCell/ButtonCell/ButtonCell.stories.js +1 -1
  16. package/dist/esm/components/table/components/TableCell/CTACell/CTACell.js +3 -4
  17. package/dist/esm/components/table/components/TableCell/CTACell/CTACell.js.map +1 -1
  18. package/dist/esm/components/table/components/TableContents/TableContents.js +1 -1
  19. package/dist/esm/components/table/components/TableContents/TableContents.test.js +1 -1
  20. package/dist/esm/components/table/components/TableSection/TableSection.js +1 -1
  21. package/dist/esm/components/table/components/TableSection/TableSection.test.js +1 -1
  22. package/dist/esm/index.js +1 -1
  23. package/dist/esm/lib/components/table/components/TableCell/ButtonCell/ButtonCell.d.ts +1 -1
  24. package/dist/esm/lib/components/table/components/TableCell/ButtonCell/ButtonCell.stories.d.ts +1 -1
  25. package/dist/esm/lib/components/table/components/TableCell/CTACell/CTACell.d.ts +1 -1
  26. package/dist/esm/lib/components/table/components/TableCell/CTACell/CTACell.stories.d.ts +1 -1
  27. package/package.json +1 -1
  28. package/src/lib/components/table/Table.tsx +1 -1
  29. package/src/lib/components/table/components/TableCell/ButtonCell/ButtonCell.tsx +4 -2
  30. package/src/lib/components/table/components/TableCell/CTACell/CTACell.tsx +7 -2
package/dist/cjs/index.js CHANGED
@@ -14427,14 +14427,14 @@ var IconRenderer = function (_a) {
14427
14427
 
14428
14428
  var CTACell = function (_a) {
14429
14429
  var _b;
14430
- 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"]);
14430
+ 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, dataCy = _a.dataCy, dataTestId = _a.dataTestId;
14431
14431
  var renderedIcon = (jsxRuntime.jsx(IconRenderer, { icon: icon, imageComponent: imageComponent }));
14432
- 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 = {
14432
+ return (jsxRuntime.jsxs("div", { className: classNames$1(className, "ta-center"), "data-cy": dataCy, "data-testid": dataTestId, 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 = {
14433
14433
  'p-btn--primary': !grey,
14434
14434
  'p-btn--secondary-grey': grey
14435
14435
  },
14436
14436
  _b[styles$6.narrow] = narrow,
14437
- _b)), href: href, target: "_blank", rel: "noopener noreferrer", children: buttonCaption })] })));
14437
+ _b)), href: href, target: "_blank", rel: "noopener noreferrer", children: buttonCaption })] }));
14438
14438
  };
14439
14439
 
14440
14440
  var CardCell = function (_a) {
@@ -14449,12 +14449,12 @@ styleInject(css_248z$5);
14449
14449
 
14450
14450
  var ButtonCell = function (_a) {
14451
14451
  var _b;
14452
- 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"]);
14453
- 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 = {},
14452
+ var isSelected = _a.isSelected, onClick = _a.onClick, buttonCaption = _a.buttonCaption, price = _a.price, disabled = _a.disabled, className = _a.className, dataCy = _a.dataCy, dataTestId = _a.dataTestId;
14453
+ return (jsxRuntime.jsx("div", { className: classNames$1("w100 d-flex fd-column ai-center jc-center gap8", className), "data-cy": dataCy, "data-testid": dataTestId, children: jsxRuntime.jsxs(Button, { className: classNames$1('w100 wmx5 d-flex fd-column', styles$5.buttonCell, (_b = {},
14454
14454
  _b[styles$5.selected] = isSelected,
14455
14455
  _b[styles$5.withoutPrice] = !price,
14456
14456
  _b[styles$5.withPrice] = !!price,
14457
- _b)), variant: "filledWhite", type: "submit", onClick: onClick, disabled: disabled, children: [buttonCaption, price && jsxRuntime.jsx("span", { className: "p-p tc-purple-500", children: price })] }) })));
14457
+ _b)), variant: "filledWhite", type: "submit", onClick: onClick, disabled: disabled, children: [buttonCaption, price && jsxRuntime.jsx("span", { className: "p-p tc-purple-500", children: price })] }) }));
14458
14458
  };
14459
14459
 
14460
14460
  var TableCell = require$$0__default['default'].memo(function (_a) {
@@ -14807,7 +14807,7 @@ var Table = function (_a) {
14807
14807
  });
14808
14808
  },
14809
14809
  }
14810
- : {}), 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: {
14810
+ : {}), 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 }) }), (tableData === null || tableData === void 0 ? void 0 : tableData.length) > 1 && hideDetails && (jsxRuntime.jsx(Card, { "data-testid": "show-hide-details", classNames: {
14811
14811
  buttonWrapper: 'm8 mt32',
14812
14812
  title: 'd-flex gap8 ai-center jc-center fw-bold',
14813
14813
  wrapper: 'bg-grey-200',