@campfire-interactive/ui 0.5.0 → 0.5.1
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/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -519,7 +519,7 @@ function FilterBar({
|
|
|
519
519
|
out.push({ id: s.id, name: s.label, display: opt ? opt.label : v });
|
|
520
520
|
}
|
|
521
521
|
for (const tg of toggles) {
|
|
522
|
-
if (value[tg.id] === true) out.push({ id: tg.id,
|
|
522
|
+
if (value[tg.id] === true) out.push({ id: tg.id, display: tg.label });
|
|
523
523
|
}
|
|
524
524
|
return out;
|
|
525
525
|
}, [selects, toggles, value]);
|
|
@@ -571,14 +571,14 @@ function FilterBar({
|
|
|
571
571
|
}
|
|
572
572
|
),
|
|
573
573
|
applied.map((a) => /* @__PURE__ */ jsxs8("span", { className: "cfi-ui-filterbar__chip", children: [
|
|
574
|
-
/* @__PURE__ */ jsx8("span", { className: "cfi-ui-filterbar__chip-name", children: a.name }),
|
|
574
|
+
a.name && /* @__PURE__ */ jsx8("span", { className: "cfi-ui-filterbar__chip-name", children: a.name }),
|
|
575
575
|
a.display,
|
|
576
576
|
/* @__PURE__ */ jsx8(
|
|
577
577
|
"button",
|
|
578
578
|
{
|
|
579
579
|
type: "button",
|
|
580
580
|
className: "cfi-ui-filterbar__chip-x",
|
|
581
|
-
"aria-label": removeLabel(a.name),
|
|
581
|
+
"aria-label": removeLabel(a.name ?? String(a.display)),
|
|
582
582
|
onClick: () => set(a.id, void 0),
|
|
583
583
|
children: /* @__PURE__ */ jsx8(X, { size: 12, "aria-hidden": "true" })
|
|
584
584
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@campfire-interactive/ui",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Shared UI primitives for the Campfire Suite — Radix behavior, plain CSS styled entirely from the design tokens, no Tailwind required",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|