diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | index.js | 34 | ||||
-rw-r--r-- | package.json | 12 | ||||
-rw-r--r-- | yarn.lock | 7 |
4 files changed, 54 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index e43b0f9..9daa824 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .DS_Store +node_modules diff --git a/index.js b/index.js new file mode 100644 index 0000000..e54418d --- /dev/null +++ b/index.js @@ -0,0 +1,34 @@ +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'), + 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: { + 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') + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..bfc97b2 --- /dev/null +++ b/package.json @@ -0,0 +1,12 @@ +{ + "name": "ui-lib", + "version": "0.0.0", + "description": "terminal ui library", + "main": "index.js", + "repository": "https://github.com/towerofnix/ui-lib", + "author": "Florrie <towerofnix@gmail.com>", + "license": "GPL-3.0", + "dependencies": { + "iac": "^1.1.0" + } +} diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..c3d2183 --- /dev/null +++ b/yarn.lock @@ -0,0 +1,7 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +iac@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/iac/-/iac-1.1.0.tgz#0bcdd1737272feac23e75dbaa457829d81d3b4cc" |