Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: renatorib/react-powerplug
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.0-rc.1
Choose a base ref
...
head repository: renatorib/react-powerplug
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Jul 20, 2018

  1. Add over to <Map /> documentation

    egoarka authored and TrySound committed Jul 20, 2018
    Copy the full SHA
    1299916 View commit details

Commits on Jul 24, 2018

  1. Upgrade babel (#140)

    - upgrade to the latest beta
    - enabled loose mode for class properties which saved some bytes
    - removed object-rest-spread plugin which is already include in env
    - fixed focus manager tests which used external helpers
    TrySound authored Jul 24, 2018
    Copy the full SHA
    2e30049 View commit details

Commits on Jul 30, 2018

  1. Create LICENSE (#145)

    TrySound authored and renatorib committed Jul 30, 2018
    Copy the full SHA
    b15947f View commit details

Commits on Aug 5, 2018

  1. Copy the full SHA
    81f8592 View commit details

Commits on Aug 10, 2018

  1. Change base component to Value (#149)

    `<State />` component has too much own logic which makes `State` based
    components more complex with additional `set` and `onChangeProp`
    helpers.
    
    In this diff I reimplemented `<Value />` as class and `<State />` and
    another components as `Value` based.
    
    This reduced bundle size with ~0.8kb (parsed) and significantly
    simplified components implementation.
    TrySound authored Aug 10, 2018
    Copy the full SHA
    132b5ea View commit details

Commits on Aug 11, 2018

  1. Replace <Form /> input with generic field factory (#150)

    In this diff I added `<Form />` generic `field` factory as
    a replacement for `input` factory. The main difference is each
    value can have now any type, not only strings like before.
    
    The second change is more generic `onChange` method which accepts
    either value, or event like object which has this structure
    
    ```js
    {
      target: {
        value: T
      }
    }
    ```
    
    This allows to work with components which emulates their event and
    produces not string type.
    TrySound authored Aug 11, 2018
    Copy the full SHA
    4cfb56f View commit details
  2. Add flow plugin to eslint to solve vscode issues (#154)

    Add flow plugin to eslint to solve vscode issues
    
    Ref #152
    TrySound authored Aug 11, 2018
    Copy the full SHA
    907e2fe View commit details
  3. Upgrade babel to rc1 (#155)

    TrySound authored Aug 11, 2018
    Copy the full SHA
    c3fa5a4 View commit details

Commits on Aug 17, 2018

  1. Add reset to components (#156)

    - added reset to Value
    - added resetState to State
    - added reset to Toggle
    - added reset to Counter
    - added reset to Map
    - added reset to Set
    - added reset to List
    - added reset to Form
    - added reset to Input
    istarkov authored and TrySound committed Aug 17, 2018
    Copy the full SHA
    e747c26 View commit details
  2. Improved map according native api (#157)

    Ref [Map#Methods](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map#Methods)
    
    - replace `over` with functional `set` for consistency
    - added `delete` method
    - added `clear` method
    - added `has` method
    TrySound authored Aug 17, 2018
    Copy the full SHA
    1e6f5b0 View commit details
  3. Add setValues to Form component (#158)

    `setValues` is useful when one input produces a few values.
    TrySound authored Aug 17, 2018
    Copy the full SHA
    7cb56d0 View commit details

Commits on Aug 28, 2018

  1. Input to Field (#163)

    * convert Input to Field
    
    * size snapshot
    
    * fix Field set
    
    * add type generic to Field -- flow
    
    * add type generic to Field -- ts
    renatorib authored Aug 28, 2018
    Copy the full SHA
    0b9d636 View commit details
  2. Upgrade to babel 7 (#164)

    TrySound authored Aug 28, 2018
    Copy the full SHA
    5cc6324 View commit details

Commits on Sep 14, 2018

  1. Update Value.md (#169)

    yairEO authored and TrySound committed Sep 14, 2018
    Copy the full SHA
    eda3464 View commit details
  2. update d.t. implement #161 (#162)

    theKashey authored and TrySound committed Sep 14, 2018
    Copy the full SHA
    2c5211f View commit details

Commits on Sep 22, 2018

  1. readme compose (#172)

    improve compose docs
    slorber authored and renatorib committed Sep 22, 2018
    Copy the full SHA
    b26a5c6 View commit details

Commits on Sep 27, 2018

  1. Copy the full SHA
    d00b3e1 View commit details

Commits on Oct 1, 2018

  1. fix some wording in the readme (#175)

    rvcas authored and renatorib committed Oct 1, 2018
    Copy the full SHA
    a79b058 View commit details
  2. Copy the full SHA
    ac32f9e View commit details

Commits on Oct 3, 2018

  1. Fix toggle types (#178)

    TrySound authored Oct 3, 2018
    Copy the full SHA
    508f65a View commit details

Commits on Oct 5, 2018

  1. Copy the full SHA
    3bb8551 View commit details

Commits on Oct 15, 2018

  1. Fix setting multiple interval error (#176)

    * Fix setting  multiple interval error
    
    * restart interval when calling start
    beizhedenglong authored and renatorib committed Oct 15, 2018
    Copy the full SHA
    18d1365 View commit details

Commits on Oct 16, 2018

  1. Add docz (#153)

    * minimal setup docz
    
    * chore: remove and ignore docz build folder
    
    * chore: add logo and primary color
    
    * fix: update dependencies
    
    * add more mdx to docz
    
    * add Touch.mdx to docz
    
    * add Hover.mdx to docz
    
    * add Focus.mdx to docz
    
    * add Active.mdx to docz
    
    * add FocusManager.mdx to docz
    
    * add State.mdx and Interval.mdx to docz
    
    * add Form.mdx to docz
    
    * add Counter.mdx to docz
    
    * add Compose.mdx to docz
    
    * add compose.mdx and composeEvents.mdx to docz
    
    * add Introduction and Guide to docz
    
    * add ordering to menus
    
    * deployment scripts
    
    * add setOn setOff to Toggle docs
    
    * remove FocusManager.mdx
    
    * edit readme
    renatorib authored Oct 16, 2018
    Copy the full SHA
    a83c97c View commit details

Commits on Nov 6, 2018

  1. 1.0.0

    renatorib committed Nov 6, 2018
    Copy the full SHA
    e316165 View commit details

Commits on Mar 8, 2019

  1. Update Form docs (#185)

    coder054 authored and renatorib committed Mar 8, 2019
    Copy the full SHA
    3fabaa2 View commit details

Commits on Aug 27, 2019

  1. Fix Syntax error in docs (#192)

    shoaibbhimani authored and renatorib committed Aug 27, 2019
    Copy the full SHA
    c2608e8 View commit details

Commits on Sep 13, 2022

  1. fix spam link

    souporserious authored Sep 13, 2022
    Copy the full SHA
    8da1bda View commit details
Showing with 7,239 additions and 3,535 deletions.
  1. +1 −1 .all-contributorsrc
  2. +0 −21 .babelrc
  3. +1 −0 .eslintignore
  4. +0 −26 .eslintrc
  5. +31 −0 .eslintrc.json
  6. +1 −0 .gitignore
  7. +12 −12 .size-snapshot.json
  8. +21 −0 LICENSE
  9. +5 −271 README.md
  10. +4 −0 babel.config.js
  11. +49 −0 docs/Guide.mdx
  12. +53 −0 docs/Introduction.mdx
  13. +7 −0 docs/_ui/MDXComponents.js
  14. +75 −0 docs/_ui/PropsTable.js
  15. +0 −41 docs/components/Active.md
  16. +49 −0 docs/components/Active.mdx
  17. +24 −10 docs/components/{Compose.md → Compose.mdx}
  18. +0 −60 docs/components/Counter.md
  19. +71 −0 docs/components/Counter.mdx
  20. +73 −0 docs/components/Field.mdx
  21. +0 −42 docs/components/Focus.md
  22. +50 −0 docs/components/Focus.mdx
  23. +0 −5 docs/components/FocusManager.md
  24. +0 −5 docs/components/Form.md
  25. +59 −0 docs/components/Form.mdx
  26. +0 −41 docs/components/Hover.md
  27. +49 −0 docs/components/Hover.mdx
  28. +0 −48 docs/components/Input.md
  29. +0 −41 docs/components/Interval.md
  30. +59 −0 docs/components/Interval.mdx
  31. +0 −85 docs/components/List.md
  32. +78 −0 docs/components/List.mdx
  33. +0 −54 docs/components/Map.md
  34. +70 −0 docs/components/Map.mdx
  35. +0 −53 docs/components/Set.md
  36. +68 −0 docs/components/Set.mdx
  37. +0 −41 docs/components/State.md
  38. +61 −0 docs/components/State.mdx
  39. +0 −38 docs/components/Toggle.md
  40. +63 −0 docs/components/Toggle.mdx
  41. +0 −40 docs/components/Touch.md
  42. +48 −0 docs/components/Touch.mdx
  43. +0 −59 docs/components/Value.md
  44. +80 −0 docs/components/Value.mdx
  45. +7 −17 docs/utils/{compose.md → compose.mdx}
  46. +10 −8 docs/utils/{composeEvents.md → composeEvents.mdx}
  47. +20 −0 doczrc.js
  48. +28 −22 package.json
  49. +3 −8 rollup.config.js
  50. +7 −11 src/components/Active.js
  51. +12 −18 src/components/Counter.js
  52. +29 −0 src/components/Field.js
  53. +7 −11 src/components/Focus.js
  54. +8 −12 src/components/FocusManager.js
  55. +33 −12 src/components/Form.js
  56. +7 −11 src/components/Hover.js
  57. +0 −25 src/components/Input.js
  58. +1 −0 src/components/Interval.js
  59. +12 −15 src/components/List.js
  60. +15 −8 src/components/Map.js
  61. +10 −13 src/components/Set.js
  62. +20 −23 src/components/State.js
  63. +10 −9 src/components/Toggle.js
  64. +7 −11 src/components/Touch.js
  65. +33 −17 src/components/Value.js
  66. +2 −2 src/index.js
  67. +65 −49 src/index.js.flow
  68. +0 −2 src/utils/noop.js
  69. +0 −7 src/utils/onChangeProp.js
  70. +0 −4 src/utils/set.js
  71. +6 −1 tests/components/Counter.test.js
  72. +23 −5 tests/components/{Input.test.js → Field.test.js}
  73. +4 −0 tests/components/Focus.test.js
  74. +13 −10 tests/components/FocusManager.test.js
  75. +72 −16 tests/components/Form.test.js
  76. +1 −0 tests/components/Interval.test.js
  77. +9 −1 tests/components/List.test.js
  78. +36 −2 tests/components/Map.test.js
  79. +9 −1 tests/components/Set.test.js
  80. +32 −1 tests/components/State.test.js
  81. +13 −1 tests/components/Toggle.test.js
  82. +10 −1 tests/components/Value.test.js
  83. +155 −49 tests/test_flow.js
  84. +31 −21 types/index.d.ts
  85. +11 −9 types/test.tsx
  86. +5,306 −2,108 yarn.lock
2 changes: 1 addition & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@
"login": "souporserious",
"name": "Travis Arnold",
"avatar_url": "https://avatars1.githubusercontent.com/u/2762082?v=4",
"profile": "http://travisrayarnold.com",
"profile": "https://souporserious.com/",
"contributions": [
"code",
"doc",
21 changes: 0 additions & 21 deletions .babelrc

This file was deleted.

1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.flow
26 changes: 0 additions & 26 deletions .eslintrc

This file was deleted.

31 changes: 31 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parser": "babel-eslint",
"plugins": [
"import",
"react",
"flowtype"
],
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"plugin:react/recommended"
],
"env": {
"browser": true,
"es6": true,
"node": true,
"jest": true
},
"rules": {
"no-unused-vars": ["error", { "ignoreRestSiblings": true }],
"valid-jsdoc": "error",
"react/prop-types": "off",
"react/jsx-uses-react": "warn",
"react/jsx-no-undef": "error",
"import/no-unresolved": ["error", { "ignore": ["^react$"] }],
"import/unambiguous": "off",
"react/jsx-key": "off",
"flowtype/define-flow-type": "error",
"flowtype/use-flow-type": "error"
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.log
.docz
node_modules
dist
24 changes: 12 additions & 12 deletions .size-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"dist/react-powerplug.umd.js": {
"bundled": 23776,
"minified": 9440,
"gzipped": 2612
"bundled": 21989,
"minified": 8724,
"gzipped": 2360
},
"dist/react-powerplug.cjs.js": {
"bundled": 20838,
"minified": 10852,
"gzipped": 2501
"bundled": 19846,
"minified": 9915,
"gzipped": 2384
},
"dist/react-powerplug.esm.js": {
"bundled": 20176,
"minified": 10292,
"gzipped": 2366,
"bundled": 19241,
"minified": 9402,
"gzipped": 2250,
"treeshaked": {
"rollup": {
"code": 365,
"import_statements": 365
"code": 197,
"import_statements": 197
},
"webpack": {
"code": 1356
"code": 1495
}
}
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017 Renato Ribeiro

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading