@trackunit/react-components 1.5.9 → 1.5.11

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
@@ -3546,7 +3546,7 @@ const usePrompt = (message, when = true) => {
3546
3546
  };
3547
3547
  }, [message, when]);
3548
3548
  const confirmExit = react.useCallback(() => {
3549
- return window.confirm(message);
3549
+ return !window.confirm(message);
3550
3550
  }, [message]);
3551
3551
  useConfirmExit(confirmExit, when);
3552
3552
  };
package/index.esm.js CHANGED
@@ -3544,7 +3544,7 @@ const usePrompt = (message, when = true) => {
3544
3544
  };
3545
3545
  }, [message, when]);
3546
3546
  const confirmExit = useCallback(() => {
3547
- return window.confirm(message);
3547
+ return !window.confirm(message);
3548
3548
  }, [message]);
3549
3549
  useConfirmExit(confirmExit, when);
3550
3550
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "1.5.9",
3
+ "version": "1.5.11",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -18,12 +18,12 @@
18
18
  "@tanstack/react-router": "1.114.29",
19
19
  "string-ts": "^2.0.0",
20
20
  "tailwind-merge": "^2.0.0",
21
- "@trackunit/ui-design-tokens": "1.4.7",
22
- "@trackunit/css-class-variance-utilities": "1.4.5",
23
- "@trackunit/shared-utils": "1.6.5",
24
- "@trackunit/ui-icons": "1.4.5",
25
- "@trackunit/react-table-pagination": "1.4.5",
26
- "@trackunit/react-test-setup": "1.1.5"
21
+ "@trackunit/ui-design-tokens": "1.4.8",
22
+ "@trackunit/css-class-variance-utilities": "1.4.6",
23
+ "@trackunit/shared-utils": "1.6.6",
24
+ "@trackunit/ui-icons": "1.4.6",
25
+ "@trackunit/react-table-pagination": "1.4.6",
26
+ "@trackunit/react-test-setup": "1.1.6"
27
27
  },
28
28
  "module": "./index.esm.js",
29
29
  "main": "./index.cjs.js",