optimized-react-component-library-xyz123 0.20.1 → 0.20.3

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.
@@ -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,32 +196,12 @@
210
196
  margin-left: 12px;
211
197
  }
212
198
 
213
- /*---------PREVIEW PAGE----------------*/
214
-
215
- .pts-preview-header {
216
- display: block;
217
- justify-content: unset;
218
- align-items: unset;
219
- width: 100%;
220
- }
221
-
222
- .pts-preview-header h2 {
223
- margin-bottom: 0.8rem;
224
- }
225
-
226
199
  .pts-editPreviewLink-container {
227
- display: block;
228
- justify-content: unset;
229
- align-items: unset;
230
- margin: 0 0 2.6rem 0;
231
- }
232
-
233
- .pts-edit-step-text{
234
- padding-left: 0;
200
+ width: 50%;
235
201
  }
236
202
 
237
203
  .pts-editPreviewLink-container a {
238
- font-size: 1.6rem;
204
+ font-size: 1.3rem;
239
205
  display: block;
240
206
  }
241
207
 
@@ -259,11 +225,6 @@
259
225
  padding-bottom: 4px;
260
226
  }
261
227
 
262
- .pts-footer-slogan-text{
263
- line-height: 2rem;
264
- }
265
-
266
-
267
228
  .pts-footer-logo {
268
229
  position: static;
269
230
  padding-left: 0;
@@ -336,37 +297,14 @@
336
297
  }
337
298
  }
338
299
 
339
-
340
- /********************************************/
341
- /***************WIDTH: 750 ******************/
342
- /********************************************/
343
- @media (max-width: 750px) {
344
- body .pts-stepper-step:not(:last-child)::after {
345
- left: calc(50% + 3rem);
346
- width: calc(33.33vw - 13rem);
347
- right: auto;
348
- }
349
- }
350
-
351
- /********************************************/
352
- /***************WIDTH: 550 ******************/
353
- /********************************************/
354
- @media (max-width: 550px) {
355
- body .pts-stepper-step:not(:last-child)::after {
356
- left: calc(50% + 3rem);
357
- width: calc(33.33vw - 11rem);
358
- right: auto;
359
- }
360
- }
361
-
362
300
  /********************************************/
363
301
  /***************WIDTH: 480 ******************/
364
302
  /********************************************/
365
303
  @media (max-width: 480px) {
366
304
  .pts-stepper-step:not(:last-child)::after {
367
- left: calc(50% + 3rem);
368
- width: calc(33.33vw - 10rem);
369
- right: auto;
305
+ left: calc(50% + 2rem) !important;
306
+ width: calc(33.33vw - 7.7rem) !important;
307
+ right: auto !important;
370
308
  }
371
309
 
372
310
  .files-upload {
@@ -32,14 +32,6 @@ div.pts-root-question:last-child {
32
32
  cursor: pointer;
33
33
  }
34
34
 
35
- .pts-root-question-group-fieldset legend {
36
- margin-bottom: 0px;
37
- }
38
-
39
- .pts-root-group-fieldset-legend-container {
40
- margin-bottom: 1.6rem;
41
- }
42
-
43
35
  .pts-radio-option,
44
36
  .pts-root-question legend {
45
37
  margin-bottom: 0.8rem;
@@ -60,6 +52,7 @@ div.pts-root-question:last-child {
60
52
  margin-bottom: 0.4rem;
61
53
  }
62
54
 
55
+ .pts-root-question select,
63
56
  .pts-root-question input[type='text']:focus,
64
57
  .pts-root-question input[type='email']:focus,
65
58
  .pts-root-question input[type='tel']:focus {
@@ -104,7 +97,7 @@ div.pts-root-question:last-child {
104
97
  padding: 3.6rem 0 0 0;
105
98
  margin: 0;
106
99
  }
107
-
100
+ .pts-root-question select,
108
101
  .pts-root-question input[type='text'],
109
102
  .pts-root-question input[type='email'],
110
103
  .pts-root-question input[type='tel'] {
@@ -150,6 +143,55 @@ div.pts-root-question:last-child {
150
143
  cursor: pointer;
151
144
  }
152
145
 
146
+ /* ---------- DROPDOWN ---------- */
147
+
148
+ /* För inspiration */
149
+
150
+ .pts-dropdown-container {
151
+ margin-bottom: 1.5rem;
152
+ }
153
+
154
+ .pts-dropdown-container label {
155
+ display: block;
156
+ margin-bottom: 0.5rem;
157
+ font-weight: 500;
158
+ }
159
+
160
+ .pts-dropdown-container select {
161
+ /* display: block;
162
+ width: 100%;
163
+ padding-right: 2.4em;
164
+ padding-left: 0.6em;
165
+
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('../icons/arrow-down.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
+
153
195
  /* ---------- SINGLE CHECKBOX ---------- */
154
196
 
155
197
  .pts-singleCheckbox-row {
@@ -172,7 +214,6 @@ div.pts-root-question:last-child {
172
214
  border-radius: 0.2rem;
173
215
 
174
216
  cursor: pointer;
175
- margin-left: 0px;
176
217
  }
177
218
 
178
219
  .pts-singleCheckbox-container input[type='checkbox']:checked {
@@ -188,14 +229,13 @@ div.pts-root-question:last-child {
188
229
  margin-top: 0.2rem;
189
230
  }
190
231
 
191
-
192
232
  /*-------- CHECKBOX GROUP-------- */
193
233
 
194
- .pts-checkboxGroup-options{
234
+ .pts-checkboxGroup-options {
195
235
  display: flex;
196
236
  }
197
237
 
198
- .pts-checkboxGroup-container input[type='checkbox']{
238
+ .pts-checkboxGroup-container input[type='checkbox'] {
199
239
  appearance: none;
200
240
  width: 1.8rem;
201
241
  height: 1.8rem;
@@ -205,7 +245,6 @@ div.pts-root-question:last-child {
205
245
  border: 0.15rem solid var(--info);
206
246
  border-radius: 0.2rem;
207
247
  cursor: pointer;
208
- margin-left: 0px;
209
248
  }
210
249
 
211
250
  .pts-checkboxGroup-container input[type='checkbox']:checked {
@@ -214,7 +253,7 @@ div.pts-root-question:last-child {
214
253
  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;
215
254
  }
216
255
 
217
- .pts-checkboxGroup-container label{
256
+ .pts-checkboxGroup-container label {
218
257
  padding-top: 0.3rem;
219
258
  line-height: 20px;
220
259
  cursor: pointer;
@@ -223,7 +262,7 @@ div.pts-root-question:last-child {
223
262
 
224
263
  /* ---------- MULTIPLE CHECKBOXES ---------- */
225
264
 
226
- .pts-multipleCheckboxes-container input[type='checkbox']{
265
+ .pts-multipleCheckboxes-container input[type='checkbox'] {
227
266
  appearance: none;
228
267
  width: 1.8rem;
229
268
  height: 1.8rem;
@@ -241,7 +280,7 @@ div.pts-root-question:last-child {
241
280
  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;
242
281
  }
243
282
 
244
- .pts-multipleCheckboxes-container label{
283
+ .pts-multipleCheckboxes-container label {
245
284
  cursor: pointer;
246
285
  margin: 0;
247
286
  padding-top: 0.1rem;
@@ -260,16 +299,15 @@ div.pts-root-question:last-child {
260
299
  cursor: pointer;
261
300
  }
262
301
 
263
- .pts-multipleCheckboxes-container li label{
302
+ .pts-multipleCheckboxes-container li label {
264
303
  flex: 1;
265
304
  margin-top: 0.2rem;
266
305
  }
267
306
 
268
-
269
307
  /* ---------- TEXTFIELD / TEXTAREA ABOUT ---------- */
270
308
 
271
309
  .pts-textField-container {
272
- margin-bottom: 16px;
310
+ margin-top: 8px;
273
311
  }
274
312
 
275
313
  .pts-about {
@@ -322,10 +360,6 @@ div.pts-root-question:last-child {
322
360
  width: 100%;
323
361
  }
324
362
 
325
- .pts-root-question-group-fieldset .pts-root-error{
326
- margin-bottom: 1.6rem;
327
- }
328
-
329
363
  /* ---------- FILE UPLOAD ---------- */
330
364
  /* ---------- FILE UPLOAD ---------- */
331
365
  /* ---------- FILE UPLOAD ---------- */
@@ -1080,24 +1114,3 @@ div.pts-root-question:last-child {
1080
1114
  background: var(--red-green-red, rgb(211, 165, 0));
1081
1115
  }
1082
1116
  /* ---------- END FILE UPLOAD ---------- */
1083
-
1084
-
1085
-
1086
-
1087
-
1088
-
1089
- input:autofill,
1090
- input:autofill:hover,
1091
- input:autofill:focus,
1092
- input:-webkit-autofill,
1093
- input:-webkit-autofill:hover,
1094
- input:-webkit-autofill:focus {
1095
- -webkit-box-shadow: 0 0 0 1000px var(--main) inset !important;
1096
- box-shadow: 0 0 0 1000px var(--main) inset !important;
1097
- -webkit-text-fill-color: inherit !important; /* behåller textfärgen */
1098
- background-color: var(--main) !important;
1099
- }
1100
- input:-moz-autofill {
1101
- box-shadow: 0 0 0 1000px transparent inset !important;
1102
- }
1103
-
@@ -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,
@@ -100,7 +99,6 @@ h4 {
100
99
  max-width: 860px;
101
100
  margin-left: auto;
102
101
  margin-right: auto;
103
- width: 100%;
104
102
  }
105
103
 
106
104
  section {
@@ -136,12 +134,8 @@ section {
136
134
  --- ?? Make changes in html ?? */
137
135
 
138
136
  p[aria-live='assertive']:empty {
139
- margin: 0;
140
- padding: 0;
141
- }
142
-
143
- .pts-root-categoryDescription {
144
- margin-top: 0px;
137
+ margin: 0;
138
+ padding: 0;
145
139
  }
146
140
 
147
141
  .pts-first-category-section {
@@ -168,8 +162,6 @@ p[aria-live='assertive']:empty {
168
162
  margin-bottom: 36px;
169
163
  }
170
164
 
171
-
172
-
173
165
  .sr-only {
174
166
  position: absolute;
175
167
  width: 1px;
@@ -181,7 +173,7 @@ p[aria-live='assertive']:empty {
181
173
  white-space: nowrap;
182
174
  border: 0;
183
175
  }
184
-
176
+ select:focus-visible,
185
177
  button:focus-visible,
186
178
  a:focus-visible,
187
179
  input:focus-visible,
@@ -193,7 +185,7 @@ textarea:focus-visible,
193
185
  outline-width: 2px !important;
194
186
  box-shadow: 0 0 0 4px #000 !important;
195
187
  }
196
-
188
+ .using-mouse select:focus-visible,
197
189
  .using-mouse input:focus-visible,
198
190
  .using-mouse button:focus-visible,
199
191
  .using-mouse textarea:focus-visible,
@@ -204,7 +196,6 @@ textarea:focus-visible,
204
196
  box-shadow: 0 0 0 0px #000 !important;
205
197
  }
206
198
 
207
-
208
199
  /* ---------- COOKIE BANNER ---------- */
209
200
 
210
201
  .pts-cookieBanner {
@@ -293,27 +284,6 @@ textarea:focus-visible,
293
284
  background-color: var(--main);
294
285
  }
295
286
 
296
- .pts-header-content{
297
- width: 100%;
298
- display: flex;
299
- }
300
-
301
- .pts-header-logo-container{
302
- height:4rem;
303
- }
304
-
305
- .pts-header-logo svg{
306
- height: 4rem;
307
- }
308
-
309
- .pts-header-navigation-container{
310
- display: flex;
311
- flex-direction: column;
312
- justify-content: flex-end;
313
- width: 100%;
314
- align-items: flex-end;
315
- }
316
-
317
287
  .pts-languageButton {
318
288
  position: relative;
319
289
  display: inline-flex;
@@ -322,45 +292,40 @@ textarea:focus-visible,
322
292
  border: transparent;
323
293
  color: var(--action);
324
294
  cursor: pointer;
325
- font-size: 1.6rem;
326
295
  }
327
296
 
328
297
  .pts-languageButton::after {
329
- content: "";
330
- position: absolute;
331
- left: 7px;
332
- right: 4px;
333
- bottom: 3px;
334
- height: 0.15rem;
335
- background-color: currentColor;
336
- opacity: 0;
298
+ content: '';
299
+ position: absolute;
300
+ left: 0.7rem;
301
+ right: -0.3rem;
302
+ bottom: 0;
303
+ height: 0.2rem;
304
+ background-color: currentColor;
305
+ opacity: 0;
337
306
  }
338
307
 
339
308
  .pts-languageButton:hover::after {
340
- opacity: 1;
309
+ opacity: 1;
341
310
  }
342
311
 
343
- .languageIcon{
344
- position: relative;
312
+ .languageIcon {
345
313
  margin-top: 0.3rem;
346
314
  padding-right: 0.6rem;
347
- top: 0.01rem;
348
315
  }
349
316
 
350
317
  .pts-languageButton svg {
351
- width: 1.6rem;
352
- height: 1.6rem;
318
+ width: 1.5rem;
319
+ height: 1.5rem;
353
320
  }
354
321
 
322
+ .languageIcon {
323
+ padding-left: 0.6rem;
324
+ }
355
325
 
356
326
  /* ---------- TextBODY ---------- */
357
327
 
358
- .pts-textBody-container p{
359
- margin-bottom: 1.6rem;
360
-
361
- }
362
-
363
- .MoreInfoIcon{
328
+ .MoreInfoIcon {
364
329
  margin-top: 2px;
365
330
  }
366
331
 
@@ -401,7 +366,7 @@ textarea:focus-visible,
401
366
  }
402
367
 
403
368
  .pts-textHeadlineAndBody-container .first-paragraph {
404
- margin-top: 0;
369
+ margin-top: 0;
405
370
  }
406
371
 
407
372
  /* ---------- STEPPER ---------- */
@@ -517,6 +482,12 @@ textarea:focus-visible,
517
482
  gap: 0.2rem;
518
483
  }
519
484
 
485
+ .pts-editPreviewLink-container svg {
486
+ height: 1.6rem;
487
+ width: 1.6rem;
488
+ flex-shrink: 0;
489
+ }
490
+
520
491
  .pts-question-preview,
521
492
  .addFilesPreviewContainer {
522
493
  display: flex;
@@ -553,7 +524,11 @@ textarea:focus-visible,
553
524
  margin-bottom: 36px;
554
525
  }
555
526
 
556
- .pts-edit-step-text{
527
+ .pts-edit-step-button {
528
+ text-decoration: none;
529
+ }
530
+
531
+ .pts-edit-step-text {
557
532
  padding-left: 5px;
558
533
  }
559
534
 
@@ -666,41 +641,20 @@ textarea:focus-visible,
666
641
  transition: 0.2s;
667
642
  }
668
643
 
669
-
670
-
671
-
672
644
  /* ---------- FOOTER ---------- */
673
645
 
674
646
  .pts-footer-container {
647
+ display: flex;
648
+ min-height: 14rem;
675
649
  align-items: center;
676
650
  width: 100%;
677
651
  background-color: var(--background-second);
678
652
  }
679
653
 
680
- .pts-footer-slogan-text-container{
654
+ .pts-footer-content {
681
655
  display: flex;
682
656
  align-items: center;
683
- justify-content: center;
684
- background-color: var(--background-third);
685
- height: 50px;
686
- padding: 0px;
687
- }
688
-
689
- .pts-footer-slogan-text{
690
- color: var(--main);
691
- line-height: 2.4rem;
692
- font-size: 2rem;
693
- text-box-trim: trim-both;
694
- margin: 0;
695
-
696
- }
697
-
698
- .pts-footer-content{
699
- display: flex;
700
- align-items: center;
701
- width: 100%;
702
- min-height: 14rem;
703
- padding: 0.1rem 0;
657
+ width: 100%;
704
658
  }
705
659
 
706
660
  .pts-footer-logo {
@@ -715,7 +669,7 @@ textarea:focus-visible,
715
669
  flex: 1;
716
670
  justify-content: center;
717
671
  margin-left: -224px;
718
- }
672
+ }
719
673
 
720
674
  .pts-footer-linkList ul {
721
675
  padding: 0;
@@ -749,7 +703,6 @@ textarea:focus-visible,
749
703
  box-sizing: border-box;
750
704
  }
751
705
 
752
-
753
706
  /* ---------- MODAL ---------- */
754
707
 
755
708
  .pts-modal-overlay {
@@ -802,7 +755,6 @@ textarea:focus-visible,
802
755
  transform: rotate(360deg);
803
756
  }
804
757
  }
805
- /*-----------ALWAYS IN THE END OF STYLES----------------*/
806
758
 
807
759
  .cleanPadding {
808
760
  padding: 0;
@@ -812,16 +764,3 @@ textarea:focus-visible,
812
764
  margin: 0;
813
765
  padding: 0;
814
766
  }
815
-
816
- .visually-hidden {
817
- position: absolute !important;
818
- width: 1px;
819
- height: 1px;
820
- padding: 0;
821
- margin: -1px;
822
- overflow: hidden;
823
- clip: rect(0, 0, 0, 0);
824
- clip-path: inset(50%);
825
- white-space: nowrap;
826
- border: 0;
827
- }
@@ -0,0 +1,5 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g id="Group">
3
+ <path id="Vector" fill-rule="evenodd" clip-rule="evenodd" d="M12.7069 15.7071C12.5193 15.8946 12.265 15.9999 11.9999 15.9999C11.7347 15.9999 11.4804 15.8946 11.2929 15.7071L5.63585 10.0501C5.54034 9.95785 5.46416 9.84751 5.41175 9.7255C5.35934 9.6035 5.33176 9.47228 5.3306 9.3395C5.32945 9.20672 5.35475 9.07504 5.40503 8.95215C5.45531 8.82925 5.52957 8.7176 5.62346 8.6237C5.71735 8.52981 5.829 8.45556 5.9519 8.40528C6.0748 8.355 6.20648 8.32969 6.33926 8.33085C6.47204 8.332 6.60325 8.35959 6.72526 8.412C6.84726 8.46441 6.95761 8.54059 7.04985 8.6361L11.9999 13.5861L16.9499 8.6361C17.1385 8.45394 17.3911 8.35315 17.6533 8.35542C17.9155 8.3577 18.1663 8.46287 18.3517 8.64828C18.5371 8.83369 18.6423 9.0845 18.6445 9.3467C18.6468 9.60889 18.546 9.8615 18.3639 10.0501L12.7069 15.7071Z" fill="white"/>
4
+ </g>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g id="Group">
3
+ <path id="Vector" fill-rule="evenodd" clip-rule="evenodd" d="M12.7069 15.7071C12.5193 15.8946 12.265 15.9999 11.9999 15.9999C11.7347 15.9999 11.4804 15.8946 11.2929 15.7071L5.63585 10.0501C5.54034 9.95785 5.46416 9.84751 5.41175 9.7255C5.35934 9.6035 5.33176 9.47228 5.3306 9.3395C5.32945 9.20672 5.35475 9.07504 5.40503 8.95215C5.45531 8.82925 5.52957 8.7176 5.62346 8.6237C5.71735 8.52981 5.829 8.45556 5.9519 8.40528C6.0748 8.355 6.20648 8.32969 6.33926 8.33085C6.47204 8.332 6.60325 8.35959 6.72526 8.412C6.84726 8.46441 6.95761 8.54059 7.04985 8.6361L11.9999 13.5861L16.9499 8.6361C17.1385 8.45394 17.3911 8.35315 17.6533 8.35542C17.9155 8.3577 18.1663 8.46287 18.3517 8.64828C18.5371 8.83369 18.6423 9.0845 18.6445 9.3467C18.6468 9.60889 18.546 9.8615 18.3639 10.0501L12.7069 15.7071Z" fill="black"/>
4
+ </g>
5
+ </svg>