Skip to content

Commit

Permalink
Merge pull request #434 from vrk-kpa/feature/move-toggle-to-core
Browse files Browse the repository at this point in the history
[Feature] Move toggle to core
  • Loading branch information
aappoalander authored Feb 9, 2021
2 parents 18696c0 + 7627e96 commit 67276ea
Show file tree
Hide file tree
Showing 28 changed files with 1,672 additions and 1,685 deletions.
7 changes: 7 additions & 0 deletions .styleguidist/styleguidist.sections.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ module.exports = {
content: './.styleguidist/primitive.md',
components: getComponents(primitiveComponents),
sections: [
{
name: 'Toggle',
components: getComponentWithVariants('Form/Toggle')([
'ToggleButton/ToggleButton',
'ToggleInput/ToggleInput',
]),
},
{
name: 'Text',
components: getComponents(['Text', 'Paragraph']),
Expand Down
1 change: 0 additions & 1 deletion src/components/Form/Form.tsx

This file was deleted.

89 changes: 0 additions & 89 deletions src/components/Form/Toggle.tsx

This file was deleted.

82 changes: 0 additions & 82 deletions src/components/Form/ToggleButton.tsx

This file was deleted.

119 changes: 0 additions & 119 deletions src/components/Form/ToggleInput.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
@@ -1,11 +1,5 @@
export { Breadcrumb, BreadcrumbProps } from './Breadcrumb/Breadcrumb';
export { Block, BlockProps } from './Block/Block';
export {
Toggle,
ToggleProps,
ToggleInputProps,
ToggleInput,
} from './Form/Toggle';
export { Heading, HeadingProps } from './Heading/Heading';
export { Link, LinkProps } from './Link/Link';
export { LinkExternal, LinkExternalProps } from './Link/LinkExternal';
Expand Down
6 changes: 3 additions & 3 deletions src/core/Form/Form.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export {
Toggle,
ToggleProps,
ToggleInput,
ToggleInputProps,
} from './Toggle/Toggle';
ToggleButton,
ToggleButtonProps,
} from './Toggle';
export { TextInput, TextInputProps } from './TextInput/TextInput';
export { SearchInput, SearchInputProps } from './SearchInput/SearchInput';
export { Checkbox, CheckboxProps } from './Checkbox/Checkbox';
Expand Down
Loading

0 comments on commit 67276ea

Please sign in to comment.