optimized-react-component-library-xyz123 2.8.13 → 2.8.14
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 +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +313 -238
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +313 -239
- 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 +44 -15
- package/src/css/styles.css +7 -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;
|
|
@@ -167,12 +166,12 @@ div.pts-root-question:last-child {
|
|
|
167
166
|
.pts-radioWithInfo-sub-headline {
|
|
168
167
|
margin-block-start: 3.6rem;
|
|
169
168
|
margin-block-end: 1.6rem;
|
|
170
|
-
font-size:
|
|
169
|
+
font-size: 18px;
|
|
171
170
|
font-weight: 700;
|
|
172
171
|
}
|
|
173
172
|
|
|
174
173
|
.pts-radioMultipleWithInfo2-container label {
|
|
175
|
-
padding-top:
|
|
174
|
+
padding-top: 2px;
|
|
176
175
|
}
|
|
177
176
|
|
|
178
177
|
.pts-radio-collapse {
|
|
@@ -193,11 +192,11 @@ div.pts-root-question:last-child {
|
|
|
193
192
|
display: grid;
|
|
194
193
|
text-align: left;
|
|
195
194
|
grid-template-columns: 5% 90% 5%;
|
|
196
|
-
align-items:
|
|
195
|
+
align-items: center;
|
|
197
196
|
}
|
|
198
197
|
|
|
199
198
|
.pts-radio-collapse-button-container.open {
|
|
200
|
-
border-radius:
|
|
199
|
+
border-radius: 8px 8px 0 0;
|
|
201
200
|
}
|
|
202
201
|
|
|
203
202
|
.pts-radio-collapse-button-container input {
|
|
@@ -235,6 +234,43 @@ div.pts-root-question:last-child {
|
|
|
235
234
|
overflow: hidden;
|
|
236
235
|
}
|
|
237
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
|
+
|
|
238
274
|
/* ---------- SINGLE CHECKBOX ---------- */
|
|
239
275
|
|
|
240
276
|
.pts-singleCheckbox-row {
|
|
@@ -273,13 +309,6 @@ div.pts-root-question:last-child {
|
|
|
273
309
|
margin-top: 0.2rem;
|
|
274
310
|
}
|
|
275
311
|
|
|
276
|
-
|
|
277
|
-
/*-------- INFO ONLY-------- */
|
|
278
|
-
.pts-root-question:has(.pts-textbody-createspace){
|
|
279
|
-
max-width: 100%;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
|
|
283
312
|
/*-------- CHECKBOX GROUP-------- */
|
|
284
313
|
|
|
285
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 {
|
|
@@ -1033,37 +1034,28 @@ input:focus-visible:-webkit-autofill {
|
|
|
1033
1034
|
transform: rotate(360deg);
|
|
1034
1035
|
}
|
|
1035
1036
|
}
|
|
1036
|
-
|
|
1037
1037
|
/* ---------- ALERT IN TEXT ---------- */
|
|
1038
|
-
|
|
1039
1038
|
.pts-alertInText-container {
|
|
1040
1039
|
display: flex;
|
|
1041
1040
|
width: 100%;
|
|
1042
1041
|
justify-content: flex-start;
|
|
1043
1042
|
}
|
|
1044
|
-
|
|
1045
1043
|
.pts-alertInText-left {
|
|
1046
1044
|
display: flex;
|
|
1047
1045
|
justify-content: flex-start;
|
|
1048
1046
|
align-items: flex-start;
|
|
1049
|
-
gap:
|
|
1047
|
+
gap: 10px;
|
|
1050
1048
|
align-self: stretch;
|
|
1051
1049
|
border-top-left-radius: 8px;
|
|
1052
1050
|
border-bottom-left-radius: 8px;
|
|
1053
1051
|
border: 1px solid var(--alertintext);
|
|
1054
1052
|
background-color: var(--alertintext);
|
|
1055
|
-
padding:
|
|
1056
|
-
padding-top:
|
|
1053
|
+
padding: 8px;
|
|
1054
|
+
padding-top: 16px;
|
|
1057
1055
|
}
|
|
1058
|
-
|
|
1059
|
-
.pts-alertInText-left svg {
|
|
1060
|
-
height: 1.6rem;
|
|
1061
|
-
width: 1.8rem;
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
1056
|
.pts-alertInText-right {
|
|
1065
1057
|
display: flex;
|
|
1066
|
-
padding:
|
|
1058
|
+
padding: 0 1.6rem;
|
|
1067
1059
|
justify-content: flex-start;
|
|
1068
1060
|
align-items: flex-start;
|
|
1069
1061
|
width: 100%;
|