optimized-react-component-library-xyz123 2.0.0 → 2.0.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.0.0",
3
+ "version": "2.0.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",
@@ -83,6 +83,7 @@
83
83
  "date-fns": "^4.1.0",
84
84
  "dompurify": "^3.2.6",
85
85
  "react-bootstrap": "^2.10.10",
86
- "react-dropzone": "^14.3.8"
86
+ "react-dropzone": "^14.3.8",
87
+ "react-router-dom": "^7.13.0"
87
88
  }
88
89
  }
@@ -67,6 +67,83 @@
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
+ .pts-navigation-header-nav-container button svg path,
77
+ .pts-navigation-header-nav-container button svg line{
78
+ color: var(--dark-action);
79
+ fill: var(--dark-action);
80
+ stroke: var(--dark-action);
81
+ }
82
+
83
+ .pts-navigation-header-container svg path {
84
+ fill: var(--dark-text);
85
+ }
86
+
87
+
88
+ .pts-navigation-header-nav-container,
89
+ .pts-navigation-header-button-label {
90
+ background: var(--dark-background-second);
91
+ color: var(--dark-action);
92
+ }
93
+
94
+ .pts-expand-icon svg rect{
95
+ fill: var(--dark-action);
96
+ }
97
+
98
+
99
+ .pts-contract-icon svg rect{
100
+ fill: var(--dark-orientation-active);
101
+ }
102
+
103
+
104
+ .pts-navigation-close-text{
105
+ color: var(--dark-action);
106
+ }
107
+
108
+ .pts-navigation-close-button{
109
+ background: var(--dark-main);
110
+ color: var(--dark-action);
111
+ }
112
+
113
+ .pts-navigation-close-button svg path{
114
+ stroke: var(--dark-action);
115
+ }
116
+ .pts-navigation-link-expand-button{
117
+ background-color: var(--dark-main);
118
+ }
119
+
120
+ .pts-navigation-link-expand-button svg path{
121
+ stroke: var(--dark-main)!important;
122
+ }
123
+
124
+ .pts-navigation-with-close-button,
125
+ .pts-navigation-menu-container,
126
+ .pts-navigation-button,
127
+ .pts-navigation-close-container,
128
+ .pts-sub-navigation-item,
129
+ .pts-sub-navigation-item a,
130
+ .pts-navigation-button a {
131
+ background: var(--dark-main);
132
+ color: var(--dark-text);
133
+ border-color: var(--dark-background-third);
134
+ }
135
+
136
+ .pts-sub-navigation-container {
137
+ background-color: #d5b9dd;
138
+ border-left: var(--dark-action) 5px solid;
139
+ }
140
+
141
+ /*--------BREADCRUMBS------*/
142
+ .pts-breadcrumbs {
143
+ background-color: var(--dark-background-third);
144
+ }
145
+
146
+
70
147
  /*-------MAIN CONTENT-------*/
71
148
  section,
72
149
  .pts-form-step-header {
@@ -87,6 +164,7 @@
87
164
  .MoreInfoIcon svg {
88
165
  background-color: var(--dark-action);
89
166
  }
167
+
90
168
 
91
169
  .pts-serviceHeadlineAndBody-container a svg path,
92
170
  .MoreInfoIcon svg path {
@@ -161,8 +239,6 @@
161
239
  color: var(--dark-error);
162
240
  }
163
241
 
164
- .pts-root-question-input-error-border,
165
- .pts-root-question-input-error-border,
166
242
  .pts-root-question-input-error-border {
167
243
  border: 0.15rem solid var(--dark-error) !important;
168
244
  }
@@ -405,4 +481,21 @@
405
481
  input:-moz-autofill {
406
482
  box-shadow: 0 0 0 1000px transparent inset !important;
407
483
  }
484
+
485
+ /***NYTT FLYTTA?? ***/
486
+ .pts-standard-link-icon svg {
487
+ background-color: var(--dark-action);
488
+ }
489
+ .pts-standard-link svg path{
490
+ fill: var(--dark-main);
491
+ color: #000000;
492
+ }
493
+ .pts-icon-circle {
494
+ border: 2px solid var(--dark-action);
495
+ background-color: var(--dark-action);
496
+ }
497
+
498
+ .pts-collapse-content{
499
+ color:var(--dark-text);
500
+ }
408
501
  }
@@ -3,6 +3,70 @@
3
3
  /********************************************/
4
4
 
5
5
  @media (max-width: 1085px) {
6
+
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: 13px 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
+ .pts-navigation-header-nav-container button {
40
+ width: 100%;
41
+ }
42
+
43
+ /**Navigation menu**/
44
+ .pts-navigation-menu-container {
45
+ top: 0;
46
+ width: 100%;
47
+ max-width: unset;
48
+ position: relative;
49
+ }
50
+
51
+ .pts-navigation-close-container {
52
+ display: none;
53
+ }
54
+
55
+ .nav-parent-button {
56
+ padding-right: 5px !important;
57
+ border: 0px !important;
58
+ }
59
+
60
+ /**Breadcrumbs**/
61
+ .pts-breadcrumbs a {
62
+ font-size: 14px;
63
+ }
64
+
65
+ .pts-breadcrumbs {
66
+ padding-left: 20px;
67
+ height: 30px !important;
68
+ }
69
+
6
70
  .pts-footer-content {
7
71
  display: flex;
8
72
  height: auto;
@@ -367,16 +367,291 @@ input:focus-visible:-webkit-autofill {
367
367
  text-decoration: underline 0.2rem;
368
368
  }
369
369
 
370
+ /**Header with navigation**/
371
+
372
+
373
+
374
+ .pts-navigation-header-container {
375
+ display: flex;
376
+ min-height: 80px;
377
+ padding: 0px 70px;
378
+ align-items: center;
379
+ justify-content: space-between;
380
+ background-color: var(--main);
381
+ }
382
+
383
+ .pts-navigation-header-content {
384
+ width: 100%;
385
+ display: grid;
386
+ grid-template-columns: 1fr auto 1fr;
387
+ align-items: center;
388
+ }
389
+
390
+ .pts-navigation-header-logo-container {
391
+ height: 4rem;
392
+ }
393
+
394
+ .pts-navigation-header-logo svg {
395
+ height: 4rem;
396
+ }
397
+
398
+ .pts-navigation-header-headline-container{
399
+ display:flex;
400
+ justify-content: center;
401
+ align-items: flex-end;
402
+ }
403
+ .pts-navigation-header-headline-container p{
404
+ position: relative;
405
+ font-family: 'Aeonik';
406
+ font-size: 24px;
407
+ font-weight: 700;
408
+ top: 8px;
409
+ }
410
+
411
+ .pts-navigation-header-icons{
412
+ position: relative;
413
+ top: 2px;
414
+ }
415
+
416
+ .pts-close-icon{
417
+ position: relative;
418
+ bottom: -1px;
419
+ }
420
+
421
+ .pts-open-icon{
422
+ position: relative;
423
+ top: 4px;
424
+ }
425
+
426
+ .pts-navigation-overlay{
427
+ position: fixed;
428
+ top: 80px;
429
+ left: 0;
430
+ width: 100%;
431
+ height: 100%;
432
+ background-color: rgba(0, 0, 0, 0.5);
433
+ display: flex;
434
+ align-items: center;
435
+ justify-content: center;
436
+ z-index: 998;
437
+ }
438
+
439
+ .pts-navigation-header-nav-container{
440
+ display: flex;
441
+ justify-content: flex-end;
442
+ width: 100%;
443
+ align-items: flex-end;
444
+ height: 5rem;
445
+ }
446
+
447
+ .pts-navigation-header-nav-container button {
448
+ background: none;
449
+ line-height: 2.4rem;
450
+ text-decoration-skip-ink: none;
451
+ border: none;
452
+ color: var(--action);
453
+ font-size: 1.6rem;
454
+ padding: 0;
455
+ cursor: pointer;
456
+ width: 13rem;
457
+ z-index: 999;
458
+ }
459
+
460
+ .pts-navigation-header-button-label {
461
+ position: relative;
462
+ padding-left: 0.8rem;
463
+ }
464
+
465
+
466
+ /******Navigation Menu********/
467
+ .pts-navigation-menu-container {
468
+ background-color:var(--main);
469
+ position: absolute;
470
+ top: 8rem;
471
+ right: 0;
472
+ z-index: 20;
473
+ width: 100%;
474
+ max-width: 570px;
475
+ z-index: 999;
476
+ }
477
+
478
+ .pts-navigation-with-close-button{
479
+ top:0;
480
+ }
481
+
482
+ .pts-navigation-close-text {
483
+ padding-left: 0.8rem;
484
+ }
485
+
486
+ .pts-navigation-link-list,
487
+ .pts-navigation-link,
488
+ .pts-sub-navigation-list {
489
+ all: unset;
490
+ list-style: none;
491
+ background-color:var(--main);;
492
+ }
493
+
494
+ .pts-navigation-link-list {
495
+ width: 100%;
496
+ padding-inline-start: 0px;
497
+ }
498
+
499
+ .pts-navigation-button a,
500
+ .pts-sub-navigation-item a {
501
+ text-decoration: none;
502
+ color: var(--text)
503
+ }
504
+
505
+ .pts-navigation-link-expand-button {
506
+ border: none;
507
+ padding: 0;
508
+ cursor: pointer;
509
+ }
510
+
511
+ .pts-sub-navigation-container {
512
+ background-color: #d5b9dd;
513
+ border-left: var(--action) 5px solid;
514
+ padding-left: 3.6rem;
515
+ display: flex ;
516
+ align-items: flex-end ;
517
+ gap: 18px ;
518
+ }
519
+
520
+ .pts-sub-navigation-list {
521
+ display:block;
522
+ width: 100%;
523
+ }
524
+
525
+ .pts-sub-navigation-item {
526
+ height: 5.1rem;
527
+ display: flex;
528
+ align-items: center;
529
+ justify-content: flex-start;
530
+ border-bottom: 2px solid var(--background) ;
531
+ padding-left: 3rem;
532
+ }
533
+
534
+
535
+ .pts-navigation-button,
536
+ .pts-navigation-close-container {
537
+ padding: 2.1rem 3.6rem;
538
+ border-width: 0px;
539
+ border-bottom: 2px solid var(--background);
540
+ background-color: var(--main);
541
+ text-align: left;
542
+ display: flex;
543
+ justify-content: space-between;
544
+ align-items: center;
545
+ }
546
+
547
+ .pts-navigation-close-button {
548
+ width: 20rem;
549
+ height: 4rem;
550
+ border: none;
551
+ border-radius: 8px;
552
+ color: var(--action);
553
+ background-color: var(--main);
554
+ display: flex;
555
+ align-items: center;
556
+ justify-content: flex-start;
557
+ margin-top: 3rem;
558
+ margin-bottom: 3rem;
559
+ cursor: pointer;
560
+ }
561
+
562
+ /*******Breadcrumbs********/
563
+ .pts-breadcrumbs nav {
564
+ background-color: unset;
565
+ position: unset;
566
+ display: flex;
567
+ }
568
+
569
+ .pts-breadcrumbs {
570
+ background-color: var(--background-third);
571
+ height: 48px;
572
+ display: flex;
573
+ align-items: center;
574
+ padding-left: 6rem;
575
+ padding-top: 2px;
576
+
577
+ }
578
+
579
+ .pts-breadcrumbs ol{
580
+ all: unset;
581
+ }
582
+
583
+ .pts-breadcrumbs li{
584
+ all: unset;
585
+ list-style: none;
586
+ }
587
+
588
+
589
+ .pts-breadcrumbs a:hover {
590
+ color: var(--main);
591
+ text-decoration: underline 2px;
592
+ }
593
+
594
+ .pts-crumb-label,
595
+ .pts-breadcrumbs a {
596
+ color: var(--main);
597
+ text-decoration: none;
598
+ position: relative;
599
+ line-height: 2rem;
600
+ }
601
+
602
+ .pts-bold-crumb {
603
+ font-weight: 700;
604
+ }
605
+
606
+ .pts-breadcrumbs svg {
607
+ margin: 0 1.6rem;
608
+ top: 1px;
609
+ position: relative;
610
+ }
611
+
612
+
613
+ /******SEARCH BAR*******/
614
+ .pts-searchBar-container {
615
+ height: 7rem;
616
+ background-color: var(--background);
617
+ display: flex;
618
+ align-items: center;
619
+ justify-content: center;
620
+ }
621
+
622
+ .pts-searchBar-button {
623
+ height: 3.9rem;
624
+ background-color: var(--action);
625
+ border-radius: 8px;
626
+ border: var(--action) solid 1px;
627
+ color: var(--main);
628
+ }
629
+
630
+ .pts-searchBar-Button svg {
631
+ margin-right: 0.5rem;
632
+ }
633
+
634
+ .pts-searchBar-container input {
635
+ border-radius: 8px;
636
+ width: 65vw;
637
+ border: var(--action) solid 1px;
638
+ margin-right: -10px;
639
+ padding: 1rem;
640
+ border-top-right-radius: 0px;
641
+ border-bottom-right-radius: 0px;
642
+ }
643
+
370
644
  /* ---------- TextBODY ---------- */
371
645
 
372
646
  .pts-textBody-container p {
373
647
  margin-bottom: 1.6rem;
374
648
  }
375
649
 
376
- .MoreInfoIcon {
650
+ .pts-standard-link-icon{
377
651
  margin-top: 2px;
378
652
  }
379
653
 
654
+
380
655
  .MoreInfoIcon svg {
381
656
  width: 1.6rem;
382
657
  height: 1.6rem;
@@ -387,7 +662,9 @@ input:focus-visible:-webkit-autofill {
387
662
  margin-right: 1.6rem;
388
663
  }
389
664
 
390
- .MoreInfoIcon svg path {
665
+
666
+ .MoreInfoIcon svg path,
667
+ .MoreInfoIcon {
391
668
  fill: var(--main);
392
669
  }
393
670
 
@@ -837,3 +1114,89 @@ input:focus-visible:-webkit-autofill {
837
1114
  white-space: nowrap;
838
1115
  border: 0;
839
1116
  }
1117
+
1118
+
1119
+
1120
+
1121
+ /****New STUFF****/
1122
+ .pts-collapse {
1123
+ position: relative;
1124
+ }
1125
+
1126
+ .pts-collapse-button {
1127
+ background-color: var(--action);
1128
+ color: white;
1129
+ cursor: pointer;
1130
+ padding: 12px 16px;
1131
+ width: 100%;
1132
+ border: none;
1133
+ border-radius: 8px;
1134
+ outline: none;
1135
+ display: grid;
1136
+ text-align: left;
1137
+ grid-template-columns: 95% 5%;
1138
+ align-items: center;
1139
+ }
1140
+
1141
+ .pts-collapse-button.open {
1142
+ border-radius: 8px 8px 0 0;
1143
+ }
1144
+
1145
+ .pts-collapse-title {
1146
+ all: unset;
1147
+ font-family: Arial;
1148
+ font-size: 16px;
1149
+ font-style: normal;
1150
+ font-weight: 400;
1151
+ }
1152
+
1153
+ .pts-collapse-body {
1154
+ position: relative;
1155
+ display: grid;
1156
+ grid-template-rows: 0fr;
1157
+ transition: grid-template-rows 0.3s ease;
1158
+ }
1159
+
1160
+ .pts-collapse-body.open {
1161
+ grid-template-rows: 1fr;
1162
+ border: 2px solid var(--info);
1163
+ border-top: none;
1164
+ }
1165
+
1166
+ .pts-collapse-content {
1167
+ overflow: hidden;
1168
+ }
1169
+
1170
+
1171
+ /******Links ********/
1172
+
1173
+ .pts-icon-circle {
1174
+ display: inline-flex;
1175
+ align-items: center;
1176
+ justify-content: center;
1177
+ width: 2rem;
1178
+ height: 2rem;
1179
+ border-radius: 50%;
1180
+ border: 2px solid var(--action);
1181
+ background-color: var(--action);
1182
+ margin-right: 1.6rem;
1183
+ }
1184
+
1185
+ .pts-linkList-container {
1186
+ margin: 0;
1187
+ padding: 0;
1188
+ }
1189
+
1190
+ .pts-linkList-container ul {
1191
+ all :unset;
1192
+ margin: 0;
1193
+ padding: 0;
1194
+ }
1195
+ .pts-linkList-container li {
1196
+ padding: 6px;
1197
+ list-style: none;
1198
+ }
1199
+
1200
+ [hidden]{
1201
+ display:none;
1202
+ }