@goodhood-web/nebenan-base 1.0.0-development.22 → 1.0.0-development.23

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/index.mjs CHANGED
@@ -46427,22 +46427,22 @@ const O0 = [
46427
46427
  }, U0 = "_emojiPopup_132yr_106", q0 = "_emojiPopupHeader_132yr_116", xt = {
46428
46428
  emojiPopup: U0,
46429
46429
  emojiPopupHeader: q0
46430
- }, jh = ({ children: n, onSelect: e }) => {
46431
- const [i, a] = Ti(null), s = (c) => {
46432
- a(i ? null : c.currentTarget);
46433
- }, t = !!i, r = t ? "emoji-cloud" : "", f = (c) => {
46434
- a(null), e(c);
46435
- }, o = () => {
46436
- a(null);
46430
+ }, jh = ({ children: n, className: e, onSelect: i }) => {
46431
+ const [a, s] = Ti(null), t = (l) => {
46432
+ s(a ? null : l.currentTarget);
46433
+ }, r = !!a, f = r ? "emoji-cloud" : "", o = (l) => {
46434
+ s(null), i(l);
46435
+ }, c = () => {
46436
+ s(null);
46437
46437
  };
46438
- return /* @__PURE__ */ E.jsx(Os, { onClickAway: o, children: /* @__PURE__ */ E.jsxs("div", { children: [
46439
- Ct(n, { onClick: s }),
46440
- /* @__PURE__ */ E.jsx(gn, { children: /* @__PURE__ */ E.jsx(ks, { id: r, open: t, anchor: i, children: /* @__PURE__ */ E.jsxs("div", { className: xt.emojiPopup, children: [
46438
+ return /* @__PURE__ */ E.jsx(Os, { onClickAway: c, children: /* @__PURE__ */ E.jsxs("div", { className: e, children: [
46439
+ Ct(n, { onClick: t }),
46440
+ /* @__PURE__ */ E.jsx(gn, { children: /* @__PURE__ */ E.jsx(ks, { id: f, open: r, anchor: a, children: /* @__PURE__ */ E.jsxs("div", { className: xt.emojiPopup, children: [
46441
46441
  /* @__PURE__ */ E.jsx("div", { className: xt.emojiPopupHeader, children: /* @__PURE__ */ E.jsx(
46442
46442
  Dn,
46443
46443
  {
46444
46444
  icon: "cross",
46445
- onClick: o,
46445
+ onClick: c,
46446
46446
  size: "small",
46447
46447
  ariaLabel: "Close"
46448
46448
  }
@@ -46456,7 +46456,7 @@ const O0 = [
46456
46456
  maxFrequentRows: 2,
46457
46457
  previewPosition: "none",
46458
46458
  skinTonePosition: "none",
46459
- onEmojiSelect: f
46459
+ onEmojiSelect: o
46460
46460
  }
46461
46461
  )
46462
46462
  ] }) }) })
@@ -1,3 +1,3 @@
1
1
  import { EmojiPickerProps } from './EmojiPicker.types';
2
- declare const EmojiPicker: ({ children, onSelect }: EmojiPickerProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const EmojiPicker: ({ children, className, onSelect }: EmojiPickerProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default EmojiPicker;
@@ -4,6 +4,7 @@ interface ClickableElementProps {
4
4
  }
5
5
  export interface EmojiPickerProps {
6
6
  children: ReactElement<ClickableElementProps>;
7
+ className?: string;
7
8
  onSelect: (event: never) => void;
8
9
  }
9
10
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "1.0.0-development.22",
3
+ "version": "1.0.0-development.23",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "publishConfig": {