Skip to content

Commit

Permalink
refactor(checkboxfield): move to ui-widgets
Browse files Browse the repository at this point in the history
BREAKING CHANGE: CheckboxField has moved from ui-core to ui-widgets.
  • Loading branch information
varl committed Mar 9, 2020
1 parent 84c8f02 commit d979d96
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import React from 'react'
import propTypes from '@dhis2/prop-types'

import { statusPropType } from '../common-prop-types.js'
import { ToggleField } from '../ToggleField/ToggleField.js'
import { Checkbox } from '../Checkbox/Checkbox.js'
;('') // TODO: https://github.com/jsdoc/jsdoc/issues/1718
import { ToggleField, Checkbox } from '@dhis2/ui-core'

export 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
@@ -1,4 +1,5 @@
export { HeaderBar } from './HeaderBar'
export { OrganisationUnitTree } from './OrganisationUnitTree'

export { CheckboxField } from './CheckboxField/CheckboxField.js'
export { ToggleGroupField } from './ToggleGroupField/ToggleGroupField.js'

0 comments on commit d979d96

Please sign in to comment.