41 Commits

Author SHA1 Message Date
Kevin Qi
8a5a31de15 move build => dist, include styles.css in dist 2018-02-10 22:44:38 -08:00
Kevin Qi
bbc8bba178 add styles prop to README and demo 2018-01-29 23:04:39 -08:00
antoniogiordano
d55cc6408a Added styles prop to add inline styles to Progress objects 2018-01-21 16:52:21 +01:00
Kevin Qi
4db3282747 add comments for getPathDescription 2017-12-17 15:52:00 -08:00
Kevin Qi
d933206078 remove magic numbers and use constants 2017-12-17 15:49:57 -08:00
Kevin Qi
8b444c770e WIP, add counterclockwise prop 2017-12-17 15:13:53 -08:00
Kevin Qi
0e2a84f4eb more specific proptype declaration 2017-10-14 00:32:00 -07:00
Kevin Qi
f968ec68c6 add classes.background 2017-10-14 00:15:11 -07:00
Andy Edwards
3f8da116cb fix(index): support classes prop 2017-10-14 00:10:47 -07:00
Kevin Qi
60f5ba371c tweak JSX formatting 2017-10-13 23:33:41 -07:00
Andy Edwards
cc63394466 fix eslint errors 2017-10-13 23:21:51 -07:00
Andy Edwards
7cc5891bdb fix eslint errors 2017-10-13 23:21:51 -07:00
Andy Edwards
1d7d84cc7b don't render <text> if textForPercentage is falsy or returns falsy
fix #24
2017-10-13 23:21:51 -07:00
Kevin Qi
df50365929 set a better default for background 2017-10-13 23:16:29 -07:00
Kevin Qi
eb2877c19e add background prop defaulting to false, fixing issue wehre existing users upgrading to 0.3.0 would see a black circle shape if they don't update CSS 2017-10-13 22:56:45 -07:00
Kevin Qi
f717fefae9 rename backgroundPadding, add docs, and reformat demo page 2017-10-13 22:09:40 -07:00
Kevin Qi
d24cbe5a81 fix logic causing path length to be drawn incorrectly, and add backgroundGutter prop to enable customization 2017-10-13 21:49:38 -07:00
Andrey Saleba
241a311ab7 Fixed formatting issues 2017-09-10 15:32:11 +03:00
Andrey Saleba
770600576f Added <circle> element inside progressbar to support custom background color 2017-09-10 15:30:18 +03:00
Kevin Qi
5937869f14 refactor, move stuff into methods 2017-08-27 18:07:10 -07:00
Kevin Qi
0cd91b0660 set default value of className prop to '', fixes 'undefined' default 2017-08-27 17:51:08 -07:00
Kevin Qi
8baa206378 Merge pull request #20 from slaweet/patch-1
Keep progress bar within 0 and 100
2017-08-27 17:47:29 -07:00
Kevin Qi
0101950960 add className prop 2017-08-27 17:05:31 -07:00
Vít Stanislav
f985313173 Keep progress bar within 0 and 100
## Expected behaviour
`<CircularProgressbar percentage={150} />` should show full progress bar. And the text should keep being `150%`
## Actual behaviour
`<CircularProgressbar percentage={150} />` shows half full progress bar
2017-07-18 17:08:07 +02:00
Kevin Qi
fd6741a637 update to use prop-types package instead of importing PropTypes from react
fixes #12
2017-05-07 20:42:44 -07:00
Kevin Qi
2d19153338 Specify svg width to be 100% in default stylesheet, to fix flexbox issue (#5) 2017-02-04 20:04:27 -08:00
Kevin Qi
5c74157d81 Fix issue where window.requestAnimationFrame callback can still be invoked after component is unmounted, causing an error 2016-11-08 11:24:33 -05:00
Wiktor Ożga
a81774984d Fixes #1 2016-09-15 09:01:28 +02:00
Kevin Qi
c2eafad82b Attempt to fix issue where animation isn't happening upon initial mount 2016-05-31 15:51:43 -04:00
Kevin Qi
f73c123135 Improve demo page 2016-05-30 22:40:16 -04:00
Kevin Qi
d5d2020265 Move demo-specific styles to demo index.html 2016-05-30 17:53:13 -04:00
Kevin Qi
c0c9326408 whups 2016-05-30 17:18:27 -04:00
Kevin Qi
72b2c6f23a Add option to animate to percentage upon mounting 2016-05-30 17:08:05 -04:00
Kevin Qi
ccfa8feb25 Improve demo 2016-05-30 16:53:31 -04:00
Kevin Qi
f6bf99e6e9 Fix classForPercentage and demo 2016-05-30 16:29:43 -04:00
Kevin Qi
df1cd98a22 WIP on making colors configurably change depending on percentage 2016-05-29 18:05:45 -04:00
Kevin Qi
3e1c7d5fb3 Get text working 2016-05-29 17:30:48 -04:00
Kevin Qi
9b2b526f8f Add colored path, wip on animation 2016-05-29 17:10:15 -04:00
Kevin Qi
6221540564 Fix radius 2016-05-29 16:52:05 -04:00
Kevin Qi
a2031af221 WIP on path 2016-05-29 16:40:29 -04:00
Kevin Qi
dd6dec2ab6 Initialize from structure based on react-calendar-heatmap@74eaf47d7a 2016-05-29 16:26:52 -04:00