Skip to content

Commit

Permalink
Add Button, Tooltip, and KeyListener packages (cruise-automation#52)
Browse files Browse the repository at this point in the history
Just some small packages, in preparation for the bigger addition of
`webviz-core`.

Also reran `npm run flow-typed-rebuild` to get some new definitions for
the new dependencies.

Test plan: verified manually that these packages work when copied over
to the node_modules directory of our proprietary repo. Also made sure
tests/flow/lint works.
  • Loading branch information
janpaul123 authored Dec 28, 2018
1 parent 5aac7f1 commit 56da090
Show file tree
Hide file tree
Showing 36 changed files with 3,232 additions and 49 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ dist
node_modules
coverage
build
lib
/flow-typed
!.eslintrc.js
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
webviz is a collection of packages for visualizing 2D and 3D views on the web.

- regl-worldview: a react library for rendering 2D and 3D views using [regl](https://github.com/regl-project/regl).
- regl-worldview: React library for rendering 2D and 3D scenes using [regl](https://github.com/regl-project/regl).
- react-key-listener: React component for handling keyboard events, without interfering with editable fields and buttons.
- @cruise-automation/button: Button component that supports animated progress for destructive actions, "pulse" animation, and Bulma classes.
- @cruise-automation/tooltip: React component using [popper.js](https://popper.js.org/) to add rich, customizable tooltips to DOM elements.

## Documentation

Expand Down
144 changes: 144 additions & 0 deletions flow-typed/npm/@babel/preset-env_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
// flow-typed signature: 9dc7bdcce56d3e132a0df197a91dcca4
// flow-typed version: <<STUB>>/@babel/preset-env_v^7.2.0/flow_v0.88.0

/**
* This is an autogenerated libdef stub for:
*
* '@babel/preset-env'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module '@babel/preset-env' {
declare module.exports: any;
}

/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module '@babel/preset-env/data/built-in-features' {
declare module.exports: any;
}

declare module '@babel/preset-env/data/plugin-features' {
declare module.exports: any;
}

declare module '@babel/preset-env/data/shipped-proposals' {
declare module.exports: any;
}

declare module '@babel/preset-env/data/unreleased-labels' {
declare module.exports: any;
}

declare module '@babel/preset-env/lib/available-plugins' {
declare module.exports: any;
}

declare module '@babel/preset-env/lib/built-in-definitions' {
declare module.exports: any;
}

declare module '@babel/preset-env/lib/debug' {
declare module.exports: any;
}

declare module '@babel/preset-env/lib/default-includes' {
declare module.exports: any;
}

declare module '@babel/preset-env/lib/defaults' {
declare module.exports: any;
}

declare module '@babel/preset-env/lib/index' {
declare module.exports: any;
}

declare module '@babel/preset-env/lib/module-transformations' {
declare module.exports: any;
}

declare module '@babel/preset-env/lib/normalize-options' {
declare module.exports: any;
}

declare module '@babel/preset-env/lib/options' {
declare module.exports: any;
}

declare module '@babel/preset-env/lib/targets-parser' {
declare module.exports: any;
}

declare module '@babel/preset-env/lib/use-built-ins-entry-plugin' {
declare module.exports: any;
}

declare module '@babel/preset-env/lib/use-built-ins-plugin' {
declare module.exports: any;
}

declare module '@babel/preset-env/lib/utils' {
declare module.exports: any;
}

// Filename aliases
declare module '@babel/preset-env/data/built-in-features.js' {
declare module.exports: $Exports<'@babel/preset-env/data/built-in-features'>;
}
declare module '@babel/preset-env/data/plugin-features.js' {
declare module.exports: $Exports<'@babel/preset-env/data/plugin-features'>;
}
declare module '@babel/preset-env/data/shipped-proposals.js' {
declare module.exports: $Exports<'@babel/preset-env/data/shipped-proposals'>;
}
declare module '@babel/preset-env/data/unreleased-labels.js' {
declare module.exports: $Exports<'@babel/preset-env/data/unreleased-labels'>;
}
declare module '@babel/preset-env/lib/available-plugins.js' {
declare module.exports: $Exports<'@babel/preset-env/lib/available-plugins'>;
}
declare module '@babel/preset-env/lib/built-in-definitions.js' {
declare module.exports: $Exports<'@babel/preset-env/lib/built-in-definitions'>;
}
declare module '@babel/preset-env/lib/debug.js' {
declare module.exports: $Exports<'@babel/preset-env/lib/debug'>;
}
declare module '@babel/preset-env/lib/default-includes.js' {
declare module.exports: $Exports<'@babel/preset-env/lib/default-includes'>;
}
declare module '@babel/preset-env/lib/defaults.js' {
declare module.exports: $Exports<'@babel/preset-env/lib/defaults'>;
}
declare module '@babel/preset-env/lib/index.js' {
declare module.exports: $Exports<'@babel/preset-env/lib/index'>;
}
declare module '@babel/preset-env/lib/module-transformations.js' {
declare module.exports: $Exports<'@babel/preset-env/lib/module-transformations'>;
}
declare module '@babel/preset-env/lib/normalize-options.js' {
declare module.exports: $Exports<'@babel/preset-env/lib/normalize-options'>;
}
declare module '@babel/preset-env/lib/options.js' {
declare module.exports: $Exports<'@babel/preset-env/lib/options'>;
}
declare module '@babel/preset-env/lib/targets-parser.js' {
declare module.exports: $Exports<'@babel/preset-env/lib/targets-parser'>;
}
declare module '@babel/preset-env/lib/use-built-ins-entry-plugin.js' {
declare module.exports: $Exports<'@babel/preset-env/lib/use-built-ins-entry-plugin'>;
}
declare module '@babel/preset-env/lib/use-built-ins-plugin.js' {
declare module.exports: $Exports<'@babel/preset-env/lib/use-built-ins-plugin'>;
}
declare module '@babel/preset-env/lib/utils.js' {
declare module.exports: $Exports<'@babel/preset-env/lib/utils'>;
}
38 changes: 38 additions & 0 deletions flow-typed/npm/@mapbox/rehype-prism_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// flow-typed signature: b76c571487ffb6ebe736faf8604353fa
// flow-typed version: <<STUB>>/@mapbox/rehype-prism_v^0.3.0/flow_v0.88.0

/**
* This is an autogenerated libdef stub for:
*
* '@mapbox/rehype-prism'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module '@mapbox/rehype-prism' {
declare module.exports: any;
}

/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module '@mapbox/rehype-prism/test' {
declare module.exports: any;
}

// Filename aliases
declare module '@mapbox/rehype-prism/index' {
declare module.exports: $Exports<'@mapbox/rehype-prism'>;
}
declare module '@mapbox/rehype-prism/index.js' {
declare module.exports: $Exports<'@mapbox/rehype-prism'>;
}
declare module '@mapbox/rehype-prism/test.js' {
declare module.exports: $Exports<'@mapbox/rehype-prism/test'>;
}
23 changes: 23 additions & 0 deletions flow-typed/npm/classnames_v2.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// flow-typed signature: cf86673cc32d185bdab1d2ea90578d37
// flow-typed version: 614bf49aa8/classnames_v2.x.x/flow_>=v0.25.x

type $npm$classnames$Classes =
| string
| { [className: string]: * }
| false
| void
| null;

declare module "classnames" {
declare module.exports: (
...classes: Array<$npm$classnames$Classes | $npm$classnames$Classes[]>
) => string;
}

declare module "classnames/bind" {
declare module.exports: $Exports<"classnames">;
}

declare module "classnames/dedupe" {
declare module.exports: $Exports<"classnames">;
}
81 changes: 81 additions & 0 deletions flow-typed/npm/enzyme-adapter-react-16_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
// flow-typed signature: 2c3648f33f6f42cecd94295c9704fbb8
// flow-typed version: <<STUB>>/enzyme-adapter-react-16_v^1.7.1/flow_v0.88.0

/**
* This is an autogenerated libdef stub for:
*
* 'enzyme-adapter-react-16'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module 'enzyme-adapter-react-16' {
declare module.exports: any;
}

/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'enzyme-adapter-react-16/build/detectFiberTags' {
declare module.exports: any;
}

declare module 'enzyme-adapter-react-16/build/findCurrentFiberUsingSlowPath' {
declare module.exports: any;
}

declare module 'enzyme-adapter-react-16/build/index' {
declare module.exports: any;
}

declare module 'enzyme-adapter-react-16/build/ReactSixteenAdapter' {
declare module.exports: any;
}

declare module 'enzyme-adapter-react-16/src/detectFiberTags' {
declare module.exports: any;
}

declare module 'enzyme-adapter-react-16/src/findCurrentFiberUsingSlowPath' {
declare module.exports: any;
}

declare module 'enzyme-adapter-react-16/src/index' {
declare module.exports: any;
}

declare module 'enzyme-adapter-react-16/src/ReactSixteenAdapter' {
declare module.exports: any;
}

// Filename aliases
declare module 'enzyme-adapter-react-16/build/detectFiberTags.js' {
declare module.exports: $Exports<'enzyme-adapter-react-16/build/detectFiberTags'>;
}
declare module 'enzyme-adapter-react-16/build/findCurrentFiberUsingSlowPath.js' {
declare module.exports: $Exports<'enzyme-adapter-react-16/build/findCurrentFiberUsingSlowPath'>;
}
declare module 'enzyme-adapter-react-16/build/index.js' {
declare module.exports: $Exports<'enzyme-adapter-react-16/build/index'>;
}
declare module 'enzyme-adapter-react-16/build/ReactSixteenAdapter.js' {
declare module.exports: $Exports<'enzyme-adapter-react-16/build/ReactSixteenAdapter'>;
}
declare module 'enzyme-adapter-react-16/src/detectFiberTags.js' {
declare module.exports: $Exports<'enzyme-adapter-react-16/src/detectFiberTags'>;
}
declare module 'enzyme-adapter-react-16/src/findCurrentFiberUsingSlowPath.js' {
declare module.exports: $Exports<'enzyme-adapter-react-16/src/findCurrentFiberUsingSlowPath'>;
}
declare module 'enzyme-adapter-react-16/src/index.js' {
declare module.exports: $Exports<'enzyme-adapter-react-16/src/index'>;
}
declare module 'enzyme-adapter-react-16/src/ReactSixteenAdapter.js' {
declare module.exports: $Exports<'enzyme-adapter-react-16/src/ReactSixteenAdapter'>;
}
Loading

0 comments on commit 56da090

Please sign in to comment.