@redneckz/wildless-cms-uni-blocks 0.1.4 → 0.1.5
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/Blocks.js +1 -1
- package/dist/ContentPage.d.ts +2 -2
- package/dist/ContentPage.js +1 -1
- package/dist/Placeholder.js.map +1 -1
- package/dist/Text.js +1 -1
- package/dist/Text.js.map +1 -1
- package/dist/types.js +1 -1
- package/lib/Blocks.js +1 -1
- package/lib/ContentPage.d.ts +2 -2
- package/lib/ContentPage.js +3 -3
- package/lib/Placeholder.js.map +1 -1
- package/lib/Text.js +1 -1
- package/lib/Text.js.map +1 -1
- package/lib/types.js +1 -1
- package/package.json +8 -3
package/dist/Blocks.js
CHANGED
package/dist/ContentPage.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BlockContent } from
|
|
2
|
-
import type { ContentPageDef } from
|
|
1
|
+
import type { BlockContent } from './Blocks';
|
|
2
|
+
import type { ContentPageDef } from './types';
|
|
3
3
|
export interface ContentPageProps {
|
|
4
4
|
data: ContentPageDef<BlockContent>;
|
|
5
5
|
}
|
package/dist/ContentPage.js
CHANGED
|
@@ -13,6 +13,6 @@ function renderBlock({ type, style, content, blocks }, i) {
|
|
|
13
13
|
return ((0, jsx_runtime_1.jsx)(BlockComponent, { className: `border-dashed border-2 border-sky-500 p-4 ${style2className(style)}`, ...content, children: blocks && blocks.map(renderBlock) }, `${type}-${i}`));
|
|
14
14
|
}
|
|
15
15
|
function style2className(style) {
|
|
16
|
-
return style ? style.join(
|
|
16
|
+
return style ? style.join(' ') : '';
|
|
17
17
|
}
|
|
18
18
|
//# sourceMappingURL=ContentPage.js.map
|
package/dist/Placeholder.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Placeholder.js","sourceRoot":"","sources":["../src/Placeholder.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"Placeholder.js","sourceRoot":"","sources":["../src/Placeholder.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAQ3B,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC3E,OAAO,gCAAK,SAAS,EAAE,SAAS,IAAI,EAAE,YAAG,QAAQ,GAAO,CAAC;AAC3D,CAAC,CAAC,CAAC"}
|
package/dist/Text.js
CHANGED
|
@@ -3,6 +3,6 @@ exports.Text = 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
|
exports.Text = (0, uni_jsx_1.JSX)(({ className, primary, secondary, children }) => {
|
|
6
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: className || '', children: [primary && (0, jsx_runtime_1.jsx)("p", { className: "font-bold text-slate-700 leading-snug", children: primary }), secondary && (0, jsx_runtime_1.jsx)("p", { className: "mt-2 text-sm text-slate-600", children: secondary }), children] }));
|
|
6
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: className || '', children: [primary && ((0, jsx_runtime_1.jsx)("p", { className: "font-bold text-slate-700 leading-snug", children: primary })), secondary && ((0, jsx_runtime_1.jsx)("p", { className: "mt-2 text-sm text-slate-600", children: secondary })), children] }));
|
|
7
7
|
});
|
|
8
8
|
//# sourceMappingURL=Text.js.map
|
package/dist/Text.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../src/Text.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAW3B,QAAA,IAAI,GAAG,IAAA,aAAG,
|
|
1
|
+
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../src/Text.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAW3B,QAAA,IAAI,GAAG,IAAA,aAAG,EACrB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC9C,OAAO,CACL,iCAAK,SAAS,EAAE,SAAS,IAAI,EAAE,aAC5B,OAAO,IAAI,CACV,8BAAG,SAAS,EAAC,uCAAuC,YAAE,OAAO,GAAK,CACnE,EACA,SAAS,IAAI,CACZ,8BAAG,SAAS,EAAC,6BAA6B,YAAE,SAAS,GAAK,CAC3D,EACA,QAAQ,IACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
package/dist/types.js
CHANGED
package/lib/Blocks.js
CHANGED
package/lib/ContentPage.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BlockContent } from
|
|
2
|
-
import type { ContentPageDef } from
|
|
1
|
+
import type { BlockContent } from './Blocks';
|
|
2
|
+
import type { ContentPageDef } from './types';
|
|
3
3
|
export interface ContentPageProps {
|
|
4
4
|
data: ContentPageDef<BlockContent>;
|
|
5
5
|
}
|
package/lib/ContentPage.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from
|
|
3
|
-
import { Blocks } from
|
|
2
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { Blocks } from './Blocks';
|
|
4
4
|
export const ContentPage = JSX(({ data: { style: pageStyle, blocks } }) => (_jsx("section", { className: `grid grid-cols-12 ${style2className(pageStyle)}`, children: blocks && blocks.map(renderBlock) })));
|
|
5
5
|
function renderBlock({ type, style, content, blocks }, i) {
|
|
6
6
|
if (!(type in Blocks)) {
|
|
@@ -11,6 +11,6 @@ function renderBlock({ type, style, content, blocks }, i) {
|
|
|
11
11
|
return (_jsx(BlockComponent, { className: `border-dashed border-2 border-sky-500 p-4 ${style2className(style)}`, ...content, children: blocks && blocks.map(renderBlock) }, `${type}-${i}`));
|
|
12
12
|
}
|
|
13
13
|
function style2className(style) {
|
|
14
|
-
return style ? style.join(
|
|
14
|
+
return style ? style.join(' ') : '';
|
|
15
15
|
}
|
|
16
16
|
//# sourceMappingURL=ContentPage.js.map
|
package/lib/Placeholder.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Placeholder.js","sourceRoot":"","sources":["../src/Placeholder.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"Placeholder.js","sourceRoot":"","sources":["../src/Placeholder.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAQxC,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAmB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC3E,OAAO,cAAK,SAAS,EAAE,SAAS,IAAI,EAAE,YAAG,QAAQ,GAAO,CAAC;AAC3D,CAAC,CAAC,CAAC"}
|
package/lib/Text.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
export const Text = JSX(({ className, primary, secondary, children }) => {
|
|
4
|
-
return (_jsxs("div", { className: className || '', children: [primary && _jsx("p", { className: "font-bold text-slate-700 leading-snug", children: primary }), secondary && _jsx("p", { className: "mt-2 text-sm text-slate-600", children: secondary }), children] }));
|
|
4
|
+
return (_jsxs("div", { className: className || '', children: [primary && (_jsx("p", { className: "font-bold text-slate-700 leading-snug", children: primary })), secondary && (_jsx("p", { className: "mt-2 text-sm text-slate-600", children: secondary })), children] }));
|
|
5
5
|
});
|
|
6
6
|
//# sourceMappingURL=Text.js.map
|
package/lib/Text.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../src/Text.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAWxC,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,
|
|
1
|
+
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../src/Text.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAWxC,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CACrB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC9C,OAAO,CACL,eAAK,SAAS,EAAE,SAAS,IAAI,EAAE,aAC5B,OAAO,IAAI,CACV,YAAG,SAAS,EAAC,uCAAuC,YAAE,OAAO,GAAK,CACnE,EACA,SAAS,IAAI,CACZ,YAAG,SAAS,EAAC,6BAA6B,YAAE,SAAS,GAAK,CAC3D,EACA,QAAQ,IACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
package/lib/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redneckz/wildless-cms-uni-blocks",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"style": "./dist/common.css",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"scripts": {
|
|
24
24
|
"build": "rimraf ./lib && tsc --build --verbose && npm run build:commonjs && npm run build:style",
|
|
25
25
|
"build:commonjs": "rimraf ./dist && tsc --module commonjs --noImplicitUseStrict --outDir dist",
|
|
26
|
-
"build:style": "
|
|
26
|
+
"build:style": "postcss './src/**/*.css' --env production --dir ./dist"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@redneckz/uni-jsx": "^0.1.2"
|
|
@@ -37,8 +37,13 @@
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
+
"autoprefixer": "^10.4.4",
|
|
41
|
+
"cssnano": "^5.1.7",
|
|
42
|
+
"postcss": "^8.4.12",
|
|
43
|
+
"postcss-cli": "^9.1.0",
|
|
44
|
+
"prettier": "2.6.2",
|
|
40
45
|
"rimraf": "^3.0.2",
|
|
41
|
-
"tailwindcss": "^3.0.
|
|
46
|
+
"tailwindcss": "^3.0.24",
|
|
42
47
|
"typescript": "^4.6.3"
|
|
43
48
|
}
|
|
44
49
|
}
|