optimized-react-component-library-xyz123 0.1.113 → 0.1.114

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,27 +1,27 @@
1
1
  {
2
2
  "name": "optimized-react-component-library-xyz123",
3
- "version": "0.1.113",
3
+ "version": "0.1.114",
4
4
  "description": "A modern React component library using TypeScript with React 19 support.",
5
- "main": "dist/index.cjs",
5
+ "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
- "types": "dist/index.d.ts",
8
7
  "exports": {
9
8
  ".": {
10
9
  "import": "./dist/index.mjs",
11
- "require": "./dist/index.cjs"
10
+ "require": "./dist/index.js"
12
11
  },
13
12
  "./css/darkMode.css": "./src/css/darkMode.css",
14
13
  "./css/mobileView.css": "./src/css/mobileView.css",
15
14
  "./css/styles.css": "./src/css/styles.css"
16
15
  },
16
+ "types": "dist/index.d.ts",
17
17
  "files": [
18
18
  "dist",
19
- "src/css/darkMode.css",
20
- "src/css/mobileView.css",
21
- "src/css/styles.css"
19
+ "./src/css/darkMode.css",
20
+ "./src/css/mobileView.css",
21
+ "./src/css/styles.css"
22
22
  ],
23
23
  "scripts": {
24
- "build": "tsup",
24
+ "build": "tsup src/index.tsx --dts --format esm,cjs --out-dir dist",
25
25
  "lint": "eslint src --ext .ts,.tsx",
26
26
  "format": "prettier --write .",
27
27
  "test": "vitest",
@@ -66,7 +66,6 @@
66
66
  "vitest": "^2.0.0"
67
67
  },
68
68
  "dependencies": {
69
- "@reduxjs/toolkit": "^2.10.1",
70
69
  "clsx": "^2.1.1",
71
70
  "date-fns": "^4.1.0",
72
71
  "dompurify": "^3.2.6",
@@ -34,14 +34,6 @@
34
34
  color: var(--dark-main)!important;
35
35
  }
36
36
 
37
- .pts-cookieBanner button:focus,
38
- .pts-cookieBanner button:hover{
39
- background-color: var(--dark-main)!important;;
40
- border: 2px solid var(--dark-action)!important;;
41
- color: var(--dark-action)!important;;
42
- transition: 0.2s;
43
- }
44
-
45
37
  .pts-cookieBanner-Links svg rect{
46
38
  fill:var(--dark-action);
47
39
  }
@@ -76,8 +68,7 @@
76
68
 
77
69
  /*-----------QUESTIONS--------------*/
78
70
 
79
- .pts-root-about,
80
- .pts-about {
71
+ .pts-root-about {
81
72
  color: var(--dark-info);
82
73
  }
83
74
 
@@ -129,21 +120,6 @@
129
120
 
130
121
  /* ---------- SERVICE HEADLINE AND BODY ---------- */
131
122
 
132
- .pts-serviceHeadlineAndBody-container a {
133
- color: var(--dark-action);
134
- }
135
-
136
- .pts-serviceHeadlineAndBody-container a svg,
137
- .MoreInfoIcon svg {
138
- background-color: var(--dark-action);
139
- }
140
-
141
- .pts-serviceHeadlineAndBody-container a svg path,
142
- .MoreInfoIcon svg path {
143
- fill: var(--dark-main);
144
- }
145
-
146
-
147
123
  .pts-moreinfo-list a {
148
124
  color: var(--dark-action);
149
125
  }
@@ -3,18 +3,12 @@
3
3
 
4
4
  /* ---------- GENERAL ---------- */
5
5
 
6
- html, body, #root{
7
- min-height: 100vh;
8
- margin: 0;
9
- width: 100%;
10
- height:100%;
11
- }
12
-
13
6
  html {
14
7
  font-size: 62.5%; /* 1rem = 10px */
15
8
  }
16
9
 
17
10
  body {
11
+ margin: 0;
18
12
  font-family: Arial;
19
13
  font-size: 1.6rem;
20
14
  font-weight: 400;
@@ -37,17 +31,6 @@ body a:hover {
37
31
  text-decoration: underline 0.2rem;
38
32
  }
39
33
 
40
- #root {
41
- display: flex;
42
- flex-direction: column;
43
- width: 100%;
44
- margin:0;
45
- }
46
-
47
- main{
48
- flex:1;
49
- }
50
-
51
34
  h1,
52
35
  h2,
53
36
  h3 {
@@ -91,26 +74,6 @@ section {
91
74
  margin-left: 0.8rem;
92
75
  margin-right: 0.8rem;
93
76
  }
94
- /* ?? Make changes in html ?? ----
95
- .pts-button{
96
- background-color: #6e3282;
97
- border: 2px solid #6e3282;
98
- color: #ffffff;
99
- padding: 8px 20px;
100
- border-radius: 8px;
101
- font-size: 16px;
102
- cursor: pointer;
103
- margin-left: 1.6rem;
104
- }
105
-
106
- .pts-button:focus,
107
- .pts-button:hover{
108
- background-color: #ffffff;
109
- border: 2px solid #6e3282;
110
- color: #6e3282;
111
- transition: 0.2s;
112
- }
113
- --- ?? Make changes in html ?? */
114
77
 
115
78
  .pts-first-category-section {
116
79
  padding-top: 0;
@@ -155,22 +118,19 @@ fieldset {
155
118
  margin-bottom: 3.6rem;
156
119
  }
157
120
 
158
- .pts-root-question legend {
121
+ .pts-root-question legend{
159
122
  font-family: Arial;
160
123
  font-size: 1.6rem;
161
124
  font-style: normal;
162
125
  font-weight: 400;
163
126
  line-height: 20px;
164
- margin-bottom: 0.8rem;
165
127
  }
166
128
 
129
+
167
130
  .pts-root-question legend,
168
131
  .pts-root-question label,
169
132
  .pts-radio-option {
170
- display: flex;
171
- align-items: flex-start;
172
- cursor: pointer;
173
- margin-bottom: 0.6rem;
133
+ margin-bottom: 0.8rem;
174
134
  }
175
135
 
176
136
  .pts-root-about {
@@ -266,7 +226,7 @@ textarea:focus-visible,
266
226
  height: 4.8rem;
267
227
  }
268
228
 
269
- /* ---------- COOKIE BANNER ---------- */
229
+ /* ---------- SCOOKIE BANNER ---------- */
270
230
 
271
231
  .pts-cookieBanner {
272
232
  position: relative;
@@ -288,12 +248,24 @@ textarea:focus-visible,
288
248
  margin: 1.6rem 0;
289
249
  }
290
250
 
251
+ .pts-cookieBanner h3 {
252
+ font-family: Arial, sans-serif;
253
+ font-size: 1.6rem;
254
+ font-weight: 700;
255
+ line-height: 21px;
256
+ margin: 0 0 10px 0;
257
+ text-align: left;
258
+ }
259
+
291
260
  .pts-cookieBanner p {
292
- line-height: 2.4rem;
261
+ font-family: Arial, sans-serif;
262
+ font-size: 1.6rem;
263
+ font-weight: 400;
264
+ line-height: 24px;
293
265
  margin: 0 0 15px 0;
294
-
266
+ text-align: left;
295
267
  }
296
- .pts-cookieBanner-Links {
268
+ .pts-cookieBanner-Links{
297
269
  margin-bottom: 1.6rem;
298
270
  }
299
271
 
@@ -306,31 +278,41 @@ textarea:focus-visible,
306
278
  padding: 0.8rem 2rem;
307
279
  }
308
280
 
281
+ .pts-cookieBanner button {
282
+ border-radius: 8px;
283
+ display: flex;
284
+ gap: 10px;
285
+ justify-content: flex-end; /* Always justify buttons to the end/right */
286
+ }
287
+
288
+ .pts-cookieBanner a {
289
+ padding-left: 10px;
290
+ font-family: Arial, sans-serif;
291
+ font-size: 1.6rem;
292
+ font-weight: 400;
293
+ line-height: 24px;
294
+ color: #6e3282;
295
+ text-decoration: none;
296
+ position: relative;
297
+ top: -0.7rem;
298
+ }
299
+
300
+ .pts-cookieBanner a:hover {
301
+ text-decoration: underline;
302
+ }
303
+
309
304
  /* Button styles */
310
305
  .pts-cookieBanner button {
311
306
  min-width: 140px;
312
307
  text-align: center;
308
+ font-family: Arial, sans-serif;
313
309
  font-size: 1.4rem;
314
310
  padding: 8px 15px;
311
+ border-radius: 4px;
315
312
  background-color: #6e3282;
316
- border: 2px solid #6e3282;
313
+ border-color: #6e3282;
317
314
  color: white;
318
315
  cursor: pointer;
319
- border-radius: 8px;
320
- }
321
-
322
- .pts-cookieBanner button:focus,
323
- .pts-cookieBanner button:hover{
324
- background-color: #eaf1f9;
325
- border: 2px solid #6e3282;
326
- color: #6e3282;
327
- transition: 0.2s;
328
- }
329
-
330
- .pts-cookieBanner a {
331
- padding-left: 10px;
332
- position: relative;
333
- top: -0.7rem;
334
316
  }
335
317
 
336
318
  /* ---------- SERVICE HEADLINE AND BODY ---------- */
@@ -347,8 +329,7 @@ textarea:focus-visible,
347
329
  margin-bottom: 2.8rem;
348
330
  }
349
331
 
350
- .pts-serviceHeadlineAndBody-container a svg,
351
- .MoreInfoIcon svg{
332
+ .pts-main-service-headline a svg{
352
333
  width: 1.6rem;
353
334
  height: 1.6rem;
354
335
  background-color: #6e3282;
@@ -358,8 +339,7 @@ textarea:focus-visible,
358
339
  margin-right: 1.6rem;
359
340
  }
360
341
 
361
- .pts-serviceHeadlineAndBody-container a svg path,
362
- .MoreInfoIcon svg path{
342
+ .pts-main-service-headline a svg path{
363
343
  fill:#ffffff;
364
344
  }
365
345
 
@@ -426,9 +406,6 @@ textarea:focus-visible,
426
406
  background-color: #747474;
427
407
  }
428
408
 
429
- .pts-shortNameInStepper{
430
- text-align: center;
431
- }
432
409
  /* ---------- STEPPER BUTTON ---------- */
433
410
 
434
411
  .pts-stepperButtons-container {
@@ -444,7 +421,7 @@ textarea:focus-visible,
444
421
  color: #ffffff;
445
422
  padding: 8px 20px;
446
423
  border-radius: 8px;
447
- font-size: 1.6rem;
424
+ font-size: 16px;
448
425
  cursor: pointer;
449
426
  margin-left: 1.6rem;
450
427
  }
@@ -495,7 +472,7 @@ textarea:focus-visible,
495
472
 
496
473
  .pts-radioMultiple-container label {
497
474
  position: relative;
498
- flex: 1;
475
+ top: -1px;
499
476
  cursor: pointer;
500
477
  }
501
478
 
@@ -535,16 +512,11 @@ textarea:focus-visible,
535
512
  }
536
513
 
537
514
  .pts-multipleCheckboxes-container li {
538
- margin-bottom: 0.6rem;
539
515
  display: flex;
540
- align-items: flex-start;
541
- cursor: pointer;
516
+ margin-bottom: 0.8rem;
517
+ align-items: center;
542
518
  }
543
519
 
544
- .pts-multipleCheckboxes-container li label{
545
- flex:1;
546
- margin-top:0.2rem;
547
- }
548
520
  /* ---------- HEADER ---------- */
549
521
 
550
522
  .pts-skipLink-container a {
@@ -562,7 +534,7 @@ textarea:focus-visible,
562
534
 
563
535
  .pts-header-container {
564
536
  display: flex;
565
- min-height: 80px;
537
+ height: 80px;
566
538
  padding: 0px 70px;
567
539
  align-items: center;
568
540
  justify-content: space-between;
@@ -577,16 +549,11 @@ textarea:focus-visible,
577
549
  cursor: pointer;
578
550
  }
579
551
 
580
- .pts-languageButton svg{
581
- width: 1.5rem;
582
- height: 1.5rem;
583
- }
584
-
585
552
  /* ---------- FOOTER ---------- */
586
553
 
587
554
  .pts-footer-container {
588
555
  display: flex;
589
- min-height: 14rem;
556
+ height: 14rem;
590
557
  align-items: center;
591
558
  width: 100%;
592
559
  background-color: #200827;
@@ -597,7 +564,7 @@ textarea:focus-visible,
597
564
  height: 40px;
598
565
  padding-left: 70px;
599
566
  flex-shrink: 0;
600
- position: relative;
567
+ position: absolute;
601
568
  }
602
569
 
603
570
  .pts-footer-linkList {
@@ -618,7 +585,6 @@ textarea:focus-visible,
618
585
  .pts-footer-linkList a {
619
586
  color: #ffffff;
620
587
  text-underline-offset: 3px;
621
- white-space: nowrap;
622
588
  }
623
589
 
624
590
  .pts-footer-linkList a span {
@@ -640,7 +606,8 @@ textarea:focus-visible,
640
606
  /* ---------- TEXTFIELD / TEXTAREA ABOUT ---------- */
641
607
 
642
608
  .pts-question-hasAbout label {
643
- margin-bottom: 4px;
609
+ margin-bottom: 0rem;
610
+ line-height: 0.4rem;
644
611
  }
645
612
 
646
613
  .pts-about {
@@ -649,7 +616,7 @@ textarea:focus-visible,
649
616
  font-size: 1.4rem;
650
617
  }
651
618
 
652
- .textfield-about {
619
+ .textfield-about{
653
620
  margin-bottom: 0.4rem;
654
621
  color: #545454;
655
622
  font-size: 1.4rem;
@@ -772,39 +739,43 @@ textarea:focus-visible,
772
739
  width: 100%;
773
740
  }
774
741
 
775
- dl {
742
+ .pts-preview-answer-list {
743
+ padding-inline-start: 18px;
744
+ }
745
+
746
+ .pts-preview-page dl {
776
747
  display: grid;
777
748
  grid-template-columns: 50% 50%;
749
+
778
750
  }
779
751
 
780
- dt,
781
- dd {
752
+ .pts-preview-page dt , .pts-preview-page dd{
782
753
  padding: 16px 0px 4px 0px;
783
754
  margin-inline-start: 0px;
784
- border-bottom: 1px solid #ddd;
755
+ border-bottom: 1px solid #DDD;
785
756
  line-height: 2.4rem;
786
757
  margin: 0 !important;
787
- width: 100% !important;
788
758
  }
789
759
 
790
- dt {
791
- font-size: 1.6rem !important;
792
- font-weight: 600 !important;
760
+ .pts-preview-page dt {
761
+ font-size: 1.6rem;
762
+ font-weight: 600;
793
763
  }
794
764
 
795
- dd {
765
+ .pts-preview-page dd {
796
766
  padding-left: 36px;
797
767
  }
798
768
 
799
- .preview-undefined {
800
- display: none;
769
+ .preview-undefined{
770
+ display:none;
801
771
  }
802
772
 
803
- .pts-addFiles-preview {
804
- display: flex;
773
+
774
+ .pts-addFiles-preview{
775
+ display:flex;
805
776
  }
806
777
 
807
- .pts-addFiles-preview .no-answer-preview-page {
778
+ .pts-addFiles-preview .no-answer-preview-page{
808
779
  display: inline-block;
809
780
  padding: 16px 0px 0px 8px;
810
781
  text-align: center;
@@ -1366,7 +1337,7 @@ dd {
1366
1337
 
1367
1338
  /* Body/B2 (Main) Regular */
1368
1339
  font-family: Arial;
1369
- font-size: 1.6rem;
1340
+ font-size: 16px;
1370
1341
  font-style: normal;
1371
1342
  font-weight: 400;
1372
1343
  line-height: 24px; /* 150% */
@@ -1384,7 +1355,7 @@ dd {
1384
1355
  }
1385
1356
  @media (max-width: 990px) {
1386
1357
  .filePickLabel .filePickButton {
1387
- font-size: 1.4rem;
1358
+ font-size: 14px;
1388
1359
  line-height: 14px;
1389
1360
  text-align: center;
1390
1361
  }
@@ -1395,7 +1366,7 @@ dd {
1395
1366
  color: #000;
1396
1367
 
1397
1368
  font-family: Arial;
1398
- font-size: 1.6rem;
1369
+ font-size: 16px;
1399
1370
  font-style: normal;
1400
1371
  font-weight: 400;
1401
1372
  line-height: 24px;
@@ -1425,7 +1396,7 @@ dd {
1425
1396
  }
1426
1397
 
1427
1398
  .inputContainer input[type='text'] {
1428
- font-size: 1.6rem;
1399
+ font-size: 16px;
1429
1400
  }
1430
1401
 
1431
1402
  .custom-file-button input[type='file'] {
@@ -1460,7 +1431,7 @@ dd {
1460
1431
 
1461
1432
  /* Body/B1 Regular */
1462
1433
  font-family: Arial;
1463
- font-size: 2.0rem;
1434
+ font-size: 20px;
1464
1435
  font-style: normal;
1465
1436
  font-weight: 400;
1466
1437
  line-height: 24px; /* 120% */
@@ -1503,7 +1474,7 @@ dd {
1503
1474
  position: relative;
1504
1475
  z-index: 2000;
1505
1476
  cursor: pointer;
1506
- font-size: 1.2rem;
1477
+ font-size: '12px';
1507
1478
  text-decoration: 'underline';
1508
1479
  color: black;
1509
1480
  }
@@ -1625,7 +1596,7 @@ dd {
1625
1596
  .uploadedPercentage {
1626
1597
  /* Body/B3 Regular */
1627
1598
  font-family: Arial;
1628
- font-size: 1.3rem;
1599
+ font-size: 13px;
1629
1600
  font-style: normal;
1630
1601
  font-weight: 400;
1631
1602
  line-height: 16px; /* 123.077% */
@@ -1682,7 +1653,7 @@ dd {
1682
1653
 
1683
1654
  /* Body/B4 Regular */
1684
1655
  font-family: Arial;
1685
- font-size: 1rem;
1656
+ font-size: 10px;
1686
1657
  font-style: normal;
1687
1658
  font-weight: 400;
1688
1659
  line-height: normal;
@@ -1725,7 +1696,7 @@ dd {
1725
1696
  color: var(--neutral-300, #fff);
1726
1697
  /* Body/B3 Bold */
1727
1698
  font-family: Arial;
1728
- font-size: 1.3rem;
1699
+ font-size: 13px;
1729
1700
  font-style: normal;
1730
1701
  font-weight: 700;
1731
1702
  line-height: 16px; /* 123.077% */
@@ -1791,7 +1762,7 @@ dd {
1791
1762
 
1792
1763
  /* Body/B3 Bold */
1793
1764
  font-family: Arial;
1794
- font-size: 1.6rem;
1765
+ font-size: 16px;
1795
1766
  font-style: normal;
1796
1767
  font-weight: 400;
1797
1768
  line-height: 24px;
@@ -1803,7 +1774,7 @@ dd {
1803
1774
  color: var(--red-green-red, #8e0039);
1804
1775
  /* Body/B3 Regular */
1805
1776
  font-family: Arial;
1806
- font-size: 1.3rem;
1777
+ font-size: 13px;
1807
1778
  font-style: normal;
1808
1779
  font-weight: 400;
1809
1780
  line-height: 16px; /* 123.077% */
@@ -1829,7 +1800,7 @@ dd {
1829
1800
  color: var(--purple-900-primary, #6e3282);
1830
1801
  /* Body/B2 (Main) Regular */
1831
1802
  font-family: Arial;
1832
- font-size: 1.6rem;
1803
+ font-size: 16px;
1833
1804
  font-style: normal;
1834
1805
  font-weight: 400;
1835
1806
  line-height: 24px; /* 150% */
@@ -1940,6 +1911,8 @@ dd {
1940
1911
  margin-bottom: 0px;
1941
1912
  }
1942
1913
 
1914
+
1915
+
1943
1916
  /* preview */
1944
1917
 
1945
1918
  /* .addFilesPreviewContainer {
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}