namirasoft-site-react 1.3.197 → 1.3.199
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 +11 -2
- package/dist/App.js.map +1 -1
- package/dist/components/NSBarAction.js +2 -2
- package/dist/components/NSBarAction.js.map +1 -1
- package/dist/components/NSBox.module.css +2 -0
- package/dist/components/NSBoxLabel.d.ts +11 -0
- package/dist/components/NSBoxLabel.js +10 -0
- package/dist/components/NSBoxLabel.js.map +1 -0
- package/dist/components/NSBoxLabel.module.css +13 -0
- package/dist/components/NSBoxTextArea.js +1 -1
- package/dist/components/NSBoxTextArea.js.map +1 -1
- package/dist/components/NSBoxTextArea.module.css +6 -2
- package/dist/components/NSHeader.module.css +2 -2
- package/dist/components/NSTabPage.module.css +4 -0
- package/package.json +1 -1
- package/src/App.css +5 -1
- package/src/App.tsx +24 -13
- package/src/components/NSBarAction.tsx +27 -25
- package/src/components/NSBox.module.css +2 -0
- package/src/components/NSBoxLabel.module.css +13 -0
- package/src/components/NSBoxLabel.tsx +29 -0
- package/src/components/NSBoxTextArea.module.css +6 -2
- package/src/components/NSBoxTextArea.tsx +1 -1
- package/src/components/NSHeader.module.css +2 -2
- package/src/components/NSTabPage.module.css +4 -0
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 {
|
|
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(
|
|
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,
|
|
1
|
+
{"version":3,"file":"App.js","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":";AAAA,OAAO,WAAW,CAAC;AACnB,OAAO,sCAAsC,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC5G,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,MAAM,UAAU,GAAG;IAGlB,MAAM,SAAS,GAAG,GAAG,EAAE;QAEtB,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;IACvB,CAAC,CAAA;IAED,IAAI,KA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I,GAAI,EAC3C,KAAC,UAAU,IAAC,KAAK,EAAC,MAAM,EAAC,QAAQ,EAAE,IAAI,GAAI,EAC3C,KAAC,WAAW,IAAC,KAAK,EAAC,MAAM,EAAC,QAAQ,EAAE,IAAI,GAAI,EAC5C,KAAC,SAAS,IAAC,KAAK,EAAC,MAAM,EAAC,QAAQ,EAAE,IAAI,GAAI,EAC1C,KAAC,aAAa,IAAC,KAAK,EAAC,MAAM,EAAC,QAAQ,EAAE,IAAI,GAAI,EAC9C,KAAC,UAAU,IAAC,KAAK,EAAC,KAAK,YAAC,YAAG,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,+BAAoB,GAAa,EACpF,KAAC,SAAS,IAAC,IAAI,EAAE,IAAI,GAAI,IACvB,GACO,GACT,CACH,CAAC;AACH,CAAC"}
|
|
@@ -11,8 +11,8 @@ export function NSBarAction(props) {
|
|
|
11
11
|
show: false
|
|
12
12
|
});
|
|
13
13
|
const groups = Object.keys(props.menus);
|
|
14
|
-
return (_jsxs(_Fragment, { children: [
|
|
15
|
-
|
|
14
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { className: Styles.ns_action_bar_holder, children: _jsxs("div", { className: 'container', children: [_jsxs("div", { className: `d-none d-lg-flex ${Styles.ns_desktop_action_bar_title}`, children: [_jsx("h1", { className: Styles.title, children: props.title }), props.description !== "" &&
|
|
15
|
+
_jsxs("button", { className: Styles.ns_info_container, onClick: () => setState({ show: true }), children: [_jsx("img", { src: 'https://static.namirasoft.com/image/concept/info/white-blue.svg', alt: 'info-icon', width: 24, height: 24 }), _jsx("span", { children: " Info " })] }), _jsx(NSModal, { show: state.show, description: props.description, title: props.title, onClose: () => setState({ show: false }) })] }), _jsx("div", { style: { padding: groups.length !== 0 ? "16px 0" : "0" }, className: Styles.ns_actions_hodler, children: groups.map((group) => _jsx(NSActionMenu, { name: group, items: props.menus[group] })) })] }) }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsxs("div", { className: `container d-block d-lg-none ${Styles.ns_mobile_action_bar_title}`, children: [_jsx("h1", { className: Styles.title, children: props.title }), props.description && lines &&
|
|
16
16
|
_jsxs(_Fragment, { children: [_jsx("p", { className: Styles.description, children: lines.map((line, index) => {
|
|
17
17
|
return (_jsxs(React.Fragment, { children: [line.trim(), index !== lines.length - 1 && _jsx("br", {})] }, index));
|
|
18
18
|
}) }), _jsx(NSSpace, { size: NSSpaceSizeType.MINI })] })] })] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSBarAction.js","sourceRoot":"","sources":["../../src/components/NSBarAction.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAsB,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAcpC,MAAM,UAAU,WAAW,CAAC,KAAwB;;IAEnD,IAAI,KAAK,GAAG,CAAC,MAAA,KAAK,CAAC,WAAW,mCAAI,EAAE,CAAC,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC;IAEzE,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAmB;QACpD,IAAI,EAAE,KAAK;KACX,CAAC,CAAA;IAEF,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAExC,OAAO,CACN,8BACC,
|
|
1
|
+
{"version":3,"file":"NSBarAction.js","sourceRoot":"","sources":["../../src/components/NSBarAction.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,MAAM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E,OAAO,EAAE,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,EACxD,SAAS,EAAE,MAAM,CAAC,iBAAiB,YAGlC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CACpB,KAAC,YAAY,IAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,GAAI,CACxD,GAEG,IACD,GACD,EACN,KAAC,OAAO,IAAC,IAAI,EAAE,eAAe,CAAC,KAAK,GAAI,EAExC,eAAK,SAAS,EAAE,+BAA+B,MAAM,CAAC,0BAA0B,EAAE,aACjF,aAAI,SAAS,EAAE,MAAM,CAAC,KAAK,YAAG,KAAK,CAAC,KAAK,GAAM,EAE9C,KAAK,CAAC,WAAW,IAAI,KAAK;wBAC1B,8BACC,YAAG,SAAS,EAAE,MAAM,CAAC,WAAW,YAE9B,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;wCAEzB,OAAO,CACN,MAAC,KAAK,CAAC,QAAQ,eACb,IAAI,CAAC,IAAI,EAAE,EACX,KAAK,KAAK,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,cAAM,KAFjB,KAAK,CAGT,CACjB,CAAA;oCACF,CAAC,CAAC,GAEA,EACJ,KAAC,OAAO,IAAC,IAAI,EAAE,eAAe,CAAC,IAAI,GAAI,IACrC,IAEC,IACJ,CACH,CAAC;AACH,CAAC"}
|
|
@@ -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"}
|
|
@@ -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,YAA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,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
|
-
.
|
|
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
|
|
73
|
+
.ns_full_screen textarea {
|
|
71
74
|
width: 100% !important;
|
|
72
75
|
max-width: 100%;
|
|
76
|
+
height: 100% !important;
|
|
73
77
|
}
|
package/package.json
CHANGED
package/src/App.css
CHANGED
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 {
|
|
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
|
-
<
|
|
42
|
-
<
|
|
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
|
</>
|
|
@@ -30,31 +30,33 @@ export function NSBarAction(props: INSBarActionProps)
|
|
|
30
30
|
<>
|
|
31
31
|
<div className={Styles.ns_action_bar_holder}>
|
|
32
32
|
{/* Desktop */}
|
|
33
|
-
<div className=
|
|
34
|
-
<
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
<
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
33
|
+
<div className='container'>
|
|
34
|
+
<div className={`d-none d-lg-flex ${Styles.ns_desktop_action_bar_title}`}>
|
|
35
|
+
<h1 className={Styles.title}>{props.title}</h1>
|
|
36
|
+
{
|
|
37
|
+
props.description !== "" &&
|
|
38
|
+
<button className={Styles.ns_info_container} onClick={() => setState({ show: true })}>
|
|
39
|
+
<img src='https://static.namirasoft.com/image/concept/info/white-blue.svg' alt='info-icon' width={24} height={24} />
|
|
40
|
+
<span> Info </span>
|
|
41
|
+
</button>
|
|
42
|
+
}
|
|
43
|
+
<NSModal
|
|
44
|
+
show={state.show}
|
|
45
|
+
description={props.description}
|
|
46
|
+
title={props.title}
|
|
47
|
+
onClose={() => setState({ show: false })}
|
|
48
|
+
/>
|
|
49
|
+
</div>
|
|
50
|
+
<div
|
|
51
|
+
style={{ padding: groups.length !== 0 ? "16px 0" : "0" }}
|
|
52
|
+
className={Styles.ns_actions_hodler}
|
|
53
|
+
>
|
|
54
|
+
{
|
|
55
|
+
groups.map((group) =>
|
|
56
|
+
<NSActionMenu name={group} items={props.menus[group]} />
|
|
57
|
+
)
|
|
58
|
+
}
|
|
59
|
+
</div>
|
|
58
60
|
</div>
|
|
59
61
|
</div>
|
|
60
62
|
<NSSpace size={NSSpaceSizeType.SMALL} />
|
|
@@ -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
|
-
.
|
|
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
|
|
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}
|