Skip to content

Commit

Permalink
refactor(inputfield): move to ui-widgets
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Move InputField from ui-core to ui-widgets, new import
path at @dhis2/ui-widgets or @dhis2/ui.
  • Loading branch information
varl committed Mar 9, 2020
1 parent a512f00 commit 50d9009
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
2 changes: 0 additions & 2 deletions packages/core/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export { FileListItem } from './FileListItem/FileListItem.js'
export { FileListPlaceholder } from './FileListPlaceholder/FileListPlaceholder.js'
export { Help } from './Help/Help.js'
export { Input } from './Input/Input.js'
export { InputField } from './InputField/InputField.js'
export { Label } from './Label/Label.js'
export { Legend } from './Legend/Legend.js'
export { LinearLoader } from './LinearLoader/LinearLoader.js'
Expand Down Expand Up @@ -79,7 +78,6 @@ export { TextArea } from './TextArea/TextArea.js'
export { ToggleGroup } from './ToggleGroup/ToggleGroup.js'

/* widgets */
export { FileInputFieldWithList } from './FileInputFieldWithList/FileInputFieldWithList.js'
export { Menu } from './Menu/Menu.js'
export { Modal } from './Modal/Modal.js'
export { MultiSelectField } from './MultiSelectField/MultiSelectField.js'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import propTypes from '@dhis2/prop-types'
import React from 'react'

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

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

/**
* @module
Expand Down
2 changes: 2 additions & 0 deletions packages/widgets/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ export { OrganisationUnitTree } from './OrganisationUnitTree'

export { CheckboxField } from './CheckboxField/CheckboxField.js'
export { FileInputField } from './FileInputField/FileInputField.js'
export { FileInputFieldWithList } from './FileInputFieldWithList/FileInputFieldWithList.js'
export { InputField } from './InputField/InputField.js'
export { ToggleGroupField } from './ToggleGroupField/ToggleGroupField.js'

0 comments on commit 50d9009

Please sign in to comment.