@dgui/react-shared 1.8.3 → 1.8.5
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/cjs/Contexts/DrawerContext.js +7 -3
- package/dist/cjs/Contexts/DrawerContext.js.map +1 -1
- package/dist/cjs/Contexts/DrawerIndexContext.js +7 -3
- package/dist/cjs/Contexts/DrawerIndexContext.js.map +1 -1
- package/dist/cjs/Contexts/DrawerToggleContext.js +7 -3
- package/dist/cjs/Contexts/DrawerToggleContext.js.map +1 -1
- package/dist/cjs/Contexts/TabContext.js +7 -3
- package/dist/cjs/Contexts/TabContext.js.map +1 -1
- package/dist/cjs/Contexts/TabIndexContext.js +7 -3
- package/dist/cjs/Contexts/TabIndexContext.js.map +1 -1
- package/dist/cjs/Contexts/index.js +21 -5
- package/dist/cjs/Contexts/index.js.map +1 -1
- package/dist/cjs/Hooks/index.js +32 -16
- package/dist/cjs/Hooks/index.js.map +1 -1
- package/dist/cjs/Hooks/useAddDrawer.js +7 -4
- package/dist/cjs/Hooks/useAddDrawer.js.map +1 -1
- package/dist/cjs/Hooks/useAddTab.js +7 -4
- package/dist/cjs/Hooks/useAddTab.js.map +1 -1
- package/dist/cjs/Hooks/useDrawerIndex.js +6 -4
- package/dist/cjs/Hooks/useDrawerIndex.js.map +1 -1
- package/dist/cjs/Hooks/useDrawerOpen.js +6 -4
- package/dist/cjs/Hooks/useDrawerOpen.js.map +1 -1
- package/dist/cjs/Hooks/useDrawerOrder.js +7 -4
- package/dist/cjs/Hooks/useDrawerOrder.js.map +1 -1
- package/dist/cjs/Hooks/useDrawerStatus.js +7 -4
- package/dist/cjs/Hooks/useDrawerStatus.js.map +1 -1
- package/dist/cjs/Hooks/useDrawers.js +6 -4
- package/dist/cjs/Hooks/useDrawers.js.map +1 -1
- package/dist/cjs/Hooks/useRemoveDrawer.js +7 -4
- package/dist/cjs/Hooks/useRemoveDrawer.js.map +1 -1
- package/dist/cjs/Hooks/useRemoveTab.js +7 -4
- package/dist/cjs/Hooks/useRemoveTab.js.map +1 -1
- package/dist/cjs/Hooks/useSelectDrawer.js +7 -4
- package/dist/cjs/Hooks/useSelectDrawer.js.map +1 -1
- package/dist/cjs/Hooks/useSelectTab.js +7 -4
- package/dist/cjs/Hooks/useSelectTab.js.map +1 -1
- package/dist/cjs/Hooks/useSelectedTabID.js +8 -5
- package/dist/cjs/Hooks/useSelectedTabID.js.map +1 -1
- package/dist/cjs/Hooks/useTabIndex.js +7 -4
- package/dist/cjs/Hooks/useTabIndex.js.map +1 -1
- package/dist/cjs/Hooks/useTabOrder.js +7 -4
- package/dist/cjs/Hooks/useTabOrder.js.map +1 -1
- package/dist/cjs/Hooks/useTabs.js +7 -4
- package/dist/cjs/Hooks/useTabs.js.map +1 -1
- package/dist/cjs/Hooks/useToggleDrawer.js +7 -4
- package/dist/cjs/Hooks/useToggleDrawer.js.map +1 -1
- package/dist/cjs/Providers/DrawerIndexProvider.js +11 -9
- package/dist/cjs/Providers/DrawerIndexProvider.js.map +1 -1
- package/dist/cjs/Providers/DrawerProvider.js +14 -12
- package/dist/cjs/Providers/DrawerProvider.js.map +1 -1
- package/dist/cjs/Providers/DrawerToggleProvider.js +11 -9
- package/dist/cjs/Providers/DrawerToggleProvider.js.map +1 -1
- package/dist/cjs/Providers/TabIndexProvider.js +11 -9
- package/dist/cjs/Providers/TabIndexProvider.js.map +1 -1
- package/dist/cjs/Providers/TabProvider.js +17 -15
- package/dist/cjs/Providers/TabProvider.js.map +1 -1
- package/dist/cjs/Providers/index.js +14 -8
- package/dist/cjs/Providers/index.js.map +1 -1
- package/dist/cjs/Types.js +2 -1
- package/dist/cjs/index.js +18 -2
- package/dist/cjs/index.js.map +1 -1
- package/package.json +10 -10
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.drawerDefaults = exports.DrawerContext = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
2
5
|
const drawerDefaults = {
|
|
3
6
|
addDrawer: () => { },
|
|
4
7
|
drawerOrder: [],
|
|
5
8
|
drawers: {},
|
|
6
9
|
removeDrawer: () => { }
|
|
7
10
|
};
|
|
8
|
-
|
|
11
|
+
exports.drawerDefaults = drawerDefaults;
|
|
12
|
+
const DrawerContext = (0, react_1.createContext)(drawerDefaults);
|
|
13
|
+
exports.DrawerContext = DrawerContext;
|
|
9
14
|
DrawerContext.displayName = 'DrawerContext';
|
|
10
|
-
export { DrawerContext, drawerDefaults };
|
|
11
15
|
//# sourceMappingURL=DrawerContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerContext.js","sourceRoot":"","sources":["../../../src/Contexts/DrawerContext.ts"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"DrawerContext.js","sourceRoot":"","sources":["../../../src/Contexts/DrawerContext.ts"],"names":[],"mappings":";;;AAGA,iCAEe;AAEf,MAAM,cAAc,GAAuB;IACzC,SAAS,EAAE,GAAG,EAAE,GAAE,CAAC;IACnB,WAAW,EAAE,EAAE;IACf,OAAO,EAAE,EAAE;IACX,YAAY,EAAE,GAAG,EAAE,GAAE,CAAC;CACvB,CAAC;AAQA,wCAAc;AANhB,MAAM,aAAa,GAAG,IAAA,qBAAa,EAAqB,cAAc,CAAC,CAAC;AAKtE,sCAAa;AAHf,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.drawerIndexDefaults = exports.DrawerIndexContext = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
2
5
|
const drawerIndexDefaults = {
|
|
3
6
|
drawerIndex: 0,
|
|
4
7
|
selectDrawer: () => { }
|
|
5
8
|
};
|
|
6
|
-
|
|
9
|
+
exports.drawerIndexDefaults = drawerIndexDefaults;
|
|
10
|
+
const DrawerIndexContext = (0, react_1.createContext)(drawerIndexDefaults);
|
|
11
|
+
exports.DrawerIndexContext = DrawerIndexContext;
|
|
7
12
|
DrawerIndexContext.displayName = 'DrawerIndexContext';
|
|
8
|
-
export { DrawerIndexContext, drawerIndexDefaults };
|
|
9
13
|
//# sourceMappingURL=DrawerIndexContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerIndexContext.js","sourceRoot":"","sources":["../../../src/Contexts/DrawerIndexContext.ts"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"DrawerIndexContext.js","sourceRoot":"","sources":["../../../src/Contexts/DrawerIndexContext.ts"],"names":[],"mappings":";;;AAGA,iCAEe;AAEf,MAAM,mBAAmB,GAA4B;IACnD,WAAW,EAAE,CAAC;IACd,YAAY,EAAE,GAAG,EAAE,GAAE,CAAC;CACvB,CAAC;AAQA,kDAAmB;AANrB,MAAM,kBAAkB,GAAG,IAAA,qBAAa,EAA0B,mBAAmB,CAAC,CAAC;AAKrF,gDAAkB;AAHpB,kBAAkB,CAAC,WAAW,GAAG,oBAAoB,CAAC"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.drawerToggleDefaults = exports.DrawerToggleContext = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
2
5
|
const drawerToggleDefaults = {
|
|
3
6
|
drawerOpen: false,
|
|
4
7
|
toggleDrawer: () => { }
|
|
5
8
|
};
|
|
6
|
-
|
|
9
|
+
exports.drawerToggleDefaults = drawerToggleDefaults;
|
|
10
|
+
const DrawerToggleContext = (0, react_1.createContext)(drawerToggleDefaults);
|
|
11
|
+
exports.DrawerToggleContext = DrawerToggleContext;
|
|
7
12
|
DrawerToggleContext.displayName = 'DrawerToggleContext';
|
|
8
|
-
export { DrawerToggleContext, drawerToggleDefaults };
|
|
9
13
|
//# sourceMappingURL=DrawerToggleContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerToggleContext.js","sourceRoot":"","sources":["../../../src/Contexts/DrawerToggleContext.ts"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"DrawerToggleContext.js","sourceRoot":"","sources":["../../../src/Contexts/DrawerToggleContext.ts"],"names":[],"mappings":";;;AAGA,iCAEe;AAEf,MAAM,oBAAoB,GAA6B;IACrD,UAAU,EAAE,KAAK;IACjB,YAAY,EAAE,GAAG,EAAE,GAAE,CAAC;CACvB,CAAC;AAQA,oDAAoB;AANtB,MAAM,mBAAmB,GAAG,IAAA,qBAAa,EAA2B,oBAAoB,CAAC,CAAC;AAKxF,kDAAmB;AAHrB,mBAAmB,CAAC,WAAW,GAAG,qBAAqB,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tabDefaults = exports.TabContext = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
2
5
|
const tabDefaults = {
|
|
3
6
|
addTab: () => { },
|
|
4
7
|
removeTab: () => { },
|
|
@@ -7,7 +10,8 @@ const tabDefaults = {
|
|
|
7
10
|
tabs: {},
|
|
8
11
|
updateTab: () => { }
|
|
9
12
|
};
|
|
10
|
-
|
|
13
|
+
exports.tabDefaults = tabDefaults;
|
|
14
|
+
const TabContext = (0, react_1.createContext)(tabDefaults);
|
|
15
|
+
exports.TabContext = TabContext;
|
|
11
16
|
TabContext.displayName = 'TabContext';
|
|
12
|
-
export { TabContext, tabDefaults };
|
|
13
17
|
//# sourceMappingURL=TabContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabContext.js","sourceRoot":"","sources":["../../../src/Contexts/TabContext.ts"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"TabContext.js","sourceRoot":"","sources":["../../../src/Contexts/TabContext.ts"],"names":[],"mappings":";;;AAGA,iCAEe;AAEf,MAAM,WAAW,GAAoB;IACnC,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;IAChB,SAAS,EAAE,GAAG,EAAE,GAAE,CAAC;IACnB,aAAa,EAAE,EAAE;IACjB,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;IACR,SAAS,EAAE,GAAG,EAAE,GAAE,CAAC;CACpB,CAAC;AAQA,kCAAW;AANb,MAAM,UAAU,GAAG,IAAA,qBAAa,EAAkB,WAAW,CAAC,CAAC;AAK7D,gCAAU;AAHZ,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tabIndexDefaults = exports.TabIndexContext = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
2
5
|
const tabIndexDefaults = {
|
|
3
6
|
selectTab: () => { },
|
|
4
7
|
tabIndex: 0
|
|
5
8
|
};
|
|
6
|
-
|
|
9
|
+
exports.tabIndexDefaults = tabIndexDefaults;
|
|
10
|
+
const TabIndexContext = (0, react_1.createContext)(tabIndexDefaults);
|
|
11
|
+
exports.TabIndexContext = TabIndexContext;
|
|
7
12
|
TabIndexContext.displayName = 'TabIndexContext';
|
|
8
|
-
export { TabIndexContext, tabIndexDefaults };
|
|
9
13
|
//# sourceMappingURL=TabIndexContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabIndexContext.js","sourceRoot":"","sources":["../../../src/Contexts/TabIndexContext.ts"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"TabIndexContext.js","sourceRoot":"","sources":["../../../src/Contexts/TabIndexContext.ts"],"names":[],"mappings":";;;AAGA,iCAEe;AAEf,MAAM,gBAAgB,GAAyB;IAC7C,SAAS,EAAE,GAAG,EAAE,GAAE,CAAC;IACnB,QAAQ,EAAE,CAAC;CACZ,CAAC;AAQA,4CAAgB;AANlB,MAAM,eAAe,GAAG,IAAA,qBAAa,EAAuB,gBAAgB,CAAC,CAAC;AAK5E,0CAAe;AAHjB,eAAe,CAAC,WAAW,GAAG,iBAAiB,CAAC"}
|
|
@@ -1,6 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./DrawerContext"), exports);
|
|
18
|
+
__exportStar(require("./DrawerIndexContext"), exports);
|
|
19
|
+
__exportStar(require("./DrawerToggleContext"), exports);
|
|
20
|
+
__exportStar(require("./TabContext"), exports);
|
|
21
|
+
__exportStar(require("./TabIndexContext"), exports);
|
|
6
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Contexts/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Contexts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,uDAAqC;AACrC,wDAAsC;AACtC,+CAA6B;AAC7B,oDAAkC"}
|
package/dist/cjs/Hooks/index.js
CHANGED
|
@@ -1,17 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./useAddDrawer"), exports);
|
|
18
|
+
__exportStar(require("./useAddTab"), exports);
|
|
19
|
+
__exportStar(require("./useDrawerIndex"), exports);
|
|
20
|
+
__exportStar(require("./useDrawerOpen"), exports);
|
|
21
|
+
__exportStar(require("./useDrawerOrder"), exports);
|
|
22
|
+
__exportStar(require("./useDrawers"), exports);
|
|
23
|
+
__exportStar(require("./useDrawerStatus"), exports);
|
|
24
|
+
__exportStar(require("./useRemoveDrawer"), exports);
|
|
25
|
+
__exportStar(require("./useRemoveTab"), exports);
|
|
26
|
+
__exportStar(require("./useSelectDrawer"), exports);
|
|
27
|
+
__exportStar(require("./useSelectedTabID"), exports);
|
|
28
|
+
__exportStar(require("./useSelectTab"), exports);
|
|
29
|
+
__exportStar(require("./useTabIndex"), exports);
|
|
30
|
+
__exportStar(require("./useTabOrder"), exports);
|
|
31
|
+
__exportStar(require("./useTabs"), exports);
|
|
32
|
+
__exportStar(require("./useToggleDrawer"), exports);
|
|
17
33
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Hooks/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Hooks/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,8CAA4B;AAC5B,mDAAiC;AACjC,kDAAgC;AAChC,mDAAiC;AACjC,+CAA6B;AAC7B,oDAAkC;AAClC,oDAAkC;AAClC,iDAA+B;AAC/B,oDAAkC;AAClC,qDAAmC;AACnC,iDAA+B;AAC/B,gDAA8B;AAC9B,gDAA8B;AAC9B,4CAA0B;AAC1B,oDAAkC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useAddDrawer = void 0;
|
|
4
|
+
const Contexts_1 = require("../Contexts");
|
|
5
|
+
const react_1 = require("react");
|
|
3
6
|
const useAddDrawer = () => {
|
|
4
|
-
const { addDrawer } = useContext(DrawerContext);
|
|
7
|
+
const { addDrawer } = (0, react_1.useContext)(Contexts_1.DrawerContext);
|
|
5
8
|
return addDrawer;
|
|
6
9
|
};
|
|
7
|
-
|
|
10
|
+
exports.useAddDrawer = useAddDrawer;
|
|
8
11
|
//# sourceMappingURL=useAddDrawer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAddDrawer.js","sourceRoot":"","sources":["../../../src/Hooks/useAddDrawer.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"useAddDrawer.js","sourceRoot":"","sources":["../../../src/Hooks/useAddDrawer.ts"],"names":[],"mappings":";;;AAAA,0CAEqB;AACrB,iCAEe;AAEf,MAAM,YAAY,GAAG,GAAG,EAAE;IACxB,MAAM,EACJ,SAAS,EACV,GAAG,IAAA,kBAAU,EAAC,wBAAa,CAAC,CAAC;IAE9B,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAGA,oCAAY"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useAddTab = void 0;
|
|
4
|
+
const Contexts_1 = require("../Contexts");
|
|
5
|
+
const react_1 = require("react");
|
|
3
6
|
const useAddTab = () => {
|
|
4
|
-
const { addTab } = useContext(TabContext);
|
|
7
|
+
const { addTab } = (0, react_1.useContext)(Contexts_1.TabContext);
|
|
5
8
|
return addTab;
|
|
6
9
|
};
|
|
7
|
-
|
|
10
|
+
exports.useAddTab = useAddTab;
|
|
8
11
|
//# sourceMappingURL=useAddTab.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAddTab.js","sourceRoot":"","sources":["../../../src/Hooks/useAddTab.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"useAddTab.js","sourceRoot":"","sources":["../../../src/Hooks/useAddTab.ts"],"names":[],"mappings":";;;AAAA,0CAEqB;AACrB,iCAEe;AAEf,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,EACJ,MAAM,EACP,GAAG,IAAA,kBAAU,EAAC,qBAAU,CAAC,CAAC;IAE3B,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAGA,8BAAS"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useDrawerIndex = useDrawerIndex;
|
|
4
|
+
const Contexts_1 = require("../Contexts");
|
|
5
|
+
const react_1 = require("react");
|
|
3
6
|
function useDrawerIndex() {
|
|
4
|
-
const { drawerIndex } = useContext(DrawerIndexContext);
|
|
7
|
+
const { drawerIndex } = (0, react_1.useContext)(Contexts_1.DrawerIndexContext);
|
|
5
8
|
return drawerIndex;
|
|
6
9
|
}
|
|
7
|
-
export { useDrawerIndex };
|
|
8
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":";;AAiBE,wCAAc;AAjBhB,0CAEqB;AACrB,iCAEe;AAGf,SAAS,cAAc;IACrB,MAAM,EACJ,WAAW,EACZ,GAAG,IAAA,kBAAU,EAAC,6BAAkB,CAAC,CAAC;IAEnC,OAAO,WAAW,CAAC;AACrB,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useDrawerOpen = useDrawerOpen;
|
|
4
|
+
const Contexts_1 = require("../Contexts");
|
|
5
|
+
const react_1 = require("react");
|
|
3
6
|
function useDrawerOpen() {
|
|
4
|
-
const { drawerOpen } = useContext(DrawerToggleContext);
|
|
7
|
+
const { drawerOpen } = (0, react_1.useContext)(Contexts_1.DrawerToggleContext);
|
|
5
8
|
return drawerOpen;
|
|
6
9
|
}
|
|
7
|
-
export { useDrawerOpen };
|
|
8
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":";;AAiBE,sCAAa;AAjBf,0CAEqB;AACrB,iCAEe;AAGf,SAAS,aAAa;IACpB,MAAM,EACJ,UAAU,EACX,GAAG,IAAA,kBAAU,EAAC,8BAAmB,CAAC,CAAC;IAEpC,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useDrawerOrder = void 0;
|
|
4
|
+
const Contexts_1 = require("../Contexts");
|
|
5
|
+
const react_1 = require("react");
|
|
3
6
|
const useDrawerOrder = () => {
|
|
4
|
-
const { drawerOrder } = useContext(DrawerContext);
|
|
7
|
+
const { drawerOrder } = (0, react_1.useContext)(Contexts_1.DrawerContext);
|
|
5
8
|
return drawerOrder;
|
|
6
9
|
};
|
|
7
|
-
|
|
10
|
+
exports.useDrawerOrder = useDrawerOrder;
|
|
8
11
|
//# sourceMappingURL=useDrawerOrder.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDrawerOrder.js","sourceRoot":"","sources":["../../../src/Hooks/useDrawerOrder.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"useDrawerOrder.js","sourceRoot":"","sources":["../../../src/Hooks/useDrawerOrder.ts"],"names":[],"mappings":";;;AAAA,0CAEqB;AACrB,iCAEe;AAEf,MAAM,cAAc,GAAG,GAAG,EAAE;IAC1B,MAAM,EACJ,WAAW,EACZ,GAAG,IAAA,kBAAU,EAAC,wBAAa,CAAC,CAAC;IAE9B,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC;AAGA,wCAAc"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useDrawerStatus = void 0;
|
|
4
|
+
const Contexts_1 = require("../Contexts");
|
|
5
|
+
const react_1 = require("react");
|
|
3
6
|
const useDrawerStatus = () => {
|
|
4
|
-
const { drawerOpen } = useContext(DrawerToggleContext);
|
|
7
|
+
const { drawerOpen } = (0, react_1.useContext)(Contexts_1.DrawerToggleContext);
|
|
5
8
|
return drawerOpen;
|
|
6
9
|
};
|
|
7
|
-
|
|
10
|
+
exports.useDrawerStatus = useDrawerStatus;
|
|
8
11
|
//# sourceMappingURL=useDrawerStatus.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDrawerStatus.js","sourceRoot":"","sources":["../../../src/Hooks/useDrawerStatus.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"useDrawerStatus.js","sourceRoot":"","sources":["../../../src/Hooks/useDrawerStatus.ts"],"names":[],"mappings":";;;AAAA,0CAEqB;AACrB,iCAEe;AAEf,MAAM,eAAe,GAAG,GAAG,EAAE;IAC3B,MAAM,EACJ,UAAU,EACX,GAAG,IAAA,kBAAU,EAAC,8BAAmB,CAAC,CAAC;IAEpC,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AAGA,0CAAe"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useDrawers = useDrawers;
|
|
4
|
+
const Contexts_1 = require("../Contexts");
|
|
5
|
+
const react_1 = require("react");
|
|
3
6
|
function useDrawers() {
|
|
4
|
-
const { drawers } = useContext(DrawerContext);
|
|
7
|
+
const { drawers } = (0, react_1.useContext)(Contexts_1.DrawerContext);
|
|
5
8
|
return drawers;
|
|
6
9
|
}
|
|
7
|
-
export { useDrawers };
|
|
8
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":";;AAiBE,gCAAU;AAjBZ,0CAEqB;AACrB,iCAEe;AAGf,SAAS,UAAU;IACjB,MAAM,EACJ,OAAO,EACR,GAAG,IAAA,kBAAU,EAAC,wBAAa,CAAC,CAAC;IAE9B,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useRemoveDrawer = void 0;
|
|
4
|
+
const Contexts_1 = require("../Contexts");
|
|
5
|
+
const react_1 = require("react");
|
|
3
6
|
const useRemoveDrawer = () => {
|
|
4
|
-
const { removeDrawer } = useContext(DrawerContext);
|
|
7
|
+
const { removeDrawer } = (0, react_1.useContext)(Contexts_1.DrawerContext);
|
|
5
8
|
return removeDrawer;
|
|
6
9
|
};
|
|
7
|
-
|
|
10
|
+
exports.useRemoveDrawer = useRemoveDrawer;
|
|
8
11
|
//# sourceMappingURL=useRemoveDrawer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRemoveDrawer.js","sourceRoot":"","sources":["../../../src/Hooks/useRemoveDrawer.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"useRemoveDrawer.js","sourceRoot":"","sources":["../../../src/Hooks/useRemoveDrawer.ts"],"names":[],"mappings":";;;AAAA,0CAEqB;AACrB,iCAEe;AAEf,MAAM,eAAe,GAAG,GAAG,EAAE;IAC3B,MAAM,EACJ,YAAY,EACb,GAAG,IAAA,kBAAU,EAAC,wBAAa,CAAC,CAAC;IAE9B,OAAO,YAAY,CAAC;AACtB,CAAC,CAAC;AAGA,0CAAe"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useRemoveTab = void 0;
|
|
4
|
+
const Contexts_1 = require("../Contexts");
|
|
5
|
+
const react_1 = require("react");
|
|
3
6
|
const useRemoveTab = () => {
|
|
4
|
-
const { removeTab } = useContext(TabContext);
|
|
7
|
+
const { removeTab } = (0, react_1.useContext)(Contexts_1.TabContext);
|
|
5
8
|
return removeTab;
|
|
6
9
|
};
|
|
7
|
-
|
|
10
|
+
exports.useRemoveTab = useRemoveTab;
|
|
8
11
|
//# sourceMappingURL=useRemoveTab.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRemoveTab.js","sourceRoot":"","sources":["../../../src/Hooks/useRemoveTab.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"useRemoveTab.js","sourceRoot":"","sources":["../../../src/Hooks/useRemoveTab.ts"],"names":[],"mappings":";;;AAAA,0CAEqB;AACrB,iCAEe;AAEf,MAAM,YAAY,GAAG,GAAG,EAAE;IACxB,MAAM,EACJ,SAAS,EACV,GAAG,IAAA,kBAAU,EAAC,qBAAU,CAAC,CAAC;IAE3B,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAGA,oCAAY"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useSelectDrawer = void 0;
|
|
4
|
+
const Contexts_1 = require("../Contexts");
|
|
5
|
+
const react_1 = require("react");
|
|
3
6
|
const useSelectDrawer = () => {
|
|
4
|
-
const { selectDrawer } = useContext(DrawerIndexContext);
|
|
7
|
+
const { selectDrawer } = (0, react_1.useContext)(Contexts_1.DrawerIndexContext);
|
|
5
8
|
return selectDrawer;
|
|
6
9
|
};
|
|
7
|
-
|
|
10
|
+
exports.useSelectDrawer = useSelectDrawer;
|
|
8
11
|
//# sourceMappingURL=useSelectDrawer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSelectDrawer.js","sourceRoot":"","sources":["../../../src/Hooks/useSelectDrawer.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"useSelectDrawer.js","sourceRoot":"","sources":["../../../src/Hooks/useSelectDrawer.ts"],"names":[],"mappings":";;;AAAA,0CAEqB;AACrB,iCAEe;AAEf,MAAM,eAAe,GAAG,GAAG,EAAE;IAC3B,MAAM,EACJ,YAAY,EACb,GAAG,IAAA,kBAAU,EAAC,6BAAkB,CAAC,CAAC;IAEnC,OAAO,YAAY,CAAC;AACtB,CAAC,CAAC;AAGA,0CAAe"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useSelectTab = void 0;
|
|
4
|
+
const Contexts_1 = require("../Contexts");
|
|
5
|
+
const react_1 = require("react");
|
|
3
6
|
const useSelectTab = () => {
|
|
4
|
-
const { selectTab } = useContext(TabIndexContext);
|
|
7
|
+
const { selectTab } = (0, react_1.useContext)(Contexts_1.TabIndexContext);
|
|
5
8
|
return selectTab;
|
|
6
9
|
};
|
|
7
|
-
|
|
10
|
+
exports.useSelectTab = useSelectTab;
|
|
8
11
|
//# sourceMappingURL=useSelectTab.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSelectTab.js","sourceRoot":"","sources":["../../../src/Hooks/useSelectTab.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"useSelectTab.js","sourceRoot":"","sources":["../../../src/Hooks/useSelectTab.ts"],"names":[],"mappings":";;;AAAA,0CAEqB;AACrB,iCAEe;AAEf,MAAM,YAAY,GAAG,GAAG,EAAE;IACxB,MAAM,EACJ,SAAS,EACV,GAAG,IAAA,kBAAU,EAAC,0BAAe,CAAC,CAAC;IAEhC,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAGA,oCAAY"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useSelectedTabID = void 0;
|
|
4
|
+
const useTabIndex_1 = require("./useTabIndex");
|
|
5
|
+
const useTabOrder_1 = require("./useTabOrder");
|
|
3
6
|
const useSelectedTabID = () => {
|
|
4
|
-
const tabOrder = useTabOrder();
|
|
5
|
-
const tabIndex = useTabIndex();
|
|
7
|
+
const tabOrder = (0, useTabOrder_1.useTabOrder)();
|
|
8
|
+
const tabIndex = (0, useTabIndex_1.useTabIndex)();
|
|
6
9
|
const selectedTabID = tabOrder[tabIndex];
|
|
7
10
|
return selectedTabID;
|
|
8
11
|
};
|
|
9
|
-
|
|
12
|
+
exports.useSelectedTabID = useSelectedTabID;
|
|
10
13
|
//# sourceMappingURL=useSelectedTabID.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSelectedTabID.js","sourceRoot":"","sources":["../../../src/Hooks/useSelectedTabID.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"useSelectedTabID.js","sourceRoot":"","sources":["../../../src/Hooks/useSelectedTabID.ts"],"names":[],"mappings":";;;AAAA,+CAEuB;AACvB,+CAEuB;AAEvB,MAAM,gBAAgB,GAAG,GAAG,EAAE;IAC5B,MAAM,QAAQ,GAAG,IAAA,yBAAW,GAAE,CAAC;IAC/B,MAAM,QAAQ,GAAG,IAAA,yBAAW,GAAE,CAAC;IAE/B,MAAM,aAAa,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAEzC,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC;AAGA,4CAAgB"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useTabIndex = void 0;
|
|
4
|
+
const Contexts_1 = require("../Contexts");
|
|
5
|
+
const react_1 = require("react");
|
|
3
6
|
const useTabIndex = () => {
|
|
4
|
-
const { tabIndex } = useContext(TabIndexContext);
|
|
7
|
+
const { tabIndex } = (0, react_1.useContext)(Contexts_1.TabIndexContext);
|
|
5
8
|
return tabIndex;
|
|
6
9
|
};
|
|
7
|
-
|
|
10
|
+
exports.useTabIndex = useTabIndex;
|
|
8
11
|
//# sourceMappingURL=useTabIndex.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTabIndex.js","sourceRoot":"","sources":["../../../src/Hooks/useTabIndex.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"useTabIndex.js","sourceRoot":"","sources":["../../../src/Hooks/useTabIndex.ts"],"names":[],"mappings":";;;AAAA,0CAEqB;AACrB,iCAEe;AAEf,MAAM,WAAW,GAAG,GAAG,EAAE;IACvB,MAAM,EACJ,QAAQ,EACT,GAAG,IAAA,kBAAU,EAAC,0BAAe,CAAC,CAAC;IAEhC,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAGA,kCAAW"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useTabOrder = void 0;
|
|
4
|
+
const Contexts_1 = require("../Contexts");
|
|
5
|
+
const react_1 = require("react");
|
|
3
6
|
const useTabOrder = () => {
|
|
4
|
-
const { tabOrder } = useContext(TabContext);
|
|
7
|
+
const { tabOrder } = (0, react_1.useContext)(Contexts_1.TabContext);
|
|
5
8
|
return tabOrder;
|
|
6
9
|
};
|
|
7
|
-
|
|
10
|
+
exports.useTabOrder = useTabOrder;
|
|
8
11
|
//# sourceMappingURL=useTabOrder.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTabOrder.js","sourceRoot":"","sources":["../../../src/Hooks/useTabOrder.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"useTabOrder.js","sourceRoot":"","sources":["../../../src/Hooks/useTabOrder.ts"],"names":[],"mappings":";;;AAAA,0CAEqB;AACrB,iCAEe;AAEf,MAAM,WAAW,GAAG,GAAG,EAAE;IACvB,MAAM,EACJ,QAAQ,EACT,GAAG,IAAA,kBAAU,EAAC,qBAAU,CAAC,CAAC;IAE3B,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAGA,kCAAW"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useTabs = void 0;
|
|
4
|
+
const Contexts_1 = require("../Contexts");
|
|
5
|
+
const react_1 = require("react");
|
|
3
6
|
const useTabs = () => {
|
|
4
|
-
const { tabs } = useContext(TabContext);
|
|
7
|
+
const { tabs } = (0, react_1.useContext)(Contexts_1.TabContext);
|
|
5
8
|
return tabs;
|
|
6
9
|
};
|
|
7
|
-
|
|
10
|
+
exports.useTabs = useTabs;
|
|
8
11
|
//# sourceMappingURL=useTabs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTabs.js","sourceRoot":"","sources":["../../../src/Hooks/useTabs.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"useTabs.js","sourceRoot":"","sources":["../../../src/Hooks/useTabs.ts"],"names":[],"mappings":";;;AAAA,0CAEqB;AACrB,iCAEe;AAEf,MAAM,OAAO,GAAG,GAAG,EAAE;IACnB,MAAM,EACJ,IAAI,EACL,GAAG,IAAA,kBAAU,EAAC,qBAAU,CAAC,CAAC;IAE3B,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAGA,0BAAO"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useDrawerToggle = void 0;
|
|
4
|
+
const Contexts_1 = require("../Contexts");
|
|
5
|
+
const react_1 = require("react");
|
|
3
6
|
const useDrawerToggle = () => {
|
|
4
|
-
const { toggleDrawer } = useContext(DrawerToggleContext);
|
|
7
|
+
const { toggleDrawer } = (0, react_1.useContext)(Contexts_1.DrawerToggleContext);
|
|
5
8
|
return toggleDrawer;
|
|
6
9
|
};
|
|
7
|
-
|
|
10
|
+
exports.useDrawerToggle = useDrawerToggle;
|
|
8
11
|
//# sourceMappingURL=useToggleDrawer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useToggleDrawer.js","sourceRoot":"","sources":["../../../src/Hooks/useToggleDrawer.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"useToggleDrawer.js","sourceRoot":"","sources":["../../../src/Hooks/useToggleDrawer.ts"],"names":[],"mappings":";;;AAAA,0CAEqB;AACrB,iCAEe;AAEf,MAAM,eAAe,GAAG,GAAG,EAAE;IAC3B,MAAM,EACJ,YAAY,EACb,GAAG,IAAA,kBAAU,EAAC,8BAAmB,CAAC,CAAC;IAEpC,OAAO,YAAY,CAAC;AACtB,CAAC,CAAC;AAGA,0CAAe"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const Contexts_1 = require("../Contexts");
|
|
5
|
+
const react_1 = require("react");
|
|
4
6
|
const DrawerIndexProvider = ({ children, drawerIndex: givenDrawerIndex, onSelectDrawer }) => {
|
|
5
|
-
const [drawerIndex, setDrawerIndex] = useState(drawerIndexDefaults.drawerIndex);
|
|
6
|
-
useEffect(() => {
|
|
7
|
+
const [drawerIndex, setDrawerIndex] = (0, react_1.useState)(Contexts_1.drawerIndexDefaults.drawerIndex);
|
|
8
|
+
(0, react_1.useEffect)(() => {
|
|
7
9
|
const safeIndex = Number.isSafeInteger(givenDrawerIndex) &&
|
|
8
10
|
Number(givenDrawerIndex);
|
|
9
11
|
if (safeIndex) {
|
|
@@ -12,7 +14,7 @@ const DrawerIndexProvider = ({ children, drawerIndex: givenDrawerIndex, onSelect
|
|
|
12
14
|
}, [
|
|
13
15
|
givenDrawerIndex
|
|
14
16
|
]);
|
|
15
|
-
useEffect(() => {
|
|
17
|
+
(0, react_1.useEffect)(() => {
|
|
16
18
|
if (onSelectDrawer) {
|
|
17
19
|
onSelectDrawer(drawerIndex);
|
|
18
20
|
}
|
|
@@ -20,7 +22,7 @@ const DrawerIndexProvider = ({ children, drawerIndex: givenDrawerIndex, onSelect
|
|
|
20
22
|
drawerIndex,
|
|
21
23
|
onSelectDrawer
|
|
22
24
|
]);
|
|
23
|
-
const value = useMemo(() => {
|
|
25
|
+
const value = (0, react_1.useMemo)(() => {
|
|
24
26
|
return {
|
|
25
27
|
drawerIndex,
|
|
26
28
|
selectDrawer: setDrawerIndex
|
|
@@ -29,8 +31,8 @@ const DrawerIndexProvider = ({ children, drawerIndex: givenDrawerIndex, onSelect
|
|
|
29
31
|
drawerIndex,
|
|
30
32
|
setDrawerIndex
|
|
31
33
|
]);
|
|
32
|
-
return (
|
|
34
|
+
return ((0, jsx_runtime_1.jsx)(Contexts_1.DrawerIndexContext.Provider, { value: value, children: children }));
|
|
33
35
|
};
|
|
34
36
|
DrawerIndexProvider.displayName = 'DrawerIndexProvider';
|
|
35
|
-
|
|
37
|
+
exports.default = DrawerIndexProvider;
|
|
36
38
|
//# sourceMappingURL=DrawerIndexProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerIndexProvider.js","sourceRoot":"","sources":["../../../src/Providers/DrawerIndexProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DrawerIndexProvider.js","sourceRoot":"","sources":["../../../src/Providers/DrawerIndexProvider.tsx"],"names":[],"mappings":";;;AAAA,0CAGqB;AAIrB,iCAKe;AAEf,MAAM,mBAAmB,GAAgD,CAAC,EACxE,QAAQ,EACR,WAAW,EAAE,gBAAgB,EAC7B,cAAc,EACf,EAAE,EAAE;IACH,MAAM,CACJ,WAAW,EACX,cAAc,CACf,GAAG,IAAA,gBAAQ,EAAC,8BAAmB,CAAC,WAAW,CAAC,CAAC;IAE9C,IAAA,iBAAS,EACP,GAAG,EAAE;QACH,MAAM,SAAS,GAAG,MAAM,CAAC,aAAa,CAAC,gBAAgB,CAAC;YACtD,MAAM,CAAC,gBAAgB,CAAC,CAAC;QAE3B,IACE,SAAS,EACT,CAAC;YACD,cAAc,CAAC,SAAS,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC,EACD;QACE,gBAAgB;KACjB,CACF,CAAC;IAEF,IAAA,iBAAS,EACP,GAAG,EAAE;QACH,IAAI,cAAc,EAAE,CAAC;YACnB,cAAc,CAAC,WAAW,CAAC,CAAC;QAC9B,CAAC;IACH,CAAC,EACD;QACE,WAAW;QACX,cAAc;KACf,CACF,CAAC;IAEF,MAAM,KAAK,GAAG,IAAA,eAAO,EACnB,GAAG,EAAE;QACH,OAAO;YACL,WAAW;YACX,YAAY,EAAE,cAAc;SAC7B,CAAC;IACJ,CAAC,EACD;QACE,WAAW;QACX,cAAc;KACf,CACF,CAAC;IAEF,OAAO,CACL,uBAAC,6BAAkB,CAAC,QAAQ,IAC1B,KAAK,EAAE,KAAK,YAEX,QAAQ,GACmB,CAC/B,CAAC;AACJ,CAAC,CAAC;AAEF,mBAAmB,CAAC,WAAW,GAAG,qBAAqB,CAAC;AAExD,kBAAe,mBAAmB,CAAC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const Contexts_1 = require("../Contexts");
|
|
5
|
+
const react_1 = require("react");
|
|
4
6
|
const DrawerProvider = ({ children }) => {
|
|
5
|
-
const [drawers, setDrawers] = useState(drawerDefaults.drawers);
|
|
6
|
-
const [drawerIndexes, setDrawerIndexes] = useState({});
|
|
7
|
-
const [drawerOrder, setDrawerOrder] = useState(drawerDefaults.drawerOrder);
|
|
8
|
-
const resetDrawerOrder = useCallback((updatedDrawerIndexes) => {
|
|
7
|
+
const [drawers, setDrawers] = (0, react_1.useState)(Contexts_1.drawerDefaults.drawers);
|
|
8
|
+
const [drawerIndexes, setDrawerIndexes] = (0, react_1.useState)({});
|
|
9
|
+
const [drawerOrder, setDrawerOrder] = (0, react_1.useState)(Contexts_1.drawerDefaults.drawerOrder);
|
|
10
|
+
const resetDrawerOrder = (0, react_1.useCallback)((updatedDrawerIndexes) => {
|
|
9
11
|
setDrawerOrder(() => {
|
|
10
12
|
const ids = Object.keys(updatedDrawerIndexes);
|
|
11
13
|
ids.sort((drawer1, drawer2) => {
|
|
@@ -16,7 +18,7 @@ const DrawerProvider = ({ children }) => {
|
|
|
16
18
|
return ids;
|
|
17
19
|
});
|
|
18
20
|
}, []);
|
|
19
|
-
const addDrawer = useCallback((drawer) => {
|
|
21
|
+
const addDrawer = (0, react_1.useCallback)((drawer) => {
|
|
20
22
|
const { drawerId, tabId, ...restOfDrawer } = drawer;
|
|
21
23
|
setDrawers((previousDrawers) => {
|
|
22
24
|
const existingDrawer = previousDrawers[drawerId];
|
|
@@ -82,7 +84,7 @@ const DrawerProvider = ({ children }) => {
|
|
|
82
84
|
}
|
|
83
85
|
});
|
|
84
86
|
}, []);
|
|
85
|
-
const removeDrawer = useCallback((drawerId) => {
|
|
87
|
+
const removeDrawer = (0, react_1.useCallback)((drawerId) => {
|
|
86
88
|
let emptyDrawer = true;
|
|
87
89
|
setDrawers((previousDrawers) => {
|
|
88
90
|
const tabs = previousDrawers[drawerId]?.tabs;
|
|
@@ -107,7 +109,7 @@ const DrawerProvider = ({ children }) => {
|
|
|
107
109
|
}
|
|
108
110
|
});
|
|
109
111
|
}, []);
|
|
110
|
-
const value = useMemo(() => {
|
|
112
|
+
const value = (0, react_1.useMemo)(() => {
|
|
111
113
|
return {
|
|
112
114
|
addDrawer,
|
|
113
115
|
drawerOrder,
|
|
@@ -120,8 +122,8 @@ const DrawerProvider = ({ children }) => {
|
|
|
120
122
|
drawers,
|
|
121
123
|
removeDrawer
|
|
122
124
|
]);
|
|
123
|
-
return (
|
|
125
|
+
return ((0, jsx_runtime_1.jsx)(Contexts_1.DrawerContext.Provider, { value: value, children: children }));
|
|
124
126
|
};
|
|
125
127
|
DrawerProvider.displayName = 'DrawerProvider';
|
|
126
|
-
|
|
128
|
+
exports.default = DrawerProvider;
|
|
127
129
|
//# sourceMappingURL=DrawerProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerProvider.js","sourceRoot":"","sources":["../../../src/Providers/DrawerProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DrawerProvider.js","sourceRoot":"","sources":["../../../src/Providers/DrawerProvider.tsx"],"names":[],"mappings":";;;AAAA,0CAGqB;AAIrB,iCAMe;AAMf,MAAM,cAAc,GAA2C,CAAC,EAC9D,QAAQ,EACT,EAAE,EAAE;IACH,MAAM,CACJ,OAAO,EACP,UAAU,CACX,GAAG,IAAA,gBAAQ,EAAC,yBAAc,CAAC,OAAO,CAAC,CAAC;IAErC,MAAM,CAIJ,aAAa,EACb,gBAAgB,CACjB,GAAG,IAAA,gBA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
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const Contexts_1 = require("../Contexts");
|
|
5
|
+
const react_1 = require("react");
|
|
4
6
|
const DrawerToggleProvider = ({ children, drawerOpen: givenDrawerOpen, onDrawerToggle }) => {
|
|
5
|
-
const [drawerOpen, setDrawerOpen] = useState(givenDrawerOpen);
|
|
6
|
-
useEffect(() => {
|
|
7
|
+
const [drawerOpen, setDrawerOpen] = (0, react_1.useState)(givenDrawerOpen);
|
|
8
|
+
(0, react_1.useEffect)(() => {
|
|
7
9
|
setDrawerOpen(givenDrawerOpen);
|
|
8
10
|
}, [
|
|
9
11
|
givenDrawerOpen
|
|
10
12
|
]);
|
|
11
|
-
const toggleDrawer = useCallback((open) => {
|
|
13
|
+
const toggleDrawer = (0, react_1.useCallback)((open) => {
|
|
12
14
|
if (open === undefined) {
|
|
13
15
|
setDrawerOpen((currentDrawerOpen) => {
|
|
14
16
|
const toggleOpen = !currentDrawerOpen;
|
|
@@ -27,7 +29,7 @@ const DrawerToggleProvider = ({ children, drawerOpen: givenDrawerOpen, onDrawerT
|
|
|
27
29
|
}, [
|
|
28
30
|
onDrawerToggle
|
|
29
31
|
]);
|
|
30
|
-
const value = useMemo(() => {
|
|
32
|
+
const value = (0, react_1.useMemo)(() => {
|
|
31
33
|
return {
|
|
32
34
|
drawerOpen: Boolean(drawerOpen),
|
|
33
35
|
toggleDrawer
|
|
@@ -36,8 +38,8 @@ const DrawerToggleProvider = ({ children, drawerOpen: givenDrawerOpen, onDrawerT
|
|
|
36
38
|
drawerOpen,
|
|
37
39
|
toggleDrawer
|
|
38
40
|
]);
|
|
39
|
-
return (
|
|
41
|
+
return ((0, jsx_runtime_1.jsx)(Contexts_1.DrawerToggleContext.Provider, { value: value, children: children }));
|
|
40
42
|
};
|
|
41
43
|
DrawerToggleProvider.displayName = 'DrawerToggleProvider';
|
|
42
|
-
|
|
44
|
+
exports.default = DrawerToggleProvider;
|
|
43
45
|
//# sourceMappingURL=DrawerToggleProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerToggleProvider.js","sourceRoot":"","sources":["../../../src/Providers/DrawerToggleProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DrawerToggleProvider.js","sourceRoot":"","sources":["../../../src/Providers/DrawerToggleProvider.tsx"],"names":[],"mappings":";;;AAAA,0CAEqB;AAIrB,iCAMe;AAEf,MAAM,oBAAoB,GAAiD,CAAC,EAC1E,QAAQ,EACR,UAAU,EAAE,eAAe,EAC3B,cAAc,EACf,EAAE,EAAE;IACH,MAAM,CACJ,UAAU,EACV,aAAa,CACd,GAAG,IAAA,gBAAQ,EAAC,eAAe,CAAC,CAAC;IAE9B,IAAA,iBAAS,EACP,GAAG,EAAE;QACH,aAAa,CAAC,eAAe,CAAC,CAAC;IACjC,CAAC,EACD;QACE,eAAe;KAChB,CACF,CAAC;IAEF,MAAM,YAAY,GAAG,IAAA,mBAAW,EAC9B,CACE,IAAc,EACd,EAAE;QACF,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,aAAa,CACX,CAAC,iBAAiB,EAAE,EAAE;gBACpB,MAAM,UAAU,GAAG,CAAC,iBAAiB,CAAC;gBAEtC,IAAI,cAAc,EAAE,CAAC;oBACnB,cAAc,CAAC,UAAU,CAAC,CAAC;gBAC7B,CAAC;gBAED,OAAO,UAAU,CAAC;YACpB,CAAC,CACF,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,IAAI,cAAc,EAAE,CAAC;gBACnB,cAAc,CAAC,IAAI,CAAC,CAAC;YACvB,CAAC;YAED,aAAa,CAAC,IAAI,CAAC,CAAC;QACtB,CAAC;IACH,CAAC,EACD;QACE,cAAc;KACf,CACF,CAAC;IAEF,MAAM,KAAK,GAAG,IAAA,eAAO,EACnB,GAAG,EAAE;QACH,OAAO;YACL,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC;YAC/B,YAAY;SACb,CAAC;IACJ,CAAC,EACD;QACE,UAAU;QACV,YAAY;KACb,CACF,CAAC;IAEF,OAAO,CACL,uBAAC,8BAAmB,CAAC,QAAQ,IAC3B,KAAK,EAAE,KAAK,YAEX,QAAQ,GACoB,CAChC,CAAC;AACJ,CAAC,CAAC;AAEF,oBAAoB,CAAC,WAAW,GAAG,sBAAsB,CAAC;AAE1D,kBAAe,oBAAoB,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const TabIndexContext_1 = require("../Contexts/TabIndexContext");
|
|
5
|
+
const react_1 = require("react");
|
|
4
6
|
const TabIndexProvider = ({ children, onSelectTab, tabIndex: givenTabIndex }) => {
|
|
5
|
-
const [tabIndex, setTabIndex] = useState(tabIndexDefaults.tabIndex);
|
|
6
|
-
useEffect(() => {
|
|
7
|
+
const [tabIndex, setTabIndex] = (0, react_1.useState)(TabIndexContext_1.tabIndexDefaults.tabIndex);
|
|
8
|
+
(0, react_1.useEffect)(() => {
|
|
7
9
|
const safeIndex = Number.isSafeInteger(givenTabIndex) &&
|
|
8
10
|
Number(givenTabIndex);
|
|
9
11
|
if (safeIndex) {
|
|
@@ -12,7 +14,7 @@ const TabIndexProvider = ({ children, onSelectTab, tabIndex: givenTabIndex }) =>
|
|
|
12
14
|
}, [
|
|
13
15
|
givenTabIndex
|
|
14
16
|
]);
|
|
15
|
-
useEffect(() => {
|
|
17
|
+
(0, react_1.useEffect)(() => {
|
|
16
18
|
if (onSelectTab) {
|
|
17
19
|
onSelectTab(tabIndex);
|
|
18
20
|
}
|
|
@@ -20,7 +22,7 @@ const TabIndexProvider = ({ children, onSelectTab, tabIndex: givenTabIndex }) =>
|
|
|
20
22
|
onSelectTab,
|
|
21
23
|
tabIndex
|
|
22
24
|
]);
|
|
23
|
-
const value = useMemo(() => {
|
|
25
|
+
const value = (0, react_1.useMemo)(() => {
|
|
24
26
|
return {
|
|
25
27
|
selectTab: setTabIndex,
|
|
26
28
|
tabIndex
|
|
@@ -29,8 +31,8 @@ const TabIndexProvider = ({ children, onSelectTab, tabIndex: givenTabIndex }) =>
|
|
|
29
31
|
setTabIndex,
|
|
30
32
|
tabIndex
|
|
31
33
|
]);
|
|
32
|
-
return (
|
|
34
|
+
return ((0, jsx_runtime_1.jsx)(TabIndexContext_1.TabIndexContext.Provider, { value: value, children: children }));
|
|
33
35
|
};
|
|
34
|
-
|
|
36
|
+
exports.default = TabIndexProvider;
|
|
35
37
|
TabIndexProvider.displayName = 'TabIndexProvider';
|
|
36
38
|
//# sourceMappingURL=TabIndexProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabIndexProvider.js","sourceRoot":"","sources":["../../../src/Providers/TabIndexProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TabIndexProvider.js","sourceRoot":"","sources":["../../../src/Providers/TabIndexProvider.tsx"],"names":[],"mappings":";;;AAAA,iEAGqC;AAIrC,iCAKe;AAEf,MAAM,gBAAgB,GAA6C,CAAC,EAClE,QAAQ,EACR,WAAW,EACX,QAAQ,EAAE,aAAa,EACxB,EAAE,EAAE;IACH,MAAM,CACJ,QAAQ,EACR,WAAW,CACZ,GAAG,IAAA,gBAAQ,EAAC,kCAAgB,CAAC,QAAQ,CAAC,CAAC;IAExC,IAAA,iBAAS,EACP,GAAG,EAAE;QACH,MAAM,SAAS,GAAG,MAAM,CAAC,aAAa,CAAC,aAAa,CAAC;YACnD,MAAM,CAAC,aAAa,CAAC,CAAC;QAExB,IACE,SAAS,EACT,CAAC;YACD,WAAW,CAAC,SAAS,CAAC,CAAC;QACzB,CAAC;IACH,CAAC,EACD;QACE,aAAa;KACd,CACF,CAAC;IAEF,IAAA,iBAAS,EACP,GAAG,EAAE;QACH,IAAI,WAAW,EAAE,CAAC;YAChB,WAAW,CAAC,QAAQ,CAAC,CAAC;QACxB,CAAC;IACH,CAAC,EACD;QACE,WAAW;QACX,QAAQ;KACT,CACF,CAAC;IAEF,MAAM,KAAK,GAAG,IAAA,eAAO,EACnB,GAAG,EAAE;QACH,OAAO;YACL,SAAS,EAAE,WAAW;YACtB,QAAQ;SACT,CAAC;IACJ,CAAC,EACD;QACE,WAAW;QACX,QAAQ;KACT,CACF,CAAC;IAEF,OAAO,CACL,uBAAC,iCAAe,CAAC,QAAQ,IACvB,KAAK,EAAE,KAAK,YAEX,QAAQ,GACgB,CAC5B,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,gBAAgB,CAAC;AAEhC,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
const Contexts_1 = require("../Contexts");
|
|
5
|
+
const react_1 = require("react");
|
|
4
6
|
const TabProvider = ({ children }) => {
|
|
5
|
-
const { selectTab, tabIndex } = useContext(TabIndexContext);
|
|
6
|
-
const [tabs, setTabs] = useState(tabDefaults.tabs);
|
|
7
|
-
const [tabIndexes, setTabIndexes] = useState({});
|
|
8
|
-
const [tabOrder, setTabOrder] = useState(tabDefaults.tabOrder);
|
|
9
|
-
const resetTabOrder = useCallback((updatedTabIndexes) => {
|
|
7
|
+
const { selectTab, tabIndex } = (0, react_1.useContext)(Contexts_1.TabIndexContext);
|
|
8
|
+
const [tabs, setTabs] = (0, react_1.useState)(Contexts_1.tabDefaults.tabs);
|
|
9
|
+
const [tabIndexes, setTabIndexes] = (0, react_1.useState)({});
|
|
10
|
+
const [tabOrder, setTabOrder] = (0, react_1.useState)(Contexts_1.tabDefaults.tabOrder);
|
|
11
|
+
const resetTabOrder = (0, react_1.useCallback)((updatedTabIndexes) => {
|
|
10
12
|
setTabOrder(() => {
|
|
11
13
|
const ids = Object.keys(updatedTabIndexes);
|
|
12
14
|
ids.sort((drawer1, drawer2) => {
|
|
@@ -17,7 +19,7 @@ const TabProvider = ({ children }) => {
|
|
|
17
19
|
return ids;
|
|
18
20
|
});
|
|
19
21
|
}, []);
|
|
20
|
-
const addTab = useCallback((tab, goto) => {
|
|
22
|
+
const addTab = (0, react_1.useCallback)((tab, goto) => {
|
|
21
23
|
const { tabId } = tab;
|
|
22
24
|
setTabs((previousTabs) => {
|
|
23
25
|
return {
|
|
@@ -61,7 +63,7 @@ const TabProvider = ({ children }) => {
|
|
|
61
63
|
}, [
|
|
62
64
|
selectTab
|
|
63
65
|
]);
|
|
64
|
-
const updateTab = useCallback(({ tabId, ...tabProperties }) => {
|
|
66
|
+
const updateTab = (0, react_1.useCallback)(({ tabId, ...tabProperties }) => {
|
|
65
67
|
setTabs((previousTabs) => {
|
|
66
68
|
if (previousTabs[tabId]) {
|
|
67
69
|
const updatedTabs = {
|
|
@@ -78,7 +80,7 @@ const TabProvider = ({ children }) => {
|
|
|
78
80
|
}
|
|
79
81
|
});
|
|
80
82
|
}, []);
|
|
81
|
-
const removeTab = useCallback((tabId) => {
|
|
83
|
+
const removeTab = (0, react_1.useCallback)((tabId) => {
|
|
82
84
|
let newTabOrderLength = null;
|
|
83
85
|
setTabIndexes((previousTabIndexes) => {
|
|
84
86
|
const { [tabId]: omit, ...filteredTabIndexes } = previousTabIndexes;
|
|
@@ -112,7 +114,7 @@ const TabProvider = ({ children }) => {
|
|
|
112
114
|
}, [
|
|
113
115
|
selectTab
|
|
114
116
|
]);
|
|
115
|
-
const selectedTabId = useMemo(() => {
|
|
117
|
+
const selectedTabId = (0, react_1.useMemo)(() => {
|
|
116
118
|
const tabId = tabOrder[tabIndex];
|
|
117
119
|
return tabId;
|
|
118
120
|
}, [
|
|
@@ -120,7 +122,7 @@ const TabProvider = ({ children }) => {
|
|
|
120
122
|
tabOrder,
|
|
121
123
|
tabs
|
|
122
124
|
]);
|
|
123
|
-
const value = useMemo(() => {
|
|
125
|
+
const value = (0, react_1.useMemo)(() => {
|
|
124
126
|
return {
|
|
125
127
|
addTab,
|
|
126
128
|
removeTab,
|
|
@@ -137,8 +139,8 @@ const TabProvider = ({ children }) => {
|
|
|
137
139
|
tabs,
|
|
138
140
|
updateTab
|
|
139
141
|
]);
|
|
140
|
-
return (
|
|
142
|
+
return ((0, jsx_runtime_1.jsx)(Contexts_1.TabContext.Provider, { value: value, children: children }));
|
|
141
143
|
};
|
|
142
144
|
TabProvider.displayName = 'TabProvider';
|
|
143
|
-
|
|
145
|
+
exports.default = TabProvider;
|
|
144
146
|
//# sourceMappingURL=TabProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabProvider.js","sourceRoot":"","sources":["../../../src/Providers/TabProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TabProvider.js","sourceRoot":"","sources":["../../../src/Providers/TabProvider.tsx"],"names":[],"mappings":";;;AAAA,0CAIqB;AAIrB,iCAOe;AAMf,MAAM,WAAW,GAAwC,CAAC,EACxD,QAAQ,EACT,EAAE,EAAE;IACH,MAAM,EACJ,SAAS,EACT,QAAQ,EACT,GAAG,IAAA,kBAAU,EAAC,0BAAe,CAAC,CAAC;IAEhC,MAAM,CACJ,IAAI,EACJ,OAAO,CACR,GAAG,IAAA,gBAAQ,EAAC,sBAAW,CAAC,IAAI,CAAC,CAAC;IAE/B,MAAM,CAIJ,UAAU,EACV,aAAa,CACd,GAAG,IAAA,gBAAQ,EAAa,EAAE,CAAC,CAAC;IAE7B,MAAM,CACJ,QAAQ,EACR,WAAW,CACZ,GAAG,IAAA,gBAAQ,EAAC,sBAAW,CAAC,QAAQ,CAAC,CAAC;IAEnC,MAAM,aAAa,GAAG,IAAA,mBAAW,EAC/B,CACE,iBAA6B,EAC7B,EAAE;Q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,CAAC;IAEF,MAAM,KAAK,GAAG,IAAA,eAAO,EACnB,GAAG,EAAE;QACH,OAAO;YACL,MAAM;YACN,SAAS;YACT,aAAa;YACb,QAAQ;YACR,IAAI;YACJ,SAAS;SACV,CAAC;IACJ,CAAC,EACD;QACE,MAAM;QACN,SAAS;QACT,aAAa;QACb,QAAQ;QACR,IAAI;QACJ,SAAS;KACV,CACF,CAAC;IAEF,OAAO,CACL,uBAAC,qBAAU,CAAC,QAAQ,IAClB,KAAK,EAAE,KAAK,YAEX,QAAQ,GACW,CACvB,CAAC;AACJ,CAAC,CAAC;AAEF,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC;AAExC,kBAAe,WAAW,CAAC"}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Providers = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const DrawerIndexProvider_1 = __importDefault(require("./DrawerIndexProvider"));
|
|
9
|
+
const DrawerProvider_1 = __importDefault(require("./DrawerProvider"));
|
|
10
|
+
const DrawerToggleProvider_1 = __importDefault(require("./DrawerToggleProvider"));
|
|
11
|
+
const TabIndexProvider_1 = __importDefault(require("./TabIndexProvider"));
|
|
12
|
+
const TabProvider_1 = __importDefault(require("./TabProvider"));
|
|
7
13
|
const Providers = ({ children, drawerIndex, drawerOpen, onDrawerToggle, onSelectDrawer, onSelectTab, tabIndex }) => {
|
|
8
|
-
return (
|
|
14
|
+
return ((0, jsx_runtime_1.jsx)(DrawerToggleProvider_1.default, { drawerOpen: drawerOpen, onDrawerToggle: onDrawerToggle, children: (0, jsx_runtime_1.jsx)(DrawerIndexProvider_1.default, { drawerIndex: drawerIndex, onSelectDrawer: onSelectDrawer, children: (0, jsx_runtime_1.jsx)(DrawerProvider_1.default, { children: (0, jsx_runtime_1.jsx)(TabIndexProvider_1.default, { onSelectTab: onSelectTab, tabIndex: tabIndex, children: (0, jsx_runtime_1.jsx)(TabProvider_1.default, { children: children }) }) }) }) }));
|
|
9
15
|
};
|
|
16
|
+
exports.Providers = Providers;
|
|
10
17
|
Providers.displayName = 'SharedProviders';
|
|
11
|
-
export { Providers };
|
|
12
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Providers/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Providers/index.tsx"],"names":[],"mappings":";;;;;;;AAGA,gFAAwD;AACxD,sEAA8C;AAC9C,kFAA0D;AAC1D,0EAAkD;AAClD,gEAAwC;AAKxC,MAAM,SAAS,GAAsC,CAAC,EACpD,QAAQ,EACR,WAAW,EACX,UAAU,EACV,cAAc,EACd,cAAc,EACd,WAAW,EACX,QAAQ,EACT,EAAE,EAAE;IACH,OAAO,CACL,uBAAC,8BAAoB,IACnB,UAAU,EAAE,UAAU,EACtB,cAAc,EAAE,cAAc,YAE9B,uBAAC,6BAAmB,IAClB,WAAW,EAAE,WAAW,EACxB,cAAc,EAAE,cAAc,YAE9B,uBAAC,wBAAc,cACb,uBAAC,0BAAgB,IACf,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,YAElB,uBAAC,qBAAW,cACT,QAAQ,GACG,GACG,GACJ,GACG,GACD,CACxB,CAAC;AACJ,CAAC,CAAC;AAKA,8BAAS;AAHX,SAAS,CAAC,WAAW,GAAG,iBAAiB,CAAC"}
|
package/dist/cjs/Types.js
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Hooks"), exports);
|
|
18
|
+
__exportStar(require("./Providers"), exports);
|
|
3
19
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,8CAA4B"}
|
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.8.
|
|
5
|
+
"version": "1.8.5",
|
|
6
6
|
"private": false,
|
|
7
7
|
"description": "Shared Components for a boilerplate React GUI",
|
|
8
8
|
"author": "wallzero @wallzeroblog (http://wallzero.com)",
|
|
@@ -45,18 +45,18 @@
|
|
|
45
45
|
"clean:dist": "rimraf dist"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@digest/eslint-config-jest": "^4.14.
|
|
49
|
-
"@digest/eslint-config-react": "^4.14.
|
|
50
|
-
"@digest/eslint-config-typescript": "^4.14.
|
|
51
|
-
"@digest/jest-junit": "^4.14.
|
|
52
|
-
"@digest/jest-react": "^4.14.
|
|
53
|
-
"@digest/jest-typescript": "^4.14.
|
|
54
|
-
"@digest/typescript": "^4.14.
|
|
48
|
+
"@digest/eslint-config-jest": "^4.14.16",
|
|
49
|
+
"@digest/eslint-config-react": "^4.14.16",
|
|
50
|
+
"@digest/eslint-config-typescript": "^4.14.16",
|
|
51
|
+
"@digest/jest-junit": "^4.14.16",
|
|
52
|
+
"@digest/jest-react": "^4.14.16",
|
|
53
|
+
"@digest/jest-typescript": "^4.14.16",
|
|
54
|
+
"@digest/typescript": "^4.14.16",
|
|
55
55
|
"@types/jest": "^30.0.0",
|
|
56
56
|
"@types/react": "^19.2.14",
|
|
57
57
|
"@types/react-test-renderer": "^19.1.0",
|
|
58
58
|
"cross-env": "^10.1.0",
|
|
59
|
-
"jest-environment-jsdom": "^30.
|
|
59
|
+
"jest-environment-jsdom": "^30.3.0",
|
|
60
60
|
"jest-environment-jsdom-global": "^4.0.0",
|
|
61
61
|
"npm-run-all": "^4.1.5",
|
|
62
62
|
"react": "^19.2.4",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"reactjs",
|
|
74
74
|
"typescript"
|
|
75
75
|
],
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "cbce957f6788a84d0b93534464b0c03d07ef5a86"
|
|
77
77
|
}
|