@symbo.ls/atoms 2.10.257 → 2.10.258

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 (2) hide show
  1. package/Timing.js +5 -29
  2. package/package.json +2 -2
package/Timing.js CHANGED
@@ -1,34 +1,10 @@
1
1
  'use strict'
2
2
 
3
- import { isString } from '@domql/utils'
4
- import { getTimingByKey, getTimingFunction } from '@symbo.ls/scratch'
5
-
6
- export const transformTransition = transition => {
7
- const arr = transition.split(' ')
8
-
9
- if (!arr.length) return transition
10
-
11
- return arr.map(v => {
12
- if (v.slice(0, 2) === '--') return `var(${v})`
13
- if (v.length < 3 || v.includes('ms')) {
14
- const mapWithSequence = getTimingByKey(v)
15
- return mapWithSequence.timing || v
16
- }
17
- if (getTimingFunction(v)) return getTimingFunction(v)
18
- return v
19
- }).join(' ')
20
- }
21
-
22
- export const transformDuration = (duration, props, propertyName) => {
23
- if (!isString(duration)) return
24
- return duration.split(',').map(v => getTimingByKey(v).timing || v).join(',')
25
- }
26
-
27
- export const splitTransition = transition => {
28
- const arr = transition.split(',')
29
- if (!arr.length) return
30
- return arr.map(transformTransition).join(',')
31
- }
3
+ import {
4
+ getTimingFunction,
5
+ splitTransition,
6
+ transformDuration
7
+ } from '@symbo.ls/scratch'
32
8
 
33
9
  export const Timing = {
34
10
  class: {
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/atoms",
3
- "version": "2.10.257",
3
+ "version": "2.10.258",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "3c16c123fa0b6cf00a16e2178bbbfd1049d4c0cc",
6
+ "gitHead": "988320990c3bd3a293df5c9dce5419ef4551d29e",
7
7
  "dependencies": {
8
8
  "@domql/utils": "latest",
9
9
  "@symbo.ls/create-emotion": "latest",