@fluentui/react-dialog 9.10.7 → 9.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -126,7 +126,7 @@ export declare type DialogContextValues = {
126
126
  dialogSurface: DialogSurfaceContextValue;
127
127
  };
128
128
 
129
- declare type DialogModalType = 'modal' | 'non-modal' | 'alert';
129
+ export declare type DialogModalType = 'modal' | 'non-modal' | 'alert';
130
130
 
131
131
  export declare type DialogOpenChangeData = {
132
132
  type: 'escapeKeyDown';
@@ -1,4 +1,4 @@
1
- import { createPresenceComponent, motionTokens } from '@fluentui/react-motions-preview';
1
+ import { createPresenceComponent, motionTokens } from '@fluentui/react-motion';
2
2
  const keyframes = [
3
3
  {
4
4
  opacity: 0
@@ -1 +1 @@
1
- {"version":3,"sources":["DialogBackdropMotion.ts"],"sourcesContent":["import { createPresenceComponent, motionTokens } from '@fluentui/react-motions-preview';\n\nconst keyframes = [{ opacity: 0 }, { opacity: 1 }];\n\nexport const DialogBackdropMotion = createPresenceComponent({\n enter: {\n keyframes,\n easing: motionTokens.curveLinear,\n duration: motionTokens.durationGentle,\n },\n exit: {\n keyframes: [...keyframes].reverse(),\n easing: motionTokens.curveLinear,\n duration: motionTokens.durationGentle,\n },\n});\n"],"names":["createPresenceComponent","motionTokens","keyframes","opacity","DialogBackdropMotion","enter","easing","curveLinear","duration","durationGentle","exit","reverse"],"mappings":"AAAA,SAASA,uBAAuB,EAAEC,YAAY,QAAQ,kCAAkC;AAExF,MAAMC,YAAY;IAAC;QAAEC,SAAS;IAAE;IAAG;QAAEA,SAAS;IAAE;CAAE;AAElD,OAAO,MAAMC,uBAAuBJ,wBAAwB;IAC1DK,OAAO;QACLH;QACAI,QAAQL,aAAaM,WAAW;QAChCC,UAAUP,aAAaQ,cAAc;IACvC;IACAC,MAAM;QACJR,WAAW;eAAIA;SAAU,CAACS,OAAO;QACjCL,QAAQL,aAAaM,WAAW;QAChCC,UAAUP,aAAaQ,cAAc;IACvC;AACF,GAAG"}
1
+ {"version":3,"sources":["DialogBackdropMotion.ts"],"sourcesContent":["import { createPresenceComponent, motionTokens } from '@fluentui/react-motion';\n\nconst keyframes = [{ opacity: 0 }, { opacity: 1 }];\n\nexport const DialogBackdropMotion = createPresenceComponent({\n enter: {\n keyframes,\n easing: motionTokens.curveLinear,\n duration: motionTokens.durationGentle,\n },\n exit: {\n keyframes: [...keyframes].reverse(),\n easing: motionTokens.curveLinear,\n duration: motionTokens.durationGentle,\n },\n});\n"],"names":["createPresenceComponent","motionTokens","keyframes","opacity","DialogBackdropMotion","enter","easing","curveLinear","duration","durationGentle","exit","reverse"],"mappings":"AAAA,SAASA,uBAAuB,EAAEC,YAAY,QAAQ,yBAAyB;AAE/E,MAAMC,YAAY;IAAC;QAAEC,SAAS;IAAE;IAAG;QAAEA,SAAS;IAAE;CAAE;AAElD,OAAO,MAAMC,uBAAuBJ,wBAAwB;IAC1DK,OAAO;QACLH;QACAI,QAAQL,aAAaM,WAAW;QAChCC,UAAUP,aAAaQ,cAAc;IACvC;IACAC,MAAM;QACJR,WAAW;eAAIA;SAAU,CAACS,OAAO;QACjCL,QAAQL,aAAaM,WAAW;QAChCC,UAAUP,aAAaQ,cAAc;IACvC;AACF,GAAG"}
@@ -1,4 +1,4 @@
1
- import { createPresenceComponent, motionTokens } from '@fluentui/react-motions-preview';
1
+ import { createPresenceComponent, motionTokens } from '@fluentui/react-motion';
2
2
  import { tokens } from '@fluentui/react-theme';
3
3
  const keyframes = [
4
4
  {
@@ -1 +1 @@
1
- {"version":3,"sources":["DialogSurfaceMotion.ts"],"sourcesContent":["import { createPresenceComponent, motionTokens } from '@fluentui/react-motions-preview';\nimport { tokens } from '@fluentui/react-theme';\n\nconst keyframes = [\n { opacity: 0, boxShadow: '0px 0px 0px 0px rgba(0, 0, 0, 0.1)', transform: 'scale(0.85) translateZ(0)' },\n {\n boxShadow: tokens.shadow64,\n transform: 'scale(1) translateZ(0)',\n opacity: 1,\n },\n];\n\nexport const DialogSurfaceMotion = createPresenceComponent({\n enter: {\n keyframes,\n easing: motionTokens.curveDecelerateMid,\n duration: motionTokens.durationGentle,\n },\n exit: {\n keyframes: [...keyframes].reverse(),\n easing: motionTokens.curveAccelerateMin,\n duration: motionTokens.durationGentle,\n },\n});\n"],"names":["createPresenceComponent","motionTokens","tokens","keyframes","opacity","boxShadow","transform","shadow64","DialogSurfaceMotion","enter","easing","curveDecelerateMid","duration","durationGentle","exit","reverse","curveAccelerateMin"],"mappings":"AAAA,SAASA,uBAAuB,EAAEC,YAAY,QAAQ,kCAAkC;AACxF,SAASC,MAAM,QAAQ,wBAAwB;AAE/C,MAAMC,YAAY;IAChB;QAAEC,SAAS;QAAGC,WAAW;QAAsCC,WAAW;IAA4B;IACtG;QACED,WAAWH,OAAOK,QAAQ;QAC1BD,WAAW;QACXF,SAAS;IACX;CACD;AAED,OAAO,MAAMI,sBAAsBR,wBAAwB;IACzDS,OAAO;QACLN;QACAO,QAAQT,aAAaU,kBAAkB;QACvCC,UAAUX,aAAaY,cAAc;IACvC;IACAC,MAAM;QACJX,WAAW;eAAIA;SAAU,CAACY,OAAO;QACjCL,QAAQT,aAAae,kBAAkB;QACvCJ,UAAUX,aAAaY,cAAc;IACvC;AACF,GAAG"}
1
+ {"version":3,"sources":["DialogSurfaceMotion.ts"],"sourcesContent":["import { createPresenceComponent, motionTokens } from '@fluentui/react-motion';\nimport { tokens } from '@fluentui/react-theme';\n\nconst keyframes = [\n { opacity: 0, boxShadow: '0px 0px 0px 0px rgba(0, 0, 0, 0.1)', transform: 'scale(0.85) translateZ(0)' },\n {\n boxShadow: tokens.shadow64,\n transform: 'scale(1) translateZ(0)',\n opacity: 1,\n },\n];\n\nexport const DialogSurfaceMotion = createPresenceComponent({\n enter: {\n keyframes,\n easing: motionTokens.curveDecelerateMid,\n duration: motionTokens.durationGentle,\n },\n exit: {\n keyframes: [...keyframes].reverse(),\n easing: motionTokens.curveAccelerateMin,\n duration: motionTokens.durationGentle,\n },\n});\n"],"names":["createPresenceComponent","motionTokens","tokens","keyframes","opacity","boxShadow","transform","shadow64","DialogSurfaceMotion","enter","easing","curveDecelerateMid","duration","durationGentle","exit","reverse","curveAccelerateMin"],"mappings":"AAAA,SAASA,uBAAuB,EAAEC,YAAY,QAAQ,yBAAyB;AAC/E,SAASC,MAAM,QAAQ,wBAAwB;AAE/C,MAAMC,YAAY;IAChB;QAAEC,SAAS;QAAGC,WAAW;QAAsCC,WAAW;IAA4B;IACtG;QACED,WAAWH,OAAOK,QAAQ;QAC1BD,WAAW;QACXF,SAAS;IACX;CACD;AAED,OAAO,MAAMI,sBAAsBR,wBAAwB;IACzDS,OAAO;QACLN;QACAO,QAAQT,aAAaU,kBAAkB;QACvCC,UAAUX,aAAaY,cAAc;IACvC;IACAC,MAAM;QACJX,WAAW;eAAIA;SAAU,CAACY,OAAO;QACjCL,QAAQT,aAAae,kBAAkB;QACvCJ,UAAUX,aAAaY,cAAc;IACvC;AACF,GAAG"}
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"sourcesContent":["export { Dialog, renderDialog_unstable, useDialog_unstable, useDialogContextValues_unstable } from './Dialog';\nexport type {\n DialogContextValues,\n DialogSlots,\n DialogProps,\n DialogState,\n DialogOpenChangeData,\n DialogOpenChangeEvent,\n DialogOpenChangeEventHandler,\n} from './Dialog';\n\nexport { DialogTrigger, useDialogTrigger_unstable, renderDialogTrigger_unstable } from './DialogTrigger';\nexport type {\n DialogTriggerProps,\n DialogTriggerChildProps,\n DialogTriggerState,\n DialogTriggerAction,\n} from './DialogTrigger';\n\nexport {\n DialogActions,\n dialogActionsClassNames,\n useDialogActions_unstable,\n useDialogActionsStyles_unstable,\n renderDialogActions_unstable,\n} from './DialogActions';\nexport type {\n DialogActionsProps,\n DialogActionsSlots,\n DialogActionsState,\n DialogActionsPosition,\n} from './DialogActions';\n\nexport {\n DialogBody,\n dialogBodyClassNames,\n useDialogBody_unstable,\n useDialogBodyStyles_unstable,\n renderDialogBody_unstable,\n} from './DialogBody';\nexport type { DialogBodyProps, DialogBodySlots, DialogBodyState } from './DialogBody';\n\nexport {\n DialogTitle,\n dialogTitleClassNames,\n useDialogTitle_unstable,\n useDialogTitleStyles_unstable,\n renderDialogTitle_unstable,\n} from './DialogTitle';\nexport type { DialogTitleProps, DialogTitleSlots, DialogTitleState } from './DialogTitle';\n\nexport {\n DialogSurface,\n dialogSurfaceClassNames,\n useDialogSurface_unstable,\n useDialogSurfaceStyles_unstable,\n useDialogSurfaceContextValues_unstable,\n renderDialogSurface_unstable,\n} from './DialogSurface';\nexport type {\n DialogSurfaceProps,\n DialogSurfaceSlots,\n DialogSurfaceState,\n DialogSurfaceElement,\n DialogSurfaceContextValues,\n} from './DialogSurface';\n\nexport {\n DialogContent,\n dialogContentClassNames,\n useDialogContent_unstable,\n useDialogContentStyles_unstable,\n renderDialogContent_unstable,\n} from './DialogContent';\nexport type { DialogContentProps, DialogContentSlots, DialogContentState } from './DialogContent';\n\nexport {\n useDialogContext_unstable,\n useDialogSurfaceContext_unstable,\n DialogProvider,\n DialogSurfaceProvider,\n} from './contexts/index';\n\nexport type { DialogContextValue, DialogSurfaceContextValue } from './contexts/index';\n"],"names":["Dialog","renderDialog_unstable","useDialog_unstable","useDialogContextValues_unstable","DialogTrigger","useDialogTrigger_unstable","renderDialogTrigger_unstable","DialogActions","dialogActionsClassNames","useDialogActions_unstable","useDialogActionsStyles_unstable","renderDialogActions_unstable","DialogBody","dialogBodyClassNames","useDialogBody_unstable","useDialogBodyStyles_unstable","renderDialogBody_unstable","DialogTitle","dialogTitleClassNames","useDialogTitle_unstable","useDialogTitleStyles_unstable","renderDialogTitle_unstable","DialogSurface","dialogSurfaceClassNames","useDialogSurface_unstable","useDialogSurfaceStyles_unstable","useDialogSurfaceContextValues_unstable","renderDialogSurface_unstable","DialogContent","dialogContentClassNames","useDialogContent_unstable","useDialogContentStyles_unstable","renderDialogContent_unstable","useDialogContext_unstable","useDialogSurfaceContext_unstable","DialogProvider","DialogSurfaceProvider"],"mappings":"AAAA,SAASA,MAAM,EAAEC,qBAAqB,EAAEC,kBAAkB,EAAEC,+BAA+B,QAAQ,WAAW;AAW9G,SAASC,aAAa,EAAEC,yBAAyB,EAAEC,4BAA4B,QAAQ,kBAAkB;AAQzG,SACEC,aAAa,EACbC,uBAAuB,EACvBC,yBAAyB,EACzBC,+BAA+B,EAC/BC,4BAA4B,QACvB,kBAAkB;AAQzB,SACEC,UAAU,EACVC,oBAAoB,EACpBC,sBAAsB,EACtBC,4BAA4B,EAC5BC,yBAAyB,QACpB,eAAe;AAGtB,SACEC,WAAW,EACXC,qBAAqB,EACrBC,uBAAuB,EACvBC,6BAA6B,EAC7BC,0BAA0B,QACrB,gBAAgB;AAGvB,SACEC,aAAa,EACbC,uBAAuB,EACvBC,yBAAyB,EACzBC,+BAA+B,EAC/BC,sCAAsC,EACtCC,4BAA4B,QACvB,kBAAkB;AASzB,SACEC,aAAa,EACbC,uBAAuB,EACvBC,yBAAyB,EACzBC,+BAA+B,EAC/BC,4BAA4B,QACvB,kBAAkB;AAGzB,SACEC,yBAAyB,EACzBC,gCAAgC,EAChCC,cAAc,EACdC,qBAAqB,QAChB,mBAAmB"}
1
+ {"version":3,"sources":["index.ts"],"sourcesContent":["export { Dialog, renderDialog_unstable, useDialog_unstable, useDialogContextValues_unstable } from './Dialog';\nexport type {\n DialogContextValues,\n DialogSlots,\n DialogProps,\n DialogState,\n DialogModalType,\n DialogOpenChangeData,\n DialogOpenChangeEvent,\n DialogOpenChangeEventHandler,\n} from './Dialog';\n\nexport { DialogTrigger, useDialogTrigger_unstable, renderDialogTrigger_unstable } from './DialogTrigger';\nexport type {\n DialogTriggerProps,\n DialogTriggerChildProps,\n DialogTriggerState,\n DialogTriggerAction,\n} from './DialogTrigger';\n\nexport {\n DialogActions,\n dialogActionsClassNames,\n useDialogActions_unstable,\n useDialogActionsStyles_unstable,\n renderDialogActions_unstable,\n} from './DialogActions';\nexport type {\n DialogActionsProps,\n DialogActionsSlots,\n DialogActionsState,\n DialogActionsPosition,\n} from './DialogActions';\n\nexport {\n DialogBody,\n dialogBodyClassNames,\n useDialogBody_unstable,\n useDialogBodyStyles_unstable,\n renderDialogBody_unstable,\n} from './DialogBody';\nexport type { DialogBodyProps, DialogBodySlots, DialogBodyState } from './DialogBody';\n\nexport {\n DialogTitle,\n dialogTitleClassNames,\n useDialogTitle_unstable,\n useDialogTitleStyles_unstable,\n renderDialogTitle_unstable,\n} from './DialogTitle';\nexport type { DialogTitleProps, DialogTitleSlots, DialogTitleState } from './DialogTitle';\n\nexport {\n DialogSurface,\n dialogSurfaceClassNames,\n useDialogSurface_unstable,\n useDialogSurfaceStyles_unstable,\n useDialogSurfaceContextValues_unstable,\n renderDialogSurface_unstable,\n} from './DialogSurface';\nexport type {\n DialogSurfaceProps,\n DialogSurfaceSlots,\n DialogSurfaceState,\n DialogSurfaceElement,\n DialogSurfaceContextValues,\n} from './DialogSurface';\n\nexport {\n DialogContent,\n dialogContentClassNames,\n useDialogContent_unstable,\n useDialogContentStyles_unstable,\n renderDialogContent_unstable,\n} from './DialogContent';\nexport type { DialogContentProps, DialogContentSlots, DialogContentState } from './DialogContent';\n\nexport {\n useDialogContext_unstable,\n useDialogSurfaceContext_unstable,\n DialogProvider,\n DialogSurfaceProvider,\n} from './contexts/index';\n\nexport type { DialogContextValue, DialogSurfaceContextValue } from './contexts/index';\n"],"names":["Dialog","renderDialog_unstable","useDialog_unstable","useDialogContextValues_unstable","DialogTrigger","useDialogTrigger_unstable","renderDialogTrigger_unstable","DialogActions","dialogActionsClassNames","useDialogActions_unstable","useDialogActionsStyles_unstable","renderDialogActions_unstable","DialogBody","dialogBodyClassNames","useDialogBody_unstable","useDialogBodyStyles_unstable","renderDialogBody_unstable","DialogTitle","dialogTitleClassNames","useDialogTitle_unstable","useDialogTitleStyles_unstable","renderDialogTitle_unstable","DialogSurface","dialogSurfaceClassNames","useDialogSurface_unstable","useDialogSurfaceStyles_unstable","useDialogSurfaceContextValues_unstable","renderDialogSurface_unstable","DialogContent","dialogContentClassNames","useDialogContent_unstable","useDialogContentStyles_unstable","renderDialogContent_unstable","useDialogContext_unstable","useDialogSurfaceContext_unstable","DialogProvider","DialogSurfaceProvider"],"mappings":"AAAA,SAASA,MAAM,EAAEC,qBAAqB,EAAEC,kBAAkB,EAAEC,+BAA+B,QAAQ,WAAW;AAY9G,SAASC,aAAa,EAAEC,yBAAyB,EAAEC,4BAA4B,QAAQ,kBAAkB;AAQzG,SACEC,aAAa,EACbC,uBAAuB,EACvBC,yBAAyB,EACzBC,+BAA+B,EAC/BC,4BAA4B,QACvB,kBAAkB;AAQzB,SACEC,UAAU,EACVC,oBAAoB,EACpBC,sBAAsB,EACtBC,4BAA4B,EAC5BC,yBAAyB,QACpB,eAAe;AAGtB,SACEC,WAAW,EACXC,qBAAqB,EACrBC,uBAAuB,EACvBC,6BAA6B,EAC7BC,0BAA0B,QACrB,gBAAgB;AAGvB,SACEC,aAAa,EACbC,uBAAuB,EACvBC,yBAAyB,EACzBC,+BAA+B,EAC/BC,sCAAsC,EACtCC,4BAA4B,QACvB,kBAAkB;AASzB,SACEC,aAAa,EACbC,uBAAuB,EACvBC,yBAAyB,EACzBC,+BAA+B,EAC/BC,4BAA4B,QACvB,kBAAkB;AAGzB,SACEC,yBAAyB,EACzBC,gCAAgC,EAChCC,cAAc,EACdC,qBAAqB,QAChB,mBAAmB"}
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "DialogBackdropMotion", {
8
8
  return DialogBackdropMotion;
9
9
  }
10
10
  });
11
- const _reactmotionspreview = require("@fluentui/react-motions-preview");
11
+ const _reactmotion = require("@fluentui/react-motion");
12
12
  const keyframes = [
13
13
  {
14
14
  opacity: 0
@@ -17,17 +17,17 @@ const keyframes = [
17
17
  opacity: 1
18
18
  }
19
19
  ];
20
- const DialogBackdropMotion = (0, _reactmotionspreview.createPresenceComponent)({
20
+ const DialogBackdropMotion = (0, _reactmotion.createPresenceComponent)({
21
21
  enter: {
22
22
  keyframes,
23
- easing: _reactmotionspreview.motionTokens.curveLinear,
24
- duration: _reactmotionspreview.motionTokens.durationGentle
23
+ easing: _reactmotion.motionTokens.curveLinear,
24
+ duration: _reactmotion.motionTokens.durationGentle
25
25
  },
26
26
  exit: {
27
27
  keyframes: [
28
28
  ...keyframes
29
29
  ].reverse(),
30
- easing: _reactmotionspreview.motionTokens.curveLinear,
31
- duration: _reactmotionspreview.motionTokens.durationGentle
30
+ easing: _reactmotion.motionTokens.curveLinear,
31
+ duration: _reactmotion.motionTokens.durationGentle
32
32
  }
33
33
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["DialogBackdropMotion.js"],"sourcesContent":["import { createPresenceComponent, motionTokens } from '@fluentui/react-motions-preview';\nconst keyframes = [\n {\n opacity: 0\n },\n {\n opacity: 1\n }\n];\nexport const DialogBackdropMotion = createPresenceComponent({\n enter: {\n keyframes,\n easing: motionTokens.curveLinear,\n duration: motionTokens.durationGentle\n },\n exit: {\n keyframes: [\n ...keyframes\n ].reverse(),\n easing: motionTokens.curveLinear,\n duration: motionTokens.durationGentle\n }\n});\n"],"names":["DialogBackdropMotion","keyframes","opacity","createPresenceComponent","enter","easing","motionTokens","curveLinear","duration","durationGentle","exit","reverse"],"mappings":";;;;+BASaA;;;eAAAA;;;qCATyC;AACtD,MAAMC,YAAY;IACd;QACIC,SAAS;IACb;IACA;QACIA,SAAS;IACb;CACH;AACM,MAAMF,uBAAuBG,IAAAA,4CAAuB,EAAC;IACxDC,OAAO;QACHH;QACAI,QAAQC,iCAAY,CAACC,WAAW;QAChCC,UAAUF,iCAAY,CAACG,cAAc;IACzC;IACAC,MAAM;QACFT,WAAW;eACJA;SACN,CAACU,OAAO;QACTN,QAAQC,iCAAY,CAACC,WAAW;QAChCC,UAAUF,iCAAY,CAACG,cAAc;IACzC;AACJ"}
1
+ {"version":3,"sources":["DialogBackdropMotion.js"],"sourcesContent":["import { createPresenceComponent, motionTokens } from '@fluentui/react-motion';\nconst keyframes = [\n {\n opacity: 0\n },\n {\n opacity: 1\n }\n];\nexport const DialogBackdropMotion = createPresenceComponent({\n enter: {\n keyframes,\n easing: motionTokens.curveLinear,\n duration: motionTokens.durationGentle\n },\n exit: {\n keyframes: [\n ...keyframes\n ].reverse(),\n easing: motionTokens.curveLinear,\n duration: motionTokens.durationGentle\n }\n});\n"],"names":["DialogBackdropMotion","keyframes","opacity","createPresenceComponent","enter","easing","motionTokens","curveLinear","duration","durationGentle","exit","reverse"],"mappings":";;;;+BASaA;;;eAAAA;;;6BATyC;AACtD,MAAMC,YAAY;IACd;QACIC,SAAS;IACb;IACA;QACIA,SAAS;IACb;CACH;AACM,MAAMF,uBAAuBG,IAAAA,oCAAuB,EAAC;IACxDC,OAAO;QACHH;QACAI,QAAQC,yBAAY,CAACC,WAAW;QAChCC,UAAUF,yBAAY,CAACG,cAAc;IACzC;IACAC,MAAM;QACFT,WAAW;eACJA;SACN,CAACU,OAAO;QACTN,QAAQC,yBAAY,CAACC,WAAW;QAChCC,UAAUF,yBAAY,CAACG,cAAc;IACzC;AACJ"}
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "DialogSurfaceMotion", {
8
8
  return DialogSurfaceMotion;
9
9
  }
10
10
  });
11
- const _reactmotionspreview = require("@fluentui/react-motions-preview");
11
+ const _reactmotion = require("@fluentui/react-motion");
12
12
  const _reacttheme = require("@fluentui/react-theme");
13
13
  const keyframes = [
14
14
  {
@@ -22,17 +22,17 @@ const keyframes = [
22
22
  opacity: 1
23
23
  }
24
24
  ];
25
- const DialogSurfaceMotion = (0, _reactmotionspreview.createPresenceComponent)({
25
+ const DialogSurfaceMotion = (0, _reactmotion.createPresenceComponent)({
26
26
  enter: {
27
27
  keyframes,
28
- easing: _reactmotionspreview.motionTokens.curveDecelerateMid,
29
- duration: _reactmotionspreview.motionTokens.durationGentle
28
+ easing: _reactmotion.motionTokens.curveDecelerateMid,
29
+ duration: _reactmotion.motionTokens.durationGentle
30
30
  },
31
31
  exit: {
32
32
  keyframes: [
33
33
  ...keyframes
34
34
  ].reverse(),
35
- easing: _reactmotionspreview.motionTokens.curveAccelerateMin,
36
- duration: _reactmotionspreview.motionTokens.durationGentle
35
+ easing: _reactmotion.motionTokens.curveAccelerateMin,
36
+ duration: _reactmotion.motionTokens.durationGentle
37
37
  }
38
38
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["DialogSurfaceMotion.js"],"sourcesContent":["import { createPresenceComponent, motionTokens } from '@fluentui/react-motions-preview';\nimport { tokens } from '@fluentui/react-theme';\nconst keyframes = [\n {\n opacity: 0,\n boxShadow: '0px 0px 0px 0px rgba(0, 0, 0, 0.1)',\n transform: 'scale(0.85) translateZ(0)'\n },\n {\n boxShadow: tokens.shadow64,\n transform: 'scale(1) translateZ(0)',\n opacity: 1\n }\n];\nexport const DialogSurfaceMotion = createPresenceComponent({\n enter: {\n keyframes,\n easing: motionTokens.curveDecelerateMid,\n duration: motionTokens.durationGentle\n },\n exit: {\n keyframes: [\n ...keyframes\n ].reverse(),\n easing: motionTokens.curveAccelerateMin,\n duration: motionTokens.durationGentle\n }\n});\n"],"names":["DialogSurfaceMotion","keyframes","opacity","boxShadow","transform","tokens","shadow64","createPresenceComponent","enter","easing","motionTokens","curveDecelerateMid","duration","durationGentle","exit","reverse","curveAccelerateMin"],"mappings":";;;;+BAcaA;;;eAAAA;;;qCAdyC;4BAC/B;AACvB,MAAMC,YAAY;IACd;QACIC,SAAS;QACTC,WAAW;QACXC,WAAW;IACf;IACA;QACID,WAAWE,kBAAM,CAACC,QAAQ;QAC1BF,WAAW;QACXF,SAAS;IACb;CACH;AACM,MAAMF,sBAAsBO,IAAAA,4CAAuB,EAAC;IACvDC,OAAO;QACHP;QACAQ,QAAQC,iCAAY,CAACC,kBAAkB;QACvCC,UAAUF,iCAAY,CAACG,cAAc;IACzC;IACAC,MAAM;QACFb,WAAW;eACJA;SACN,CAACc,OAAO;QACTN,QAAQC,iCAAY,CAACM,kBAAkB;QACvCJ,UAAUF,iCAAY,CAACG,cAAc;IACzC;AACJ"}
1
+ {"version":3,"sources":["DialogSurfaceMotion.js"],"sourcesContent":["import { createPresenceComponent, motionTokens } from '@fluentui/react-motion';\nimport { tokens } from '@fluentui/react-theme';\nconst keyframes = [\n {\n opacity: 0,\n boxShadow: '0px 0px 0px 0px rgba(0, 0, 0, 0.1)',\n transform: 'scale(0.85) translateZ(0)'\n },\n {\n boxShadow: tokens.shadow64,\n transform: 'scale(1) translateZ(0)',\n opacity: 1\n }\n];\nexport const DialogSurfaceMotion = createPresenceComponent({\n enter: {\n keyframes,\n easing: motionTokens.curveDecelerateMid,\n duration: motionTokens.durationGentle\n },\n exit: {\n keyframes: [\n ...keyframes\n ].reverse(),\n easing: motionTokens.curveAccelerateMin,\n duration: motionTokens.durationGentle\n }\n});\n"],"names":["DialogSurfaceMotion","keyframes","opacity","boxShadow","transform","tokens","shadow64","createPresenceComponent","enter","easing","motionTokens","curveDecelerateMid","duration","durationGentle","exit","reverse","curveAccelerateMin"],"mappings":";;;;+BAcaA;;;eAAAA;;;6BAdyC;4BAC/B;AACvB,MAAMC,YAAY;IACd;QACIC,SAAS;QACTC,WAAW;QACXC,WAAW;IACf;IACA;QACID,WAAWE,kBAAM,CAACC,QAAQ;QAC1BF,WAAW;QACXF,SAAS;IACb;CACH;AACM,MAAMF,sBAAsBO,IAAAA,oCAAuB,EAAC;IACvDC,OAAO;QACHP;QACAQ,QAAQC,yBAAY,CAACC,kBAAkB;QACvCC,UAAUF,yBAAY,CAACG,cAAc;IACzC;IACAC,MAAM;QACFb,WAAW;eACJA;SACN,CAACc,OAAO;QACTN,QAAQC,yBAAY,CAACM,kBAAkB;QACvCJ,UAAUF,yBAAY,CAACG,cAAc;IACzC;AACJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-dialog",
3
- "version": "9.10.7",
3
+ "version": "9.11.0",
4
4
  "description": "Dialog component for Fluent UI React",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -22,16 +22,16 @@
22
22
  "test": "jest --passWithNoTests",
23
23
  "e2e": "cypress run --component",
24
24
  "e2e:local": "cypress open --component",
25
- "storybook": "start-storybook",
26
- "type-check": "tsc -b tsconfig.json",
27
- "generate-api": "just-scripts generate-api",
28
- "test-ssr": "test-ssr \"./stories/**/*.stories.tsx\""
25
+ "storybook": "yarn --cwd ../stories storybook",
26
+ "type-check": "just-scripts type-check",
27
+ "generate-api": "just-scripts generate-api"
29
28
  },
30
29
  "devDependencies": {
30
+ "@fluentui/react-provider": "*",
31
31
  "@fluentui/react-popover": "*",
32
32
  "@fluentui/react-tooltip": "*",
33
- "@fluentui/react-menu": "*",
34
33
  "@fluentui/react-button": "*",
34
+ "@fluentui/react-menu": "*",
35
35
  "@fluentui/eslint-plugin": "*",
36
36
  "@fluentui/react-conformance": "*",
37
37
  "@fluentui/react-conformance-griffel": "*",
@@ -40,17 +40,17 @@
40
40
  "@fluentui/scripts-tasks": "*"
41
41
  },
42
42
  "dependencies": {
43
- "@fluentui/react-utilities": "^9.18.9",
44
- "@fluentui/react-jsx-runtime": "^9.0.38",
43
+ "@fluentui/react-utilities": "^9.18.10",
44
+ "@fluentui/react-jsx-runtime": "^9.0.39",
45
45
  "@fluentui/keyboard-keys": "^9.0.7",
46
- "@fluentui/react-context-selector": "^9.1.60",
47
- "@fluentui/react-motions-preview": "^0.3.2",
46
+ "@fluentui/react-context-selector": "^9.1.61",
47
+ "@fluentui/react-motion": "9.0.0",
48
48
  "@fluentui/react-shared-contexts": "^9.19.0",
49
- "@fluentui/react-aria": "^9.11.4",
49
+ "@fluentui/react-aria": "^9.12.0",
50
50
  "@fluentui/react-icons": "^2.0.239",
51
- "@fluentui/react-tabster": "^9.21.4",
51
+ "@fluentui/react-tabster": "^9.21.5",
52
52
  "@fluentui/react-theme": "^9.1.19",
53
- "@fluentui/react-portal": "^9.4.26",
53
+ "@fluentui/react-portal": "^9.4.27",
54
54
  "@griffel/react": "^1.5.22",
55
55
  "@swc/helpers": "^0.5.1"
56
56
  },