@homebound/beam 2.132.3 → 2.132.4
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.
|
@@ -8,7 +8,7 @@ const useTestIds_1 = require("../utils/useTestIds");
|
|
|
8
8
|
/** Renders a list of `Chip`s, with wrapping & appropriate margin between each `Chip`. */
|
|
9
9
|
function ToggleChips(props) {
|
|
10
10
|
const { values, getLabel, onRemove, xss } = props;
|
|
11
|
-
const tid = (0, useTestIds_1.useTestIds)(props, "
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ css: { ...Css_1.Css.df.add(
|
|
11
|
+
const tid = (0, useTestIds_1.useTestIds)(props, "toggleChips");
|
|
12
|
+
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ css: { ...Css_1.Css.df.add("flexWrap", "wrap").gap1.$, ...xss } }, tid, { children: values.map((value) => ((0, jsx_runtime_1.jsx)(ToggleChip_1.ToggleChip, Object.assign({ text: getLabel(value), onClick: () => onRemove(value) }, tid.chip), getLabel(value)))) }), void 0));
|
|
13
13
|
}
|
|
14
14
|
exports.ToggleChips = ToggleChips;
|