umwd-components 0.1.23 → 0.1.25

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.
@@ -0,0 +1,40 @@
1
+ "use client";
2
+ /*
3
+ * UMWD-Components
4
+ * @copyright Jelle Paulus
5
+ * @license MIT
6
+ */
7
+
8
+ 'use strict';
9
+
10
+ Object.defineProperty(exports, '__esModule', { value: true });
11
+
12
+ var React = require('react');
13
+ var PropTypes = require('prop-types');
14
+ var TextImageBlock = require('./TextImageBlock.js');
15
+
16
+ function Page({
17
+ page_blocks
18
+ }) {
19
+ return /*#__PURE__*/React.createElement(React.Fragment, null, page_blocks.map((block, index) => {
20
+ return /*#__PURE__*/React.createElement(TextImageBlock.default, {
21
+ key: index,
22
+ block_title: block.block_title,
23
+ text_content: block.text_content,
24
+ image_content: block.image_content,
25
+ reverse: block.reverse,
26
+ maxWidth: block.maxWidth
27
+ });
28
+ }));
29
+ }
30
+ Page.propTypes = {
31
+ page_blocks: PropTypes.arrayOf(PropTypes.shape({
32
+ block_title: PropTypes.string,
33
+ text_content: PropTypes.string,
34
+ image_content: PropTypes.string,
35
+ reverse: PropTypes.bool,
36
+ maxWidth: PropTypes.string
37
+ }))
38
+ };
39
+
40
+ exports.default = Page;
package/dist/cjs/index.js CHANGED
@@ -12,6 +12,7 @@ var Button = require('./components/Button.js');
12
12
  var Stack = require('./components/Stack.js');
13
13
  var NavBar = require('./components/NavBar.js');
14
14
  var TextImageBlock = require('./components/TextImageBlock.js');
15
+ var Page = require('./components/Page.js');
15
16
 
16
17
 
17
18
 
@@ -21,3 +22,4 @@ exports.Button = Button.default;
21
22
  exports.Stack = Stack.default;
22
23
  exports.NavBar = NavBar.default;
23
24
  exports.TextImageBlock = TextImageBlock.default;
25
+ exports.Page = Page.default;
@@ -0,0 +1,36 @@
1
+ "use client";
2
+ /*
3
+ * UMWD-Components
4
+ * @copyright Jelle Paulus
5
+ * @license MIT
6
+ */
7
+
8
+ import React from 'react';
9
+ import PropTypes from 'prop-types';
10
+ import TextImageBlock from './TextImageBlock.js';
11
+
12
+ function Page({
13
+ page_blocks
14
+ }) {
15
+ return /*#__PURE__*/React.createElement(React.Fragment, null, page_blocks.map((block, index) => {
16
+ return /*#__PURE__*/React.createElement(TextImageBlock, {
17
+ key: index,
18
+ block_title: block.block_title,
19
+ text_content: block.text_content,
20
+ image_content: block.image_content,
21
+ reverse: block.reverse,
22
+ maxWidth: block.maxWidth
23
+ });
24
+ }));
25
+ }
26
+ Page.propTypes = {
27
+ page_blocks: PropTypes.arrayOf(PropTypes.shape({
28
+ block_title: PropTypes.string,
29
+ text_content: PropTypes.string,
30
+ image_content: PropTypes.string,
31
+ reverse: PropTypes.bool,
32
+ maxWidth: PropTypes.string
33
+ }))
34
+ };
35
+
36
+ export { Page as default };
package/dist/esm/index.js CHANGED
@@ -10,3 +10,4 @@ export { default as Button } from './components/Button.js';
10
10
  export { default as Stack } from './components/Stack.js';
11
11
  export { default as NavBar } from './components/NavBar.js';
12
12
  export { default as TextImageBlock } from './components/TextImageBlock.js';
13
+ export { default as Page } from './components/Page.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umwd-components",
3
- "version": "0.1.23",
3
+ "version": "0.1.25",
4
4
  "description": "UMWD Component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -24,7 +24,15 @@ function Page({ page_blocks }) {
24
24
  }
25
25
 
26
26
  Page.propTypes = {
27
- page_blocks: PropTypes.array.isRequired,
27
+ page_blocks: PropTypes.arrayOf(
28
+ PropTypes.shape({
29
+ block_title: PropTypes.string,
30
+ text_content: PropTypes.string,
31
+ image_content: PropTypes.string,
32
+ reverse: PropTypes.bool,
33
+ maxWidth: PropTypes.string,
34
+ })
35
+ ),
28
36
  };
29
37
 
30
38
  export default Page;
package/src/index.js CHANGED
@@ -5,3 +5,4 @@ export { default as Button } from "./components/Button";
5
5
  export { default as Stack } from "./components/Stack";
6
6
  export { default as NavBar } from "./components/NavBar";
7
7
  export { default as TextImageBlock } from "./components/TextImageBlock";
8
+ export { default as Page } from "./components/Page";