optimized-react-component-library-xyz123 2.5.3 → 2.5.5
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 +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +802 -753
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +825 -777
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/darkMode.css +83 -80
- package/src/css/mobileView.css +9 -1
- package/src/css/questions.css +72 -4
- package/src/css/styles.css +2 -1
package/package.json
CHANGED
package/src/css/darkMode.css
CHANGED
|
@@ -8,8 +8,6 @@
|
|
|
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;
|
|
13
11
|
}
|
|
14
12
|
|
|
15
13
|
@media (prefers-color-scheme: dark) {
|
|
@@ -69,6 +67,7 @@
|
|
|
69
67
|
color: var(--dark-text);
|
|
70
68
|
}
|
|
71
69
|
|
|
70
|
+
|
|
72
71
|
/*--Navigation header / menu ----*/
|
|
73
72
|
|
|
74
73
|
.pts-navigation-header-container {
|
|
@@ -76,74 +75,81 @@
|
|
|
76
75
|
}
|
|
77
76
|
|
|
78
77
|
.pts-navigation-header-logo-container,
|
|
79
|
-
.pts-navigation-header-headline-container
|
|
80
|
-
border-color: var(--dark-background-third)
|
|
78
|
+
.pts-navigation-header-headline-container {
|
|
79
|
+
border-color: var(--dark-background-third)!important;
|
|
81
80
|
}
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
.pts-navigation-header-nav-container button svg path,
|
|
82
|
+
.pts-navigation-header-nav-container button svg line{
|
|
84
83
|
color: var(--dark-text);
|
|
85
84
|
fill: var(--dark-text);
|
|
86
85
|
stroke: var(--dark-text);
|
|
87
86
|
}
|
|
88
87
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
.pts-navigation-header-container svg path {
|
|
89
|
+
fill: var(--dark-text);
|
|
90
|
+
}
|
|
92
91
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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
98
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
.pts-expand-icon svg rect{
|
|
100
|
+
fill: var(--dark-action);
|
|
101
|
+
}
|
|
102
102
|
|
|
103
|
-
.pts-contract-icon svg rect {
|
|
104
|
-
fill: var(--dark-orientation-active);
|
|
105
|
-
}
|
|
106
103
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
104
|
+
.pts-contract-icon svg rect{
|
|
105
|
+
fill: var(--dark-orientation-active);
|
|
106
|
+
}
|
|
110
107
|
|
|
111
|
-
.pts-navigation-close-button {
|
|
112
|
-
background: var(--dark-main);
|
|
113
|
-
color: var(--dark-text);
|
|
114
|
-
}
|
|
115
108
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
109
|
+
.pts-navigation-close-text{
|
|
110
|
+
color: var(--dark-text);
|
|
111
|
+
}
|
|
119
112
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
113
|
+
.pts-navigation-close-button{
|
|
114
|
+
background: var(--dark-main);
|
|
115
|
+
color: var(--dark-text);
|
|
116
|
+
}
|
|
123
117
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
118
|
+
.pts-navigation-close-button svg path{
|
|
119
|
+
stroke: var(--dark-text);
|
|
120
|
+
}
|
|
127
121
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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
|
-
}
|
|
122
|
+
.pts-navigation-link-expand-button{
|
|
123
|
+
background-color: var(--dark-main);
|
|
124
|
+
}
|
|
139
125
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
126
|
+
.pts-navigation-link-expand-button svg path{
|
|
127
|
+
stroke: var(--dark-main)!important;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.pts-navigation-with-close-button,
|
|
131
|
+
.pts-navigation-menu-container,
|
|
132
|
+
.pts-navigation-button,
|
|
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
|
+
}
|
|
141
|
+
|
|
142
|
+
.pts-navigation-button a {
|
|
143
|
+
|
|
144
|
+
color: var(--dark-text);
|
|
145
|
+
|
|
146
|
+
}
|
|
143
147
|
|
|
144
|
-
|
|
148
|
+
.pts-sub-navigation-container {
|
|
145
149
|
border-left: var(--dark-action) 5px solid;
|
|
146
|
-
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
|
|
147
153
|
|
|
148
154
|
/*-------MAIN CONTENT-------*/
|
|
149
155
|
section,
|
|
@@ -165,6 +171,7 @@
|
|
|
165
171
|
.MoreInfoIcon svg {
|
|
166
172
|
background-color: var(--dark-action);
|
|
167
173
|
}
|
|
174
|
+
|
|
168
175
|
|
|
169
176
|
.pts-serviceHeadlineAndBody-container a svg path,
|
|
170
177
|
.MoreInfoIcon svg path {
|
|
@@ -310,6 +317,20 @@
|
|
|
310
317
|
background-color: var(--dark-action);
|
|
311
318
|
}
|
|
312
319
|
|
|
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
|
+
|
|
313
334
|
/* ---------- MULTIPLE CHECKBOXES ---------- */
|
|
314
335
|
|
|
315
336
|
.pts-multipleCheckboxes-container input[type='checkbox'] {
|
|
@@ -416,11 +437,11 @@
|
|
|
416
437
|
stroke: #000000;
|
|
417
438
|
}
|
|
418
439
|
|
|
419
|
-
|
|
420
|
-
|
|
440
|
+
/*---------- LINK STANDARD ------------*/
|
|
441
|
+
.pts-standard-link-icon svg {
|
|
421
442
|
background-color: var(--dark-action);
|
|
422
443
|
}
|
|
423
|
-
|
|
444
|
+
.pts-standard-link svg path{
|
|
424
445
|
fill: var(--dark-main);
|
|
425
446
|
color: #000000;
|
|
426
447
|
}
|
|
@@ -430,20 +451,20 @@
|
|
|
430
451
|
}
|
|
431
452
|
|
|
432
453
|
/*----------------- COLLAPSE -----------------*/
|
|
433
|
-
|
|
434
|
-
color:
|
|
454
|
+
.pts-collapse-content{
|
|
455
|
+
color:var(--dark-text);
|
|
435
456
|
}
|
|
436
457
|
|
|
437
458
|
.pts-collapse-button {
|
|
438
459
|
background-color: var(--dark-action);
|
|
439
|
-
color:
|
|
460
|
+
color:var(--dark-main);
|
|
440
461
|
}
|
|
441
462
|
|
|
442
|
-
.pts-open-close-icon svg path
|
|
463
|
+
.pts-open-close-icon svg path{
|
|
443
464
|
fill: var(--dark-main);
|
|
444
465
|
}
|
|
445
466
|
|
|
446
|
-
|
|
467
|
+
.pts-collapse-body.open{
|
|
447
468
|
border-color: var(--dark-info);
|
|
448
469
|
background: var(--dark-main);
|
|
449
470
|
}
|
|
@@ -496,26 +517,6 @@
|
|
|
496
517
|
background-color: rgba(255, 255, 255, 0.5);
|
|
497
518
|
}
|
|
498
519
|
|
|
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
|
-
|
|
519
520
|
/*-------------Autofill-----------*/
|
|
520
521
|
input:autofill,
|
|
521
522
|
input:autofill:hover,
|
|
@@ -533,4 +534,6 @@
|
|
|
533
534
|
input:-moz-autofill {
|
|
534
535
|
box-shadow: 0 0 0 1000px transparent inset !important;
|
|
535
536
|
}
|
|
537
|
+
|
|
538
|
+
|
|
536
539
|
}
|
package/src/css/mobileView.css
CHANGED
|
@@ -261,12 +261,20 @@
|
|
|
261
261
|
margin-right: 1.6rem;
|
|
262
262
|
margin-top: 1.6rem;
|
|
263
263
|
}
|
|
264
|
-
|
|
264
|
+
/*****Questions*******/
|
|
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
|
+
|
|
270
278
|
.inputContainer {
|
|
271
279
|
margin-bottom: 1.6rem;
|
|
272
280
|
}
|
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
|
+
.pts-radioMultiple-container input[type='radio'],
|
|
128
|
+
.pts-radioMultipleWithInfo-container input[type='radio'] {
|
|
129
129
|
appearance: none;
|
|
130
130
|
width: 1.8rem;
|
|
131
131
|
height: 1.8rem;
|
|
@@ -138,7 +138,8 @@ div.pts-root-question:last-child {
|
|
|
138
138
|
cursor: pointer;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
.pts-radioMultiple-container input[type='radio']:checked::before
|
|
141
|
+
.pts-radioMultiple-container input[type='radio']:checked::before,
|
|
142
|
+
.pts-radioMultipleWithInfo-container input[type='radio']:checked::before {
|
|
142
143
|
content: '';
|
|
143
144
|
position: absolute;
|
|
144
145
|
top: 50%;
|
|
@@ -150,12 +151,79 @@ div.pts-root-question:last-child {
|
|
|
150
151
|
background-color: var(--action);
|
|
151
152
|
}
|
|
152
153
|
|
|
153
|
-
.pts-radioMultiple-container label
|
|
154
|
+
.pts-radioMultiple-container label,
|
|
155
|
+
.pts-radioMultipleWithInfo-container label{
|
|
154
156
|
position: relative;
|
|
155
157
|
flex: 1;
|
|
156
158
|
cursor: pointer;
|
|
157
159
|
}
|
|
158
160
|
|
|
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
|
+
|
|
159
227
|
/* ---------- SINGLE CHECKBOX ---------- */
|
|
160
228
|
|
|
161
229
|
.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:
|
|
1055
|
+
padding: 1.6rem;
|
|
1056
1056
|
justify-content: flex-start;
|
|
1057
1057
|
align-items: flex-start;
|
|
1058
1058
|
width: 100%;
|
|
@@ -1086,6 +1086,7 @@ input:focus-visible:-webkit-autofill {
|
|
|
1086
1086
|
border: 0;
|
|
1087
1087
|
}
|
|
1088
1088
|
|
|
1089
|
+
|
|
1089
1090
|
.hide-asterix .pts-root-mandatoryAsterisk {
|
|
1090
1091
|
display: none;
|
|
1091
1092
|
}
|