@pk-design/react-tailwind 1.13.2 → 1.14.0

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.
@@ -0,0 +1,8 @@
1
+ /**
2
+ * While `active`, the browser's back button (and Android's back gesture)
3
+ * closes the drawer instead of leaving the page: opening adds a history entry
4
+ * (keeping the current state, so routers see the same location), and back
5
+ * removes it. Closed any other way, the entry is removed too, but only if it's
6
+ * still the latest one, so a form that saves and then navigates isn't undone.
7
+ */
8
+ export declare function useCloseOnBack(active: boolean, onClose: () => void): void;
@@ -0,0 +1 @@
1
+ export {};
@@ -55,6 +55,7 @@ export * from './components/Toast';
55
55
  export * from './components/VirtualizedDataTable';
56
56
  export * from './components/common-type';
57
57
  export * from './hooks/use-breakpoint';
58
+ export * from './hooks/use-close-on-back';
58
59
  export * from './hooks/use-debounce';
59
60
  export * from './hooks/use-is-mobile';
60
61
  export * from './hooks/use-is-tablet';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pk-design/react-tailwind",
3
- "version": "1.13.2",
3
+ "version": "1.14.0",
4
4
  "main": "dist/react-tailwind.cjs.js",
5
5
  "module": "dist/react-tailwind.es.js",
6
6
  "types": "dist/types/index.d.ts",