@fluentui/react-drawer 9.0.0-beta.31 → 9.0.0-beta.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +85 -1
- package/CHANGELOG.md +29 -2
- package/dist/index.d.ts +33 -9
- package/lib/components/Drawer/useDrawer.js +1 -2
- package/lib/components/Drawer/useDrawer.js.map +1 -1
- package/lib/components/DrawerInline/useDrawerInlineStyles.styles.js +1 -1
- package/lib/components/DrawerInline/useDrawerInlineStyles.styles.js.map +1 -1
- package/lib/components/DrawerOverlay/DrawerOverlay.types.js.map +1 -1
- package/lib/components/DrawerOverlay/DrawerOverlaySurface/DrawerOverlaySurface.js +13 -0
- package/lib/components/DrawerOverlay/DrawerOverlaySurface/DrawerOverlaySurface.js.map +1 -0
- package/lib/components/DrawerOverlay/DrawerOverlaySurface/DrawerOverlaySurface.types.js +1 -0
- package/lib/components/DrawerOverlay/DrawerOverlaySurface/DrawerOverlaySurface.types.js.map +1 -0
- package/lib/components/DrawerOverlay/DrawerOverlaySurface/index.js +2 -0
- package/lib/components/DrawerOverlay/DrawerOverlaySurface/index.js.map +1 -0
- package/lib/components/DrawerOverlay/DrawerOverlaySurface/useDrawerOverlaySurfaceStyles.styles.js +29 -0
- package/lib/components/DrawerOverlay/DrawerOverlaySurface/useDrawerOverlaySurfaceStyles.styles.js.map +1 -0
- package/lib/components/DrawerOverlay/renderDrawerOverlay.js +1 -1
- package/lib/components/DrawerOverlay/renderDrawerOverlay.js.map +1 -1
- package/lib/components/DrawerOverlay/useDrawerOverlay.js +25 -24
- package/lib/components/DrawerOverlay/useDrawerOverlay.js.map +1 -1
- package/lib/components/DrawerOverlay/useDrawerOverlayStyles.styles.js +9 -38
- package/lib/components/DrawerOverlay/useDrawerOverlayStyles.styles.js.map +1 -1
- package/lib/shared/useDrawerBaseStyles.styles.js +3 -4
- package/lib/shared/useDrawerBaseStyles.styles.js.map +1 -1
- package/lib-commonjs/components/Drawer/useDrawer.js +1 -2
- package/lib-commonjs/components/Drawer/useDrawer.js.map +1 -1
- package/lib-commonjs/components/DrawerInline/useDrawerInlineStyles.styles.js +2 -3
- package/lib-commonjs/components/DrawerInline/useDrawerInlineStyles.styles.js.map +1 -1
- package/lib-commonjs/components/DrawerOverlay/DrawerOverlaySurface/DrawerOverlaySurface.js +21 -0
- package/lib-commonjs/components/DrawerOverlay/DrawerOverlaySurface/DrawerOverlaySurface.js.map +1 -0
- package/lib-commonjs/components/DrawerOverlay/DrawerOverlaySurface/DrawerOverlaySurface.types.js +4 -0
- package/lib-commonjs/components/DrawerOverlay/DrawerOverlaySurface/DrawerOverlaySurface.types.js.map +1 -0
- package/lib-commonjs/components/DrawerOverlay/DrawerOverlaySurface/index.js +7 -0
- package/lib-commonjs/components/DrawerOverlay/DrawerOverlaySurface/index.js.map +1 -0
- package/lib-commonjs/components/DrawerOverlay/DrawerOverlaySurface/useDrawerOverlaySurfaceStyles.styles.js +46 -0
- package/lib-commonjs/components/DrawerOverlay/DrawerOverlaySurface/useDrawerOverlaySurfaceStyles.styles.js.map +1 -0
- package/lib-commonjs/components/DrawerOverlay/renderDrawerOverlay.js +1 -1
- package/lib-commonjs/components/DrawerOverlay/renderDrawerOverlay.js.map +1 -1
- package/lib-commonjs/components/DrawerOverlay/useDrawerOverlay.js +24 -23
- package/lib-commonjs/components/DrawerOverlay/useDrawerOverlay.js.map +1 -1
- package/lib-commonjs/components/DrawerOverlay/useDrawerOverlayStyles.styles.js +18 -91
- package/lib-commonjs/components/DrawerOverlay/useDrawerOverlayStyles.styles.js.map +1 -1
- package/lib-commonjs/shared/useDrawerBaseStyles.styles.js +3 -4
- package/lib-commonjs/shared/useDrawerBaseStyles.styles.js.map +1 -1
- package/package.json +7 -6
|
@@ -10,19 +10,18 @@ export const drawerCSSVars = {
|
|
|
10
10
|
* Default shared styles for the Drawer component
|
|
11
11
|
*/
|
|
12
12
|
export const drawerDefaultStyles = {
|
|
13
|
-
... /*#__PURE__*/shorthands.padding(0),
|
|
14
13
|
... /*#__PURE__*/shorthands.overflow('hidden'),
|
|
15
|
-
... /*#__PURE__*/shorthands.borderRadius(0),
|
|
16
|
-
... /*#__PURE__*/shorthands.border(0),
|
|
17
14
|
width: `var(${drawerCSSVars.drawerSizeVar})`,
|
|
18
15
|
maxWidth: '100vw',
|
|
19
16
|
height: 'auto',
|
|
17
|
+
maxHeight: '100vh',
|
|
20
18
|
boxSizing: 'border-box',
|
|
21
19
|
display: 'flex',
|
|
22
20
|
flexDirection: 'column',
|
|
23
21
|
alignItems: 'flex-start',
|
|
24
22
|
justifyContent: 'flex-start',
|
|
25
|
-
backgroundColor: tokens.colorNeutralBackground1
|
|
23
|
+
backgroundColor: tokens.colorNeutralBackground1,
|
|
24
|
+
color: tokens.colorNeutralForeground1
|
|
26
25
|
};
|
|
27
26
|
/**
|
|
28
27
|
* Shared dynamic styles for the Drawer component
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__styles","mergeClasses","shorthands","tokens","drawerCSSVars","drawerSizeVar","drawerDefaultStyles","
|
|
1
|
+
{"version":3,"names":["__styles","mergeClasses","shorthands","tokens","drawerCSSVars","drawerSizeVar","drawerDefaultStyles","overflow","width","maxWidth","height","maxHeight","boxSizing","display","flexDirection","alignItems","justifyContent","backgroundColor","colorNeutralBackground1","color","colorNeutralForeground1","useDrawerStyles","entering","Bkqvd7p","exiting","reducedMotion","Hwfdqs","start","oyh7mz","j35jbq","end","small","Bjr0ffy","medium","large","full","d","m","useDrawerDurationStyles","B3o57yi","useDrawerBaseClassNames","position","size","motion","baseStyles","durationStyles","type"],"sources":["useDrawerBaseStyles.styles.js"],"sourcesContent":["import { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\n/**\n * CSS variable names used internally for uniform styling in Drawer.\n */ export const drawerCSSVars = {\n drawerSizeVar: '--fui-Drawer--size'\n};\n/**\n * Default shared styles for the Drawer component\n */ export const drawerDefaultStyles = {\n ...shorthands.overflow('hidden'),\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 * Shared dynamic styles for the Drawer component\n */ const useDrawerStyles = makeStyles({\n /* Motion */ entering: {\n transitionTimingFunction: tokens.curveDecelerateMid\n },\n exiting: {\n transitionTimingFunction: tokens.curveAccelerateMin\n },\n reducedMotion: {\n '@media screen and (prefers-reduced-motion: reduce)': {\n transitionDuration: '0.001ms'\n }\n },\n /* Positioning */ start: {\n left: 0,\n right: 'auto'\n },\n end: {\n right: 0,\n left: 'auto'\n },\n /* Sizes */ 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});\nexport const useDrawerDurationStyles = makeStyles({\n small: {\n transitionDuration: tokens.durationGentle\n },\n medium: {\n transitionDuration: tokens.durationSlow\n },\n large: {\n transitionDuration: tokens.durationSlower\n },\n full: {\n transitionDuration: tokens.durationUltraSlow\n }\n});\nexport const useDrawerBaseClassNames = ({ position, size, motion })=>{\n const baseStyles = useDrawerStyles();\n const durationStyles = useDrawerDurationStyles();\n return mergeClasses(baseStyles[position], durationStyles[size], baseStyles[size], baseStyles.reducedMotion, motion.type === 'entering' && baseStyles.entering, motion.type === 'exiting' && baseStyles.exiting);\n};\n"],"mappings":"AAAA,SAAAA,QAAA,EAAqBC,YAAY,EAAEC,UAAU,QAAQ,gBAAgB;AACrE,SAASC,MAAM,QAAQ,uBAAuB;AAC9C;AACA;AACA;AAAI,OAAO,MAAMC,aAAa,GAAG;EAC7BC,aAAa,EAAE;AACnB,CAAC;AACD;AACA;AACA;AAAI,OAAO,MAAMC,mBAAmB,GAAG;EACnC,iBAAGJ,UAAU,CAACK,QAAQ,CAAC,QAAQ,CAAC;EAChCC,KAAK,EAAG,OAAMJ,aAAa,CAACC,aAAc,GAAE;EAC5CI,QAAQ,EAAE,OAAO;EACjBC,MAAM,EAAE,MAAM;EACdC,SAAS,EAAE,OAAO;EAClBC,SAAS,EAAE,YAAY;EACvBC,OAAO,EAAE,MAAM;EACfC,aAAa,EAAE,QAAQ;EACvBC,UAAU,EAAE,YAAY;EACxBC,cAAc,EAAE,YAAY;EAC5BC,eAAe,EAAEd,MAAM,CAACe,uBAAuB;EAC/CC,KAAK,EAAEhB,MAAM,CAACiB;AAClB,CAAC;AACD;AACA;AACA;AAAI,MAAMC,eAAe,gBAAGrB,QAAA;EAAAsB,QAAA;IAAAC,OAAA;EAAA;EAAAC,OAAA;IAAAD,OAAA;EAAA;EAAAE,aAAA;IAAAC,MAAA;EAAA;EAAAC,KAAA;IAAAC,MAAA;IAAAC,MAAA;EAAA;EAAAC,GAAA;IAAAD,MAAA;IAAAD,MAAA;EAAA;EAAAG,KAAA;IAAAC,OAAA;EAAA;EAAAC,MAAA;IAAAD,OAAA;EAAA;EAAAE,KAAA;IAAAF,OAAA;EAAA;EAAAG,IAAA;IAAAH,OAAA;EAAA;AAAA;EAAAI,CAAA;EAAAC,CAAA;IAAAA,CAAA;EAAA;AAAA,CAgC3B,CAAC;AACF,OAAO,MAAMC,uBAAuB,gBAAGtC,QAAA;EAAA+B,KAAA;IAAAQ,OAAA;EAAA;EAAAN,MAAA;IAAAM,OAAA;EAAA;EAAAL,KAAA;IAAAK,OAAA;EAAA;EAAAJ,IAAA;IAAAI,OAAA;EAAA;AAAA;EAAAH,CAAA;AAAA,CAatC,CAAC;AACF,OAAO,MAAMI,uBAAuB,GAAGA,CAAC;EAAEC,QAAQ;EAAEC,IAAI;EAAEC;AAAO,CAAC,KAAG;EACjE,MAAMC,UAAU,GAAGvB,eAAe,CAAC,CAAC;EACpC,MAAMwB,cAAc,GAAGP,uBAAuB,CAAC,CAAC;EAChD,OAAOrC,YAAY,CAAC2C,UAAU,CAACH,QAAQ,CAAC,EAAEI,cAAc,CAACH,IAAI,CAAC,EAAEE,UAAU,CAACF,IAAI,CAAC,EAAEE,UAAU,CAACnB,aAAa,EAAEkB,MAAM,CAACG,IAAI,KAAK,UAAU,IAAIF,UAAU,CAACtB,QAAQ,EAAEqB,MAAM,CAACG,IAAI,KAAK,SAAS,IAAIF,UAAU,CAACpB,OAAO,CAAC;AACnN,CAAC"}
|
|
@@ -14,8 +14,7 @@ const _reactutilities = require("@fluentui/react-utilities");
|
|
|
14
14
|
const _DrawerOverlay = require("../DrawerOverlay");
|
|
15
15
|
const _DrawerInline = require("../DrawerInline");
|
|
16
16
|
const useDrawer_unstable = (props, ref)=>{
|
|
17
|
-
const
|
|
18
|
-
const elementType = type === 'overlay' ? _DrawerOverlay.DrawerOverlay : _DrawerInline.DrawerInline;
|
|
17
|
+
const elementType = props.type === 'inline' ? _DrawerInline.DrawerInline : _DrawerOverlay.DrawerOverlay;
|
|
19
18
|
return {
|
|
20
19
|
components: {
|
|
21
20
|
root: elementType
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useDrawer.js"],"sourcesContent":["import * as React from 'react';\nimport { slot } from '@fluentui/react-utilities';\nimport { DrawerOverlay } from '../DrawerOverlay';\nimport { DrawerInline } from '../DrawerInline';\n/**\n * Create the state required to render Drawer.\n *\n * The returned state can be modified with hooks such as useDrawerStyles_unstable,\n * before being passed to renderDrawer_unstable.\n *\n * @param props - props from this instance of Drawer\n * @param ref - reference to root HTMLElement of Drawer\n */ export const useDrawer_unstable = (props, ref)=>{\n const
|
|
1
|
+
{"version":3,"sources":["useDrawer.js"],"sourcesContent":["import * as React from 'react';\nimport { slot } from '@fluentui/react-utilities';\nimport { DrawerOverlay } from '../DrawerOverlay';\nimport { DrawerInline } from '../DrawerInline';\n/**\n * Create the state required to render Drawer.\n *\n * The returned state can be modified with hooks such as useDrawerStyles_unstable,\n * before being passed to renderDrawer_unstable.\n *\n * @param props - props from this instance of Drawer\n * @param ref - reference to root HTMLElement of Drawer\n */ export const useDrawer_unstable = (props, ref)=>{\n const elementType = props.type === 'inline' ? DrawerInline : DrawerOverlay;\n return {\n components: {\n root: elementType\n },\n root: slot.always(slot.resolveShorthand({\n ref,\n ...props\n }), {\n elementType\n })\n };\n};\n"],"names":["useDrawer_unstable","props","ref","elementType","type","DrawerInline","DrawerOverlay","components","root","slot","always","resolveShorthand"],"mappings":";;;;+BAYiBA;;;eAAAA;;;;iEAZM;gCACF;+BACS;8BACD;AASlB,MAAMA,qBAAqB,CAACC,OAAOC;IAC1C,MAAMC,cAAcF,MAAMG,IAAI,KAAK,WAAWC,0BAAY,GAAGC,4BAAa;IAC1E,OAAO;QACHC,YAAY;YACRC,MAAML;QACV;QACAK,MAAMC,oBAAI,CAACC,MAAM,CAACD,oBAAI,CAACE,gBAAgB,CAAC;YACpCT;YACA,GAAGD,KAAK;QACZ,IAAI;YACAE;QACJ;IACJ;AACJ"}
|
|
@@ -24,9 +24,8 @@ const _useDrawerBaseStylesstyles = require("../../shared/useDrawerBaseStyles.sty
|
|
|
24
24
|
const drawerInlineClassNames = {
|
|
25
25
|
root: 'fui-DrawerInline'
|
|
26
26
|
};
|
|
27
|
-
const useDrawerResetStyles = /*#__PURE__*/ (0, _react1.__resetStyles)("
|
|
28
|
-
".
|
|
29
|
-
".rzg5lxf{padding-top:0;padding-left:0;padding-bottom:0;padding-right:0;overflow-x:hidden;overflow-y:hidden;border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0;border-top-right-radius:0;border-top-width:0;border-left-width:0;border-bottom-width:0;border-right-width:0;width:var(--fui-Drawer--size);max-width:100vw;height:auto;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);position:relative;opacity:0;transition-property:opacity,transform;will-change:opacity,transform;}"
|
|
27
|
+
const useDrawerResetStyles = /*#__PURE__*/ (0, _react1.__resetStyles)("rlrvcho", null, [
|
|
28
|
+
".rlrvcho{overflow-x:hidden;overflow-y:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:relative;opacity:0;transition-property:opacity,transform;will-change:opacity,transform;}"
|
|
30
29
|
]);
|
|
31
30
|
/**
|
|
32
31
|
* Styles for the root slot
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useDrawerInlineStyles.styles.js"],"sourcesContent":["import * as React from 'react';\nimport { __resetStyles, __styles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport { drawerCSSVars, drawerDefaultStyles, useDrawerBaseClassNames } from '../../shared/useDrawerBaseStyles.styles';\nexport const drawerInlineClassNames = {\n root: 'fui-DrawerInline'\n};\nconst useDrawerResetStyles = /*#__PURE__*/__resetStyles(\"
|
|
1
|
+
{"version":3,"sources":["useDrawerInlineStyles.styles.js"],"sourcesContent":["import * as React from 'react';\nimport { __resetStyles, __styles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport { drawerCSSVars, drawerDefaultStyles, useDrawerBaseClassNames } from '../../shared/useDrawerBaseStyles.styles';\nexport const drawerInlineClassNames = {\n root: 'fui-DrawerInline'\n};\nconst useDrawerResetStyles = /*#__PURE__*/__resetStyles(\"rlrvcho\", null, [\".rlrvcho{overflow-x:hidden;overflow-y:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:relative;opacity:0;transition-property:opacity,transform;will-change:opacity,transform;}\"]);\n/**\n * Styles for the root slot\n */\nconst separatorValues = ['1px', 'solid', tokens.colorNeutralBackground3];\nconst useDrawerRootStyles = /*#__PURE__*/__styles({\n separatorStart: {\n Bekrc4i: [\"f1hqa2wf\", \"finvdd3\"],\n vrafjx: [\"fcdblym\", \"fjik90z\"],\n h3c5rm: [\"fa8zu9y\", \"f17e9lqh\"]\n },\n separatorEnd: {\n ibv6hh: [\"finvdd3\", \"f1hqa2wf\"],\n wvpqe5: [\"fjik90z\", \"fcdblym\"],\n zhjwy3: [\"f17e9lqh\", \"fa8zu9y\"]\n },\n start: {\n Bz10aip: \"f1d8gkik\"\n },\n end: {\n Bz10aip: \"f1h1g6jt\"\n },\n visible: {\n abs64n: \"f5p0z4x\",\n Bz10aip: \"f87uvqx\"\n }\n}, {\n d: [\".f1hqa2wf{border-right-width:1px;}\", \".finvdd3{border-left-width:1px;}\", \".fcdblym{border-right-style:solid;}\", \".fjik90z{border-left-style:solid;}\", \".fa8zu9y{border-right-color:var(--colorNeutralBackground3);}\", \".f17e9lqh{border-left-color:var(--colorNeutralBackground3);}\", \".f1d8gkik{transform:translate3D(calc(var(--fui-Drawer--size) * -1), 0, 0);}\", \".f1h1g6jt{transform:translate3D(var(--fui-Drawer--size), 0, 0);}\", \".f5p0z4x{opacity:1;}\", \".f87uvqx{transform:translate3D(0, 0, 0);}\"]\n});\n/**\n * Apply styling to the DrawerInline slots based on the state\n */\nexport const useDrawerInlineStyles_unstable = state => {\n const resetStyles = useDrawerResetStyles();\n const baseClassNames = useDrawerBaseClassNames(state);\n const rootStyles = useDrawerRootStyles();\n const separatorClass = React.useMemo(() => {\n if (!state.separator) {\n return undefined;\n }\n return state.position === 'start' ? rootStyles.separatorStart : rootStyles.separatorEnd;\n }, [state.position, state.separator, rootStyles.separatorEnd, rootStyles.separatorStart]);\n state.root.className = mergeClasses(drawerInlineClassNames.root, resetStyles, baseClassNames, separatorClass, rootStyles[state.position], state.motion.active && rootStyles.visible, state.root.className);\n return state;\n};\n//# sourceMappingURL=useDrawerInlineStyles.styles.js.map"],"names":["drawerInlineClassNames","useDrawerInlineStyles_unstable","root","useDrawerResetStyles","__resetStyles","separatorValues","tokens","colorNeutralBackground3","useDrawerRootStyles","__styles","separatorStart","Bekrc4i","vrafjx","h3c5rm","separatorEnd","ibv6hh","wvpqe5","zhjwy3","start","Bz10aip","end","visible","abs64n","d","state","resetStyles","baseClassNames","useDrawerBaseClassNames","rootStyles","separatorClass","React","useMemo","separator","undefined","position","className","mergeClasses","motion","active"],"mappings":";;;;;;;;;;;IAIaA,sBAAsB;eAAtBA;;IAmCAC,8BAA8B;eAA9BA;;;;iEAvCU;wBAC2C;4BAC3C;2CACqD;AACrE,MAAMD,yBAAyB;IACpCE,MAAM;AACR;AACA,MAAMC,uBAAuB,WAAW,GAAEC,IAAAA,qBAAa,EAAC,WAAW,MAAM;IAAC;CAA4Z;AACte;;CAEC,GACD,MAAMC,kBAAkB;IAAC;IAAO;IAASC,kBAAM,CAACC,uBAAuB;CAAC;AACxE,MAAMC,sBAAsB,WAAW,GAAEC,IAAAA,gBAAQ,EAAC;IAChDC,gBAAgB;QACdC,SAAS;YAAC;YAAY;SAAU;QAChCC,QAAQ;YAAC;YAAW;SAAU;QAC9BC,QAAQ;YAAC;YAAW;SAAW;IACjC;IACAC,cAAc;QACZC,QAAQ;YAAC;YAAW;SAAW;QAC/BC,QAAQ;YAAC;YAAW;SAAU;QAC9BC,QAAQ;YAAC;YAAY;SAAU;IACjC;IACAC,OAAO;QACLC,SAAS;IACX;IACAC,KAAK;QACHD,SAAS;IACX;IACAE,SAAS;QACPC,QAAQ;QACRH,SAAS;IACX;AACF,GAAG;IACDI,GAAG;QAAC;QAAsC;QAAoC;QAAuC;QAAsC;QAAgE;QAAgE;QAA+E;QAAoE;QAAwB;KAA4C;AACpf;AAIO,MAAMtB,iCAAiCuB,CAAAA;IAC5C,MAAMC,cAActB;IACpB,MAAMuB,iBAAiBC,IAAAA,kDAAuB,EAACH;IAC/C,MAAMI,aAAapB;IACnB,MAAMqB,iBAAiBC,OAAMC,OAAO,CAAC;QACnC,IAAI,CAACP,MAAMQ,SAAS,EAAE;YACpB,OAAOC;QACT;QACA,OAAOT,MAAMU,QAAQ,KAAK,UAAUN,WAAWlB,cAAc,GAAGkB,WAAWd,YAAY;IACzF,GAAG;QAACU,MAAMU,QAAQ;QAAEV,MAAMQ,SAAS;QAAEJ,WAAWd,YAAY;QAAEc,WAAWlB,cAAc;KAAC;IACxFc,MAAMtB,IAAI,CAACiC,SAAS,GAAGC,IAAAA,oBAAY,EAACpC,uBAAuBE,IAAI,EAAEuB,aAAaC,gBAAgBG,gBAAgBD,UAAU,CAACJ,MAAMU,QAAQ,CAAC,EAAEV,MAAMa,MAAM,CAACC,MAAM,IAAIV,WAAWP,OAAO,EAAEG,MAAMtB,IAAI,CAACiC,SAAS;IACzM,OAAOX;AACT,GACA,wDAAwD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "DrawerOverlaySurface", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return DrawerOverlaySurface;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
12
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
13
|
+
const _reactdialog = require("@fluentui/react-dialog");
|
|
14
|
+
const _useDrawerOverlaySurfaceStylesstyles = require("./useDrawerOverlaySurfaceStyles.styles");
|
|
15
|
+
const DrawerOverlaySurface = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
|
|
16
|
+
const dialogSurfaceState = (0, _reactdialog.useDialogSurface_unstable)(props, ref);
|
|
17
|
+
const dialogSurfaceContextValues = (0, _reactdialog.useDialogSurfaceContextValues_unstable)(dialogSurfaceState);
|
|
18
|
+
(0, _useDrawerOverlaySurfaceStylesstyles.useDrawerOverlaySurfaceStyles_unstable)(dialogSurfaceState);
|
|
19
|
+
return (0, _reactdialog.renderDialogSurface_unstable)(dialogSurfaceState, dialogSurfaceContextValues);
|
|
20
|
+
});
|
|
21
|
+
DrawerOverlaySurface.displayName = 'DrawerOverlaySurface';
|
package/lib-commonjs/components/DrawerOverlay/DrawerOverlaySurface/DrawerOverlaySurface.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["DrawerOverlaySurface.js"],"sourcesContent":["import * as React from 'react';\nimport { useDialogSurface_unstable, useDialogSurfaceContextValues_unstable, renderDialogSurface_unstable } from '@fluentui/react-dialog';\nimport { useDrawerOverlaySurfaceStyles_unstable } from './useDrawerOverlaySurfaceStyles.styles';\n/**\n * @internal\n * DrawerOverlaySurface is a proxy for DialogSurface as is only meant to be used internally for Drawer.\n */ export const DrawerOverlaySurface = /*#__PURE__*/ React.forwardRef((props, ref)=>{\n const dialogSurfaceState = useDialogSurface_unstable(props, ref);\n const dialogSurfaceContextValues = useDialogSurfaceContextValues_unstable(dialogSurfaceState);\n useDrawerOverlaySurfaceStyles_unstable(dialogSurfaceState);\n return renderDialogSurface_unstable(dialogSurfaceState, dialogSurfaceContextValues);\n});\nDrawerOverlaySurface.displayName = 'DrawerOverlaySurface';\n"],"names":["DrawerOverlaySurface","React","forwardRef","props","ref","dialogSurfaceState","useDialogSurface_unstable","dialogSurfaceContextValues","useDialogSurfaceContextValues_unstable","useDrawerOverlaySurfaceStyles_unstable","renderDialogSurface_unstable","displayName"],"mappings":";;;;+BAMiBA;;;eAAAA;;;;iEANM;6BACyF;qDACzD;AAI5C,MAAMA,uBAAuB,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IAC3E,MAAMC,qBAAqBC,IAAAA,sCAAyB,EAACH,OAAOC;IAC5D,MAAMG,6BAA6BC,IAAAA,mDAAsC,EAACH;IAC1EI,IAAAA,2EAAsC,EAACJ;IACvC,OAAOK,IAAAA,yCAA4B,EAACL,oBAAoBE;AAC5D;AACAP,qBAAqBW,WAAW,GAAG"}
|
package/lib-commonjs/components/DrawerOverlay/DrawerOverlaySurface/DrawerOverlaySurface.types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
const _export_star = require("@swc/helpers/_/_export_star");
|
|
6
|
+
_export_star._(require("./DrawerOverlaySurface"), exports);
|
|
7
|
+
_export_star._(require("./DrawerOverlaySurface.types"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './DrawerOverlaySurface';\nexport * from './DrawerOverlaySurface.types';\n"],"names":[],"mappings":";;;;;uBAAc;uBACA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
drawerOverlaySurfaceClassNames: function() {
|
|
13
|
+
return drawerOverlaySurfaceClassNames;
|
|
14
|
+
},
|
|
15
|
+
useDrawerOverlaySurfaceStyles_unstable: function() {
|
|
16
|
+
return useDrawerOverlaySurfaceStyles_unstable;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _react = require("@griffel/react");
|
|
20
|
+
const drawerOverlaySurfaceClassNames = {
|
|
21
|
+
root: 'fui-DrawerOverlaySurface',
|
|
22
|
+
backdrop: 'fui-DrawerOverlaySurface__backdrop'
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Styles for the backdrop slot
|
|
26
|
+
*/ const useBackdropResetStyles = /*#__PURE__*/ (0, _react.__resetStyles)("rivxbo", "r1trjn1z", [
|
|
27
|
+
".rivxbo{top:0px;right:0px;bottom:0px;left:0px;position:fixed;background-color:rgba(0, 0, 0, 0.4);}",
|
|
28
|
+
".r1trjn1z{top:0px;left:0px;bottom:0px;right:0px;position:fixed;background-color:rgba(0, 0, 0, 0.4);}"
|
|
29
|
+
]);
|
|
30
|
+
const useBackdropStyles = /*#__PURE__*/ (0, _react.__styles)({
|
|
31
|
+
nested: {
|
|
32
|
+
De3pzq: "f1c21dwh"
|
|
33
|
+
}
|
|
34
|
+
}, {
|
|
35
|
+
d: [
|
|
36
|
+
".f1c21dwh{background-color:var(--colorTransparentBackground);}"
|
|
37
|
+
]
|
|
38
|
+
});
|
|
39
|
+
const useDrawerOverlaySurfaceStyles_unstable = (state)=>{
|
|
40
|
+
const backdropResetStyles = useBackdropResetStyles();
|
|
41
|
+
const backdropStyles = useBackdropStyles();
|
|
42
|
+
if (state.backdrop) {
|
|
43
|
+
state.backdrop.className = (0, _react.mergeClasses)(backdropResetStyles, state.isNestedDialog && backdropStyles.nested, state.backdrop.className);
|
|
44
|
+
}
|
|
45
|
+
return state;
|
|
46
|
+
}; //# sourceMappingURL=useDrawerOverlaySurfaceStyles.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["useDrawerOverlaySurfaceStyles.styles.js"],"sourcesContent":["import { __resetStyles, __styles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nexport const drawerOverlaySurfaceClassNames = {\n root: 'fui-DrawerOverlaySurface',\n backdrop: 'fui-DrawerOverlaySurface__backdrop'\n};\n/**\n * Styles for the backdrop slot\n */\nconst useBackdropResetStyles = /*#__PURE__*/__resetStyles(\"rivxbo\", \"r1trjn1z\", [\".rivxbo{top:0px;right:0px;bottom:0px;left:0px;position:fixed;background-color:rgba(0, 0, 0, 0.4);}\", \".r1trjn1z{top:0px;left:0px;bottom:0px;right:0px;position:fixed;background-color:rgba(0, 0, 0, 0.4);}\"]);\nconst useBackdropStyles = /*#__PURE__*/__styles({\n nested: {\n De3pzq: \"f1c21dwh\"\n }\n}, {\n d: [\".f1c21dwh{background-color:var(--colorTransparentBackground);}\"]\n});\n/**\n * Apply styling to the DrawerOverlaySurface slots based on the state\n */\nexport const useDrawerOverlaySurfaceStyles_unstable = state => {\n const backdropResetStyles = useBackdropResetStyles();\n const backdropStyles = useBackdropStyles();\n if (state.backdrop) {\n state.backdrop.className = mergeClasses(backdropResetStyles, state.isNestedDialog && backdropStyles.nested, state.backdrop.className);\n }\n return state;\n};\n//# sourceMappingURL=useDrawerOverlaySurfaceStyles.styles.js.map"],"names":["drawerOverlaySurfaceClassNames","useDrawerOverlaySurfaceStyles_unstable","root","backdrop","useBackdropResetStyles","__resetStyles","useBackdropStyles","__styles","nested","De3pzq","d","state","backdropResetStyles","backdropStyles","className","mergeClasses","isNestedDialog"],"mappings":";;;;;;;;;;;IAEaA,8BAA8B;eAA9BA;;IAkBAC,sCAAsC;eAAtCA;;;uBApBqD;AAE3D,MAAMD,iCAAiC;IAC5CE,MAAM;IACNC,UAAU;AACZ;AACA;;CAEC,GACD,MAAMC,yBAAyB,WAAW,GAAEC,IAAAA,oBAAa,EAAC,UAAU,YAAY;IAAC;IAAsG;CAAuG;AAC9R,MAAMC,oBAAoB,WAAW,GAAEC,IAAAA,eAAQ,EAAC;IAC9CC,QAAQ;QACNC,QAAQ;IACV;AACF,GAAG;IACDC,GAAG;QAAC;KAAiE;AACvE;AAIO,MAAMT,yCAAyCU,CAAAA;IACpD,MAAMC,sBAAsBR;IAC5B,MAAMS,iBAAiBP;IACvB,IAAIK,MAAMR,QAAQ,EAAE;QAClBQ,MAAMR,QAAQ,CAACW,SAAS,GAAGC,IAAAA,mBAAY,EAACH,qBAAqBD,MAAMK,cAAc,IAAIH,eAAeL,MAAM,EAAEG,MAAMR,QAAQ,CAACW,SAAS;IACtI;IACA,OAAOH;AACT,GACA,gEAAgE"}
|
|
@@ -11,7 +11,7 @@ Object.defineProperty(exports, "renderDrawerOverlay_unstable", {
|
|
|
11
11
|
const _jsxruntime = require("@fluentui/react-jsx-runtime/jsx-runtime");
|
|
12
12
|
const _reactutilities = require("@fluentui/react-utilities");
|
|
13
13
|
const renderDrawerOverlay_unstable = (state)=>{
|
|
14
|
-
if (!state.
|
|
14
|
+
if (!state.motion.canRender) {
|
|
15
15
|
return null;
|
|
16
16
|
}
|
|
17
17
|
(0, _reactutilities.assertSlots)(state);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["renderDrawerOverlay.js"],"sourcesContent":[" import { jsx as _jsx } from \"@fluentui/react-jsx-runtime/jsx-runtime\";\nimport { assertSlots } from '@fluentui/react-utilities';\n/**\n * Render the final JSX of DrawerOverlay\n */ export const renderDrawerOverlay_unstable = (state)=>{\n if (!state.
|
|
1
|
+
{"version":3,"sources":["renderDrawerOverlay.js"],"sourcesContent":[" import { jsx as _jsx } from \"@fluentui/react-jsx-runtime/jsx-runtime\";\nimport { assertSlots } from '@fluentui/react-utilities';\n/**\n * Render the final JSX of DrawerOverlay\n */ export const renderDrawerOverlay_unstable = (state)=>{\n if (!state.motion.canRender) {\n return null;\n }\n assertSlots(state);\n return /*#__PURE__*/ _jsx(state.dialog, {\n children: /*#__PURE__*/ _jsx(state.root, {})\n });\n};\n"],"names":["renderDrawerOverlay_unstable","state","motion","canRender","assertSlots","_jsx","dialog","children","root"],"mappings":";;;;+BAIiBA;;;eAAAA;;;4BAJa;gCACF;AAGjB,MAAMA,+BAA+B,CAACC;IAC7C,IAAI,CAACA,MAAMC,MAAM,CAACC,SAAS,EAAE;QACzB,OAAO;IACX;IACAC,IAAAA,2BAAW,EAACH;IACZ,OAAO,WAAW,GAAGI,IAAAA,eAAI,EAACJ,MAAMK,MAAM,EAAE;QACpCC,UAAU,WAAW,GAAGF,IAAAA,eAAI,EAACJ,MAAMO,IAAI,EAAE,CAAC;IAC9C;AACJ"}
|
|
@@ -14,43 +14,44 @@ const _reactutilities = require("@fluentui/react-utilities");
|
|
|
14
14
|
const _reactdialog = require("@fluentui/react-dialog");
|
|
15
15
|
const _reactmotionpreview = require("@fluentui/react-motion-preview");
|
|
16
16
|
const _useDrawerDefaultProps = require("../../shared/useDrawerDefaultProps");
|
|
17
|
+
const _DrawerOverlaySurface = require("./DrawerOverlaySurface");
|
|
17
18
|
const useDrawerOverlay_unstable = (props, ref)=>{
|
|
18
19
|
const { open, size, position } = (0, _useDrawerDefaultProps.useDrawerDefaultProps)(props);
|
|
19
20
|
const { modalType = 'modal', inertTrapFocus, defaultOpen = false, onOpenChange } = props;
|
|
20
21
|
const drawerMotion = (0, _reactmotionpreview.useMotion)(open);
|
|
21
22
|
const backdropMotion = (0, _reactmotionpreview.useMotion)(open);
|
|
22
|
-
const
|
|
23
|
+
const backdropInnerProps = _reactutilities.slot.resolveShorthand(props.backdrop);
|
|
24
|
+
const hasCustomBackdrop = modalType !== 'non-modal' && backdropInnerProps !== null;
|
|
25
|
+
const backdropProps = {
|
|
26
|
+
...backdropInnerProps,
|
|
27
|
+
ref: (0, _reactutilities.useMergedRefs)(backdropMotion.ref, backdropInnerProps === null || backdropInnerProps === void 0 ? void 0 : backdropInnerProps.ref)
|
|
28
|
+
};
|
|
23
29
|
const root = _reactutilities.slot.always({
|
|
24
30
|
...props,
|
|
25
|
-
|
|
31
|
+
backdrop: hasCustomBackdrop ? backdropProps : null
|
|
26
32
|
}, {
|
|
27
|
-
elementType:
|
|
33
|
+
elementType: _DrawerOverlaySurface.DrawerOverlaySurface,
|
|
28
34
|
defaultProps: {
|
|
29
|
-
|
|
30
|
-
elementType: 'div',
|
|
31
|
-
renderByDefault: hasCustomBackdrop,
|
|
32
|
-
defaultProps: {
|
|
33
|
-
ref: backdropMotion.ref
|
|
34
|
-
}
|
|
35
|
-
})
|
|
35
|
+
ref: (0, _reactutilities.useMergedRefs)(ref, drawerMotion.ref)
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
-
const dialog = _reactutilities.slot.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
38
|
+
const dialog = _reactutilities.slot.always({
|
|
39
|
+
open: true,
|
|
40
|
+
defaultOpen,
|
|
41
|
+
onOpenChange,
|
|
42
|
+
inertTrapFocus,
|
|
43
|
+
modalType,
|
|
44
|
+
/*
|
|
45
|
+
* children is not needed here because we construct the children in the render function,
|
|
46
|
+
* but it's required by DialogProps
|
|
47
|
+
*/ children: null
|
|
48
|
+
}, {
|
|
49
|
+
elementType: _reactdialog.Dialog
|
|
48
50
|
});
|
|
49
51
|
return {
|
|
50
52
|
components: {
|
|
51
|
-
root:
|
|
52
|
-
dialog: _reactdialog.Dialog
|
|
53
|
-
backdrop: 'div'
|
|
53
|
+
root: _DrawerOverlaySurface.DrawerOverlaySurface,
|
|
54
|
+
dialog: _reactdialog.Dialog
|
|
54
55
|
},
|
|
55
56
|
root,
|
|
56
57
|
dialog,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useDrawerOverlay.js"],"sourcesContent":["import * as React from 'react';\nimport { slot, useMergedRefs } from '@fluentui/react-utilities';\nimport { Dialog
|
|
1
|
+
{"version":3,"sources":["useDrawerOverlay.js"],"sourcesContent":["import * as React from 'react';\nimport { slot, useMergedRefs } from '@fluentui/react-utilities';\nimport { Dialog } from '@fluentui/react-dialog';\nimport { useMotion } from '@fluentui/react-motion-preview';\nimport { useDrawerDefaultProps } from '../../shared/useDrawerDefaultProps';\nimport { DrawerOverlaySurface } from './DrawerOverlaySurface';\n/**\n * Create the state required to render DrawerOverlay.\n *\n * The returned state can be modified with hooks such as useDrawerOverlayStyles_unstable,\n * before being passed to renderDrawerOverlay_unstable.\n *\n * @param props - props from this instance of DrawerOverlay\n * @param ref - reference to root HTMLDivElement of DrawerOverlay\n */ export const useDrawerOverlay_unstable = (props, ref)=>{\n const { open, size, position } = useDrawerDefaultProps(props);\n const { modalType = 'modal', inertTrapFocus, defaultOpen = false, onOpenChange } = props;\n const drawerMotion = useMotion(open);\n const backdropMotion = useMotion(open);\n const backdropInnerProps = slot.resolveShorthand(props.backdrop);\n const hasCustomBackdrop = modalType !== 'non-modal' && backdropInnerProps !== null;\n const backdropProps = {\n ...backdropInnerProps,\n ref: useMergedRefs(backdropMotion.ref, backdropInnerProps === null || backdropInnerProps === void 0 ? void 0 : backdropInnerProps.ref)\n };\n const root = slot.always({\n ...props,\n backdrop: hasCustomBackdrop ? backdropProps : null\n }, {\n elementType: DrawerOverlaySurface,\n defaultProps: {\n ref: useMergedRefs(ref, drawerMotion.ref)\n }\n });\n const dialog = slot.always({\n open: true,\n defaultOpen,\n onOpenChange,\n inertTrapFocus,\n modalType,\n /*\n * children is not needed here because we construct the children in the render function,\n * but it's required by DialogProps\n */ children: null\n }, {\n elementType: Dialog\n });\n return {\n components: {\n root: DrawerOverlaySurface,\n dialog: Dialog\n },\n root,\n dialog,\n size,\n position,\n motion: drawerMotion,\n backdropMotion\n };\n};\n"],"names":["useDrawerOverlay_unstable","props","ref","open","size","position","useDrawerDefaultProps","modalType","inertTrapFocus","defaultOpen","onOpenChange","drawerMotion","useMotion","backdropMotion","backdropInnerProps","slot","resolveShorthand","backdrop","hasCustomBackdrop","backdropProps","useMergedRefs","root","always","elementType","DrawerOverlaySurface","defaultProps","dialog","children","Dialog","components","motion"],"mappings":";;;;+BAciBA;;;eAAAA;;;;iEAdM;gCACa;6BACb;oCACG;uCACY;sCACD;AAS1B,MAAMA,4BAA4B,CAACC,OAAOC;IACjD,MAAM,EAAEC,IAAI,EAAEC,IAAI,EAAEC,QAAQ,EAAE,GAAGC,IAAAA,4CAAqB,EAACL;IACvD,MAAM,EAAEM,YAAY,OAAO,EAAEC,cAAc,EAAEC,cAAc,KAAK,EAAEC,YAAY,EAAE,GAAGT;IACnF,MAAMU,eAAeC,IAAAA,6BAAS,EAACT;IAC/B,MAAMU,iBAAiBD,IAAAA,6BAAS,EAACT;IACjC,MAAMW,qBAAqBC,oBAAI,CAACC,gBAAgB,CAACf,MAAMgB,QAAQ;IAC/D,MAAMC,oBAAoBX,cAAc,eAAeO,uBAAuB;IAC9E,MAAMK,gBAAgB;QAClB,GAAGL,kBAAkB;QACrBZ,KAAKkB,IAAAA,6BAAa,EAACP,eAAeX,GAAG,EAAEY,uBAAuB,QAAQA,uBAAuB,KAAK,IAAI,KAAK,IAAIA,mBAAmBZ,GAAG;IACzI;IACA,MAAMmB,OAAON,oBAAI,CAACO,MAAM,CAAC;QACrB,GAAGrB,KAAK;QACRgB,UAAUC,oBAAoBC,gBAAgB;IAClD,GAAG;QACCI,aAAaC,0CAAoB;QACjCC,cAAc;YACVvB,KAAKkB,IAAAA,6BAAa,EAAClB,KAAKS,aAAaT,GAAG;QAC5C;IACJ;IACA,MAAMwB,SAASX,oBAAI,CAACO,MAAM,CAAC;QACvBnB,MAAM;QACNM;QACAC;QACAF;QACAD;QACA;;;OAGD,GAAGoB,UAAU;IAChB,GAAG;QACCJ,aAAaK,mBAAM;IACvB;IACA,OAAO;QACHC,YAAY;YACRR,MAAMG,0CAAoB;YAC1BE,QAAQE,mBAAM;QAClB;QACAP;QACAK;QACAtB;QACAC;QACAyB,QAAQnB;QACRE;IACJ;AACJ"}
|
|
@@ -26,63 +26,19 @@ const drawerOverlayClassNames = {
|
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
28
|
* Styles for the root slot
|
|
29
|
-
*/ const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
Bmxbyg5: "f1sil6mw",
|
|
43
|
-
Bbmb7ep: [
|
|
44
|
-
"f1krrbdw",
|
|
45
|
-
"f1deotkl"
|
|
46
|
-
],
|
|
47
|
-
Beyfa6y: [
|
|
48
|
-
"f1deotkl",
|
|
49
|
-
"f1krrbdw"
|
|
50
|
-
],
|
|
51
|
-
B7oj6ja: [
|
|
52
|
-
"f10ostut",
|
|
53
|
-
"f1ozlkrg"
|
|
54
|
-
],
|
|
55
|
-
Btl43ni: [
|
|
56
|
-
"f1ozlkrg",
|
|
57
|
-
"f10ostut"
|
|
58
|
-
],
|
|
59
|
-
B4j52fo: "fre7gi1",
|
|
60
|
-
Bekrc4i: [
|
|
61
|
-
"f1358rze",
|
|
62
|
-
"f1rvrf73"
|
|
63
|
-
],
|
|
64
|
-
Bn0qgzm: "fqdk4by",
|
|
65
|
-
ibv6hh: [
|
|
66
|
-
"f1rvrf73",
|
|
67
|
-
"f1358rze"
|
|
68
|
-
],
|
|
69
|
-
a9b677: "f3rx6dk",
|
|
70
|
-
B2u0y6b: "f1w39fev",
|
|
71
|
-
Bqenvij: "f11ysow2",
|
|
72
|
-
B7ck84d: "f1ewtqcl",
|
|
73
|
-
mc9l5x: "f22iagw",
|
|
74
|
-
Beiy3e4: "f1vx9l62",
|
|
75
|
-
Bt984gj: "f6jr5hl",
|
|
76
|
-
Brf1p80: "fbhxue7",
|
|
77
|
-
De3pzq: "fxugw4r",
|
|
78
|
-
qhf8xq: "f19dog8a",
|
|
79
|
-
Bhzewxz: "f15twtuk",
|
|
80
|
-
B5kzvoi: "f1yab3r1",
|
|
81
|
-
abs64n: "fk73vx1",
|
|
82
|
-
E5pizo: "fliqkoi",
|
|
83
|
-
Bmy1vo4: "f1neo61",
|
|
84
|
-
Es3by: "f1ytgekk"
|
|
85
|
-
},
|
|
29
|
+
*/ const useDrawerResetStyles = /*#__PURE__*/ (0, _react1.__resetStyles)("rspikg4", "r195rwb6", [
|
|
30
|
+
".rspikg4{overflow-x:hidden;overflow-y:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:fixed;top:0;bottom:0;opacity:0;box-shadow:0px var(--colorTransparentBackground);transition-property:transform,box-shadow,opacity;will-change:transform,box-shadow,opacity;}",
|
|
31
|
+
".rspikg4:focus{outline-style:none;}",
|
|
32
|
+
".rspikg4:focus-visible{outline-style:none;}",
|
|
33
|
+
".rspikg4[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",
|
|
34
|
+
".rspikg4[data-fui-focus-visible]::after{content:\"\";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}",
|
|
35
|
+
".r195rwb6{overflow-x:hidden;overflow-y:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:fixed;top:0;bottom:0;opacity:0;box-shadow:0px var(--colorTransparentBackground);transition-property:transform,box-shadow,opacity;will-change:transform,box-shadow,opacity;}",
|
|
36
|
+
".r195rwb6:focus{outline-style:none;}",
|
|
37
|
+
".r195rwb6:focus-visible{outline-style:none;}",
|
|
38
|
+
".r195rwb6[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",
|
|
39
|
+
".r195rwb6[data-fui-focus-visible]::after{content:\"\";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}"
|
|
40
|
+
]);
|
|
41
|
+
const useDrawerRootStyles = /*#__PURE__*/ (0, _react1.__styles)({
|
|
86
42
|
start: {
|
|
87
43
|
Bz10aip: "f1d8gkik"
|
|
88
44
|
},
|
|
@@ -96,36 +52,6 @@ const drawerOverlayClassNames = {
|
|
|
96
52
|
}
|
|
97
53
|
}, {
|
|
98
54
|
d: [
|
|
99
|
-
".f1g0x7ka{padding-top:0;}",
|
|
100
|
-
".fhxju0i{padding-right:0;}",
|
|
101
|
-
".f1cnd47f{padding-left:0;}",
|
|
102
|
-
".f1qch9an{padding-bottom:0;}",
|
|
103
|
-
".f1p9o1ba{overflow-x:hidden;}",
|
|
104
|
-
".f1sil6mw{overflow-y:hidden;}",
|
|
105
|
-
".f1krrbdw{border-bottom-right-radius:0;}",
|
|
106
|
-
".f1deotkl{border-bottom-left-radius:0;}",
|
|
107
|
-
".f10ostut{border-top-right-radius:0;}",
|
|
108
|
-
".f1ozlkrg{border-top-left-radius:0;}",
|
|
109
|
-
".fre7gi1{border-top-width:0;}",
|
|
110
|
-
".f1358rze{border-right-width:0;}",
|
|
111
|
-
".f1rvrf73{border-left-width:0;}",
|
|
112
|
-
".fqdk4by{border-bottom-width:0;}",
|
|
113
|
-
".f3rx6dk{width:var(--fui-Drawer--size);}",
|
|
114
|
-
".f1w39fev{max-width:100vw;}",
|
|
115
|
-
".f11ysow2{height:auto;}",
|
|
116
|
-
".f1ewtqcl{box-sizing:border-box;}",
|
|
117
|
-
".f22iagw{display:flex;}",
|
|
118
|
-
".f1vx9l62{flex-direction:column;}",
|
|
119
|
-
".f6jr5hl{align-items:flex-start;}",
|
|
120
|
-
".fbhxue7{justify-content:flex-start;}",
|
|
121
|
-
".fxugw4r{background-color:var(--colorNeutralBackground1);}",
|
|
122
|
-
".f19dog8a{position:fixed;}",
|
|
123
|
-
".f15twtuk{top:0;}",
|
|
124
|
-
".f1yab3r1{bottom:0;}",
|
|
125
|
-
".fk73vx1{opacity:0;}",
|
|
126
|
-
".fliqkoi{box-shadow:0px transparent;}",
|
|
127
|
-
".f1neo61{transition-property:transform,box-shadow,opacity;}",
|
|
128
|
-
".f1ytgekk{will-change:transform,box-shadow,opacity;}",
|
|
129
55
|
".f1d8gkik{transform:translate3D(calc(var(--fui-Drawer--size) * -1), 0, 0);}",
|
|
130
56
|
".f1g0pcr8{transform:translate3D(calc(var(--fui-Drawer--size) * 1), 0, 0);}",
|
|
131
57
|
".f5p0z4x{opacity:1;}",
|
|
@@ -135,7 +61,7 @@ const drawerOverlayClassNames = {
|
|
|
135
61
|
});
|
|
136
62
|
/**
|
|
137
63
|
* Styles for the backdrop slot
|
|
138
|
-
*/ const
|
|
64
|
+
*/ const useBackdropStyles = /*#__PURE__*/ (0, _react1.__styles)({
|
|
139
65
|
backdrop: {
|
|
140
66
|
abs64n: "fk73vx1",
|
|
141
67
|
Bmy1vo4: "f13u1uyl",
|
|
@@ -156,13 +82,14 @@ const drawerOverlayClassNames = {
|
|
|
156
82
|
});
|
|
157
83
|
const useDrawerOverlayStyles_unstable = (state)=>{
|
|
158
84
|
const baseClassNames = (0, _useDrawerBaseStylesstyles.useDrawerBaseClassNames)(state);
|
|
85
|
+
const resetStyles = useDrawerResetStyles();
|
|
159
86
|
const rootStyles = useDrawerRootStyles();
|
|
160
|
-
const
|
|
87
|
+
const backdropStyles = useBackdropStyles();
|
|
161
88
|
const durationStyles = (0, _useDrawerBaseStylesstyles.useDrawerDurationStyles)();
|
|
162
89
|
const backdrop = state.root.backdrop;
|
|
163
|
-
state.root.className = (0, _react1.mergeClasses)(drawerOverlayClassNames.root, baseClassNames,
|
|
90
|
+
state.root.className = (0, _react1.mergeClasses)(drawerOverlayClassNames.root, baseClassNames, resetStyles, rootStyles[state.position], state.motion.active && rootStyles.visible, state.root.className);
|
|
164
91
|
if (backdrop) {
|
|
165
|
-
backdrop.className = (0, _react1.mergeClasses)(drawerOverlayClassNames.backdrop,
|
|
92
|
+
backdrop.className = (0, _react1.mergeClasses)(drawerOverlayClassNames.backdrop, backdropStyles.backdrop, durationStyles[state.size], state.backdropMotion.active && backdropStyles.visible, backdrop.className);
|
|
166
93
|
}
|
|
167
94
|
return state;
|
|
168
95
|
}; //# sourceMappingURL=useDrawerOverlayStyles.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useDrawerOverlayStyles.styles.js"],"sourcesContent":["import * as React from 'react';\nimport { __styles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport { drawerCSSVars, drawerDefaultStyles, useDrawerBaseClassNames, useDrawerDurationStyles } from '../../shared/useDrawerBaseStyles.styles';\nexport const drawerOverlayClassNames = {\n root: 'fui-DrawerOverlay',\n backdrop: 'fui-DrawerOverlay__backdrop'\n};\n/**\n * Styles for the root slot\n */\nconst
|
|
1
|
+
{"version":3,"sources":["useDrawerOverlayStyles.styles.js"],"sourcesContent":["import * as React from 'react';\nimport { __resetStyles, __styles, mergeClasses } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\nimport { createFocusOutlineStyle } from '@fluentui/react-tabster';\nimport { drawerCSSVars, drawerDefaultStyles, useDrawerBaseClassNames, useDrawerDurationStyles } from '../../shared/useDrawerBaseStyles.styles';\nexport const drawerOverlayClassNames = {\n root: 'fui-DrawerOverlay',\n backdrop: 'fui-DrawerOverlay__backdrop'\n};\n/**\n * Styles for the root slot\n */\nconst useDrawerResetStyles = /*#__PURE__*/__resetStyles(\"rspikg4\", \"r195rwb6\", [\".rspikg4{overflow-x:hidden;overflow-y:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:fixed;top:0;bottom:0;opacity:0;box-shadow:0px var(--colorTransparentBackground);transition-property:transform,box-shadow,opacity;will-change:transform,box-shadow,opacity;}\", \".rspikg4:focus{outline-style:none;}\", \".rspikg4:focus-visible{outline-style:none;}\", \".rspikg4[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}\", \".rspikg4[data-fui-focus-visible]::after{content:\\\"\\\";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}\", \".r195rwb6{overflow-x:hidden;overflow-y:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:fixed;top:0;bottom:0;opacity:0;box-shadow:0px var(--colorTransparentBackground);transition-property:transform,box-shadow,opacity;will-change:transform,box-shadow,opacity;}\", \".r195rwb6:focus{outline-style:none;}\", \".r195rwb6:focus-visible{outline-style:none;}\", \".r195rwb6[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}\", \".r195rwb6[data-fui-focus-visible]::after{content:\\\"\\\";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}\"]);\nconst useDrawerRootStyles = /*#__PURE__*/__styles({\n start: {\n Bz10aip: \"f1d8gkik\"\n },\n end: {\n Bz10aip: \"f1g0pcr8\"\n },\n visible: {\n abs64n: \"f5p0z4x\",\n Bz10aip: \"f87uvqx\",\n E5pizo: \"f10nrhrw\"\n }\n}, {\n d: [\".f1d8gkik{transform:translate3D(calc(var(--fui-Drawer--size) * -1), 0, 0);}\", \".f1g0pcr8{transform:translate3D(calc(var(--fui-Drawer--size) * 1), 0, 0);}\", \".f5p0z4x{opacity:1;}\", \".f87uvqx{transform:translate3D(0, 0, 0);}\", \".f10nrhrw{box-shadow:var(--shadow64);}\"]\n});\n/**\n * Styles for the backdrop slot\n */\nconst useBackdropStyles = /*#__PURE__*/__styles({\n backdrop: {\n abs64n: \"fk73vx1\",\n Bmy1vo4: \"f13u1uyl\",\n Bkqvd7p: \"f17wnm97\",\n Es3by: \"f1gqqdtu\"\n },\n visible: {\n abs64n: \"f5p0z4x\"\n }\n}, {\n d: [\".fk73vx1{opacity:0;}\", \".f13u1uyl{transition-property:opacity;}\", \".f17wnm97{transition-timing-function:var(--curveEasyEase);}\", \".f1gqqdtu{will-change:opacity;}\", \".f5p0z4x{opacity:1;}\"]\n});\n/**\n * Apply styling to the DrawerOverlay slots based on the state\n */\nexport const useDrawerOverlayStyles_unstable = state => {\n const baseClassNames = useDrawerBaseClassNames(state);\n const resetStyles = useDrawerResetStyles();\n const rootStyles = useDrawerRootStyles();\n const backdropStyles = useBackdropStyles();\n const durationStyles = useDrawerDurationStyles();\n const backdrop = state.root.backdrop;\n state.root.className = mergeClasses(drawerOverlayClassNames.root, baseClassNames, resetStyles, rootStyles[state.position], state.motion.active && rootStyles.visible, state.root.className);\n if (backdrop) {\n backdrop.className = mergeClasses(drawerOverlayClassNames.backdrop, backdropStyles.backdrop, durationStyles[state.size], state.backdropMotion.active && backdropStyles.visible, backdrop.className);\n }\n return state;\n};\n//# sourceMappingURL=useDrawerOverlayStyles.styles.js.map"],"names":["drawerOverlayClassNames","useDrawerOverlayStyles_unstable","root","backdrop","useDrawerResetStyles","__resetStyles","useDrawerRootStyles","__styles","start","Bz10aip","end","visible","abs64n","E5pizo","d","useBackdropStyles","Bmy1vo4","Bkqvd7p","Es3by","state","baseClassNames","useDrawerBaseClassNames","resetStyles","rootStyles","backdropStyles","durationStyles","useDrawerDurationStyles","className","mergeClasses","position","motion","active","size","backdropMotion"],"mappings":";;;;;;;;;;;IAKaA,uBAAuB;eAAvBA;;IA0CAC,+BAA+B;eAA/BA;;;;iEA/CU;wBAC+B;2CAG+C;AAC9F,MAAMD,0BAA0B;IACrCE,MAAM;IACNC,UAAU;AACZ;AACA;;CAEC,GACD,MAAMC,uBAAuB,WAAW,GAAEC,IAAAA,qBAAa,EAAC,WAAW,YAAY;IAAC;IAAgf;IAAuC;IAA+C;IAAgK;IAAkvB;IAAif;IAAwC;IAAgD;IAAiK;CAAkvB;AACpgG,MAAMC,sBAAsB,WAAW,GAAEC,IAAAA,gBAAQ,EAAC;IAChDC,OAAO;QACLC,SAAS;IACX;IACAC,KAAK;QACHD,SAAS;IACX;IACAE,SAAS;QACPC,QAAQ;QACRH,SAAS;QACTI,QAAQ;IACV;AACF,GAAG;IACDC,GAAG;QAAC;QAA+E;QAA8E;QAAwB;QAA6C;KAAyC;AACjR;AACA;;CAEC,GACD,MAAMC,oBAAoB,WAAW,GAAER,IAAAA,gBAAQ,EAAC;IAC9CJ,UAAU;QACRS,QAAQ;QACRI,SAAS;QACTC,SAAS;QACTC,OAAO;IACT;IACAP,SAAS;QACPC,QAAQ;IACV;AACF,GAAG;IACDE,GAAG;QAAC;QAAwB;QAA2C;QAA+D;QAAmC;KAAuB;AAClM;AAIO,MAAMb,kCAAkCkB,CAAAA;IAC7C,MAAMC,iBAAiBC,IAAAA,kDAAuB,EAACF;IAC/C,MAAMG,cAAclB;IACpB,MAAMmB,aAAajB;IACnB,MAAMkB,iBAAiBT;IACvB,MAAMU,iBAAiBC,IAAAA,kDAAuB;IAC9C,MAAMvB,WAAWgB,MAAMjB,IAAI,CAACC,QAAQ;IACpCgB,MAAMjB,IAAI,CAACyB,SAAS,GAAGC,IAAAA,oBAAY,EAAC5B,wBAAwBE,IAAI,EAAEkB,gBAAgBE,aAAaC,UAAU,CAACJ,MAAMU,QAAQ,CAAC,EAAEV,MAAMW,MAAM,CAACC,MAAM,IAAIR,WAAWZ,OAAO,EAAEQ,MAAMjB,IAAI,CAACyB,SAAS;IAC1L,IAAIxB,UAAU;QACZA,SAASwB,SAAS,GAAGC,IAAAA,oBAAY,EAAC5B,wBAAwBG,QAAQ,EAAEqB,eAAerB,QAAQ,EAAEsB,cAAc,CAACN,MAAMa,IAAI,CAAC,EAAEb,MAAMc,cAAc,CAACF,MAAM,IAAIP,eAAeb,OAAO,EAAER,SAASwB,SAAS;IACpM;IACA,OAAOR;AACT,GACA,yDAAyD"}
|
|
@@ -28,19 +28,18 @@ const drawerCSSVars = {
|
|
|
28
28
|
drawerSizeVar: '--fui-Drawer--size'
|
|
29
29
|
};
|
|
30
30
|
const drawerDefaultStyles = {
|
|
31
|
-
.../*#__PURE__*/ _react.shorthands.padding(0),
|
|
32
31
|
.../*#__PURE__*/ _react.shorthands.overflow('hidden'),
|
|
33
|
-
.../*#__PURE__*/ _react.shorthands.borderRadius(0),
|
|
34
|
-
.../*#__PURE__*/ _react.shorthands.border(0),
|
|
35
32
|
width: `var(${drawerCSSVars.drawerSizeVar})`,
|
|
36
33
|
maxWidth: '100vw',
|
|
37
34
|
height: 'auto',
|
|
35
|
+
maxHeight: '100vh',
|
|
38
36
|
boxSizing: 'border-box',
|
|
39
37
|
display: 'flex',
|
|
40
38
|
flexDirection: 'column',
|
|
41
39
|
alignItems: 'flex-start',
|
|
42
40
|
justifyContent: 'flex-start',
|
|
43
|
-
backgroundColor: _reacttheme.tokens.colorNeutralBackground1
|
|
41
|
+
backgroundColor: _reacttheme.tokens.colorNeutralBackground1,
|
|
42
|
+
color: _reacttheme.tokens.colorNeutralForeground1
|
|
44
43
|
};
|
|
45
44
|
/**
|
|
46
45
|
* Shared dynamic styles for the Drawer component
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useDrawerBaseStyles.styles.js"],"sourcesContent":["import { __styles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\n/**\n * CSS variable names used internally for uniform styling in Drawer.\n */\nexport const drawerCSSVars = {\n drawerSizeVar: '--fui-Drawer--size'\n};\n/**\n * Default shared styles for the Drawer component\n */\nexport const drawerDefaultStyles = {\n ... /*#__PURE__*/shorthands.
|
|
1
|
+
{"version":3,"sources":["useDrawerBaseStyles.styles.js"],"sourcesContent":["import { __styles, mergeClasses, shorthands } from '@griffel/react';\nimport { tokens } from '@fluentui/react-theme';\n/**\n * CSS variable names used internally for uniform styling in Drawer.\n */\nexport const drawerCSSVars = {\n drawerSizeVar: '--fui-Drawer--size'\n};\n/**\n * Default shared styles for the Drawer component\n */\nexport const drawerDefaultStyles = {\n ... /*#__PURE__*/shorthands.overflow('hidden'),\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 * Shared dynamic styles for the Drawer component\n */\nconst useDrawerStyles = /*#__PURE__*/__styles({\n entering: {\n Bkqvd7p: \"f18ad807\"\n },\n exiting: {\n Bkqvd7p: \"f1mfizis\"\n },\n reducedMotion: {\n Hwfdqs: \"f5e8c63\"\n },\n start: {\n oyh7mz: [\"f1vgc2s3\", \"f1e31b4d\"],\n j35jbq: [\"fvfyk4\", \"frppm18\"]\n },\n end: {\n j35jbq: [\"f1e31b4d\", \"f1vgc2s3\"],\n oyh7mz: [\"frppm18\", \"fvfyk4\"]\n },\n small: {\n Bjr0ffy: \"f1exhnwo\"\n },\n medium: {\n Bjr0ffy: \"fqofjzu\"\n },\n large: {\n Bjr0ffy: \"fce6y3m\"\n },\n full: {\n Bjr0ffy: \"fsdmzs6\"\n }\n}, {\n d: [\".f18ad807{transition-timing-function:var(--curveDecelerateMid);}\", \".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}\", \".f1vgc2s3{left:0;}\", \".f1e31b4d{right:0;}\", \".fvfyk4{right:auto;}\", \".frppm18{left:auto;}\", \".f1exhnwo{--fui-Drawer--size:320px;}\", \".fqofjzu{--fui-Drawer--size:592px;}\", \".fce6y3m{--fui-Drawer--size:940px;}\", \".fsdmzs6{--fui-Drawer--size:100vw;}\"],\n m: [[\"@media screen and (prefers-reduced-motion: reduce){.f5e8c63{transition-duration:0.001ms;}}\", {\n m: \"screen and (prefers-reduced-motion: reduce)\"\n }]]\n});\nexport const useDrawerDurationStyles = /*#__PURE__*/__styles({\n small: {\n B3o57yi: \"fc397y7\"\n },\n medium: {\n B3o57yi: \"f78771\"\n },\n large: {\n B3o57yi: \"f9ymmep\"\n },\n full: {\n B3o57yi: \"f1loko9l\"\n }\n}, {\n d: [\".fc397y7{transition-duration:var(--durationGentle);}\", \".f78771{transition-duration:var(--durationSlow);}\", \".f9ymmep{transition-duration:var(--durationSlower);}\", \".f1loko9l{transition-duration:var(--durationUltraSlow);}\"]\n});\nexport const useDrawerBaseClassNames = ({\n position,\n size,\n motion\n}) => {\n const baseStyles = useDrawerStyles();\n const durationStyles = useDrawerDurationStyles();\n return mergeClasses(baseStyles[position], durationStyles[size], baseStyles[size], baseStyles.reducedMotion, motion.type === 'entering' && baseStyles.entering, motion.type === 'exiting' && baseStyles.exiting);\n};\n//# sourceMappingURL=useDrawerBaseStyles.styles.js.map"],"names":["drawerCSSVars","drawerDefaultStyles","useDrawerDurationStyles","useDrawerBaseClassNames","drawerSizeVar","shorthands","overflow","width","maxWidth","height","maxHeight","boxSizing","display","flexDirection","alignItems","justifyContent","backgroundColor","tokens","colorNeutralBackground1","color","colorNeutralForeground1","useDrawerStyles","__styles","entering","Bkqvd7p","exiting","reducedMotion","Hwfdqs","start","oyh7mz","j35jbq","end","small","Bjr0ffy","medium","large","full","d","m","B3o57yi","position","size","motion","baseStyles","durationStyles","mergeClasses","type"],"mappings":";;;;;;;;;;;IAKaA,aAAa;eAAbA;;IAMAC,mBAAmB;eAAnBA;;IAqDAC,uBAAuB;eAAvBA;;IAgBAC,uBAAuB;eAAvBA;;;uBAhFsC;4BAC5B;AAIhB,MAAMH,gBAAgB;IAC3BI,eAAe;AACjB;AAIO,MAAMH,sBAAsB;IACjC,GAAI,WAAW,GAAEI,iBAAU,CAACC,QAAQ,CAAC,SAAS;IAC9CC,OAAO,CAAC,IAAI,EAAEP,cAAcI,aAAa,CAAC,CAAC,CAAC;IAC5CI,UAAU;IACVC,QAAQ;IACRC,WAAW;IACXC,WAAW;IACXC,SAAS;IACTC,eAAe;IACfC,YAAY;IACZC,gBAAgB;IAChBC,iBAAiBC,kBAAM,CAACC,uBAAuB;IAC/CC,OAAOF,kBAAM,CAACG,uBAAuB;AACvC;AACA;;CAEC,GACD,MAAMC,kBAAkB,WAAW,GAAEC,IAAAA,eAAQ,EAAC;IAC5CC,UAAU;QACRC,SAAS;IACX;IACAC,SAAS;QACPD,SAAS;IACX;IACAE,eAAe;QACbC,QAAQ;IACV;IACAC,OAAO;QACLC,QAAQ;YAAC;YAAY;SAAW;QAChCC,QAAQ;YAAC;YAAU;SAAU;IAC/B;IACAC,KAAK;QACHD,QAAQ;YAAC;YAAY;SAAW;QAChCD,QAAQ;YAAC;YAAW;SAAS;IAC/B;IACAG,OAAO;QACLC,SAAS;IACX;IACAC,QAAQ;QACND,SAAS;IACX;IACAE,OAAO;QACLF,SAAS;IACX;IACAG,MAAM;QACJH,SAAS;IACX;AACF,GAAG;IACDI,GAAG;QAAC;QAAoE;QAAoE;QAAsB;QAAuB;QAAwB;QAAwB;QAAwC;QAAuC;QAAuC;KAAsC;IACrYC,GAAG;QAAC;YAAC;YAA8F;gBACjGA,GAAG;YACL;SAAE;KAAC;AACL;AACO,MAAMpC,0BAA0B,WAAW,GAAEoB,IAAAA,eAAQ,EAAC;IAC3DU,OAAO;QACLO,SAAS;IACX;IACAL,QAAQ;QACNK,SAAS;IACX;IACAJ,OAAO;QACLI,SAAS;IACX;IACAH,MAAM;QACJG,SAAS;IACX;AACF,GAAG;IACDF,GAAG;QAAC;QAAwD;QAAqD;QAAwD;KAA2D;AACtO;AACO,MAAMlC,0BAA0B,CAAC,EACtCqC,QAAQ,EACRC,IAAI,EACJC,MAAM,EACP;IACC,MAAMC,aAAatB;IACnB,MAAMuB,iBAAiB1C;IACvB,OAAO2C,IAAAA,mBAAY,EAACF,UAAU,CAACH,SAAS,EAAEI,cAAc,CAACH,KAAK,EAAEE,UAAU,CAACF,KAAK,EAAEE,WAAWjB,aAAa,EAAEgB,OAAOI,IAAI,KAAK,cAAcH,WAAWpB,QAAQ,EAAEmB,OAAOI,IAAI,KAAK,aAAaH,WAAWlB,OAAO;AAChN,GACA,sDAAsD"}
|