@fluentui/react-drawer 9.8.7 → 9.9.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +23 -2
  2. package/lib/components/Drawer/useDrawerStyles.styles.raw.js +11 -0
  3. package/lib/components/Drawer/useDrawerStyles.styles.raw.js.map +1 -0
  4. package/lib/components/DrawerBody/useDrawerBodyStyles.styles.raw.js +29 -0
  5. package/lib/components/DrawerBody/useDrawerBodyStyles.styles.raw.js.map +1 -0
  6. package/lib/components/DrawerFooter/useDrawerFooterStyles.styles.raw.js +45 -0
  7. package/lib/components/DrawerFooter/useDrawerFooterStyles.styles.raw.js.map +1 -0
  8. package/lib/components/DrawerHeader/useDrawerHeaderStyles.styles.raw.js +45 -0
  9. package/lib/components/DrawerHeader/useDrawerHeaderStyles.styles.raw.js.map +1 -0
  10. package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.raw.js +18 -0
  11. package/lib/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.raw.js.map +1 -0
  12. package/lib/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.raw.js +49 -0
  13. package/lib/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.raw.js.map +1 -0
  14. package/lib/components/InlineDrawer/useInlineDrawerStyles.styles.raw.js +55 -0
  15. package/lib/components/InlineDrawer/useInlineDrawerStyles.styles.raw.js.map +1 -0
  16. package/lib/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.raw.js +25 -0
  17. package/lib/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.raw.js.map +1 -0
  18. package/lib/components/OverlayDrawer/useOverlayDrawerStyles.styles.raw.js +44 -0
  19. package/lib/components/OverlayDrawer/useOverlayDrawerStyles.styles.raw.js.map +1 -0
  20. package/lib/shared/useDrawerBaseStyles.styles.raw.js +72 -0
  21. package/lib/shared/useDrawerBaseStyles.styles.raw.js.map +1 -0
  22. package/lib-commonjs/components/Drawer/useDrawerStyles.styles.raw.js +27 -0
  23. package/lib-commonjs/components/Drawer/useDrawerStyles.styles.raw.js.map +1 -0
  24. package/lib-commonjs/components/DrawerBody/useDrawerBodyStyles.styles.raw.js +45 -0
  25. package/lib-commonjs/components/DrawerBody/useDrawerBodyStyles.styles.raw.js.map +1 -0
  26. package/lib-commonjs/components/DrawerFooter/useDrawerFooterStyles.styles.raw.js +61 -0
  27. package/lib-commonjs/components/DrawerFooter/useDrawerFooterStyles.styles.raw.js.map +1 -0
  28. package/lib-commonjs/components/DrawerHeader/useDrawerHeaderStyles.styles.raw.js +61 -0
  29. package/lib-commonjs/components/DrawerHeader/useDrawerHeaderStyles.styles.raw.js.map +1 -0
  30. package/lib-commonjs/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.raw.js +34 -0
  31. package/lib-commonjs/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.raw.js.map +1 -0
  32. package/lib-commonjs/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.raw.js +64 -0
  33. package/lib-commonjs/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.raw.js.map +1 -0
  34. package/lib-commonjs/components/InlineDrawer/useInlineDrawerStyles.styles.raw.js +71 -0
  35. package/lib-commonjs/components/InlineDrawer/useInlineDrawerStyles.styles.raw.js.map +1 -0
  36. package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.raw.js +33 -0
  37. package/lib-commonjs/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.raw.js.map +1 -0
  38. package/lib-commonjs/components/OverlayDrawer/useOverlayDrawerStyles.styles.raw.js +61 -0
  39. package/lib-commonjs/components/OverlayDrawer/useOverlayDrawerStyles.styles.raw.js.map +1 -0
  40. package/lib-commonjs/shared/useDrawerBaseStyles.styles.raw.js +92 -0
  41. package/lib-commonjs/shared/useDrawerBaseStyles.styles.raw.js.map +1 -0
  42. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,12 +1,33 @@
1
1
  # Change Log - @fluentui/react-drawer
2
2
 
3
- This log was last generated on Fri, 11 Jul 2025 15:56:58 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 17 Jul 2025 13:45:38 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.9.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.9.0)
8
+
9
+ Thu, 17 Jul 2025 13:45:38 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.8.8..@fluentui/react-drawer_v9.9.0)
11
+
12
+ ### Minor changes
13
+
14
+ - feat: enable griffel raw styles ([PR #34853](https://github.com/microsoft/fluentui/pull/34853) by martinhochel@microsoft.com)
15
+ - Bump @fluentui/react-dialog to v9.14.0 ([PR #34862](https://github.com/microsoft/fluentui/pull/34862) by beachball)
16
+ - Bump @fluentui/react-portal to v9.7.0 ([PR #34862](https://github.com/microsoft/fluentui/pull/34862) by beachball)
17
+ - Bump @fluentui/react-tabster to v9.26.0 ([PR #34862](https://github.com/microsoft/fluentui/pull/34862) by beachball)
18
+
19
+ ## [9.8.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.8.8)
20
+
21
+ Wed, 16 Jul 2025 13:52:50 GMT
22
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.8.7..@fluentui/react-drawer_v9.8.8)
23
+
24
+ ### Patches
25
+
26
+ - Bump @fluentui/react-dialog to v9.13.8 ([PR #34849](https://github.com/microsoft/fluentui/pull/34849) by beachball)
27
+
7
28
  ## [9.8.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-drawer_v9.8.7)
8
29
 
9
- Fri, 11 Jul 2025 15:56:58 GMT
30
+ Fri, 11 Jul 2025 15:59:24 GMT
10
31
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-drawer_v9.8.6..@fluentui/react-drawer_v9.8.7)
11
32
 
12
33
  ### Patches
@@ -0,0 +1,11 @@
1
+ import { mergeClasses } from '@griffel/react';
2
+ export const drawerClassNames = {
3
+ root: 'fui-Drawer'
4
+ };
5
+ /**
6
+ * Apply styling to the Drawer slots based on the state
7
+ */ export const useDrawerStyles_unstable = (state)=>{
8
+ 'use no memo';
9
+ state.root.className = mergeClasses(drawerClassNames.root, state.root.className);
10
+ return state;
11
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/Drawer/useDrawerStyles.styles.ts"],"sourcesContent":["import { mergeClasses } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nimport type { DrawerSlots, DrawerState } from './Drawer.types';\n\nexport const drawerClassNames: SlotClassNames<Omit<DrawerSlots, 'surfaceMotion'>> = {\n root: 'fui-Drawer',\n};\n\n/**\n * Apply styling to the Drawer slots based on the state\n */\nexport const useDrawerStyles_unstable = (state: DrawerState): DrawerState => {\n 'use no memo';\n\n state.root.className = mergeClasses(drawerClassNames.root, state.root.className);\n\n return state;\n};\n"],"names":["mergeClasses","drawerClassNames","root","useDrawerStyles_unstable","state","className"],"rangeMappings":";;;;;;;;;;","mappings":"AAAA,SAASA,YAAY,QAAQ,iBAAiB;AAK9C,OAAO,MAAMC,mBAAuE;IAClFC,MAAM;AACR,EAAE;AAEF;;CAEC,GACD,OAAO,MAAMC,2BAA2B,CAACC;IACvC;IAEAA,MAAMF,IAAI,CAACG,SAAS,GAAGL,aAAaC,iBAAiBC,IAAI,EAAEE,MAAMF,IAAI,CAACG,SAAS;IAE/E,OAAOD;AACT,EAAE"}
@@ -0,0 +1,29 @@
1
+ import { makeResetStyles, mergeClasses } from '@griffel/react';
2
+ import { tokens } from '@fluentui/react-theme';
3
+ export const drawerBodyClassNames = {
4
+ root: 'fui-DrawerBody'
5
+ };
6
+ /**
7
+ * Styles for the root slot
8
+ */ const useStyles = makeResetStyles({
9
+ padding: `0 ${tokens.spacingHorizontalXXL}`,
10
+ flex: 1,
11
+ alignSelf: 'stretch',
12
+ position: 'relative',
13
+ zIndex: 1,
14
+ overflow: 'auto',
15
+ ':last-child': {
16
+ paddingBottom: `calc(${tokens.spacingHorizontalXXL} + 1px)`
17
+ },
18
+ ':first-child': {
19
+ paddingTop: `calc(${tokens.spacingHorizontalXXL} + 1px)`
20
+ }
21
+ });
22
+ /**
23
+ * Apply styling to the DrawerBody slots based on the state
24
+ */ export const useDrawerBodyStyles_unstable = (state)=>{
25
+ 'use no memo';
26
+ const styles = useStyles();
27
+ state.root.className = mergeClasses(drawerBodyClassNames.root, styles, state.root.className);
28
+ return state;
29
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/DrawerBody/useDrawerBodyStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nimport type { DrawerBodySlots, DrawerBodyState } from './DrawerBody.types';\n\nexport const drawerBodyClassNames: SlotClassNames<DrawerBodySlots> = {\n root: 'fui-DrawerBody',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeResetStyles({\n padding: `0 ${tokens.spacingHorizontalXXL}`,\n flex: 1,\n alignSelf: 'stretch',\n position: 'relative',\n zIndex: 1,\n overflow: 'auto',\n\n ':last-child': {\n paddingBottom: `calc(${tokens.spacingHorizontalXXL} + 1px)`,\n },\n\n ':first-child': {\n paddingTop: `calc(${tokens.spacingHorizontalXXL} + 1px)`,\n },\n});\n\n/**\n * Apply styling to the DrawerBody slots based on the state\n */\nexport const useDrawerBodyStyles_unstable = (state: DrawerBodyState): DrawerBodyState => {\n 'use no memo';\n\n const styles = useStyles();\n\n state.root.className = mergeClasses(drawerBodyClassNames.root, styles, state.root.className);\n\n return state;\n};\n"],"names":["makeResetStyles","mergeClasses","tokens","drawerBodyClassNames","root","useStyles","padding","spacingHorizontalXXL","flex","alignSelf","position","zIndex","overflow","paddingBottom","paddingTop","useDrawerBodyStyles_unstable","state","styles","className"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,eAAe,EAAEC,YAAY,QAAQ,iBAAiB;AAC/D,SAASC,MAAM,QAAQ,wBAAwB;AAK/C,OAAO,MAAMC,uBAAwD;IACnEC,MAAM;AACR,EAAE;AAEF;;CAEC,GACD,MAAMC,YAAYL,gBAAgB;IAChCM,SAAS,CAAC,EAAE,EAAEJ,OAAOK,oBAAoB,CAAC,CAAC;IAC3CC,MAAM;IACNC,WAAW;IACXC,UAAU;IACVC,QAAQ;IACRC,UAAU;IAEV,eAAe;QACbC,eAAe,CAAC,KAAK,EAAEX,OAAOK,oBAAoB,CAAC,OAAO,CAAC;IAC7D;IAEA,gBAAgB;QACdO,YAAY,CAAC,KAAK,EAAEZ,OAAOK,oBAAoB,CAAC,OAAO,CAAC;IAC1D;AACF;AAEA;;CAEC,GACD,OAAO,MAAMQ,+BAA+B,CAACC;IAC3C;IAEA,MAAMC,SAASZ;IAEfW,MAAMZ,IAAI,CAACc,SAAS,GAAGjB,aAAaE,qBAAqBC,IAAI,EAAEa,QAAQD,MAAMZ,IAAI,CAACc,SAAS;IAE3F,OAAOF;AACT,EAAE"}
@@ -0,0 +1,45 @@
1
+ import { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';
2
+ import { tokens } from '@fluentui/react-theme';
3
+ import { drawerSeparatorStyles } from '../../shared/drawerSeparatorStyles';
4
+ export const drawerFooterClassNames = {
5
+ root: 'fui-DrawerFooter'
6
+ };
7
+ /**
8
+ * Styles for the root slot
9
+ */ const useStyles = makeResetStyles({
10
+ width: '100%',
11
+ maxWidth: '100%',
12
+ padding: `${tokens.spacingVerticalL} ${tokens.spacingHorizontalXXL} ${tokens.spacingVerticalXXL}`,
13
+ display: 'flex',
14
+ justifyContent: 'flex-start',
15
+ alignItems: 'center',
16
+ columnGap: tokens.spacingHorizontalS,
17
+ boxSizing: 'border-box',
18
+ position: 'relative',
19
+ zIndex: 2
20
+ });
21
+ const useDrawerFooterStyles = makeStyles({
22
+ separator: {
23
+ '::before': {
24
+ ...drawerSeparatorStyles,
25
+ top: 0
26
+ }
27
+ },
28
+ separatorVisible: {
29
+ '::before': {
30
+ opacity: 1
31
+ }
32
+ }
33
+ });
34
+ /**
35
+ * Apply styling to the DrawerFooter slots based on the state
36
+ */ export const useDrawerFooterStyles_unstable = (state)=>{
37
+ 'use no memo';
38
+ const styles = useStyles();
39
+ const rootStyles = useDrawerFooterStyles();
40
+ state.root.className = mergeClasses(drawerFooterClassNames.root, styles, state.scrollState !== 'none' && rootStyles.separator, [
41
+ 'middle',
42
+ 'top'
43
+ ].includes(state.scrollState) && rootStyles.separatorVisible, state.root.className);
44
+ return state;
45
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/DrawerFooter/useDrawerFooterStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nimport { drawerSeparatorStyles } from '../../shared/drawerSeparatorStyles';\n\nimport type { DrawerFooterSlots, DrawerFooterState } from './DrawerFooter.types';\n\nexport const drawerFooterClassNames: SlotClassNames<DrawerFooterSlots> = {\n root: 'fui-DrawerFooter',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeResetStyles({\n width: '100%',\n maxWidth: '100%',\n padding: `${tokens.spacingVerticalL} ${tokens.spacingHorizontalXXL} ${tokens.spacingVerticalXXL}`,\n display: 'flex',\n justifyContent: 'flex-start',\n alignItems: 'center',\n columnGap: tokens.spacingHorizontalS,\n boxSizing: 'border-box',\n position: 'relative',\n zIndex: 2,\n});\n\nconst useDrawerFooterStyles = makeStyles({\n separator: {\n '::before': {\n ...drawerSeparatorStyles,\n top: 0,\n },\n },\n\n separatorVisible: {\n '::before': {\n opacity: 1,\n },\n },\n});\n\n/**\n * Apply styling to the DrawerFooter slots based on the state\n */\nexport const useDrawerFooterStyles_unstable = (state: DrawerFooterState): DrawerFooterState => {\n 'use no memo';\n\n const styles = useStyles();\n const rootStyles = useDrawerFooterStyles();\n\n state.root.className = mergeClasses(\n drawerFooterClassNames.root,\n styles,\n state.scrollState !== 'none' && rootStyles.separator,\n ['middle', 'top'].includes(state.scrollState) && rootStyles.separatorVisible,\n state.root.className,\n );\n\n return state;\n};\n"],"names":["makeResetStyles","makeStyles","mergeClasses","tokens","drawerSeparatorStyles","drawerFooterClassNames","root","useStyles","width","maxWidth","padding","spacingVerticalL","spacingHorizontalXXL","spacingVerticalXXL","display","justifyContent","alignItems","columnGap","spacingHorizontalS","boxSizing","position","zIndex","useDrawerFooterStyles","separator","top","separatorVisible","opacity","useDrawerFooterStyles_unstable","state","styles","rootStyles","className","scrollState","includes"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,eAAe,EAAEC,UAAU,EAAEC,YAAY,QAAQ,iBAAiB;AAC3E,SAASC,MAAM,QAAQ,wBAAwB;AAG/C,SAASC,qBAAqB,QAAQ,qCAAqC;AAI3E,OAAO,MAAMC,yBAA4D;IACvEC,MAAM;AACR,EAAE;AAEF;;CAEC,GACD,MAAMC,YAAYP,gBAAgB;IAChCQ,OAAO;IACPC,UAAU;IACVC,SAAS,CAAC,EAAEP,OAAOQ,gBAAgB,CAAC,CAAC,EAAER,OAAOS,oBAAoB,CAAC,CAAC,EAAET,OAAOU,kBAAkB,CAAC,CAAC;IACjGC,SAAS;IACTC,gBAAgB;IAChBC,YAAY;IACZC,WAAWd,OAAOe,kBAAkB;IACpCC,WAAW;IACXC,UAAU;IACVC,QAAQ;AACV;AAEA,MAAMC,wBAAwBrB,WAAW;IACvCsB,WAAW;QACT,YAAY;YACV,GAAGnB,qBAAqB;YACxBoB,KAAK;QACP;IACF;IAEAC,kBAAkB;QAChB,YAAY;YACVC,SAAS;QACX;IACF;AACF;AAEA;;CAEC,GACD,OAAO,MAAMC,iCAAiC,CAACC;IAC7C;IAEA,MAAMC,SAAStB;IACf,MAAMuB,aAAaR;IAEnBM,MAAMtB,IAAI,CAACyB,SAAS,GAAG7B,aACrBG,uBAAuBC,IAAI,EAC3BuB,QACAD,MAAMI,WAAW,KAAK,UAAUF,WAAWP,SAAS,EACpD;QAAC;QAAU;KAAM,CAACU,QAAQ,CAACL,MAAMI,WAAW,KAAKF,WAAWL,gBAAgB,EAC5EG,MAAMtB,IAAI,CAACyB,SAAS;IAGtB,OAAOH;AACT,EAAE"}
@@ -0,0 +1,45 @@
1
+ import { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';
2
+ import { tokens } from '@fluentui/react-theme';
3
+ import { drawerSeparatorStyles } from '../../shared/drawerSeparatorStyles';
4
+ export const drawerHeaderClassNames = {
5
+ root: 'fui-DrawerHeader'
6
+ };
7
+ /**
8
+ * Styles for the root slot
9
+ */ const useStyles = makeResetStyles({
10
+ width: '100%',
11
+ maxWidth: '100%',
12
+ padding: `${tokens.spacingVerticalXXL} ${tokens.spacingHorizontalXXL} ${tokens.spacingVerticalS}`,
13
+ gap: tokens.spacingHorizontalS,
14
+ alignSelf: 'stretch',
15
+ display: 'flex',
16
+ flexDirection: 'column',
17
+ boxSizing: 'border-box',
18
+ position: 'relative',
19
+ zIndex: 2
20
+ });
21
+ const useDrawerHeaderStyles = makeStyles({
22
+ separator: {
23
+ '::after': {
24
+ ...drawerSeparatorStyles,
25
+ bottom: 0
26
+ }
27
+ },
28
+ separatorVisible: {
29
+ '::after': {
30
+ opacity: 1
31
+ }
32
+ }
33
+ });
34
+ /**
35
+ * Apply styling to the DrawerHeader slots based on the state
36
+ */ export const useDrawerHeaderStyles_unstable = (state)=>{
37
+ 'use no memo';
38
+ const styles = useStyles();
39
+ const rootStyles = useDrawerHeaderStyles();
40
+ state.root.className = mergeClasses(drawerHeaderClassNames.root, styles, state.scrollState !== 'none' && rootStyles.separator, [
41
+ 'middle',
42
+ 'bottom'
43
+ ].includes(state.scrollState) && rootStyles.separatorVisible, state.root.className);
44
+ return state;
45
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/DrawerHeader/useDrawerHeaderStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nimport { drawerSeparatorStyles } from '../../shared/drawerSeparatorStyles';\n\nimport type { DrawerHeaderSlots, DrawerHeaderState } from './DrawerHeader.types';\n\nexport const drawerHeaderClassNames: SlotClassNames<DrawerHeaderSlots> = {\n root: 'fui-DrawerHeader',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeResetStyles({\n width: '100%',\n maxWidth: '100%',\n padding: `${tokens.spacingVerticalXXL} ${tokens.spacingHorizontalXXL} ${tokens.spacingVerticalS}`,\n gap: tokens.spacingHorizontalS,\n alignSelf: 'stretch',\n display: 'flex',\n flexDirection: 'column',\n boxSizing: 'border-box',\n position: 'relative',\n zIndex: 2,\n});\n\nconst useDrawerHeaderStyles = makeStyles({\n separator: {\n '::after': {\n ...drawerSeparatorStyles,\n bottom: 0,\n },\n },\n\n separatorVisible: {\n '::after': {\n opacity: 1,\n },\n },\n});\n\n/**\n * Apply styling to the DrawerHeader slots based on the state\n */\nexport const useDrawerHeaderStyles_unstable = (state: DrawerHeaderState): DrawerHeaderState => {\n 'use no memo';\n\n const styles = useStyles();\n const rootStyles = useDrawerHeaderStyles();\n\n state.root.className = mergeClasses(\n drawerHeaderClassNames.root,\n styles,\n state.scrollState !== 'none' && rootStyles.separator,\n ['middle', 'bottom'].includes(state.scrollState) && rootStyles.separatorVisible,\n state.root.className,\n );\n\n return state;\n};\n"],"names":["makeResetStyles","makeStyles","mergeClasses","tokens","drawerSeparatorStyles","drawerHeaderClassNames","root","useStyles","width","maxWidth","padding","spacingVerticalXXL","spacingHorizontalXXL","spacingVerticalS","gap","spacingHorizontalS","alignSelf","display","flexDirection","boxSizing","position","zIndex","useDrawerHeaderStyles","separator","bottom","separatorVisible","opacity","useDrawerHeaderStyles_unstable","state","styles","rootStyles","className","scrollState","includes"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,eAAe,EAAEC,UAAU,EAAEC,YAAY,QAAQ,iBAAiB;AAC3E,SAASC,MAAM,QAAQ,wBAAwB;AAG/C,SAASC,qBAAqB,QAAQ,qCAAqC;AAI3E,OAAO,MAAMC,yBAA4D;IACvEC,MAAM;AACR,EAAE;AAEF;;CAEC,GACD,MAAMC,YAAYP,gBAAgB;IAChCQ,OAAO;IACPC,UAAU;IACVC,SAAS,CAAC,EAAEP,OAAOQ,kBAAkB,CAAC,CAAC,EAAER,OAAOS,oBAAoB,CAAC,CAAC,EAAET,OAAOU,gBAAgB,CAAC,CAAC;IACjGC,KAAKX,OAAOY,kBAAkB;IAC9BC,WAAW;IACXC,SAAS;IACTC,eAAe;IACfC,WAAW;IACXC,UAAU;IACVC,QAAQ;AACV;AAEA,MAAMC,wBAAwBrB,WAAW;IACvCsB,WAAW;QACT,WAAW;YACT,GAAGnB,qBAAqB;YACxBoB,QAAQ;QACV;IACF;IAEAC,kBAAkB;QAChB,WAAW;YACTC,SAAS;QACX;IACF;AACF;AAEA;;CAEC,GACD,OAAO,MAAMC,iCAAiC,CAACC;IAC7C;IAEA,MAAMC,SAAStB;IACf,MAAMuB,aAAaR;IAEnBM,MAAMtB,IAAI,CAACyB,SAAS,GAAG7B,aACrBG,uBAAuBC,IAAI,EAC3BuB,QACAD,MAAMI,WAAW,KAAK,UAAUF,WAAWP,SAAS,EACpD;QAAC;QAAU;KAAS,CAACU,QAAQ,CAACL,MAAMI,WAAW,KAAKF,WAAWL,gBAAgB,EAC/EG,MAAMtB,IAAI,CAACyB,SAAS;IAGtB,OAAOH;AACT,EAAE"}
@@ -0,0 +1,18 @@
1
+ import { makeResetStyles, mergeClasses } from '@griffel/react';
2
+ import { tokens } from '@fluentui/react-theme';
3
+ export const drawerHeaderNavigationClassNames = {
4
+ root: 'fui-DrawerHeaderNavigation'
5
+ };
6
+ /**
7
+ * Styles for the root slot
8
+ */ const useStyles = makeResetStyles({
9
+ margin: `calc(${tokens.spacingVerticalS} * -1) calc(${tokens.spacingHorizontalL} * -1)`
10
+ });
11
+ /**
12
+ * Apply styling to the DrawerHeaderNavigation slots based on the state
13
+ */ export const useDrawerHeaderNavigationStyles_unstable = (state)=>{
14
+ 'use no memo';
15
+ const styles = useStyles();
16
+ state.root.className = mergeClasses(drawerHeaderNavigationClassNames.root, styles, state.root.className);
17
+ return state;
18
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nimport type { DrawerHeaderNavigationSlots, DrawerHeaderNavigationState } from './DrawerHeaderNavigation.types';\n\nexport const drawerHeaderNavigationClassNames: SlotClassNames<DrawerHeaderNavigationSlots> = {\n root: 'fui-DrawerHeaderNavigation',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeResetStyles({\n margin: `calc(${tokens.spacingVerticalS} * -1) calc(${tokens.spacingHorizontalL} * -1)`,\n});\n\n/**\n * Apply styling to the DrawerHeaderNavigation slots based on the state\n */\nexport const useDrawerHeaderNavigationStyles_unstable = (\n state: DrawerHeaderNavigationState,\n): DrawerHeaderNavigationState => {\n 'use no memo';\n\n const styles = useStyles();\n\n state.root.className = mergeClasses(drawerHeaderNavigationClassNames.root, styles, state.root.className);\n\n return state;\n};\n"],"names":["makeResetStyles","mergeClasses","tokens","drawerHeaderNavigationClassNames","root","useStyles","margin","spacingVerticalS","spacingHorizontalL","useDrawerHeaderNavigationStyles_unstable","state","styles","className"],"rangeMappings":";;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,eAAe,EAAEC,YAAY,QAAQ,iBAAiB;AAC/D,SAASC,MAAM,QAAQ,wBAAwB;AAK/C,OAAO,MAAMC,mCAAgF;IAC3FC,MAAM;AACR,EAAE;AAEF;;CAEC,GACD,MAAMC,YAAYL,gBAAgB;IAChCM,QAAQ,CAAC,KAAK,EAAEJ,OAAOK,gBAAgB,CAAC,YAAY,EAAEL,OAAOM,kBAAkB,CAAC,MAAM,CAAC;AACzF;AAEA;;CAEC,GACD,OAAO,MAAMC,2CAA2C,CACtDC;IAEA;IAEA,MAAMC,SAASN;IAEfK,MAAMN,IAAI,CAACQ,SAAS,GAAGX,aAAaE,iCAAiCC,IAAI,EAAEO,QAAQD,MAAMN,IAAI,CAACQ,SAAS;IAEvG,OAAOF;AACT,EAAE"}
@@ -0,0 +1,49 @@
1
+ import { makeStyles, mergeClasses } from '@griffel/react';
2
+ import { useDialogTitleStyles_unstable } from '@fluentui/react-dialog';
3
+ import { tokens } from '@fluentui/react-theme';
4
+ export const drawerHeaderTitleClassNames = {
5
+ root: 'fui-DrawerHeaderTitle',
6
+ heading: 'fui-DrawerHeaderTitle__heading',
7
+ action: 'fui-DrawerHeaderTitle__action'
8
+ };
9
+ /**
10
+ * Styles for the root slot
11
+ */ const useStyles = makeStyles({
12
+ root: {
13
+ display: 'flex',
14
+ justifyContent: 'space-between',
15
+ alignItems: 'center',
16
+ columnGap: tokens.spacingHorizontalS
17
+ },
18
+ action: {
19
+ marginRight: `calc(${tokens.spacingHorizontalS} * -1)`
20
+ }
21
+ });
22
+ /**
23
+ * Apply styling to the DrawerHeaderTitle slots based on the state
24
+ */ export const useDrawerHeaderTitleStyles_unstable = (state)=>{
25
+ 'use no memo';
26
+ const styles = useStyles();
27
+ const { heading: root = {}, action, // We should not use components to pass along the base element type of a slot
28
+ // but there's no way to retrieve the element type of a slot from the slot definition
29
+ // right now without using SLOT_ELEMENT_TYPE_SYMBOL
30
+ // TODO: create a method to retrieve the element type of a slot
31
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
32
+ components } = state;
33
+ useDialogTitleStyles_unstable({
34
+ components: {
35
+ root: components.heading,
36
+ action: components.action
37
+ },
38
+ root,
39
+ action
40
+ });
41
+ state.root.className = mergeClasses(drawerHeaderTitleClassNames.root, styles.root, state.root.className);
42
+ if (state.heading) {
43
+ state.heading.className = mergeClasses(drawerHeaderTitleClassNames.heading, state.heading.className);
44
+ }
45
+ if (state.action) {
46
+ state.action.className = mergeClasses(drawerHeaderTitleClassNames.action, styles.action, state.action.className);
47
+ }
48
+ return state;
49
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useDialogTitleStyles_unstable } from '@fluentui/react-dialog';\nimport { tokens } from '@fluentui/react-theme';\n\nimport type { DrawerHeaderTitleSlots, DrawerHeaderTitleState } from './DrawerHeaderTitle.types';\n\nexport const drawerHeaderTitleClassNames: SlotClassNames<DrawerHeaderTitleSlots> = {\n root: 'fui-DrawerHeaderTitle',\n heading: 'fui-DrawerHeaderTitle__heading',\n action: 'fui-DrawerHeaderTitle__action',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n columnGap: tokens.spacingHorizontalS,\n },\n\n action: {\n marginRight: `calc(${tokens.spacingHorizontalS} * -1)`,\n },\n});\n\n/**\n * Apply styling to the DrawerHeaderTitle slots based on the state\n */\nexport const useDrawerHeaderTitleStyles_unstable = (state: DrawerHeaderTitleState): DrawerHeaderTitleState => {\n 'use no memo';\n\n const styles = useStyles();\n\n const {\n heading: root = {},\n action,\n // We should not use components to pass along the base element type of a slot\n // but there's no way to retrieve the element type of a slot from the slot definition\n // right now without using SLOT_ELEMENT_TYPE_SYMBOL\n // TODO: create a method to retrieve the element type of a slot\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 state.root.className = mergeClasses(drawerHeaderTitleClassNames.root, styles.root, state.root.className);\n\n if (state.heading) {\n state.heading.className = mergeClasses(drawerHeaderTitleClassNames.heading, state.heading.className);\n }\n\n if (state.action) {\n state.action.className = mergeClasses(drawerHeaderTitleClassNames.action, styles.action, state.action.className);\n }\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","useDialogTitleStyles_unstable","tokens","drawerHeaderTitleClassNames","root","heading","action","useStyles","display","justifyContent","alignItems","columnGap","spacingHorizontalS","marginRight","useDrawerHeaderTitleStyles_unstable","state","styles","components","className"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,UAAU,EAAEC,YAAY,QAAQ,iBAAiB;AAE1D,SAASC,6BAA6B,QAAQ,yBAAyB;AACvE,SAASC,MAAM,QAAQ,wBAAwB;AAI/C,OAAO,MAAMC,8BAAsE;IACjFC,MAAM;IACNC,SAAS;IACTC,QAAQ;AACV,EAAE;AAEF;;CAEC,GACD,MAAMC,YAAYR,WAAW;IAC3BK,MAAM;QACJI,SAAS;QACTC,gBAAgB;QAChBC,YAAY;QACZC,WAAWT,OAAOU,kBAAkB;IACtC;IAEAN,QAAQ;QACNO,aAAa,CAAC,KAAK,EAAEX,OAAOU,kBAAkB,CAAC,MAAM,CAAC;IACxD;AACF;AAEA;;CAEC,GACD,OAAO,MAAME,sCAAsC,CAACC;IAClD;IAEA,MAAMC,SAAST;IAEf,MAAM,EACJF,SAASD,OAAO,CAAC,CAAC,EAClBE,MAAM,EACN,6EAA6E;IAC7E,qFAAqF;IACrF,mDAAmD;IACnD,+DAA+D;IAC/D,4DAA4D;IAC5DW,UAAU,EACX,GAAGF;IAEJd,8BAA8B;QAC5BgB,YAAY;YACVb,MAAMa,WAAWZ,OAAO;YACxBC,QAAQW,WAAWX,MAAM;QAC3B;QACAF;QACAE;IACF;IAEAS,MAAMX,IAAI,CAACc,SAAS,GAAGlB,aAAaG,4BAA4BC,IAAI,EAAEY,OAAOZ,IAAI,EAAEW,MAAMX,IAAI,CAACc,SAAS;IAEvG,IAAIH,MAAMV,OAAO,EAAE;QACjBU,MAAMV,OAAO,CAACa,SAAS,GAAGlB,aAAaG,4BAA4BE,OAAO,EAAEU,MAAMV,OAAO,CAACa,SAAS;IACrG;IAEA,IAAIH,MAAMT,MAAM,EAAE;QAChBS,MAAMT,MAAM,CAACY,SAAS,GAAGlB,aAAaG,4BAA4BG,MAAM,EAAEU,OAAOV,MAAM,EAAES,MAAMT,MAAM,CAACY,SAAS;IACjH;IAEA,OAAOH;AACT,EAAE"}
@@ -0,0 +1,55 @@
1
+ import { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';
2
+ import { tokens } from '@fluentui/react-theme';
3
+ import { drawerCSSVars, drawerDefaultStyles, useDrawerBaseClassNames } from '../../shared/useDrawerBaseStyles.styles';
4
+ export const inlineDrawerClassNames = {
5
+ root: 'fui-InlineDrawer'
6
+ };
7
+ const useDrawerResetStyles = makeResetStyles({
8
+ ...drawerDefaultStyles,
9
+ position: 'relative'
10
+ });
11
+ /**
12
+ * Styles for the root slot
13
+ */ const borderValue = `1px solid ${tokens.colorNeutralBackground3}`;
14
+ const useDrawerRootStyles = makeStyles({
15
+ /* Separator */ separatorStart: {
16
+ borderRight: borderValue
17
+ },
18
+ separatorEnd: {
19
+ borderLeft: borderValue
20
+ },
21
+ separatorBottom: {
22
+ borderTop: borderValue
23
+ },
24
+ /* Positioning */ start: {},
25
+ end: {},
26
+ bottom: {
27
+ width: '100%',
28
+ height: `var(${drawerCSSVars.drawerSizeVar})`
29
+ }
30
+ });
31
+ function getSeparatorClass(state, classNames) {
32
+ if (!state.separator) {
33
+ return undefined;
34
+ }
35
+ switch(state.position){
36
+ case 'start':
37
+ return classNames.separatorStart;
38
+ case 'end':
39
+ return classNames.separatorEnd;
40
+ case 'bottom':
41
+ return classNames.separatorBottom;
42
+ default:
43
+ return undefined;
44
+ }
45
+ }
46
+ /**
47
+ * Apply styling to the InlineDrawer slots based on the state
48
+ */ export const useInlineDrawerStyles_unstable = (state)=>{
49
+ 'use no memo';
50
+ const resetStyles = useDrawerResetStyles();
51
+ const baseClassNames = useDrawerBaseClassNames(state);
52
+ const rootStyles = useDrawerRootStyles();
53
+ state.root.className = mergeClasses(inlineDrawerClassNames.root, resetStyles, baseClassNames, getSeparatorClass(state, rootStyles), rootStyles[state.position], state.root.className);
54
+ return state;
55
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/InlineDrawer/useInlineDrawerStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { tokens } from '@fluentui/react-theme';\n\nimport type { InlineDrawerSlots, InlineDrawerState } from './InlineDrawer.types';\nimport { drawerCSSVars, drawerDefaultStyles, useDrawerBaseClassNames } from '../../shared/useDrawerBaseStyles.styles';\n\nexport const inlineDrawerClassNames: SlotClassNames<Omit<InlineDrawerSlots, 'surfaceMotion'>> = {\n root: 'fui-InlineDrawer',\n};\n\nconst useDrawerResetStyles = makeResetStyles({\n ...drawerDefaultStyles,\n position: 'relative',\n});\n\n/**\n * Styles for the root slot\n */\nconst borderValue = `1px solid ${tokens.colorNeutralBackground3}`;\nconst useDrawerRootStyles = makeStyles({\n /* Separator */\n separatorStart: { borderRight: borderValue },\n separatorEnd: { borderLeft: borderValue },\n separatorBottom: { borderTop: borderValue },\n\n /* Positioning */\n start: {},\n end: {},\n bottom: {\n width: '100%',\n height: `var(${drawerCSSVars.drawerSizeVar})`,\n },\n});\n\nfunction getSeparatorClass(state: InlineDrawerState, classNames: ReturnType<typeof useDrawerRootStyles>) {\n if (!state.separator) {\n return undefined;\n }\n\n switch (state.position) {\n case 'start':\n return classNames.separatorStart;\n\n case 'end':\n return classNames.separatorEnd;\n\n case 'bottom':\n return classNames.separatorBottom;\n\n default:\n return undefined;\n }\n}\n\n/**\n * Apply styling to the InlineDrawer slots based on the state\n */\nexport const useInlineDrawerStyles_unstable = (state: InlineDrawerState): InlineDrawerState => {\n 'use no memo';\n\n const resetStyles = useDrawerResetStyles();\n const baseClassNames = useDrawerBaseClassNames(state);\n const rootStyles = useDrawerRootStyles();\n\n state.root.className = mergeClasses(\n inlineDrawerClassNames.root,\n resetStyles,\n baseClassNames,\n getSeparatorClass(state, rootStyles),\n rootStyles[state.position],\n state.root.className,\n );\n\n return state;\n};\n"],"names":["makeResetStyles","makeStyles","mergeClasses","tokens","drawerCSSVars","drawerDefaultStyles","useDrawerBaseClassNames","inlineDrawerClassNames","root","useDrawerResetStyles","position","borderValue","colorNeutralBackground3","useDrawerRootStyles","separatorStart","borderRight","separatorEnd","borderLeft","separatorBottom","borderTop","start","end","bottom","width","height","drawerSizeVar","getSeparatorClass","state","classNames","separator","undefined","useInlineDrawerStyles_unstable","resetStyles","baseClassNames","rootStyles","className"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,eAAe,EAAEC,UAAU,EAAEC,YAAY,QAAQ,iBAAiB;AAE3E,SAASC,MAAM,QAAQ,wBAAwB;AAG/C,SAASC,aAAa,EAAEC,mBAAmB,EAAEC,uBAAuB,QAAQ,0CAA0C;AAEtH,OAAO,MAAMC,yBAAmF;IAC9FC,MAAM;AACR,EAAE;AAEF,MAAMC,uBAAuBT,gBAAgB;IAC3C,GAAGK,mBAAmB;IACtBK,UAAU;AACZ;AAEA;;CAEC,GACD,MAAMC,cAAc,CAAC,UAAU,EAAER,OAAOS,uBAAuB,CAAC,CAAC;AACjE,MAAMC,sBAAsBZ,WAAW;IACrC,aAAa,GACba,gBAAgB;QAAEC,aAAaJ;IAAY;IAC3CK,cAAc;QAAEC,YAAYN;IAAY;IACxCO,iBAAiB;QAAEC,WAAWR;IAAY;IAE1C,eAAe,GACfS,OAAO,CAAC;IACRC,KAAK,CAAC;IACNC,QAAQ;QACNC,OAAO;QACPC,QAAQ,CAAC,IAAI,EAAEpB,cAAcqB,aAAa,CAAC,CAAC,CAAC;IAC/C;AACF;AAEA,SAASC,kBAAkBC,KAAwB,EAAEC,UAAkD;IACrG,IAAI,CAACD,MAAME,SAAS,EAAE;QACpB,OAAOC;IACT;IAEA,OAAQH,MAAMjB,QAAQ;QACpB,KAAK;YACH,OAAOkB,WAAWd,cAAc;QAElC,KAAK;YACH,OAAOc,WAAWZ,YAAY;QAEhC,KAAK;YACH,OAAOY,WAAWV,eAAe;QAEnC;YACE,OAAOY;IACX;AACF;AAEA;;CAEC,GACD,OAAO,MAAMC,iCAAiC,CAACJ;IAC7C;IAEA,MAAMK,cAAcvB;IACpB,MAAMwB,iBAAiB3B,wBAAwBqB;IAC/C,MAAMO,aAAarB;IAEnBc,MAAMnB,IAAI,CAAC2B,SAAS,GAAGjC,aACrBK,uBAAuBC,IAAI,EAC3BwB,aACAC,gBACAP,kBAAkBC,OAAOO,aACzBA,UAAU,CAACP,MAAMjB,QAAQ,CAAC,EAC1BiB,MAAMnB,IAAI,CAAC2B,SAAS;IAGtB,OAAOR;AACT,EAAE"}
@@ -0,0 +1,25 @@
1
+ import { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';
2
+ import { tokens } from '@fluentui/react-theme';
3
+ /**
4
+ * Styles for the backdrop slot
5
+ */ const useBackdropResetStyles = makeResetStyles({
6
+ inset: '0px',
7
+ position: 'fixed',
8
+ backgroundColor: tokens.colorBackgroundOverlay
9
+ });
10
+ const useBackdropStyles = makeStyles({
11
+ nested: {
12
+ backgroundColor: tokens.colorTransparentBackground
13
+ }
14
+ });
15
+ /**
16
+ * Apply styling to the OverlayDrawerSurface slots based on the state
17
+ */ export const useOverlayDrawerSurfaceStyles_unstable = (state)=>{
18
+ 'use no memo';
19
+ const backdropResetStyles = useBackdropResetStyles();
20
+ const backdropStyles = useBackdropStyles();
21
+ if (state.backdrop) {
22
+ state.backdrop.className = mergeClasses(backdropResetStyles, state.isNestedDialog && backdropStyles.nested, state.backdrop.className);
23
+ }
24
+ return state;
25
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport { DialogSurfaceState } from '@fluentui/react-dialog';\n\n/**\n * Styles for the backdrop slot\n */\nconst useBackdropResetStyles = makeResetStyles({\n inset: '0px',\n position: 'fixed',\n backgroundColor: tokens.colorBackgroundOverlay,\n});\n\nconst useBackdropStyles = makeStyles({\n nested: {\n backgroundColor: tokens.colorTransparentBackground,\n },\n});\n\n/**\n * Apply styling to the OverlayDrawerSurface slots based on the state\n */\nexport const useOverlayDrawerSurfaceStyles_unstable = (state: DialogSurfaceState): DialogSurfaceState => {\n 'use no memo';\n\n const backdropResetStyles = useBackdropResetStyles();\n const backdropStyles = useBackdropStyles();\n\n if (state.backdrop) {\n state.backdrop.className = mergeClasses(\n backdropResetStyles,\n state.isNestedDialog && backdropStyles.nested,\n state.backdrop.className,\n );\n }\n\n return state;\n};\n"],"names":["makeResetStyles","makeStyles","mergeClasses","tokens","useBackdropResetStyles","inset","position","backgroundColor","colorBackgroundOverlay","useBackdropStyles","nested","colorTransparentBackground","useOverlayDrawerSurfaceStyles_unstable","state","backdropResetStyles","backdropStyles","backdrop","className","isNestedDialog"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,eAAe,EAAEC,UAAU,EAAEC,YAAY,QAAQ,iBAAiB;AAC3E,SAASC,MAAM,QAAQ,wBAAwB;AAG/C;;CAEC,GACD,MAAMC,yBAAyBJ,gBAAgB;IAC7CK,OAAO;IACPC,UAAU;IACVC,iBAAiBJ,OAAOK,sBAAsB;AAChD;AAEA,MAAMC,oBAAoBR,WAAW;IACnCS,QAAQ;QACNH,iBAAiBJ,OAAOQ,0BAA0B;IACpD;AACF;AAEA;;CAEC,GACD,OAAO,MAAMC,yCAAyC,CAACC;IACrD;IAEA,MAAMC,sBAAsBV;IAC5B,MAAMW,iBAAiBN;IAEvB,IAAII,MAAMG,QAAQ,EAAE;QAClBH,MAAMG,QAAQ,CAACC,SAAS,GAAGf,aACzBY,qBACAD,MAAMK,cAAc,IAAIH,eAAeL,MAAM,EAC7CG,MAAMG,QAAQ,CAACC,SAAS;IAE5B;IAEA,OAAOJ;AACT,EAAE"}
@@ -0,0 +1,44 @@
1
+ import * as React from 'react';
2
+ import { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';
3
+ import { createFocusOutlineStyle } from '@fluentui/react-tabster';
4
+ import { drawerCSSVars, drawerDefaultStyles, useDrawerBaseClassNames } from '../../shared/useDrawerBaseStyles.styles';
5
+ export const overlayDrawerClassNames = {
6
+ root: 'fui-OverlayDrawer',
7
+ backdrop: 'fui-OverlayDrawer__backdrop'
8
+ };
9
+ /**
10
+ * Styles for the root slot
11
+ */ const useDrawerResetStyles = makeResetStyles({
12
+ ...createFocusOutlineStyle(),
13
+ ...drawerDefaultStyles,
14
+ position: 'fixed',
15
+ top: 0,
16
+ bottom: 0
17
+ });
18
+ const useDrawerRootStyles = makeStyles({
19
+ /* Positioning */ start: {},
20
+ end: {},
21
+ bottom: {
22
+ top: 'auto',
23
+ height: `var(${drawerCSSVars.drawerSizeVar})`,
24
+ width: '100vw'
25
+ },
26
+ absolute: {
27
+ position: 'absolute'
28
+ }
29
+ });
30
+ /**
31
+ * Apply styling to the OverlayDrawer slots based on the state
32
+ */ export const useOverlayDrawerStyles_unstable = (state)=>{
33
+ 'use no memo';
34
+ const baseClassNames = useDrawerBaseClassNames(state);
35
+ const resetStyles = useDrawerResetStyles();
36
+ const rootStyles = useDrawerRootStyles();
37
+ const absoluteStyles = state.hasMountNodeElement && rootStyles.absolute;
38
+ const backdrop = state.root.backdrop;
39
+ state.root.className = mergeClasses(overlayDrawerClassNames.root, baseClassNames, resetStyles, rootStyles[state.position], absoluteStyles, state.root.className);
40
+ if (backdrop) {
41
+ backdrop.className = mergeClasses(overlayDrawerClassNames.backdrop, absoluteStyles, backdrop.className);
42
+ }
43
+ return state;
44
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/OverlayDrawer/useOverlayDrawerStyles.styles.ts"],"sourcesContent":["import * as React from 'react';\nimport { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { createFocusOutlineStyle } from '@fluentui/react-tabster';\n\nimport type { OverlayDrawerState } from './OverlayDrawer.types';\nimport { OverlayDrawerSurfaceSlots } from './OverlayDrawerSurface/OverlayDrawerSurface.types';\nimport { drawerCSSVars, drawerDefaultStyles, useDrawerBaseClassNames } from '../../shared/useDrawerBaseStyles.styles';\n\nexport const overlayDrawerClassNames: SlotClassNames<Omit<OverlayDrawerSurfaceSlots, 'backdropMotion'>> = {\n root: 'fui-OverlayDrawer',\n backdrop: 'fui-OverlayDrawer__backdrop',\n};\n\n/**\n * Styles for the root slot\n */\nconst useDrawerResetStyles = makeResetStyles({\n ...createFocusOutlineStyle(),\n ...drawerDefaultStyles,\n position: 'fixed',\n top: 0,\n bottom: 0,\n});\n\nconst useDrawerRootStyles = makeStyles({\n /* Positioning */\n start: {},\n end: {},\n bottom: {\n top: 'auto',\n height: `var(${drawerCSSVars.drawerSizeVar})`,\n width: '100vw',\n },\n absolute: {\n position: 'absolute',\n },\n});\n\n/**\n * Apply styling to the OverlayDrawer slots based on the state\n */\nexport const useOverlayDrawerStyles_unstable = (state: OverlayDrawerState): OverlayDrawerState => {\n 'use no memo';\n\n const baseClassNames = useDrawerBaseClassNames(state);\n const resetStyles = useDrawerResetStyles();\n const rootStyles = useDrawerRootStyles();\n\n const absoluteStyles = state.hasMountNodeElement && rootStyles.absolute;\n const backdrop = state.root.backdrop as React.HTMLAttributes<HTMLDivElement> | undefined;\n\n state.root.className = mergeClasses(\n overlayDrawerClassNames.root,\n baseClassNames,\n resetStyles,\n rootStyles[state.position],\n absoluteStyles,\n state.root.className,\n );\n\n if (backdrop) {\n backdrop.className = mergeClasses(overlayDrawerClassNames.backdrop, absoluteStyles, backdrop.className);\n }\n\n return state;\n};\n"],"names":["React","makeResetStyles","makeStyles","mergeClasses","createFocusOutlineStyle","drawerCSSVars","drawerDefaultStyles","useDrawerBaseClassNames","overlayDrawerClassNames","root","backdrop","useDrawerResetStyles","position","top","bottom","useDrawerRootStyles","start","end","height","drawerSizeVar","width","absolute","useOverlayDrawerStyles_unstable","state","baseClassNames","resetStyles","rootStyles","absoluteStyles","hasMountNodeElement","className"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,eAAe,EAAEC,UAAU,EAAEC,YAAY,QAAQ,iBAAiB;AAE3E,SAASC,uBAAuB,QAAQ,0BAA0B;AAIlE,SAASC,aAAa,EAAEC,mBAAmB,EAAEC,uBAAuB,QAAQ,0CAA0C;AAEtH,OAAO,MAAMC,0BAA6F;IACxGC,MAAM;IACNC,UAAU;AACZ,EAAE;AAEF;;CAEC,GACD,MAAMC,uBAAuBV,gBAAgB;IAC3C,GAAGG,yBAAyB;IAC5B,GAAGE,mBAAmB;IACtBM,UAAU;IACVC,KAAK;IACLC,QAAQ;AACV;AAEA,MAAMC,sBAAsBb,WAAW;IACrC,eAAe,GACfc,OAAO,CAAC;IACRC,KAAK,CAAC;IACNH,QAAQ;QACND,KAAK;QACLK,QAAQ,CAAC,IAAI,EAAEb,cAAcc,aAAa,CAAC,CAAC,CAAC;QAC7CC,OAAO;IACT;IACAC,UAAU;QACRT,UAAU;IACZ;AACF;AAEA;;CAEC,GACD,OAAO,MAAMU,kCAAkC,CAACC;IAC9C;IAEA,MAAMC,iBAAiBjB,wBAAwBgB;IAC/C,MAAME,cAAcd;IACpB,MAAMe,aAAaX;IAEnB,MAAMY,iBAAiBJ,MAAMK,mBAAmB,IAAIF,WAAWL,QAAQ;IACvE,MAAMX,WAAWa,MAAMd,IAAI,CAACC,QAAQ;IAEpCa,MAAMd,IAAI,CAACoB,SAAS,GAAG1B,aACrBK,wBAAwBC,IAAI,EAC5Be,gBACAC,aACAC,UAAU,CAACH,MAAMX,QAAQ,CAAC,EAC1Be,gBACAJ,MAAMd,IAAI,CAACoB,SAAS;IAGtB,IAAInB,UAAU;QACZA,SAASmB,SAAS,GAAG1B,aAAaK,wBAAwBE,QAAQ,EAAEiB,gBAAgBjB,SAASmB,SAAS;IACxG;IAEA,OAAON;AACT,EAAE"}
@@ -0,0 +1,72 @@
1
+ import { makeStyles, mergeClasses } from '@griffel/react';
2
+ import { tokens } from '@fluentui/react-theme';
3
+ /**
4
+ * CSS variable names used internally for uniform styling in Drawer.
5
+ */ export const drawerCSSVars = {
6
+ drawerSizeVar: '--fui-Drawer--size'
7
+ };
8
+ /**
9
+ * Default shared styles for the Drawer component
10
+ */ export const drawerDefaultStyles = {
11
+ overflow: 'hidden',
12
+ width: `var(${drawerCSSVars.drawerSizeVar})`,
13
+ maxWidth: '100vw',
14
+ height: 'auto',
15
+ maxHeight: '100vh',
16
+ boxSizing: 'border-box',
17
+ display: 'flex',
18
+ flexDirection: 'column',
19
+ alignItems: 'flex-start',
20
+ justifyContent: 'flex-start',
21
+ backgroundColor: tokens.colorNeutralBackground1,
22
+ color: tokens.colorNeutralForeground1
23
+ };
24
+ /**
25
+ * Shared dynamic styles for the Drawer component
26
+ */ const useDrawerStyles = makeStyles({
27
+ /* Positioning */ start: {
28
+ borderRight: `${tokens.strokeWidthThin} solid ${tokens.colorTransparentStroke}`,
29
+ left: 0,
30
+ right: 'auto'
31
+ },
32
+ end: {
33
+ borderLeft: `${tokens.strokeWidthThin} solid ${tokens.colorTransparentStroke}`,
34
+ right: 0,
35
+ left: 'auto'
36
+ },
37
+ bottom: {
38
+ bottom: 0,
39
+ top: 'auto'
40
+ },
41
+ /* Sizes */ small: {
42
+ [drawerCSSVars.drawerSizeVar]: '320px'
43
+ },
44
+ medium: {
45
+ [drawerCSSVars.drawerSizeVar]: '592px'
46
+ },
47
+ large: {
48
+ [drawerCSSVars.drawerSizeVar]: '940px'
49
+ },
50
+ full: {
51
+ [drawerCSSVars.drawerSizeVar]: '100vw'
52
+ }
53
+ });
54
+ export const useDrawerBottomBaseStyles = makeStyles({
55
+ /* Sizes for position bottom */ small: {
56
+ [drawerCSSVars.drawerSizeVar]: '320px'
57
+ },
58
+ medium: {
59
+ [drawerCSSVars.drawerSizeVar]: '592px'
60
+ },
61
+ large: {
62
+ [drawerCSSVars.drawerSizeVar]: '940px'
63
+ },
64
+ full: {
65
+ [drawerCSSVars.drawerSizeVar]: '100%'
66
+ }
67
+ });
68
+ export const useDrawerBaseClassNames = ({ position, size })=>{
69
+ const baseStyles = useDrawerStyles();
70
+ const bottomBaseStyles = useDrawerBottomBaseStyles();
71
+ return mergeClasses(baseStyles[position], position === 'bottom' && bottomBaseStyles[size], position !== 'bottom' && baseStyles[size]);
72
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/shared/useDrawerBaseStyles.styles.ts"],"sourcesContent":["import { type GriffelResetStyle, makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\n\nimport { DrawerBaseState } from './DrawerBase.types';\n\n/**\n * CSS variable names used internally for uniform styling in Drawer.\n */\nexport const drawerCSSVars = {\n drawerSizeVar: '--fui-Drawer--size',\n};\n\n/**\n * Default shared styles for the Drawer component\n */\nexport const drawerDefaultStyles: GriffelResetStyle = {\n overflow: 'hidden',\n\n width: `var(${drawerCSSVars.drawerSizeVar})`,\n maxWidth: '100vw',\n height: 'auto',\n maxHeight: '100vh',\n boxSizing: 'border-box',\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n justifyContent: 'flex-start',\n backgroundColor: tokens.colorNeutralBackground1,\n color: tokens.colorNeutralForeground1,\n};\n\n/**\n * Shared dynamic styles for the Drawer component\n */\nconst useDrawerStyles = makeStyles({\n /* Positioning */\n start: {\n borderRight: `${tokens.strokeWidthThin} solid ${tokens.colorTransparentStroke}`,\n\n left: 0,\n right: 'auto',\n },\n end: {\n borderLeft: `${tokens.strokeWidthThin} solid ${tokens.colorTransparentStroke}`,\n\n right: 0,\n left: 'auto',\n },\n bottom: {\n bottom: 0,\n top: 'auto',\n },\n\n /* Sizes */\n small: {\n [drawerCSSVars.drawerSizeVar]: '320px',\n },\n medium: {\n [drawerCSSVars.drawerSizeVar]: '592px',\n },\n large: {\n [drawerCSSVars.drawerSizeVar]: '940px',\n },\n full: {\n [drawerCSSVars.drawerSizeVar]: '100vw',\n },\n});\n\nexport const useDrawerBottomBaseStyles = makeStyles({\n /* Sizes for position bottom */\n small: {\n [drawerCSSVars.drawerSizeVar]: '320px',\n },\n medium: {\n [drawerCSSVars.drawerSizeVar]: '592px',\n },\n large: {\n [drawerCSSVars.drawerSizeVar]: '940px',\n },\n full: {\n [drawerCSSVars.drawerSizeVar]: '100%',\n },\n});\n\nexport const useDrawerBaseClassNames = ({ position, size }: DrawerBaseState) => {\n const baseStyles = useDrawerStyles();\n const bottomBaseStyles = useDrawerBottomBaseStyles();\n\n return mergeClasses(\n baseStyles[position],\n position === 'bottom' && bottomBaseStyles[size],\n position !== 'bottom' && baseStyles[size],\n );\n};\n"],"names":["makeStyles","mergeClasses","tokens","drawerCSSVars","drawerSizeVar","drawerDefaultStyles","overflow","width","maxWidth","height","maxHeight","boxSizing","display","flexDirection","alignItems","justifyContent","backgroundColor","colorNeutralBackground1","color","colorNeutralForeground1","useDrawerStyles","start","borderRight","strokeWidthThin","colorTransparentStroke","left","right","end","borderLeft","bottom","top","small","medium","large","full","useDrawerBottomBaseStyles","useDrawerBaseClassNames","position","size","baseStyles","bottomBaseStyles"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAAiCA,UAAU,EAAEC,YAAY,QAAQ,iBAAiB;AAClF,SAASC,MAAM,QAAQ,wBAAwB;AAI/C;;CAEC,GACD,OAAO,MAAMC,gBAAgB;IAC3BC,eAAe;AACjB,EAAE;AAEF;;CAEC,GACD,OAAO,MAAMC,sBAAyC;IACpDC,UAAU;IAEVC,OAAO,CAAC,IAAI,EAAEJ,cAAcC,aAAa,CAAC,CAAC,CAAC;IAC5CI,UAAU;IACVC,QAAQ;IACRC,WAAW;IACXC,WAAW;IACXC,SAAS;IACTC,eAAe;IACfC,YAAY;IACZC,gBAAgB;IAChBC,iBAAiBd,OAAOe,uBAAuB;IAC/CC,OAAOhB,OAAOiB,uBAAuB;AACvC,EAAE;AAEF;;CAEC,GACD,MAAMC,kBAAkBpB,WAAW;IACjC,eAAe,GACfqB,OAAO;QACLC,aAAa,CAAC,EAAEpB,OAAOqB,eAAe,CAAC,OAAO,EAAErB,OAAOsB,sBAAsB,CAAC,CAAC;QAE/EC,MAAM;QACNC,OAAO;IACT;IACAC,KAAK;QACHC,YAAY,CAAC,EAAE1B,OAAOqB,eAAe,CAAC,OAAO,EAAErB,OAAOsB,sBAAsB,CAAC,CAAC;QAE9EE,OAAO;QACPD,MAAM;IACR;IACAI,QAAQ;QACNA,QAAQ;QACRC,KAAK;IACP;IAEA,SAAS,GACTC,OAAO;QACL,CAAC5B,cAAcC,aAAa,CAAC,EAAE;IACjC;IACA4B,QAAQ;QACN,CAAC7B,cAAcC,aAAa,CAAC,EAAE;IACjC;IACA6B,OAAO;QACL,CAAC9B,cAAcC,aAAa,CAAC,EAAE;IACjC;IACA8B,MAAM;QACJ,CAAC/B,cAAcC,aAAa,CAAC,EAAE;IACjC;AACF;AAEA,OAAO,MAAM+B,4BAA4BnC,WAAW;IAClD,6BAA6B,GAC7B+B,OAAO;QACL,CAAC5B,cAAcC,aAAa,CAAC,EAAE;IACjC;IACA4B,QAAQ;QACN,CAAC7B,cAAcC,aAAa,CAAC,EAAE;IACjC;IACA6B,OAAO;QACL,CAAC9B,cAAcC,aAAa,CAAC,EAAE;IACjC;IACA8B,MAAM;QACJ,CAAC/B,cAAcC,aAAa,CAAC,EAAE;IACjC;AACF,GAAG;AAEH,OAAO,MAAMgC,0BAA0B,CAAC,EAAEC,QAAQ,EAAEC,IAAI,EAAmB;IACzE,MAAMC,aAAanB;IACnB,MAAMoB,mBAAmBL;IAEzB,OAAOlC,aACLsC,UAAU,CAACF,SAAS,EACpBA,aAAa,YAAYG,gBAAgB,CAACF,KAAK,EAC/CD,aAAa,YAAYE,UAAU,CAACD,KAAK;AAE7C,EAAE"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ drawerClassNames: function() {
13
+ return drawerClassNames;
14
+ },
15
+ useDrawerStyles_unstable: function() {
16
+ return useDrawerStyles_unstable;
17
+ }
18
+ });
19
+ const _react = require("@griffel/react");
20
+ const drawerClassNames = {
21
+ root: 'fui-Drawer'
22
+ };
23
+ const useDrawerStyles_unstable = (state)=>{
24
+ 'use no memo';
25
+ state.root.className = (0, _react.mergeClasses)(drawerClassNames.root, state.root.className);
26
+ return state;
27
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/Drawer/useDrawerStyles.styles.ts"],"sourcesContent":["import { mergeClasses } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nimport type { DrawerSlots, DrawerState } from './Drawer.types';\n\nexport const drawerClassNames: SlotClassNames<Omit<DrawerSlots, 'surfaceMotion'>> = {\n root: 'fui-Drawer',\n};\n\n/**\n * Apply styling to the Drawer slots based on the state\n */\nexport const useDrawerStyles_unstable = (state: DrawerState): DrawerState => {\n 'use no memo';\n\n state.root.className = mergeClasses(drawerClassNames.root, state.root.className);\n\n return state;\n};\n"],"names":["drawerClassNames","useDrawerStyles_unstable","root","state","className","mergeClasses"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAKaA,gBAAAA;eAAAA;;IAOAC,wBAAAA;eAAAA;;;uBAZgB;AAKtB,MAAMD,mBAAuE;IAClFE,MAAM;AACR;AAKO,MAAMD,2BAA2B,CAACE;IACvC;IAEAA,MAAMD,IAAI,CAACE,SAAS,GAAGC,IAAAA,mBAAAA,EAAaL,iBAAiBE,IAAI,EAAEC,MAAMD,IAAI,CAACE,SAAS;IAE/E,OAAOD;AACT"}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ drawerBodyClassNames: function() {
13
+ return drawerBodyClassNames;
14
+ },
15
+ useDrawerBodyStyles_unstable: function() {
16
+ return useDrawerBodyStyles_unstable;
17
+ }
18
+ });
19
+ const _react = require("@griffel/react");
20
+ const _reacttheme = require("@fluentui/react-theme");
21
+ const drawerBodyClassNames = {
22
+ root: 'fui-DrawerBody'
23
+ };
24
+ /**
25
+ * Styles for the root slot
26
+ */ const useStyles = (0, _react.makeResetStyles)({
27
+ padding: `0 ${_reacttheme.tokens.spacingHorizontalXXL}`,
28
+ flex: 1,
29
+ alignSelf: 'stretch',
30
+ position: 'relative',
31
+ zIndex: 1,
32
+ overflow: 'auto',
33
+ ':last-child': {
34
+ paddingBottom: `calc(${_reacttheme.tokens.spacingHorizontalXXL} + 1px)`
35
+ },
36
+ ':first-child': {
37
+ paddingTop: `calc(${_reacttheme.tokens.spacingHorizontalXXL} + 1px)`
38
+ }
39
+ });
40
+ const useDrawerBodyStyles_unstable = (state)=>{
41
+ 'use no memo';
42
+ const styles = useStyles();
43
+ state.root.className = (0, _react.mergeClasses)(drawerBodyClassNames.root, styles, state.root.className);
44
+ return state;
45
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/DrawerBody/useDrawerBodyStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nimport type { DrawerBodySlots, DrawerBodyState } from './DrawerBody.types';\n\nexport const drawerBodyClassNames: SlotClassNames<DrawerBodySlots> = {\n root: 'fui-DrawerBody',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeResetStyles({\n padding: `0 ${tokens.spacingHorizontalXXL}`,\n flex: 1,\n alignSelf: 'stretch',\n position: 'relative',\n zIndex: 1,\n overflow: 'auto',\n\n ':last-child': {\n paddingBottom: `calc(${tokens.spacingHorizontalXXL} + 1px)`,\n },\n\n ':first-child': {\n paddingTop: `calc(${tokens.spacingHorizontalXXL} + 1px)`,\n },\n});\n\n/**\n * Apply styling to the DrawerBody slots based on the state\n */\nexport const useDrawerBodyStyles_unstable = (state: DrawerBodyState): DrawerBodyState => {\n 'use no memo';\n\n const styles = useStyles();\n\n state.root.className = mergeClasses(drawerBodyClassNames.root, styles, state.root.className);\n\n return state;\n};\n"],"names":["drawerBodyClassNames","useDrawerBodyStyles_unstable","root","useStyles","makeResetStyles","padding","tokens","spacingHorizontalXXL","flex","alignSelf","position","zIndex","overflow","paddingBottom","paddingTop","state","styles","className","mergeClasses"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAMaA,oBAAAA;eAAAA;;IA2BAC,4BAAAA;eAAAA;;;uBAjCiC;4BACvB;AAKhB,MAAMD,uBAAwD;IACnEE,MAAM;AACR;AAEA;;CAEC,GACD,MAAMC,YAAYC,IAAAA,sBAAAA,EAAgB;IAChCC,SAAS,CAAC,EAAE,EAAEC,kBAAAA,CAAOC,oBAAoB,CAAC,CAAC;IAC3CC,MAAM;IACNC,WAAW;IACXC,UAAU;IACVC,QAAQ;IACRC,UAAU;IAEV,eAAe;QACbC,eAAe,CAAC,KAAK,EAAEP,kBAAAA,CAAOC,oBAAoB,CAAC,OAAO,CAAC;IAC7D;IAEA,gBAAgB;QACdO,YAAY,CAAC,KAAK,EAAER,kBAAAA,CAAOC,oBAAoB,CAAC,OAAO,CAAC;IAC1D;AACF;AAKO,MAAMN,+BAA+B,CAACc;IAC3C;IAEA,MAAMC,SAASb;IAEfY,MAAMb,IAAI,CAACe,SAAS,GAAGC,IAAAA,mBAAAA,EAAalB,qBAAqBE,IAAI,EAAEc,QAAQD,MAAMb,IAAI,CAACe,SAAS;IAE3F,OAAOF;AACT"}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ drawerFooterClassNames: function() {
13
+ return drawerFooterClassNames;
14
+ },
15
+ useDrawerFooterStyles_unstable: function() {
16
+ return useDrawerFooterStyles_unstable;
17
+ }
18
+ });
19
+ const _react = require("@griffel/react");
20
+ const _reacttheme = require("@fluentui/react-theme");
21
+ const _drawerSeparatorStyles = require("../../shared/drawerSeparatorStyles");
22
+ const drawerFooterClassNames = {
23
+ root: 'fui-DrawerFooter'
24
+ };
25
+ /**
26
+ * Styles for the root slot
27
+ */ const useStyles = (0, _react.makeResetStyles)({
28
+ width: '100%',
29
+ maxWidth: '100%',
30
+ padding: `${_reacttheme.tokens.spacingVerticalL} ${_reacttheme.tokens.spacingHorizontalXXL} ${_reacttheme.tokens.spacingVerticalXXL}`,
31
+ display: 'flex',
32
+ justifyContent: 'flex-start',
33
+ alignItems: 'center',
34
+ columnGap: _reacttheme.tokens.spacingHorizontalS,
35
+ boxSizing: 'border-box',
36
+ position: 'relative',
37
+ zIndex: 2
38
+ });
39
+ const useDrawerFooterStyles = (0, _react.makeStyles)({
40
+ separator: {
41
+ '::before': {
42
+ ..._drawerSeparatorStyles.drawerSeparatorStyles,
43
+ top: 0
44
+ }
45
+ },
46
+ separatorVisible: {
47
+ '::before': {
48
+ opacity: 1
49
+ }
50
+ }
51
+ });
52
+ const useDrawerFooterStyles_unstable = (state)=>{
53
+ 'use no memo';
54
+ const styles = useStyles();
55
+ const rootStyles = useDrawerFooterStyles();
56
+ state.root.className = (0, _react.mergeClasses)(drawerFooterClassNames.root, styles, state.scrollState !== 'none' && rootStyles.separator, [
57
+ 'middle',
58
+ 'top'
59
+ ].includes(state.scrollState) && rootStyles.separatorVisible, state.root.className);
60
+ return state;
61
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/DrawerFooter/useDrawerFooterStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nimport { drawerSeparatorStyles } from '../../shared/drawerSeparatorStyles';\n\nimport type { DrawerFooterSlots, DrawerFooterState } from './DrawerFooter.types';\n\nexport const drawerFooterClassNames: SlotClassNames<DrawerFooterSlots> = {\n root: 'fui-DrawerFooter',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeResetStyles({\n width: '100%',\n maxWidth: '100%',\n padding: `${tokens.spacingVerticalL} ${tokens.spacingHorizontalXXL} ${tokens.spacingVerticalXXL}`,\n display: 'flex',\n justifyContent: 'flex-start',\n alignItems: 'center',\n columnGap: tokens.spacingHorizontalS,\n boxSizing: 'border-box',\n position: 'relative',\n zIndex: 2,\n});\n\nconst useDrawerFooterStyles = makeStyles({\n separator: {\n '::before': {\n ...drawerSeparatorStyles,\n top: 0,\n },\n },\n\n separatorVisible: {\n '::before': {\n opacity: 1,\n },\n },\n});\n\n/**\n * Apply styling to the DrawerFooter slots based on the state\n */\nexport const useDrawerFooterStyles_unstable = (state: DrawerFooterState): DrawerFooterState => {\n 'use no memo';\n\n const styles = useStyles();\n const rootStyles = useDrawerFooterStyles();\n\n state.root.className = mergeClasses(\n drawerFooterClassNames.root,\n styles,\n state.scrollState !== 'none' && rootStyles.separator,\n ['middle', 'top'].includes(state.scrollState) && rootStyles.separatorVisible,\n state.root.className,\n );\n\n return state;\n};\n"],"names":["drawerFooterClassNames","useDrawerFooterStyles_unstable","root","useStyles","makeResetStyles","width","maxWidth","padding","tokens","spacingVerticalL","spacingHorizontalXXL","spacingVerticalXXL","display","justifyContent","alignItems","columnGap","spacingHorizontalS","boxSizing","position","zIndex","useDrawerFooterStyles","makeStyles","separator","drawerSeparatorStyles","top","separatorVisible","opacity","state","styles","rootStyles","className","mergeClasses","scrollState","includes"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAQaA,sBAAAA;eAAAA;;IAsCAC,8BAAAA;eAAAA;;;uBA9C6C;4BACnC;uCAGe;AAI/B,MAAMD,yBAA4D;IACvEE,MAAM;AACR;AAEA;;CAEC,GACD,MAAMC,YAAYC,IAAAA,sBAAAA,EAAgB;IAChCC,OAAO;IACPC,UAAU;IACVC,SAAS,CAAC,EAAEC,kBAAAA,CAAOC,gBAAgB,CAAC,CAAC,EAAED,kBAAAA,CAAOE,oBAAoB,CAAC,CAAC,EAAEF,kBAAAA,CAAOG,kBAAkB,CAAC,CAAC;IACjGC,SAAS;IACTC,gBAAgB;IAChBC,YAAY;IACZC,WAAWP,kBAAAA,CAAOQ,kBAAkB;IACpCC,WAAW;IACXC,UAAU;IACVC,QAAQ;AACV;AAEA,MAAMC,wBAAwBC,IAAAA,iBAAAA,EAAW;IACvCC,WAAW;QACT,YAAY;YACV,GAAGC,4CAAqB;YACxBC,KAAK;QACP;IACF;IAEAC,kBAAkB;QAChB,YAAY;YACVC,SAAS;QACX;IACF;AACF;AAKO,MAAMzB,iCAAiC,CAAC0B;IAC7C;IAEA,MAAMC,SAASzB;IACf,MAAM0B,aAAaT;IAEnBO,MAAMzB,IAAI,CAAC4B,SAAS,GAAGC,IAAAA,mBAAAA,EACrB/B,uBAAuBE,IAAI,EAC3B0B,QACAD,MAAMK,WAAW,KAAK,UAAUH,WAAWP,SAAS,EACpD;QAAC;QAAU;KAAM,CAACW,QAAQ,CAACN,MAAMK,WAAW,KAAKH,WAAWJ,gBAAgB,EAC5EE,MAAMzB,IAAI,CAAC4B,SAAS;IAGtB,OAAOH;AACT"}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ drawerHeaderClassNames: function() {
13
+ return drawerHeaderClassNames;
14
+ },
15
+ useDrawerHeaderStyles_unstable: function() {
16
+ return useDrawerHeaderStyles_unstable;
17
+ }
18
+ });
19
+ const _react = require("@griffel/react");
20
+ const _reacttheme = require("@fluentui/react-theme");
21
+ const _drawerSeparatorStyles = require("../../shared/drawerSeparatorStyles");
22
+ const drawerHeaderClassNames = {
23
+ root: 'fui-DrawerHeader'
24
+ };
25
+ /**
26
+ * Styles for the root slot
27
+ */ const useStyles = (0, _react.makeResetStyles)({
28
+ width: '100%',
29
+ maxWidth: '100%',
30
+ padding: `${_reacttheme.tokens.spacingVerticalXXL} ${_reacttheme.tokens.spacingHorizontalXXL} ${_reacttheme.tokens.spacingVerticalS}`,
31
+ gap: _reacttheme.tokens.spacingHorizontalS,
32
+ alignSelf: 'stretch',
33
+ display: 'flex',
34
+ flexDirection: 'column',
35
+ boxSizing: 'border-box',
36
+ position: 'relative',
37
+ zIndex: 2
38
+ });
39
+ const useDrawerHeaderStyles = (0, _react.makeStyles)({
40
+ separator: {
41
+ '::after': {
42
+ ..._drawerSeparatorStyles.drawerSeparatorStyles,
43
+ bottom: 0
44
+ }
45
+ },
46
+ separatorVisible: {
47
+ '::after': {
48
+ opacity: 1
49
+ }
50
+ }
51
+ });
52
+ const useDrawerHeaderStyles_unstable = (state)=>{
53
+ 'use no memo';
54
+ const styles = useStyles();
55
+ const rootStyles = useDrawerHeaderStyles();
56
+ state.root.className = (0, _react.mergeClasses)(drawerHeaderClassNames.root, styles, state.scrollState !== 'none' && rootStyles.separator, [
57
+ 'middle',
58
+ 'bottom'
59
+ ].includes(state.scrollState) && rootStyles.separatorVisible, state.root.className);
60
+ return state;
61
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/DrawerHeader/useDrawerHeaderStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nimport { drawerSeparatorStyles } from '../../shared/drawerSeparatorStyles';\n\nimport type { DrawerHeaderSlots, DrawerHeaderState } from './DrawerHeader.types';\n\nexport const drawerHeaderClassNames: SlotClassNames<DrawerHeaderSlots> = {\n root: 'fui-DrawerHeader',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeResetStyles({\n width: '100%',\n maxWidth: '100%',\n padding: `${tokens.spacingVerticalXXL} ${tokens.spacingHorizontalXXL} ${tokens.spacingVerticalS}`,\n gap: tokens.spacingHorizontalS,\n alignSelf: 'stretch',\n display: 'flex',\n flexDirection: 'column',\n boxSizing: 'border-box',\n position: 'relative',\n zIndex: 2,\n});\n\nconst useDrawerHeaderStyles = makeStyles({\n separator: {\n '::after': {\n ...drawerSeparatorStyles,\n bottom: 0,\n },\n },\n\n separatorVisible: {\n '::after': {\n opacity: 1,\n },\n },\n});\n\n/**\n * Apply styling to the DrawerHeader slots based on the state\n */\nexport const useDrawerHeaderStyles_unstable = (state: DrawerHeaderState): DrawerHeaderState => {\n 'use no memo';\n\n const styles = useStyles();\n const rootStyles = useDrawerHeaderStyles();\n\n state.root.className = mergeClasses(\n drawerHeaderClassNames.root,\n styles,\n state.scrollState !== 'none' && rootStyles.separator,\n ['middle', 'bottom'].includes(state.scrollState) && rootStyles.separatorVisible,\n state.root.className,\n );\n\n return state;\n};\n"],"names":["drawerHeaderClassNames","useDrawerHeaderStyles_unstable","root","useStyles","makeResetStyles","width","maxWidth","padding","tokens","spacingVerticalXXL","spacingHorizontalXXL","spacingVerticalS","gap","spacingHorizontalS","alignSelf","display","flexDirection","boxSizing","position","zIndex","useDrawerHeaderStyles","makeStyles","separator","drawerSeparatorStyles","bottom","separatorVisible","opacity","state","styles","rootStyles","className","mergeClasses","scrollState","includes"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAQaA,sBAAAA;eAAAA;;IAsCAC,8BAAAA;eAAAA;;;uBA9C6C;4BACnC;uCAGe;AAI/B,MAAMD,yBAA4D;IACvEE,MAAM;AACR;AAEA;;CAEC,GACD,MAAMC,YAAYC,IAAAA,sBAAAA,EAAgB;IAChCC,OAAO;IACPC,UAAU;IACVC,SAAS,CAAC,EAAEC,kBAAAA,CAAOC,kBAAkB,CAAC,CAAC,EAAED,kBAAAA,CAAOE,oBAAoB,CAAC,CAAC,EAAEF,kBAAAA,CAAOG,gBAAgB,CAAC,CAAC;IACjGC,KAAKJ,kBAAAA,CAAOK,kBAAkB;IAC9BC,WAAW;IACXC,SAAS;IACTC,eAAe;IACfC,WAAW;IACXC,UAAU;IACVC,QAAQ;AACV;AAEA,MAAMC,wBAAwBC,IAAAA,iBAAAA,EAAW;IACvCC,WAAW;QACT,WAAW;YACT,GAAGC,4CAAqB;YACxBC,QAAQ;QACV;IACF;IAEAC,kBAAkB;QAChB,WAAW;YACTC,SAAS;QACX;IACF;AACF;AAKO,MAAMzB,iCAAiC,CAAC0B;IAC7C;IAEA,MAAMC,SAASzB;IACf,MAAM0B,aAAaT;IAEnBO,MAAMzB,IAAI,CAAC4B,SAAS,GAAGC,IAAAA,mBAAAA,EACrB/B,uBAAuBE,IAAI,EAC3B0B,QACAD,MAAMK,WAAW,KAAK,UAAUH,WAAWP,SAAS,EACpD;QAAC;QAAU;KAAS,CAACW,QAAQ,CAACN,MAAMK,WAAW,KAAKH,WAAWJ,gBAAgB,EAC/EE,MAAMzB,IAAI,CAAC4B,SAAS;IAGtB,OAAOH;AACT"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ drawerHeaderNavigationClassNames: function() {
13
+ return drawerHeaderNavigationClassNames;
14
+ },
15
+ useDrawerHeaderNavigationStyles_unstable: function() {
16
+ return useDrawerHeaderNavigationStyles_unstable;
17
+ }
18
+ });
19
+ const _react = require("@griffel/react");
20
+ const _reacttheme = require("@fluentui/react-theme");
21
+ const drawerHeaderNavigationClassNames = {
22
+ root: 'fui-DrawerHeaderNavigation'
23
+ };
24
+ /**
25
+ * Styles for the root slot
26
+ */ const useStyles = (0, _react.makeResetStyles)({
27
+ margin: `calc(${_reacttheme.tokens.spacingVerticalS} * -1) calc(${_reacttheme.tokens.spacingHorizontalL} * -1)`
28
+ });
29
+ const useDrawerHeaderNavigationStyles_unstable = (state)=>{
30
+ 'use no memo';
31
+ const styles = useStyles();
32
+ state.root.className = (0, _react.mergeClasses)(drawerHeaderNavigationClassNames.root, styles, state.root.className);
33
+ return state;
34
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/DrawerHeaderNavigation/useDrawerHeaderNavigationStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nimport type { DrawerHeaderNavigationSlots, DrawerHeaderNavigationState } from './DrawerHeaderNavigation.types';\n\nexport const drawerHeaderNavigationClassNames: SlotClassNames<DrawerHeaderNavigationSlots> = {\n root: 'fui-DrawerHeaderNavigation',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeResetStyles({\n margin: `calc(${tokens.spacingVerticalS} * -1) calc(${tokens.spacingHorizontalL} * -1)`,\n});\n\n/**\n * Apply styling to the DrawerHeaderNavigation slots based on the state\n */\nexport const useDrawerHeaderNavigationStyles_unstable = (\n state: DrawerHeaderNavigationState,\n): DrawerHeaderNavigationState => {\n 'use no memo';\n\n const styles = useStyles();\n\n state.root.className = mergeClasses(drawerHeaderNavigationClassNames.root, styles, state.root.className);\n\n return state;\n};\n"],"names":["drawerHeaderNavigationClassNames","useDrawerHeaderNavigationStyles_unstable","root","useStyles","makeResetStyles","margin","tokens","spacingVerticalS","spacingHorizontalL","state","styles","className","mergeClasses"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAMaA,gCAAAA;eAAAA;;IAcAC,wCAAAA;eAAAA;;;uBApBiC;4BACvB;AAKhB,MAAMD,mCAAgF;IAC3FE,MAAM;AACR;AAEA;;CAEC,GACD,MAAMC,YAAYC,IAAAA,sBAAAA,EAAgB;IAChCC,QAAQ,CAAC,KAAK,EAAEC,kBAAAA,CAAOC,gBAAgB,CAAC,YAAY,EAAED,kBAAAA,CAAOE,kBAAkB,CAAC,MAAM,CAAC;AACzF;AAKO,MAAMP,2CAA2C,CACtDQ;IAEA;IAEA,MAAMC,SAASP;IAEfM,MAAMP,IAAI,CAACS,SAAS,GAAGC,IAAAA,mBAAAA,EAAaZ,iCAAiCE,IAAI,EAAEQ,QAAQD,MAAMP,IAAI,CAACS,SAAS;IAEvG,OAAOF;AACT"}
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ drawerHeaderTitleClassNames: function() {
13
+ return drawerHeaderTitleClassNames;
14
+ },
15
+ useDrawerHeaderTitleStyles_unstable: function() {
16
+ return useDrawerHeaderTitleStyles_unstable;
17
+ }
18
+ });
19
+ const _react = require("@griffel/react");
20
+ const _reactdialog = require("@fluentui/react-dialog");
21
+ const _reacttheme = require("@fluentui/react-theme");
22
+ const drawerHeaderTitleClassNames = {
23
+ root: 'fui-DrawerHeaderTitle',
24
+ heading: 'fui-DrawerHeaderTitle__heading',
25
+ action: 'fui-DrawerHeaderTitle__action'
26
+ };
27
+ /**
28
+ * Styles for the root slot
29
+ */ const useStyles = (0, _react.makeStyles)({
30
+ root: {
31
+ display: 'flex',
32
+ justifyContent: 'space-between',
33
+ alignItems: 'center',
34
+ columnGap: _reacttheme.tokens.spacingHorizontalS
35
+ },
36
+ action: {
37
+ marginRight: `calc(${_reacttheme.tokens.spacingHorizontalS} * -1)`
38
+ }
39
+ });
40
+ const useDrawerHeaderTitleStyles_unstable = (state)=>{
41
+ 'use no memo';
42
+ const styles = useStyles();
43
+ const { heading: root = {}, action, // but there's no way to retrieve the element type of a slot from the slot definition
44
+ // right now without using SLOT_ELEMENT_TYPE_SYMBOL
45
+ // TODO: create a method to retrieve the element type of a slot
46
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
47
+ components } = state;
48
+ (0, _reactdialog.useDialogTitleStyles_unstable)({
49
+ components: {
50
+ root: components.heading,
51
+ action: components.action
52
+ },
53
+ root,
54
+ action
55
+ });
56
+ state.root.className = (0, _react.mergeClasses)(drawerHeaderTitleClassNames.root, styles.root, state.root.className);
57
+ if (state.heading) {
58
+ state.heading.className = (0, _react.mergeClasses)(drawerHeaderTitleClassNames.heading, state.heading.className);
59
+ }
60
+ if (state.action) {
61
+ state.action.className = (0, _react.mergeClasses)(drawerHeaderTitleClassNames.action, styles.action, state.action.className);
62
+ }
63
+ return state;
64
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/DrawerHeaderTitle/useDrawerHeaderTitleStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { useDialogTitleStyles_unstable } from '@fluentui/react-dialog';\nimport { tokens } from '@fluentui/react-theme';\n\nimport type { DrawerHeaderTitleSlots, DrawerHeaderTitleState } from './DrawerHeaderTitle.types';\n\nexport const drawerHeaderTitleClassNames: SlotClassNames<DrawerHeaderTitleSlots> = {\n root: 'fui-DrawerHeaderTitle',\n heading: 'fui-DrawerHeaderTitle__heading',\n action: 'fui-DrawerHeaderTitle__action',\n};\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n columnGap: tokens.spacingHorizontalS,\n },\n\n action: {\n marginRight: `calc(${tokens.spacingHorizontalS} * -1)`,\n },\n});\n\n/**\n * Apply styling to the DrawerHeaderTitle slots based on the state\n */\nexport const useDrawerHeaderTitleStyles_unstable = (state: DrawerHeaderTitleState): DrawerHeaderTitleState => {\n 'use no memo';\n\n const styles = useStyles();\n\n const {\n heading: root = {},\n action,\n // We should not use components to pass along the base element type of a slot\n // but there's no way to retrieve the element type of a slot from the slot definition\n // right now without using SLOT_ELEMENT_TYPE_SYMBOL\n // TODO: create a method to retrieve the element type of a slot\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 state.root.className = mergeClasses(drawerHeaderTitleClassNames.root, styles.root, state.root.className);\n\n if (state.heading) {\n state.heading.className = mergeClasses(drawerHeaderTitleClassNames.heading, state.heading.className);\n }\n\n if (state.action) {\n state.action.className = mergeClasses(drawerHeaderTitleClassNames.action, styles.action, state.action.className);\n }\n\n return state;\n};\n"],"names":["drawerHeaderTitleClassNames","useDrawerHeaderTitleStyles_unstable","root","heading","action","useStyles","makeStyles","display","justifyContent","alignItems","columnGap","tokens","spacingHorizontalS","marginRight","state","styles","components","useDialogTitleStyles_unstable","className","mergeClasses"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAOaA,2BAAAA;eAAAA;;IAyBAC,mCAAAA;eAAAA;;;uBAhC4B;6BAEK;4BACvB;AAIhB,MAAMD,8BAAsE;IACjFE,MAAM;IACNC,SAAS;IACTC,QAAQ;AACV;AAEA;;CAEC,GACD,MAAMC,YAAYC,IAAAA,iBAAAA,EAAW;IAC3BJ,MAAM;QACJK,SAAS;QACTC,gBAAgB;QAChBC,YAAY;QACZC,WAAWC,kBAAAA,CAAOC,kBAAkB;IACtC;IAEAR,QAAQ;QACNS,aAAa,CAAC,KAAK,EAAEF,kBAAAA,CAAOC,kBAAkB,CAAC,MAAM,CAAC;IACxD;AACF;AAKO,MAAMX,sCAAsC,CAACa;IAClD;IAEA,MAAMC,SAASV;IAEf,MAAM,EACJF,SAASD,OAAO,CAAC,CAAC,EAClBE,MAAM,EAEN,qFAAqF;IACrF,mDAAmD;IACnD,+DAA+D;IAC/D,4DAA4D;IAC5DY,UAAU,EACX,GAAGF;IAEJG,IAAAA,0CAAAA,EAA8B;QAC5BD,YAAY;YACVd,MAAMc,WAAWb,OAAO;YACxBC,QAAQY,WAAWZ,MAAM;QAC3B;QACAF;QACAE;IACF;IAEAU,MAAMZ,IAAI,CAACgB,SAAS,GAAGC,IAAAA,mBAAAA,EAAanB,4BAA4BE,IAAI,EAAEa,OAAOb,IAAI,EAAEY,MAAMZ,IAAI,CAACgB,SAAS;IAEvG,IAAIJ,MAAMX,OAAO,EAAE;QACjBW,MAAMX,OAAO,CAACe,SAAS,GAAGC,IAAAA,mBAAAA,EAAanB,4BAA4BG,OAAO,EAAEW,MAAMX,OAAO,CAACe,SAAS;IACrG;IAEA,IAAIJ,MAAMV,MAAM,EAAE;QAChBU,MAAMV,MAAM,CAACc,SAAS,GAAGC,IAAAA,mBAAAA,EAAanB,4BAA4BI,MAAM,EAAEW,OAAOX,MAAM,EAAEU,MAAMV,MAAM,CAACc,SAAS;IACjH;IAEA,OAAOJ;AACT"}
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ inlineDrawerClassNames: function() {
13
+ return inlineDrawerClassNames;
14
+ },
15
+ useInlineDrawerStyles_unstable: function() {
16
+ return useInlineDrawerStyles_unstable;
17
+ }
18
+ });
19
+ const _react = require("@griffel/react");
20
+ const _reacttheme = require("@fluentui/react-theme");
21
+ const _useDrawerBaseStylesstyles = require("../../shared/useDrawerBaseStyles.styles");
22
+ const inlineDrawerClassNames = {
23
+ root: 'fui-InlineDrawer'
24
+ };
25
+ const useDrawerResetStyles = (0, _react.makeResetStyles)({
26
+ ..._useDrawerBaseStylesstyles.drawerDefaultStyles,
27
+ position: 'relative'
28
+ });
29
+ /**
30
+ * Styles for the root slot
31
+ */ const borderValue = `1px solid ${_reacttheme.tokens.colorNeutralBackground3}`;
32
+ const useDrawerRootStyles = (0, _react.makeStyles)({
33
+ /* Separator */ separatorStart: {
34
+ borderRight: borderValue
35
+ },
36
+ separatorEnd: {
37
+ borderLeft: borderValue
38
+ },
39
+ separatorBottom: {
40
+ borderTop: borderValue
41
+ },
42
+ /* Positioning */ start: {},
43
+ end: {},
44
+ bottom: {
45
+ width: '100%',
46
+ height: `var(${_useDrawerBaseStylesstyles.drawerCSSVars.drawerSizeVar})`
47
+ }
48
+ });
49
+ function getSeparatorClass(state, classNames) {
50
+ if (!state.separator) {
51
+ return undefined;
52
+ }
53
+ switch(state.position){
54
+ case 'start':
55
+ return classNames.separatorStart;
56
+ case 'end':
57
+ return classNames.separatorEnd;
58
+ case 'bottom':
59
+ return classNames.separatorBottom;
60
+ default:
61
+ return undefined;
62
+ }
63
+ }
64
+ const useInlineDrawerStyles_unstable = (state)=>{
65
+ 'use no memo';
66
+ const resetStyles = useDrawerResetStyles();
67
+ const baseClassNames = (0, _useDrawerBaseStylesstyles.useDrawerBaseClassNames)(state);
68
+ const rootStyles = useDrawerRootStyles();
69
+ state.root.className = (0, _react.mergeClasses)(inlineDrawerClassNames.root, resetStyles, baseClassNames, getSeparatorClass(state, rootStyles), rootStyles[state.position], state.root.className);
70
+ return state;
71
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/InlineDrawer/useInlineDrawerStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { tokens } from '@fluentui/react-theme';\n\nimport type { InlineDrawerSlots, InlineDrawerState } from './InlineDrawer.types';\nimport { drawerCSSVars, drawerDefaultStyles, useDrawerBaseClassNames } from '../../shared/useDrawerBaseStyles.styles';\n\nexport const inlineDrawerClassNames: SlotClassNames<Omit<InlineDrawerSlots, 'surfaceMotion'>> = {\n root: 'fui-InlineDrawer',\n};\n\nconst useDrawerResetStyles = makeResetStyles({\n ...drawerDefaultStyles,\n position: 'relative',\n});\n\n/**\n * Styles for the root slot\n */\nconst borderValue = `1px solid ${tokens.colorNeutralBackground3}`;\nconst useDrawerRootStyles = makeStyles({\n /* Separator */\n separatorStart: { borderRight: borderValue },\n separatorEnd: { borderLeft: borderValue },\n separatorBottom: { borderTop: borderValue },\n\n /* Positioning */\n start: {},\n end: {},\n bottom: {\n width: '100%',\n height: `var(${drawerCSSVars.drawerSizeVar})`,\n },\n});\n\nfunction getSeparatorClass(state: InlineDrawerState, classNames: ReturnType<typeof useDrawerRootStyles>) {\n if (!state.separator) {\n return undefined;\n }\n\n switch (state.position) {\n case 'start':\n return classNames.separatorStart;\n\n case 'end':\n return classNames.separatorEnd;\n\n case 'bottom':\n return classNames.separatorBottom;\n\n default:\n return undefined;\n }\n}\n\n/**\n * Apply styling to the InlineDrawer slots based on the state\n */\nexport const useInlineDrawerStyles_unstable = (state: InlineDrawerState): InlineDrawerState => {\n 'use no memo';\n\n const resetStyles = useDrawerResetStyles();\n const baseClassNames = useDrawerBaseClassNames(state);\n const rootStyles = useDrawerRootStyles();\n\n state.root.className = mergeClasses(\n inlineDrawerClassNames.root,\n resetStyles,\n baseClassNames,\n getSeparatorClass(state, rootStyles),\n rootStyles[state.position],\n state.root.className,\n );\n\n return state;\n};\n"],"names":["inlineDrawerClassNames","useInlineDrawerStyles_unstable","root","useDrawerResetStyles","makeResetStyles","drawerDefaultStyles","position","borderValue","tokens","colorNeutralBackground3","useDrawerRootStyles","makeStyles","separatorStart","borderRight","separatorEnd","borderLeft","separatorBottom","borderTop","start","end","bottom","width","height","drawerCSSVars","drawerSizeVar","getSeparatorClass","state","classNames","separator","undefined","resetStyles","baseClassNames","useDrawerBaseClassNames","rootStyles","className","mergeClasses"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAOaA,sBAAAA;eAAAA;;IAmDAC,8BAAAA;eAAAA;;;uBA1D6C;4BAEnC;2CAGqD;AAErE,MAAMD,yBAAmF;IAC9FE,MAAM;AACR;AAEA,MAAMC,uBAAuBC,IAAAA,sBAAAA,EAAgB;IAC3C,GAAGC,8CAAmB;IACtBC,UAAU;AACZ;AAEA;;CAEC,GACD,MAAMC,cAAc,CAAC,UAAU,EAAEC,kBAAAA,CAAOC,uBAAuB,CAAC,CAAC;AACjE,MAAMC,sBAAsBC,IAAAA,iBAAAA,EAAW;IACrC,aAAa,GACbC,gBAAgB;QAAEC,aAAaN;IAAY;IAC3CO,cAAc;QAAEC,YAAYR;IAAY;IACxCS,iBAAiB;QAAEC,WAAWV;IAAY;IAE1C,eAAe,GACfW,OAAO,CAAC;IACRC,KAAK,CAAC;IACNC,QAAQ;QACNC,OAAO;QACPC,QAAQ,CAAC,IAAI,EAAEC,wCAAAA,CAAcC,aAAa,CAAC,CAAC,CAAC;IAC/C;AACF;AAEA,SAASC,kBAAkBC,KAAwB,EAAEC,UAAkD;IACrG,IAAI,CAACD,MAAME,SAAS,EAAE;QACpB,OAAOC;IACT;IAEA,OAAQH,MAAMpB,QAAQ;QACpB,KAAK;YACH,OAAOqB,WAAWf,cAAc;QAElC,KAAK;YACH,OAAOe,WAAWb,YAAY;QAEhC,KAAK;YACH,OAAOa,WAAWX,eAAe;QAEnC;YACE,OAAOa;IACX;AACF;AAKO,MAAM5B,iCAAiC,CAACyB;IAC7C;IAEA,MAAMI,cAAc3B;IACpB,MAAM4B,iBAAiBC,IAAAA,kDAAAA,EAAwBN;IAC/C,MAAMO,aAAavB;IAEnBgB,MAAMxB,IAAI,CAACgC,SAAS,GAAGC,IAAAA,mBAAAA,EACrBnC,uBAAuBE,IAAI,EAC3B4B,aACAC,gBACAN,kBAAkBC,OAAOO,aACzBA,UAAU,CAACP,MAAMpB,QAAQ,CAAC,EAC1BoB,MAAMxB,IAAI,CAACgC,SAAS;IAGtB,OAAOR;AACT"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useOverlayDrawerSurfaceStyles_unstable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return useOverlayDrawerSurfaceStyles_unstable;
9
+ }
10
+ });
11
+ const _react = require("@griffel/react");
12
+ const _reacttheme = require("@fluentui/react-theme");
13
+ /**
14
+ * Styles for the backdrop slot
15
+ */ const useBackdropResetStyles = (0, _react.makeResetStyles)({
16
+ inset: '0px',
17
+ position: 'fixed',
18
+ backgroundColor: _reacttheme.tokens.colorBackgroundOverlay
19
+ });
20
+ const useBackdropStyles = (0, _react.makeStyles)({
21
+ nested: {
22
+ backgroundColor: _reacttheme.tokens.colorTransparentBackground
23
+ }
24
+ });
25
+ const useOverlayDrawerSurfaceStyles_unstable = (state)=>{
26
+ 'use no memo';
27
+ const backdropResetStyles = useBackdropResetStyles();
28
+ const backdropStyles = useBackdropStyles();
29
+ if (state.backdrop) {
30
+ state.backdrop.className = (0, _react.mergeClasses)(backdropResetStyles, state.isNestedDialog && backdropStyles.nested, state.backdrop.className);
31
+ }
32
+ return state;
33
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/OverlayDrawer/OverlayDrawerSurface/useOverlayDrawerSurfaceStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport { DialogSurfaceState } from '@fluentui/react-dialog';\n\n/**\n * Styles for the backdrop slot\n */\nconst useBackdropResetStyles = makeResetStyles({\n inset: '0px',\n position: 'fixed',\n backgroundColor: tokens.colorBackgroundOverlay,\n});\n\nconst useBackdropStyles = makeStyles({\n nested: {\n backgroundColor: tokens.colorTransparentBackground,\n },\n});\n\n/**\n * Apply styling to the OverlayDrawerSurface slots based on the state\n */\nexport const useOverlayDrawerSurfaceStyles_unstable = (state: DialogSurfaceState): DialogSurfaceState => {\n 'use no memo';\n\n const backdropResetStyles = useBackdropResetStyles();\n const backdropStyles = useBackdropStyles();\n\n if (state.backdrop) {\n state.backdrop.className = mergeClasses(\n backdropResetStyles,\n state.isNestedDialog && backdropStyles.nested,\n state.backdrop.className,\n );\n }\n\n return state;\n};\n"],"names":["useOverlayDrawerSurfaceStyles_unstable","useBackdropResetStyles","makeResetStyles","inset","position","backgroundColor","tokens","colorBackgroundOverlay","useBackdropStyles","makeStyles","nested","colorTransparentBackground","state","backdropResetStyles","backdropStyles","backdrop","className","mergeClasses","isNestedDialog"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAsBaA;;;eAAAA;;;uBAtB6C;4BACnC;AAGvB;;CAEC,GACD,MAAMC,yBAAyBC,IAAAA,sBAAAA,EAAgB;IAC7CC,OAAO;IACPC,UAAU;IACVC,iBAAiBC,kBAAAA,CAAOC,sBAAsB;AAChD;AAEA,MAAMC,oBAAoBC,IAAAA,iBAAAA,EAAW;IACnCC,QAAQ;QACNL,iBAAiBC,kBAAAA,CAAOK,0BAA0B;IACpD;AACF;AAKO,MAAMX,yCAAyC,CAACY;IACrD;IAEA,MAAMC,sBAAsBZ;IAC5B,MAAMa,iBAAiBN;IAEvB,IAAII,MAAMG,QAAQ,EAAE;QAClBH,MAAMG,QAAQ,CAACC,SAAS,GAAGC,IAAAA,mBAAAA,EACzBJ,qBACAD,MAAMM,cAAc,IAAIJ,eAAeJ,MAAM,EAC7CE,MAAMG,QAAQ,CAACC,SAAS;IAE5B;IAEA,OAAOJ;AACT"}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ overlayDrawerClassNames: function() {
13
+ return overlayDrawerClassNames;
14
+ },
15
+ useOverlayDrawerStyles_unstable: function() {
16
+ return useOverlayDrawerStyles_unstable;
17
+ }
18
+ });
19
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
20
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
21
+ const _react1 = require("@griffel/react");
22
+ const _reacttabster = require("@fluentui/react-tabster");
23
+ const _useDrawerBaseStylesstyles = require("../../shared/useDrawerBaseStyles.styles");
24
+ const overlayDrawerClassNames = {
25
+ root: 'fui-OverlayDrawer',
26
+ backdrop: 'fui-OverlayDrawer__backdrop'
27
+ };
28
+ /**
29
+ * Styles for the root slot
30
+ */ const useDrawerResetStyles = (0, _react1.makeResetStyles)({
31
+ ...(0, _reacttabster.createFocusOutlineStyle)(),
32
+ ..._useDrawerBaseStylesstyles.drawerDefaultStyles,
33
+ position: 'fixed',
34
+ top: 0,
35
+ bottom: 0
36
+ });
37
+ const useDrawerRootStyles = (0, _react1.makeStyles)({
38
+ /* Positioning */ start: {},
39
+ end: {},
40
+ bottom: {
41
+ top: 'auto',
42
+ height: `var(${_useDrawerBaseStylesstyles.drawerCSSVars.drawerSizeVar})`,
43
+ width: '100vw'
44
+ },
45
+ absolute: {
46
+ position: 'absolute'
47
+ }
48
+ });
49
+ const useOverlayDrawerStyles_unstable = (state)=>{
50
+ 'use no memo';
51
+ const baseClassNames = (0, _useDrawerBaseStylesstyles.useDrawerBaseClassNames)(state);
52
+ const resetStyles = useDrawerResetStyles();
53
+ const rootStyles = useDrawerRootStyles();
54
+ const absoluteStyles = state.hasMountNodeElement && rootStyles.absolute;
55
+ const backdrop = state.root.backdrop;
56
+ state.root.className = (0, _react1.mergeClasses)(overlayDrawerClassNames.root, baseClassNames, resetStyles, rootStyles[state.position], absoluteStyles, state.root.className);
57
+ if (backdrop) {
58
+ backdrop.className = (0, _react1.mergeClasses)(overlayDrawerClassNames.backdrop, absoluteStyles, backdrop.className);
59
+ }
60
+ return state;
61
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/OverlayDrawer/useOverlayDrawerStyles.styles.ts"],"sourcesContent":["import * as React from 'react';\nimport { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport { createFocusOutlineStyle } from '@fluentui/react-tabster';\n\nimport type { OverlayDrawerState } from './OverlayDrawer.types';\nimport { OverlayDrawerSurfaceSlots } from './OverlayDrawerSurface/OverlayDrawerSurface.types';\nimport { drawerCSSVars, drawerDefaultStyles, useDrawerBaseClassNames } from '../../shared/useDrawerBaseStyles.styles';\n\nexport const overlayDrawerClassNames: SlotClassNames<Omit<OverlayDrawerSurfaceSlots, 'backdropMotion'>> = {\n root: 'fui-OverlayDrawer',\n backdrop: 'fui-OverlayDrawer__backdrop',\n};\n\n/**\n * Styles for the root slot\n */\nconst useDrawerResetStyles = makeResetStyles({\n ...createFocusOutlineStyle(),\n ...drawerDefaultStyles,\n position: 'fixed',\n top: 0,\n bottom: 0,\n});\n\nconst useDrawerRootStyles = makeStyles({\n /* Positioning */\n start: {},\n end: {},\n bottom: {\n top: 'auto',\n height: `var(${drawerCSSVars.drawerSizeVar})`,\n width: '100vw',\n },\n absolute: {\n position: 'absolute',\n },\n});\n\n/**\n * Apply styling to the OverlayDrawer slots based on the state\n */\nexport const useOverlayDrawerStyles_unstable = (state: OverlayDrawerState): OverlayDrawerState => {\n 'use no memo';\n\n const baseClassNames = useDrawerBaseClassNames(state);\n const resetStyles = useDrawerResetStyles();\n const rootStyles = useDrawerRootStyles();\n\n const absoluteStyles = state.hasMountNodeElement && rootStyles.absolute;\n const backdrop = state.root.backdrop as React.HTMLAttributes<HTMLDivElement> | undefined;\n\n state.root.className = mergeClasses(\n overlayDrawerClassNames.root,\n baseClassNames,\n resetStyles,\n rootStyles[state.position],\n absoluteStyles,\n state.root.className,\n );\n\n if (backdrop) {\n backdrop.className = mergeClasses(overlayDrawerClassNames.backdrop, absoluteStyles, backdrop.className);\n }\n\n return state;\n};\n"],"names":["overlayDrawerClassNames","useOverlayDrawerStyles_unstable","root","backdrop","useDrawerResetStyles","makeResetStyles","createFocusOutlineStyle","drawerDefaultStyles","position","top","bottom","useDrawerRootStyles","makeStyles","start","end","height","drawerCSSVars","drawerSizeVar","width","absolute","state","baseClassNames","useDrawerBaseClassNames","resetStyles","rootStyles","absoluteStyles","hasMountNodeElement","className","mergeClasses"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IASaA,uBAAAA;eAAAA;;IAiCAC,+BAAAA;eAAAA;;;;iEA1CU;wBACmC;8BAElB;2CAIoC;AAErE,MAAMD,0BAA6F;IACxGE,MAAM;IACNC,UAAU;AACZ;AAEA;;CAEC,GACD,MAAMC,uBAAuBC,IAAAA,uBAAAA,EAAgB;IAC3C,GAAGC,IAAAA,qCAAAA,GAAyB;IAC5B,GAAGC,8CAAmB;IACtBC,UAAU;IACVC,KAAK;IACLC,QAAQ;AACV;AAEA,MAAMC,sBAAsBC,IAAAA,kBAAAA,EAAW;IACrC,eAAe,GACfC,OAAO,CAAC;IACRC,KAAK,CAAC;IACNJ,QAAQ;QACND,KAAK;QACLM,QAAQ,CAAC,IAAI,EAAEC,wCAAAA,CAAcC,aAAa,CAAC,CAAC,CAAC;QAC7CC,OAAO;IACT;IACAC,UAAU;QACRX,UAAU;IACZ;AACF;AAKO,MAAMP,kCAAkC,CAACmB;IAC9C;IAEA,MAAMC,iBAAiBC,IAAAA,kDAAAA,EAAwBF;IAC/C,MAAMG,cAAcnB;IACpB,MAAMoB,aAAab;IAEnB,MAAMc,iBAAiBL,MAAMM,mBAAmB,IAAIF,WAAWL,QAAQ;IACvE,MAAMhB,WAAWiB,MAAMlB,IAAI,CAACC,QAAQ;IAEpCiB,MAAMlB,IAAI,CAACyB,SAAS,GAAGC,IAAAA,oBAAAA,EACrB5B,wBAAwBE,IAAI,EAC5BmB,gBACAE,aACAC,UAAU,CAACJ,MAAMZ,QAAQ,CAAC,EAC1BiB,gBACAL,MAAMlB,IAAI,CAACyB,SAAS;IAGtB,IAAIxB,UAAU;QACZA,SAASwB,SAAS,GAAGC,IAAAA,oBAAAA,EAAa5B,wBAAwBG,QAAQ,EAAEsB,gBAAgBtB,SAASwB,SAAS;IACxG;IAEA,OAAOP;AACT"}
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ drawerCSSVars: function() {
13
+ return drawerCSSVars;
14
+ },
15
+ drawerDefaultStyles: function() {
16
+ return drawerDefaultStyles;
17
+ },
18
+ useDrawerBaseClassNames: function() {
19
+ return useDrawerBaseClassNames;
20
+ },
21
+ useDrawerBottomBaseStyles: function() {
22
+ return useDrawerBottomBaseStyles;
23
+ }
24
+ });
25
+ const _react = require("@griffel/react");
26
+ const _reacttheme = require("@fluentui/react-theme");
27
+ const drawerCSSVars = {
28
+ drawerSizeVar: '--fui-Drawer--size'
29
+ };
30
+ const drawerDefaultStyles = {
31
+ overflow: 'hidden',
32
+ width: `var(${drawerCSSVars.drawerSizeVar})`,
33
+ maxWidth: '100vw',
34
+ height: 'auto',
35
+ maxHeight: '100vh',
36
+ boxSizing: 'border-box',
37
+ display: 'flex',
38
+ flexDirection: 'column',
39
+ alignItems: 'flex-start',
40
+ justifyContent: 'flex-start',
41
+ backgroundColor: _reacttheme.tokens.colorNeutralBackground1,
42
+ color: _reacttheme.tokens.colorNeutralForeground1
43
+ };
44
+ /**
45
+ * Shared dynamic styles for the Drawer component
46
+ */ const useDrawerStyles = (0, _react.makeStyles)({
47
+ /* Positioning */ start: {
48
+ borderRight: `${_reacttheme.tokens.strokeWidthThin} solid ${_reacttheme.tokens.colorTransparentStroke}`,
49
+ left: 0,
50
+ right: 'auto'
51
+ },
52
+ end: {
53
+ borderLeft: `${_reacttheme.tokens.strokeWidthThin} solid ${_reacttheme.tokens.colorTransparentStroke}`,
54
+ right: 0,
55
+ left: 'auto'
56
+ },
57
+ bottom: {
58
+ bottom: 0,
59
+ top: 'auto'
60
+ },
61
+ /* Sizes */ small: {
62
+ [drawerCSSVars.drawerSizeVar]: '320px'
63
+ },
64
+ medium: {
65
+ [drawerCSSVars.drawerSizeVar]: '592px'
66
+ },
67
+ large: {
68
+ [drawerCSSVars.drawerSizeVar]: '940px'
69
+ },
70
+ full: {
71
+ [drawerCSSVars.drawerSizeVar]: '100vw'
72
+ }
73
+ });
74
+ const useDrawerBottomBaseStyles = (0, _react.makeStyles)({
75
+ /* Sizes for position bottom */ small: {
76
+ [drawerCSSVars.drawerSizeVar]: '320px'
77
+ },
78
+ medium: {
79
+ [drawerCSSVars.drawerSizeVar]: '592px'
80
+ },
81
+ large: {
82
+ [drawerCSSVars.drawerSizeVar]: '940px'
83
+ },
84
+ full: {
85
+ [drawerCSSVars.drawerSizeVar]: '100%'
86
+ }
87
+ });
88
+ const useDrawerBaseClassNames = ({ position, size })=>{
89
+ const baseStyles = useDrawerStyles();
90
+ const bottomBaseStyles = useDrawerBottomBaseStyles();
91
+ return (0, _react.mergeClasses)(baseStyles[position], position === 'bottom' && bottomBaseStyles[size], position !== 'bottom' && baseStyles[size]);
92
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/shared/useDrawerBaseStyles.styles.ts"],"sourcesContent":["import { type GriffelResetStyle, makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\n\nimport { DrawerBaseState } from './DrawerBase.types';\n\n/**\n * CSS variable names used internally for uniform styling in Drawer.\n */\nexport const drawerCSSVars = {\n drawerSizeVar: '--fui-Drawer--size',\n};\n\n/**\n * Default shared styles for the Drawer component\n */\nexport const drawerDefaultStyles: GriffelResetStyle = {\n overflow: 'hidden',\n\n width: `var(${drawerCSSVars.drawerSizeVar})`,\n maxWidth: '100vw',\n height: 'auto',\n maxHeight: '100vh',\n boxSizing: 'border-box',\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n justifyContent: 'flex-start',\n backgroundColor: tokens.colorNeutralBackground1,\n color: tokens.colorNeutralForeground1,\n};\n\n/**\n * Shared dynamic styles for the Drawer component\n */\nconst useDrawerStyles = makeStyles({\n /* Positioning */\n start: {\n borderRight: `${tokens.strokeWidthThin} solid ${tokens.colorTransparentStroke}`,\n\n left: 0,\n right: 'auto',\n },\n end: {\n borderLeft: `${tokens.strokeWidthThin} solid ${tokens.colorTransparentStroke}`,\n\n right: 0,\n left: 'auto',\n },\n bottom: {\n bottom: 0,\n top: 'auto',\n },\n\n /* Sizes */\n small: {\n [drawerCSSVars.drawerSizeVar]: '320px',\n },\n medium: {\n [drawerCSSVars.drawerSizeVar]: '592px',\n },\n large: {\n [drawerCSSVars.drawerSizeVar]: '940px',\n },\n full: {\n [drawerCSSVars.drawerSizeVar]: '100vw',\n },\n});\n\nexport const useDrawerBottomBaseStyles = makeStyles({\n /* Sizes for position bottom */\n small: {\n [drawerCSSVars.drawerSizeVar]: '320px',\n },\n medium: {\n [drawerCSSVars.drawerSizeVar]: '592px',\n },\n large: {\n [drawerCSSVars.drawerSizeVar]: '940px',\n },\n full: {\n [drawerCSSVars.drawerSizeVar]: '100%',\n },\n});\n\nexport const useDrawerBaseClassNames = ({ position, size }: DrawerBaseState) => {\n const baseStyles = useDrawerStyles();\n const bottomBaseStyles = useDrawerBottomBaseStyles();\n\n return mergeClasses(\n baseStyles[position],\n position === 'bottom' && bottomBaseStyles[size],\n position !== 'bottom' && baseStyles[size],\n );\n};\n"],"names":["drawerCSSVars","drawerDefaultStyles","useDrawerBaseClassNames","useDrawerBottomBaseStyles","drawerSizeVar","overflow","width","maxWidth","height","maxHeight","boxSizing","display","flexDirection","alignItems","justifyContent","backgroundColor","tokens","colorNeutralBackground1","color","colorNeutralForeground1","useDrawerStyles","makeStyles","start","borderRight","strokeWidthThin","colorTransparentStroke","left","right","end","borderLeft","bottom","top","small","medium","large","full","position","size","baseStyles","bottomBaseStyles","mergeClasses"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAQaA,aAAAA;eAAAA;;IAOAC,mBAAAA;eAAAA;;IAqEAC,uBAAAA;eAAAA;;IAhBAC,yBAAAA;eAAAA;;;uBApEoD;4BAC1C;AAOhB,MAAMH,gBAAgB;IAC3BI,eAAe;AACjB;AAKO,MAAMH,sBAAyC;IACpDI,UAAU;IAEVC,OAAO,CAAC,IAAI,EAAEN,cAAcI,aAAa,CAAC,CAAC,CAAC;IAC5CG,UAAU;IACVC,QAAQ;IACRC,WAAW;IACXC,WAAW;IACXC,SAAS;IACTC,eAAe;IACfC,YAAY;IACZC,gBAAgB;IAChBC,iBAAiBC,kBAAAA,CAAOC,uBAAuB;IAC/CC,OAAOF,kBAAAA,CAAOG,uBAAuB;AACvC;AAEA;;CAEC,GACD,MAAMC,kBAAkBC,IAAAA,iBAAAA,EAAW;IACjC,eAAe,GACfC,OAAO;QACLC,aAAa,CAAC,EAAEP,kBAAAA,CAAOQ,eAAe,CAAC,OAAO,EAAER,kBAAAA,CAAOS,sBAAsB,CAAC,CAAC;QAE/EC,MAAM;QACNC,OAAO;IACT;IACAC,KAAK;QACHC,YAAY,CAAC,EAAEb,kBAAAA,CAAOQ,eAAe,CAAC,OAAO,EAAER,kBAAAA,CAAOS,sBAAsB,CAAC,CAAC;QAE9EE,OAAO;QACPD,MAAM;IACR;IACAI,QAAQ;QACNA,QAAQ;QACRC,KAAK;IACP;IAEA,SAAS,GACTC,OAAO;QACL,CAAChC,cAAcI,aAAa,CAAC,EAAE;IACjC;IACA6B,QAAQ;QACN,CAACjC,cAAcI,aAAa,CAAC,EAAE;IACjC;IACA8B,OAAO;QACL,CAAClC,cAAcI,aAAa,CAAC,EAAE;IACjC;IACA+B,MAAM;QACJ,CAACnC,cAAcI,aAAa,CAAC,EAAE;IACjC;AACF;AAEO,MAAMD,4BAA4BkB,IAAAA,iBAAAA,EAAW;IAClD,6BAA6B,GAC7BW,OAAO;QACL,CAAChC,cAAcI,aAAa,CAAC,EAAE;IACjC;IACA6B,QAAQ;QACN,CAACjC,cAAcI,aAAa,CAAC,EAAE;IACjC;IACA8B,OAAO;QACL,CAAClC,cAAcI,aAAa,CAAC,EAAE;IACjC;IACA+B,MAAM;QACJ,CAACnC,cAAcI,aAAa,CAAC,EAAE;IACjC;AACF;AAEO,MAAMF,0BAA0B,CAAC,EAAEkC,QAAQ,EAAEC,IAAI,EAAmB;IACzE,MAAMC,aAAalB;IACnB,MAAMmB,mBAAmBpC;IAEzB,OAAOqC,IAAAA,mBAAAA,EACLF,UAAU,CAACF,SAAS,EACpBA,aAAa,YAAYG,gBAAgB,CAACF,KAAK,EAC/CD,aAAa,YAAYE,UAAU,CAACD,KAAK;AAE7C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-drawer",
3
- "version": "9.8.7",
3
+ "version": "9.9.0",
4
4
  "description": "Drawer components for Fluent UI React",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -20,12 +20,12 @@
20
20
  "@fluentui/scripts-cypress": "*"
21
21
  },
22
22
  "dependencies": {
23
- "@fluentui/react-dialog": "^9.13.7",
23
+ "@fluentui/react-dialog": "^9.14.0",
24
24
  "@fluentui/react-jsx-runtime": "^9.1.2",
25
25
  "@fluentui/react-motion": "^9.9.0",
26
- "@fluentui/react-portal": "^9.6.4",
26
+ "@fluentui/react-portal": "^9.7.0",
27
27
  "@fluentui/react-shared-contexts": "^9.24.0",
28
- "@fluentui/react-tabster": "^9.25.3",
28
+ "@fluentui/react-tabster": "^9.26.0",
29
29
  "@fluentui/react-theme": "^9.1.24",
30
30
  "@fluentui/react-utilities": "^9.22.0",
31
31
  "@griffel/react": "^1.5.22",