optimized-react-component-library-xyz123 2.8.18 → 2.8.20
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 +21 -1
- package/dist/index.d.ts +21 -1
- package/dist/index.js +386 -253
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +385 -254
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/darkMode.css +11 -4
- package/src/css/e-tjanst-root.css +2 -2
- package/src/css/questions.css +45 -26
- package/src/css/styles.css +13 -15
package/package.json
CHANGED
package/src/css/darkMode.css
CHANGED
|
@@ -372,6 +372,16 @@
|
|
|
372
372
|
color: var(--dark-info);
|
|
373
373
|
}
|
|
374
374
|
|
|
375
|
+
|
|
376
|
+
/* ---------- DROPDOWN ---------- */
|
|
377
|
+
.pts-dropdown-container select {
|
|
378
|
+
border-color: var(--dark-info);
|
|
379
|
+
background-color: var(--dark-main);
|
|
380
|
+
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");
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
|
|
375
385
|
/* ---------- ADD FILE QUESTION ---------- */
|
|
376
386
|
.filePickText {
|
|
377
387
|
color: var(--dark-text) !important;
|
|
@@ -517,17 +527,14 @@
|
|
|
517
527
|
background-color: var(--dark-alertintext);
|
|
518
528
|
}
|
|
519
529
|
.pts-alertInText-left svg circle {
|
|
520
|
-
fill: var(--dark-
|
|
530
|
+
fill: var(--dark-background);
|
|
521
531
|
}
|
|
522
|
-
|
|
523
532
|
.pts-alertInText-left svg rect {
|
|
524
533
|
fill: var(--dark-alertintext);
|
|
525
534
|
}
|
|
526
|
-
|
|
527
535
|
.pts-alertInText-left svg .pts-alertInText-icon-dot-over-i {
|
|
528
536
|
fill: var(--dark-alertintext);
|
|
529
537
|
}
|
|
530
|
-
|
|
531
538
|
.pts-alertInText-right {
|
|
532
539
|
border: 1px solid var(--dark-alertintext);
|
|
533
540
|
color: var(--dark-alertintext-text);
|
package/src/css/questions.css
CHANGED
|
@@ -57,6 +57,7 @@ div.pts-root-question:last-child {
|
|
|
57
57
|
margin-bottom: 0.4rem;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
.pts-root-question select,
|
|
60
61
|
.pts-root-question input[type='text']:focus,
|
|
61
62
|
.pts-root-question input[type='email']:focus,
|
|
62
63
|
.pts-root-question input[type='tel']:focus {
|
|
@@ -111,6 +112,8 @@ div.pts-root-question:last-child {
|
|
|
111
112
|
margin: 0;
|
|
112
113
|
}
|
|
113
114
|
|
|
115
|
+
|
|
116
|
+
.pts-root-question select,
|
|
114
117
|
.pts-root-question input[type='text'],
|
|
115
118
|
.pts-root-question input[type='email'],
|
|
116
119
|
.pts-root-question input[type='tel'] {
|
|
@@ -151,10 +154,6 @@ div.pts-root-question:last-child {
|
|
|
151
154
|
background-color: var(--action);
|
|
152
155
|
}
|
|
153
156
|
|
|
154
|
-
.pts-radioMultipleWithInfo2-container input[type='radio'] {
|
|
155
|
-
margin: auto;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
157
|
.pts-radioMultiple-container label,
|
|
159
158
|
.pts-radioMultipleWithInfo2-container label {
|
|
160
159
|
position: relative;
|
|
@@ -164,25 +163,15 @@ div.pts-root-question:last-child {
|
|
|
164
163
|
|
|
165
164
|
/****RADIO MULTIPLE WITH INFO*/
|
|
166
165
|
|
|
167
|
-
.pts-radioMultipleWithInfo2-container legend {
|
|
168
|
-
margin-bottom: 16px;
|
|
169
|
-
font-weight: 600;
|
|
170
|
-
margin-top: 10px;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.pts-radioMultipleWithInfo2-container p {
|
|
174
|
-
margin-bottom: 0px;
|
|
175
|
-
margin-top: 16px;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
166
|
.pts-radioWithInfo-sub-headline {
|
|
167
|
+
margin-block-start: 3.6rem;
|
|
179
168
|
margin-block-end: 1.6rem;
|
|
180
|
-
font-size:
|
|
169
|
+
font-size: 18px;
|
|
181
170
|
font-weight: 700;
|
|
182
171
|
}
|
|
183
172
|
|
|
184
173
|
.pts-radioMultipleWithInfo2-container label {
|
|
185
|
-
padding-top:
|
|
174
|
+
padding-top: 2px;
|
|
186
175
|
}
|
|
187
176
|
|
|
188
177
|
.pts-radio-collapse {
|
|
@@ -203,11 +192,11 @@ div.pts-root-question:last-child {
|
|
|
203
192
|
display: grid;
|
|
204
193
|
text-align: left;
|
|
205
194
|
grid-template-columns: 5% 90% 5%;
|
|
206
|
-
align-items:
|
|
195
|
+
align-items: center;
|
|
207
196
|
}
|
|
208
197
|
|
|
209
198
|
.pts-radio-collapse-button-container.open {
|
|
210
|
-
border-radius:
|
|
199
|
+
border-radius: 8px 8px 0 0;
|
|
211
200
|
}
|
|
212
201
|
|
|
213
202
|
.pts-radio-collapse-button-container input {
|
|
@@ -245,6 +234,43 @@ div.pts-root-question:last-child {
|
|
|
245
234
|
overflow: hidden;
|
|
246
235
|
}
|
|
247
236
|
|
|
237
|
+
/* ---------- DROPDOWN ---------- */
|
|
238
|
+
|
|
239
|
+
/* För inspiration */
|
|
240
|
+
|
|
241
|
+
.pts-dropdown-container {
|
|
242
|
+
margin-bottom: 1.5rem;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.pts-dropdown-container label {
|
|
246
|
+
display: block;
|
|
247
|
+
margin-bottom: 0.5rem;
|
|
248
|
+
font-weight: 500;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.pts-dropdown-container select {
|
|
252
|
+
cursor: pointer;
|
|
253
|
+
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='%23141414'/%3E%3C/svg%3E");
|
|
254
|
+
background-repeat: no-repeat;
|
|
255
|
+
background-position: right 14px center;
|
|
256
|
+
background-size: 2.4rem;;
|
|
257
|
+
|
|
258
|
+
-webkit-appearance: none;
|
|
259
|
+
-moz-appearance: none;
|
|
260
|
+
appearance: none;
|
|
261
|
+
|
|
262
|
+
transition:
|
|
263
|
+
border-color 0.15s ease-in-out,
|
|
264
|
+
box-shadow 0.15s ease-in-out;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.pts-dropdown-container select:focus {
|
|
268
|
+
outline: none;
|
|
269
|
+
border-width: 2px;
|
|
270
|
+
border-color: var(--action);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
|
|
248
274
|
/* ---------- SINGLE CHECKBOX ---------- */
|
|
249
275
|
|
|
250
276
|
.pts-singleCheckbox-row {
|
|
@@ -283,13 +309,6 @@ div.pts-root-question:last-child {
|
|
|
283
309
|
margin-top: 0.2rem;
|
|
284
310
|
}
|
|
285
311
|
|
|
286
|
-
|
|
287
|
-
/*-------- INFO ONLY-------- */
|
|
288
|
-
.pts-root-question:has(.pts-textbody-createspace){
|
|
289
|
-
max-width: 100%;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
|
|
293
312
|
/*-------- CHECKBOX GROUP-------- */
|
|
294
313
|
|
|
295
314
|
.pts-checkboxGroup-options {
|
package/src/css/styles.css
CHANGED
|
@@ -64,6 +64,8 @@
|
|
|
64
64
|
border: 0;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
|
|
68
|
+
select:focus-visible,
|
|
67
69
|
button:focus-visible,
|
|
68
70
|
a:focus-visible,
|
|
69
71
|
input:focus-visible,
|
|
@@ -102,6 +104,7 @@ input:focus-visible:-webkit-autofill {
|
|
|
102
104
|
0 0 0 4px #000 !important;
|
|
103
105
|
}
|
|
104
106
|
|
|
107
|
+
.using-mouse select:focus-visible,
|
|
105
108
|
.using-mouse input:focus-visible,
|
|
106
109
|
.using-mouse button:focus-visible,
|
|
107
110
|
.using-mouse textarea:focus-visible,
|
|
@@ -523,7 +526,6 @@ input:focus-visible:-webkit-autofill {
|
|
|
523
526
|
flex-shrink: 0;
|
|
524
527
|
margin-right: 1.6rem;
|
|
525
528
|
}
|
|
526
|
-
|
|
527
529
|
.pts-textbody-alerttext {
|
|
528
530
|
margin-top: 0;
|
|
529
531
|
}
|
|
@@ -531,7 +533,6 @@ input:focus-visible:-webkit-autofill {
|
|
|
531
533
|
margin-bottom: 3.6rem;
|
|
532
534
|
}
|
|
533
535
|
|
|
534
|
-
|
|
535
536
|
/* ---------- TEXT HEADLINE AND BODY ---------- */
|
|
536
537
|
|
|
537
538
|
.pts-textHeadlineAndBody-container .notFirstInList {
|
|
@@ -546,6 +547,12 @@ input:focus-visible:-webkit-autofill {
|
|
|
546
547
|
margin-top: 1.6rem;
|
|
547
548
|
}
|
|
548
549
|
|
|
550
|
+
/* ---------- OptionTextBody ---------- */
|
|
551
|
+
|
|
552
|
+
.pts-optionTextBody-container{
|
|
553
|
+
margin-top: 1.6rem;
|
|
554
|
+
}
|
|
555
|
+
|
|
549
556
|
/* ---------- STEPPER ---------- */
|
|
550
557
|
|
|
551
558
|
.pts-stepper-container {
|
|
@@ -1033,37 +1040,28 @@ input:focus-visible:-webkit-autofill {
|
|
|
1033
1040
|
transform: rotate(360deg);
|
|
1034
1041
|
}
|
|
1035
1042
|
}
|
|
1036
|
-
|
|
1037
1043
|
/* ---------- ALERT IN TEXT ---------- */
|
|
1038
|
-
|
|
1039
1044
|
.pts-alertInText-container {
|
|
1040
1045
|
display: flex;
|
|
1041
1046
|
width: 100%;
|
|
1042
1047
|
justify-content: flex-start;
|
|
1043
1048
|
}
|
|
1044
|
-
|
|
1045
1049
|
.pts-alertInText-left {
|
|
1046
1050
|
display: flex;
|
|
1047
1051
|
justify-content: flex-start;
|
|
1048
1052
|
align-items: flex-start;
|
|
1049
|
-
gap:
|
|
1053
|
+
gap: 10px;
|
|
1050
1054
|
align-self: stretch;
|
|
1051
1055
|
border-top-left-radius: 8px;
|
|
1052
1056
|
border-bottom-left-radius: 8px;
|
|
1053
1057
|
border: 1px solid var(--alertintext);
|
|
1054
1058
|
background-color: var(--alertintext);
|
|
1055
|
-
padding:
|
|
1056
|
-
padding-top:
|
|
1059
|
+
padding: 8px;
|
|
1060
|
+
padding-top: 16px;
|
|
1057
1061
|
}
|
|
1058
|
-
|
|
1059
|
-
.pts-alertInText-left svg {
|
|
1060
|
-
height: 1.6rem;
|
|
1061
|
-
width: 1.8rem;
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
1062
|
.pts-alertInText-right {
|
|
1065
1063
|
display: flex;
|
|
1066
|
-
padding:
|
|
1064
|
+
padding: 0 1.6rem;
|
|
1067
1065
|
justify-content: flex-start;
|
|
1068
1066
|
align-items: flex-start;
|
|
1069
1067
|
width: 100%;
|