@redneckz/wildless-cms-uni-blocks 0.14.98 → 0.14.100

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 (58) hide show
  1. package/bundle/bundle.umd.js +5 -5
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/components/ComparisonTable/TableCell.mobile.d.ts +1 -1
  4. package/dist/components/ComparisonTable/HeaderCell.js +2 -1
  5. package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
  6. package/dist/components/ComparisonTable/TableCell.mobile.d.ts +1 -1
  7. package/dist/components/ComparisonTable/TableCell.mobile.js +4 -1
  8. package/dist/components/ComparisonTable/TableCell.mobile.js.map +1 -1
  9. package/dist/components/ComparisonTable/TableColumn.js +2 -1
  10. package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
  11. package/dist/components/ComparisonTable/TableRow.js +3 -2
  12. package/dist/components/ComparisonTable/TableRow.js.map +1 -1
  13. package/dist/components/Header/DropdownMenu.js +1 -1
  14. package/dist/components/Header/DropdownMenu.js.map +1 -1
  15. package/lib/common.css +1 -1
  16. package/lib/components/ComparisonTable/HeaderCell.js +2 -1
  17. package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
  18. package/lib/components/ComparisonTable/TableCell.mobile.d.ts +1 -1
  19. package/lib/components/ComparisonTable/TableCell.mobile.js +4 -1
  20. package/lib/components/ComparisonTable/TableCell.mobile.js.map +1 -1
  21. package/lib/components/ComparisonTable/TableColumn.js +2 -1
  22. package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
  23. package/lib/components/ComparisonTable/TableRow.js +3 -2
  24. package/lib/components/ComparisonTable/TableRow.js.map +1 -1
  25. package/lib/components/Header/DropdownMenu.js +1 -1
  26. package/lib/components/Header/DropdownMenu.js.map +1 -1
  27. package/mobile/bundle/bundle.umd.js +5 -3
  28. package/mobile/bundle/bundle.umd.min.js +1 -1
  29. package/mobile/bundle/components/ComparisonTable/TableCell.d.ts +1 -1
  30. package/mobile/dist/components/ComparisonTable/TableCell.d.ts +1 -1
  31. package/mobile/dist/components/ComparisonTable/TableCell.js +4 -1
  32. package/mobile/dist/components/ComparisonTable/TableCell.js.map +1 -1
  33. package/mobile/dist/components/ComparisonTable/TableColumn.js +2 -1
  34. package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
  35. package/mobile/dist/components/ComparisonTable/TableRow.js +3 -2
  36. package/mobile/dist/components/ComparisonTable/TableRow.js.map +1 -1
  37. package/mobile/dist/components/Header/DropdownMenu.js +1 -1
  38. package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
  39. package/mobile/lib/common.css +1 -1
  40. package/mobile/lib/components/ComparisonTable/TableCell.d.ts +1 -1
  41. package/mobile/lib/components/ComparisonTable/TableCell.js +4 -1
  42. package/mobile/lib/components/ComparisonTable/TableCell.js.map +1 -1
  43. package/mobile/lib/components/ComparisonTable/TableColumn.js +2 -1
  44. package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
  45. package/mobile/lib/components/ComparisonTable/TableRow.js +3 -2
  46. package/mobile/lib/components/ComparisonTable/TableRow.js.map +1 -1
  47. package/mobile/lib/components/Header/DropdownMenu.js +1 -1
  48. package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
  49. package/mobile/src/components/ComparisonTable/TableCell.tsx +18 -11
  50. package/mobile/src/components/ComparisonTable/TableColumn.tsx +5 -4
  51. package/mobile/src/components/ComparisonTable/TableRow.tsx +7 -2
  52. package/mobile/src/components/Header/DropdownMenu.tsx +1 -1
  53. package/package.json +1 -1
  54. package/src/components/ComparisonTable/HeaderCell.tsx +6 -1
  55. package/src/components/ComparisonTable/TableCell.mobile.tsx +18 -11
  56. package/src/components/ComparisonTable/TableColumn.tsx +5 -4
  57. package/src/components/ComparisonTable/TableRow.tsx +7 -2
  58. package/src/components/Header/DropdownMenu.tsx +1 -1
@@ -3167,7 +3167,7 @@
3167
3167
  const COLS_LENGTH_FOR_SCROLL$1 = 3;
3168
3168
  const COLUMN_WIDTH$2 = 4 * 80 + 4 * 4; // w-80 + gap-4 = 336px
3169
3169
 
3170
- const HeaderCell = JSX(({ icon, image, title, link }) => (jsxs("div", { className: style('w-80 box-border flex flex-col gap-m items-center rounded-t-md border-b-0 p-2xl', borderStyle, gradientStyle), role: "columnheader", children: [icon && !image?.src && (jsx(Img, { className: "h-16 w-16 min-w-16 min-h-16", image: icon, width: "64", height: "64" })), image?.src && jsx(Img, { image: image }), title ? (jsx(Heading, { headingType: "h4", as: "h3", className: "text-center text-white", title: title })) : null, link?.text && (jsx("div", { className: "mt-auto w-full", children: jsx(LinkButton, { href: link.href, target: link.target || '', className: "w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active", children: jsx("div", { className: "text-xs font-light font-medium py-s", children: link.text }) }) }))] })));
3170
+ const HeaderCell = JSX(({ icon, image, title, link }) => (jsxs("div", { className: style('w-80 box-border flex flex-col gap-m items-center rounded-t-md border-b-0 p-2xl', borderStyle, gradientStyle), role: "columnheader", children: [icon && !image?.src && (jsx(Img, { className: "h-16 w-16 min-w-16 min-h-16", image: icon, width: "64", height: "64" })), image?.src && jsx(Img, { image: image }), title ? (jsx(Heading, { headingType: "h4", as: "h3", className: "text-center text-white", title: title })) : null, link?.text && (jsx("div", { className: "mt-auto w-full", children: jsx(LinkButton, { href: link.href, target: link.target || '', className: "w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active", children: jsx("div", { className: "py-s", children: jsx(Paragraph, { size: "text-xs", font: "font-medium", children: link.text }) }) }) }))] })));
3171
3171
 
3172
3172
  const carouselContainerClassesMap = {
3173
3173
  comparison: 'flex gap-m duration-1000',
@@ -3188,8 +3188,8 @@
3188
3188
  const descriptionStyle = (isFillGradient = false) => `text-s opacity-80 ${isFillGradient ? 'text-white' : 'text-secondary-text'}`;
3189
3189
  const renderCellInner = ({ label, description }, i, isFillGradient) => (jsxs("div", { className: "first:pt-2xl pt-xl last:pb-2xl", children: [label ? jsx("h4", { className: labelStyle(isFillGradient), children: label }) : null, description ? jsx("div", { className: descriptionStyle(isFillGradient), children: description }) : null] }, String(i)));
3190
3190
 
3191
- const titleStyle = (isLastRow = false) => style('text-s py-2xl', dividerStyle$1, firstCellStyle$1, isLastRow ? 'border-b-0' : 'border-solid');
3192
- const TableRow = JSX(({ row: { header, data }, activeIndex, isColoredFirstColumn, isFirstRow, isLastRow }) => (jsxs(TableRowContainer, { children: [header?.title ? jsx("div", { className: titleStyle(isLastRow), children: header.title }) : null, data?.length ? (jsx(TableCarouselContainer, { activeIndex: activeIndex, columnWidth: COLUMN_WIDTH$2, children: data.map((cell, i) => (jsx(TableCell, { cell: cell, isFirstRow: isFirstRow, isLastRow: isLastRow, isFillGradient: isColoredFirstColumn && i === 0 }, String(i)))) })) : null] })));
3191
+ const titleStyle = (isLastRow = false) => style('py-2xl', dividerStyle$1, firstCellStyle$1, isLastRow ? 'border-b-0' : 'border-solid');
3192
+ const TableRow = JSX(({ row: { header, data }, activeIndex, isColoredFirstColumn, isFirstRow, isLastRow }) => (jsxs(TableRowContainer, { children: [header?.title ? (jsx("div", { className: titleStyle(isLastRow), children: jsx(Paragraph, { size: "text-s", children: header.title }) })) : null, data?.length ? (jsx(TableCarouselContainer, { activeIndex: activeIndex, columnWidth: COLUMN_WIDTH$2, children: data.map((cell, i) => (jsx(TableCell, { cell: cell, isFirstRow: isFirstRow, isLastRow: isLastRow, isFillGradient: isColoredFirstColumn && i === 0 }, String(i)))) })) : null] })));
3193
3193
 
3194
3194
  const ComparisonTableRows = JSX(({ rowData, isColoredFirstColumn, activeIndex, controls }) => {
3195
3195
  const { isScrollAvailable } = controls;
@@ -4141,7 +4141,7 @@
4141
4141
  const ref = useOutsideClick(handleClickOutside);
4142
4142
  return (jsxs("div", { className: style(visible ? 'bg-white rounded-md shadow-blue-gray' : '', className), ref: ref, children: [jsx("button", { className: "group/btn flex justify-between items-center h-6", "aria-label": `${visible ? 'Скрыть другие разделы' : 'Показать другие разделы'}`, onClick: handleToggle, children: Array(3)
4143
4143
  .fill(null)
4144
- .map((_, i) => (jsx("div", { className: "w-[3px] h-[3px] rounded mr-2xs bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white" }, String(i)))) }), jsx("div", { className: style('absolute flex flex-col rounded-md bg-white p-xl pb-xs', visible ? '' : 'hidden'), "aria-hidden": !visible, children: items?.map((item, i) => {
4144
+ .map((_, i) => (jsx("div", { className: "w-[3px] h-[3px] rounded mr-2xs bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white" }, String(i)))) }), jsx("div", { className: style('absolute flex flex-col rounded-md bg-white p-xl pb-xs w-56', visible ? '' : 'hidden'), "aria-hidden": !visible, children: items?.map((item, i) => {
4145
4145
  const { text, ...linkProps } = item;
4146
4146
  const { href, target, onClick } = link(linkProps);
4147
4147
  return (jsx("a", { className: style('text-l font-light pb-m hover:text-primary-main', item === activeItem ? 'text-primary-main' : ''), href: href, target: target, onClick: onClick, children: text }, href || String(i)));
@@ -5791,7 +5791,7 @@
5791
5791
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
5792
5792
  }
5793
5793
 
5794
- const packageVersion = "0.14.97";
5794
+ const packageVersion = "0.14.99";
5795
5795
 
5796
5796
  exports.Blocks = Blocks;
5797
5797
  exports.ContentPage = ContentPage;