Skip to content

Commit

Permalink
Merge pull request #428 from vrk-kpa/feature/move-radiobutton-to-core
Browse files Browse the repository at this point in the history
[Feature] Move radio button to core
  • Loading branch information
aappoalander authored Jan 25, 2021
2 parents 3a6e4a8 + 3f58deb commit e5036bc
Show file tree
Hide file tree
Showing 18 changed files with 1,818 additions and 1,387 deletions.
8 changes: 7 additions & 1 deletion .styleguidist/styleguidist.sections.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const primitiveComponents = [
['Form', 'SearchInput'],
['Form', 'Checkbox'],
['Form', 'Textarea'],
['Form', 'RadioButton'],
];

const getComponent = ({ name, underName }) =>
Expand Down Expand Up @@ -71,6 +70,13 @@ module.exports = {
name: 'Text',
components: getComponents(['Text', 'Paragraph']),
},
{
name: 'RadioButton',
components: getComponentWithVariants('Form/RadioButton')([
'RadioButton',
'RadioButtonGroup',
]),
},
{
name: 'Link',
components: getComponentWithVariants('Link')([
Expand Down
159 changes: 0 additions & 159 deletions src/components/Form/RadioButton.tsx

This file was deleted.

16 changes: 0 additions & 16 deletions src/components/Form/RadioButtonDivider.tsx

This file was deleted.

175 changes: 0 additions & 175 deletions src/components/Form/RadioButtonGroup.tsx

This file was deleted.

6 changes: 0 additions & 6 deletions src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,3 @@ export {
export { Paragraph, ParagraphProps } from './Paragraph/Paragraph';
export { Text, TextProps } from './Text/Text';
export { VisuallyHidden } from './Visually-hidden/Visually-hidden';
export { RadioButton, RadioButtonProps } from './Form/RadioButton';
export {
RadioButtonGroup,
RadioButtonGroupProps,
} from './Form/RadioButtonGroup';
export { RadioButtonDivider } from './Form/RadioButtonDivider';
5 changes: 3 additions & 2 deletions src/core/Form/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ export {
export { TextInput, TextInputProps } from './TextInput/TextInput';
export { SearchInput, SearchInputProps } from './SearchInput/SearchInput';
export { Checkbox, CheckboxProps } from './Checkbox/Checkbox';
export { RadioButton, RadioButtonProps } from './RadioButton/RadioButton';
export {
RadioButton,
RadioButtonProps,
RadioButtonGroup,
RadioButtonGroupProps,
} from './RadioButton/RadioButtonGroup';
} from './RadioButton';
Loading

0 comments on commit e5036bc

Please sign in to comment.