namirasoft-site-react 1.3.19 → 1.3.21
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 +2 -2
- package/dist/App.js.map +1 -1
- package/dist/assets/images/icon-input-copy.svg +3 -0
- package/dist/components/NSInputCopy.d.ts +17 -0
- package/dist/components/NSInputCopy.js +38 -0
- package/dist/components/NSInputCopy.js.map +1 -0
- package/dist/components/NSInputCopy.module.css +33 -0
- package/dist/components/NSLoading.d.ts +10 -0
- package/dist/components/NSLoading.js +10 -0
- package/dist/components/NSLoading.js.map +1 -0
- package/dist/components/NSLoading.module.css +27 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +1 -0
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
- package/src/App.tsx +2 -1
- package/src/assets/images/icon-input-copy.svg +3 -0
- package/src/components/NSInputCopy.module.css +33 -0
- package/src/components/NSInputCopy.tsx +77 -0
- package/src/components/NSLoading.module.css +27 -0
- package/src/components/NSLoading.tsx +25 -0
- package/src/main.ts +1 -0
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 } from './main';
|
|
4
|
+
import { NSButtonBlue, NSButtonBlueVector, NSLayoutTitle, NSPagination, NSInputCopy } 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' })] }) }));
|
|
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" })] }) }));
|
|
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,MAAM,QAAQ,CAAC;
|
|
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,EAAC,WAAW,EAAE,MAAM,QAAQ,CAAC;AAEnG,MAAM,UAAU,GAAG;IAEf,OAAO,CACH,cAAK,SAAS,EAAC,KAAK,YAChB,MAAC,aAAa,IAAC,KAAK,EAAC,4BAA4B,EAAC,IAAI,EAAC,EAAE,EAAC,KAAK,EAAC,YAAY,EAAC,WAAW,EAAC,WAAW,aAChG,KAAC,YAAY,IAAC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,GAAI,EACnC,KAAC,YAAY,IAAC,KAAK,EAAC,OAAO,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,EAAE,GAAI,EACjD,KAAC,kBAAkB,IAAC,KAAK,EAAC,KAAK,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,MAAM,EAAC,+BAA+B,GAAG,EAC5F,KAAC,WAAW,IAAC,KAAK,EAAC,YAAY,GAAG,IACtB,GACd,CACT,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M13.8297 4.99144L9.54839 0.832127C9.4396 0.726307 9.29201 0.666788 9.13806 0.666656H7.22581C6.66115 0.666656 6.11962 0.884574 5.72035 1.27247C5.32108 1.66037 5.09677 2.18647 5.09677 2.73503V3.6752H4.12903C3.56438 3.6752 3.02285 3.89312 2.62358 4.28102C2.22431 4.66891 2 5.19501 2 5.74358V13.2649C2 13.8135 2.22431 14.3396 2.62358 14.7275C3.02285 15.1154 3.56438 15.3333 4.12903 15.3333H9.54839C10.113 15.3333 10.6546 15.1154 11.0538 14.7275C11.4531 14.3396 11.6774 13.8135 11.6774 13.2649V12.3248H11.871C12.4356 12.3248 12.9771 12.1069 13.3764 11.719C13.7757 11.3311 14 10.805 14 10.2564V5.36751C13.9939 5.22581 13.9331 5.09154 13.8297 4.99144ZM9.74194 2.59213L12.0181 4.80341H9.74194V2.59213ZM10.5161 13.2649C10.5161 13.5143 10.4142 13.7534 10.2327 13.9297C10.0512 14.1061 9.80505 14.2051 9.54839 14.2051H4.12903C3.87237 14.2051 3.62622 14.1061 3.44474 13.9297C3.26325 13.7534 3.16129 13.5143 3.16129 13.2649V5.74358C3.16129 5.49423 3.26325 5.25509 3.44474 5.07878C3.62622 4.90246 3.87237 4.80341 4.12903 4.80341H5.09677V10.2564C5.09677 10.805 5.32108 11.3311 5.72035 11.719C6.11962 12.1069 6.66115 12.3248 7.22581 12.3248H10.5161V13.2649ZM11.871 11.1966H7.22581C6.96915 11.1966 6.723 11.0975 6.54151 10.9212C6.36002 10.7449 6.25806 10.5057 6.25806 10.2564V2.73503C6.25806 2.48568 6.36002 2.24655 6.54151 2.07023C6.723 1.89391 6.96915 1.79486 7.22581 1.79486H8.58065V5.36751C8.58265 5.51651 8.64447 5.65887 8.75293 5.76424C8.86139 5.86961 9.00792 5.92967 9.16129 5.93161H12.8387V10.2564C12.8387 10.5057 12.7368 10.7449 12.5553 10.9212C12.3738 11.0975 12.1276 11.1966 11.871 11.1966Z" fill="#141B5C"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface NSNSInputCopyProps {
|
|
3
|
+
title: string;
|
|
4
|
+
defaultValue?: string;
|
|
5
|
+
onChanged?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
6
|
+
}
|
|
7
|
+
export interface NSNSInputCopyState {
|
|
8
|
+
value: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class NSInputCopy extends React.Component<NSNSInputCopyProps, NSNSInputCopyState> {
|
|
11
|
+
constructor(props: NSNSInputCopyProps);
|
|
12
|
+
getValue(): string;
|
|
13
|
+
setValue(value: string): void;
|
|
14
|
+
private onChanged;
|
|
15
|
+
copyToClipboard(): void;
|
|
16
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import Styles from "./NSInputCopy.module.css";
|
|
5
|
+
import IconInputString from '../assets/images/icon-input-copy.svg';
|
|
6
|
+
export class NSInputCopy extends React.Component {
|
|
7
|
+
constructor(props) {
|
|
8
|
+
var _a;
|
|
9
|
+
super(props);
|
|
10
|
+
this.state = {
|
|
11
|
+
value: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : "",
|
|
12
|
+
};
|
|
13
|
+
this.getValue = this.getValue.bind(this);
|
|
14
|
+
this.setValue = this.setValue.bind(this);
|
|
15
|
+
this.onChanged = this.onChanged.bind(this);
|
|
16
|
+
this.copyToClipboard = this.copyToClipboard.bind(this);
|
|
17
|
+
}
|
|
18
|
+
getValue() {
|
|
19
|
+
return this.state.value;
|
|
20
|
+
}
|
|
21
|
+
setValue(value) {
|
|
22
|
+
this.setState({ value });
|
|
23
|
+
}
|
|
24
|
+
onChanged(e) {
|
|
25
|
+
this.setValue(e.target.value);
|
|
26
|
+
if (this.props.onChanged)
|
|
27
|
+
this.props.onChanged(e);
|
|
28
|
+
}
|
|
29
|
+
copyToClipboard() {
|
|
30
|
+
if (navigator.clipboard && navigator.clipboard.writeText) {
|
|
31
|
+
navigator.clipboard.writeText(this.getValue());
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
render() {
|
|
35
|
+
return (_jsxs("div", { className: `${Styles.ns_input_parent} p-2`, children: [_jsx("span", { className: Styles.ns_input_title, children: this.props.title }), _jsx("img", { className: Styles.ns_input_icon, src: IconInputString, alt: "icon", width: 16, height: 16, onClick: this.copyToClipboard }), _jsx("input", { value: this.state.value, onChange: this.onChanged, type: "text", className: Styles.ns_input, placeholder: "12AB34cf" })] }));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=NSInputCopy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NSInputCopy.js","sourceRoot":"","sources":["../../src/components/NSInputCopy.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,eAAe,MAAM,sCAAsC,CAAC;AAenE,MAAM,OAAO,WAAY,SAAQ,KAAK,CAAC,SAAiD;IAEpF,YAAY,KAAyB;;QAEjC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG;YACT,KAAK,EAAE,MAAA,KAAK,CAAC,YAAY,mCAAI,EAAE;SAClC,CAAC;QACF,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;Q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C,KAAK,EACvB,QAAQ,EAAE,IAAI,CAAC,SAAS,EACxB,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,MAAM,CAAC,QAAQ,EAC1B,WAAW,EAAC,UAAU,GACxB,IACA,CACT,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
.ns_input_parent {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
width: 326px;
|
|
5
|
+
color: #fff;
|
|
6
|
+
position: relative;
|
|
7
|
+
max-width: 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.ns_input {
|
|
11
|
+
border-radius: 8px;
|
|
12
|
+
padding: 10px 12px;
|
|
13
|
+
font-size: 16px;
|
|
14
|
+
font-weight: 400;
|
|
15
|
+
background-color: #0000;
|
|
16
|
+
text-align: center;
|
|
17
|
+
border: 1px solid rgba(20, 27, 92, 1);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ns_input_icon {
|
|
21
|
+
position: absolute;
|
|
22
|
+
right: 20px;
|
|
23
|
+
top: 67%;
|
|
24
|
+
z-index: 1;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.ns_input_title {
|
|
28
|
+
font-size: 24px;
|
|
29
|
+
font-weight: 700;
|
|
30
|
+
color:rgba(20, 27, 92, 1);
|
|
31
|
+
text-align: center;
|
|
32
|
+
margin-bottom: 16px;
|
|
33
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { Background } from '../types/Background';
|
|
3
|
+
interface NSLoadingProps {
|
|
4
|
+
background?: Background;
|
|
5
|
+
padding_bottom?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class NSLoading extends Component<NSLoadingProps> {
|
|
8
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Component } from 'react';
|
|
3
|
+
import Styles from './NSLoading.module.css';
|
|
4
|
+
import { NSSection } from './NSSection';
|
|
5
|
+
export class NSLoading extends Component {
|
|
6
|
+
render() {
|
|
7
|
+
return (_jsx(NSSection, { background: this.props.background, padding_bottom: this.props.padding_bottom, children: _jsx("div", { className: Styles.ns_loading_parent, children: _jsx("div", { className: Styles.ns_loader }) }) }));
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=NSLoading.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NSLoading.js","sourceRoot":"","sources":["../../src/components/NSLoading.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AASxC,MAAM,OAAO,SAAU,SAAQ,SAAyB;IAE9C,MAAM;QAEd,OAAO,CACN,KAAC,SAAS,IAAC,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,YACtF,cAAK,SAAS,EAAE,MAAM,CAAC,iBAAiB,YACvC,cAAK,SAAS,EAAE,MAAM,CAAC,SAAS,GAAQ,GACnC,GACK,CACZ,CAAC;IACH,CAAC;CACD"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.ns_loading_parent {
|
|
2
|
+
width: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
align-items: center;
|
|
6
|
+
margin: 0 auto;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.ns_loader {
|
|
10
|
+
width: 50px;
|
|
11
|
+
height: 50px;
|
|
12
|
+
border-radius: 50%;
|
|
13
|
+
padding: 1px;
|
|
14
|
+
background: conic-gradient(#0000 10%, #001664) content-box;
|
|
15
|
+
-webkit-mask:
|
|
16
|
+
repeating-conic-gradient(#0000 0deg, #000 1deg 20deg, #0000 21deg 36deg),
|
|
17
|
+
radial-gradient(farthest-side, #0000 calc(100% - 9px), #000 calc(100% - 8px));
|
|
18
|
+
-webkit-mask-composite: destination-in;
|
|
19
|
+
mask-composite: intersect;
|
|
20
|
+
animation: s4 1s infinite steps(10);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@keyframes s4 {
|
|
24
|
+
to {
|
|
25
|
+
transform: rotate(1turn)
|
|
26
|
+
}
|
|
27
|
+
}
|
package/dist/main.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from "./components/NSEntityCardBackground";
|
|
|
7
7
|
export * from "./components/NSEntityBar";
|
|
8
8
|
export * from "./components/NSFooter";
|
|
9
9
|
export * from "./components/NSHeader";
|
|
10
|
+
export * from "./components/NSInputCopy";
|
|
10
11
|
export * from "./components/NSInputDate";
|
|
11
12
|
export * from "./components/NSInputDuration";
|
|
12
13
|
export * from "./components/NSInputEmail";
|
package/dist/main.js
CHANGED
|
@@ -7,6 +7,7 @@ export * from "./components/NSEntityCardBackground";
|
|
|
7
7
|
export * from "./components/NSEntityBar";
|
|
8
8
|
export * from "./components/NSFooter";
|
|
9
9
|
export * from "./components/NSHeader";
|
|
10
|
+
export * from "./components/NSInputCopy";
|
|
10
11
|
export * from "./components/NSInputDate";
|
|
11
12
|
export * from "./components/NSInputDuration";
|
|
12
13
|
export * from "./components/NSInputEmail";
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qCAAqC,CAAC;AACpD,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB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CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC"}
|
package/package.json
CHANGED
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 } from './main';
|
|
3
|
+
import { NSButtonBlue, NSButtonBlueVector, NSLayoutTitle, NSPagination,NSInputCopy } from './main';
|
|
4
4
|
|
|
5
5
|
export function App()
|
|
6
6
|
{
|
|
@@ -10,6 +10,7 @@ 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" />
|
|
13
14
|
</NSLayoutTitle>
|
|
14
15
|
</div>
|
|
15
16
|
);
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M13.8297 4.99144L9.54839 0.832127C9.4396 0.726307 9.29201 0.666788 9.13806 0.666656H7.22581C6.66115 0.666656 6.11962 0.884574 5.72035 1.27247C5.32108 1.66037 5.09677 2.18647 5.09677 2.73503V3.6752H4.12903C3.56438 3.6752 3.02285 3.89312 2.62358 4.28102C2.22431 4.66891 2 5.19501 2 5.74358V13.2649C2 13.8135 2.22431 14.3396 2.62358 14.7275C3.02285 15.1154 3.56438 15.3333 4.12903 15.3333H9.54839C10.113 15.3333 10.6546 15.1154 11.0538 14.7275C11.4531 14.3396 11.6774 13.8135 11.6774 13.2649V12.3248H11.871C12.4356 12.3248 12.9771 12.1069 13.3764 11.719C13.7757 11.3311 14 10.805 14 10.2564V5.36751C13.9939 5.22581 13.9331 5.09154 13.8297 4.99144ZM9.74194 2.59213L12.0181 4.80341H9.74194V2.59213ZM10.5161 13.2649C10.5161 13.5143 10.4142 13.7534 10.2327 13.9297C10.0512 14.1061 9.80505 14.2051 9.54839 14.2051H4.12903C3.87237 14.2051 3.62622 14.1061 3.44474 13.9297C3.26325 13.7534 3.16129 13.5143 3.16129 13.2649V5.74358C3.16129 5.49423 3.26325 5.25509 3.44474 5.07878C3.62622 4.90246 3.87237 4.80341 4.12903 4.80341H5.09677V10.2564C5.09677 10.805 5.32108 11.3311 5.72035 11.719C6.11962 12.1069 6.66115 12.3248 7.22581 12.3248H10.5161V13.2649ZM11.871 11.1966H7.22581C6.96915 11.1966 6.723 11.0975 6.54151 10.9212C6.36002 10.7449 6.25806 10.5057 6.25806 10.2564V2.73503C6.25806 2.48568 6.36002 2.24655 6.54151 2.07023C6.723 1.89391 6.96915 1.79486 7.22581 1.79486H8.58065V5.36751C8.58265 5.51651 8.64447 5.65887 8.75293 5.76424C8.86139 5.86961 9.00792 5.92967 9.16129 5.93161H12.8387V10.2564C12.8387 10.5057 12.7368 10.7449 12.5553 10.9212C12.3738 11.0975 12.1276 11.1966 11.871 11.1966Z" fill="#141B5C"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
.ns_input_parent {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
width: 326px;
|
|
5
|
+
color: #fff;
|
|
6
|
+
position: relative;
|
|
7
|
+
max-width: 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.ns_input {
|
|
11
|
+
border-radius: 8px;
|
|
12
|
+
padding: 10px 12px;
|
|
13
|
+
font-size: 16px;
|
|
14
|
+
font-weight: 400;
|
|
15
|
+
background-color: #0000;
|
|
16
|
+
text-align: center;
|
|
17
|
+
border: 1px solid rgba(20, 27, 92, 1);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ns_input_icon {
|
|
21
|
+
position: absolute;
|
|
22
|
+
right: 20px;
|
|
23
|
+
top: 67%;
|
|
24
|
+
z-index: 1;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.ns_input_title {
|
|
28
|
+
font-size: 24px;
|
|
29
|
+
font-weight: 700;
|
|
30
|
+
color:rgba(20, 27, 92, 1);
|
|
31
|
+
text-align: center;
|
|
32
|
+
margin-bottom: 16px;
|
|
33
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import React from "react";
|
|
4
|
+
import Styles from "./NSInputCopy.module.css";
|
|
5
|
+
import IconInputString from '../assets/images/icon-input-copy.svg';
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export interface NSNSInputCopyProps
|
|
9
|
+
{
|
|
10
|
+
title: string;
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
onChanged?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface NSNSInputCopyState
|
|
16
|
+
{
|
|
17
|
+
value: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export class NSInputCopy extends React.Component<NSNSInputCopyProps, NSNSInputCopyState>
|
|
21
|
+
{
|
|
22
|
+
constructor(props: NSNSInputCopyProps)
|
|
23
|
+
{
|
|
24
|
+
super(props);
|
|
25
|
+
this.state = {
|
|
26
|
+
value: props.defaultValue ?? "",
|
|
27
|
+
};
|
|
28
|
+
this.getValue = this.getValue.bind(this);
|
|
29
|
+
this.setValue = this.setValue.bind(this);
|
|
30
|
+
this.onChanged = this.onChanged.bind(this);
|
|
31
|
+
this.copyToClipboard = this.copyToClipboard.bind(this);
|
|
32
|
+
}
|
|
33
|
+
getValue(): string
|
|
34
|
+
{
|
|
35
|
+
return this.state.value;
|
|
36
|
+
}
|
|
37
|
+
setValue(value: string): void
|
|
38
|
+
{
|
|
39
|
+
this.setState({ value });
|
|
40
|
+
}
|
|
41
|
+
private onChanged(e: React.ChangeEvent<HTMLInputElement>): void
|
|
42
|
+
{
|
|
43
|
+
this.setValue(e.target.value);
|
|
44
|
+
if (this.props.onChanged)
|
|
45
|
+
this.props.onChanged(e);
|
|
46
|
+
}
|
|
47
|
+
copyToClipboard(): void
|
|
48
|
+
{
|
|
49
|
+
if (navigator.clipboard && navigator.clipboard.writeText)
|
|
50
|
+
{
|
|
51
|
+
navigator.clipboard.writeText(this.getValue());
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
override render()
|
|
55
|
+
{
|
|
56
|
+
return (
|
|
57
|
+
<div className={`${Styles.ns_input_parent} p-2`}>
|
|
58
|
+
<span className={Styles.ns_input_title}>{this.props.title}</span>
|
|
59
|
+
<img
|
|
60
|
+
className={Styles.ns_input_icon}
|
|
61
|
+
src={IconInputString}
|
|
62
|
+
alt="icon"
|
|
63
|
+
width={16}
|
|
64
|
+
height={16}
|
|
65
|
+
onClick={this.copyToClipboard}
|
|
66
|
+
/>
|
|
67
|
+
<input
|
|
68
|
+
value={this.state.value}
|
|
69
|
+
onChange={this.onChanged}
|
|
70
|
+
type="text"
|
|
71
|
+
className={Styles.ns_input}
|
|
72
|
+
placeholder="12AB34cf"
|
|
73
|
+
/>
|
|
74
|
+
</div>
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.ns_loading_parent {
|
|
2
|
+
width: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
align-items: center;
|
|
6
|
+
margin: 0 auto;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.ns_loader {
|
|
10
|
+
width: 50px;
|
|
11
|
+
height: 50px;
|
|
12
|
+
border-radius: 50%;
|
|
13
|
+
padding: 1px;
|
|
14
|
+
background: conic-gradient(#0000 10%, #001664) content-box;
|
|
15
|
+
-webkit-mask:
|
|
16
|
+
repeating-conic-gradient(#0000 0deg, #000 1deg 20deg, #0000 21deg 36deg),
|
|
17
|
+
radial-gradient(farthest-side, #0000 calc(100% - 9px), #000 calc(100% - 8px));
|
|
18
|
+
-webkit-mask-composite: destination-in;
|
|
19
|
+
mask-composite: intersect;
|
|
20
|
+
animation: s4 1s infinite steps(10);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@keyframes s4 {
|
|
24
|
+
to {
|
|
25
|
+
transform: rotate(1turn)
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import Styles from './NSLoading.module.css';
|
|
3
|
+
import { NSSection } from './NSSection';
|
|
4
|
+
import { Background } from '../types/Background';
|
|
5
|
+
|
|
6
|
+
interface NSLoadingProps
|
|
7
|
+
{
|
|
8
|
+
background?: Background;
|
|
9
|
+
padding_bottom?: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export class NSLoading extends Component<NSLoadingProps>
|
|
13
|
+
{
|
|
14
|
+
override render()
|
|
15
|
+
{
|
|
16
|
+
return (
|
|
17
|
+
<NSSection background={this.props.background} padding_bottom={this.props.padding_bottom}>
|
|
18
|
+
<div className={Styles.ns_loading_parent}>
|
|
19
|
+
<div className={Styles.ns_loader}></div>
|
|
20
|
+
</div>
|
|
21
|
+
</NSSection>
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
package/src/main.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from "./components/NSEntityCardBackground";
|
|
|
7
7
|
export * from "./components/NSEntityBar";
|
|
8
8
|
export * from "./components/NSFooter";
|
|
9
9
|
export * from "./components/NSHeader";
|
|
10
|
+
export * from "./components/NSInputCopy";
|
|
10
11
|
export * from "./components/NSInputDate";
|
|
11
12
|
export * from "./components/NSInputDuration";
|
|
12
13
|
export * from "./components/NSInputEmail";
|