optimized-react-component-library-xyz123 0.15.2 → 0.15.4
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/index.js +83 -109
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +95 -121
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/darkMode.css +0 -39
- package/src/css/mobileView.css +25 -47
- package/src/css/questions.css +4 -29
- package/src/css/styles.css +13 -61
package/package.json
CHANGED
package/src/css/darkMode.css
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
--dark-info: #808080;
|
|
8
8
|
--dark-orientation-active:#F4BF56;
|
|
9
9
|
--dark-background-second:#200827;
|
|
10
|
-
--dark-background-third:#747474;
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
@media (prefers-color-scheme: dark) {
|
|
@@ -242,18 +241,6 @@
|
|
|
242
241
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
|
|
243
242
|
}
|
|
244
243
|
|
|
245
|
-
/* ---------- SINGLE CHECKBOX ---------- */
|
|
246
|
-
|
|
247
|
-
.pts-singleCheckbox-container input[type='checkbox'] {
|
|
248
|
-
background-color: var(--dark-main);
|
|
249
|
-
border-color: var(--dark-info);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
.pts-singleCheckbox-container input[type='checkbox']:checked {
|
|
253
|
-
background-color: var(--dark-action);
|
|
254
|
-
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
244
|
/* ---------- TEXTAREA ---------- */
|
|
258
245
|
|
|
259
246
|
.pts-textArea-container textarea {
|
|
@@ -350,13 +337,6 @@
|
|
|
350
337
|
.errorSummary-text {
|
|
351
338
|
color: var(--dark-error) !important;
|
|
352
339
|
}
|
|
353
|
-
|
|
354
|
-
/*--------------------FOOTER-----------------*/
|
|
355
|
-
|
|
356
|
-
.pts-footer-slogan-text-container{
|
|
357
|
-
background-color: var(--dark-background-third);
|
|
358
|
-
}
|
|
359
|
-
|
|
360
340
|
|
|
361
341
|
/*-------------MODAL-----------*/
|
|
362
342
|
.pts-modal-content{
|
|
@@ -368,23 +348,4 @@
|
|
|
368
348
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='94' height='94' viewBox='0 0 94 94' fill='none'%3e%3cpath d='M47 11.75C66.4682 11.75 82.25 27.532 82.25 47C82.25 66.4682 66.4682 82.25 47 82.25C27.532 82.25 11.75 66.4682 11.75 47C11.75 27.532 27.532 11.75 47 11.75Z' stroke='%23B07CBF' stroke-opacity='0.25' stroke-width='7.83333' stroke-linecap='round'/%3e%3cpath d='M47 11.75C66.4682 11.75 82.25 27.532 82.25 47' stroke='%23B07CBF' stroke-width='7.83333' stroke-linecap='round'/%3e%3c/svg%3e");
|
|
369
349
|
|
|
370
350
|
}
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
/*-------------Autofill-----------*/
|
|
374
|
-
input:autofill,
|
|
375
|
-
input:autofill:hover,
|
|
376
|
-
input:autofill:focus,
|
|
377
|
-
input:-webkit-autofill,
|
|
378
|
-
input:-webkit-autofill:hover,
|
|
379
|
-
input:-webkit-autofill:focus {
|
|
380
|
-
-webkit-box-shadow: 0 0 0 1000px var(--dark-main) inset !important;
|
|
381
|
-
box-shadow: 0 0 0 1000px var(--dark-main) inset !important;
|
|
382
|
-
-webkit-text-fill-color: var(--dark-text) !important; /* behåller textfärgen */
|
|
383
|
-
background-color: var(--dark-main) !important;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
/* Firefox */
|
|
387
|
-
input:-moz-autofill {
|
|
388
|
-
box-shadow: 0 0 0 1000px transparent inset !important;
|
|
389
|
-
}
|
|
390
351
|
}
|
package/src/css/mobileView.css
CHANGED
|
@@ -44,11 +44,6 @@
|
|
|
44
44
|
margin: 0;
|
|
45
45
|
padding: 0;
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
.pts-footer-slogan-text {
|
|
49
|
-
font-size: 16px;
|
|
50
|
-
text-align: center;
|
|
51
|
-
}
|
|
52
47
|
}
|
|
53
48
|
|
|
54
49
|
/********************************************/
|
|
@@ -93,10 +88,6 @@
|
|
|
93
88
|
padding: 0;
|
|
94
89
|
}
|
|
95
90
|
|
|
96
|
-
.pts-header-content{
|
|
97
|
-
display:block;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
91
|
.pts-header-logo-container {
|
|
101
92
|
padding: 13px 0;
|
|
102
93
|
border-bottom: 2px solid #ddd;
|
|
@@ -104,11 +95,6 @@
|
|
|
104
95
|
text-align: center;
|
|
105
96
|
}
|
|
106
97
|
|
|
107
|
-
.pts-header-navigation-container{
|
|
108
|
-
align-items: center;
|
|
109
|
-
justify-content: center;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
98
|
.pts-languageButton {
|
|
113
99
|
margin: 0.4rem 0;
|
|
114
100
|
}
|
|
@@ -210,12 +196,32 @@
|
|
|
210
196
|
margin-left: 12px;
|
|
211
197
|
}
|
|
212
198
|
|
|
199
|
+
/*---------PREVIEW PAGE----------------*/
|
|
200
|
+
|
|
201
|
+
.pts-preview-header {
|
|
202
|
+
display: block;
|
|
203
|
+
justify-content: unset;
|
|
204
|
+
align-items: unset;
|
|
205
|
+
width: 100%;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
[id^="category-preview-title-"]{
|
|
209
|
+
margin-bottom: 0.8rem;
|
|
210
|
+
}
|
|
211
|
+
|
|
213
212
|
.pts-editPreviewLink-container {
|
|
214
|
-
|
|
213
|
+
display: block;
|
|
214
|
+
justify-content: unset;
|
|
215
|
+
align-items: unset;
|
|
216
|
+
margin: 0 0 2.6rem 0;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.pts-edit-step-text{
|
|
220
|
+
padding-left: 0;
|
|
215
221
|
}
|
|
216
222
|
|
|
217
223
|
.pts-editPreviewLink-container a {
|
|
218
|
-
font-size: 1.
|
|
224
|
+
font-size: 1.6rem;
|
|
219
225
|
display: block;
|
|
220
226
|
}
|
|
221
227
|
|
|
@@ -239,11 +245,6 @@
|
|
|
239
245
|
padding-bottom: 4px;
|
|
240
246
|
}
|
|
241
247
|
|
|
242
|
-
.pts-footer-slogan-text{
|
|
243
|
-
line-height: 2rem;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
|
|
247
248
|
.pts-footer-logo {
|
|
248
249
|
position: static;
|
|
249
250
|
padding-left: 0;
|
|
@@ -316,37 +317,14 @@
|
|
|
316
317
|
}
|
|
317
318
|
}
|
|
318
319
|
|
|
319
|
-
|
|
320
|
-
/********************************************/
|
|
321
|
-
/***************WIDTH: 750 ******************/
|
|
322
|
-
/********************************************/
|
|
323
|
-
@media (max-width: 750px) {
|
|
324
|
-
body .pts-stepper-step:not(:last-child)::after {
|
|
325
|
-
left: calc(50% + 3rem);
|
|
326
|
-
width: calc(33.33vw - 13rem);
|
|
327
|
-
right: auto;
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
/********************************************/
|
|
332
|
-
/***************WIDTH: 550 ******************/
|
|
333
|
-
/********************************************/
|
|
334
|
-
@media (max-width: 550px) {
|
|
335
|
-
body .pts-stepper-step:not(:last-child)::after {
|
|
336
|
-
left: calc(50% + 3rem);
|
|
337
|
-
width: calc(33.33vw - 11rem);
|
|
338
|
-
right: auto;
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
|
|
342
320
|
/********************************************/
|
|
343
321
|
/***************WIDTH: 480 ******************/
|
|
344
322
|
/********************************************/
|
|
345
323
|
@media (max-width: 480px) {
|
|
346
324
|
.pts-stepper-step:not(:last-child)::after {
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
325
|
+
left: calc(50% + 2rem) !important;
|
|
326
|
+
width: calc(33.33vw - 7.7rem) !important;
|
|
327
|
+
right: auto !important;
|
|
350
328
|
}
|
|
351
329
|
|
|
352
330
|
.files-upload {
|
package/src/css/questions.css
CHANGED
|
@@ -144,7 +144,6 @@ div.pts-root-question:last-child {
|
|
|
144
144
|
|
|
145
145
|
/* ---------- SINGLE CHECKBOX ---------- */
|
|
146
146
|
|
|
147
|
-
|
|
148
147
|
.pts-singleCheckbox-row {
|
|
149
148
|
display: flex;
|
|
150
149
|
flex-direction: row;
|
|
@@ -154,15 +153,17 @@ div.pts-root-question:last-child {
|
|
|
154
153
|
|
|
155
154
|
.pts-singleCheckbox-container input[type='checkbox'] {
|
|
156
155
|
-webkit-appearance: none;
|
|
156
|
+
|
|
157
157
|
width: 1.8rem;
|
|
158
158
|
height: 1.8rem;
|
|
159
159
|
margin-right: 0.8rem;
|
|
160
160
|
flex-shrink: 0;
|
|
161
|
+
|
|
161
162
|
background-color: var(--main);
|
|
162
163
|
border: 0.15rem solid var(--info);
|
|
163
164
|
border-radius: 0.2rem;
|
|
165
|
+
|
|
164
166
|
cursor: pointer;
|
|
165
|
-
margin-left: 0px;
|
|
166
167
|
}
|
|
167
168
|
|
|
168
169
|
.pts-singleCheckbox-container input[type='checkbox']:checked {
|
|
@@ -195,7 +196,6 @@ div.pts-root-question:last-child {
|
|
|
195
196
|
border: 0.15rem solid var(--info);
|
|
196
197
|
border-radius: 0.2rem;
|
|
197
198
|
cursor: pointer;
|
|
198
|
-
margin-left: 0px;
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
.pts-checkboxGroup-container input[type='checkbox']:checked {
|
|
@@ -259,7 +259,7 @@ div.pts-root-question:last-child {
|
|
|
259
259
|
/* ---------- TEXTFIELD / TEXTAREA ABOUT ---------- */
|
|
260
260
|
|
|
261
261
|
.pts-textField-container {
|
|
262
|
-
margin-
|
|
262
|
+
margin-top: 8px;
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
.pts-about {
|
|
@@ -312,10 +312,6 @@ div.pts-root-question:last-child {
|
|
|
312
312
|
width: 100%;
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
-
.pts-root-question-group-fieldset .pts-root-error{
|
|
316
|
-
margin-bottom: 1.6rem;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
315
|
/* ---------- FILE UPLOAD ---------- */
|
|
320
316
|
/* ---------- FILE UPLOAD ---------- */
|
|
321
317
|
/* ---------- FILE UPLOAD ---------- */
|
|
@@ -1070,24 +1066,3 @@ div.pts-root-question:last-child {
|
|
|
1070
1066
|
background: var(--red-green-red, rgb(211, 165, 0));
|
|
1071
1067
|
}
|
|
1072
1068
|
/* ---------- END FILE UPLOAD ---------- */
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
input:autofill,
|
|
1080
|
-
input:autofill:hover,
|
|
1081
|
-
input:autofill:focus,
|
|
1082
|
-
input:-webkit-autofill,
|
|
1083
|
-
input:-webkit-autofill:hover,
|
|
1084
|
-
input:-webkit-autofill:focus {
|
|
1085
|
-
-webkit-box-shadow: 0 0 0 1000px var(--main) inset !important;
|
|
1086
|
-
box-shadow: 0 0 0 1000px var(--main) inset !important;
|
|
1087
|
-
-webkit-text-fill-color: inherit !important; /* behåller textfärgen */
|
|
1088
|
-
background-color: var(--main) !important;
|
|
1089
|
-
}
|
|
1090
|
-
input:-moz-autofill {
|
|
1091
|
-
box-shadow: 0 0 0 1000px transparent inset !important;
|
|
1092
|
-
}
|
|
1093
|
-
|
package/src/css/styles.css
CHANGED
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
--info: #545454;
|
|
12
12
|
--orientation-active: #dc7d0a;
|
|
13
13
|
--background-second: #200827;
|
|
14
|
-
--background-third: #414141;
|
|
15
14
|
}
|
|
16
15
|
|
|
17
16
|
body,
|
|
@@ -288,27 +287,6 @@ textarea:focus-visible,
|
|
|
288
287
|
background-color: var(--main);
|
|
289
288
|
}
|
|
290
289
|
|
|
291
|
-
.pts-header-content{
|
|
292
|
-
width: 100%;
|
|
293
|
-
display: flex;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
.pts-header-logo-container{
|
|
297
|
-
height:4rem;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
.pts-header-logo svg{
|
|
301
|
-
height: 4rem;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
.pts-header-navigation-container{
|
|
305
|
-
display: flex;
|
|
306
|
-
flex-direction: column;
|
|
307
|
-
justify-content: flex-end;
|
|
308
|
-
width: 100%;
|
|
309
|
-
align-items: flex-end;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
290
|
.pts-languageButton {
|
|
313
291
|
position: relative;
|
|
314
292
|
display: inline-flex;
|
|
@@ -317,16 +295,15 @@ textarea:focus-visible,
|
|
|
317
295
|
border: transparent;
|
|
318
296
|
color: var(--action);
|
|
319
297
|
cursor: pointer;
|
|
320
|
-
font-size: 1.6rem;
|
|
321
298
|
}
|
|
322
299
|
|
|
323
300
|
.pts-languageButton::after {
|
|
324
301
|
content: "";
|
|
325
302
|
position: absolute;
|
|
326
|
-
left:
|
|
327
|
-
right:
|
|
328
|
-
bottom:
|
|
329
|
-
height: 0.
|
|
303
|
+
left: 0.7rem;
|
|
304
|
+
right: -0.3rem;
|
|
305
|
+
bottom: 0;
|
|
306
|
+
height: 0.2rem;
|
|
330
307
|
background-color: currentColor;
|
|
331
308
|
opacity: 0;
|
|
332
309
|
}
|
|
@@ -336,25 +313,21 @@ textarea:focus-visible,
|
|
|
336
313
|
}
|
|
337
314
|
|
|
338
315
|
.languageIcon{
|
|
339
|
-
position: relative;
|
|
340
316
|
margin-top: 0.3rem;
|
|
341
317
|
padding-right: 0.6rem;
|
|
342
|
-
top: 0.01rem;
|
|
343
318
|
}
|
|
344
319
|
|
|
345
320
|
.pts-languageButton svg {
|
|
346
|
-
width: 1.
|
|
347
|
-
height: 1.
|
|
321
|
+
width: 1.5rem;
|
|
322
|
+
height: 1.5rem;
|
|
348
323
|
}
|
|
349
324
|
|
|
325
|
+
.languageIcon{
|
|
326
|
+
padding-left: 0.6rem;
|
|
327
|
+
}
|
|
350
328
|
|
|
351
329
|
/* ---------- TextBODY ---------- */
|
|
352
330
|
|
|
353
|
-
.pts-textBody-container p{
|
|
354
|
-
margin-bottom: 1.6rem;
|
|
355
|
-
|
|
356
|
-
}
|
|
357
|
-
|
|
358
331
|
.MoreInfoIcon{
|
|
359
332
|
margin-top: 2px;
|
|
360
333
|
}
|
|
@@ -554,10 +527,6 @@ textarea:focus-visible,
|
|
|
554
527
|
margin-bottom: 36px;
|
|
555
528
|
}
|
|
556
529
|
|
|
557
|
-
.pts-edit-step-button{
|
|
558
|
-
text-decoration: none;
|
|
559
|
-
}
|
|
560
|
-
|
|
561
530
|
.pts-edit-step-text{
|
|
562
531
|
padding-left: 5px;
|
|
563
532
|
}
|
|
@@ -677,35 +646,17 @@ textarea:focus-visible,
|
|
|
677
646
|
/* ---------- FOOTER ---------- */
|
|
678
647
|
|
|
679
648
|
.pts-footer-container {
|
|
649
|
+
display: flex;
|
|
650
|
+
min-height: 14rem;
|
|
680
651
|
align-items: center;
|
|
681
652
|
width: 100%;
|
|
682
653
|
background-color: var(--background-second);
|
|
683
654
|
}
|
|
684
655
|
|
|
685
|
-
.pts-footer-slogan-text-container{
|
|
686
|
-
display: flex;
|
|
687
|
-
align-items: center;
|
|
688
|
-
justify-content: center;
|
|
689
|
-
background-color: var(--background-third);
|
|
690
|
-
height: 50px;
|
|
691
|
-
padding: 0px;
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
.pts-footer-slogan-text{
|
|
695
|
-
color: var(--main);
|
|
696
|
-
line-height: 2.4rem;
|
|
697
|
-
font-size: 2rem;
|
|
698
|
-
text-box-trim: trim-both;
|
|
699
|
-
margin: 0;
|
|
700
|
-
|
|
701
|
-
}
|
|
702
|
-
|
|
703
656
|
.pts-footer-content{
|
|
704
657
|
display: flex;
|
|
705
658
|
align-items: center;
|
|
706
659
|
width: 100%;
|
|
707
|
-
min-height: 14rem;
|
|
708
|
-
padding: 0.1rem 0;
|
|
709
660
|
}
|
|
710
661
|
|
|
711
662
|
.pts-footer-logo {
|
|
@@ -807,7 +758,8 @@ textarea:focus-visible,
|
|
|
807
758
|
transform: rotate(360deg);
|
|
808
759
|
}
|
|
809
760
|
}
|
|
810
|
-
|
|
761
|
+
|
|
762
|
+
|
|
811
763
|
|
|
812
764
|
.cleanPadding {
|
|
813
765
|
padding: 0;
|