optimized-react-component-library-xyz123 0.19.13 → 0.19.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "optimized-react-component-library-xyz123",
3
- "version": "0.19.13",
3
+ "version": "0.19.14",
4
4
  "description": "A modern React component library using TypeScript with React 19 support.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -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,17 +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
- .pts-singleCheckbox-container input[type='checkbox'] {
247
- background-color: var(--dark-main);
248
- border-color: var(--dark-info);
249
- }
250
- .pts-singleCheckbox-container input[type='checkbox']:checked {
251
- background-color: var(--dark-action);
252
- 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;
253
- }
254
-
255
-
256
244
  /* ---------- TEXTAREA ---------- */
257
245
 
258
246
  .pts-textArea-container textarea {
@@ -323,6 +311,10 @@
323
311
  color: var(--dark-action);
324
312
  }
325
313
 
314
+ .pts-editPreviewLink-container svg path {
315
+ stroke: var(--dark-action);
316
+ }
317
+
326
318
  /* ---------- GRANSKA ---------- */
327
319
 
328
320
  .no-answer-preview-page {
@@ -345,13 +337,6 @@
345
337
  .errorSummary-text {
346
338
  color: var(--dark-error) !important;
347
339
  }
348
-
349
- /*--------------------FOOTER-----------------*/
350
-
351
- .pts-footer-slogan-text-container{
352
- background-color: var(--dark-background-third);
353
- }
354
-
355
340
 
356
341
  /*-------------MODAL-----------*/
357
342
  .pts-modal-content{
@@ -363,23 +348,4 @@
363
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");
364
349
 
365
350
  }
366
-
367
-
368
- /*-------------Autofill-----------*/
369
- input:autofill,
370
- input:autofill:hover,
371
- input:autofill:focus,
372
- input:-webkit-autofill,
373
- input:-webkit-autofill:hover,
374
- input:-webkit-autofill:focus {
375
- -webkit-box-shadow: 0 0 0 1000px var(--dark-main) inset !important;
376
- box-shadow: 0 0 0 1000px var(--dark-main) inset !important;
377
- -webkit-text-fill-color: var(--dark-text) !important; /* behåller textfärgen */
378
- background-color: var(--dark-main) !important;
379
- }
380
-
381
- /* Firefox */
382
- input:-moz-autofill {
383
- box-shadow: 0 0 0 1000px transparent inset !important;
384
- }
385
351
  }
@@ -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;
@@ -150,6 +142,56 @@ div.pts-root-question:last-child {
150
142
  cursor: pointer;
151
143
  }
152
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
+
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 {
@@ -140,10 +138,6 @@ p[aria-live='assertive']:empty {
140
138
  padding: 0;
141
139
  }
142
140
 
143
- .pts-root-categoryDescription {
144
- margin-top: 0px;
145
- }
146
-
147
141
  .pts-first-category-section {
148
142
  padding-top: 0;
149
143
  border-top-left-radius: 0;
@@ -293,27 +287,6 @@ textarea:focus-visible,
293
287
  background-color: var(--main);
294
288
  }
295
289
 
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
290
  .pts-languageButton {
318
291
  position: relative;
319
292
  display: inline-flex;
@@ -322,16 +295,15 @@ textarea:focus-visible,
322
295
  border: transparent;
323
296
  color: var(--action);
324
297
  cursor: pointer;
325
- font-size: 1.6rem;
326
298
  }
327
299
 
328
300
  .pts-languageButton::after {
329
301
  content: "";
330
302
  position: absolute;
331
- left: 7px;
332
- right: 4px;
333
- bottom: 3px;
334
- height: 0.15rem;
303
+ left: 0.7rem;
304
+ right: -0.3rem;
305
+ bottom: 0;
306
+ height: 0.2rem;
335
307
  background-color: currentColor;
336
308
  opacity: 0;
337
309
  }
@@ -341,25 +313,21 @@ textarea:focus-visible,
341
313
  }
342
314
 
343
315
  .languageIcon{
344
- position: relative;
345
316
  margin-top: 0.3rem;
346
317
  padding-right: 0.6rem;
347
- top: 0.01rem;
348
318
  }
349
319
 
350
320
  .pts-languageButton svg {
351
- width: 1.6rem;
352
- height: 1.6rem;
321
+ width: 1.5rem;
322
+ height: 1.5rem;
353
323
  }
354
324
 
325
+ .languageIcon{
326
+ padding-left: 0.6rem;
327
+ }
355
328
 
356
329
  /* ---------- TextBODY ---------- */
357
330
 
358
- .pts-textBody-container p{
359
- margin-bottom: 1.6rem;
360
-
361
- }
362
-
363
331
  .MoreInfoIcon{
364
332
  margin-top: 2px;
365
333
  }
@@ -517,6 +485,12 @@ textarea:focus-visible,
517
485
  gap: 0.2rem;
518
486
  }
519
487
 
488
+ .pts-editPreviewLink-container svg {
489
+ height: 1.6rem;
490
+ width: 1.6rem;
491
+ flex-shrink: 0;
492
+ }
493
+
520
494
  .pts-question-preview,
521
495
  .addFilesPreviewContainer {
522
496
  display: flex;
@@ -553,6 +527,10 @@ textarea:focus-visible,
553
527
  margin-bottom: 36px;
554
528
  }
555
529
 
530
+ .pts-edit-step-button{
531
+ text-decoration: none;
532
+ }
533
+
556
534
  .pts-edit-step-text{
557
535
  padding-left: 5px;
558
536
  }
@@ -672,35 +650,17 @@ textarea:focus-visible,
672
650
  /* ---------- FOOTER ---------- */
673
651
 
674
652
  .pts-footer-container {
653
+ display: flex;
654
+ min-height: 14rem;
675
655
  align-items: center;
676
656
  width: 100%;
677
657
  background-color: var(--background-second);
678
658
  }
679
659
 
680
- .pts-footer-slogan-text-container{
681
- display: flex;
682
- 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
660
  .pts-footer-content{
699
661
  display: flex;
700
662
  align-items: center;
701
663
  width: 100%;
702
- min-height: 14rem;
703
- padding: 0.1rem 0;
704
664
  }
705
665
 
706
666
  .pts-footer-logo {
@@ -802,7 +762,8 @@ textarea:focus-visible,
802
762
  transform: rotate(360deg);
803
763
  }
804
764
  }
805
- /*-----------ALWAYS IN THE END OF STYLES----------------*/
765
+
766
+
806
767
 
807
768
  .cleanPadding {
808
769
  padding: 0;
@@ -811,17 +772,4 @@ textarea:focus-visible,
811
772
  .unsetMargin-Padding {
812
773
  margin: 0;
813
774
  padding: 0;
814
- }
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
775
  }