optimized-react-component-library-xyz123 0.13.6 → 0.13.8
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 -452
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +253 -444
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/darkMode.css +26 -0
- package/src/css/mobileView.css +36 -3
- package/src/css/questions.css +8 -56
- package/src/css/styles.css +39 -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) {
|
|
@@ -17,6 +18,24 @@
|
|
|
17
18
|
color: var(--dark-text);
|
|
18
19
|
}
|
|
19
20
|
|
|
21
|
+
@media (prefers-color-scheme: dark) {
|
|
22
|
+
input:autofill,
|
|
23
|
+
input:autofill:hover,
|
|
24
|
+
input:autofill:focus,
|
|
25
|
+
input:-webkit-autofill,
|
|
26
|
+
input:-webkit-autofill:hover,
|
|
27
|
+
input:-webkit-autofill:focus {
|
|
28
|
+
-webkit-box-shadow: 0 0 0 1000px var(--dark-main) inset !important;
|
|
29
|
+
box-shadow: 0 0 0 1000px var(--dark-main) inset !important;
|
|
30
|
+
-webkit-text-fill-color: var(--dark-text) !important; /* behåller textfärgen */
|
|
31
|
+
background-color: var(--dark-main) !important;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Firefox */
|
|
35
|
+
input:-moz-autofill {
|
|
36
|
+
box-shadow: 0 0 0 1000px transparent inset !important;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
20
39
|
|
|
21
40
|
/*----------COOKIE BANNER-------*/
|
|
22
41
|
.pts-cookieBanner {
|
|
@@ -337,6 +356,13 @@
|
|
|
337
356
|
.errorSummary-text {
|
|
338
357
|
color: var(--dark-error) !important;
|
|
339
358
|
}
|
|
359
|
+
|
|
360
|
+
/*--------------------FOOTER-----------------*/
|
|
361
|
+
|
|
362
|
+
.pts-footer-slogan-text-container{
|
|
363
|
+
background-color: var(--dark-background-third);
|
|
364
|
+
}
|
|
365
|
+
|
|
340
366
|
|
|
341
367
|
/*-------------MODAL-----------*/
|
|
342
368
|
.pts-modal-content{
|
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 {
|
package/src/css/styles.css
CHANGED
|
@@ -11,8 +11,27 @@
|
|
|
11
11
|
--info: #545454;
|
|
12
12
|
--orientation-active: #dc7d0a;
|
|
13
13
|
--background-second: #200827;
|
|
14
|
+
--background-third: #414141;
|
|
14
15
|
}
|
|
15
16
|
|
|
17
|
+
|
|
18
|
+
input:autofill,
|
|
19
|
+
input:autofill:hover,
|
|
20
|
+
input:autofill:focus,
|
|
21
|
+
input:-webkit-autofill,
|
|
22
|
+
input:-webkit-autofill:hover,
|
|
23
|
+
input:-webkit-autofill:focus {
|
|
24
|
+
-webkit-box-shadow: 0 0 0 1000px var(--main) inset !important;
|
|
25
|
+
box-shadow: 0 0 0 1000px var(--main) inset !important;
|
|
26
|
+
-webkit-text-fill-color: inherit !important; /* behåller textfärgen */
|
|
27
|
+
background-color: var(--main) !important;
|
|
28
|
+
}
|
|
29
|
+
input:-moz-autofill {
|
|
30
|
+
box-shadow: 0 0 0 1000px transparent inset !important;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
16
35
|
body,
|
|
17
36
|
#root {
|
|
18
37
|
min-height: 100vh;
|
|
@@ -650,17 +669,35 @@ textarea:focus-visible,
|
|
|
650
669
|
/* ---------- FOOTER ---------- */
|
|
651
670
|
|
|
652
671
|
.pts-footer-container {
|
|
653
|
-
display: flex;
|
|
654
|
-
min-height: 14rem;
|
|
655
672
|
align-items: center;
|
|
656
673
|
width: 100%;
|
|
657
674
|
background-color: var(--background-second);
|
|
658
675
|
}
|
|
659
676
|
|
|
677
|
+
.pts-footer-slogan-text-container{
|
|
678
|
+
display: flex;
|
|
679
|
+
align-items: center;
|
|
680
|
+
justify-content: center;
|
|
681
|
+
background-color: var(--background-third);
|
|
682
|
+
height: 50px;
|
|
683
|
+
padding: 0px;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
.pts-footer-slogan-text{
|
|
687
|
+
color: var(--main);
|
|
688
|
+
line-height: 2.4rem;
|
|
689
|
+
font-size: 2rem;
|
|
690
|
+
text-box-trim: trim-both;
|
|
691
|
+
margin: 0;
|
|
692
|
+
|
|
693
|
+
}
|
|
694
|
+
|
|
660
695
|
.pts-footer-content{
|
|
661
696
|
display: flex;
|
|
662
697
|
align-items: center;
|
|
663
698
|
width: 100%;
|
|
699
|
+
min-height: 14rem;
|
|
700
|
+
padding: 0.1rem 0;
|
|
664
701
|
}
|
|
665
702
|
|
|
666
703
|
.pts-footer-logo {
|