namirasoft-site-react 1.3.22 → 1.3.23

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,8 +1,8 @@
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 { NSButtonBlue, NSButtonBlueVector, NSLayoutTitle, NSPagination, NSInputCopy, NSInputSearch } from './main';
4
+ import { NSButtonBlue, NSButtonBlueVector, NSLayoutTitle, NSPagination } from './main';
5
5
  export function App() {
6
- return (_jsx("div", { className: "App", children: _jsxs(NSLayoutTitle, { scope: 'Namirasoft Account Console', logo: '', title: "Namirasoft", description: 'paragraph', children: [_jsx(NSPagination, { page: 1, size: 25 }), _jsx(NSButtonBlue, { title: 'Apply', onClick: () => "" }), _jsx(NSButtonBlueVector, { title: 'New', onClick: () => "", vector: '/assets/images/add-vector.png' }), _jsx(NSInputCopy, { title: "Your Token" }), _jsx(NSInputSearch, {})] }) }));
6
+ return (_jsx("div", { className: "App", children: _jsxs(NSLayoutTitle, { scope: 'Namirasoft Account Console', logo: '', title: "Namirasoft", description: 'paragraph', children: [_jsx(NSPagination, { page: 1, size: 25 }), _jsx(NSButtonBlue, { title: 'Apply', onClick: () => "" }), _jsx(NSButtonBlueVector, { title: 'New', onClick: () => "", vector: '/assets/images/add-vector.png' })] }) }));
7
7
  }
8
8
  //# 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,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEnH,MAAM,UAAU,GAAG;IAEf,OAAO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AAC"}
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="14" viewBox="0 0 16 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M9.70912 12.1877C8.93017 13.4695 7.06983 13.4695 6.29088 12.1877L1.18647 3.7887C0.37647 2.45587 1.33594 0.749999 2.8956 0.749999L13.1044 0.75C14.6641 0.75 15.6235 2.45587 14.8135 3.7887L9.70912 12.1877Z" fill="#141B5C"/>
3
+ </svg>
@@ -18,7 +18,7 @@
18
18
  .ns_input_icon {
19
19
  position: absolute;
20
20
  right: 20px;
21
- top: 26%;
21
+ top: 34%;
22
22
  }
23
23
 
24
24
  .ns_input_title {
@@ -1,8 +1,9 @@
1
1
  "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import React from "react";
4
4
  import Styles from "./NSSelectBox.module.css";
5
5
  import { Select, Space } from 'antd';
6
+ import IconSelectBox from '../assets/images/icon-select-box.svg';
6
7
  export class NSSelectBox extends React.Component {
7
8
  constructor(props) {
8
9
  super(props);
@@ -18,7 +19,7 @@ export class NSSelectBox extends React.Component {
18
19
  return this.state.value;
19
20
  }
20
21
  render() {
21
- return (_jsx("div", { className: `${Styles.ns_input_parent} p-2`, children: _jsx(Select, { mode: "multiple", style: { width: '100%' }, className: Styles.ns_input_select, placeholder: "Combo Box", onChange: this.setValue, optionLabelProp: "label", options: this.props.options, optionRender: (option) => (_jsx(Space, { className: Styles.ns_input_select_option, children: option.data.desc })) }) }));
22
+ return (_jsxs("div", { className: `${Styles.ns_input_parent} p-2`, children: [_jsx("span", { className: Styles.ns_input_title, children: this.props.title }), _jsx(Select, { mode: "multiple", style: { width: '100%' }, className: Styles.ns_input_select, placeholder: "Combo Box", onChange: this.setValue, optionLabelProp: "label", options: this.props.options, optionRender: (option) => (_jsx(Space, { className: Styles.ns_input_select_option, children: option.data.desc })), suffixIcon: _jsx("img", { src: IconSelectBox, alt: "SelectBox Icon" }) })] }));
22
23
  }
23
24
  }
24
25
  //# sourceMappingURL=NSSelectBox.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NSSelectBox.js","sourceRoot":"","sources":["../../src/components/NSSelectBox.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAerC,MAAM,OAAO,WAAY,SAAQ,KAAK,CAAC,SAA6C;IAChF,YAAY,KAAuB;QAE/B,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG;YACT,KAAK,EAAE,EAAE;SACZ,CAAC;QACF,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;IACD,QAAQ,CAAC,KAAe;QAEpB,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7B,CAAC;IACD,QAAQ;QAEJ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;IAC5B,CAAC;IACQ,MAAM;QAEX,OAAO,CACH,cAAK,SAAS,EAAE,GAAG,MAAM,CAAC,eAAe,MAAM,YAC3C,KAAC,MAAM,IAEH,IAAI,EAAC,UAAU,EACf,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EACxB,SAAS,EAAE,MAAM,CAAC,eAAe,EACjC,WAAW,EAAC,WAAW,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,eAAe,EAAC,OAAO,EACvB,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,EAC3B,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CACtB,KAAC,KAAK,IAAC,SAAS,EAAE,MAAM,CAAC,sBAAsB,YAC1C,MAAM,CAAC,IAAI,CAAC,I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,EAAE,CAAC,CACtB,KAAC,KAAK,IAAC,SAAS,EAAE,MAAM,CAAC,sBAAsB,YAC1C,MAAM,CAAC,IAAI,CAAC,IAAI,GACb,CACX,EACD,UAAU,EAAE,cAAK,GAAG,EAAE,aAAa,EAAE,GAAG,EAAC,gBAAgB,GAAG,GAC9D,IACA,CACT,CAAC;IACN,CAAC;CACJ"}
@@ -4,7 +4,7 @@
4
4
  }
5
5
 
6
6
  .ns_input_select {
7
- height: 48px;
7
+ height: 45px;
8
8
  width: 304px !important;
9
9
  }
10
10
 
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.3.22",
11
+ "version": "1.3.23",
12
12
  "author": "Amir Abolhasani",
13
13
  "license": "MIT",
14
14
  "main": "./dist/main.js",
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 { NSButtonBlue, NSButtonBlueVector, NSLayoutTitle, NSPagination, NSInputCopy, NSInputSearch } from './main';
3
+ import { NSButtonBlue, NSButtonBlueVector, NSLayoutTitle, NSPagination } from './main';
4
4
 
5
5
  export function App()
6
6
  {
@@ -10,8 +10,6 @@ export function App()
10
10
  <NSPagination page={1} size={25} />
11
11
  <NSButtonBlue title='Apply' onClick={() => ""} />
12
12
  <NSButtonBlueVector title='New' onClick={() => ""} vector='/assets/images/add-vector.png' />
13
- <NSInputCopy title="Your Token" />
14
- <NSInputSearch />
15
13
 
16
14
  </NSLayoutTitle>
17
15
  </div>
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="14" viewBox="0 0 16 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M9.70912 12.1877C8.93017 13.4695 7.06983 13.4695 6.29088 12.1877L1.18647 3.7887C0.37647 2.45587 1.33594 0.749999 2.8956 0.749999L13.1044 0.75C14.6641 0.75 15.6235 2.45587 14.8135 3.7887L9.70912 12.1877Z" fill="#141B5C"/>
3
+ </svg>
@@ -18,7 +18,7 @@
18
18
  .ns_input_icon {
19
19
  position: absolute;
20
20
  right: 20px;
21
- top: 26%;
21
+ top: 34%;
22
22
  }
23
23
 
24
24
  .ns_input_title {
@@ -4,7 +4,7 @@
4
4
  }
5
5
 
6
6
  .ns_input_select {
7
- height: 48px;
7
+ height: 45px;
8
8
  width: 304px !important;
9
9
  }
10
10
 
@@ -4,7 +4,7 @@ import React from "react";
4
4
  import Styles from "./NSSelectBox.module.css";
5
5
  import { Select, Space } from 'antd';
6
6
  import type { SelectProps } from 'antd';
7
- // import { CaretDownOutlined } from '@ant-design/icons'
7
+ import IconSelectBox from '../assets/images/icon-select-box.svg';
8
8
 
9
9
  export interface NSSelectBoxProps
10
10
  {
@@ -38,8 +38,8 @@ export class NSSelectBox extends React.Component<NSSelectBoxProps, NSSelectBoxSt
38
38
  {
39
39
  return (
40
40
  <div className={`${Styles.ns_input_parent} p-2`}>
41
+ <span className={Styles.ns_input_title}>{this.props.title}</span>
41
42
  <Select
42
- // suffixIcon={<CaretDownOutlined />}
43
43
  mode="multiple"
44
44
  style={{ width: '100%' }}
45
45
  className={Styles.ns_input_select}
@@ -52,6 +52,7 @@ export class NSSelectBox extends React.Component<NSSelectBoxProps, NSSelectBoxSt
52
52
  {option.data.desc}
53
53
  </Space>
54
54
  )}
55
+ suffixIcon={<img src={IconSelectBox} alt="SelectBox Icon" />}
55
56
  />
56
57
  </div>
57
58
  );