umwd-components 0.1.23 → 0.1.24
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/cjs/components/Page.js +34 -0
- package/dist/cjs/index.js +2 -0
- package/dist/esm/components/Page.js +30 -0
- package/dist/esm/index.js +1 -0
- package/package.json +1 -1
- package/src/index.js +1 -0
|
@@ -0,0 +1,34 @@
|
|
|
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.array.isRequired
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
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,30 @@
|
|
|
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.array.isRequired
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
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
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";
|