@popsure/dirty-swan 0.54.23 → 0.54.25

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 (37) hide show
  1. package/dist/cjs/index.js +7 -9
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/lib/components/button/index.d.ts +1 -1
  4. package/dist/esm/{Calendar-b3696fae.js → Calendar-e75ea163.js} +1 -1
  5. package/dist/esm/{Calendar-b3696fae.js.map → Calendar-e75ea163.js.map} +1 -1
  6. package/dist/esm/{TableSection-9cf4f26c.js → TableSection-2937bf62.js} +1 -1
  7. package/dist/esm/{TableSection-9cf4f26c.js.map → TableSection-2937bf62.js.map} +1 -1
  8. package/dist/esm/components/button/index.js +1 -0
  9. package/dist/esm/components/button/index.js.map +1 -1
  10. package/dist/esm/components/button/index.stories.js +1 -1
  11. package/dist/esm/components/button/index.stories.js.map +1 -1
  12. package/dist/esm/components/dateSelector/components/Calendar.js +1 -1
  13. package/dist/esm/components/dateSelector/index.js +1 -1
  14. package/dist/esm/components/dateSelector/index.stories.js +1 -1
  15. package/dist/esm/components/dateSelector/index.test.js +1 -1
  16. package/dist/esm/components/table/Table.js +1 -1
  17. package/dist/esm/components/table/Table.stories.js +6 -2
  18. package/dist/esm/components/table/Table.stories.js.map +1 -1
  19. package/dist/esm/components/table/Table.test.js +1 -1
  20. package/dist/esm/components/table/components/TableCell/BaseCell/BaseCell.js +6 -9
  21. package/dist/esm/components/table/components/TableCell/BaseCell/BaseCell.js.map +1 -1
  22. package/dist/esm/components/table/components/TableContents/TableContents.js +1 -1
  23. package/dist/esm/components/table/components/TableContents/TableContents.test.js +1 -1
  24. package/dist/esm/components/table/components/TableSection/TableSection.js +1 -1
  25. package/dist/esm/components/table/components/TableSection/TableSection.test.js +1 -1
  26. package/dist/esm/index.js +2 -2
  27. package/dist/esm/lib/components/button/index.d.ts +1 -1
  28. package/dist/index.css +26 -9
  29. package/dist/index.css.map +1 -1
  30. package/dist/lib/scss/private/components/_buttons.scss +29 -5
  31. package/package.json +1 -1
  32. package/src/lib/components/button/index.stories.tsx +1 -1
  33. package/src/lib/components/button/index.tsx +2 -0
  34. package/src/lib/components/table/Table.stories.tsx +5 -1
  35. package/src/lib/components/table/components/TableCell/BaseCell/BaseCell.module.scss +0 -9
  36. package/src/lib/components/table/components/TableCell/BaseCell/BaseCell.tsx +23 -37
  37. package/src/lib/scss/private/components/_buttons.scss +29 -5
package/dist/cjs/index.js CHANGED
@@ -3845,6 +3845,7 @@ var buttonTypeClassNameMap = {
3845
3845
  filledColor: 'p-btn--primary',
3846
3846
  filledGray: 'p-btn--secondary-grey',
3847
3847
  filledWhite: 'p-btn--secondary-white',
3848
+ filledBlack: 'p-btn--secondary-black',
3848
3849
  textColor: 'p-btn--secondary',
3849
3850
  textWhite: 'p-btn--secondary-inverted',
3850
3851
  outlineWhite: 'p-btn--outline-white',
@@ -14360,8 +14361,8 @@ var css_248z$9 = ".TableCell-module_th__2rjCU {\n vertical-align: middle;\n sc
14360
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"};
14361
14362
  styleInject(css_248z$9);
14362
14363
 
14363
- var css_248z$8 = ".BaseCell-module_relative__1v2X0 {\n position: relative;\n}\n\n@media (max-width: 34rem) {\n .BaseCell-module_maxWidth__14Cly {\n max-width: calc(100% - 64px);\n }\n}\n\n.BaseCell-module_infoButtonAbsolute__Mpjrz {\n position: absolute;\n right: -32px;\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}";
14364
- var styles$8 = {"relative":"BaseCell-module_relative__1v2X0","maxWidth":"BaseCell-module_maxWidth__14Cly","infoButtonAbsolute":"BaseCell-module_infoButtonAbsolute__Mpjrz","icon":"BaseCell-module_icon__1775U","description":"BaseCell-module_description__3_kfe","bigWithUnderline":"BaseCell-module_bigWithUnderline__2xx5X"};
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"};
14365
14366
  styleInject(css_248z$8);
14366
14367
 
14367
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}";
@@ -14400,17 +14401,14 @@ var BaseCell = function (_a) {
14400
14401
  : undefined;
14401
14402
  return (jsxRuntime.jsx("div", { className: classNames$1('d-flex gap8 ai-center', {
14402
14403
  'jc-center': align === 'center',
14403
- }), children: jsxRuntime.jsxs("div", { className: classNames$1('d-flex fd-column', alignClassName, styles$8.relative, (_b = {}, _b[styles$8.maxWidth] = modalContent && align === 'center', _b)), children: [progressBarValue !== undefined && (jsxRuntime.jsx(MiniProgressBar, { nFilledBars: progressBarValue })), (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 }, value)); }) })), jsxRuntime.jsxs("div", { className: "d-flex ai-center", children: [checkmarkValue !== undefined && (jsxRuntime.jsx("span", { title: checkmarkValue ? 'Yes' : 'No', children: checkmarkValue ? (jsxRuntime.jsx(CheckIcon, { "data-testid": "table-cell-boolean-yes", size: 24, "aria-hidden": true, color: "primary-500" })) : (jsxRuntime.jsx(XIcon, { "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", "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 && align == 'left' && (jsxRuntime.jsx("span", { className: "ml8", children: jsxRuntime.jsx(TableInfoButton, { onClick: function () {
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 }, value)); }) })), checkmarkValue !== undefined && (jsxRuntime.jsx("span", { title: checkmarkValue ? 'Yes' : 'No', children: checkmarkValue ? (jsxRuntime.jsx(CheckIcon, { 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 () {
14404
14407
  return openModal({
14405
14408
  title: modalTitle,
14406
14409
  body: modalContent,
14407
14410
  });
14408
- } }) }))] })] }), description && (jsxRuntime.jsx("div", { className: classNames$1(styles$8.description, 'd-flex p-p--small tc-grey-500', alignClassName), children: description })), modalContent && openModal && align == 'center' && (jsxRuntime.jsx("span", { className: styles$8.infoButtonAbsolute, children: jsxRuntime.jsx(TableInfoButton, { onClick: function () {
14409
- return openModal({
14410
- title: modalTitle,
14411
- body: modalContent,
14412
- });
14413
- } }) }))] }) }));
14411
+ } }) }))] })] }), description && (jsxRuntime.jsx("div", { className: classNames$1(styles$8.description, 'd-flex p-p--small tc-grey-500', alignClassName), children: description }))] }) }));
14414
14412
  };
14415
14413
 
14416
14414
  var css_248z$6 = ".CTACell-module_narrow__1EPPT {\n height: 40px;\n padding: 8px !important;\n}";