@linzjs/lui 15.1.3 → 15.1.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/CHANGELOG.md +7 -0
- package/dist/components/LuiButton/LuiButton.d.ts +16 -3
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/lui.esm.js +7 -1
- package/dist/lui.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/lui.esm.js
CHANGED
|
@@ -180,8 +180,14 @@ var LuiButton = React__default.forwardRef(function (props, ref) {
|
|
|
180
180
|
}
|
|
181
181
|
return (React__default.createElement(PlainButton, { type: props.type, title: props.title, disabled: props.disabled, name: props.name, onClick: props.onClick, level: _level, size: size, "data-testid": props['data-testid'], style: props.style, className: props.className, buttonProps: props.buttonProps, ref: ref }, props.children));
|
|
182
182
|
});
|
|
183
|
+
/**
|
|
184
|
+
* A series of Lui buttons together.
|
|
185
|
+
*/
|
|
183
186
|
var LuiButtonGroup = function (props) {
|
|
184
|
-
|
|
187
|
+
var children = Array.isArray(props.children)
|
|
188
|
+
? props.children
|
|
189
|
+
: [props.children];
|
|
190
|
+
return (React__default.createElement("div", { className: "lui-button-group", "data-testid": 'button-group' }, children.map(function (child, i) {
|
|
185
191
|
return (React__default.createElement("div", { key: i, className: 'lui-button-wrapper' }, child));
|
|
186
192
|
})));
|
|
187
193
|
};
|