optimized-react-component-library-xyz123 2.8.21 → 2.9.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.8.21",
3
+ "version": "2.9.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,16 +372,6 @@
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
-
385
375
  /* ---------- ADD FILE QUESTION ---------- */
386
376
  .filePickText {
387
377
  color: var(--dark-text) !important;
@@ -463,7 +453,8 @@
463
453
  color: var(--dark-main);
464
454
  }
465
455
 
466
- .pts-open-close-icon svg path {
456
+ .pts-open-close-icon svg path,
457
+ .pts-collapse-open-close-icon svg path{
467
458
  fill: var(--dark-main);
468
459
  }
469
460
 
@@ -516,7 +507,7 @@
516
507
  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");
517
508
  }
518
509
 
519
- .pts-modal-overlay {
510
+ .pts-modal-overlay, .pts-navigation-overlay {
520
511
  background-color: rgba(255, 255, 255, 0.5);
521
512
  }
522
513
 
@@ -57,7 +57,6 @@ div.pts-root-question:last-child {
57
57
  margin-bottom: 0.4rem;
58
58
  }
59
59
 
60
- .pts-root-question select,
61
60
  .pts-root-question input[type='text']:focus,
62
61
  .pts-root-question input[type='email']:focus,
63
62
  .pts-root-question input[type='tel']:focus {
@@ -112,8 +111,6 @@ div.pts-root-question:last-child {
112
111
  margin: 0;
113
112
  }
114
113
 
115
-
116
- .pts-root-question select,
117
114
  .pts-root-question input[type='text'],
118
115
  .pts-root-question input[type='email'],
119
116
  .pts-root-question input[type='tel'] {
@@ -234,43 +231,6 @@ div.pts-root-question:last-child {
234
231
  overflow: hidden;
235
232
  }
236
233
 
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
-
274
234
  /* ---------- SINGLE CHECKBOX ---------- */
275
235
 
276
236
  .pts-singleCheckbox-row {
@@ -64,8 +64,6 @@
64
64
  border: 0;
65
65
  }
66
66
 
67
-
68
- select:focus-visible,
69
67
  button:focus-visible,
70
68
  a:focus-visible,
71
69
  input:focus-visible,
@@ -104,7 +102,6 @@ input:focus-visible:-webkit-autofill {
104
102
  0 0 0 4px #000 !important;
105
103
  }
106
104
 
107
- .using-mouse select:focus-visible,
108
105
  .using-mouse input:focus-visible,
109
106
  .using-mouse button:focus-visible,
110
107
  .using-mouse textarea:focus-visible,
@@ -354,7 +351,7 @@ input:focus-visible:-webkit-autofill {
354
351
  transform: translateX(100%);
355
352
  transition:
356
353
  transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
357
- opacity 1s;
354
+ opacity 0.1s;
358
355
  }
359
356
 
360
357
  .pts-navigation-menu-container.open {
@@ -387,6 +384,7 @@ input:focus-visible:-webkit-autofill {
387
384
  }
388
385
 
389
386
  .pts-navigation-link-expand-button {
387
+ all:unset;
390
388
  border: none;
391
389
  padding: 0;
392
390
  cursor: pointer;
@@ -547,12 +545,6 @@ input:focus-visible:-webkit-autofill {
547
545
  margin-top: 1.6rem;
548
546
  }
549
547
 
550
- /* ---------- OptionTextBody ---------- */
551
-
552
- .pts-optionTextBody-container{
553
- margin-top: 1.6rem;
554
- }
555
-
556
548
  /* ---------- STEPPER ---------- */
557
549
 
558
550
  .pts-stepper-container {
@@ -667,13 +659,23 @@ input:focus-visible:-webkit-autofill {
667
659
  font-size: 1.6rem;
668
660
  }
669
661
 
670
- .pts-collapse-button.open {
662
+ .pts-collapse-open-close-icon.open {
671
663
  border-radius: 8px 8px 0 0;
672
664
  }
673
665
 
666
+ .pts-collapse-open-close-icon svg{
667
+ width: 2.4rem;
668
+ height: 2.4rem;
669
+ position: relative;
670
+ top: 3px;
671
+ }
672
+
673
+
674
674
  .pts-collapse-button .pts-open-close-icon svg {
675
675
  width: 2.4rem;
676
676
  height: 2.4rem;
677
+ position: relative;
678
+ top: 3px;
677
679
  }
678
680
 
679
681
  .pts-collapse-body {
@@ -689,6 +691,7 @@ input:focus-visible:-webkit-autofill {
689
691
  border: 2px solid var(--background);
690
692
  border-top: none;
691
693
  border-radius: 0 0 8px 8px;
694
+ margin-top: -5px;
692
695
  }
693
696
 
694
697
  .pts-collapse-content {
@@ -736,10 +739,14 @@ input:focus-visible:-webkit-autofill {
736
739
  padding: 0;
737
740
  }
738
741
  .pts-linkList-container li {
739
- padding: 6px;
742
+ padding-bottom: 16px;
740
743
  list-style: none;
741
744
  }
742
745
 
746
+ .pts-linkList-container li:last-child{
747
+ padding-bottom:0 ;
748
+ }
749
+
743
750
  /* ---------- GRANSKA-Sidan ---------- */
744
751
  .pts-editPreviewLink-container {
745
752
  display: flex;