@bookipi/htmlgenerator 1.0.0 → 1.0.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.
- package/README.md +13 -3
- package/assets/css/invoicePreview.css +172 -0
- package/dist/index.css +392 -35
- package/dist/index.js +6 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6 -7
- package/dist/index.modern.js.map +1 -1
- package/package.json +8 -4
package/dist/index.css
CHANGED
|
@@ -1,50 +1,407 @@
|
|
|
1
|
-
|
|
1
|
+
._invoicePreview__invoice-preview__30UWJ ._invoicePreview__invoice-body__1oQ_s {
|
|
2
|
+
background: #fff;
|
|
3
|
+
padding: 50px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
._invoicePreview__invoice-preview__30UWJ ._invoicePreview__invoice-company__2mX3N {
|
|
7
|
+
font-size: 20px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
._invoicePreview__invoice-preview__30UWJ ._invoicePreview__invoice-header__28p14 {
|
|
11
|
+
margin: 0 -50px;
|
|
12
|
+
background: #f0f3f4;
|
|
13
|
+
padding: 30px 62px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
._invoicePreview__invoice-preview__30UWJ ._invoicePreview__invoice-date__2LUQt,
|
|
17
|
+
._invoicePreview__invoice-preview__30UWJ ._invoicePreview__invoice-from__1UkYT,
|
|
18
|
+
._invoicePreview__invoice-preview__30UWJ ._invoicePreview__invoice-to__3-nTk {
|
|
19
|
+
display: table-cell;
|
|
20
|
+
width: 1%;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
._invoicePreview__invoice-preview__30UWJ ._invoicePreview__invoice-from__1UkYT,
|
|
24
|
+
._invoicePreview__invoice-preview__30UWJ ._invoicePreview__invoice-to__3-nTk {
|
|
25
|
+
padding-right: 20px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
._invoicePreview__invoice-preview__30UWJ ._invoicePreview__invoice-date__2LUQt ._invoicePreview__date__1ApIr,
|
|
29
|
+
._invoicePreview__invoice-preview__30UWJ ._invoicePreview__invoice-from__1UkYT strong,
|
|
30
|
+
._invoicePreview__invoice-preview__30UWJ ._invoicePreview__invoice-to__3-nTk strong {
|
|
31
|
+
font-size: 16px;
|
|
32
|
+
font-weight: 600;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
._invoicePreview__invoice-preview__30UWJ ._invoicePreview__invoice-date__2LUQt {
|
|
36
|
+
text-align: right;
|
|
37
|
+
padding-left: 20px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
#_invoicePreview__invoice__39zb- ._invoicePreview__invoice-price__3iPKt {
|
|
41
|
+
/* background: #f0f3f4; */
|
|
42
|
+
display: table;
|
|
43
|
+
width: 100%;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
._invoicePreview__invoice-preview__30UWJ ._invoicePreview__invoice-price__3iPKt ._invoicePreview__invoice-price-left__t9mDj,
|
|
47
|
+
._invoicePreview__invoice-preview__30UWJ ._invoicePreview__invoice-price__3iPKt ._invoicePreview__invoice-price-right__1Ys9L {
|
|
48
|
+
display: table-cell;
|
|
49
|
+
padding: 20px;
|
|
50
|
+
padding-right: 12px;
|
|
51
|
+
padding-bottom: 16px;
|
|
52
|
+
font-size: 20px;
|
|
53
|
+
font-weight: 600;
|
|
54
|
+
width: 70%;
|
|
55
|
+
position: relative;
|
|
56
|
+
vertical-align: middle;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
._invoicePreview__invoice-preview__30UWJ ._invoicePreview__invoice-price__3iPKt ._invoicePreview__invoice-price-left__t9mDj ._invoicePreview__sub-price__1r9sU {
|
|
60
|
+
display: table-cell;
|
|
61
|
+
vertical-align: middle;
|
|
62
|
+
padding: 0 20px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
._invoicePreview__invoice-preview__30UWJ ._invoicePreview__invoice-price__3iPKt small {
|
|
66
|
+
font-size: 12px;
|
|
67
|
+
font-weight: 400;
|
|
68
|
+
display: block;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
._invoicePreview__invoice-preview__30UWJ ._invoicePreview__invoice-price__3iPKt ._invoicePreview__invoice-price-row__3iG7H {
|
|
72
|
+
display: table;
|
|
73
|
+
float: left;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
._invoicePreview__invoice-preview__30UWJ ._invoicePreview__invoice-price__3iPKt ._invoicePreview__invoice-price-right__1Ys9L {
|
|
77
|
+
width: 30%;
|
|
78
|
+
background: #2d353c;
|
|
79
|
+
color: #fff;
|
|
80
|
+
font-size: 28px;
|
|
81
|
+
text-align: right;
|
|
82
|
+
vertical-align: bottom;
|
|
83
|
+
font-weight: 300;
|
|
84
|
+
margin-right: -10px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
._invoicePreview__invoice-preview__30UWJ ._invoicePreview__invoice-price__3iPKt ._invoicePreview__invoice-price-right__1Ys9L small {
|
|
88
|
+
display: block;
|
|
89
|
+
opacity: 0.7;
|
|
90
|
+
position: absolute;
|
|
91
|
+
top: 10px;
|
|
92
|
+
left: 12px;
|
|
93
|
+
font-size: 15px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
._invoicePreview__invoice-preview__30UWJ ._invoicePreview__invoice-footer__3TrAQ {
|
|
97
|
+
border-top: 1px solid #ddd;
|
|
98
|
+
padding-top: 10px;
|
|
99
|
+
font-size: 10px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
._invoicePreview__invoice-preview__30UWJ ._invoicePreview__invoice-note__2ccW3 {
|
|
103
|
+
color: #999;
|
|
104
|
+
margin-top: 80px;
|
|
105
|
+
font-size: 85%;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
._invoicePreview__invoice-preview__30UWJ ._invoicePreview__invoice-body__1oQ_s > div:not(._invoicePreview__invoice-footer__3TrAQ) {
|
|
109
|
+
margin-bottom: 20px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
._invoicePreview__invoice-preview__30UWJ ._invoicePreview__btn__2vgRz._invoicePreview__btn-white__37Hdx, ._invoicePreview__btn__2vgRz._invoicePreview__btn-white__37Hdx._invoicePreview__disabled__2XSgZ, ._invoicePreview__btn__2vgRz._invoicePreview__btn-white__37Hdx._invoicePreview__disabled__2XSgZ:focus, ._invoicePreview__btn__2vgRz._invoicePreview__btn-white__37Hdx._invoicePreview__disabled__2XSgZ:hover, ._invoicePreview__btn__2vgRz._invoicePreview__btn-white__37Hdx[disabled], ._invoicePreview__btn__2vgRz._invoicePreview__btn-white__37Hdx[disabled]:focus, ._invoicePreview__btn__2vgRz._invoicePreview__btn-white__37Hdx[disabled]:hover {
|
|
113
|
+
color: #2d353c;
|
|
114
|
+
background: #fff;
|
|
115
|
+
border-color: #d9dfe3;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
._invoicePreview__invoice-preview__30UWJ ._invoicePreview__table-inline-block__3snPg {
|
|
119
|
+
display: inline-block;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
._invoicePreview__invoice-preview__30UWJ #_invoicePreview__invoice-logo__19x0i {
|
|
123
|
+
max-width: 100%;
|
|
124
|
+
/*max-height: 150px;*/
|
|
125
|
+
display: block;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@media print {
|
|
129
|
+
body, page {
|
|
130
|
+
/* width: 21cm; */
|
|
131
|
+
/* margin: 0; */
|
|
132
|
+
box-shadow: 0;
|
|
133
|
+
background-color: #fff;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* .invoice-body {
|
|
137
|
+
padding:10;
|
|
138
|
+
} */
|
|
139
|
+
._invoicePreview__invoice-preview__30UWJ {
|
|
140
|
+
width: 100%;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
._invoicePreview__invoice-price__3iPKt ._invoicePreview__invoice-price-right__1Ys9L {
|
|
144
|
+
background: #f0f3f4;
|
|
145
|
+
color: black;
|
|
146
|
+
border: 2px solid #f0f3f4;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
._invoicePreview__print__2DAwW {
|
|
150
|
+
width: 100% !important;
|
|
151
|
+
max-width: 100% !important;
|
|
152
|
+
flex: 0 0 100% !important;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
@media only screen {
|
|
156
|
+
._invoicePreview__invoice-preview__30UWJ {
|
|
157
|
+
margin-top: 10px;
|
|
158
|
+
max-width: 28cm;
|
|
159
|
+
zoom: 0.8;
|
|
160
|
+
box-shadow: 0 0 0.5cm rgba(0, 0, 0, 0.2);
|
|
161
|
+
/*box-shadow: 0 0 0.5cm rgba(0,0,0,0.2);*/
|
|
162
|
+
margin-right: auto;
|
|
163
|
+
margin-left: auto;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
._invoicePreview__invoice-preview__30UWJ ._invoicePreview__table-small__3d4gA td {
|
|
167
|
+
padding: 8px 12px;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
._invoicePreview__invoice-preview__30UWJ ._invoicePreview__table-invoice-header__2oa2d {
|
|
171
|
+
background: #f0f3f4;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
._invoicePreview__invoice-preview__30UWJ h1, h2, h3, h4 {
|
|
175
|
+
margin-top: 15px;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
._invoicePreview__invoice-preview__30UWJ h1 {
|
|
179
|
+
font-size: 27px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
._invoicePreview__invoice-preview__30UWJ h2 {
|
|
183
|
+
font-size: 22px;
|
|
184
|
+
}
|
|
185
|
+
._invoicePreview__invoice-preview__1Qqwo ._invoicePreview__invoice-body__1T6dL {
|
|
186
|
+
background: #fff;
|
|
187
|
+
padding: 50px
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
._invoicePreview__invoice-preview__1Qqwo ._invoicePreview__invoice-company__H9rKS {
|
|
191
|
+
font-size: 20px
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
._invoicePreview__invoice-preview__1Qqwo ._invoicePreview__invoice-header__NZVuU {
|
|
195
|
+
margin: 0 -50px;
|
|
196
|
+
background: #f0f3f4;
|
|
197
|
+
padding: 30px 62px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
._invoicePreview__invoice-preview__1Qqwo ._invoicePreview__invoice-date__1nzWi,
|
|
201
|
+
._invoicePreview__invoice-preview__1Qqwo ._invoicePreview__invoice-from__CZ0Om,
|
|
202
|
+
._invoicePreview__invoice-preview__1Qqwo ._invoicePreview__invoice-to__2PcW5 {
|
|
203
|
+
display: table-cell;
|
|
204
|
+
width: 1%
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
._invoicePreview__invoice-preview__1Qqwo ._invoicePreview__invoice-from__CZ0Om,
|
|
208
|
+
._invoicePreview__invoice-preview__1Qqwo ._invoicePreview__invoice-to__2PcW5 {
|
|
209
|
+
padding-right: 20px
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
._invoicePreview__invoice-preview__1Qqwo ._invoicePreview__invoice-date__1nzWi ._invoicePreview__date__39Vc3,
|
|
213
|
+
._invoicePreview__invoice-preview__1Qqwo ._invoicePreview__invoice-from__CZ0Om strong,
|
|
214
|
+
._invoicePreview__invoice-preview__1Qqwo ._invoicePreview__invoice-to__2PcW5 strong {
|
|
215
|
+
font-size: 16px;
|
|
216
|
+
font-weight: 600
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
._invoicePreview__invoice-preview__1Qqwo ._invoicePreview__invoice-date__1nzWi {
|
|
220
|
+
text-align: right;
|
|
221
|
+
padding-left: 20px
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
#_invoicePreview__invoice__3Co11 ._invoicePreview__invoice-price__UW8D2 {
|
|
225
|
+
/* background: #f0f3f4; */
|
|
226
|
+
display: table;
|
|
227
|
+
width: 100%
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
._invoicePreview__invoice-preview__1Qqwo ._invoicePreview__invoice-price__UW8D2 ._invoicePreview__invoice-price-left__25qZn,
|
|
231
|
+
._invoicePreview__invoice-preview__1Qqwo ._invoicePreview__invoice-price__UW8D2 ._invoicePreview__invoice-price-right__1qNvn {
|
|
232
|
+
display: table-cell;
|
|
233
|
+
padding: 20px;
|
|
234
|
+
padding-right: 12px;
|
|
235
|
+
padding-bottom: 16px;
|
|
236
|
+
font-size: 20px;
|
|
237
|
+
font-weight: 600;
|
|
238
|
+
width: 70%;
|
|
239
|
+
position: relative;
|
|
240
|
+
vertical-align: middle
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
._invoicePreview__invoice-preview__1Qqwo ._invoicePreview__invoice-price__UW8D2 ._invoicePreview__invoice-price-left__25qZn ._invoicePreview__sub-price__21akj {
|
|
244
|
+
display: table-cell;
|
|
245
|
+
vertical-align: middle;
|
|
246
|
+
padding: 0 20px
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
._invoicePreview__invoice-preview__1Qqwo ._invoicePreview__invoice-price__UW8D2 small {
|
|
250
|
+
font-size: 12px;
|
|
251
|
+
font-weight: 400;
|
|
252
|
+
display: block
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
._invoicePreview__invoice-preview__1Qqwo ._invoicePreview__invoice-price__UW8D2 ._invoicePreview__invoice-price-row__1n0u9 {
|
|
256
|
+
display: table;
|
|
257
|
+
float: left
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
._invoicePreview__invoice-preview__1Qqwo ._invoicePreview__invoice-price__UW8D2 ._invoicePreview__invoice-price-right__1qNvn {
|
|
261
|
+
width: 30%;
|
|
262
|
+
background: #2d353c;
|
|
263
|
+
color: #fff;
|
|
264
|
+
font-size: 28px;
|
|
265
|
+
text-align: right;
|
|
266
|
+
vertical-align: bottom;
|
|
267
|
+
font-weight: 300;
|
|
268
|
+
margin-right: -10px;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
._invoicePreview__invoice-preview__1Qqwo ._invoicePreview__invoice-price__UW8D2 ._invoicePreview__invoice-price-right__1qNvn small {
|
|
272
|
+
display: block;
|
|
273
|
+
opacity: .7;
|
|
274
|
+
position: absolute;
|
|
275
|
+
top: 10px;
|
|
276
|
+
left: 12px;
|
|
277
|
+
font-size: 15px
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
._invoicePreview__invoice-preview__1Qqwo ._invoicePreview__invoice-footer__sAYTP {
|
|
281
|
+
border-top: 1px solid #ddd;
|
|
282
|
+
padding-top: 10px;
|
|
283
|
+
font-size: 10px
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
._invoicePreview__invoice-preview__1Qqwo ._invoicePreview__invoice-note__Kswa2 {
|
|
287
|
+
color: #999;
|
|
288
|
+
margin-top: 80px;
|
|
289
|
+
font-size: 85%
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
._invoicePreview__invoice-preview__1Qqwo ._invoicePreview__invoice-body__1T6dL > div:not(._invoicePreview__invoice-footer__sAYTP) {
|
|
293
|
+
margin-bottom: 20px
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
._invoicePreview__invoice-preview__1Qqwo ._invoicePreview__btn__1-NGs._invoicePreview__btn-white__3OxUj, ._invoicePreview__btn__1-NGs._invoicePreview__btn-white__3OxUj._invoicePreview__disabled__238AS, ._invoicePreview__btn__1-NGs._invoicePreview__btn-white__3OxUj._invoicePreview__disabled__238AS:focus, ._invoicePreview__btn__1-NGs._invoicePreview__btn-white__3OxUj._invoicePreview__disabled__238AS:hover, ._invoicePreview__btn__1-NGs._invoicePreview__btn-white__3OxUj[disabled], ._invoicePreview__btn__1-NGs._invoicePreview__btn-white__3OxUj[disabled]:focus, ._invoicePreview__btn__1-NGs._invoicePreview__btn-white__3OxUj[disabled]:hover {
|
|
297
|
+
color: #2d353c;
|
|
298
|
+
background: #fff;
|
|
299
|
+
border-color: #d9dfe3;
|
|
300
|
+
}
|
|
301
|
+
._invoicePreview__invoice-preview__1Qqwo ._invoicePreview__table-inline-block__3dE6J{
|
|
302
|
+
display: inline-block;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
._invoicePreview__invoice-preview__1Qqwo #_invoicePreview__invoice-logo__1Iizt {
|
|
306
|
+
max-width: 100%;
|
|
307
|
+
/*max-height: 150px;*/
|
|
308
|
+
display: block
|
|
309
|
+
}
|
|
310
|
+
@media print {
|
|
311
|
+
body, page {
|
|
312
|
+
/* width: 21cm; */
|
|
313
|
+
/* margin: 0; */
|
|
314
|
+
box-shadow: 0;
|
|
315
|
+
background-color: #fff
|
|
316
|
+
}
|
|
317
|
+
/* .invoice-body {
|
|
318
|
+
padding:10;
|
|
319
|
+
} */
|
|
320
|
+
._invoicePreview__invoice-preview__1Qqwo {
|
|
321
|
+
width:100%
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
._invoicePreview__invoice-price__UW8D2 ._invoicePreview__invoice-price-right__1qNvn {
|
|
325
|
+
background: #f0f3f4;
|
|
326
|
+
color: black;
|
|
327
|
+
border: 2px solid #f0f3f4;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
._invoicePreview__print__2QZYO {
|
|
331
|
+
width: 100% !important;
|
|
332
|
+
max-width: 100% !important;
|
|
333
|
+
flex: 0 0 100% !important;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
@media only screen {
|
|
338
|
+
._invoicePreview__invoice-preview__1Qqwo {
|
|
339
|
+
margin-top:10px;
|
|
340
|
+
max-width:28cm;
|
|
341
|
+
zoom: 0.8;
|
|
342
|
+
box-shadow: 0 0 0.5cm rgba(0,0,0,0.2);
|
|
343
|
+
/*box-shadow: 0 0 0.5cm rgba(0,0,0,0.2);*/
|
|
344
|
+
margin-right:auto;margin-left:auto;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
._invoicePreview__invoice-preview__1Qqwo ._invoicePreview__table-small__1F7W3 td{
|
|
349
|
+
padding: 8px 12px
|
|
350
|
+
}
|
|
351
|
+
._invoicePreview__invoice-preview__1Qqwo ._invoicePreview__table-invoice-header__3lgvB{
|
|
352
|
+
background: #f0f3f4
|
|
353
|
+
}
|
|
354
|
+
._invoicePreview__invoice-preview__1Qqwo h1,h2,h3,h4 {margin-top:15px}
|
|
355
|
+
._invoicePreview__invoice-preview__1Qqwo h1 {font-size:27px}
|
|
356
|
+
._invoicePreview__invoice-preview__1Qqwo h2 {font-size:22px}
|
|
357
|
+
|
|
358
|
+
._invoicePreview__invoice-preview__n6OR_ ._invoicePreview__invoice-body__xe35o {
|
|
2
359
|
background: #fff;
|
|
3
360
|
padding: 50px
|
|
4
361
|
}
|
|
5
362
|
|
|
6
|
-
|
|
363
|
+
._invoicePreview__invoice-preview__n6OR_ ._invoicePreview__invoice-company__2bVh- {
|
|
7
364
|
font-size: 20px
|
|
8
365
|
}
|
|
9
366
|
|
|
10
|
-
|
|
367
|
+
._invoicePreview__invoice-preview__n6OR_ ._invoicePreview__invoice-header__2djZc {
|
|
11
368
|
margin: 0 -50px;
|
|
12
369
|
background: #f0f3f4;
|
|
13
370
|
padding: 30px 62px;
|
|
14
371
|
}
|
|
15
372
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
373
|
+
._invoicePreview__invoice-preview__n6OR_ ._invoicePreview__invoice-date__3siKB,
|
|
374
|
+
._invoicePreview__invoice-preview__n6OR_ ._invoicePreview__invoice-from__2Aijs,
|
|
375
|
+
._invoicePreview__invoice-preview__n6OR_ ._invoicePreview__invoice-to__1OYRS {
|
|
19
376
|
display: table-cell;
|
|
20
377
|
width: 1%
|
|
21
378
|
}
|
|
22
379
|
|
|
23
|
-
|
|
24
|
-
|
|
380
|
+
._invoicePreview__invoice-preview__n6OR_ ._invoicePreview__invoice-from__2Aijs,
|
|
381
|
+
._invoicePreview__invoice-preview__n6OR_ ._invoicePreview__invoice-to__1OYRS {
|
|
25
382
|
padding-right: 20px
|
|
26
383
|
}
|
|
27
384
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
385
|
+
._invoicePreview__invoice-preview__n6OR_ ._invoicePreview__invoice-date__3siKB ._invoicePreview__date__31M1T,
|
|
386
|
+
._invoicePreview__invoice-preview__n6OR_ ._invoicePreview__invoice-from__2Aijs strong,
|
|
387
|
+
._invoicePreview__invoice-preview__n6OR_ ._invoicePreview__invoice-to__1OYRS strong {
|
|
31
388
|
font-size: 16px;
|
|
32
389
|
font-weight: 600
|
|
33
390
|
}
|
|
34
391
|
|
|
35
|
-
|
|
392
|
+
._invoicePreview__invoice-preview__n6OR_ ._invoicePreview__invoice-date__3siKB {
|
|
36
393
|
text-align: right;
|
|
37
394
|
padding-left: 20px
|
|
38
395
|
}
|
|
39
396
|
|
|
40
|
-
#
|
|
397
|
+
#_invoicePreview__invoice__1xKHH ._invoicePreview__invoice-price__3R0Je {
|
|
41
398
|
/* background: #f0f3f4; */
|
|
42
399
|
display: table;
|
|
43
400
|
width: 100%
|
|
44
401
|
}
|
|
45
402
|
|
|
46
|
-
|
|
47
|
-
|
|
403
|
+
._invoicePreview__invoice-preview__n6OR_ ._invoicePreview__invoice-price__3R0Je ._invoicePreview__invoice-price-left__2Zs7n,
|
|
404
|
+
._invoicePreview__invoice-preview__n6OR_ ._invoicePreview__invoice-price__3R0Je ._invoicePreview__invoice-price-right__2LkeS {
|
|
48
405
|
display: table-cell;
|
|
49
406
|
padding: 20px;
|
|
50
407
|
padding-right: 12px;
|
|
@@ -56,24 +413,24 @@
|
|
|
56
413
|
vertical-align: middle
|
|
57
414
|
}
|
|
58
415
|
|
|
59
|
-
|
|
416
|
+
._invoicePreview__invoice-preview__n6OR_ ._invoicePreview__invoice-price__3R0Je ._invoicePreview__invoice-price-left__2Zs7n ._invoicePreview__sub-price__3nUDA {
|
|
60
417
|
display: table-cell;
|
|
61
418
|
vertical-align: middle;
|
|
62
419
|
padding: 0 20px
|
|
63
420
|
}
|
|
64
421
|
|
|
65
|
-
|
|
422
|
+
._invoicePreview__invoice-preview__n6OR_ ._invoicePreview__invoice-price__3R0Je small {
|
|
66
423
|
font-size: 12px;
|
|
67
424
|
font-weight: 400;
|
|
68
425
|
display: block
|
|
69
426
|
}
|
|
70
427
|
|
|
71
|
-
|
|
428
|
+
._invoicePreview__invoice-preview__n6OR_ ._invoicePreview__invoice-price__3R0Je ._invoicePreview__invoice-price-row__285r- {
|
|
72
429
|
display: table;
|
|
73
430
|
float: left
|
|
74
431
|
}
|
|
75
432
|
|
|
76
|
-
|
|
433
|
+
._invoicePreview__invoice-preview__n6OR_ ._invoicePreview__invoice-price__3R0Je ._invoicePreview__invoice-price-right__2LkeS {
|
|
77
434
|
width: 30%;
|
|
78
435
|
background: #2d353c;
|
|
79
436
|
color: #fff;
|
|
@@ -84,7 +441,7 @@
|
|
|
84
441
|
margin-right: -10px;
|
|
85
442
|
}
|
|
86
443
|
|
|
87
|
-
|
|
444
|
+
._invoicePreview__invoice-preview__n6OR_ ._invoicePreview__invoice-price__3R0Je ._invoicePreview__invoice-price-right__2LkeS small {
|
|
88
445
|
display: block;
|
|
89
446
|
opacity: .7;
|
|
90
447
|
position: absolute;
|
|
@@ -93,32 +450,32 @@
|
|
|
93
450
|
font-size: 15px
|
|
94
451
|
}
|
|
95
452
|
|
|
96
|
-
|
|
453
|
+
._invoicePreview__invoice-preview__n6OR_ ._invoicePreview__invoice-footer__3lV5q {
|
|
97
454
|
border-top: 1px solid #ddd;
|
|
98
455
|
padding-top: 10px;
|
|
99
456
|
font-size: 10px
|
|
100
457
|
}
|
|
101
458
|
|
|
102
|
-
|
|
459
|
+
._invoicePreview__invoice-preview__n6OR_ ._invoicePreview__invoice-note__1Zqt2 {
|
|
103
460
|
color: #999;
|
|
104
461
|
margin-top: 80px;
|
|
105
462
|
font-size: 85%
|
|
106
463
|
}
|
|
107
464
|
|
|
108
|
-
|
|
465
|
+
._invoicePreview__invoice-preview__n6OR_ ._invoicePreview__invoice-body__xe35o > div:not(._invoicePreview__invoice-footer__3lV5q) {
|
|
109
466
|
margin-bottom: 20px
|
|
110
467
|
}
|
|
111
468
|
|
|
112
|
-
|
|
469
|
+
._invoicePreview__invoice-preview__n6OR_ ._invoicePreview__btn__hL9TN._invoicePreview__btn-white__1ZY8U, ._invoicePreview__btn__hL9TN._invoicePreview__btn-white__1ZY8U._invoicePreview__disabled__I9JM1, ._invoicePreview__btn__hL9TN._invoicePreview__btn-white__1ZY8U._invoicePreview__disabled__I9JM1:focus, ._invoicePreview__btn__hL9TN._invoicePreview__btn-white__1ZY8U._invoicePreview__disabled__I9JM1:hover, ._invoicePreview__btn__hL9TN._invoicePreview__btn-white__1ZY8U[disabled], ._invoicePreview__btn__hL9TN._invoicePreview__btn-white__1ZY8U[disabled]:focus, ._invoicePreview__btn__hL9TN._invoicePreview__btn-white__1ZY8U[disabled]:hover {
|
|
113
470
|
color: #2d353c;
|
|
114
471
|
background: #fff;
|
|
115
472
|
border-color: #d9dfe3;
|
|
116
473
|
}
|
|
117
|
-
|
|
474
|
+
._invoicePreview__invoice-preview__n6OR_ ._invoicePreview__table-inline-block__1Qnnk{
|
|
118
475
|
display: inline-block;
|
|
119
476
|
}
|
|
120
477
|
|
|
121
|
-
|
|
478
|
+
._invoicePreview__invoice-preview__n6OR_ #_invoicePreview__invoice-logo__gUq9K {
|
|
122
479
|
max-width: 100%;
|
|
123
480
|
/*max-height: 150px;*/
|
|
124
481
|
display: block
|
|
@@ -133,17 +490,17 @@
|
|
|
133
490
|
/* .invoice-body {
|
|
134
491
|
padding:10;
|
|
135
492
|
} */
|
|
136
|
-
|
|
493
|
+
._invoicePreview__invoice-preview__n6OR_ {
|
|
137
494
|
width:100%
|
|
138
495
|
}
|
|
139
496
|
|
|
140
|
-
.
|
|
497
|
+
._invoicePreview__invoice-price__3R0Je ._invoicePreview__invoice-price-right__2LkeS {
|
|
141
498
|
background: #f0f3f4;
|
|
142
499
|
color: black;
|
|
143
500
|
border: 2px solid #f0f3f4;
|
|
144
501
|
}
|
|
145
502
|
|
|
146
|
-
.
|
|
503
|
+
._invoicePreview__print__IpmAf {
|
|
147
504
|
width: 100% !important;
|
|
148
505
|
max-width: 100% !important;
|
|
149
506
|
flex: 0 0 100% !important;
|
|
@@ -151,7 +508,7 @@
|
|
|
151
508
|
}
|
|
152
509
|
|
|
153
510
|
@media only screen {
|
|
154
|
-
|
|
511
|
+
._invoicePreview__invoice-preview__n6OR_ {
|
|
155
512
|
margin-top:10px;
|
|
156
513
|
max-width:28cm;
|
|
157
514
|
zoom: 0.8;
|
|
@@ -161,12 +518,12 @@
|
|
|
161
518
|
}
|
|
162
519
|
}
|
|
163
520
|
|
|
164
|
-
|
|
521
|
+
._invoicePreview__invoice-preview__n6OR_ ._invoicePreview__table-small__3_bIO td{
|
|
165
522
|
padding: 8px 12px
|
|
166
523
|
}
|
|
167
|
-
|
|
524
|
+
._invoicePreview__invoice-preview__n6OR_ ._invoicePreview__table-invoice-header__2lqd4{
|
|
168
525
|
background: #f0f3f4
|
|
169
526
|
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
527
|
+
._invoicePreview__invoice-preview__n6OR_ h1,h2,h3,h4 {margin-top:15px}
|
|
528
|
+
._invoicePreview__invoice-preview__n6OR_ h1 {font-size:27px}
|
|
529
|
+
._invoicePreview__invoice-preview__n6OR_ h2 {font-size:22px}
|
package/dist/index.js
CHANGED
|
@@ -1772,16 +1772,15 @@ var PreviewDocument = function PreviewDocument(_ref) {
|
|
|
1772
1772
|
}
|
|
1773
1773
|
}
|
|
1774
1774
|
|
|
1775
|
-
var signatureContainer = document.signDate && "\n <div
|
|
1776
|
-
var clientSignature = (document.customer || customerSignBase64) && "\n <div
|
|
1777
|
-
return /*#__PURE__*/React__default.createElement(Fragment, null, /*#__PURE__*/React__default.createElement("link", {
|
|
1775
|
+
var signatureContainer = document.signDate && "\n <div className=\"col-6\" style={textAlign:'center'}>\n <strong>{document.customerSignature || customerSignBase64 ? company.name : ''}</strong>\n <div style={{height:'130px',borderBottom:'2px solid #dee2e6', marginRight:'40px', marginLeft:'40px'}}>\n { signatureBase64 && <img src=" + signatureBase64 + " style={{width:'220px',marginTop:'20px'}} />}\n </div>\n <div>{document.signDate && formatDate(document.signDate) }</div>\n </div>" || '';
|
|
1776
|
+
var clientSignature = (document.customer || customerSignBase64) && "\n <div className=\"col-6\" style={{textAlign: 'center'}}>\n <strong>{customer.companyName}</strong>\n <div style={{height:'130px',borderBottom:'2px solid #dee2e6', marginRight:'40px', marginLeft:'40px'}}>\n { customerSignBase64 && <img src=" + customerSignBase64 + " style={{width:'220px',marginTop:'20px'}} />}\n </div>\n <div>{customerSignBase64 ? formatDate(new Date()) : '(   /  /  )'}</div>\n </div>" || '';
|
|
1777
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("link", {
|
|
1778
1778
|
rel: "stylesheet",
|
|
1779
1779
|
href: "https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css",
|
|
1780
1780
|
integrity: "sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh",
|
|
1781
1781
|
crossOrigin: "anonymous"
|
|
1782
1782
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1783
|
-
|
|
1784
|
-
className: "print"
|
|
1783
|
+
className: "print invoice-preview"
|
|
1785
1784
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1786
1785
|
className: "invoice-body"
|
|
1787
1786
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -1994,9 +1993,9 @@ var PreviewDocument = function PreviewDocument(_ref) {
|
|
|
1994
1993
|
className: "invoice-price-right"
|
|
1995
1994
|
}, /*#__PURE__*/React__default.createElement("small", null, document.ty == 1 ? company.template.amountDue ? company.template.amountDue : 'Amount Due' : company.template.grandTotal ? company.template.grandTotal : 'Grand total' ), /*#__PURE__*/React__default.createElement("span", {
|
|
1996
1995
|
className: "f-w-600"
|
|
1997
|
-
}, FormatCurrency(document.amountDue, company.currency, company.language, company.currencyFormat)))), company.hasPaymentInstruction && document.amountDue > 0 && /*#__PURE__*/React__default.createElement("h2", null, company.template.payInt ? company.template.payInt : 'Payment Instruction' ), company.paymentInstruction1 && /*#__PURE__*/React__default.createElement(Fragment, null, company.paymentInstruction1, /*#__PURE__*/React__default.createElement("br", null)), company.paymentInstruction2 && /*#__PURE__*/React__default.createElement(Fragment, null, company.paymentInstruction2, /*#__PURE__*/React__default.createElement("br", null)), company.paymentInstruction3 && /*#__PURE__*/React__default.createElement(Fragment, null, company.paymentInstruction3, /*#__PURE__*/React__default.createElement("br", null)), /*#__PURE__*/React__default.createElement("div", {
|
|
1996
|
+
}, FormatCurrency(document.amountDue, company.currency, company.language, company.currencyFormat)))), company.hasPaymentInstruction && document.amountDue > 0 && /*#__PURE__*/React__default.createElement("h2", null, company.template.payInt ? company.template.payInt : 'Payment Instruction' ), company.paymentInstruction1 && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, company.paymentInstruction1, /*#__PURE__*/React__default.createElement("br", null)), company.paymentInstruction2 && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, company.paymentInstruction2, /*#__PURE__*/React__default.createElement("br", null)), company.paymentInstruction3 && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, company.paymentInstruction3, /*#__PURE__*/React__default.createElement("br", null)), /*#__PURE__*/React__default.createElement("div", {
|
|
1998
1997
|
className: "mt-4"
|
|
1999
|
-
}, document.note && /*#__PURE__*/React__default.createElement(Fragment, null, document.note && /*#__PURE__*/React__default.createElement("div", {
|
|
1998
|
+
}, document.note && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, document.note && /*#__PURE__*/React__default.createElement("div", {
|
|
2000
1999
|
className: "mt-4"
|
|
2001
2000
|
}, /*#__PURE__*/React__default.createElement("small", null, /*#__PURE__*/React__default.createElement("strong", null, company.template.note ? company.template.note : 'Note' )), /*#__PURE__*/React__default.createElement("div", {
|
|
2002
2001
|
dangerouslySetInnerHTML: {
|