optimized-react-component-library-xyz123 2.3.2 → 2.4.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.4.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;
@@ -10,10 +10,10 @@
10
10
  --error: #8e0039;
11
11
  --main: #ffffff;
12
12
  --info: #545454;
13
- --alertintext: #234b96;
14
13
  --orientation-active: #dc7d0a;
15
14
  --background-second: #200827;
16
15
  --background-third: #414141;
16
+ --light-action: #d5b9dd;
17
17
  }
18
18
 
19
19
  #main-content {
@@ -247,18 +247,247 @@ input:focus-visible:-webkit-autofill {
247
247
  text-decoration: underline 0.2rem;
248
248
  }
249
249
 
250
- /* ---------- TextBODY ---------- */
251
- .pts-textBody-container {
252
- margin: 0;
250
+ /**Header with navigation**/
251
+
252
+ .pts-navigation-header-container {
253
+ display: flex;
254
+ min-height: 80px;
255
+ padding: 0px 70px;
256
+ align-items: center;
257
+ justify-content: space-between;
258
+ background-color: var(--main);
259
+ }
260
+
261
+ .pts-navigation-header-content {
262
+ width: 100%;
263
+ display: grid;
264
+ grid-template-columns: 1fr auto 1fr;
265
+ align-items: center;
266
+ }
267
+
268
+ .pts-navigation-header-logo svg {
269
+ height: 4.7rem;
270
+ width: auto;
271
+ }
272
+
273
+ .pts-navigation-header-headline-container {
274
+ display: flex;
275
+ justify-content: center;
276
+ align-items: flex-end;
277
+ }
278
+
279
+ .pts-navigation-header-headline-container p {
280
+ position: relative;
281
+ font-family: 'Aeonik';
282
+ font-size: 24px;
283
+ font-weight: 700;
284
+ top: 8px;
285
+ }
286
+
287
+ .pts-navigation-header-icons {
288
+ position: relative;
289
+ top: 2px;
290
+ }
291
+
292
+ .pts-navigation-header-nav-container .pts-close-icon {
293
+ position: relative;
294
+ bottom: -1px;
295
+ }
296
+
297
+ .pts-navigation-header-nav-container .pts-open-icon {
298
+ position: relative;
299
+ top: 4px;
300
+ }
301
+
302
+ .pts-navigation-overlay {
303
+ position: fixed;
304
+ left: 0;
305
+ top: 0;
306
+ width: 100%;
307
+ height: 100%;
308
+ background-color: rgba(0, 0, 0, 0.5);
309
+ display: flex;
310
+ align-items: center;
311
+ justify-content: center;
312
+ z-index: 998;
313
+ }
314
+
315
+ .pts-navigation-header-nav-container {
316
+ display: flex;
317
+ justify-content: flex-end;
318
+ width: 100%;
319
+ align-items: flex-end;
320
+ height: 5rem;
321
+ }
322
+
323
+ .pts-navigation-header-nav-container button {
324
+ background: none;
325
+ line-height: 2.4rem;
326
+ text-decoration-skip-ink: none;
327
+ border: none;
328
+ color: var(--action);
329
+ font-size: 1.6rem;
330
+ padding: 0;
331
+ cursor: pointer;
332
+ width: 13rem;
333
+ z-index: 900;
334
+ }
335
+
336
+ .pts-navigation-header-button-label {
337
+ position: relative;
338
+ padding-left: 0.8rem;
339
+ }
340
+
341
+ /******NAVIGATION MENU********/
342
+ .pts-navigation-menu-container {
343
+ position: fixed;
344
+ top: 0;
345
+ right: 0;
346
+ width: 100%;
347
+ max-width: 570px;
348
+ z-index: 999;
349
+ opacity: 0;
350
+ transform: translateX(100%);
351
+ transition:
352
+ transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
353
+ opacity 1s;
354
+ }
355
+
356
+ .pts-navigation-menu-container.open {
357
+ opacity: 1;
358
+ transform: translateX(0);
359
+ }
360
+
361
+ .pts-navigation-close-text {
362
+ padding-left: 0.8rem;
363
+ font-size: 16px;
364
+ }
365
+
366
+ .pts-navigation-link-list,
367
+ .pts-navigation-link,
368
+ .pts-sub-navigation-list {
369
+ all: unset;
370
+ list-style: none;
371
+ background-color: var(--main);
372
+ }
373
+
374
+ .pts-navigation-link-list {
375
+ width: 100%;
376
+ padding-inline-start: 0px;
377
+ }
378
+
379
+ .pts-navigation-button a,
380
+ .pts-sub-navigation-item a {
381
+ text-decoration: none;
382
+ color: var(--text);
383
+ }
384
+
385
+ .pts-navigation-link-expand-button {
386
+ border: none;
387
+ padding: 0;
388
+ cursor: pointer;
389
+ }
390
+
391
+ .pts-sub-navigation-container {
392
+ background-color: var(--light-action);
393
+ border-left: var(--action) 5px solid;
394
+ padding-left: 3.6rem;
395
+ display: flex;
396
+ align-items: flex-end;
397
+ gap: 18px;
398
+ }
399
+
400
+ .pts-sub-navigation-list {
401
+ display: block;
402
+ width: 100%;
403
+ }
404
+
405
+ .pts-sub-navigation-item {
406
+ height: 5.1rem;
407
+ display: flex;
408
+ align-items: center;
409
+ justify-content: flex-start;
410
+ border-bottom: 2px solid var(--background);
411
+ padding-left: 3rem;
412
+ }
413
+
414
+ .pts-navigation-button,
415
+ .pts-navigation-close-container {
416
+ padding: 2.1rem 3.6rem;
417
+ border-width: 0px;
418
+ border-bottom: 2px solid var(--background);
419
+ background-color: var(--main);
420
+ text-align: left;
421
+ display: flex;
422
+ justify-content: space-between;
423
+ align-items: center;
424
+ }
425
+
426
+ .pts-navigation-close-button {
427
+ border: none;
428
+ color: var(--action);
429
+ background-color: var(--main);
430
+ display: flex;
431
+ align-items: center;
432
+ justify-content: flex-start;
433
+ margin-top: 1.5rem;
434
+ margin-bottom: 1.5rem;
435
+ cursor: pointer;
436
+ }
437
+
438
+ /******SEARCH BAR*******/
439
+ .pts-searchBar-container {
440
+ height: 7rem;
441
+ background-color: var(--background);
442
+ display: flex;
443
+ align-items: center;
444
+ justify-content: center;
253
445
  }
446
+
447
+ .pts-searchBar-button {
448
+ height: 3.9rem;
449
+ background-color: var(--action);
450
+ border-radius: 8px;
451
+ border: var(--action) solid 1px;
452
+ color: var(--main);
453
+ }
454
+
455
+ .pts-searchBar-Button svg {
456
+ margin-right: 0.5rem;
457
+ }
458
+
459
+ .pts-searchBar-container input {
460
+ border-radius: 8px;
461
+ width: 65vw;
462
+ border: var(--action) solid 1px;
463
+ margin-right: -10px;
464
+ padding: 1rem;
465
+ border-top-right-radius: 0px;
466
+ border-bottom-right-radius: 0px;
467
+ }
468
+
469
+ /* ---------- TextBODY ---------- */
470
+
254
471
  .pts-textBody-container p {
255
472
  margin-bottom: 1.6rem;
256
- margin-top: 0;
257
473
  }
258
474
 
259
- .MoreInfoIcon {
475
+ .pts-standard-link a {
476
+ align-items: start;
477
+ }
478
+
479
+ .MoreInfoIcon,
480
+ .pts-standard-link-text {
481
+ margin-top: 2px;
482
+ }
483
+
484
+ .pts-standard-link-icon {
260
485
  margin-top: 2px;
261
486
  }
487
+ .pts-icon-circle svg {
488
+ width: 1.6rem;
489
+ height: 1.6rem;
490
+ }
262
491
 
263
492
  .MoreInfoIcon svg {
264
493
  width: 1.6rem;
@@ -270,7 +499,8 @@ input:focus-visible:-webkit-autofill {
270
499
  margin-right: 1.6rem;
271
500
  }
272
501
 
273
- .MoreInfoIcon svg path {
502
+ .MoreInfoIcon svg path,
503
+ .MoreInfoIcon {
274
504
  fill: var(--main);
275
505
  }
276
506
 
@@ -289,12 +519,6 @@ input:focus-visible:-webkit-autofill {
289
519
  flex-shrink: 0;
290
520
  margin-right: 1.6rem;
291
521
  }
292
- .pts-textbody-alerttext {
293
- margin-top: 0;
294
- }
295
- .pts-textbody-createspace {
296
- margin-bottom: 3.6rem;
297
- }
298
522
 
299
523
  /* ---------- TEXT HEADLINE AND BODY ---------- */
300
524
 
@@ -403,6 +627,100 @@ input:focus-visible:-webkit-autofill {
403
627
  color: var(--error);
404
628
  }
405
629
 
630
+ /*-----COLLAPSE-----*/
631
+ .pts-collapse {
632
+ position: relative;
633
+ }
634
+
635
+ .pts-collapse-button {
636
+ background-color: var(--action);
637
+ color: var(--main);
638
+ cursor: pointer;
639
+ padding: 1.2rem 1.6rem;
640
+ width: 100%;
641
+ border: none;
642
+ border-radius: 8px;
643
+ outline: none;
644
+ display: grid;
645
+ text-align: left;
646
+ grid-template-columns: 95% 5%;
647
+ align-items: center;
648
+ font-size: 1.6rem;
649
+ }
650
+
651
+ .pts-collapse-button.open {
652
+ border-radius: 8px 8px 0 0;
653
+ }
654
+
655
+ .pts-collapse-button .pts-open-close-icon svg {
656
+ width: 2.4rem;
657
+ height: 2.4rem;
658
+ }
659
+
660
+ .pts-collapse-body {
661
+ position: relative;
662
+ display: grid;
663
+ grid-template-rows: 0fr;
664
+ transition: grid-template-rows 0.3s ease;
665
+ overflow: hidden;
666
+ }
667
+
668
+ .pts-collapse-body.open {
669
+ grid-template-rows: 1fr;
670
+ border: 2px solid var(--background);
671
+ border-top: none;
672
+ border-radius: 0 0 8px 8px;
673
+ }
674
+
675
+ .pts-collapse-content {
676
+ overflow: hidden;
677
+ }
678
+
679
+ .pts-collapse-inner {
680
+ overflow: hidden;
681
+ padding: 1.6rem;
682
+ padding-top: 3.6rem;
683
+ }
684
+
685
+ /*-----LINK STANDARD ------**/
686
+
687
+ .pts-link-icon-circle {
688
+ display: inline-flex;
689
+ align-items: center;
690
+ justify-content: center;
691
+ min-width: 2rem;
692
+ width: 2rem;
693
+ height: 2rem;
694
+ border-radius: 50%;
695
+ border: 2px solid var(--action);
696
+ background-color: var(--action);
697
+ margin-right: 1.6rem;
698
+ }
699
+
700
+ .pts-link-icon-circle.pts-fileIcon svg {
701
+ margin-left: 2px;
702
+ }
703
+
704
+ .pts-link-icon-circle.pts-reportIcon svg {
705
+ height: 1.4rem;
706
+ width: 1.4rem;
707
+ }
708
+
709
+ .pts-linkList-container {
710
+ margin: 0;
711
+ padding: 0;
712
+ }
713
+
714
+ .pts-linkList-container ul {
715
+ all: unset;
716
+ margin: 0;
717
+ padding: 0;
718
+ }
719
+ .pts-linkList-container li {
720
+ padding: 6px;
721
+ list-style: none;
722
+ }
723
+
406
724
  /* ---------- GRANSKA-Sidan ---------- */
407
725
  .pts-editPreviewLink-container {
408
726
  display: flex;
@@ -703,37 +1021,6 @@ input:focus-visible:-webkit-autofill {
703
1021
  transform: rotate(360deg);
704
1022
  }
705
1023
  }
706
- /* ---------- ALERT IN TEXT ---------- */
707
- .pts-alertInText-container {
708
- display: flex;
709
- width: 100%;
710
- justify-content: flex-start;
711
- }
712
- .pts-alertInText-left {
713
- display: flex;
714
- justify-content: flex-start;
715
- align-items: flex-start;
716
- gap: 10px;
717
- align-self: stretch;
718
- border-top-left-radius: 8px;
719
- border-bottom-left-radius: 8px;
720
- border: 1px solid var(--alertintext);
721
- background-color: var(--alertintext);
722
- padding: 8px;
723
- padding-top: 16px;
724
- }
725
- .pts-alertInText-right {
726
- display: flex;
727
- padding: 1.6rem;
728
- justify-content: flex-start;
729
- align-items: flex-start;
730
- width: 100%;
731
- border-top-right-radius: 8px;
732
- border-bottom-right-radius: 8px;
733
- border: 1px solid var(--alertintext);
734
- color: var(--text);
735
- }
736
-
737
1024
  /*-----------ALWAYS IN THE END OF STYLES----------------*/
738
1025
 
739
1026
  .cleanPadding {
@@ -757,3 +1044,21 @@ input:focus-visible:-webkit-autofill {
757
1044
  white-space: nowrap;
758
1045
  border: 0;
759
1046
  }
1047
+
1048
+ .hide-asterix .pts-root-mandatoryAsterisk {
1049
+ display: none;
1050
+ }
1051
+
1052
+ [hidden] {
1053
+ display: none;
1054
+ }
1055
+
1056
+ @media (prefers-reduced-motion: reduce) {
1057
+ .pts-collapse-body {
1058
+ transition: none !important;
1059
+ }
1060
+
1061
+ .pts-navigation-menu-container {
1062
+ transition: none !important;
1063
+ }
1064
+ }