@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/Tag.d.ts +2 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +6 -4
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -3
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,
|
|
5411
|
-
const [
|
|
5412
|
-
|
|
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
|
|
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,
|