Skip to content

Commit 41a89b4

Browse files
committed
Minor fixes.
1 parent adcdebe commit 41a89b4

27 files changed

+85
-44
lines changed

jest/setup.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class ResizeObserver {
2+
observe() {}
3+
unobserve() {}
4+
disconnect() {}
5+
}
6+
7+
window.ResizeObserver = ResizeObserver

src/components/button/button.stories.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import { Button, IconButton } from "."
99
import readme from "./README.md"
1010
import { iconsList } from "src/components/icon"
1111

12-
const buttonStory = storiesOf("COMPONENTS|Controls/Button", module)
13-
const icons: string[] = Object.keys(iconsList)
12+
const buttonStory = storiesOf("Input/Button", module)
13+
const icons = Object.keys(iconsList)
1414

1515
const subData = {
1616
readme: {

src/components/checkbox/checkbox.stories.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { getGutterHeight } from "src/theme/utils"
77
import { readmeCleanup } from "utils/readme"
88
import readme from "./README.md"
99

10-
const checkBoxStory = storiesOf("COMPONENTS|Controls/Checkbox", module)
10+
const checkBoxStory = storiesOf("Input/Checkbox", module)
1111

1212
const position = ["left", "right"]
1313

@@ -22,7 +22,7 @@ checkBoxStory.add(
2222
"Controlled Checkbox",
2323
() => {
2424
const [checked, setChecked] = useState(false)
25-
const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {
25+
const handleChange = e => {
2626
setChecked(e.currentTarget.checked)
2727
}
2828
return (
@@ -36,7 +36,7 @@ checkBoxStory.add(
3636
"Labeled Checkbox",
3737
() => {
3838
const [checked, setChecked] = useState(false)
39-
const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {
39+
const handleChange = e => {
4040
setChecked(e.currentTarget.checked)
4141
}
4242
return (
@@ -55,7 +55,7 @@ checkBoxStory.add(
5555
"Disabled Checkobox",
5656
() => {
5757
const [checked, setChecked] = useState(false)
58-
const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {
58+
const handleChange = e => {
5959
setChecked(e.currentTarget.checked)
6060
}
6161
return (

src/components/drops/drop/index.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Flex from "src/components/templates/flex"
66
import readme from "./README.md"
77
import Drop from "./index"
88

9-
const story = storiesOf("COMPONENTS|Drops/Drop", module)
9+
const story = storiesOf("Drops/Drop", module)
1010

1111
const subData = {
1212
readme: {

src/components/drops/menu/dropdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import styled from "styled-components"
33
import { useVirtualizer } from "@tanstack/react-virtual"
44
import Flex from "src/components/templates/flex"
55
import Search from "src/components/search"
6-
import { Box } from "src/index"
6+
import { Box } from "src/components/templates/box"
77

88
const Container = styled(Flex)`
99
${({ hideShadow }) =>

src/components/drops/menu/index.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Icon } from "src/components/icon"
1010
import readme from "./README.md"
1111
import Menu from "./index"
1212

13-
const story = storiesOf("COMPONENTS|Drops/Menu", module)
13+
const story = storiesOf("Drops/Menu", module)
1414

1515
const subData = {
1616
readme: {

src/components/drops/popover/index.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Button } from "src/components/button"
88
import readme from "./README.md"
99
import Popover from "./index"
1010

11-
const story = storiesOf("COMPONENTS|Drops/Popover", module)
11+
const story = storiesOf("Drops/Popover", module)
1212

1313
const subData = {
1414
readme: {

src/components/drops/tooltip/index.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Button } from "src/components/button"
77
import readme from "./README.md"
88
import Tooltip from "./index"
99

10-
const story = storiesOf("COMPONENTS|Drops/Tooltip", module)
10+
const story = storiesOf("Drops/Tooltip", module)
1111

1212
const subData = {
1313
readme: {

src/components/filter-box/filter-box.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { FilterBox, FilterBoxProcessing } from "."
66
import { Text } from "src/components/typography"
77
import readme from "./README.md"
88

9-
const filterBoxStory = storiesOf("COMPONENTS|Controls/Filter Box", module)
9+
const filterBoxStory = storiesOf("Input/Filter Box", module)
1010

1111
const subData = {
1212
readme: {

src/components/icon/icon-list.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { getColor } from "../../theme"
1010
import { iconsList } from "./icons-list"
1111
import { Icon } from "."
1212

13-
const iconListStory = storiesOf("COMPONENTS|Icons", module)
13+
const iconListStory = storiesOf("Icons/List", module)
1414

1515
const iconsExposed = Object.keys(iconsList)
1616

0 commit comments

Comments
 (0)