@redneckz/wildless-cms-uni-blocks 0.1.4 → 0.1.7

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 CHANGED
@@ -4,6 +4,6 @@ const Placeholder_1 = require("./Placeholder");
4
4
  const Text_1 = require("./Text");
5
5
  exports.Blocks = {
6
6
  Text: Text_1.Text,
7
- Placeholder: Placeholder_1.Placeholder
7
+ Placeholder: Placeholder_1.Placeholder,
8
8
  };
9
9
  //# sourceMappingURL=Blocks.js.map
@@ -1,5 +1,5 @@
1
- import type { BlockContent } from "./Blocks";
2
- import type { ContentPageDef } from "./types";
1
+ import type { BlockContent } from './Blocks';
2
+ import type { ContentPageDef } from './types';
3
3
  export interface ContentPageProps {
4
4
  data: ContentPageDef<BlockContent>;
5
5
  }
@@ -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
@@ -1 +1 @@
1
- {"version":3,"file":"Placeholder.js","sourceRoot":"","sources":["../src/Placeholder.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAS3B,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"}
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,EAAY,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE;IACjF,OAAO,CACL,iCAAK,SAAS,EAAE,SAAS,IAAI,EAAE,aAC5B,OAAO,IAAI,8BAAG,SAAS,EAAC,uCAAuC,YAAE,OAAO,GAAK,EAC7E,SAAS,IAAI,8BAAG,SAAS,EAAC,6BAA6B,YAAE,SAAS,GAAK,EACvE,QAAQ,IACL,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
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
@@ -20,6 +20,6 @@ exports.GraphQL = {
20
20
  date: Date
21
21
  style: [String!]
22
22
  blocks: [Block!]
23
- `
23
+ `,
24
24
  };
25
25
  //# sourceMappingURL=types.js.map
package/lib/Blocks.js CHANGED
@@ -2,6 +2,6 @@ import { Placeholder } from './Placeholder';
2
2
  import { Text } from './Text';
3
3
  export const Blocks = {
4
4
  Text,
5
- Placeholder
5
+ Placeholder,
6
6
  };
7
7
  //# sourceMappingURL=Blocks.js.map
@@ -1,5 +1,5 @@
1
- import type { BlockContent } from "./Blocks";
2
- import type { ContentPageDef } from "./types";
1
+ import type { BlockContent } from './Blocks';
2
+ import type { ContentPageDef } from './types';
3
3
  export interface ContentPageProps {
4
4
  data: ContentPageDef<BlockContent>;
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { JSX } from "@redneckz/uni-jsx";
3
- import { Blocks } from "./Blocks";
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
@@ -1 +1 @@
1
- {"version":3,"file":"Placeholder.js","sourceRoot":"","sources":["../src/Placeholder.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AASxC,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"}
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,CAAY,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE;IACjF,OAAO,CACL,eAAK,SAAS,EAAE,SAAS,IAAI,EAAE,aAC5B,OAAO,IAAI,YAAG,SAAS,EAAC,uCAAuC,YAAE,OAAO,GAAK,EAC7E,SAAS,IAAI,YAAG,SAAS,EAAC,6BAA6B,YAAE,SAAS,GAAK,EACvE,QAAQ,IACL,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
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
@@ -18,6 +18,6 @@ export const GraphQL = {
18
18
  date: Date
19
19
  style: [String!]
20
20
  blocks: [Block!]
21
- `
21
+ `,
22
22
  };
23
23
  //# sourceMappingURL=types.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.1.4",
3
+ "version": "0.1.7",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "style": "./dist/common.css",
@@ -23,10 +23,10 @@
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": "tailwindcss -i ./src/common.css -o ./dist/common.css --minify"
26
+ "build:style": "postcss './src/**/*.css' --env production --dir ./dist"
27
27
  },
28
28
  "dependencies": {
29
- "@redneckz/uni-jsx": "^0.1.2"
29
+ "@redneckz/uni-jsx": "^0.1.3"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "gatsby": "^4.11.3"
@@ -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.23",
46
+ "tailwindcss": "^3.0.24",
42
47
  "typescript": "^4.6.3"
43
48
  }
44
49
  }