@dgui/react-shared 1.5.0-next.2 → 1.5.0-next.4
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/dist/Contexts/DrawerContext.d.ts +0 -1
- package/dist/Contexts/DrawerIndexContext.d.ts +0 -1
- package/dist/Contexts/DrawerToggleContext.d.ts +0 -1
- package/dist/Contexts/TabContext.d.ts +0 -1
- package/dist/Contexts/TabIndexContext.d.ts +0 -1
- package/dist/Hooks/useAddDrawer.d.ts +1 -1
- package/dist/Hooks/useAddTab.d.ts +1 -1
- package/dist/Hooks/useDrawerIndex.js +1 -2
- package/dist/Hooks/useDrawerIndex.js.map +1 -1
- package/dist/Hooks/useDrawerOpen.js +1 -2
- package/dist/Hooks/useDrawerOpen.js.map +1 -1
- package/dist/Hooks/useDrawers.js +1 -2
- package/dist/Hooks/useDrawers.js.map +1 -1
- package/dist/Hooks/useSelectDrawer.d.ts +0 -1
- package/dist/Hooks/useSelectTab.d.ts +0 -1
- package/dist/Types.d.ts +3 -1
- package/package.json +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const useAddDrawer: () => (drawer: import("..").DrawerType, position?: number
|
|
1
|
+
declare const useAddDrawer: () => (drawer: import("..").DrawerType, position?: number) => void;
|
|
2
2
|
export { useAddDrawer };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const useAddTab: () => (tab: import("..").TabType, goto?: boolean
|
|
1
|
+
declare const useAddTab: () => (tab: import("..").TabType, goto?: boolean, position?: number) => void;
|
|
2
2
|
export { useAddTab };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useDrawerIndex =
|
|
3
|
+
exports.useDrawerIndex = useDrawerIndex;
|
|
4
4
|
const Contexts_1 = require("../Contexts");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
function useDrawerIndex() {
|
|
7
7
|
const { drawerIndex } = (0, react_1.useContext)(Contexts_1.DrawerIndexContext);
|
|
8
8
|
return drawerIndex;
|
|
9
9
|
}
|
|
10
|
-
exports.useDrawerIndex = useDrawerIndex;
|
|
11
10
|
//# sourceMappingURL=useDrawerIndex.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDrawerIndex.js","sourceRoot":"","sources":["../../src/Hooks/useDrawerIndex.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDrawerIndex.js","sourceRoot":"","sources":["../../src/Hooks/useDrawerIndex.ts"],"names":[],"mappings":";;AAiBC,wCAAc;AAjBf,0CAEqB;AACrB,iCAEe;AAGf,SAAS,cAAc;IACtB,MAAM,EACL,WAAW,EACX,GAAG,IAAA,kBAAU,EAAC,6BAAkB,CAAC,CAAC;IAEnC,OAAO,WAAW,CAAC;AACpB,CAAC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useDrawerOpen =
|
|
3
|
+
exports.useDrawerOpen = useDrawerOpen;
|
|
4
4
|
const Contexts_1 = require("../Contexts");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
function useDrawerOpen() {
|
|
7
7
|
const { drawerOpen } = (0, react_1.useContext)(Contexts_1.DrawerToggleContext);
|
|
8
8
|
return drawerOpen;
|
|
9
9
|
}
|
|
10
|
-
exports.useDrawerOpen = useDrawerOpen;
|
|
11
10
|
//# sourceMappingURL=useDrawerOpen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDrawerOpen.js","sourceRoot":"","sources":["../../src/Hooks/useDrawerOpen.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDrawerOpen.js","sourceRoot":"","sources":["../../src/Hooks/useDrawerOpen.ts"],"names":[],"mappings":";;AAiBC,sCAAa;AAjBd,0CAEqB;AACrB,iCAEe;AAGf,SAAS,aAAa;IACrB,MAAM,EACL,UAAU,EACV,GAAG,IAAA,kBAAU,EAAC,8BAAmB,CAAC,CAAC;IAEpC,OAAO,UAAU,CAAC;AACnB,CAAC"}
|
package/dist/Hooks/useDrawers.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useDrawers =
|
|
3
|
+
exports.useDrawers = useDrawers;
|
|
4
4
|
const Contexts_1 = require("../Contexts");
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
function useDrawers() {
|
|
7
7
|
const { drawers } = (0, react_1.useContext)(Contexts_1.DrawerContext);
|
|
8
8
|
return drawers;
|
|
9
9
|
}
|
|
10
|
-
exports.useDrawers = useDrawers;
|
|
11
10
|
//# sourceMappingURL=useDrawers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDrawers.js","sourceRoot":"","sources":["../../src/Hooks/useDrawers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDrawers.js","sourceRoot":"","sources":["../../src/Hooks/useDrawers.ts"],"names":[],"mappings":";;AAiBC,gCAAU;AAjBX,0CAEqB;AACrB,iCAEe;AAGf,SAAS,UAAU;IAClB,MAAM,EACL,OAAO,EACP,GAAG,IAAA,kBAAU,EAAC,wBAAa,CAAC,CAAC;IAE9B,OAAO,OAAO,CAAC;AAChB,CAAC"}
|
package/dist/Types.d.ts
CHANGED
|
@@ -65,7 +65,9 @@ export type TabIndexProviderProps = PropsWithChildren<{
|
|
|
65
65
|
tabIndex?: number;
|
|
66
66
|
}>;
|
|
67
67
|
export type ProvidersProps = DrawerIndexProviderProps & DrawerToggleProviderProps & PropsWithChildren<{}> & TabIndexProviderProps;
|
|
68
|
-
export type ReactDigestProps = PropsWithChildren<{
|
|
68
|
+
export type ReactDigestProps = PropsWithChildren<{
|
|
69
|
+
swipe?: boolean;
|
|
70
|
+
}> & ProvidersProps;
|
|
69
71
|
export type ReactDigestDrawerProps = Omit<DrawerType, 'tabs'> & PropsWithChildren<{}> & {
|
|
70
72
|
tabId?: string;
|
|
71
73
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@dgui/react-shared",
|
|
3
3
|
"title": "Digested React GUI Shared Components",
|
|
4
4
|
"license": "LGPL-3.0-or-later",
|
|
5
|
-
"version": "1.5.0-next.
|
|
5
|
+
"version": "1.5.0-next.4",
|
|
6
6
|
"private": false,
|
|
7
7
|
"description": "Shared Components for a boilerplate React GUI",
|
|
8
8
|
"author": "wallzero @wallzeroblog (http://wallzero.com)",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"reactjs",
|
|
71
71
|
"typescript"
|
|
72
72
|
],
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "3d3590c48d9d4a7d81030d152192f2e9c972da5b"
|
|
74
74
|
}
|