Skip to content
This repository was archived by the owner on Jun 20, 2022. It is now read-only.

Commit f6e6059

Browse files
committed
feat: complete rewrite with reakit & xstyled
BREAKING CHANGE: all API have changed, take it as a new library
1 parent 4264d7f commit f6e6059

File tree

223 files changed

+20042
-19743
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

223 files changed

+20042
-19743
lines changed

β€Ž.gitignoreβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
node_modules/
22
dist/
33
.docz/
4-
.vscode/
4+
.vscode/
5+
.size-snapshot.json

β€Ž_redirectsβ€Ž

Lines changed: 0 additions & 1 deletion
This file was deleted.

β€Žbabel.config.jsβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ module.exports = api => {
2828
{
2929
replacements: [
3030
{
31-
original: '(.*)styled-engine$',
32-
replacement: `$1styled-engine/${STYLED_ENGINE}`,
31+
original: '(.*)xstyled/x$',
32+
replacement: `$1xstyled/${STYLED_ENGINE}`,
3333
},
3434
],
3535
},

β€Žbenchmarks/system.jsβ€Ž

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

β€Žconfig/rollup.jsβ€Ž

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ export const getRollupConfig = ({ pwd, buildName, name }) => {
2222
})
2323

2424
const globals = {
25-
classnames: 'classNames',
2625
polished: 'polished',
27-
'popper.js': 'Popper',
2826
'prop-types': 'PropTypes',
27+
'prop-desc': 'PropDesc',
2928
'emotion-theming': 'emotionTheming',
3029
'@emotion/core': 'emotion',
3130
'@emotion/styled': 'styled',
31+
'@xstyled/styled-components': 'xstyled',
32+
'@xstyled/emotion': 'xstyled',
3233
react: 'React',
3334
'react-dom': 'ReactDom',
3435
'styled-components': 'styled',
@@ -73,14 +74,22 @@ export const getRollupConfig = ({ pwd, buildName, name }) => {
7374
input,
7475
output: { file: `${DIST_DIR}/${buildName}.cjs.js`, format: 'cjs' },
7576
external,
76-
plugins: [babel(getBabelOptions({ useESModules: false })), sizeSnapshot()],
77+
plugins: [
78+
nodeResolve(),
79+
babel(getBabelOptions({ useESModules: false })),
80+
sizeSnapshot(),
81+
],
7782
}
7883

7984
const esmConfig = {
8085
input,
8186
output: { file: `${DIST_DIR}/${buildName}.es.js`, format: 'esm' },
8287
external,
83-
plugins: [babel(getBabelOptions({ useESModules: true })), sizeSnapshot()],
88+
plugins: [
89+
nodeResolve(),
90+
babel(getBabelOptions({ useESModules: true })),
91+
sizeSnapshot(),
92+
],
8493
}
8594

8695
if (process.env.WATCH_MODE) {

β€Ždocs/GettingStarted.mdxβ€Ž

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

β€Ždocs/Home.mdxβ€Ž

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

β€Ždocs/advanced/AddVariant.mdxβ€Ž

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

β€Ždocs/advanced/CustomComponent.mdxβ€Ž

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

β€Ždocs/advanced/ExtendStyles.mdxβ€Ž

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

0 commit comments

Comments
Β (0)