optimized-react-component-library-xyz123 2.12.7 → 2.12.9

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.7",
3
+ "version": "2.12.9",
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",
@@ -73,6 +73,15 @@
73
73
  fill: var(--dark-text);
74
74
  }
75
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
+
76
85
  .pts-languageButton {
77
86
  color: var(--dark-text);
78
87
  }
@@ -87,6 +96,7 @@
87
96
  .pts-navigation-header-headline-container {
88
97
  border-color: var(--dark-background-third) !important;
89
98
  }
99
+
90
100
  .pts-navigation-header-nav-container button svg path,
91
101
  .pts-navigation-header-nav-container button svg line {
92
102
  color: var(--dark-text);
@@ -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;
@@ -36,11 +40,64 @@
36
40
  justify-content: center;
37
41
  height: 4.8rem;
38
42
  gap: 0.6rem;
43
+ margin-bottom: unset;
39
44
  }
40
45
 
41
- /* todo .pts-navigation-header-nav-container button {
42
- width: 100%;
43
- }*/
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;
100
+ }
44
101
 
45
102
  .pts-navigation-close-button {
46
103
  align-items: center;
@@ -196,10 +253,13 @@
196
253
  .pts-header-navigation-container {
197
254
  align-items: center;
198
255
  justify-content: center;
256
+ margin-top: 0.4rem;
257
+ margin-bottom: unset;
199
258
  }
200
259
 
201
260
  .pts-languageButton {
202
261
  margin: 0.4rem 0;
262
+ margin-left: -10px;
203
263
  }
204
264
 
205
265
  .languageIcon {
@@ -127,7 +127,7 @@ input:focus-visible:-webkit-autofill {
127
127
  white-space: nowrap;
128
128
  color: var(--action);
129
129
  padding: 0.8rem 2rem;
130
- border: 2px solid var(--background);
130
+ border: 2px solid var(--main);
131
131
  border-radius: 0.8rem;
132
132
  }
133
133
 
@@ -156,7 +156,7 @@ input:focus-visible:-webkit-autofill {
156
156
  display: flex;
157
157
  flex-direction: column;
158
158
  justify-self: center;
159
- max-width: 8.6rem;
159
+ max-width: 860px;
160
160
  margin: 1.6rem 0;
161
161
  }
162
162
 
@@ -230,10 +230,12 @@ input:focus-visible:-webkit-autofill {
230
230
  .pts-header-content {
231
231
  width: 100%;
232
232
  display: flex;
233
+ background-color: var(--background);
233
234
  }
234
235
 
235
236
  .pts-header-logo-container {
236
237
  height: 4rem;
238
+ background: var(--main);
237
239
  }
238
240
 
239
241
  .pts-header-logo svg {
@@ -246,11 +248,13 @@ input:focus-visible:-webkit-autofill {
246
248
  justify-content: flex-end;
247
249
  width: 100%;
248
250
  align-items: flex-end;
251
+ margin-bottom: -1.6rem;
252
+ background: var(--main);
249
253
  }
250
254
 
251
255
  .languageIcon {
252
256
  position: relative;
253
- margin-top: 0.3rem;
257
+ margin-top: 0.4rem;
254
258
  padding-right: 0.6rem;
255
259
  top: 0.01rem;
256
260
  }
@@ -260,10 +264,6 @@ input:focus-visible:-webkit-autofill {
260
264
  height: 1.6rem;
261
265
  }
262
266
 
263
- .pts-languageButton-text:hover {
264
- text-decoration: underline 0.2rem;
265
- }
266
-
267
267
  /**Header with navigation**/
268
268
 
269
269
  .pts-navigation-header-container {
@@ -311,6 +311,10 @@ input:focus-visible:-webkit-autofill {
311
311
  bottom: -1px;
312
312
  }
313
313
 
314
+ .pts-site-headline {
315
+ margin-bottom: -1.6rem;
316
+ }
317
+
314
318
  .pts-navigation-header-nav-container .pts-open-icon {
315
319
  position: relative;
316
320
  top: 4px;
@@ -335,6 +339,7 @@ input:focus-visible:-webkit-autofill {
335
339
  width: 100%;
336
340
  align-items: flex-end;
337
341
  height: 5rem;
342
+ margin-bottom: -1.6rem;
338
343
  }
339
344
 
340
345
  .pts-navigation-header-nav-container button {
@@ -1006,6 +1011,18 @@ input:focus-visible:-webkit-autofill {
1006
1011
  box-sizing: border-box;
1007
1012
  }
1008
1013
 
1014
+ .pts-footer-linkList .pts-secondary-button {
1015
+ position: relative;
1016
+ color: var(--background);
1017
+ border-color: var(--background-second);
1018
+ margin-left: 1.6rem;
1019
+ top: -0.5rem;
1020
+ }
1021
+
1022
+ .pts-footer-linkList .pts-secondary-button:hover {
1023
+ border-color: var(--background);
1024
+ }
1025
+
1009
1026
  /* ---------- MODAL ---------- */
1010
1027
 
1011
1028
  .pts-modal-overlay {
@@ -1091,18 +1108,6 @@ input:focus-visible:-webkit-autofill {
1091
1108
 
1092
1109
  /*-----------ALWAYS IN THE END OF STYLES----------------*/
1093
1110
 
1094
- .pts-footer-linkList .pts-secondary-button {
1095
- position: relative;
1096
- color: var(--background);
1097
- border-color: var(--background-second);
1098
- margin-left: 1.6rem;
1099
- top: -0.5rem;
1100
- }
1101
-
1102
- .pts-footer-linkList .pts-secondary-button:hover {
1103
- border-color: var(--background);
1104
- }
1105
-
1106
1111
  .secondary_icon {
1107
1112
  padding-right: 0.6rem;
1108
1113
  }