jrs-react 1.1.24 → 1.1.26
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 +23 -60
- package/build/index.js +23 -60
- package/package.json +1 -1
- package/src/components/JRFrame/JRFrame.jsx +37 -4
- package/src/components/JRTest.jsx +1 -2
- package/src/components/StyledJRFrame.jsx +0 -37
package/build/index.es.js
CHANGED
|
@@ -7373,7 +7373,27 @@ class JRSubmit extends React.Component {
|
|
|
7373
7373
|
}
|
|
7374
7374
|
}
|
|
7375
7375
|
|
|
7376
|
-
const
|
|
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
|
+
const StyledJRFrame = dt.div`
|
|
7377
7397
|
display:flex;
|
|
7378
7398
|
flex:1;
|
|
7379
7399
|
overflow:hidden;
|
|
@@ -7408,30 +7428,9 @@ const StyledJRFrame$1 = dt.div`
|
|
|
7408
7428
|
}
|
|
7409
7429
|
|
|
7410
7430
|
`;
|
|
7411
|
-
|
|
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
|
-
};
|
|
7432
7431
|
class JRFrame extends JRSubmit {
|
|
7433
7432
|
renderer() {
|
|
7434
|
-
return /*#__PURE__*/React.createElement(StyledJRFrame
|
|
7433
|
+
return /*#__PURE__*/React.createElement(StyledJRFrame, {
|
|
7435
7434
|
style: this.props.style,
|
|
7436
7435
|
className: `${this.props.className} jr-frame`
|
|
7437
7436
|
}, /*#__PURE__*/React.createElement(FreeType, {
|
|
@@ -7473,42 +7472,6 @@ class JRFrame extends JRSubmit {
|
|
|
7473
7472
|
}
|
|
7474
7473
|
}
|
|
7475
7474
|
|
|
7476
|
-
const StyledJRFrame = dt.div`
|
|
7477
|
-
display:flex;
|
|
7478
|
-
flex:1;
|
|
7479
|
-
overflow:hidden;
|
|
7480
|
-
|
|
7481
|
-
> *{
|
|
7482
|
-
Xborder:1px solid gray;
|
|
7483
|
-
}
|
|
7484
|
-
>main{
|
|
7485
|
-
display:flex;
|
|
7486
|
-
flex:1;
|
|
7487
|
-
overflow:overlay;
|
|
7488
|
-
flex-direction: column;
|
|
7489
|
-
> *{
|
|
7490
|
-
XXborder:1px solid gray;
|
|
7491
|
-
min-height:30px;
|
|
7492
|
-
}
|
|
7493
|
-
|
|
7494
|
-
>header{
|
|
7495
|
-
XXborder:1px solid red;
|
|
7496
|
-
XXoverflow: overlay;
|
|
7497
|
-
}
|
|
7498
|
-
>main{
|
|
7499
|
-
display:flex;
|
|
7500
|
-
flex:1;
|
|
7501
|
-
overflow:hidden;
|
|
7502
|
-
}
|
|
7503
|
-
>footer{
|
|
7504
|
-
XXborder:1px solid blue;
|
|
7505
|
-
overflow: overlay;
|
|
7506
|
-
}
|
|
7507
|
-
|
|
7508
|
-
}
|
|
7509
|
-
|
|
7510
|
-
`;
|
|
7511
|
-
|
|
7512
7475
|
function JRTest() {
|
|
7513
7476
|
return 'I am JRTest string';
|
|
7514
7477
|
}
|
|
@@ -7521,7 +7484,7 @@ class JRTestReact extends JRSubmit {
|
|
|
7521
7484
|
}, "JRTestReact extends JRSubmit");
|
|
7522
7485
|
}
|
|
7523
7486
|
renderer() {
|
|
7524
|
-
return /*#__PURE__*/React.createElement(
|
|
7487
|
+
return /*#__PURE__*/React.createElement("div", null, this.renderMe());
|
|
7525
7488
|
}
|
|
7526
7489
|
}
|
|
7527
7490
|
|
package/build/index.js
CHANGED
|
@@ -7377,7 +7377,27 @@ class JRSubmit extends React.Component {
|
|
|
7377
7377
|
}
|
|
7378
7378
|
}
|
|
7379
7379
|
|
|
7380
|
-
const
|
|
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
|
+
const StyledJRFrame = dt.div`
|
|
7381
7401
|
display:flex;
|
|
7382
7402
|
flex:1;
|
|
7383
7403
|
overflow:hidden;
|
|
@@ -7412,30 +7432,9 @@ const StyledJRFrame$1 = dt.div`
|
|
|
7412
7432
|
}
|
|
7413
7433
|
|
|
7414
7434
|
`;
|
|
7415
|
-
|
|
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
|
-
};
|
|
7436
7435
|
class JRFrame extends JRSubmit {
|
|
7437
7436
|
renderer() {
|
|
7438
|
-
return /*#__PURE__*/React.createElement(StyledJRFrame
|
|
7437
|
+
return /*#__PURE__*/React.createElement(StyledJRFrame, {
|
|
7439
7438
|
style: this.props.style,
|
|
7440
7439
|
className: `${this.props.className} jr-frame`
|
|
7441
7440
|
}, /*#__PURE__*/React.createElement(FreeType, {
|
|
@@ -7477,42 +7476,6 @@ class JRFrame extends JRSubmit {
|
|
|
7477
7476
|
}
|
|
7478
7477
|
}
|
|
7479
7478
|
|
|
7480
|
-
const StyledJRFrame = dt.div`
|
|
7481
|
-
display:flex;
|
|
7482
|
-
flex:1;
|
|
7483
|
-
overflow:hidden;
|
|
7484
|
-
|
|
7485
|
-
> *{
|
|
7486
|
-
Xborder:1px solid gray;
|
|
7487
|
-
}
|
|
7488
|
-
>main{
|
|
7489
|
-
display:flex;
|
|
7490
|
-
flex:1;
|
|
7491
|
-
overflow:overlay;
|
|
7492
|
-
flex-direction: column;
|
|
7493
|
-
> *{
|
|
7494
|
-
XXborder:1px solid gray;
|
|
7495
|
-
min-height:30px;
|
|
7496
|
-
}
|
|
7497
|
-
|
|
7498
|
-
>header{
|
|
7499
|
-
XXborder:1px solid red;
|
|
7500
|
-
XXoverflow: overlay;
|
|
7501
|
-
}
|
|
7502
|
-
>main{
|
|
7503
|
-
display:flex;
|
|
7504
|
-
flex:1;
|
|
7505
|
-
overflow:hidden;
|
|
7506
|
-
}
|
|
7507
|
-
>footer{
|
|
7508
|
-
XXborder:1px solid blue;
|
|
7509
|
-
overflow: overlay;
|
|
7510
|
-
}
|
|
7511
|
-
|
|
7512
|
-
}
|
|
7513
|
-
|
|
7514
|
-
`;
|
|
7515
|
-
|
|
7516
7479
|
function JRTest() {
|
|
7517
7480
|
return 'I am JRTest string';
|
|
7518
7481
|
}
|
|
@@ -7525,7 +7488,7 @@ class JRTestReact extends JRSubmit {
|
|
|
7525
7488
|
}, "JRTestReact extends JRSubmit");
|
|
7526
7489
|
}
|
|
7527
7490
|
renderer() {
|
|
7528
|
-
return /*#__PURE__*/React.createElement(
|
|
7491
|
+
return /*#__PURE__*/React.createElement("div", null, this.renderMe());
|
|
7529
7492
|
}
|
|
7530
7493
|
}
|
|
7531
7494
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import styled from "styled-components";
|
|
2
3
|
import JRSubmit from "../JRSubmit";
|
|
3
|
-
import { StyledJRFrame } from "./StyledJRFrame";
|
|
4
4
|
|
|
5
5
|
const FreeType=({tag:Tag,config,me,className})=>{
|
|
6
6
|
if(typeof config==='function'){
|
|
@@ -13,8 +13,43 @@ const FreeType=({tag:Tag,config,me,className})=>{
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
const StyledJRFrame=styled.div`
|
|
17
|
+
display:flex;
|
|
18
|
+
flex:1;
|
|
19
|
+
overflow:hidden;
|
|
20
|
+
|
|
21
|
+
> *{
|
|
22
|
+
Xborder:1px solid gray;
|
|
23
|
+
}
|
|
24
|
+
>main{
|
|
25
|
+
display:flex;
|
|
26
|
+
flex:1;
|
|
27
|
+
overflow:overlay;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
> *{
|
|
30
|
+
XXborder:1px solid gray;
|
|
31
|
+
min-height:30px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
>header{
|
|
35
|
+
XXborder:1px solid red;
|
|
36
|
+
XXoverflow: overlay;
|
|
37
|
+
}
|
|
38
|
+
>main{
|
|
39
|
+
display:flex;
|
|
40
|
+
flex:1;
|
|
41
|
+
overflow:hidden;
|
|
42
|
+
}
|
|
43
|
+
>footer{
|
|
44
|
+
XXborder:1px solid blue;
|
|
45
|
+
overflow: overlay;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
`
|
|
17
51
|
|
|
52
|
+
export default class JRFrame extends JRSubmit {
|
|
18
53
|
renderer(){
|
|
19
54
|
return <StyledJRFrame style={this.props.style} className={`${this.props.className} jr-frame`} >
|
|
20
55
|
<FreeType tag='div' config={this.props.start} me={this} className={'start'}/>
|
|
@@ -30,10 +65,8 @@ export default class JRFrame extends JRSubmit {
|
|
|
30
65
|
<FreeType tag='div' config={this.props.end} me={this} className={'end'}/>
|
|
31
66
|
</StyledJRFrame>
|
|
32
67
|
}
|
|
33
|
-
|
|
34
68
|
renderMe(){
|
|
35
69
|
return <div style={{flex:1}}>Render me</div>
|
|
36
70
|
}
|
|
37
|
-
|
|
38
71
|
}
|
|
39
72
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import JRSubmit from './JRSubmit'
|
|
3
|
-
import {StyledJRFrame} from './StyledJRFrame'
|
|
4
3
|
|
|
5
4
|
export function JRTest (){
|
|
6
5
|
return 'I am JRTest string'
|
|
@@ -25,6 +24,6 @@ export default class JRTestReact extends JRSubmit {
|
|
|
25
24
|
return <div style={{flex:1}}>JRTestReact extends JRSubmit</div>
|
|
26
25
|
}
|
|
27
26
|
renderer(){
|
|
28
|
-
return <
|
|
27
|
+
return <div>{this.renderMe()}</div>
|
|
29
28
|
}
|
|
30
29
|
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
|
|
3
|
-
export const StyledJRFrame=styled.div`
|
|
4
|
-
display:flex;
|
|
5
|
-
flex:1;
|
|
6
|
-
overflow:hidden;
|
|
7
|
-
|
|
8
|
-
> *{
|
|
9
|
-
Xborder:1px solid gray;
|
|
10
|
-
}
|
|
11
|
-
>main{
|
|
12
|
-
display:flex;
|
|
13
|
-
flex:1;
|
|
14
|
-
overflow:overlay;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
> *{
|
|
17
|
-
XXborder:1px solid gray;
|
|
18
|
-
min-height:30px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
>header{
|
|
22
|
-
XXborder:1px solid red;
|
|
23
|
-
XXoverflow: overlay;
|
|
24
|
-
}
|
|
25
|
-
>main{
|
|
26
|
-
display:flex;
|
|
27
|
-
flex:1;
|
|
28
|
-
overflow:hidden;
|
|
29
|
-
}
|
|
30
|
-
>footer{
|
|
31
|
-
XXborder:1px solid blue;
|
|
32
|
-
overflow: overlay;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
`
|