@@ -7,8 +7,8 @@ import { breakpoints, colors } from "../theme";
7
7
import { Dialog , Modal } from "react-aria-components" ;
8
8
import { useMatchMediaQuery } from "../hooks" ;
9
9
10
- export const sidebarNavCollapsedWidth = "5.6rem" ;
11
- export const sidebarNavExpandedWidth = "24rem" ;
10
+ const collapsedWidth = "5.6rem" ;
11
+ const expandedWidth = "24rem" ;
12
12
13
13
const GlobalStyle = createGlobalStyle `
14
14
.react-aria-ModalOverlay {
@@ -20,17 +20,17 @@ const GlobalStyle = createGlobalStyle`
20
20
background: rgba(0 0 0 / .7);
21
21
z-index: 100;
22
22
}
23
- xb `;
23
+ ` ;
24
24
25
25
const StyledModal = styled ( Modal ) `
26
26
position: fixed;
27
27
outline: none;
28
28
left: 0;
29
29
` ;
30
30
31
- export const Nav = styled . nav `
32
- --collapsed-width: ${ sidebarNavCollapsedWidth } ;
33
- --expanded-width: ${ sidebarNavExpandedWidth } ;
31
+ const Nav = styled . nav `
32
+ --collapsed-width: ${ collapsedWidth } ;
33
+ --expanded-width: ${ expandedWidth } ;
34
34
width: var(--expanded-width);
35
35
display: flex;
36
36
justify-content: space-between;
@@ -99,7 +99,7 @@ const NavFooter = styled.footer`
99
99
}
100
100
` ;
101
101
102
- export const ToggleButton = styled . button `
102
+ const ToggleButton = styled . button `
103
103
position: absolute;
104
104
right: 0;
105
105
top: 1.8rem;
@@ -227,3 +227,12 @@ export const SidebarNav = styled(
227
227
) ;
228
228
} ,
229
229
) `` ;
230
+
231
+ export const SidebarNavStyles = {
232
+ Nav,
233
+ NavHeader,
234
+ NavBody,
235
+ NavFooter,
236
+ expandedWidth,
237
+ collapsedWidth
238
+ } ;
0 commit comments