optimized-react-component-library-xyz123 2.5.2 → 2.5.3
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/dist/index.d.mts +3 -12
- package/dist/index.d.ts +3 -12
- package/dist/index.js +751 -797
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +742 -787
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/darkMode.css +80 -83
- package/src/css/mobileView.css +1 -9
- package/src/css/questions.css +4 -72
- package/src/css/styles.css +1 -2
package/package.json
CHANGED
package/src/css/darkMode.css
CHANGED
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
--dark-orientation-active: #f4bf56;
|
|
9
9
|
--dark-background-second: #200827;
|
|
10
10
|
--dark-background-third: #747474;
|
|
11
|
+
--dark-alertintext: #adc7e5;
|
|
12
|
+
--dark-alertintext-text: #dc7d0a;
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
@media (prefers-color-scheme: dark) {
|
|
@@ -67,7 +69,6 @@
|
|
|
67
69
|
color: var(--dark-text);
|
|
68
70
|
}
|
|
69
71
|
|
|
70
|
-
|
|
71
72
|
/*--Navigation header / menu ----*/
|
|
72
73
|
|
|
73
74
|
.pts-navigation-header-container {
|
|
@@ -75,81 +76,74 @@
|
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
.pts-navigation-header-logo-container,
|
|
78
|
-
.pts-navigation-header-headline-container
|
|
79
|
-
border-color: var(--dark-background-third)!important;
|
|
79
|
+
.pts-navigation-header-headline-container {
|
|
80
|
+
border-color: var(--dark-background-third) !important;
|
|
80
81
|
}
|
|
81
|
-
|
|
82
|
-
|
|
82
|
+
.pts-navigation-header-nav-container button svg path,
|
|
83
|
+
.pts-navigation-header-nav-container button svg line {
|
|
83
84
|
color: var(--dark-text);
|
|
84
85
|
fill: var(--dark-text);
|
|
85
86
|
stroke: var(--dark-text);
|
|
86
87
|
}
|
|
87
88
|
|
|
88
|
-
.pts-navigation-header-container svg path {
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
.pts-navigation-header-nav-container,
|
|
94
|
-
.pts-navigation-header-button-label {
|
|
95
|
-
background: var(--dark-background-second);
|
|
96
|
-
color: var(--dark-text);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.pts-expand-icon svg rect{
|
|
100
|
-
fill: var(--dark-action);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
.pts-contract-icon svg rect{
|
|
105
|
-
fill: var(--dark-orientation-active);
|
|
106
|
-
}
|
|
89
|
+
.pts-navigation-header-container svg path {
|
|
90
|
+
fill: var(--dark-text);
|
|
91
|
+
}
|
|
107
92
|
|
|
93
|
+
.pts-navigation-header-nav-container,
|
|
94
|
+
.pts-navigation-header-button-label {
|
|
95
|
+
background: var(--dark-background-second);
|
|
96
|
+
color: var(--dark-text);
|
|
97
|
+
}
|
|
108
98
|
|
|
109
|
-
.pts-
|
|
110
|
-
|
|
111
|
-
}
|
|
99
|
+
.pts-expand-icon svg rect {
|
|
100
|
+
fill: var(--dark-action);
|
|
101
|
+
}
|
|
112
102
|
|
|
113
|
-
.pts-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
103
|
+
.pts-contract-icon svg rect {
|
|
104
|
+
fill: var(--dark-orientation-active);
|
|
105
|
+
}
|
|
117
106
|
|
|
118
|
-
.pts-navigation-close-
|
|
119
|
-
|
|
120
|
-
}
|
|
107
|
+
.pts-navigation-close-text {
|
|
108
|
+
color: var(--dark-text);
|
|
109
|
+
}
|
|
121
110
|
|
|
122
|
-
.pts-navigation-
|
|
123
|
-
background
|
|
124
|
-
|
|
111
|
+
.pts-navigation-close-button {
|
|
112
|
+
background: var(--dark-main);
|
|
113
|
+
color: var(--dark-text);
|
|
114
|
+
}
|
|
125
115
|
|
|
126
|
-
.pts-navigation-
|
|
127
|
-
|
|
128
|
-
}
|
|
116
|
+
.pts-navigation-close-button svg path {
|
|
117
|
+
stroke: var(--dark-text);
|
|
118
|
+
}
|
|
129
119
|
|
|
130
|
-
.pts-navigation-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
.pts-navigation-close-container,
|
|
134
|
-
.pts-sub-navigation-item,
|
|
135
|
-
.pts-sub-navigation-item a,
|
|
136
|
-
.pts-navigation-button > a {
|
|
137
|
-
background: var(--dark-main);
|
|
138
|
-
color: var(--dark-text);
|
|
139
|
-
border-color: var(--dark-background-third);
|
|
140
|
-
}
|
|
120
|
+
.pts-navigation-link-expand-button {
|
|
121
|
+
background-color: var(--dark-main);
|
|
122
|
+
}
|
|
141
123
|
|
|
142
|
-
.pts-navigation-button
|
|
124
|
+
.pts-navigation-link-expand-button svg path {
|
|
125
|
+
stroke: var(--dark-main) !important;
|
|
126
|
+
}
|
|
143
127
|
|
|
144
|
-
|
|
128
|
+
.pts-navigation-with-close-button,
|
|
129
|
+
.pts-navigation-menu-container,
|
|
130
|
+
.pts-navigation-button,
|
|
131
|
+
.pts-navigation-close-container,
|
|
132
|
+
.pts-sub-navigation-item,
|
|
133
|
+
.pts-sub-navigation-item a,
|
|
134
|
+
.pts-navigation-button > a {
|
|
135
|
+
background: var(--dark-main);
|
|
136
|
+
color: var(--dark-text);
|
|
137
|
+
border-color: var(--dark-background-third);
|
|
138
|
+
}
|
|
145
139
|
|
|
146
|
-
|
|
140
|
+
.pts-navigation-button a {
|
|
141
|
+
color: var(--dark-text);
|
|
142
|
+
}
|
|
147
143
|
|
|
148
|
-
.pts-sub-navigation-container {
|
|
144
|
+
.pts-sub-navigation-container {
|
|
149
145
|
border-left: var(--dark-action) 5px solid;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
|
|
146
|
+
}
|
|
153
147
|
|
|
154
148
|
/*-------MAIN CONTENT-------*/
|
|
155
149
|
section,
|
|
@@ -171,7 +165,6 @@ background-color: var(--dark-main);
|
|
|
171
165
|
.MoreInfoIcon svg {
|
|
172
166
|
background-color: var(--dark-action);
|
|
173
167
|
}
|
|
174
|
-
|
|
175
168
|
|
|
176
169
|
.pts-serviceHeadlineAndBody-container a svg path,
|
|
177
170
|
.MoreInfoIcon svg path {
|
|
@@ -317,20 +310,6 @@ background-color: var(--dark-main);
|
|
|
317
310
|
background-color: var(--dark-action);
|
|
318
311
|
}
|
|
319
312
|
|
|
320
|
-
/* ---------- RADIO MULTIPLE WHITH INFO ---------- */
|
|
321
|
-
|
|
322
|
-
.pts-radioMultipleWithInfo-container input[type='radio']:checked::before {
|
|
323
|
-
background-color: var(--dark-main);
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
.pts-radio-collapse-button-container{
|
|
327
|
-
background-color: var(--dark-action);
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
.pts-radio-collapse-body.open {
|
|
331
|
-
border-color:var(--dark-action);
|
|
332
|
-
}
|
|
333
|
-
|
|
334
313
|
/* ---------- MULTIPLE CHECKBOXES ---------- */
|
|
335
314
|
|
|
336
315
|
.pts-multipleCheckboxes-container input[type='checkbox'] {
|
|
@@ -437,11 +416,11 @@ background-color: var(--dark-main);
|
|
|
437
416
|
stroke: #000000;
|
|
438
417
|
}
|
|
439
418
|
|
|
440
|
-
|
|
441
|
-
|
|
419
|
+
/*---------- LINK STANDARD ------------*/
|
|
420
|
+
.pts-standard-link-icon svg {
|
|
442
421
|
background-color: var(--dark-action);
|
|
443
422
|
}
|
|
444
|
-
|
|
423
|
+
.pts-standard-link svg path {
|
|
445
424
|
fill: var(--dark-main);
|
|
446
425
|
color: #000000;
|
|
447
426
|
}
|
|
@@ -451,20 +430,20 @@ background-color: var(--dark-main);
|
|
|
451
430
|
}
|
|
452
431
|
|
|
453
432
|
/*----------------- COLLAPSE -----------------*/
|
|
454
|
-
|
|
455
|
-
color:var(--dark-text);
|
|
433
|
+
.pts-collapse-content {
|
|
434
|
+
color: var(--dark-text);
|
|
456
435
|
}
|
|
457
436
|
|
|
458
437
|
.pts-collapse-button {
|
|
459
438
|
background-color: var(--dark-action);
|
|
460
|
-
color:var(--dark-main);
|
|
439
|
+
color: var(--dark-main);
|
|
461
440
|
}
|
|
462
441
|
|
|
463
|
-
.pts-open-close-icon svg path{
|
|
442
|
+
.pts-open-close-icon svg path {
|
|
464
443
|
fill: var(--dark-main);
|
|
465
444
|
}
|
|
466
445
|
|
|
467
|
-
|
|
446
|
+
.pts-collapse-body.open {
|
|
468
447
|
border-color: var(--dark-info);
|
|
469
448
|
background: var(--dark-main);
|
|
470
449
|
}
|
|
@@ -517,6 +496,26 @@ background-color: var(--dark-main);
|
|
|
517
496
|
background-color: rgba(255, 255, 255, 0.5);
|
|
518
497
|
}
|
|
519
498
|
|
|
499
|
+
/* ---------- ALERT IN TEXT ---------- */
|
|
500
|
+
|
|
501
|
+
.pts-alertInText-left {
|
|
502
|
+
border: 1px solid var(--dark-alertintext);
|
|
503
|
+
background-color: var(--dark-alertintext);
|
|
504
|
+
}
|
|
505
|
+
.pts-alertInText-left svg circle {
|
|
506
|
+
fill: var(--dark-background);
|
|
507
|
+
}
|
|
508
|
+
.pts-alertInText-left svg rect {
|
|
509
|
+
fill: var(--dark-alertintext);
|
|
510
|
+
}
|
|
511
|
+
.pts-alertInText-left svg .pts-alertInText-icon-dot-over-i {
|
|
512
|
+
fill: var(--dark-alertintext);
|
|
513
|
+
}
|
|
514
|
+
.pts-alertInText-right {
|
|
515
|
+
border: 1px solid var(--dark-alertintext);
|
|
516
|
+
color: var(--dark-alertintext-text);
|
|
517
|
+
}
|
|
518
|
+
|
|
520
519
|
/*-------------Autofill-----------*/
|
|
521
520
|
input:autofill,
|
|
522
521
|
input:autofill:hover,
|
|
@@ -534,6 +533,4 @@ background-color: var(--dark-main);
|
|
|
534
533
|
input:-moz-autofill {
|
|
535
534
|
box-shadow: 0 0 0 1000px transparent inset !important;
|
|
536
535
|
}
|
|
537
|
-
|
|
538
|
-
|
|
539
536
|
}
|
package/src/css/mobileView.css
CHANGED
|
@@ -261,20 +261,12 @@
|
|
|
261
261
|
margin-right: 1.6rem;
|
|
262
262
|
margin-top: 1.6rem;
|
|
263
263
|
}
|
|
264
|
-
|
|
264
|
+
|
|
265
265
|
.pts-textArea-container textarea {
|
|
266
266
|
width: 100%;
|
|
267
267
|
box-sizing: border-box;
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
.pts-radio-collapse-button-container {
|
|
271
|
-
align-items: start;
|
|
272
|
-
gap: 6px;
|
|
273
|
-
grid-template-columns: 5% 84% 5%;
|
|
274
|
-
padding-top: 1.6rem;
|
|
275
|
-
padding-bottom: 1rem;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
270
|
.inputContainer {
|
|
279
271
|
margin-bottom: 1.6rem;
|
|
280
272
|
}
|
package/src/css/questions.css
CHANGED
|
@@ -124,8 +124,8 @@ div.pts-root-question:last-child {
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
/* ---------- RADIO MULTIPLE ---------- */
|
|
127
|
-
|
|
128
|
-
.pts-
|
|
127
|
+
|
|
128
|
+
.pts-radioMultiple-container input[type='radio'] {
|
|
129
129
|
appearance: none;
|
|
130
130
|
width: 1.8rem;
|
|
131
131
|
height: 1.8rem;
|
|
@@ -138,8 +138,7 @@ div.pts-root-question:last-child {
|
|
|
138
138
|
cursor: pointer;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
.pts-radioMultiple-container input[type='radio']:checked::before
|
|
142
|
-
.pts-radioMultipleWithInfo-container input[type='radio']:checked::before {
|
|
141
|
+
.pts-radioMultiple-container input[type='radio']:checked::before {
|
|
143
142
|
content: '';
|
|
144
143
|
position: absolute;
|
|
145
144
|
top: 50%;
|
|
@@ -151,79 +150,12 @@ div.pts-root-question:last-child {
|
|
|
151
150
|
background-color: var(--action);
|
|
152
151
|
}
|
|
153
152
|
|
|
154
|
-
.pts-radioMultiple-container label
|
|
155
|
-
.pts-radioMultipleWithInfo-container label{
|
|
153
|
+
.pts-radioMultiple-container label {
|
|
156
154
|
position: relative;
|
|
157
155
|
flex: 1;
|
|
158
156
|
cursor: pointer;
|
|
159
157
|
}
|
|
160
158
|
|
|
161
|
-
|
|
162
|
-
/****RADIO MULTIPLE WITH INFO*/
|
|
163
|
-
.pts-radioMultipleWithInfo-container label{
|
|
164
|
-
padding-top: 2px;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.pts-radio-collapse {
|
|
168
|
-
position: relative;
|
|
169
|
-
width: 100%;
|
|
170
|
-
max-width: 62.4rem;
|
|
171
|
-
margin-bottom: 0.8rem;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.pts-radio-collapse-button-container {
|
|
175
|
-
background-color: var(--background);
|
|
176
|
-
color: var(--text);
|
|
177
|
-
cursor: pointer;
|
|
178
|
-
padding: 1.2rem 1.6rem;
|
|
179
|
-
border-radius: 8px;
|
|
180
|
-
outline: none;
|
|
181
|
-
display: grid;
|
|
182
|
-
text-align: left;
|
|
183
|
-
grid-template-columns: 5% 90% 5%;
|
|
184
|
-
align-items: center;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.pts-radio-collapse-button-container.open {
|
|
188
|
-
border-radius: 8px 8px 0 0;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.pts-radio-collapse-button-container input{
|
|
192
|
-
background-color: var(--main);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.pts-radio-collapse-button {
|
|
196
|
-
all:unset;
|
|
197
|
-
display: grid;
|
|
198
|
-
grid-template-columns: 95% 5%;
|
|
199
|
-
background-color: transparent;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
.pts-radio-collapse-button svg path{
|
|
204
|
-
fill: var(--text);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.pts-radio-collapse-body {
|
|
208
|
-
position: relative;
|
|
209
|
-
display: grid;
|
|
210
|
-
grid-template-rows: 0fr;
|
|
211
|
-
transition: grid-template-rows 0.3s ease;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
.pts-radio-collapse-body.open {
|
|
215
|
-
grid-template-rows: 1fr;
|
|
216
|
-
border: 2px solid var(--background);
|
|
217
|
-
border-top: none;
|
|
218
|
-
border-radius:0 0 8px 8px;
|
|
219
|
-
padding: 1.6rem;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
.pts-radio-collapse-content {
|
|
223
|
-
overflow: hidden;
|
|
224
|
-
|
|
225
|
-
}
|
|
226
|
-
|
|
227
159
|
/* ---------- SINGLE CHECKBOX ---------- */
|
|
228
160
|
|
|
229
161
|
.pts-singleCheckbox-row {
|
package/src/css/styles.css
CHANGED
|
@@ -1052,7 +1052,7 @@ input:focus-visible:-webkit-autofill {
|
|
|
1052
1052
|
}
|
|
1053
1053
|
.pts-alertInText-right {
|
|
1054
1054
|
display: flex;
|
|
1055
|
-
padding: 1.6rem;
|
|
1055
|
+
padding: 0 1.6rem;
|
|
1056
1056
|
justify-content: flex-start;
|
|
1057
1057
|
align-items: flex-start;
|
|
1058
1058
|
width: 100%;
|
|
@@ -1086,7 +1086,6 @@ input:focus-visible:-webkit-autofill {
|
|
|
1086
1086
|
border: 0;
|
|
1087
1087
|
}
|
|
1088
1088
|
|
|
1089
|
-
|
|
1090
1089
|
.hide-asterix .pts-root-mandatoryAsterisk {
|
|
1091
1090
|
display: none;
|
|
1092
1091
|
}
|