@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.js
CHANGED
|
@@ -3318,6 +3318,7 @@ function GoabHeroBannerActions({
|
|
|
3318
3318
|
}
|
|
3319
3319
|
function GoabIconButton({
|
|
3320
3320
|
variant = "color",
|
|
3321
|
+
type = "default",
|
|
3321
3322
|
size = "medium",
|
|
3322
3323
|
theme = "outline",
|
|
3323
3324
|
disabled,
|
|
@@ -3328,7 +3329,7 @@ function GoabIconButton({
|
|
|
3328
3329
|
...rest
|
|
3329
3330
|
}) {
|
|
3330
3331
|
const ref = react.useRef(null);
|
|
3331
|
-
const _props = transformProps({ variant, size, theme, ...rest }, lowercase);
|
|
3332
|
+
const _props = transformProps({ variant, type, size, theme, ...rest }, lowercase);
|
|
3332
3333
|
react.useEffect(() => {
|
|
3333
3334
|
if (!ref.current) {
|
|
3334
3335
|
return;
|
|
@@ -4133,14 +4134,25 @@ function GoabScrollPanel({
|
|
|
4133
4134
|
footer,
|
|
4134
4135
|
height,
|
|
4135
4136
|
testId,
|
|
4137
|
+
direction = "vertical",
|
|
4136
4138
|
...rest
|
|
4137
4139
|
}) {
|
|
4138
4140
|
const hostStyle = height ? { height } : void 0;
|
|
4139
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4141
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4142
|
+
"goa-scroll-panel",
|
|
4143
|
+
{
|
|
4144
|
+
height,
|
|
4145
|
+
testid: testId,
|
|
4146
|
+
direction,
|
|
4147
|
+
style: hostStyle,
|
|
4148
|
+
...rest,
|
|
4149
|
+
children: [
|
|
4150
|
+
header && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "header", children: header }),
|
|
4151
|
+
children,
|
|
4152
|
+
footer && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "footer", children: footer })
|
|
4153
|
+
]
|
|
4154
|
+
}
|
|
4155
|
+
);
|
|
4144
4156
|
}
|
|
4145
4157
|
function GoabTable({ onSort, onMultiSort, sortMode, ...props }) {
|
|
4146
4158
|
const ref = react.useRef(null);
|