optimized-react-component-library-xyz123 2.9.6 → 2.10.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "optimized-react-component-library-xyz123",
3
- "version": "2.9.6",
3
+ "version": "2.10.1",
4
4
  "description": "A modern React component library using TypeScript with React 19 support.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -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;
@@ -453,7 +463,8 @@
453
463
  color: var(--dark-main);
454
464
  }
455
465
 
456
- .pts-open-close-icon svg path {
466
+ .pts-open-close-icon svg path,
467
+ .pts-collapse-open-close-icon svg path{
457
468
  fill: var(--dark-main);
458
469
  }
459
470
 
@@ -506,7 +517,7 @@
506
517
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='94' height='94' viewBox='0 0 94 94' fill='none'%3e%3cpath d='M47 11.75C66.4682 11.75 82.25 27.532 82.25 47C82.25 66.4682 66.4682 82.25 47 82.25C27.532 82.25 11.75 66.4682 11.75 47C11.75 27.532 27.532 11.75 47 11.75Z' stroke='%23B07CBF' stroke-opacity='0.25' stroke-width='7.83333' stroke-linecap='round'/%3e%3cpath d='M47 11.75C66.4682 11.75 82.25 27.532 82.25 47' stroke='%23B07CBF' stroke-width='7.83333' stroke-linecap='round'/%3e%3c/svg%3e");
507
518
  }
508
519
 
509
- .pts-modal-overlay {
520
+ .pts-modal-overlay, .pts-navigation-overlay {
510
521
  background-color: rgba(255, 255, 255, 0.5);
511
522
  }
512
523
 
@@ -517,20 +528,17 @@
517
528
  background-color: var(--dark-alertintext);
518
529
  }
519
530
  .pts-alertInText-left svg circle {
520
- fill: var(--dark-main);
531
+ fill: var(--dark-background);
521
532
  }
522
-
523
533
  .pts-alertInText-left svg rect {
524
534
  fill: var(--dark-alertintext);
525
535
  }
526
-
527
536
  .pts-alertInText-left svg .pts-alertInText-icon-dot-over-i {
528
537
  fill: var(--dark-alertintext);
529
538
  }
530
-
531
539
  .pts-alertInText-right {
532
540
  border: 1px solid var(--dark-alertintext);
533
- color: var(--dark-text);
541
+ color: var(--dark-alertintext-text);
534
542
  }
535
543
 
536
544
  /*-------------Autofill-----------*/
@@ -58,7 +58,8 @@ h2:focus:focus-visible,
58
58
  }
59
59
 
60
60
  h1,
61
- h2 {
61
+ h2,
62
+ h3 {
62
63
  margin: 0;
63
64
  margin-bottom: 3.6rem;
64
65
  }
@@ -74,7 +75,6 @@ h2 {
74
75
 
75
76
  h3 {
76
77
  font-size: 1.6rem;
77
- margin-bottom: 1.6rem;
78
78
  }
79
79
 
80
80
  h4 {
@@ -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: 1.6rem;
169
+ font-size: 18px;
181
170
  font-weight: 700;
182
171
  }
183
172
 
184
173
  .pts-radioMultipleWithInfo2-container label {
185
- padding-top: 0.2rem;
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: flex-start;
195
+ align-items: center;
207
196
  }
208
197
 
209
198
  .pts-radio-collapse-button-container.open {
210
- border-radius: 0.8rem 0.8rem 0 0;
199
+ border-radius: 8px 8px 0 0;
211
200
  }
212
201
 
213
202
  .pts-radio-collapse-button-container input {
@@ -245,6 +234,42 @@ 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
+
248
273
  /* ---------- SINGLE CHECKBOX ---------- */
249
274
 
250
275
  .pts-singleCheckbox-row {
@@ -283,13 +308,6 @@ div.pts-root-question:last-child {
283
308
  margin-top: 0.2rem;
284
309
  }
285
310
 
286
-
287
- /*-------- INFO ONLY-------- */
288
- .pts-root-question:has(.pts-textbody-createspace){
289
- max-width: 100%;
290
- }
291
-
292
-
293
311
  /*-------- CHECKBOX GROUP-------- */
294
312
 
295
313
  .pts-checkboxGroup-options {
@@ -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,
@@ -351,7 +354,7 @@ input:focus-visible:-webkit-autofill {
351
354
  transform: translateX(100%);
352
355
  transition:
353
356
  transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
354
- opacity 1s;
357
+ opacity 0.1s;
355
358
  }
356
359
 
357
360
  .pts-navigation-menu-container.open {
@@ -384,6 +387,7 @@ input:focus-visible:-webkit-autofill {
384
387
  }
385
388
 
386
389
  .pts-navigation-link-expand-button {
390
+ all:unset;
387
391
  border: none;
388
392
  padding: 0;
389
393
  cursor: pointer;
@@ -523,7 +527,6 @@ input:focus-visible:-webkit-autofill {
523
527
  flex-shrink: 0;
524
528
  margin-right: 1.6rem;
525
529
  }
526
-
527
530
  .pts-textbody-alerttext {
528
531
  margin-top: 0;
529
532
  }
@@ -531,7 +534,6 @@ input:focus-visible:-webkit-autofill {
531
534
  margin-bottom: 3.6rem;
532
535
  }
533
536
 
534
-
535
537
  /* ---------- TEXT HEADLINE AND BODY ---------- */
536
538
 
537
539
  .pts-textHeadlineAndBody-container .notFirstInList {
@@ -546,6 +548,12 @@ input:focus-visible:-webkit-autofill {
546
548
  margin-top: 1.6rem;
547
549
  }
548
550
 
551
+ /* ---------- OptionTextBody ---------- */
552
+
553
+ .pts-optionTextBody-container{
554
+ margin-top: 1.6rem;
555
+ }
556
+
549
557
  /* ---------- STEPPER ---------- */
550
558
 
551
559
  .pts-stepper-container {
@@ -660,13 +668,23 @@ input:focus-visible:-webkit-autofill {
660
668
  font-size: 1.6rem;
661
669
  }
662
670
 
663
- .pts-collapse-button.open {
671
+ .pts-collapse-open-close-icon.open {
664
672
  border-radius: 8px 8px 0 0;
665
673
  }
666
674
 
675
+ .pts-collapse-open-close-icon svg{
676
+ width: 2.4rem;
677
+ height: 2.4rem;
678
+ position: relative;
679
+ top: 3px;
680
+ }
681
+
682
+
667
683
  .pts-collapse-button .pts-open-close-icon svg {
668
684
  width: 2.4rem;
669
685
  height: 2.4rem;
686
+ position: relative;
687
+ top: 3px;
670
688
  }
671
689
 
672
690
  .pts-collapse-body {
@@ -682,6 +700,7 @@ input:focus-visible:-webkit-autofill {
682
700
  border: 2px solid var(--background);
683
701
  border-top: none;
684
702
  border-radius: 0 0 8px 8px;
703
+ margin-top: -5px;
685
704
  }
686
705
 
687
706
  .pts-collapse-content {
@@ -729,10 +748,14 @@ input:focus-visible:-webkit-autofill {
729
748
  padding: 0;
730
749
  }
731
750
  .pts-linkList-container li {
732
- padding: 6px;
751
+ padding-bottom: 16px;
733
752
  list-style: none;
734
753
  }
735
754
 
755
+ .pts-linkList-container li:last-child{
756
+ padding-bottom:0 ;
757
+ }
758
+
736
759
  /* ---------- GRANSKA-Sidan ---------- */
737
760
  .pts-editPreviewLink-container {
738
761
  display: flex;
@@ -1033,37 +1056,28 @@ input:focus-visible:-webkit-autofill {
1033
1056
  transform: rotate(360deg);
1034
1057
  }
1035
1058
  }
1036
-
1037
1059
  /* ---------- ALERT IN TEXT ---------- */
1038
-
1039
1060
  .pts-alertInText-container {
1040
1061
  display: flex;
1041
1062
  width: 100%;
1042
1063
  justify-content: flex-start;
1043
1064
  }
1044
-
1045
1065
  .pts-alertInText-left {
1046
1066
  display: flex;
1047
1067
  justify-content: flex-start;
1048
1068
  align-items: flex-start;
1049
- gap: 10rem;
1069
+ gap: 10px;
1050
1070
  align-self: stretch;
1051
1071
  border-top-left-radius: 8px;
1052
1072
  border-bottom-left-radius: 8px;
1053
1073
  border: 1px solid var(--alertintext);
1054
1074
  background-color: var(--alertintext);
1055
- padding: 0.8rem;
1056
- padding-top: 1.2rem;
1075
+ padding: 8px;
1076
+ padding-top: 16px;
1057
1077
  }
1058
-
1059
- .pts-alertInText-left svg {
1060
- height: 1.6rem;
1061
- width: 1.8rem;
1062
- }
1063
-
1064
1078
  .pts-alertInText-right {
1065
1079
  display: flex;
1066
- padding: 1.6rem 1.6rem 0 1.6rem;
1080
+ padding: 0 1.6rem;
1067
1081
  justify-content: flex-start;
1068
1082
  align-items: flex-start;
1069
1083
  width: 100%;