Thanks to @anselanza for their work to getting typescript types into the dist
folder 🎉 !
Special thanks to @tim-soft for this awesome PR!
- Testing framework via
jest
andtesting-library/react
- CI integration with Travis
- Switched deprecated
componentWillReceiveProps
togetDerivedStateFromProps
- All linting packages updated
- Example now uses
nextjs
and links to root modules for better dev experience - Bundling now done with
rollup
- Default preset is stored separately so that it can be reapplied after changing to other presets
- All built-in react-dat-gui components now accept className and style props
- All built-in react-dat-gui components can now have a labelWidth prop which can override the container prop and in any valid CSS units
- Automatically include styles, no longer require importing external stylesheet
- Add linting and precommit scripts that run prettier, eslint and stylelint over the codebase
- Move
react
,react-dom
andprop-types
to peer deps @tim-soft
TypeScript
definitions- Better support for floats
DatFolder
now accepts aclosed
boolean prop to determine if the folder should be closed or open by default
- React v16.0.0 is now required as a peer dependency
- README updated with more docs, included a note about the React v16 peer dependency
- Section on React version to README
- Point regarding animations for
DatFolder
to Roadmap - License section to README
- Minor code formatting updates
- Installation guidelines
- ES7 property initializers are now used to set initial state in all components rather than
componentWillMount
- A lot of documentation to the README
- Deploy script to
./example
app which deploys to github pages
- Changed default export from
Dat
toDatGui
- Removed custom check box styling from
DatBoolean
component - Ensured sliders are the same height as number inputs
- Minor style changes for consistency
- Housekeeping in preparation for
v1.0.0
DatPresets
component - this allows you to set presets for your DatGUI component and switch between them easily
- Removed final reference to
reactcss
, this can be completely removed from dependencies now - Removed unnecessary arrow functions in some
setState
callbacks - Fixed bug where
DatNumber
input updates weren't updating sliders
DatColor
component - this allows color pickers, powered byreact-color
to be rendered for mutating colors- Added
example:promote
script for pushing development code up fromexample/src/dev
intosrc
- Example updated with
DatColor
included
DatSelect
component
- Example updated with
DatSelect
included
- Support for nested folders via
DatFolder
- Example
App.js
has been updated to include a nested folder example
- SCSS is now broken up into partials which align with the various components
- Added
DatFolder
component - Added this to the example
- Updated component files to use
.js
file extension rather than.jsx
- Removed
examples
directory and created singleexample
directory which is now powered bycreate-react-app
- Rewrote
webpack.config.js
so that it is compatible with Webpack v2 - Updated a bunch of dependencies in
package.json
- Separated out
Slider
component fromDatNumber
and also addedutils
file - Switched all event handlers in components to ES7 syntax
- Some code formatting
- Changed
build
directory todist
example
directorysrc/components/Slider.js
src/components/utils.js
src/style
directory.editorconfig
file.eslintrc.json
file.babelrc
filescripts
directory- A number of
npm
scripts topackage.json
- This change log!
- The build no longer creates minified files, can add these back if required but I think it's better for the user to perform this step in their own build pipeline
- ES5 examples, don't think many people are coding with React and ES5 nowadays