@fluentui/react-motion-components-preview 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/LICENSE +15 -0
- package/README.md +5 -0
- package/dist/index.d.ts +16 -0
- package/lib/components/Collapse/Collapse.js +71 -0
- package/lib/components/Collapse/Collapse.js.map +1 -0
- package/lib/components/Collapse/index.js +1 -0
- package/lib/components/Collapse/index.js.map +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -0
- package/lib-commonjs/components/Collapse/Collapse.js +92 -0
- package/lib-commonjs/components/Collapse/Collapse.js.map +1 -0
- package/lib-commonjs/components/Collapse/index.js +6 -0
- package/lib-commonjs/components/Collapse/index.js.map +1 -0
- package/lib-commonjs/index.js +22 -0
- package/lib-commonjs/index.js.map +1 -0
- package/package.json +62 -0
package/CHANGELOG.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Change Log - @fluentui/react-motion-components-preview
|
2
|
+
|
3
|
+
This log was last generated on Mon, 15 Jul 2024 17:20:20 GMT and should not be manually modified.
|
4
|
+
|
5
|
+
<!-- Start content -->
|
6
|
+
|
7
|
+
## [0.1.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-motion-components-preview_v0.1.0)
|
8
|
+
|
9
|
+
Mon, 15 Jul 2024 17:20:20 GMT
|
10
|
+
|
11
|
+
### Minor changes
|
12
|
+
|
13
|
+
- feat: release preview package ([PR #31998](https://github.com/microsoft/fluentui/pull/31998) by olkatruk@microsoft.com)
|
package/LICENSE
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
@fluentui/react-motion-components-preview
|
2
|
+
|
3
|
+
Copyright (c) Microsoft Corporation
|
4
|
+
|
5
|
+
All rights reserved.
|
6
|
+
|
7
|
+
MIT License
|
8
|
+
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
14
|
+
|
15
|
+
Note: Usage of the fonts and icons referenced in Fluent UI React is subject to the terms listed at https://aka.ms/fluentui-assets-license
|
package/README.md
ADDED
@@ -0,0 +1,5 @@
|
|
1
|
+
# @fluentui/react-motion-components-preview
|
2
|
+
|
3
|
+
**React Motion Components for [Fluent UI React](https://react.fluentui.dev/)**
|
4
|
+
|
5
|
+
These are not production-ready components and **should never be used in product**. This space is useful for testing new components whose APIs might change before final release.
|
package/dist/index.d.ts
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
import { PresenceComponent } from '@fluentui/react-motion';
|
2
|
+
|
3
|
+
/** A React component that applies collapse/expand transitions to its children. */
|
4
|
+
export declare const Collapse: PresenceComponent< {
|
5
|
+
animateOpacity?: boolean | undefined;
|
6
|
+
}>;
|
7
|
+
|
8
|
+
export declare const CollapseExaggerated: PresenceComponent< {
|
9
|
+
animateOpacity?: boolean | undefined;
|
10
|
+
}>;
|
11
|
+
|
12
|
+
export declare const CollapseSnappy: PresenceComponent< {
|
13
|
+
animateOpacity?: boolean | undefined;
|
14
|
+
}>;
|
15
|
+
|
16
|
+
export { }
|
@@ -0,0 +1,71 @@
|
|
1
|
+
import { motionTokens, createPresenceComponent, createPresenceComponentVariant } from '@fluentui/react-motion';
|
2
|
+
/** Define a presence motion for collapse/expand */ const collapseMotion = ({ element, animateOpacity = true })=>{
|
3
|
+
const fromOpacity = animateOpacity ? 0 : 1;
|
4
|
+
const toOpacity = 1;
|
5
|
+
const fromHeight = '0'; // Could be a custom param in the future: start partially expanded
|
6
|
+
const toHeight = `${element.scrollHeight}px`;
|
7
|
+
const overflow = 'hidden';
|
8
|
+
const duration = motionTokens.durationNormal;
|
9
|
+
const easing = motionTokens.curveEasyEaseMax;
|
10
|
+
const enterKeyframes = [
|
11
|
+
{
|
12
|
+
opacity: fromOpacity,
|
13
|
+
maxHeight: fromHeight,
|
14
|
+
overflow
|
15
|
+
},
|
16
|
+
// Transition to the height of the content, at 99.99% of the duration.
|
17
|
+
{
|
18
|
+
opacity: toOpacity,
|
19
|
+
maxHeight: toHeight,
|
20
|
+
offset: 0.9999,
|
21
|
+
overflow
|
22
|
+
},
|
23
|
+
// On completion, remove the maxHeight because the content might need to expand later.
|
24
|
+
// This extra keyframe is simpler than firing a callback on completion.
|
25
|
+
{
|
26
|
+
opacity: toOpacity,
|
27
|
+
maxHeight: 'unset',
|
28
|
+
overflow
|
29
|
+
}
|
30
|
+
];
|
31
|
+
const exitKeyframes = [
|
32
|
+
{
|
33
|
+
opacity: toOpacity,
|
34
|
+
maxHeight: toHeight,
|
35
|
+
overflow
|
36
|
+
},
|
37
|
+
{
|
38
|
+
opacity: fromOpacity,
|
39
|
+
maxHeight: fromHeight,
|
40
|
+
overflow
|
41
|
+
}
|
42
|
+
];
|
43
|
+
return {
|
44
|
+
enter: {
|
45
|
+
duration,
|
46
|
+
easing,
|
47
|
+
keyframes: enterKeyframes
|
48
|
+
},
|
49
|
+
exit: {
|
50
|
+
duration,
|
51
|
+
easing,
|
52
|
+
keyframes: exitKeyframes
|
53
|
+
}
|
54
|
+
};
|
55
|
+
};
|
56
|
+
/** A React component that applies collapse/expand transitions to its children. */ export const Collapse = createPresenceComponent(collapseMotion);
|
57
|
+
export const CollapseSnappy = createPresenceComponentVariant(Collapse, {
|
58
|
+
all: {
|
59
|
+
duration: motionTokens.durationUltraFast
|
60
|
+
}
|
61
|
+
});
|
62
|
+
export const CollapseExaggerated = createPresenceComponentVariant(Collapse, {
|
63
|
+
enter: {
|
64
|
+
duration: motionTokens.durationSlow,
|
65
|
+
easing: motionTokens.curveEasyEaseMax
|
66
|
+
},
|
67
|
+
exit: {
|
68
|
+
duration: motionTokens.durationNormal,
|
69
|
+
easing: motionTokens.curveEasyEaseMax
|
70
|
+
}
|
71
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["Collapse.ts"],"sourcesContent":["import {\n motionTokens,\n type PresenceMotionFn,\n createPresenceComponent,\n createPresenceComponentVariant,\n} from '@fluentui/react-motion';\n\n/** Define a presence motion for collapse/expand */\nconst collapseMotion: PresenceMotionFn<{ animateOpacity?: boolean }> = ({ element, animateOpacity = true }) => {\n const fromOpacity = animateOpacity ? 0 : 1;\n const toOpacity = 1;\n const fromHeight = '0'; // Could be a custom param in the future: start partially expanded\n const toHeight = `${element.scrollHeight}px`;\n const overflow = 'hidden';\n\n const duration = motionTokens.durationNormal;\n const easing = motionTokens.curveEasyEaseMax;\n\n const enterKeyframes = [\n { opacity: fromOpacity, maxHeight: fromHeight, overflow },\n // Transition to the height of the content, at 99.99% of the duration.\n { opacity: toOpacity, maxHeight: toHeight, offset: 0.9999, overflow },\n // On completion, remove the maxHeight because the content might need to expand later.\n // This extra keyframe is simpler than firing a callback on completion.\n { opacity: toOpacity, maxHeight: 'unset', overflow },\n ];\n\n const exitKeyframes = [\n { opacity: toOpacity, maxHeight: toHeight, overflow },\n { opacity: fromOpacity, maxHeight: fromHeight, overflow },\n ];\n\n return {\n enter: { duration, easing, keyframes: enterKeyframes },\n exit: { duration, easing, keyframes: exitKeyframes },\n };\n};\n\n/** A React component that applies collapse/expand transitions to its children. */\nexport const Collapse = createPresenceComponent(collapseMotion);\n\nexport const CollapseSnappy = createPresenceComponentVariant(Collapse, {\n all: { duration: motionTokens.durationUltraFast },\n});\n\nexport const CollapseExaggerated = createPresenceComponentVariant(Collapse, {\n enter: { duration: motionTokens.durationSlow, easing: motionTokens.curveEasyEaseMax },\n exit: { duration: motionTokens.durationNormal, easing: motionTokens.curveEasyEaseMax },\n});\n"],"names":["motionTokens","createPresenceComponent","createPresenceComponentVariant","collapseMotion","element","animateOpacity","fromOpacity","toOpacity","fromHeight","toHeight","scrollHeight","overflow","duration","durationNormal","easing","curveEasyEaseMax","enterKeyframes","opacity","maxHeight","offset","exitKeyframes","enter","keyframes","exit","Collapse","CollapseSnappy","all","durationUltraFast","CollapseExaggerated","durationSlow"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SACEA,YAAY,EAEZC,uBAAuB,EACvBC,8BAA8B,QACzB,yBAAyB;AAEhC,iDAAiD,GACjD,MAAMC,iBAAiE,CAAC,EAAEC,OAAO,EAAEC,iBAAiB,IAAI,EAAE;IACxG,MAAMC,cAAcD,iBAAiB,IAAI;IACzC,MAAME,YAAY;IAClB,MAAMC,aAAa,KAAK,kEAAkE;IAC1F,MAAMC,WAAW,CAAC,EAAEL,QAAQM,YAAY,CAAC,EAAE,CAAC;IAC5C,MAAMC,WAAW;IAEjB,MAAMC,WAAWZ,aAAaa,cAAc;IAC5C,MAAMC,SAASd,aAAae,gBAAgB;IAE5C,MAAMC,iBAAiB;QACrB;YAAEC,SAASX;YAAaY,WAAWV;YAAYG;QAAS;QACxD,sEAAsE;QACtE;YAAEM,SAASV;YAAWW,WAAWT;YAAUU,QAAQ;YAAQR;QAAS;QACpE,sFAAsF;QACtF,uEAAuE;QACvE;YAAEM,SAASV;YAAWW,WAAW;YAASP;QAAS;KACpD;IAED,MAAMS,gBAAgB;QACpB;YAAEH,SAASV;YAAWW,WAAWT;YAAUE;QAAS;QACpD;YAAEM,SAASX;YAAaY,WAAWV;YAAYG;QAAS;KACzD;IAED,OAAO;QACLU,OAAO;YAAET;YAAUE;YAAQQ,WAAWN;QAAe;QACrDO,MAAM;YAAEX;YAAUE;YAAQQ,WAAWF;QAAc;IACrD;AACF;AAEA,gFAAgF,GAChF,OAAO,MAAMI,WAAWvB,wBAAwBE,gBAAgB;AAEhE,OAAO,MAAMsB,iBAAiBvB,+BAA+BsB,UAAU;IACrEE,KAAK;QAAEd,UAAUZ,aAAa2B,iBAAiB;IAAC;AAClD,GAAG;AAEH,OAAO,MAAMC,sBAAsB1B,+BAA+BsB,UAAU;IAC1EH,OAAO;QAAET,UAAUZ,aAAa6B,YAAY;QAAEf,QAAQd,aAAae,gBAAgB;IAAC;IACpFQ,MAAM;QAAEX,UAAUZ,aAAaa,cAAc;QAAEC,QAAQd,aAAae,gBAAgB;IAAC;AACvF,GAAG"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Collapse';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './Collapse';\n"],"names":[],"rangeMappings":"","mappings":"AAAA,cAAc,aAAa"}
|
package/lib/index.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export { Collapse, CollapseSnappy, CollapseExaggerated } from './components/Collapse';
|
package/lib/index.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export { Collapse, CollapseSnappy, CollapseExaggerated } from './components/Collapse';\n"],"names":["Collapse","CollapseSnappy","CollapseExaggerated"],"rangeMappings":"","mappings":"AAAA,SAASA,QAAQ,EAAEC,cAAc,EAAEC,mBAAmB,QAAQ,wBAAwB"}
|
@@ -0,0 +1,92 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
3
|
+
value: true
|
4
|
+
});
|
5
|
+
function _export(target, all) {
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
7
|
+
enumerable: true,
|
8
|
+
get: all[name]
|
9
|
+
});
|
10
|
+
}
|
11
|
+
_export(exports, {
|
12
|
+
Collapse: function() {
|
13
|
+
return Collapse;
|
14
|
+
},
|
15
|
+
CollapseExaggerated: function() {
|
16
|
+
return CollapseExaggerated;
|
17
|
+
},
|
18
|
+
CollapseSnappy: function() {
|
19
|
+
return CollapseSnappy;
|
20
|
+
}
|
21
|
+
});
|
22
|
+
const _reactmotion = require("@fluentui/react-motion");
|
23
|
+
/** Define a presence motion for collapse/expand */ const collapseMotion = ({ element, animateOpacity = true })=>{
|
24
|
+
const fromOpacity = animateOpacity ? 0 : 1;
|
25
|
+
const toOpacity = 1;
|
26
|
+
const fromHeight = '0'; // Could be a custom param in the future: start partially expanded
|
27
|
+
const toHeight = `${element.scrollHeight}px`;
|
28
|
+
const overflow = 'hidden';
|
29
|
+
const duration = _reactmotion.motionTokens.durationNormal;
|
30
|
+
const easing = _reactmotion.motionTokens.curveEasyEaseMax;
|
31
|
+
const enterKeyframes = [
|
32
|
+
{
|
33
|
+
opacity: fromOpacity,
|
34
|
+
maxHeight: fromHeight,
|
35
|
+
overflow
|
36
|
+
},
|
37
|
+
// Transition to the height of the content, at 99.99% of the duration.
|
38
|
+
{
|
39
|
+
opacity: toOpacity,
|
40
|
+
maxHeight: toHeight,
|
41
|
+
offset: 0.9999,
|
42
|
+
overflow
|
43
|
+
},
|
44
|
+
// On completion, remove the maxHeight because the content might need to expand later.
|
45
|
+
// This extra keyframe is simpler than firing a callback on completion.
|
46
|
+
{
|
47
|
+
opacity: toOpacity,
|
48
|
+
maxHeight: 'unset',
|
49
|
+
overflow
|
50
|
+
}
|
51
|
+
];
|
52
|
+
const exitKeyframes = [
|
53
|
+
{
|
54
|
+
opacity: toOpacity,
|
55
|
+
maxHeight: toHeight,
|
56
|
+
overflow
|
57
|
+
},
|
58
|
+
{
|
59
|
+
opacity: fromOpacity,
|
60
|
+
maxHeight: fromHeight,
|
61
|
+
overflow
|
62
|
+
}
|
63
|
+
];
|
64
|
+
return {
|
65
|
+
enter: {
|
66
|
+
duration,
|
67
|
+
easing,
|
68
|
+
keyframes: enterKeyframes
|
69
|
+
},
|
70
|
+
exit: {
|
71
|
+
duration,
|
72
|
+
easing,
|
73
|
+
keyframes: exitKeyframes
|
74
|
+
}
|
75
|
+
};
|
76
|
+
};
|
77
|
+
const Collapse = (0, _reactmotion.createPresenceComponent)(collapseMotion);
|
78
|
+
const CollapseSnappy = (0, _reactmotion.createPresenceComponentVariant)(Collapse, {
|
79
|
+
all: {
|
80
|
+
duration: _reactmotion.motionTokens.durationUltraFast
|
81
|
+
}
|
82
|
+
});
|
83
|
+
const CollapseExaggerated = (0, _reactmotion.createPresenceComponentVariant)(Collapse, {
|
84
|
+
enter: {
|
85
|
+
duration: _reactmotion.motionTokens.durationSlow,
|
86
|
+
easing: _reactmotion.motionTokens.curveEasyEaseMax
|
87
|
+
},
|
88
|
+
exit: {
|
89
|
+
duration: _reactmotion.motionTokens.durationNormal,
|
90
|
+
easing: _reactmotion.motionTokens.curveEasyEaseMax
|
91
|
+
}
|
92
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["Collapse.ts"],"sourcesContent":["import {\n motionTokens,\n type PresenceMotionFn,\n createPresenceComponent,\n createPresenceComponentVariant,\n} from '@fluentui/react-motion';\n\n/** Define a presence motion for collapse/expand */\nconst collapseMotion: PresenceMotionFn<{ animateOpacity?: boolean }> = ({ element, animateOpacity = true }) => {\n const fromOpacity = animateOpacity ? 0 : 1;\n const toOpacity = 1;\n const fromHeight = '0'; // Could be a custom param in the future: start partially expanded\n const toHeight = `${element.scrollHeight}px`;\n const overflow = 'hidden';\n\n const duration = motionTokens.durationNormal;\n const easing = motionTokens.curveEasyEaseMax;\n\n const enterKeyframes = [\n { opacity: fromOpacity, maxHeight: fromHeight, overflow },\n // Transition to the height of the content, at 99.99% of the duration.\n { opacity: toOpacity, maxHeight: toHeight, offset: 0.9999, overflow },\n // On completion, remove the maxHeight because the content might need to expand later.\n // This extra keyframe is simpler than firing a callback on completion.\n { opacity: toOpacity, maxHeight: 'unset', overflow },\n ];\n\n const exitKeyframes = [\n { opacity: toOpacity, maxHeight: toHeight, overflow },\n { opacity: fromOpacity, maxHeight: fromHeight, overflow },\n ];\n\n return {\n enter: { duration, easing, keyframes: enterKeyframes },\n exit: { duration, easing, keyframes: exitKeyframes },\n };\n};\n\n/** A React component that applies collapse/expand transitions to its children. */\nexport const Collapse = createPresenceComponent(collapseMotion);\n\nexport const CollapseSnappy = createPresenceComponentVariant(Collapse, {\n all: { duration: motionTokens.durationUltraFast },\n});\n\nexport const CollapseExaggerated = createPresenceComponentVariant(Collapse, {\n enter: { duration: motionTokens.durationSlow, easing: motionTokens.curveEasyEaseMax },\n exit: { duration: motionTokens.durationNormal, easing: motionTokens.curveEasyEaseMax },\n});\n"],"names":["Collapse","CollapseExaggerated","CollapseSnappy","collapseMotion","element","animateOpacity","fromOpacity","toOpacity","fromHeight","toHeight","scrollHeight","overflow","duration","motionTokens","durationNormal","easing","curveEasyEaseMax","enterKeyframes","opacity","maxHeight","offset","exitKeyframes","enter","keyframes","exit","createPresenceComponent","createPresenceComponentVariant","all","durationUltraFast","durationSlow"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAuCaA,QAAAA;eAAAA;;IAMAC,mBAAAA;eAAAA;;IAJAC,cAAAA;eAAAA;;;6BApCN;AAEP,iDAAiD,GACjD,MAAMC,iBAAiE,CAAC,EAAEC,OAAO,EAAEC,iBAAiB,IAAI,EAAE;IACxG,MAAMC,cAAcD,iBAAiB,IAAI;IACzC,MAAME,YAAY;IAClB,MAAMC,aAAa,KAAK,kEAAkE;IAC1F,MAAMC,WAAW,CAAC,EAAEL,QAAQM,YAAY,CAAC,EAAE,CAAC;IAC5C,MAAMC,WAAW;IAEjB,MAAMC,WAAWC,yBAAAA,CAAaC,cAAc;IAC5C,MAAMC,SAASF,yBAAAA,CAAaG,gBAAgB;IAE5C,MAAMC,iBAAiB;QACrB;YAAEC,SAASZ;YAAaa,WAAWX;YAAYG;QAAS;QACxD,sEAAsE;QACtE;YAAEO,SAASX;YAAWY,WAAWV;YAAUW,QAAQ;YAAQT;QAAS;QACpE,sFAAsF;QACtF,uEAAuE;QACvE;YAAEO,SAASX;YAAWY,WAAW;YAASR;QAAS;KACpD;IAED,MAAMU,gBAAgB;QACpB;YAAEH,SAASX;YAAWY,WAAWV;YAAUE;QAAS;QACpD;YAAEO,SAASZ;YAAaa,WAAWX;YAAYG;QAAS;KACzD;IAED,OAAO;QACLW,OAAO;YAAEV;YAAUG;YAAQQ,WAAWN;QAAe;QACrDO,MAAM;YAAEZ;YAAUG;YAAQQ,WAAWF;QAAc;IACrD;AACF;AAGO,MAAMrB,WAAWyB,IAAAA,oCAAAA,EAAwBtB;AAEzC,MAAMD,iBAAiBwB,IAAAA,2CAAAA,EAA+B1B,UAAU;IACrE2B,KAAK;QAAEf,UAAUC,yBAAAA,CAAae,iBAAiB;IAAC;AAClD;AAEO,MAAM3B,sBAAsByB,IAAAA,2CAAAA,EAA+B1B,UAAU;IAC1EsB,OAAO;QAAEV,UAAUC,yBAAAA,CAAagB,YAAY;QAAEd,QAAQF,yBAAAA,CAAaG,gBAAgB;IAAC;IACpFQ,MAAM;QAAEZ,UAAUC,yBAAAA,CAAaC,cAAc;QAAEC,QAAQF,yBAAAA,CAAaG,gBAAgB;IAAC;AACvF"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './Collapse';\n"],"names":[],"rangeMappings":";;;;;","mappings":";;;;;uBAAc"}
|
@@ -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
|
+
Collapse: function() {
|
13
|
+
return _Collapse.Collapse;
|
14
|
+
},
|
15
|
+
CollapseExaggerated: function() {
|
16
|
+
return _Collapse.CollapseExaggerated;
|
17
|
+
},
|
18
|
+
CollapseSnappy: function() {
|
19
|
+
return _Collapse.CollapseSnappy;
|
20
|
+
}
|
21
|
+
});
|
22
|
+
const _Collapse = require("./components/Collapse");
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export { Collapse, CollapseSnappy, CollapseExaggerated } from './components/Collapse';\n"],"names":["Collapse","CollapseExaggerated","CollapseSnappy"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAASA,QAAQ;eAARA,kBAAQ;;IAAkBC,mBAAmB;eAAnBA,6BAAmB;;IAAnCC,cAAc;eAAdA,wBAAc;;;0BAA6B"}
|
package/package.json
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
{
|
2
|
+
"name": "@fluentui/react-motion-components-preview",
|
3
|
+
"version": "0.1.0",
|
4
|
+
"description": "A preview package for Fluent UI motion components, providing a collection of components",
|
5
|
+
"main": "lib-commonjs/index.js",
|
6
|
+
"module": "lib/index.js",
|
7
|
+
"typings": "./dist/index.d.ts",
|
8
|
+
"sideEffects": false,
|
9
|
+
"files": [
|
10
|
+
"*.md",
|
11
|
+
"dist/*.d.ts",
|
12
|
+
"lib",
|
13
|
+
"lib-commonjs"
|
14
|
+
],
|
15
|
+
"repository": {
|
16
|
+
"type": "git",
|
17
|
+
"url": "https://github.com/microsoft/fluentui"
|
18
|
+
},
|
19
|
+
"license": "MIT",
|
20
|
+
"scripts": {
|
21
|
+
"build": "just-scripts build",
|
22
|
+
"clean": "just-scripts clean",
|
23
|
+
"generate-api": "just-scripts generate-api",
|
24
|
+
"lint": "just-scripts lint",
|
25
|
+
"start": "yarn storybook",
|
26
|
+
"storybook": "yarn --cwd ../stories storybook",
|
27
|
+
"test": "jest --passWithNoTests",
|
28
|
+
"type-check": "just-scripts type-check"
|
29
|
+
},
|
30
|
+
"devDependencies": {
|
31
|
+
"@fluentui/eslint-plugin": "*",
|
32
|
+
"@fluentui/react-conformance": "*",
|
33
|
+
"@fluentui/react-conformance-griffel": "*",
|
34
|
+
"@fluentui/scripts-api-extractor": "*",
|
35
|
+
"@fluentui/scripts-tasks": "*"
|
36
|
+
},
|
37
|
+
"dependencies": {
|
38
|
+
"@fluentui/react-motion": "*",
|
39
|
+
"@swc/helpers": "^0.5.1"
|
40
|
+
},
|
41
|
+
"peerDependencies": {
|
42
|
+
"@types/react": ">=16.14.0 <19.0.0",
|
43
|
+
"@types/react-dom": ">=16.9.0 <19.0.0",
|
44
|
+
"react": ">=16.14.0 <19.0.0",
|
45
|
+
"react-dom": ">=16.14.0 <19.0.0"
|
46
|
+
},
|
47
|
+
"exports": {
|
48
|
+
".": {
|
49
|
+
"types": "./dist/index.d.ts",
|
50
|
+
"node": "./lib-commonjs/index.js",
|
51
|
+
"import": "./lib/index.js",
|
52
|
+
"require": "./lib-commonjs/index.js"
|
53
|
+
},
|
54
|
+
"./package.json": "./package.json"
|
55
|
+
},
|
56
|
+
"beachball": {
|
57
|
+
"disallowedChangeTypes": [
|
58
|
+
"major",
|
59
|
+
"prerelease"
|
60
|
+
]
|
61
|
+
}
|
62
|
+
}
|