namirasoft-site-react 1.3.82 → 1.3.84
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 -30
- package/dist/App.js.map +1 -1
- package/dist/components/NSActionMenu.d.ts +14 -0
- package/dist/components/NSActionMenu.js +16 -0
- package/dist/components/NSActionMenu.js.map +1 -0
- package/dist/components/NSActionMenu.module.css +73 -0
- package/dist/components/NSButton.js +1 -1
- package/dist/components/NSButton.js.map +1 -1
- package/dist/components/NSButton.module.css +12 -5
- package/dist/components/NSButtonBlue.module.css +1 -0
- package/dist/components/NSButtonGreen.module.css +1 -0
- package/dist/components/NSButtonRed.module.css +1 -0
- package/dist/components/NSCard.module.css +1 -1
- package/dist/components/NSInput.module.css +26 -6
- package/dist/components/NSInputSearch.js +1 -2
- package/dist/components/NSInputSearch.js.map +1 -1
- package/dist/components/NSLayoutAction.d.ts +11 -0
- package/dist/components/NSLayoutAction.js +15 -0
- package/dist/components/NSLayoutAction.js.map +1 -0
- package/dist/components/NSLayoutAction.module.css +45 -0
- package/dist/components/NSLink.js +1 -1
- package/dist/components/NSLink.js.map +1 -1
- package/dist/components/NSModal.d.ts +4 -0
- package/dist/components/NSModal.js +6 -0
- package/dist/components/NSModal.js.map +1 -0
- package/dist/components/NSModal.module.css +0 -0
- package/dist/components/NSPanel.module.css +13 -9
- package/dist/components/NSSpace.js +1 -1
- package/dist/components/NSSpace.js.map +1 -1
- package/dist/components/NSTable.d.ts +1 -0
- package/dist/components/NSTable.js +1 -1
- package/dist/components/NSTable.js.map +1 -1
- package/dist/components/NSTable.module.css +8 -2
- package/package.json +1 -1
- package/public/assets/images/export-vector.png +0 -0
- package/public/assets/images/refresh-vector.png +0 -0
- package/src/App.tsx +101 -41
- package/src/components/NSActionMenu.module.css +73 -0
- package/src/components/NSActionMenu.tsx +67 -0
- package/src/components/NSButton.module.css +12 -5
- package/src/components/NSButton.tsx +2 -2
- package/src/components/NSButtonBlue.module.css +1 -0
- package/src/components/NSButtonGreen.module.css +1 -0
- package/src/components/NSButtonRed.module.css +1 -0
- package/src/components/NSCard.module.css +1 -1
- package/src/components/NSInput.module.css +26 -6
- package/src/components/NSInputSearch.tsx +73 -63
- package/src/components/NSLayoutAction.module.css +45 -0
- package/src/components/NSLayoutAction.tsx +62 -0
- package/src/components/NSLink.tsx +2 -2
- package/src/components/NSModal.module.css +0 -0
- package/src/components/NSModal.tsx +21 -0
- package/src/components/NSPanel.module.css +13 -9
- package/src/components/NSSpace.tsx +16 -16
- package/src/components/NSTable.module.css +8 -2
- package/src/components/NSTable.tsx +4 -3
package/dist/App.js
CHANGED
|
@@ -1,36 +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 { NSFooter, NSHeader
|
|
4
|
+
import { NSFooter, NSHeader } from './main';
|
|
5
5
|
export function App() {
|
|
6
|
-
|
|
7
|
-
"id": "ID",
|
|
8
|
-
"project": "Project",
|
|
9
|
-
"level": "Level",
|
|
10
|
-
"message": "Message",
|
|
11
|
-
"cent": "Cent",
|
|
12
|
-
"status": "Status",
|
|
13
|
-
};
|
|
14
|
-
let rows = [{
|
|
15
|
-
id: 1,
|
|
16
|
-
project: "Namirasoft Account",
|
|
17
|
-
level: "Debug",
|
|
18
|
-
message: "Lorem ipsum dolor sit amet, consetetur ",
|
|
19
|
-
cent: "26",
|
|
20
|
-
status: "pending"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
id: 2,
|
|
24
|
-
project: "Namirasoft Account",
|
|
25
|
-
level: "Debug",
|
|
26
|
-
message: "Lorem ipsum dolor sit amet, consetetur ",
|
|
27
|
-
cent: "24",
|
|
28
|
-
status: "Done"
|
|
29
|
-
}
|
|
30
|
-
];
|
|
31
|
-
function getCell(row, column) {
|
|
32
|
-
return row[column];
|
|
33
|
-
}
|
|
34
|
-
return (_jsxs(_Fragment, { children: [_jsx(NSHeader, { name: 'Header', scope: 'Namira Software Corporation', logo: 'https://static.namirasoft.com/image/namirasoft/site/logo/base.png', account: false, style: { backgroundColor: "transparent !important" } }), _jsx("div", { children: _jsx(NSTable, { columns: columns, rows: rows, getCell: getCell, getColumnAttributes: () => { return {}; }, getRowKey: row => row.id.toString() }) }), _jsx(NSFooter, { name: 'Footer', scope: 'Namira Software Corporation', logo: 'https://static.namirasoft.com/image/namirasoft/site/logo/base.png' })] }));
|
|
6
|
+
return (_jsxs(_Fragment, { children: [_jsx(NSHeader, { name: 'Header', scope: 'Namira Software Corporation', logo: 'https://static.namirasoft.com/image/namirasoft/site/logo/base.png', account: false, style: { backgroundColor: "transparent !important" } }), _jsx("div", {}), _jsx(NSFooter, { name: 'Footer', scope: 'Namira Software Corporation', logo: 'https://static.namirasoft.com/image/namirasoft/site/logo/base.png' })] }));
|
|
35
7
|
}
|
|
36
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,
|
|
1
|
+
{"version":3,"file":"App.js","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":";AAAA,OAAO,WAAW,CAAC;AACnB,OAAO,sCAAsC,CAAC;AAC9C,OACC,EACC,QAAQ,EAAE,QAAQ,EAElB,MAAM,QAAQ,CAAC;AA0DjB,MAAM,UAAU,GAAG;IAwCf,OAAO,CACH,8BACI,KAAC,QAAQ,IACL,IAAI,EAAC,QAAQ,EACb,KAAK,EAAC,6BAA6B,EACnC,IAAI,EAAC,mEAAmE,EACxE,OAAO,EAAE,KAAK,EACd,KAAK,EAAE,EAAE,eAAe,EAAE,wBAAwB,EAAE,GACtD,EACF,eAQM,EACN,KAAC,QAAQ,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,6BAA6B,EAAC,IAAI,EAAC,mEAAmE,GAAG,IACxI,CACN,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IBaseComponentProps } from '../main';
|
|
2
|
+
export interface INSActionMenuProps extends IBaseComponentProps {
|
|
3
|
+
group: string;
|
|
4
|
+
items: {
|
|
5
|
+
id: string;
|
|
6
|
+
menu_item: string;
|
|
7
|
+
handler: () => void;
|
|
8
|
+
isActive: () => boolean;
|
|
9
|
+
}[];
|
|
10
|
+
}
|
|
11
|
+
export interface INSActionMenuState {
|
|
12
|
+
isShow: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare function NSActionMenu(props: INSActionMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { NSButtonBlue } from '../main';
|
|
4
|
+
import Styles from './NSActionMenu.module.css';
|
|
5
|
+
export function NSActionMenu(props) {
|
|
6
|
+
const [state, setState] = useState({
|
|
7
|
+
isShow: false
|
|
8
|
+
});
|
|
9
|
+
return (_jsx(_Fragment, { children: props.items.length !== 1 ?
|
|
10
|
+
_jsxs("div", { className: Styles.ns_action_bar, children: [_jsxs("button", { onClick: () => setState((prevState) => (Object.assign(Object.assign({}, prevState), { isShow: !state.isShow }))), children: ["Action Menu", _jsx("img", { className: Styles.ns_action_menu_icon, src: "https://static.namirasoft.com/image/concept/ellipsis/vertical-blue.png", alt: "Icon", width: 8, height: 24 })] }), _jsx("ul", { className: `${Styles.ns_action_item_holder} ${state.isShow ? Styles.ns_show : Styles.ns_hide} `, children: props.items.map((item) => _jsx("li", { onClick: item.handler, className: `${Styles.ns_action_item}
|
|
11
|
+
${item.isActive() ? Styles.ns_active_item : Styles.ns_deActive_item}
|
|
12
|
+
`, children: item.menu_item }, item.id)) })] })
|
|
13
|
+
:
|
|
14
|
+
_jsx(_Fragment, { children: _jsx(NSButtonBlue, { title: props.items[0].menu_item, onClick: props.items[0].handler }) }) }));
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=NSActionMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NSActionMenu.js","sourceRoot":"","sources":["../../src/components/NSActionMenu.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAuB,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,MAAM,MAAM,2BAA2B,CAAC;AAkB/C,MAAM,UAAU,YAAY,CAAC,KAAyB;IAErD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAqB;QACtD,MAAM,EAAE,KAAK;KACb,CAAC,CAAA;IACF,OAAO,CACN,4BACE,KAAK,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;YAE1B,eAAK,SAAS,EAAE,MAAM,CAAC,aAAa,aACnC,kBAAQ,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,iCAC3C,SAAS,KAAE,MAAM,EAAE,CAAC,KAAK,CAAC,MAAM,IAClC,CAAC,4BAEF,cACC,SAAS,EAAE,MAAM,CAAC,mBAAmB,EACrC,GAAG,EAAC,wEAAwE,EAC5E,GAAG,EAAC,MAAM,EACV,KAAK,EAAE,CAAC,EACR,MAAM,EAAE,EAAE,GACT,IACM,EACT,aAAI,SAAS,EAAE,GAAG,MAAM,CAAC,qBAAqB,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,GAAG,YACjG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CACzB,aAEC,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,SAAS,EAAE,GAAG,MAAM,CAAC,cAAc;WAChC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,gBAAgB;UAClE,YAED,IAAI,CAAC,SAAS,IANV,IAAI,CAAC,EAAE,CAOR,CACL,GACG,IACA;YACN,CAAC;gBACD,4BACC,KAAC,YAAY,IACZ,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,EAC/B,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,GAC9B,GACA,GAEF,CACH,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
.ns_action_bar {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
width: 272px;
|
|
5
|
+
color: #000;
|
|
6
|
+
position: relative;
|
|
7
|
+
max-width: 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.ns_action_bar>button {
|
|
11
|
+
border-radius: 8px;
|
|
12
|
+
padding: 10px 12px;
|
|
13
|
+
font-size: 16px;
|
|
14
|
+
font-weight: 400;
|
|
15
|
+
border: 1px solid rgba(47, 0, 236, 0.6) !important;
|
|
16
|
+
max-width: 100%;
|
|
17
|
+
height: max-content !important;
|
|
18
|
+
background: #fff;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
text-align: start;
|
|
21
|
+
color: #141B5C;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.ns_action_menu_icon {
|
|
26
|
+
position: absolute;
|
|
27
|
+
right: 20px;
|
|
28
|
+
top: 12px;
|
|
29
|
+
z-index: 1;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.ns_action_item_holder {
|
|
33
|
+
list-style-type: none;
|
|
34
|
+
padding: 16px 0;
|
|
35
|
+
margin: 0;
|
|
36
|
+
background: #fff;
|
|
37
|
+
border-radius: 8px;
|
|
38
|
+
position: absolute;
|
|
39
|
+
top: 64px;
|
|
40
|
+
left: 0;
|
|
41
|
+
width: 100%;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.ns_action_item {
|
|
45
|
+
height: 40px;
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
font-size: 16px;
|
|
49
|
+
color: #141B5C;
|
|
50
|
+
padding: 0 16px;
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
position: relative;
|
|
53
|
+
z-index: 1;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.ns_action_item:hover {
|
|
57
|
+
background-color: #141B5C66;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.ns_active_item {}
|
|
61
|
+
|
|
62
|
+
.ns_deActive_item {
|
|
63
|
+
color: #D1D1D1;
|
|
64
|
+
cursor: not-allowed;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.ns_show {
|
|
68
|
+
display: block;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.ns_hide {
|
|
72
|
+
display: none;
|
|
73
|
+
}
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import Styles from "./NSButton.module.css";
|
|
3
3
|
export default function NSButton(props) {
|
|
4
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] }));
|
|
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, { width: 24, height: 24 })), props.title] }));
|
|
6
6
|
}
|
|
7
7
|
;
|
|
8
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":";AAAA,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAW3C,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,KAAqB;;IAElD,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,IAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,IAAI,EAC5D,KAAK,CAAC,KAAK,IACN,CACb,CAAC;AACN,CAAC;AAAA,CAAC"}
|
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
.ns_button {
|
|
2
|
-
align-items: center;
|
|
3
2
|
background-color: transparent;
|
|
4
3
|
border-radius: 8px;
|
|
5
|
-
|
|
4
|
+
color: rgba(20, 27, 92, 1);
|
|
6
5
|
font-size: 16px;
|
|
7
|
-
font-weight:
|
|
6
|
+
font-weight: 600;
|
|
8
7
|
height: 48px;
|
|
8
|
+
display: flex;
|
|
9
9
|
justify-content: center;
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: 8px;
|
|
10
12
|
text-decoration: none;
|
|
11
13
|
max-width: 100%;
|
|
14
|
+
transition: all 0.2s ease-in-out;
|
|
12
15
|
width: 100%;
|
|
13
|
-
color: #fff;
|
|
14
|
-
border: 1px solid transparent;
|
|
15
16
|
}
|
|
16
17
|
|
|
18
|
+
.ns_button:hover {
|
|
19
|
+
box-shadow: 0 0 10px 2px rgba(119, 117, 117, 0.4);
|
|
20
|
+
scale: 1.02;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|
|
17
24
|
@media only screen and (min-width: 380px) {
|
|
18
25
|
.ns_button {
|
|
19
26
|
width: 272px;
|
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
.ns_input_parent {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
-
width:
|
|
4
|
+
width: 100%;
|
|
5
5
|
color: #fff;
|
|
6
6
|
position: relative;
|
|
7
|
-
max-width:
|
|
7
|
+
max-width: 272px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.ns_input_container {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: flex-end;
|
|
14
|
+
position: relative;
|
|
15
|
+
width: 100%;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.ns_input_icon_container {
|
|
19
|
+
margin: 0 !important;
|
|
20
|
+
position: absolute;
|
|
21
|
+
right: 12px;
|
|
22
|
+
|
|
8
23
|
}
|
|
9
24
|
|
|
10
25
|
.ns_input {
|
|
@@ -13,10 +28,8 @@
|
|
|
13
28
|
font-size: 16px;
|
|
14
29
|
font-weight: 400;
|
|
15
30
|
border: 1px solid rgba(47, 0, 236, 0.6) !important;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
background: no-repeat 95% center rgba(255, 255, 255, 1);
|
|
19
|
-
|
|
31
|
+
height: 48px;
|
|
32
|
+
width: 100%;
|
|
20
33
|
}
|
|
21
34
|
|
|
22
35
|
.ns_input li {
|
|
@@ -26,4 +39,11 @@
|
|
|
26
39
|
.ns_input_title {
|
|
27
40
|
font-size: 16px;
|
|
28
41
|
font-weight: 400;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
@media only screen and (min-width: 380px) {
|
|
46
|
+
.ns_input {
|
|
47
|
+
max-width: 272px;
|
|
48
|
+
}
|
|
29
49
|
}
|
|
@@ -4,7 +4,6 @@ import React from "react";
|
|
|
4
4
|
import Styles from "./NSInput.module.css";
|
|
5
5
|
import { Validator } from "../Validator";
|
|
6
6
|
import { NSInputErrorNotifier } from "./NSInputErrorNotifier";
|
|
7
|
-
import Background from '../assets/images/icon-input-search.svg';
|
|
8
7
|
export class NSInputSearch extends React.Component {
|
|
9
8
|
constructor(props) {
|
|
10
9
|
var _a;
|
|
@@ -37,7 +36,7 @@ export class NSInputSearch extends React.Component {
|
|
|
37
36
|
}
|
|
38
37
|
render() {
|
|
39
38
|
var _a;
|
|
40
|
-
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: `${Styles.ns_input_parent}
|
|
39
|
+
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: `${Styles.ns_input_parent} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: [_jsxs("span", { className: Styles.ns_input_title, children: [" ", this.props.required && _jsx("span", { style: { color: "red" }, children: "*" }), " ", this.props.title, " "] }), _jsxs("div", { className: Styles.ns_input_container, children: [_jsx("figure", { className: Styles.ns_input_icon_container, children: _jsx("img", { src: "/static/media/icon-input-search.4d82efd478e5b2ebac81964cfb394705.svg", alt: "input-icon", width: 24, height: 24 }) }), _jsx("input", { id: this.props.id, value: this.state.value, onChange: this.onChanged, type: "text", className: Styles.ns_input, placeholder: this.props.placeholder })] })] }), _jsx(NSInputErrorNotifier, { error: this.state.error })] }));
|
|
41
40
|
}
|
|
42
41
|
}
|
|
43
42
|
//# sourceMappingURL=NSInputSearch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSInputSearch.js","sourceRoot":"","sources":["../../src/components/NSInputSearch.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC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,CAAC,KAAK,CAAC,EAAE,EACjB,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,QAAQ,EAAE,IAAI,CAAC,SAAS,EACxB,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,MAAM,CAAC,QAAQ,EAC1B,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,GAElC,IAEG,IACD,EACN,KAAC,oBAAoB,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAI,IAC/C,CACH,CAAC;IACH,CAAC;CACD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { INSLayoutProps } from './NSLayout';
|
|
3
|
+
import { IBaseComponentProps } from '../props/IBaseComponentProps';
|
|
4
|
+
import { INSActionMenuProps } from './NSActionMenu';
|
|
5
|
+
export interface INSLayoutActionProps extends INSLayoutProps, IBaseComponentProps {
|
|
6
|
+
title: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
actions: INSActionMenuProps[];
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare function NSLayoutAction(props: INSLayoutActionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { NSLayout } from './NSLayout';
|
|
3
|
+
import { NSSpace, NSSpaceSizeType } from './NSSpace';
|
|
4
|
+
import Styles from './NSLayoutAction.module.css';
|
|
5
|
+
import { NSActionMenu } from './NSActionMenu';
|
|
6
|
+
export function NSLayoutAction(props) {
|
|
7
|
+
var _a;
|
|
8
|
+
let lines = ((_a = props.description) !== null && _a !== void 0 ? _a : "").split(/(\n|\\n|<br>|<br\s*\/>)/gm);
|
|
9
|
+
const filtered_actions = props.actions.filter((action) => action.group);
|
|
10
|
+
return (_jsxs(NSLayout, Object.assign({}, props, { children: [_jsxs("div", { className: Styles.ns_action_bar_holder, children: [_jsxs("div", { className: Styles.ns_action_bar_title, children: [_jsx("h1", { className: Styles.title, children: props.title }), props.description && lines &&
|
|
11
|
+
_jsxs(_Fragment, { children: [_jsx("p", { className: Styles.description, children: lines.map((line, index) => {
|
|
12
|
+
return _jsxs(_Fragment, { children: [line.trim(), index != lines.length - 1 && _jsx("br", {})] });
|
|
13
|
+
}) }), _jsx(NSSpace, { size: NSSpaceSizeType.MINI })] })] }), _jsx("div", { className: Styles.ns_actions_hodler, children: filtered_actions.map((action) => _jsx(NSActionMenu, { group: action.group, items: action.items }, action.id)) })] }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), props.children] })));
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=NSLayoutAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NSLayoutAction.js","sourceRoot":"","sources":["../../src/components/NSLayoutAction.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAkB,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAErD,OAAO,MAAM,MAAM,6BAA6B,CAAC;AACjD,OAAO,EAAsB,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAUlE,MAAM,UAAU,cAAc,CAAC,KAA2B;;IAEzD,IAAI,KAAK,GAAG,CAAC,MAAA,KAAK,CAAC,WAAW,mCAAI,EAAE,CAAC,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC;IAEzE,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;IAEvE,OAAO,CACN,MAAC,QAAQ,oBAAK,KAAK,eAElB,eAAK,SAAS,EAAE,MAAM,CAAC,oBAAoB,aAC1C,eAAK,SAAS,EAAE,MAAM,CAAC,mBAAmB,aACzC,aAAI,SAAS,EAAE,MAAM,CAAC,KAAK,YAAG,KAAK,CAAC,KAAK,GAAM,EAE9C,KAAK,CAAC,WAAW,IAAI,KAAK;gCAC1B,8BACC,YAAG,SAAS,EAAE,MAAM,CAAC,WAAW,YAE9B,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;gDAEzB,OAAO,8BACL,IAAI,CAAC,IAAI,EAAE,EACX,KAAK,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,cAAM,IAClC,CAAA;4CACJ,CAAC,CAAC,GAEA,EACJ,KAAC,OAAO,IAAC,IAAI,EAAE,eAAe,CAAC,IAAI,GAAI,IACrC,IAEC,EAEN,cAAK,SAAS,EAAE,MAAM,CAAC,iBAAiB,YACtC,gBAAgB,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAChC,KAAC,YAAY,IAEZ,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,KAAK,EAAE,MAAM,CAAC,KAAK,IAFd,MAAM,CAAC,EAAE,CAGb,CACF,GACI,IAED,EACN,KAAC,OAAO,IAAC,IAAI,EAAE,eAAe,CAAC,KAAK,GAAI,EACvC,KAAK,CAAC,QAAQ,KACL,CACX,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
.title {
|
|
2
|
+
text-align: center;
|
|
3
|
+
color: rgba(20, 27, 92, 1);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.description {
|
|
7
|
+
text-align: center;
|
|
8
|
+
color: rgba(20, 27, 92, 1);
|
|
9
|
+
margin: 0px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.ns_action_bar_holder {
|
|
13
|
+
padding: 16px;
|
|
14
|
+
position: sticky;
|
|
15
|
+
top: 0;
|
|
16
|
+
background-color: rgba(20, 27, 92, 0.3);
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: 100%;
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: row;
|
|
21
|
+
flex-wrap: wrap;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
align-items: center;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.ns_actions_hodler {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
flex-direction: row;
|
|
31
|
+
flex-wrap: wrap;
|
|
32
|
+
gap: 16px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@media only screen and (min-width: 768px) {
|
|
36
|
+
.ns_action_bar_holder {
|
|
37
|
+
justify-content: space-between;
|
|
38
|
+
min-height: 80px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.ns_action_bar_title {
|
|
42
|
+
display: flex;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
}
|
|
@@ -2,6 +2,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import Styles from "./NSLink.module.css";
|
|
3
3
|
export function NSLink(props) {
|
|
4
4
|
var _a, _b;
|
|
5
|
-
return (_jsx("div", { id: props.id, className: `${Styles.ns_link_parent} ${(_a = props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`,
|
|
5
|
+
return (_jsx("div", { id: props.id, className: `${Styles.ns_link_parent} ${(_a = props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, children: _jsx("a", { className: `text-white text-decoration-none ${props.title ? Styles.ns_link : Styles.ns_link_absolute}`, href: props.href, target: (_b = props === null || props === void 0 ? void 0 : props.target) !== null && _b !== void 0 ? _b : "_self", style: props.style, children: props.title }) }));
|
|
6
6
|
}
|
|
7
7
|
//# sourceMappingURL=NSLink.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSLink.js","sourceRoot":"","sources":["../../src/components/NSLink.tsx"],"names":[],"mappings":";AAEA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAMzC,MAAM,UAAU,MAAM,CAAC,KAAoB;;IAE1C,OAAO,CACN,cACC,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,SAAS,EAAE,GAAG,MAAM,CAAC,cAAc,IAAI,MAAA,KAAK,CAAC,SAAS,0CAAE,IAAI,CAAC,GAAG,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"NSLink.js","sourceRoot":"","sources":["../../src/components/NSLink.tsx"],"names":[],"mappings":";AAEA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAMzC,MAAM,UAAU,MAAM,CAAC,KAAoB;;IAE1C,OAAO,CACN,cACC,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,SAAS,EAAE,GAAG,MAAM,CAAC,cAAc,IAAI,MAAA,KAAK,CAAC,SAAS,0CAAE,IAAI,CAAC,GAAG,CAAC,EAAE,YAEnE,YACC,SAAS,EAAE,mCAAmC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,gBAAgB,EAAE,EACtG,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,MAAM,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,mCAAI,OAAO,EAChC,KAAK,EAAE,KAAK,CAAC,KAAK,YAEjB,KAAK,CAAC,KAAK,GACT,GACC,CACN,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Styles from './NSModal.module.css';
|
|
3
|
+
export function NSModal() {
|
|
4
|
+
return (_jsx("section", { className: Styles.ns_modal, children: _jsx("div", { className: Styles.ns_modal_container, children: _jsx("img", { src: "", width: 24, height: 24, alt: "close modal" }) }) }));
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=NSModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NSModal.js","sourceRoot":"","sources":["../../src/components/NSModal.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAI1C,MAAM,UAAU,OAAO;IAEtB,OAAO,CACN,kBAAS,SAAS,EAAE,MAAM,CAAC,QAAQ,YAClC,cAAK,SAAS,EAAE,MAAM,CAAC,kBAAkB,YACxC,cACC,GAAG,EAAC,EAAE,EACN,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,GAAG,EAAC,aAAa,GAChB,GACG,GACG,CACV,CAAC;AACH,CAAC"}
|
|
File without changes
|
|
@@ -6,15 +6,7 @@
|
|
|
6
6
|
align-items: center;
|
|
7
7
|
gap: 8px;
|
|
8
8
|
border-radius: 8px;
|
|
9
|
-
margin: 0 auto;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@media only screen and (min-width: 768px) {
|
|
13
|
-
.ns_panel_grid {
|
|
14
|
-
flex-direction: row;
|
|
15
|
-
max-width: 700px;
|
|
16
|
-
flex-wrap: wrap;
|
|
17
|
-
}
|
|
9
|
+
margin: 0 auto;
|
|
18
10
|
}
|
|
19
11
|
|
|
20
12
|
.ns_panel_column {
|
|
@@ -25,10 +17,22 @@ margin: 0 auto;
|
|
|
25
17
|
align-items: center;
|
|
26
18
|
border-radius: 8px;
|
|
27
19
|
margin: 0 auto;
|
|
20
|
+
width: 100%;
|
|
28
21
|
}
|
|
29
22
|
|
|
30
23
|
@media only screen and (min-width: 768px) {
|
|
31
24
|
.ns_panel_column {
|
|
32
25
|
max-width: 700px;
|
|
33
26
|
}
|
|
27
|
+
.ns_panel_grid {
|
|
28
|
+
flex-direction: row;
|
|
29
|
+
max-width: 700px;
|
|
30
|
+
flex-wrap: wrap;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@media only screen and (min-width: 380px) {
|
|
35
|
+
.ns_panel_column {
|
|
36
|
+
width: max-content;
|
|
37
|
+
}
|
|
34
38
|
}
|
|
@@ -14,6 +14,6 @@ export var NSSpaceSizeType;
|
|
|
14
14
|
})(NSSpaceSizeType || (NSSpaceSizeType = {}));
|
|
15
15
|
export function NSSpace(props) {
|
|
16
16
|
var _a;
|
|
17
|
-
return (_jsx("hr", { id: props.id, className: (_a = props.classList) === null || _a === void 0 ? void 0 : _a.join(" "), style: Object.assign(Object.assign({}, props.style), { width: "100%", height: props.size, margin: "0px", padding: "0px", background: "transparent", color: "transparent", border: 0 }) }));
|
|
17
|
+
return (_jsx("hr", { id: props.id, className: (_a = props.classList) === null || _a === void 0 ? void 0 : _a.join(" "), style: Object.assign(Object.assign({}, props.style), { width: "100%", height: props.size, margin: "0px", padding: "0px", background: "transparent", color: "transparent", border: 0, position: "relative", zIndex: -1 }) }));
|
|
18
18
|
}
|
|
19
19
|
//# sourceMappingURL=NSSpace.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSSpace.js","sourceRoot":"","sources":["../../src/components/NSSpace.tsx"],"names":[],"mappings":";AAOA,MAAM,CAAN,IAAY,eAYX;AAZD,WAAY,eAAe;
|
|
1
|
+
{"version":3,"file":"NSSpace.js","sourceRoot":"","sources":["../../src/components/NSSpace.tsx"],"names":[],"mappings":";AAOA,MAAM,CAAN,IAAY,eAYX;AAZD,WAAY,eAAe;IAE1B,+BAAY,CAAA;IACZ,gCAAa,CAAA;IACb,gCAAa,CAAA;IACb,iCAAc,CAAA;IACd,kCAAe,CAAA;IACf,kCAAe,CAAA;IACf,iCAAc,CAAA;IACd,kCAAe,CAAA;IACf,mCAAgB,CAAA;IAChB,qCAAkB,CAAA;AACnB,CAAC,EAZW,eAAe,KAAf,eAAe,QAY1B;AAED,MAAM,UAAU,OAAO,CAAC,KAAoB;;IAE3C,OAAO,CACN,aAAI,EAAE,EAAE,KAAK,CAAC,EAAE,EACf,SAAS,EAAE,MAAA,KAAK,CAAC,SAAS,0CAAE,IAAI,CAAC,GAAG,CAAC,EACrC,KAAK,kCAAO,KAAK,CAAC,KAAK,KAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,CAC9L,CAAC;AACH,CAAC"}
|
|
@@ -11,6 +11,7 @@ export interface INSTableProps<RowType> extends IBaseComponentProps {
|
|
|
11
11
|
[key: string]: string;
|
|
12
12
|
};
|
|
13
13
|
getCell?: (row: RowType, column: string, rowIndex: number, columnIndex: number) => any;
|
|
14
|
+
onClick: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
14
15
|
}
|
|
15
16
|
export interface NSTableState<RowType> {
|
|
16
17
|
columns: {
|
|
@@ -33,7 +33,7 @@ export class NSTable extends Component {
|
|
|
33
33
|
return this.props.getCell(row, column, rowIndex, columnIndex);
|
|
34
34
|
return row[column];
|
|
35
35
|
};
|
|
36
|
-
return (_jsxs("div", { id: this.props.id, className: `container ${Styles.ns_project_list_container} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: [_jsx("section", { className: Styles.ns_search_input, children: _jsx(NSInputSearch, { title: '', required: false, onChanged: this.getValueSearch }) }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsxs("table", { className: Styles.ns_table, children: [_jsx("thead", { className: Styles.ns_thead, children: _jsx("tr", { children: column_keys.map(column_key => _jsx("th", { scope: "col", children: this.state.columns[column_key] }, column_key)) }) }), _jsx("tbody", { className: Styles.ns_tbody, children: this.state.rows.map((row, rowIndex) => _jsx("tr", { onClick: () => this.setState({ modalState: !this.state.modalState }), children: column_keys.map((column, columnIndex) => (_jsx("td", Object.assign({}, getColumnAttributes(column, columnIndex), { "data-label": `${this.state.columns[column]} : `, children: getCell(row, column, rowIndex, columnIndex) })))) }, this.props.getRowKey(row, rowIndex))) })] }), _jsx(NSSpace, { size: NSSpaceSizeType.MICRO }), _jsxs("section", { className: Styles.ns_pagination_button, children: [_jsx(NSPagination, { size: 50, page: 5 }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsxs("div", { className: Styles.ns_button, children: [_jsx(NSButton, { title: 'Export', icon: { src: "/assets/images/export-vector.png" }, onClick: () => { }, style: { border: '1px solid rgba(255, 148, 50, 1)' } }), _jsx(NSButton, { title: 'Refresh', icon: { src: "/assets/images/
|
|
36
|
+
return (_jsxs("div", { id: this.props.id, className: `container ${Styles.ns_project_list_container} ${(_a = this.props.classList) === null || _a === void 0 ? void 0 : _a.join(" ")}`, style: this.props.style, children: [_jsx("section", { className: Styles.ns_search_input, children: _jsx(NSInputSearch, { title: '', required: false, onChanged: this.getValueSearch }) }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsxs("table", { className: Styles.ns_table, children: [_jsx("thead", { className: Styles.ns_thead, children: _jsx("tr", { children: column_keys.map(column_key => _jsx("th", { scope: "col", children: this.state.columns[column_key] }, column_key)) }) }), _jsx("tbody", { className: Styles.ns_tbody, children: this.state.rows.map((row, rowIndex) => _jsx("tr", { onClick: () => this.setState({ modalState: !this.state.modalState }), children: column_keys.map((column, columnIndex) => (_jsx("td", Object.assign({}, getColumnAttributes(column, columnIndex), { "data-label": `${this.state.columns[column]} : `, children: getCell(row, column, rowIndex, columnIndex) })))) }, this.props.getRowKey(row, rowIndex))) })] }), _jsx(NSSpace, { size: NSSpaceSizeType.MICRO }), _jsxs("section", { className: Styles.ns_pagination_button, children: [_jsx(NSPagination, { size: 50, page: 5 }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsxs("div", { className: Styles.ns_button, children: [_jsx(NSButton, { title: 'Export', icon: { src: "/assets/images/export-vector.png" }, onClick: () => { }, style: { border: '1px solid rgba(255, 148, 50, 1)', width: "128px" } }), _jsx(NSButton, { title: 'Refresh', icon: { src: "/assets/images/refresh-vector.png" }, onClick: () => { }, style: { border: '1px solid rgba(3, 119, 255, 1)', width: "128px" } })] })] }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsxs("section", { onClick: () => this.setState({ modalState: !this.state.modalState }), className: Styles.ns_modal, style: { display: this.state.modalState ? "block" : "none" }, children: [_jsx("a", { children: _jsx("img", { src: '/assets/images/close-vector.png' }) }), _jsx("p", { children: "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur vitae diam non enim vestibulum interdum. Duis condimentum augue id magna semper rutrum. Nullam sit amet magna in magna gravida vehicula. Vestibulum erat nulla, ullamcorper nec, rutrum non, nonummy ac, erat. In laoreet, magna id viverra tincidunt, sem odio bibendum justo, vel imperdiet sapien wisi sed libero. Phasellus enim erat, vestibulum vel, aliquam a, posuere eu, velit. Morbi imperdiet, mauris ac auctor dictum, nisl ligula egestas nulla, et sollicitudin sem purus in lacus. Mauris dictum facilisis augue. Phasellus faucibus molestie nisl. Aliquam ante. Nulla accumsan, elit sit amet varius semper, nulla mauris mollis quam, tempor suscipit diam nulla vel leo. In convallis. Phasellus rhoncus.." })] })] }));
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
//# sourceMappingURL=NSTable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NSTable.js","sourceRoot":"","sources":["../../src/components/NSTable.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"NSTable.js","sourceRoot":"","sources":["../../src/components/NSTable.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,M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QAAQ,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,aACnK,sBAAG,cAAK,GAAG,EAAC,iCAAiC,GAAG,GAAI,EACpD,4xBAGI,IACE,IACP,CACV,CAAA;IACL,CAAC;CACJ"}
|
|
@@ -4,6 +4,13 @@
|
|
|
4
4
|
color: rgba(20, 27, 92, 1);
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
+
.ns_search_input{
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-content: space-between;
|
|
10
|
+
align-items: center;
|
|
11
|
+
flex-wrap: wrap;
|
|
12
|
+
}
|
|
13
|
+
|
|
7
14
|
.ns_table thead {
|
|
8
15
|
clip: rect(0 0 0 0);
|
|
9
16
|
position: fixed;
|
|
@@ -41,7 +48,6 @@
|
|
|
41
48
|
flex-direction: row;
|
|
42
49
|
justify-content: space-between;
|
|
43
50
|
align-items: center;
|
|
44
|
-
gap: 48px;
|
|
45
51
|
}
|
|
46
52
|
|
|
47
53
|
/* Modal */
|
|
@@ -128,7 +134,7 @@
|
|
|
128
134
|
flex-direction: row;
|
|
129
135
|
justify-content: space-between;
|
|
130
136
|
align-items: center;
|
|
131
|
-
gap:
|
|
137
|
+
gap: 24px;
|
|
132
138
|
}
|
|
133
139
|
|
|
134
140
|
@media screen and (min-width: 1024px) {
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|