260 Commits

Author SHA1 Message Date
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
Kevin Qi
d4b3c455b1 add rollup deps 2019-05-02 22:28:56 -07:00
Kevin Qi
0314a8453f add explanatory comments, tweak-refactor dashoffset calculation 2019-05-02 22:04:59 -07:00
Kevin Qi
1db2c4aade update changelog 2019-04-28 21:29:10 -07:00
Kevin Qi
0b5a3a5bc1 1.2.0 v1.2.0 2019-04-28 21:11:50 -07:00
Kevin Qi
d71ad84bdb
Merge pull request #80 from kevinsqi/add-dashboard-style
Add props.circleRatio to enable partial diameter "car speedometer" style
2019-04-28 20:58:38 -07:00
Kevin Qi
d10f69612d add prop to README 2019-04-28 18:12:07 -07:00
Kevin Qi
3148715818 add tests for circleRatio 2019-04-28 18:09:21 -07:00
Kevin Qi
998bb89d92 add speedometer and react-move examples 2019-04-28 17:22:49 -07:00
Kevin Qi
3df9aa545d click button to toggle extended examples 2019-04-28 15:32:28 -07:00
Kevin Qi
fe5370c76d fix tests by using mount instead of shallow, and by using wrapper.find.hostNodes (https://github.com/airbnb/enzyme/issues/1253) 2019-04-28 15:32:28 -07:00
Kevin Qi
760d566e31 add circleRatio prop, make it work 2019-04-28 15:32:28 -07:00
Kevin Qi
7cd9e97c16 WIP extracting Path component for both path+trail 2019-04-28 15:32:28 -07:00
Kevin Qi
8d852a7137 make trail use round linecap, which comes into play when trail doesn't cover full diameter 2019-04-28 15:32:28 -07:00
Kevin Qi
df22c2b2a1 add demos for dashboard style 2019-04-28 15:32:22 -07:00
jeremy
0f8ce7e3b2 add dashboard style with gap 2019-04-25 23:49:47 -07:00