namirasoft-site-react 1.3.56 → 1.3.57

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,7 +1,7 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import './App.css';
3
3
  import 'bootstrap/dist/css/bootstrap.min.css';
4
- import { NSFooter, NSHeader, NSTable } from './main';
4
+ import { NSFooter, NSHeader, NSTable, NSInputDate } from './main';
5
5
  export function App() {
6
6
  let columns = {
7
7
  "id": "ID",
@@ -28,6 +28,6 @@ export function App() {
28
28
  status: "Done"
29
29
  }
30
30
  ];
31
- return (_jsxs(_Fragment, { children: [_jsx(NSHeader, { name: 'Header', scope: 'Namira Software Corporation', logo: 'https://static.namirasoft.com/logo/namirasoft/base.png', account: false, background: { color: "transparent !important" } }), _jsx("div", { className: "container", children: _jsx(NSTable, { columns: columns, rows: rows, getRowKey: row => row.id.toString() }) }), _jsx(NSFooter, { name: 'Footer', scope: 'Namira Software Corporation', logo: 'https://static.namirasoft.com/logo/namirasoft/base.png' })] }));
31
+ return (_jsxs(_Fragment, { children: [_jsx(NSHeader, { name: 'Header', scope: 'Namira Software Corporation', logo: 'https://static.namirasoft.com/logo/namirasoft/base.png', account: false, background: { color: "transparent !important" } }), _jsxs("div", { className: "container", children: [_jsx(NSInputDate, { title: "rrt" }), _jsx(NSTable, { columns: columns, rows: rows, getRowKey: row => row.id.toString() })] }), _jsx(NSFooter, { name: 'Footer', scope: 'Namira Software Corporation', logo: 'https://static.namirasoft.com/logo/namirasoft/base.png' })] }));
32
32
  }
33
33
  //# 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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,CAAC;AACN,CAAC"}
@@ -25,7 +25,7 @@ export class NSInputDate extends React.Component {
25
25
  }
26
26
  render() {
27
27
  var _a;
28
- return (_jsxs("div", { className: `${Styles.ns_input_parent} p-2 ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: [_jsx("span", { className: Styles.ns_input_title, children: this.props.title }), _jsx("input", { value: this.state.value, onChange: this.onChanged, type: "date", className: Styles.ns_input, placeholder: this.props.placeholder, id: "ns-input-date" })] }));
28
+ return (_jsxs("div", { className: `${Styles.ns_parent_input} p-2 ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: [_jsx("span", { className: Styles.ns_input_title, children: this.props.title }), _jsx("input", { value: this.state.value, onChange: this.onChanged, type: "date", className: Styles.ns_input, placeholder: this.props.placeholder, id: "ns-input-date" })] }));
29
29
  }
30
30
  }
31
31
  //# sourceMappingURL=NSInputDate.js.map
@@ -25,12 +25,3 @@
25
25
  font-weight: 400;
26
26
  }
27
27
 
28
- .ns_input::-webkit-calendar-picker-indicator {
29
- display: block;
30
- background: url(../assets/images/icon-input-date.svg) no-repeat;
31
- width: 24px;
32
- height: 24px;
33
- position: relative;
34
- top: 3px;
35
- left: 4px;
36
- }
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.3.56",
11
+ "version": "1.3.57",
12
12
  "author": "Amir Abolhasani, Alireza Esmaeeli, Hooman Shashaeh",
13
13
  "license": "MIT",
14
14
  "main": "./dist/main.js",
@@ -30,7 +30,7 @@
30
30
  "link-react": "^3.0.0",
31
31
  "namirasoft-api-link": "^1.3.1",
32
32
  "namirasoft-core": "^1.3.18",
33
- "namirasoft-site-react": "^1.3.55",
33
+ "namirasoft-site-react": "^1.3.56",
34
34
  "path-browserify": "^1.0.1",
35
35
  "react": "^18.2.0",
36
36
  "react-app-rewired": "^2.2.1",
package/src/App.tsx CHANGED
@@ -1,6 +1,6 @@
1
1
  import './App.css';
2
2
  import 'bootstrap/dist/css/bootstrap.min.css';
3
- import { NSFooter, NSHeader, NSTable } from './main';
3
+ import { NSFooter, NSHeader, NSTable,NSInputDate } from './main';
4
4
 
5
5
  export function App()
6
6
  {
@@ -48,6 +48,7 @@ export function App()
48
48
  background={{ color: "transparent !important" }}
49
49
  />
50
50
  <div className="container">
51
+ <NSInputDate title="rrt"/>
51
52
  <NSTable<Row> columns={columns} rows={rows} getRowKey={row => row.id.toString()} />
52
53
  </div>
53
54
  <NSFooter name='Footer' scope='Namira Software Corporation' logo='https://static.namirasoft.com/logo/namirasoft/base.png' />
@@ -25,12 +25,3 @@
25
25
  font-weight: 400;
26
26
  }
27
27
 
28
- .ns_input::-webkit-calendar-picker-indicator {
29
- display: block;
30
- background: url(../assets/images/icon-input-date.svg) no-repeat;
31
- width: 24px;
32
- height: 24px;
33
- position: relative;
34
- top: 3px;
35
- left: 4px;
36
- }
@@ -45,7 +45,7 @@ export class NSInputDate extends React.Component<NSInputDateProps, NSInputDateSt
45
45
  override render()
46
46
  {
47
47
  return (
48
- <div className={`${Styles.ns_input_parent} p-2 ${this.props.classList?.join(" ")}`} style={this.props.style}>
48
+ <div className={`${Styles.ns_parent_input} p-2 ${this.props.classList?.join(" ")}`} style={this.props.style}>
49
49
  <span className={Styles.ns_input_title}>{this.props.title}</span>
50
50
  <input
51
51
  value={this.state.value}