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
jestandtesting-library/react - CI integration with Travis
- Switched deprecated
componentWillReceivePropstogetDerivedStateFromProps - All linting packages updated
- Example now uses
nextjsand 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-domandprop-typesto peer deps @tim-soft
TypeScriptdefinitions- Better support for floats
DatFoldernow accepts aclosedboolean 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
DatFolderto 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
./exampleapp which deploys to github pages
- Changed default export from
DattoDatGui
- Removed custom check box styling from
DatBooleancomponent - Ensured sliders are the same height as number inputs
- Minor style changes for consistency
- Housekeeping in preparation for
v1.0.0
DatPresetscomponent - 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
setStatecallbacks - Fixed bug where
DatNumberinput updates weren't updating sliders
DatColorcomponent - this allows color pickers, powered byreact-colorto be rendered for mutating colors- Added
example:promotescript for pushing development code up fromexample/src/devintosrc
- Example updated with
DatColorincluded
DatSelectcomponent
- Example updated with
DatSelectincluded
- Support for nested folders via
DatFolder
- Example
App.jshas been updated to include a nested folder example
- SCSS is now broken up into partials which align with the various components
- Added
DatFoldercomponent - Added this to the example
- Updated component files to use
.jsfile extension rather than.jsx - Removed
examplesdirectory and created singleexampledirectory which is now powered bycreate-react-app - Rewrote
webpack.config.jsso that it is compatible with Webpack v2 - Updated a bunch of dependencies in
package.json - Separated out
Slidercomponent fromDatNumberand also addedutilsfile - Switched all event handlers in components to ES7 syntax
- Some code formatting
- Changed
builddirectory todist
exampledirectorysrc/components/Slider.jssrc/components/utils.jssrc/styledirectory.editorconfigfile.eslintrc.jsonfile.babelrcfilescriptsdirectory- A number of
npmscripts 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