@abgov/react-components 7.2.0-dev.25 → 7.2.0-dev.26
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 +4 -1
- package/index.js.map +1 -1
- package/index.mjs +4 -1
- package/index.mjs.map +1 -1
- package/lib/badge/badge.d.ts +4 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -138,6 +138,7 @@ function getIconValue(icon, iconType) {
|
|
|
138
138
|
return iconType ? "true" : "false";
|
|
139
139
|
}
|
|
140
140
|
function GoabBadge({
|
|
141
|
+
content,
|
|
141
142
|
icon,
|
|
142
143
|
iconType,
|
|
143
144
|
size = "medium",
|
|
@@ -150,10 +151,12 @@ function GoabBadge({
|
|
|
150
151
|
{
|
|
151
152
|
icon: getIconValue(icon, iconType),
|
|
152
153
|
icontype: iconType,
|
|
154
|
+
content: typeof content === "string" ? content : void 0,
|
|
153
155
|
..._props,
|
|
154
156
|
version: "2",
|
|
155
157
|
size,
|
|
156
|
-
emphasis
|
|
158
|
+
emphasis,
|
|
159
|
+
children: typeof content !== "string" && content != null && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "content", children: content })
|
|
157
160
|
}
|
|
158
161
|
);
|
|
159
162
|
}
|