@kerkhoff-ict/solora 2.1.4 → 2.1.6

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
@@ -643,6 +643,40 @@
643
643
  .sol-input-error:focus {
644
644
  box-shadow: 0 0 0 4px var(--color-error-glow, rgba(220, 53, 69, 0.15)) !important;
645
645
  }
646
+ .sol-input::-webkit-outer-spin-button,
647
+ .sol-input::-webkit-inner-spin-button {
648
+ -webkit-appearance: none;
649
+ margin: 0;
650
+ }
651
+ .sol-input[type=number] {
652
+ -moz-appearance: textfield;
653
+ }
654
+ .sol-input-group {
655
+ position: relative;
656
+ }
657
+ .sol-error-message {
658
+ color: var(--color-danger, #ff453a);
659
+ font-size: 0.75rem;
660
+ font-weight: 500;
661
+ margin-top: 0.2rem;
662
+ margin-left: 0.2rem;
663
+ display: none;
664
+ animation: solFadeIn 0.2s ease-out;
665
+ }
666
+ @keyframes solFadeIn {
667
+ from {
668
+ opacity: 0;
669
+ transform: translateY(-5px);
670
+ }
671
+ to {
672
+ opacity: 1;
673
+ transform: translateY(0);
674
+ }
675
+ }
676
+ .sol-input.is-invalid {
677
+ border-color: var(--color-danger, #ff453a) !important;
678
+ box-shadow: 0 0 0 4px var(--color-error-glow, rgba(255, 69, 58, 0.15)) !important;
679
+ }
646
680
  :root.dark .sol-label {
647
681
  color: var(--color-text-light, #fff);
648
682
  opacity: 0.6;
package/dist/index.js CHANGED
@@ -2068,8 +2068,16 @@ function initContextMenu() {
2068
2068
  let posY = e.clientY;
2069
2069
  const menuWidth = menu.offsetWidth;
2070
2070
  const menuHeight = menu.offsetHeight;
2071
- posX = Math.max(0, posX);
2072
- posY = Math.max(0, posY);
2071
+ const windowWidth = window.innerWidth;
2072
+ const windowHeight = window.innerHeight;
2073
+ if (posX + menuWidth > windowWidth) {
2074
+ posX = posX - menuWidth;
2075
+ }
2076
+ if (posY + menuHeight > windowHeight) {
2077
+ posY = posY - menuHeight;
2078
+ }
2079
+ posX = Math.max(5, posX);
2080
+ posY = Math.max(5, posY);
2073
2081
  menu.style.left = `${posX}px`;
2074
2082
  menu.style.top = `${posY}px`;
2075
2083
  requestAnimationFrame(() => menu.classList.add("visible"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kerkhoff-ict/solora",
3
- "version": "2.1.4",
3
+ "version": "2.1.6",
4
4
  "description": "Simple CSS component library",
5
5
  "main": "dist/index.js",
6
6
  "style": "dist/index.css",