jrs-react 1.1.21 → 1.1.22
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/build/index.es.js +58 -14
- package/build/index.js +58 -14
- package/package.json +1 -1
- package/src/components/JRFrame/JRFrame.jsx +14 -14
- package/src/components/JRTest.jsx +18 -1
package/build/index.es.js
CHANGED
|
@@ -7409,30 +7409,67 @@ const StyledJRFrame = dt.div`
|
|
|
7409
7409
|
|
|
7410
7410
|
`;
|
|
7411
7411
|
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7420
|
-
|
|
7421
|
-
|
|
7422
|
-
|
|
7412
|
+
const FreeType = ({
|
|
7413
|
+
tag: Tag,
|
|
7414
|
+
config,
|
|
7415
|
+
me,
|
|
7416
|
+
className
|
|
7417
|
+
}) => {
|
|
7418
|
+
if (typeof config === 'function') {
|
|
7419
|
+
let style;
|
|
7420
|
+
const setStyle = function (_style) {
|
|
7421
|
+
style = _style;
|
|
7422
|
+
};
|
|
7423
|
+
const content = config.bind(me)({
|
|
7424
|
+
setStyle
|
|
7425
|
+
});
|
|
7426
|
+
return /*#__PURE__*/React.createElement(Tag, {
|
|
7427
|
+
className: className,
|
|
7428
|
+
style: style
|
|
7429
|
+
}, content);
|
|
7430
|
+
}
|
|
7431
|
+
};
|
|
7423
7432
|
class JRFrame extends JRSubmit {
|
|
7424
7433
|
renderer() {
|
|
7425
7434
|
return /*#__PURE__*/React.createElement(StyledJRFrame, {
|
|
7426
7435
|
style: this.props.style,
|
|
7427
7436
|
className: `${this.props.className} jr-frame`
|
|
7428
|
-
},
|
|
7437
|
+
}, /*#__PURE__*/React.createElement(FreeType, {
|
|
7438
|
+
tag: "div",
|
|
7439
|
+
config: this.props.start,
|
|
7440
|
+
me: this,
|
|
7441
|
+
className: 'start'
|
|
7442
|
+
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType, {
|
|
7443
|
+
tag: "header",
|
|
7444
|
+
config: this.props.top,
|
|
7445
|
+
me: this
|
|
7446
|
+
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType, {
|
|
7447
|
+
tag: "div",
|
|
7448
|
+
config: this.props.left,
|
|
7449
|
+
me: this,
|
|
7450
|
+
className: 'left'
|
|
7451
|
+
}), this.renderMe(), /*#__PURE__*/React.createElement(FreeType, {
|
|
7452
|
+
tag: "div",
|
|
7453
|
+
config: this.props.right,
|
|
7454
|
+
me: this,
|
|
7455
|
+
className: 'right'
|
|
7456
|
+
})), /*#__PURE__*/React.createElement(FreeType, {
|
|
7457
|
+
tag: "footer",
|
|
7458
|
+
config: this.props.bottom,
|
|
7459
|
+
me: this
|
|
7460
|
+
})), /*#__PURE__*/React.createElement(FreeType, {
|
|
7461
|
+
tag: "div",
|
|
7462
|
+
config: this.props.end,
|
|
7463
|
+
me: this,
|
|
7464
|
+
className: 'end'
|
|
7465
|
+
}));
|
|
7429
7466
|
}
|
|
7430
7467
|
renderMe() {
|
|
7431
7468
|
return /*#__PURE__*/React.createElement("div", {
|
|
7432
7469
|
style: {
|
|
7433
7470
|
flex: 1
|
|
7434
7471
|
}
|
|
7435
|
-
}, "Render
|
|
7472
|
+
}, "Render me");
|
|
7436
7473
|
}
|
|
7437
7474
|
}
|
|
7438
7475
|
|
|
@@ -7440,8 +7477,15 @@ function JRTest() {
|
|
|
7440
7477
|
return 'I am JRTest string';
|
|
7441
7478
|
}
|
|
7442
7479
|
class JRTestReact extends JRSubmit {
|
|
7480
|
+
renderMe() {
|
|
7481
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
7482
|
+
style: {
|
|
7483
|
+
flex: 1
|
|
7484
|
+
}
|
|
7485
|
+
}, "JRTestReact extends JRSubmit");
|
|
7486
|
+
}
|
|
7443
7487
|
renderer() {
|
|
7444
|
-
return /*#__PURE__*/React.createElement("div", null,
|
|
7488
|
+
return /*#__PURE__*/React.createElement("div", null, this.renderMe());
|
|
7445
7489
|
}
|
|
7446
7490
|
}
|
|
7447
7491
|
|
package/build/index.js
CHANGED
|
@@ -7413,30 +7413,67 @@ const StyledJRFrame = dt.div`
|
|
|
7413
7413
|
|
|
7414
7414
|
`;
|
|
7415
7415
|
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7420
|
-
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
|
|
7424
|
-
|
|
7425
|
-
|
|
7426
|
-
|
|
7416
|
+
const FreeType = ({
|
|
7417
|
+
tag: Tag,
|
|
7418
|
+
config,
|
|
7419
|
+
me,
|
|
7420
|
+
className
|
|
7421
|
+
}) => {
|
|
7422
|
+
if (typeof config === 'function') {
|
|
7423
|
+
let style;
|
|
7424
|
+
const setStyle = function (_style) {
|
|
7425
|
+
style = _style;
|
|
7426
|
+
};
|
|
7427
|
+
const content = config.bind(me)({
|
|
7428
|
+
setStyle
|
|
7429
|
+
});
|
|
7430
|
+
return /*#__PURE__*/React.createElement(Tag, {
|
|
7431
|
+
className: className,
|
|
7432
|
+
style: style
|
|
7433
|
+
}, content);
|
|
7434
|
+
}
|
|
7435
|
+
};
|
|
7427
7436
|
class JRFrame extends JRSubmit {
|
|
7428
7437
|
renderer() {
|
|
7429
7438
|
return /*#__PURE__*/React.createElement(StyledJRFrame, {
|
|
7430
7439
|
style: this.props.style,
|
|
7431
7440
|
className: `${this.props.className} jr-frame`
|
|
7432
|
-
},
|
|
7441
|
+
}, /*#__PURE__*/React.createElement(FreeType, {
|
|
7442
|
+
tag: "div",
|
|
7443
|
+
config: this.props.start,
|
|
7444
|
+
me: this,
|
|
7445
|
+
className: 'start'
|
|
7446
|
+
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType, {
|
|
7447
|
+
tag: "header",
|
|
7448
|
+
config: this.props.top,
|
|
7449
|
+
me: this
|
|
7450
|
+
}), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType, {
|
|
7451
|
+
tag: "div",
|
|
7452
|
+
config: this.props.left,
|
|
7453
|
+
me: this,
|
|
7454
|
+
className: 'left'
|
|
7455
|
+
}), this.renderMe(), /*#__PURE__*/React.createElement(FreeType, {
|
|
7456
|
+
tag: "div",
|
|
7457
|
+
config: this.props.right,
|
|
7458
|
+
me: this,
|
|
7459
|
+
className: 'right'
|
|
7460
|
+
})), /*#__PURE__*/React.createElement(FreeType, {
|
|
7461
|
+
tag: "footer",
|
|
7462
|
+
config: this.props.bottom,
|
|
7463
|
+
me: this
|
|
7464
|
+
})), /*#__PURE__*/React.createElement(FreeType, {
|
|
7465
|
+
tag: "div",
|
|
7466
|
+
config: this.props.end,
|
|
7467
|
+
me: this,
|
|
7468
|
+
className: 'end'
|
|
7469
|
+
}));
|
|
7433
7470
|
}
|
|
7434
7471
|
renderMe() {
|
|
7435
7472
|
return /*#__PURE__*/React.createElement("div", {
|
|
7436
7473
|
style: {
|
|
7437
7474
|
flex: 1
|
|
7438
7475
|
}
|
|
7439
|
-
}, "Render
|
|
7476
|
+
}, "Render me");
|
|
7440
7477
|
}
|
|
7441
7478
|
}
|
|
7442
7479
|
|
|
@@ -7444,8 +7481,15 @@ function JRTest() {
|
|
|
7444
7481
|
return 'I am JRTest string';
|
|
7445
7482
|
}
|
|
7446
7483
|
class JRTestReact extends JRSubmit {
|
|
7484
|
+
renderMe() {
|
|
7485
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
7486
|
+
style: {
|
|
7487
|
+
flex: 1
|
|
7488
|
+
}
|
|
7489
|
+
}, "JRTestReact extends JRSubmit");
|
|
7490
|
+
}
|
|
7447
7491
|
renderer() {
|
|
7448
|
-
return /*#__PURE__*/React.createElement("div", null,
|
|
7492
|
+
return /*#__PURE__*/React.createElement("div", null, this.renderMe());
|
|
7449
7493
|
}
|
|
7450
7494
|
}
|
|
7451
7495
|
|
package/package.json
CHANGED
|
@@ -2,22 +2,22 @@ import React from "react";
|
|
|
2
2
|
import JRSubmit from "../JRSubmit";
|
|
3
3
|
import { StyledJRFrame } from "./StyledJRFrame";
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
const FreeType=({tag:Tag,config,me,className})=>{
|
|
6
|
+
if(typeof config==='function'){
|
|
7
|
+
let style
|
|
8
|
+
const setStyle=function(_style){
|
|
9
|
+
style=_style
|
|
10
|
+
}
|
|
11
|
+
const content=config.bind(me)({setStyle})
|
|
12
|
+
return <Tag className={className} style={style}>{content}</Tag>
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
15
|
|
|
16
16
|
export default class JRFrame extends JRSubmit {
|
|
17
|
+
|
|
17
18
|
renderer(){
|
|
18
19
|
return <StyledJRFrame style={this.props.style} className={`${this.props.className} jr-frame`} >
|
|
19
|
-
{this.
|
|
20
|
-
{/* <FreeType tag='div' config={this.props.start} me={this} className={'start'}/>
|
|
20
|
+
<FreeType tag='div' config={this.props.start} me={this} className={'start'}/>
|
|
21
21
|
<main>
|
|
22
22
|
<FreeType tag='header' config={this.props.top} me={this}/>
|
|
23
23
|
<main>
|
|
@@ -27,12 +27,12 @@ export default class JRFrame extends JRSubmit {
|
|
|
27
27
|
</main>
|
|
28
28
|
<FreeType tag='footer' config={this.props.bottom} me={this}/>
|
|
29
29
|
</main>
|
|
30
|
-
<FreeType tag='div' config={this.props.end} me={this} className={'end'}/>
|
|
30
|
+
<FreeType tag='div' config={this.props.end} me={this} className={'end'}/>
|
|
31
31
|
</StyledJRFrame>
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
renderMe(){
|
|
35
|
-
return <div style={{flex:1}}>Render
|
|
35
|
+
return <div style={{flex:1}}>Render me</div>
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
}
|
|
@@ -6,8 +6,25 @@ export default function JRTest (){
|
|
|
6
6
|
return 'I am JRTest string'
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
const FreeType=({tag:Tag,config,me,className})=>{
|
|
13
|
+
if(typeof config==='function'){
|
|
14
|
+
let style
|
|
15
|
+
const setStyle=function(_style){
|
|
16
|
+
style=_style
|
|
17
|
+
}
|
|
18
|
+
const content=config.bind(me)({setStyle})
|
|
19
|
+
return <Tag className={className} style={style}>{content}</Tag>
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
9
23
|
export class JRTestReact extends JRSubmit {
|
|
24
|
+
renderMe(){
|
|
25
|
+
return <div style={{flex:1}}>JRTestReact extends JRSubmit</div>
|
|
26
|
+
}
|
|
10
27
|
renderer(){
|
|
11
|
-
return <div>
|
|
28
|
+
return <div>{this.renderMe()}</div>
|
|
12
29
|
}
|
|
13
30
|
}
|