@abgov/react-components 7.2.0-dev.25 → 7.2.0-dev.27
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 +8 -2
- package/index.js.map +1 -1
- package/index.mjs +8 -2
- package/index.mjs.map +1 -1
- package/lib/badge/badge.d.ts +4 -4
- package/lib/filter-chip/filter-chip.d.ts +8 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -136,6 +136,7 @@ function getIconValue(icon, iconType) {
|
|
|
136
136
|
return iconType ? "true" : "false";
|
|
137
137
|
}
|
|
138
138
|
function GoabBadge({
|
|
139
|
+
content,
|
|
139
140
|
icon,
|
|
140
141
|
iconType,
|
|
141
142
|
size = "medium",
|
|
@@ -148,10 +149,12 @@ function GoabBadge({
|
|
|
148
149
|
{
|
|
149
150
|
icon: getIconValue(icon, iconType),
|
|
150
151
|
icontype: iconType,
|
|
152
|
+
content: typeof content === "string" ? content : void 0,
|
|
151
153
|
..._props,
|
|
152
154
|
version: "2",
|
|
153
155
|
size,
|
|
154
|
-
emphasis
|
|
156
|
+
emphasis,
|
|
157
|
+
children: typeof content !== "string" && content != null && /* @__PURE__ */ jsx("div", { slot: "content", children: content })
|
|
155
158
|
}
|
|
156
159
|
);
|
|
157
160
|
}
|
|
@@ -4390,6 +4393,7 @@ function GoabTwoColumnLayout(props) {
|
|
|
4390
4393
|
);
|
|
4391
4394
|
}
|
|
4392
4395
|
const GoabFilterChip = ({
|
|
4396
|
+
content,
|
|
4393
4397
|
iconTheme = "outline",
|
|
4394
4398
|
error,
|
|
4395
4399
|
onClick,
|
|
@@ -4410,9 +4414,11 @@ const GoabFilterChip = ({
|
|
|
4410
4414
|
"goa-filter-chip",
|
|
4411
4415
|
{
|
|
4412
4416
|
ref: el,
|
|
4417
|
+
content: typeof content === "string" ? content : void 0,
|
|
4413
4418
|
error: error ? "true" : void 0,
|
|
4414
4419
|
version: "2",
|
|
4415
|
-
..._props
|
|
4420
|
+
..._props,
|
|
4421
|
+
children: typeof content !== "string" && content != null && /* @__PURE__ */ jsx("div", { slot: "content", children: content })
|
|
4416
4422
|
}
|
|
4417
4423
|
);
|
|
4418
4424
|
};
|