smbls 0.8.28 → 0.8.31

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
@@ -3,7 +3,7 @@
3
3
  "description": "UI Library built on Scratch and DOMQL",
4
4
  "private": false,
5
5
  "author": "symbo.ls",
6
- "version": "0.8.28",
6
+ "version": "0.8.31",
7
7
  "repository": "https://github.com/symbo-ls/smbls",
8
8
  "main": "src/index.js",
9
9
  "files": [
@@ -27,9 +27,11 @@ export const mapBasedOnRatio = (props, prop, unit) => {
27
27
  }
28
28
 
29
29
  export const Block = {
30
- props: {},
31
-
32
30
  class: {
31
+ boxSizing: ({ props }) => props.boxSizing ? ({ display: props.boxSizing }) : {
32
+ boxSizing: 'border-box'
33
+ },
34
+
33
35
  display: ({ props }) => props.display && ({ display: props.display }),
34
36
 
35
37
  hide: ({ props }) => props.hide && ({ display: 'none' }),
@@ -38,10 +40,10 @@ export const Block = {
38
40
  height: ({ props }) => props.height && mapBasedOnRatio(props, 'height'),
39
41
  boxSize: ({ props }) => {
40
42
  if (typeof props.boxSize !== 'string') return
41
- const [width, height] = props.boxSize.split(' ')
43
+ const [height, width] = props.boxSize.split(' ')
42
44
  return {
43
- ...mapSpacing(width, 'width'),
44
- ...mapSpacing(height, 'height')
45
+ ...mapSpacing(height, 'height'),
46
+ ...mapSpacing(width, 'width')
45
47
  }
46
48
  },
47
49
 
package/src/Box.js ADDED
@@ -0,0 +1,13 @@
1
+ 'use strict'
2
+
3
+ import { Shape, Position, Theme, Block, Text, Overflow, Transition, Transform, Responsive } from '.'
4
+
5
+ const PropsCSS = {
6
+ class: {
7
+ propsCSS: ({ props }) => props && props.css
8
+ }
9
+ }
10
+
11
+ export const Box = {
12
+ proto: [Shape, Position, Theme, Block, Text, Overflow, Transition, Transform, Responsive, PropsCSS]
13
+ }
@@ -1,6 +1,6 @@
1
1
  'use strict'
2
2
 
3
- import { IconText } from '../'
3
+ import { IconText } from '.'
4
4
 
5
5
  const css = {
6
6
  appearance: 'none',
@@ -0,0 +1,10 @@
1
+ 'use strict'
2
+
3
+ import { SquareButton } from './Button'
4
+ import { Flex } from './Flex'
5
+
6
+ export const ButtonSet = {
7
+ tag: 'nav',
8
+ proto: Flex,
9
+ childProto: SquareButton
10
+ }
@@ -3,13 +3,10 @@
3
3
  import style from './style'
4
4
 
5
5
  import Icon from '../Icon'
6
- import Shape from '../Shape'
7
- import { Block } from '../Block'
8
6
 
9
7
  export const DatePicker = {
10
8
  style,
11
9
 
12
- proto: [Shape, Block],
13
10
  props: {
14
11
  theme: 'lightDark',
15
12
  padding: 'A',
File without changes
@@ -1,12 +1,10 @@
1
1
  'use strict'
2
2
 
3
- import style from './style'
4
- import { mapBasedOnRatio } from '../Block'
3
+ import { mapBasedOnRatio } from './Block'
5
4
 
6
5
  export const Flex = {
7
- style,
8
-
9
6
  props: {
7
+ display: 'flex',
10
8
  flow: 'row'
11
9
  },
12
10
 
@@ -1,12 +1,9 @@
1
1
  'use strict'
2
2
 
3
- import style from './style'
4
- import { mapBasedOnRatio } from '../Block'
3
+ import { mapBasedOnRatio } from './Block'
5
4
 
6
5
  export const Grid = {
7
- style,
8
-
9
- props: {},
6
+ props: { display: 'grid' },
10
7
 
11
8
  class: {
12
9
  columns: ({ props }) => props.columns ? ({ gridTemplateColumns: props.columns }) : null,
File without changes
@@ -1,7 +1,7 @@
1
1
  'use strict'
2
- import { Block } from '../Block'
3
- import { Shape } from '../Shape'
4
- import { Text } from '../Text'
2
+ import { Block } from './Block'
3
+ import { Shape } from './Shape'
4
+ import { Text } from './Text'
5
5
 
6
6
  export const Label = {
7
7
  proto: [Shape, Block, Text],
@@ -1,7 +1,7 @@
1
1
  'use strict'
2
2
 
3
3
  import { exec } from '@domql/utils'
4
- import { Shape, Text } from '..'
4
+ import { Shape, Text } from '.'
5
5
 
6
6
  export const Link = {
7
7
  proto: [Shape, Text],
package/src/Media.js CHANGED
@@ -1,126 +1,122 @@
1
1
  'use strict'
2
2
 
3
- import { getTheme, CASES, MEDIA as BREAKPOINTS } from '@symbo.ls/scratch'
3
+ import { merge, isArray } from '@domql/utils'
4
+ import { CASES as CONFIG_CASES, MEDIA as CONFIG_MEDIA, getTheme } from '@symbo.ls/scratch'
5
+
6
+ const convertPropsToClass = (subProps, lib, element) => {
7
+ const { class: className } = element
8
+ const subPropsClassname = {}
9
+ for (const prop in subProps) {
10
+ // if (prop.slice(0, 1) === ':') {
11
+ // applySelectorProps(prop, lib, element)
12
+ // continue
13
+ // }
14
+
15
+ const classnameExec = className[prop]
16
+ if (typeof classnameExec !== 'function') continue
17
+
18
+ let classExec = classnameExec({ props: subProps })
19
+ if (isArray(classExec)) {
20
+ classExec = classExec.reduce((a, c) => merge(a, c), {})
21
+ }
4
22
 
5
- const init = (el, s) => {
6
- const { props, class: className } = el
23
+ for (const finalProp in classExec) {
24
+ subPropsClassname[finalProp] = classExec[finalProp]
25
+ }
26
+ }
27
+ return subPropsClassname
28
+ }
7
29
 
8
- for (const screen in props) {
9
- if (screen.slice(0, 1) === '@') {
10
- const mediaName = screen.slice(1)
11
- const responsiveKey = `@media screen and ${BREAKPOINTS[mediaName]}`
12
- const screenProps = props[screen]
13
- const calculatedScreenProps = {}
14
-
15
- for (const prop in screenProps) {
16
- // if (!className || !className[prop]) return
17
- // const classProp = className[prop]
18
- const classProp = className[prop]
19
- if (typeof classProp !== 'function') continue
20
- let calculatedProp = classProp({ props: screenProps })
21
-
22
- if (Array.isArray(calculatedProp)) {
23
- calculatedProp = Object.assign({}, ...calculatedProp)
24
- }
30
+ const applyMediaProps = (key, lib, element) => {
31
+ const { props } = element
32
+ const mediaName = CONFIG_MEDIA[key.slice(1)]
33
+ const mediaKey = `@media key and ${mediaName}`
34
+ const mediaProps = props[key]
35
+ lib.media[mediaKey] = convertPropsToClass(mediaProps, lib, element)
36
+ }
25
37
 
26
- for (const finalProp in calculatedProp) {
27
- calculatedScreenProps[finalProp] = calculatedProp[finalProp]
28
- }
29
- }
38
+ const applySelectorProps = (key, lib, element) => {
39
+ const { props } = element
40
+ const selectorKey = `&${key}`
41
+ const selectorProps = props[key]
42
+ lib.selector[selectorKey] = convertPropsToClass(selectorProps, lib, element)
43
+ }
30
44
 
31
- const { MEDIA } = className
32
- if (!MEDIA) className.MEDIA = {}
33
- className.MEDIA[responsiveKey] = calculatedScreenProps
34
- } else if (screen.slice(0, 1) === ':') {
35
- const selectorProps = {}
36
- // const selectorName = screen.slice(1)
37
- const underSelectorProps = props[screen]
38
- const selectorKey = `&${screen}`
39
-
40
- for (const prop in underSelectorProps) {
41
- const classProp = className[prop]
42
- if (typeof classProp !== 'function') continue
43
- let calculatedProp = classProp({ props: underSelectorProps })
44
-
45
- if (Array.isArray(calculatedProp)) {
46
- calculatedProp = Object.assign({}, ...calculatedProp)
47
- }
45
+ const applyCaseProps = (key, lib, element) => {
46
+ const { props } = element
47
+ const caseKey = key.slice(1)
48
+ if (!CONFIG_CASES[caseKey]) return
49
+ const caseProps = props[key]
50
+ merge(lib.case, convertPropsToClass(caseProps, lib, element))
51
+ }
48
52
 
49
- for (const finalProp in calculatedProp) {
50
- selectorProps[finalProp] = calculatedProp[finalProp]
51
- }
52
- }
53
+ const keySetters = {
54
+ '@': applyMediaProps,
55
+ ':': applySelectorProps,
56
+ $: applyCaseProps
57
+ }
53
58
 
54
- const { SELECTORS } = className
55
- if (SELECTORS) SELECTORS[selectorKey] = selectorProps
56
- else {
57
- className.SELECTORS = {
58
- [selectorKey]: selectorProps
59
- }
60
- }
61
- } else if (screen.slice(0, 1) === '$') {
62
- const caseKey = screen.slice(1)
63
- const caseProps = props[screen]
64
- const calculatedCaseProps = {}
65
-
66
- if (!CASES[caseKey]) return
67
-
68
- for (const prop in caseProps) {
69
- // if (!className || !className[prop]) return
70
- // const classProp = className[prop]
71
- const classProp = className[prop]
72
- if (typeof classProp !== 'function') continue
73
- let calculatedProp = classProp({ props: caseProps })
74
-
75
- if (Array.isArray(calculatedProp)) {
76
- calculatedProp = Object.assign({}, ...calculatedProp)
77
- }
59
+ const init = (el, s) => {
60
+ const { props, class: className } = el
78
61
 
79
- for (const finalProp in calculatedProp) {
80
- calculatedCaseProps[finalProp] = calculatedProp[finalProp]
81
- }
82
- }
62
+ const CLASS_NAMES = {
63
+ media: {},
64
+ selector: {},
65
+ case: {}
66
+ }
83
67
 
84
- const { CASE } = className
85
- if (!CASE) className.CASE = {}
86
- className.CASE[caseKey] = calculatedCaseProps
87
- // Object.assign(className.CASE[caseKey], calculatedCaseProps)
88
- // console.log(className.CASE)
89
- }
68
+ for (const key in props) {
69
+ const setter = keySetters[key.slice(0, 1)]
70
+ if (setter) setter(key, CLASS_NAMES, el)
71
+ // if (key.slice(0, 1) === '@') {
72
+ // applyMediaProps(key, CLASS_NAMES.media, el)
73
+ // } else if (key.slice(0, 1) === ':') {
74
+ // applySelectorProps(key, CLASS_NAMES.selector, el)
75
+ // } else if (key.slice(0, 1) === '$') {
76
+ // applyCaseProps(key, CLASS_NAMES.case, el)
77
+ // }
90
78
  }
79
+
80
+ merge(className, CLASS_NAMES)
91
81
  }
92
82
 
93
83
  export const Responsive = {
94
84
  on: {
95
85
  init,
96
86
  initUpdate: el => {
87
+ // FORCE STATE UPDATE:
97
88
  const { props, class: className } = el
98
89
  const rootState = el.__root ? el.__root.state : el.state
90
+ // console.log(props)
91
+ if (el.key !== 'app') return
99
92
 
100
93
  if (props.theme) {
101
- props.returnGeneratedTheme = getTheme(props.theme)
102
- const { returnGeneratedTheme } = props
94
+ const { theme } = props
95
+ // console.group(props.theme)
96
+
97
+ const convertTheme = getTheme(theme)
103
98
 
104
- for (const key in returnGeneratedTheme) {
99
+ for (const key in convertTheme) {
105
100
  if (key.includes('dark') || key.includes('light')) {
106
101
  const parse = key.split(': ')[1].split(')')[0]
107
102
  if (rootState.globalTheme === parse) {
108
- props.returnGeneratedTheme = getTheme(returnGeneratedTheme[key])
109
- } else props.returnGeneratedTheme = returnGeneratedTheme
110
- className.MEDIA_FORCED_BY_STATE = props.returnGeneratedTheme
103
+ props.theme = getTheme(theme[key])
104
+ } else props.theme = theme
105
+ className.MEDIA_FORCED_BY_STATE = props.theme
111
106
  }
112
107
  }
108
+ // console.groupEnd(props.theme)
113
109
  }
114
110
 
115
111
  for (const screen in props) {
116
112
  if (screen.slice(0, 1) === '@') {
117
113
  const mediaName = screen.slice(1)
118
- const responsiveKey = `@media screen and ${BREAKPOINTS[mediaName]}`
114
+ const mediaKey = `@media screen and ${CONFIG_MEDIA[mediaName]}`
119
115
  if (mediaName === 'dark' || mediaName === 'light') {
120
116
  const { MEDIA_FORCE } = className
121
117
  if (!MEDIA_FORCE) className.media = {}
122
118
  if (rootState.globalTheme === mediaName) {
123
- className.MEDIA_FORCED = className.MEDIA[responsiveKey]
119
+ className.MEDIA_FORCED = className.MEDIA[mediaKey]
124
120
  } else className.MEDIA_FORCED = {}
125
121
  }
126
122
  }
@@ -1,6 +1,6 @@
1
1
  'use strict'
2
2
 
3
- import { Shape, Block, IconText, Direction, Flex, Text } from '../'
3
+ import { Shape, Block, IconText, Direction, Flex, Text } from '.'
4
4
 
5
5
  export const Notification = {
6
6
  style: { cursor: 'pointer' },
@@ -2,6 +2,6 @@
2
2
 
3
3
  export const Overflow = {
4
4
  class: {
5
- overflow: ({ props }) => props.overflow && ({ overflow: props.overflow }),
5
+ overflow: ({ props }) => props.overflow && ({ overflow: props.overflow })
6
6
  }
7
7
  }
@@ -1,5 +1,4 @@
1
1
  'use strict'
2
- import Shape from '../Shape'
3
2
 
4
3
  export const Pills = {
5
4
  style: {
@@ -18,13 +17,10 @@ export const Pills = {
18
17
  },
19
18
  childProto: {
20
19
  tag: 'div',
21
- proto: Shape,
22
20
  props: {
23
21
  round: 42,
24
22
  theme: 'White'
25
23
  }
26
24
  },
27
- ...[
28
- {}, {}, {}
29
- ]
25
+ ...[{}, {}, {}]
30
26
  }
File without changes
File without changes
@@ -1,35 +1,10 @@
1
1
  'use strict'
2
2
 
3
- import { isArray, isObject, exec } from '@domql/utils'
4
- import { mapSpacing, getTheme, getColor } from '@symbo.ls/scratch'
5
-
6
- import style, { SHAPES, depth } from './style'
7
-
8
- const isBorderStyle = str =>
9
- ['none', 'hidden', 'dotted', 'dashed', 'solid', 'double', 'groove', 'ridge', 'inset', 'outset', 'initial'].some(v => str.includes(v))
10
-
11
- const diffBorder = (border, key = 'border') => {
12
- const obj = {}
13
- const arr = isObject(border) ? Object.values(border) : isArray(border) ? border : border.split(', ')
14
- arr.map(v => {
15
- if (v.includes('px')) obj[`${key}Width`] = v
16
- else if (isBorderStyle(v)) obj[`${key}Style`] = v || 'solid'
17
- else if (getColor(v)) obj[`${key}Color`] = getColor(v)
18
- })
19
- return obj
20
- }
21
-
22
- const diffStroke = stroke => {
23
- const WebkitTextStroke = stroke.split(', ').map(v => {
24
- if (v.includes('px')) return v
25
- else if (getColor(v)) return getColor(v)
26
- }).join(' ')
27
- return { WebkitTextStroke }
28
- }
3
+ import { exec } from '@domql/utils'
4
+ import { SHAPES } from './style'
29
5
 
30
6
  export const Shape = {
31
7
  class: {
32
- default: style,
33
8
  shape: (element) => {
34
9
  const { props } = element
35
10
  const { shape } = props
@@ -41,55 +16,8 @@ export const Shape = {
41
16
  const shapeDir = SHAPES[shape + 'Direction']
42
17
  return shape ? shapeDir[shapeDirection || 'top'] : null
43
18
  },
44
- shapeDirectionColor: ({ props, ...el }) => props.shapeDirection ? { '&:before': { borderColor: el.class.backgroundColor } } : null,
45
- depth: ({ props }) => depth[props.depth],
46
- round: ({ props, key, ...el }) => props.round ? (mapSpacing(props.round, 'borderRadius') || ({ borderRadius: props.round })) : null,
47
- borderRadius: ({ props, key, ...el }) => props.borderRadius ? (mapSpacing(props.borderRadius, 'borderRadius') || ({ borderRadius: props.borderRadius })) : null,
48
-
49
- theme: ({ props }) => {
50
- if (!props.theme) return
51
- return props.returnGeneratedTheme || getTheme(props.theme)
52
- },
53
-
54
- color: ({ props }) => props.color ? ({ color: getColor(props.color) }) : null,
55
- background: ({ props }) => props.background ? ({ backgroundColor: getColor(props.background) }) : null,
56
- // border: ({ props }) => props.border ? ({ borderColor: getColor(props.border) }) : null,
57
-
58
- textStroke: ({ props }) => props.textStroke ? diffStroke(props.textStroke) : null,
59
-
60
- border: ({ props }) => props.border ? diffBorder(props.border) : null,
61
- borderColor: ({ props }) => props.borderColor ? ({ borderColor: getColor(props.borderColor) }) : null,
62
- borderStyle: ({ props }) => props.borderStyle && ({ borderStyle: props.borderStyle }),
63
-
64
- borderLeft: ({ props }) => props.borderLeft ? diffBorder(props.borderLeft, 'borderLeft') : null,
65
- borderTop: ({ props }) => props.borderTop ? diffBorder(props.borderTop, 'borderTop') : null,
66
- borderRight: ({ props }) => props.borderRight ? diffBorder(props.borderRight, 'borderRight') : null,
67
- borderBottom: ({ props }) => props.borderBottom ? diffBorder(props.borderBottom, 'borderBottom') : null,
68
-
69
- opacity: ({ props }) => props.opacity && ({ opacity: props.opacity }),
70
- visibility: ({ props }) => props.visibility && ({ visibility: props.visibility })
19
+ shapeDirectionColor: ({ props, ...el }) => props.shapeDirection ? { '&:before': { borderColor: el.class.backgroundColor } } : null
71
20
  }
72
-
73
- // mode: {
74
- // dark: {
75
- // theme: 'white'
76
- // }
77
- // }
78
-
79
- // theme: {
80
- // default: 'primary',
81
- // dark: 'whiteish'
82
- // }
83
-
84
- // size: {
85
- // default: 'auto',
86
- // mobile: 'fit'
87
- // }
88
-
89
- // padding: {
90
- // default: ratio.phi,
91
- // mobile: ratio.perfect
92
- // }
93
21
  }
94
22
 
95
23
  export default Shape
@@ -1,10 +1,6 @@
1
1
  'use strict'
2
2
 
3
- import { UNIT, getColor } from '@symbo.ls/scratch'
4
-
5
- export default {
6
- boxSizing: 'border-box'
7
- }
3
+ import { UNIT, getColor, getTheme } from '@symbo.ls/scratch'
8
4
 
9
5
  export const depth = {
10
6
  4: { boxShadow: `rgba(0,0,0,.10) 0 2${UNIT.default} 4${UNIT.default}` },
@@ -27,7 +23,7 @@ export const SHAPES = {
27
23
  display: 'block',
28
24
  width: '0px',
29
25
  height: '0px',
30
- border: `6px solid ${getColor(props.background)}`,
26
+ border: `6px solid ${getColor(props.background) || (props.theme && getTheme(props.theme).backgroundColor)}`,
31
27
  position: 'absolute',
32
28
  borderRadius: '2px'
33
29
  }
@@ -71,10 +67,10 @@ export const SHAPES = {
71
67
  display: 'block',
72
68
  width: '0',
73
69
  height: '0',
74
- border: `16px solid ${getColor(props.background)}`,
70
+ border: `16px solid ${getColor(props.background) || (props.theme && getTheme(props.theme).backgroundColor)}`,
75
71
  borderRadius: '6px',
76
72
  position: 'absolute'
77
- },
73
+ }
78
74
  }),
79
75
 
80
76
  tagDirection: {
@@ -1,5 +1,6 @@
1
1
  'use strict'
2
- import { Icon, Link } from '../'
2
+
3
+ import { Icon, Link } from '.'
3
4
 
4
5
  const MenuItem = {
5
6
  proto: Link,
File without changes
package/src/Theme.js ADDED
@@ -0,0 +1,58 @@
1
+ 'use strict'
2
+
3
+ import { isArray, isObject } from '@domql/utils'
4
+ import { mapSpacing, getTheme, getColor } from '@symbo.ls/scratch'
5
+
6
+ import { depth } from './Shape/style'
7
+
8
+ const isBorderStyle = str =>
9
+ ['none', 'hidden', 'dotted', 'dashed', 'solid', 'double', 'groove', 'ridge', 'inset', 'outset', 'initial'].some(v => str.includes(v))
10
+
11
+ const diffBorder = (border, key = 'border') => {
12
+ const obj = {}
13
+ const arr = isObject(border) ? Object.values(border) : isArray(border) ? border : border.split(', ')
14
+ arr.map(v => {
15
+ if (v.includes('px')) obj[`${key}Width`] = v // TODO: add map spacing
16
+ else if (isBorderStyle(v)) obj[`${key}Style`] = v || 'solid'
17
+ else if (getColor(v)) obj[`${key}Color`] = getColor(v)
18
+ })
19
+ return obj
20
+ }
21
+
22
+ const diffStroke = stroke => {
23
+ const WebkitTextStroke = stroke.split(', ').map(v => {
24
+ if (v.includes('px')) return v
25
+ else if (getColor(v)) return getColor(v)
26
+ }).join(' ')
27
+ return { WebkitTextStroke }
28
+ }
29
+
30
+ export const Theme = {
31
+ class: {
32
+ depth: ({ props }) => depth[props.depth],
33
+ round: ({ props, key, ...el }) => props.round ? (mapSpacing(props.round, 'borderRadius') || ({ borderRadius: props.round })) : null,
34
+ borderRadius: ({ props, key, ...el }) => props.borderRadius ? (mapSpacing(props.borderRadius, 'borderRadius') || ({ borderRadius: props.borderRadius })) : null,
35
+
36
+ theme: ({ props }) => {
37
+ if (!props.theme) return
38
+ return getTheme(props.theme)
39
+ },
40
+
41
+ color: ({ props }) => props.color ? ({ color: getColor(props.color) }) : null,
42
+ background: ({ props }) => props.background ? ({ backgroundColor: getColor(props.background) }) : null,
43
+
44
+ textStroke: ({ props }) => props.textStroke ? diffStroke(props.textStroke) : null,
45
+
46
+ border: ({ props }) => props.border ? diffBorder(props.border) : null,
47
+ borderColor: ({ props }) => props.borderColor ? ({ borderColor: getColor(props.borderColor) }) : null,
48
+ borderStyle: ({ props }) => props.borderStyle && ({ borderStyle: props.borderStyle }),
49
+
50
+ borderLeft: ({ props }) => props.borderLeft ? diffBorder(props.borderLeft, 'borderLeft') : null,
51
+ borderTop: ({ props }) => props.borderTop ? diffBorder(props.borderTop, 'borderTop') : null,
52
+ borderRight: ({ props }) => props.borderRight ? diffBorder(props.borderRight, 'borderRight') : null,
53
+ borderBottom: ({ props }) => props.borderBottom ? diffBorder(props.borderBottom, 'borderBottom') : null,
54
+
55
+ opacity: ({ props }) => props.opacity && ({ opacity: props.opacity }),
56
+ visibility: ({ props }) => props.visibility && ({ visibility: props.visibility })
57
+ }
58
+ }
@@ -4,6 +4,6 @@ export const Transform = {
4
4
  class: {
5
5
  transform: ({ props }) => props.transform && ({
6
6
  transform: props.transform
7
- }),
7
+ })
8
8
  }
9
9
  }
File without changes
package/src/index.js CHANGED
@@ -7,6 +7,7 @@ export * from './styles'
7
7
  export * from './Text'
8
8
  export * from './Block'
9
9
  export * from './Shape'
10
+ export * from './Theme'
10
11
  export * from './Flex'
11
12
  export * from './Grid'
12
13
  export * from './Direction'
@@ -1 +0,0 @@
1
- 'use strict'
package/src/Box/index.js DELETED
@@ -1,13 +0,0 @@
1
- 'use strict'
2
-
3
- import { Shape, Position, Block, Text, Overflow, Transition, Transform, Responsive } from '..'
4
-
5
- const PropsCSS = {
6
- class: {
7
- propsCSS: ({ props }) => props && props.css
8
- }
9
- }
10
-
11
- export const Box = {
12
- proto: [Shape, Position, Block, Text, Overflow, Transition, Transform, Responsive, PropsCSS]
13
- }
@@ -1,4 +0,0 @@
1
- 'use strict'
2
-
3
- export default {
4
- }
@@ -1,14 +0,0 @@
1
- 'use strict'
2
-
3
- import { SquareButton } from '../Button'
4
- import { Shape } from '../Shape'
5
- import { Flex } from '../Flex'
6
- import { Block } from '../Block'
7
-
8
- export const ButtonSet = {
9
- tag: 'nav',
10
- proto: [Shape, Flex, Block],
11
- childProto: {
12
- proto: [SquareButton]
13
- }
14
- }
package/src/Flex/style.js DELETED
@@ -1,5 +0,0 @@
1
- 'use strict'
2
-
3
- export default {
4
- display: 'flex'
5
- }
package/src/Grid/style.js DELETED
@@ -1,5 +0,0 @@
1
- 'use strict'
2
-
3
- export default {
4
- display: 'grid'
5
- }
package/src/Text/style.js DELETED
@@ -1,2 +0,0 @@
1
- 'use strict'
2
-
@@ -1,2 +0,0 @@
1
- 'use strict'
2
-