forked from pmndrs/leva
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove deprecated jsxBracketSameLine (pmndrs#273)
* Remove deprecated jsxBracketSameLine and run prettier (Fixes pmndrs#272) * Try bracketSameLine
Showing
32 changed files
with
117 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
'demo': patch | ||
'leva': patch | ||
'@leva-ui/plugin-bezier': patch | ||
'@leva-ui/plugin-plot': patch | ||
'@leva-ui/plugin-spring': patch | ||
--- | ||
|
||
Removed deprecated prettier config: jsxBracketSameLine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.changeset/ | ||
.codesandbox/ | ||
.github/ | ||
.husky/ | ||
.storybook/ | ||
.vscode/ | ||
.yarn/ | ||
dist/ | ||
node_modules/ | ||
patches/ | ||
storybook-static/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
|
||
{ | ||
"baseUrl": "http://localhost:5000", | ||
"defaultCommandTimeout": 10000, | ||
"video": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
"name": "Using fixtures to represent data", | ||
"email": "[email protected]", | ||
"body": "Fixtures are a great way to mock data for responses to routes" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
import '@testing-library/cypress/add-commands'; | ||
import '@testing-library/cypress/add-commands' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
{ | ||
"rewrites": [ | ||
{ "source": "/*", "destination": "/index.html" } | ||
] | ||
} | ||
"rewrites": [{ "source": "/*", "destination": "/index.html" }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Creating Plugins | ||
|
||
@TODO | ||
@TODO | ||
This page will contain info on how to create custom plugins, | ||
what even qualifies as a plugin, and an idea of what kinds of plugins could be included and maintained in this repo | ||
what even qualifies as a plugin, and an idea of what kinds of plugins could be included and maintained in this repo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
### Button | ||
|
||
### Monitor | ||
### Monitor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Customizing Style | ||
|
||
@todo | ||
@todo | ||
Talk about how to use themes to customize styles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,33 @@ | ||
import React from 'react'; | ||
import { Story, Meta } from '@storybook/react'; | ||
import React from 'react' | ||
import { Story, Meta } from '@storybook/react' | ||
|
||
import Reset from '../components/decorator-reset' | ||
|
||
import { useControls } from '../../src'; | ||
import { useControls } from '../../src' | ||
|
||
export default { | ||
title: 'Inputs/Boolean', | ||
decorators: [Reset] | ||
} as Meta; | ||
decorators: [Reset], | ||
} as Meta | ||
|
||
const Template: Story<any> = (args) => { | ||
const values = useControls({ | ||
foo: args, | ||
}) | ||
|
||
return <div><pre>{JSON.stringify(values, null, ' ')}</pre></div>; | ||
|
||
return ( | ||
<div> | ||
<pre>{JSON.stringify(values, null, ' ')}</pre> | ||
</div> | ||
) | ||
} | ||
|
||
export const Default = Template.bind({}); | ||
export const Default = Template.bind({}) | ||
Default.args = { | ||
value: false | ||
}; | ||
value: false, | ||
} | ||
|
||
export const Checked = Template.bind({}); | ||
export const Checked = Template.bind({}) | ||
Checked.args = { | ||
value: true | ||
}; | ||
value: true, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
import React from 'react'; | ||
import { Story, Meta } from '@storybook/react'; | ||
import React from 'react' | ||
import { Story, Meta } from '@storybook/react' | ||
|
||
import Reset from '../components/decorator-reset' | ||
|
||
import { useControls } from '../../src'; | ||
import { useControls } from '../../src' | ||
|
||
export default { | ||
title: 'Inputs/String', | ||
decorators: [Reset] | ||
} as Meta; | ||
decorators: [Reset], | ||
} as Meta | ||
|
||
const Template: Story<any> = (args) => { | ||
const values = useControls({ | ||
foo: args, | ||
}) | ||
|
||
return <div><pre>{JSON.stringify(values, null, ' ')}</pre></div>; | ||
|
||
return ( | ||
<div> | ||
<pre>{JSON.stringify(values, null, ' ')}</pre> | ||
</div> | ||
) | ||
} | ||
|
||
export const Simple = Template.bind({}); | ||
export const Simple = Template.bind({}) | ||
Simple.args = { | ||
value: "Leva is awesome" | ||
}; | ||
value: 'Leva is awesome', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters