optimized-react-component-library-xyz123 2.12.4 → 2.12.7
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 +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +75 -63
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +75 -63
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/darkMode.css +12 -5
- package/src/css/mobileView.css +10 -4
- package/src/css/styles.css +55 -37
package/package.json
CHANGED
package/src/css/darkMode.css
CHANGED
|
@@ -20,6 +20,14 @@
|
|
|
20
20
|
color: var(--dark-text);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
.pts-secondary-button {
|
|
24
|
+
border-color: var(--dark-background-second);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.pts-secondary-button:hover {
|
|
28
|
+
border-color: var(--dark-text);
|
|
29
|
+
}
|
|
30
|
+
|
|
23
31
|
/*----------COOKIE BANNER-------*/
|
|
24
32
|
.pts-cookieBanner {
|
|
25
33
|
background-color: var(--dark-main) !important;
|
|
@@ -372,16 +380,14 @@
|
|
|
372
380
|
color: var(--dark-info);
|
|
373
381
|
}
|
|
374
382
|
|
|
375
|
-
|
|
376
383
|
/* ---------- DROPDOWN ---------- */
|
|
377
384
|
.pts-dropdown-container select {
|
|
378
385
|
border-color: var(--dark-info);
|
|
379
386
|
background-color: var(--dark-main);
|
|
380
387
|
color: var(--dark-text);
|
|
381
|
-
|
|
388
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.7073 15.7069C12.5198 15.8943 12.2655 15.9996 12.0003 15.9996C11.7352 15.9996 11.4809 15.8943 11.2933 15.7069L5.63634 10.0499C5.54083 9.95761 5.46465 9.84726 5.41224 9.72526C5.35983 9.60326 5.33225 9.47204 5.33109 9.33926C5.32994 9.20648 5.35524 9.0748 5.40552 8.9519C5.4558 8.829 5.53006 8.71735 5.62395 8.62346C5.71784 8.52957 5.82949 8.45531 5.95239 8.40503C6.07529 8.35475 6.20696 8.32945 6.33974 8.3306C6.47252 8.33176 6.60374 8.35934 6.72575 8.41175C6.84775 8.46416 6.9581 8.54034 7.05034 8.63585L12.0003 13.5859L16.9503 8.63585C17.1389 8.4537 17.3915 8.3529 17.6537 8.35518C17.9159 8.35746 18.1668 8.46263 18.3522 8.64804C18.5376 8.83344 18.6427 9.08426 18.645 9.34645C18.6473 9.60865 18.5465 9.86125 18.3643 10.0499L12.7073 15.7069Z' fill='%23ffffff'/%3E%3C/svg%3E");
|
|
382
389
|
}
|
|
383
390
|
|
|
384
|
-
|
|
385
391
|
/* ---------- ADD FILE QUESTION ---------- */
|
|
386
392
|
.filePickText {
|
|
387
393
|
color: var(--dark-text) !important;
|
|
@@ -464,7 +470,7 @@
|
|
|
464
470
|
}
|
|
465
471
|
|
|
466
472
|
.pts-open-close-icon svg path,
|
|
467
|
-
.pts-collapse-open-close-icon svg path{
|
|
473
|
+
.pts-collapse-open-close-icon svg path {
|
|
468
474
|
fill: var(--dark-main);
|
|
469
475
|
}
|
|
470
476
|
|
|
@@ -517,7 +523,8 @@
|
|
|
517
523
|
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");
|
|
518
524
|
}
|
|
519
525
|
|
|
520
|
-
.pts-modal-overlay,
|
|
526
|
+
.pts-modal-overlay,
|
|
527
|
+
.pts-navigation-overlay {
|
|
521
528
|
background-color: rgba(255, 255, 255, 0.5);
|
|
522
529
|
}
|
|
523
530
|
|
package/src/css/mobileView.css
CHANGED
|
@@ -34,12 +34,13 @@
|
|
|
34
34
|
.pts-navigation-header-nav-container {
|
|
35
35
|
align-items: center;
|
|
36
36
|
justify-content: center;
|
|
37
|
-
height:
|
|
37
|
+
height: 4.8rem;
|
|
38
|
+
gap: 0.6rem;
|
|
38
39
|
}
|
|
39
40
|
|
|
40
|
-
.pts-navigation-header-nav-container button {
|
|
41
|
+
/* todo .pts-navigation-header-nav-container button {
|
|
41
42
|
width: 100%;
|
|
42
|
-
}
|
|
43
|
+
}*/
|
|
43
44
|
|
|
44
45
|
.pts-navigation-close-button {
|
|
45
46
|
align-items: center;
|
|
@@ -116,6 +117,11 @@
|
|
|
116
117
|
padding-top: 0;
|
|
117
118
|
}
|
|
118
119
|
|
|
120
|
+
.pts-footer-linkList .pts-secondary-button {
|
|
121
|
+
margin-left: unset;
|
|
122
|
+
border-color: var(--background);
|
|
123
|
+
}
|
|
124
|
+
|
|
119
125
|
.pts-footer-linkList a span {
|
|
120
126
|
padding: 0;
|
|
121
127
|
}
|
|
@@ -261,7 +267,7 @@
|
|
|
261
267
|
margin-right: 1.6rem;
|
|
262
268
|
margin-top: 1.6rem;
|
|
263
269
|
}
|
|
264
|
-
|
|
270
|
+
/*****Questions*******/
|
|
265
271
|
.pts-textArea-container textarea {
|
|
266
272
|
width: 100%;
|
|
267
273
|
box-sizing: border-box;
|
package/src/css/styles.css
CHANGED
|
@@ -64,7 +64,6 @@
|
|
|
64
64
|
border: 0;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
68
67
|
select:focus-visible,
|
|
69
68
|
button:focus-visible,
|
|
70
69
|
a:focus-visible,
|
|
@@ -115,13 +114,38 @@ input:focus-visible:-webkit-autofill {
|
|
|
115
114
|
box-shadow: 0 0 0 0px #000 !important;
|
|
116
115
|
}
|
|
117
116
|
|
|
117
|
+
.pts-secondary-button {
|
|
118
|
+
display: inline-flex;
|
|
119
|
+
align-items: center;
|
|
120
|
+
background: none;
|
|
121
|
+
margin: 0;
|
|
122
|
+
font: inherit;
|
|
123
|
+
text-align: inherit;
|
|
124
|
+
line-height: normal;
|
|
125
|
+
cursor: pointer;
|
|
126
|
+
outline: none;
|
|
127
|
+
white-space: nowrap;
|
|
128
|
+
color: var(--action);
|
|
129
|
+
padding: 0.8rem 2rem;
|
|
130
|
+
border: 2px solid var(--background);
|
|
131
|
+
border-radius: 0.8rem;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.pts-secondary-button:hover {
|
|
135
|
+
border-color: var(--action);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.secondary_icon {
|
|
139
|
+
padding-right: 0.6rem;
|
|
140
|
+
}
|
|
141
|
+
|
|
118
142
|
/* ---------- COOKIE BANNER ---------- */
|
|
119
143
|
|
|
120
144
|
.pts-cookieBanner {
|
|
121
145
|
position: relative;
|
|
122
146
|
top: 0;
|
|
123
147
|
left: 0;
|
|
124
|
-
padding:
|
|
148
|
+
padding: 1.5rem 2rem;
|
|
125
149
|
background: #eaf1f9;
|
|
126
150
|
border-bottom: 4px solid var(--action);
|
|
127
151
|
z-index: 9999;
|
|
@@ -132,13 +156,13 @@ input:focus-visible:-webkit-autofill {
|
|
|
132
156
|
display: flex;
|
|
133
157
|
flex-direction: column;
|
|
134
158
|
justify-self: center;
|
|
135
|
-
max-width:
|
|
159
|
+
max-width: 8.6rem;
|
|
136
160
|
margin: 1.6rem 0;
|
|
137
161
|
}
|
|
138
162
|
|
|
139
163
|
.pts-cookieBanner p {
|
|
140
164
|
line-height: 2.4rem;
|
|
141
|
-
margin: 0 0
|
|
165
|
+
margin: 0 0 1.5rem 0;
|
|
142
166
|
}
|
|
143
167
|
.pts-cookieBanner-Links {
|
|
144
168
|
margin-bottom: 1.6rem;
|
|
@@ -157,7 +181,7 @@ input:focus-visible:-webkit-autofill {
|
|
|
157
181
|
min-width: 140px;
|
|
158
182
|
text-align: center;
|
|
159
183
|
font-size: 1.4rem;
|
|
160
|
-
padding:
|
|
184
|
+
padding: 0.8rem 1.5rem;
|
|
161
185
|
background-color: var(--action);
|
|
162
186
|
border: 2px solid var(--action);
|
|
163
187
|
color: white;
|
|
@@ -197,7 +221,7 @@ input:focus-visible:-webkit-autofill {
|
|
|
197
221
|
.pts-header-container {
|
|
198
222
|
display: flex;
|
|
199
223
|
min-height: 80px;
|
|
200
|
-
padding: 0px
|
|
224
|
+
padding: 0px 7rem;
|
|
201
225
|
align-items: center;
|
|
202
226
|
justify-content: space-between;
|
|
203
227
|
background-color: var(--main);
|
|
@@ -224,17 +248,6 @@ input:focus-visible:-webkit-autofill {
|
|
|
224
248
|
align-items: flex-end;
|
|
225
249
|
}
|
|
226
250
|
|
|
227
|
-
.pts-languageButton {
|
|
228
|
-
position: relative;
|
|
229
|
-
display: inline-flex;
|
|
230
|
-
align-items: center;
|
|
231
|
-
background: transparent;
|
|
232
|
-
border: transparent;
|
|
233
|
-
color: var(--action);
|
|
234
|
-
cursor: pointer;
|
|
235
|
-
font-size: 1.6rem;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
251
|
.languageIcon {
|
|
239
252
|
position: relative;
|
|
240
253
|
margin-top: 0.3rem;
|
|
@@ -256,7 +269,7 @@ input:focus-visible:-webkit-autofill {
|
|
|
256
269
|
.pts-navigation-header-container {
|
|
257
270
|
display: flex;
|
|
258
271
|
min-height: 80px;
|
|
259
|
-
padding: 0px
|
|
272
|
+
padding: 0px 0.7rem;
|
|
260
273
|
align-items: center;
|
|
261
274
|
justify-content: space-between;
|
|
262
275
|
background-color: var(--main);
|
|
@@ -325,15 +338,6 @@ input:focus-visible:-webkit-autofill {
|
|
|
325
338
|
}
|
|
326
339
|
|
|
327
340
|
.pts-navigation-header-nav-container button {
|
|
328
|
-
background: none;
|
|
329
|
-
line-height: 2.4rem;
|
|
330
|
-
text-decoration-skip-ink: none;
|
|
331
|
-
border: none;
|
|
332
|
-
color: var(--action);
|
|
333
|
-
font-size: 1.6rem;
|
|
334
|
-
padding: 0;
|
|
335
|
-
cursor: pointer;
|
|
336
|
-
width: 13rem;
|
|
337
341
|
z-index: 900;
|
|
338
342
|
}
|
|
339
343
|
|
|
@@ -387,7 +391,7 @@ input:focus-visible:-webkit-autofill {
|
|
|
387
391
|
}
|
|
388
392
|
|
|
389
393
|
.pts-navigation-link-expand-button {
|
|
390
|
-
all:unset;
|
|
394
|
+
all: unset;
|
|
391
395
|
border: none;
|
|
392
396
|
padding: 0;
|
|
393
397
|
cursor: pointer;
|
|
@@ -399,7 +403,7 @@ input:focus-visible:-webkit-autofill {
|
|
|
399
403
|
padding-left: 3.6rem;
|
|
400
404
|
display: flex;
|
|
401
405
|
align-items: flex-end;
|
|
402
|
-
gap:
|
|
406
|
+
gap: 1.8rem;
|
|
403
407
|
}
|
|
404
408
|
|
|
405
409
|
.pts-sub-navigation-list {
|
|
@@ -429,7 +433,6 @@ input:focus-visible:-webkit-autofill {
|
|
|
429
433
|
}
|
|
430
434
|
|
|
431
435
|
.pts-navigation-close-button {
|
|
432
|
-
border: none;
|
|
433
436
|
color: var(--action);
|
|
434
437
|
background-color: var(--main);
|
|
435
438
|
display: flex;
|
|
@@ -550,7 +553,7 @@ input:focus-visible:-webkit-autofill {
|
|
|
550
553
|
|
|
551
554
|
/* ---------- OptionTextBody ---------- */
|
|
552
555
|
|
|
553
|
-
.pts-optionTextBody-container{
|
|
556
|
+
.pts-optionTextBody-container {
|
|
554
557
|
margin-top: 1.6rem;
|
|
555
558
|
}
|
|
556
559
|
|
|
@@ -672,13 +675,12 @@ input:focus-visible:-webkit-autofill {
|
|
|
672
675
|
border-radius: 8px 8px 0 0;
|
|
673
676
|
}
|
|
674
677
|
|
|
675
|
-
.pts-collapse-open-close-icon svg{
|
|
678
|
+
.pts-collapse-open-close-icon svg {
|
|
676
679
|
width: 2.4rem;
|
|
677
680
|
height: 2.4rem;
|
|
678
681
|
position: relative;
|
|
679
682
|
top: 3px;
|
|
680
683
|
}
|
|
681
|
-
|
|
682
684
|
|
|
683
685
|
.pts-collapse-button .pts-open-close-icon svg {
|
|
684
686
|
width: 2.4rem;
|
|
@@ -752,8 +754,8 @@ input:focus-visible:-webkit-autofill {
|
|
|
752
754
|
list-style: none;
|
|
753
755
|
}
|
|
754
756
|
|
|
755
|
-
.pts-linkList-container li:last-child{
|
|
756
|
-
padding-bottom:0
|
|
757
|
+
.pts-linkList-container li:last-child {
|
|
758
|
+
padding-bottom: 0;
|
|
757
759
|
}
|
|
758
760
|
|
|
759
761
|
/* ---------- GRANSKA-Sidan ---------- */
|
|
@@ -1089,6 +1091,22 @@ input:focus-visible:-webkit-autofill {
|
|
|
1089
1091
|
|
|
1090
1092
|
/*-----------ALWAYS IN THE END OF STYLES----------------*/
|
|
1091
1093
|
|
|
1094
|
+
.pts-footer-linkList .pts-secondary-button {
|
|
1095
|
+
position: relative;
|
|
1096
|
+
color: var(--background);
|
|
1097
|
+
border-color: var(--background-second);
|
|
1098
|
+
margin-left: 1.6rem;
|
|
1099
|
+
top: -0.5rem;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
.pts-footer-linkList .pts-secondary-button:hover {
|
|
1103
|
+
border-color: var(--background);
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
.secondary_icon {
|
|
1107
|
+
padding-right: 0.6rem;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1092
1110
|
.cleanPadding {
|
|
1093
1111
|
padding: 0;
|
|
1094
1112
|
}
|
|
@@ -1111,12 +1129,12 @@ input:focus-visible:-webkit-autofill {
|
|
|
1111
1129
|
border: 0;
|
|
1112
1130
|
}
|
|
1113
1131
|
|
|
1114
|
-
|
|
1115
1132
|
.hide-asterix .pts-root-mandatoryAsterisk {
|
|
1116
1133
|
display: none;
|
|
1117
1134
|
}
|
|
1118
1135
|
|
|
1119
|
-
[hidden]
|
|
1136
|
+
[hidden],
|
|
1137
|
+
.hidden {
|
|
1120
1138
|
display: none;
|
|
1121
1139
|
}
|
|
1122
1140
|
|