Skip to content

Commit

Permalink
Downgrade react to v17. Added radium and colors package to get Checkb…
Browse files Browse the repository at this point in the history
…ox story partially functional.
  • Loading branch information
patcon committed Sep 23, 2024
1 parent ee4e23b commit 8917ab7
Show file tree
Hide file tree
Showing 3 changed files with 156 additions and 24 deletions.
151 changes: 127 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
"@storybook/react-webpack5": "^8.3.2",
"@storybook/test": "^8.3.2",
"prop-types": "^15.8.1",
"react": "~17.0",
"react-dom": "~17.0",
"storybook": "^8.3.2"
},
"dependencies": {
"color": "~4.2.3",
"radium": "^0.26.2"
}
}
23 changes: 23 additions & 0 deletions stories/client-report/framework/checkbox.stories.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import React from 'react'
import Checkbox from '../../../polis/client-report/src/components/framework/checkbox'
import settings from '../../../polis/client-report/src/settings'

import '../../../polis/client-report/src/index.css';

export default {
title: 'Client-Report/Checkbox (buggy)',
component: Checkbox,
}

const Template = (args) => <Checkbox {...args} />

export const Default = Template.bind({})
Default.args = {
label: "foo",
disabled: false,
checked: true,
clickHandler: () => {},
labelPosition: "left",
labelWrapperColor: settings.darkGray,
color: settings.polisBlue,
}

0 comments on commit 8917ab7

Please sign in to comment.