Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
chore(spacing): update spacing values (#47)
Browse files Browse the repository at this point in the history
* chore(spacing): update spacing values

* chore(dep): bump ui-kit
  • Loading branch information
casserni authored Mar 28, 2019
1 parent 4706627 commit d1f7482
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@fortawesome/free-solid-svg-icons": "^5.6.1",
"@stoplight/scripts": "4.0.0",
"@stoplight/storybook-config": "1.4.0",
"@stoplight/ui-kit": "^1.46.0",
"@stoplight/ui-kit": "^1.48.0",
"@types/react": "16.8.x",
"@types/react-dom": "16.8.x",
"filer": "0.0.44",
Expand Down
2 changes: 1 addition & 1 deletion src/__stories__/Messages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ storiesOf('Inputs', module)
.addDecorator(Tooltips)
.add('Messages', () => {
return (
<Flex flexDirection="column" width="300px" m={3}>
<Flex flexDirection="column" width="300px" m={11}>
<Messages path={[]}>
<IntegerInput
value={42}
Expand Down
2 changes: 1 addition & 1 deletion src/__stories__/StringInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ storiesOf('Inputs', module)
.addDecorator(Tooltips)
.add('StringInput', () => {
return (
<Box width="300px" m={3}>
<Box width="300px" m={11}>
<StringInput
value={text('value', 'some text')}
path={[]}
Expand Down
6 changes: 3 additions & 3 deletions src/__stories__/customWidgets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const customWidgets = {
randomNumber: (props: IFormtronControl) => (
<Button
type="button"
ml={2}
ml={7}
fontSize={4}
disabled={props.disabled}
onClick={() => props.onChange(String(Math.floor(Math.random() * 500)))}
Expand All @@ -18,7 +18,7 @@ export const customWidgets = {
),
randomOption: (props: IFormtronControl) => (
<Button
ml={2}
ml={7}
fontSize={4}
type="button"
disabled={props.disabled}
Expand All @@ -30,7 +30,7 @@ export const customWidgets = {
addMoreAwesomeness: (props: IFormtronControl) => (
<Button
title="Add more awesomeness"
ml={2}
ml={7}
fontSize={4}
type="button"
disabled={props.disabled}
Expand Down
8 changes: 4 additions & 4 deletions src/components/ArrayInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,21 @@ export const ArrayInput: React.FunctionComponent<IFormtronControl> = ({
<Button
fontWeight={800}
fontSize="11px"
my={3}
mx={2}
my={11}
mx={7}
color="rgb(118, 130, 143)"
disabled={disabled}
display="inline-block"
borderColor="transparent"
backgroundColor="transparent"
onClick={() => onChange(easyArray.append())}
>
<Icon mr={2} icon={faPlus} /> Add Item
<Icon mr={7} icon={faPlus} /> Add Item
</Button>
) : (
easyArray.items.map((val: any, index: number) => {
return (
<Flex my={3} mx={2} key={`${index}-${value.length}`}>
<Flex my={11} mx={7} key={`${index}-${value.length}`}>
<Box flex={1} mr="10px">
<Widget
id={(id && `${id}-${index}`) || undefined}
Expand Down
4 changes: 2 additions & 2 deletions src/components/ObjectInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ export const ObjectInput: React.FunctionComponent<IFormtronControl> = ({
backgroundColor="transparent"
onClick={() => onChange(easyObject.append())}
>
<Icon mr={2} icon={faPlus} /> Add Item
<Icon mr={7} icon={faPlus} /> Add Item
</Button>
) : (
easyObject.items.map((entry, index) => {
const [key, val] = entry;
return (
<Flex my={3} mx={2} key={`${index}-${easyObject.items.length}`}>
<Flex my={11} mx={7} key={`${index}-${easyObject.items.length}`}>
<DraftValue
value={key}
onChange={_key => noConflict(_key) && onChange(easyObject.updateKey(index, _key))}
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1679,10 +1679,10 @@
resolved "https://registry.yarnpkg.com/@stoplight/types/-/types-4.1.0.tgz#23a4a987fe1344339e33ee81c4608340c842ab44"
integrity sha512-2zcUn/jtD4tqonsBoX4QHNNKXE6llNMaS7V4PkRDFkssIIVPB0gZjLWLeR//dY/aaFriO7kdhNss1UAMTLNvcA==

"@stoplight/ui-kit@^1.46.0":
version "1.46.0"
resolved "https://registry.yarnpkg.com/@stoplight/ui-kit/-/ui-kit-1.46.0.tgz#19424d1c6de60128b40afc503a1a2497d8209d2a"
integrity sha512-C3dTyvCJdW0BjPLwnXFFR4zCakAqHEvrou4+0zlYb5nS8oiVMZg5MlIShTJ2Bg00n7KPQvt8JAQoQjgBhClTBw==
"@stoplight/ui-kit@^1.46.1":
version "1.46.1"
resolved "https://registry.yarnpkg.com/@stoplight/ui-kit/-/ui-kit-1.46.1.tgz#37175061b53cc9dff2a9e4056890470bb543bf25"
integrity sha512-bzsToWpC6Mt0pi9t7cVav0gxwr3b3OyJHIwCdd6xcz0e/Rb8Ueblhns7l3HicR0P6cXb3iPh+MeKJ4h3DbkUtA==
dependencies:
"@emotion/core" "10.0.7"
"@emotion/is-prop-valid" "0.7.3"
Expand All @@ -1704,10 +1704,10 @@
styled-system "4.0.1"
use-resize-observer "3.1.0"

"@stoplight/ui-kit@^1.46.1":
version "1.46.1"
resolved "https://registry.yarnpkg.com/@stoplight/ui-kit/-/ui-kit-1.46.1.tgz#37175061b53cc9dff2a9e4056890470bb543bf25"
integrity sha512-bzsToWpC6Mt0pi9t7cVav0gxwr3b3OyJHIwCdd6xcz0e/Rb8Ueblhns7l3HicR0P6cXb3iPh+MeKJ4h3DbkUtA==
"@stoplight/ui-kit@^1.48.0":
version "1.48.0"
resolved "https://registry.yarnpkg.com/@stoplight/ui-kit/-/ui-kit-1.48.0.tgz#e934ad958ae4d43d8e52f9bc9969b9c782d0a078"
integrity sha512-x79Z/DU6HskfBAADHAbYRfoR6Ryv9tYlSgwN83PsLm2QQ5+5Y8sM8pQIJSVsSKw7IeJ5ACo48hp3Q73SJvIlVg==
dependencies:
"@emotion/core" "10.0.7"
"@emotion/is-prop-valid" "0.7.3"
Expand Down

0 comments on commit d1f7482

Please sign in to comment.