├── .prettierignore ├── example ├── next.config.js ├── pages │ ├── _app.js │ └── index.js ├── package.json └── components │ ├── Stats.js │ └── ReactDatGui.js ├── src ├── components │ ├── Picker │ │ ├── Pointer.js │ │ ├── PointerCircle.js │ │ ├── Fields.js │ │ └── index.js │ ├── utils.js │ ├── DatButton.js │ ├── DatFolder.js │ ├── DatBoolean.js │ ├── DatSelect.js │ ├── DatPresets.js │ ├── DatString.js │ ├── Slider.js │ ├── DatColor.js │ └── DatNumber.js ├── style │ ├── _select.scss │ ├── _string.scss │ ├── dat.scss │ ├── _presets.scss │ ├── _button.scss │ ├── _boolean.scss │ ├── _folder.scss │ ├── _number.scss │ ├── _vars.scss │ ├── _main.scss │ └── _color.scss ├── __tests__ │ └── DatGUI.test.js └── index.js ├── .stylelintrc.js ├── .prettierrc.js ├── .travis.yml ├── .babelrc.js ├── .editorconfig ├── jest.config.js ├── .eslintrc.js ├── LICENSE ├── rollup.config.js ├── .gitignore ├── index.d.ts ├── dist ├── index.d.ts ├── index.css ├── index.es.js └── index.es.js.map ├── CONTRIBUTING.md ├── package.json ├── CHANGELOG.md └── README.md /.prettierignore: -------------------------------------------------------------------------------- 1 | node_modules/** 2 | example/node_modules/** -------------------------------------------------------------------------------- /example/next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | assetPrefix: process.env.NODE_ENV === 'production' ? '/react-dat-gui' : '' 3 | }; 4 | -------------------------------------------------------------------------------- /src/components/Picker/Pointer.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | const Pointer = () =>
; 4 | 5 | export default Pointer; 6 | -------------------------------------------------------------------------------- /src/components/Picker/PointerCircle.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | const PointerCircle = () => ; 4 | 5 | export default PointerCircle; 6 | -------------------------------------------------------------------------------- /src/style/_select.scss: -------------------------------------------------------------------------------- 1 | .react-dat-gui .cr.select { 2 | border-left: $border-left-size solid $select-color; 3 | 4 | label { 5 | padding: 6px 2px 6px 8px; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /example/pages/_app.js: -------------------------------------------------------------------------------- 1 | import 'react-dat-gui/dist/index.css'; 2 | 3 | function MyApp({ Component, pageProps }) { 4 | return
13 |
14 |
15 |
16 |
17 | Demo
18 |
19 | Codesandbox
20 |