@dgui/react-shared 1.4.0-next.2 → 1.5.0-beta.1
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/Providers/TabProvider.js.map +1 -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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabProvider.js","sourceRoot":"","sources":["../../src/Providers/TabProvider.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,0CAIqB;AAIrB,iCAOe;AAEf,MAAM,WAAW,GAAwC,
|
|
1
|
+
{"version":3,"file":"TabProvider.js","sourceRoot":"","sources":["../../src/Providers/TabProvider.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,0CAIqB;AAIrB,iCAOe;A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AAC;gBACxB,CAAC;YACF,CAAC,CACD,CAAC;YAEF,OAAO,CACN,CAAC,YAAY,EAAE,EAAE;gBAChB,IAAI,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC;oBACzB,MAII,KAAA,YAAY,EAFf,KAAC,KAAM,EAAE,IAAI,SAAA,EACV,YAAY,cAHV,uCAIL,CAAe,CAAC;oBAEjB,OAAO,YAAY,CAAC;gBACrB,CAAC;qBAAM,CAAC;oBACP,OAAO,YAAY,CAAC;gBACrB,CAAC;YACF,CAAC,CACD,CAAC;QACH,CAAC;IACF,CAAC,EACD;QACC,SAAS;KACT,CACD,CAAC;IAEF,MAAM,aAAa,GAAG,IAAA,eAAO,EAC5B,GAAG,EAAE;;QACJ,MAAM,KAAK,GAAG,MAAA,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,0CAAE,KAAK,CAAC;QAE9C,OAAO,KAAK,CAAC;IACd,CAAC,EACD;QACC,QAAQ;QACR,QAAQ;QACR,IAAI;KACJ,CACD,CAAC;IAEF,MAAM,KAAK,GAAG,IAAA,eAAO,EACpB,GAAG,EAAE;QACJ,OAAO;YACN,MAAM;YACN,SAAS;YACT,aAAa;YACb,QAAQ;YACR,IAAI;YACJ,SAAS;SACT,CAAC;IACH,CAAC,EACD;QACC,MAAM;QACN,SAAS;QACT,aAAa;QACb,QAAQ;QACR,IAAI;QACJ,SAAS;KACT,CACD,CAAC;IAEF,OAAO,CACN,uBAAC,qBAAU,CAAC,QAAQ,IACnB,KAAK,EAAE,KAAK,YAEX,QAAQ,GACY,CACtB,CAAC;AACH,CAAC,CAAC;AAEF,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC;AAExC,kBAAe,WAAW,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
|
+
"version": "1.5.0-beta.1",
|
|
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": "26700ba7ca1d75a0118871b2969af8c20bba039b"
|
|
74
74
|
}
|