@symbo.ls/scratch 0.3.31 → 0.3.34

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 CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@symbo.ls/scratch",
3
3
  "description": "Φ / CSS framework and methodology.",
4
4
  "author": "symbo.ls",
5
- "version": "0.3.31",
5
+ "version": "0.3.34",
6
6
  "files": [
7
7
  "src"
8
8
  ],
@@ -2,7 +2,7 @@
2
2
 
3
3
  export const MEDIA = {
4
4
  screenL: '(max-width: 1920px)',
5
- screenD: '(max-width: 1680px)',
5
+ screenM: '(max-width: 1680px)',
6
6
  screenS: '(max-width: 1440px)',
7
7
  tabletL: '(max-width: 1366px)',
8
8
  tabletM: '(max-width: 1280px)',
@@ -10,6 +10,18 @@ export const MEDIA = {
10
10
  mobileL: '(max-width: 768px)',
11
11
  mobileM: '(max-width: 560px)',
12
12
  mobileS: '(max-width: 480px)',
13
+ mobileXS: '(max-width: 375px)',
14
+
15
+ sL: '(max-width: 1920px)',
16
+ sM: '(max-width: 1680px)',
17
+ sS: '(max-width: 1440px)',
18
+ tL: '(max-width: 1366px)',
19
+ tM: '(max-width: 1280px)',
20
+ tS: '(max-width: 1024px)',
21
+ mL: '(max-width: 768px)',
22
+ mM: '(max-width: 560px)',
23
+ mS: '(max-width: 480px)',
24
+ mXS: '(max-width: 375px)',
13
25
 
14
26
  light: '(prefers-color-scheme: light)',
15
27
  dark: '(prefers-color-scheme: dark)'
@@ -6,8 +6,8 @@ import { fallBack, generateSequence } from '../utils'
6
6
  const defaultProps = {
7
7
  default: 150,
8
8
  base: 150,
9
- type: 'timing',
10
- ratio: SEQUENCE['minor-third'],
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: 'timing',
22
+ prop: 'duration',
23
23
  val,
24
24
  unit: 'ms',
25
25
  prefix: '--duration-'
@@ -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 + value.unit })
107
+ return ({ [prop]: isNegative + value.val + unit })
108
108
  }
109
109
  return ({
110
110
  [prop]: isNegative + value.val + value.unit,