jrs-react 1.1.26 → 1.1.28
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 +22 -38
- package/build/index.js +21 -39
- package/package.json +1 -1
- package/src/components/JRTest.jsx +49 -7
- package/src/index.js +3 -4
package/build/index.es.js
CHANGED
|
@@ -7373,26 +7373,6 @@ class JRSubmit extends React.Component {
|
|
|
7373
7373
|
}
|
|
7374
7374
|
}
|
|
7375
7375
|
|
|
7376
|
-
const FreeType = ({
|
|
7377
|
-
tag: Tag,
|
|
7378
|
-
config,
|
|
7379
|
-
me,
|
|
7380
|
-
className
|
|
7381
|
-
}) => {
|
|
7382
|
-
if (typeof config === 'function') {
|
|
7383
|
-
let style;
|
|
7384
|
-
const setStyle = function (_style) {
|
|
7385
|
-
style = _style;
|
|
7386
|
-
};
|
|
7387
|
-
const content = config.bind(me)({
|
|
7388
|
-
setStyle
|
|
7389
|
-
});
|
|
7390
|
-
return /*#__PURE__*/React.createElement(Tag, {
|
|
7391
|
-
className: className,
|
|
7392
|
-
style: style
|
|
7393
|
-
}, content);
|
|
7394
|
-
}
|
|
7395
|
-
};
|
|
7396
7376
|
const StyledJRFrame = dt.div`
|
|
7397
7377
|
display:flex;
|
|
7398
7378
|
flex:1;
|
|
@@ -7428,7 +7408,27 @@ const StyledJRFrame = dt.div`
|
|
|
7428
7408
|
}
|
|
7429
7409
|
|
|
7430
7410
|
`;
|
|
7431
|
-
|
|
7411
|
+
const FreeType = ({
|
|
7412
|
+
tag: Tag,
|
|
7413
|
+
config,
|
|
7414
|
+
me,
|
|
7415
|
+
className
|
|
7416
|
+
}) => {
|
|
7417
|
+
if (typeof config === 'function') {
|
|
7418
|
+
let style;
|
|
7419
|
+
const setStyle = function (_style) {
|
|
7420
|
+
style = _style;
|
|
7421
|
+
};
|
|
7422
|
+
const content = config.bind(me)({
|
|
7423
|
+
setStyle
|
|
7424
|
+
});
|
|
7425
|
+
return /*#__PURE__*/React.createElement(Tag, {
|
|
7426
|
+
className: className,
|
|
7427
|
+
style: style
|
|
7428
|
+
}, content);
|
|
7429
|
+
}
|
|
7430
|
+
};
|
|
7431
|
+
class JRTestReact extends JRSubmit {
|
|
7432
7432
|
renderer() {
|
|
7433
7433
|
return /*#__PURE__*/React.createElement(StyledJRFrame, {
|
|
7434
7434
|
style: this.props.style,
|
|
@@ -7472,20 +7472,4 @@ class JRFrame extends JRSubmit {
|
|
|
7472
7472
|
}
|
|
7473
7473
|
}
|
|
7474
7474
|
|
|
7475
|
-
|
|
7476
|
-
return 'I am JRTest string';
|
|
7477
|
-
}
|
|
7478
|
-
class JRTestReact extends JRSubmit {
|
|
7479
|
-
renderMe() {
|
|
7480
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
7481
|
-
style: {
|
|
7482
|
-
flex: 1
|
|
7483
|
-
}
|
|
7484
|
-
}, "JRTestReact extends JRSubmit");
|
|
7485
|
-
}
|
|
7486
|
-
renderer() {
|
|
7487
|
-
return /*#__PURE__*/React.createElement("div", null, this.renderMe());
|
|
7488
|
-
}
|
|
7489
|
-
}
|
|
7490
|
-
|
|
7491
|
-
export { JRFrame, JRSubmit, JRTest, JRTestReact };
|
|
7475
|
+
export { JRSubmit, JRTestReact };
|
package/build/index.js
CHANGED
|
@@ -7377,26 +7377,6 @@ class JRSubmit extends React.Component {
|
|
|
7377
7377
|
}
|
|
7378
7378
|
}
|
|
7379
7379
|
|
|
7380
|
-
const FreeType = ({
|
|
7381
|
-
tag: Tag,
|
|
7382
|
-
config,
|
|
7383
|
-
me,
|
|
7384
|
-
className
|
|
7385
|
-
}) => {
|
|
7386
|
-
if (typeof config === 'function') {
|
|
7387
|
-
let style;
|
|
7388
|
-
const setStyle = function (_style) {
|
|
7389
|
-
style = _style;
|
|
7390
|
-
};
|
|
7391
|
-
const content = config.bind(me)({
|
|
7392
|
-
setStyle
|
|
7393
|
-
});
|
|
7394
|
-
return /*#__PURE__*/React.createElement(Tag, {
|
|
7395
|
-
className: className,
|
|
7396
|
-
style: style
|
|
7397
|
-
}, content);
|
|
7398
|
-
}
|
|
7399
|
-
};
|
|
7400
7380
|
const StyledJRFrame = dt.div`
|
|
7401
7381
|
display:flex;
|
|
7402
7382
|
flex:1;
|
|
@@ -7432,7 +7412,27 @@ const StyledJRFrame = dt.div`
|
|
|
7432
7412
|
}
|
|
7433
7413
|
|
|
7434
7414
|
`;
|
|
7435
|
-
|
|
7415
|
+
const FreeType = ({
|
|
7416
|
+
tag: Tag,
|
|
7417
|
+
config,
|
|
7418
|
+
me,
|
|
7419
|
+
className
|
|
7420
|
+
}) => {
|
|
7421
|
+
if (typeof config === 'function') {
|
|
7422
|
+
let style;
|
|
7423
|
+
const setStyle = function (_style) {
|
|
7424
|
+
style = _style;
|
|
7425
|
+
};
|
|
7426
|
+
const content = config.bind(me)({
|
|
7427
|
+
setStyle
|
|
7428
|
+
});
|
|
7429
|
+
return /*#__PURE__*/React.createElement(Tag, {
|
|
7430
|
+
className: className,
|
|
7431
|
+
style: style
|
|
7432
|
+
}, content);
|
|
7433
|
+
}
|
|
7434
|
+
};
|
|
7435
|
+
class JRTestReact extends JRSubmit {
|
|
7436
7436
|
renderer() {
|
|
7437
7437
|
return /*#__PURE__*/React.createElement(StyledJRFrame, {
|
|
7438
7438
|
style: this.props.style,
|
|
@@ -7476,23 +7476,5 @@ class JRFrame extends JRSubmit {
|
|
|
7476
7476
|
}
|
|
7477
7477
|
}
|
|
7478
7478
|
|
|
7479
|
-
function JRTest() {
|
|
7480
|
-
return 'I am JRTest string';
|
|
7481
|
-
}
|
|
7482
|
-
class JRTestReact extends JRSubmit {
|
|
7483
|
-
renderMe() {
|
|
7484
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
7485
|
-
style: {
|
|
7486
|
-
flex: 1
|
|
7487
|
-
}
|
|
7488
|
-
}, "JRTestReact extends JRSubmit");
|
|
7489
|
-
}
|
|
7490
|
-
renderer() {
|
|
7491
|
-
return /*#__PURE__*/React.createElement("div", null, this.renderMe());
|
|
7492
|
-
}
|
|
7493
|
-
}
|
|
7494
|
-
|
|
7495
|
-
exports.JRFrame = JRFrame;
|
|
7496
7479
|
exports.JRSubmit = JRSubmit;
|
|
7497
|
-
exports.JRTest = JRTest;
|
|
7498
7480
|
exports.JRTestReact = JRTestReact;
|
package/package.json
CHANGED
|
@@ -1,12 +1,42 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
+
import styled from "styled-components";
|
|
2
3
|
import JRSubmit from './JRSubmit'
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
const StyledJRFrame=styled.div`
|
|
6
|
+
display:flex;
|
|
7
|
+
flex:1;
|
|
8
|
+
overflow:hidden;
|
|
9
|
+
|
|
10
|
+
> *{
|
|
11
|
+
Xborder:1px solid gray;
|
|
12
|
+
}
|
|
13
|
+
>main{
|
|
14
|
+
display:flex;
|
|
15
|
+
flex:1;
|
|
16
|
+
overflow:overlay;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
> *{
|
|
19
|
+
XXborder:1px solid gray;
|
|
20
|
+
min-height:30px;
|
|
21
|
+
}
|
|
7
22
|
|
|
23
|
+
>header{
|
|
24
|
+
XXborder:1px solid red;
|
|
25
|
+
XXoverflow: overlay;
|
|
26
|
+
}
|
|
27
|
+
>main{
|
|
28
|
+
display:flex;
|
|
29
|
+
flex:1;
|
|
30
|
+
overflow:hidden;
|
|
31
|
+
}
|
|
32
|
+
>footer{
|
|
33
|
+
XXborder:1px solid blue;
|
|
34
|
+
overflow: overlay;
|
|
35
|
+
}
|
|
8
36
|
|
|
37
|
+
}
|
|
9
38
|
|
|
39
|
+
`
|
|
10
40
|
|
|
11
41
|
const FreeType=({tag:Tag,config,me,className})=>{
|
|
12
42
|
if(typeof config==='function'){
|
|
@@ -20,10 +50,22 @@ const FreeType=({tag:Tag,config,me,className})=>{
|
|
|
20
50
|
}
|
|
21
51
|
|
|
22
52
|
export default class JRTestReact extends JRSubmit {
|
|
23
|
-
renderMe(){
|
|
24
|
-
return <div style={{flex:1}}>JRTestReact extends JRSubmit</div>
|
|
25
|
-
}
|
|
26
53
|
renderer(){
|
|
27
|
-
return <
|
|
54
|
+
return <StyledJRFrame style={this.props.style} className={`${this.props.className} jr-frame`} >
|
|
55
|
+
<FreeType tag='div' config={this.props.start} me={this} className={'start'}/>
|
|
56
|
+
<main>
|
|
57
|
+
<FreeType tag='header' config={this.props.top} me={this}/>
|
|
58
|
+
<main>
|
|
59
|
+
<FreeType tag='div' config={this.props.left} me={this} className={'left'}/>
|
|
60
|
+
{this.renderMe()}
|
|
61
|
+
<FreeType tag='div' config={this.props.right} me={this} className={'right'}/>
|
|
62
|
+
</main>
|
|
63
|
+
<FreeType tag='footer' config={this.props.bottom} me={this}/>
|
|
64
|
+
</main>
|
|
65
|
+
<FreeType tag='div' config={this.props.end} me={this} className={'end'}/>
|
|
66
|
+
</StyledJRFrame>
|
|
67
|
+
}
|
|
68
|
+
renderMe(){
|
|
69
|
+
return <div style={{flex:1}}>Render me</div>
|
|
28
70
|
}
|
|
29
71
|
}
|
package/src/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import JRSubmit from './components/JRSubmit'
|
|
2
|
-
import JRFrame from './components/JRFrame/JRFrame'
|
|
3
2
|
// import JRTable from './components/JRTable/JRTable'
|
|
4
|
-
import JRTestReact
|
|
3
|
+
import JRTestReact from './components/JRTest'
|
|
5
4
|
export {
|
|
6
|
-
|
|
7
|
-
,JRSubmit
|
|
5
|
+
JRTestReact
|
|
6
|
+
,JRSubmit//,JRTable
|
|
8
7
|
}
|