@redneckz/wildless-cms-uni-blocks 0.14.142 → 0.14.143

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 (27) hide show
  1. package/bundle/bundle.umd.js +5 -6
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/dist/ui-kit/InnerTable/InnerTableBody.js +1 -1
  4. package/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  5. package/dist/ui-kit/InnerTable/renderInnerTableRow.js +4 -5
  6. package/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  7. package/lib/common.css +1 -1
  8. package/lib/ui-kit/InnerTable/InnerTableBody.js +1 -1
  9. package/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  10. package/lib/ui-kit/InnerTable/renderInnerTableRow.js +4 -5
  11. package/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  12. package/mobile/bundle/bundle.umd.js +5 -6
  13. package/mobile/bundle/bundle.umd.min.js +1 -1
  14. package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js +1 -1
  15. package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  16. package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js +4 -5
  17. package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  18. package/mobile/lib/common.css +1 -1
  19. package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js +1 -1
  20. package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  21. package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js +4 -5
  22. package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  23. package/mobile/src/ui-kit/InnerTable/InnerTableBody.tsx +3 -3
  24. package/mobile/src/ui-kit/InnerTable/renderInnerTableRow.tsx +5 -14
  25. package/package.json +1 -1
  26. package/src/ui-kit/InnerTable/InnerTableBody.tsx +3 -3
  27. package/src/ui-kit/InnerTable/renderInnerTableRow.tsx +5 -14
@@ -5674,12 +5674,11 @@
5674
5674
  }
5675
5675
  const [headerColumn, ...columns] = rowData;
5676
5676
  const columnsStyle = style('flex duration-1000 text-center', rowIdx !== 0 ? 'font-normal' : 'font-light');
5677
- return (jsxs("div", { className: "flex border-main-divider border-b border-solid h-full", children: [headerColumn?.data ? (jsx("div", { className: "w-56 min-w-56 py-lg", children: jsx(Text, { size: "text-xl", font: "font-light", children: headerColumn.data }) })) : null, jsx("div", { className: "flex flex-grow overflow-hidden", children: jsx("div", { className: columnsStyle, style: {
5677
+ return (jsxs("div", { className: "flex border-main-divider border-b border-solid h-full", children: [headerColumn?.data ? (jsx("div", { className: "whitespace-pre-wrap sm:whitespace-normal w-48 sm:w-56 sm:min-w-56 py-lg pr-lg sm:pr-0", children: jsx(Text, { size: "text-xl", font: "font-light", children: headerColumn.data }) })) : null, jsx("div", { className: "flex flex-grow overflow-hidden", children: jsx("div", { className: columnsStyle, style: {
5678
5678
  transform: `translateX(-${getHorizontalShift(columns, activeColumnIndex)}px)`,
5679
- }, children: columns?.map((_, i) => (jsxs("div", { className: "flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider", children: [_?.data ? (jsx(Text, { size: "text-xl", font: "font-light", children: _.data })) : null, _?.cols ? renderCols(_.cols, activeColumnIndex) : null] }, `row${i}`))) }) })] }, String(rowIdx)));
5679
+ }, children: columns?.map((_, i) => (jsxs("div", { className: "flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider", children: [_?.data ? jsx(Text, { size: "text-xl", children: _.data }) : null, _?.cols ? renderCols(_.cols, activeColumnIndex) : null] }, `row${i}`))) }) })] }, String(rowIdx)));
5680
5680
  };
5681
- const ColsColor = (isEqual = false) => `${isEqual ? 'text-secondary-text' : ''}`;
5682
- const renderCols = (cols, rowIndex) => cols?.length > 0 ? (jsx("div", { className: "flex", children: cols.map((data, i) => (jsx("div", { className: "w-20 mx-lg", children: jsx(Text, { size: "text-h6", color: ColsColor(rowIndex === 0), children: data }) }, String(i)))) })) : null;
5681
+ const renderCols = (cols, rowIndex) => cols?.length > 0 ? (jsx("div", { className: style('flex', rowIndex === 0 ? 'text-secondary-text' : ''), children: cols.map((data, i) => (jsx("div", { className: "w-20 mx-lg", children: jsx(Text, { size: "text-h6", font: "font-light", children: data }) }, String(i)))) })) : null;
5683
5682
 
5684
5683
  const InnerTableBodyItem = JSX(({ rows }) => {
5685
5684
  const rowsLength = rows?.[0]?.length ?? 0;
@@ -5698,7 +5697,7 @@
5698
5697
  const InnerTableBody = JSX(({ activeTabIndex, items }) => {
5699
5698
  return (jsx("div", { children: items.map((_, tableIdx) => {
5700
5699
  const key = `activeTabIdx:${activeTabIndex}-tableIdx:${tableIdx}`;
5701
- return (jsxs("div", { className: "w-full @container", children: [jsx("div", { className: "flex p-m bg-white @4xl:bg-gray text-center justify-center relative", children: jsx(Text, { size: "text-xl", font: "font-light", children: _.title }) }), jsx("div", { className: "w-full pl-xs overflow-hidden transition-height duration-500 ease-in-out", children: jsx("div", { className: "relative", children: jsx(InnerTableBodyItem, { rows: _.rowsData }) }) })] }, key));
5700
+ return (jsxs("div", { className: "w-full @container", children: [jsx("div", { className: "flex py-m sm:px-m bg-white @4xl:bg-gray relative", children: jsx(Text, { size: "text-xl", align: "text-left", children: _.title }) }), jsx("div", { className: "w-full sm:pl-xs overflow-hidden transition-height duration-500 ease-in-out", children: jsx("div", { className: "relative", children: jsx(InnerTableBodyItem, { rows: _.rowsData }) }) })] }, key));
5702
5701
  }) }));
5703
5702
  });
5704
5703
 
@@ -6034,7 +6033,7 @@
6034
6033
  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" }) }));
6035
6034
  }
6036
6035
 
6037
- const packageVersion = "0.14.141";
6036
+ const packageVersion = "0.14.142";
6038
6037
 
6039
6038
  exports.Blocks = Blocks;
6040
6039
  exports.ContentPage = ContentPage;