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