react-panel-layout 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FloatingPanelFrame-SgYLc6Ud.js → FloatingPanelFrame-3eU9AwPo.js} +2 -2
- package/dist/{FloatingPanelFrame-SgYLc6Ud.js.map → FloatingPanelFrame-3eU9AwPo.js.map} +1 -1
- package/dist/FloatingWindow-Bw2djgpz.js +1542 -0
- package/dist/FloatingWindow-Bw2djgpz.js.map +1 -0
- package/dist/FloatingWindow-Cvyokf0m.cjs +2 -0
- package/dist/FloatingWindow-Cvyokf0m.cjs.map +1 -0
- package/dist/GridLayout-B4aCqSyd.js +947 -0
- package/dist/{GridLayout-BltqeCPK.js.map → GridLayout-B4aCqSyd.js.map} +1 -1
- package/dist/GridLayout-DNOClFzz.cjs +2 -0
- package/dist/{GridLayout-B4VRsC0r.cjs.map → GridLayout-DNOClFzz.cjs.map} +1 -1
- package/dist/{HorizontalDivider-WF1k_qND.js → HorizontalDivider-DdxzfV0l.js} +3 -3
- package/dist/{HorizontalDivider-WF1k_qND.js.map → HorizontalDivider-DdxzfV0l.js.map} +1 -1
- package/dist/{HorizontalDivider-B5Z-KZLk.cjs → HorizontalDivider-_pgV4Mcv.cjs} +2 -2
- package/dist/{HorizontalDivider-B5Z-KZLk.cjs.map → HorizontalDivider-_pgV4Mcv.cjs.map} +1 -1
- package/dist/PanelSystem-B8Igvnb2.cjs +3 -0
- package/dist/PanelSystem-B8Igvnb2.cjs.map +1 -0
- package/dist/{PanelSystem-Dr1TBhxM.js → PanelSystem-DDUSFjXD.js} +209 -248
- package/dist/PanelSystem-DDUSFjXD.js.map +1 -0
- package/dist/ResizeHandle-CBcAS918.cjs +2 -0
- package/dist/{ResizeHandle-CScipO5l.cjs.map → ResizeHandle-CBcAS918.cjs.map} +1 -1
- package/dist/{ResizeHandle-CdA_JYfN.js → ResizeHandle-CXjc1meV.js} +28 -29
- package/dist/{ResizeHandle-CdA_JYfN.js.map → ResizeHandle-CXjc1meV.js.map} +1 -1
- package/dist/SwipePivotTabBar-DWrCuwEI.js +411 -0
- package/dist/SwipePivotTabBar-DWrCuwEI.js.map +1 -0
- package/dist/SwipePivotTabBar-fjjXkpj7.cjs +2 -0
- package/dist/SwipePivotTabBar-fjjXkpj7.cjs.map +1 -0
- package/dist/components/gesture/SwipeSafeZone.d.ts +40 -0
- package/dist/components/window/Drawer.d.ts +4 -1
- package/dist/components/window/DrawerLayers.d.ts +1 -1
- package/dist/components/window/DrawerRevealContext.d.ts +61 -0
- package/dist/components/window/drawerRevealAnimationUtils.d.ts +212 -0
- package/dist/components/window/drawerStyles.d.ts +74 -0
- package/dist/components/window/drawerSwipeConfig.d.ts +29 -0
- package/dist/components/window/useDrawerSwipeTransform.d.ts +29 -0
- package/dist/components/window/useDrawerTransform.d.ts +68 -0
- package/dist/components/window/useRevealDrawerTransform.d.ts +56 -0
- package/dist/config.cjs +1 -1
- package/dist/config.cjs.map +1 -1
- package/dist/config.js +9 -8
- package/dist/config.js.map +1 -1
- package/dist/constants/styles.d.ts +17 -0
- package/dist/dialog/index.d.ts +69 -0
- package/dist/floating.js +1 -1
- package/dist/grid.cjs +1 -1
- package/dist/grid.js +2 -2
- package/dist/hooks/gesture/testing/createGestureSimulator.d.ts +7 -0
- package/dist/hooks/gesture/types.d.ts +48 -5
- package/dist/hooks/gesture/utils.d.ts +19 -0
- package/dist/hooks/useAnimationFrame.d.ts +2 -0
- package/dist/hooks/useOperationContinuity.d.ts +64 -0
- package/dist/hooks/useResizeObserver.d.ts +33 -1
- package/dist/hooks/useSharedElementTransition.d.ts +112 -0
- package/dist/hooks/useSwipeContentTransform.d.ts +9 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +7 -7
- package/dist/modules/dialog/AlertDialog.d.ts +9 -0
- package/dist/modules/dialog/DialogContainer.d.ts +37 -0
- package/dist/modules/dialog/Modal.d.ts +26 -0
- package/dist/modules/dialog/SwipeDialogContainer.d.ts +16 -0
- package/dist/modules/dialog/dialogAnimationUtils.d.ts +113 -0
- package/dist/modules/dialog/types.d.ts +183 -0
- package/dist/modules/dialog/useDialog.d.ts +39 -0
- package/dist/modules/dialog/useDialogContainer.d.ts +47 -0
- package/dist/modules/dialog/useDialogSwipeInput.d.ts +70 -0
- package/dist/modules/dialog/useDialogTransform.d.ts +82 -0
- package/dist/modules/drawer/drawerStateMachine.d.ts +168 -0
- package/dist/modules/drawer/revealDrawerConstants.d.ts +33 -0
- package/dist/modules/drawer/revealDrawerStateMachine.d.ts +146 -0
- package/dist/modules/drawer/strategies/index.d.ts +8 -0
- package/dist/modules/drawer/strategies/overlayStrategy.d.ts +12 -0
- package/dist/modules/drawer/strategies/revealStrategy.d.ts +12 -0
- package/dist/modules/drawer/strategies/types.d.ts +116 -0
- package/dist/modules/drawer/types.d.ts +74 -0
- package/dist/modules/drawer/useDrawerSwipeInput.d.ts +24 -0
- package/dist/modules/pivot/SwipePivotTabBar.d.ts +3 -0
- package/dist/modules/stack/SwipeStackContent.d.ts +6 -3
- package/dist/modules/stack/SwipeStackOutlet.d.ts +4 -4
- package/dist/modules/stack/computeSwipeStackTransform.d.ts +1 -1
- package/dist/panels.cjs +1 -1
- package/dist/panels.js +1 -1
- package/dist/pivot.cjs +1 -1
- package/dist/pivot.js +1 -1
- package/dist/resizer.cjs +1 -1
- package/dist/resizer.js +2 -2
- package/dist/stack.cjs +1 -1
- package/dist/stack.cjs.map +1 -1
- package/dist/stack.js +480 -780
- package/dist/stack.js.map +1 -1
- package/dist/sticky-header/calculateStickyMetrics.d.ts +28 -0
- package/dist/sticky-header.cjs +1 -1
- package/dist/sticky-header.cjs.map +1 -1
- package/dist/sticky-header.js +59 -51
- package/dist/sticky-header.js.map +1 -1
- package/dist/{styles-DPPuJ0sf.js → styles-NkjuMOVS.js} +13 -13
- package/dist/{styles-DPPuJ0sf.js.map → styles-NkjuMOVS.js.map} +1 -1
- package/dist/styles-qf6ptVLD.cjs.map +1 -1
- package/dist/types.d.ts +30 -0
- package/dist/useAnimationFrame-BZ6D2lMq.cjs +2 -0
- package/dist/useAnimationFrame-BZ6D2lMq.cjs.map +1 -0
- package/dist/useAnimationFrame-Bg4e-H8O.js +394 -0
- package/dist/useAnimationFrame-Bg4e-H8O.js.map +1 -0
- package/dist/useDocumentPointerEvents-DXxw3qWj.js +54 -0
- package/dist/useDocumentPointerEvents-DXxw3qWj.js.map +1 -0
- package/dist/useDocumentPointerEvents-DxDSOtip.cjs +2 -0
- package/dist/useDocumentPointerEvents-DxDSOtip.cjs.map +1 -0
- package/dist/window/index.d.ts +2 -0
- package/dist/window.cjs +1 -1
- package/dist/window.cjs.map +1 -1
- package/dist/window.js +114 -103
- package/dist/window.js.map +1 -1
- package/package.json +6 -1
- package/src/components/gesture/SwipeSafeZone.tsx +70 -0
- package/src/components/grid/GridLayout.tsx +110 -38
- package/src/components/window/Drawer.tsx +353 -162
- package/src/components/window/DrawerLayers.tsx +54 -11
- package/src/components/window/DrawerRevealContext.spec.ts +20 -0
- package/src/components/window/DrawerRevealContext.tsx +99 -0
- package/src/components/window/drawerRevealAnimationUtils.spec.ts +375 -0
- package/src/components/window/drawerRevealAnimationUtils.ts +415 -0
- package/src/components/window/drawerStyles.spec.ts +302 -0
- package/src/components/window/drawerStyles.ts +252 -0
- package/src/components/window/drawerSwipeConfig.spec.ts +131 -0
- package/src/components/window/drawerSwipeConfig.ts +112 -0
- package/src/components/window/useDrawerSwipeTransform.ts +67 -0
- package/src/components/window/useDrawerTransform.ts +505 -0
- package/src/components/window/useRevealDrawerTransform.spec.ts +1936 -0
- package/src/components/window/useRevealDrawerTransform.ts +105 -0
- package/src/constants/styles.ts +19 -0
- package/src/demo/components/FullscreenDemoPage.tsx +47 -0
- package/src/demo/fullscreenRoutes.tsx +32 -0
- package/src/demo/index.tsx +5 -0
- package/src/demo/pages/Dialog/alerts/index.tsx +22 -0
- package/src/demo/pages/Dialog/card/index.tsx +22 -0
- package/src/demo/pages/Dialog/components/AlertDialogDemo.tsx +124 -0
- package/src/demo/pages/Dialog/components/CardExpandDemo.module.css +243 -0
- package/src/demo/pages/Dialog/components/CardExpandDemo.tsx +219 -0
- package/src/demo/pages/Dialog/components/CustomAlertDialogDemo.tsx +219 -0
- package/src/demo/pages/Dialog/components/DialogDemos.module.css +77 -0
- package/src/demo/pages/Dialog/components/ModalBasics.tsx +45 -0
- package/src/demo/pages/Dialog/components/SwipeDialogDemo.module.css +77 -0
- package/src/demo/pages/Dialog/components/SwipeDialogDemo.tsx +181 -0
- package/src/demo/pages/Dialog/custom-alert/index.tsx +22 -0
- package/src/demo/pages/Dialog/modal/index.tsx +17 -0
- package/src/demo/pages/Dialog/swipe/index.tsx +22 -0
- package/src/demo/pages/Drawer/components/DrawerBasics.module.css +6 -1
- package/src/demo/pages/Drawer/components/DrawerBasics.tsx +14 -4
- package/src/demo/pages/Drawer/components/DrawerReveal.module.css +157 -0
- package/src/demo/pages/Drawer/components/DrawerReveal.tsx +128 -0
- package/src/demo/pages/Drawer/components/DrawerSwipe.module.css +316 -0
- package/src/demo/pages/Drawer/components/DrawerSwipe.tsx +178 -0
- package/src/demo/pages/Drawer/reveal/index.tsx +17 -0
- package/src/demo/pages/Drawer/reveal-fullscreen/index.tsx +135 -0
- package/src/demo/pages/Drawer/reveal-fullscreen/styles.module.css +233 -0
- package/src/demo/pages/Drawer/swipe/index.tsx +17 -0
- package/src/demo/pages/Pivot/components/SwipeTabsPivot.tsx +54 -23
- package/src/demo/pages/Pivot/swipe-debug/index.tsx +1 -1
- package/src/demo/pages/Stack/components/StackBasics.spec.tsx +156 -0
- package/src/demo/pages/Stack/components/StackBasics.tsx +179 -95
- package/src/demo/pages/Stack/components/StackTablet.spec.tsx +110 -0
- package/src/demo/pages/Stack/components/StackTablet.tsx +42 -21
- package/src/demo/routes.tsx +24 -1
- package/src/dialog/index.ts +85 -0
- package/src/hooks/gesture/testing/createGestureSimulator.spec.ts +68 -64
- package/src/hooks/gesture/testing/createGestureSimulator.ts +113 -37
- package/src/hooks/gesture/types.ts +83 -6
- package/src/hooks/gesture/useEdgeSwipeInput.spec.ts +22 -14
- package/src/hooks/gesture/useNativeGestureGuard.spec.ts +99 -31
- package/src/hooks/gesture/useNativeGestureGuard.ts +3 -1
- package/src/hooks/gesture/utils.ts +102 -0
- package/src/hooks/useAnimatedVisibility.spec.ts +44 -24
- package/src/hooks/useAnimatedVisibility.ts +28 -2
- package/src/hooks/useAnimationFrame.ts +8 -0
- package/src/hooks/useOperationContinuity.spec.ts +394 -0
- package/src/hooks/useOperationContinuity.ts +135 -0
- package/src/hooks/useResizeObserver.spec.tsx +277 -0
- package/src/hooks/useResizeObserver.tsx +108 -39
- package/src/hooks/useScrollContainer.ts +4 -10
- package/src/hooks/useSharedElementTransition.ts +354 -0
- package/src/hooks/useSwipeContentTransform.spec.ts +18 -18
- package/src/hooks/useSwipeContentTransform.ts +166 -28
- package/src/modules/dialog/AlertDialog.spec.tsx +387 -0
- package/src/modules/dialog/AlertDialog.tsx +221 -0
- package/src/modules/dialog/DialogContainer.spec.tsx +228 -0
- package/src/modules/dialog/DialogContainer.tsx +188 -0
- package/src/modules/dialog/Modal.spec.tsx +220 -0
- package/src/modules/dialog/Modal.tsx +182 -0
- package/src/modules/dialog/SwipeDialogContainer.tsx +208 -0
- package/src/modules/dialog/dialogAnimationUtils.spec.ts +252 -0
- package/src/modules/dialog/dialogAnimationUtils.ts +297 -0
- package/src/modules/dialog/types.ts +186 -0
- package/src/modules/dialog/useDialog.spec.tsx +447 -0
- package/src/modules/dialog/useDialog.ts +214 -0
- package/src/modules/dialog/useDialogContainer.spec.ts +339 -0
- package/src/modules/dialog/useDialogContainer.ts +150 -0
- package/src/modules/dialog/useDialogSwipeInput.spec.ts +178 -0
- package/src/modules/dialog/useDialogSwipeInput.ts +350 -0
- package/src/modules/dialog/useDialogTransform.spec.ts +403 -0
- package/src/modules/dialog/useDialogTransform.ts +407 -0
- package/src/modules/drawer/drawerStateMachine.ts +500 -0
- package/src/modules/drawer/revealDrawerConstants.ts +38 -0
- package/src/modules/drawer/revealDrawerStateMachine.spec.ts +558 -0
- package/src/modules/drawer/revealDrawerStateMachine.ts +197 -0
- package/src/modules/drawer/strategies/index.ts +9 -0
- package/src/modules/drawer/strategies/overlayStrategy.ts +133 -0
- package/src/modules/drawer/strategies/revealStrategy.ts +111 -0
- package/src/modules/drawer/strategies/types.ts +160 -0
- package/src/modules/drawer/types.ts +102 -0
- package/src/modules/drawer/useDrawerSwipeInput.spec.ts +566 -0
- package/src/modules/drawer/useDrawerSwipeInput.ts +402 -0
- package/src/modules/panels/rendering/ContentRegistry.spec.tsx +21 -14
- package/src/modules/pivot/SwipePivotContent.position.spec.tsx +12 -8
- package/src/modules/pivot/SwipePivotContent.spec.tsx +66 -25
- package/src/modules/pivot/SwipePivotContent.tsx +2 -2
- package/src/modules/pivot/SwipePivotTabBar.spec.tsx +85 -68
- package/src/modules/pivot/SwipePivotTabBar.tsx +75 -15
- package/src/modules/pivot/scaleInputState.spec.ts +11 -2
- package/src/modules/pivot/usePivot.spec.ts +17 -3
- package/src/modules/pivot/usePivotSwipeInput.spec.ts +182 -123
- package/src/modules/stack/SwipeStackContent.spec.tsx +387 -100
- package/src/modules/stack/SwipeStackContent.tsx +43 -33
- package/src/modules/stack/SwipeStackOutlet.spec.tsx +14 -16
- package/src/modules/stack/SwipeStackOutlet.tsx +6 -6
- package/src/modules/stack/computeSwipeStackTransform.spec.ts +5 -5
- package/src/modules/stack/computeSwipeStackTransform.ts +3 -3
- package/src/modules/stack/swipeTransitionContinuity.spec.tsx +1133 -0
- package/src/modules/stack/useStackAnimationState.spec.ts +3 -1
- package/src/modules/stack/useStackAnimationState.ts +18 -13
- package/src/modules/stack/useStackNavigation.spec.ts +198 -3
- package/src/modules/stack/useStackNavigation.tsx +113 -56
- package/src/modules/stack/useStackSwipeInput.spec.ts +65 -32
- package/src/modules/stack/useStackSwipeInput.ts +1 -1
- package/src/sticky-header/StickyArea.tsx +29 -57
- package/src/sticky-header/calculateStickyMetrics.spec.ts +105 -0
- package/src/sticky-header/calculateStickyMetrics.ts +50 -0
- package/src/types.ts +33 -0
- package/src/window/index.ts +2 -0
- package/dist/FloatingWindow-BpdOpg_L.js +0 -400
- package/dist/FloatingWindow-BpdOpg_L.js.map +0 -1
- package/dist/FloatingWindow-TCDNY5gE.cjs +0 -2
- package/dist/FloatingWindow-TCDNY5gE.cjs.map +0 -1
- package/dist/GridLayout-B4VRsC0r.cjs +0 -2
- package/dist/GridLayout-BltqeCPK.js +0 -927
- package/dist/PanelSystem-Bs8bQwQF.cjs +0 -3
- package/dist/PanelSystem-Bs8bQwQF.cjs.map +0 -1
- package/dist/PanelSystem-Dr1TBhxM.js.map +0 -1
- package/dist/ResizeHandle-CScipO5l.cjs +0 -2
- package/dist/SwipePivotTabBar-BGO9X94m.js +0 -407
- package/dist/SwipePivotTabBar-BGO9X94m.js.map +0 -1
- package/dist/SwipePivotTabBar-BrQismcZ.cjs +0 -2
- package/dist/SwipePivotTabBar-BrQismcZ.cjs.map +0 -1
- package/dist/useDocumentPointerEvents-CKdhGXd0.js +0 -46
- package/dist/useDocumentPointerEvents-CKdhGXd0.js.map +0 -1
- package/dist/useDocumentPointerEvents-ChqrKXDk.cjs +0 -2
- package/dist/useDocumentPointerEvents-ChqrKXDk.cjs.map +0 -1
- package/dist/useEffectEvent-Dp7HLCf0.js +0 -13
- package/dist/useEffectEvent-Dp7HLCf0.js.map +0 -1
- package/dist/useEffectEvent-huSsGUnl.cjs +0 -2
- package/dist/useEffectEvent-huSsGUnl.cjs.map +0 -1
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Styles for DrawerSwipe demo
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.container {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
height: 100%;
|
|
9
|
+
padding: 24px;
|
|
10
|
+
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
|
|
11
|
+
color: #e9ecef;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.hero {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
gap: 16px;
|
|
18
|
+
max-width: 480px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.lead {
|
|
22
|
+
color: #adb5bd;
|
|
23
|
+
font-size: 14px;
|
|
24
|
+
line-height: 1.6;
|
|
25
|
+
margin: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.instructions {
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
gap: 12px;
|
|
32
|
+
margin-top: 24px;
|
|
33
|
+
padding: 16px;
|
|
34
|
+
background: rgba(255, 255, 255, 0.05);
|
|
35
|
+
border-radius: 8px;
|
|
36
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.instruction {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
gap: 12px;
|
|
43
|
+
font-size: 13px;
|
|
44
|
+
color: #ced4da;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.instructionIcon {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
width: 32px;
|
|
52
|
+
height: 32px;
|
|
53
|
+
background: rgba(102, 126, 234, 0.2);
|
|
54
|
+
border-radius: 8px;
|
|
55
|
+
color: #667eea;
|
|
56
|
+
font-weight: 600;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.drawerContent {
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
gap: 12px;
|
|
63
|
+
height: 100%;
|
|
64
|
+
padding: 8px;
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.searchBox {
|
|
69
|
+
flex-shrink: 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.searchInput {
|
|
73
|
+
width: 100%;
|
|
74
|
+
padding: 10px 14px;
|
|
75
|
+
background: rgba(255, 255, 255, 0.05);
|
|
76
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
77
|
+
border-radius: 8px;
|
|
78
|
+
color: #e9ecef;
|
|
79
|
+
font-size: 14px;
|
|
80
|
+
outline: none;
|
|
81
|
+
transition: border-color 0.15s ease, background 0.15s ease;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.searchInput:focus {
|
|
85
|
+
background: rgba(255, 255, 255, 0.08);
|
|
86
|
+
border-color: #667eea;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.searchInput::placeholder {
|
|
90
|
+
color: #868e96;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.scrollableSection {
|
|
94
|
+
flex: 1;
|
|
95
|
+
min-height: 0;
|
|
96
|
+
overflow-y: auto;
|
|
97
|
+
-webkit-overflow-scrolling: touch;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.sectionTitle {
|
|
101
|
+
font-size: 11px;
|
|
102
|
+
font-weight: 600;
|
|
103
|
+
text-transform: uppercase;
|
|
104
|
+
letter-spacing: 0.5px;
|
|
105
|
+
color: #868e96;
|
|
106
|
+
margin: 0 0 8px 4px;
|
|
107
|
+
position: sticky;
|
|
108
|
+
top: 0;
|
|
109
|
+
background: inherit;
|
|
110
|
+
padding: 4px 0;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.drawerList {
|
|
114
|
+
list-style: none;
|
|
115
|
+
padding: 0;
|
|
116
|
+
margin: 0;
|
|
117
|
+
display: flex;
|
|
118
|
+
flex-direction: column;
|
|
119
|
+
gap: 4px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.drawerItem {
|
|
123
|
+
display: flex;
|
|
124
|
+
align-items: center;
|
|
125
|
+
justify-content: space-between;
|
|
126
|
+
padding: 10px 12px;
|
|
127
|
+
background: rgba(255, 255, 255, 0.03);
|
|
128
|
+
border-radius: 6px;
|
|
129
|
+
cursor: pointer;
|
|
130
|
+
transition: background 0.15s ease;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.drawerItem:hover {
|
|
134
|
+
background: rgba(255, 255, 255, 0.08);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.drawerItem small {
|
|
138
|
+
color: #868e96;
|
|
139
|
+
font-size: 11px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.formSection {
|
|
143
|
+
flex-shrink: 0;
|
|
144
|
+
display: flex;
|
|
145
|
+
flex-direction: column;
|
|
146
|
+
gap: 8px;
|
|
147
|
+
padding: 12px;
|
|
148
|
+
background: rgba(76, 175, 80, 0.08);
|
|
149
|
+
border-radius: 8px;
|
|
150
|
+
border: 1px dashed rgba(76, 175, 80, 0.4);
|
|
151
|
+
position: relative;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.formSection::before {
|
|
155
|
+
content: "SAFE";
|
|
156
|
+
position: absolute;
|
|
157
|
+
top: 4px;
|
|
158
|
+
right: 8px;
|
|
159
|
+
font-size: 9px;
|
|
160
|
+
font-weight: 700;
|
|
161
|
+
letter-spacing: 0.5px;
|
|
162
|
+
color: rgba(76, 175, 80, 0.7);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.textInput {
|
|
166
|
+
width: 100%;
|
|
167
|
+
padding: 8px 12px;
|
|
168
|
+
background: rgba(255, 255, 255, 0.05);
|
|
169
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
170
|
+
border-radius: 6px;
|
|
171
|
+
color: #e9ecef;
|
|
172
|
+
font-size: 13px;
|
|
173
|
+
outline: none;
|
|
174
|
+
transition: border-color 0.15s ease, background 0.15s ease;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.textInput:focus {
|
|
178
|
+
background: rgba(255, 255, 255, 0.08);
|
|
179
|
+
border-color: #667eea;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.textInput::placeholder {
|
|
183
|
+
color: #868e96;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.textArea {
|
|
187
|
+
width: 100%;
|
|
188
|
+
padding: 8px 12px;
|
|
189
|
+
background: rgba(255, 255, 255, 0.05);
|
|
190
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
191
|
+
border-radius: 6px;
|
|
192
|
+
color: #e9ecef;
|
|
193
|
+
font-size: 13px;
|
|
194
|
+
font-family: inherit;
|
|
195
|
+
outline: none;
|
|
196
|
+
resize: vertical;
|
|
197
|
+
min-height: 60px;
|
|
198
|
+
transition: border-color 0.15s ease, background 0.15s ease;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.textArea:focus {
|
|
202
|
+
background: rgba(255, 255, 255, 0.08);
|
|
203
|
+
border-color: #667eea;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.textArea::placeholder {
|
|
207
|
+
color: #868e96;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.swipeHint {
|
|
211
|
+
display: flex;
|
|
212
|
+
align-items: center;
|
|
213
|
+
justify-content: center;
|
|
214
|
+
gap: 8px;
|
|
215
|
+
padding: 12px;
|
|
216
|
+
margin-top: auto;
|
|
217
|
+
background: rgba(102, 126, 234, 0.1);
|
|
218
|
+
border-radius: 8px;
|
|
219
|
+
color: #667eea;
|
|
220
|
+
font-size: 13px;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.swipeArrow {
|
|
224
|
+
animation: swipeHint 1.5s ease-in-out infinite;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
@keyframes swipeHint {
|
|
228
|
+
0%, 100% {
|
|
229
|
+
transform: translateX(0);
|
|
230
|
+
opacity: 0.6;
|
|
231
|
+
}
|
|
232
|
+
50% {
|
|
233
|
+
transform: translateX(-8px);
|
|
234
|
+
opacity: 1;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.edgeIndicator {
|
|
239
|
+
position: absolute;
|
|
240
|
+
top: 0;
|
|
241
|
+
bottom: 0;
|
|
242
|
+
width: 4px;
|
|
243
|
+
background: linear-gradient(180deg, rgba(102, 126, 234, 0.8) 0%, rgba(102, 126, 234, 0.3) 100%);
|
|
244
|
+
pointer-events: none;
|
|
245
|
+
z-index: 100;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.edgeIndicatorLeft {
|
|
249
|
+
left: 0;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.edgeIndicatorRight {
|
|
253
|
+
right: 0;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.configPanel {
|
|
257
|
+
margin-top: 24px;
|
|
258
|
+
padding: 16px;
|
|
259
|
+
background: rgba(255, 255, 255, 0.03);
|
|
260
|
+
border-radius: 8px;
|
|
261
|
+
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.configTitle {
|
|
265
|
+
font-size: 12px;
|
|
266
|
+
font-weight: 600;
|
|
267
|
+
text-transform: uppercase;
|
|
268
|
+
letter-spacing: 0.5px;
|
|
269
|
+
color: #868e96;
|
|
270
|
+
margin: 0 0 12px 0;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.configOptions {
|
|
274
|
+
display: flex;
|
|
275
|
+
flex-direction: column;
|
|
276
|
+
gap: 8px;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.configOption {
|
|
280
|
+
display: flex;
|
|
281
|
+
align-items: center;
|
|
282
|
+
gap: 8px;
|
|
283
|
+
font-size: 13px;
|
|
284
|
+
color: #ced4da;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.configOption input[type="checkbox"] {
|
|
288
|
+
accent-color: #667eea;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.anchorSelect {
|
|
292
|
+
display: flex;
|
|
293
|
+
gap: 8px;
|
|
294
|
+
margin-top: 8px;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.anchorButton {
|
|
298
|
+
padding: 6px 12px;
|
|
299
|
+
background: rgba(255, 255, 255, 0.05);
|
|
300
|
+
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
301
|
+
border-radius: 6px;
|
|
302
|
+
color: #ced4da;
|
|
303
|
+
font-size: 12px;
|
|
304
|
+
cursor: pointer;
|
|
305
|
+
transition: all 0.15s ease;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.anchorButton:hover {
|
|
309
|
+
background: rgba(255, 255, 255, 0.1);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.anchorButton[data-active="true"] {
|
|
313
|
+
background: rgba(102, 126, 234, 0.3);
|
|
314
|
+
border-color: #667eea;
|
|
315
|
+
color: #fff;
|
|
316
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Swipe gestures drawer demo
|
|
3
|
+
*
|
|
4
|
+
* Demonstrates edge swipe to open and drag to close functionality.
|
|
5
|
+
*/
|
|
6
|
+
import * as React from "react";
|
|
7
|
+
import { GridLayout } from "../../../../components/grid/GridLayout";
|
|
8
|
+
import { SwipeSafeZone } from "../../../../components/gesture/SwipeSafeZone";
|
|
9
|
+
import type { LayerDefinition, PanelLayoutConfig, DrawerBehavior } from "../../../../types";
|
|
10
|
+
import { DemoButton } from "../../../components/ui/DemoButton";
|
|
11
|
+
import styles from "./DrawerSwipe.module.css";
|
|
12
|
+
|
|
13
|
+
type AnchorPosition = "left" | "right";
|
|
14
|
+
|
|
15
|
+
export const DrawerSwipe: React.FC = () => {
|
|
16
|
+
const [open, setOpen] = React.useState(false);
|
|
17
|
+
const [anchor, setAnchor] = React.useState<AnchorPosition>("left");
|
|
18
|
+
const [edgeSwipeOpen, setEdgeSwipeOpen] = React.useState(true);
|
|
19
|
+
const [swipeClose, setSwipeClose] = React.useState(true);
|
|
20
|
+
|
|
21
|
+
const config = React.useMemo<PanelLayoutConfig>(
|
|
22
|
+
() => ({
|
|
23
|
+
areas: [["content"]],
|
|
24
|
+
rows: [{ size: "1fr" }],
|
|
25
|
+
columns: [{ size: "1fr" }],
|
|
26
|
+
gap: "0",
|
|
27
|
+
}),
|
|
28
|
+
[],
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
const drawerConfig = React.useMemo<DrawerBehavior>(
|
|
32
|
+
() => ({
|
|
33
|
+
open,
|
|
34
|
+
onStateChange: setOpen,
|
|
35
|
+
dismissible: true,
|
|
36
|
+
header: { title: "Navigation" },
|
|
37
|
+
anchor,
|
|
38
|
+
swipeGestures: {
|
|
39
|
+
edgeSwipeOpen,
|
|
40
|
+
swipeClose,
|
|
41
|
+
edgeWidth: 24,
|
|
42
|
+
dismissThreshold: 0.3,
|
|
43
|
+
},
|
|
44
|
+
}),
|
|
45
|
+
[open, anchor, edgeSwipeOpen, swipeClose],
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
const layers: LayerDefinition[] = [
|
|
49
|
+
{
|
|
50
|
+
id: "content",
|
|
51
|
+
gridArea: "content",
|
|
52
|
+
component: (
|
|
53
|
+
<div className={styles.container}>
|
|
54
|
+
{/* Edge indicator */}
|
|
55
|
+
<div
|
|
56
|
+
className={`${styles.edgeIndicator} ${anchor === "left" ? styles.edgeIndicatorLeft : styles.edgeIndicatorRight}`}
|
|
57
|
+
/>
|
|
58
|
+
|
|
59
|
+
<div className={styles.hero}>
|
|
60
|
+
<DemoButton variant="primary" size="lg" onClick={() => setOpen(true)}>
|
|
61
|
+
Open drawer
|
|
62
|
+
</DemoButton>
|
|
63
|
+
<p className={styles.lead}>
|
|
64
|
+
This demo shows swipe gesture support for drawers. Swipe from the {anchor} edge to open, or drag the
|
|
65
|
+
drawer toward the edge to close.
|
|
66
|
+
</p>
|
|
67
|
+
</div>
|
|
68
|
+
|
|
69
|
+
<div className={styles.instructions}>
|
|
70
|
+
<div className={styles.instruction}>
|
|
71
|
+
<span className={styles.instructionIcon}>1</span>
|
|
72
|
+
<span>Swipe from the {anchor} edge to open the drawer</span>
|
|
73
|
+
</div>
|
|
74
|
+
<div className={styles.instruction}>
|
|
75
|
+
<span className={styles.instructionIcon}>2</span>
|
|
76
|
+
<span>Drag the drawer content {anchor === "left" ? "left" : "right"} to close</span>
|
|
77
|
+
</div>
|
|
78
|
+
<div className={styles.instruction}>
|
|
79
|
+
<span className={styles.instructionIcon}>3</span>
|
|
80
|
+
<span>Release before 30% threshold to snap back</span>
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
|
|
84
|
+
<div className={styles.configPanel}>
|
|
85
|
+
<h4 className={styles.configTitle}>Configuration</h4>
|
|
86
|
+
<div className={styles.configOptions}>
|
|
87
|
+
<label className={styles.configOption}>
|
|
88
|
+
<input type="checkbox" checked={edgeSwipeOpen} onChange={(e) => setEdgeSwipeOpen(e.target.checked)} />
|
|
89
|
+
Edge swipe to open
|
|
90
|
+
</label>
|
|
91
|
+
<label className={styles.configOption}>
|
|
92
|
+
<input type="checkbox" checked={swipeClose} onChange={(e) => setSwipeClose(e.target.checked)} />
|
|
93
|
+
Swipe to close
|
|
94
|
+
</label>
|
|
95
|
+
</div>
|
|
96
|
+
<div className={styles.anchorSelect}>
|
|
97
|
+
<button
|
|
98
|
+
type="button"
|
|
99
|
+
className={styles.anchorButton}
|
|
100
|
+
data-active={anchor === "left"}
|
|
101
|
+
onClick={() => setAnchor("left")}
|
|
102
|
+
>
|
|
103
|
+
Left
|
|
104
|
+
</button>
|
|
105
|
+
<button
|
|
106
|
+
type="button"
|
|
107
|
+
className={styles.anchorButton}
|
|
108
|
+
data-active={anchor === "right"}
|
|
109
|
+
onClick={() => setAnchor("right")}
|
|
110
|
+
>
|
|
111
|
+
Right
|
|
112
|
+
</button>
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
),
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
id: "drawer-swipe",
|
|
120
|
+
component: (
|
|
121
|
+
<div className={styles.drawerContent}>
|
|
122
|
+
{/* Search input */}
|
|
123
|
+
<div className={styles.searchBox}>
|
|
124
|
+
<input
|
|
125
|
+
type="text"
|
|
126
|
+
placeholder="Search..."
|
|
127
|
+
className={styles.searchInput}
|
|
128
|
+
/>
|
|
129
|
+
</div>
|
|
130
|
+
|
|
131
|
+
{/* Scrollable list */}
|
|
132
|
+
<div className={styles.scrollableSection}>
|
|
133
|
+
<h4 className={styles.sectionTitle}>Navigation</h4>
|
|
134
|
+
<ul className={styles.drawerList}>
|
|
135
|
+
{Array.from({ length: 20 }, (_, i) => (
|
|
136
|
+
<li key={i} className={styles.drawerItem}>
|
|
137
|
+
<span>Item {i + 1}</span>
|
|
138
|
+
<small>Description for item {i + 1}</small>
|
|
139
|
+
</li>
|
|
140
|
+
))}
|
|
141
|
+
</ul>
|
|
142
|
+
</div>
|
|
143
|
+
|
|
144
|
+
{/* Form section - wrapped in SwipeSafeZone */}
|
|
145
|
+
<SwipeSafeZone className={styles.formSection}>
|
|
146
|
+
<h4 className={styles.sectionTitle}>Quick Note (Safe Zone)</h4>
|
|
147
|
+
<input
|
|
148
|
+
type="text"
|
|
149
|
+
placeholder="Title"
|
|
150
|
+
className={styles.textInput}
|
|
151
|
+
/>
|
|
152
|
+
<textarea
|
|
153
|
+
placeholder="Write your note here..."
|
|
154
|
+
className={styles.textArea}
|
|
155
|
+
rows={3}
|
|
156
|
+
/>
|
|
157
|
+
<DemoButton variant="secondary" size="sm" onClick={() => {}}>
|
|
158
|
+
Save Note
|
|
159
|
+
</DemoButton>
|
|
160
|
+
</SwipeSafeZone>
|
|
161
|
+
|
|
162
|
+
{/* Swipe hint */}
|
|
163
|
+
<div className={styles.swipeHint}>
|
|
164
|
+
<span className={styles.swipeArrow}>{anchor === "left" ? "\u2190" : "\u2192"}</span>
|
|
165
|
+
Swipe to close
|
|
166
|
+
</div>
|
|
167
|
+
</div>
|
|
168
|
+
),
|
|
169
|
+
drawer: drawerConfig,
|
|
170
|
+
position: anchor === "left" ? { left: 0 } : { right: 0 },
|
|
171
|
+
width: 300,
|
|
172
|
+
height: "100%",
|
|
173
|
+
zIndex: 1200,
|
|
174
|
+
},
|
|
175
|
+
];
|
|
176
|
+
|
|
177
|
+
return <GridLayout config={config} layers={layers} />;
|
|
178
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Drawer - Reveal Mode page
|
|
3
|
+
*/
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import { DrawerReveal } from "../components/DrawerReveal";
|
|
6
|
+
import DrawerRevealSource from "../components/DrawerReveal.tsx?raw";
|
|
7
|
+
import { SingleSamplePage } from "../../../components/layout";
|
|
8
|
+
|
|
9
|
+
const Page: React.FC = () => {
|
|
10
|
+
return (
|
|
11
|
+
<SingleSamplePage title="Drawer / Reveal Mode" code={DrawerRevealSource} codeTitle="DrawerReveal.tsx" previewHeight={520}>
|
|
12
|
+
<DrawerReveal />
|
|
13
|
+
</SingleSamplePage>
|
|
14
|
+
);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export default Page;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Drawer - Reveal Mode Fullscreen Demo
|
|
3
|
+
*
|
|
4
|
+
* Standalone page demonstrating reveal mode with body-level transform.
|
|
5
|
+
* No SingleSamplePage wrapper - this is the entire page.
|
|
6
|
+
*/
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { Link } from "react-router";
|
|
9
|
+
import { GridLayout } from "../../../../components/grid/GridLayout";
|
|
10
|
+
import type { LayerDefinition, PanelLayoutConfig } from "../../../../types";
|
|
11
|
+
import { FiArrowLeft, FiHome, FiSearch, FiBell, FiMail, FiUser, FiSettings } from "react-icons/fi";
|
|
12
|
+
import styles from "./styles.module.css";
|
|
13
|
+
|
|
14
|
+
const Page: React.FC = () => {
|
|
15
|
+
const [open, setOpen] = React.useState(false);
|
|
16
|
+
|
|
17
|
+
const config = React.useMemo<PanelLayoutConfig>(
|
|
18
|
+
() => ({
|
|
19
|
+
areas: [["content"]],
|
|
20
|
+
rows: [{ size: "1fr" }],
|
|
21
|
+
columns: [{ size: "1fr" }],
|
|
22
|
+
gap: "0",
|
|
23
|
+
}),
|
|
24
|
+
[],
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
const layers: LayerDefinition[] = [
|
|
28
|
+
{
|
|
29
|
+
id: "content",
|
|
30
|
+
gridArea: "content",
|
|
31
|
+
component: (
|
|
32
|
+
<div className={styles.container}>
|
|
33
|
+
<header className={styles.header}>
|
|
34
|
+
<button type="button" className={styles.menuButton} onClick={() => setOpen(true)}>
|
|
35
|
+
<span className={styles.menuIcon} />
|
|
36
|
+
</button>
|
|
37
|
+
<h1 className={styles.title}>Reveal Mode Demo</h1>
|
|
38
|
+
</header>
|
|
39
|
+
|
|
40
|
+
<main className={styles.main}>
|
|
41
|
+
<div className={styles.card}>
|
|
42
|
+
<h2>Full-screen Reveal Mode</h2>
|
|
43
|
+
<p>
|
|
44
|
+
This page demonstrates the reveal animation mode without any wrapper.
|
|
45
|
+
The entire page slides to reveal the drawer behind it.
|
|
46
|
+
</p>
|
|
47
|
+
<p>
|
|
48
|
+
Try swiping from the left edge, or tap the menu button above.
|
|
49
|
+
</p>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
<div className={styles.card}>
|
|
53
|
+
<h3>How it works</h3>
|
|
54
|
+
<ul className={styles.list}>
|
|
55
|
+
<li>Drawer is positioned behind the main content</li>
|
|
56
|
+
<li>Body element receives transform during animation</li>
|
|
57
|
+
<li>Swipe gestures work from the left edge</li>
|
|
58
|
+
</ul>
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+
<Link to="/components/drawer/reveal" className={styles.backLink}>
|
|
62
|
+
<FiArrowLeft />
|
|
63
|
+
Back to Drawer demos
|
|
64
|
+
</Link>
|
|
65
|
+
</main>
|
|
66
|
+
</div>
|
|
67
|
+
),
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
id: "drawer-reveal-fullscreen",
|
|
71
|
+
component: (
|
|
72
|
+
<div className={styles.drawerContent}>
|
|
73
|
+
<div className={styles.profile}>
|
|
74
|
+
<div className={styles.avatar}>U</div>
|
|
75
|
+
<div className={styles.profileInfo}>
|
|
76
|
+
<div className={styles.profileName}>User Name</div>
|
|
77
|
+
<div className={styles.profileHandle}>@username</div>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
|
|
81
|
+
<nav className={styles.nav}>
|
|
82
|
+
<Link to="/" className={styles.navItem}>
|
|
83
|
+
<FiHome className={styles.navIcon} />
|
|
84
|
+
Home
|
|
85
|
+
</Link>
|
|
86
|
+
<a href="#" className={styles.navItem}>
|
|
87
|
+
<FiSearch className={styles.navIcon} />
|
|
88
|
+
Explore
|
|
89
|
+
</a>
|
|
90
|
+
<a href="#" className={styles.navItem}>
|
|
91
|
+
<FiBell className={styles.navIcon} />
|
|
92
|
+
Notifications
|
|
93
|
+
</a>
|
|
94
|
+
<a href="#" className={styles.navItem}>
|
|
95
|
+
<FiMail className={styles.navIcon} />
|
|
96
|
+
Messages
|
|
97
|
+
</a>
|
|
98
|
+
<a href="#" className={styles.navItem}>
|
|
99
|
+
<FiUser className={styles.navIcon} />
|
|
100
|
+
Profile
|
|
101
|
+
</a>
|
|
102
|
+
<a href="#" className={styles.navItem}>
|
|
103
|
+
<FiSettings className={styles.navIcon} />
|
|
104
|
+
Settings
|
|
105
|
+
</a>
|
|
106
|
+
</nav>
|
|
107
|
+
|
|
108
|
+
<button type="button" className={styles.closeButton} onClick={() => setOpen(false)}>
|
|
109
|
+
Close Menu
|
|
110
|
+
</button>
|
|
111
|
+
</div>
|
|
112
|
+
),
|
|
113
|
+
drawer: {
|
|
114
|
+
open,
|
|
115
|
+
onStateChange: setOpen,
|
|
116
|
+
dismissible: true,
|
|
117
|
+
animationMode: "reveal",
|
|
118
|
+
swipeGestures: {
|
|
119
|
+
edgeSwipeOpen: true,
|
|
120
|
+
swipeClose: true,
|
|
121
|
+
edgeWidth: 24,
|
|
122
|
+
dismissThreshold: 0.3,
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
position: { left: 0 },
|
|
126
|
+
width: 280,
|
|
127
|
+
height: "100%",
|
|
128
|
+
zIndex: 1200,
|
|
129
|
+
},
|
|
130
|
+
];
|
|
131
|
+
|
|
132
|
+
return <GridLayout config={config} layers={layers} root />;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
export default Page;
|