@redneckz/wildless-cms-uni-blocks 0.14.530 → 0.14.531
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 +2 -2
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/ContactsBlock/ContactsBlock.js +2 -2
- package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/lib/components/ContactsBlock/ContactsBlock.js +2 -2
- package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +1 -1
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js +2 -2
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js +2 -2
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +4 -2
- package/package.json +1 -1
- package/src/components/ContactsBlock/ContactsBlock.tsx +4 -2
|
@@ -3,11 +3,11 @@ exports.ContactsBlock = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
|
-
const
|
|
6
|
+
const renderButtonsSection_1 = require("../../ui-kit/LinkButton/renderButtonsSection");
|
|
7
7
|
const Paragraph_1 = require("../../ui-kit/Paragraph/Paragraph");
|
|
8
8
|
const style_1 = require("../../utils/style");
|
|
9
9
|
const Headline_1 = require("../Headline/Headline");
|
|
10
10
|
exports.ContactsBlock = (0, uni_jsx_1.JSX)(({ className, contacts, info, version = 'secondary', ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('flex', className), defaultPadding: "p-6xl", version: version, ...rest, children: [info?.length ? renderBlocks(info) : null, contacts?.length ? renderBlocks(contacts) : null] })));
|
|
11
11
|
const renderBlocks = (info) => ((0, jsx_runtime_1.jsx)("div", { className: "flex gap-5xl grow basis-0", children: info.map((column, i) => renderBlocksColumn({ column, i })) }));
|
|
12
|
-
const renderBlocksColumn = ({ column, i }) => column ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-xl grow basis-0", children: column.map(({ title = '', description, additionalDescription, button }, key) => ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, description: description, headlineVersion: "XS", align: "text-left", isEmbedded: true }), additionalDescription ? ((0, jsx_runtime_1.jsx)("div", { className: "mt-xs opacity-80", children: (0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-m", font: "font-light", children: additionalDescription }) })) : null,
|
|
12
|
+
const renderBlocksColumn = ({ column, i }) => column ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-xl grow basis-0", children: column.map(({ title = '', description, additionalDescription, button }, key) => ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, description: description, headlineVersion: "XS", align: "text-left", isEmbedded: true }), additionalDescription ? ((0, jsx_runtime_1.jsx)("div", { className: "mt-xs opacity-80", children: (0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-m", font: "font-light", children: additionalDescription }) })) : null, (0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)({ 'mt-xl': Boolean(button?.text) }), children: (0, renderButtonsSection_1.renderButtonsSection)([button]) })] }, String(key)))) }, `col-${String(i)}`)) : null;
|
|
13
13
|
//# sourceMappingURL=ContactsBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactsBlock.js","sourceRoot":"","sources":["../../../src/components/ContactsBlock/ContactsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,
|
|
1
|
+
{"version":3,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ACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAC,IAAI,EACpB,KAAK,EAAC,WAAW,EACjB,UAAU,EAAE,IAAI,GAChB,EACD,qBAAqB,CAAC,CAAC,CAAC,CACvB,gCAAK,SAAS,EAAC,kBAAkB,YAC/B,uBAAC,qBAAS,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,YACvC,qBAAqB,GACZ,GACR,CACP,CAAC,CAAC,CAAC,IAAI,EACR,gCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,YACtD,IAAA,2CAAoB,EAAC,CAAC,MAAM,CAAC,CAAC,GAC3B,KAjBE,MAAM,CAAC,GAAG,CAAC,CAkBf,CACP,CAAC,IArBoD,OAAO,MAAM,CAAC,CAAC,CAAC,EAAE,CAsBpE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as _jsxs, jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
4
|
-
import {
|
|
4
|
+
import { renderButtonsSection } from '../../ui-kit/LinkButton/renderButtonsSection.js';
|
|
5
5
|
import { Paragraph } from '../../ui-kit/Paragraph/Paragraph.js';
|
|
6
6
|
import { style } from '../../utils/style.js';
|
|
7
7
|
import { Headline } from '../Headline/Headline.js';
|
|
8
8
|
export const ContactsBlock = JSX(({ className, contacts, info, version = 'secondary', ...rest }) => (_jsxs(BlockWrapper, { className: style('flex', className), defaultPadding: "p-6xl", version: version, ...rest, children: [info?.length ? renderBlocks(info) : null, contacts?.length ? renderBlocks(contacts) : null] })));
|
|
9
9
|
const renderBlocks = (info) => (_jsx("div", { className: "flex gap-5xl grow basis-0", children: info.map((column, i) => renderBlocksColumn({ column, i })) }));
|
|
10
|
-
const renderBlocksColumn = ({ column, i }) => column ? (_jsx("div", { className: "flex flex-col gap-xl grow basis-0", children: column.map(({ title = '', description, additionalDescription, button }, key) => (_jsxs("div", { children: [_jsx(Headline, { title: title, description: description, headlineVersion: "XS", align: "text-left", isEmbedded: true }), additionalDescription ? (_jsx("div", { className: "mt-xs opacity-80", children: _jsx(Paragraph, { size: "text-m", font: "font-light", children: additionalDescription }) })) : null,
|
|
10
|
+
const renderBlocksColumn = ({ column, i }) => column ? (_jsx("div", { className: "flex flex-col gap-xl grow basis-0", children: column.map(({ title = '', description, additionalDescription, button }, key) => (_jsxs("div", { children: [_jsx(Headline, { title: title, description: description, headlineVersion: "XS", align: "text-left", isEmbedded: true }), additionalDescription ? (_jsx("div", { className: "mt-xs opacity-80", children: _jsx(Paragraph, { size: "text-m", font: "font-light", children: additionalDescription }) })) : null, _jsx("div", { className: style({ 'mt-xl': Boolean(button?.text) }), children: renderButtonsSection([button]) })] }, String(key)))) }, `col-${String(i)}`)) : null;
|
|
11
11
|
//# sourceMappingURL=ContactsBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactsBlock.js","sourceRoot":"","sources":["../../../src/components/ContactsBlock/ContactsBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ContactsBlock.js","sourceRoot":"","sources":["../../../src/components/ContactsBlock/ContactsBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAE7D,OAAO,E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