@fluentui/react-drawer 9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 → 9.75.2-experimental.css-modules.20261113-ba13c87438.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/CHANGELOG.md +13 -13
- package/README.md +12 -0
- package/lib/components/Drawer/useDrawerStyles.styles.css.js +8 -0
- package/lib/components/Drawer/useDrawerStyles.styles.css.js.map +1 -0
- package/lib/components/Drawer/useDrawerStyles.styles.raw.css.js +8 -0
- package/lib/components/Drawer/useDrawerStyles.styles.raw.css.js.map +1 -0
- package/lib/components/DrawerBody/DrawerBody.module.css +15 -0
- package/lib/components/DrawerBody/useDrawerBody.js +14 -2
- package/lib/components/DrawerBody/useDrawerBody.js.map +1 -1
- package/lib/components/DrawerBody/useDrawerBodyStyles.styles.css.js +9 -0
- package/lib/components/DrawerBody/useDrawerBodyStyles.styles.css.js.map +1 -0
- package/lib/components/DrawerBody/useDrawerBodyStyles.styles.raw.css.js +9 -0
- package/lib/components/DrawerBody/useDrawerBodyStyles.styles.raw.css.js.map +1 -0
- package/lib/components/DrawerFooter/DrawerFooter.module.css +35 -0
- package/lib/components/DrawerFooter/useDrawerFooterStyles.styles.css.js +9 -0
- package/lib/components/DrawerFooter/useDrawerFooterStyles.styles.css.js.map +1 -0
- package/lib/components/DrawerFooter/useDrawerFooterStyles.styles.raw.css.js +9 -0
- package/lib/components/DrawerFooter/useDrawerFooterStyles.styles.raw.css.js.map +1 -0
- package/lib/components/DrawerHeader/DrawerHeader.module.css +35 -0
- package/lib/components/DrawerHeader/useDrawerHeaderStyles.styles.css.js +9 -0
- package/lib/components/DrawerHeader/useDrawerHeaderStyles.styles.css.js.map +1 -0
- package/lib/components/DrawerHeader/useDrawerHeaderStyles.styles.raw.css.js +9 -0
- package/lib/components/DrawerHeader/useDrawerHeaderStyles.styles.raw.css.js.map +1 -0
- package/lib/components/DrawerHeaderNavigation/DrawerHeaderNavigation.module.css +4 -0
- package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.css.js +9 -0
- package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.css.js.map +1 -0
- package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.raw.css.js +9 -0
- package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.raw.css.js.map +1 -0
- package/lib/components/DrawerHeaderTitle/DrawerHeaderTitle.module.css +10 -0
- package/lib/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.css.js +33 -0
- package/lib/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.css.js.map +1 -0
- package/lib/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.raw.css.js +33 -0
- package/lib/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.raw.css.js.map +1 -0
- package/lib/components/InlineDrawer/InlineDrawer.module.css +31 -0
- package/lib/components/InlineDrawer/useInlineDrawerStyles.styles.css.js +12 -0
- package/lib/components/InlineDrawer/useInlineDrawerStyles.styles.css.js.map +1 -0
- package/lib/components/InlineDrawer/useInlineDrawerStyles.styles.raw.css.js +12 -0
- package/lib/components/InlineDrawer/useInlineDrawerStyles.styles.raw.css.js.map +1 -0
- package/lib/components/OverlayDrawer/OverlayDrawer.module.css +39 -0
- package/lib/components/OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.module.css +14 -0
- package/lib/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.css.js +8 -0
- package/lib/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.css.js.map +1 -0
- package/lib/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.raw.css.js +8 -0
- package/lib/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.raw.css.js.map +1 -0
- package/lib/components/OverlayDrawer/useOverlayDrawerStyles.styles.css.js +18 -0
- package/lib/components/OverlayDrawer/useOverlayDrawerStyles.styles.css.js.map +1 -0
- package/lib/components/OverlayDrawer/useOverlayDrawerStyles.styles.raw.css.js +18 -0
- package/lib/components/OverlayDrawer/useOverlayDrawerStyles.styles.raw.css.js.map +1 -0
- package/lib/shared/DrawerBase.module.css +52 -0
- package/lib/shared/useDrawerBaseStyles.styles.css.js +28 -0
- package/lib/shared/useDrawerBaseStyles.styles.css.js.map +1 -0
- package/lib/shared/useDrawerBaseStyles.styles.raw.css.js +28 -0
- package/lib/shared/useDrawerBaseStyles.styles.raw.css.js.map +1 -0
- package/lib-commonjs/components/Drawer/useDrawerStyles.styles.css.cjs +26 -0
- package/lib-commonjs/components/Drawer/useDrawerStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/Drawer/useDrawerStyles.styles.raw.css.cjs +26 -0
- package/lib-commonjs/components/Drawer/useDrawerStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/DrawerBody/DrawerBody.module.css +15 -0
- package/lib-commonjs/components/DrawerBody/useDrawerBody.cjs +14 -2
- package/lib-commonjs/components/DrawerBody/useDrawerBody.cjs.map +1 -1
- package/lib-commonjs/components/DrawerBody/useDrawerBodyStyles.styles.css.cjs +28 -0
- package/lib-commonjs/components/DrawerBody/useDrawerBodyStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/DrawerBody/useDrawerBodyStyles.styles.raw.css.cjs +28 -0
- package/lib-commonjs/components/DrawerBody/useDrawerBodyStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/DrawerFooter/DrawerFooter.module.css +35 -0
- package/lib-commonjs/components/DrawerFooter/useDrawerFooterStyles.styles.css.cjs +28 -0
- package/lib-commonjs/components/DrawerFooter/useDrawerFooterStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/DrawerFooter/useDrawerFooterStyles.styles.raw.css.cjs +28 -0
- package/lib-commonjs/components/DrawerFooter/useDrawerFooterStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/DrawerHeader/DrawerHeader.module.css +35 -0
- package/lib-commonjs/components/DrawerHeader/useDrawerHeaderStyles.styles.css.cjs +28 -0
- package/lib-commonjs/components/DrawerHeader/useDrawerHeaderStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/DrawerHeader/useDrawerHeaderStyles.styles.raw.css.cjs +28 -0
- package/lib-commonjs/components/DrawerHeader/useDrawerHeaderStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/DrawerHeaderNavigation/DrawerHeaderNavigation.module.css +4 -0
- package/lib-commonjs/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.css.cjs +28 -0
- package/lib-commonjs/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.raw.css.cjs +28 -0
- package/lib-commonjs/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/DrawerHeaderTitle/DrawerHeaderTitle.module.css +10 -0
- package/lib-commonjs/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.css.cjs +51 -0
- package/lib-commonjs/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.raw.css.cjs +51 -0
- package/lib-commonjs/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/InlineDrawer/InlineDrawer.module.css +31 -0
- package/lib-commonjs/components/InlineDrawer/useInlineDrawerStyles.styles.css.cjs +31 -0
- package/lib-commonjs/components/InlineDrawer/useInlineDrawerStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/InlineDrawer/useInlineDrawerStyles.styles.raw.css.cjs +31 -0
- package/lib-commonjs/components/InlineDrawer/useInlineDrawerStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/OverlayDrawer/OverlayDrawer.module.css +39 -0
- package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/OverlayDrawerSurface.module.css +14 -0
- package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.css.cjs +19 -0
- package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.raw.css.cjs +19 -0
- package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/components/OverlayDrawer/useOverlayDrawerStyles.styles.css.cjs +37 -0
- package/lib-commonjs/components/OverlayDrawer/useOverlayDrawerStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/OverlayDrawer/useOverlayDrawerStyles.styles.raw.css.cjs +37 -0
- package/lib-commonjs/components/OverlayDrawer/useOverlayDrawerStyles.styles.raw.css.cjs.map +1 -0
- package/lib-commonjs/shared/DrawerBase.module.css +52 -0
- package/lib-commonjs/shared/useDrawerBaseStyles.styles.css.cjs +56 -0
- package/lib-commonjs/shared/useDrawerBaseStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/shared/useDrawerBaseStyles.styles.raw.css.cjs +56 -0
- package/lib-commonjs/shared/useDrawerBaseStyles.styles.raw.css.cjs.map +1 -0
- package/package.json +15 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-drawer
|
|
2
2
|
|
|
3
|
-
<!-- This log was last generated on
|
|
3
|
+
<!-- This log was last generated on Fri, 13 Nov 2026 20:37:13 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## [9.75.
|
|
7
|
+
## [9.75.2-experimental.css-modules.20261113-ba13c87438.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.75.2-experimental.css-modules.20261113-ba13c87438.0)
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Fri, 13 Nov 2026 20:37:13 GMT
|
|
10
10
|
|
|
11
11
|
### Changes
|
|
12
12
|
|
|
13
|
-
- Release 9.75.
|
|
14
|
-
- Bump @fluentui/react-dialog to v9.75.
|
|
15
|
-
- Bump @fluentui/react-jsx-runtime to v9.75.
|
|
16
|
-
- Bump @fluentui/react-motion to v9.75.
|
|
17
|
-
- Bump @fluentui/react-motion-components-preview to v9.75.
|
|
18
|
-
- Bump @fluentui/react-portal to v9.75.
|
|
19
|
-
- Bump @fluentui/react-shared-contexts to v9.75.
|
|
20
|
-
- Bump @fluentui/react-tabster to v9.75.
|
|
21
|
-
- Bump @fluentui/react-theme to v9.75.
|
|
22
|
-
- Bump @fluentui/react-utilities to v9.75.
|
|
13
|
+
- Release 9.75.2-experimental.css-modules.20261113-ba13c87438 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by 257645319+office-ogx-auth-helper[bot]@users.noreply.github.com)
|
|
14
|
+
- Bump @fluentui/react-dialog to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
15
|
+
- Bump @fluentui/react-jsx-runtime to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
16
|
+
- Bump @fluentui/react-motion to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
17
|
+
- Bump @fluentui/react-motion-components-preview to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
18
|
+
- Bump @fluentui/react-portal to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
19
|
+
- Bump @fluentui/react-shared-contexts to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
20
|
+
- Bump @fluentui/react-tabster to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
21
|
+
- Bump @fluentui/react-theme to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
22
|
+
- Bump @fluentui/react-utilities to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
23
23
|
|
|
24
24
|
## [9.13.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.13.5)
|
|
25
25
|
|
package/README.md
CHANGED
|
@@ -60,3 +60,15 @@ See the [Spec.md](./docs/Spec.md) file for background information on the design/
|
|
|
60
60
|
## API
|
|
61
61
|
|
|
62
62
|
For information about the components, please refer to the [API documentation](https://react.fluentui.dev/?path=/docs/components-drawer--default).
|
|
63
|
+
|
|
64
|
+
## Opt-in CSS Modules styles
|
|
65
|
+
|
|
66
|
+
Drawer, DrawerBody, DrawerFooter, DrawerHeader, DrawerHeaderNavigation, DrawerHeaderTitle, InlineDrawer, OverlayDrawer, and OverlayDrawerSurface have alternatives, together with the shared Drawer base helpers. DrawerHeaderTitle continues to call the public DialogTitle style hook; select its CSS Modules alternative through the same bundler resolver so the composed hook is replaced wholesale.
|
|
67
|
+
|
|
68
|
+
The default components continue to use Griffel. An opt-in bundler resolver can replace
|
|
69
|
+
`use<Component>Styles.styles.js` with `use<Component>Styles.styles.css.js`
|
|
70
|
+
(and the corresponding `.ts` source modules). Keep the emitted CSS assets and process
|
|
71
|
+
their CSS Modules imports; rules are unlayered, like Griffel's. Apply the same selection
|
|
72
|
+
to client and server bundles. Within-package composed alternatives import their CSS
|
|
73
|
+
base hook explicitly. These alternatives do not make composed external components
|
|
74
|
+
Griffel-free. Browser, forced-colors, SSR, and full VRT parity require separate validation.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Drawer/useDrawerStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { DrawerState, DrawerSlots } from './Drawer.types';\nexport const drawerClassNames: SlotClassNames<Omit<DrawerSlots, 'surfaceMotion'>> = {\n root: 'fui-Drawer',\n};\n\nexport const useDrawerStyles_unstable = (state: DrawerState): DrawerState => {\n state.root.className = clsx(drawerClassNames.root, state.root.className);\n return state;\n};\n"],"names":["clsx","drawerClassNames","root","useDrawerStyles_unstable","state","className"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAO,MAAMC,mBAAuE;IAClFC,MAAM;AACR,EAAE;AAEF,OAAO,MAAMC,2BAA2B,CAACC;IACvCA,MAAMF,IAAI,CAACG,SAAS,GAAGL,KAAKC,iBAAiBC,IAAI,EAAEE,MAAMF,IAAI,CAACG,SAAS;IACvE,OAAOD;AACT,EAAE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Drawer/useDrawerStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { DrawerState, DrawerSlots } from './Drawer.types';\nexport const drawerClassNames: SlotClassNames<Omit<DrawerSlots, 'surfaceMotion'>> = {\n root: 'fui-Drawer',\n};\n\nexport const useDrawerStyles_unstable = (state: DrawerState): DrawerState => {\n state.root.className = clsx(drawerClassNames.root, state.root.className);\n return state;\n};\n"],"names":["clsx","drawerClassNames","root","useDrawerStyles_unstable","state","className"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAO,MAAMC,mBAAuE;IAClFC,MAAM;AACR,EAAE;AAEF,OAAO,MAAMC,2BAA2B,CAACC;IACvCA,MAAMF,IAAI,CAACG,SAAS,GAAGL,KAAKC,iBAAiBC,IAAI,EAAEE,MAAMF,IAAI,CAACG,SAAS;IACvE,OAAOD;AACT,EAAE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* @griffel-buckets reset: .root */
|
|
2
|
+
.root {
|
|
3
|
+
padding: 0 var(--spacingHorizontalXXL);
|
|
4
|
+
flex: 1;
|
|
5
|
+
align-self: stretch;
|
|
6
|
+
position: relative;
|
|
7
|
+
z-index: 1;
|
|
8
|
+
overflow: auto;
|
|
9
|
+
&:last-child {
|
|
10
|
+
padding-bottom: calc(var(--spacingHorizontalXXL) + var(--strokeWidthThin));
|
|
11
|
+
}
|
|
12
|
+
&:first-child {
|
|
13
|
+
padding-top: calc(var(--spacingHorizontalXXL) + var(--strokeWidthThin));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -3,19 +3,31 @@ import * as React from "react";
|
|
|
3
3
|
import { mergeCallbacks, slot, useAnimationFrame, useMergedRefs, useIsomorphicLayoutEffect, getIntrinsicElementProps } from "@fluentui/react-utilities";
|
|
4
4
|
import { useDrawerContext_unstable } from "../../contexts/drawerContext.js";
|
|
5
5
|
import { useFluent_unstable as useFluent } from "@fluentui/react-shared-contexts";
|
|
6
|
+
/**
|
|
7
|
+
* `clientHeight` and `scrollHeight` are rounded to integers while `scrollTop` is fractional, so
|
|
8
|
+
* scroll positions have to be compared with a tolerance instead of for exact equality. Without it
|
|
9
|
+
* a fully scrolled body reports `middle` whenever the browser zoom is not a whole number.
|
|
10
|
+
*
|
|
11
|
+
* A non-scrollable element can report up to 1px of overflow that it cannot actually scroll, and
|
|
12
|
+
* both values are integers, so a single pixel is enough here.
|
|
13
|
+
*/ const OVERFLOW_TOLERANCE = 1;
|
|
14
|
+
/**
|
|
15
|
+
* A fully scrolled element can sit short of its own maximum scroll offset because `scrollTop` is
|
|
16
|
+
* fractional while the values it is compared against are rounded.
|
|
17
|
+
*/ const SCROLL_BOTTOM_TOLERANCE = 2;
|
|
6
18
|
/**
|
|
7
19
|
* Get the current scroll state of the DrawerBody.
|
|
8
20
|
*
|
|
9
21
|
* @internal
|
|
10
22
|
* @param element - HTMLElement to check scroll state of
|
|
11
23
|
*/ const getScrollState = ({ scrollTop, scrollHeight, clientHeight })=>{
|
|
12
|
-
if (scrollHeight <=
|
|
24
|
+
if (scrollHeight - clientHeight <= OVERFLOW_TOLERANCE) {
|
|
13
25
|
return 'none';
|
|
14
26
|
}
|
|
15
27
|
if (scrollTop === 0) {
|
|
16
28
|
return 'top';
|
|
17
29
|
}
|
|
18
|
-
if (
|
|
30
|
+
if (scrollHeight - clientHeight - scrollTop <= SCROLL_BOTTOM_TOLERANCE) {
|
|
19
31
|
return 'bottom';
|
|
20
32
|
}
|
|
21
33
|
return 'middle';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/DrawerBody/useDrawerBody.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport {\n mergeCallbacks,\n slot,\n useAnimationFrame,\n useMergedRefs,\n useIsomorphicLayoutEffect,\n getIntrinsicElementProps,\n} from '@fluentui/react-utilities';\n\nimport { useDrawerContext_unstable } from '../../contexts/drawerContext';\nimport type { DrawerScrollState } from '../../shared/DrawerBase.types';\n\nimport type { DrawerBodyProps, DrawerBodyState } from './DrawerBody.types';\nimport { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';\n\n/**\n * Get the current scroll state of the DrawerBody.\n *\n * @internal\n * @param element - HTMLElement to check scroll state of\n */\nconst getScrollState = ({ scrollTop, scrollHeight, clientHeight }: HTMLElement): DrawerScrollState => {\n if (scrollHeight <=
|
|
1
|
+
{"version":3,"sources":["../../../src/components/DrawerBody/useDrawerBody.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport {\n mergeCallbacks,\n slot,\n useAnimationFrame,\n useMergedRefs,\n useIsomorphicLayoutEffect,\n getIntrinsicElementProps,\n} from '@fluentui/react-utilities';\n\nimport { useDrawerContext_unstable } from '../../contexts/drawerContext';\nimport type { DrawerScrollState } from '../../shared/DrawerBase.types';\n\nimport type { DrawerBodyProps, DrawerBodyState } from './DrawerBody.types';\nimport { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';\n\n/**\n * `clientHeight` and `scrollHeight` are rounded to integers while `scrollTop` is fractional, so\n * scroll positions have to be compared with a tolerance instead of for exact equality. Without it\n * a fully scrolled body reports `middle` whenever the browser zoom is not a whole number.\n *\n * A non-scrollable element can report up to 1px of overflow that it cannot actually scroll, and\n * both values are integers, so a single pixel is enough here.\n */\nconst OVERFLOW_TOLERANCE = 1;\n\n/**\n * A fully scrolled element can sit short of its own maximum scroll offset because `scrollTop` is\n * fractional while the values it is compared against are rounded.\n */\nconst SCROLL_BOTTOM_TOLERANCE = 2;\n\n/**\n * Get the current scroll state of the DrawerBody.\n *\n * @internal\n * @param element - HTMLElement to check scroll state of\n */\nconst getScrollState = ({ scrollTop, scrollHeight, clientHeight }: HTMLElement): DrawerScrollState => {\n if (scrollHeight - clientHeight <= OVERFLOW_TOLERANCE) {\n return 'none';\n }\n\n if (scrollTop === 0) {\n return 'top';\n }\n\n if (scrollHeight - clientHeight - scrollTop <= SCROLL_BOTTOM_TOLERANCE) {\n return 'bottom';\n }\n\n return 'middle';\n};\n\n/**\n * Create the state required to render DrawerBody.\n *\n * The returned state can be modified with hooks such as useDrawerBodyStyles_unstable,\n * before being passed to renderDrawerBody_unstable.\n *\n * @param props - props from this instance of DrawerBody\n * @param ref - reference to root HTMLElement of DrawerBody\n */\nexport const useDrawerBody_unstable = (props: DrawerBodyProps, ref: React.Ref<HTMLElement>): DrawerBodyState => {\n const { targetDocument } = useFluent();\n const win = targetDocument?.defaultView;\n\n const { setScrollState } = useDrawerContext_unstable();\n\n const scrollRef = React.useRef<HTMLDivElement | null>(null);\n const mergedRef = useMergedRefs(ref, scrollRef);\n\n const [setScrollAnimationFrame, cancelScrollAnimationFrame] = useAnimationFrame();\n const [setResizeAnimationFrame, cancelResizeAnimationFrame] = useAnimationFrame();\n\n const updateScrollState = React.useCallback(() => {\n if (!scrollRef.current) {\n return;\n }\n\n setScrollState(getScrollState(scrollRef.current));\n }, [setScrollState]);\n\n const onScroll = React.useCallback(() => {\n cancelScrollAnimationFrame();\n setScrollAnimationFrame(updateScrollState);\n }, [cancelScrollAnimationFrame, setScrollAnimationFrame, updateScrollState]);\n\n // Update scroll state on children change\n useIsomorphicLayoutEffect(updateScrollState, [props.children, updateScrollState]);\n\n // Update scroll state on mount and when resize occurs\n useIsomorphicLayoutEffect(() => {\n if (!scrollRef.current || !win?.ResizeObserver) {\n return;\n }\n\n const observer = new win.ResizeObserver(() => setResizeAnimationFrame(updateScrollState));\n\n observer.observe(scrollRef.current);\n\n return () => {\n observer.disconnect();\n cancelResizeAnimationFrame();\n };\n }, [setResizeAnimationFrame, cancelResizeAnimationFrame, updateScrollState, win]);\n\n return {\n components: {\n root: 'div',\n },\n\n root: slot.always(\n getIntrinsicElementProps<DrawerBodyProps>('div', {\n ref: mergedRef,\n ...props,\n // eslint-disable-next-line react-hooks/refs\n onScroll: mergeCallbacks(props.onScroll, onScroll),\n }),\n { elementType: 'div' },\n ),\n };\n};\n"],"names":["React","mergeCallbacks","slot","useAnimationFrame","useMergedRefs","useIsomorphicLayoutEffect","getIntrinsicElementProps","useDrawerContext_unstable","useFluent_unstable","useFluent","OVERFLOW_TOLERANCE","SCROLL_BOTTOM_TOLERANCE","getScrollState","scrollTop","scrollHeight","clientHeight","useDrawerBody_unstable","props","ref","targetDocument","win","defaultView","setScrollState","scrollRef","useRef","mergedRef","setScrollAnimationFrame","cancelScrollAnimationFrame","setResizeAnimationFrame","cancelResizeAnimationFrame","updateScrollState","useCallback","current","onScroll","children","ResizeObserver","observer","observe","disconnect","components","root","always","elementType"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAC/B,SACEC,cAAc,EACdC,IAAI,EACJC,iBAAiB,EACjBC,aAAa,EACbC,yBAAyB,EACzBC,wBAAwB,QACnB,4BAA4B;AAEnC,SAASC,yBAAyB,QAAQ,kCAA+B;AAIzE,SAASC,sBAAsBC,SAAS,QAAQ,kCAAkC;AAElF;;;;;;;CAOC,GACD,MAAMC,qBAAqB;AAE3B;;;CAGC,GACD,MAAMC,0BAA0B;AAEhC;;;;;CAKC,GACD,MAAMC,iBAAiB,CAAC,EAAEC,SAAS,EAAEC,YAAY,EAAEC,YAAY,EAAe;IAC5E,IAAID,eAAeC,gBAAgBL,oBAAoB;QACrD,OAAO;IACT;IAEA,IAAIG,cAAc,GAAG;QACnB,OAAO;IACT;IAEA,IAAIC,eAAeC,eAAeF,aAAaF,yBAAyB;QACtE,OAAO;IACT;IAEA,OAAO;AACT;AAEA;;;;;;;;CAQC,GACD,OAAO,MAAMK,yBAAyB,CAACC,OAAwBC;IAC7D,MAAM,EAAEC,cAAc,EAAE,GAAGV;IAC3B,MAAMW,MAAMD,2BAAAA,qCAAAA,eAAgBE,WAAW;IAEvC,MAAM,EAAEC,cAAc,EAAE,GAAGf;IAE3B,MAAMgB,YAAYvB,MAAMwB,MAAM,CAAwB;IACtD,MAAMC,YAAYrB,cAAcc,KAAKK;IAErC,MAAM,CAACG,yBAAyBC,2BAA2B,GAAGxB;IAC9D,MAAM,CAACyB,yBAAyBC,2BAA2B,GAAG1B;IAE9D,MAAM2B,oBAAoB9B,MAAM+B,WAAW,CAAC;QAC1C,IAAI,CAACR,UAAUS,OAAO,EAAE;YACtB;QACF;QAEAV,eAAeV,eAAeW,UAAUS,OAAO;IACjD,GAAG;QAACV;KAAe;IAEnB,MAAMW,WAAWjC,MAAM+B,WAAW,CAAC;QACjCJ;QACAD,wBAAwBI;IAC1B,GAAG;QAACH;QAA4BD;QAAyBI;KAAkB;IAE3E,yCAAyC;IACzCzB,0BAA0ByB,mBAAmB;QAACb,MAAMiB,QAAQ;QAAEJ;KAAkB;IAEhF,sDAAsD;IACtDzB,0BAA0B;QACxB,IAAI,CAACkB,UAAUS,OAAO,IAAI,EAACZ,gBAAAA,0BAAAA,IAAKe,cAAc,GAAE;YAC9C;QACF;QAEA,MAAMC,WAAW,IAAIhB,IAAIe,cAAc,CAAC,IAAMP,wBAAwBE;QAEtEM,SAASC,OAAO,CAACd,UAAUS,OAAO;QAElC,OAAO;YACLI,SAASE,UAAU;YACnBT;QACF;IACF,GAAG;QAACD;QAAyBC;QAA4BC;QAAmBV;KAAI;IAEhF,OAAO;QACLmB,YAAY;YACVC,MAAM;QACR;QAEAA,MAAMtC,KAAKuC,MAAM,CACfnC,yBAA0C,OAAO;YAC/CY,KAAKO;YACL,GAAGR,KAAK;YACR,4CAA4C;YAC5CgB,UAAUhC,eAAegB,MAAMgB,QAAQ,EAAEA;QAC3C,IACA;YAAES,aAAa;QAAM;IAEzB;AACF,EAAE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import styles from "./DrawerBody.module.css";
|
|
3
|
+
export const drawerBodyClassNames = {
|
|
4
|
+
root: 'fui-DrawerBody'
|
|
5
|
+
};
|
|
6
|
+
export const useDrawerBodyStyles_unstable = (state)=>{
|
|
7
|
+
state.root.className = clsx(drawerBodyClassNames.root, styles.root, state.root.className);
|
|
8
|
+
return state;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/DrawerBody/useDrawerBodyStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { DrawerBodyState, DrawerBodySlots } from './DrawerBody.types';\nimport styles from './DrawerBody.module.css';\n\nexport const drawerBodyClassNames: SlotClassNames<DrawerBodySlots> = {\n root: 'fui-DrawerBody',\n};\n\nexport const useDrawerBodyStyles_unstable = (state: DrawerBodyState): DrawerBodyState => {\n state.root.className = clsx(drawerBodyClassNames.root, styles.root, state.root.className);\n return state;\n};\n"],"names":["clsx","styles","drawerBodyClassNames","root","useDrawerBodyStyles_unstable","state","className"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,0BAA0B;AAE7C,OAAO,MAAMC,uBAAwD;IACnEC,MAAM;AACR,EAAE;AAEF,OAAO,MAAMC,+BAA+B,CAACC;IAC3CA,MAAMF,IAAI,CAACG,SAAS,GAAGN,KAAKE,qBAAqBC,IAAI,EAAEF,OAAOE,IAAI,EAAEE,MAAMF,IAAI,CAACG,SAAS;IACxF,OAAOD;AACT,EAAE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import styles from "./DrawerBody.module.css";
|
|
3
|
+
export const drawerBodyClassNames = {
|
|
4
|
+
root: 'fui-DrawerBody'
|
|
5
|
+
};
|
|
6
|
+
export const useDrawerBodyStyles_unstable = (state)=>{
|
|
7
|
+
state.root.className = clsx(drawerBodyClassNames.root, styles.root, state.root.className);
|
|
8
|
+
return state;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/DrawerBody/useDrawerBodyStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { DrawerBodyState, DrawerBodySlots } from './DrawerBody.types';\nimport styles from './DrawerBody.module.css';\n\nexport const drawerBodyClassNames: SlotClassNames<DrawerBodySlots> = {\n root: 'fui-DrawerBody',\n};\n\nexport const useDrawerBodyStyles_unstable = (state: DrawerBodyState): DrawerBodyState => {\n state.root.className = clsx(drawerBodyClassNames.root, styles.root, state.root.className);\n return state;\n};\n"],"names":["clsx","styles","drawerBodyClassNames","root","useDrawerBodyStyles_unstable","state","className"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,0BAA0B;AAE7C,OAAO,MAAMC,uBAAwD;IACnEC,MAAM;AACR,EAAE;AAEF,OAAO,MAAMC,+BAA+B,CAACC;IAC3CA,MAAMF,IAAI,CAACG,SAAS,GAAGN,KAAKE,qBAAqBC,IAAI,EAAEF,OAAOE,IAAI,EAAEE,MAAMF,IAAI,CAACG,SAAS;IACxF,OAAOD;AACT,EAAE"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* @griffel-buckets reset: .root */
|
|
2
|
+
.root {
|
|
3
|
+
width: 100%;
|
|
4
|
+
max-width: 100%;
|
|
5
|
+
padding: var(--spacingVerticalL) var(--spacingHorizontalXXL) var(--spacingVerticalXXL);
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: flex-start;
|
|
8
|
+
align-items: center;
|
|
9
|
+
column-gap: var(--spacingHorizontalS);
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
position: relative;
|
|
12
|
+
z-index: 2;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.root:where(:not(.none)) {
|
|
16
|
+
&::before {
|
|
17
|
+
height: var(--strokeWidthThin);
|
|
18
|
+
position: absolute;
|
|
19
|
+
inset-inline-end: 0;
|
|
20
|
+
inset-inline-start: 0;
|
|
21
|
+
opacity: 0;
|
|
22
|
+
background-color: var(--colorNeutralStroke1);
|
|
23
|
+
transition-duration: var(--durationNormal);
|
|
24
|
+
transition-property: opacity;
|
|
25
|
+
transition-timing-function: var(--curveEasyEase);
|
|
26
|
+
content: '';
|
|
27
|
+
top: 0;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.root:where(.middle, .top) {
|
|
32
|
+
&::before {
|
|
33
|
+
opacity: 1;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import styles from "./DrawerFooter.module.css";
|
|
3
|
+
export const drawerFooterClassNames = {
|
|
4
|
+
root: 'fui-DrawerFooter'
|
|
5
|
+
};
|
|
6
|
+
export const useDrawerFooterStyles_unstable = (state)=>{
|
|
7
|
+
state.root.className = clsx(drawerFooterClassNames.root, styles.root, styles[state.scrollState], state.root.className);
|
|
8
|
+
return state;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/DrawerFooter/useDrawerFooterStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { DrawerFooterState, DrawerFooterSlots } from './DrawerFooter.types';\nimport styles from './DrawerFooter.module.css';\n\nexport const drawerFooterClassNames: SlotClassNames<DrawerFooterSlots> = {\n root: 'fui-DrawerFooter',\n};\n\nexport const useDrawerFooterStyles_unstable = (state: DrawerFooterState): DrawerFooterState => {\n state.root.className = clsx(\n drawerFooterClassNames.root,\n styles.root,\n styles[state.scrollState],\n state.root.className,\n );\n return state;\n};\n"],"names":["clsx","styles","drawerFooterClassNames","root","useDrawerFooterStyles_unstable","state","className","scrollState"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,4BAA4B;AAE/C,OAAO,MAAMC,yBAA4D;IACvEC,MAAM;AACR,EAAE;AAEF,OAAO,MAAMC,iCAAiC,CAACC;IAC7CA,MAAMF,IAAI,CAACG,SAAS,GAAGN,KACrBE,uBAAuBC,IAAI,EAC3BF,OAAOE,IAAI,EACXF,MAAM,CAACI,MAAME,WAAW,CAAC,EACzBF,MAAMF,IAAI,CAACG,SAAS;IAEtB,OAAOD;AACT,EAAE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import styles from "./DrawerFooter.module.css";
|
|
3
|
+
export const drawerFooterClassNames = {
|
|
4
|
+
root: 'fui-DrawerFooter'
|
|
5
|
+
};
|
|
6
|
+
export const useDrawerFooterStyles_unstable = (state)=>{
|
|
7
|
+
state.root.className = clsx(drawerFooterClassNames.root, styles.root, styles[state.scrollState], state.root.className);
|
|
8
|
+
return state;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/DrawerFooter/useDrawerFooterStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { DrawerFooterState, DrawerFooterSlots } from './DrawerFooter.types';\nimport styles from './DrawerFooter.module.css';\n\nexport const drawerFooterClassNames: SlotClassNames<DrawerFooterSlots> = {\n root: 'fui-DrawerFooter',\n};\n\nexport const useDrawerFooterStyles_unstable = (state: DrawerFooterState): DrawerFooterState => {\n state.root.className = clsx(\n drawerFooterClassNames.root,\n styles.root,\n styles[state.scrollState],\n state.root.className,\n );\n return state;\n};\n"],"names":["clsx","styles","drawerFooterClassNames","root","useDrawerFooterStyles_unstable","state","className","scrollState"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,4BAA4B;AAE/C,OAAO,MAAMC,yBAA4D;IACvEC,MAAM;AACR,EAAE;AAEF,OAAO,MAAMC,iCAAiC,CAACC;IAC7CA,MAAMF,IAAI,CAACG,SAAS,GAAGN,KACrBE,uBAAuBC,IAAI,EAC3BF,OAAOE,IAAI,EACXF,MAAM,CAACI,MAAME,WAAW,CAAC,EACzBF,MAAMF,IAAI,CAACG,SAAS;IAEtB,OAAOD;AACT,EAAE"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* @griffel-buckets reset: .root */
|
|
2
|
+
.root {
|
|
3
|
+
width: 100%;
|
|
4
|
+
max-width: 100%;
|
|
5
|
+
padding: var(--spacingVerticalXXL) var(--spacingHorizontalXXL) var(--spacingVerticalS);
|
|
6
|
+
gap: var(--spacingHorizontalS);
|
|
7
|
+
align-self: stretch;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
position: relative;
|
|
12
|
+
z-index: 2;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.root:where(:not(.none)) {
|
|
16
|
+
&::after {
|
|
17
|
+
height: var(--strokeWidthThin);
|
|
18
|
+
position: absolute;
|
|
19
|
+
inset-inline-end: 0;
|
|
20
|
+
inset-inline-start: 0;
|
|
21
|
+
opacity: 0;
|
|
22
|
+
background-color: var(--colorNeutralStroke1);
|
|
23
|
+
transition-duration: var(--durationNormal);
|
|
24
|
+
transition-property: opacity;
|
|
25
|
+
transition-timing-function: var(--curveEasyEase);
|
|
26
|
+
content: '';
|
|
27
|
+
bottom: 0;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.root:where(.middle, .bottom) {
|
|
32
|
+
&::after {
|
|
33
|
+
opacity: 1;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import styles from "./DrawerHeader.module.css";
|
|
3
|
+
export const drawerHeaderClassNames = {
|
|
4
|
+
root: 'fui-DrawerHeader'
|
|
5
|
+
};
|
|
6
|
+
export const useDrawerHeaderStyles_unstable = (state)=>{
|
|
7
|
+
state.root.className = clsx(drawerHeaderClassNames.root, styles.root, styles[state.scrollState], state.root.className);
|
|
8
|
+
return state;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/DrawerHeader/useDrawerHeaderStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { DrawerHeaderState, DrawerHeaderSlots } from './DrawerHeader.types';\nimport styles from './DrawerHeader.module.css';\n\nexport const drawerHeaderClassNames: SlotClassNames<DrawerHeaderSlots> = {\n root: 'fui-DrawerHeader',\n};\n\nexport const useDrawerHeaderStyles_unstable = (state: DrawerHeaderState): DrawerHeaderState => {\n state.root.className = clsx(\n drawerHeaderClassNames.root,\n styles.root,\n styles[state.scrollState],\n state.root.className,\n );\n return state;\n};\n"],"names":["clsx","styles","drawerHeaderClassNames","root","useDrawerHeaderStyles_unstable","state","className","scrollState"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,4BAA4B;AAE/C,OAAO,MAAMC,yBAA4D;IACvEC,MAAM;AACR,EAAE;AAEF,OAAO,MAAMC,iCAAiC,CAACC;IAC7CA,MAAMF,IAAI,CAACG,SAAS,GAAGN,KACrBE,uBAAuBC,IAAI,EAC3BF,OAAOE,IAAI,EACXF,MAAM,CAACI,MAAME,WAAW,CAAC,EACzBF,MAAMF,IAAI,CAACG,SAAS;IAEtB,OAAOD;AACT,EAAE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import styles from "./DrawerHeader.module.css";
|
|
3
|
+
export const drawerHeaderClassNames = {
|
|
4
|
+
root: 'fui-DrawerHeader'
|
|
5
|
+
};
|
|
6
|
+
export const useDrawerHeaderStyles_unstable = (state)=>{
|
|
7
|
+
state.root.className = clsx(drawerHeaderClassNames.root, styles.root, styles[state.scrollState], state.root.className);
|
|
8
|
+
return state;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/DrawerHeader/useDrawerHeaderStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { DrawerHeaderState, DrawerHeaderSlots } from './DrawerHeader.types';\nimport styles from './DrawerHeader.module.css';\n\nexport const drawerHeaderClassNames: SlotClassNames<DrawerHeaderSlots> = {\n root: 'fui-DrawerHeader',\n};\n\nexport const useDrawerHeaderStyles_unstable = (state: DrawerHeaderState): DrawerHeaderState => {\n state.root.className = clsx(\n drawerHeaderClassNames.root,\n styles.root,\n styles[state.scrollState],\n state.root.className,\n );\n return state;\n};\n"],"names":["clsx","styles","drawerHeaderClassNames","root","useDrawerHeaderStyles_unstable","state","className","scrollState"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,4BAA4B;AAE/C,OAAO,MAAMC,yBAA4D;IACvEC,MAAM;AACR,EAAE;AAEF,OAAO,MAAMC,iCAAiC,CAACC;IAC7CA,MAAMF,IAAI,CAACG,SAAS,GAAGN,KACrBE,uBAAuBC,IAAI,EAC3BF,OAAOE,IAAI,EACXF,MAAM,CAACI,MAAME,WAAW,CAAC,EACzBF,MAAMF,IAAI,CAACG,SAAS;IAEtB,OAAOD;AACT,EAAE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import styles from "./DrawerHeaderNavigation.module.css";
|
|
3
|
+
export const drawerHeaderNavigationClassNames = {
|
|
4
|
+
root: 'fui-DrawerHeaderNavigation'
|
|
5
|
+
};
|
|
6
|
+
export const useDrawerHeaderNavigationStyles_unstable = (state)=>{
|
|
7
|
+
state.root.className = clsx(drawerHeaderNavigationClassNames.root, styles.root, state.root.className);
|
|
8
|
+
return state;
|
|
9
|
+
};
|
package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.css.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { DrawerHeaderNavigationState, DrawerHeaderNavigationSlots } from './DrawerHeaderNavigation.types';\nimport styles from './DrawerHeaderNavigation.module.css';\n\nexport const drawerHeaderNavigationClassNames: SlotClassNames<DrawerHeaderNavigationSlots> = {\n root: 'fui-DrawerHeaderNavigation',\n};\n\nexport const useDrawerHeaderNavigationStyles_unstable = (\n state: DrawerHeaderNavigationState,\n): DrawerHeaderNavigationState => {\n state.root.className = clsx(drawerHeaderNavigationClassNames.root, styles.root, state.root.className);\n return state;\n};\n"],"names":["clsx","styles","drawerHeaderNavigationClassNames","root","useDrawerHeaderNavigationStyles_unstable","state","className"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,sCAAsC;AAEzD,OAAO,MAAMC,mCAAgF;IAC3FC,MAAM;AACR,EAAE;AAEF,OAAO,MAAMC,2CAA2C,CACtDC;IAEAA,MAAMF,IAAI,CAACG,SAAS,GAAGN,KAAKE,iCAAiCC,IAAI,EAAEF,OAAOE,IAAI,EAAEE,MAAMF,IAAI,CAACG,SAAS;IACpG,OAAOD;AACT,EAAE"}
|
package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.raw.css.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import styles from "./DrawerHeaderNavigation.module.css";
|
|
3
|
+
export const drawerHeaderNavigationClassNames = {
|
|
4
|
+
root: 'fui-DrawerHeaderNavigation'
|
|
5
|
+
};
|
|
6
|
+
export const useDrawerHeaderNavigationStyles_unstable = (state)=>{
|
|
7
|
+
state.root.className = clsx(drawerHeaderNavigationClassNames.root, styles.root, state.root.className);
|
|
8
|
+
return state;
|
|
9
|
+
};
|
package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.raw.css.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { DrawerHeaderNavigationState, DrawerHeaderNavigationSlots } from './DrawerHeaderNavigation.types';\nimport styles from './DrawerHeaderNavigation.module.css';\n\nexport const drawerHeaderNavigationClassNames: SlotClassNames<DrawerHeaderNavigationSlots> = {\n root: 'fui-DrawerHeaderNavigation',\n};\n\nexport const useDrawerHeaderNavigationStyles_unstable = (\n state: DrawerHeaderNavigationState,\n): DrawerHeaderNavigationState => {\n state.root.className = clsx(drawerHeaderNavigationClassNames.root, styles.root, state.root.className);\n return state;\n};\n"],"names":["clsx","styles","drawerHeaderNavigationClassNames","root","useDrawerHeaderNavigationStyles_unstable","state","className"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,sCAAsC;AAEzD,OAAO,MAAMC,mCAAgF;IAC3FC,MAAM;AACR,EAAE;AAEF,OAAO,MAAMC,2CAA2C,CACtDC;IAEAA,MAAMF,IAAI,CAACG,SAAS,GAAGN,KAAKE,iCAAiCC,IAAI,EAAEF,OAAOE,IAAI,EAAEE,MAAMF,IAAI,CAACG,SAAS;IACpG,OAAOD;AACT,EAAE"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { clsx } from "clsx";
|
|
3
|
+
import { useDialogTitleStyles_unstable } from "@fluentui/react-dialog";
|
|
4
|
+
import styles from "./DrawerHeaderTitle.module.css";
|
|
5
|
+
export const drawerHeaderTitleClassNames = {
|
|
6
|
+
root: 'fui-DrawerHeaderTitle',
|
|
7
|
+
heading: 'fui-DrawerHeaderTitle__heading',
|
|
8
|
+
action: 'fui-DrawerHeaderTitle__action'
|
|
9
|
+
};
|
|
10
|
+
export const useDrawerHeaderTitleStyles_unstable = (state)=>{
|
|
11
|
+
const { heading: root = {}, action, // The slot element type is not available from its definition.
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
13
|
+
components } = state;
|
|
14
|
+
useDialogTitleStyles_unstable({
|
|
15
|
+
components: {
|
|
16
|
+
root: components.heading,
|
|
17
|
+
action: components.action
|
|
18
|
+
},
|
|
19
|
+
root,
|
|
20
|
+
action
|
|
21
|
+
});
|
|
22
|
+
// eslint-disable-next-line react-hooks/immutability
|
|
23
|
+
state.root.className = clsx(drawerHeaderTitleClassNames.root, styles.root, state.root.className);
|
|
24
|
+
if (state.heading) {
|
|
25
|
+
// eslint-disable-next-line react-hooks/immutability
|
|
26
|
+
state.heading.className = clsx(drawerHeaderTitleClassNames.heading, state.heading.className);
|
|
27
|
+
}
|
|
28
|
+
if (state.action) {
|
|
29
|
+
// eslint-disable-next-line react-hooks/immutability
|
|
30
|
+
state.action.className = clsx(drawerHeaderTitleClassNames.action, styles.action, state.action.className);
|
|
31
|
+
}
|
|
32
|
+
return state;
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.css.ts"],"sourcesContent":["'use client';\n\nimport { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useDialogTitleStyles_unstable } from '@fluentui/react-dialog';\nimport type { DrawerHeaderTitleSlots, DrawerHeaderTitleState } from './DrawerHeaderTitle.types';\nimport styles from './DrawerHeaderTitle.module.css';\n\nexport const drawerHeaderTitleClassNames: SlotClassNames<DrawerHeaderTitleSlots> = {\n root: 'fui-DrawerHeaderTitle',\n heading: 'fui-DrawerHeaderTitle__heading',\n action: 'fui-DrawerHeaderTitle__action',\n};\n\nexport const useDrawerHeaderTitleStyles_unstable = (state: DrawerHeaderTitleState): DrawerHeaderTitleState => {\n const {\n heading: root = {},\n action,\n // The slot element type is not available from its definition.\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n components,\n } = state;\n\n useDialogTitleStyles_unstable({\n components: {\n root: components.heading,\n action: components.action,\n },\n root,\n action,\n });\n\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = clsx(drawerHeaderTitleClassNames.root, styles.root, state.root.className);\n\n if (state.heading) {\n // eslint-disable-next-line react-hooks/immutability\n state.heading.className = clsx(drawerHeaderTitleClassNames.heading, state.heading.className);\n }\n\n if (state.action) {\n // eslint-disable-next-line react-hooks/immutability\n state.action.className = clsx(drawerHeaderTitleClassNames.action, styles.action, state.action.className);\n }\n\n return state;\n};\n"],"names":["clsx","useDialogTitleStyles_unstable","styles","drawerHeaderTitleClassNames","root","heading","action","useDrawerHeaderTitleStyles_unstable","state","components","className"],"mappings":"AAAA;AAEA,SAASA,IAAI,QAAQ,OAAO;AAE5B,SAASC,6BAA6B,QAAQ,yBAAyB;AAEvE,OAAOC,YAAY,iCAAiC;AAEpD,OAAO,MAAMC,8BAAsE;IACjFC,MAAM;IACNC,SAAS;IACTC,QAAQ;AACV,EAAE;AAEF,OAAO,MAAMC,sCAAsC,CAACC;IAClD,MAAM,EACJH,SAASD,OAAO,CAAC,CAAC,EAClBE,MAAM,EACN,8DAA8D;IAC9D,4DAA4D;IAC5DG,UAAU,EACX,GAAGD;IAEJP,8BAA8B;QAC5BQ,YAAY;YACVL,MAAMK,WAAWJ,OAAO;YACxBC,QAAQG,WAAWH,MAAM;QAC3B;QACAF;QACAE;IACF;IAEA,oDAAoD;IACpDE,MAAMJ,IAAI,CAACM,SAAS,GAAGV,KAAKG,4BAA4BC,IAAI,EAAEF,OAAOE,IAAI,EAAEI,MAAMJ,IAAI,CAACM,SAAS;IAE/F,IAAIF,MAAMH,OAAO,EAAE;QACjB,oDAAoD;QACpDG,MAAMH,OAAO,CAACK,SAAS,GAAGV,KAAKG,4BAA4BE,OAAO,EAAEG,MAAMH,OAAO,CAACK,SAAS;IAC7F;IAEA,IAAIF,MAAMF,MAAM,EAAE;QAChB,oDAAoD;QACpDE,MAAMF,MAAM,CAACI,SAAS,GAAGV,KAAKG,4BAA4BG,MAAM,EAAEJ,OAAOI,MAAM,EAAEE,MAAMF,MAAM,CAACI,SAAS;IACzG;IAEA,OAAOF;AACT,EAAE"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { clsx } from "clsx";
|
|
3
|
+
import { useDialogTitleStyles_unstable } from "@fluentui/react-dialog";
|
|
4
|
+
import styles from "./DrawerHeaderTitle.module.css";
|
|
5
|
+
export const drawerHeaderTitleClassNames = {
|
|
6
|
+
root: 'fui-DrawerHeaderTitle',
|
|
7
|
+
heading: 'fui-DrawerHeaderTitle__heading',
|
|
8
|
+
action: 'fui-DrawerHeaderTitle__action'
|
|
9
|
+
};
|
|
10
|
+
export const useDrawerHeaderTitleStyles_unstable = (state)=>{
|
|
11
|
+
const { heading: root = {}, action, // The slot element type is not available from its definition.
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
13
|
+
components } = state;
|
|
14
|
+
useDialogTitleStyles_unstable({
|
|
15
|
+
components: {
|
|
16
|
+
root: components.heading,
|
|
17
|
+
action: components.action
|
|
18
|
+
},
|
|
19
|
+
root,
|
|
20
|
+
action
|
|
21
|
+
});
|
|
22
|
+
// eslint-disable-next-line react-hooks/immutability
|
|
23
|
+
state.root.className = clsx(drawerHeaderTitleClassNames.root, styles.root, state.root.className);
|
|
24
|
+
if (state.heading) {
|
|
25
|
+
// eslint-disable-next-line react-hooks/immutability
|
|
26
|
+
state.heading.className = clsx(drawerHeaderTitleClassNames.heading, state.heading.className);
|
|
27
|
+
}
|
|
28
|
+
if (state.action) {
|
|
29
|
+
// eslint-disable-next-line react-hooks/immutability
|
|
30
|
+
state.action.className = clsx(drawerHeaderTitleClassNames.action, styles.action, state.action.className);
|
|
31
|
+
}
|
|
32
|
+
return state;
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.css.ts"],"sourcesContent":["'use client';\n\nimport { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useDialogTitleStyles_unstable } from '@fluentui/react-dialog';\nimport type { DrawerHeaderTitleSlots, DrawerHeaderTitleState } from './DrawerHeaderTitle.types';\nimport styles from './DrawerHeaderTitle.module.css';\n\nexport const drawerHeaderTitleClassNames: SlotClassNames<DrawerHeaderTitleSlots> = {\n root: 'fui-DrawerHeaderTitle',\n heading: 'fui-DrawerHeaderTitle__heading',\n action: 'fui-DrawerHeaderTitle__action',\n};\n\nexport const useDrawerHeaderTitleStyles_unstable = (state: DrawerHeaderTitleState): DrawerHeaderTitleState => {\n const {\n heading: root = {},\n action,\n // The slot element type is not available from its definition.\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n components,\n } = state;\n\n useDialogTitleStyles_unstable({\n components: {\n root: components.heading,\n action: components.action,\n },\n root,\n action,\n });\n\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = clsx(drawerHeaderTitleClassNames.root, styles.root, state.root.className);\n\n if (state.heading) {\n // eslint-disable-next-line react-hooks/immutability\n state.heading.className = clsx(drawerHeaderTitleClassNames.heading, state.heading.className);\n }\n\n if (state.action) {\n // eslint-disable-next-line react-hooks/immutability\n state.action.className = clsx(drawerHeaderTitleClassNames.action, styles.action, state.action.className);\n }\n\n return state;\n};\n"],"names":["clsx","useDialogTitleStyles_unstable","styles","drawerHeaderTitleClassNames","root","heading","action","useDrawerHeaderTitleStyles_unstable","state","components","className"],"mappings":"AAAA;AAEA,SAASA,IAAI,QAAQ,OAAO;AAE5B,SAASC,6BAA6B,QAAQ,yBAAyB;AAEvE,OAAOC,YAAY,iCAAiC;AAEpD,OAAO,MAAMC,8BAAsE;IACjFC,MAAM;IACNC,SAAS;IACTC,QAAQ;AACV,EAAE;AAEF,OAAO,MAAMC,sCAAsC,CAACC;IAClD,MAAM,EACJH,SAASD,OAAO,CAAC,CAAC,EAClBE,MAAM,EACN,8DAA8D;IAC9D,4DAA4D;IAC5DG,UAAU,EACX,GAAGD;IAEJP,8BAA8B;QAC5BQ,YAAY;YACVL,MAAMK,WAAWJ,OAAO;YACxBC,QAAQG,WAAWH,MAAM;QAC3B;QACAF;QACAE;IACF;IAEA,oDAAoD;IACpDE,MAAMJ,IAAI,CAACM,SAAS,GAAGV,KAAKG,4BAA4BC,IAAI,EAAEF,OAAOE,IAAI,EAAEI,MAAMJ,IAAI,CAACM,SAAS;IAE/F,IAAIF,MAAMH,OAAO,EAAE;QACjB,oDAAoD;QACpDG,MAAMH,OAAO,CAACK,SAAS,GAAGV,KAAKG,4BAA4BE,OAAO,EAAEG,MAAMH,OAAO,CAACK,SAAS;IAC7F;IAEA,IAAIF,MAAMF,MAAM,EAAE;QAChB,oDAAoD;QACpDE,MAAMF,MAAM,CAACI,SAAS,GAAGV,KAAKG,4BAA4BG,MAAM,EAAEJ,OAAOI,MAAM,EAAEE,MAAMF,MAAM,CAACI,SAAS;IACzG;IAEA,OAAOF;AACT,EAAE"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* @griffel-buckets reset: .root */
|
|
2
|
+
.root {
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.bottom {
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: var(--fui-Drawer--size);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.separator:where(.start) {
|
|
12
|
+
border-inline-end: var(--strokeWidthThin) solid var(--colorNeutralBackground3);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.separator:where(.end) {
|
|
16
|
+
border-inline-start: var(--strokeWidthThin) solid var(--colorNeutralBackground3);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.separator:where(.bottom) {
|
|
20
|
+
border-top: var(--strokeWidthThin) solid var(--colorNeutralBackground3);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.exit:where(.start, .end) {
|
|
24
|
+
width: 0;
|
|
25
|
+
border: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.exit:where(.bottom) {
|
|
29
|
+
height: 0;
|
|
30
|
+
border: none;
|
|
31
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { clsx } from "clsx";
|
|
3
|
+
import { useDrawerBaseClassNames, useDrawerDefaultClassName } from "../../shared/useDrawerBaseStyles.styles.css.js";
|
|
4
|
+
import styles from "./InlineDrawer.module.css";
|
|
5
|
+
export const inlineDrawerClassNames = {
|
|
6
|
+
root: 'fui-InlineDrawer'
|
|
7
|
+
};
|
|
8
|
+
export const useInlineDrawerStyles_unstable = (state)=>{
|
|
9
|
+
// eslint-disable-next-line react-hooks/immutability
|
|
10
|
+
state.root.className = clsx(inlineDrawerClassNames.root, useDrawerDefaultClassName(), useDrawerBaseClassNames(state), styles.root, styles[state.position], state.separator && styles.separator, state.animationDirection === 'exit' && styles.exit, state.root.className);
|
|
11
|
+
return state;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/InlineDrawer/useInlineDrawerStyles.styles.css.ts"],"sourcesContent":["'use client';\nimport { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { InlineDrawerState, InlineDrawerSlots } from './InlineDrawer.types';\nimport { useDrawerBaseClassNames, useDrawerDefaultClassName } from '../../shared/useDrawerBaseStyles.styles.css';\nimport styles from './InlineDrawer.module.css';\n\nexport const inlineDrawerClassNames: SlotClassNames<Omit<InlineDrawerSlots, 'surfaceMotion'>> = {\n root: 'fui-InlineDrawer',\n};\n\nexport const useInlineDrawerStyles_unstable = (state: InlineDrawerState): InlineDrawerState => {\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = clsx(\n inlineDrawerClassNames.root,\n useDrawerDefaultClassName(),\n useDrawerBaseClassNames(state),\n styles.root,\n styles[state.position],\n state.separator && styles.separator,\n state.animationDirection === 'exit' && styles.exit,\n state.root.className,\n );\n return state;\n};\n"],"names":["clsx","useDrawerBaseClassNames","useDrawerDefaultClassName","styles","inlineDrawerClassNames","root","useInlineDrawerStyles_unstable","state","className","position","separator","animationDirection","exit"],"mappings":"AAAA;AACA,SAASA,IAAI,QAAQ,OAAO;AAG5B,SAASC,uBAAuB,EAAEC,yBAAyB,QAAQ,iDAA8C;AACjH,OAAOC,YAAY,4BAA4B;AAE/C,OAAO,MAAMC,yBAAmF;IAC9FC,MAAM;AACR,EAAE;AAEF,OAAO,MAAMC,iCAAiC,CAACC;IAC7C,oDAAoD;IACpDA,MAAMF,IAAI,CAACG,SAAS,GAAGR,KACrBI,uBAAuBC,IAAI,EAC3BH,6BACAD,wBAAwBM,QACxBJ,OAAOE,IAAI,EACXF,MAAM,CAACI,MAAME,QAAQ,CAAC,EACtBF,MAAMG,SAAS,IAAIP,OAAOO,SAAS,EACnCH,MAAMI,kBAAkB,KAAK,UAAUR,OAAOS,IAAI,EAClDL,MAAMF,IAAI,CAACG,SAAS;IAEtB,OAAOD;AACT,EAAE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { clsx } from "clsx";
|
|
3
|
+
import { useDrawerBaseClassNames, useDrawerDefaultClassName } from "../../shared/useDrawerBaseStyles.styles.css.js";
|
|
4
|
+
import styles from "./InlineDrawer.module.css";
|
|
5
|
+
export const inlineDrawerClassNames = {
|
|
6
|
+
root: 'fui-InlineDrawer'
|
|
7
|
+
};
|
|
8
|
+
export const useInlineDrawerStyles_unstable = (state)=>{
|
|
9
|
+
// eslint-disable-next-line react-hooks/immutability
|
|
10
|
+
state.root.className = clsx(inlineDrawerClassNames.root, useDrawerDefaultClassName(), useDrawerBaseClassNames(state), styles.root, styles[state.position], state.separator && styles.separator, state.animationDirection === 'exit' && styles.exit, state.root.className);
|
|
11
|
+
return state;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/InlineDrawer/useInlineDrawerStyles.styles.css.ts"],"sourcesContent":["'use client';\nimport { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { InlineDrawerState, InlineDrawerSlots } from './InlineDrawer.types';\nimport { useDrawerBaseClassNames, useDrawerDefaultClassName } from '../../shared/useDrawerBaseStyles.styles.css';\nimport styles from './InlineDrawer.module.css';\n\nexport const inlineDrawerClassNames: SlotClassNames<Omit<InlineDrawerSlots, 'surfaceMotion'>> = {\n root: 'fui-InlineDrawer',\n};\n\nexport const useInlineDrawerStyles_unstable = (state: InlineDrawerState): InlineDrawerState => {\n // eslint-disable-next-line react-hooks/immutability\n state.root.className = clsx(\n inlineDrawerClassNames.root,\n useDrawerDefaultClassName(),\n useDrawerBaseClassNames(state),\n styles.root,\n styles[state.position],\n state.separator && styles.separator,\n state.animationDirection === 'exit' && styles.exit,\n state.root.className,\n );\n return state;\n};\n"],"names":["clsx","useDrawerBaseClassNames","useDrawerDefaultClassName","styles","inlineDrawerClassNames","root","useInlineDrawerStyles_unstable","state","className","position","separator","animationDirection","exit"],"mappings":"AAAA;AACA,SAASA,IAAI,QAAQ,OAAO;AAG5B,SAASC,uBAAuB,EAAEC,yBAAyB,QAAQ,iDAA8C;AACjH,OAAOC,YAAY,4BAA4B;AAE/C,OAAO,MAAMC,yBAAmF;IAC9FC,MAAM;AACR,EAAE;AAEF,OAAO,MAAMC,iCAAiC,CAACC;IAC7C,oDAAoD;IACpDA,MAAMF,IAAI,CAACG,SAAS,GAAGR,KACrBI,uBAAuBC,IAAI,EAC3BH,6BACAD,wBAAwBM,QACxBJ,OAAOE,IAAI,EACXF,MAAM,CAACI,MAAME,QAAQ,CAAC,EACtBF,MAAMG,SAAS,IAAIP,OAAOO,SAAS,EACnCH,MAAMI,kBAAkB,KAAK,UAAUR,OAAOS,IAAI,EAClDL,MAAMF,IAAI,CAACG,SAAS;IAEtB,OAAOD;AACT,EAAE"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* @griffel-buckets reset: .root */
|
|
2
|
+
.root {
|
|
3
|
+
&:focus {
|
|
4
|
+
outline-style: none;
|
|
5
|
+
}
|
|
6
|
+
&:focus-visible {
|
|
7
|
+
outline-style: none;
|
|
8
|
+
}
|
|
9
|
+
&[data-fui-focus-visible] {
|
|
10
|
+
border-color: transparent;
|
|
11
|
+
&::after {
|
|
12
|
+
content: '';
|
|
13
|
+
position: absolute;
|
|
14
|
+
pointer-events: none;
|
|
15
|
+
z-index: 1;
|
|
16
|
+
border: 2px solid var(--colorStrokeFocus2);
|
|
17
|
+
border-radius: var(--borderRadiusMedium);
|
|
18
|
+
inset: -2px;
|
|
19
|
+
}
|
|
20
|
+
@media (forced-colors: active) {
|
|
21
|
+
&::after {
|
|
22
|
+
border-color: Highlight;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
position: fixed;
|
|
27
|
+
top: 0;
|
|
28
|
+
bottom: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.bottom {
|
|
32
|
+
top: auto;
|
|
33
|
+
height: var(--fui-Drawer--size);
|
|
34
|
+
width: 100vw;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.absolute {
|
|
38
|
+
position: absolute;
|
|
39
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* @griffel-buckets reset: .backdrop */
|
|
2
|
+
.backdrop {
|
|
3
|
+
inset: 0px;
|
|
4
|
+
position: fixed;
|
|
5
|
+
background-color: var(--colorBackgroundOverlay);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.nested {
|
|
9
|
+
background-color: var(--colorTransparentBackground);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.hidden {
|
|
13
|
+
pointer-events: none;
|
|
14
|
+
}
|