@fluentui/react-motion 0.0.0-nightly-20240607-0405.1
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 +171 -0
- package/LICENSE +15 -0
- package/README.md +5 -0
- package/dist/index.d.ts +144 -0
- package/lib/components/PresenceGroup.js +53 -0
- package/lib/components/PresenceGroup.js.map +1 -0
- package/lib/components/PresenceGroupItemProvider.js +25 -0
- package/lib/components/PresenceGroupItemProvider.js.map +1 -0
- package/lib/contexts/PresenceGroupChildContext.js +4 -0
- package/lib/contexts/PresenceGroupChildContext.js.map +1 -0
- package/lib/factories/createMotionComponent.js +41 -0
- package/lib/factories/createMotionComponent.js.map +1 -0
- package/lib/factories/createPresenceComponent.js +86 -0
- package/lib/factories/createPresenceComponent.js.map +1 -0
- package/lib/hooks/useIsReducedMotion.js +30 -0
- package/lib/hooks/useIsReducedMotion.js.map +1 -0
- package/lib/hooks/useMotionImperativeRef.js +22 -0
- package/lib/hooks/useMotionImperativeRef.js.map +1 -0
- package/lib/hooks/useMountedState.js +26 -0
- package/lib/hooks/useMountedState.js.map +1 -0
- package/lib/index.js +4 -0
- package/lib/index.js.map +1 -0
- package/lib/motions/motionTokens.js +40 -0
- package/lib/motions/motionTokens.js.map +1 -0
- package/lib/types.js +1 -0
- package/lib/types.js.map +1 -0
- package/lib/utils/animateAtoms.js +74 -0
- package/lib/utils/animateAtoms.js.map +1 -0
- package/lib/utils/getChildElement.js +18 -0
- package/lib/utils/getChildElement.js.map +1 -0
- package/lib/utils/groups/getChildMapping.js +20 -0
- package/lib/utils/groups/getChildMapping.js.map +1 -0
- package/lib/utils/groups/getNextChildMapping.js +30 -0
- package/lib/utils/groups/getNextChildMapping.js.map +1 -0
- package/lib/utils/groups/mergeChildMappings.js +39 -0
- package/lib/utils/groups/mergeChildMappings.js.map +1 -0
- package/lib/utils/groups/types.js +1 -0
- package/lib/utils/groups/types.js.map +1 -0
- package/lib-commonjs/components/PresenceGroup.js +64 -0
- package/lib-commonjs/components/PresenceGroup.js.map +1 -0
- package/lib-commonjs/components/PresenceGroupItemProvider.js +31 -0
- package/lib-commonjs/components/PresenceGroupItemProvider.js.map +1 -0
- package/lib-commonjs/contexts/PresenceGroupChildContext.js +13 -0
- package/lib-commonjs/contexts/PresenceGroupChildContext.js.map +1 -0
- package/lib-commonjs/factories/createMotionComponent.js +48 -0
- package/lib-commonjs/factories/createMotionComponent.js.map +1 -0
- package/lib-commonjs/factories/createPresenceComponent.js +96 -0
- package/lib-commonjs/factories/createPresenceComponent.js.map +1 -0
- package/lib-commonjs/hooks/useIsReducedMotion.js +40 -0
- package/lib-commonjs/hooks/useIsReducedMotion.js.map +1 -0
- package/lib-commonjs/hooks/useMotionImperativeRef.js +33 -0
- package/lib-commonjs/hooks/useMotionImperativeRef.js.map +1 -0
- package/lib-commonjs/hooks/useMountedState.js +34 -0
- package/lib-commonjs/hooks/useMountedState.js.map +1 -0
- package/lib-commonjs/index.js +34 -0
- package/lib-commonjs/index.js.map +1 -0
- package/lib-commonjs/motions/motionTokens.js +58 -0
- package/lib-commonjs/motions/motionTokens.js.map +1 -0
- package/lib-commonjs/types.js +4 -0
- package/lib-commonjs/types.js.map +1 -0
- package/lib-commonjs/utils/animateAtoms.js +84 -0
- package/lib-commonjs/utils/animateAtoms.js.map +1 -0
- package/lib-commonjs/utils/getChildElement.js +29 -0
- package/lib-commonjs/utils/getChildElement.js.map +1 -0
- package/lib-commonjs/utils/groups/getChildMapping.js +29 -0
- package/lib-commonjs/utils/groups/getChildMapping.js.map +1 -0
- package/lib-commonjs/utils/groups/getNextChildMapping.js +40 -0
- package/lib-commonjs/utils/groups/getNextChildMapping.js.map +1 -0
- package/lib-commonjs/utils/groups/mergeChildMappings.js +49 -0
- package/lib-commonjs/utils/groups/mergeChildMappings.js.map +1 -0
- package/lib-commonjs/utils/groups/types.js +6 -0
- package/lib-commonjs/utils/groups/types.js.map +1 -0
- package/package.json +60 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["types.js"],"sourcesContent":["import * as React from 'react';\n"],"names":[],"mappings":";;;;;iEAAuB"}
|
package/package.json
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
{
|
2
|
+
"name": "@fluentui/react-motion",
|
3
|
+
"version": "0.0.0-nightly-20240607-0405.1",
|
4
|
+
"description": "A package with utilities & motion definitions using Web Animations API",
|
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": "start-storybook",
|
27
|
+
"test": "jest --passWithNoTests",
|
28
|
+
"test-ssr": "test-ssr \"./stories/**/*.stories.tsx\"",
|
29
|
+
"type-check": "tsc -b tsconfig.json"
|
30
|
+
},
|
31
|
+
"devDependencies": {
|
32
|
+
"@fluentui/eslint-plugin": "*",
|
33
|
+
"@fluentui/react-conformance": "0.0.0-nightly-20240607-0405.1",
|
34
|
+
"@fluentui/react-conformance-griffel": "0.0.0-nightly-20240607-0405.1",
|
35
|
+
"@fluentui/scripts-api-extractor": "*",
|
36
|
+
"@fluentui/scripts-tasks": "*"
|
37
|
+
},
|
38
|
+
"dependencies": {
|
39
|
+
"@fluentui/react-shared-contexts": "0.0.0-nightly-20240607-0405.1",
|
40
|
+
"@fluentui/react-utilities": "0.0.0-nightly-20240607-0405.1",
|
41
|
+
"@swc/helpers": "^0.5.1",
|
42
|
+
"react-is": "^17.0.2"
|
43
|
+
},
|
44
|
+
"peerDependencies": {
|
45
|
+
"@types/react": ">=16.8.0 <19.0.0",
|
46
|
+
"@types/react-dom": ">=16.8.0 <19.0.0",
|
47
|
+
"react": ">=16.8.0 <19.0.0",
|
48
|
+
"react-dom": ">=16.8.0 <19.0.0"
|
49
|
+
},
|
50
|
+
"exports": {
|
51
|
+
".": {
|
52
|
+
"types": "./dist/index.d.ts",
|
53
|
+
"node": "./lib-commonjs/index.js",
|
54
|
+
"import": "./lib/index.js",
|
55
|
+
"require": "./lib-commonjs/index.js"
|
56
|
+
},
|
57
|
+
"./package.json": "./package.json"
|
58
|
+
},
|
59
|
+
"beachball": {}
|
60
|
+
}
|