jrs-react 1.1.20 → 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 CHANGED
@@ -7409,41 +7409,83 @@ const StyledJRFrame = dt.div`
7409
7409
 
7410
7410
  `;
7411
7411
 
7412
- // const FreeType=({tag:Tag,config,me,className})=>{
7413
- // if(typeof config==='function'){
7414
- // let style
7415
- // const setStyle=function(_style){
7416
- // style=_style
7417
- // }
7418
- // const content=config.bind(me)({setStyle})
7419
- // return <Tag className={className} style={style}>{content}</Tag>
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
- }, this.renderMe());
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 JRFrame main");
7472
+ }, "Render me");
7436
7473
  }
7437
7474
  }
7438
7475
 
7439
- class JRTest extends JRSubmit {
7440
- renderer() {
7441
- return /*#__PURE__*/React.createElement("div", null, "JRTest");
7442
- }
7476
+ function JRTest() {
7477
+ return 'I am JRTest string';
7443
7478
  }
7444
7479
  class JRTestReact extends JRSubmit {
7480
+ renderMe() {
7481
+ return /*#__PURE__*/React.createElement("div", {
7482
+ style: {
7483
+ flex: 1
7484
+ }
7485
+ }, "JRTestReact extends JRSubmit");
7486
+ }
7445
7487
  renderer() {
7446
- return /*#__PURE__*/React.createElement(StyledJRFrame, null, "JRTestReact extends JRSubmit");
7488
+ return /*#__PURE__*/React.createElement("div", null, this.renderMe());
7447
7489
  }
7448
7490
  }
7449
7491
 
package/build/index.js CHANGED
@@ -7413,41 +7413,83 @@ const StyledJRFrame = dt.div`
7413
7413
 
7414
7414
  `;
7415
7415
 
7416
- // const FreeType=({tag:Tag,config,me,className})=>{
7417
- // if(typeof config==='function'){
7418
- // let style
7419
- // const setStyle=function(_style){
7420
- // style=_style
7421
- // }
7422
- // const content=config.bind(me)({setStyle})
7423
- // return <Tag className={className} style={style}>{content}</Tag>
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
- }, this.renderMe());
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 JRFrame main");
7476
+ }, "Render me");
7440
7477
  }
7441
7478
  }
7442
7479
 
7443
- class JRTest extends JRSubmit {
7444
- renderer() {
7445
- return /*#__PURE__*/React.createElement("div", null, "JRTest");
7446
- }
7480
+ function JRTest() {
7481
+ return 'I am JRTest string';
7447
7482
  }
7448
7483
  class JRTestReact extends JRSubmit {
7484
+ renderMe() {
7485
+ return /*#__PURE__*/React.createElement("div", {
7486
+ style: {
7487
+ flex: 1
7488
+ }
7489
+ }, "JRTestReact extends JRSubmit");
7490
+ }
7449
7491
  renderer() {
7450
- return /*#__PURE__*/React.createElement(StyledJRFrame, null, "JRTestReact extends JRSubmit");
7492
+ return /*#__PURE__*/React.createElement("div", null, this.renderMe());
7451
7493
  }
7452
7494
  }
7453
7495
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jrs-react",
3
- "version": "1.1.20",
3
+ "version": "1.1.22",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.es.js",
@@ -2,22 +2,22 @@ import React from "react";
2
2
  import JRSubmit from "../JRSubmit";
3
3
  import { StyledJRFrame } from "./StyledJRFrame";
4
4
 
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
- // }
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.renderMe()}
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 JRFrame main</div>
35
+ return <div style={{flex:1}}>Render me</div>
36
36
  }
37
37
 
38
38
  }
@@ -1,16 +1,30 @@
1
1
  import React from 'react'
2
2
  import JRSubmit from './JRSubmit'
3
- import { StyledJRFrame } from './JRFrame/StyledJRFrame'
4
3
 
5
4
 
6
- export class JRTest extends JRSubmit {
7
- renderer(){
8
- return <div>JRTest</div>
5
+ export default function JRTest (){
6
+ return 'I am JRTest string'
7
+ }
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>
9
20
  }
10
21
  }
11
22
 
12
23
  export class JRTestReact extends JRSubmit {
24
+ renderMe(){
25
+ return <div style={{flex:1}}>JRTestReact extends JRSubmit</div>
26
+ }
13
27
  renderer(){
14
- return <StyledJRFrame>JRTestReact extends JRSubmit</StyledJRFrame>
28
+ return <div>{this.renderMe()}</div>
15
29
  }
16
30
  }
package/src/index.js CHANGED
@@ -1,9 +1,8 @@
1
1
  import JRSubmit from './components/JRSubmit'
2
2
  import JRFrame from './components/JRFrame/JRFrame'
3
3
  // import JRTable from './components/JRTable/JRTable'
4
- import {JRTest,JRTestReact} from './components/JRTest'
4
+ import JRTest,{JRTestReact} from './components/JRTest'
5
5
  export {
6
6
  JRTest,JRTestReact
7
- ,JRSubmit,JRFrame
8
- //,JRTable
7
+ ,JRSubmit,JRFrame//,JRTable
9
8
  }