@fluentui/react-motion-components-preview 0.2.0 → 0.3.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 (36) hide show
  1. package/CHANGELOG.md +18 -2
  2. package/dist/index.d.ts +53 -5
  3. package/lib/components/Collapse/Collapse.js +54 -70
  4. package/lib/components/Collapse/Collapse.js.map +1 -1
  5. package/lib/components/Collapse/collapse-atoms.js +123 -0
  6. package/lib/components/Collapse/collapse-atoms.js.map +1 -0
  7. package/lib/components/Collapse/collapse-types.js +1 -0
  8. package/lib/components/Collapse/collapse-types.js.map +1 -0
  9. package/lib/components/Collapse/index.js.map +1 -1
  10. package/lib/components/Fade/Fade.js +34 -40
  11. package/lib/components/Fade/Fade.js.map +1 -1
  12. package/lib/components/Fade/index.js.map +1 -1
  13. package/lib/components/Scale/Scale.js +1 -1
  14. package/lib/components/Scale/Scale.js.map +1 -1
  15. package/lib/components/Scale/index.js.map +1 -1
  16. package/lib/index.js +3 -3
  17. package/lib/index.js.map +1 -1
  18. package/lib/types.js.map +1 -1
  19. package/lib-commonjs/components/Collapse/Collapse.js +62 -71
  20. package/lib-commonjs/components/Collapse/Collapse.js.map +1 -1
  21. package/lib-commonjs/components/Collapse/collapse-atoms.js +149 -0
  22. package/lib-commonjs/components/Collapse/collapse-atoms.js.map +1 -0
  23. package/lib-commonjs/components/Collapse/collapse-types.js +4 -0
  24. package/lib-commonjs/components/Collapse/collapse-types.js.map +1 -0
  25. package/lib-commonjs/components/Collapse/index.js.map +1 -1
  26. package/lib-commonjs/components/Fade/Fade.js +38 -41
  27. package/lib-commonjs/components/Fade/Fade.js.map +1 -1
  28. package/lib-commonjs/components/Fade/index.js.map +1 -1
  29. package/lib-commonjs/components/Scale/Scale.js +3 -3
  30. package/lib-commonjs/components/Scale/Scale.js.map +1 -1
  31. package/lib-commonjs/components/Scale/index.js.map +1 -1
  32. package/lib-commonjs/index.js +15 -6
  33. package/lib-commonjs/index.js.map +1 -1
  34. package/lib-commonjs/types.js +0 -10
  35. package/lib-commonjs/types.js.map +1 -1
  36. package/package.json +2 -13
@@ -1,13 +1,3 @@
1
- /**
2
- * This is a factory function that generates a motion function, which has variant params bound into it.
3
- * The generated motion function accepts other runtime params that aren't locked into the variant, but supplied at runtime.
4
- * This separation allows the variant to be defined once and reused with different runtime params which may be orthogonal to the variant params.
5
- * For example, a variant may define the duration and easing of a transition, which are fixed for all instances of the variant,
6
- * while the runtime params may give access to the target element, which is different for each instance.
7
- *
8
- * The generated motion function is also framework-independent, i.e. non-React.
9
- * It can be turned into a React component using `createPresenceComponent`.
10
- */ // TODO: move to @fluentui/react-motion when stable
11
1
  "use strict";
12
2
  Object.defineProperty(exports, "__esModule", {
13
3
  value: true
@@ -1 +1 @@
1
- {"version":3,"sources":["types.ts"],"sourcesContent":["import type { MotionParam, PresenceMotionFn } from '@fluentui/react-motion';\n\n/**\n * This is a factory function that generates a motion function, which has variant params bound into it.\n * The generated motion function accepts other runtime params that aren't locked into the variant, but supplied at runtime.\n * This separation allows the variant to be defined once and reused with different runtime params which may be orthogonal to the variant params.\n * For example, a variant may define the duration and easing of a transition, which are fixed for all instances of the variant,\n * while the runtime params may give access to the target element, which is different for each instance.\n *\n * The generated motion function is also framework-independent, i.e. non-React.\n * It can be turned into a React component using `createPresenceComponent`.\n */\n// TODO: move to @fluentui/react-motion when stable\nexport type PresenceMotionFnCreator<\n MotionVariantParams extends Record<string, MotionParam> = {},\n MotionRuntimeParams extends Record<string, MotionParam> = {},\n> = (variantParams?: MotionVariantParams) => PresenceMotionFn<MotionRuntimeParams>;\n"],"names":[],"rangeMappings":";;;;;;;;;","mappings":"AAEA;;;;;;;;;CASC,GACD,mDAAmD"}
1
+ {"version":3,"sources":[],"names":[],"rangeMappings":"","mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-motion-components-preview",
3
- "version": "0.2.0",
3
+ "version": "0.3.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",
@@ -17,22 +17,11 @@
17
17
  "url": "https://github.com/microsoft/fluentui"
18
18
  },
19
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
20
  "devDependencies": {
31
21
  "@fluentui/eslint-plugin": "*",
32
22
  "@fluentui/react-conformance": "*",
33
23
  "@fluentui/react-conformance-griffel": "*",
34
- "@fluentui/scripts-api-extractor": "*",
35
- "@fluentui/scripts-tasks": "*"
24
+ "@fluentui/scripts-api-extractor": "*"
36
25
  },
37
26
  "dependencies": {
38
27
  "@fluentui/react-motion": "*",