@happeouikit/form-elements 2.4.1 → 2.4.3

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.es.js CHANGED
@@ -5407,11 +5407,13 @@ const pn = S.span`
5407
5407
  opacity: 0.4;
5408
5408
  }
5409
5409
  `}
5410
- `, Uh = ({ text: e, closeCallback: t, isUppercase: r, ...n }) => {
5411
- const [a, i] = oe(!0), o = () => {
5412
- i(!1), t && t();
5410
+ `, Uh = ({ text: e, closeCallback: t, isUppercase: r, closeIconAriaLabel: n, ...a }) => {
5411
+ const [i, o] = oe(!0), s = () => {
5412
+ o(!1), t && t();
5413
+ }, u = (l) => {
5414
+ (l.key === "Enter" || l.key === " ") && s();
5413
5415
  };
5414
- return a && /* @__PURE__ */ _.createElement(Jh, { ...n }, /* @__PURE__ */ _.createElement(Kh, { bold: !0, uppercase: r }, e), /* @__PURE__ */ _.createElement(Qh, { onClick: o }, /* @__PURE__ */ _.createElement(ml, { width: "16px", height: "16px" })));
5416
+ return i && /* @__PURE__ */ _.createElement(Jh, { ...a }, /* @__PURE__ */ _.createElement(Kh, { bold: !0, uppercase: r }, e), /* @__PURE__ */ _.createElement(Qh, { onClick: s, role: "button", tabIndex: "0", onKeyDown: u, "aria-label": n || "Close tag" }, /* @__PURE__ */ _.createElement(ml, { width: "16px", height: "16px" })));
5415
5417
  };
5416
5418
  Uh.propTypes = {
5417
5419
  text: W.node.isRequired,