Commit Graph

58 Commits

Author SHA1 Message Date
Danilo Woznica
7a082ce61f fix(dependencies): move native dependencies to native module 2019-10-08 13:39:46 +01:00
Danilo Woznica
9b5e851236 fix(native): remove listener on unmont
re #16
2019-10-08 13:23:53 +01:00
Danilo Woznica
a04f788057 feat(codebase): react native support (#153)
re #148, re #137, re #106, re #89, re #16, re #6

* build(rollup): native bundle

* feat(native): stylized components

* build(typescript): react native check

* feat(typing): improves

* build(tsconfig): by environment

* test(web native): setup

* test(native): support

* docs(readme): native documentation
2019-09-25 13:41:59 +01:00
Zack Seuberling
18e53131f2 fix(svg): uses correct aria-* attribute for label (#149)
according to the MDN documentation, the aria-labelledby attribute is reserved for one or more
element IDs to associate a label with an element. the aria-label attribute is for a string when no
visible label on the screen
2019-07-09 10:02:19 +01:00
Danilo Woznica
8f28d2e283 Update packages (#147)
* build(dev dependencies): update packages

* chore(gitignore): add yarn.lock
2019-05-19 21:56:45 +00:00
Danilo Woznica
4de8d96b7b fix(svg/filter): add baseurl prop (#144)
* fix(svg/filter): add baseurl prop

* test(baseurl): add tests

* docs(prop): baseurl
2019-03-07 14:13:20 +00:00
Alexandre Kirszenberg
b8e5cb9e8c feat(svg): add a gradientRatio prop (#140)
* feat(svg): add an interval prop

Add an interval prop that controls the duration of the interval between two animations. For
instance, an interval of `.25` and an animation speed of `2` imply that the animation will
take 1.5s to complete, and wait 0.5s before starting again.

* feat(svg): add a gradientRatio prop

Add a gradientRatio prop that controls the width of the gradient relative to the viewbox's own
width. For instance, a gradientRatio of `0.5` and a width of `200` imply that the resulting gradient
will have a width of 100px.

* docs(docz): add props section
2019-03-06 21:34:14 +00:00
Alexandre Kirszenberg
6f26e2d5be feat(svg): add an interval prop (#139)
* feat(svg): add an interval prop

Add an interval prop that controls the duration of the interval between two animations. For
instance, an interval of `.25` and an animation speed of `2` imply that the animation will
take 1.5s to complete, and wait 0.5s before starting again.

* docs(options): add interval prop
2019-03-06 20:51:02 +00:00
Danilo Woznica
e24382544f fix(Holder): Named default export of Holder.tsx
Closes #131 Closes #132
2019-02-01 14:14:51 +00:00
gcangussu
990124930e Named default export of Holder.tsx. (#132) 2019-02-01 13:19:09 +00:00
Danilo Woznica
bfd2707d79 Codebase migrations (#126)
* test(Refactor): (#117)

* test(Refactor):

* Holder / SVG tests

* Svg tests

* Removed old tests

* Coverage

* Migrate to travis

* Update travis

* Update travis

* ci(Release):

* test(package):

* ci(Travis):

* chore(devDependencies): Package to generate the changelog

* feat(Codebase): Format

* feat(Types): Export types

* ci(Build step):

* feat(RTL): Flip the content

BREAKING CHANGE: Flip all content instead of only flip the animation direction

Closes #122

* Migrate codebase to Typescript (#120)

* Ignore rpt2_cache

* Add typescript pkg; Add tsc runner script

* Replace babel with ts compiler

* Typescript configs

* Update lockfile

* Convert Holder to tsx

* Convert svg to tsx

* Convert index.js to ts

* Convert uid to ts

* Convert BulletListStyle to tsx

* Convert CodeStyle to tsx

* Convert FacebookStyle to tsx

* Convert InstagramStyle to tsx

* Convert ListStyle to tsx

* Remove flow preset

* Add ts-node for ts execustion env for nodejs

* Remove flow preset & rollup-babel plugin; Add ts-node for ts env in nodejs

* Update lockfile

* Update watch script for tsc

* Rename IProps to IContentLoaderProps; Use FC for validation

* Remove unwanted ISvgProps; import IContentLoaderProps for type validations

* import and re-export IContentLoaderProps for better types

* Import and use types from IContentLoaderProps

* Remove eslint; replaced by tslint and tslint-prettier

* Add tslint-config-prettier

* Implement stricter type checking

* Remove comments as it is handled by tslint-config-prettier now

* Replace lint by tsc

* remove eslint and flow configs

* Add style default props

* Add jest options to include ts test files

* Add options to load json file

* Migrate tests from JS to TS for better interoperability

* Updated snapshots

* Remove ts-node

* Break line after react import

* Remove export from bottom of file and move to component definition

BREAKING CHANGE: Migrate codebase to typescript

Closes #120
2019-01-24 18:40:12 +00:00
Danilo Woznica
a7caea4f4c fix(Aria): Option to remove it (#128) 2019-01-08 13:32:49 +00:00
Danilo Woznica
00754ab929 feat(a11y): Add title and aria label (#115)
Closes #110
2018-11-27 22:45:13 +00:00
Danilo Woznica
a0ba057726 Fix/remove circular dependency (#114)
* Latest build

* 3.2.0

* refactor(All layer): Remove circular dependecy
2018-11-27 21:34:09 +00:00
Danilo Woznica
f19156027a feat(Wrap): Destruct options in component (#113)
That allows removing the viewBox and other things

Related #107
2018-11-27 21:14:33 +00:00
Danilo Woznica
2d3baf7039 Feat/rtl (#104)
* Improv code

* feat(Wrap): RTL direction

* test(Tests): Code style

* test(RTL): Add test
2018-09-29 14:33:22 +01:00
Sam Walsh
3a72b14f50 New primaryOpacity and secondaryOpacity props to work around Safari rgba bug (#96)
* Safari and iOS transparency workaround

Introduction of `primaryOpacity` and `secondaryOpacity`

* Remove primaryOpacity/secondaryOpacity conditional props type

* Add tests for primaryOpacity and secondaryOpacity
2018-05-09 21:54:56 -03:00
Danilo Woznica
7b9d65d1f7 refactor(Readme and types): Cosmetic things 2018-02-13 14:02:56 -02:00
caian-gums
f1258ce15d Handle animation (#80)
* Add props and create logic to controll speed animation

* Add stories to no animation

* Add tests on animation prop

* Set animation to appear just when animate prop is true

* Change tests to expected behavior

* Att on readme

* Update readme

* Realocate tests

* Export default props

* Refactor tests

* Refactor disposal of tests
2018-02-05 14:24:25 -02:00
Danilo Woznica
7ea5a1b426 Fix Uniquekey and improve tests about it (#83) 2018-02-03 14:29:54 -02:00
Nic Mitchell
6669f0304e Added uniquekey a defaultProp (#81) 2018-02-03 13:25:04 -02:00
Danilo Woznica
61bd3aae6d SSR compatibility (#79)
* SSR compatibility, solve #78

* Update name prop
2018-01-30 09:46:17 -02:00
Danilo Woznica
687148820c Improvements wrap (#74)
* Prettier stuff

* Centralized props

* Removed the export
2018-01-22 13:19:22 -02:00
Mateusz Burzyński
a3d1878800 Added named exports and removed type prop (#72) 2018-01-19 12:06:57 -02:00
Danilo Woznica
1a16ab63bf Defined variables as const 2018-01-16 18:49:16 -02:00
Mateusz Burzyński
d89fdcf333 Refactored build infrastructure (#68) 2018-01-16 18:27:00 -02:00
Evgenij Kopitsa
4e5bbf58c3 Remove custom components (#48)
* Remove custom components https://github.com/danilowoz/react-content-loader/issues/46

* return <rect/> and <circle/> in stories, update readme.md, return test for 'when type is custom'

* fix indentation, move 'when type is custom' test from 'Type props are used' block
2017-12-28 16:26:58 -02:00
Yuriy Khamzyaev
adbbfff341 Removed state from ContentLoader component (#45)
* Removed state from ContentLoader component

* Converting ContentLoader from class to functional component
2017-12-27 12:30:09 -02:00
Danilo Woznica
5672a935ce New facebook style 2017-12-22 16:37:10 -02:00
Ricardo
ba8675b66e Updated facebook style - close #42 (#43) 2017-12-22 16:27:26 -02:00
Danilo Woznica
b35914bd8e Added classNames props (#38) 2017-12-18 10:49:48 -02:00
Mojtaba Izadmehr
9d53a90400 added preserveAspectRatio To props (#36)
* added preserveAspectRatio To props

* updated README.md
2017-12-13 20:27:00 -02:00
Danilo Woznica
6093892d58 Refactor and React 16 compatibility (#34)
* Refactor tests, update react

* Refactor

* Refactor

* Change script

* Update npmignore

* Remove unecessary code
2017-12-03 20:29:11 -03:00
Danilo Woznica
84ef4ff9fb Wrap size (#31) 2017-11-08 12:37:46 -03:00
Danilo Woznica
25e3842d80 Added new components and update version 2017-10-25 10:30:48 -02:00
reck
8537af8e01 Added traditional list with bullets (#25)
* Added traditional list with bullets

* Updated bullet-list cicle radius

* Updated bullet-list rect radius
2017-10-25 09:21:30 -03:00
Yurui Zhang
3fac666067 Setup flow and convert existing component files (#21)
* add flow and babel-preset-flow

* convert index.js to flow

* convert Wrap.js to use flow

* convert CodeStyle.js

* convert other stylized component files to use flow

* convert Rect and Circle to use flow

* add type checking for React.Element
2017-10-24 16:37:11 -03:00
Luis Custodio
a400e32ac8 style(eslint-fixes): change eslint to standard and fix warnings (#18)
This PR is just a proposition in order to enhance the code practices.

* Eslint configuration changes from 4 to 2.
* Fix warnings about missing `;`.
2017-09-18 10:28:54 -03:00
Luis Custodio
3bc4a1a841 fix(build): fix invalid syntax that broke build (#17)
The build and `npm install` were breaking.
In addition npm start to put a deprecation message regarding `prepublish` scripts.
2017-09-14 14:30:02 -03:00
Danilo Woznica
6f7e55f636 Prettier and add esnext field, close #8 2017-09-10 22:39:35 -03:00
Lasse Borly
3c820c3e7f List component (#14)
* Add list style component

* Add list component to index

* Add tests for ListStyle

* update readme with list component
2017-07-10 10:08:22 -03:00
Danilo Woznica
a7f72dc361 Implemented defaultProps (#12) 2017-06-27 20:44:33 -03:00
Philip Thrasher
82484d345f Allow custom width (#10) 2017-06-23 10:34:25 -03:00
Bahaa Jr
50ae75e72d Adding PropTypes package (#9) 2017-06-23 10:06:32 -03:00
Danilo Woznica
3212b950d0 Tests (#4) 2017-02-28 20:21:35 -03:00
Danilo Woznica
eac753d3ad Lint (#3) 2017-02-22 10:44:25 -03:00
Danilo Woznica
9d3d6a3a8c Refactor Wrap and Custom components (#1)
* Refactor Wrap

* Add custom elements

* Code style

* Update documentation

* Update version
2017-02-08 20:29:54 -02:00
Danilo Woznica
f0e636d84c Refactor and <CodeStyle /> 2017-02-02 13:21:22 -02:00
Danilo Woznica
23326bc91b Removed gifs 2017-01-24 17:32:24 -02:00
Danilo Woznica
69c06bc724 Update gif 2017-01-24 14:33:05 -02:00