@linzjs/lui 21.24.5-0 → 21.26.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [21.26.0](https://github.com/linz/lui/compare/v21.25.0...v21.26.0) (2024-04-11)
2
+
3
+
4
+ ### Features
5
+
6
+ * **Splitter:** add boundaries as px ([#1107](https://github.com/linz/lui/issues/1107)) ([6551d5a](https://github.com/linz/lui/commit/6551d5ade05966d514a9e1202d3f7c4fcb325d4d))
7
+
8
+ # [21.25.0](https://github.com/linz/lui/compare/v21.24.4...v21.25.0) (2024-04-11)
9
+
10
+
11
+ ### Features
12
+
13
+ * select now now longer has line-height set. This was causing the attached issues with "g" ([#1109](https://github.com/linz/lui/issues/1109)) ([54b8238](https://github.com/linz/lui/commit/54b8238de24a7733f9462cbf6bd4f028be8e5e88))
14
+
1
15
  ## [21.24.4](https://github.com/linz/lui/compare/v21.24.3...v21.24.4) (2024-03-15)
2
16
 
3
17
 
package/dist/index.js CHANGED
@@ -58804,6 +58804,18 @@ var useConfigEffect = function (setValueNow, separator) {
58804
58804
  setValueNow(newValueNow, { min: valueMin, max: valueMax });
58805
58805
  setCount(function (p) { return p + 1; });
58806
58806
  }
58807
+ else {
58808
+ var dim = values.orientation === 'vertical' ? 'width' : 'height';
58809
+ var offset = target.getBoundingClientRect()[dim] / 2;
58810
+ var splitter = target.parentElement;
58811
+ var primary = splitter.childNodes[0];
58812
+ var splitterRect = splitter.getBoundingClientRect();
58813
+ var primaryRect = primary.getBoundingClientRect();
58814
+ var newVal = ((primaryRect[dim] + offset) / splitterRect[dim]) * 100;
58815
+ if (Math.abs(newVal - valueNow) >= 0.01) {
58816
+ setValueNow(newVal, { min: valueMin, max: valueMax });
58817
+ }
58818
+ }
58807
58819
  };
58808
58820
  };
58809
58821
  var config = function (attr) { return ({