@symbo.ls/scratch 0.3.32 → 0.3.35
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/package.json +1 -1
- package/src/config/media.js +2 -2
- package/src/config/timing.js +3 -3
- package/src/utils/sequence.js +1 -1
package/package.json
CHANGED
package/src/config/media.js
CHANGED
|
@@ -11,7 +11,7 @@ export const MEDIA = {
|
|
|
11
11
|
mobileM: '(max-width: 560px)',
|
|
12
12
|
mobileS: '(max-width: 480px)',
|
|
13
13
|
mobileXS: '(max-width: 375px)',
|
|
14
|
-
|
|
14
|
+
|
|
15
15
|
sL: '(max-width: 1920px)',
|
|
16
16
|
sM: '(max-width: 1680px)',
|
|
17
17
|
sS: '(max-width: 1440px)',
|
|
@@ -21,7 +21,7 @@ export const MEDIA = {
|
|
|
21
21
|
mL: '(max-width: 768px)',
|
|
22
22
|
mM: '(max-width: 560px)',
|
|
23
23
|
mS: '(max-width: 480px)',
|
|
24
|
-
|
|
24
|
+
mXS: '(max-width: 375px)',
|
|
25
25
|
|
|
26
26
|
light: '(prefers-color-scheme: light)',
|
|
27
27
|
dark: '(prefers-color-scheme: dark)'
|
package/src/config/timing.js
CHANGED
|
@@ -6,8 +6,8 @@ import { fallBack, generateSequence } from '../utils'
|
|
|
6
6
|
const defaultProps = {
|
|
7
7
|
default: 150,
|
|
8
8
|
base: 150,
|
|
9
|
-
type: '
|
|
10
|
-
ratio: SEQUENCE['
|
|
9
|
+
type: 'duration',
|
|
10
|
+
ratio: SEQUENCE['perfect-fourth'],
|
|
11
11
|
range: [-3, +12],
|
|
12
12
|
sequence: {},
|
|
13
13
|
scales: {}
|
|
@@ -19,7 +19,7 @@ export const applyTimingSequence = () => {
|
|
|
19
19
|
|
|
20
20
|
export const mapTiming = val => fallBack({
|
|
21
21
|
type: defaultProps.sequence,
|
|
22
|
-
prop: '
|
|
22
|
+
prop: 'duration',
|
|
23
23
|
val,
|
|
24
24
|
unit: 'ms',
|
|
25
25
|
prefix: '--duration-'
|
package/src/utils/sequence.js
CHANGED
|
@@ -104,7 +104,7 @@ export const fallBack = ({ type, prop, val = 'A', prefix = '--font-size-', unit
|
|
|
104
104
|
if (!value) return console.warn('can\'t find', type, prefix + simplyLetterVal, simplyLetterVal)
|
|
105
105
|
|
|
106
106
|
if (unit === 'ms' || unit === 's') {
|
|
107
|
-
return ({ [prop]: isNegative + value.val +
|
|
107
|
+
return ({ [prop]: isNegative + value.val + unit })
|
|
108
108
|
}
|
|
109
109
|
return ({
|
|
110
110
|
[prop]: isNegative + value.val + value.unit,
|