@carbon/motion 10.26.0 → 10.28.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/docs/sass.md ADDED
@@ -0,0 +1,38 @@
1
+ # Sass
2
+
3
+ > Sass documentation for `@carbon/motion`
4
+
5
+ ## Usage
6
+
7
+ The `@carbon/motion` package enables you to access motion curves and durations
8
+ built for the IBM Design Language in Sass. You can access these values directly
9
+ from the package by writing the following:
10
+
11
+ ```scss
12
+ @use '@carbon/motion';
13
+
14
+ .selector {
15
+ // Set `transition-timing-function` directly
16
+ @include motion.motion(standard, productive);
17
+
18
+ // Alternatively
19
+ transition: opacity motion.motion(standard, productive);
20
+
21
+ // Or use a duration
22
+ transition: opacity motion.$duration-fast-01;
23
+ }
24
+ ```
25
+
26
+ ## Exports
27
+
28
+ | Name | Type |
29
+ | :---------------------- | :------- |
30
+ | `$duration-fast-01` | Duration |
31
+ | `$duration-fast-02` | Duration |
32
+ | `$duration-moderate-01` | Duration |
33
+ | `$duration-moderate-02` | Duration |
34
+ | `$duration-slow-01` | Duration |
35
+ | `$duration-slow-02` | Duration |
36
+ | `$easings` | Duration |
37
+ | `@mixin motion` | Mixin |
38
+ | `@function motion` | Mixin |
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/motion",
3
3
  "description": "Motion helpers for digital and software products using the Carbon Design System",
4
- "version": "10.26.0",
4
+ "version": "10.28.0",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -29,7 +29,7 @@
29
29
  "clean": "rimraf es lib umd"
30
30
  },
31
31
  "devDependencies": {
32
- "@carbon/cli": "^10.31.0",
32
+ "@carbon/cli": "^10.33.0",
33
33
  "rimraf": "^3.0.0"
34
34
  },
35
35
  "eyeglass": {
@@ -38,5 +38,5 @@
38
38
  "sassDir": "scss",
39
39
  "needs": "^1.3.0"
40
40
  },
41
- "gitHead": "f6352a1010117000ce4ca9f71315b67b1ec8e396"
41
+ "gitHead": "6a49764a3df2cc3e3b8fce6575f4853d1400e183"
42
42
  }
package/umd/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
3
  typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CarbonMotion = {}));
5
- }(this, (function (exports) { 'use strict';
5
+ })(this, (function (exports) { 'use strict';
6
6
 
7
7
  /**
8
8
  * Copyright IBM Corp. 2018, 2018
@@ -57,4 +57,4 @@
57
57
 
58
58
  Object.defineProperty(exports, '__esModule', { value: true });
59
59
 
60
- })));
60
+ }));