@abgov/react-components 7.2.0-dev.22 → 7.2.0-dev.24
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 +18 -6
- package/index.js.map +1 -1
- package/index.mjs +18 -6
- package/index.mjs.map +1 -1
- package/lib/icon-button/icon-button.d.ts +5 -2
- package/lib/scroll-panel/scroll-panel.d.ts +9 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3316,6 +3316,7 @@ function GoabHeroBannerActions({
|
|
|
3316
3316
|
}
|
|
3317
3317
|
function GoabIconButton({
|
|
3318
3318
|
variant = "color",
|
|
3319
|
+
type = "default",
|
|
3319
3320
|
size = "medium",
|
|
3320
3321
|
theme = "outline",
|
|
3321
3322
|
disabled,
|
|
@@ -3326,7 +3327,7 @@ function GoabIconButton({
|
|
|
3326
3327
|
...rest
|
|
3327
3328
|
}) {
|
|
3328
3329
|
const ref = useRef(null);
|
|
3329
|
-
const _props = transformProps({ variant, size, theme, ...rest }, lowercase);
|
|
3330
|
+
const _props = transformProps({ variant, type, size, theme, ...rest }, lowercase);
|
|
3330
3331
|
useEffect(() => {
|
|
3331
3332
|
if (!ref.current) {
|
|
3332
3333
|
return;
|
|
@@ -4131,14 +4132,25 @@ function GoabScrollPanel({
|
|
|
4131
4132
|
footer,
|
|
4132
4133
|
height,
|
|
4133
4134
|
testId,
|
|
4135
|
+
direction = "vertical",
|
|
4134
4136
|
...rest
|
|
4135
4137
|
}) {
|
|
4136
4138
|
const hostStyle = height ? { height } : void 0;
|
|
4137
|
-
return /* @__PURE__ */ jsxs(
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4139
|
+
return /* @__PURE__ */ jsxs(
|
|
4140
|
+
"goa-scroll-panel",
|
|
4141
|
+
{
|
|
4142
|
+
height,
|
|
4143
|
+
testid: testId,
|
|
4144
|
+
direction,
|
|
4145
|
+
style: hostStyle,
|
|
4146
|
+
...rest,
|
|
4147
|
+
children: [
|
|
4148
|
+
header && /* @__PURE__ */ jsx("div", { slot: "header", children: header }),
|
|
4149
|
+
children,
|
|
4150
|
+
footer && /* @__PURE__ */ jsx("div", { slot: "footer", children: footer })
|
|
4151
|
+
]
|
|
4152
|
+
}
|
|
4153
|
+
);
|
|
4142
4154
|
}
|
|
4143
4155
|
function GoabTable({ onSort, onMultiSort, sortMode, ...props }) {
|
|
4144
4156
|
const ref = useRef(null);
|