@popsure/dirty-swan 0.55.1 → 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 (33) hide show
  1. package/dist/cjs/index.js +14 -13
  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/autocompleteAddress/index.js +7 -6
  10. package/dist/esm/components/autocompleteAddress/index.js.map +1 -1
  11. package/dist/esm/components/table/Table.js +2 -2
  12. package/dist/esm/components/table/Table.js.map +1 -1
  13. package/dist/esm/components/table/Table.stories.js +1 -1
  14. package/dist/esm/components/table/Table.test.js +1 -1
  15. package/dist/esm/components/table/components/TableCell/ButtonCell/ButtonCell.js +4 -4
  16. package/dist/esm/components/table/components/TableCell/ButtonCell/ButtonCell.js.map +1 -1
  17. package/dist/esm/components/table/components/TableCell/ButtonCell/ButtonCell.stories.js +1 -1
  18. package/dist/esm/components/table/components/TableCell/CTACell/CTACell.js +3 -4
  19. package/dist/esm/components/table/components/TableCell/CTACell/CTACell.js.map +1 -1
  20. package/dist/esm/components/table/components/TableContents/TableContents.js +1 -1
  21. package/dist/esm/components/table/components/TableContents/TableContents.test.js +1 -1
  22. package/dist/esm/components/table/components/TableSection/TableSection.js +1 -1
  23. package/dist/esm/components/table/components/TableSection/TableSection.test.js +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/esm/lib/components/table/components/TableCell/ButtonCell/ButtonCell.d.ts +1 -1
  26. package/dist/esm/lib/components/table/components/TableCell/ButtonCell/ButtonCell.stories.d.ts +1 -1
  27. package/dist/esm/lib/components/table/components/TableCell/CTACell/CTACell.d.ts +1 -1
  28. package/dist/esm/lib/components/table/components/TableCell/CTACell/CTACell.stories.d.ts +1 -1
  29. package/package.json +1 -1
  30. package/src/lib/components/autocompleteAddress/index.tsx +1 -1
  31. package/src/lib/components/table/Table.tsx +1 -1
  32. package/src/lib/components/table/components/TableCell/ButtonCell/ButtonCell.tsx +4 -2
  33. package/src/lib/components/table/components/TableCell/CTACell/CTACell.tsx +7 -2
package/dist/cjs/index.js CHANGED
@@ -5045,19 +5045,20 @@ var loadGoogleMapsApiDynamically = function (callback, apiKey) {
5045
5045
  };
5046
5046
  var AutocompleteAddress = function (_a) {
5047
5047
  var _b;
5048
- var apiKey = _a.apiKey, initialAddress = _a.address, onAddressChange = _a.onAddressChange, placeholders = _a.placeholders, manualAddressEntryTexts = _a.manualAddressEntryTexts, inputProps = _a.inputProps, _c = _a.countryCode, countryCode = _c === void 0 ? GERMANY_ALPHA_CODE : _c;
5049
- var _d = require$$0.useState(false), manualAddressEntry = _d[0], setManualAddressEntry = _d[1];
5050
- var _e = require$$0.useState(false), isLoading = _e[0], setIsLoading = _e[1];
5048
+ var _c;
5049
+ var apiKey = _a.apiKey, initialAddress = _a.address, onAddressChange = _a.onAddressChange, placeholders = _a.placeholders, manualAddressEntryTexts = _a.manualAddressEntryTexts, inputProps = _a.inputProps, _d = _a.countryCode, countryCode = _d === void 0 ? GERMANY_ALPHA_CODE : _d;
5050
+ var _e = require$$0.useState(false), manualAddressEntry = _e[0], setManualAddressEntry = _e[1];
5051
+ var _f = require$$0.useState(false), isLoading = _f[0], setIsLoading = _f[1];
5051
5052
  var autocomplete = require$$0.useRef(null);
5052
5053
  var autocompleteElement = require$$0.useRef(null);
5053
5054
  var map = require$$0.useRef(null);
5054
5055
  var marker = require$$0.useRef(null);
5055
- var _f = require$$0.useState(initialAddress), address = _f[0], setAddress = _f[1];
5056
- var _g = require$$0.useState(window.google !== undefined), hasLoadedGoogleAPI = _g[0], setHasLoadedGoogleAPI = _g[1];
5056
+ var _g = require$$0.useState(initialAddress), address = _g[0], setAddress = _g[1];
5057
+ var _h = require$$0.useState(((_c = window.google) === null || _c === void 0 ? void 0 : _c.maps) !== undefined), hasLoadedGoogleAPI = _h[0], setHasLoadedGoogleAPI = _h[1];
5057
5058
  loadGoogleMapsApiDynamically(function () {
5058
5059
  setHasLoadedGoogleAPI(true);
5059
5060
  }, apiKey);
5060
- var _h = require$$0.useState(null), place = _h[0], setPlace = _h[1];
5061
+ var _j = require$$0.useState(null), place = _j[0], setPlace = _j[1];
5061
5062
  require$$0.useEffect(function () {
5062
5063
  if (address) {
5063
5064
  if (autocompleteElement.current && address.street) {
@@ -14426,14 +14427,14 @@ var IconRenderer = function (_a) {
14426
14427
 
14427
14428
  var CTACell = function (_a) {
14428
14429
  var _b;
14429
- 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;
14430
14431
  var renderedIcon = (jsxRuntime.jsx(IconRenderer, { icon: icon, imageComponent: imageComponent }));
14431
- 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 = {
14432
14433
  'p-btn--primary': !grey,
14433
14434
  'p-btn--secondary-grey': grey
14434
14435
  },
14435
14436
  _b[styles$6.narrow] = narrow,
14436
- _b)), href: href, target: "_blank", rel: "noopener noreferrer", children: buttonCaption })] })));
14437
+ _b)), href: href, target: "_blank", rel: "noopener noreferrer", children: buttonCaption })] }));
14437
14438
  };
14438
14439
 
14439
14440
  var CardCell = function (_a) {
@@ -14448,12 +14449,12 @@ styleInject(css_248z$5);
14448
14449
 
14449
14450
  var ButtonCell = function (_a) {
14450
14451
  var _b;
14451
- 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"]);
14452
- 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 = {},
14453
14454
  _b[styles$5.selected] = isSelected,
14454
14455
  _b[styles$5.withoutPrice] = !price,
14455
14456
  _b[styles$5.withPrice] = !!price,
14456
- _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 })] }) }));
14457
14458
  };
14458
14459
 
14459
14460
  var TableCell = require$$0__default['default'].memo(function (_a) {
@@ -14806,7 +14807,7 @@ var Table = function (_a) {
14806
14807
  });
14807
14808
  },
14808
14809
  }
14809
- : {}), 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: {
14810
14811
  buttonWrapper: 'm8 mt32',
14811
14812
  title: 'd-flex gap8 ai-center jc-center fw-bold',
14812
14813
  wrapper: 'bg-grey-200',