@trackunit/react-table 0.0.100 → 0.0.101

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.cjs.js CHANGED
@@ -204,7 +204,7 @@ const actionDataToMenuItem = (action, dataTestId) => {
204
204
  key: action.label,
205
205
  dataTestId,
206
206
  };
207
- const item = (jsxRuntime.jsx(reactComponents.MenuItem, { props, onClick: "method" in action ? action.method : undefined, dataTestId: `${dataTestId}-action-label`, className: "flex justify-center", label: action.label, prefix: jsxRuntime.jsx(reactComponents.Icon, { name: action.icon, size: action.size, "data-testid": "action-icon", forwardedRef: action.forwardedRef, style: action.style }) }, action.label));
207
+ const item = (jsxRuntime.jsx(reactComponents.MenuItem, { props, onClick: "method" in action ? action.method : undefined, dataTestId: `${dataTestId}-action-label`, className: "flex justify-center", label: action.label, stopPropagation: false, prefix: jsxRuntime.jsx(reactComponents.Icon, { name: action.icon, size: action.size, "data-testid": "action-icon", forwardedRef: action.forwardedRef, style: action.style }) }, action.label));
208
208
  if ("url" in action) {
209
209
  return (jsxRuntime.jsx(reactRouterDom.Link, { id: action.id, to: action.url, children: item }, action.label));
210
210
  }
@@ -249,9 +249,9 @@ const ActionContainerAndOverflow = ({ actions, moreActions, dataTestId }) => {
249
249
  return React.cloneElement(child, {
250
250
  className: `${child.props.className} ${itemVisibilityClassName(child.props.id)}`,
251
251
  });
252
- }) }), React.Children.count(moreActions) > 0 || overflowItemCount ? (jsxRuntime.jsx(reactComponents.MoreMenu, { popoverProps: { placement: "top-end" }, className: "p-0", iconButtonProps: { variant: "transparent", circular: true }, iconProps: { color: "white", name: "EllipsisHorizontal" }, dataTestId: `${dataTestId}-more-menu`, children: jsxRuntime.jsxs(reactComponents.MenuList, { className: "relative -right-2", children: [moreActions ? moreActions : null, actions.map(action => {
252
+ }) }), React.Children.count(moreActions) > 0 || overflowItemCount ? (jsxRuntime.jsx(reactComponents.MoreMenu, { popoverProps: { placement: "top-end" }, className: "p-0", iconButtonProps: { variant: "transparent", circular: true }, iconProps: { color: "white", name: "EllipsisHorizontal" }, dataTestId: `${dataTestId}-more-menu`, children: close => (jsxRuntime.jsxs(reactComponents.MenuList, { className: "relative -right-2", onClick: close, children: [moreActions ? moreActions : null, actions.map(action => {
253
253
  return itemOverflowMap[action.id] ? actionDataToMenuItem(action, dataTestId) : null;
254
- })] }) })) : null] }));
254
+ })] })) })) : null] }));
255
255
  };
256
256
 
257
257
  /**
package/index.esm.js CHANGED
@@ -181,7 +181,7 @@ const actionDataToMenuItem = (action, dataTestId) => {
181
181
  key: action.label,
182
182
  dataTestId,
183
183
  };
184
- const item = (jsx(MenuItem, { props, onClick: "method" in action ? action.method : undefined, dataTestId: `${dataTestId}-action-label`, className: "flex justify-center", label: action.label, prefix: jsx(Icon, { name: action.icon, size: action.size, "data-testid": "action-icon", forwardedRef: action.forwardedRef, style: action.style }) }, action.label));
184
+ const item = (jsx(MenuItem, { props, onClick: "method" in action ? action.method : undefined, dataTestId: `${dataTestId}-action-label`, className: "flex justify-center", label: action.label, stopPropagation: false, prefix: jsx(Icon, { name: action.icon, size: action.size, "data-testid": "action-icon", forwardedRef: action.forwardedRef, style: action.style }) }, action.label));
185
185
  if ("url" in action) {
186
186
  return (jsx(Link, { id: action.id, to: action.url, children: item }, action.label));
187
187
  }
@@ -226,9 +226,9 @@ const ActionContainerAndOverflow = ({ actions, moreActions, dataTestId }) => {
226
226
  return cloneElement(child, {
227
227
  className: `${child.props.className} ${itemVisibilityClassName(child.props.id)}`,
228
228
  });
229
- }) }), Children.count(moreActions) > 0 || overflowItemCount ? (jsx(MoreMenu, { popoverProps: { placement: "top-end" }, className: "p-0", iconButtonProps: { variant: "transparent", circular: true }, iconProps: { color: "white", name: "EllipsisHorizontal" }, dataTestId: `${dataTestId}-more-menu`, children: jsxs(MenuList, { className: "relative -right-2", children: [moreActions ? moreActions : null, actions.map(action => {
229
+ }) }), Children.count(moreActions) > 0 || overflowItemCount ? (jsx(MoreMenu, { popoverProps: { placement: "top-end" }, className: "p-0", iconButtonProps: { variant: "transparent", circular: true }, iconProps: { color: "white", name: "EllipsisHorizontal" }, dataTestId: `${dataTestId}-more-menu`, children: close => (jsxs(MenuList, { className: "relative -right-2", onClick: close, children: [moreActions ? moreActions : null, actions.map(action => {
230
230
  return itemOverflowMap[action.id] ? actionDataToMenuItem(action, dataTestId) : null;
231
- })] }) })) : null] }));
231
+ })] })) })) : null] }));
232
232
  };
233
233
 
234
234
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-table",
3
- "version": "0.0.100",
3
+ "version": "0.0.101",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -13,11 +13,11 @@
13
13
  "@trackunit/css-core": "0.0.99",
14
14
  "@trackunit/i18n-library-translation": "0.0.90",
15
15
  "@trackunit/iris-app-api": "0.0.127",
16
- "@trackunit/react-components": "0.1.193",
16
+ "@trackunit/react-components": "0.1.194",
17
17
  "@trackunit/react-core-contexts-api": "0.2.69",
18
18
  "@trackunit/react-core-contexts-test": "0.1.126",
19
- "@trackunit/react-form-components": "0.0.196",
20
- "@trackunit/react-table-base-components": "0.0.73",
19
+ "@trackunit/react-form-components": "0.0.197",
20
+ "@trackunit/react-table-base-components": "0.0.74",
21
21
  "@trackunit/shared-utils": "0.0.15",
22
22
  "@trackunit/ui-icons": "0.0.79",
23
23
  "immutability-helper": "3.1.1",