@momentum-design/tokens 0.10.2 → 0.10.3
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.
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@keyframes mds-animation-button-loading-spin {
|
|
7
|
+
from { transform: rotate(0deg); }
|
|
8
|
+
to { transform: rotate(360deg); }
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@keyframes mds-animation-button-loading-pulse {
|
|
12
|
+
from { opacity: 1; }
|
|
13
|
+
to { opacity: 0.4; }
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.mds-motion {
|
|
17
|
+
--mds-transition-button-background: background-color var(--mds-motion-duration-instant) var(--mds-motion-easing-standard) var(--mds-motion-delay-none);
|
|
18
|
+
--mds-transition-button-border: border-color var(--mds-motion-duration-instant) var(--mds-motion-easing-standard) var(--mds-motion-delay-none), box-shadow var(--mds-motion-duration-instant) var(--mds-motion-easing-standard) var(--mds-motion-delay-none);
|
|
19
|
+
--mds-transition-button-icon: color var(--mds-motion-duration-fast) var(--mds-motion-easing-standard) var(--mds-motion-delay-none), transform var(--mds-motion-duration-fast) var(--mds-motion-easing-standard) var(--mds-motion-delay-none);
|
|
20
|
+
--mds-transition-button-focus-ring: box-shadow var(--mds-motion-duration-instant) var(--mds-motion-easing-standard) var(--mds-motion-delay-none), outline var(--mds-motion-duration-instant) var(--mds-motion-easing-standard) var(--mds-motion-delay-none);
|
|
21
|
+
--mds-transition-button-press: background-color var(--mds-motion-duration-instant) var(--mds-motion-easing-standard) var(--mds-motion-delay-none), color var(--mds-motion-duration-fast) var(--mds-motion-easing-standard) var(--mds-motion-delay-none), transform var(--mds-motion-duration-fast) var(--mds-motion-easing-standard) var(--mds-motion-delay-none);
|
|
22
|
+
--mds-transition-button-hover: background-color var(--mds-motion-duration-instant) var(--mds-motion-easing-standard) var(--mds-motion-delay-none), border-color var(--mds-motion-duration-instant) var(--mds-motion-easing-standard) var(--mds-motion-delay-none), box-shadow var(--mds-motion-duration-instant) var(--mds-motion-easing-standard) var(--mds-motion-delay-none);
|
|
23
|
+
--mds-animation-button-loading-spin: var(--mds-motion-duration-slow) var(--mds-motion-easing-linear) var(--mds-motion-delay-none) infinite mds-animation-button-loading-spin;
|
|
24
|
+
--mds-animation-button-loading-pulse: var(--mds-motion-duration-slow) var(--mds-motion-easing-standard) var(--mds-motion-delay-none) infinite mds-animation-button-loading-pulse;
|
|
25
|
+
--mds-animation-button-loading-spin-pulse: var(--mds-motion-duration-slow) var(--mds-motion-easing-linear) var(--mds-motion-delay-none) infinite mds-animation-button-loading-spin, var(--mds-motion-duration-slow) var(--mds-motion-easing-standard) var(--mds-motion-delay-none) infinite mds-animation-button-loading-pulse;
|
|
26
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@momentum-design/tokens",
|
|
3
3
|
"packageManager": "yarn@3.2.4",
|
|
4
|
-
"version": "0.10.
|
|
4
|
+
"version": "0.10.3",
|
|
5
5
|
"files": [
|
|
6
6
|
"./dist/"
|
|
7
7
|
],
|
|
@@ -9,11 +9,12 @@
|
|
|
9
9
|
"analyze": "yarn analyze:prebuild && yarn analyze:postbuild",
|
|
10
10
|
"analyze:postbuild": "echo \"script 'analyze:postbuild' has not been implemented\"",
|
|
11
11
|
"analyze:prebuild": "echo \"script 'analyze:prebuild' has not been implemented\"",
|
|
12
|
-
"build": "yarn build:core && yarn build:additionalthemes && yarn build:typography && yarn build:elevation && yarn build:motion && yarn build:components",
|
|
12
|
+
"build": "yarn build:core && yarn build:additionalthemes && yarn build:typography && yarn build:elevation && yarn build:motion && yarn build:animation && yarn build:components",
|
|
13
13
|
"build:core": "md-token-builder --config ./config/tokens/core.json --input ./src --output ./dist",
|
|
14
14
|
"build:typography": "md-token-builder --config ./config/tokens/typography.json --input ./src --output ./dist",
|
|
15
15
|
"build:elevation": "md-token-builder --config ./config/tokens/elevation.json --input ./src --output ./dist",
|
|
16
16
|
"build:motion": "md-token-builder --config ./config/tokens/motion.json --input ./src --output ./dist",
|
|
17
|
+
"build:animation": "node ./scripts/build-animation-motion-css.js",
|
|
17
18
|
"build:additionalthemes": "md-token-builder --config ./config/tokens/additional-themes.json --input ./src --output ./dist",
|
|
18
19
|
"build:components": "node ./scripts/build-components-css.js",
|
|
19
20
|
"clean": "yarn clean:dist",
|
|
@@ -32,6 +33,7 @@
|
|
|
32
33
|
"@momentum-design/token-builder": "^0.0.0",
|
|
33
34
|
"@types/jest": "^29.5.12",
|
|
34
35
|
"jest": "^29.7.0",
|
|
36
|
+
"lodash": "^4.17.21",
|
|
35
37
|
"rimraf": "^6.0.1",
|
|
36
38
|
"ts-jest": "^29.2.4"
|
|
37
39
|
}
|