Skip to content

Commit cc08d0f

Browse files
committed
feat: publish xstyled utilities as a separated package
1 parent 814c745 commit cc08d0f

25 files changed

+103
-61
lines changed

packages/core/src/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
export * from './createBox'
22
export * from './propGetters'
33
export * from './transform'
4-
export * from './util'

packages/core/src/util.js

Lines changed: 0 additions & 38 deletions
This file was deleted.

packages/emotion/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
},
2929
"dependencies": {
3030
"@babel/runtime": "^7.4.4",
31-
"@xstyled/core": "^1.9.1"
31+
"@xstyled/core": "^1.9.1",
32+
"@xstyled/util": "^1.9.1"
3233
}
3334
}

packages/emotion/src/cx.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { cascade, flatten } from '@xstyled/core'
1+
import { cascade, flatten } from '@xstyled/util'
22
import { css } from './css'
33

44
export function cx(styles) {

packages/styled-components/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
},
2727
"dependencies": {
2828
"@babel/runtime": "^7.4.4",
29-
"@xstyled/core": "^1.9.1"
29+
"@xstyled/core": "^1.9.1",
30+
"@xstyled/util": "^1.9.1"
3031
}
3132
}

packages/styled-components/src/css.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* eslint-disable no-continue, no-loop-func, no-cond-assign */
22
import { css as scCss } from 'styled-components'
3-
import { transform, flattenStrings } from '@xstyled/core'
3+
import { flattenStrings } from '@xstyled/util'
4+
import { transform } from '@xstyled/core'
45

56
export function css(...rawArgs) {
67
const scCssArgs = scCss(...rawArgs)

packages/system/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"access": "public"
2424
},
2525
"dependencies": {
26-
"@babel/runtime": "^7.4.4"
26+
"@babel/runtime": "^7.4.4",
27+
"@xstyled/util": "^1.9.1"
2728
}
2829
}

packages/system/src/media.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { is, getThemeValue } from './util'
1+
import { is, getThemeValue } from '@xstyled/util'
22
import { px } from './unit'
33

44
const DEFAULT_BREAKPOINTS = {

packages/system/src/style.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/* eslint-disable no-continue, no-underscore-dangle, no-restricted-syntax, guard-for-in, no-multi-assign */
2-
import { getBreakpoints, getBreakpointMin, mediaMinWidth } from './media'
32
import {
43
is,
54
num,
@@ -10,7 +9,8 @@ import {
109
identity,
1110
merge,
1211
assign,
13-
} from './util'
12+
} from '@xstyled/util'
13+
import { getBreakpoints, getBreakpointMin, mediaMinWidth } from './media'
1414

1515
const cacheSupported =
1616
typeof Map !== 'undefined' && typeof WeakMap !== 'undefined'

packages/system/src/styles/borders.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { num } from '@xstyled/util'
12
import { style, themeGetter, compose } from '../style'
2-
import { num } from '../util'
33
import { px } from '../unit'
44
import { getColor, getRadius, getPx } from './basics'
55

0 commit comments

Comments
 (0)