Commit Graph

532 Commits

Author SHA1 Message Date
Mark Lawlor
ecdcaa6408 fix: remove react forwardRef override 2022-05-31 12:18:31 +10:00
Mark Lawlor
2745669296 fix: typing of forwardRef override 2022-05-31 11:29:53 +10:00
semantic-release-bot
9f9cd6fb0e chore(release): 1.6.2 [skip ci]
## [1.6.2](https://github.com/marklawlor/tailwindcss-react-native/compare/v1.6.1...v1.6.2) (2022-05-31)

### Bug Fixes

* warnings when hmr on native. Move baseClassName to styled() props ([5d29a74](5d29a74dd4))
v1.6.2
2022-05-31 01:12:27 +00:00
Mark Lawlor
5d29a74dd4 fix: warnings when hmr on native. Move baseClassName to styled() props 2022-05-31 11:09:11 +10:00
semantic-release-bot
b32f6eadb9 chore(release): 1.6.1 [skip ci]
## [1.6.1](https://github.com/marklawlor/tailwindcss-react-native/compare/v1.6.0...v1.6.1) (2022-05-31)

### Bug Fixes

* always try to extract styles ([17c450e](17c450e7eb))
v1.6.1
2022-05-31 00:48:08 +00:00
Mark Lawlor
c65c726f35 Merge branch 'main' of github.com:marklawlor/tailwindcss-react-native into main 2022-05-31 10:33:07 +10:00
Mark Lawlor
17c450e7eb fix: always try to extract styles 2022-05-31 10:32:44 +10:00
semantic-release-bot
1b0df40d98 chore(release): 1.6.0 [skip ci]
# [1.6.0](https://github.com/marklawlor/tailwindcss-react-native/compare/v1.5.3...v1.6.0) (2022-05-31)

### Features

* add baseClassName option to styled() ([199e23e](199e23e967))
v1.6.0
2022-05-31 00:14:23 +00:00
Mark Lawlor
199e23e967 feat: add baseClassName option to styled() 2022-05-31 10:11:08 +10:00
semantic-release-bot
c0fd82f259 chore(release): 1.5.3 [skip ci]
## [1.5.3](https://github.com/marklawlor/tailwindcss-react-native/compare/v1.5.2...v1.5.3) (2022-05-29)

### Bug Fixes

* forwarding refs of styled components ([c89e314](c89e3146ae))
v1.5.3
2022-05-29 10:45:12 +00:00
Mark Lawlor
2d750961a1 Merge branch 'main' of github.com:marklawlor/tailwindcss-react-native into main 2022-05-29 20:42:12 +10:00
Mark Lawlor
c89e3146ae fix: forwarding refs of styled components 2022-05-29 20:25:54 +10:00
semantic-release-bot
fccd803e8c chore(release): 1.5.2 [skip ci]
## [1.5.2](https://github.com/marklawlor/tailwindcss-react-native/compare/v1.5.1...v1.5.2) (2022-05-29)

### Bug Fixes

* ensure StyledProps are exported ([93ab927](93ab9271df))
v1.5.2
2022-05-29 08:45:02 +00:00
Mark Lawlor
93ab9271df fix: ensure StyledProps are exported 2022-05-29 18:41:48 +10:00
semantic-release-bot
dcfdccf854 chore(release): 1.5.1 [skip ci]
## [1.5.1](https://github.com/marklawlor/tailwindcss-react-native/compare/v1.5.0...v1.5.1) (2022-05-28)

### Bug Fixes

* path matching on windows ([2ec7363](2ec7363d07)), closes [#64](https://github.com/marklawlor/tailwindcss-react-native/issues/64)
v1.5.1
2022-05-28 10:50:30 +00:00
Mark Lawlor
2ec7363d07 fix: path matching on windows
fix: #64
2022-05-28 20:47:16 +10:00
Mark Lawlor
0a915b97bf docs: add example to useColorScheme 2022-05-28 11:59:00 +10:00
Mark Lawlor
c88ebd6b9d docs: add useColorScheme to sidebar 2022-05-28 11:54:54 +10:00
Mark Lawlor
19add2b9e0 docs: improve docs for svg 2022-05-28 11:51:34 +10:00
Mark Lawlor
e15f070902 docs: fix headers on stroke & strokeWidth 2022-05-28 11:43:48 +10:00
Mark Lawlor
003346276a docs: add svg to sidebar 2022-05-28 11:42:11 +10:00
Mark Lawlor
5f8a7e7fda docs: update readme 2022-05-28 11:38:27 +10:00
semantic-release-bot
0daf136eb6 chore(release): 1.5.0 [skip ci]
# [1.5.0](https://github.com/marklawlor/tailwindcss-react-native/compare/v1.4.6...v1.5.0) (2022-05-28)

### Bug Fixes

* [#54](https://github.com/marklawlor/tailwindcss-react-native/issues/54) ([c639511](c63951127d))
* allow absolute paths to tailwind config ([0421a91](0421a9110e))
* better matching with relative content paths in tailwind.config.js ([f99bc1f](f99bc1fd2e)), closes [#57](https://github.com/marklawlor/tailwindcss-react-native/issues/57)
* cssProps working in preview mode ([73cd4b6](73cd4b6e32))
* **deps:** update docusaurus monorepo to v2.0.0-beta.21 ([a25a8da](a25a8da224))
* ensure spreadProps use flat styles on preview ([7c2cc8b](7c2cc8b3fc))
* ensure stroke is set to a valid value ([8970f65](8970f655a3))
* improve active: styles on web ([30fdfdd](30fdfdde63))
* improvements to spreadProps with preview mode ([3d4941a](3d4941ac9d))
* include optional props in useInteraction parsing ([0b6d0a6](0b6d0a6272))
* prevent adding empty style arrays to parents ([61780d2](61780d2aff))
* prevent adding unnecessary event handlers to components ([04ce242](04ce24283f))
* prevent passing undefined svg props ([244be39](244be3997c))
* react import for classic JSX ([2e7bf03](2e7bf03e23))
* remove empty line in generated styles ([20e6973](20e697321a))
* rename valueProps to spreadProps. Add cssProps ([3ae8d94](3ae8d94061))
* short circuit withStyledChildren when there are no child styles ([8de2e43](8de2e4351e))
* stop babel appending platform to TailwindProvider ([fc8fdc8](fc8fdc8b92))
* strokeWidth console warnings on native ([5ace7ff](5ace7ff975))
* transform components using fill and stroke ([f4161ef](f4161ef3b2))
* useInteraction not adding handlers ([f3c4127](f3c4127892))

### Features

* add parent variant ([a6d8023](a6d802314f))
* add preview support for flattened styles ([b5b8273](b5b8273f7d))
* add SVG support ([05897c3](05897c3ab7)), closes [#56](https://github.com/marklawlor/tailwindcss-react-native/issues/56)
* allow for styled to parse additional props ([1037027](1037027035))
* export new context hooks ([1560afe](1560afe983))
v1.5.0
2022-05-28 01:34:15 +00:00
Mark Lawlor
cfe73f51c5 docs: update introduction 2022-05-28 11:31:07 +10:00
Mark Lawlor
9e7307e70b docs: update docs of styled options 2022-05-28 11:24:02 +10:00
Mark Lawlor
0a703f9ff7 Merge branch 'next' of github.com:marklawlor/tailwindcss-react-native into next 2022-05-28 11:09:33 +10:00
Mark Lawlor
948068c792 docs: update readme 2022-05-28 11:09:10 +10:00
Mark Lawlor
3c6e75a772 Merge pull request #63 from marklawlor/renovate/docusaurus-monorepo
fix(deps): update docusaurus monorepo to v2.0.0-beta.21
2022-05-28 09:25:12 +10:00
Renovate Bot
a25a8da224 fix(deps): update docusaurus monorepo to v2.0.0-beta.21
[skip release]
2022-05-27 18:31:32 +00:00
semantic-release-bot
379b78a585 chore(release): 1.5.0-next.21 [skip ci]
# [1.5.0-next.21](https://github.com/marklawlor/tailwindcss-react-native/compare/v1.5.0-next.20...v1.5.0-next.21) (2022-05-27)

### Bug Fixes

* improvements to spreadProps with preview mode ([3d4941a](3d4941ac9d))
v1.5.0-next.21
2022-05-27 13:31:35 +00:00
Mark Lawlor
3d4941ac9d fix: improvements to spreadProps with preview mode 2022-05-27 23:28:16 +10:00
Mark Lawlor
82f6419f7c Merge branch 'next' of github.com:marklawlor/tailwindcss-react-native into next 2022-05-27 19:24:29 +10:00
Mark Lawlor
2a5e79e077 refactor: add comments to classname-to-inline-style 2022-05-27 19:24:09 +10:00
Mark Lawlor
dbdfdf080e refactor: rename cssProps to classProps 2022-05-27 19:20:04 +10:00
semantic-release-bot
dfa6134e82 chore(release): 1.5.0-next.20 [skip ci]
# [1.5.0-next.20](https://github.com/marklawlor/tailwindcss-react-native/compare/v1.5.0-next.19...v1.5.0-next.20) (2022-05-27)

### Bug Fixes

* define the global variable during babel transform ([1edda15](1edda15988)), closes [#60](https://github.com/marklawlor/tailwindcss-react-native/issues/60)
v1.5.0-next.20
2022-05-27 05:07:50 +00:00
Mark Lawlor
186d8116be Merge branch 'main' into next 2022-05-27 15:04:37 +10:00
semantic-release-bot
c8b0e5c738 chore(release): 1.4.6 [skip ci]
## [1.4.6](https://github.com/marklawlor/tailwindcss-react-native/compare/v1.4.5...v1.4.6) (2022-05-27)

### Bug Fixes

* define the global variable during babel transform ([1edda15](1edda15988)), closes [#60](https://github.com/marklawlor/tailwindcss-react-native/issues/60)
v1.4.6
2022-05-27 05:00:33 +00:00
Mark Lawlor
1edda15988 fix: define the global variable during babel transform
The global variables previously relied on being defined inside
context.ts. However inlineRequires will cause the global variables to
defined after use - causing a runtime error.

This defined the variables as they are used, so it doesn't matter in
which order the files are loaded.

Fix: #60
2022-05-27 14:55:25 +10:00
semantic-release-bot
8f30798e1d chore(release): 1.5.0-next.19 [skip ci]
# [1.5.0-next.19](https://github.com/marklawlor/tailwindcss-react-native/compare/v1.5.0-next.18...v1.5.0-next.19) (2022-05-27)

### Bug Fixes

* better matching with relative content paths in tailwind.config.js ([fd43261](fd43261eba)), closes [#57](https://github.com/marklawlor/tailwindcss-react-native/issues/57)
v1.5.0-next.19
2022-05-27 00:39:04 +00:00
Mark Lawlor
5432fad3d9 Merge branch 'main' into next 2022-05-27 10:36:05 +10:00
semantic-release-bot
a72a08aeca chore(release): 1.4.5 [skip ci]
## [1.4.5](https://github.com/marklawlor/tailwindcss-react-native/compare/v1.4.4...v1.4.5) (2022-05-27)

### Bug Fixes

* better matching with relative content paths in tailwind.config.js ([fd43261](fd43261eba)), closes [#57](https://github.com/marklawlor/tailwindcss-react-native/issues/57)
v1.4.5
2022-05-27 00:33:00 +00:00
Mark Lawlor
fd43261eba fix: better matching with relative content paths in tailwind.config.js
fixes: #57
2022-05-27 10:29:23 +10:00
semantic-release-bot
250f4d2ee0 chore(release): 1.5.0-next.18 [skip ci]
# [1.5.0-next.18](https://github.com/marklawlor/tailwindcss-react-native/compare/v1.5.0-next.17...v1.5.0-next.18) (2022-05-26)

### Bug Fixes

* ensure spreadProps use flat styles on preview ([7c2cc8b](7c2cc8b3fc))
v1.5.0-next.18
2022-05-26 07:10:11 +00:00
Mark Lawlor
041a59578c test: skip web-preview tests 2022-05-26 17:06:46 +10:00
Mark Lawlor
7c2cc8b3fc fix: ensure spreadProps use flat styles on preview 2022-05-26 16:57:56 +10:00
semantic-release-bot
827a7a188f chore(release): 1.5.0-next.17 [skip ci]
# [1.5.0-next.17](https://github.com/marklawlor/tailwindcss-react-native/compare/v1.5.0-next.16...v1.5.0-next.17) (2022-05-26)

### Bug Fixes

* cssProps working in preview mode ([73cd4b6](73cd4b6e32))
v1.5.0-next.17
2022-05-26 06:04:06 +00:00
Mark Lawlor
58e026c88a Merge branch 'next' of github.com:marklawlor/tailwindcss-react-native into next 2022-05-26 16:00:26 +10:00
Mark Lawlor
73cd4b6e32 fix: cssProps working in preview mode 2022-05-26 16:00:05 +10:00
semantic-release-bot
60b3e343ed chore(release): 1.5.0-next.16 [skip ci]
# [1.5.0-next.16](https://github.com/marklawlor/tailwindcss-react-native/compare/v1.5.0-next.15...v1.5.0-next.16) (2022-05-26)

### Bug Fixes

* improve active: styles on web ([30fdfdd](30fdfdde63))
v1.5.0-next.16
2022-05-26 05:28:41 +00:00
Mark Lawlor
30fdfdde63 fix: improve active: styles on web 2022-05-26 15:25:40 +10:00