Skip to content

Commit

Permalink
refactor(switchfield): move to ui-widgets
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Import path for SwichField changes from @dhis2/ui-core
to @dhis2/ui or @dhis2/ui-widgets.
  • Loading branch information
varl committed Mar 9, 2020
1 parent 5653131 commit 2baa52a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/core/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,4 @@ export { ToggleGroup } from './ToggleGroup/ToggleGroup.js'
/* widgets */
export { Menu } from './Menu/Menu.js'
export { Modal } from './Modal/Modal.js'
export { SwitchField } from './SwitchField/SwitchField.js'
export { TextAreaField } from './TextAreaField/TextAreaField.js'
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import React from 'react'
import propTypes from '@dhis2/prop-types'

import { statusPropType } from '../common-prop-types.js'
import { Switch } from '@dhis2/ui-core'

import { ToggleField } from '../ToggleField/ToggleField.js'
import { Switch } from '../Switch/Switch.js'
;('') // TODO: https://github.com/jsdoc/jsdoc/issues/1718

const statusPropType = propTypes.mutuallyExclusive(
['valid', 'warning', 'error'],
propTypes.bool
)

/**
* @module
Expand Down
1 change: 1 addition & 0 deletions packages/widgets/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ export { FileInputFieldWithList } from './FileInputFieldWithList/FileInputFieldW
export { InputField } from './InputField/InputField.js'
export { MultiSelectField } from './MultiSelectField/MultiSelectField.js'
export { SingleSelectField } from './SingleSelectField/SingleSelectField.js'
export { SwitchField } from './SwitchField/SwitchField.js'
export { ToggleGroupField } from './ToggleGroupField/ToggleGroupField.js'

0 comments on commit 2baa52a

Please sign in to comment.