namirasoft-site-react 1.2.30 → 1.2.31

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/dist/App.js CHANGED
@@ -1,47 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import './App.css';
3
3
  import 'bootstrap/dist/css/bootstrap.min.css';
4
- import { NSHeader } from './components/NSHeader';
5
- import { NSFooter } from './components/NSFooter';
6
- import { NSInputText } from './components/NSInputText';
7
- import { NSInputInteger } from './components/NSInputInteger';
8
- import { NSInputFloat } from './components/NSInputFloat';
9
- import { NSInputPrice } from './components/NSInputPrice';
10
- import { NSInputDate } from './components/NSInputDate';
11
- import { NSInputTime } from './components/NSInputTime';
12
- import { NSInputDuration } from './components/NSInputDuration';
13
- import { NSInputString } from './components/NSInputString';
14
- import { NSInputIP } from './components/NSInputIP';
15
- import { NSInputEmail } from './components/NSInputEmail';
16
- import { NSInputSearch } from './components/NSInputSearch';
17
- import { NSInputPhone } from './components/NSInputPhone';
18
- import { NSButtonGreen } from './components/NSButtonGreen';
19
4
  import { NSButtonRed } from './components/NSButtonRed';
20
- import { NSSelectBox } from './components/NSSelectBox';
21
- import { NSPagination } from './main';
5
+ import { NSLayout, NSPagination } from './main';
22
6
  export function App() {
23
- const options = [
24
- {
25
- label: 'Test1',
26
- value: 'test1',
27
- desc: 'Test1',
28
- },
29
- {
30
- label: 'Test2',
31
- value: 'test2',
32
- desc: 'Test2',
33
- },
34
- {
35
- label: 'Test3',
36
- value: 'test3',
37
- desc: 'Test3',
38
- },
39
- {
40
- label: 'Test4',
41
- value: 'test4',
42
- desc: 'Test4',
43
- },
44
- ];
45
- return (_jsxs("div", Object.assign({ className: "App" }, { children: [_jsx(NSHeader, { scope: 'Test', name: 'Header', logo: '' }), _jsxs("div", Object.assign({ className: 'my-4 container' }, { children: [_jsx(NSInputText, { title: 'Text' }), _jsx(NSInputInteger, { title: 'Integer' }), _jsx(NSInputFloat, { title: 'Floating Point' }), _jsx(NSInputPrice, { title: 'Price' }), _jsx(NSInputDate, { title: 'Date' }), _jsx(NSInputTime, { title: 'Time' }), _jsx(NSInputDuration, { title: 'Duration' }), _jsx(NSInputString, { title: 'String' }), _jsx(NSInputIP, { title: 'IP' }), _jsx(NSInputEmail, { title: 'Email' }), _jsx(NSInputSearch, { title: 'Search' }), _jsx(NSInputPhone, { title: 'Phone' }), _jsx(NSSelectBox, { title: "t", options: options }), _jsx(NSButtonGreen, { title: 'Save', onClick: () => { } }), _jsx(NSButtonRed, { title: 'Delete', onClick: () => { } }), _jsx(NSPagination, { page: 1, size: 25 })] })), _jsx(NSFooter, { scope: 'Test', name: 'Footer', logo: '' })] })));
7
+ return (_jsx("div", Object.assign({ className: "App" }, { children: _jsxs(NSLayout, Object.assign({ scope: 'Namirasoft SOP console', title: "", logo: '' }, { children: [_jsxs("div", Object.assign({ className: 'my-4 container' }, { children: [_jsx(NSButtonRed, { title: 'Delete', onClick: () => { } }), _jsx(NSPagination, { page: 1, size: 25 })] })), "asdasd"] })) })));
46
8
  }
47
9
  //# sourceMappingURL=App.js.map
package/dist/App.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"App.js","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":";AAAA,OAAO,WAAW,CAAC;AACnB,OAAO,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,WAAW,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,kBAAC,KAAK,EAAC,wBAAwB,EAAC,KAAK,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,iBACrD,6BAAK,SAAS,EAAC,gBAAgB,iBAe3B,KAAC,WAAW,IAAC,KAAK,EAAC,QAAQ,EAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,GAAI,EAClD,KAAC,YAAY,IAAC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,GAAI,KACjC,eACW,IACnB,CACT,CAAC;AACN,CAAC"}
@@ -1,10 +1,11 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import Styles from './NSLayout.module.css';
2
3
  import { Component } from 'react';
3
4
  import { NSHeader } from './NSHeader';
4
5
  import { NSFooter } from './NSFooter';
5
6
  export class NSLayout extends Component {
6
7
  render() {
7
- return (_jsxs("div", Object.assign({ className: "d-flex flex-column text-center text-white" }, { children: [_jsx(NSHeader, { scope: this.props.scope, name: "Header", logo: this.props.logo }), _jsxs("div", { children: [_jsx("h1", { children: this.props.title }), _jsx("h4", Object.assign({ className: "page-description" }, { children: this.props.description }))] }), _jsx("main", Object.assign({ className: "container" }, { children: this.props.children })), _jsx(NSFooter, { scope: this.props.scope, name: "Footer", logo: this.props.logo })] })));
8
+ return (_jsxs("div", { children: [_jsxs("div", Object.assign({ className: "d-flex flex-column text-white" }, { children: [_jsx(NSHeader, { scope: this.props.scope, name: "Header", logo: this.props.logo }), _jsxs("div", { children: [_jsx("h1", { children: this.props.title }), _jsx("h4", Object.assign({ className: "page-description" }, { children: this.props.description }))] }), _jsx("main", Object.assign({ className: "container" }, { children: this.props.children }))] })), _jsx("div", Object.assign({ className: Styles.ns_footer }, { children: _jsx(NSFooter, { scope: this.props.scope, name: "Footer", logo: this.props.logo }) }))] }));
8
9
  }
9
10
  }
10
11
  //# sourceMappingURL=NSLayout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NSLayout.js","sourceRoot":"","sources":["../../src/components/NSLayout.ts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AAC,KAAK,EAAE,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,GAAI,EAC1E,0BACI,uBAAK,IAAI,CAAC,KAAK,CAAC,KAAK,GAAM,EAC3B,2BAAI,SAAS,EAAC,kBAAkB,gBAAE,IAAI,CAAC,KAAK,CAAC,WAAW,IAAM,IAC5D,EACN,6BAAM,SAAS,EAAC,WAAW,gBACtB,IAAI,CAAC,KAAK,CAAC,QAAQ,IACjB,KACJ,EACP,4BAAK,SAAS,EAAE,MAAM,CAAC,SAAS,gBAC5B,KAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,GAAI,IACxE,IACJ,CACT,CAAC;IACN,CAAC;CACJ"}
@@ -0,0 +1,5 @@
1
+ .ns_footer {
2
+ position: fixed;
3
+ bottom: 0;
4
+ width: 100%;
5
+ }
@@ -15,7 +15,7 @@ export class NSPagination extends Component {
15
15
  let arr = [];
16
16
  let pushPage = (index) => {
17
17
  if (index == page)
18
- arr.push(_jsx("div", Object.assign({ className: 'center_number' }, { children: _jsx("a", Object.assign({ href: '#', className: 'text-decoration-none text-light' }, { children: index })) })));
18
+ arr.push(_jsx("div", Object.assign({ className: 'center_number' }, { children: _jsx("a", Object.assign({ href: '#', className: 'center_number text-decoration-none text-light' }, { children: index })) })));
19
19
  else
20
20
  arr.push(_jsx("div", { children: _jsx("a", Object.assign({ href: '#', className: 'text-decoration-none text-light' }, { children: index })) }));
21
21
  };
@@ -1 +1 @@
1
- {"version":3,"file":"NSPagination.js","sourceRoot":"","sources":["../../src/components/NSPagination.tsx"],"names":[],"mappings":";AAAA,OAAO,2BAA2B,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAYlC,MAAM,OAAO,YAAa,SAAQ,SAAyB;IAEvD,YAAY,KAAa;QAErB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zF,QAAQ,CAAC,IAAI,CAAC,CAAC;QACf,GAAG,CAAC,IAAI,CAAC,wBAAK,0BAAG,IAAI,EAAC,GAAG,gBAAC,cAAK,GAAG,EAAC,iCAAiC,EAAC,GAAG,EAAC,cAAc,GAAO,IAAI,GAAM,CAAC,CAAC;QAE1G,OAAO,CACH,4BAAK,SAAS,EAAC,oDAAoD,gBAC9D,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAChB,CACT,CAAC;IACN,CAAC;CACJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "namirasoft-site-react",
3
- "version": "1.2.30",
3
+ "version": "1.2.31",
4
4
  "main": "./dist/main.js",
5
5
  "types": "./dist/main.d.ts",
6
6
  "dependencies": {
package/src/App.tsx CHANGED
@@ -1,72 +1,70 @@
1
1
  import './App.css';
2
2
  import 'bootstrap/dist/css/bootstrap.min.css';
3
- import { NSHeader } from './components/NSHeader';
4
- import { NSFooter } from './components/NSFooter';
5
- import { NSInputText } from './components/NSInputText';
6
- import { NSInputInteger } from './components/NSInputInteger';
7
- import { NSInputFloat } from './components/NSInputFloat';
8
- import { NSInputPrice } from './components/NSInputPrice';
9
- import { NSInputDate } from './components/NSInputDate';
10
- import { NSInputTime } from './components/NSInputTime';
11
- import { NSInputDuration } from './components/NSInputDuration';
12
- import { NSInputString } from './components/NSInputString';
13
- import { NSInputIP } from './components/NSInputIP';
14
- import { NSInputEmail } from './components/NSInputEmail';
15
- import { NSInputSearch } from './components/NSInputSearch';
16
- import { NSInputPhone } from './components/NSInputPhone';
17
- import { NSButtonGreen } from './components/NSButtonGreen';
3
+ // import { NSInputText } from './components/NSInputText';
4
+ // import { NSInputInteger } from './components/NSInputInteger';
5
+ // import { NSInputFloat } from './components/NSInputFloat';
6
+ // import { NSInputPrice } from './components/NSInputPrice';
7
+ // import { NSInputDate } from './components/NSInputDate';
8
+ // import { NSInputTime } from './components/NSInputTime';
9
+ // import { NSInputDuration } from './components/NSInputDuration';
10
+ // import { NSInputString } from './components/NSInputString';
11
+ // import { NSInputIP } from './components/NSInputIP';
12
+ // import { NSInputEmail } from './components/NSInputEmail';
13
+ // import { NSInputSearch } from './components/NSInputSearch';
14
+ // import { NSInputPhone } from './components/NSInputPhone';
15
+ // import { NSButtonGreen } from './components/NSButtonGreen';
18
16
  import { NSButtonRed } from './components/NSButtonRed';
19
- import { NSSelectBox } from './components/NSSelectBox';
20
- import { type SelectProps } from 'antd';
21
- import { NSPagination } from './main';
17
+ // import { NSSelectBox } from './components/NSSelectBox';
18
+ // import { type SelectProps } from 'antd';
19
+ import { NSLayout, NSPagination } from './main';
22
20
 
23
21
  export function App()
24
22
  {
25
- const options: SelectProps['options'] = [
26
- {
27
- label: 'Test1',
28
- value: 'test1',
29
- desc: 'Test1',
30
- },
31
- {
32
- label: 'Test2',
33
- value: 'test2',
34
- desc: 'Test2',
35
- },
36
- {
37
- label: 'Test3',
38
- value: 'test3',
39
- desc: 'Test3',
40
- },
41
- {
42
- label: 'Test4',
43
- value: 'test4',
44
- desc: 'Test4',
45
- },
46
- ];
23
+ // const options: SelectProps['options'] = [
24
+ // {
25
+ // label: 'Test1',
26
+ // value: 'test1',
27
+ // desc: 'Test1',
28
+ // },
29
+ // {
30
+ // label: 'Test2',
31
+ // value: 'test2',
32
+ // desc: 'Test2',
33
+ // },
34
+ // {
35
+ // label: 'Test3',
36
+ // value: 'test3',
37
+ // desc: 'Test3',
38
+ // },
39
+ // {
40
+ // label: 'Test4',
41
+ // value: 'test4',
42
+ // desc: 'Test4',
43
+ // },
44
+ // ];
47
45
 
48
46
  return (
49
47
  <div className="App">
50
- <NSHeader scope='Test' name='Header' logo='' />
51
- <div className='my-4 container'>
52
- <NSInputText title='Text' />
53
- <NSInputInteger title='Integer' />
54
- <NSInputFloat title='Floating Point' />
55
- <NSInputPrice title='Price' />
56
- <NSInputDate title='Date' />
57
- <NSInputTime title='Time' />
58
- <NSInputDuration title='Duration' />
59
- <NSInputString title='String' />
60
- <NSInputIP title='IP' />
61
- <NSInputEmail title='Email' />
62
- <NSInputSearch title='Search' />
63
- <NSInputPhone title='Phone' />
64
- <NSSelectBox title="t" options={options} />
65
- <NSButtonGreen title='Save' onClick={() => { }} />
66
- <NSButtonRed title='Delete' onClick={() => { }} />
67
- <NSPagination page={1} size={25} />
68
- </div>
69
- <NSFooter scope='Test' name='Footer' logo='' />
48
+ <NSLayout scope='Namirasoft SOP console' title="" logo=''>
49
+ <div className='my-4 container'>
50
+ {/* <NSInputText title='Text' />
51
+ <NSInputInteger title='Integer' />
52
+ <NSInputFloat title='Floating Point' />
53
+ <NSInputPrice title='Price' />
54
+ <NSInputDate title='Date' />
55
+ <NSInputTime title='Time' />
56
+ <NSInputDuration title='Duration' />
57
+ <NSInputString title='String' />
58
+ <NSInputIP title='IP' />
59
+ <NSInputEmail title='Email' />
60
+ <NSInputSearch title='Search' />
61
+ <NSInputPhone title='Phone' />
62
+ <NSSelectBox title="t" options={options} />
63
+ <NSButtonGreen title='Save' onClick={() => { }} /> */}
64
+ <NSButtonRed title='Delete' onClick={() => { }} />
65
+ <NSPagination page={1} size={25} />
66
+ </div>
67
+ asdasd</NSLayout>
70
68
  </div>
71
69
  );
72
70
  }
@@ -0,0 +1,5 @@
1
+ .ns_footer {
2
+ position: fixed;
3
+ bottom: 0;
4
+ width: 100%;
5
+ }
@@ -1,3 +1,4 @@
1
+ import Styles from './NSLayout.module.css';
1
2
  import { Component, ReactNode } from 'react';
2
3
  import { NSHeader } from './NSHeader';
3
4
  import { NSFooter } from './NSFooter';
@@ -16,17 +17,21 @@ export class NSLayout extends Component<IProps>
16
17
  override render()
17
18
  {
18
19
  return (
19
- <div className="d-flex flex-column text-center text-white">
20
- <NSHeader scope={this.props.scope} name="Header" logo={this.props.logo} />
21
- <div>
22
- <h1>{this.props.title}</h1>
23
- <h4 className="page-description">{this.props.description}</h4>
20
+ <div>
21
+ <div className="d-flex flex-column text-white">
22
+ <NSHeader scope={this.props.scope} name="Header" logo={this.props.logo} />
23
+ <div>
24
+ <h1>{this.props.title}</h1>
25
+ <h4 className="page-description">{this.props.description}</h4>
26
+ </div>
27
+ <main className="container">
28
+ {this.props.children}
29
+ </main>
30
+ </div >
31
+ <div className={Styles.ns_footer}>
32
+ <NSFooter scope={this.props.scope} name="Footer" logo={this.props.logo} />
24
33
  </div>
25
- <main className="container">
26
- {this.props.children}
27
- </main>
28
- <NSFooter scope={this.props.scope} name="Footer" logo={this.props.logo} />
29
- </div >
34
+ </div>
30
35
  );
31
36
  }
32
37
  }
@@ -29,7 +29,7 @@ export class NSPagination extends Component<IState, IProps>
29
29
  let pushPage = (index: number) =>
30
30
  {
31
31
  if (index == page)
32
- arr.push(<div className='center_number'><a href='#' className='text-decoration-none text-light'>{index}</a></div>);
32
+ arr.push(<div className='center_number'><a href='#' className='center_number text-decoration-none text-light'>{index}</a></div>);
33
33
  else
34
34
  arr.push(<div><a href='#' className='text-decoration-none text-light'>{index}</a></div>);
35
35
  };
@@ -50,4 +50,4 @@ export class NSPagination extends Component<IState, IProps>
50
50
  </div>
51
51
  );
52
52
  }
53
- }
53
+ }
Binary file
Binary file
File without changes
File without changes