275 Commits

Author SHA1 Message Date
Kevin Qi
e283eb9060 move migration guide to UPGRADING.md, and link to it in README 2019-05-11 22:51:17 -07:00
Kevin Qi
581ebbe355 update CircularProgressbarWithChildren screenshot example 2019-05-11 22:35:04 -07:00
Kevin Qi
97797d2c49 add documentation on CircularProgressbarWithChildren to README 2019-05-11 22:30:59 -07:00
Kevin Qi
b409ad873e update README to replace props.percentage with props.value 2019-05-11 22:18:21 -07:00
Kevin Qi
9a1529d33d update the 'animating text' readme section 2019-05-11 22:07:56 -07:00
Kevin Qi
f572a6f5df refactor AnimatedProgressbar -> AnimatedProgressProvider 2019-05-11 21:55:28 -07:00
Kevin Qi
72f3df93b4 add pathTransition to buildStyles as an option 2019-05-11 21:54:37 -07:00
Kevin Qi
2a03673856 documentation tweaks 2019-05-11 21:37:35 -07:00
Kevin Qi
dd4980d517 fix spacing of content coming after CircularProgressbarWithChildren by adding an additional wrapping div 2019-05-11 21:37:18 -07:00
Kevin Qi
a0f2906976 Revert "temporarily undo README changes, which document v2 stuff that hasn't been released yet"
This reverts commit 393697980ffe562ba39e66096a9d174c4e074013.
2019-05-11 21:24:10 -07:00
Kevin Qi
3da2f0b736 rewrite ChangingProgressbar to ChangingProgressbarProvider 2019-05-11 21:22:05 -07:00
Kevin Qi
5b19379f54 rename PercentageProvider 2019-05-11 21:02:44 -07:00
Kevin Qi
5982419e7c
Merge pull request #89 from kevinsqi/value-prop
Replace props.percentage with props.value, and add minValue and maxValue
2019-05-11 15:56:32 -07:00
Kevin Qi
032aaa9e9a refactor tests, add expectPathPercentageToEqual test helper 2019-05-11 15:49:53 -07:00
Kevin Qi
a828c52ae4 fix bug in pathRatio calculation for negative numbers, add tests 2019-05-11 15:18:00 -07:00
Kevin Qi
af4775625e set value boundaries in CircularProgressbar, instead of in Path 2019-05-11 14:55:21 -07:00
Kevin Qi
397e623a2a fix tests by replace props.percentage with value 2019-05-11 14:49:45 -07:00
Kevin Qi
c628f1ed56 make maxValue default to 100 instead of 1 2019-05-11 14:30:41 -07:00
Kevin Qi
12428508a2 convert props.percentage to value/minValue/maxValue 2019-05-11 14:11:17 -07:00
Kevin Qi
f068880454 reorder prop lists to be alphabetically sorted 2019-05-11 13:57:22 -07:00
Kevin Qi
109b1069f0 remove unused CircularProgressbarState type 2019-05-11 13:51:42 -07:00
Kevin Qi
18714853c4 switch from Path.percentage to Path.dashRatio 2019-05-11 13:49:56 -07:00
Kevin Qi
26fb858de6
Merge pull request #88 from kevinsqi/remove-initialAnimation-prop
Remove initialAnimation prop in favor of percentage being controlled externally
2019-05-11 13:25:43 -07:00
Kevin Qi
b9fea9c7c2 implement a PercentageProvider renderprop wrapper to replace initialAnimation, in demos 2019-05-11 13:22:39 -07:00
Kevin Qi
1595c14360 remove initialAnimation prop 2019-05-10 23:28:24 -07:00
Kevin Qi
5f1ec6ac2d update favicon 2019-05-05 22:49:50 -07:00
Kevin Qi
561d393106
Merge pull request #87 from kevinsqi/overlay-wrapper
Add <CircularProgressbarWithChildren /> wrapper component
2019-05-05 22:38:17 -07:00
Kevin Qi
2ffb887558 add tests, don't render children wrapper if not needed 2019-05-05 22:28:22 -07:00
Kevin Qi
1fdb87e49a make it so CircularProgressbarWithChildren can center arbitrary content WITHOUT specifying outer container width/height explicitly 2019-05-05 21:44:24 -07:00
Kevin Qi
0d396e0e1a WIP adding CircularProgressbarWithChildren wrapper component 2019-05-04 16:50:08 -07:00
Kevin Qi
393697980f temporarily undo README changes, which document v2 stuff that hasn't been released yet 2019-05-04 16:07:40 -07:00
Kevin Qi
242ecf0c73
Merge pull request #86 from kevinsqi/version-2
Add buildStyles utility, and make CircularProgressbar a named import
2019-05-04 16:03:53 -07:00
Kevin Qi
d41cd6c140 have buildStyles strip undefined values out, add tests, update README 2019-05-04 15:52:34 -07:00
Kevin Qi
66c5a41ac6 tweak demo style 2019-05-04 15:14:12 -07:00
Kevin Qi
79ca01a47e update README with new named import and buildStyles 2019-05-04 14:06:27 -07:00
Kevin Qi
4210a6459f measure pathTransitionDuration in seconds, use in demo 2019-05-04 14:06:13 -07:00
Kevin Qi
469905fffe fix test import 2019-05-04 14:01:32 -07:00
Kevin Qi
f58b67b535 switch CircularProgressbar to be a named export, to prevent mixing named and default exports 2019-05-04 13:22:07 -07:00
Kevin Qi
652eef73e0 type prop.styles using React.CSSProperties, fix related typing mistakes 2019-05-04 13:18:07 -07:00
Kevin Qi
af3955cb12 extract types into types.ts file 2019-05-04 13:04:10 -07:00
Kevin Qi
cdb2f8a3a0 add { buildStyles } exported function, which helps build a styles object 2019-05-04 12:56:39 -07:00
Kevin Qi
51ed7bff83 fix css comment 2019-05-03 09:54:39 -07:00
Kevin Qi
f24f78fa5f
Merge pull request #85 from soroushchehresa/patch-1
Fix styles file src
2019-05-03 09:52:57 -07:00
Soroush Chehresa
3fa432cacd
Fix styles file src 2019-05-03 18:10:58 +04:30
Kevin Qi
c02a34d3f1 update CHANGELOG 2019-05-02 23:25:47 -07:00
Kevin Qi
95bd70e8c5 1.2.1 v1.2.1 2019-05-02 23:21:22 -07:00
Kevin Qi
f1b2b3d6ec
Merge pull request #84 from kevinsqi/extract-path-component
Extract Path component into separate file
2019-05-02 23:19:38 -07:00
Kevin Qi
f65a8e56db extract Path.tsx, rename the constants 2019-05-02 23:15:57 -07:00
Kevin Qi
d7a19730b0
Merge pull request #83 from kevinsqi/rollup
Use Rollup to build package
2019-05-02 23:10:47 -07:00
Kevin Qi
ba6b1e8ca8 configure to use rollup for compilation instead of tsc 2019-05-02 22:51:33 -07:00