hayun-vite 0.10.0 → 0.10.1

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.
@@ -1,13 +1,9 @@
1
- @font-face {
2
- /* src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"); */
3
- src: url('./fonts/Vazirmatn-Regular.woff2') format('woff2');
4
- font-family: vazirmatn;
5
- }
1
+
6
2
  .header1 {
7
3
  user-select: none;
8
4
  /* direction: rtl; */
9
5
  /* text-align: center; */
10
- font-family: vazirmatn;
6
+ font-family: Vazir;
11
7
  font-size: 1.6mm;
12
8
  font-weight: bolder;
13
9
  }
@@ -30,7 +26,7 @@
30
26
  /* text-align: center; */
31
27
  font-family: sans-serif !important;
32
28
 
33
- /* font-family: vazirmatn; */
29
+ /* font-family: Vazir; */
34
30
  font-size: 1mm;
35
31
  font-weight: bold;
36
32
  }
@@ -38,7 +34,7 @@
38
34
  user-select: none;
39
35
  direction: rtl;
40
36
  /* text-align: center; */
41
- font-family: vazirmatn;
37
+ font-family: Vazir;
42
38
  font-size: 1mm;
43
39
  /* font-weight: bold; */
44
40
  }
@@ -84,7 +80,7 @@ input {
84
80
  user-select: none;
85
81
  direction: rtl;
86
82
  text-align: right;
87
- font-family: vazirmatn;
83
+ font-family: Vazir;
88
84
  font-size: 0.9mm;
89
85
  font-weight: bold;
90
86
  }
package/assets/styles.css CHANGED
@@ -1,13 +1,9 @@
1
- @font-face {
2
- /* src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"); */
3
- src: url('/fonts/Vazirmatn-Regular.woff2') format('woff2');
4
- font-family: vazirmatn;
5
- }
1
+
6
2
  .header1 {
7
3
  user-select: none;
8
4
  /* direction: rtl; */
9
5
  /* text-align: center; */
10
- font-family: vazirmatn;
6
+ font-family: Vazir;
11
7
  font-size: 1.6mm;
12
8
  font-weight: bolder;
13
9
  }
@@ -30,7 +26,7 @@
30
26
  /* text-align: center; */
31
27
  font-family: sans-serif !important;
32
28
 
33
- /* font-family: vazirmatn; */
29
+ /* font-family: Vazir; */
34
30
  font-size: 1mm;
35
31
  font-weight: bold;
36
32
  }
@@ -38,7 +34,7 @@
38
34
  user-select: none;
39
35
  direction: rtl;
40
36
  /* text-align: center; */
41
- font-family: vazirmatn;
37
+ font-family: Vazir;
42
38
  font-size: 1mm;
43
39
  /* font-weight: bold; */
44
40
  }
@@ -84,7 +80,7 @@ input {
84
80
  user-select: none;
85
81
  direction: rtl;
86
82
  text-align: right;
87
- font-family: vazirmatn;
83
+ font-family: Vazir;
88
84
  font-size: 0.9mm;
89
85
  font-weight: bold;
90
86
  }
@@ -168,7 +168,7 @@ const template_combo = {
168
168
  height = this.header.height = this.getHeight(this.header)
169
169
 
170
170
  style = `
171
- font-family: vazirmatn, Helvetica, sans-serif !important;
171
+ font-family: Vazir, Helvetica, sans-serif !important;
172
172
  font-size: 1.5mm;
173
173
  font-weight: bold;
174
174
  text-anchor: start; /*تراز افقی*/
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hayun-vite",
3
3
  "private": false,
4
- "version": "0.10.0",
4
+ "version": "0.10.1",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -34,7 +34,7 @@ export default class Header {
34
34
  user-select: none;
35
35
  direction: rtl;
36
36
  /* text-align: center; */
37
- font-family: vazirmatn;
37
+ font-family: Vazir;
38
38
  font-size: 0.8mm;
39
39
  font-weight: bolder;
40
40
  text-anchor: start; /*تراز افقی*/
@@ -4,10 +4,62 @@ export default function printForm({ container }) {
4
4
  iframe.style.display = "block";
5
5
  let style = `
6
6
  @font-face {
7
- font-family: vazirmatn;
8
- src:
9
- url("/fonts/Vazirmatn-Regular.woff2") format("woff2"),
10
- url('/fonts/Vazirmatn-Regular.woff') format('woff');
7
+ font-family: 'Vazir';
8
+ src: url('/fonts/Vazir-Black-UI.woff2') format('woff2'),
9
+ url('/fonts/Vazir-Black-UI.woff') format('woff'),
10
+ url('/fonts/Vazir-Black-UI.eot') format('embedded-opentype');
11
+ font-weight: 900;
12
+ font-style: normal;
13
+ font-display: swap;
14
+ }
15
+
16
+ @font-face {
17
+ font-family: 'Vazir';
18
+ src: url('/fonts/Vazir-Bold-UI.woff2') format('woff2'),
19
+ url('/fonts/Vazir-Bold-UI.woff') format('woff'),
20
+ url('/fonts/Vazir-Bold-UI.eot') format('embedded-opentype');
21
+ font-weight: 700;
22
+ font-style: normal;
23
+ font-display: swap;
24
+ }
25
+
26
+ @font-face {
27
+ font-family: 'Vazir';
28
+ src: url('/fonts/Vazir-Medium-UI.woff2') format('woff2'),
29
+ url('/fonts/Vazir-Medium-UI.woff') format('woff'),
30
+ url('/fonts/Vazir-Medium-UI.eot') format('embedded-opentype');
31
+ font-weight: 500;
32
+ font-style: normal;
33
+ font-display: swap;
34
+ }
35
+
36
+ @font-face {
37
+ font-family: 'Vazir';
38
+ src: url('/fonts/Vazir-Regular-UI.woff2') format('woff2'),
39
+ url('/fonts/Vazir-Regular-UI.woff') format('woff'),
40
+ url('/fonts/Vazir-Regular-UI.eot') format('embedded-opentype');
41
+ font-weight: 400;
42
+ font-style: normal;
43
+ font-display: swap;
44
+ }
45
+
46
+ @font-face {
47
+ font-family: 'Vazir';
48
+ src: url('/fonts/Vazir-Light-UI.woff2') format('woff2'),
49
+ url('/fonts/Vazir-Light-UI.woff') format('woff'),
50
+ url('/fonts/Vazir-Light-UI.eot') format('embedded-opentype');
51
+ font-weight: 300;
52
+ font-style: normal;
53
+ font-display: swap;
54
+ }
55
+
56
+ @font-face {
57
+ font-family: 'Vazir';
58
+ src: url('/fonts/Vazir-Thin-UI.woff2') format('woff2'),
59
+ url('/fonts/Vazir-Thin-UI.woff') format('woff'),
60
+ url('/fonts/Vazir-Thin-UI.eot') format('embedded-opentype');
61
+ font-weight: 100;
62
+ font-style: normal;
11
63
  font-display: swap;
12
64
  }
13
65
 
@@ -61,7 +113,7 @@ export default function printForm({ container }) {
61
113
  }
62
114
 
63
115
  .persian {
64
- font-family: "Vazirmatn";
116
+ font-family: "Vazir";
65
117
 
66
118
 
67
119
  }
package/src/styles.css CHANGED
@@ -1,11 +1,71 @@
1
1
  @font-face {
2
+ font-family: 'Vazir';
3
+ src: url('/fonts/Vazir-Black-UI.woff2') format('woff2'),
4
+ url('/fonts/Vazir-Black-UI.woff') format('woff'),
5
+ url('/fonts/Vazir-Black-UI.eot') format('embedded-opentype');
6
+ font-weight: 900;
7
+ font-style: normal;
8
+ font-display: swap;
9
+ }
10
+
11
+ @font-face {
12
+ font-family: 'Vazir';
13
+ src: url('/fonts/Vazir-Bold-UI.woff2') format('woff2'),
14
+ url('/fonts/Vazir-Bold-UI.woff') format('woff'),
15
+ url('/fonts/Vazir-Bold-UI.eot') format('embedded-opentype');
16
+ font-weight: 700;
17
+ font-style: normal;
18
+ font-display: swap;
19
+ }
20
+
21
+ @font-face {
22
+ font-family: 'Vazir';
23
+ src: url('/fonts/Vazir-Medium-UI.woff2') format('woff2'),
24
+ url('/fonts/Vazir-Medium-UI.woff') format('woff'),
25
+ url('/fonts/Vazir-Medium-UI.eot') format('embedded-opentype');
26
+ font-weight: 500;
27
+ font-style: normal;
28
+ font-display: swap;
29
+ }
30
+
31
+ @font-face {
32
+ font-family: 'Vazir';
33
+ src: url('/fonts/Vazir-Regular-UI.woff2') format('woff2'),
34
+ url('/fonts/Vazir-Regular-UI.woff') format('woff'),
35
+ url('/fonts/Vazir-Regular-UI.eot') format('embedded-opentype');
36
+ font-weight: 400;
37
+ font-style: normal;
38
+ font-display: swap;
39
+ }
40
+
41
+ @font-face {
42
+ font-family: 'Vazir';
43
+ src: url('/fonts/Vazir-Light-UI.woff2') format('woff2'),
44
+ url('/fonts/Vazir-Light-UI.woff') format('woff'),
45
+ url('/fonts/Vazir-Light-UI.eot') format('embedded-opentype');
46
+ font-weight: 300;
47
+ font-style: normal;
48
+ font-display: swap;
49
+ }
50
+
51
+ @font-face {
52
+ font-family: 'Vazir';
53
+ src: url('/fonts/Vazir-Thin-UI.woff2') format('woff2'),
54
+ url('/fonts/Vazir-Thin-UI.woff') format('woff'),
55
+ url('/fonts/Vazir-Thin-UI.eot') format('embedded-opentype');
56
+ font-weight: 100;
57
+ font-style: normal;
58
+ font-display: swap;
59
+ }
60
+
61
+ /* @font-face {
2
62
  font-family: 'Vazirmatn';
3
63
  src: url('fonts/webfonts/Vazirmatn[wght].woff2') format('woff2 supports variations'),
4
64
  url('fonts/webfonts/Vazirmatn[wght].woff2') format('woff2-variations');
5
65
  font-weight: 100 900;
6
66
  font-style: normal;
7
67
  font-display: swap;
8
- }
68
+ } */
9
69
 
10
70
  /* @font-face {
11
71
  font-family: vazirmatn;
@@ -25,7 +85,7 @@
25
85
  }
26
86
 
27
87
  .persian {
28
- font-family: vazirmatn;
88
+ font-family: Vazir;
29
89
  /* font-size: 0.8mm; */
30
90
  /* text-anchor: start; */
31
91
 
@@ -58,7 +118,7 @@
58
118
  .right {
59
119
  /* background-color: lightgreen; */
60
120
  margin-left: 10px;
61
-
121
+
62
122
  /* padding: 20px; */
63
123
  }
64
124
 
@@ -1,117 +0,0 @@
1
-
2
-
3
- button {
4
- background-color: #4CAF50;
5
- /* Green background */
6
- border: none;
7
- /* Remove borders */
8
- color: white;
9
- /* White text */
10
- padding: 15px 32px;
11
- /* Some padding */
12
- text-align: center;
13
- /* Centered text */
14
- text-decoration: none;
15
- /* Remove underline */
16
- display: inline-block;
17
- /* Make the button inline */
18
- font-size: 16px;
19
- /* Increase font size */
20
- margin: 4px 2px;
21
- /* Add some margin */
22
- cursor: pointer;
23
- /* Pointer cursor on hover */
24
- border-radius: 8px;
25
- /* Rounded corners */
26
- transition: background-color 0.3s;
27
- /* Smooth transition */
28
- }
29
-
30
- button:hover {
31
- background-color: #45a049;
32
- /* Darker green on hover */
33
- }
34
-
35
- button:active {
36
- background-color: #3e8e41;
37
- /* Even darker green when clicked */
38
- }
39
-
40
-
41
- .header1 {
42
- user-select: none;
43
- /* direction: rtl; */
44
- /* text-align: center; */
45
- font-family: vazirmatn;
46
- font-size: 1.6mm;
47
- font-weight: bolder;
48
- }
49
- .header2 {
50
- user-select: none;
51
- direction: rtl;
52
- /* text-align: center; */
53
- text-anchor: middle;
54
- /* font-family: sans-serif, Helvetica, Arial;*/
55
- /* font-family: Verdana, Geneva, Tahoma, sans-serif; */
56
- font-family: sans-serif !important;
57
- font-family: 'Courier New', Courier, monospace;
58
- font-size: 1.1mm;
59
- font-weight: bold;
60
- }
61
- .header3 {
62
- user-select: none;
63
- /* direction: rtl; */
64
- /* text-align: center; */
65
- font-family: sans-serif !important;
66
-
67
- /* font-family: vazirmatn; */
68
- font-size: 1mm;
69
- font-weight: bold;
70
- }
71
- .header4 {
72
- user-select: none;
73
- direction: rtl;
74
- /* text-align: center; */
75
- font-family: vazirmatn;
76
- font-size: 1mm;
77
- /* font-weight: bold; */
78
- }
79
- .tymp1 {
80
- user-select: none;
81
- direction: ltr !important;
82
- /* text-align: center; */
83
- font-family: Arial, Helvetica, sans-serif !important;
84
- font-size: 1mm;
85
- /* font-weight: bold; */
86
- }
87
- .tymp2 {
88
- user-select: none;
89
- direction: ltr !important;
90
- /* text-align: center; */
91
- font-family: Arial, Helvetica, sans-serif !important;
92
- font-size: 0.8mm;
93
- /* font-weight: bold; */
94
- }
95
- /* .mizoon {
96
- display: table;
97
- margin-right: auto;
98
- margin-left: auto;
99
-
100
- } */
101
-
102
- /* input {
103
- display: block;
104
- width: 60%;
105
- border: 1px solid antiquewhite;
106
- padding: 10px 10px;
107
- margin: 10px auto 10px auto;
108
- } */
109
- .header5 {
110
- /* font: 1.5px Verdana, Helvetica, Arial, sans-serif; */
111
- user-select: none;
112
- direction: rtl;
113
- text-align: right;
114
- font-family: vazirmatn;
115
- font-size: 0.9mm;
116
- font-weight: bold;
117
- }
package/src/note.html DELETED
@@ -1,64 +0,0 @@
1
- @font-face {
2
- font-family: vazirmatn;
3
- src:
4
- url("../fonts/Vazirmatn-Regular.woff2") format("woff2"),
5
- url('../fonts/Vazirmatn-Regular.woff') format('woff');
6
- }
7
- @page {
8
- size: a4;
9
- margin: 0;
10
- padding: 0;
11
- break-inside: avoid;
12
- height: 100%;
13
- }
14
- @media print {
15
- header,
16
- footer {
17
- display: none;
18
- }
19
-
20
- button {
21
- display: none !important;
22
- }
23
-
24
- svg {
25
- max-width: 400px;
26
- scrollbar-width: 400px;
27
- overflow-block:scroll;
28
- margin: 0;
29
- padding: 0;
30
- break-inside: avoid;
31
- }
32
-
33
- body {
34
- margin: 0;
35
- padding: 0;
36
- break-inside: avoid;
37
- }
38
-
39
- html {
40
- margin: 0;
41
- padding: 0;
42
- break-inside: avoid;
43
- }
44
-
45
- }
46
-
47
- .text-box {
48
- font-size: 0.8mm;
49
- direction: rtl !important;
50
- user-select: none;
51
- }
52
-
53
- .persian {
54
- font-family: Roboto;
55
- font-size: 1.2mm;
56
- }
57
-
58
- .align {
59
- text-anchor: start;
60
- }
61
-
62
- .bold {
63
- font-weight: bold;
64
- }