@chayns-components/navigation 5.0.65 → 5.1.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/lib/cjs/components/navigation-layout/NavigationLayout.constants.js +14 -0
- package/lib/cjs/components/navigation-layout/NavigationLayout.constants.js.map +1 -0
- package/lib/cjs/components/navigation-layout/NavigationLayout.context.js +26 -0
- package/lib/cjs/components/navigation-layout/NavigationLayout.context.js.map +1 -0
- package/lib/cjs/components/navigation-layout/NavigationLayout.js +105 -0
- package/lib/cjs/components/navigation-layout/NavigationLayout.js.map +1 -0
- package/lib/cjs/components/navigation-layout/NavigationLayout.styles.js +74 -0
- package/lib/cjs/components/navigation-layout/NavigationLayout.styles.js.map +1 -0
- package/lib/cjs/components/navigation-layout/NavigationLayout.types.js +6 -0
- package/lib/cjs/components/navigation-layout/NavigationLayout.types.js.map +1 -0
- package/lib/cjs/components/navigation-layout/NavigationLayout.utils.js +261 -0
- package/lib/cjs/components/navigation-layout/NavigationLayout.utils.js.map +1 -0
- package/lib/cjs/components/navigation-layout/navigation-header/NavigationHeader.js +31 -0
- package/lib/cjs/components/navigation-layout/navigation-header/NavigationHeader.js.map +1 -0
- package/lib/cjs/components/navigation-layout/navigation-header/NavigationHeader.styles.js +30 -0
- package/lib/cjs/components/navigation-layout/navigation-header/NavigationHeader.styles.js.map +1 -0
- package/lib/cjs/components/navigation-layout/navigation-header/NavigationHeader.types.js +6 -0
- package/lib/cjs/components/navigation-layout/navigation-header/NavigationHeader.types.js.map +1 -0
- package/lib/cjs/components/navigation-layout/navigation-header/menu-toggle/MenuToggle.js +71 -0
- package/lib/cjs/components/navigation-layout/navigation-header/menu-toggle/MenuToggle.js.map +1 -0
- package/lib/cjs/components/navigation-layout/navigation-header/menu-toggle/MenuToggle.styles.js +19 -0
- package/lib/cjs/components/navigation-layout/navigation-header/menu-toggle/MenuToggle.styles.js.map +1 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/NavigationSidebar.context.js +26 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/NavigationSidebar.context.js.map +1 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/NavigationSidebar.js +140 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/NavigationSidebar.js.map +1 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/NavigationSidebar.styles.js +89 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/NavigationSidebar.styles.js.map +1 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/NavigationSidebar.types.js +6 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/NavigationSidebar.types.js.map +1 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/NavigationSidebar.utils.js +83 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/NavigationSidebar.utils.js.map +1 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/sidebar-divider/SidebarDivider.js +17 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/sidebar-divider/SidebarDivider.js.map +1 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/sidebar-divider/SidebarDivider.styles.js +19 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/sidebar-divider/SidebarDivider.styles.js.map +1 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/sidebar-group/SidebarGroup.context.js +26 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/sidebar-group/SidebarGroup.context.js.map +1 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/sidebar-group/SidebarGroup.hooks.js +129 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/sidebar-group/SidebarGroup.hooks.js.map +1 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/sidebar-group/SidebarGroup.js +79 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/sidebar-group/SidebarGroup.js.map +1 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/sidebar-group/SidebarGroup.styles.js +69 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/sidebar-group/SidebarGroup.styles.js.map +1 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/sidebar-group/sidebar-item/SidebarItem.hooks.js +265 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/sidebar-group/sidebar-item/SidebarItem.hooks.js.map +1 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/sidebar-group/sidebar-item/SidebarItem.js +193 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/sidebar-group/sidebar-item/SidebarItem.js.map +1 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/sidebar-group/sidebar-item/SidebarItem.styles.js +132 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/sidebar-group/sidebar-item/SidebarItem.styles.js.map +1 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/sidebar-group/sidebar-item/SidebarItem.utils.js +78 -0
- package/lib/cjs/components/navigation-layout/navigation-sidebar/sidebar-group/sidebar-item/SidebarItem.utils.js.map +1 -0
- package/lib/cjs/components/split-layout/SplitLayout.js +90 -0
- package/lib/cjs/components/split-layout/SplitLayout.js.map +1 -0
- package/lib/cjs/components/split-layout/SplitLayout.styles.js +44 -0
- package/lib/cjs/components/split-layout/SplitLayout.styles.js.map +1 -0
- package/lib/cjs/components/split-layout/SplitLayout.types.js +12 -0
- package/lib/cjs/components/split-layout/SplitLayout.types.js.map +1 -0
- package/lib/cjs/components/split-layout/SplitLayout.utils.js +25 -0
- package/lib/cjs/components/split-layout/SplitLayout.utils.js.map +1 -0
- package/lib/cjs/components/split-layout/resize-handle/ResizeHandle.hooks.js +63 -0
- package/lib/cjs/components/split-layout/resize-handle/ResizeHandle.hooks.js.map +1 -0
- package/lib/cjs/components/split-layout/resize-handle/ResizeHandle.js +34 -0
- package/lib/cjs/components/split-layout/resize-handle/ResizeHandle.js.map +1 -0
- package/lib/cjs/components/split-layout/resize-handle/ResizeHandle.styles.js +58 -0
- package/lib/cjs/components/split-layout/resize-handle/ResizeHandle.styles.js.map +1 -0
- package/lib/cjs/components/user-image/UserImage.js +38 -0
- package/lib/cjs/components/user-image/UserImage.js.map +1 -0
- package/lib/cjs/components/user-image/UserImage.types.js +6 -0
- package/lib/cjs/components/user-image/UserImage.types.js.map +1 -0
- package/lib/cjs/components/user-image/userImage.styles.js +27 -0
- package/lib/cjs/components/user-image/userImage.styles.js.map +1 -0
- package/lib/cjs/index.js +49 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/components/navigation-layout/NavigationLayout.constants.js +8 -0
- package/lib/esm/components/navigation-layout/NavigationLayout.constants.js.map +1 -0
- package/lib/esm/components/navigation-layout/NavigationLayout.context.js +17 -0
- package/lib/esm/components/navigation-layout/NavigationLayout.context.js.map +1 -0
- package/lib/esm/components/navigation-layout/NavigationLayout.js +97 -0
- package/lib/esm/components/navigation-layout/NavigationLayout.js.map +1 -0
- package/lib/esm/components/navigation-layout/NavigationLayout.styles.js +67 -0
- package/lib/esm/components/navigation-layout/NavigationLayout.styles.js.map +1 -0
- package/lib/esm/components/navigation-layout/NavigationLayout.types.js +2 -0
- package/lib/esm/components/navigation-layout/NavigationLayout.types.js.map +1 -0
- package/lib/esm/components/navigation-layout/NavigationLayout.utils.js +251 -0
- package/lib/esm/components/navigation-layout/NavigationLayout.utils.js.map +1 -0
- package/lib/esm/components/navigation-layout/navigation-header/NavigationHeader.js +24 -0
- package/lib/esm/components/navigation-layout/navigation-header/NavigationHeader.js.map +1 -0
- package/lib/esm/components/navigation-layout/navigation-header/NavigationHeader.styles.js +23 -0
- package/lib/esm/components/navigation-layout/navigation-header/NavigationHeader.styles.js.map +1 -0
- package/lib/esm/components/navigation-layout/navigation-header/NavigationHeader.types.js +2 -0
- package/lib/esm/components/navigation-layout/navigation-header/NavigationHeader.types.js.map +1 -0
- package/lib/esm/components/navigation-layout/navigation-header/menu-toggle/MenuToggle.js +64 -0
- package/lib/esm/components/navigation-layout/navigation-header/menu-toggle/MenuToggle.js.map +1 -0
- package/lib/esm/components/navigation-layout/navigation-header/menu-toggle/MenuToggle.styles.js +12 -0
- package/lib/esm/components/navigation-layout/navigation-header/menu-toggle/MenuToggle.styles.js.map +1 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/NavigationSidebar.context.js +17 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/NavigationSidebar.context.js.map +1 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/NavigationSidebar.js +132 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/NavigationSidebar.js.map +1 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/NavigationSidebar.styles.js +82 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/NavigationSidebar.styles.js.map +1 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/NavigationSidebar.types.js +2 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/NavigationSidebar.types.js.map +1 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/NavigationSidebar.utils.js +73 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/NavigationSidebar.utils.js.map +1 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/sidebar-divider/SidebarDivider.js +10 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/sidebar-divider/SidebarDivider.js.map +1 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/sidebar-divider/SidebarDivider.styles.js +12 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/sidebar-divider/SidebarDivider.styles.js.map +1 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/sidebar-group/SidebarGroup.context.js +17 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/sidebar-group/SidebarGroup.context.js.map +1 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/sidebar-group/SidebarGroup.hooks.js +119 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/sidebar-group/SidebarGroup.hooks.js.map +1 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/sidebar-group/SidebarGroup.js +71 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/sidebar-group/SidebarGroup.js.map +1 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/sidebar-group/SidebarGroup.styles.js +62 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/sidebar-group/SidebarGroup.styles.js.map +1 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/sidebar-group/sidebar-item/SidebarItem.hooks.js +257 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/sidebar-group/sidebar-item/SidebarItem.hooks.js.map +1 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/sidebar-group/sidebar-item/SidebarItem.js +186 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/sidebar-group/sidebar-item/SidebarItem.js.map +1 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/sidebar-group/sidebar-item/SidebarItem.styles.js +126 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/sidebar-group/sidebar-item/SidebarItem.styles.js.map +1 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/sidebar-group/sidebar-item/SidebarItem.utils.js +67 -0
- package/lib/esm/components/navigation-layout/navigation-sidebar/sidebar-group/sidebar-item/SidebarItem.utils.js.map +1 -0
- package/lib/esm/components/split-layout/SplitLayout.js +80 -0
- package/lib/esm/components/split-layout/SplitLayout.js.map +1 -0
- package/lib/esm/components/split-layout/SplitLayout.styles.js +37 -0
- package/lib/esm/components/split-layout/SplitLayout.styles.js.map +1 -0
- package/lib/esm/components/split-layout/SplitLayout.types.js +6 -0
- package/lib/esm/components/split-layout/SplitLayout.types.js.map +1 -0
- package/lib/esm/components/split-layout/SplitLayout.utils.js +17 -0
- package/lib/esm/components/split-layout/SplitLayout.utils.js.map +1 -0
- package/lib/esm/components/split-layout/resize-handle/ResizeHandle.hooks.js +54 -0
- package/lib/esm/components/split-layout/resize-handle/ResizeHandle.hooks.js.map +1 -0
- package/lib/esm/components/split-layout/resize-handle/ResizeHandle.js +27 -0
- package/lib/esm/components/split-layout/resize-handle/ResizeHandle.js.map +1 -0
- package/lib/esm/components/split-layout/resize-handle/ResizeHandle.styles.js +52 -0
- package/lib/esm/components/split-layout/resize-handle/ResizeHandle.styles.js.map +1 -0
- package/lib/esm/components/user-image/UserImage.js +31 -0
- package/lib/esm/components/user-image/UserImage.js.map +1 -0
- package/lib/esm/components/user-image/UserImage.types.js +2 -0
- package/lib/esm/components/user-image/UserImage.types.js.map +1 -0
- package/lib/esm/components/user-image/userImage.styles.js +20 -0
- package/lib/esm/components/user-image/userImage.styles.js.map +1 -0
- package/lib/esm/index.js +15 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/types/components/navigation-layout/NavigationLayout.constants.d.ts +7 -0
- package/lib/types/components/navigation-layout/NavigationLayout.context.d.ts +15 -0
- package/lib/types/components/navigation-layout/NavigationLayout.d.ts +4 -0
- package/lib/types/components/navigation-layout/NavigationLayout.styles.d.ts +19 -0
- package/lib/types/components/navigation-layout/NavigationLayout.types.d.ts +125 -0
- package/lib/types/components/navigation-layout/NavigationLayout.utils.d.ts +22 -0
- package/lib/types/components/navigation-layout/navigation-header/NavigationHeader.d.ts +4 -0
- package/lib/types/components/navigation-layout/navigation-header/NavigationHeader.styles.d.ts +9 -0
- package/lib/types/components/navigation-layout/navigation-header/NavigationHeader.types.d.ts +10 -0
- package/lib/types/components/navigation-layout/navigation-header/menu-toggle/MenuToggle.d.ts +8 -0
- package/lib/types/components/navigation-layout/navigation-header/menu-toggle/MenuToggle.styles.d.ts +3 -0
- package/lib/types/components/navigation-layout/navigation-sidebar/NavigationSidebar.context.d.ts +19 -0
- package/lib/types/components/navigation-layout/navigation-sidebar/NavigationSidebar.d.ts +4 -0
- package/lib/types/components/navigation-layout/navigation-sidebar/NavigationSidebar.styles.d.ts +27 -0
- package/lib/types/components/navigation-layout/navigation-sidebar/NavigationSidebar.types.d.ts +54 -0
- package/lib/types/components/navigation-layout/navigation-sidebar/NavigationSidebar.utils.d.ts +22 -0
- package/lib/types/components/navigation-layout/navigation-sidebar/sidebar-divider/SidebarDivider.d.ts +6 -0
- package/lib/types/components/navigation-layout/navigation-sidebar/sidebar-divider/SidebarDivider.styles.d.ts +6 -0
- package/lib/types/components/navigation-layout/navigation-sidebar/sidebar-group/SidebarGroup.context.d.ts +22 -0
- package/lib/types/components/navigation-layout/navigation-sidebar/sidebar-group/SidebarGroup.d.ts +9 -0
- package/lib/types/components/navigation-layout/navigation-sidebar/sidebar-group/SidebarGroup.hooks.d.ts +26 -0
- package/lib/types/components/navigation-layout/navigation-sidebar/sidebar-group/SidebarGroup.styles.d.ts +9 -0
- package/lib/types/components/navigation-layout/navigation-sidebar/sidebar-group/sidebar-item/SidebarItem.d.ts +10 -0
- package/lib/types/components/navigation-layout/navigation-sidebar/sidebar-group/sidebar-item/SidebarItem.hooks.d.ts +51 -0
- package/lib/types/components/navigation-layout/navigation-sidebar/sidebar-group/sidebar-item/SidebarItem.styles.d.ts +24 -0
- package/lib/types/components/navigation-layout/navigation-sidebar/sidebar-group/sidebar-item/SidebarItem.utils.d.ts +23 -0
- package/lib/types/components/split-layout/SplitLayout.d.ts +4 -0
- package/lib/types/components/split-layout/SplitLayout.styles.d.ts +12 -0
- package/lib/types/components/split-layout/SplitLayout.types.d.ts +19 -0
- package/lib/types/components/split-layout/SplitLayout.utils.d.ts +8 -0
- package/lib/types/components/split-layout/resize-handle/ResizeHandle.d.ts +11 -0
- package/lib/types/components/split-layout/resize-handle/ResizeHandle.hooks.d.ts +9 -0
- package/lib/types/components/split-layout/resize-handle/ResizeHandle.styles.d.ts +15 -0
- package/lib/types/components/user-image/UserImage.d.ts +4 -0
- package/lib/types/components/user-image/UserImage.types.d.ts +8 -0
- package/lib/types/components/user-image/userImage.styles.d.ts +10 -0
- package/lib/types/index.d.ts +10 -2
- package/package.json +3 -3
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.StyledSplitLayoutPane = exports.StyledSplitLayout = void 0;
|
|
7
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
8
|
+
var _SplitLayout = require("./SplitLayout.types");
|
|
9
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
10
|
+
const StyledSplitLayout = exports.StyledSplitLayout = _styledComponents.default.div`
|
|
11
|
+
display: flex;
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
min-width: 0;
|
|
15
|
+
min-height: 0;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
|
|
18
|
+
${({
|
|
19
|
+
$direction
|
|
20
|
+
}) => $direction === _SplitLayout.SplitLayoutDirection.HORIZONTAL ? (0, _styledComponents.css)`
|
|
21
|
+
flex-direction: row;
|
|
22
|
+
` : (0, _styledComponents.css)`
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
`}
|
|
25
|
+
`;
|
|
26
|
+
const StyledSplitLayoutPane = exports.StyledSplitLayoutPane = _styledComponents.default.div`
|
|
27
|
+
position: relative;
|
|
28
|
+
flex: 0 0 auto;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
|
|
31
|
+
${({
|
|
32
|
+
$direction,
|
|
33
|
+
$size
|
|
34
|
+
}) => $direction === _SplitLayout.SplitLayoutDirection.HORIZONTAL ? (0, _styledComponents.css)`
|
|
35
|
+
min-width: 0;
|
|
36
|
+
height: 100%;
|
|
37
|
+
width: ${$size ? `${$size}px` : '100%'};
|
|
38
|
+
` : (0, _styledComponents.css)`
|
|
39
|
+
min-height: 0;
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: ${$size ? `${$size}px` : '100%'};
|
|
42
|
+
`}
|
|
43
|
+
`;
|
|
44
|
+
//# sourceMappingURL=SplitLayout.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SplitLayout.styles.js","names":["_styledComponents","_interopRequireWildcard","require","_SplitLayout","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","StyledSplitLayout","exports","styled","div","$direction","SplitLayoutDirection","HORIZONTAL","css","StyledSplitLayoutPane","$size"],"sources":["../../../../src/components/split-layout/SplitLayout.styles.ts"],"sourcesContent":["import styled, { css } from 'styled-components';\nimport { SplitLayoutDirection } from './SplitLayout.types';\nimport { WithTheme } from '@chayns-components/core';\n\ntype StyledSplitLayoutProps = WithTheme<{\n $direction: SplitLayoutDirection;\n}>;\n\nexport const StyledSplitLayout = styled.div<StyledSplitLayoutProps>`\n display: flex;\n width: 100%;\n height: 100%;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n\n ${({ $direction }) =>\n $direction === SplitLayoutDirection.HORIZONTAL\n ? css`\n flex-direction: row;\n `\n : css`\n flex-direction: column;\n `}\n`;\n\ntype StyledSplitLayoutPaneProps = WithTheme<{\n $direction: SplitLayoutDirection;\n $size?: number;\n}>;\n\nexport const StyledSplitLayoutPane = styled.div<StyledSplitLayoutPaneProps>`\n position: relative;\n flex: 0 0 auto;\n overflow: hidden;\n\n ${({ $direction, $size }) =>\n $direction === SplitLayoutDirection.HORIZONTAL\n ? css`\n min-width: 0;\n height: 100%;\n width: ${$size ? `${$size}px` : '100%'};\n `\n : css`\n min-height: 0;\n width: 100%;\n height: ${$size ? `${$size}px` : '100%'};\n `}\n`;\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,uBA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AAAA,qBAAG;AACjB;AACA,eAAe;AACf,CAAC;AAOM,MAAMC,qBAAqB,GAAAP,OAAA,CAAAO,qBAAA,GAAGN,yBAAM,CAACC,GAA+B;AAC3E;AACA;AACA;AACA;AACA,MAAM,CAAC;EAAEC,UAAU;EAAEK;AAAM,CAAC,KACpBL,UAAU,KAAKC,iCAAoB,CAACC,UAAU,GACxC,IAAAC,qBAAG;AACjB;AACA;AACA,2BAA2BE,KAAK,GAAG,GAAGA,KAAK,IAAI,GAAG,MAAM;AACxD,eAAe,GACD,IAAAF,qBAAG;AACjB;AACA;AACA,4BAA4BE,KAAK,GAAG,GAAGA,KAAK,IAAI,GAAG,MAAM;AACzD,eAAe;AACf,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SplitLayoutDirection = void 0;
|
|
7
|
+
let SplitLayoutDirection = exports.SplitLayoutDirection = /*#__PURE__*/function (SplitLayoutDirection) {
|
|
8
|
+
SplitLayoutDirection["HORIZONTAL"] = "HORIZONTAL";
|
|
9
|
+
SplitLayoutDirection["VERTICAL"] = "VERTICAL";
|
|
10
|
+
return SplitLayoutDirection;
|
|
11
|
+
}({});
|
|
12
|
+
//# sourceMappingURL=SplitLayout.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SplitLayout.types.js","names":["SplitLayoutDirection","exports"],"sources":["../../../../src/components/split-layout/SplitLayout.types.ts"],"sourcesContent":["import { ReactNode } from 'react';\n\nexport interface SplitLayoutProps {\n views: Record<string, SplitLayoutView>;\n direction?: SplitLayoutDirection;\n handleSize?: number;\n fullScreenViewId?: string;\n onChange?: (id: string, size: number) => void;\n}\n\nexport interface SplitLayoutView {\n component: ReactNode;\n minSize?: number;\n maxSize?: number;\n collapseBreakpoint?: number;\n defaultSize?: number;\n}\n\nexport enum SplitLayoutDirection {\n HORIZONTAL = 'HORIZONTAL',\n VERTICAL = 'VERTICAL',\n}\n"],"mappings":";;;;;;IAkBYA,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA,0BAApBA,oBAAoB;EAApBA,oBAAoB;EAApBA,oBAAoB;EAAA,OAApBA,oBAAoB;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getVisibleViewIds = exports.getContainerSizeByDirection = void 0;
|
|
7
|
+
var _SplitLayout = require("./SplitLayout.types");
|
|
8
|
+
const getVisibleViewIds = ({
|
|
9
|
+
views,
|
|
10
|
+
containerSize
|
|
11
|
+
}) => Object.entries(views).filter(([, view]) => {
|
|
12
|
+
if (typeof view.collapseBreakpoint !== 'number') {
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
return containerSize >= view.collapseBreakpoint;
|
|
16
|
+
}).map(([id]) => id);
|
|
17
|
+
exports.getVisibleViewIds = getVisibleViewIds;
|
|
18
|
+
const getContainerSizeByDirection = (element, direction) => {
|
|
19
|
+
if (!element) {
|
|
20
|
+
return 0;
|
|
21
|
+
}
|
|
22
|
+
return direction === _SplitLayout.SplitLayoutDirection.HORIZONTAL ? element.clientWidth : element.clientHeight;
|
|
23
|
+
};
|
|
24
|
+
exports.getContainerSizeByDirection = getContainerSizeByDirection;
|
|
25
|
+
//# sourceMappingURL=SplitLayout.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SplitLayout.utils.js","names":["_SplitLayout","require","getVisibleViewIds","views","containerSize","Object","entries","filter","view","collapseBreakpoint","map","id","exports","getContainerSizeByDirection","element","direction","SplitLayoutDirection","HORIZONTAL","clientWidth","clientHeight"],"sources":["../../../../src/components/split-layout/SplitLayout.utils.ts"],"sourcesContent":["import { SplitLayoutDirection, SplitLayoutView } from './SplitLayout.types';\n\ninterface GetVisibleViewIdsOptions {\n views: Record<string, SplitLayoutView>;\n containerSize: number;\n}\n\nexport const getVisibleViewIds = ({ views, containerSize }: GetVisibleViewIdsOptions): string[] =>\n Object.entries(views)\n .filter(([, view]) => {\n if (typeof view.collapseBreakpoint !== 'number') {\n return true;\n }\n\n return containerSize >= view.collapseBreakpoint;\n })\n .map(([id]) => id);\n\nexport const getContainerSizeByDirection = (\n element: HTMLDivElement | null,\n direction: SplitLayoutDirection,\n): number => {\n if (!element) {\n return 0;\n }\n\n return direction === SplitLayoutDirection.HORIZONTAL\n ? element.clientWidth\n : element.clientHeight;\n};\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAOO,MAAMC,iBAAiB,GAAGA,CAAC;EAAEC,KAAK;EAAEC;AAAwC,CAAC,KAChFC,MAAM,CAACC,OAAO,CAACH,KAAK,CAAC,CAChBI,MAAM,CAAC,CAAC,GAAGC,IAAI,CAAC,KAAK;EAClB,IAAI,OAAOA,IAAI,CAACC,kBAAkB,KAAK,QAAQ,EAAE;IAC7C,OAAO,IAAI;EACf;EAEA,OAAOL,aAAa,IAAII,IAAI,CAACC,kBAAkB;AACnD,CAAC,CAAC,CACDC,GAAG,CAAC,CAAC,CAACC,EAAE,CAAC,KAAKA,EAAE,CAAC;AAACC,OAAA,CAAAV,iBAAA,GAAAA,iBAAA;AAEpB,MAAMW,2BAA2B,GAAGA,CACvCC,OAA8B,EAC9BC,SAA+B,KACtB;EACT,IAAI,CAACD,OAAO,EAAE;IACV,OAAO,CAAC;EACZ;EAEA,OAAOC,SAAS,KAAKC,iCAAoB,CAACC,UAAU,GAC9CH,OAAO,CAACI,WAAW,GACnBJ,OAAO,CAACK,YAAY;AAC9B,CAAC;AAACP,OAAA,CAAAC,2BAAA,GAAAA,2BAAA","ignoreList":[]}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useDragHandle = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _SplitLayout = require("../SplitLayout.types");
|
|
9
|
+
const getPointerPosition = (event, direction) => direction === _SplitLayout.SplitLayoutDirection.HORIZONTAL ? event.clientX : event.clientY;
|
|
10
|
+
const useDragHandle = ({
|
|
11
|
+
direction,
|
|
12
|
+
onDrag,
|
|
13
|
+
onDragStart,
|
|
14
|
+
onDragEnd
|
|
15
|
+
}) => {
|
|
16
|
+
const startPositionRef = (0, _react.useRef)(0);
|
|
17
|
+
const cleanupRef = (0, _react.useRef)(null);
|
|
18
|
+
(0, _react.useEffect)(() => () => {
|
|
19
|
+
var _cleanupRef$current;
|
|
20
|
+
(_cleanupRef$current = cleanupRef.current) === null || _cleanupRef$current === void 0 || _cleanupRef$current.call(cleanupRef);
|
|
21
|
+
cleanupRef.current = null;
|
|
22
|
+
}, []);
|
|
23
|
+
return (0, _react.useCallback)(event => {
|
|
24
|
+
var _event$currentTarget$, _event$currentTarget;
|
|
25
|
+
event.preventDefault();
|
|
26
|
+
startPositionRef.current = getPointerPosition(event, direction);
|
|
27
|
+
const originalUserSelect = document.body.style.userSelect;
|
|
28
|
+
const originalCursor = document.body.style.cursor;
|
|
29
|
+
document.body.style.userSelect = 'none';
|
|
30
|
+
document.body.style.cursor = direction === _SplitLayout.SplitLayoutDirection.HORIZONTAL ? 'col-resize' : 'row-resize';
|
|
31
|
+
(_event$currentTarget$ = (_event$currentTarget = event.currentTarget).setPointerCapture) === null || _event$currentTarget$ === void 0 || _event$currentTarget$.call(_event$currentTarget, event.pointerId);
|
|
32
|
+
if (typeof onDragStart === 'function') {
|
|
33
|
+
onDragStart();
|
|
34
|
+
}
|
|
35
|
+
const onMove = moveEvent => {
|
|
36
|
+
moveEvent.preventDefault();
|
|
37
|
+
const currentPosition = getPointerPosition(moveEvent, direction);
|
|
38
|
+
const delta = currentPosition - startPositionRef.current;
|
|
39
|
+
startPositionRef.current = currentPosition;
|
|
40
|
+
onDrag(delta);
|
|
41
|
+
};
|
|
42
|
+
const cleanup = () => {
|
|
43
|
+
document.body.style.userSelect = originalUserSelect;
|
|
44
|
+
document.body.style.cursor = originalCursor;
|
|
45
|
+
window.removeEventListener('pointermove', onMove);
|
|
46
|
+
window.removeEventListener('pointerup', onUp);
|
|
47
|
+
window.removeEventListener('pointercancel', onUp);
|
|
48
|
+
cleanupRef.current = null;
|
|
49
|
+
};
|
|
50
|
+
const onUp = () => {
|
|
51
|
+
cleanup();
|
|
52
|
+
if (typeof onDragEnd === 'function') {
|
|
53
|
+
onDragEnd();
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
cleanupRef.current = cleanup;
|
|
57
|
+
window.addEventListener('pointermove', onMove);
|
|
58
|
+
window.addEventListener('pointerup', onUp);
|
|
59
|
+
window.addEventListener('pointercancel', onUp);
|
|
60
|
+
}, [direction, onDrag, onDragEnd, onDragStart]);
|
|
61
|
+
};
|
|
62
|
+
exports.useDragHandle = useDragHandle;
|
|
63
|
+
//# sourceMappingURL=ResizeHandle.hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResizeHandle.hooks.js","names":["_react","require","_SplitLayout","getPointerPosition","event","direction","SplitLayoutDirection","HORIZONTAL","clientX","clientY","useDragHandle","onDrag","onDragStart","onDragEnd","startPositionRef","useRef","cleanupRef","useEffect","_cleanupRef$current","current","call","useCallback","_event$currentTarget$","_event$currentTarget","preventDefault","originalUserSelect","document","body","style","userSelect","originalCursor","cursor","currentTarget","setPointerCapture","pointerId","onMove","moveEvent","currentPosition","delta","cleanup","window","removeEventListener","onUp","addEventListener","exports"],"sources":["../../../../../src/components/split-layout/resize-handle/ResizeHandle.hooks.ts"],"sourcesContent":["import { useCallback, useEffect, useRef, type PointerEvent as ReactPointerEvent } from 'react';\nimport { SplitLayoutDirection } from '../SplitLayout.types';\n\nexport interface UseDragHandleOptions {\n direction: SplitLayoutDirection;\n onDrag: (delta: number) => void;\n onDragStart?: () => void;\n onDragEnd?: () => void;\n}\n\nconst getPointerPosition = (\n event: PointerEvent | ReactPointerEvent,\n direction: SplitLayoutDirection,\n): number => (direction === SplitLayoutDirection.HORIZONTAL ? event.clientX : event.clientY);\n\nexport const useDragHandle = ({\n direction,\n onDrag,\n onDragStart,\n onDragEnd,\n}: UseDragHandleOptions): ((e: ReactPointerEvent<HTMLElement>) => void) => {\n const startPositionRef = useRef(0);\n const cleanupRef = useRef<(() => void) | null>(null);\n\n useEffect(\n () => () => {\n cleanupRef.current?.();\n cleanupRef.current = null;\n },\n [],\n );\n\n return useCallback(\n (event: ReactPointerEvent<HTMLElement>) => {\n event.preventDefault();\n\n startPositionRef.current = getPointerPosition(event, direction);\n\n const originalUserSelect = document.body.style.userSelect;\n const originalCursor = document.body.style.cursor;\n\n document.body.style.userSelect = 'none';\n document.body.style.cursor =\n direction === SplitLayoutDirection.HORIZONTAL ? 'col-resize' : 'row-resize';\n\n event.currentTarget.setPointerCapture?.(event.pointerId);\n\n if (typeof onDragStart === 'function') {\n onDragStart();\n }\n\n const onMove = (moveEvent: PointerEvent) => {\n moveEvent.preventDefault();\n\n const currentPosition = getPointerPosition(moveEvent, direction);\n const delta = currentPosition - startPositionRef.current;\n\n startPositionRef.current = currentPosition;\n\n onDrag(delta);\n };\n\n const cleanup = () => {\n document.body.style.userSelect = originalUserSelect;\n document.body.style.cursor = originalCursor;\n\n window.removeEventListener('pointermove', onMove);\n window.removeEventListener('pointerup', onUp);\n window.removeEventListener('pointercancel', onUp);\n\n cleanupRef.current = null;\n };\n\n const onUp = () => {\n cleanup();\n\n if (typeof onDragEnd === 'function') {\n onDragEnd();\n }\n };\n\n cleanupRef.current = cleanup;\n\n window.addEventListener('pointermove', onMove);\n window.addEventListener('pointerup', onUp);\n window.addEventListener('pointercancel', onUp);\n },\n [direction, onDrag, onDragEnd, onDragStart],\n );\n};\n"],"mappings":";;;;;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,gBAAgB,CAAC,eAAe,EAAED,IAAI,CAAC;EAClD,CAAC,EACD,CAACrC,SAAS,EAAEM,MAAM,EAAEE,SAAS,EAAED,WAAW,CAC9C,CAAC;AACL,CAAC;AAACgC,OAAA,CAAAlC,aAAA,GAAAA,aAAA","ignoreList":[]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _ResizeHandle = require("./ResizeHandle.styles");
|
|
9
|
+
var _ResizeHandle2 = require("./ResizeHandle.hooks");
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
const ResizeHandle = ({
|
|
12
|
+
onDrag,
|
|
13
|
+
onDragStart,
|
|
14
|
+
onDragEnd,
|
|
15
|
+
direction,
|
|
16
|
+
size
|
|
17
|
+
}) => {
|
|
18
|
+
const handlePointerDown = (0, _ResizeHandle2.useDragHandle)({
|
|
19
|
+
direction,
|
|
20
|
+
onDrag,
|
|
21
|
+
onDragStart,
|
|
22
|
+
onDragEnd
|
|
23
|
+
});
|
|
24
|
+
return /*#__PURE__*/_react.default.createElement(_ResizeHandle.StyledResizeHandle, {
|
|
25
|
+
$direction: direction,
|
|
26
|
+
$size: size
|
|
27
|
+
}, /*#__PURE__*/_react.default.createElement(_ResizeHandle.StyledResizeHandleDrag, {
|
|
28
|
+
$direction: direction,
|
|
29
|
+
onPointerDown: handlePointerDown
|
|
30
|
+
}), /*#__PURE__*/_react.default.createElement(_ResizeHandle.StyledResizeHandleLine, null));
|
|
31
|
+
};
|
|
32
|
+
ResizeHandle.displayName = 'ResizeHandle';
|
|
33
|
+
var _default = exports.default = ResizeHandle;
|
|
34
|
+
//# sourceMappingURL=ResizeHandle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResizeHandle.js","names":["_react","_interopRequireDefault","require","_ResizeHandle","_ResizeHandle2","e","__esModule","default","ResizeHandle","onDrag","onDragStart","onDragEnd","direction","size","handlePointerDown","useDragHandle","createElement","StyledResizeHandle","$direction","$size","StyledResizeHandleDrag","onPointerDown","StyledResizeHandleLine","displayName","_default","exports"],"sources":["../../../../../src/components/split-layout/resize-handle/ResizeHandle.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport {\n StyledResizeHandle,\n StyledResizeHandleDrag,\n StyledResizeHandleLine,\n} from './ResizeHandle.styles';\nimport { useDragHandle } from './ResizeHandle.hooks';\nimport { SplitLayoutDirection } from '../SplitLayout.types';\n\ninterface ResizeHandleProps {\n onDrag: (delta: number) => void;\n onDragStart?: () => void;\n onDragEnd?: () => void;\n direction: SplitLayoutDirection;\n size: number;\n}\n\nconst ResizeHandle: FC<ResizeHandleProps> = ({\n onDrag,\n onDragStart,\n onDragEnd,\n direction,\n size,\n}) => {\n const handlePointerDown = useDragHandle({\n direction,\n onDrag,\n onDragStart,\n onDragEnd,\n });\n\n return (\n <StyledResizeHandle $direction={direction} $size={size}>\n <StyledResizeHandleDrag $direction={direction} onPointerDown={handlePointerDown} />\n <StyledResizeHandleLine />\n </StyledResizeHandle>\n );\n};\n\nResizeHandle.displayName = 'ResizeHandle';\n\nexport default ResizeHandle;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AAKA,IAAAE,cAAA,GAAAF,OAAA;AAAqD,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAWrD,MAAMG,YAAmC,GAAGA,CAAC;EACzCC,MAAM;EACNC,WAAW;EACXC,SAAS;EACTC,SAAS;EACTC;AACJ,CAAC,KAAK;EACF,MAAMC,iBAAiB,GAAG,IAAAC,4BAAa,EAAC;IACpCH,SAAS;IACTH,MAAM;IACNC,WAAW;IACXC;EACJ,CAAC,CAAC;EAEF,oBACIX,MAAA,CAAAO,OAAA,CAAAS,aAAA,CAACb,aAAA,CAAAc,kBAAkB;IAACC,UAAU,EAAEN,SAAU;IAACO,KAAK,EAAEN;EAAK,gBACnDb,MAAA,CAAAO,OAAA,CAAAS,aAAA,CAACb,aAAA,CAAAiB,sBAAsB;IAACF,UAAU,EAAEN,SAAU;IAACS,aAAa,EAAEP;EAAkB,CAAE,CAAC,eACnFd,MAAA,CAAAO,OAAA,CAAAS,aAAA,CAACb,aAAA,CAAAmB,sBAAsB,MAAE,CACT,CAAC;AAE7B,CAAC;AAEDd,YAAY,CAACe,WAAW,GAAG,cAAc;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAlB,OAAA,GAE3BC,YAAY","ignoreList":[]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.StyledResizeHandleLine = exports.StyledResizeHandleDrag = exports.StyledResizeHandle = void 0;
|
|
7
|
+
var _styledComponents = require("styled-components");
|
|
8
|
+
var _SplitLayout = require("../SplitLayout.types");
|
|
9
|
+
const StyledResizeHandle = exports.StyledResizeHandle = _styledComponents.styled.div`
|
|
10
|
+
position: relative;
|
|
11
|
+
flex-shrink: 0;
|
|
12
|
+
width: ${({
|
|
13
|
+
$direction,
|
|
14
|
+
$size
|
|
15
|
+
}) => $direction === _SplitLayout.SplitLayoutDirection.HORIZONTAL ? `${$size}px` : '100%'};
|
|
16
|
+
height: ${({
|
|
17
|
+
$direction,
|
|
18
|
+
$size
|
|
19
|
+
}) => $direction === _SplitLayout.SplitLayoutDirection.VERTICAL ? `${$size}px` : '100%'};
|
|
20
|
+
`;
|
|
21
|
+
const StyledResizeHandleLine = exports.StyledResizeHandleLine = _styledComponents.styled.div`
|
|
22
|
+
width: 100%;
|
|
23
|
+
height: 100%;
|
|
24
|
+
background-color: ${({
|
|
25
|
+
theme
|
|
26
|
+
}) => theme['002']};
|
|
27
|
+
position: relative;
|
|
28
|
+
z-index: 10;
|
|
29
|
+
`;
|
|
30
|
+
const StyledResizeHandleDrag = exports.StyledResizeHandleDrag = _styledComponents.styled.div`
|
|
31
|
+
position: absolute;
|
|
32
|
+
|
|
33
|
+
opacity: 0;
|
|
34
|
+
z-index: 20;
|
|
35
|
+
|
|
36
|
+
${({
|
|
37
|
+
$direction
|
|
38
|
+
}) => $direction === _SplitLayout.SplitLayoutDirection.HORIZONTAL ? (0, _styledComponents.css)`
|
|
39
|
+
cursor: col-resize;
|
|
40
|
+
|
|
41
|
+
transform: translateX(-50%);
|
|
42
|
+
top: 0;
|
|
43
|
+
left: 50%;
|
|
44
|
+
|
|
45
|
+
width: 20px;
|
|
46
|
+
height: 100%;
|
|
47
|
+
` : (0, _styledComponents.css)`
|
|
48
|
+
cursor: row-resize;
|
|
49
|
+
transform: translateY(-50%);
|
|
50
|
+
|
|
51
|
+
top: 50%;
|
|
52
|
+
left: 0;
|
|
53
|
+
|
|
54
|
+
width: 100%;
|
|
55
|
+
height: 20px;
|
|
56
|
+
`}
|
|
57
|
+
`;
|
|
58
|
+
//# sourceMappingURL=ResizeHandle.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResizeHandle.styles.js","names":["_styledComponents","require","_SplitLayout","StyledResizeHandle","exports","styled","div","$direction","$size","SplitLayoutDirection","HORIZONTAL","VERTICAL","StyledResizeHandleLine","theme","StyledResizeHandleDrag","css"],"sources":["../../../../../src/components/split-layout/resize-handle/ResizeHandle.styles.ts"],"sourcesContent":["import { css, styled } from 'styled-components';\nimport { WithTheme } from '@chayns-components/core';\nimport { SplitLayoutDirection } from '../SplitLayout.types';\n\ntype StyledResizeHandleProps = WithTheme<{ $direction: SplitLayoutDirection; $size: number }>;\n\nexport const StyledResizeHandle = styled.div<StyledResizeHandleProps>`\n position: relative;\n flex-shrink: 0;\n width: ${({ $direction, $size }) =>\n $direction === SplitLayoutDirection.HORIZONTAL ? `${$size}px` : '100%'};\n height: ${({ $direction, $size }) =>\n $direction === SplitLayoutDirection.VERTICAL ? `${$size}px` : '100%'};\n`;\n\ntype StyledResizeHandleLineProps = WithTheme<unknown>;\n\nexport const StyledResizeHandleLine = styled.div<StyledResizeHandleLineProps>`\n width: 100%;\n height: 100%;\n background-color: ${({ theme }) => theme['002']};\n position: relative;\n z-index: 10;\n`;\n\ntype StyledResizeHandleDragProps = WithTheme<{ $direction: SplitLayoutDirection }>;\n\nexport const StyledResizeHandleDrag = styled.div<StyledResizeHandleDragProps>`\n position: absolute;\n\n opacity: 0;\n z-index: 20;\n\n ${({ $direction }) =>\n $direction === SplitLayoutDirection.HORIZONTAL\n ? css`\n cursor: col-resize;\n\n transform: translateX(-50%);\n top: 0;\n left: 50%;\n\n width: 20px;\n height: 100%;\n `\n : css`\n cursor: row-resize;\n transform: translateY(-50%);\n\n top: 50%;\n left: 0;\n\n width: 100%;\n height: 20px;\n `}\n`;\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AAIO,MAAME,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAGE,wBAAM,CAACC,GAA4B;AACrE;AACA;AACA,aAAa,CAAC;EAAEC,UAAU;EAAEC;AAAM,CAAC,KAC3BD,UAAU,KAAKE,iCAAoB,CAACC,UAAU,GAAG,GAAGF,KAAK,IAAI,GAAG,MAAM;AAC9E,cAAc,CAAC;EAAED,UAAU;EAAEC;AAAM,CAAC,KAC5BD,UAAU,KAAKE,iCAAoB,CAACE,QAAQ,GAAG,GAAGH,KAAK,IAAI,GAAG,MAAM;AAC5E,CAAC;AAIM,MAAMI,sBAAsB,GAAAR,OAAA,CAAAQ,sBAAA,GAAGP,wBAAM,CAACC,GAAgC;AAC7E;AACA;AACA,wBAAwB,CAAC;EAAEO;AAAM,CAAC,KAAKA,KAAK,CAAC,KAAK,CAAC;AACnD;AACA;AACA,CAAC;AAIM,MAAMC,sBAAsB,GAAAV,OAAA,CAAAU,sBAAA,GAAGT,wBAAM,CAACC,GAAgC;AAC7E;AACA;AACA;AACA;AACA;AACA,MAAM,CAAC;EAAEC;AAAW,CAAC,KACbA,UAAU,KAAKE,iCAAoB,CAACC,UAAU,GACxC,IAAAK,qBAAG;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,GACD,IAAAA,qBAAG;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _userImage = require("./userImage.styles");
|
|
9
|
+
var _core = require("@chayns-components/core");
|
|
10
|
+
var _chaynsApi = require("chayns-api");
|
|
11
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
12
|
+
const UserImage = ({
|
|
13
|
+
size = 35,
|
|
14
|
+
personId,
|
|
15
|
+
popupContent,
|
|
16
|
+
yOffset = -10,
|
|
17
|
+
onClick
|
|
18
|
+
}) => {
|
|
19
|
+
const user = (0, _chaynsApi.useUser)();
|
|
20
|
+
const src = (0, _react.useMemo)(() => `https://tsimg.cloud/${personId || user.personId || ''}/profile_w200-h200.png`, [personId, user]);
|
|
21
|
+
return /*#__PURE__*/_react.default.createElement(_userImage.StyledUserImage, {
|
|
22
|
+
$size: size
|
|
23
|
+
}, popupContent ? /*#__PURE__*/_react.default.createElement(_core.Popup, {
|
|
24
|
+
content: popupContent,
|
|
25
|
+
yOffset: yOffset
|
|
26
|
+
}, /*#__PURE__*/_react.default.createElement(_userImage.StyledUserImageUser, {
|
|
27
|
+
$size: size,
|
|
28
|
+
src: src,
|
|
29
|
+
onClick: onClick
|
|
30
|
+
})) : /*#__PURE__*/_react.default.createElement(_userImage.StyledUserImageUser, {
|
|
31
|
+
$size: size,
|
|
32
|
+
src: src,
|
|
33
|
+
onClick: onClick
|
|
34
|
+
}));
|
|
35
|
+
};
|
|
36
|
+
UserImage.displayName = 'UserImage';
|
|
37
|
+
var _default = exports.default = UserImage;
|
|
38
|
+
//# sourceMappingURL=UserImage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserImage.js","names":["_react","_interopRequireWildcard","require","_userImage","_core","_chaynsApi","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","UserImage","size","personId","popupContent","yOffset","onClick","user","useUser","src","useMemo","createElement","StyledUserImage","$size","Popup","content","StyledUserImageUser","displayName","_default","exports"],"sources":["../../../../src/components/user-image/UserImage.tsx"],"sourcesContent":["import React, { FC, useMemo } from 'react';\nimport { StyledUserImage, StyledUserImageUser } from './userImage.styles';\nimport { UserImageProps } from './UserImage.types';\nimport { Popup } from '@chayns-components/core';\nimport { useUser } from 'chayns-api';\n\nconst UserImage: FC<UserImageProps> = ({\n size = 35,\n personId,\n popupContent,\n yOffset = -10,\n onClick,\n}) => {\n const user = useUser();\n\n const src = useMemo(\n () => `https://tsimg.cloud/${personId || user.personId || ''}/profile_w200-h200.png`,\n [personId, user],\n );\n\n return (\n <StyledUserImage $size={size}>\n {popupContent ? (\n <Popup content={popupContent} yOffset={yOffset}>\n <StyledUserImageUser $size={size} src={src} onClick={onClick} />\n </Popup>\n ) : (\n <StyledUserImageUser $size={size} src={src} onClick={onClick} />\n )}\n </StyledUserImage>\n );\n};\n\nUserImage.displayName = 'UserImage';\n\nexport default UserImage;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAEA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAAqC,SAAAD,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,CAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EA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],"sources":["../../../../src/components/user-image/UserImage.types.ts"],"sourcesContent":["import { ReactNode } from 'react';\n\nexport interface UserImageProps {\n personId?: string;\n size?: number;\n yOffset?: number;\n popupContent?: ReactNode;\n onClick?: () => void;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.StyledUserImageUser = exports.StyledUserImage = void 0;
|
|
7
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
const StyledUserImage = exports.StyledUserImage = _styledComponents.default.div`
|
|
10
|
+
height: ${({
|
|
11
|
+
$size
|
|
12
|
+
}) => $size}px;
|
|
13
|
+
|
|
14
|
+
aspect-ratio: 1;
|
|
15
|
+
`;
|
|
16
|
+
const StyledUserImageUser = exports.StyledUserImageUser = _styledComponents.default.img`
|
|
17
|
+
height: ${({
|
|
18
|
+
$size
|
|
19
|
+
}) => $size}px;
|
|
20
|
+
|
|
21
|
+
aspect-ratio: 1;
|
|
22
|
+
|
|
23
|
+
border-radius: 50%;
|
|
24
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
`;
|
|
27
|
+
//# sourceMappingURL=userImage.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userImage.styles.js","names":["_styledComponents","_interopRequireDefault","require","e","__esModule","default","StyledUserImage","exports","styled","div","$size","StyledUserImageUser","img"],"sources":["../../../../src/components/user-image/userImage.styles.ts"],"sourcesContent":["import styled from 'styled-components';\nimport { WithTheme } from '@chayns-components/core';\n\ntype StyledUserImageProps = WithTheme<{ $size: number }>;\n\nexport const StyledUserImage = styled.div<StyledUserImageProps>`\n height: ${({ $size }) => $size}px;\n\n aspect-ratio: 1;\n`;\n\ntype StyledUserImageUserProps = WithTheme<{ $size: number }>;\n\nexport const StyledUserImageUser = styled.img<StyledUserImageUserProps>`\n height: ${({ $size }) => $size}px;\n\n aspect-ratio: 1;\n\n border-radius: 50%;\n border: 1px solid rgba(0, 0, 0, 0.1);\n cursor: pointer;\n`;\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAuC,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAKhC,MAAMG,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAGE,yBAAM,CAACC,GAAyB;AAC/D,cAAc,CAAC;EAAEC;AAAM,CAAC,KAAKA,KAAK;AAClC;AACA;AACA,CAAC;AAIM,MAAMC,mBAAmB,GAAAJ,OAAA,CAAAI,mBAAA,GAAGH,yBAAM,CAACI,GAA6B;AACvE,cAAc,CAAC;EAAEF;AAAM,CAAC,KAAKA,KAAK;AAClC;AACA;AACA;AACA;AACA;AACA;AACA,CAAC","ignoreList":[]}
|
package/lib/cjs/index.js
CHANGED
|
@@ -21,8 +21,56 @@ Object.defineProperty(exports, "DynamicToolbarSpacer", {
|
|
|
21
21
|
return _DynamicToolbarSpacer.default;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
+
Object.defineProperty(exports, "MenuToggle", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _MenuToggle.default;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "NavigationLayout", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _NavigationLayout.default;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "SplitLayout", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _SplitLayout.default;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "SplitLayoutDirection", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () {
|
|
45
|
+
return _SplitLayout2.SplitLayoutDirection;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "UserImage", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () {
|
|
51
|
+
return _UserImage.default;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "reorderNavigationLayoutGroupItems", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return _NavigationLayout2.reorderNavigationLayoutGroupItems;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "reorderNavigationLayoutGroups", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return _NavigationLayout2.reorderNavigationLayoutGroups;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
24
66
|
var _DynamicToolbar = _interopRequireDefault(require("./components/dynamic-toolbar/DynamicToolbar"));
|
|
25
|
-
var _DynamicToolbar2 = require("./components/dynamic-toolbar/DynamicToolbar.types");
|
|
26
67
|
var _DynamicToolbarSpacer = _interopRequireDefault(require("./components/dynamic-toolbar-spacer/DynamicToolbarSpacer"));
|
|
68
|
+
var _SplitLayout = _interopRequireDefault(require("./components/split-layout/SplitLayout"));
|
|
69
|
+
var _UserImage = _interopRequireDefault(require("./components/user-image/UserImage"));
|
|
70
|
+
var _MenuToggle = _interopRequireDefault(require("./components/navigation-layout/navigation-header/menu-toggle/MenuToggle"));
|
|
71
|
+
var _NavigationLayout = _interopRequireDefault(require("./components/navigation-layout/NavigationLayout"));
|
|
72
|
+
var _DynamicToolbar2 = require("./components/dynamic-toolbar/DynamicToolbar.types");
|
|
73
|
+
var _SplitLayout2 = require("./components/split-layout/SplitLayout.types");
|
|
74
|
+
var _NavigationLayout2 = require("./components/navigation-layout/NavigationLayout.utils");
|
|
27
75
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
28
76
|
//# sourceMappingURL=index.js.map
|
package/lib/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_DynamicToolbar","_interopRequireDefault","require","_DynamicToolbar2","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_DynamicToolbar","_interopRequireDefault","require","_DynamicToolbarSpacer","_SplitLayout","_UserImage","_MenuToggle","_NavigationLayout","_DynamicToolbar2","_SplitLayout2","_NavigationLayout2","e","__esModule","default"],"sources":["../../src/index.ts"],"sourcesContent":["// noinspection JSUnusedGlobalSymbols\n\n// Components\nexport { default as DynamicToolbar } from './components/dynamic-toolbar/DynamicToolbar';\nexport { default as DynamicToolbarSpacer } from './components/dynamic-toolbar-spacer/DynamicToolbarSpacer';\nexport { default as SplitLayout } from './components/split-layout/SplitLayout';\nexport { default as UserImage } from './components/user-image/UserImage';\nexport { default as MenuToggle } from './components/navigation-layout/navigation-header/menu-toggle/MenuToggle';\nexport { default as NavigationLayout } from './components/navigation-layout/NavigationLayout';\n\n// Types\nexport type { DynamicToolbarSpacerProps } from './components/dynamic-toolbar-spacer/DynamicToolbarSpacer.types';\nexport type {\n DynamicToolbarItem,\n DynamicToolbarProps,\n} from './components/dynamic-toolbar/DynamicToolbar.types';\nexport type {\n NavigationLayoutConfig,\n NavigationLayoutGroup,\n NavigationLayoutItem,\n NavigationLayoutItemLocation,\n NavigationLayoutItemReorderEvent,\n NavigationLayoutItemReorderPlacement,\n NavigationLayoutItemReorderSource,\n NavigationLayoutItemReorderTarget,\n NavigationLayoutProps,\n} from './components/navigation-layout/NavigationLayout.types';\nexport type { SplitLayoutView } from './components/split-layout/SplitLayout.types';\n\n// Emums\nexport { DynamicToolbarLayout } from './components/dynamic-toolbar/DynamicToolbar.types';\nexport { SplitLayoutDirection } from './components/split-layout/SplitLayout.types';\n\n// Utils\nexport {\n reorderNavigationLayoutGroupItems,\n reorderNavigationLayoutGroups,\n} from './components/navigation-layout/NavigationLayout.utils';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,IAAAA,eAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,YAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,UAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,WAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,iBAAA,GAAAN,sBAAA,CAAAC,OAAA;AAsBA,IAAAM,gBAAA,GAAAN,OAAA;AACA,IAAAO,aAAA,GAAAP,OAAA;AAGA,IAAAQ,kBAAA,GAAAR,OAAA;AAG+D,SAAAD,uBAAAU,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const DEFAULT_NAVIGATION_LAYOUT_CONFIG = {
|
|
2
|
+
headerHeight: 64,
|
|
3
|
+
backgroundColor: 'var(--chayns-color--primary)',
|
|
4
|
+
color: 'var(--chayns-color--text)',
|
|
5
|
+
sidebarMinWidth: 62,
|
|
6
|
+
sidebarMaxWidth: 170
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=NavigationLayout.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationLayout.constants.js","names":["DEFAULT_NAVIGATION_LAYOUT_CONFIG","headerHeight","backgroundColor","color","sidebarMinWidth","sidebarMaxWidth"],"sources":["../../../../src/components/navigation-layout/NavigationLayout.constants.ts"],"sourcesContent":["export const DEFAULT_NAVIGATION_LAYOUT_CONFIG = {\n headerHeight: 64,\n backgroundColor: 'var(--chayns-color--primary)',\n color: 'var(--chayns-color--text)',\n sidebarMinWidth: 62,\n sidebarMaxWidth: 170,\n};\n"],"mappings":"AAAA,OAAO,MAAMA,gCAAgC,GAAG;EAC5CC,YAAY,EAAE,EAAE;EAChBC,eAAe,EAAE,8BAA8B;EAC/CC,KAAK,EAAE,2BAA2B;EAClCC,eAAe,EAAE,EAAE;EACnBC,eAAe,EAAE;AACrB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { createContext, useContext } from 'react';
|
|
2
|
+
const NavigationLayoutContext = /*#__PURE__*/createContext(null);
|
|
3
|
+
export const NavigationLayoutProvider = ({
|
|
4
|
+
children,
|
|
5
|
+
value
|
|
6
|
+
}) => /*#__PURE__*/React.createElement(NavigationLayoutContext.Provider, {
|
|
7
|
+
value: value
|
|
8
|
+
}, children);
|
|
9
|
+
NavigationLayoutProvider.displayName = 'NavigationLayoutProvider';
|
|
10
|
+
export const useNavigationLayoutContext = () => {
|
|
11
|
+
const context = useContext(NavigationLayoutContext);
|
|
12
|
+
if (!context) {
|
|
13
|
+
throw new Error('useNavigationLayoutContext must be used within NavigationLayoutProvider.');
|
|
14
|
+
}
|
|
15
|
+
return context;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=NavigationLayout.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationLayout.context.js","names":["React","createContext","useContext","NavigationLayoutContext","NavigationLayoutProvider","children","value","createElement","Provider","displayName","useNavigationLayoutContext","context","Error"],"sources":["../../../../src/components/navigation-layout/NavigationLayout.context.tsx"],"sourcesContent":["import React, { ReactNode, createContext, useContext } from 'react';\nimport { NavigationLayoutProps } from './NavigationLayout.types';\n\ninterface NavigationLayoutContextValue {\n onItemReorder?: NavigationLayoutProps['onItemReorder'];\n}\n\ninterface NavigationLayoutProviderProps {\n children: ReactNode;\n value: NavigationLayoutContextValue;\n}\n\nconst NavigationLayoutContext = createContext<NavigationLayoutContextValue | null>(null);\n\nexport const NavigationLayoutProvider = ({ children, value }: NavigationLayoutProviderProps) => (\n <NavigationLayoutContext.Provider value={value}>{children}</NavigationLayoutContext.Provider>\n);\n\nNavigationLayoutProvider.displayName = 'NavigationLayoutProvider';\n\nexport const useNavigationLayoutContext = (): NavigationLayoutContextValue => {\n const context = useContext(NavigationLayoutContext);\n\n if (!context) {\n throw new Error('useNavigationLayoutContext must be used within NavigationLayoutProvider.');\n }\n\n return context;\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAAeC,aAAa,EAAEC,UAAU,QAAQ,OAAO;AAYnE,MAAMC,uBAAuB,gBAAGF,aAAa,CAAsC,IAAI,CAAC;AAExF,OAAO,MAAMG,wBAAwB,GAAGA,CAAC;EAAEC,QAAQ;EAAEC;AAAqC,CAAC,kBACvFN,KAAA,CAAAO,aAAA,CAACJ,uBAAuB,CAACK,QAAQ;EAACF,KAAK,EAAEA;AAAM,GAAED,QAA2C,CAC/F;AAEDD,wBAAwB,CAACK,WAAW,GAAG,0BAA0B;AAEjE,OAAO,MAAMC,0BAA0B,GAAGA,CAAA,KAAoC;EAC1E,MAAMC,OAAO,GAAGT,UAAU,CAACC,uBAAuB,CAAC;EAEnD,IAAI,CAACQ,OAAO,EAAE;IACV,MAAM,IAAIC,KAAK,CAAC,0EAA0E,CAAC;EAC/F;EAEA,OAAOD,OAAO;AAClB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import React, { useCallback, useMemo, useState } from 'react';
|
|
2
|
+
import { StyledMotionNavigationLayoutContentWrapper, StyledNavigationLayout, StyledNavigationLayoutBackground, StyledNavigationLayoutBackgroundImage, StyledNavigationLayoutContent, StyledMotionNavigationLayoutContentOverlay } from './NavigationLayout.styles';
|
|
3
|
+
import NavigationHeader from './navigation-header/NavigationHeader';
|
|
4
|
+
import NavigationSidebar from './navigation-sidebar/NavigationSidebar';
|
|
5
|
+
import { DEFAULT_NAVIGATION_LAYOUT_CONFIG } from './NavigationLayout.constants';
|
|
6
|
+
import { AnimatePresence } from 'motion/react';
|
|
7
|
+
import { NavigationLayoutProvider } from './NavigationLayout.context';
|
|
8
|
+
const NavigationLayout = ({
|
|
9
|
+
children,
|
|
10
|
+
config: configProp,
|
|
11
|
+
sidebarTopContent,
|
|
12
|
+
sidebarBottomContent,
|
|
13
|
+
groups,
|
|
14
|
+
headerContent,
|
|
15
|
+
selectedItemId,
|
|
16
|
+
isMobile = false,
|
|
17
|
+
shouldShowCollapsedLabel = false,
|
|
18
|
+
onItemClick,
|
|
19
|
+
onItemReorder,
|
|
20
|
+
onSidebarOpen,
|
|
21
|
+
onSidebarClose
|
|
22
|
+
}) => {
|
|
23
|
+
const [isMobileOpen, setIsMobileOpen] = useState(false);
|
|
24
|
+
const mergedConfig = useMemo(() => ({
|
|
25
|
+
...DEFAULT_NAVIGATION_LAYOUT_CONFIG,
|
|
26
|
+
...configProp
|
|
27
|
+
}), [configProp]);
|
|
28
|
+
const shouldShowCollapsedSidebarLabel = shouldShowCollapsedLabel && !isMobile;
|
|
29
|
+
const handleToggleMobileMenu = useCallback(() => {
|
|
30
|
+
if (!isMobile) {
|
|
31
|
+
setIsMobileOpen(false);
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
setIsMobileOpen(prev => !prev);
|
|
35
|
+
}, [isMobile]);
|
|
36
|
+
return /*#__PURE__*/React.createElement(NavigationLayoutProvider, {
|
|
37
|
+
value: {
|
|
38
|
+
onItemReorder
|
|
39
|
+
}
|
|
40
|
+
}, /*#__PURE__*/React.createElement(StyledNavigationLayout, null, /*#__PURE__*/React.createElement(NavigationHeader, {
|
|
41
|
+
height: mergedConfig.headerHeight,
|
|
42
|
+
color: mergedConfig.color,
|
|
43
|
+
headerContent: headerContent,
|
|
44
|
+
safeAreas: mergedConfig.safeAreas,
|
|
45
|
+
isMobile: isMobile,
|
|
46
|
+
isMobileOpen: isMobileOpen,
|
|
47
|
+
onMenuClick: handleToggleMobileMenu
|
|
48
|
+
}), /*#__PURE__*/React.createElement(StyledMotionNavigationLayoutContentWrapper, {
|
|
49
|
+
initial: false,
|
|
50
|
+
animate: isMobile ? {
|
|
51
|
+
x: isMobileOpen ? 0 : '-70vw'
|
|
52
|
+
} : {},
|
|
53
|
+
transition: {
|
|
54
|
+
type: 'tween'
|
|
55
|
+
}
|
|
56
|
+
}, /*#__PURE__*/React.createElement(NavigationSidebar, {
|
|
57
|
+
color: mergedConfig.color,
|
|
58
|
+
groups: groups,
|
|
59
|
+
topContent: sidebarTopContent,
|
|
60
|
+
bottomContent: sidebarBottomContent,
|
|
61
|
+
minWidth: mergedConfig.sidebarMinWidth,
|
|
62
|
+
maxWidth: mergedConfig.sidebarMaxWidth,
|
|
63
|
+
isMobile: isMobile,
|
|
64
|
+
selectedItemId: selectedItemId,
|
|
65
|
+
onItemClick: onItemClick,
|
|
66
|
+
onSidebarOpen: onSidebarOpen,
|
|
67
|
+
onSidebarClose: onSidebarClose,
|
|
68
|
+
shouldShowCollapsedLabel: shouldShowCollapsedSidebarLabel
|
|
69
|
+
}), /*#__PURE__*/React.createElement(StyledNavigationLayoutContent, {
|
|
70
|
+
$isMobile: isMobile,
|
|
71
|
+
$isCornerContent: !isMobile || isMobileOpen
|
|
72
|
+
}, children, /*#__PURE__*/React.createElement(AnimatePresence, {
|
|
73
|
+
initial: false
|
|
74
|
+
}, isMobileOpen && /*#__PURE__*/React.createElement(StyledMotionNavigationLayoutContentOverlay, {
|
|
75
|
+
initial: {
|
|
76
|
+
opacity: 0
|
|
77
|
+
},
|
|
78
|
+
animate: {
|
|
79
|
+
opacity: 0.28
|
|
80
|
+
},
|
|
81
|
+
exit: {
|
|
82
|
+
opacity: 0
|
|
83
|
+
},
|
|
84
|
+
transition: {
|
|
85
|
+
duration: 0.3,
|
|
86
|
+
type: 'tween'
|
|
87
|
+
},
|
|
88
|
+
onClick: handleToggleMobileMenu
|
|
89
|
+
})))), /*#__PURE__*/React.createElement(StyledNavigationLayoutBackground, {
|
|
90
|
+
$backgroundColor: mergedConfig.backgroundColor
|
|
91
|
+
}, mergedConfig.backgroundImage && /*#__PURE__*/React.createElement(StyledNavigationLayoutBackgroundImage, {
|
|
92
|
+
src: mergedConfig.backgroundImage
|
|
93
|
+
}))));
|
|
94
|
+
};
|
|
95
|
+
NavigationLayout.displayName = 'NavigationLayout';
|
|
96
|
+
export default NavigationLayout;
|
|
97
|
+
//# sourceMappingURL=NavigationLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationLayout.js","names":["React","useCallback","useMemo","useState","StyledMotionNavigationLayoutContentWrapper","StyledNavigationLayout","StyledNavigationLayoutBackground","StyledNavigationLayoutBackgroundImage","StyledNavigationLayoutContent","StyledMotionNavigationLayoutContentOverlay","NavigationHeader","NavigationSidebar","DEFAULT_NAVIGATION_LAYOUT_CONFIG","AnimatePresence","NavigationLayoutProvider","NavigationLayout","children","config","configProp","sidebarTopContent","sidebarBottomContent","groups","headerContent","selectedItemId","isMobile","shouldShowCollapsedLabel","onItemClick","onItemReorder","onSidebarOpen","onSidebarClose","isMobileOpen","setIsMobileOpen","mergedConfig","shouldShowCollapsedSidebarLabel","handleToggleMobileMenu","prev","createElement","value","height","headerHeight","color","safeAreas","onMenuClick","initial","animate","x","transition","type","topContent","bottomContent","minWidth","sidebarMinWidth","maxWidth","sidebarMaxWidth","$isMobile","$isCornerContent","opacity","exit","duration","onClick","$backgroundColor","backgroundColor","backgroundImage","src","displayName"],"sources":["../../../../src/components/navigation-layout/NavigationLayout.tsx"],"sourcesContent":["import React, { FC, useCallback, useMemo, useState } from 'react';\nimport { NavigationLayoutProps } from './NavigationLayout.types';\nimport {\n StyledMotionNavigationLayoutContentWrapper,\n StyledNavigationLayout,\n StyledNavigationLayoutBackground,\n StyledNavigationLayoutBackgroundImage,\n StyledNavigationLayoutContent,\n StyledMotionNavigationLayoutContentOverlay,\n} from './NavigationLayout.styles';\nimport NavigationHeader from './navigation-header/NavigationHeader';\nimport NavigationSidebar from './navigation-sidebar/NavigationSidebar';\nimport { DEFAULT_NAVIGATION_LAYOUT_CONFIG } from './NavigationLayout.constants';\nimport { AnimatePresence } from 'motion/react';\nimport { NavigationLayoutProvider } from './NavigationLayout.context';\n\nconst NavigationLayout: FC<NavigationLayoutProps> = ({\n children,\n config: configProp,\n sidebarTopContent,\n sidebarBottomContent,\n groups,\n headerContent,\n selectedItemId,\n isMobile = false,\n shouldShowCollapsedLabel = false,\n onItemClick,\n onItemReorder,\n onSidebarOpen,\n onSidebarClose,\n}) => {\n const [isMobileOpen, setIsMobileOpen] = useState(false);\n\n const mergedConfig = useMemo(\n () => ({\n ...DEFAULT_NAVIGATION_LAYOUT_CONFIG,\n ...configProp,\n }),\n [configProp],\n );\n\n const shouldShowCollapsedSidebarLabel = shouldShowCollapsedLabel && !isMobile;\n\n const handleToggleMobileMenu = useCallback(() => {\n if (!isMobile) {\n setIsMobileOpen(false);\n\n return;\n }\n\n setIsMobileOpen((prev) => !prev);\n }, [isMobile]);\n\n return (\n <NavigationLayoutProvider value={{ onItemReorder }}>\n <StyledNavigationLayout>\n <NavigationHeader\n height={mergedConfig.headerHeight}\n color={mergedConfig.color}\n headerContent={headerContent}\n safeAreas={mergedConfig.safeAreas}\n isMobile={isMobile}\n isMobileOpen={isMobileOpen}\n onMenuClick={handleToggleMobileMenu}\n />\n <StyledMotionNavigationLayoutContentWrapper\n initial={false}\n animate={isMobile ? { x: isMobileOpen ? 0 : '-70vw' } : {}}\n transition={{\n type: 'tween',\n }}\n >\n <NavigationSidebar\n color={mergedConfig.color}\n groups={groups}\n topContent={sidebarTopContent}\n bottomContent={sidebarBottomContent}\n minWidth={mergedConfig.sidebarMinWidth}\n maxWidth={mergedConfig.sidebarMaxWidth}\n isMobile={isMobile}\n selectedItemId={selectedItemId}\n onItemClick={onItemClick}\n onSidebarOpen={onSidebarOpen}\n onSidebarClose={onSidebarClose}\n shouldShowCollapsedLabel={shouldShowCollapsedSidebarLabel}\n />\n <StyledNavigationLayoutContent\n $isMobile={isMobile}\n $isCornerContent={!isMobile || isMobileOpen}\n >\n {children}\n <AnimatePresence initial={false}>\n {isMobileOpen && (\n <StyledMotionNavigationLayoutContentOverlay\n initial={{ opacity: 0 }}\n animate={{ opacity: 0.28 }}\n exit={{ opacity: 0 }}\n transition={{ duration: 0.3, type: 'tween' }}\n onClick={handleToggleMobileMenu}\n />\n )}\n </AnimatePresence>\n </StyledNavigationLayoutContent>\n </StyledMotionNavigationLayoutContentWrapper>\n <StyledNavigationLayoutBackground $backgroundColor={mergedConfig.backgroundColor}>\n {mergedConfig.backgroundImage && (\n <StyledNavigationLayoutBackgroundImage src={mergedConfig.backgroundImage} />\n )}\n </StyledNavigationLayoutBackground>\n </StyledNavigationLayout>\n </NavigationLayoutProvider>\n );\n};\n\nNavigationLayout.displayName = 'NavigationLayout';\n\nexport default NavigationLayout;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAQC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAEjE,SACIC,0CAA0C,EAC1CC,sBAAsB,EACtBC,gCAAgC,EAChCC,qCAAqC,EACrCC,6BAA6B,EAC7BC,0CAA0C,QACvC,2BAA2B;AAClC,OAAOC,gBAAgB,MAAM,sCAAsC;AACnE,OAAOC,iBAAiB,MAAM,wCAAwC;AACtE,SAASC,gCAAgC,QAAQ,8BAA8B;AAC/E,SAASC,eAAe,QAAQ,cAAc;AAC9C,SAASC,wBAAwB,QAAQ,4BAA4B;AAErE,MAAMC,gBAA2C,GAAGA,CAAC;EACjDC,QAAQ;EACRC,MAAM,EAAEC,UAAU;EAClBC,iBAAiB;EACjBC,oBAAoB;EACpBC,MAAM;EACNC,aAAa;EACbC,cAAc;EACdC,QAAQ,GAAG,KAAK;EAChBC,wBAAwB,GAAG,KAAK;EAChCC,WAAW;EACXC,aAAa;EACbC,aAAa;EACbC;AACJ,CAAC,KAAK;EACF,MAAM,CAACC,YAAY,EAAEC,eAAe,CAAC,GAAG5B,QAAQ,CAAC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