@linzjs/lui 21.17.2 → 21.18.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 +7 -0
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/lui.css +10 -2
- package/dist/lui.css.map +1 -1
- package/dist/lui.esm.js +4 -1
- package/dist/lui.esm.js.map +1 -1
- package/dist/scss/Components/LuiSplitButton/LuiSplitButton.scss +10 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [21.18.0](https://github.com/linz/lui/compare/v21.17.2...v21.18.0) (2024-01-30)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **LuiSplitbutton:** CS-3765 updating secondary and disabled styles. ([#1088](https://github.com/linz/lui/issues/1088)) ([bbe2d77](https://github.com/linz/lui/commit/bbe2d773257e6827573b33107964379495af9ad4))
|
|
7
|
+
|
|
1
8
|
## [21.17.2](https://github.com/linz/lui/compare/v21.17.1...v21.17.2) (2024-01-29)
|
|
2
9
|
|
|
3
10
|
|
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);
|