namirasoft-site-react 1.3.59 → 1.3.61
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 -15
- package/dist/App.js.map +1 -1
- package/dist/components/NSButton.d.ts +2 -10
- package/dist/components/NSButton.js +2 -9
- package/dist/components/NSButton.js.map +1 -1
- package/dist/components/NSButton.module.css +8 -7
- package/dist/components/NSButtonBlue.d.ts +2 -13
- package/dist/components/NSButtonBlue.js +6 -13
- package/dist/components/NSButtonBlue.js.map +1 -1
- package/dist/components/NSButtonBlue.module.css +0 -8
- package/dist/components/NSButtonGreen.d.ts +2 -13
- package/dist/components/NSButtonGreen.js +6 -13
- package/dist/components/NSButtonGreen.js.map +1 -1
- package/dist/components/NSButtonGreen.module.css +0 -8
- package/dist/components/NSButtonRed.d.ts +2 -13
- package/dist/components/NSButtonRed.js +7 -14
- package/dist/components/NSButtonRed.js.map +1 -1
- package/dist/components/NSButtonRed.module.css +0 -8
- package/dist/components/NSCard.d.ts +5 -10
- package/dist/components/NSCard.js +12 -16
- package/dist/components/NSCard.js.map +1 -1
- package/dist/components/NSCopyToClipboard.d.ts +3 -9
- package/dist/components/NSCopyToClipboard.js +6 -14
- package/dist/components/NSCopyToClipboard.js.map +1 -1
- package/dist/components/NSCopyToClipboard.module.css +1 -1
- package/dist/components/NSEntityBar.d.ts +5 -10
- package/dist/components/NSEntityBar.js +3 -6
- package/dist/components/NSEntityBar.js.map +1 -1
- package/dist/components/NSEntityBar.module.css +1 -1
- package/dist/components/NSEntityCardBackground.d.ts +3 -12
- package/dist/components/NSEntityCardBackground.js +4 -23
- package/dist/components/NSEntityCardBackground.js.map +1 -1
- package/dist/components/NSFooter.d.ts +2 -1
- package/dist/components/NSFooter.js +2 -1
- package/dist/components/NSFooter.js.map +1 -1
- package/dist/components/NSHeader.d.ts +3 -3
- package/dist/components/NSHeader.js +9 -4
- package/dist/components/NSHeader.js.map +1 -1
- package/dist/components/NSInputDate.d.ts +1 -0
- package/dist/components/NSInputDate.js +4 -3
- package/dist/components/NSInputDate.js.map +1 -1
- package/dist/components/NSInputDuration.js.map +1 -1
- package/dist/components/NSInputEmail.js +2 -1
- package/dist/components/NSInputEmail.js.map +1 -1
- package/dist/components/NSInputErrorNotifier.d.ts +5 -0
- package/dist/components/NSInputErrorNotifier.js +7 -0
- package/dist/components/NSInputErrorNotifier.js.map +1 -0
- package/dist/components/NSInputIP.js.map +1 -1
- package/dist/components/NSInputInteger.js.map +1 -1
- package/dist/components/NSInputPhone.js.map +1 -1
- package/dist/components/NSInputPrice.js.map +1 -1
- package/dist/components/NSInputSearch.js.map +1 -1
- package/dist/components/NSInputText.js.map +1 -1
- package/dist/components/NSInputTime.js.map +1 -1
- package/dist/components/NSLayout.d.ts +4 -1
- package/dist/components/NSLayout.js +3 -2
- package/dist/components/NSLayout.js.map +1 -1
- package/dist/components/NSLayoutHeroBanner.d.ts +3 -3
- package/dist/components/NSLayoutHeroBanner.js +1 -1
- package/dist/components/NSLayoutHeroBanner.js.map +1 -1
- package/dist/components/NSLayoutTitle.d.ts +3 -4
- package/dist/components/NSLayoutTitle.js +2 -2
- package/dist/components/NSLayoutTitle.js.map +1 -1
- package/dist/components/NSLinkBlue.d.ts +3 -11
- package/dist/components/NSLinkBlue.js +3 -17
- package/dist/components/NSLinkBlue.js.map +1 -1
- package/dist/components/NSLinkGreen.d.ts +2 -1
- package/dist/components/NSLinkGreen.js.map +1 -1
- package/dist/components/NSLinkRed.d.ts +2 -1
- package/dist/components/NSLinkRed.js.map +1 -1
- package/dist/components/NSLoading.d.ts +3 -8
- package/dist/components/NSLoading.js +2 -6
- package/dist/components/NSLoading.js.map +1 -1
- package/dist/components/NSNotification.d.ts +22 -0
- package/dist/components/NSNotification.js +32 -0
- package/dist/components/NSNotification.js.map +1 -0
- package/dist/components/NSNotification.module.css +32 -0
- package/dist/components/NSPagination.d.ts +3 -2
- package/dist/components/NSPagination.js +2 -1
- package/dist/components/NSPagination.js.map +1 -1
- package/dist/components/NSPanel.d.ts +4 -8
- package/dist/components/NSPanel.js +3 -9
- package/dist/components/NSPanel.js.map +1 -1
- package/dist/components/NSSection.d.ts +4 -11
- package/dist/components/NSSection.js +6 -25
- package/dist/components/NSSection.js.map +1 -1
- package/dist/components/NSSectionBars.d.ts +3 -7
- package/dist/components/NSSectionBars.js +4 -8
- package/dist/components/NSSectionBars.js.map +1 -1
- package/dist/components/NSSectionCards.d.ts +7 -15
- package/dist/components/NSSectionCards.js +7 -11
- package/dist/components/NSSectionCards.js.map +1 -1
- package/dist/components/NSSectionTitle.d.ts +6 -11
- package/dist/components/NSSectionTitle.js +2 -6
- package/dist/components/NSSectionTitle.js.map +1 -1
- package/dist/components/NSSelectBox.d.ts +8 -4
- package/dist/components/NSSelectBox.js +11 -3
- package/dist/components/NSSelectBox.js.map +1 -1
- package/dist/components/NSSpace.d.ts +2 -1
- package/dist/components/NSSpace.js +2 -1
- package/dist/components/NSSpace.js.map +1 -1
- package/dist/components/NSTable.d.ts +2 -1
- package/dist/components/NSTable.js +2 -1
- package/dist/components/NSTable.js.map +1 -1
- package/dist/components/NSTitle.d.ts +3 -7
- package/dist/components/NSTitle.js +3 -6
- package/dist/components/NSTitle.js.map +1 -1
- package/dist/main.d.ts +2 -3
- package/dist/main.js +2 -3
- package/dist/main.js.map +1 -1
- package/dist/pages/NSLoginPage.d.ts +2 -3
- package/dist/pages/NSLoginPage.js +4 -3
- package/dist/pages/NSLoginPage.js.map +1 -1
- package/dist/props/BaseComponentProps.d.ts +1 -0
- package/package.json +2 -3
- package/src/App.tsx +4 -25
- package/src/components/NSButton.module.css +8 -7
- package/src/components/NSButton.tsx +8 -24
- package/src/components/NSButtonBlue.module.css +0 -8
- package/src/components/NSButtonBlue.tsx +7 -28
- package/src/components/NSButtonGreen.module.css +0 -8
- package/src/components/NSButtonGreen.tsx +7 -28
- package/src/components/NSButtonRed.module.css +0 -8
- package/src/components/NSButtonRed.tsx +8 -29
- package/src/components/NSCard.tsx +51 -57
- package/src/components/NSCopyToClipboard.module.css +1 -1
- package/src/components/NSCopyToClipboard.tsx +23 -37
- package/src/components/NSEntityBar.module.css +1 -1
- package/src/components/NSEntityBar.tsx +20 -24
- package/src/components/NSEntityCardBackground.tsx +24 -58
- package/src/components/NSFooter.tsx +13 -9
- package/src/components/NSHeader.tsx +25 -15
- package/src/components/NSInputDate.tsx +22 -15
- package/src/components/NSInputDuration.tsx +10 -9
- package/src/components/NSInputEmail.tsx +2 -0
- package/src/components/NSInputErrorNotifier.tsx +28 -0
- package/src/components/NSInputFloat.tsx +1 -1
- package/src/components/NSInputIP.tsx +4 -3
- package/src/components/NSInputInteger.tsx +2 -1
- package/src/components/NSInputPhone.tsx +2 -1
- package/src/components/NSInputPrice.tsx +2 -1
- package/src/components/NSInputSearch.tsx +3 -3
- package/src/components/NSInputText.tsx +2 -1
- package/src/components/NSInputTime.tsx +2 -1
- package/src/components/NSLayout.tsx +8 -4
- package/src/components/NSLayoutHeroBanner.tsx +4 -7
- package/src/components/NSLayoutTitle.tsx +4 -6
- package/src/components/NSLinkBlue.tsx +14 -35
- package/src/components/NSLinkGreen.tsx +2 -1
- package/src/components/NSLinkRed.tsx +2 -1
- package/src/components/NSLoading.tsx +10 -18
- package/src/components/NSNotification.module.css +32 -0
- package/src/components/NSNotification.tsx +72 -0
- package/src/components/NSPagination.tsx +18 -16
- package/src/components/NSPanel.tsx +14 -23
- package/src/components/NSSection.tsx +15 -40
- package/src/components/NSSectionBars.tsx +14 -23
- package/src/components/NSSectionCards.tsx +33 -47
- package/src/components/NSSectionTitle.tsx +13 -22
- package/src/components/NSSelectBox.tsx +21 -8
- package/src/components/NSSpace.tsx +6 -2
- package/src/components/NSTable.tsx +7 -4
- package/src/components/NSTitle.tsx +12 -16
- package/src/main.ts +2 -3
- package/src/pages/NSLoginPage.tsx +8 -6
- package/src/props/BaseComponentProps.ts +1 -0
- package/dist/components/NSButtonBlueVector.d.ts +0 -15
- package/dist/components/NSButtonBlueVector.js +0 -17
- package/dist/components/NSButtonBlueVector.js.map +0 -1
- package/dist/components/NSButtonBlueVector.module.css +0 -17
- package/dist/components/NSError.d.ts +0 -11
- package/dist/components/NSError.js +0 -14
- package/dist/components/NSError.js.map +0 -1
- package/dist/components/NSMessenger.d.ts +0 -14
- package/dist/components/NSMessenger.js +0 -23
- package/dist/components/NSMessenger.js.map +0 -1
- package/dist/components/NSMessenger.module.css +0 -16
- package/dist/props/BackgroundProps.d.ts +0 -6
- package/dist/props/BackgroundProps.js +0 -2
- package/dist/props/BackgroundProps.js.map +0 -1
- package/dist/props/NSButtonProps.d.ts +0 -10
- package/dist/props/NSButtonProps.js +0 -2
- package/dist/props/NSButtonProps.js.map +0 -1
- package/src/components/NSButtonBlueVector.module.css +0 -17
- package/src/components/NSButtonBlueVector.tsx +0 -41
- package/src/components/NSError.tsx +0 -42
- package/src/components/NSMessenger.module.css +0 -16
- package/src/components/NSMessenger.tsx +0 -56
- package/src/props/BackgroundProps.ts +0 -7
- package/src/props/NSButtonProps.ts +0 -11
- /package/dist/components/{NSError.module.css → NSInputErrorNotifier.module.css} +0 -0
- /package/src/components/{NSError.module.css → NSInputErrorNotifier.module.css} +0 -0
package/dist/App.js
CHANGED
|
@@ -1,20 +1,7 @@
|
|
|
1
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, NSInputDate,
|
|
5
|
-
import { NSSelectBox } from 'namirasoft-site-react/dist/components/NSSelectBox';
|
|
6
|
-
const options = [
|
|
7
|
-
{
|
|
8
|
-
label: 'Test1',
|
|
9
|
-
value: 'test1',
|
|
10
|
-
desc: 'Test1',
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
label: 'Test2',
|
|
14
|
-
value: 'test2',
|
|
15
|
-
desc: 'Test2',
|
|
16
|
-
}
|
|
17
|
-
];
|
|
4
|
+
import { NSFooter, NSHeader, NSTable, NSInputDate, NSCopyToClipboard } from './main';
|
|
18
5
|
export function App() {
|
|
19
6
|
let columns = {
|
|
20
7
|
"id": "ID",
|
|
@@ -41,6 +28,6 @@ export function App() {
|
|
|
41
28
|
status: "Done"
|
|
42
29
|
}
|
|
43
30
|
];
|
|
44
|
-
return (_jsxs(_Fragment, { children: [_jsx(NSHeader, { name: 'Header', scope: 'Namira Software Corporation', logo: 'https://static.namirasoft.com/logo/namirasoft/base.png', account: false,
|
|
31
|
+
return (_jsxs(_Fragment, { children: [_jsx(NSHeader, { name: 'Header', scope: 'Namira Software Corporation', logo: 'https://static.namirasoft.com/logo/namirasoft/base.png', account: false, style: { backgroundColor: "transparent !important" } }), _jsxs("div", { className: "container", children: [_jsx(NSInputDate, { title: "rrt" }), _jsx(NSCopyToClipboard, { title: 'rrt', value: "rrr" }), _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' })] }));
|
|
45
32
|
}
|
|
46
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;AACnB,OAAO,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,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,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAErF,MAAM,UAAU,GAAG;IAEf,IAAI,OAAO,GAAG;QACV,IAAI,EAAE,IAAI;QACV,SAAS,EAAE,SAAS;QACpB,OAAO,EAAE,OAAO;QAChB,SAAS,EAAE,SAAS;QACpB,MAAM,EAAE,MAAM;QACd,QAAQ,EAAE,QAAQ;KACrB,CAAA;IACD,IAAI,IAAI,GAAG,CAAC;YACR,EAAE,EAAE,CAAC;YACL,OAAO,EAAE,oBAAoB;YAC7B,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,yCAAyC;YAClD,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,MAAM;SACjB;QACD;YACI,EAAE,EAAE,CAAC;YACL,OAAO,EAAE,oBAAoB;YAC7B,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,yCAAyC;YAClD,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,MAAM;SACjB;KACA,CAAA;IAUD,OAAO,CACH,8BACI,KAAC,QAAQ,IACL,IAAI,EAAC,QAAQ,EACb,KAAK,EAAC,6BAA6B,EACnC,IAAI,EAAC,wDAAwD,EAC7D,OAAO,EAAE,KAAK,EACd,KAAK,EAAE,EAAE,eAAe,EAAE,wBAAwB,EAAE,GACtD,EACF,eAAK,SAAS,EAAC,WAAW,aACtB,KAAC,WAAW,IAAC,KAAK,EAAC,KAAK,GAAG,EAC3B,KAAC,iBAAiB,IAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,GAAG,EAC7C,KAAC,OAAO,IAAM,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAI,IACjF,EACN,KAAC,QAAQ,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,6BAA6B,EAAC,IAAI,EAAC,wDAAwD,GAAG,IAC7H,CACN,CAAC;AACN,CAAC"}
|
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { BaseComponentProps } from "../props/BaseComponentProps";
|
|
3
3
|
import { ImageProps } from "../props/ImageProps";
|
|
4
|
-
export interface
|
|
4
|
+
export interface NSButtonProps extends BaseComponentProps {
|
|
5
5
|
title: string;
|
|
6
|
-
border?: string;
|
|
7
|
-
background?: BackgroundProps;
|
|
8
|
-
icon?: ImageProps;
|
|
9
|
-
}
|
|
10
|
-
export interface NSButtonProps {
|
|
11
|
-
title: string;
|
|
12
|
-
border?: string;
|
|
13
|
-
background?: BackgroundProps;
|
|
14
6
|
icon?: ImageProps;
|
|
15
7
|
onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
16
8
|
}
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
2
|
import Styles from "./NSButton.module.css";
|
|
4
3
|
export default function NSButton(props) {
|
|
5
|
-
var _a
|
|
6
|
-
return (_jsxs("button", { onClick: (e) => { props.onClick(e); },
|
|
7
|
-
border: props.border,
|
|
8
|
-
backgroundColor: (_a = props.background) === null || _a === void 0 ? void 0 : _a.color,
|
|
9
|
-
backgroundImage: (_b = props.background) === null || _b === void 0 ? void 0 : _b.image,
|
|
10
|
-
backdropFilter: (_c = props.background) === null || _c === void 0 ? void 0 : _c.filter,
|
|
11
|
-
backgroundPosition: (_d = props.background) === null || _d === void 0 ? void 0 : _d.position,
|
|
12
|
-
}, children: [props.icon && _jsx("img", { src: props.icon.src, alt: props.icon.alt }), props.title] }));
|
|
4
|
+
var _a;
|
|
5
|
+
return (_jsxs("button", { id: props.id, className: `${Styles.ns_button} ${(_a = props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: props.style, onClick: (e) => { props.onClick(e); }, children: [props.icon && _jsx("img", Object.assign({}, props.icon)), props.title] }));
|
|
13
6
|
}
|
|
14
7
|
;
|
|
15
8
|
//# sourceMappingURL=NSButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSButton.js","sourceRoot":"","sources":["../../src/components/NSButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NSButton.js","sourceRoot":"","sources":["../../src/components/NSButton.tsx"],"names":[],"mappings":";AAEA,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAS3C,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAoB;;IAEjD,OAAO,CACH,kBAAQ,EAAE,EAAE,KAAK,CAAC,EAAE,EAChB,SAAS,EAAE,GAAG,MAAM,CAAC,SAAS,IAAI,MAAA,KAAK,CAAC,SAAS,0CAAE,IAAI,CAAC,GAAG,CAAC,EAAE,EAC9D,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA,CAAC,CAAC,aAEnC,KAAK,CAAC,IAAI,IAAI,8BAAS,KAAK,CAAC,IAAI,EAAI,EACrC,KAAK,CAAC,KAAK,IACN,CACb,CAAC;AACN,CAAC;AAAA,CAAC"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
.ns_button {
|
|
2
|
-
display: flex;
|
|
3
2
|
align-items: center;
|
|
4
|
-
|
|
5
|
-
font-size: 16px;
|
|
3
|
+
background-color: transparent;
|
|
6
4
|
border-radius: 8px;
|
|
7
|
-
|
|
8
|
-
text-decoration: none;
|
|
5
|
+
box-shadow: inset 0 -4px 4px 0px rgb(0 0 0 / 25%);
|
|
9
6
|
color: black;
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
font-size: 16px;
|
|
8
|
+
font-weight: 400;
|
|
12
9
|
height: 48px;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
text-decoration: none;
|
|
12
|
+
max-width: 100%;
|
|
13
|
+
width: 128px;
|
|
13
14
|
}
|
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export
|
|
3
|
-
title: string;
|
|
4
|
-
onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
5
|
-
}
|
|
6
|
-
export interface NSButtonBlueState {
|
|
7
|
-
title: string;
|
|
8
|
-
}
|
|
9
|
-
export declare class NSButtonBlue extends React.Component<NSButtonBlueProps, NSButtonBlueState> {
|
|
10
|
-
constructor(props: NSButtonBlueProps);
|
|
11
|
-
setTitle(title: string): void;
|
|
12
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
}
|
|
1
|
+
import { NSButtonProps } from "./NSButton";
|
|
2
|
+
export declare function NSButtonBlue(props: NSButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
2
|
+
import NSButton from "./NSButton";
|
|
4
3
|
import Style from "./NSButtonBlue.module.css";
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
setTitle(title) {
|
|
11
|
-
this.setState({ title });
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
return _jsx("button", { onClick: e => this.props.onClick(e), className: Style.ns_button_blue, children: this.state.title });
|
|
15
|
-
}
|
|
4
|
+
export function NSButtonBlue(props) {
|
|
5
|
+
if (!props.classList)
|
|
6
|
+
props.classList = [];
|
|
7
|
+
props.classList.push(Style.ns_button_blue);
|
|
8
|
+
return _jsx(NSButton, Object.assign({}, props));
|
|
16
9
|
}
|
|
17
10
|
//# sourceMappingURL=NSButtonBlue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSButtonBlue.js","sourceRoot":"","sources":["../../src/components/NSButtonBlue.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"NSButtonBlue.js","sourceRoot":"","sources":["../../src/components/NSButtonBlue.tsx"],"names":[],"mappings":";AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,KAAK,MAAM,2BAA2B,CAAC;AAG9C,MAAM,UAAU,YAAY,CAAC,KAAoB;IAE7C,IAAI,CAAC,KAAK,CAAC,SAAS;QAChB,KAAK,CAAC,SAAS,GAAG,EAAE,CAAC;IACzB,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IAC3C,OAAO,KAAC,QAAQ,oBAAK,KAAK,EAAI,CAAC;AACnC,CAAC"}
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
.ns_button_blue {
|
|
2
|
-
width: 358px;
|
|
3
|
-
max-width: 100%;
|
|
4
|
-
height: 48px;
|
|
5
|
-
border-radius: 8px;
|
|
6
2
|
background-color: rgba(3, 119, 255, 1);
|
|
7
|
-
color: #fff;
|
|
8
|
-
border: 0;
|
|
9
3
|
box-shadow: inset 0 -4px 4px 0px rgb(0 0 0 / 25%);
|
|
10
|
-
font-size: 16px;
|
|
11
|
-
font-weight: 400;
|
|
12
4
|
}
|
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export
|
|
3
|
-
title: string;
|
|
4
|
-
onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
5
|
-
}
|
|
6
|
-
export interface NSButtonGreenState {
|
|
7
|
-
title: string;
|
|
8
|
-
}
|
|
9
|
-
export declare class NSButtonGreen extends React.Component<NSButtonGreenProps, NSButtonGreenState> {
|
|
10
|
-
constructor(props: NSButtonGreenProps);
|
|
11
|
-
setTitle(title: string): void;
|
|
12
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
}
|
|
1
|
+
import { NSButtonProps } from "./NSButton";
|
|
2
|
+
export declare function NSButtonGreen(props: NSButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
2
|
+
import NSButton from "./NSButton";
|
|
4
3
|
import Style from "./NSButtonGreen.module.css";
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
setTitle(title) {
|
|
11
|
-
this.setState({ title });
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
return _jsx("button", { onClick: e => this.props.onClick(e), className: Style.ns_button_green, children: this.state.title });
|
|
15
|
-
}
|
|
4
|
+
export function NSButtonGreen(props) {
|
|
5
|
+
if (!props.classList)
|
|
6
|
+
props.classList = [];
|
|
7
|
+
props.classList.push(Style.ns_button_green);
|
|
8
|
+
return _jsx(NSButton, Object.assign({}, props));
|
|
16
9
|
}
|
|
17
10
|
//# sourceMappingURL=NSButtonGreen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSButtonGreen.js","sourceRoot":"","sources":["../../src/components/NSButtonGreen.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"NSButtonGreen.js","sourceRoot":"","sources":["../../src/components/NSButtonGreen.tsx"],"names":[],"mappings":";AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,KAAK,MAAM,4BAA4B,CAAC;AAG/C,MAAM,UAAU,aAAa,CAAC,KAAoB;IAE9C,IAAI,CAAC,KAAK,CAAC,SAAS;QAChB,KAAK,CAAC,SAAS,GAAG,EAAE,CAAC;IACzB,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;IAC5C,OAAO,KAAC,QAAQ,oBAAK,KAAK,EAAI,CAAC;AACnC,CAAC"}
|
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export
|
|
3
|
-
title: string;
|
|
4
|
-
onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
5
|
-
}
|
|
6
|
-
export interface NSButtonRedState {
|
|
7
|
-
title: string;
|
|
8
|
-
}
|
|
9
|
-
export declare class NSButtonRed extends React.Component<NSButtonRedProps, NSButtonRedState> {
|
|
10
|
-
constructor(props: NSButtonRedProps);
|
|
11
|
-
setTitle(title: string): void;
|
|
12
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
}
|
|
1
|
+
import { NSButtonProps } from "./NSButton";
|
|
2
|
+
export declare function NSButtonRed(props: NSButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
4
|
-
import Style from "./
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
setTitle(title) {
|
|
11
|
-
this.setState({ title });
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
return _jsx("button", { onClick: e => this.props.onClick(e), className: Style.ns_button_red, children: this.state.title });
|
|
15
|
-
}
|
|
2
|
+
import NSButton from "./NSButton";
|
|
3
|
+
import Style from "./NSButtonGreen.module.css";
|
|
4
|
+
export function NSButtonRed(props) {
|
|
5
|
+
if (!props.classList)
|
|
6
|
+
props.classList = [];
|
|
7
|
+
props.classList.push(Style.ns_button_red);
|
|
8
|
+
return _jsx(NSButton, Object.assign({}, props));
|
|
16
9
|
}
|
|
17
10
|
//# sourceMappingURL=NSButtonRed.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSButtonRed.js","sourceRoot":"","sources":["../../src/components/NSButtonRed.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"NSButtonRed.js","sourceRoot":"","sources":["../../src/components/NSButtonRed.tsx"],"names":[],"mappings":";AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,KAAK,MAAM,4BAA4B,CAAC;AAG/C,MAAM,UAAU,WAAW,CAAC,KAAoB;IAE5C,IAAI,CAAC,KAAK,CAAC,SAAS;QAChB,KAAK,CAAC,SAAS,GAAG,EAAE,CAAC;IACzB,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IAC1C,OAAO,KAAC,QAAQ,oBAAK,KAAK,EAAI,CAAC;AACnC,CAAC"}
|
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
2
1
|
import { LinkProps } from '../props/LinkProps';
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { BaseComponentProps } from "../props/BaseComponentProps";
|
|
3
|
+
import { ImageProps } from '../props/ImageProps';
|
|
4
|
+
export interface NSCardProps extends BaseComponentProps {
|
|
5
5
|
title?: string;
|
|
6
6
|
headline?: {
|
|
7
7
|
color?: string;
|
|
8
8
|
text: string;
|
|
9
9
|
};
|
|
10
10
|
description?: string;
|
|
11
|
-
image:
|
|
12
|
-
src: string;
|
|
13
|
-
alt: string;
|
|
14
|
-
};
|
|
11
|
+
image: ImageProps;
|
|
15
12
|
link?: LinkProps;
|
|
16
13
|
}
|
|
17
|
-
export declare
|
|
18
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
}
|
|
14
|
+
export declare function NSCard(props: NSCardProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
-
import { Component } from 'react';
|
|
4
2
|
import Styles from './NSCard.module.css';
|
|
5
3
|
import { NSLinkBlue } from './NSLinkBlue';
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
_jsx(_Fragment, {})] }) }));
|
|
19
|
-
}
|
|
4
|
+
export function NSCard(props) {
|
|
5
|
+
var _a, _b, _c;
|
|
6
|
+
return (_jsxs("article", { id: props.id, className: `${Styles.ns_card} ${(_a = props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: props.style, children: [_jsxs("div", { className: Styles.ns_card_detail_container, children: [_jsxs("div", { className: Styles.ns_card_title_img, style: {
|
|
7
|
+
alignItems: props.description ? "flex-start" : "center",
|
|
8
|
+
}, children: [_jsx("img", Object.assign({ className: Styles.ns_card_img }, props.image)), _jsxs("span", { className: Styles.ns_card_headline, style: { color: (_b = props.headline) === null || _b === void 0 ? void 0 : _b.color }, children: [" ", (_c = props.headline) === null || _c === void 0 ? void 0 : _c.text, " "] }), _jsx("h3", { className: Styles.ns_card_title, children: props.title })] }), props.description &&
|
|
9
|
+
_jsx("p", { className: Styles.ns_card_description, children: props.description })] }), props.link ?
|
|
10
|
+
props.link.title ?
|
|
11
|
+
_jsx("div", { className: Styles.ns_card_link_container, children: _jsx(NSLinkBlue, { title: props.link.title, href: props.link.href, target: props.link.target, style: { marginTop: "24px" } }) })
|
|
12
|
+
:
|
|
13
|
+
_jsx("div", { className: Styles.ns_card_link_container, children: _jsx(NSLinkBlue, { href: props.link.href, target: props.link.target }) })
|
|
14
|
+
:
|
|
15
|
+
_jsx(_Fragment, {})] }));
|
|
20
16
|
}
|
|
21
17
|
//# sourceMappingURL=NSCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSCard.js","sourceRoot":"","sources":["../../src/components/NSCard.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"NSCard.js","sourceRoot":"","sources":["../../src/components/NSCard.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAA;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAiB1C,MAAM,UAAU,MAAM,CAAC,KAAkB;;IAExC,OAAO,CACN,mBAAS,EAAE,EAAE,KAAK,CAAC,EAAE,EACpB,SAAS,EAAE,GAAG,MAAM,CAAC,OAAO,IAAI,MAAA,KAAK,CAAC,SAAS,0CAAE,IAAI,CAAC,GAAG,CAAC,EAAE,EAC5D,KAAK,EAAE,KAAK,CAAC,KAAK,aAElB,eAAK,SAAS,EAAE,MAAM,CAAC,wBAAwB,aAC9C,eAAK,SAAS,EAAE,MAAM,CAAC,iBAAiB,EACvC,KAAK,EAAE;4BACN,UAAU,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ;yBACvD,aAED,4BAAK,SAAS,EAAE,MAAM,CAAC,WAAW,IAAM,KAAK,CAAC,KAAK,EAAI,EACvD,gBAAM,SAAS,EAAE,MAAM,CAAC,gBAAgB,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,MAAA,KAAK,CAAC,QAAQ,0CAAE,KAAK,EAAE,kBAAI,MAAA,KAAK,CAAC,QAAQ,0CAAE,IAAI,SAAS,EAClH,aAAI,SAAS,EAAE,MAAM,CAAC,aAAa,YACjC,KAAK,CAAC,KAAK,GACR,IACA,EAEL,KAAK,CAAC,WAAW;wBACjB,YAAG,SAAS,EAAE,MAAM,CAAC,mBAAmB,YACtC,KAAK,CAAC,WAAW,GACf,IAEA,EAEL,KAAK,CAAC,IAAI,CAAC,CAAC;gBACX,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBACjB,cAAK,SAAS,EAAE,MAAM,CAAC,sBAAsB,YAC5C,KAAC,UAAU,IACV,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,EACvB,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,EACrB,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,EACzB,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,GAC3B,GACG;oBACN,CAAC;wBACD,cAAK,SAAS,EAAE,MAAM,CAAC,sBAAsB,YAC5C,KAAC,UAAU,IACV,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,EACrB,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,GACxB,GACG;gBACP,CAAC;oBACD,mBAAK,IAEG,CACX,CAAC;AACH,CAAC"}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
export interface NSCopyToClipboardProps {
|
|
1
|
+
import { BaseComponentProps } from "../props/BaseComponentProps";
|
|
2
|
+
export interface NSCopyToClipboardProps extends BaseComponentProps {
|
|
3
3
|
title: string;
|
|
4
4
|
value: string;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
7
|
-
}
|
|
8
|
-
export declare class NSCopyToClipboard extends React.Component<NSCopyToClipboardProps, NSCopyToClipboardState> {
|
|
9
|
-
constructor(props: NSCopyToClipboardProps);
|
|
10
|
-
copyToClipboard(): void;
|
|
11
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
}
|
|
6
|
+
export declare function NSCopyToClipboard(props: NSCopyToClipboardProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import React from "react";
|
|
4
2
|
import Styles from "./NSCopyToClipboard.module.css";
|
|
5
3
|
import IconInputString from '../assets/images/icon-input-copy.svg';
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
copyToClipboard() {
|
|
12
|
-
if (navigator.clipboard && navigator.clipboard.writeText) {
|
|
13
|
-
navigator.clipboard.writeText(this.props.value);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
render() {
|
|
17
|
-
return (_jsxs("div", { className: `${Styles.ns_copy_to_clipboard} p-2`, children: [_jsx("span", { className: Styles.ns_copy_to_clipboard_title, children: this.props.title }), _jsxs("div", { className: Styles.ns_copy_to_clipboard_value, children: [_jsx("img", { className: Styles.ns_copy_to_clipboard_icon, src: IconInputString, alt: "icon", width: 16, height: 16, onClick: this.copyToClipboard }), _jsx("span", { children: this.props.value })] })] }));
|
|
4
|
+
export function NSCopyToClipboard(props) {
|
|
5
|
+
var _a;
|
|
6
|
+
function copyToClipboard() {
|
|
7
|
+
if (navigator.clipboard && navigator.clipboard.writeText)
|
|
8
|
+
navigator.clipboard.writeText(props.value);
|
|
18
9
|
}
|
|
10
|
+
return (_jsxs("div", { id: props.id, className: `${Styles.ns_copy_to_clipboard} p-2 ${(_a = props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: props.style, children: [_jsx("span", { className: Styles.ns_copy_to_clipboard_title, children: props.title }), _jsxs("div", { className: Styles.ns_copy_to_clipboard_value, children: [_jsx("img", { className: Styles.ns_copy_to_clipboard_icon, src: IconInputString, alt: "icon", width: 16, height: 16, onClick: copyToClipboard }), _jsx("span", { children: props.value })] })] }));
|
|
19
11
|
}
|
|
20
12
|
//# sourceMappingURL=NSCopyToClipboard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSCopyToClipboard.js","sourceRoot":"","sources":["../../src/components/NSCopyToClipboard.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"NSCopyToClipboard.js","sourceRoot":"","sources":["../../src/components/NSCopyToClipboard.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,gCAAgC,CAAC;AACpD,OAAO,eAAe,MAAM,sCAAsC,CAAC;AASnE,MAAM,UAAU,iBAAiB,CAAC,KAA6B;;IAE3D,SAAS,eAAe;QAEpB,IAAI,SAAS,CAAC,SAAS,IAAI,SAAS,CAAC,SAAS,CAAC,SAAS;YACpD,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACnD,CAAC;IACD,OAAO,CACH,eAAK,EAAE,EAAE,KAAK,CAAC,EAAE,EACb,SAAS,EAAE,GAAG,MAAM,CAAC,oBAAoB,QAAQ,MAAA,KAAK,CAAC,SAAS,0CAAE,IAAI,CAAC,GAAG,CAAC,EAAE,EAC7E,KAAK,EAAE,KAAK,CAAC,KAAK,aAElB,eAAM,SAAS,EAAE,MAAM,CAAC,0BAA0B,YAAG,KAAK,CAAC,KAAK,GAAQ,EACxE,eAAK,SAAS,EAAE,MAAM,CAAC,0BAA0B,aAC7C,cACI,SAAS,EAAE,MAAM,CAAC,yBAAyB,EAC3C,GAAG,EAAE,eAAe,EACpB,GAAG,EAAC,MAAM,EACV,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,OAAO,EAAE,eAAe,GAC1B,EACF,yBAAO,KAAK,CAAC,KAAK,GAAQ,IACxB,IACJ,CACT,CAAC;AACN,CAAC"}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { BaseComponentProps } from "../props/BaseComponentProps";
|
|
2
|
+
import { ImageProps } from '../props/ImageProps';
|
|
3
|
+
export interface NSEntityBarProps extends BaseComponentProps {
|
|
4
4
|
title: string;
|
|
5
5
|
description: string;
|
|
6
|
-
image:
|
|
7
|
-
src: string;
|
|
8
|
-
alt: string;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export declare class NSEntityBar extends Component<NSEntityBarProps> {
|
|
12
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
image: ImageProps;
|
|
13
7
|
}
|
|
8
|
+
export declare function NSEntityBar(props: NSEntityBarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Component } from 'react';
|
|
4
2
|
import Styles from './NSEntityBar.module.css';
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
3
|
+
export function NSEntityBar(props) {
|
|
4
|
+
var _a;
|
|
5
|
+
return (_jsxs("article", { id: props.id, className: `${Styles.ns_entity_bar_item} ${(_a = props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: props.style, children: [_jsx("figure", { className: Styles.ns_entity_bar_image_container, children: _jsx("img", Object.assign({ className: Styles.ns_entity_bar_image }, props.image, { width: 256, height: 256 })) }), _jsxs("div", { className: Styles.ns_entity_bar_details_container, children: [_jsxs("h3", { className: Styles.ns_entity_bar_image_title, children: [" ", props.title, " "] }), _jsxs("p", { className: Styles.ns_entity_bar_image_description, children: [" ", props.description, " "] })] })] }));
|
|
9
6
|
}
|
|
10
7
|
//# sourceMappingURL=NSEntityBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSEntityBar.js","sourceRoot":"","sources":["../../src/components/NSEntityBar.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"NSEntityBar.js","sourceRoot":"","sources":["../../src/components/NSEntityBar.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,0BAA0B,CAAA;AAW7C,MAAM,UAAU,WAAW,CAAC,KAAuB;;IAElD,OAAO,CACN,mBAAS,EAAE,EAAE,KAAK,CAAC,EAAE,EACpB,SAAS,EAAE,GAAG,MAAM,CAAC,kBAAkB,IAAI,MAAA,KAAK,CAAC,SAAS,0CAAE,IAAI,CAAC,GAAG,CAAC,EAAE,EACvE,KAAK,EAAE,KAAK,CAAC,KAAK,aAElB,iBAAQ,SAAS,EAAE,MAAM,CAAC,6BAA6B,YACtD,4BAAK,SAAS,EAAE,MAAM,CAAC,mBAAmB,IAAM,KAAK,CAAC,KAAK,IAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,GAChF,EACT,eAAK,SAAS,EAAE,MAAM,CAAC,+BAA+B,aACrD,cAAI,SAAS,EAAE,MAAM,CAAC,yBAAyB,kBAAI,KAAK,CAAC,KAAK,SAAO,EACrE,aAAG,SAAS,EAAE,MAAM,CAAC,+BAA+B,kBAAK,KAAK,CAAC,WAAW,SAAM,IAC3E,IACG,CACV,CAAC;AACH,CAAC"}
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
2
|
-
import { BackgroundProps } from '../props/BackgroundProps';
|
|
3
1
|
import { LinkProps } from '../props/LinkProps';
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { BaseComponentProps } from "../props/BaseComponentProps";
|
|
3
|
+
export interface NSEntityCardBackgroundProps extends BaseComponentProps {
|
|
6
4
|
title: string;
|
|
7
5
|
link?: LinkProps;
|
|
8
|
-
background?: BackgroundProps;
|
|
9
|
-
}
|
|
10
|
-
export interface NSEntityCardBackgroundState {
|
|
11
|
-
background?: BackgroundProps;
|
|
12
|
-
}
|
|
13
|
-
export declare class NSEntityCardBackground extends Component<NSEntityCardBackgroundProps, NSEntityCardBackgroundState> {
|
|
14
|
-
constructor(props: NSEntityCardBackgroundProps);
|
|
15
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
16
6
|
}
|
|
7
|
+
export declare function NSEntityCardBackground(props: NSEntityCardBackgroundProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,28 +1,9 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
-
import { Component } from 'react';
|
|
4
2
|
import Styles from './NSEntityCardBackground.module.css';
|
|
5
3
|
import { NSLinkBlue } from './NSLinkBlue';
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
this.state = {
|
|
11
|
-
background: {
|
|
12
|
-
image: `url(${(_a = props.background) === null || _a === void 0 ? void 0 : _a.image})`,
|
|
13
|
-
color: (_b = props.background) === null || _b === void 0 ? void 0 : _b.color,
|
|
14
|
-
position: (_c = props.background) === null || _c === void 0 ? void 0 : _c.position
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
render() {
|
|
19
|
-
var _a, _b, _c;
|
|
20
|
-
return (_jsx(_Fragment, { children: _jsxs("article", { className: Styles.card_background, style: {
|
|
21
|
-
backgroundImage: (_a = this.state.background) === null || _a === void 0 ? void 0 : _a.image,
|
|
22
|
-
backgroundColor: (_b = this.state.background) === null || _b === void 0 ? void 0 : _b.color,
|
|
23
|
-
backgroundPosition: (_c = this.state.background) === null || _c === void 0 ? void 0 : _c.position
|
|
24
|
-
}, children: [_jsx("p", { className: Styles.card_background_text, children: this.props.title }), this.props.link &&
|
|
25
|
-
_jsx("div", { className: Styles.ns_card_link_container, children: _jsx(NSLinkBlue, { href: this.props.link.href, target: this.props.link.target }) })] }) }));
|
|
26
|
-
}
|
|
4
|
+
export function NSEntityCardBackground(props) {
|
|
5
|
+
var _a;
|
|
6
|
+
return (_jsx(_Fragment, { children: _jsxs("article", { id: props.id, className: `${Styles.card_background} ${(_a = props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: props.style, children: [_jsx("p", { className: Styles.card_background_text, children: props.title }), props.link &&
|
|
7
|
+
_jsx("div", { className: Styles.ns_card_link_container, children: _jsx(NSLinkBlue, { href: props.link.href, target: props.link.target }) })] }) }));
|
|
27
8
|
}
|
|
28
9
|
//# sourceMappingURL=NSEntityCardBackground.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSEntityCardBackground.js","sourceRoot":"","sources":["../../src/components/NSEntityCardBackground.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"NSEntityCardBackground.js","sourceRoot":"","sources":["../../src/components/NSEntityCardBackground.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qCAAqC,CAAA;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAU1C,MAAM,UAAU,sBAAsB,CAAC,KAAkC;;IAExE,OAAO,CACN,4BACC,mBAAS,EAAE,EAAE,KAAK,CAAC,EAAE,EACpB,SAAS,EAAE,GAAG,MAAM,CAAC,eAAe,IAAI,MAAA,KAAK,CAAC,SAAS,0CAAE,IAAI,CAAC,GAAG,CAAC,EAAE,EACpE,KAAK,EAAE,KAAK,CAAC,KAAK,aAElB,YAAG,SAAS,EAAE,MAAM,CAAC,oBAAoB,YACvC,KAAK,CAAC,KAAK,GACT,EAEH,KAAK,CAAC,IAAI;oBACV,cAAK,SAAS,EAAE,MAAM,CAAC,sBAAsB,YAC5C,KAAC,UAAU,IACV,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,EACrB,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,GACxB,GACG,IAEG,GACT,CACH,CAAC;AACH,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FilterLinkRow } from 'namirasoft-api-link';
|
|
3
|
-
|
|
3
|
+
import { BaseComponentProps } from "../props/BaseComponentProps";
|
|
4
|
+
export interface NSFooterProps extends BaseComponentProps {
|
|
4
5
|
scope: string;
|
|
5
6
|
name: string;
|
|
6
7
|
logo: string;
|
|
@@ -24,7 +24,8 @@ export class NSFooter extends React.Component {
|
|
|
24
24
|
return this.state.filters.filter(f => f.parent_id === id).length > 0;
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
|
-
|
|
27
|
+
var _a;
|
|
28
|
+
return (_jsx("footer", { id: this.props.id, className: `${Styles.ns_footer} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: _jsxs("div", { className: `container ${Styles.ns_package_footer}`, children: [_jsxs("div", { className: `${Styles.ns_footer_parent_items}`, children: [_jsx("div", { className: `${Styles.ns_footer_project_logo_tablet}`, children: _jsx("a", { href: "/", children: _jsx("img", { src: this.props.logo, alt: 'Logo', width: 80, height: 80 }) }) }), _jsx("div", { className: `${Styles.ns_footer_menu_container}`, children: this.render_menu(0, null) }), _jsx("div", { className: `${Styles.ns_footer_namira_logo_tablet}`, children: _jsx("a", { href: "/", children: _jsx("img", { src: "https://static.namirasoft.com/logo/namirasoft/circle.png", alt: 'Namira Software Corporation Logo', width: 80, height: 80 }) }) })] }), _jsxs("div", { className: `${Styles.ns_footer_logos_mobile}`, children: [_jsx("div", { children: _jsx("a", { href: "/", children: _jsx("img", { src: this.props.logo, alt: 'Logo', width: 80, height: 80 }) }) }), _jsx("div", { children: _jsx("a", { href: "/", children: _jsx("img", { src: "https://static.namirasoft.com/logo/namirasoft/circle.png", alt: 'Namira Software Corporation Logo', width: 80, height: 80 }) }) })] }), _jsxs("div", { className: `${Styles.ns_footer_copyright}`, children: [_jsxs("span", { children: [" \u00A9Copyright 2010 - ", new Date().getFullYear(), " "] }), _jsx("a", { href: "https://namirasoft.com/", target: "_blank", rel: "noopener noreferrer", children: " Namira Software Corporation" }), ". All rights reserved."] })] }) }));
|
|
28
29
|
}
|
|
29
30
|
render_menu(level, parent_id) {
|
|
30
31
|
var _a;
|