namirasoft-site-react 1.4.405 → 1.4.406

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.
@@ -0,0 +1,39 @@
1
+ .ns_line_text_container {
2
+ display: flex;
3
+ justify-content: center;
4
+ align-items: center;
5
+ margin: 0;
6
+ padding: 0;
7
+ width: 100%;
8
+ }
9
+
10
+ .ns_line_text {
11
+ display: flex;
12
+ align-items: center;
13
+ justify-content: center;
14
+ text-align: center;
15
+ width: 80%;
16
+ }
17
+
18
+ .ns_line_text::before,
19
+ .ns_line_text::after {
20
+ content: '';
21
+ flex: 1;
22
+ position: relative;
23
+ height: 2px;
24
+ }
25
+
26
+ .ns_line_text::before {
27
+ background: linear-gradient(to left, hsla(0, 0%, 0%, .25), #b0b0b03f);
28
+ margin-right: 1em;
29
+ }
30
+
31
+ .ns_line_text::after {
32
+ background: linear-gradient(to right, hsla(0, 0%, 0%, .25), #b0b0b03f);
33
+ margin-left: 1em;
34
+ }
35
+
36
+ .ns_line_text>span {
37
+ color: rgba(20, 27, 92, 1);
38
+ font-weight: bold;
39
+ }
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.4.405",
11
+ "version": "1.4.406",
12
12
  "author": "Amir Abolhasani",
13
13
  "license": "MIT",
14
14
  "main": "./dist/main.js",
package/src/App.tsx CHANGED
@@ -3,10 +3,11 @@ import 'bootstrap/dist/css/bootstrap.min.css';
3
3
  import { NSPanel } from './components/NSPanel';
4
4
  import { NSSection } from './components/NSSection';
5
5
  import { NSLayout } from './components/NSLayout';
6
- import { MoneyFormatter, NSBoxDynamic, NSBoxEntity, NSBoxString, NSButtonBlue, NSColumn, NSDialog, NSFilterBox, NSTable } from './main';
6
+ import { MoneyFormatter, NSBoxDynamic, NSBoxEntity, NSBoxString, NSButtonBlue, NSColumn, NSDialog, NSFilterBox, NSLine, NSTable } from './main';
7
7
  import { FilterItemColumnType } from 'namirasoft-core';
8
8
  import { NSRepeaterNSTag } from './components/NSRepeaterNSTag';
9
9
  import { BaseVariableSchema, StringSchema } from 'namirasoft-schema';
10
+ import { NSLineText } from './components/NSLineText';
10
11
 
11
12
  export function App()
12
13
  {
@@ -68,6 +69,10 @@ export function App()
68
69
  }
69
70
  }}
70
71
  >
72
+ <NSLine />
73
+ <NSLineText
74
+ title='OR'
75
+ ></NSLineText>
71
76
  <NSTable<{ id: string, name: string }>
72
77
  checkbox
73
78
  columns={[
@@ -0,0 +1,39 @@
1
+ .ns_line_text_container {
2
+ display: flex;
3
+ justify-content: center;
4
+ align-items: center;
5
+ margin: 0;
6
+ padding: 0;
7
+ width: 100%;
8
+ }
9
+
10
+ .ns_line_text {
11
+ display: flex;
12
+ align-items: center;
13
+ justify-content: center;
14
+ text-align: center;
15
+ width: 80%;
16
+ }
17
+
18
+ .ns_line_text::before,
19
+ .ns_line_text::after {
20
+ content: '';
21
+ flex: 1;
22
+ position: relative;
23
+ height: 2px;
24
+ }
25
+
26
+ .ns_line_text::before {
27
+ background: linear-gradient(to left, hsla(0, 0%, 0%, .25), #b0b0b03f);
28
+ margin-right: 1em;
29
+ }
30
+
31
+ .ns_line_text::after {
32
+ background: linear-gradient(to right, hsla(0, 0%, 0%, .25), #b0b0b03f);
33
+ margin-left: 1em;
34
+ }
35
+
36
+ .ns_line_text>span {
37
+ color: rgba(20, 27, 92, 1);
38
+ font-weight: bold;
39
+ }
@@ -0,0 +1,18 @@
1
+ import { IBaseComponentProps } from "../props/IBaseComponentProps";
2
+ import Styles from './NSLineText.module.css';
3
+
4
+ export interface NSLineTextProps extends IBaseComponentProps
5
+ {
6
+ title: string;
7
+ }
8
+
9
+ export function NSLineText(props: NSLineTextProps)
10
+ {
11
+ return (
12
+ <div id={props.id} style={props.style} className={`${Styles.ns_line_text_container} `} >
13
+ <div className={`${Styles.ns_line_text} `} >
14
+ <span>OR</span>
15
+ </div>
16
+ </div>
17
+ );
18
+ }
package/src/main.ts CHANGED
@@ -104,6 +104,7 @@ export * from "./components/NSLayout";
104
104
 
105
105
  // Line
106
106
  export * from "./components/NSLine";
107
+ export * from "./components/NSLineText";
107
108
 
108
109
  // Link
109
110
  export * from "./components/NSLink";