@bloomreach/react-banana-ui 1.9.0 → 1.9.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.
@@ -6597,25 +6597,35 @@ function Qf(e) {
6597
6597
  icon: l,
6598
6598
  onClose: i,
6599
6599
  role: s = "alert",
6600
- type: u = "info"
6600
+ type: u = "info",
6601
+ ...d
6602
+ // Capture any other properties to pass them to the root element, like `aria-*`, `data-*`, etc.
6601
6603
  } = e;
6602
- return /* @__PURE__ */ c0("div", { className: Q(`rbui-alert rbui-alert--${u}`, o), role: s, children: [
6603
- l !== !1 ? /* @__PURE__ */ a("div", { className: `rbui-alert__icon rbui-alert__icon--${u}`, children: l || df[u]() }) : null,
6604
- /* @__PURE__ */ c0("div", { className: "rbui-alert__content", children: [
6605
- r,
6606
- t ? /* @__PURE__ */ a("div", { className: "rbui-alert__actions", children: t }) : null
6607
- ] }),
6608
- i ? /* @__PURE__ */ a(
6609
- y0,
6610
- {
6611
- type: "tertiary",
6612
- "aria-label": "Close",
6613
- className: "rbui-alert__close",
6614
- startIcon: /* @__PURE__ */ a(h5, {}),
6615
- onClick: () => i()
6616
- }
6617
- ) : null
6618
- ] });
6604
+ return /* @__PURE__ */ c0(
6605
+ "div",
6606
+ {
6607
+ className: Q(`rbui-alert rbui-alert--${u}`, o),
6608
+ role: s,
6609
+ ...d,
6610
+ children: [
6611
+ l !== !1 ? /* @__PURE__ */ a("div", { className: `rbui-alert__icon rbui-alert__icon--${u}`, children: l || df[u]() }) : null,
6612
+ /* @__PURE__ */ c0("div", { className: "rbui-alert__content", children: [
6613
+ r,
6614
+ t ? /* @__PURE__ */ a("div", { className: "rbui-alert__actions", children: t }) : null
6615
+ ] }),
6616
+ i ? /* @__PURE__ */ a(
6617
+ y0,
6618
+ {
6619
+ type: "tertiary",
6620
+ "aria-label": "Close",
6621
+ className: "rbui-alert__close",
6622
+ startIcon: /* @__PURE__ */ a(h5, {}),
6623
+ onClick: () => i()
6624
+ }
6625
+ ) : null
6626
+ ]
6627
+ }
6628
+ );
6619
6629
  }
6620
6630
  function e9(e) {
6621
6631
  const { children: t, className: r } = e;