optimized-react-component-library-xyz123 2.3.2 → 2.5.1

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": "2.3.2",
3
+ "version": "2.5.1",
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",
@@ -85,6 +85,7 @@
85
85
  "date-fns": "^4.1.0",
86
86
  "dompurify": "^3.2.6",
87
87
  "react-bootstrap": "^2.10.10",
88
- "react-dropzone": "^14.3.8"
88
+ "react-dropzone": "^14.3.8",
89
+ "react-router-dom": "^7.13.0"
89
90
  }
90
91
  }
@@ -67,6 +67,90 @@
67
67
  color: var(--dark-text);
68
68
  }
69
69
 
70
+
71
+ /*--Navigation header / menu ----*/
72
+
73
+ .pts-navigation-header-container {
74
+ background: var(--dark-background-second);
75
+ }
76
+
77
+ .pts-navigation-header-logo-container,
78
+ .pts-navigation-header-headline-container {
79
+ border-color: var(--dark-background-third)!important;
80
+ }
81
+ .pts-navigation-header-nav-container button svg path,
82
+ .pts-navigation-header-nav-container button svg line{
83
+ color: var(--dark-text);
84
+ fill: var(--dark-text);
85
+ stroke: var(--dark-text);
86
+ }
87
+
88
+ .pts-navigation-header-container svg path {
89
+ fill: var(--dark-text);
90
+ }
91
+
92
+
93
+ .pts-navigation-header-nav-container,
94
+ .pts-navigation-header-button-label {
95
+ background: var(--dark-background-second);
96
+ color: var(--dark-text);
97
+ }
98
+
99
+ .pts-expand-icon svg rect{
100
+ fill: var(--dark-action);
101
+ }
102
+
103
+
104
+ .pts-contract-icon svg rect{
105
+ fill: var(--dark-orientation-active);
106
+ }
107
+
108
+
109
+ .pts-navigation-close-text{
110
+ color: var(--dark-text);
111
+ }
112
+
113
+ .pts-navigation-close-button{
114
+ background: var(--dark-main);
115
+ color: var(--dark-text);
116
+ }
117
+
118
+ .pts-navigation-close-button svg path{
119
+ stroke: var(--dark-text);
120
+ }
121
+
122
+ .pts-navigation-link-expand-button{
123
+ background-color: var(--dark-main);
124
+ }
125
+
126
+ .pts-navigation-link-expand-button svg path{
127
+ stroke: var(--dark-main)!important;
128
+ }
129
+
130
+ .pts-navigation-with-close-button,
131
+ .pts-navigation-menu-container,
132
+ .pts-navigation-button,
133
+ .pts-navigation-close-container,
134
+ .pts-sub-navigation-item,
135
+ .pts-sub-navigation-item a,
136
+ .pts-navigation-button > a {
137
+ background: var(--dark-main);
138
+ color: var(--dark-text);
139
+ border-color: var(--dark-background-third);
140
+ }
141
+
142
+ .pts-navigation-button a {
143
+
144
+ color: var(--dark-text);
145
+
146
+ }
147
+
148
+ .pts-sub-navigation-container {
149
+ border-left: var(--dark-action) 5px solid;
150
+ }
151
+
152
+
153
+
70
154
  /*-------MAIN CONTENT-------*/
71
155
  section,
72
156
  .pts-form-step-header {
@@ -87,6 +171,7 @@
87
171
  .MoreInfoIcon svg {
88
172
  background-color: var(--dark-action);
89
173
  }
174
+
90
175
 
91
176
  .pts-serviceHeadlineAndBody-container a svg path,
92
177
  .MoreInfoIcon svg path {
@@ -161,8 +246,6 @@
161
246
  color: var(--dark-error);
162
247
  }
163
248
 
164
- .pts-root-question-input-error-border,
165
- .pts-root-question-input-error-border,
166
249
  .pts-root-question-input-error-border {
167
250
  border: 0.15rem solid var(--dark-error) !important;
168
251
  }
@@ -340,6 +423,38 @@
340
423
  stroke: #000000;
341
424
  }
342
425
 
426
+ /*---------- LINK STANDARD ------------*/
427
+ .pts-standard-link-icon svg {
428
+ background-color: var(--dark-action);
429
+ }
430
+ .pts-standard-link svg path{
431
+ fill: var(--dark-main);
432
+ color: #000000;
433
+ }
434
+ .pts-link-icon-circle {
435
+ border: 2px solid var(--dark-action);
436
+ background-color: var(--dark-action);
437
+ }
438
+
439
+ /*----------------- COLLAPSE -----------------*/
440
+ .pts-collapse-content{
441
+ color:var(--dark-text);
442
+ }
443
+
444
+ .pts-collapse-button {
445
+ background-color: var(--dark-action);
446
+ color:var(--dark-main);
447
+ }
448
+
449
+ .pts-open-close-icon svg path{
450
+ fill: var(--dark-main);
451
+ }
452
+
453
+ .pts-collapse-body.open{
454
+ border-color: var(--dark-info);
455
+ background: var(--dark-main);
456
+ }
457
+
343
458
  /* ---------- EDIT PREVIEW LINK ---------- */
344
459
 
345
460
  .pts-editPreviewLink-container button {
@@ -405,4 +520,6 @@
405
520
  input:-moz-autofill {
406
521
  box-shadow: 0 0 0 1000px transparent inset !important;
407
522
  }
523
+
524
+
408
525
  }
@@ -105,13 +105,11 @@ fieldset {
105
105
  margin: 0;
106
106
  }
107
107
 
108
-
109
108
  @media (max-width: 750px) {
110
- section {
111
- margin-left: 0;
112
- margin-right: 0;
113
- border-radius: 0;
114
- padding: 1.6rem;
115
- }
109
+ section {
110
+ margin-left: 0;
111
+ margin-right: 0;
112
+ border-radius: 0;
113
+ padding: 1.6rem;
114
+ }
116
115
  }
117
-
@@ -3,6 +3,90 @@
3
3
  /********************************************/
4
4
 
5
5
  @media (max-width: 1085px) {
6
+ /*-------HEADER WITH NAVIGATION--------*/
7
+ .pts-navigation-header-container {
8
+ padding: unset;
9
+ border-bottom: 2px solid #ddd;
10
+ }
11
+ .pts-navigation-header-content {
12
+ display: block;
13
+ }
14
+
15
+ .pts-navigation-header-logo-container {
16
+ padding: 1.6rem 0px;
17
+ width: 100%;
18
+ text-align: center;
19
+ border-bottom: 2px solid #ddd;
20
+ }
21
+
22
+ .pts-navigation-header-headline-container {
23
+ border-bottom: 2px solid #ddd;
24
+ height: 48px;
25
+ align-items: center;
26
+ }
27
+
28
+ .pts-site-headline,
29
+ .pts-navigation-header-headline-container p {
30
+ font-size: 1.6rem;
31
+ top: auto;
32
+ }
33
+
34
+ .pts-navigation-header-nav-container {
35
+ align-items: center;
36
+ justify-content: center;
37
+ height: 48px;
38
+ }
39
+
40
+ .pts-navigation-header-nav-container button {
41
+ width: 100%;
42
+ }
43
+
44
+ .pts-navigation-close-button {
45
+ align-items: center;
46
+ justify-content: center;
47
+ margin-top: 1rem;
48
+ margin-bottom: 1rem;
49
+ }
50
+
51
+ /*---NAVIGATION MENU------**/
52
+
53
+ .pts-navigation-menu-container {
54
+ top: -50px;
55
+
56
+ width: 100%;
57
+ max-width: unset;
58
+ height: 100%;
59
+
60
+ opacity: 0;
61
+ transform: translateY(-100%);
62
+
63
+ transition:
64
+ transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
65
+ opacity 0.25s ease;
66
+
67
+ will-change: transform, opacity;
68
+ }
69
+
70
+ .pts-navigation-menu-container.open {
71
+ position: relative;
72
+ transform: translateY(0);
73
+ opacity: 1;
74
+ }
75
+
76
+ .pts-navigation-close-container {
77
+ position: relative;
78
+ padding: 1px 1px;
79
+ height: 48px;
80
+ justify-content: center;
81
+ }
82
+
83
+ .nav-parent-button {
84
+ padding-right: 5px !important;
85
+ border: 0px !important;
86
+ }
87
+
88
+ /*------FOOTER------**/
89
+
6
90
  .pts-footer-content {
7
91
  display: flex;
8
92
  height: auto;
@@ -1,4 +1,3 @@
1
-
2
1
  .pts-root-question {
3
2
  display: flex;
4
3
  flex-direction: column;
@@ -14,6 +14,7 @@
14
14
  --orientation-active: #dc7d0a;
15
15
  --background-second: #200827;
16
16
  --background-third: #414141;
17
+ --light-action: #d5b9dd;
17
18
  }
18
19
 
19
20
  #main-content {
@@ -247,6 +248,225 @@ input:focus-visible:-webkit-autofill {
247
248
  text-decoration: underline 0.2rem;
248
249
  }
249
250
 
251
+ /**Header with navigation**/
252
+
253
+ .pts-navigation-header-container {
254
+ display: flex;
255
+ min-height: 80px;
256
+ padding: 0px 70px;
257
+ align-items: center;
258
+ justify-content: space-between;
259
+ background-color: var(--main);
260
+ }
261
+
262
+ .pts-navigation-header-content {
263
+ width: 100%;
264
+ display: grid;
265
+ grid-template-columns: 1fr auto 1fr;
266
+ align-items: center;
267
+ }
268
+
269
+ .pts-navigation-header-logo svg {
270
+ height: 4.7rem;
271
+ width: auto;
272
+ }
273
+
274
+ .pts-navigation-header-headline-container {
275
+ display: flex;
276
+ justify-content: center;
277
+ align-items: flex-end;
278
+ }
279
+
280
+ .pts-navigation-header-headline-container p {
281
+ position: relative;
282
+ font-family: 'Aeonik';
283
+ font-size: 24px;
284
+ font-weight: 700;
285
+ top: 8px;
286
+ }
287
+
288
+ .pts-navigation-header-icons {
289
+ position: relative;
290
+ top: 2px;
291
+ }
292
+
293
+ .pts-navigation-header-nav-container .pts-close-icon {
294
+ position: relative;
295
+ bottom: -1px;
296
+ }
297
+
298
+ .pts-navigation-header-nav-container .pts-open-icon {
299
+ position: relative;
300
+ top: 4px;
301
+ }
302
+
303
+ .pts-navigation-overlay {
304
+ position: fixed;
305
+ left: 0;
306
+ top: 0;
307
+ width: 100%;
308
+ height: 100%;
309
+ background-color: rgba(0, 0, 0, 0.5);
310
+ display: flex;
311
+ align-items: center;
312
+ justify-content: center;
313
+ z-index: 998;
314
+ }
315
+
316
+ .pts-navigation-header-nav-container {
317
+ display: flex;
318
+ justify-content: flex-end;
319
+ width: 100%;
320
+ align-items: flex-end;
321
+ height: 5rem;
322
+ }
323
+
324
+ .pts-navigation-header-nav-container button {
325
+ background: none;
326
+ line-height: 2.4rem;
327
+ text-decoration-skip-ink: none;
328
+ border: none;
329
+ color: var(--action);
330
+ font-size: 1.6rem;
331
+ padding: 0;
332
+ cursor: pointer;
333
+ width: 13rem;
334
+ z-index: 900;
335
+ }
336
+
337
+ .pts-navigation-header-button-label {
338
+ position: relative;
339
+ padding-left: 0.8rem;
340
+ }
341
+
342
+ /******NAVIGATION MENU********/
343
+ .pts-navigation-menu-container {
344
+ position: fixed;
345
+ top: 0;
346
+ right: 0;
347
+ width: 100%;
348
+ max-width: 570px;
349
+ z-index: 999;
350
+ opacity: 0;
351
+ transform: translateX(100%);
352
+ transition:
353
+ transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
354
+ opacity 1s;
355
+ }
356
+
357
+ .pts-navigation-menu-container.open {
358
+ opacity: 1;
359
+ transform: translateX(0);
360
+ }
361
+
362
+ .pts-navigation-close-text {
363
+ padding-left: 0.8rem;
364
+ font-size: 16px;
365
+ }
366
+
367
+ .pts-navigation-link-list,
368
+ .pts-navigation-link,
369
+ .pts-sub-navigation-list {
370
+ all: unset;
371
+ list-style: none;
372
+ background-color: var(--main);
373
+ }
374
+
375
+ .pts-navigation-link-list {
376
+ width: 100%;
377
+ padding-inline-start: 0px;
378
+ }
379
+
380
+ .pts-navigation-button a,
381
+ .pts-sub-navigation-item a {
382
+ text-decoration: none;
383
+ color: var(--text);
384
+ }
385
+
386
+ .pts-navigation-link-expand-button {
387
+ border: none;
388
+ padding: 0;
389
+ cursor: pointer;
390
+ }
391
+
392
+ .pts-sub-navigation-container {
393
+ background-color: var(--light-action);
394
+ border-left: var(--action) 5px solid;
395
+ padding-left: 3.6rem;
396
+ display: flex;
397
+ align-items: flex-end;
398
+ gap: 18px;
399
+ }
400
+
401
+ .pts-sub-navigation-list {
402
+ display: block;
403
+ width: 100%;
404
+ }
405
+
406
+ .pts-sub-navigation-item {
407
+ height: 5.1rem;
408
+ display: flex;
409
+ align-items: center;
410
+ justify-content: flex-start;
411
+ border-bottom: 2px solid var(--background);
412
+ padding-left: 3rem;
413
+ }
414
+
415
+ .pts-navigation-button,
416
+ .pts-navigation-close-container {
417
+ padding: 2.1rem 3.6rem;
418
+ border-width: 0px;
419
+ border-bottom: 2px solid var(--background);
420
+ background-color: var(--main);
421
+ text-align: left;
422
+ display: flex;
423
+ justify-content: space-between;
424
+ align-items: center;
425
+ }
426
+
427
+ .pts-navigation-close-button {
428
+ border: none;
429
+ color: var(--action);
430
+ background-color: var(--main);
431
+ display: flex;
432
+ align-items: center;
433
+ justify-content: flex-start;
434
+ margin-top: 1.5rem;
435
+ margin-bottom: 1.5rem;
436
+ cursor: pointer;
437
+ }
438
+
439
+ /******SEARCH BAR*******/
440
+ .pts-searchBar-container {
441
+ height: 7rem;
442
+ background-color: var(--background);
443
+ display: flex;
444
+ align-items: center;
445
+ justify-content: center;
446
+ }
447
+
448
+ .pts-searchBar-button {
449
+ height: 3.9rem;
450
+ background-color: var(--action);
451
+ border-radius: 8px;
452
+ border: var(--action) solid 1px;
453
+ color: var(--main);
454
+ }
455
+
456
+ .pts-searchBar-Button svg {
457
+ margin-right: 0.5rem;
458
+ }
459
+
460
+ .pts-searchBar-container input {
461
+ border-radius: 8px;
462
+ width: 65vw;
463
+ border: var(--action) solid 1px;
464
+ margin-right: -10px;
465
+ padding: 1rem;
466
+ border-top-right-radius: 0px;
467
+ border-bottom-right-radius: 0px;
468
+ }
469
+
250
470
  /* ---------- TextBODY ---------- */
251
471
  .pts-textBody-container {
252
472
  margin: 0;
@@ -256,10 +476,23 @@ input:focus-visible:-webkit-autofill {
256
476
  margin-top: 0;
257
477
  }
258
478
 
259
- .MoreInfoIcon {
479
+ .pts-standard-link a {
480
+ align-items: start;
481
+ }
482
+
483
+ .MoreInfoIcon,
484
+ .pts-standard-link-text {
260
485
  margin-top: 2px;
261
486
  }
262
487
 
488
+ .pts-standard-link-icon {
489
+ margin-top: 2px;
490
+ }
491
+ .pts-icon-circle svg {
492
+ width: 1.6rem;
493
+ height: 1.6rem;
494
+ }
495
+
263
496
  .MoreInfoIcon svg {
264
497
  width: 1.6rem;
265
498
  height: 1.6rem;
@@ -270,7 +503,8 @@ input:focus-visible:-webkit-autofill {
270
503
  margin-right: 1.6rem;
271
504
  }
272
505
 
273
- .MoreInfoIcon svg path {
506
+ .MoreInfoIcon svg path,
507
+ .MoreInfoIcon {
274
508
  fill: var(--main);
275
509
  }
276
510
 
@@ -403,6 +637,100 @@ input:focus-visible:-webkit-autofill {
403
637
  color: var(--error);
404
638
  }
405
639
 
640
+ /*-----COLLAPSE-----*/
641
+ .pts-collapse {
642
+ position: relative;
643
+ }
644
+
645
+ .pts-collapse-button {
646
+ background-color: var(--action);
647
+ color: var(--main);
648
+ cursor: pointer;
649
+ padding: 1.2rem 1.6rem;
650
+ width: 100%;
651
+ border: none;
652
+ border-radius: 8px;
653
+ outline: none;
654
+ display: grid;
655
+ text-align: left;
656
+ grid-template-columns: 95% 5%;
657
+ align-items: center;
658
+ font-size: 1.6rem;
659
+ }
660
+
661
+ .pts-collapse-button.open {
662
+ border-radius: 8px 8px 0 0;
663
+ }
664
+
665
+ .pts-collapse-button .pts-open-close-icon svg {
666
+ width: 2.4rem;
667
+ height: 2.4rem;
668
+ }
669
+
670
+ .pts-collapse-body {
671
+ position: relative;
672
+ display: grid;
673
+ grid-template-rows: 0fr;
674
+ transition: grid-template-rows 0.3s ease;
675
+ overflow: hidden;
676
+ }
677
+
678
+ .pts-collapse-body.open {
679
+ grid-template-rows: 1fr;
680
+ border: 2px solid var(--background);
681
+ border-top: none;
682
+ border-radius: 0 0 8px 8px;
683
+ }
684
+
685
+ .pts-collapse-content {
686
+ overflow: hidden;
687
+ }
688
+
689
+ .pts-collapse-inner {
690
+ overflow: hidden;
691
+ padding: 1.6rem;
692
+ padding-top: 3.6rem;
693
+ }
694
+
695
+ /*-----LINK STANDARD ------**/
696
+
697
+ .pts-link-icon-circle {
698
+ display: inline-flex;
699
+ align-items: center;
700
+ justify-content: center;
701
+ min-width: 2rem;
702
+ width: 2rem;
703
+ height: 2rem;
704
+ border-radius: 50%;
705
+ border: 2px solid var(--action);
706
+ background-color: var(--action);
707
+ margin-right: 1.6rem;
708
+ }
709
+
710
+ .pts-link-icon-circle.pts-fileIcon svg {
711
+ margin-left: 2px;
712
+ }
713
+
714
+ .pts-link-icon-circle.pts-reportIcon svg {
715
+ height: 1.4rem;
716
+ width: 1.4rem;
717
+ }
718
+
719
+ .pts-linkList-container {
720
+ margin: 0;
721
+ padding: 0;
722
+ }
723
+
724
+ .pts-linkList-container ul {
725
+ all: unset;
726
+ margin: 0;
727
+ padding: 0;
728
+ }
729
+ .pts-linkList-container li {
730
+ padding: 6px;
731
+ list-style: none;
732
+ }
733
+
406
734
  /* ---------- GRANSKA-Sidan ---------- */
407
735
  .pts-editPreviewLink-container {
408
736
  display: flex;
@@ -757,3 +1085,21 @@ input:focus-visible:-webkit-autofill {
757
1085
  white-space: nowrap;
758
1086
  border: 0;
759
1087
  }
1088
+
1089
+ .hide-asterix .pts-root-mandatoryAsterisk {
1090
+ display: none;
1091
+ }
1092
+
1093
+ [hidden] {
1094
+ display: none;
1095
+ }
1096
+
1097
+ @media (prefers-reduced-motion: reduce) {
1098
+ .pts-collapse-body {
1099
+ transition: none !important;
1100
+ }
1101
+
1102
+ .pts-navigation-menu-container {
1103
+ transition: none !important;
1104
+ }
1105
+ }