optimized-react-component-library-xyz123 0.12.3 → 0.13.2
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 +399 -287
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +399 -288
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/darkMode.css +0 -8
- package/src/css/mobileView.css +3 -40
- package/src/css/questions.css +56 -8
- package/src/css/styles.css +2 -21
package/package.json
CHANGED
package/src/css/darkMode.css
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
--dark-info: #808080;
|
|
8
8
|
--dark-orientation-active:#F4BF56;
|
|
9
9
|
--dark-background-second:#200827;
|
|
10
|
-
--dark-background-third:#747474;
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
@media (prefers-color-scheme: dark) {
|
|
@@ -338,13 +337,6 @@
|
|
|
338
337
|
.errorSummary-text {
|
|
339
338
|
color: var(--dark-error) !important;
|
|
340
339
|
}
|
|
341
|
-
|
|
342
|
-
/*--------------------FOOTER-----------------*/
|
|
343
|
-
|
|
344
|
-
.pts-footer-slogan-text-container{
|
|
345
|
-
background-color: var(--dark-background-third);
|
|
346
|
-
}
|
|
347
|
-
|
|
348
340
|
|
|
349
341
|
/*-------------MODAL-----------*/
|
|
350
342
|
.pts-modal-content{
|
package/src/css/mobileView.css
CHANGED
|
@@ -44,11 +44,6 @@
|
|
|
44
44
|
margin: 0;
|
|
45
45
|
padding: 0;
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
.pts-footer-slogan-text {
|
|
49
|
-
font-size: 16px;
|
|
50
|
-
text-align: center;
|
|
51
|
-
}
|
|
52
47
|
}
|
|
53
48
|
|
|
54
49
|
/********************************************/
|
|
@@ -230,15 +225,6 @@
|
|
|
230
225
|
padding-bottom: 4px;
|
|
231
226
|
}
|
|
232
227
|
|
|
233
|
-
.pts-footer-slogan-text-container{
|
|
234
|
-
padding: 2.4rem 1.6rem;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.pts-footer-slogan-text{
|
|
238
|
-
line-height: 2rem;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
|
|
242
228
|
.pts-footer-logo {
|
|
243
229
|
position: static;
|
|
244
230
|
padding-left: 0;
|
|
@@ -311,37 +297,14 @@
|
|
|
311
297
|
}
|
|
312
298
|
}
|
|
313
299
|
|
|
314
|
-
|
|
315
|
-
/********************************************/
|
|
316
|
-
/***************WIDTH: 750 ******************/
|
|
317
|
-
/********************************************/
|
|
318
|
-
@media (max-width: 750px) {
|
|
319
|
-
body .pts-stepper-step:not(:last-child)::after {
|
|
320
|
-
left: calc(50% + 3rem);
|
|
321
|
-
width: calc(33.33vw - 13rem);
|
|
322
|
-
right: auto;
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
/********************************************/
|
|
327
|
-
/***************WIDTH: 550 ******************/
|
|
328
|
-
/********************************************/
|
|
329
|
-
@media (max-width: 550px) {
|
|
330
|
-
body .pts-stepper-step:not(:last-child)::after {
|
|
331
|
-
left: calc(50% + 3rem);
|
|
332
|
-
width: calc(33.33vw - 11rem);
|
|
333
|
-
right: auto;
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
|
|
337
300
|
/********************************************/
|
|
338
301
|
/***************WIDTH: 480 ******************/
|
|
339
302
|
/********************************************/
|
|
340
303
|
@media (max-width: 480px) {
|
|
341
304
|
.pts-stepper-step:not(:last-child)::after {
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
305
|
+
left: calc(50% + 2rem) !important;
|
|
306
|
+
width: calc(33.33vw - 7.7rem) !important;
|
|
307
|
+
right: auto !important;
|
|
345
308
|
}
|
|
346
309
|
|
|
347
310
|
.files-upload {
|
package/src/css/questions.css
CHANGED
|
@@ -142,6 +142,56 @@ div.pts-root-question:last-child {
|
|
|
142
142
|
cursor: pointer;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
+
/* ---------- DROPDOWN ---------- */
|
|
146
|
+
|
|
147
|
+
/* För inspiration */
|
|
148
|
+
|
|
149
|
+
.pts-dropdown-container {
|
|
150
|
+
margin-bottom: 1.5rem;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.pts-dropdown-container label {
|
|
154
|
+
display: block;
|
|
155
|
+
margin-bottom: 0.5rem;
|
|
156
|
+
font-weight: 500;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.pts-dropdown-container select {
|
|
160
|
+
display: block;
|
|
161
|
+
width: 100%;
|
|
162
|
+
padding-right: 2.4em;
|
|
163
|
+
padding-left: 0.6em;
|
|
164
|
+
|
|
165
|
+
border: #747474 1px solid;
|
|
166
|
+
box-shadow: none;
|
|
167
|
+
margin: 0;
|
|
168
|
+
height: 42px;
|
|
169
|
+
|
|
170
|
+
word-wrap: normal;
|
|
171
|
+
|
|
172
|
+
text-transform: none;
|
|
173
|
+
|
|
174
|
+
cursor: pointer;
|
|
175
|
+
|
|
176
|
+
border-radius: 6px;
|
|
177
|
+
|
|
178
|
+
font-family: Arial;
|
|
179
|
+
font-size: 16px;
|
|
180
|
+
|
|
181
|
+
background-image: url(https://dsa.pts.se/images/arrow.svg);
|
|
182
|
+
background-repeat: no-repeat;
|
|
183
|
+
background-position: right 14px center;
|
|
184
|
+
background-size: 1em;
|
|
185
|
+
|
|
186
|
+
-webkit-appearance: none;
|
|
187
|
+
-moz-appearance: none;
|
|
188
|
+
appearance: none;
|
|
189
|
+
|
|
190
|
+
transition:
|
|
191
|
+
border-color 0.15s ease-in-out,
|
|
192
|
+
box-shadow 0.15s ease-in-out;
|
|
193
|
+
}
|
|
194
|
+
|
|
145
195
|
/* ---------- SINGLE CHECKBOX ---------- */
|
|
146
196
|
|
|
147
197
|
.pts-singleCheckbox-row {
|
|
@@ -179,14 +229,13 @@ div.pts-root-question:last-child {
|
|
|
179
229
|
margin-top: 0.2rem;
|
|
180
230
|
}
|
|
181
231
|
|
|
182
|
-
|
|
183
232
|
/*-------- CHECKBOX GROUP-------- */
|
|
184
233
|
|
|
185
|
-
.pts-checkboxGroup-options{
|
|
234
|
+
.pts-checkboxGroup-options {
|
|
186
235
|
display: flex;
|
|
187
236
|
}
|
|
188
237
|
|
|
189
|
-
.pts-checkboxGroup-container input[type='checkbox']{
|
|
238
|
+
.pts-checkboxGroup-container input[type='checkbox'] {
|
|
190
239
|
appearance: none;
|
|
191
240
|
width: 1.8rem;
|
|
192
241
|
height: 1.8rem;
|
|
@@ -204,7 +253,7 @@ div.pts-root-question:last-child {
|
|
|
204
253
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
|
|
205
254
|
}
|
|
206
255
|
|
|
207
|
-
.pts-checkboxGroup-container label{
|
|
256
|
+
.pts-checkboxGroup-container label {
|
|
208
257
|
padding-top: 0.3rem;
|
|
209
258
|
line-height: 20px;
|
|
210
259
|
cursor: pointer;
|
|
@@ -213,7 +262,7 @@ div.pts-root-question:last-child {
|
|
|
213
262
|
|
|
214
263
|
/* ---------- MULTIPLE CHECKBOXES ---------- */
|
|
215
264
|
|
|
216
|
-
.pts-multipleCheckboxes-container input[type='checkbox']{
|
|
265
|
+
.pts-multipleCheckboxes-container input[type='checkbox'] {
|
|
217
266
|
appearance: none;
|
|
218
267
|
width: 1.8rem;
|
|
219
268
|
height: 1.8rem;
|
|
@@ -231,7 +280,7 @@ div.pts-root-question:last-child {
|
|
|
231
280
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
|
|
232
281
|
}
|
|
233
282
|
|
|
234
|
-
.pts-multipleCheckboxes-container label{
|
|
283
|
+
.pts-multipleCheckboxes-container label {
|
|
235
284
|
cursor: pointer;
|
|
236
285
|
margin: 0;
|
|
237
286
|
padding-top: 0.1rem;
|
|
@@ -250,12 +299,11 @@ div.pts-root-question:last-child {
|
|
|
250
299
|
cursor: pointer;
|
|
251
300
|
}
|
|
252
301
|
|
|
253
|
-
.pts-multipleCheckboxes-container li label{
|
|
302
|
+
.pts-multipleCheckboxes-container li label {
|
|
254
303
|
flex: 1;
|
|
255
304
|
margin-top: 0.2rem;
|
|
256
305
|
}
|
|
257
306
|
|
|
258
|
-
|
|
259
307
|
/* ---------- TEXTFIELD / TEXTAREA ABOUT ---------- */
|
|
260
308
|
|
|
261
309
|
.pts-textField-container {
|
package/src/css/styles.css
CHANGED
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
--info: #545454;
|
|
12
12
|
--orientation-active: #dc7d0a;
|
|
13
13
|
--background-second: #200827;
|
|
14
|
-
--background-third: #414141;
|
|
15
14
|
}
|
|
16
15
|
|
|
17
16
|
body,
|
|
@@ -651,35 +650,17 @@ textarea:focus-visible,
|
|
|
651
650
|
/* ---------- FOOTER ---------- */
|
|
652
651
|
|
|
653
652
|
.pts-footer-container {
|
|
653
|
+
display: flex;
|
|
654
|
+
min-height: 14rem;
|
|
654
655
|
align-items: center;
|
|
655
656
|
width: 100%;
|
|
656
657
|
background-color: var(--background-second);
|
|
657
658
|
}
|
|
658
659
|
|
|
659
|
-
.pts-footer-slogan-text-container{
|
|
660
|
-
display: flex;
|
|
661
|
-
align-items: center;
|
|
662
|
-
justify-content: center;
|
|
663
|
-
background-color: var(--background-third);
|
|
664
|
-
height: 50px;
|
|
665
|
-
padding: 0px;
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
.pts-footer-slogan-text{
|
|
669
|
-
color: var(--main);
|
|
670
|
-
line-height: 2.4rem;
|
|
671
|
-
font-size: 2rem;
|
|
672
|
-
text-box-trim: trim-both;
|
|
673
|
-
margin: 0;
|
|
674
|
-
|
|
675
|
-
}
|
|
676
|
-
|
|
677
660
|
.pts-footer-content{
|
|
678
661
|
display: flex;
|
|
679
662
|
align-items: center;
|
|
680
663
|
width: 100%;
|
|
681
|
-
min-height: 14rem;
|
|
682
|
-
padding: 0.1rem 0;
|
|
683
664
|
}
|
|
684
665
|
|
|
685
666
|
.pts-footer-logo {
|