@kerkhoff-ict/solora 2.7.1 → 2.7.3

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.css CHANGED
@@ -511,24 +511,29 @@
511
511
  pointer-events: auto;
512
512
  }
513
513
  .dropdown.top-left .dropdown-content {
514
+ top: auto;
514
515
  bottom: 100%;
515
- left: 0;
516
+ left: auto;
517
+ right: 0;
516
518
  margin: 0.5rem 0;
517
519
  }
518
520
  .dropdown.top-center .dropdown-content {
521
+ top: auto;
519
522
  bottom: 100%;
520
523
  left: 50%;
521
524
  transform: translateX(-50%) !important;
522
525
  margin: 0.5rem 0;
523
526
  }
524
527
  .dropdown.top-right .dropdown-content {
528
+ top: auto;
525
529
  bottom: 100%;
526
- right: 0;
530
+ left: 0;
527
531
  margin: 0.5rem 0;
528
532
  }
529
533
  .dropdown.bottom-left .dropdown-content {
530
534
  top: 100%;
531
- left: 0;
535
+ left: auto;
536
+ right: 0;
532
537
  margin: 0.5rem 0;
533
538
  }
534
539
  .dropdown.bottom-center .dropdown-content {
@@ -539,18 +544,19 @@
539
544
  }
540
545
  .dropdown.bottom-right .dropdown-content {
541
546
  top: 100%;
542
- right: 0;
547
+ left: 0;
543
548
  margin: 0.5rem 0;
544
549
  }
545
550
  .dropdown.left .dropdown-content {
546
- right: 100%;
547
551
  top: 50%;
552
+ left: auto;
553
+ right: 100%;
548
554
  transform: translateY(-50%) !important;
549
555
  margin: 0 0.5rem;
550
556
  }
551
557
  .dropdown.right .dropdown-content {
552
- left: 100%;
553
558
  top: 50%;
559
+ left: 100%;
554
560
  transform: translateY(-50%) !important;
555
561
  margin: 0 0.5rem;
556
562
  }
package/dist/index.js CHANGED
@@ -1872,7 +1872,7 @@ function initDropdowns() {
1872
1872
  hiddenInput.value = item.dataset.value ?? item.textContent.trim();
1873
1873
  drop.dispatchEvent(new CustomEvent("change", { detail: hiddenInput.value }));
1874
1874
  };
1875
- const initialItem = content.querySelector(".dropdown-item.active") || content.querySelector('.dropdown-item:not([aria-disabled="true"])');
1875
+ const initialItem = content.querySelector(".dropdown-item.active");
1876
1876
  if (initialItem) setValue(initialItem);
1877
1877
  const toggle = () => drop.classList.toggle("open");
1878
1878
  const close = () => drop.classList.remove("open");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kerkhoff-ict/solora",
3
- "version": "2.7.1",
3
+ "version": "2.7.3",
4
4
  "description": "Simple CSS component library",
5
5
  "main": "dist/index.js",
6
6
  "style": "dist/index.css",