@redneckz/wildless-cms-uni-blocks 0.2.35 → 0.2.36
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/dist/Tile.d.ts +1 -1
- package/dist/Tile.js +2 -5
- package/dist/Tile.js.map +1 -1
- package/lib/Tile.d.ts +1 -1
- package/lib/Tile.js +2 -5
- package/lib/Tile.js.map +1 -1
- package/package.json +1 -1
package/dist/Tile.d.ts
CHANGED
package/dist/Tile.js
CHANGED
|
@@ -10,12 +10,9 @@ const tileStyleMap = {
|
|
|
10
10
|
primary: 'bg-white text-primary-text',
|
|
11
11
|
secondary: 'bg-primary-main text-white',
|
|
12
12
|
};
|
|
13
|
-
exports.Tile = (0, uni_jsx_1.JSX)(({ className, context, title, description,
|
|
13
|
+
exports.Tile = (0, uni_jsx_1.JSX)(({ className, context, title, description, button, image, items, version = 'primary' }) => {
|
|
14
14
|
const router = context.useRouter();
|
|
15
15
|
const { handlerDecorator } = context;
|
|
16
|
-
return ((0, jsx_runtime_1.jsx)("section", { className: `font-sans p-9 rounded-[40px] flex justify-between items-stretch relative ${className || ''} ${tileStyleMap[version]}`, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col w-full", children: [title && ((0, jsx_runtime_1.jsx)("h3", { className: "font-medium text-title m-0 whitespace-pre-wrap max-w-[600px]", children: title })), (0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between h-full", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col", children: [description && ((0, jsx_runtime_1.jsx)("div", { className: "font-normal text-base max-w-[600px] mt-4", children: description })), items?.length ? ((0, jsx_runtime_1.jsx)("section", { className: "space-y-2.5 mt-5", role: "list", children: items.map((_, i) => ((0, jsx_runtime_1.jsx)(BlockItem_1.BlockItem, { text: _, version: version }, String(i)))) })) : null,
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)("section", { className: `font-sans p-9 rounded-[40px] flex justify-between items-stretch relative ${className || ''} ${tileStyleMap[version]}`, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col w-full", children: [title && ((0, jsx_runtime_1.jsx)("h3", { className: "font-medium text-title m-0 whitespace-pre-wrap max-w-[600px]", children: title })), (0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between h-full", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col", children: [description && ((0, jsx_runtime_1.jsx)("div", { className: "font-normal text-base max-w-[600px] mt-4", children: description })), items?.length ? ((0, jsx_runtime_1.jsx)("section", { className: "space-y-2.5 mt-5", role: "list", children: items.map((_, i) => ((0, jsx_runtime_1.jsx)(BlockItem_1.BlockItem, { text: _, version: version }, String(i)))) })) : null, button?.text && ((0, jsx_runtime_1.jsx)("div", { className: "mt-auto", children: (0, jsx_runtime_1.jsx)(Button_1.Button, { className: "mt-8", ...(0, useLink_1.useLink)({ router, handlerDecorator }, button) }) }))] }), image && ((0, jsx_runtime_1.jsx)("div", { className: "mt-auto flex-none h-[220px] w-[220px]", children: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: image }) }))] })] }) }));
|
|
17
17
|
});
|
|
18
|
-
function renderButton(button, i) {
|
|
19
|
-
return button?.text ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { ...button, className: "mt-8", version: button.version }, String(i))) : null;
|
|
20
|
-
}
|
|
21
18
|
//# sourceMappingURL=Tile.js.map
|
package/dist/Tile.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../src/Tile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,+BAA4B;AAE5B,kDAA+C;AAE/C,4CAAyC;AACzC,uCAAoC;AAgBpC,MAAM,YAAY,GAAiC;IACjD,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEW,QAAA,IAAI,GAAG,IAAA,aAAG,EACrB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EA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AK,SAAS,EAAC,SAAS,YACtB,uBAAC,eAAM,IAAC,SAAS,EAAC,MAAM,KAAK,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,MAAM,CAAC,GAAI,GAC1E,CACP,IACG,EACL,KAAK,IAAI,CACR,gCAAK,SAAS,EAAC,uCAAuC,YACpD,uBAAC,SAAG,IAAC,KAAK,EAAE,KAAK,GAAI,GACjB,CACP,IACG,IACF,GACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
package/lib/Tile.d.ts
CHANGED
package/lib/Tile.js
CHANGED
|
@@ -8,12 +8,9 @@ const tileStyleMap = {
|
|
|
8
8
|
primary: 'bg-white text-primary-text',
|
|
9
9
|
secondary: 'bg-primary-main text-white',
|
|
10
10
|
};
|
|
11
|
-
export const Tile = JSX(({ className, context, title, description,
|
|
11
|
+
export const Tile = JSX(({ className, context, title, description, button, image, items, version = 'primary' }) => {
|
|
12
12
|
const router = context.useRouter();
|
|
13
13
|
const { handlerDecorator } = context;
|
|
14
|
-
return (_jsx("section", { className: `font-sans p-9 rounded-[40px] flex justify-between items-stretch relative ${className || ''} ${tileStyleMap[version]}`, children: _jsxs("div", { className: "flex flex-col w-full", children: [title && (_jsx("h3", { className: "font-medium text-title m-0 whitespace-pre-wrap max-w-[600px]", children: title })), _jsxs("div", { className: "flex justify-between h-full", children: [_jsxs("div", { className: "flex flex-col", children: [description && (_jsx("div", { className: "font-normal text-base max-w-[600px] mt-4", children: description })), items?.length ? (_jsx("section", { className: "space-y-2.5 mt-5", role: "list", children: items.map((_, i) => (_jsx(BlockItem, { text: _, version: version }, String(i)))) })) : null,
|
|
14
|
+
return (_jsx("section", { className: `font-sans p-9 rounded-[40px] flex justify-between items-stretch relative ${className || ''} ${tileStyleMap[version]}`, children: _jsxs("div", { className: "flex flex-col w-full", children: [title && (_jsx("h3", { className: "font-medium text-title m-0 whitespace-pre-wrap max-w-[600px]", children: title })), _jsxs("div", { className: "flex justify-between h-full", children: [_jsxs("div", { className: "flex flex-col", children: [description && (_jsx("div", { className: "font-normal text-base max-w-[600px] mt-4", children: description })), items?.length ? (_jsx("section", { className: "space-y-2.5 mt-5", role: "list", children: items.map((_, i) => (_jsx(BlockItem, { text: _, version: version }, String(i)))) })) : null, button?.text && (_jsx("div", { className: "mt-auto", children: _jsx(Button, { className: "mt-8", ...useLink({ router, handlerDecorator }, button) }) }))] }), image && (_jsx("div", { className: "mt-auto flex-none h-[220px] w-[220px]", children: _jsx(Img, { image: image }) }))] })] }) }));
|
|
15
15
|
});
|
|
16
|
-
function renderButton(button, i) {
|
|
17
|
-
return button?.text ? (_jsx(Button, { ...button, className: "mt-8", version: button.version }, String(i))) : null;
|
|
18
|
-
}
|
|
19
16
|
//# sourceMappingURL=Tile.js.map
|
package/lib/Tile.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../src/Tile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAgBpC,MAAM,YAAY,GAAiC;IACjD,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CACrB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../src/Tile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;A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