@elliemae/ds-data-table 2.4.2-rc.14 → 2.4.2-rc.15

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.
@@ -55,22 +55,15 @@ const Toolbar = _ref => {
55
55
  children
56
56
  } = _ref;
57
57
  const [show, setShow] = React.useState(false);
58
- const [clicked, setClicked] = React.useState(false);
59
58
  const toolbarRef = React.useRef(null);
60
- const handleOnClickOutside = React.useCallback(() => {
61
- setShow(false);
62
- setClicked(false);
63
- }, []);
64
- const handleOnClick = React.useCallback(() => {
65
- setShow(true);
66
- setClicked(true);
67
- }, []);
59
+ const handleOnClickOutside = React.useCallback(() => setShow(false), []);
60
+ const handleOnClick = React.useCallback(() => setShow(true), []);
68
61
  dsUtilities.useOnClickOutside(toolbarRef, handleOnClickOutside);
69
62
  return /*#__PURE__*/jsxRuntime.jsx(ToolbarPosition, {
70
63
  ref: toolbarRef,
71
64
  children: /*#__PURE__*/_jsx__default["default"](ToolbarWrapper, {
72
65
  onMouseEnter: () => setShow(true),
73
- onMouseLeave: () => setShow(clicked)
66
+ onMouseLeave: () => setShow(false)
74
67
  }, void 0, show && /*#__PURE__*/_jsx__default["default"](ToolbarBtns, {}, void 0, children), /*#__PURE__*/_jsx__default["default"](DSButton__default["default"], {
75
68
  buttonType: "text",
76
69
  className: "toolbar-trigger",
@@ -45,22 +45,15 @@ const Toolbar = _ref => {
45
45
  children
46
46
  } = _ref;
47
47
  const [show, setShow] = useState(false);
48
- const [clicked, setClicked] = useState(false);
49
48
  const toolbarRef = useRef(null);
50
- const handleOnClickOutside = useCallback(() => {
51
- setShow(false);
52
- setClicked(false);
53
- }, []);
54
- const handleOnClick = useCallback(() => {
55
- setShow(true);
56
- setClicked(true);
57
- }, []);
49
+ const handleOnClickOutside = useCallback(() => setShow(false), []);
50
+ const handleOnClick = useCallback(() => setShow(true), []);
58
51
  useOnClickOutside(toolbarRef, handleOnClickOutside);
59
52
  return /*#__PURE__*/jsx(ToolbarPosition, {
60
53
  ref: toolbarRef,
61
54
  children: /*#__PURE__*/_jsx(ToolbarWrapper, {
62
55
  onMouseEnter: () => setShow(true),
63
- onMouseLeave: () => setShow(clicked)
56
+ onMouseLeave: () => setShow(false)
64
57
  }, void 0, show && /*#__PURE__*/_jsx(ToolbarBtns, {}, void 0, children), /*#__PURE__*/_jsx(DSButton, {
65
58
  buttonType: "text",
66
59
  className: "toolbar-trigger",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-data-table",
3
- "version": "2.4.2-rc.14",
3
+ "version": "2.4.2-rc.15",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Data Table",
6
6
  "module": "./esm/index.js",
@@ -570,24 +570,24 @@
570
570
  "dependencies": {
571
571
  "@dnd-kit/core": "~4.0.1",
572
572
  "@dnd-kit/sortable": "~5.0.0",
573
- "@elliemae/ds-button": "2.4.2-rc.14",
574
- "@elliemae/ds-circular-progress-indicator": "2.4.2-rc.14",
575
- "@elliemae/ds-controlled-form": "2.4.2-rc.14",
576
- "@elliemae/ds-drag-and-drop": "2.4.2-rc.14",
577
- "@elliemae/ds-dropdownmenu": "2.4.2-rc.14",
578
- "@elliemae/ds-form": "2.4.2-rc.14",
579
- "@elliemae/ds-form-layout-blocks": "2.4.2-rc.14",
580
- "@elliemae/ds-grid": "2.4.2-rc.14",
581
- "@elliemae/ds-icons": "2.4.2-rc.14",
582
- "@elliemae/ds-indeterminate-progress-indicator": "2.4.2-rc.14",
583
- "@elliemae/ds-pagination": "2.4.2-rc.14",
584
- "@elliemae/ds-pills": "2.4.2-rc.14",
585
- "@elliemae/ds-popperjs": "2.4.2-rc.14",
586
- "@elliemae/ds-props-helpers": "2.4.2-rc.14",
587
- "@elliemae/ds-system": "2.4.2-rc.14",
588
- "@elliemae/ds-toolbar": "2.4.2-rc.14",
589
- "@elliemae/ds-truncated-tooltip-text": "2.4.2-rc.14",
590
- "@elliemae/ds-utilities": "2.4.2-rc.14",
573
+ "@elliemae/ds-button": "2.4.2-rc.15",
574
+ "@elliemae/ds-circular-progress-indicator": "2.4.2-rc.15",
575
+ "@elliemae/ds-controlled-form": "2.4.2-rc.15",
576
+ "@elliemae/ds-drag-and-drop": "2.4.2-rc.15",
577
+ "@elliemae/ds-dropdownmenu": "2.4.2-rc.15",
578
+ "@elliemae/ds-form": "2.4.2-rc.15",
579
+ "@elliemae/ds-form-layout-blocks": "2.4.2-rc.15",
580
+ "@elliemae/ds-grid": "2.4.2-rc.15",
581
+ "@elliemae/ds-icons": "2.4.2-rc.15",
582
+ "@elliemae/ds-indeterminate-progress-indicator": "2.4.2-rc.15",
583
+ "@elliemae/ds-pagination": "2.4.2-rc.15",
584
+ "@elliemae/ds-pills": "2.4.2-rc.15",
585
+ "@elliemae/ds-popperjs": "2.4.2-rc.15",
586
+ "@elliemae/ds-props-helpers": "2.4.2-rc.15",
587
+ "@elliemae/ds-system": "2.4.2-rc.15",
588
+ "@elliemae/ds-toolbar": "2.4.2-rc.15",
589
+ "@elliemae/ds-truncated-tooltip-text": "2.4.2-rc.15",
590
+ "@elliemae/ds-utilities": "2.4.2-rc.15",
591
591
  "@reduxjs/toolkit": "~1.6.2",
592
592
  "csstype": "~3.0.9",
593
593
  "moment": "~2.29.1",