jrs-react 1.1.27 → 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 CHANGED
@@ -7373,26 +7373,6 @@ class JRSubmit extends React.Component {
7373
7373
  }
7374
7374
  }
7375
7375
 
7376
- const FreeType$1 = ({
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,53 +7408,6 @@ const StyledJRFrame = dt.div`
7428
7408
  }
7429
7409
 
7430
7410
  `;
7431
- class JRFrame extends JRSubmit {
7432
- renderer() {
7433
- return /*#__PURE__*/React.createElement(StyledJRFrame, {
7434
- style: this.props.style,
7435
- className: `${this.props.className} jr-frame`
7436
- }, /*#__PURE__*/React.createElement(FreeType$1, {
7437
- tag: "div",
7438
- config: this.props.start,
7439
- me: this,
7440
- className: 'start'
7441
- }), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType$1, {
7442
- tag: "header",
7443
- config: this.props.top,
7444
- me: this
7445
- }), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType$1, {
7446
- tag: "div",
7447
- config: this.props.left,
7448
- me: this,
7449
- className: 'left'
7450
- }), this.renderMe(), /*#__PURE__*/React.createElement(FreeType$1, {
7451
- tag: "div",
7452
- config: this.props.right,
7453
- me: this,
7454
- className: 'right'
7455
- })), /*#__PURE__*/React.createElement(FreeType$1, {
7456
- tag: "footer",
7457
- config: this.props.bottom,
7458
- me: this
7459
- })), /*#__PURE__*/React.createElement(FreeType$1, {
7460
- tag: "div",
7461
- config: this.props.end,
7462
- me: this,
7463
- className: 'end'
7464
- }));
7465
- }
7466
- renderMe() {
7467
- return /*#__PURE__*/React.createElement("div", {
7468
- style: {
7469
- flex: 1
7470
- }
7471
- }, "Render me");
7472
- }
7473
- }
7474
-
7475
- function JRTest() {
7476
- return 'I am JRTest string';
7477
- }
7478
7411
  const FreeType = ({
7479
7412
  tag: Tag,
7480
7413
  config,
@@ -7497,7 +7430,7 @@ const FreeType = ({
7497
7430
  };
7498
7431
  class JRTestReact extends JRSubmit {
7499
7432
  renderer() {
7500
- return /*#__PURE__*/React.createElement("div", {
7433
+ return /*#__PURE__*/React.createElement(StyledJRFrame, {
7501
7434
  style: this.props.style,
7502
7435
  className: `${this.props.className} jr-frame`
7503
7436
  }, /*#__PURE__*/React.createElement(FreeType, {
@@ -7539,4 +7472,4 @@ class JRTestReact extends JRSubmit {
7539
7472
  }
7540
7473
  }
7541
7474
 
7542
- 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$1 = ({
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,53 +7412,6 @@ const StyledJRFrame = dt.div`
7432
7412
  }
7433
7413
 
7434
7414
  `;
7435
- class JRFrame extends JRSubmit {
7436
- renderer() {
7437
- return /*#__PURE__*/React.createElement(StyledJRFrame, {
7438
- style: this.props.style,
7439
- className: `${this.props.className} jr-frame`
7440
- }, /*#__PURE__*/React.createElement(FreeType$1, {
7441
- tag: "div",
7442
- config: this.props.start,
7443
- me: this,
7444
- className: 'start'
7445
- }), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType$1, {
7446
- tag: "header",
7447
- config: this.props.top,
7448
- me: this
7449
- }), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(FreeType$1, {
7450
- tag: "div",
7451
- config: this.props.left,
7452
- me: this,
7453
- className: 'left'
7454
- }), this.renderMe(), /*#__PURE__*/React.createElement(FreeType$1, {
7455
- tag: "div",
7456
- config: this.props.right,
7457
- me: this,
7458
- className: 'right'
7459
- })), /*#__PURE__*/React.createElement(FreeType$1, {
7460
- tag: "footer",
7461
- config: this.props.bottom,
7462
- me: this
7463
- })), /*#__PURE__*/React.createElement(FreeType$1, {
7464
- tag: "div",
7465
- config: this.props.end,
7466
- me: this,
7467
- className: 'end'
7468
- }));
7469
- }
7470
- renderMe() {
7471
- return /*#__PURE__*/React.createElement("div", {
7472
- style: {
7473
- flex: 1
7474
- }
7475
- }, "Render me");
7476
- }
7477
- }
7478
-
7479
- function JRTest() {
7480
- return 'I am JRTest string';
7481
- }
7482
7415
  const FreeType = ({
7483
7416
  tag: Tag,
7484
7417
  config,
@@ -7501,7 +7434,7 @@ const FreeType = ({
7501
7434
  };
7502
7435
  class JRTestReact extends JRSubmit {
7503
7436
  renderer() {
7504
- return /*#__PURE__*/React.createElement("div", {
7437
+ return /*#__PURE__*/React.createElement(StyledJRFrame, {
7505
7438
  style: this.props.style,
7506
7439
  className: `${this.props.className} jr-frame`
7507
7440
  }, /*#__PURE__*/React.createElement(FreeType, {
@@ -7543,7 +7476,5 @@ class JRTestReact extends JRSubmit {
7543
7476
  }
7544
7477
  }
7545
7478
 
7546
- exports.JRFrame = JRFrame;
7547
7479
  exports.JRSubmit = JRSubmit;
7548
- exports.JRTest = JRTest;
7549
7480
  exports.JRTestReact = JRTestReact;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jrs-react",
3
- "version": "1.1.27",
3
+ "version": "1.1.28",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.es.js",
@@ -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
- export function JRTest (){
5
- return 'I am JRTest string'
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'){
@@ -21,7 +51,7 @@ const FreeType=({tag:Tag,config,me,className})=>{
21
51
 
22
52
  export default class JRTestReact extends JRSubmit {
23
53
  renderer(){
24
- return <div style={this.props.style} className={`${this.props.className} jr-frame`} >
54
+ return <StyledJRFrame style={this.props.style} className={`${this.props.className} jr-frame`} >
25
55
  <FreeType tag='div' config={this.props.start} me={this} className={'start'}/>
26
56
  <main>
27
57
  <FreeType tag='header' config={this.props.top} me={this}/>
@@ -33,7 +63,7 @@ export default class JRTestReact extends JRSubmit {
33
63
  <FreeType tag='footer' config={this.props.bottom} me={this}/>
34
64
  </main>
35
65
  <FreeType tag='div' config={this.props.end} me={this} className={'end'}/>
36
- </div>
66
+ </StyledJRFrame>
37
67
  }
38
68
  renderMe(){
39
69
  return <div style={{flex:1}}>Render me</div>
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 ,{JRTest} from './components/JRTest'
3
+ import JRTestReact from './components/JRTest'
5
4
  export {
6
- JRTest,JRTestReact
7
- ,JRSubmit,JRFrame//,JRTable
5
+ JRTestReact
6
+ ,JRSubmit//,JRTable
8
7
  }