diff options
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 43 |
1 files changed, 7 insertions, 36 deletions
diff --git a/index.js b/index.js index de4c680..fc54bfd 100644 --- a/index.js +++ b/index.js @@ -1,36 +1,7 @@ -module.exports = { - ui: { - Dialog: require('./ui/Dialog'), - DisplayElement: require('./ui/DisplayElement'), - HorizontalBox: require('./ui/HorizontalBox'), - Label: require('./ui/Label'), - Pane: require('./ui/Pane'), - Root: require('./ui/Root'), - Sprite: require('./ui/Sprite'), - WrapLabel: require('./ui/WrapLabel'), - form: { - Button: require('./ui/form/Button'), - CancelDialog: require('./ui/form/CancelDialog'), - ConfirmDialog: require('./ui/form/ConfirmDialog'), - FocusBox: require('./ui/form/FocusBox'), - FocusElement: require('./ui/form/FocusElement'), - Form: require('./ui/form/Form'), - ListScrollForm: require('./ui/form/ListScrollForm'), - TextInput: require('./ui/form/TextInput') - } - }, - util: { - tuiApp: require('./util/tui-app'), - ansi: require('./util/ansi'), - CommandLineInterfacer: require('./util/CommandLineInterfacer'), - count: require('./util/count'), - exception: require('./util/exception'), - Flushable: require('./util/Flushable'), - smoothen: require('./util/smoothen'), - telchars: require('./util/telchars'), - TelnetInterfacer: require('./util/TelnetInterfacer'), - unichars: require('./util/unichars'), - waitForData: require('./util/waitForData'), - wrap: require('./util/wrap') - } -} +export * as ui from './ui/index.js' +export * as util from './util/index.js' + +import * as ui from './ui/index.js' +import * as util from './util/index.js' + +export default {ui, util} |