optimized-react-component-library-xyz123 0.13.7 → 0.13.9
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.d.mts +1 -19
- package/dist/index.d.ts +1 -19
- package/dist/index.js +259 -459
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +253 -451
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/darkMode.css +27 -0
- package/src/css/mobileView.css +36 -3
- package/src/css/questions.css +29 -56
- package/src/css/styles.css +21 -2
package/package.json
CHANGED
package/src/css/darkMode.css
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
--dark-info: #808080;
|
|
8
8
|
--dark-orientation-active:#F4BF56;
|
|
9
9
|
--dark-background-second:#200827;
|
|
10
|
+
--dark-background-third:#747474;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
@media (prefers-color-scheme: dark) {
|
|
@@ -337,6 +338,13 @@
|
|
|
337
338
|
.errorSummary-text {
|
|
338
339
|
color: var(--dark-error) !important;
|
|
339
340
|
}
|
|
341
|
+
|
|
342
|
+
/*--------------------FOOTER-----------------*/
|
|
343
|
+
|
|
344
|
+
.pts-footer-slogan-text-container{
|
|
345
|
+
background-color: var(--dark-background-third);
|
|
346
|
+
}
|
|
347
|
+
|
|
340
348
|
|
|
341
349
|
/*-------------MODAL-----------*/
|
|
342
350
|
.pts-modal-content{
|
|
@@ -348,4 +356,23 @@
|
|
|
348
356
|
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");
|
|
349
357
|
|
|
350
358
|
}
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
/*-------------Autofill-----------*/
|
|
362
|
+
input:autofill,
|
|
363
|
+
input:autofill:hover,
|
|
364
|
+
input:autofill:focus,
|
|
365
|
+
input:-webkit-autofill,
|
|
366
|
+
input:-webkit-autofill:hover,
|
|
367
|
+
input:-webkit-autofill:focus {
|
|
368
|
+
-webkit-box-shadow: 0 0 0 1000px var(--dark-main) inset !important;
|
|
369
|
+
box-shadow: 0 0 0 1000px var(--dark-main) inset !important;
|
|
370
|
+
-webkit-text-fill-color: var(--dark-text) !important; /* behåller textfärgen */
|
|
371
|
+
background-color: var(--dark-main) !important;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/* Firefox */
|
|
375
|
+
input:-moz-autofill {
|
|
376
|
+
box-shadow: 0 0 0 1000px transparent inset !important;
|
|
377
|
+
}
|
|
351
378
|
}
|
package/src/css/mobileView.css
CHANGED
|
@@ -44,6 +44,11 @@
|
|
|
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
|
+
}
|
|
47
52
|
}
|
|
48
53
|
|
|
49
54
|
/********************************************/
|
|
@@ -225,6 +230,11 @@
|
|
|
225
230
|
padding-bottom: 4px;
|
|
226
231
|
}
|
|
227
232
|
|
|
233
|
+
.pts-footer-slogan-text{
|
|
234
|
+
line-height: 2rem;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
|
|
228
238
|
.pts-footer-logo {
|
|
229
239
|
position: static;
|
|
230
240
|
padding-left: 0;
|
|
@@ -297,14 +307,37 @@
|
|
|
297
307
|
}
|
|
298
308
|
}
|
|
299
309
|
|
|
310
|
+
|
|
311
|
+
/********************************************/
|
|
312
|
+
/***************WIDTH: 750 ******************/
|
|
313
|
+
/********************************************/
|
|
314
|
+
@media (max-width: 750px) {
|
|
315
|
+
body .pts-stepper-step:not(:last-child)::after {
|
|
316
|
+
left: calc(50% + 3rem);
|
|
317
|
+
width: calc(33.33vw - 13rem);
|
|
318
|
+
right: auto;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/********************************************/
|
|
323
|
+
/***************WIDTH: 550 ******************/
|
|
324
|
+
/********************************************/
|
|
325
|
+
@media (max-width: 550px) {
|
|
326
|
+
body .pts-stepper-step:not(:last-child)::after {
|
|
327
|
+
left: calc(50% + 3rem);
|
|
328
|
+
width: calc(33.33vw - 11rem);
|
|
329
|
+
right: auto;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
300
333
|
/********************************************/
|
|
301
334
|
/***************WIDTH: 480 ******************/
|
|
302
335
|
/********************************************/
|
|
303
336
|
@media (max-width: 480px) {
|
|
304
337
|
.pts-stepper-step:not(:last-child)::after {
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
338
|
+
left: calc(50% + 3rem);
|
|
339
|
+
width: calc(33.33vw - 10rem);
|
|
340
|
+
right: auto;
|
|
308
341
|
}
|
|
309
342
|
|
|
310
343
|
.files-upload {
|
package/src/css/questions.css
CHANGED
|
@@ -142,56 +142,6 @@ div.pts-root-question:last-child {
|
|
|
142
142
|
cursor: pointer;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
/* ---------- DROPDOWN ---------- */
|
|
146
|
-
|
|
147
|
-
/* För inspiration */
|
|
148
|
-
|
|
149
|
-
.pts-dropdown-container {
|
|
150
|
-
margin-bottom: 1.5rem;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.pts-dropdown-container label {
|
|
154
|
-
display: block;
|
|
155
|
-
margin-bottom: 0.5rem;
|
|
156
|
-
font-weight: 500;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.pts-dropdown-container select {
|
|
160
|
-
display: block;
|
|
161
|
-
width: 100%;
|
|
162
|
-
padding-right: 2.4em;
|
|
163
|
-
padding-left: 0.6em;
|
|
164
|
-
|
|
165
|
-
border: #747474 1px solid;
|
|
166
|
-
box-shadow: none;
|
|
167
|
-
margin: 0;
|
|
168
|
-
height: 42px;
|
|
169
|
-
|
|
170
|
-
word-wrap: normal;
|
|
171
|
-
|
|
172
|
-
text-transform: none;
|
|
173
|
-
|
|
174
|
-
cursor: pointer;
|
|
175
|
-
|
|
176
|
-
border-radius: 6px;
|
|
177
|
-
|
|
178
|
-
font-family: Arial;
|
|
179
|
-
font-size: 16px;
|
|
180
|
-
|
|
181
|
-
background-image: url(https://dsa.pts.se/images/arrow.svg);
|
|
182
|
-
background-repeat: no-repeat;
|
|
183
|
-
background-position: right 14px center;
|
|
184
|
-
background-size: 1em;
|
|
185
|
-
|
|
186
|
-
-webkit-appearance: none;
|
|
187
|
-
-moz-appearance: none;
|
|
188
|
-
appearance: none;
|
|
189
|
-
|
|
190
|
-
transition:
|
|
191
|
-
border-color 0.15s ease-in-out,
|
|
192
|
-
box-shadow 0.15s ease-in-out;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
145
|
/* ---------- SINGLE CHECKBOX ---------- */
|
|
196
146
|
|
|
197
147
|
.pts-singleCheckbox-row {
|
|
@@ -229,13 +179,14 @@ div.pts-root-question:last-child {
|
|
|
229
179
|
margin-top: 0.2rem;
|
|
230
180
|
}
|
|
231
181
|
|
|
182
|
+
|
|
232
183
|
/*-------- CHECKBOX GROUP-------- */
|
|
233
184
|
|
|
234
|
-
.pts-checkboxGroup-options
|
|
185
|
+
.pts-checkboxGroup-options{
|
|
235
186
|
display: flex;
|
|
236
187
|
}
|
|
237
188
|
|
|
238
|
-
.pts-checkboxGroup-container input[type='checkbox']
|
|
189
|
+
.pts-checkboxGroup-container input[type='checkbox']{
|
|
239
190
|
appearance: none;
|
|
240
191
|
width: 1.8rem;
|
|
241
192
|
height: 1.8rem;
|
|
@@ -253,7 +204,7 @@ div.pts-root-question:last-child {
|
|
|
253
204
|
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='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
|
|
254
205
|
}
|
|
255
206
|
|
|
256
|
-
.pts-checkboxGroup-container label
|
|
207
|
+
.pts-checkboxGroup-container label{
|
|
257
208
|
padding-top: 0.3rem;
|
|
258
209
|
line-height: 20px;
|
|
259
210
|
cursor: pointer;
|
|
@@ -262,7 +213,7 @@ div.pts-root-question:last-child {
|
|
|
262
213
|
|
|
263
214
|
/* ---------- MULTIPLE CHECKBOXES ---------- */
|
|
264
215
|
|
|
265
|
-
.pts-multipleCheckboxes-container input[type='checkbox']
|
|
216
|
+
.pts-multipleCheckboxes-container input[type='checkbox']{
|
|
266
217
|
appearance: none;
|
|
267
218
|
width: 1.8rem;
|
|
268
219
|
height: 1.8rem;
|
|
@@ -280,7 +231,7 @@ div.pts-root-question:last-child {
|
|
|
280
231
|
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='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
|
|
281
232
|
}
|
|
282
233
|
|
|
283
|
-
.pts-multipleCheckboxes-container label
|
|
234
|
+
.pts-multipleCheckboxes-container label{
|
|
284
235
|
cursor: pointer;
|
|
285
236
|
margin: 0;
|
|
286
237
|
padding-top: 0.1rem;
|
|
@@ -299,11 +250,12 @@ div.pts-root-question:last-child {
|
|
|
299
250
|
cursor: pointer;
|
|
300
251
|
}
|
|
301
252
|
|
|
302
|
-
.pts-multipleCheckboxes-container li label
|
|
253
|
+
.pts-multipleCheckboxes-container li label{
|
|
303
254
|
flex: 1;
|
|
304
255
|
margin-top: 0.2rem;
|
|
305
256
|
}
|
|
306
257
|
|
|
258
|
+
|
|
307
259
|
/* ---------- TEXTFIELD / TEXTAREA ABOUT ---------- */
|
|
308
260
|
|
|
309
261
|
.pts-textField-container {
|
|
@@ -1114,3 +1066,24 @@ div.pts-root-question:last-child {
|
|
|
1114
1066
|
background: var(--red-green-red, rgb(211, 165, 0));
|
|
1115
1067
|
}
|
|
1116
1068
|
/* ---------- END FILE UPLOAD ---------- */
|
|
1069
|
+
|
|
1070
|
+
|
|
1071
|
+
|
|
1072
|
+
|
|
1073
|
+
|
|
1074
|
+
|
|
1075
|
+
input:autofill,
|
|
1076
|
+
input:autofill:hover,
|
|
1077
|
+
input:autofill:focus,
|
|
1078
|
+
input:-webkit-autofill,
|
|
1079
|
+
input:-webkit-autofill:hover,
|
|
1080
|
+
input:-webkit-autofill:focus {
|
|
1081
|
+
-webkit-box-shadow: 0 0 0 1000px var(--main) inset !important;
|
|
1082
|
+
box-shadow: 0 0 0 1000px var(--main) inset !important;
|
|
1083
|
+
-webkit-text-fill-color: inherit !important; /* behåller textfärgen */
|
|
1084
|
+
background-color: var(--main) !important;
|
|
1085
|
+
}
|
|
1086
|
+
input:-moz-autofill {
|
|
1087
|
+
box-shadow: 0 0 0 1000px transparent inset !important;
|
|
1088
|
+
}
|
|
1089
|
+
|
package/src/css/styles.css
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
--info: #545454;
|
|
12
12
|
--orientation-active: #dc7d0a;
|
|
13
13
|
--background-second: #200827;
|
|
14
|
+
--background-third: #414141;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
body,
|
|
@@ -650,17 +651,35 @@ textarea:focus-visible,
|
|
|
650
651
|
/* ---------- FOOTER ---------- */
|
|
651
652
|
|
|
652
653
|
.pts-footer-container {
|
|
653
|
-
display: flex;
|
|
654
|
-
min-height: 14rem;
|
|
655
654
|
align-items: center;
|
|
656
655
|
width: 100%;
|
|
657
656
|
background-color: var(--background-second);
|
|
658
657
|
}
|
|
659
658
|
|
|
659
|
+
.pts-footer-slogan-text-container{
|
|
660
|
+
display: flex;
|
|
661
|
+
align-items: center;
|
|
662
|
+
justify-content: center;
|
|
663
|
+
background-color: var(--background-third);
|
|
664
|
+
height: 50px;
|
|
665
|
+
padding: 0px;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
.pts-footer-slogan-text{
|
|
669
|
+
color: var(--main);
|
|
670
|
+
line-height: 2.4rem;
|
|
671
|
+
font-size: 2rem;
|
|
672
|
+
text-box-trim: trim-both;
|
|
673
|
+
margin: 0;
|
|
674
|
+
|
|
675
|
+
}
|
|
676
|
+
|
|
660
677
|
.pts-footer-content{
|
|
661
678
|
display: flex;
|
|
662
679
|
align-items: center;
|
|
663
680
|
width: 100%;
|
|
681
|
+
min-height: 14rem;
|
|
682
|
+
padding: 0.1rem 0;
|
|
664
683
|
}
|
|
665
684
|
|
|
666
685
|
.pts-footer-logo {
|