optimized-react-component-library-xyz123 2.13.1 → 2.14.2

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.13.1",
3
+ "version": "2.14.2",
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,6 +20,14 @@
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
+
23
31
  /*----------COOKIE BANNER-------*/
24
32
  .pts-cookieBanner {
25
33
  background-color: var(--dark-main) !important;
@@ -65,6 +73,15 @@
65
73
  fill: var(--dark-text);
66
74
  }
67
75
 
76
+ .pts-header-content {
77
+ background-color: var(--dark-background);
78
+ }
79
+
80
+ .pts-header-logo-container,
81
+ .pts-header-navigation-container {
82
+ background: var(--dark-background-second);
83
+ }
84
+
68
85
  .pts-languageButton {
69
86
  color: var(--dark-text);
70
87
  }
@@ -79,6 +96,7 @@
79
96
  .pts-navigation-header-headline-container {
80
97
  border-color: var(--dark-background-third) !important;
81
98
  }
99
+
82
100
  .pts-navigation-header-nav-container button svg path,
83
101
  .pts-navigation-header-nav-container button svg line {
84
102
  color: var(--dark-text);
@@ -372,16 +390,14 @@
372
390
  color: var(--dark-info);
373
391
  }
374
392
 
375
-
376
393
  /* ---------- DROPDOWN ---------- */
377
394
  .pts-dropdown-container select {
378
395
  border-color: var(--dark-info);
379
396
  background-color: var(--dark-main);
380
397
  color: var(--dark-text);
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");
398
+ 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");
382
399
  }
383
400
 
384
-
385
401
  /* ---------- ADD FILE QUESTION ---------- */
386
402
  .filePickText {
387
403
  color: var(--dark-text) !important;
@@ -464,7 +480,7 @@
464
480
  }
465
481
 
466
482
  .pts-open-close-icon svg path,
467
- .pts-collapse-open-close-icon svg path{
483
+ .pts-collapse-open-close-icon svg path {
468
484
  fill: var(--dark-main);
469
485
  }
470
486
 
@@ -517,7 +533,8 @@
517
533
  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");
518
534
  }
519
535
 
520
- .pts-modal-overlay, .pts-navigation-overlay {
536
+ .pts-modal-overlay,
537
+ .pts-navigation-overlay {
521
538
  background-color: rgba(255, 255, 255, 0.5);
522
539
  }
523
540
 
@@ -25,6 +25,10 @@
25
25
  align-items: center;
26
26
  }
27
27
 
28
+ .pts-site-headline {
29
+ margin-bottom: unset;
30
+ }
31
+
28
32
  .pts-site-headline,
29
33
  .pts-navigation-header-headline-container p {
30
34
  font-size: 1.6rem;
@@ -34,11 +38,65 @@
34
38
  .pts-navigation-header-nav-container {
35
39
  align-items: center;
36
40
  justify-content: center;
37
- height: 48px;
41
+ height: 4.8rem;
42
+ gap: 0.6rem;
43
+ margin-bottom: unset;
38
44
  }
39
45
 
40
- .pts-navigation-header-nav-container button {
41
- width: 100%;
46
+ .pts-navigation-header-nav-container {
47
+ width: calc(100% - 3.2rem);
48
+ padding: 0 1.6rem;
49
+ display: grid;
50
+ grid-template-columns: 1fr 1fr 1fr;
51
+ align-items: center;
52
+ height: 4.8rem;
53
+ }
54
+
55
+ .pts-navigation-header-nav-container .pts-secondary-button {
56
+ width: 120px;
57
+ }
58
+
59
+ /*--- 3 knappar ---*/
60
+ .pts-navigation-header-nav-container .pts-secondary-button:nth-child(1) {
61
+ justify-self: start;
62
+ }
63
+
64
+ .pts-navigation-header-nav-container .pts-secondary-button:nth-child(2) {
65
+ justify-self: center;
66
+ }
67
+
68
+ .pts-navigation-header-nav-container .pts-secondary-button:nth-child(3) {
69
+ justify-self: end;
70
+ }
71
+
72
+ /*--- 2 knappar: mitten och höger ---*/
73
+ .pts-navigation-header-nav-container:has(.pts-secondary-button:nth-child(2)):not(
74
+ :has(.pts-secondary-button:nth-child(3))
75
+ ) {
76
+ grid-template-columns: 1fr 1fr 1fr;
77
+ }
78
+
79
+ .pts-navigation-header-nav-container:has(.pts-secondary-button:nth-child(2)):not(
80
+ :has(.pts-secondary-button:nth-child(3))
81
+ )
82
+ .pts-secondary-button:nth-child(1) {
83
+ grid-column: 2;
84
+ justify-self: center;
85
+ }
86
+
87
+ .pts-navigation-header-nav-container:has(.pts-secondary-button:nth-child(2)):not(
88
+ :has(.pts-secondary-button:nth-child(3))
89
+ )
90
+ .pts-secondary-button:nth-child(2) {
91
+ grid-column: 3;
92
+ justify-self: end;
93
+ }
94
+
95
+ /*--- 1 knapp: höger ---*/
96
+ .pts-navigation-header-nav-container:not(:has(.pts-secondary-button:nth-child(2)))
97
+ .pts-secondary-button {
98
+ grid-column: 2;
99
+ justify-self: center;
42
100
  }
43
101
 
44
102
  .pts-navigation-close-button {
@@ -116,6 +174,11 @@
116
174
  padding-top: 0;
117
175
  }
118
176
 
177
+ .pts-footer-linkList .pts-secondary-button {
178
+ margin-left: unset;
179
+ border-color: var(--background);
180
+ }
181
+
119
182
  .pts-footer-linkList a span {
120
183
  padding: 0;
121
184
  }
@@ -190,10 +253,13 @@
190
253
  .pts-header-navigation-container {
191
254
  align-items: center;
192
255
  justify-content: center;
256
+ margin-top: 0.4rem;
257
+ margin-bottom: unset;
193
258
  }
194
259
 
195
260
  .pts-languageButton {
196
261
  margin: 0.4rem 0;
262
+ margin-left: -10px;
197
263
  }
198
264
 
199
265
  .languageIcon {
@@ -261,7 +327,7 @@
261
327
  margin-right: 1.6rem;
262
328
  margin-top: 1.6rem;
263
329
  }
264
- /*****Questions*******/
330
+ /*****Questions*******/
265
331
  .pts-textArea-container textarea {
266
332
  width: 100%;
267
333
  box-sizing: border-box;
@@ -64,7 +64,6 @@
64
64
  border: 0;
65
65
  }
66
66
 
67
-
68
67
  select:focus-visible,
69
68
  button:focus-visible,
70
69
  a:focus-visible,
@@ -115,13 +114,38 @@ input:focus-visible:-webkit-autofill {
115
114
  box-shadow: 0 0 0 0px #000 !important;
116
115
  }
117
116
 
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
+
118
142
  /* ---------- COOKIE BANNER ---------- */
119
143
 
120
144
  .pts-cookieBanner {
121
145
  position: relative;
122
146
  top: 0;
123
147
  left: 0;
124
- padding: 15px 20px;
148
+ padding: 1.5rem 2rem;
125
149
  background: #eaf1f9;
126
150
  border-bottom: 4px solid var(--action);
127
151
  z-index: 9999;
@@ -138,7 +162,7 @@ input:focus-visible:-webkit-autofill {
138
162
 
139
163
  .pts-cookieBanner p {
140
164
  line-height: 2.4rem;
141
- margin: 0 0 15px 0;
165
+ margin: 0 0 1.5rem 0;
142
166
  }
143
167
  .pts-cookieBanner-Links {
144
168
  margin-bottom: 1.6rem;
@@ -157,7 +181,7 @@ input:focus-visible:-webkit-autofill {
157
181
  min-width: 140px;
158
182
  text-align: center;
159
183
  font-size: 1.4rem;
160
- padding: 8px 15px;
184
+ padding: 0.8rem 1.5rem;
161
185
  background-color: var(--action);
162
186
  border: 2px solid var(--action);
163
187
  color: white;
@@ -197,7 +221,7 @@ input:focus-visible:-webkit-autofill {
197
221
  .pts-header-container {
198
222
  display: flex;
199
223
  min-height: 80px;
200
- padding: 0px 70px;
224
+ padding: 0px 7rem;
201
225
  align-items: center;
202
226
  justify-content: space-between;
203
227
  background-color: var(--main);
@@ -206,10 +230,12 @@ input:focus-visible:-webkit-autofill {
206
230
  .pts-header-content {
207
231
  width: 100%;
208
232
  display: flex;
233
+ background-color: var(--background);
209
234
  }
210
235
 
211
236
  .pts-header-logo-container {
212
237
  height: 4rem;
238
+ background: var(--main);
213
239
  }
214
240
 
215
241
  .pts-header-logo svg {
@@ -222,22 +248,13 @@ input:focus-visible:-webkit-autofill {
222
248
  justify-content: flex-end;
223
249
  width: 100%;
224
250
  align-items: flex-end;
225
- }
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;
251
+ margin-bottom: -1.6rem;
252
+ background: var(--main);
236
253
  }
237
254
 
238
255
  .languageIcon {
239
256
  position: relative;
240
- margin-top: 0.3rem;
257
+ margin-top: 0.4rem;
241
258
  padding-right: 0.6rem;
242
259
  top: 0.01rem;
243
260
  }
@@ -247,16 +264,12 @@ input:focus-visible:-webkit-autofill {
247
264
  height: 1.6rem;
248
265
  }
249
266
 
250
- .pts-languageButton-text:hover {
251
- text-decoration: underline 0.2rem;
252
- }
253
-
254
267
  /**Header with navigation**/
255
268
 
256
269
  .pts-navigation-header-container {
257
270
  display: flex;
258
271
  min-height: 80px;
259
- padding: 0px 70px;
272
+ padding: 0px 0.7rem;
260
273
  align-items: center;
261
274
  justify-content: space-between;
262
275
  background-color: var(--main);
@@ -298,6 +311,10 @@ input:focus-visible:-webkit-autofill {
298
311
  bottom: -1px;
299
312
  }
300
313
 
314
+ .pts-site-headline {
315
+ margin-bottom: -1.6rem;
316
+ }
317
+
301
318
  .pts-navigation-header-nav-container .pts-open-icon {
302
319
  position: relative;
303
320
  top: 4px;
@@ -322,18 +339,10 @@ input:focus-visible:-webkit-autofill {
322
339
  width: 100%;
323
340
  align-items: flex-end;
324
341
  height: 5rem;
342
+ margin-bottom: -1.6rem;
325
343
  }
326
344
 
327
345
  .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;
337
346
  z-index: 900;
338
347
  }
339
348
 
@@ -387,7 +396,7 @@ input:focus-visible:-webkit-autofill {
387
396
  }
388
397
 
389
398
  .pts-navigation-link-expand-button {
390
- all:unset;
399
+ all: unset;
391
400
  border: none;
392
401
  padding: 0;
393
402
  cursor: pointer;
@@ -399,7 +408,7 @@ input:focus-visible:-webkit-autofill {
399
408
  padding-left: 3.6rem;
400
409
  display: flex;
401
410
  align-items: flex-end;
402
- gap: 18px;
411
+ gap: 1.8rem;
403
412
  }
404
413
 
405
414
  .pts-sub-navigation-list {
@@ -429,7 +438,6 @@ input:focus-visible:-webkit-autofill {
429
438
  }
430
439
 
431
440
  .pts-navigation-close-button {
432
- border: none;
433
441
  color: var(--action);
434
442
  background-color: var(--main);
435
443
  display: flex;
@@ -552,7 +560,7 @@ input:focus-visible:-webkit-autofill {
552
560
 
553
561
  /* ---------- OptionTextBody ---------- */
554
562
 
555
- .pts-optionTextBody-container{
563
+ .pts-optionTextBody-container {
556
564
  margin-top: 1.6rem;
557
565
  }
558
566
 
@@ -674,13 +682,12 @@ input:focus-visible:-webkit-autofill {
674
682
  border-radius: 8px 8px 0 0;
675
683
  }
676
684
 
677
- .pts-collapse-open-close-icon svg{
685
+ .pts-collapse-open-close-icon svg {
678
686
  width: 2.4rem;
679
687
  height: 2.4rem;
680
688
  position: relative;
681
689
  top: 3px;
682
690
  }
683
-
684
691
 
685
692
  .pts-collapse-button .pts-open-close-icon svg {
686
693
  width: 2.4rem;
@@ -754,8 +761,8 @@ input:focus-visible:-webkit-autofill {
754
761
  list-style: none;
755
762
  }
756
763
 
757
- .pts-linkList-container li:last-child{
758
- padding-bottom:0 ;
764
+ .pts-linkList-container li:last-child {
765
+ padding-bottom: 0;
759
766
  }
760
767
 
761
768
  /* ---------- GRANSKA-Sidan ---------- */
@@ -1006,6 +1013,18 @@ input:focus-visible:-webkit-autofill {
1006
1013
  box-sizing: border-box;
1007
1014
  }
1008
1015
 
1016
+ .pts-footer-linkList .pts-secondary-button {
1017
+ position: relative;
1018
+ color: var(--background);
1019
+ border-color: var(--background-second);
1020
+ margin-left: 1.6rem;
1021
+ top: -0.5rem;
1022
+ }
1023
+
1024
+ .pts-footer-linkList .pts-secondary-button:hover {
1025
+ border-color: var(--background);
1026
+ }
1027
+
1009
1028
  /* ---------- MODAL ---------- */
1010
1029
 
1011
1030
  .pts-modal-overlay {
@@ -1100,6 +1119,10 @@ input:focus-visible:-webkit-autofill {
1100
1119
 
1101
1120
  /*-----------ALWAYS IN THE END OF STYLES----------------*/
1102
1121
 
1122
+ .secondary_icon {
1123
+ padding-right: 0.6rem;
1124
+ }
1125
+
1103
1126
  .cleanPadding {
1104
1127
  padding: 0;
1105
1128
  }
@@ -1122,12 +1145,12 @@ input:focus-visible:-webkit-autofill {
1122
1145
  border: 0;
1123
1146
  }
1124
1147
 
1125
-
1126
1148
  .hide-asterix .pts-root-mandatoryAsterisk {
1127
1149
  display: none;
1128
1150
  }
1129
1151
 
1130
- [hidden],.hidden {
1152
+ [hidden],
1153
+ .hidden {
1131
1154
  display: none;
1132
1155
  }
1133
1156