@abgov/react-components 6.7.1-alpha.3 → 6.7.1-alpha.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 +5 -1
- package/index.js.map +1 -1
- package/index.mjs +5 -1
- package/index.mjs.map +1 -1
- package/lib/dropdown/dropdown-item.d.ts +2 -2
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/radio-group/radio-group.d.ts +2 -2
- package/lib/radio-group/radio.d.ts +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -676,6 +676,9 @@ function stringify(value) {
|
|
|
676
676
|
if (typeof value === "string") {
|
|
677
677
|
return value;
|
|
678
678
|
}
|
|
679
|
+
if (typeof value === "number") {
|
|
680
|
+
return "" + value;
|
|
681
|
+
}
|
|
679
682
|
return JSON.stringify(value);
|
|
680
683
|
}
|
|
681
684
|
function GoabDropdown(props) {
|
|
@@ -3297,12 +3300,13 @@ function GoabModal({
|
|
|
3297
3300
|
ref: el,
|
|
3298
3301
|
open: open ? "true" : void 0,
|
|
3299
3302
|
closable: onClose ? "true" : "false",
|
|
3303
|
+
heading: typeof heading === "string" ? heading : void 0,
|
|
3300
3304
|
maxwidth: maxWidth,
|
|
3301
3305
|
transition,
|
|
3302
3306
|
calloutvariant: calloutVariant,
|
|
3303
3307
|
testid: testId,
|
|
3304
3308
|
children: [
|
|
3305
|
-
heading && /* @__PURE__ */ jsx("div", { slot: "heading", children: heading }),
|
|
3309
|
+
heading && typeof heading !== "string" && /* @__PURE__ */ jsx("div", { slot: "heading", children: heading }),
|
|
3306
3310
|
actions && /* @__PURE__ */ jsx("div", { slot: "actions", children: actions }),
|
|
3307
3311
|
children
|
|
3308
3312
|
]
|