namirasoft-site-react 1.3.197 → 1.3.198

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,8 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import './App.css';
3
3
  import 'bootstrap/dist/css/bootstrap.min.css';
4
- import { NSBoxDate, NSBoxDouble, NSBoxDuration, NSBoxEmail, NSBoxIPV4, NSBoxIPV6, NSBoxInteger, NSBoxPassword, NSBoxPhone, NSBoxPrice, NSBoxSearch, NSBoxString, NSBoxText, NSBoxTextArea, NSBoxTime, NSLayout } from './main';
4
+ import { NSBoxEmail, NSBoxPhone, NSBoxString, NSBoxText, NSBoxTextArea, NSLayout, NSTabPage } from './main';
5
+ import { NSBoxLabel } from './components/NSBoxLabel';
5
6
  export function App() {
6
7
  const onClicked = () => {
7
8
  console.log("clicked");
@@ -15,9 +16,17 @@ export function App() {
15
16
  { src: "https://static.namirasoft.com/image/concept/logout/white.svg", alt: "", onClicked },
16
17
  { src: "https://static.namirasoft.com/image/concept/logout/white.svg", alt: "", onClicked },
17
18
  ];
19
+ let content1 = () => _jsxs(_Fragment, { children: [_jsx(NSBoxLabel, { title: "URL", children: _jsx("p", { style: { color: "#000" }, children: "http://URL.com" }) }), _jsx(NSBoxLabel, { title: "URL", children: _jsx("p", { style: { color: "#000" }, children: "http://URL.com" }) }), _jsx(NSBoxLabel, { title: "URL", children: _jsx("p", { style: { color: "#000" }, children: "http://URL.com" }) }), _jsx(NSBoxLabel, { title: "URL", children: _jsx("p", { style: { color: "#000" }, children: "http://URL.com" }) }), _jsx(NSBoxLabel, { title: "URL", children: _jsx("p", { style: { color: "#000" }, children: "http://URL.com" }) }), _jsx(NSBoxLabel, { title: "URL", children: _jsx("p", { style: { color: "#000" }, children: "http://URL.com" }) }), _jsx(NSBoxLabel, { title: "URL", children: _jsx("p", { style: { color: "#000" }, children: "http://URL.com" }) }), _jsx(NSBoxLabel, { title: "URL", children: _jsx("p", { style: { color: "#000" }, children: "http://URL.com" }) }), _jsx(NSBoxLabel, { title: "URL", children: _jsx("p", { style: { color: "#000" }, children: "http://URL.com" }) }), _jsx(NSBoxLabel, { title: "URL", children: _jsx("p", { style: { color: "#000" }, children: "http://URL.com" }) }), _jsx(NSBoxLabel, { title: "URL", children: _jsx("p", { style: { color: "#000" }, children: "http://URL.com" }) })] });
20
+ let content2 = () => _jsx("div", { children: "Content for Tab2" });
21
+ let content3 = () => _jsx("div", { children: "Content for Tab3" });
22
+ const tabs = [
23
+ { title: 'Information', getContent: content1 },
24
+ { title: 'Price History', getContent: content2 },
25
+ { title: 'Price Estimator', getContent: content3 }
26
+ ];
18
27
  return (_jsx(_Fragment, { children: _jsx(NSLayout, { header: {
19
28
  title: "any",
20
29
  icons: icons
21
- }, scope: "Namirasoft Account Console", logo: "exampleLogoUrl", notifications: [], background: "", children: _jsxs(_Fragment, { children: [_jsx(NSBoxEmail, { title: 'test', required: true }), _jsx(NSBoxPhone, { title: 'test', required: true }), _jsx(NSBoxString, { title: 'test', required: true }), _jsx(NSBoxText, { title: 'test', required: true }), _jsx(NSBoxTextArea, { title: 'test', required: true }), _jsx(NSBoxPrice, { title: 'test', required: true }), _jsx(NSBoxDate, { title: 'test', required: true }), _jsx(NSBoxSearch, { title: 'test', required: true }), _jsx(NSBoxPassword, { title: 'test', required: true }), _jsx(NSBoxIPV6, { title: 'test', required: true }), _jsx(NSBoxIPV4, { title: 'test', required: true }), _jsx(NSBoxTime, { title: 'test', required: true }), _jsx(NSBoxInteger, { title: 'test', required: true }), _jsx(NSBoxDuration, { title: 'test', required: true }), _jsx(NSBoxDouble, { title: 'test', required: true })] }) }) }));
30
+ }, scope: "Namirasoft Account Console", logo: "exampleLogoUrl", notifications: [], background: "", children: _jsxs(_Fragment, { children: [_jsx(NSBoxEmail, { title: 'test', required: true }), _jsx(NSBoxPhone, { title: 'test', required: true }), _jsx(NSBoxString, { title: 'test', required: true }), _jsx(NSBoxText, { title: 'test', required: true }), _jsx(NSBoxTextArea, { title: 'test', required: true }), _jsx(NSBoxLabel, { title: "URL", children: _jsx("p", { style: { color: "#000" }, children: "http://URL.com" }) }), _jsx(NSTabPage, { tabs: tabs })] }) }) }));
22
31
  }
23
32
  //# 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,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAE/N,MAAM,UAAU,GAAG;IAGlB,MAAM,SAAS,GAAG,GAAG,EAAE;QAEtB,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;IACvB,CAAC,CAAA;IAED,IAAI,KAAK,GAAG;QACX,EAAE,GAAG,EAAE,8DAA8D,EAAE,GAAG,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE;QACrG,EAAE,GAAG,EAAE,8DAA8D,EAAE,GAAG,EAAE,EAAE,EAAE,SAAS,EAAE;QAC3F,EAAE,GAAG,EAAE,8DAA8D,EAAE,GAAG,EAAE,EAAE,EAAE,SAAS,EAAE;QAC3F,EAAE,GAAG,EAAE,8DAA8D,EAAE,GAAG,EAAE,EAAE,EAAE,SAAS,EAAE;QAC3F,EAAE,GAAG,EAAE,8DAA8D,EAAE,GAAG,EAAE,EAAE,EAAE,SAAS,EAAE;QAC3F,EAAE,GAAG,EAAE,8DAA8D,EAAE,GAAG,EAAE,EAAE,EAAE,SAAS,EAAE;QAC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acity: 0;
54
+ visibility: hidden;
53
55
  color: #000;
54
56
  border: none;
55
57
  cursor: pointer;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { ReactNode } from "react";
3
+ export interface INSBoxLabelProps {
4
+ title: string;
5
+ children: ReactNode;
6
+ }
7
+ export interface INSBoxLabelState {
8
+ }
9
+ export declare class NSBoxLabel extends React.Component<INSBoxLabelProps, INSBoxLabelState> {
10
+ render(): import("react/jsx-runtime").JSX.Element;
11
+ }
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import Styles from './NSBoxLabel.module.css';
4
+ import React from "react";
5
+ export class NSBoxLabel extends React.Component {
6
+ render() {
7
+ return (_jsxs("div", { className: Styles.ns_tab_item, children: [_jsx("span", { className: `${Styles.ns_box_label_title} ns_font_16_bold`, children: this.props.title }), _jsx("div", { children: this.props.children })] }));
8
+ }
9
+ }
10
+ //# sourceMappingURL=NSBoxLabel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NSBoxLabel.js","sourceRoot":"","sources":["../../src/components/NSBoxLabel.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,MAAM,MAAM,yBAAyB,CAAA;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,MAAM,OAAO,UAAW,SAAQ,KAAK,CAAC,SAA6C;IAEtE,MAAM;QAEX,OAAO,CACH,eAAK,SAAS,EAAE,MAAM,CAAC,WAAW,aAC9B,eAAM,SAAS,EAAE,GAAG,MAAM,CAAC,kBAAkB,kBAAkB,YAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAQ,EAC1F,wBACK,IAAI,CAAC,KAAK,CAAC,QAAQ,GAClB,IACJ,CACT,CAAC;IACN,CAAC;CACJ"}
@@ -0,0 +1,13 @@
1
+ .ns_box_label_title {
2
+ color: hsla(234, 64%, 22%, 1);
3
+ margin-bottom: 8px;
4
+ }
5
+
6
+
7
+ .ns_tab_item {
8
+ padding: 8px;
9
+ border-right: none !important;
10
+ }
11
+ .ns_tab_item:not(:last-child) {
12
+ border-right: 1px solid #ccc;
13
+ }
@@ -52,7 +52,7 @@ export class NSBoxTextArea extends React.Component {
52
52
  }
53
53
  render() {
54
54
  var _a;
55
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: `${Styles.ns_text_area_parent} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")} ${this.state.isFullScreen ? Styles.ns_full_screen : ""}`, style: this.props.style, children: [_jsxs("div", { className: "d-flex justify-content-between align-items-center", children: [_jsxs("span", { className: Styles.ns_input_title, children: [this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title] }), _jsxs("div", { className: "d-flex gap-1", children: [_jsx("button", { className: Styles.ns_btn_box, onClick: () => CopyToClipboard.copyToClipboard(this.getValue()), children: _jsx("img", { src: IconCopy, alt: "Copy", width: 14, height: 14 }) }), _jsx("button", { className: Styles.ns_btn_box, onClick: this.toggleFullScreen, children: _jsx("img", { src: IconFullScreen, alt: "FullScreen", width: 14, height: 14 }) })] })] }), _jsx("div", { className: Styles.ns_text_area_container, children: _jsx("textarea", { style: {
55
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: `${Styles.ns_text_area_parent} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")} ${this.state.isFullScreen ? Styles.ns_full_screen : ""}`, style: this.props.style, onClick: this.state.isFullScreen ? () => { } : () => { }, children: [_jsxs("div", { className: "d-flex justify-content-between align-items-center", children: [_jsxs("span", { className: Styles.ns_input_title, children: [this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title] }), _jsxs("div", { className: "d-flex gap-1", children: [_jsx("button", { className: Styles.ns_btn_box, onClick: () => CopyToClipboard.copyToClipboard(this.getValue()), children: _jsx("img", { src: IconCopy, alt: "Copy", width: 14, height: 14 }) }), _jsx("button", { className: Styles.ns_btn_box, onClick: this.toggleFullScreen, children: _jsx("img", { src: IconFullScreen, alt: "FullScreen", width: 14, height: 14 }) })] })] }), _jsx("div", { className: Styles.ns_text_area_container, children: _jsx("textarea", { style: {
56
56
  height: !this.props.rows ? "96px" : "",
57
57
  background: `url(${IconInputString}) white no-repeat scroll top right 16px `,
58
58
  backgroundPositionY: "12px"
@@ -1 +1 @@
1
- {"version":3,"file":"NSBoxTextArea.js","sourceRoot":"","sources":["../../src/components/NSBoxTextArea.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAIhD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,eAAe,MAAM,wCAAwC,CAAC;AACrE,OAAO,cAAc,MAAM,sCAAsC,CAAC;AAClE,OAAO,QAAQ,MAAM,gCAAgC,CAAC;AACtD,OAAO,eAAe,MAAM,oBAAoB,CAAC;AAmBjD,MAAM,OAAO,aAAc,SAAQ,KAAK,CAAC,SAAmD;IAE3F,YAAY,KAA0B;;QAErC,KAAK,CAAC,KAAK,CAAC,CAAC;QA8BN,cAAS,GAAG,CAAO,CAAyC,EAAiB,EAAE;YAEtF,MAAM,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACpC,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS;gBACvB,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;QACzB,CAAC,CAAA,CAAA;QAlCA,IAAI,CAAC,KAAK,GAAG,EAAE,KAAK,EAAE,MAAA,KAAK,CAAC,YAAY,mCAAI,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;QACtE,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,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0C;oCACjE,mBAAmB,EAAE,MAAM;iCAC3B,EACD,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EACrB,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EACrB,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,EACjB,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,SAAS,EAAE,MAAM,CAAC,YAAY,EAC9B,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,EACnC,QAAQ,EAAE,IAAI,CAAC,SAAS,GACvB,GAGG,IACD,EACN,KAAC,kBAAkB,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAI,IAC7C,CACH,CAAC;IACH,CAAC;CACD"}
@@ -14,6 +14,7 @@
14
14
  align-items: center;
15
15
  position: relative;
16
16
  width: 100%;
17
+ height: 100%;
17
18
  }
18
19
 
19
20
  .ns_text_area_icon_container {
@@ -38,6 +39,8 @@
38
39
  }
39
40
 
40
41
  .ns_btn_box {
42
+ opacity: 0;
43
+ visibility: hidden;
41
44
  color: #000;
42
45
  border: none;
43
46
  cursor: pointer;
@@ -45,7 +48,7 @@
45
48
  background-color: transparent;
46
49
  }
47
50
 
48
- .ns_input_parent:hover .ns_btn_box {
51
+ .ns_text_area_parent:hover .ns_btn_box {
49
52
  opacity: 1;
50
53
  visibility: visible;
51
54
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
@@ -67,7 +70,8 @@
67
70
  max-width: 100% !important;
68
71
  }
69
72
 
70
- .ns_full_screen input {
73
+ .ns_full_screen textarea {
71
74
  width: 100% !important;
72
75
  max-width: 100%;
76
+ height: 100% !important;
73
77
  }
@@ -42,4 +42,8 @@
42
42
  padding: 16px;
43
43
  border-radius: 0 8px 8px 8px;
44
44
  background-color: #fff;
45
+ display: grid;
46
+ grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
47
+ gap: 0;
48
+ border-right: 1px solid #ccc;
45
49
  }
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.3.197",
11
+ "version": "1.3.198",
12
12
  "author": "Amir Abolhasani, Alireza Esmaeeli, Sepideh Mazloumi, Hooman Shashaeh",
13
13
  "license": "MIT",
14
14
  "main": "./dist/main.js",
package/src/App.css CHANGED
@@ -10,4 +10,8 @@
10
10
  border-radius: 5px 0 0 5px;
11
11
  border: 1px solid rgba(47, 0, 236, 0.6) !important;
12
12
  }
13
- /*End Input Tell*/
13
+ /*End Input Tell*/
14
+ .ns_font_16_bold{
15
+ font-size: 16px;
16
+ font-weight: 600;
17
+ }
package/src/App.tsx CHANGED
@@ -1,6 +1,7 @@
1
1
  import './App.css';
2
2
  import 'bootstrap/dist/css/bootstrap.min.css';
3
- import { NSBoxDate, NSBoxDouble, NSBoxDuration, NSBoxEmail, NSBoxIPV4, NSBoxIPV6, NSBoxInteger, NSBoxPassword, NSBoxPhone, NSBoxPrice, NSBoxSearch, NSBoxString, NSBoxText, NSBoxTextArea, NSBoxTime, NSLayout } from './main';
3
+ import { NSBoxEmail, NSBoxPhone, NSBoxString, NSBoxText, NSBoxTextArea, NSLayout, NSTabPage } from './main';
4
+ import { NSBoxLabel } from './components/NSBoxLabel';
4
5
 
5
6
  export function App()
6
7
  {
@@ -19,7 +20,26 @@ export function App()
19
20
  { src: "https://static.namirasoft.com/image/concept/logout/white.svg", alt: "", onClicked },
20
21
  { src: "https://static.namirasoft.com/image/concept/logout/white.svg", alt: "", onClicked },
21
22
  ];
22
-
23
+ let content1 = () => <>
24
+ <NSBoxLabel title="URL"><p style={{color:"#000"}}>http://URL.com</p></NSBoxLabel>
25
+ <NSBoxLabel title="URL"><p style={{ color: "#000" }}>http://URL.com</p></NSBoxLabel>
26
+ <NSBoxLabel title="URL"><p style={{ color: "#000" }}>http://URL.com</p></NSBoxLabel>
27
+ <NSBoxLabel title="URL"><p style={{ color: "#000" }}>http://URL.com</p></NSBoxLabel>
28
+ <NSBoxLabel title="URL"><p style={{ color: "#000" }}>http://URL.com</p></NSBoxLabel>
29
+ <NSBoxLabel title="URL"><p style={{ color: "#000" }}>http://URL.com</p></NSBoxLabel>
30
+ <NSBoxLabel title="URL"><p style={{ color: "#000" }}>http://URL.com</p></NSBoxLabel>
31
+ <NSBoxLabel title="URL"><p style={{ color: "#000" }}>http://URL.com</p></NSBoxLabel>
32
+ <NSBoxLabel title="URL"><p style={{ color: "#000" }}>http://URL.com</p></NSBoxLabel>
33
+ <NSBoxLabel title="URL"><p style={{ color: "#000" }}>http://URL.com</p></NSBoxLabel>
34
+ <NSBoxLabel title="URL"><p style={{ color: "#000" }}>http://URL.com</p></NSBoxLabel>
35
+ </>;
36
+ let content2 = () => <div>Content for Tab2</div>;
37
+ let content3 = () => <div>Content for Tab3</div>;
38
+ const tabs = [
39
+ { title: 'Information', getContent: content1 },
40
+ { title: 'Price History', getContent: content2 },
41
+ { title: 'Price Estimator', getContent: content3 }
42
+ ];
23
43
  return (
24
44
  <>
25
45
  <NSLayout
@@ -38,17 +58,8 @@ export function App()
38
58
  <NSBoxString title='test' required={true} />
39
59
  <NSBoxText title='test' required={true} />
40
60
  <NSBoxTextArea title='test' required={true} />
41
- <NSBoxPrice title='test' required={true} />
42
- <NSBoxDate title='test' required={true} />
43
- <NSBoxSearch title='test' required={true} />
44
- <NSBoxPassword title='test' required={true} />
45
- <NSBoxIPV6 title='test' required={true} />
46
- <NSBoxIPV4 title='test' required={true} />
47
- <NSBoxTime title='test' required={true} />
48
- <NSBoxInteger title='test' required={true} />
49
- <NSBoxDuration title='test' required={true} />
50
- <NSBoxDouble title='test' required={true} />
51
-
61
+ <NSBoxLabel title="URL"><p style={{ color: "#000" }}>http://URL.com</p></NSBoxLabel>
62
+ <NSTabPage tabs={tabs} />
52
63
  </>
53
64
  </NSLayout>
54
65
  </>
@@ -50,6 +50,8 @@
50
50
  /*End Input phone*/
51
51
 
52
52
  .ns_btn_box {
53
+ opacity: 0;
54
+ visibility: hidden;
53
55
  color: #000;
54
56
  border: none;
55
57
  cursor: pointer;
@@ -0,0 +1,13 @@
1
+ .ns_box_label_title {
2
+ color: hsla(234, 64%, 22%, 1);
3
+ margin-bottom: 8px;
4
+ }
5
+
6
+
7
+ .ns_tab_item {
8
+ padding: 8px;
9
+ border-right: none !important;
10
+ }
11
+ .ns_tab_item:not(:last-child) {
12
+ border-right: 1px solid #ccc;
13
+ }
@@ -0,0 +1,29 @@
1
+ "use client";
2
+
3
+ import Styles from './NSBoxLabel.module.css'
4
+ import React from "react";
5
+ import { ReactNode } from "react";
6
+
7
+ export interface INSBoxLabelProps
8
+ {
9
+ title: string;
10
+ children: ReactNode;
11
+ }
12
+
13
+ export interface INSBoxLabelState
14
+ { }
15
+
16
+ export class NSBoxLabel extends React.Component<INSBoxLabelProps, INSBoxLabelState>
17
+ {
18
+ override render()
19
+ {
20
+ return (
21
+ <div className={Styles.ns_tab_item}>
22
+ <span className={`${Styles.ns_box_label_title} ns_font_16_bold`}>{this.props.title}</span>
23
+ <div>
24
+ {this.props.children}
25
+ </div>
26
+ </div>
27
+ );
28
+ }
29
+ }
@@ -14,6 +14,7 @@
14
14
  align-items: center;
15
15
  position: relative;
16
16
  width: 100%;
17
+ height: 100%;
17
18
  }
18
19
 
19
20
  .ns_text_area_icon_container {
@@ -38,6 +39,8 @@
38
39
  }
39
40
 
40
41
  .ns_btn_box {
42
+ opacity: 0;
43
+ visibility: hidden;
41
44
  color: #000;
42
45
  border: none;
43
46
  cursor: pointer;
@@ -45,7 +48,7 @@
45
48
  background-color: transparent;
46
49
  }
47
50
 
48
- .ns_input_parent:hover .ns_btn_box {
51
+ .ns_text_area_parent:hover .ns_btn_box {
49
52
  opacity: 1;
50
53
  visibility: visible;
51
54
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
@@ -67,7 +70,8 @@
67
70
  max-width: 100% !important;
68
71
  }
69
72
 
70
- .ns_full_screen input {
73
+ .ns_full_screen textarea {
71
74
  width: 100% !important;
72
75
  max-width: 100%;
76
+ height: 100% !important;
73
77
  }
@@ -77,7 +77,7 @@ export class NSBoxTextArea extends React.Component<INSBoxTextAreaProps, INSBoxTe
77
77
  {
78
78
  return (
79
79
  <>
80
- <div className={`${Styles.ns_text_area_parent} ${this.props.classList?.join(" ")} ${this.state.isFullScreen ? Styles.ns_full_screen : ""}`} style={this.props.style}>
80
+ <div className={`${Styles.ns_text_area_parent} ${this.props.classList?.join(" ")} ${this.state.isFullScreen ? Styles.ns_full_screen : ""}`} style={this.props.style} onClick={this.state.isFullScreen ? ()=>{} : ()=>{}}>
81
81
  <div className="d-flex justify-content-between align-items-center">
82
82
  <span className={Styles.ns_input_title}>
83
83
  {this.props.required && <span style={{ color: "red" }}>*</span>} {this.props.title}
@@ -42,4 +42,8 @@
42
42
  padding: 16px;
43
43
  border-radius: 0 8px 8px 8px;
44
44
  background-color: #fff;
45
+ display: grid;
46
+ grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
47
+ gap: 0;
48
+ border-right: 1px solid #ccc;
45
49
  }