@fluentui/react-drawer 0.0.0-nightly-20230530-0415.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/CHANGELOG.json +56 -0
- package/CHANGELOG.md +19 -0
- package/LICENSE +15 -0
- package/README.md +61 -0
- package/dist/index.d.ts +414 -0
- package/lib/Drawer.js +3 -0
- package/lib/Drawer.js.map +1 -0
- package/lib/DrawerBody.js +3 -0
- package/lib/DrawerBody.js.map +1 -0
- package/lib/DrawerFooter.js +3 -0
- package/lib/DrawerFooter.js.map +1 -0
- package/lib/DrawerHeader.js +3 -0
- package/lib/DrawerHeader.js.map +1 -0
- package/lib/DrawerHeaderNavigation.js +3 -0
- package/lib/DrawerHeaderNavigation.js.map +1 -0
- package/lib/DrawerHeaderTitle.js +3 -0
- package/lib/DrawerHeaderTitle.js.map +1 -0
- package/lib/DrawerInline.js +3 -0
- package/lib/DrawerInline.js.map +1 -0
- package/lib/DrawerOverlay.js +3 -0
- package/lib/DrawerOverlay.js.map +1 -0
- package/lib/components/Drawer/Drawer.js +16 -0
- package/lib/components/Drawer/Drawer.js.map +1 -0
- package/lib/components/Drawer/Drawer.types.js +3 -0
- package/lib/components/Drawer/Drawer.types.js.map +1 -0
- package/lib/components/Drawer/index.js +7 -0
- package/lib/components/Drawer/index.js.map +1 -0
- package/lib/components/Drawer/renderDrawer.js +10 -0
- package/lib/components/Drawer/renderDrawer.js.map +1 -0
- package/lib/components/Drawer/useDrawer.js +28 -0
- package/lib/components/Drawer/useDrawer.js.map +1 -0
- package/lib/components/Drawer/useDrawerStyles.styles.js +12 -0
- package/lib/components/Drawer/useDrawerStyles.styles.js.map +1 -0
- package/lib/components/DrawerBody/DrawerBody.js +16 -0
- package/lib/components/DrawerBody/DrawerBody.js.map +1 -0
- package/lib/components/DrawerBody/DrawerBody.types.js +3 -0
- package/lib/components/DrawerBody/DrawerBody.types.js.map +1 -0
- package/lib/components/DrawerBody/index.js +7 -0
- package/lib/components/DrawerBody/index.js.map +1 -0
- package/lib/components/DrawerBody/renderDrawerBody.js +10 -0
- package/lib/components/DrawerBody/renderDrawerBody.js.map +1 -0
- package/lib/components/DrawerBody/useDrawerBody.js +23 -0
- package/lib/components/DrawerBody/useDrawerBody.js.map +1 -0
- package/lib/components/DrawerBody/useDrawerBodyStyles.styles.js +45 -0
- package/lib/components/DrawerBody/useDrawerBodyStyles.styles.js.map +1 -0
- package/lib/components/DrawerFooter/DrawerFooter.js +14 -0
- package/lib/components/DrawerFooter/DrawerFooter.js.map +1 -0
- package/lib/components/DrawerFooter/DrawerFooter.types.js +3 -0
- package/lib/components/DrawerFooter/DrawerFooter.types.js.map +1 -0
- package/lib/components/DrawerFooter/index.js +7 -0
- package/lib/components/DrawerFooter/index.js.map +1 -0
- package/lib/components/DrawerFooter/renderDrawerFooter.js +10 -0
- package/lib/components/DrawerFooter/renderDrawerFooter.js.map +1 -0
- package/lib/components/DrawerFooter/useDrawerFooter.js +23 -0
- package/lib/components/DrawerFooter/useDrawerFooter.js.map +1 -0
- package/lib/components/DrawerFooter/useDrawerFooterStyles.styles.js +31 -0
- package/lib/components/DrawerFooter/useDrawerFooterStyles.styles.js.map +1 -0
- package/lib/components/DrawerHeader/DrawerHeader.js +16 -0
- package/lib/components/DrawerHeader/DrawerHeader.js.map +1 -0
- package/lib/components/DrawerHeader/DrawerHeader.types.js +3 -0
- package/lib/components/DrawerHeader/DrawerHeader.types.js.map +1 -0
- package/lib/components/DrawerHeader/index.js +7 -0
- package/lib/components/DrawerHeader/index.js.map +1 -0
- package/lib/components/DrawerHeader/renderDrawerHeader.js +10 -0
- package/lib/components/DrawerHeader/renderDrawerHeader.js.map +1 -0
- package/lib/components/DrawerHeader/useDrawerHeader.js +23 -0
- package/lib/components/DrawerHeader/useDrawerHeader.js.map +1 -0
- package/lib/components/DrawerHeader/useDrawerHeaderStyles.styles.js +32 -0
- package/lib/components/DrawerHeader/useDrawerHeaderStyles.styles.js.map +1 -0
- package/lib/components/DrawerHeaderNavigation/DrawerHeaderNavigation.js +16 -0
- package/lib/components/DrawerHeaderNavigation/DrawerHeaderNavigation.js.map +1 -0
- package/lib/components/DrawerHeaderNavigation/DrawerHeaderNavigation.types.js +3 -0
- package/lib/components/DrawerHeaderNavigation/DrawerHeaderNavigation.types.js.map +1 -0
- package/lib/components/DrawerHeaderNavigation/index.js +7 -0
- package/lib/components/DrawerHeaderNavigation/index.js.map +1 -0
- package/lib/components/DrawerHeaderNavigation/renderDrawerHeaderNavigation.js +10 -0
- package/lib/components/DrawerHeaderNavigation/renderDrawerHeaderNavigation.js.map +1 -0
- package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigation.js +23 -0
- package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigation.js.map +1 -0
- package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.js +28 -0
- package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.js.map +1 -0
- package/lib/components/DrawerHeaderTitle/DrawerHeaderTitle.js +16 -0
- package/lib/components/DrawerHeaderTitle/DrawerHeaderTitle.js.map +1 -0
- package/lib/components/DrawerHeaderTitle/DrawerHeaderTitle.types.js +3 -0
- package/lib/components/DrawerHeaderTitle/DrawerHeaderTitle.types.js.map +1 -0
- package/lib/components/DrawerHeaderTitle/index.js +7 -0
- package/lib/components/DrawerHeaderTitle/index.js.map +1 -0
- package/lib/components/DrawerHeaderTitle/renderDrawerHeaderTitle.js +10 -0
- package/lib/components/DrawerHeaderTitle/renderDrawerHeaderTitle.js.map +1 -0
- package/lib/components/DrawerHeaderTitle/useDrawerHeaderTitle.js +37 -0
- package/lib/components/DrawerHeaderTitle/useDrawerHeaderTitle.js.map +1 -0
- package/lib/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.js +52 -0
- package/lib/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.js.map +1 -0
- package/lib/components/DrawerInline/DrawerInline.js +15 -0
- package/lib/components/DrawerInline/DrawerInline.js.map +1 -0
- package/lib/components/DrawerInline/DrawerInline.types.js +3 -0
- package/lib/components/DrawerInline/DrawerInline.types.js.map +1 -0
- package/lib/components/DrawerInline/index.js +7 -0
- package/lib/components/DrawerInline/index.js.map +1 -0
- package/lib/components/DrawerInline/renderDrawerInline.js +13 -0
- package/lib/components/DrawerInline/renderDrawerInline.js.map +1 -0
- package/lib/components/DrawerInline/useDrawerInline.js +35 -0
- package/lib/components/DrawerInline/useDrawerInline.js.map +1 -0
- package/lib/components/DrawerInline/useDrawerInlineStyles.styles.js +43 -0
- package/lib/components/DrawerInline/useDrawerInlineStyles.styles.js.map +1 -0
- package/lib/components/DrawerOverlay/DrawerOverlay.js +14 -0
- package/lib/components/DrawerOverlay/DrawerOverlay.js.map +1 -0
- package/lib/components/DrawerOverlay/DrawerOverlay.types.js +3 -0
- package/lib/components/DrawerOverlay/DrawerOverlay.types.js.map +1 -0
- package/lib/components/DrawerOverlay/index.js +7 -0
- package/lib/components/DrawerOverlay/index.js.map +1 -0
- package/lib/components/DrawerOverlay/renderDrawerOverlay.js +11 -0
- package/lib/components/DrawerOverlay/renderDrawerOverlay.js.map +1 -0
- package/lib/components/DrawerOverlay/useDrawerOverlay.js +36 -0
- package/lib/components/DrawerOverlay/useDrawerOverlay.js.map +1 -0
- package/lib/components/DrawerOverlay/useDrawerOverlayStyles.styles.js +27 -0
- package/lib/components/DrawerOverlay/useDrawerOverlayStyles.styles.js.map +1 -0
- package/lib/index.js +10 -0
- package/lib/index.js.map +1 -0
- package/lib/util/DrawerBase.types.js +3 -0
- package/lib/util/DrawerBase.types.js.map +1 -0
- package/lib/util/getDefaultDrawerProps.js +11 -0
- package/lib/util/getDefaultDrawerProps.js.map +1 -0
- package/lib/util/useDrawerBaseStyles.styles.js +55 -0
- package/lib/util/useDrawerBaseStyles.styles.js.map +1 -0
- package/lib-commonjs/Drawer.js +9 -0
- package/lib-commonjs/Drawer.js.map +1 -0
- package/lib-commonjs/DrawerBody.js +9 -0
- package/lib-commonjs/DrawerBody.js.map +1 -0
- package/lib-commonjs/DrawerFooter.js +9 -0
- package/lib-commonjs/DrawerFooter.js.map +1 -0
- package/lib-commonjs/DrawerHeader.js +9 -0
- package/lib-commonjs/DrawerHeader.js.map +1 -0
- package/lib-commonjs/DrawerHeaderNavigation.js +9 -0
- package/lib-commonjs/DrawerHeaderNavigation.js.map +1 -0
- package/lib-commonjs/DrawerHeaderTitle.js +9 -0
- package/lib-commonjs/DrawerHeaderTitle.js.map +1 -0
- package/lib-commonjs/DrawerInline.js +9 -0
- package/lib-commonjs/DrawerInline.js.map +1 -0
- package/lib-commonjs/DrawerOverlay.js +9 -0
- package/lib-commonjs/DrawerOverlay.js.map +1 -0
- package/lib-commonjs/components/Drawer/Drawer.js +23 -0
- package/lib-commonjs/components/Drawer/Drawer.js.map +1 -0
- package/lib-commonjs/components/Drawer/Drawer.types.js +7 -0
- package/lib-commonjs/components/Drawer/Drawer.types.js.map +1 -0
- package/lib-commonjs/components/Drawer/index.js +13 -0
- package/lib-commonjs/components/Drawer/index.js.map +1 -0
- package/lib-commonjs/components/Drawer/renderDrawer.js +16 -0
- package/lib-commonjs/components/Drawer/renderDrawer.js.map +1 -0
- package/lib-commonjs/components/Drawer/useDrawer.js +29 -0
- package/lib-commonjs/components/Drawer/useDrawer.js.map +1 -0
- package/lib-commonjs/components/Drawer/useDrawerStyles.styles.js +24 -0
- package/lib-commonjs/components/Drawer/useDrawerStyles.styles.js.map +1 -0
- package/lib-commonjs/components/DrawerBody/DrawerBody.js +23 -0
- package/lib-commonjs/components/DrawerBody/DrawerBody.js.map +1 -0
- package/lib-commonjs/components/DrawerBody/DrawerBody.types.js +7 -0
- package/lib-commonjs/components/DrawerBody/DrawerBody.types.js.map +1 -0
- package/lib-commonjs/components/DrawerBody/index.js +13 -0
- package/lib-commonjs/components/DrawerBody/index.js.map +1 -0
- package/lib-commonjs/components/DrawerBody/renderDrawerBody.js +17 -0
- package/lib-commonjs/components/DrawerBody/renderDrawerBody.js.map +1 -0
- package/lib-commonjs/components/DrawerBody/useDrawerBody.js +24 -0
- package/lib-commonjs/components/DrawerBody/useDrawerBody.js.map +1 -0
- package/lib-commonjs/components/DrawerBody/useDrawerBodyStyles.styles.js +90 -0
- package/lib-commonjs/components/DrawerBody/useDrawerBodyStyles.styles.js.map +1 -0
- package/lib-commonjs/components/DrawerFooter/DrawerFooter.js +21 -0
- package/lib-commonjs/components/DrawerFooter/DrawerFooter.js.map +1 -0
- package/lib-commonjs/components/DrawerFooter/DrawerFooter.types.js +7 -0
- package/lib-commonjs/components/DrawerFooter/DrawerFooter.types.js.map +1 -0
- package/lib-commonjs/components/DrawerFooter/index.js +13 -0
- package/lib-commonjs/components/DrawerFooter/index.js.map +1 -0
- package/lib-commonjs/components/DrawerFooter/renderDrawerFooter.js +17 -0
- package/lib-commonjs/components/DrawerFooter/renderDrawerFooter.js.map +1 -0
- package/lib-commonjs/components/DrawerFooter/useDrawerFooter.js +24 -0
- package/lib-commonjs/components/DrawerFooter/useDrawerFooter.js.map +1 -0
- package/lib-commonjs/components/DrawerFooter/useDrawerFooterStyles.styles.js +56 -0
- package/lib-commonjs/components/DrawerFooter/useDrawerFooterStyles.styles.js.map +1 -0
- package/lib-commonjs/components/DrawerHeader/DrawerHeader.js +23 -0
- package/lib-commonjs/components/DrawerHeader/DrawerHeader.js.map +1 -0
- package/lib-commonjs/components/DrawerHeader/DrawerHeader.types.js +7 -0
- package/lib-commonjs/components/DrawerHeader/DrawerHeader.types.js.map +1 -0
- package/lib-commonjs/components/DrawerHeader/index.js +13 -0
- package/lib-commonjs/components/DrawerHeader/index.js.map +1 -0
- package/lib-commonjs/components/DrawerHeader/renderDrawerHeader.js +17 -0
- package/lib-commonjs/components/DrawerHeader/renderDrawerHeader.js.map +1 -0
- package/lib-commonjs/components/DrawerHeader/useDrawerHeader.js +24 -0
- package/lib-commonjs/components/DrawerHeader/useDrawerHeader.js.map +1 -0
- package/lib-commonjs/components/DrawerHeader/useDrawerHeaderStyles.styles.js +58 -0
- package/lib-commonjs/components/DrawerHeader/useDrawerHeaderStyles.styles.js.map +1 -0
- package/lib-commonjs/components/DrawerHeaderNavigation/DrawerHeaderNavigation.js +23 -0
- package/lib-commonjs/components/DrawerHeaderNavigation/DrawerHeaderNavigation.js.map +1 -0
- package/lib-commonjs/components/DrawerHeaderNavigation/DrawerHeaderNavigation.types.js +7 -0
- package/lib-commonjs/components/DrawerHeaderNavigation/DrawerHeaderNavigation.types.js.map +1 -0
- package/lib-commonjs/components/DrawerHeaderNavigation/index.js +13 -0
- package/lib-commonjs/components/DrawerHeaderNavigation/index.js.map +1 -0
- package/lib-commonjs/components/DrawerHeaderNavigation/renderDrawerHeaderNavigation.js +17 -0
- package/lib-commonjs/components/DrawerHeaderNavigation/renderDrawerHeaderNavigation.js.map +1 -0
- package/lib-commonjs/components/DrawerHeaderNavigation/useDrawerHeaderNavigation.js +24 -0
- package/lib-commonjs/components/DrawerHeaderNavigation/useDrawerHeaderNavigation.js.map +1 -0
- package/lib-commonjs/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.js +50 -0
- package/lib-commonjs/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.js.map +1 -0
- package/lib-commonjs/components/DrawerHeaderTitle/DrawerHeaderTitle.js +23 -0
- package/lib-commonjs/components/DrawerHeaderTitle/DrawerHeaderTitle.js.map +1 -0
- package/lib-commonjs/components/DrawerHeaderTitle/DrawerHeaderTitle.types.js +9 -0
- package/lib-commonjs/components/DrawerHeaderTitle/DrawerHeaderTitle.types.js.map +1 -0
- package/lib-commonjs/components/DrawerHeaderTitle/index.js +13 -0
- package/lib-commonjs/components/DrawerHeaderTitle/index.js.map +1 -0
- package/lib-commonjs/components/DrawerHeaderTitle/renderDrawerHeaderTitle.js +17 -0
- package/lib-commonjs/components/DrawerHeaderTitle/renderDrawerHeaderTitle.js.map +1 -0
- package/lib-commonjs/components/DrawerHeaderTitle/useDrawerHeaderTitle.js +38 -0
- package/lib-commonjs/components/DrawerHeaderTitle/useDrawerHeaderTitle.js.map +1 -0
- package/lib-commonjs/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.js +68 -0
- package/lib-commonjs/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.js.map +1 -0
- package/lib-commonjs/components/DrawerInline/DrawerInline.js +21 -0
- package/lib-commonjs/components/DrawerInline/DrawerInline.js.map +1 -0
- package/lib-commonjs/components/DrawerInline/DrawerInline.types.js +7 -0
- package/lib-commonjs/components/DrawerInline/DrawerInline.types.js.map +1 -0
- package/lib-commonjs/components/DrawerInline/index.js +13 -0
- package/lib-commonjs/components/DrawerInline/index.js.map +1 -0
- package/lib-commonjs/components/DrawerInline/renderDrawerInline.js +20 -0
- package/lib-commonjs/components/DrawerInline/renderDrawerInline.js.map +1 -0
- package/lib-commonjs/components/DrawerInline/useDrawerInline.js +36 -0
- package/lib-commonjs/components/DrawerInline/useDrawerInline.js.map +1 -0
- package/lib-commonjs/components/DrawerInline/useDrawerInlineStyles.styles.js +85 -0
- package/lib-commonjs/components/DrawerInline/useDrawerInlineStyles.styles.js.map +1 -0
- package/lib-commonjs/components/DrawerOverlay/DrawerOverlay.js +21 -0
- package/lib-commonjs/components/DrawerOverlay/DrawerOverlay.js.map +1 -0
- package/lib-commonjs/components/DrawerOverlay/DrawerOverlay.types.js +7 -0
- package/lib-commonjs/components/DrawerOverlay/DrawerOverlay.types.js.map +1 -0
- package/lib-commonjs/components/DrawerOverlay/index.js +13 -0
- package/lib-commonjs/components/DrawerOverlay/index.js.map +1 -0
- package/lib-commonjs/components/DrawerOverlay/renderDrawerOverlay.js +18 -0
- package/lib-commonjs/components/DrawerOverlay/renderDrawerOverlay.js.map +1 -0
- package/lib-commonjs/components/DrawerOverlay/useDrawerOverlay.js +37 -0
- package/lib-commonjs/components/DrawerOverlay/useDrawerOverlay.js.map +1 -0
- package/lib-commonjs/components/DrawerOverlay/useDrawerOverlayStyles.styles.js +42 -0
- package/lib-commonjs/components/DrawerOverlay/useDrawerOverlayStyles.styles.js.map +1 -0
- package/lib-commonjs/index.js +61 -0
- package/lib-commonjs/index.js.map +1 -0
- package/lib-commonjs/util/DrawerBase.types.js +7 -0
- package/lib-commonjs/util/DrawerBase.types.js.map +1 -0
- package/lib-commonjs/util/getDefaultDrawerProps.js +19 -0
- package/lib-commonjs/util/getDefaultDrawerProps.js.map +1 -0
- package/lib-commonjs/util/useDrawerBaseStyles.styles.js +127 -0
- package/lib-commonjs/util/useDrawerBaseStyles.styles.js.map +1 -0
- package/package.json +62 -0
package/CHANGELOG.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fluentui/react-drawer",
|
|
3
|
+
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"date": "Tue, 30 May 2023 04:21:11 GMT",
|
|
6
|
+
"tag": "@fluentui/react-drawer_v0.0.0-nightly-20230530-0415.1",
|
|
7
|
+
"version": "0.0.0-nightly-20230530-0415.1",
|
|
8
|
+
"comments": {
|
|
9
|
+
"prerelease": [
|
|
10
|
+
{
|
|
11
|
+
"author": "fluentui-internal@service.microsoft.com",
|
|
12
|
+
"package": "@fluentui/react-drawer",
|
|
13
|
+
"commit": "not available",
|
|
14
|
+
"comment": "Release nightly v9"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui/react-drawer",
|
|
19
|
+
"comment": "Bump @fluentui/react-dialog to v0.0.0-nightly-20230530-0415.1",
|
|
20
|
+
"commit": "808fbe4052231d4cccf478348a770df18232f4f9"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@fluentui/react-drawer",
|
|
25
|
+
"comment": "Bump @fluentui/react-jsx-runtime to v0.0.0-nightly-20230530-0415.1",
|
|
26
|
+
"commit": "808fbe4052231d4cccf478348a770df18232f4f9"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "beachball",
|
|
30
|
+
"package": "@fluentui/react-drawer",
|
|
31
|
+
"comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20230530-0415.1",
|
|
32
|
+
"commit": "808fbe4052231d4cccf478348a770df18232f4f9"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"author": "beachball",
|
|
36
|
+
"package": "@fluentui/react-drawer",
|
|
37
|
+
"comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20230530-0415.1",
|
|
38
|
+
"commit": "808fbe4052231d4cccf478348a770df18232f4f9"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"author": "beachball",
|
|
42
|
+
"package": "@fluentui/react-drawer",
|
|
43
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20230530-0415.1",
|
|
44
|
+
"commit": "808fbe4052231d4cccf478348a770df18232f4f9"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"author": "beachball",
|
|
48
|
+
"package": "@fluentui/react-drawer",
|
|
49
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230530-0415.1",
|
|
50
|
+
"commit": "808fbe4052231d4cccf478348a770df18232f4f9"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Change Log - @fluentui/react-drawer
|
|
2
|
+
|
|
3
|
+
This log was last generated on Tue, 30 May 2023 04:21:11 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
<!-- Start content -->
|
|
6
|
+
|
|
7
|
+
## [0.0.0-nightly-20230530-0415.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v0.0.0-nightly-20230530-0415.1)
|
|
8
|
+
|
|
9
|
+
Tue, 30 May 2023 04:21:11 GMT
|
|
10
|
+
|
|
11
|
+
### Changes
|
|
12
|
+
|
|
13
|
+
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/not available) by fluentui-internal@service.microsoft.com)
|
|
14
|
+
- Bump @fluentui/react-dialog to v0.0.0-nightly-20230530-0415.1 ([commit](https://github.com/microsoft/fluentui/commit/808fbe4052231d4cccf478348a770df18232f4f9) by beachball)
|
|
15
|
+
- Bump @fluentui/react-jsx-runtime to v0.0.0-nightly-20230530-0415.1 ([commit](https://github.com/microsoft/fluentui/commit/808fbe4052231d4cccf478348a770df18232f4f9) by beachball)
|
|
16
|
+
- Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20230530-0415.1 ([commit](https://github.com/microsoft/fluentui/commit/808fbe4052231d4cccf478348a770df18232f4f9) by beachball)
|
|
17
|
+
- Bump @fluentui/react-theme to v0.0.0-nightly-20230530-0415.1 ([commit](https://github.com/microsoft/fluentui/commit/808fbe4052231d4cccf478348a770df18232f4f9) by beachball)
|
|
18
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightly-20230530-0415.1 ([commit](https://github.com/microsoft/fluentui/commit/808fbe4052231d4cccf478348a770df18232f4f9) by beachball)
|
|
19
|
+
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20230530-0415.1 ([commit](https://github.com/microsoft/fluentui/commit/808fbe4052231d4cccf478348a770df18232f4f9) by beachball)
|
package/LICENSE
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@fluentui/react-drawer
|
|
2
|
+
|
|
3
|
+
Copyright (c) Microsoft Corporation
|
|
4
|
+
|
|
5
|
+
All rights reserved.
|
|
6
|
+
|
|
7
|
+
MIT License
|
|
8
|
+
|
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
14
|
+
|
|
15
|
+
Note: Usage of the fonts and icons referenced in Fluent UI React is subject to the terms listed at https://aka.ms/fluentui-assets-license
|
package/README.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# @fluentui/react-drawer
|
|
2
|
+
|
|
3
|
+
**React Drawer components for [Fluent UI React](https://react.fluentui.dev/)**
|
|
4
|
+
|
|
5
|
+
These are not production-ready components and **should never be used in product**. This space is useful for testing new components whose APIs might change before final release.
|
|
6
|
+
|
|
7
|
+
The Drawer gives users a quick entry point to configuration and information. It should be used when retaining context is beneficial to users. An overlay is optional depending on whether or not interacting with the background content is beneficial to the user’s context/scenario. An overlay makes the Drawer blocking and signifies that the users full attention is required when making configurations.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
To import React Drawer components:
|
|
12
|
+
|
|
13
|
+
```tsx
|
|
14
|
+
import {
|
|
15
|
+
DrawerOverlay,
|
|
16
|
+
DrawerInline,
|
|
17
|
+
DrawerHeader,
|
|
18
|
+
DrawerHeaderTitle,
|
|
19
|
+
DrawerHeaderNavigation,
|
|
20
|
+
DrawerBody
|
|
21
|
+
} from "@fluentui/react-components';
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Simple example of Drawer Usage:
|
|
25
|
+
|
|
26
|
+
```tsx
|
|
27
|
+
import { DrawerBody, DrawerHeader, DrawerHeaderTitle, Drawer } from '@fluentui/react-drawer';
|
|
28
|
+
import { Button } from '@fluentui/react-components';
|
|
29
|
+
import { Dismiss24Regular } from '@fluentui/react-icons';
|
|
30
|
+
|
|
31
|
+
export const App = () => (
|
|
32
|
+
<Drawer type="inline" open>
|
|
33
|
+
<DrawerHeader>
|
|
34
|
+
<DrawerHeaderTitle
|
|
35
|
+
action={
|
|
36
|
+
<Button
|
|
37
|
+
appearance="subtle"
|
|
38
|
+
aria-label="Close drawer"
|
|
39
|
+
icon={<Dismiss24Regular />}
|
|
40
|
+
onClick={() => setIsOpen(false)}
|
|
41
|
+
/>
|
|
42
|
+
}
|
|
43
|
+
>
|
|
44
|
+
Title goes here
|
|
45
|
+
</DrawerHeaderTitle>
|
|
46
|
+
</DrawerHeader>
|
|
47
|
+
|
|
48
|
+
<DrawerBody>
|
|
49
|
+
<p>Content goes here</p>
|
|
50
|
+
</DrawerBody>
|
|
51
|
+
</Drawer>
|
|
52
|
+
);
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Specification
|
|
56
|
+
|
|
57
|
+
See the [Spec.md](./docs/Spec.md) file for background information on the design/engineering decisions of the component.
|
|
58
|
+
|
|
59
|
+
## API
|
|
60
|
+
|
|
61
|
+
For information about the components, please refer to the [API documentation](https://react.fluentui.dev/?path=/docs/preview-components-drawer--default).
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
|
|
3
|
+
import type { ComponentProps } from '@fluentui/react-utilities';
|
|
4
|
+
import type { ComponentState } from '@fluentui/react-utilities';
|
|
5
|
+
import { DialogProps } from '@fluentui/react-dialog';
|
|
6
|
+
import { DialogSurfaceProps } from '@fluentui/react-dialog';
|
|
7
|
+
import { DialogTitleSlots } from '@fluentui/react-dialog';
|
|
8
|
+
import type { ForwardRefComponent } from '@fluentui/react-utilities';
|
|
9
|
+
import * as React_2 from 'react';
|
|
10
|
+
import type { Slot } from '@fluentui/react-utilities';
|
|
11
|
+
import type { SlotClassNames } from '@fluentui/react-utilities';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Drawer contains supplementary content and are used for complex creation, edit, or management experiences.
|
|
15
|
+
*/
|
|
16
|
+
export declare const Drawer: ForwardRefComponent<DrawerProps>;
|
|
17
|
+
|
|
18
|
+
declare type DrawerBaseTypes = {
|
|
19
|
+
/**
|
|
20
|
+
* Position of the drawer.
|
|
21
|
+
*
|
|
22
|
+
* @default 'left'
|
|
23
|
+
*/
|
|
24
|
+
position?: 'left' | 'right';
|
|
25
|
+
/**
|
|
26
|
+
* Size of the drawer.
|
|
27
|
+
*
|
|
28
|
+
* - 'small' - Drawer is 320px wide.
|
|
29
|
+
* - 'medium' - Drawer is 592px wide.
|
|
30
|
+
* - 'large' - Drawer is 940px wide.
|
|
31
|
+
* - 'full' - Drawer is 100vw wide.
|
|
32
|
+
*
|
|
33
|
+
* @default 'small'
|
|
34
|
+
*/
|
|
35
|
+
size?: 'small' | 'medium' | 'large' | 'full';
|
|
36
|
+
/**
|
|
37
|
+
* Controls the open state of the Drawer
|
|
38
|
+
*
|
|
39
|
+
* @default false
|
|
40
|
+
*/
|
|
41
|
+
open?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Default value for the uncontrolled open state of the Drawer.
|
|
44
|
+
*
|
|
45
|
+
* @default false
|
|
46
|
+
*/
|
|
47
|
+
defaultOpen?: boolean;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* DrawerBody provides with a container for the main content of a Drawer.
|
|
52
|
+
*/
|
|
53
|
+
export declare const DrawerBody: ForwardRefComponent<DrawerBodyProps>;
|
|
54
|
+
|
|
55
|
+
export declare const drawerBodyClassNames: SlotClassNames<DrawerBodySlots>;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* DrawerBody Props
|
|
59
|
+
*/
|
|
60
|
+
export declare type DrawerBodyProps = ComponentProps<DrawerBodySlots>;
|
|
61
|
+
|
|
62
|
+
export declare type DrawerBodySlots = {
|
|
63
|
+
root: Slot<'div'>;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* State used in rendering DrawerBody
|
|
68
|
+
*/
|
|
69
|
+
export declare type DrawerBodyState = ComponentState<DrawerBodySlots>;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* DrawerFooter component - TODO: add more docs
|
|
73
|
+
*/
|
|
74
|
+
export declare const DrawerFooter: ForwardRefComponent<DrawerFooterProps>;
|
|
75
|
+
|
|
76
|
+
export declare const drawerFooterClassNames: SlotClassNames<DrawerFooterSlots>;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* DrawerFooter Props
|
|
80
|
+
*/
|
|
81
|
+
export declare type DrawerFooterProps = ComponentProps<DrawerFooterSlots>;
|
|
82
|
+
|
|
83
|
+
export declare type DrawerFooterSlots = {
|
|
84
|
+
root: Slot<'footer'>;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* State used in rendering DrawerFooter
|
|
89
|
+
*/
|
|
90
|
+
export declare type DrawerFooterState = ComponentState<DrawerFooterSlots>;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* DrawerHeader provides a structured header for the drawer component.
|
|
94
|
+
*/
|
|
95
|
+
export declare const DrawerHeader: ForwardRefComponent<DrawerHeaderProps>;
|
|
96
|
+
|
|
97
|
+
export declare const drawerHeaderClassNames: SlotClassNames<DrawerHeaderSlots>;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* DrawerHeaderNavigation provides a header navigation area for the Drawer.
|
|
101
|
+
*/
|
|
102
|
+
export declare const DrawerHeaderNavigation: ForwardRefComponent<DrawerHeaderNavigationProps>;
|
|
103
|
+
|
|
104
|
+
export declare const drawerHeaderNavigationClassNames: SlotClassNames<DrawerHeaderNavigationSlots>;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* DrawerHeaderNavigation Props
|
|
108
|
+
*/
|
|
109
|
+
export declare type DrawerHeaderNavigationProps = ComponentProps<DrawerHeaderNavigationSlots>;
|
|
110
|
+
|
|
111
|
+
export declare type DrawerHeaderNavigationSlots = {
|
|
112
|
+
root: Slot<'nav'>;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* State used in rendering DrawerHeaderNavigation
|
|
117
|
+
*/
|
|
118
|
+
export declare type DrawerHeaderNavigationState = ComponentState<DrawerHeaderNavigationSlots>;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* DrawerHeader Props
|
|
122
|
+
*/
|
|
123
|
+
export declare type DrawerHeaderProps = ComponentProps<DrawerHeaderSlots>;
|
|
124
|
+
|
|
125
|
+
export declare type DrawerHeaderSlots = {
|
|
126
|
+
/**
|
|
127
|
+
* The root of the DrawerHeader.
|
|
128
|
+
*/
|
|
129
|
+
root: Slot<'header'>;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* State used in rendering DrawerHeader
|
|
134
|
+
*/
|
|
135
|
+
export declare type DrawerHeaderState = ComponentState<DrawerHeaderSlots>;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* DrawerHeader provides a structured header for the drawer component.
|
|
139
|
+
*/
|
|
140
|
+
export declare const DrawerHeaderTitle: ForwardRefComponent<DrawerHeaderTitleProps>;
|
|
141
|
+
|
|
142
|
+
export declare const drawerHeaderTitleClassNames: SlotClassNames<DrawerHeaderTitleSlots>;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* DrawerHeaderTitle Props
|
|
146
|
+
*/
|
|
147
|
+
export declare type DrawerHeaderTitleProps = ComponentProps<DrawerHeaderTitleSlots> & {
|
|
148
|
+
/**
|
|
149
|
+
* Content of the DrawerHeaderTitle
|
|
150
|
+
* Children is mandatory because DrawerHeaderTitle is a wrapper component
|
|
151
|
+
*/
|
|
152
|
+
children: React_2.ReactNode | undefined;
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
export declare type DrawerHeaderTitleSlots = {
|
|
156
|
+
root: Slot<'div'>;
|
|
157
|
+
/**
|
|
158
|
+
* By default this is a h2, but can be any heading or div.
|
|
159
|
+
* If `div` is provided do not forget to also provide proper `role="heading"` and `aria-level` attributes
|
|
160
|
+
*/
|
|
161
|
+
heading?: DialogTitleSlots['root'];
|
|
162
|
+
/**
|
|
163
|
+
* Action slot for the close button
|
|
164
|
+
*/
|
|
165
|
+
action?: DialogTitleSlots['action'];
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* State used in rendering DrawerHeaderTitle
|
|
170
|
+
*/
|
|
171
|
+
export declare type DrawerHeaderTitleState = ComponentState<DrawerHeaderTitleSlots>;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* DrawerInline is often used for navigation that is not dissmissable. As it is on the same level as
|
|
175
|
+
* the main surface, users can still interact with other UI elements.
|
|
176
|
+
*/
|
|
177
|
+
export declare const DrawerInline: ForwardRefComponent<DrawerInlineProps>;
|
|
178
|
+
|
|
179
|
+
export declare const drawerInlineClassNames: SlotClassNames<DrawerInlineSlots>;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* DrawerInline Props
|
|
183
|
+
*/
|
|
184
|
+
export declare type DrawerInlineProps = ComponentProps<DrawerInlineSlots> & DrawerBaseTypes & {
|
|
185
|
+
/**
|
|
186
|
+
* Whether the drawer has a separator line.
|
|
187
|
+
*
|
|
188
|
+
* @default false
|
|
189
|
+
*/
|
|
190
|
+
separator?: boolean;
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
export declare type DrawerInlineSlots = {
|
|
194
|
+
root: Slot<'div'>;
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* State used in rendering DrawerInline
|
|
199
|
+
*/
|
|
200
|
+
export declare type DrawerInlineState = ComponentState<DrawerInlineSlots> & DrawerBaseTypes & Pick<DrawerInlineProps, 'open' | 'separator'>;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* DrawerOverlay contains supplementary content and are used for complex creation, edit, or management experiences.
|
|
204
|
+
*/
|
|
205
|
+
export declare const DrawerOverlay: ForwardRefComponent<DrawerOverlayProps>;
|
|
206
|
+
|
|
207
|
+
export declare const drawerOverlayClassNames: SlotClassNames<DrawerOverlaySlots>;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* DrawerOverlay Props
|
|
211
|
+
*/
|
|
212
|
+
export declare type DrawerOverlayProps = ComponentProps<DrawerOverlaySlots> & DrawerBaseTypes & Pick<DialogProps, 'modalType' | 'onOpenChange' | 'inertTrapFocus'>;
|
|
213
|
+
|
|
214
|
+
export declare type DrawerOverlaySlots = {
|
|
215
|
+
root: Slot<DialogSurfaceProps>;
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* State used in rendering DrawerOverlay
|
|
220
|
+
*/
|
|
221
|
+
export declare type DrawerOverlayState = ComponentState<DrawerOverlaySlots> & DrawerBaseTypes & {
|
|
222
|
+
dialog: DialogProps;
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Drawer Props
|
|
227
|
+
*/
|
|
228
|
+
export declare type DrawerProps = ComponentProps<Partial<DrawerSlots>> & DrawerOverlayProps & DrawerInlineProps & {
|
|
229
|
+
/**
|
|
230
|
+
* Type of the drawer.
|
|
231
|
+
* @default overlay
|
|
232
|
+
*
|
|
233
|
+
* - 'overlay' - Drawer is hidden by default and can be opened by clicking on the trigger.
|
|
234
|
+
* - 'inline' - Drawer is stacked with the content
|
|
235
|
+
*/
|
|
236
|
+
type?: 'inline' | 'overlay';
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
export declare type DrawerSlots = {
|
|
240
|
+
/**
|
|
241
|
+
* Root slot of the Drawer.
|
|
242
|
+
*/
|
|
243
|
+
root: Slot<DrawerOverlayProps | DrawerInlineProps>;
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* State used in rendering Drawer
|
|
248
|
+
*/
|
|
249
|
+
export declare type DrawerState = ComponentState<DrawerSlots>;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Render the final JSX of Drawer
|
|
253
|
+
*/
|
|
254
|
+
export declare const renderDrawer_unstable: (state: DrawerState) => JSX.Element;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Render the final JSX of DrawerBody
|
|
258
|
+
*/
|
|
259
|
+
export declare const renderDrawerBody_unstable: (state: DrawerBodyState) => JSX.Element;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Render the final JSX of DrawerFooter
|
|
263
|
+
*/
|
|
264
|
+
export declare const renderDrawerFooter_unstable: (state: DrawerFooterState) => JSX.Element;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Render the final JSX of DrawerHeader
|
|
268
|
+
*/
|
|
269
|
+
export declare const renderDrawerHeader_unstable: (state: DrawerHeaderState) => JSX.Element;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Render the final JSX of DrawerHeaderNavigation
|
|
273
|
+
*/
|
|
274
|
+
export declare const renderDrawerHeaderNavigation_unstable: (state: DrawerHeaderNavigationState) => JSX.Element;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Render the final JSX of DrawerHeaderTitle
|
|
278
|
+
*/
|
|
279
|
+
export declare const renderDrawerHeaderTitle_unstable: (state: DrawerHeaderTitleState) => JSX.Element;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Render the final JSX of DrawerInline
|
|
283
|
+
*/
|
|
284
|
+
export declare const renderDrawerInline_unstable: (state: DrawerInlineState) => JSX.Element | null;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Render the final JSX of DrawerOverlay
|
|
288
|
+
*/
|
|
289
|
+
export declare const renderDrawerOverlay_unstable: (state: DrawerOverlayState) => JSX.Element;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Create the state required to render Drawer.
|
|
293
|
+
*
|
|
294
|
+
* The returned state can be modified with hooks such as useDrawerStyles_unstable,
|
|
295
|
+
* before being passed to renderDrawer_unstable.
|
|
296
|
+
*
|
|
297
|
+
* @param props - props from this instance of Drawer
|
|
298
|
+
* @param ref - reference to root HTMLElement of Drawer
|
|
299
|
+
*/
|
|
300
|
+
export declare const useDrawer_unstable: (props: DrawerProps, ref: React_2.Ref<HTMLElement>) => DrawerState;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Create the state required to render DrawerBody.
|
|
304
|
+
*
|
|
305
|
+
* The returned state can be modified with hooks such as useDrawerBodyStyles_unstable,
|
|
306
|
+
* before being passed to renderDrawerBody_unstable.
|
|
307
|
+
*
|
|
308
|
+
* @param props - props from this instance of DrawerBody
|
|
309
|
+
* @param ref - reference to root HTMLElement of DrawerBody
|
|
310
|
+
*/
|
|
311
|
+
export declare const useDrawerBody_unstable: (props: DrawerBodyProps, ref: React_2.Ref<HTMLElement>) => DrawerBodyState;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Apply styling to the DrawerBody slots based on the state
|
|
315
|
+
*/
|
|
316
|
+
export declare const useDrawerBodyStyles_unstable: (state: DrawerBodyState) => DrawerBodyState;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Create the state required to render DrawerFooter.
|
|
320
|
+
*
|
|
321
|
+
* The returned state can be modified with hooks such as useDrawerFooterStyles_unstable,
|
|
322
|
+
* before being passed to renderDrawerFooter_unstable.
|
|
323
|
+
*
|
|
324
|
+
* @param props - props from this instance of DrawerFooter
|
|
325
|
+
* @param ref - reference to root HTMLElement of DrawerFooter
|
|
326
|
+
*/
|
|
327
|
+
export declare const useDrawerFooter_unstable: (props: DrawerFooterProps, ref: React_2.Ref<HTMLElement>) => DrawerFooterState;
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Apply styling to the DrawerFooter slots based on the state
|
|
331
|
+
*/
|
|
332
|
+
export declare const useDrawerFooterStyles_unstable: (state: DrawerFooterState) => DrawerFooterState;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Create the state required to render DrawerHeader.
|
|
336
|
+
*
|
|
337
|
+
* The returned state can be modified with hooks such as useDrawerHeaderStyles_unstable,
|
|
338
|
+
* before being passed to renderDrawerHeader_unstable.
|
|
339
|
+
*
|
|
340
|
+
* @param props - props from this instance of DrawerHeader
|
|
341
|
+
* @param ref - reference to root HTMLElement of DrawerHeader
|
|
342
|
+
*/
|
|
343
|
+
export declare const useDrawerHeader_unstable: (props: DrawerHeaderProps, ref: React_2.Ref<HTMLElement>) => DrawerHeaderState;
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Create the state required to render DrawerHeaderNavigation.
|
|
347
|
+
*
|
|
348
|
+
* The returned state can be modified with hooks such as useDrawerHeaderNavigationStyles_unstable,
|
|
349
|
+
* before being passed to renderDrawerHeaderNavigation_unstable.
|
|
350
|
+
*
|
|
351
|
+
* @param props - props from this instance of DrawerHeaderNavigation
|
|
352
|
+
* @param ref - reference to root HTMLElement of DrawerHeaderNavigation
|
|
353
|
+
*/
|
|
354
|
+
export declare const useDrawerHeaderNavigation_unstable: (props: DrawerHeaderNavigationProps, ref: React_2.Ref<HTMLElement>) => DrawerHeaderNavigationState;
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Apply styling to the DrawerHeaderNavigation slots based on the state
|
|
358
|
+
*/
|
|
359
|
+
export declare const useDrawerHeaderNavigationStyles_unstable: (state: DrawerHeaderNavigationState) => DrawerHeaderNavigationState;
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Apply styling to the DrawerHeader slots based on the state
|
|
363
|
+
*/
|
|
364
|
+
export declare const useDrawerHeaderStyles_unstable: (state: DrawerHeaderState) => DrawerHeaderState;
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Create the state required to render DrawerHeaderTitle.
|
|
368
|
+
*
|
|
369
|
+
* The returned state can be modified with hooks such as useDrawerHeaderTitleStyles_unstable,
|
|
370
|
+
* before being passed to renderDrawerHeaderTitle_unstable.
|
|
371
|
+
*
|
|
372
|
+
* @param props - props from this instance of DrawerHeaderTitle
|
|
373
|
+
* @param ref - reference to root HTMLElement of DrawerHeaderTitle
|
|
374
|
+
*/
|
|
375
|
+
export declare const useDrawerHeaderTitle_unstable: (props: DrawerHeaderTitleProps, ref: React_2.Ref<HTMLDivElement>) => DrawerHeaderTitleState;
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Apply styling to the DrawerHeaderTitle slots based on the state
|
|
379
|
+
*/
|
|
380
|
+
export declare const useDrawerHeaderTitleStyles_unstable: (state: DrawerHeaderTitleState) => DrawerHeaderTitleState;
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Create the state required to render DrawerInline.
|
|
384
|
+
*
|
|
385
|
+
* The returned state can be modified with hooks such as useDrawerInlineStyles_unstable,
|
|
386
|
+
* before being passed to renderDrawerInline_unstable.
|
|
387
|
+
*
|
|
388
|
+
* @param props - props from this instance of DrawerInline
|
|
389
|
+
* @param ref - reference to root HTMLElement of DrawerInline
|
|
390
|
+
*/
|
|
391
|
+
export declare const useDrawerInline_unstable: (props: DrawerInlineProps, ref: React_2.Ref<HTMLElement>) => DrawerInlineState;
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Apply styling to the DrawerInline slots based on the state
|
|
395
|
+
*/
|
|
396
|
+
export declare const useDrawerInlineStyles_unstable: (state: DrawerInlineState) => DrawerInlineState;
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Create the state required to render DrawerOverlay.
|
|
400
|
+
*
|
|
401
|
+
* The returned state can be modified with hooks such as useDrawerOverlayStyles_unstable,
|
|
402
|
+
* before being passed to renderDrawerOverlay_unstable.
|
|
403
|
+
*
|
|
404
|
+
* @param props - props from this instance of DrawerOverlay
|
|
405
|
+
* @param ref - reference to root HTMLElement of DrawerOverlay
|
|
406
|
+
*/
|
|
407
|
+
export declare const useDrawerOverlay_unstable: (props: DrawerOverlayProps, ref: React_2.Ref<HTMLElement>) => DrawerOverlayState;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Apply styling to the DrawerOverlay slots based on the state
|
|
411
|
+
*/
|
|
412
|
+
export declare const useDrawerOverlayStyles_unstable: (state: DrawerOverlayState) => DrawerOverlayState;
|
|
413
|
+
|
|
414
|
+
export { }
|
package/lib/Drawer.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/Drawer.ts"],"sourcesContent":["export * from './components/Drawer/index';\n"],"names":[],"mappings":"AAAA,cAAc,4BAA4B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/DrawerBody.ts"],"sourcesContent":["export * from './components/DrawerBody/index';\n"],"names":[],"mappings":"AAAA,cAAc,gCAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/DrawerFooter.ts"],"sourcesContent":["export * from './components/DrawerFooter/index';\n"],"names":[],"mappings":"AAAA,cAAc,kCAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/DrawerHeader.ts"],"sourcesContent":["export * from './components/DrawerHeader/index';\n"],"names":[],"mappings":"AAAA,cAAc,kCAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/DrawerHeaderNavigation.ts"],"sourcesContent":["export * from './components/DrawerHeaderNavigation/index';\n"],"names":[],"mappings":"AAAA,cAAc,4CAA4C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/DrawerHeaderTitle.ts"],"sourcesContent":["export * from './components/DrawerHeaderTitle/index';\n"],"names":[],"mappings":"AAAA,cAAc,uCAAuC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/DrawerInline.ts"],"sourcesContent":["export * from './components/DrawerInline/index';\n"],"names":[],"mappings":"AAAA,cAAc,kCAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/DrawerOverlay.ts"],"sourcesContent":["export * from './components/DrawerOverlay/index';\n"],"names":[],"mappings":"AAAA,cAAc,mCAAmC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useDrawer_unstable } from './useDrawer';
|
|
3
|
+
import { renderDrawer_unstable } from './renderDrawer';
|
|
4
|
+
import { useDrawerStyles_unstable } from './useDrawerStyles.styles';
|
|
5
|
+
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
|
|
6
|
+
/**
|
|
7
|
+
* Drawer contains supplementary content and are used for complex creation, edit, or management experiences.
|
|
8
|
+
*/ export const Drawer = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
9
|
+
const state = useDrawer_unstable(props, ref);
|
|
10
|
+
useDrawerStyles_unstable(state);
|
|
11
|
+
useCustomStyleHook_unstable('useDrawerStyles_unstable')(state);
|
|
12
|
+
return renderDrawer_unstable(state);
|
|
13
|
+
});
|
|
14
|
+
Drawer.displayName = 'Drawer';
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=Drawer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Drawer/Drawer.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useDrawer_unstable } from './useDrawer';\nimport { renderDrawer_unstable } from './renderDrawer';\nimport { useDrawerStyles_unstable } from './useDrawerStyles.styles';\nimport type { DrawerProps } from './Drawer.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * Drawer contains supplementary content and are used for complex creation, edit, or management experiences.\n */\nexport const Drawer: ForwardRefComponent<DrawerProps> = React.forwardRef((props, ref) => {\n const state = useDrawer_unstable(props, ref);\n\n useDrawerStyles_unstable(state);\n useCustomStyleHook_unstable('useDrawerStyles_unstable')(state);\n\n return renderDrawer_unstable(state);\n});\n\nDrawer.displayName = 'Drawer';\n"],"names":["React","useDrawer_unstable","renderDrawer_unstable","useDrawerStyles_unstable","useCustomStyleHook_unstable","Drawer","forwardRef","props","ref","state","displayName"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,kBAAkB,QAAQ,cAAc;AACjD,SAASC,qBAAqB,QAAQ,iBAAiB;AACvD,SAASC,wBAAwB,QAAQ,2BAA2B;AAGpE,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E;;CAEC,GACD,OAAO,MAAMC,uBAA2CL,MAAMM,UAAU,CAAC,CAACC,OAAOC,MAAQ;IACvF,MAAMC,QAAQR,mBAAmBM,OAAOC;IAExCL,yBAAyBM;IACzBL,4BAA4B,4BAA4BK;IAExD,OAAOP,sBAAsBO;AAC/B,GAAG;AAEHJ,OAAOK,WAAW,GAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Drawer/Drawer.types.ts"],"sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport { DrawerOverlayProps } from '../DrawerOverlay/DrawerOverlay.types';\nimport { DrawerInlineProps } from '../DrawerInline/DrawerInline.types';\n\nexport type DrawerSlots = {\n /**\n * Root slot of the Drawer.\n */\n root: Slot<DrawerOverlayProps | DrawerInlineProps>;\n};\n\n/**\n * Drawer Props\n */\nexport type DrawerProps = ComponentProps<Partial<DrawerSlots>> &\n DrawerOverlayProps &\n DrawerInlineProps & {\n /**\n * Type of the drawer.\n * @default overlay\n *\n * - 'overlay' - Drawer is hidden by default and can be opened by clicking on the trigger.\n * - 'inline' - Drawer is stacked with the content\n */\n type?: 'inline' | 'overlay';\n };\n\n/**\n * State used in rendering Drawer\n */\nexport type DrawerState = ComponentState<DrawerSlots>;\n"],"names":[],"mappings":"AAAA,WA8BsD"}
|