@redneckz/wildless-cms-uni-blocks 0.14.870 → 0.14.872
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.
- package/bundle/bundle.umd.js +4 -4
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/ui-kit/Foldable/FoldableSection.d.ts +1 -0
- package/dist/components/TariffsTable/TariffsTable.js +1 -1
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/ui-kit/Foldable/FoldableSection.d.ts +1 -0
- package/dist/ui-kit/Foldable/FoldableSection.js +2 -2
- package/dist/ui-kit/Foldable/FoldableSection.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/TariffsTable/TariffsTable.js +1 -1
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/ui-kit/Foldable/FoldableSection.d.ts +1 -0
- package/lib/ui-kit/Foldable/FoldableSection.js +2 -2
- package/lib/ui-kit/Foldable/FoldableSection.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +4 -4
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/ui-kit/Foldable/FoldableSection.d.ts +1 -0
- package/mobile/dist/components/TariffsTable/TariffsTable.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/ui-kit/Foldable/FoldableSection.d.ts +1 -0
- package/mobile/dist/ui-kit/Foldable/FoldableSection.js +2 -2
- package/mobile/dist/ui-kit/Foldable/FoldableSection.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/ui-kit/Foldable/FoldableSection.d.ts +1 -0
- package/mobile/lib/ui-kit/Foldable/FoldableSection.js +2 -2
- package/mobile/lib/ui-kit/Foldable/FoldableSection.js.map +1 -1
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +3 -1
- package/mobile/src/ui-kit/Foldable/FoldableSection.tsx +33 -26
- package/package.json +6 -4
- package/src/components/TariffsTable/TariffsTable.tsx +3 -1
- package/src/ui-kit/Foldable/FoldableSection.tsx +33 -26
package/bundle/bundle.umd.js
CHANGED
|
@@ -3135,7 +3135,7 @@
|
|
|
3135
3135
|
return ref;
|
|
3136
3136
|
}
|
|
3137
3137
|
|
|
3138
|
-
const FoldableSection = JSX(({ className, isUnfolded, children }) => {
|
|
3138
|
+
const FoldableSection = JSX(({ className, isUnfolded, isOverflowVisible = false, children }) => {
|
|
3139
3139
|
const containerRef = useRef(null);
|
|
3140
3140
|
const childrenWrapperRef = useResizeObserver((childrenWrapperEl) => {
|
|
3141
3141
|
if (containerRef.current) {
|
|
@@ -3144,7 +3144,7 @@
|
|
|
3144
3144
|
: '';
|
|
3145
3145
|
}
|
|
3146
3146
|
}, [isUnfolded]);
|
|
3147
|
-
return (jsx("div", { ref: containerRef, className: style('transition-max-h duration-300 overflow-hidden', {
|
|
3147
|
+
return (jsx("div", { ref: containerRef, className: style('transition-max-h duration-300', isOverflowVisible && isUnfolded ? 'overflow-clip' : 'overflow-hidden', {
|
|
3148
3148
|
'max-h-0': Boolean(containerRef.current || !isUnfolded),
|
|
3149
3149
|
}), role: "tabpanel", "aria-label": "\u0421\u0432\u043E\u0440\u0430\u0447\u0438\u0432\u0430\u044E\u0449\u0430\u044F\u0441\u044F \u0441\u0435\u043A\u0446\u0438\u044F", children: jsx("div", { className: className, ref: childrenWrapperRef, children: children }) }));
|
|
3150
3150
|
});
|
|
@@ -10929,7 +10929,7 @@
|
|
|
10929
10929
|
const rows = (rowData || []).map((row, i) => (jsx(TariffsTableRow, { row: row, ...rest }, String(i))));
|
|
10930
10930
|
const [visibleRows, hiddenRows] = hiddenRowsNum > 0 ? [rows.slice(0, -hiddenRowsNum), rows.slice(-hiddenRowsNum)] : [rows, []];
|
|
10931
10931
|
const [isUnfolded, { toggle }] = useBool(false);
|
|
10932
|
-
return (jsxs(BlockWrapper, { className: style('relative space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true, align: "text-center" }), jsx("div", { className: "space-y-m overflow-hidden", children: hiddenRowsNum > 0 ? (jsxs(Foldable, { children: [jsxs(TariffsTableWrapper, { children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] }), jsx(DefaultFoldButton, { className: "text-h4", isUnfolded: isUnfolded, onClick: toggle })] })) : (jsx(TariffsTableWrapper, { children: rows })) })] }));
|
|
10932
|
+
return (jsxs(BlockWrapper, { className: style('relative space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true, align: "text-center" }), jsx("div", { className: "space-y-m overflow-hidden", children: hiddenRowsNum > 0 ? (jsxs(Foldable, { children: [jsxs(TariffsTableWrapper, { children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, isOverflowVisible: true, children: hiddenRows })] }), jsx(DefaultFoldButton, { className: "text-h4", isUnfolded: isUnfolded, onClick: toggle })] })) : (jsx(TariffsTableWrapper, { children: rows })) })] }));
|
|
10933
10933
|
});
|
|
10934
10934
|
|
|
10935
10935
|
const TextBlock = JSX(({ className = '', title, description, iconVersion, __html, richVersion, ...rest }) => (jsxs(BlockWrapper, { className: style('flex gap-s sm:gap-m group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? renderIcon() : null, jsxs("div", { className: "flex flex-col w-fit gap-2xs sm:gap-xs", children: [title ? (jsx(Text, { size: "text-l", font: "font-normal", color: "text-primary-text group-data-secondary:text-white", children: title })) : null, description ? renderDescription(description) : null, __html ? jsx(RichText, { richVersion: richVersion, __html: __html }) : null] })] })));
|
|
@@ -11148,7 +11148,7 @@
|
|
|
11148
11148
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
11149
11149
|
});
|
|
11150
11150
|
|
|
11151
|
-
const packageVersion = "0.14.
|
|
11151
|
+
const packageVersion = "0.14.871";
|
|
11152
11152
|
|
|
11153
11153
|
exports.Blocks = Blocks;
|
|
11154
11154
|
exports.ContentPage = ContentPage;
|