@goodhood-web/nebenan-base 1.3.0-development.61 → 1.3.0-development.63

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
@@ -58102,40 +58102,41 @@ const jn = {
58102
58102
  }, wx = ({
58103
58103
  activeReaction: n,
58104
58104
  expanded: e = !1,
58105
- onClick: i,
58106
- reactions: t,
58107
- size: r = "small",
58108
- stack: a = !1
58105
+ limit: i,
58106
+ onClick: t,
58107
+ reactions: r,
58108
+ size: a = "small",
58109
+ stack: s = !1
58109
58110
  }) => {
58110
- const s = (f) => {
58111
- i && i(f);
58112
- }, o = a ? k1(t) : t;
58111
+ const o = (d) => {
58112
+ t && t(d);
58113
+ }, f = s ? k1(r) : r, l = i ? f.slice(0, i) : f;
58113
58114
  return /* @__PURE__ */ y.jsxDEV(
58114
58115
  "ul",
58115
58116
  {
58116
58117
  className: Pe(Kr.reactionStack, {
58117
- [Kr.stack]: a,
58118
- [Kr.multiline]: !a && t.length === 7,
58119
- [Kr.multilineFull]: !a && t.length > 7
58118
+ [Kr.stack]: s,
58119
+ [Kr.multiline]: !s && r.length === 7,
58120
+ [Kr.multilineFull]: !s && r.length > 7
58120
58121
  }),
58121
- children: o.map(({ count: f, reaction: l, selected: d, tooltip: u }) => /* @__PURE__ */ y.jsxDEV(
58122
+ children: l.map(({ count: d, reaction: u, selected: h, tooltip: m }) => /* @__PURE__ */ y.jsxDEV(
58122
58123
  bx,
58123
58124
  {
58124
- count: f,
58125
- reaction: l,
58126
- selected: d,
58127
- stack: a,
58128
- size: r,
58125
+ count: d,
58126
+ reaction: u,
58127
+ selected: h,
58128
+ stack: s,
58129
+ size: a,
58129
58130
  expanded: e,
58130
- onSelect: s,
58131
+ onSelect: o,
58131
58132
  activeReaction: n,
58132
- tooltip: u
58133
+ tooltip: m
58133
58134
  },
58134
- l,
58135
+ u,
58135
58136
  !1,
58136
58137
  {
58137
58138
  fileName: "/home/runner/work/goodhood-web/goodhood-web/libs/nebenan-base/src/lib/Reactions/ReactionStack/ReactionStack.tsx",
58138
- lineNumber: 33,
58139
+ lineNumber: 35,
58139
58140
  columnNumber: 9
58140
58141
  },
58141
58142
  void 0
@@ -58145,7 +58146,7 @@ const jn = {
58145
58146
  !1,
58146
58147
  {
58147
58148
  fileName: "/home/runner/work/goodhood-web/goodhood-web/libs/nebenan-base/src/lib/Reactions/ReactionStack/ReactionStack.tsx",
58148
- lineNumber: 25,
58149
+ lineNumber: 27,
58149
58150
  columnNumber: 5
58150
58151
  },
58151
58152
  void 0
@@ -1,4 +1,4 @@
1
1
  import { ReactionStackProps } from './ReactionStack.types';
2
2
 
3
- declare const ReactionStack: ({ activeReaction, expanded, onClick, reactions, size, stack, }: ReactionStackProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const ReactionStack: ({ activeReaction, expanded, limit, onClick, reactions, size, stack, }: ReactionStackProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default ReactionStack;
@@ -3,6 +3,7 @@ import { ReactionType } from '../../../../../api/src/lib/types/reactions';
3
3
  export interface ReactionStackProps {
4
4
  activeReaction?: ReactionType;
5
5
  expanded?: boolean;
6
+ limit?: number;
6
7
  onClick?: (value: ReactionType) => void;
7
8
  reactions: Reaction[];
8
9
  size?: 'small' | 'big';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "1.3.0-development.61",
3
+ "version": "1.3.0-development.63",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "publishConfig": {