@abgov/react-components 6.10.0-dev.4 → 6.10.0-dev.5
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/index.js +6 -1
- package/index.js.map +1 -1
- package/index.mjs +6 -1
- package/index.mjs.map +1 -1
- package/lib/block/block.d.ts +6 -0
- package/lib/menu-button/menu-button.d.ts +8 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -257,6 +257,9 @@ function GoabBlock(props) {
|
|
|
257
257
|
gap: props.gap,
|
|
258
258
|
direction: props.direction,
|
|
259
259
|
alignment: props.alignment,
|
|
260
|
+
width: props.width,
|
|
261
|
+
"min-width": props.minWidth,
|
|
262
|
+
"max-width": props.maxWidth,
|
|
260
263
|
mt: props.mt,
|
|
261
264
|
mr: props.mr,
|
|
262
265
|
mb: props.mb,
|
|
@@ -3375,6 +3378,8 @@ function GoALinkButton({ type = "primary", ...props }) {
|
|
|
3375
3378
|
function GoabMenuButton({
|
|
3376
3379
|
text,
|
|
3377
3380
|
type = "primary",
|
|
3381
|
+
leadingIcon,
|
|
3382
|
+
maxWidth,
|
|
3378
3383
|
testId,
|
|
3379
3384
|
onAction,
|
|
3380
3385
|
children
|
|
@@ -3397,7 +3402,7 @@ function GoabMenuButton({
|
|
|
3397
3402
|
current.removeEventListener("_action", listener);
|
|
3398
3403
|
};
|
|
3399
3404
|
}, [el, onAction]);
|
|
3400
|
-
return /* @__PURE__ */ jsxRuntime.jsx("goa-menu-button", { ref: el, text, type, testid: testId, children });
|
|
3405
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-menu-button", { ref: el, text, type, testid: testId, "leading-icon": leadingIcon, "max-width": maxWidth, children });
|
|
3401
3406
|
}
|
|
3402
3407
|
function GoabMenuAction({ text, icon: icon2, action, testId }) {
|
|
3403
3408
|
return /* @__PURE__ */ jsxRuntime.jsx("goa-menu-action", { text, action, icon: icon2, testid: testId });
|