@goodhood-web/nebenan-base 1.9.0-development.31 → 1.9.0-development.33

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
@@ -55192,38 +55192,50 @@ const aw = "_mobileHeaderBar_3t7v8_106", rw = "_typography_3t7v8_117", sw = "_ti
55192
55192
  /* @__PURE__ */ k.jsx(Ee, { type: "detail-medium", className: qt.poiProfileTile__label, children: n })
55193
55193
  ]
55194
55194
  }
55195
- ), b4 = ({ moreMenuOptions: n, tiles: e }) => {
55196
- const [i, t] = $e(!1), a = be(null), r = () => t(!1);
55195
+ ), b4 = ({
55196
+ moreMenuData: n,
55197
+ tiles: e,
55198
+ withoutMoreMenu: i
55199
+ }) => {
55200
+ const [t, a] = $e(!1), r = be(null), s = () => a(!1);
55197
55201
  return /* @__PURE__ */ k.jsxs("ul", { className: Zt.root, children: [
55198
- e.map((s, o) => /* @__PURE__ */ k.jsx(
55202
+ e.map((o, f) => /* @__PURE__ */ k.jsx(
55199
55203
  "li",
55200
55204
  {
55201
55205
  className: Zt.root__tileItem,
55202
- ref: s.ref,
55203
- children: /* @__PURE__ */ k.jsx(Hf, { ...s })
55206
+ ref: o.ref,
55207
+ children: /* @__PURE__ */ k.jsx(Hf, { ...o })
55204
55208
  },
55205
- `${s.buttonLabel}-${o}`
55209
+ `${o.buttonLabel}-${f}`
55206
55210
  )),
55207
- /* @__PURE__ */ k.jsxs("li", { className: Le(Zt.root__moreBtn, Zt.root__tileItem), ref: a, children: [
55208
- /* @__PURE__ */ k.jsx(
55209
- Hf,
55210
- {
55211
- buttonLabel: "Mehr",
55212
- icon: "more_dots_outline",
55213
- onClick: () => t(!i)
55214
- }
55215
- ),
55216
- /* @__PURE__ */ k.jsx(
55217
- Ta,
55218
- {
55219
- open: i,
55220
- anchor: a.current,
55221
- placement: "top",
55222
- handleClickAway: r,
55223
- children: /* @__PURE__ */ k.jsx(Ow, { options: n, onClose: r })
55224
- }
55225
- )
55226
- ] })
55211
+ i ? null : /* @__PURE__ */ k.jsxs(
55212
+ "li",
55213
+ {
55214
+ className: Le(Zt.root__moreBtn, Zt.root__tileItem),
55215
+ ref: r,
55216
+ children: [
55217
+ /* @__PURE__ */ k.jsx(
55218
+ Hf,
55219
+ {
55220
+ buttonLabel: "Mehr",
55221
+ icon: "more_dots_outline",
55222
+ onClick: () => a(!t)
55223
+ }
55224
+ ),
55225
+ /* @__PURE__ */ k.jsx(
55226
+ Ta,
55227
+ {
55228
+ open: t,
55229
+ anchor: r.current,
55230
+ placement: "top-end",
55231
+ handleClickAway: s,
55232
+ offset: (n == null ? void 0 : n.offset) && n.offset,
55233
+ children: /* @__PURE__ */ k.jsx(Ow, { options: n.options, onClose: s })
55234
+ }
55235
+ )
55236
+ ]
55237
+ }
55238
+ )
55227
55239
  ] });
55228
55240
  };
55229
55241
  var Pi = /* @__PURE__ */ ((n) => (n.Mouse = "mouse", n.Touch = "touch", n.Pointer = "pointer", n))(Pi || {}), it = /* @__PURE__ */ ((n) => (n.CancelledByMovement = "cancelled-by-movement", n.CancelledByRelease = "cancelled-by-release", n.CancelledOutsideElement = "cancelled-outside-element", n))(it || {});
@@ -1,4 +1,4 @@
1
1
  import { ProfileControlsProps } from './ProfileControls.types';
2
2
 
3
- declare const ProfileControls: ({ moreMenuOptions, tiles }: ProfileControlsProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const ProfileControls: ({ moreMenuData, tiles, withoutMoreMenu, }: ProfileControlsProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default ProfileControls;
@@ -1,10 +1,15 @@
1
1
  import { MutableRefObject } from 'react';
2
2
  import { DropdownOptionProps } from '../../../../ui/src/lib/Atoms/Dropdowns/DropdownOption/DropdownOption.types';
3
+ import { OffsetType } from '../../../../ui/src/lib/Organisms/Modals/Popup/Popup.types';
3
4
  import { PointOfInterestProfileProps } from './components/PointOfInterestProfileTile/PointOfInterestProfileTile.types';
4
5
 
5
6
  export type ProfileControlsProps = {
6
- moreMenuOptions: DropdownOptionProps[];
7
+ moreMenuData: {
8
+ offset?: OffsetType;
9
+ options: DropdownOptionProps[];
10
+ };
7
11
  tiles: ProfileControlTile[];
12
+ withoutMoreMenu?: boolean;
8
13
  };
9
14
  export type ProfileControlTile = PointOfInterestProfileProps & {
10
15
  ref?: MutableRefObject<HTMLElement | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "1.9.0-development.31",
3
+ "version": "1.9.0-development.33",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",