@fluentui/react-motion-components-preview 0.6.1 → 0.7.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 (54) hide show
  1. package/CHANGELOG.md +21 -1
  2. package/dist/index.d.ts +69 -67
  3. package/lib/atoms/fade-atom.js +3 -3
  4. package/lib/atoms/fade-atom.js.map +1 -1
  5. package/lib/atoms/scale-atom.js +27 -0
  6. package/lib/atoms/scale-atom.js.map +1 -0
  7. package/lib/atoms/slide-atom.js +27 -0
  8. package/lib/atoms/slide-atom.js.map +1 -0
  9. package/lib/components/Collapse/Collapse.js +93 -77
  10. package/lib/components/Collapse/Collapse.js.map +1 -1
  11. package/lib/components/Collapse/collapse-types.js.map +1 -1
  12. package/lib/components/Collapse/index.js +1 -1
  13. package/lib/components/Collapse/index.js.map +1 -1
  14. package/lib/components/Fade/Fade.js.map +1 -1
  15. package/lib/components/Fade/fade-types.js +1 -0
  16. package/lib/components/Fade/fade-types.js.map +1 -0
  17. package/lib/components/Scale/Scale.js +35 -41
  18. package/lib/components/Scale/Scale.js.map +1 -1
  19. package/lib/components/Scale/scale-types.js +1 -0
  20. package/lib/components/Scale/scale-types.js.map +1 -0
  21. package/lib/components/Slide/Slide.js +48 -0
  22. package/lib/components/Slide/Slide.js.map +1 -0
  23. package/lib/components/Slide/index.js +1 -0
  24. package/lib/components/Slide/index.js.map +1 -0
  25. package/lib/components/Slide/slide-types.js +1 -0
  26. package/lib/components/Slide/slide-types.js.map +1 -0
  27. package/lib/index.js +2 -1
  28. package/lib/index.js.map +1 -1
  29. package/lib-commonjs/atoms/fade-atom.js +2 -2
  30. package/lib-commonjs/atoms/fade-atom.js.map +1 -1
  31. package/lib-commonjs/atoms/scale-atom.js +29 -0
  32. package/lib-commonjs/atoms/scale-atom.js.map +1 -0
  33. package/lib-commonjs/atoms/slide-atom.js +29 -0
  34. package/lib-commonjs/atoms/slide-atom.js.map +1 -0
  35. package/lib-commonjs/components/Collapse/Collapse.js +92 -82
  36. package/lib-commonjs/components/Collapse/Collapse.js.map +1 -1
  37. package/lib-commonjs/components/Collapse/index.js +0 -6
  38. package/lib-commonjs/components/Collapse/index.js.map +1 -1
  39. package/lib-commonjs/components/Fade/Fade.js.map +1 -1
  40. package/lib-commonjs/components/Fade/fade-types.js +4 -0
  41. package/lib-commonjs/components/Fade/fade-types.js.map +1 -0
  42. package/lib-commonjs/components/Scale/Scale.js +35 -41
  43. package/lib-commonjs/components/Scale/Scale.js.map +1 -1
  44. package/lib-commonjs/components/Scale/scale-types.js +4 -0
  45. package/lib-commonjs/components/Scale/scale-types.js.map +1 -0
  46. package/lib-commonjs/components/Slide/Slide.js +69 -0
  47. package/lib-commonjs/components/Slide/Slide.js.map +1 -0
  48. package/lib-commonjs/components/Slide/index.js +22 -0
  49. package/lib-commonjs/components/Slide/index.js.map +1 -0
  50. package/lib-commonjs/components/Slide/slide-types.js +4 -0
  51. package/lib-commonjs/components/Slide/slide-types.js.map +1 -0
  52. package/lib-commonjs/index.js +8 -4
  53. package/lib-commonjs/index.js.map +1 -1
  54. package/package.json +1 -1
@@ -20,55 +20,49 @@ _export(exports, {
20
20
  }
21
21
  });
22
22
  const _reactmotion = require("@fluentui/react-motion");
23
- /** Define a presence motion for scale in/out */ const scalePresenceFn = ({ duration = _reactmotion.motionTokens.durationNormal, easing = _reactmotion.motionTokens.curveDecelerateMid, exitDuration = duration, exitEasing = _reactmotion.motionTokens.curveAccelerateMid, fromScale = 0.9, animateOpacity = true })=>{
24
- const fromOpacity = animateOpacity ? 0 : 1;
25
- const toOpacity = 1;
26
- const toScale = 1;
27
- // TODO: use fadeAtom
28
- // TODO: make scaleAtom
29
- const enterKeyframes = [
30
- {
31
- opacity: fromOpacity,
32
- transform: `scale3d(${fromScale}, ${fromScale}, 1)`,
33
- visibility: 'visible'
34
- },
35
- {
36
- opacity: toOpacity,
37
- transform: `scale3d(${toScale}, ${toScale}, 1)`
38
- }
39
- ];
40
- const exitKeyframes = [
41
- {
42
- opacity: toOpacity,
43
- transform: `scale3d(${toScale}, ${toScale}, 1)`
44
- },
45
- {
46
- opacity: fromOpacity,
47
- transform: `scale3d(${fromScale}, ${fromScale}, 1)`,
48
- visibility: 'hidden'
49
- }
50
- ];
51
- return {
52
- enter: {
23
+ const _fadeatom = require("../../atoms/fade-atom");
24
+ const _scaleatom = require("../../atoms/scale-atom");
25
+ /** Define a presence motion for scale in/out */ const scalePresenceFn = ({ duration = _reactmotion.motionTokens.durationGentle, easing = _reactmotion.motionTokens.curveDecelerateMax, exitDuration = _reactmotion.motionTokens.durationNormal, exitEasing = _reactmotion.motionTokens.curveAccelerateMax, fromScale = 0.9, animateOpacity = true })=>{
26
+ const enterAtoms = [
27
+ (0, _scaleatom.scaleAtom)({
28
+ direction: 'enter',
53
29
  duration,
54
30
  easing,
55
- keyframes: enterKeyframes
56
- },
57
- exit: {
31
+ fromScale: fromScale
32
+ })
33
+ ];
34
+ const exitAtoms = [
35
+ (0, _scaleatom.scaleAtom)({
36
+ direction: 'exit',
58
37
  duration: exitDuration,
59
38
  easing: exitEasing,
60
- keyframes: exitKeyframes
61
- }
39
+ fromScale: fromScale
40
+ })
41
+ ];
42
+ // Only add fade atoms if animateOpacity is true.
43
+ if (animateOpacity) {
44
+ enterAtoms.push((0, _fadeatom.fadeAtom)({
45
+ direction: 'enter',
46
+ duration,
47
+ easing
48
+ }));
49
+ exitAtoms.push((0, _fadeatom.fadeAtom)({
50
+ direction: 'exit',
51
+ duration: exitDuration,
52
+ easing: exitEasing
53
+ }));
54
+ }
55
+ return {
56
+ enter: enterAtoms,
57
+ exit: exitAtoms
62
58
  };
63
59
  };
64
60
  const Scale = (0, _reactmotion.createPresenceComponent)(scalePresenceFn);
65
61
  const ScaleSnappy = (0, _reactmotion.createPresenceComponentVariant)(Scale, {
66
- duration: _reactmotion.motionTokens.durationFast,
67
- easing: _reactmotion.motionTokens.curveDecelerateMax,
68
- exitEasing: _reactmotion.motionTokens.curveAccelerateMax
62
+ duration: _reactmotion.motionTokens.durationNormal,
63
+ exitDuration: _reactmotion.motionTokens.durationFast
69
64
  });
70
65
  const ScaleRelaxed = (0, _reactmotion.createPresenceComponentVariant)(Scale, {
71
- duration: _reactmotion.motionTokens.durationGentle,
72
- easing: _reactmotion.motionTokens.curveDecelerateMid,
73
- exitEasing: _reactmotion.motionTokens.curveAccelerateMid
66
+ duration: _reactmotion.motionTokens.durationSlow,
67
+ exitDuration: _reactmotion.motionTokens.durationGentle
74
68
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/Scale/Scale.ts"],"sourcesContent":["import {\n motionTokens,\n createPresenceComponent,\n PresenceMotionFn,\n createPresenceComponentVariant,\n} from '@fluentui/react-motion';\n\ntype ScaleVariantParams = {\n /** Time (ms) for the enter transition (scale-in). Defaults to the `durationNormal` value (200 ms). */\n duration?: number;\n\n /** Easing curve for the enter transition (scale-in). Defaults to the `curveDecelerateMid` value. */\n easing?: string;\n\n /** Time (ms) for the exit transition (scale-out). Defaults to the `duration` param for symmetry. */\n exitDuration?: number;\n\n /** Easing curve for the exit transition (scale-out). Defaults to the `curveAccelerateMid` value. */\n exitEasing?: string;\n\n /** The scale value to animate from. Defaults to `0.9`. */\n fromScale?: number;\n\n /** Whether to animate the opacity. Defaults to `true`. */\n animateOpacity?: boolean;\n};\n\n/** Define a presence motion for scale in/out */\nconst scalePresenceFn: PresenceMotionFn<ScaleVariantParams> = ({\n duration = motionTokens.durationNormal,\n easing = motionTokens.curveDecelerateMid,\n exitDuration = duration,\n exitEasing = motionTokens.curveAccelerateMid,\n fromScale = 0.9,\n animateOpacity = true,\n}) => {\n const fromOpacity = animateOpacity ? 0 : 1;\n const toOpacity = 1;\n const toScale = 1;\n\n // TODO: use fadeAtom\n // TODO: make scaleAtom\n const enterKeyframes = [\n { opacity: fromOpacity, transform: `scale3d(${fromScale}, ${fromScale}, 1)`, visibility: 'visible' },\n { opacity: toOpacity, transform: `scale3d(${toScale}, ${toScale}, 1)` },\n ];\n\n const exitKeyframes = [\n { opacity: toOpacity, transform: `scale3d(${toScale}, ${toScale}, 1)` },\n { opacity: fromOpacity, transform: `scale3d(${fromScale}, ${fromScale}, 1)`, visibility: 'hidden' },\n ];\n\n return {\n enter: {\n duration,\n easing,\n keyframes: enterKeyframes,\n },\n exit: { duration: exitDuration, easing: exitEasing, keyframes: exitKeyframes },\n };\n};\n\n/** A React component that applies scale in/out transitions to its children. */\nexport const Scale = createPresenceComponent(scalePresenceFn);\n\nexport const ScaleSnappy = createPresenceComponentVariant(Scale, {\n duration: motionTokens.durationFast,\n easing: motionTokens.curveDecelerateMax,\n exitEasing: motionTokens.curveAccelerateMax,\n});\n\nexport const ScaleRelaxed = createPresenceComponentVariant(Scale, {\n duration: motionTokens.durationGentle,\n easing: motionTokens.curveDecelerateMid,\n exitEasing: motionTokens.curveAccelerateMid,\n});\n"],"names":["Scale","ScaleRelaxed","ScaleSnappy","scalePresenceFn","duration","motionTokens","durationNormal","easing","curveDecelerateMid","exitDuration","exitEasing","curveAccelerateMid","fromScale","animateOpacity","fromOpacity","toOpacity","toScale","enterKeyframes","opacity","transform","visibility","exitKeyframes","enter","keyframes","exit","createPresenceComponent","createPresenceComponentVariant","durationFast","curveDecelerateMax","curveAccelerateMax","durationGentle"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IA+DaA,KAAK;eAALA;;IAQAC,YAAY;eAAZA;;IANAC,WAAW;eAAXA;;;6BA5DN;AAsBP,8CAA8C,GAC9C,MAAMC,kBAAwD,CAAC,EAC7DC,WAAWC,yBAAY,CAACC,cAAc,EACtCC,SAASF,yBAAY,CAACG,kBAAkB,EACxCC,eAAeL,QAAQ,EACvBM,aAAaL,yBAAY,CAACM,kBAAkB,EAC5CC,YAAY,GAAG,EACfC,iBAAiB,IAAI,EACtB;IACC,MAAMC,cAAcD,iBAAiB,IAAI;IACzC,MAAME,YAAY;IAClB,MAAMC,UAAU;IAEhB,qBAAqB;IACrB,uBAAuB;IACvB,MAAMC,iBAAiB;QACrB;YAAEC,SAASJ;YAAaK,WAAW,CAAC,QAAQ,EAAEP,UAAU,EAAE,EAAEA,UAAU,IAAI,CAAC;YAAEQ,YAAY;QAAU;QACnG;YAAEF,SAASH;YAAWI,WAAW,CAAC,QAAQ,EAAEH,QAAQ,EAAE,EAAEA,QAAQ,IAAI,CAAC;QAAC;KACvE;IAED,MAAMK,gBAAgB;QACpB;YAAEH,SAASH;YAAWI,WAAW,CAAC,QAAQ,EAAEH,QAAQ,EAAE,EAAEA,QAAQ,IAAI,CAAC;QAAC;QACtE;YAAEE,SAASJ;YAAaK,WAAW,CAAC,QAAQ,EAAEP,UAAU,EAAE,EAAEA,UAAU,IAAI,CAAC;YAAEQ,YAAY;QAAS;KACnG;IAED,OAAO;QACLE,OAAO;YACLlB;YACAG;YACAgB,WAAWN;QACb;QACAO,MAAM;YAAEpB,UAAUK;YAAcF,QAAQG;YAAYa,WAAWF;QAAc;IAC/E;AACF;AAGO,MAAMrB,QAAQyB,IAAAA,oCAAuB,EAACtB;AAEtC,MAAMD,cAAcwB,IAAAA,2CAA8B,EAAC1B,OAAO;IAC/DI,UAAUC,yBAAY,CAACsB,YAAY;IACnCpB,QAAQF,yBAAY,CAACuB,kBAAkB;IACvClB,YAAYL,yBAAY,CAACwB,kBAAkB;AAC7C;AAEO,MAAM5B,eAAeyB,IAAAA,2CAA8B,EAAC1B,OAAO;IAChEI,UAAUC,yBAAY,CAACyB,cAAc;IACrCvB,QAAQF,yBAAY,CAACG,kBAAkB;IACvCE,YAAYL,yBAAY,CAACM,kBAAkB;AAC7C"}
1
+ {"version":3,"sources":["../src/components/Scale/Scale.ts"],"sourcesContent":["import {\n motionTokens,\n createPresenceComponent,\n PresenceMotionFn,\n createPresenceComponentVariant,\n} from '@fluentui/react-motion';\nimport { fadeAtom } from '../../atoms/fade-atom';\nimport { scaleAtom } from '../../atoms/scale-atom';\nimport { ScaleParams } from './scale-types';\n\n/** Define a presence motion for scale in/out */\nconst scalePresenceFn: PresenceMotionFn<ScaleParams> = ({\n duration = motionTokens.durationGentle,\n easing = motionTokens.curveDecelerateMax,\n exitDuration = motionTokens.durationNormal,\n exitEasing = motionTokens.curveAccelerateMax,\n fromScale = 0.9,\n animateOpacity = true,\n}) => {\n const enterAtoms = [scaleAtom({ direction: 'enter', duration, easing, fromScale: fromScale })];\n const exitAtoms = [\n scaleAtom({\n direction: 'exit',\n duration: exitDuration,\n easing: exitEasing,\n fromScale: fromScale,\n }),\n ];\n\n // Only add fade atoms if animateOpacity is true.\n if (animateOpacity) {\n enterAtoms.push(fadeAtom({ direction: 'enter', duration, easing }));\n exitAtoms.push(fadeAtom({ direction: 'exit', duration: exitDuration, easing: exitEasing }));\n }\n\n return {\n enter: enterAtoms,\n exit: exitAtoms,\n };\n};\n\n/** A React component that applies scale in/out transitions to its children. */\nexport const Scale = createPresenceComponent(scalePresenceFn);\n\nexport const ScaleSnappy = createPresenceComponentVariant(Scale, {\n duration: motionTokens.durationNormal,\n exitDuration: motionTokens.durationFast,\n});\n\nexport const ScaleRelaxed = createPresenceComponentVariant(Scale, {\n duration: motionTokens.durationSlow,\n exitDuration: motionTokens.durationGentle,\n});\n"],"names":["Scale","ScaleRelaxed","ScaleSnappy","scalePresenceFn","duration","motionTokens","durationGentle","easing","curveDecelerateMax","exitDuration","durationNormal","exitEasing","curveAccelerateMax","fromScale","animateOpacity","enterAtoms","scaleAtom","direction","exitAtoms","push","fadeAtom","enter","exit","createPresenceComponent","createPresenceComponentVariant","durationFast","durationSlow"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IA0CaA,KAAK;eAALA;;IAOAC,YAAY;eAAZA;;IALAC,WAAW;eAAXA;;;6BAvCN;0BACkB;2BACC;AAG1B,8CAA8C,GAC9C,MAAMC,kBAAiD,CAAC,EACtDC,WAAWC,yBAAY,CAACC,cAAc,EACtCC,SAASF,yBAAY,CAACG,kBAAkB,EACxCC,eAAeJ,yBAAY,CAACK,cAAc,EAC1CC,aAAaN,yBAAY,CAACO,kBAAkB,EAC5CC,YAAY,GAAG,EACfC,iBAAiB,IAAI,EACtB;IACC,MAAMC,aAAa;QAACC,IAAAA,oBAAS,EAAC;YAAEC,WAAW;YAASb;YAAUG;YAAQM,WAAWA;QAAU;KAAG;IAC9F,MAAMK,YAAY;QAChBF,IAAAA,oBAAS,EAAC;YACRC,WAAW;YACXb,UAAUK;YACVF,QAAQI;YACRE,WAAWA;QACb;KACD;IAED,iDAAiD;IACjD,IAAIC,gBAAgB;QAClBC,WAAWI,IAAI,CAACC,IAAAA,kBAAQ,EAAC;YAAEH,WAAW;YAASb;YAAUG;QAAO;QAChEW,UAAUC,IAAI,CAACC,IAAAA,kBAAQ,EAAC;YAAEH,WAAW;YAAQb,UAAUK;YAAcF,QAAQI;QAAW;IAC1F;IAEA,OAAO;QACLU,OAAON;QACPO,MAAMJ;IACR;AACF;AAGO,MAAMlB,QAAQuB,IAAAA,oCAAuB,EAACpB;AAEtC,MAAMD,cAAcsB,IAAAA,2CAA8B,EAACxB,OAAO;IAC/DI,UAAUC,yBAAY,CAACK,cAAc;IACrCD,cAAcJ,yBAAY,CAACoB,YAAY;AACzC;AAEO,MAAMxB,eAAeuB,IAAAA,2CAA8B,EAACxB,OAAO;IAChEI,UAAUC,yBAAY,CAACqB,YAAY;IACnCjB,cAAcJ,yBAAY,CAACC,cAAc;AAC3C"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"rangeMappings":"","mappings":""}
@@ -0,0 +1,69 @@
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
+ Slide: function() {
13
+ return Slide;
14
+ },
15
+ SlideRelaxed: function() {
16
+ return SlideRelaxed;
17
+ },
18
+ SlideSnappy: function() {
19
+ return SlideSnappy;
20
+ }
21
+ });
22
+ const _reactmotion = require("@fluentui/react-motion");
23
+ const _fadeatom = require("../../atoms/fade-atom");
24
+ const _slideatom = require("../../atoms/slide-atom");
25
+ /** Define a presence motion for slide in/out */ const slidePresenceFn = ({ duration = _reactmotion.motionTokens.durationNormal, easing = _reactmotion.motionTokens.curveDecelerateMid, exitDuration = duration, exitEasing = _reactmotion.motionTokens.curveAccelerateMid, fromX = '0px', fromY = '20px', animateOpacity = true })=>{
26
+ const enterAtoms = [
27
+ (0, _slideatom.slideAtom)({
28
+ direction: 'enter',
29
+ duration,
30
+ easing,
31
+ fromX,
32
+ fromY
33
+ })
34
+ ];
35
+ const exitAtoms = [
36
+ (0, _slideatom.slideAtom)({
37
+ direction: 'exit',
38
+ duration: exitDuration,
39
+ easing: exitEasing,
40
+ fromX,
41
+ fromY
42
+ })
43
+ ];
44
+ // Only add fade atoms if animateOpacity is true.
45
+ if (animateOpacity) {
46
+ enterAtoms.push((0, _fadeatom.fadeAtom)({
47
+ direction: 'enter',
48
+ duration,
49
+ easing
50
+ }));
51
+ exitAtoms.push((0, _fadeatom.fadeAtom)({
52
+ direction: 'exit',
53
+ duration: exitDuration,
54
+ easing: exitEasing
55
+ }));
56
+ }
57
+ return {
58
+ enter: enterAtoms,
59
+ exit: exitAtoms
60
+ };
61
+ };
62
+ const Slide = (0, _reactmotion.createPresenceComponent)(slidePresenceFn);
63
+ const SlideSnappy = (0, _reactmotion.createPresenceComponentVariant)(Slide, {
64
+ easing: _reactmotion.motionTokens.curveDecelerateMax,
65
+ exitEasing: _reactmotion.motionTokens.curveAccelerateMax
66
+ });
67
+ const SlideRelaxed = (0, _reactmotion.createPresenceComponentVariant)(Slide, {
68
+ duration: _reactmotion.motionTokens.durationGentle
69
+ });
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/Slide/Slide.ts"],"sourcesContent":["import {\n motionTokens,\n createPresenceComponent,\n PresenceMotionFn,\n createPresenceComponentVariant,\n} from '@fluentui/react-motion';\nimport { fadeAtom } from '../../atoms/fade-atom';\nimport { slideAtom } from '../../atoms/slide-atom';\nimport { SlideParams } from './slide-types';\n\n/** Define a presence motion for slide in/out */\nconst slidePresenceFn: PresenceMotionFn<SlideParams> = ({\n duration = motionTokens.durationNormal,\n easing = motionTokens.curveDecelerateMid,\n exitDuration = duration,\n exitEasing = motionTokens.curveAccelerateMid,\n fromX = '0px',\n fromY = '20px',\n animateOpacity = true,\n}: SlideParams) => {\n const enterAtoms = [slideAtom({ direction: 'enter', duration, easing, fromX, fromY })];\n const exitAtoms = [\n slideAtom({\n direction: 'exit',\n duration: exitDuration,\n easing: exitEasing,\n fromX,\n fromY,\n }),\n ];\n\n // Only add fade atoms if animateOpacity is true.\n if (animateOpacity) {\n enterAtoms.push(fadeAtom({ direction: 'enter', duration, easing }));\n exitAtoms.push(fadeAtom({ direction: 'exit', duration: exitDuration, easing: exitEasing }));\n }\n\n return {\n enter: enterAtoms,\n exit: exitAtoms,\n };\n};\n\n/** A React component that applies slide in/out transitions to its children. */\nexport const Slide = createPresenceComponent(slidePresenceFn);\n\nexport const SlideSnappy = createPresenceComponentVariant(Slide, {\n easing: motionTokens.curveDecelerateMax,\n exitEasing: motionTokens.curveAccelerateMax,\n});\n\nexport const SlideRelaxed = createPresenceComponentVariant(Slide, {\n duration: motionTokens.durationGentle,\n});\n"],"names":["Slide","SlideRelaxed","SlideSnappy","slidePresenceFn","duration","motionTokens","durationNormal","easing","curveDecelerateMid","exitDuration","exitEasing","curveAccelerateMid","fromX","fromY","animateOpacity","enterAtoms","slideAtom","direction","exitAtoms","push","fadeAtom","enter","exit","createPresenceComponent","createPresenceComponentVariant","curveDecelerateMax","curveAccelerateMax","durationGentle"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IA4CaA,KAAK;eAALA;;IAOAC,YAAY;eAAZA;;IALAC,WAAW;eAAXA;;;6BAzCN;0BACkB;2BACC;AAG1B,8CAA8C,GAC9C,MAAMC,kBAAiD,CAAC,EACtDC,WAAWC,yBAAY,CAACC,cAAc,EACtCC,SAASF,yBAAY,CAACG,kBAAkB,EACxCC,eAAeL,QAAQ,EACvBM,aAAaL,yBAAY,CAACM,kBAAkB,EAC5CC,QAAQ,KAAK,EACbC,QAAQ,MAAM,EACdC,iBAAiB,IAAI,EACT;IACZ,MAAMC,aAAa;QAACC,IAAAA,oBAAS,EAAC;YAAEC,WAAW;YAASb;YAAUG;YAAQK;YAAOC;QAAM;KAAG;IACtF,MAAMK,YAAY;QAChBF,IAAAA,oBAAS,EAAC;YACRC,WAAW;YACXb,UAAUK;YACVF,QAAQG;YACRE;YACAC;QACF;KACD;IAED,iDAAiD;IACjD,IAAIC,gBAAgB;QAClBC,WAAWI,IAAI,CAACC,IAAAA,kBAAQ,EAAC;YAAEH,WAAW;YAASb;YAAUG;QAAO;QAChEW,UAAUC,IAAI,CAACC,IAAAA,kBAAQ,EAAC;YAAEH,WAAW;YAAQb,UAAUK;YAAcF,QAAQG;QAAW;IAC1F;IAEA,OAAO;QACLW,OAAON;QACPO,MAAMJ;IACR;AACF;AAGO,MAAMlB,QAAQuB,IAAAA,oCAAuB,EAACpB;AAEtC,MAAMD,cAAcsB,IAAAA,2CAA8B,EAACxB,OAAO;IAC/DO,QAAQF,yBAAY,CAACoB,kBAAkB;IACvCf,YAAYL,yBAAY,CAACqB,kBAAkB;AAC7C;AAEO,MAAMzB,eAAeuB,IAAAA,2CAA8B,EAACxB,OAAO;IAChEI,UAAUC,yBAAY,CAACsB,cAAc;AACvC"}
@@ -0,0 +1,22 @@
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
+ Slide: function() {
13
+ return _Slide.Slide;
14
+ },
15
+ SlideRelaxed: function() {
16
+ return _Slide.SlideRelaxed;
17
+ },
18
+ SlideSnappy: function() {
19
+ return _Slide.SlideSnappy;
20
+ }
21
+ });
22
+ const _Slide = require("./Slide");
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/Slide/index.ts"],"sourcesContent":["export { Slide, SlideRelaxed, SlideSnappy } from './Slide';\n"],"names":["Slide","SlideRelaxed","SlideSnappy"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAASA,KAAK;eAALA,YAAK;;IAAEC,YAAY;eAAZA,mBAAY;;IAAEC,WAAW;eAAXA,kBAAW;;;uBAAQ"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"rangeMappings":"","mappings":""}
@@ -39,13 +39,17 @@ _export(exports, {
39
39
  ScaleSnappy: function() {
40
40
  return _Scale.ScaleSnappy;
41
41
  },
42
- createCollapseDelayedPresence: function() {
43
- return _Collapse.createCollapseDelayedPresence;
42
+ Slide: function() {
43
+ return _Slide.Slide;
44
44
  },
45
- createCollapsePresence: function() {
46
- return _Collapse.createCollapsePresence;
45
+ SlideRelaxed: function() {
46
+ return _Slide.SlideRelaxed;
47
+ },
48
+ SlideSnappy: function() {
49
+ return _Slide.SlideSnappy;
47
50
  }
48
51
  });
49
52
  const _Collapse = require("./components/Collapse");
50
53
  const _Fade = require("./components/Fade");
51
54
  const _Scale = require("./components/Scale");
55
+ const _Slide = require("./components/Slide");
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export {\n Collapse,\n CollapseSnappy,\n CollapseRelaxed,\n CollapseDelayed,\n createCollapsePresence,\n createCollapseDelayedPresence,\n} from './components/Collapse';\nexport type { CollapseRuntimeParams } from './components/Collapse';\nexport { Fade, FadeSnappy, FadeRelaxed } from './components/Fade';\nexport { Scale, ScaleSnappy, ScaleRelaxed } from './components/Scale';\n"],"names":["Collapse","CollapseDelayed","CollapseRelaxed","CollapseSnappy","Fade","FadeRelaxed","FadeSnappy","Scale","ScaleRelaxed","ScaleSnappy","createCollapseDelayedPresence","createCollapsePresence"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IACEA,QAAQ;eAARA,kBAAQ;;IAGRC,eAAe;eAAfA,yBAAe;;IADfC,eAAe;eAAfA,yBAAe;;IADfC,cAAc;eAAdA,wBAAc;;IAOPC,IAAI;eAAJA,UAAI;;IAAcC,WAAW;eAAXA,iBAAW;;IAAvBC,UAAU;eAAVA,gBAAU;;IAChBC,KAAK;eAALA,YAAK;;IAAeC,YAAY;eAAZA,mBAAY;;IAAzBC,WAAW;eAAXA,kBAAW;;IAJzBC,6BAA6B;eAA7BA,uCAA6B;;IAD7BC,sBAAsB;eAAtBA,gCAAsB;;;0BAEjB;sBAEuC;uBACG"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { Collapse, CollapseSnappy, CollapseRelaxed, CollapseDelayed } from './components/Collapse';\nexport { Fade, FadeSnappy, FadeRelaxed } from './components/Fade';\nexport { Scale, ScaleSnappy, ScaleRelaxed } from './components/Scale';\nexport { Slide, SlideSnappy, SlideRelaxed } from './components/Slide';\n"],"names":["Collapse","CollapseDelayed","CollapseRelaxed","CollapseSnappy","Fade","FadeRelaxed","FadeSnappy","Scale","ScaleRelaxed","ScaleSnappy","Slide","SlideRelaxed","SlideSnappy"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAASA,QAAQ;eAARA,kBAAQ;;IAAmCC,eAAe;eAAfA,yBAAe;;IAAhCC,eAAe;eAAfA,yBAAe;;IAA/BC,cAAc;eAAdA,wBAAc;;IACxBC,IAAI;eAAJA,UAAI;;IAAcC,WAAW;eAAXA,iBAAW;;IAAvBC,UAAU;eAAVA,gBAAU;;IAChBC,KAAK;eAALA,YAAK;;IAAeC,YAAY;eAAZA,mBAAY;;IAAzBC,WAAW;eAAXA,kBAAW;;IAClBC,KAAK;eAALA,YAAK;;IAAeC,YAAY;eAAZA,mBAAY;;IAAzBC,WAAW;eAAXA,kBAAW;;;0BAHgD;sBAC7B;uBACG;uBACA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-motion-components-preview",
3
- "version": "0.6.1",
3
+ "version": "0.7.0",
4
4
  "description": "A preview package for Fluent UI motion components, providing a collection of components",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",