@linzjs/lui 21.17.2 → 21.18.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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [21.18.1](https://github.com/linz/lui/compare/v21.18.0...v21.18.1) (2024-02-07)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **LuiSplitButton:** CS-3765 Updating hover state of secondary hover state. ([#1092](https://github.com/linz/lui/issues/1092)) ([146387c](https://github.com/linz/lui/commit/146387c1657b20a21eec37d92bb6d8a28c238b0a))
7
+
8
+ # [21.18.0](https://github.com/linz/lui/compare/v21.17.2...v21.18.0) (2024-01-30)
9
+
10
+
11
+ ### Features
12
+
13
+ * **LuiSplitbutton:** CS-3765 updating secondary and disabled styles. ([#1088](https://github.com/linz/lui/issues/1088)) ([bbe2d77](https://github.com/linz/lui/commit/bbe2d773257e6827573b33107964379495af9ad4))
14
+
1
15
  ## [21.17.2](https://github.com/linz/lui/compare/v21.17.1...v21.17.2) (2024-01-29)
2
16
 
3
17
 
package/dist/index.js CHANGED
@@ -42511,10 +42511,13 @@ var LuiSplitButton = function (_a) {
42511
42511
  var _b;
42512
42512
  var _c = _a.position, position = _c === void 0 ? exports.LuiSplitButtonPosition.TOP : _c, props = __rest(_a, ["position"]);
42513
42513
  var _d = React.useState(false), isExpanded = _d[0], setIsExpanded = _d[1];
42514
+ var borderStyleClassName = (props.level || 'primary') === 'primary'
42515
+ ? 'lui-split-button-primary-btn-right-white-border'
42516
+ : '';
42514
42517
  // Let the consumer set any LuiButtonProps they want but overwrite the ones we want to control
42515
42518
  var buttonProps = __assign(__assign({}, props.buttonProps), {
42516
42519
  level: props.level || 'primary',
42517
- className: clsx('lui-split-button-primary-btn', (_b = props.buttonProps) === null || _b === void 0 ? void 0 : _b.className)
42520
+ className: clsx('lui-split-button-primary-btn', borderStyleClassName, (_b = props.buttonProps) === null || _b === void 0 ? void 0 : _b.className)
42518
42521
  });
42519
42522
  var positionProps = getMenuPosition(position);
42520
42523
  var iconClassName = getIconClassName(position, isExpanded);