Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
288 commits
Select commit Hold shift + click to select a range
e8de063
[DDW-733] Fixes ESLint warning
MarcusHurney Feb 11, 2020
4a0312d
[DDW-733] Fixes flow error
MarcusHurney Feb 11, 2020
cb6494d
[DDW-733] Fixes CSS variable names and adds comments to theme file
MarcusHurney Feb 11, 2020
28c1768
[DDW-733] Updates CHANGELOG
MarcusHurney Feb 11, 2020
f373ac5
Merge pull request #134 from input-output-hk/feature/ddw-733-password…
MarcusHurney Feb 11, 2020
0f7cce9
[DDW-1227] Fix options component dimensions (#135)
Mar 18, 2020
29f97ba
Prepare release 0.9.3 (#136)
DominikGuzei Apr 22, 2020
b4f07ea
[DDW-246]: Eliminate usage of deprecated lifecycle methods (#138)
May 27, 2020
16f5466
[DDW-733] Refactor jest setup (#139)
DominikGuzei Jun 1, 2020
a0dc895
[DDW-170] Improved Password input (#140)
DominikGuzei Jun 5, 2020
e87ff82
[DDW-170] Improve password repeat feature
DominikGuzei Jun 11, 2020
bfccf29
[DDW-170] Update changelog
DominikGuzei Jun 11, 2020
cbd1151
[DDW-170] Prepare changelog for vNext
DominikGuzei Jun 16, 2020
e22648a
0.9.4-rc.1
DominikGuzei Jun 16, 2020
51a737a
[DDW-170] Add className prop to password input
DominikGuzei Jun 16, 2020
e9138ad
0.9.4-rc.2
DominikGuzei Jun 16, 2020
e6ff12a
[DDW-170] Fix tooltip regression on hover
DominikGuzei Jun 16, 2020
f3619b5
0.9.4-rc.3
DominikGuzei Jun 16, 2020
461513e
[DDW-170] Fixes show on focus feature
DominikGuzei Jun 18, 2020
0b7d7a3
0.9.4-rc.4
DominikGuzei Jun 18, 2020
197dd77
[DDW-170] Make tooltip border-radius configurable
DominikGuzei Jun 18, 2020
c478052
0.9.4-rc.5
DominikGuzei Jun 18, 2020
e2c551c
[DDW-170] Remove margin from password input
DominikGuzei Jun 18, 2020
d4fed25
[DDW-170] Fix custom error logic
DominikGuzei Jun 18, 2020
3de12d4
0.9.4-rc.6
DominikGuzei Jun 18, 2020
1e6e315
[DDW-170] Fix pw input bg colors
DominikGuzei Jun 18, 2020
bb0aba5
0.9.4-rc.7
DominikGuzei Jun 18, 2020
e5bccd6
[DDW-170] Add dedicated flag for password repeats
DominikGuzei Jun 23, 2020
0816dc4
0.9.4-rc.8
DominikGuzei Jun 23, 2020
7a8de17
[DDW-170] Improve password repeat feature (#141)
DominikGuzei Jun 25, 2020
b083a4c
Merge remote-tracking branch 'origin/feature/ddw-170-improve-password…
DominikGuzei Jun 25, 2020
f150250
Merge branch 'master' into develop
DominikGuzei Jun 25, 2020
43520d2
Merge remote-tracking branch 'origin/master' into develop
DominikGuzei Jun 25, 2020
c2ce29a
Bump lodash from 4.17.15 to 4.17.19
dependabot[bot] Jul 16, 2020
ece6716
Merge pull request #143 from input-output-hk/dependabot/npm_and_yarn/…
MarcusHurney Jul 24, 2020
975e7c2
Bump elliptic from 6.4.0 to 6.5.3 (#144)
dependabot[bot] Aug 19, 2020
735a893
[issue-145] Remove deprecated postinstall-build package (#146)
DominikGuzei Sep 21, 2020
9b052b5
Bump lodash.merge from 4.6.1 to 4.6.2 (#148)
dependabot[bot] Sep 21, 2020
903c02a
Bump node-sass from 4.13.0 to 4.13.1 (#147)
dependabot[bot] Sep 21, 2020
a0226ae
[DDW-291] Add PopOver component (smarter tootips)
DominikGuzei Oct 19, 2020
371fc44
Prepare release candidate 0.9.6-rc.1
DominikGuzei Oct 19, 2020
f5d8f6d
0.9.6-rc.1
DominikGuzei Oct 19, 2020
4593f3e
[DDW-291] Allow popper options overrides
DominikGuzei Oct 27, 2020
b4e67e6
0.9.6-rc.2
DominikGuzei Oct 27, 2020
e3855a3
[DDW-291] Set PopOver default font to regular
DominikGuzei Oct 29, 2020
811119a
[DDW-291] Cleanup PopOver stylesheet comments
DominikGuzei Oct 29, 2020
e95b870
[DDW-291] update changelog
DominikGuzei Oct 29, 2020
b0b382b
0.9.6-rc.3
DominikGuzei Oct 29, 2020
f9b9479
Merge pull request #150 from input-output-hk/feature/ddw-291-smart-to…
DominikGuzei Nov 3, 2020
c44f6ef
0.9.6
DominikGuzei Nov 3, 2020
8289351
Merge branch 'master' into release/0.9.6
DominikGuzei Nov 3, 2020
1d8bb21
Merge pull request #151 from input-output-hk/release/0.9.6
DominikGuzei Nov 3, 2020
0c9325a
Merge pull request #152 from input-output-hk/master
DominikGuzei Nov 3, 2020
f10f5f8
[DDW-192] Add show-on-hover feature to pop over
DominikGuzei Nov 3, 2020
c67b9f6
[DDW-192] Use PopOver for password input tooltips
DominikGuzei Nov 4, 2020
f1c2207
[DDW-192] Match react peer dependency with Daedalus
DominikGuzei Nov 10, 2020
46b4d58
[DDW-192] Improve form fields ux with pop overs
DominikGuzei Nov 10, 2020
d03e3cd
0.9.7-rc.1
DominikGuzei Nov 10, 2020
8a7471f
[DDW-192] hide root theme variables provider from markup
DominikGuzei Nov 10, 2020
5389ee2
0.9.7-rc.2
DominikGuzei Nov 10, 2020
ea9d244
[DDW-192] Make password inputs full width by default
DominikGuzei Nov 12, 2020
094d48e
[DDW-192] Do not display empty pop overs
DominikGuzei Nov 12, 2020
eba06ac
[DDW-192] Improve form field input ref focus handling
DominikGuzei Nov 13, 2020
edde029
[DDW-192] Hide error tooltip on autocomplete open
DominikGuzei Nov 13, 2020
c78ed1f
[DDW-192] Add eslint prettier config
DominikGuzei Nov 13, 2020
d5d3bca
[DDW-192] Add requiredSelections option to autocomplete
DominikGuzei Nov 13, 2020
9626a07
0.9.7-rc.3
DominikGuzei Nov 13, 2020
a2e5d9b
[DDW-192] Improve emptiness check for tooltip content
DominikGuzei Nov 16, 2020
dbc38c0
0.9.7-rc.4
DominikGuzei Nov 16, 2020
6cce22e
[DDW-192] Remove form field error debouncing logic
DominikGuzei Nov 17, 2020
757faeb
0.9.7-rc.5
DominikGuzei Nov 17, 2020
b66520e
[DDW-192] Use default maxWidth of 350 pixels
DominikGuzei Nov 24, 2020
282cdfc
[DDW-192] Add default for popover content line-height
DominikGuzei Nov 24, 2020
eb1399b
0.9.7-rc.6
DominikGuzei Nov 24, 2020
8e1d1f8
Merge pull request #153 from input-output-hk/feature/ddw-192-improve-…
DominikGuzei Dec 9, 2020
093906c
[DDW-497] Improve autocomplete required selections ux
DominikGuzei Dec 9, 2020
a45f485
[DDW-497] Allow multiple required selection counts
DominikGuzei Dec 14, 2020
f6b0a2a
[DDW-497] Add changelog entry
DominikGuzei Dec 16, 2020
b5b2ab4
0.9.7-rc.7
DominikGuzei Dec 16, 2020
a26d0b7
[DDW-497] add default max length for password input
DominikGuzei Jan 4, 2021
9315fbe
0.9.7-rc.8
DominikGuzei Jan 4, 2021
5be4a37
[DDW-497] Fix typo in themes variable
DominikGuzei Jan 6, 2021
1dea5fc
0.9.7-rc.9
DominikGuzei Jan 6, 2021
a50eed2
[DDW-497] Add theme var for label top offset
DominikGuzei Jan 6, 2021
e715aef
0.9.7-rc.10
DominikGuzei Jan 6, 2021
919eb9f
[DDW-497] Invalidate passwords longer than max length
DominikGuzei Jan 8, 2021
d20ea7d
0.9.7-rc.11
DominikGuzei Jan 8, 2021
51642de
[DDW-543] Refactor Numeric Input to use bignumber.js
DominikGuzei Jan 22, 2021
88fc6d2
[DDW-543] Fixes multiple decimal separators bug
DominikGuzei Jan 25, 2021
b82d803
[DDW-543] Add descriptive labels to Numeric Input stories
DominikGuzei Jan 25, 2021
3bcaa36
[DDW-543] Fix bug with BACKSPACE skipping group separators
DominikGuzei Jan 25, 2021
3b7f024
[DDW-543] Fix tests and cleanup a bit
DominikGuzei Jan 25, 2021
0738bbe
[DDW-543] Update README and CHANGELOG
DominikGuzei Jan 25, 2021
846ce74
Merge pull request #154 from input-output-hk/feature/ddw-497-improve-…
DominikGuzei Jan 25, 2021
7ca101a
Merge branch 'develop' into feature/ddw-543-support-any-precision-in-…
DominikGuzei Jan 25, 2021
26684e0
0.9.7-rc.12
DominikGuzei Jan 25, 2021
83c8937
[DDW-543] Improve handling of empty values
DominikGuzei Jan 27, 2021
8b3ef68
0.9.7-rc.13
DominikGuzei Jan 27, 2021
489b255
[DDW-543] Fix rounding mode bug
DominikGuzei Jan 27, 2021
f447ca9
0.9.7-rc.14
DominikGuzei Jan 27, 2021
add79ca
[DDW-543] Correctly extend Input component
DominikGuzei Jan 27, 2021
ca178e1
0.9.7-rc.15
DominikGuzei Jan 27, 2021
a71dc44
[DDW-543] Fix bug with form field refs and hooks
DominikGuzei Jan 28, 2021
96991dd
0.9.7-rc.16
DominikGuzei Jan 28, 2021
b5c36b6
[DDW-543] Fix ref issue and numeric input IO
DominikGuzei Jan 28, 2021
693f82f
0.9.7-rc.17
DominikGuzei Jan 28, 2021
cc6b85b
Merge pull request #156 from input-output-hk/feature/ddw-543-support-…
nikolaglumac Jan 29, 2021
0044b1d
Merge branch 'feature/ddw-543-support-any-precision-in-numeric-input'…
DominikGuzei Jan 29, 2021
68c265e
Prepare release/0.9.7
DominikGuzei Jan 29, 2021
a0b7640
0.9.7
DominikGuzei Jan 29, 2021
1ae0dda
Merge pull request #158 from input-output-hk/release/0.9.7
DominikGuzei Jan 29, 2021
b52fed4
Bump ini from 1.3.5 to 1.3.8
dependabot[bot] Jan 29, 2021
713608a
Fix NumericInput on BigNumber.DEBUG
SebastienGllmt Feb 15, 2021
72b311f
Merge pull request #159 from SebastienGllmt/fix-debug-bignumber
DominikGuzei Feb 15, 2021
6ec3793
Merge branch 'develop' into dependabot/npm_and_yarn/ini-1.3.8
DominikGuzei Feb 15, 2021
65a7896
Merge pull request #157 from input-output-hk/dependabot/npm_and_yarn/…
DominikGuzei Feb 15, 2021
93dfc4c
Fix numeric input bug introduced in #159
DominikGuzei Feb 15, 2021
c04959e
Merge branch 'develop' of github.com:input-output-hk/react-polymorph …
DominikGuzei Feb 15, 2021
d936243
[DDW-550] Add className prop
topseniors Feb 19, 2021
db90793
Merge pull request #161 from input-output-hk/chore/ddw-550-add-classN…
DominikGuzei Feb 19, 2021
77bd247
[DDW-544] Use tippy props for handling hover/click
DominikGuzei Feb 11, 2021
2489ea6
0.9.8-rc.1
DominikGuzei Feb 11, 2021
5b8f20a
[DDW-544] Avoid showing empty pop overs
DominikGuzei Feb 13, 2021
11e2d96
0.9.8-rc.2
DominikGuzei Feb 13, 2021
40a5cf1
[DDW-544] Remove unused showing on hover prop
DominikGuzei Feb 15, 2021
160c8f5
0.9.8-rc.3
DominikGuzei Feb 15, 2021
bf98fc4
[DDW-544] Refactor PopOver to controlled visibility
DominikGuzei Feb 16, 2021
b799b93
0.9.8-rc.4
DominikGuzei Feb 16, 2021
5edfd4d
[DDW-544] Use BigNumber debug mode more carefully
DominikGuzei Feb 17, 2021
052ac4e
[DDW-544] Add pop over delay story
DominikGuzei Feb 17, 2021
bc8cdd6
[DDW-544] Add changelog entry
DominikGuzei Feb 17, 2021
1971bc3
0.9.8-rc.5
DominikGuzei Feb 17, 2021
b223d6e
[DDW-544] Fix css var for pop over padding
DominikGuzei Feb 17, 2021
d6b3357
0.9.8-rc.6
DominikGuzei Feb 17, 2021
c628110
[DDW-544] Fix bug with decimal separator handling
DominikGuzei Feb 18, 2021
0c3de8b
0.9.8-rc.7
DominikGuzei Feb 18, 2021
866c2a3
[DDW-544] Handle invalid BigNumbers in NumericInput
DominikGuzei Feb 18, 2021
a118073
0.9.8-rc.8
DominikGuzei Feb 18, 2021
8caa56a
0.9.8-rc.9
DominikGuzei Feb 19, 2021
a4f1f80
[DDW-544] Update tippyjs-react to 4.2.1
DominikGuzei Feb 25, 2021
c2afb7a
0.9.8-rc.10
DominikGuzei Feb 25, 2021
0658308
[DDW-544] Handle lonely group separator in NumericInput
DominikGuzei Feb 25, 2021
849b5d6
0.9.8-rc.11
DominikGuzei Feb 25, 2021
af6b023
DDW-603 - Enable pasting of wallet recovery phrase - updating logic f…
DeeJayElly Mar 17, 2021
14351d4
DDW-603 - Enable pasting of wallet recovery phrase - improving parsin…
DeeJayElly Mar 17, 2021
3549c74
DDW-603 - Enable pasting of wallet recovery phrase - skipping all val…
DeeJayElly Mar 17, 2021
b5d9c2e
DDW-603 - Enable pasting of wallet recovery phrase - liner fixes
DeeJayElly Mar 17, 2021
a459148
DDW-603 - Enable pasting of wallet recovery phrase - fixes for recove…
DeeJayElly Mar 18, 2021
11bc0b6
DDW-603 - Enable pasting of wallet recovery phrase - review updates
DeeJayElly Mar 18, 2021
4e160ba
DDW-603 - Enable pasting of wallet recovery phrase - fixing single se…
DeeJayElly Mar 18, 2021
b3f1728
Merge pull request #160 from input-output-hk/chore/ddw-544-use-popove…
DominikGuzei Mar 19, 2021
8478f4b
Merge branch 'develop' into feature/ddw-603-enable-pasting-of-wallet-…
DominikGuzei Mar 19, 2021
0e6f2ac
[DDW-603] Add changelog entry
DominikGuzei Mar 19, 2021
5dbc0f3
0.9.8-rc.12
DominikGuzei Mar 19, 2021
2e53b5b
DDW-603 - Enable pasting of wallet recovery phrase - fixing multiple …
DeeJayElly Mar 20, 2021
4f021fd
DDW-603 - Enable pasting of wallet recovery phrase - fixing multiple …
DeeJayElly Mar 23, 2021
7bd7a44
DDW-603 - Enable pasting of wallet recovery phrase - updates for max …
DeeJayElly Mar 25, 2021
f1852f7
DDW-603 - Enable pasting of wallet recovery phrase - updates for empt…
DeeJayElly Mar 25, 2021
1833629
DDW-603 - Enable pasting of wallet recovery phrase - updates for empt…
DeeJayElly Mar 29, 2021
98decb0
Merge pull request #163 from input-output-hk/feature/ddw-603-enable-p…
DominikGuzei Mar 29, 2021
c49c6c4
[DDW-620] search props for Input component
thedanheller Mar 30, 2021
df724b8
[DDW-620] search props for Select component
thedanheller Mar 31, 2021
8d64d7f
[DDW-620] CHANGELOG entry
thedanheller Mar 31, 2021
0da029b
[DDW-620] Basic filtering
thedanheller Mar 31, 2021
c3ba6cf
[DDW-620] Correct custom search function
thedanheller Mar 31, 2021
eddf99b
[DDW-620] Includes important country, for testing purposes
thedanheller Mar 31, 2021
c3573d7
[DDW-620] Integrate with `optionRenderer`
thedanheller Mar 31, 2021
66ffc61
[DDW-620] Magnifier icon
thedanheller Apr 1, 2021
a857990
DDW-602 - Improve PIN entry component UX
DeeJayElly Apr 1, 2021
0c26bfd
DDW-602 - Improve PIN entry component UX - adding changelog
DeeJayElly Apr 1, 2021
fdf4b11
[DDW-620] More specific CHANGELOG entry
thedanheller Apr 1, 2021
d75a8f1
[DDW-620] Remove DS_Store files
thedanheller Apr 1, 2021
90d371d
DDW-602 - Improve PIN entry component UX - updating param name and regex
DeeJayElly Apr 1, 2021
91f0b82
DDW-602 - Improve PIN entry component UX - updating param name and regex
DeeJayElly Apr 1, 2021
5dad67d
[DDW-620] Highlight search
thedanheller Apr 1, 2021
a4852d2
[DDW-620] Highlight search - small adjustments
thedanheller Apr 1, 2021
974206c
DDW-602 - Improve PIN entry component UX - updating stories
DeeJayElly Apr 2, 2021
8dea597
DDW-602 - Improve PIN entry component UX - updating integer formattin…
DeeJayElly Apr 2, 2021
4d17913
[DDW-588] Refuse inserts over decimal separator
DominikGuzei Apr 2, 2021
8e513d0
[DDW-588] Add changelog entry
DominikGuzei Apr 2, 2021
93174b2
DDW-602 - Improve PIN entry component UX - updating integer formattin…
DeeJayElly Apr 4, 2021
999bdad
Merge pull request #166 from input-output-hk/feature/ddw-602-improve-…
DominikGuzei Apr 5, 2021
61c4426
0.9.8-rc.13
DominikGuzei Apr 5, 2021
c3e94a0
0.9.8-rc.14
DominikGuzei Apr 5, 2021
1d85aca
[DDW-620] Ignores DS_Store files
thedanheller Apr 5, 2021
c3f92db
Merge branch 'develop' into feature/ddw-620-extend-react-polymorph-dr…
thedanheller Apr 5, 2021
1d245b6
[DDW-620] Remove incorrect tip color when search is active
thedanheller Apr 5, 2021
c7e055c
[DDW-588] Re-enable typing after clearing numeric input
DominikGuzei Apr 5, 2021
2bc171e
[DDW-620] Focus search input on open
thedanheller Apr 5, 2021
41a3769
[DDW-620] Selects search input text on open
thedanheller Apr 5, 2021
58ae430
`rtl` support
thedanheller Apr 5, 2021
e1a1982
[DDW-620] Implement Clear button
thedanheller Apr 6, 2021
64e6373
[DDW-620] Fix no-result height
thedanheller Apr 6, 2021
a257bd4
[DDW-620] Remove hard-coded open Select
thedanheller Apr 6, 2021
769e879
[DDW-620] Fix error that prevented space in the search
thedanheller Apr 6, 2021
5116113
[DDW-620] Fix error that prevented space in the search
thedanheller Apr 6, 2021
eaedfcf
Merge branch 'develop' into fix/ddw-588-fix-numeric-input-decimal-sep…
DominikGuzei Apr 7, 2021
72f7140
[DDW-620] Remove the search box from the scrollable area
thedanheller Apr 7, 2021
f3c3243
[DDW-620] Remove create-react-ref pkg
thedanheller Apr 7, 2021
d8583f6
[DDW-620] Better function naming
thedanheller Apr 7, 2021
e258e18
[DDW-620] Remove unecessary Skin
thedanheller Apr 7, 2021
ec2df6a
[DDW-620] Many adjustments
thedanheller Apr 7, 2021
b14deff
[DDW-620] Protect search input styling
thedanheller Apr 7, 2021
64b186e
[DDW-620] Remove duplicated CSS rules
thedanheller Apr 7, 2021
d95437d
Remove console log
thedanheller Apr 7, 2021
6d5d451
[DDW-620] Implement no-results
thedanheller Apr 7, 2021
832af7b
Merge pull request #167 from input-output-hk/fix/ddw-588-fix-numeric-…
DominikGuzei Apr 7, 2021
c33be14
[DDW-620] Search input default bg color
thedanheller Apr 8, 2021
52716fc
[DDW-620] Add CSS variables to the API
thedanheller Apr 8, 2021
717f60c
[DDW-620] Add new CSS variables to the API and adjustments
thedanheller Apr 8, 2021
a661d8d
[DDW-620] Escaped characters
thedanheller Apr 8, 2021
eb6479d
Merge branch 'develop' into feature/ddw-620-extend-react-polymorph-dr…
thedanheller Apr 8, 2021
87069fc
[DDW-620] Filter escaped valeus
thedanheller Apr 8, 2021
3b63c2f
Merge pull request #165 from input-output-hk/feature/ddw-620-extend-r…
DominikGuzei Apr 8, 2021
f87ba7b
0.9.8-rc.15
DominikGuzei Apr 8, 2021
f3240b1
Fixes broken createRef without React.
thedanheller Apr 8, 2021
6f1ad9e
Merge pull request #169 from input-output-hk/fix/fix-broken-createref
DominikGuzei Apr 8, 2021
6b60c51
0.9.8-rc.16
DominikGuzei Apr 8, 2021
1b7dab0
[DDW-646] Fixes Select search highlight color variable
thedanheller Apr 9, 2021
c155e43
[DDW-646] CHANGELOG
thedanheller Apr 9, 2021
94bdd98
Merge pull request #170 from input-output-hk/fix/ddw-646-fix-select-s…
DominikGuzei Apr 10, 2021
5554a51
Merge branch 'develop' of github.com:input-output-hk/react-polymorph …
DominikGuzei Apr 12, 2021
f3b5cf6
DDW-645 - Update react-polymorph and implement the search style varia…
DeeJayElly Apr 14, 2021
e0fbba0
DDW-645 - Update react-polymorph and implement the search style varia…
DeeJayElly Apr 14, 2021
ae885ae
0.9.8-rc.17
DominikGuzei Apr 15, 2021
00e626c
Merge pull request #171 from input-output-hk/feature/645-update-react…
DominikGuzei Apr 16, 2021
68ebb99
Move storybook knobs addon to dev dependencies
DominikGuzei Apr 16, 2021
93e3ecb
0.9.8-rc.18
DominikGuzei Apr 16, 2021
0e9f075
Merge pull request #172 from input-output-hk/fix/wrong-dependencies
DominikGuzei Apr 16, 2021
58f382a
[DDW-595] Improve configurability of Input error handling
DominikGuzei Apr 16, 2021
d45535e
0.9.8-rc.19
DominikGuzei Apr 16, 2021
5fd08e1
[DDW-645] Add key prop to highlight element
thedanheller Apr 19, 2021
6c206a4
[DDW-645] Styling fixes
thedanheller Apr 19, 2021
ca76f01
[DDW-645] CHANGELOG entry
thedanheller Apr 19, 2021
772e120
[DDW-645] Remove yarnrc file as it makes trouble on netlify
DominikGuzei Apr 20, 2021
97e1d38
Merge pull request #175 from input-output-hk/feature/featureddw-645-u…
DominikGuzei Apr 20, 2021
a852039
Merge branch 'develop' into feature/ddw-595-improve-input-popover-han…
DeeJayElly Apr 20, 2021
6543f3a
Document new release management
DominikGuzei Apr 22, 2021
a6a0df2
[DDW-595] Add changelog entry
DominikGuzei Apr 22, 2021
1006e1b
Use master as stable branch for releases
DominikGuzei Apr 23, 2021
165355b
Merge pull request #177 from input-output-hk/chore/release-management
DominikGuzei Apr 23, 2021
c3438c9
[DDW-595] Fix failing tests
DominikGuzei Apr 23, 2021
6a727ea
Merge branch 'develop' into feature/ddw-595-improve-input-popover-han…
DominikGuzei Apr 23, 2021
8641297
[DDW-595] Add Github workflow for automated testing
DominikGuzei Apr 23, 2021
e30e969
Merge branch 'feature/ddw-595-improve-input-popover-handling' of gith…
DominikGuzei Apr 23, 2021
418853b
0.9.7-next.1
DominikGuzei Apr 24, 2021
dcdac93
[DDW-595] Improve npm release instructions
DominikGuzei Apr 24, 2021
5b5c204
Merge pull request #173 from input-output-hk/feature/ddw-595-improve-…
DominikGuzei Apr 28, 2021
6224730
1.0.0-rc.1
DominikGuzei Apr 28, 2021
2cfeb62
Merge branch 'fix/ddw-662-fix-react-polymorph-select-search-issues' i…
thedanheller May 4, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"extends": [
"airbnb",
"plugin:flowtype/recommended",
"plugin:react/recommended"
"plugin:react/recommended",
"prettier",
"prettier/babel",
"prettier/flowtype",
"prettier/react"
],
"env": {
"browser": true,
Expand Down Expand Up @@ -31,16 +35,21 @@
},
"allowChildren": true
}],
"lines-between-class-members": "off",
"react/destructuring-assignment": "off",
"react/no-did-mount-set-state": "off",
"react/jsx-no-bind": "off",
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }],
"react/jsx-closing-bracket-location": 1,
"react/jsx-props-no-spreading": "off",
"react/prefer-stateless-function": "off",
"react/no-unused-prop-types": "off",
"react/prop-types": 0,
"react/require-default-props": "off",
"react/sort-comp": 0,
"react/display-name": ["off", { "ignoreTranspilerName": false }],
"react/default-props-match-prop-types": ["error", { "allowRequiredDefaults": true }],
"react/static-property-placement": 0,
"class-methods-use-this": 0,
"no-duplicate-imports": 0,
"no-param-reassign": 0,
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install modules
run: yarn
- name: run tests
run: yarn test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ jspm_packages

# Editors
.idea

# OSX
.DS_Store
41 changes: 41 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,47 @@ The history of all changes to react-polymorph.
vNext
=====

### Breaking Changes :boom:

- `Input` now shows errors on hover and focus by default which can be configured via two new props:

```ts
isShowingErrorOnFocus: boolean,
isShowingErrorOnHover: boolean,
```

### Features :sparkles:

- `Input` now accepts a new prop `themeVariables` which can be used to override css variables ([PR 173](https://github.com/input-output-hk/react-polymorph/pull/173))
- Implemented the search functionality to the Options component ([PR 165](https://github.com/input-output-hk/daedalus/pull/165))
- Improved PIN entry component UX ([PR 166](https://github.com/input-output-hk/react-polymorph/pull/166))
- Enabled pasting of multiple words into Autocomplete ([PR 163](https://github.com/input-output-hk/react-polymorph/pull/163))

### Fixes :muscle:

- Fixed Select search issues([PR 179](https://github.com/input-output-hk/react-polymorph/pull/179))
- Fixed Select Search styles and minor code issues ([PR 175](https://github.com/input-output-hk/react-polymorph/pull/175))
- Fixed a wrong variable name for the select search highlight color ([PR 170](https://github.com/input-output-hk/react-polymorph/pull/170))
- Fixed an issue related to Numeric Input when entering numbers after having selected the decimal separator ([PR 167](https://github.com/input-output-hk/react-polymorph/pull/167))
- Fixed issues related to controlled/uncontrolled Tippy state ([PR 160](https://github.com/input-output-hk/react-polymorph/pull/160))
- Fixed `NumericInput` to support DEBUG mode ([PR 159](https://github.com/input-output-hk/react-polymorph/pull/159))

0.9.7
=====

### Features

- Improve `NumericInput` component to support big numbers ([PR 152](https://github.com/input-output-hk/react-polymorph/pull/152))
- Improve autocomplete required selections ux ([PR 154](https://github.com/input-output-hk/react-polymorph/pull/154))
- Improve `FormField` UX by using pop overs to show errors ([PR 151](https://github.com/input-output-hk/react-polymorph/pull/151)

0.9.6
=====

### Features

- Added `PopOver` component (aka Smart Tooltips) ([PR 150](https://github.com/input-output-hk/react-polymorph/pull/150)

0.9.5
=====

Expand Down
121 changes: 84 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,56 @@ const SimpleFormApp = () => (
);
```

### Components and Skins
## Release Managament

- Starting with `1.0.0` all future releases will follow semver semantics:
- `patch` (eg: 1.0.x) for **API compatible bug fixes**
- `minor` (eg.: 1.x.0) for **API compatible new features**
- `major` (eg: 2.0.0) for **API breaking changes**

- For early integration of upcoming release changes we use the following conventions:

- `[current version]-next.x` to tag changes for upcoming releases (as we cannot know the necessary
semver for the final release including all the changes). `x` in this case is simply a number that
is increased and can be thought of like "slots" for temporary releases

- All temporary releases should be published with the `next` npm dist tag via: `npm publish --tag next`
so that they are not automatically tagged with the default `latest` npm tag.

- The `master` branch only includes commits of final releases

- `release/x.x.x` branches are created as soon as we cut a release and know the correct semver - they
are always targeting the `master` branch + should be well documented. They can include many release
candidates which should be tagged like `[next releaes]-rc.X` where you increment X per release candidate
until we are confident that the release is ready to be published under its normal version.

### How to publish a temporary release

Temporary releases are useful for testing specific changes in your project PRs without making public
releases that might confuse others and are not following semver.

1. Create a dedicated branch for your bug/feature/chore
2. Run `npm view react-polymorph dist-tags.next` to see the latest release version the `next` npm dist-tag is currently pointing to
(this will look something like this: `1.0.0-next.1`)
3. Increase the `next.X` number by one (e.g: `npm version 1.0.0-next.2`) to create a new git tag via.
4. Publish the release candidate with `npm publish --tag next` (to assign the `next` dist-tag instead of `latest`)
5. Reference your release candidate version in your project PR

### How to publish a stable release

Stable releases are the next public version change of react-polymorph combining all previous temporary
releases into a semver based release:

1. Create a new `release/x.x.x` branch based on `develop` (following semver based on changelog)
2. Update the version in `package.json` to the planned release version (do not tag it)
3. Update the `CHANGELOG.md` to assign the new release version to the last changes and upcoming changes
3. Setup a PR targetting `master` for the relase branch on Github and document the changes since last release
4. Publish a release candidate to npm (e.g: `1.0.1-rc.1`)
5. Integrate and test the release candidate
6. Iterate on the release via release candidates until its ready to be merged
7. Merge the release PR into `master` on Github and then `master` back into `develop`

## Components and Skins

React-polymorph comes with simple themes & skins out of the box, but anything is customizable.

Expand Down Expand Up @@ -166,51 +215,39 @@ import { NumericInput } from "react-polymorph/lib/components";
import { InputSkin } from "react-polymorph/lib/skins/simple";

const MyNumericInput = () => (
<NumericInput // notice the different logic component!
skin={InputSkin} // but the same skin!
<NumericInput
label="Amount"
placeholder="0.000000"
numberLocaleOptions={{ maximumFractionDigits: 6 }}
decimalPlaces={6}
bigNumberFormat={{ decimalSeparator: '.', groupSeparator: ',' }}
/>
);
```


_Side Note: this shows how you can make/use specialized versions of basic components by composition
(reusing the `InputSkin` with a specialized logic component) - a core idea of react-polymorph!_

##### Expected Behavior & Limitations:
##### Expected Behavior:

Since there is no web standard on how to build numeric input components, here is the specification we
came up with that serves our purposes in the best way:

- Only numeric inputs that are representable by Javascript numbers are valid. This is guarded by `Number.MIN_SAFE_INTEGER`
(-9007199254740991) and `Number.MAX_SAFE_INTEGER` (9007199254740991) but since also fractions need to
represented, the calculation for the maximum integer part goes like this:
`Number.MAX_SAFE_INTEGER / 10 ** (maximumFractionDigits + 1)` (which basically means that one integer digit is lost for
each supported fraction digit). For `maximumFractionDigits == 3` this results in
`9007199254740991 / 10 ** 4 == 900719925474.099` being the biggest number that can be entered.
- Only numeric digits `[0-9]` and dots `.` can be entered.
- Only numeric digits `[0-9]` and decimal separators (configurable via `bigNumberFormat` prop) can be entered.
- When invalid characters are pasted as input, nothing happens
- When a second dot is entered it replaces the existing one and updates the fraction part accordingly
- Commas cannot be deleted but the cursor should jump over them when DEL or BACKSPACE keys are used
- The fraction dot can only be deleted if `minimumFractionDigits` is not defined or
if the resulting number does not exceed the numeric limits!
- It's possible to replace the whole number or parts of it (even the dot) by inserting another number.
- If the fraction dot is deleted but the resulting number is too big the cursor jumps over the dot without deletion
- If you insert a digit but the resulting number would exceed the numeric limit, nothing happens
- When a second decimal separators is entered it replaces the existing one and updates the fraction part accordingly
- Group separators cannot be deleted but the cursor should jump over them when DEL or BACKSPACE keys are used
- It's possible to replace the whole number or parts of it (even the decimal separator) by inserting another number.

##### Props:

The `NumericInput` is based on the `Input` component and extends it's functionality:

```js
type NumericInputProps = {
// Input props:
autoFocus?: boolean,
className?: string,
context: ThemeContextProp,
disabled?: boolean,
error?: string,
label?: string | Element<any>,
numberLocaleOptions?: Number$LocaleOptions,
onBlur?: Function,
onChange?: Function,
onFocus?: Function,
Expand All @@ -220,26 +257,36 @@ type NumericInputProps = {
theme: ?Object,
themeId: string,
themeOverrides: Object,
useDynamicDigitCalculation: boolean,
value: ?number,
// Numeric input specific props:
allowSigns?: boolean,
bigNumberFormat?: BigNumber.Format,
decimalPlaces?: number,
roundingMode?: BigNumber.RoundingMode,
value: ?BigNumber.Instance,
};
```

###### `numberLocaleOptions`
###### `value`

Must be an instance of [BigNumber](https://mikemcl.github.io/bignumber.js)
`onChange` also returns an instance of `BigNumber` after any user changes.

###### `allowSigns`

Is `true` by default, if `false` the user cannot enter negative numbers.

###### `decimalPlaces`

No restriction by default (any number of decimal places allowed).
Can be set to fix the decimal places to a specific amount.

`Number.toLocaleString()` is used internally to localize the given number value. This method takes options
explained in greater detail in the
[MDN web docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString)
###### `bigNumberFormat`

The most important parts are `maximumFractionDigits` (defaults to 3 as per web standard) and `minimumFractionDigits`
which dictate the handling of fraction digits.
You can configure the number format by passing in any valid [bignumber.js FORMAT option](https://mikemcl.github.io/bignumber.js/#format)

###### `useDynamicDigitCalculation`
###### `roundingMode`

This is an optional mode that "sacrifices" simple, clear UX in favor of being able to enter bigger numbers.
Basically it works the same way but it dynamically calculates how large the integer part of the number can
be based on the actual fraction digits entered. The less fraction digits, the more integer digits are possible
and vice versa.
You can configure the rounding mode by passing in any valid [bignumber.js ROUNDING_MODE option](https://mikemcl.github.io/bignumber.js/#rounding-mode)

---

Expand Down
45 changes: 13 additions & 32 deletions __tests__/FormField.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,42 +6,23 @@ import { renderInSimpleTheme } from './helpers/theming';
const renderFormField = () => <div className="render-prop" />;

test('FormField renders correctly', () => {
expect(renderInSimpleTheme(
<FormField render={renderFormField} />
)).toMatchSnapshot();
expect(
renderInSimpleTheme(<FormField render={renderFormField} />)
).toMatchSnapshot();
});

test('FormField renders with label', () => {
expect(renderInSimpleTheme(
<FormField
label="Add a Label"
render={renderFormField}
/>
)).toMatchSnapshot();
});

test('FormField renders with an error', () => {
expect(renderInSimpleTheme(
<FormField
error="Add an Error"
render={renderFormField}
/>
)).toMatchSnapshot();
});

test('FormField is disabled', () => {
expect(renderInSimpleTheme(
<FormField
disabled
render={({ disabled }) => <span>{disabled.toString()}</span>}
/>
)).toMatchSnapshot();
expect(
renderInSimpleTheme(
<FormField label="Add a Label" render={renderFormField} />
)
).toMatchSnapshot();
});

test('FormField renders an input element', () => {
expect(renderInSimpleTheme(
<FormField
render={() => <input className="render-prop" />}
/>
)).toMatchSnapshot();
expect(
renderInSimpleTheme(
<FormField render={() => <input className="render-prop" />} />
)
).toMatchSnapshot();
});
Loading