optimized-react-component-library-xyz123 2.12.8 → 2.13.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.12.8",
3
+ "version": "2.13.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",
@@ -20,14 +20,6 @@
20
20
  color: var(--dark-text);
21
21
  }
22
22
 
23
- .pts-secondary-button {
24
- border-color: var(--dark-background-second);
25
- }
26
-
27
- .pts-secondary-button:hover {
28
- border-color: var(--dark-text);
29
- }
30
-
31
23
  /*----------COOKIE BANNER-------*/
32
24
  .pts-cookieBanner {
33
25
  background-color: var(--dark-main) !important;
@@ -380,14 +372,16 @@
380
372
  color: var(--dark-info);
381
373
  }
382
374
 
375
+
383
376
  /* ---------- DROPDOWN ---------- */
384
377
  .pts-dropdown-container select {
385
378
  border-color: var(--dark-info);
386
379
  background-color: var(--dark-main);
387
380
  color: var(--dark-text);
388
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.7073 15.7069C12.5198 15.8943 12.2655 15.9996 12.0003 15.9996C11.7352 15.9996 11.4809 15.8943 11.2933 15.7069L5.63634 10.0499C5.54083 9.95761 5.46465 9.84726 5.41224 9.72526C5.35983 9.60326 5.33225 9.47204 5.33109 9.33926C5.32994 9.20648 5.35524 9.0748 5.40552 8.9519C5.4558 8.829 5.53006 8.71735 5.62395 8.62346C5.71784 8.52957 5.82949 8.45531 5.95239 8.40503C6.07529 8.35475 6.20696 8.32945 6.33974 8.3306C6.47252 8.33176 6.60374 8.35934 6.72575 8.41175C6.84775 8.46416 6.9581 8.54034 7.05034 8.63585L12.0003 13.5859L16.9503 8.63585C17.1389 8.4537 17.3915 8.3529 17.6537 8.35518C17.9159 8.35746 18.1668 8.46263 18.3522 8.64804C18.5376 8.83344 18.6427 9.08426 18.645 9.34645C18.6473 9.60865 18.5465 9.86125 18.3643 10.0499L12.7073 15.7069Z' fill='%23ffffff'/%3E%3C/svg%3E");
381
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.7073 15.7069C12.5198 15.8943 12.2655 15.9996 12.0003 15.9996C11.7352 15.9996 11.4809 15.8943 11.2933 15.7069L5.63634 10.0499C5.54083 9.95761 5.46465 9.84726 5.41224 9.72526C5.35983 9.60326 5.33225 9.47204 5.33109 9.33926C5.32994 9.20648 5.35524 9.0748 5.40552 8.9519C5.4558 8.829 5.53006 8.71735 5.62395 8.62346C5.71784 8.52957 5.82949 8.45531 5.95239 8.40503C6.07529 8.35475 6.20696 8.32945 6.33974 8.3306C6.47252 8.33176 6.60374 8.35934 6.72575 8.41175C6.84775 8.46416 6.9581 8.54034 7.05034 8.63585L12.0003 13.5859L16.9503 8.63585C17.1389 8.4537 17.3915 8.3529 17.6537 8.35518C17.9159 8.35746 18.1668 8.46263 18.3522 8.64804C18.5376 8.83344 18.6427 9.08426 18.645 9.34645C18.6473 9.60865 18.5465 9.86125 18.3643 10.0499L12.7073 15.7069Z' fill='%23ffffff'/%3E%3C/svg%3E");
389
382
  }
390
383
 
384
+
391
385
  /* ---------- ADD FILE QUESTION ---------- */
392
386
  .filePickText {
393
387
  color: var(--dark-text) !important;
@@ -470,7 +464,7 @@
470
464
  }
471
465
 
472
466
  .pts-open-close-icon svg path,
473
- .pts-collapse-open-close-icon svg path {
467
+ .pts-collapse-open-close-icon svg path{
474
468
  fill: var(--dark-main);
475
469
  }
476
470
 
@@ -523,8 +517,7 @@
523
517
  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");
524
518
  }
525
519
 
526
- .pts-modal-overlay,
527
- .pts-navigation-overlay {
520
+ .pts-modal-overlay, .pts-navigation-overlay {
528
521
  background-color: rgba(255, 255, 255, 0.5);
529
522
  }
530
523
 
@@ -535,17 +528,20 @@
535
528
  background-color: var(--dark-alertintext);
536
529
  }
537
530
  .pts-alertInText-left svg circle {
538
- fill: var(--dark-background);
531
+ fill: var(--dark-main);
539
532
  }
533
+
540
534
  .pts-alertInText-left svg rect {
541
535
  fill: var(--dark-alertintext);
542
536
  }
537
+
543
538
  .pts-alertInText-left svg .pts-alertInText-icon-dot-over-i {
544
539
  fill: var(--dark-alertintext);
545
540
  }
541
+
546
542
  .pts-alertInText-right {
547
543
  border: 1px solid var(--dark-alertintext);
548
- color: var(--dark-alertintext-text);
544
+ color: var(--dark-text);
549
545
  }
550
546
 
551
547
  /*-------------Autofill-----------*/
@@ -58,8 +58,7 @@ h2:focus:focus-visible,
58
58
  }
59
59
 
60
60
  h1,
61
- h2,
62
- h3 {
61
+ h2 {
63
62
  margin: 0;
64
63
  margin-bottom: 3.6rem;
65
64
  }
@@ -75,6 +74,7 @@ h2 {
75
74
 
76
75
  h3 {
77
76
  font-size: 1.6rem;
77
+ margin-bottom: 1.6rem;
78
78
  }
79
79
 
80
80
  h4 {
@@ -34,64 +34,11 @@
34
34
  .pts-navigation-header-nav-container {
35
35
  align-items: center;
36
36
  justify-content: center;
37
- height: 4.8rem;
38
- gap: 0.6rem;
39
- }
40
-
41
- .pts-navigation-header-nav-container {
42
- width: calc(100% - 3.2rem);
43
- padding: 0 1.6rem;
44
- display: grid;
45
- grid-template-columns: 1fr 1fr 1fr;
46
- align-items: center;
47
- height: 4.8rem;
48
- }
49
-
50
- .pts-navigation-header-nav-container .pts-secondary-button {
51
- width: 120px;
52
- }
53
-
54
- /*--- 3 knappar ---*/
55
- .pts-navigation-header-nav-container .pts-secondary-button:nth-child(1) {
56
- justify-self: start;
57
- }
58
-
59
- .pts-navigation-header-nav-container .pts-secondary-button:nth-child(2) {
60
- justify-self: center;
61
- }
62
-
63
- .pts-navigation-header-nav-container .pts-secondary-button:nth-child(3) {
64
- justify-self: end;
65
- }
66
-
67
- /*--- 2 knappar: mitten och höger ---*/
68
- .pts-navigation-header-nav-container:has(.pts-secondary-button:nth-child(2)):not(
69
- :has(.pts-secondary-button:nth-child(3))
70
- ) {
71
- grid-template-columns: 1fr 1fr 1fr;
72
- }
73
-
74
- .pts-navigation-header-nav-container:has(.pts-secondary-button:nth-child(2)):not(
75
- :has(.pts-secondary-button:nth-child(3))
76
- )
77
- .pts-secondary-button:nth-child(1) {
78
- grid-column: 2;
79
- justify-self: center;
80
- }
81
-
82
- .pts-navigation-header-nav-container:has(.pts-secondary-button:nth-child(2)):not(
83
- :has(.pts-secondary-button:nth-child(3))
84
- )
85
- .pts-secondary-button:nth-child(2) {
86
- grid-column: 3;
87
- justify-self: end;
37
+ height: 48px;
88
38
  }
89
39
 
90
- /*--- 1 knapp: höger ---*/
91
- .pts-navigation-header-nav-container:not(:has(.pts-secondary-button:nth-child(2)))
92
- .pts-secondary-button {
93
- grid-column: 3;
94
- justify-self: end;
40
+ .pts-navigation-header-nav-container button {
41
+ width: 100%;
95
42
  }
96
43
 
97
44
  .pts-navigation-close-button {
@@ -169,11 +116,6 @@
169
116
  padding-top: 0;
170
117
  }
171
118
 
172
- .pts-footer-linkList .pts-secondary-button {
173
- margin-left: unset;
174
- border-color: var(--background);
175
- }
176
-
177
119
  .pts-footer-linkList a span {
178
120
  padding: 0;
179
121
  }
@@ -319,7 +261,7 @@
319
261
  margin-right: 1.6rem;
320
262
  margin-top: 1.6rem;
321
263
  }
322
- /*****Questions*******/
264
+ /*****Questions*******/
323
265
  .pts-textArea-container textarea {
324
266
  width: 100%;
325
267
  box-sizing: border-box;
@@ -154,6 +154,10 @@ div.pts-root-question:last-child {
154
154
  background-color: var(--action);
155
155
  }
156
156
 
157
+ .pts-radioMultipleWithInfo2-container input[type='radio'] {
158
+ margin: auto;
159
+ }
160
+
157
161
  .pts-radioMultiple-container label,
158
162
  .pts-radioMultipleWithInfo2-container label {
159
163
  position: relative;
@@ -163,15 +167,25 @@ div.pts-root-question:last-child {
163
167
 
164
168
  /****RADIO MULTIPLE WITH INFO*/
165
169
 
170
+ .pts-radioMultipleWithInfo2-container legend {
171
+ margin-bottom: 16px;
172
+ font-weight: 600;
173
+ margin-top: 10px;
174
+ }
175
+
176
+ .pts-radioMultipleWithInfo2-container p {
177
+ margin-bottom: 0px;
178
+ margin-top: 16px;
179
+ }
180
+
166
181
  .pts-radioWithInfo-sub-headline {
167
- margin-block-start: 3.6rem;
168
182
  margin-block-end: 1.6rem;
169
- font-size: 18px;
183
+ font-size: 1.6rem;
170
184
  font-weight: 700;
171
185
  }
172
186
 
173
187
  .pts-radioMultipleWithInfo2-container label {
174
- padding-top: 2px;
188
+ padding-top: 0.2rem;
175
189
  }
176
190
 
177
191
  .pts-radio-collapse {
@@ -192,11 +206,11 @@ div.pts-root-question:last-child {
192
206
  display: grid;
193
207
  text-align: left;
194
208
  grid-template-columns: 5% 90% 5%;
195
- align-items: center;
209
+ align-items: flex-start;
196
210
  }
197
211
 
198
212
  .pts-radio-collapse-button-container.open {
199
- border-radius: 8px 8px 0 0;
213
+ border-radius: 0.8rem 0.8rem 0 0;
200
214
  }
201
215
 
202
216
  .pts-radio-collapse-button-container input {
@@ -308,6 +322,15 @@ div.pts-root-question:last-child {
308
322
  margin-top: 0.2rem;
309
323
  }
310
324
 
325
+ /*-------- INFO ONLY-------- */
326
+ .pts-root-question:has(.pts-textbody-createspace) {
327
+ max-width: 100%;
328
+ }
329
+
330
+ .pts-root-question.pts-InfoOnly-container {
331
+ max-width: auto;
332
+ }
333
+
311
334
  /*-------- CHECKBOX GROUP-------- */
312
335
 
313
336
  .pts-checkboxGroup-options {
@@ -64,6 +64,7 @@
64
64
  border: 0;
65
65
  }
66
66
 
67
+
67
68
  select:focus-visible,
68
69
  button:focus-visible,
69
70
  a:focus-visible,
@@ -114,38 +115,13 @@ input:focus-visible:-webkit-autofill {
114
115
  box-shadow: 0 0 0 0px #000 !important;
115
116
  }
116
117
 
117
- .pts-secondary-button {
118
- display: inline-flex;
119
- align-items: center;
120
- background: none;
121
- margin: 0;
122
- font: inherit;
123
- text-align: inherit;
124
- line-height: normal;
125
- cursor: pointer;
126
- outline: none;
127
- white-space: nowrap;
128
- color: var(--action);
129
- padding: 0.8rem 2rem;
130
- border: 2px solid var(--main);
131
- border-radius: 0.8rem;
132
- }
133
-
134
- .pts-secondary-button:hover {
135
- border-color: var(--action);
136
- }
137
-
138
- .secondary_icon {
139
- padding-right: 0.6rem;
140
- }
141
-
142
118
  /* ---------- COOKIE BANNER ---------- */
143
119
 
144
120
  .pts-cookieBanner {
145
121
  position: relative;
146
122
  top: 0;
147
123
  left: 0;
148
- padding: 1.5rem 2rem;
124
+ padding: 15px 20px;
149
125
  background: #eaf1f9;
150
126
  border-bottom: 4px solid var(--action);
151
127
  z-index: 9999;
@@ -162,7 +138,7 @@ input:focus-visible:-webkit-autofill {
162
138
 
163
139
  .pts-cookieBanner p {
164
140
  line-height: 2.4rem;
165
- margin: 0 0 1.5rem 0;
141
+ margin: 0 0 15px 0;
166
142
  }
167
143
  .pts-cookieBanner-Links {
168
144
  margin-bottom: 1.6rem;
@@ -181,7 +157,7 @@ input:focus-visible:-webkit-autofill {
181
157
  min-width: 140px;
182
158
  text-align: center;
183
159
  font-size: 1.4rem;
184
- padding: 0.8rem 1.5rem;
160
+ padding: 8px 15px;
185
161
  background-color: var(--action);
186
162
  border: 2px solid var(--action);
187
163
  color: white;
@@ -221,7 +197,7 @@ input:focus-visible:-webkit-autofill {
221
197
  .pts-header-container {
222
198
  display: flex;
223
199
  min-height: 80px;
224
- padding: 0px 7rem;
200
+ padding: 0px 70px;
225
201
  align-items: center;
226
202
  justify-content: space-between;
227
203
  background-color: var(--main);
@@ -248,6 +224,17 @@ input:focus-visible:-webkit-autofill {
248
224
  align-items: flex-end;
249
225
  }
250
226
 
227
+ .pts-languageButton {
228
+ position: relative;
229
+ display: inline-flex;
230
+ align-items: center;
231
+ background: transparent;
232
+ border: transparent;
233
+ color: var(--action);
234
+ cursor: pointer;
235
+ font-size: 1.6rem;
236
+ }
237
+
251
238
  .languageIcon {
252
239
  position: relative;
253
240
  margin-top: 0.3rem;
@@ -269,7 +256,7 @@ input:focus-visible:-webkit-autofill {
269
256
  .pts-navigation-header-container {
270
257
  display: flex;
271
258
  min-height: 80px;
272
- padding: 0px 0.7rem;
259
+ padding: 0px 70px;
273
260
  align-items: center;
274
261
  justify-content: space-between;
275
262
  background-color: var(--main);
@@ -338,6 +325,15 @@ input:focus-visible:-webkit-autofill {
338
325
  }
339
326
 
340
327
  .pts-navigation-header-nav-container button {
328
+ background: none;
329
+ line-height: 2.4rem;
330
+ text-decoration-skip-ink: none;
331
+ border: none;
332
+ color: var(--action);
333
+ font-size: 1.6rem;
334
+ padding: 0;
335
+ cursor: pointer;
336
+ width: 13rem;
341
337
  z-index: 900;
342
338
  }
343
339
 
@@ -391,7 +387,7 @@ input:focus-visible:-webkit-autofill {
391
387
  }
392
388
 
393
389
  .pts-navigation-link-expand-button {
394
- all: unset;
390
+ all:unset;
395
391
  border: none;
396
392
  padding: 0;
397
393
  cursor: pointer;
@@ -403,7 +399,7 @@ input:focus-visible:-webkit-autofill {
403
399
  padding-left: 3.6rem;
404
400
  display: flex;
405
401
  align-items: flex-end;
406
- gap: 1.8rem;
402
+ gap: 18px;
407
403
  }
408
404
 
409
405
  .pts-sub-navigation-list {
@@ -433,6 +429,7 @@ input:focus-visible:-webkit-autofill {
433
429
  }
434
430
 
435
431
  .pts-navigation-close-button {
432
+ border: none;
436
433
  color: var(--action);
437
434
  background-color: var(--main);
438
435
  display: flex;
@@ -530,6 +527,7 @@ input:focus-visible:-webkit-autofill {
530
527
  flex-shrink: 0;
531
528
  margin-right: 1.6rem;
532
529
  }
530
+
533
531
  .pts-textbody-alerttext {
534
532
  margin-top: 0;
535
533
  }
@@ -537,6 +535,7 @@ input:focus-visible:-webkit-autofill {
537
535
  margin-bottom: 3.6rem;
538
536
  }
539
537
 
538
+
540
539
  /* ---------- TEXT HEADLINE AND BODY ---------- */
541
540
 
542
541
  .pts-textHeadlineAndBody-container .notFirstInList {
@@ -553,7 +552,7 @@ input:focus-visible:-webkit-autofill {
553
552
 
554
553
  /* ---------- OptionTextBody ---------- */
555
554
 
556
- .pts-optionTextBody-container {
555
+ .pts-optionTextBody-container{
557
556
  margin-top: 1.6rem;
558
557
  }
559
558
 
@@ -675,12 +674,13 @@ input:focus-visible:-webkit-autofill {
675
674
  border-radius: 8px 8px 0 0;
676
675
  }
677
676
 
678
- .pts-collapse-open-close-icon svg {
677
+ .pts-collapse-open-close-icon svg{
679
678
  width: 2.4rem;
680
679
  height: 2.4rem;
681
680
  position: relative;
682
681
  top: 3px;
683
682
  }
683
+
684
684
 
685
685
  .pts-collapse-button .pts-open-close-icon svg {
686
686
  width: 2.4rem;
@@ -754,8 +754,8 @@ input:focus-visible:-webkit-autofill {
754
754
  list-style: none;
755
755
  }
756
756
 
757
- .pts-linkList-container li:last-child {
758
- padding-bottom: 0;
757
+ .pts-linkList-container li:last-child{
758
+ padding-bottom:0 ;
759
759
  }
760
760
 
761
761
  /* ---------- GRANSKA-Sidan ---------- */
@@ -1006,18 +1006,6 @@ input:focus-visible:-webkit-autofill {
1006
1006
  box-sizing: border-box;
1007
1007
  }
1008
1008
 
1009
- .pts-footer-linkList .pts-secondary-button {
1010
- position: relative;
1011
- color: var(--background);
1012
- border-color: var(--background-second);
1013
- margin-left: 1.6rem;
1014
- top: -0.5rem;
1015
- }
1016
-
1017
- .pts-footer-linkList .pts-secondary-button:hover {
1018
- border-color: var(--background);
1019
- }
1020
-
1021
1009
  /* ---------- MODAL ---------- */
1022
1010
 
1023
1011
  .pts-modal-overlay {
@@ -1070,28 +1058,37 @@ input:focus-visible:-webkit-autofill {
1070
1058
  transform: rotate(360deg);
1071
1059
  }
1072
1060
  }
1061
+
1073
1062
  /* ---------- ALERT IN TEXT ---------- */
1063
+
1074
1064
  .pts-alertInText-container {
1075
1065
  display: flex;
1076
1066
  width: 100%;
1077
1067
  justify-content: flex-start;
1078
1068
  }
1069
+
1079
1070
  .pts-alertInText-left {
1080
1071
  display: flex;
1081
1072
  justify-content: flex-start;
1082
1073
  align-items: flex-start;
1083
- gap: 10px;
1074
+ gap: 10rem;
1084
1075
  align-self: stretch;
1085
1076
  border-top-left-radius: 8px;
1086
1077
  border-bottom-left-radius: 8px;
1087
1078
  border: 1px solid var(--alertintext);
1088
1079
  background-color: var(--alertintext);
1089
- padding: 8px;
1090
- padding-top: 16px;
1080
+ padding: 0.8rem;
1081
+ padding-top: 1.2rem;
1091
1082
  }
1083
+
1084
+ .pts-alertInText-left svg {
1085
+ height: 1.6rem;
1086
+ width: 1.8rem;
1087
+ }
1088
+
1092
1089
  .pts-alertInText-right {
1093
1090
  display: flex;
1094
- padding: 0 1.6rem;
1091
+ padding: 1.6rem 1.6rem 0 1.6rem;
1095
1092
  justify-content: flex-start;
1096
1093
  align-items: flex-start;
1097
1094
  width: 100%;
@@ -1103,10 +1100,6 @@ input:focus-visible:-webkit-autofill {
1103
1100
 
1104
1101
  /*-----------ALWAYS IN THE END OF STYLES----------------*/
1105
1102
 
1106
- .secondary_icon {
1107
- padding-right: 0.6rem;
1108
- }
1109
-
1110
1103
  .cleanPadding {
1111
1104
  padding: 0;
1112
1105
  }
@@ -1129,12 +1122,12 @@ input:focus-visible:-webkit-autofill {
1129
1122
  border: 0;
1130
1123
  }
1131
1124
 
1125
+
1132
1126
  .hide-asterix .pts-root-mandatoryAsterisk {
1133
1127
  display: none;
1134
1128
  }
1135
1129
 
1136
- [hidden],
1137
- .hidden {
1130
+ [hidden],.hidden {
1138
1131
  display: none;
1139
1132
  }
1140
1133