softui-css 1.8.2 → 1.8.4

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/softui.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! SoftUI v1.8.0 — A Neumorphic CSS Library */
1
+ /*! SoftUI v1.8.4 — A Neumorphic CSS Library */
2
2
 
3
3
  /* ===========================================
4
4
  CSS Variables / Tokens
@@ -7698,7 +7698,7 @@ a.sui-btn-warning:visited {
7698
7698
  align-items: stretch;
7699
7699
  height: auto;
7700
7700
  padding: 0;
7701
- gap: 20px;
7701
+ gap: 14px;
7702
7702
  }
7703
7703
 
7704
7704
  .sui-chart-bar-col {
@@ -7830,7 +7830,7 @@ a.sui-btn-warning:visited {
7830
7830
  transform: none;
7831
7831
  font-size: 12px;
7832
7832
  flex-shrink: 0;
7833
- width: 50px;
7833
+ min-width: 40px;
7834
7834
  text-align: right;
7835
7835
  }
7836
7836
 
package/dist/softui.js CHANGED
@@ -154,6 +154,7 @@ const SoftUI = (() => {
154
154
 
155
155
  // Close button handler (any .sui-modal-close inside a backdrop)
156
156
  document.addEventListener('click', (e) => {
157
+ if (!e.target.closest) return;
157
158
  const closeBtn = e.target.closest('.sui-modal-close');
158
159
  if (!closeBtn) return;
159
160
 
@@ -3998,11 +3999,13 @@ const SoftUI = (() => {
3998
3999
 
3999
4000
  // Hover mode
4000
4001
  document.addEventListener('mouseenter', function(e) {
4002
+ if (!e.target.closest) return;
4001
4003
  var dial = e.target.closest('.sui-speed-dial-hover');
4002
4004
  if (dial) dial.classList.add('open');
4003
4005
  }, true);
4004
4006
 
4005
4007
  document.addEventListener('mouseleave', function(e) {
4008
+ if (!e.target.closest) return;
4006
4009
  var dial = e.target.closest('.sui-speed-dial-hover');
4007
4010
  if (dial) dial.classList.remove('open');
4008
4011
  }, true);