Commit Graph
718 Commits
Author SHA1 Message Date
Filip HolmandNicolas Gallagher e7a99f5ef2 [change] Show focus ring on CheckBox and Switch
Close #2242
2022-03-02 10:50:05 -08:00
Nicolas Gallagher 5cab098dd4 Update localization docs and examples 2022-03-02 10:50:05 -08:00
Nicolas Gallagher 314d78c0cc Update packages and benchmarks
Remove libraries from benchmarks as comparison to css-modules baseline is what
matters. This makes benchmark builds faster and will reduce how often people
open PRs asking for their library to be included.

Close #2210
2022-03-02 10:50:05 -08:00
Nicolas Gallagher 9b0c1193a2 [change] Remove jest preset
Also add node-based unit tests for SSR APIs.
2022-03-02 10:50:04 -08:00
Nicolas Gallagher b27c9820db [change] StyleSheet rewrite
* Improves React Native compatibility by making StyleSheet.create the identify function.
* Improves React 18 support by inserting styles on eval.
* Supports use with multiple windows (i.e., iframes) and shadow roots.
* Supports nested LTR/RTL layouts.
* Supports 3rd party compilers and extraction to static CSS.
* Fixes static and dynamic short/longform deduplication.
* Reduces browser support: Safari 10.1+, Chromium Edge, no IE, no legacy Android browsers.
* Removes automatic vendor-prefixing of inline styles (for better perf).
* Removes focus-visible polyfill as modern browsers no longer show focus rings for mouse interactions.

Close #2208
Fix #2138
Fix #2196
Fix #2007
Fix #1517
2022-03-02 10:50:04 -08:00
Nicolas Gallagher 174ebb3c5d [change] Remove deprecated accessibility APIs
Removes 'accessible', 'accessibilityState', and 'accessibilityValue' props.
2022-03-02 10:06:20 -08:00
Nicolas Gallagher 9583155523 Remove unused benchmarks and libraries
We only need to test against the baseline of css-modules.

Fix #2210
2022-03-02 10:06:20 -08:00
Nicolas Gallagher c113e4605c Fix canUseDOM imports
Close #2149
2022-03-02 10:06:20 -08:00
Nicolas Gallagher dc9ecfbc84 0.17.7 2022-03-01 13:22:24 -08:00
Nicolas Gallagher 8cc79ea8d0 [fix] TextInput numberOfLines for text with line breaks
Reverts the change made for #2058, which is considered an avoidable
edge-case.

Fix #2243
2022-03-01 13:21:17 -08:00
David RiemanandNicolas Gallagher 9ffda21659 Add FlatList examples
Close #2229
2022-03-01 12:10:09 -08:00
David RiemanandNicolas Gallagher aaa58d7d75 Add SectionList example page
Close #2240
2022-03-01 12:09:17 -08:00
David RiemanandNicolas Gallagher c0e3409ace Fix 'yarn lint' issue
Close #2238
2022-03-01 11:59:16 -08:00
Nicolas Gallagher ea87af27b2 AppState docs without deprecated API 2022-02-22 11:44:19 -08:00
Nicolas Gallagher da80ede2dc 0.17.6 2022-02-18 10:31:11 -08:00
Andre StaltzandNicolas Gallagher 7ec2489c78 [fix] inverted VirtualizedList supports wheel events
Close #2223
Close #1241
Fix #995
2022-02-18 10:29:29 -08:00
Nicolas Gallagher 17241dbcfa [fix] AppState.removeEventListener deprecation
Fix #2215
Fix #2166
2022-02-18 10:13:42 -08:00
Rajat ParasharandNicolas Gallagher 79707ce1b3 [fix] Text numberOfLines=1 on Safari"
This reverts commit 562db69a0f.

Close #2193
Fix #2186
Fix #2111
2022-02-17 14:47:36 -08:00
meenuandNicolas Gallagher 944b45cd0b [fix] Switch support for custom colors when disabled
Close #2164
Fix #1758
2022-02-17 14:47:36 -08:00
Markus KobischandNicolas Gallagher d21c401620 [fix] Avoid edge case where focus jumps between TextInputs
Close #2163
Fix #2162
2022-02-17 14:47:36 -08:00
youngvformandNicolas Gallagher 438b7b7281 [fix] Linking.openURL opens 'tel' links in current tab.
Close #2125
Fix #2124
2022-02-17 14:47:36 -08:00
dependabot[bot]andNicolas Gallagher 9d86760db3 Bump markdown-it from 12.0.4 to 12.3.2
Bumps [markdown-it](https://github.com/markdown-it/markdown-it) from 12.0.4 to 12.3.2.
- [Release notes](https://github.com/markdown-it/markdown-it/releases)
- [Changelog](https://github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/markdown-it/markdown-it/compare/12.0.4...12.3.2)

---
updated-dependencies:
- dependency-name: markdown-it
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-30 11:00:53 -08:00
Nicolas Gallagher 081a128db3 0.17.5 2021-09-29 10:34:06 -07:00
Chris GreenandNicolas Gallagher d05fa342d0 Add failing test for style resolving behavior
Less specific shorthand style properties are being applied instead of the more
specific styles if there is another element also with one of the more specific
styles. This is due to the common styles being pulled out as class names for
de-duplication.

Ref #2007
Close #2010
2021-09-29 10:31:00 -07:00
Nicolas Gallagher 04fbf5e5ce [fix] Animated no longer sets non-unique IDs on elements
Remove problematic code added only for native platforms using Fabric.

Fix #2136
2021-09-29 10:27:15 -07:00
Nicolas Gallagher 798d34e192 0.17.4 2021-09-29 10:24:51 -07:00
Nicolas Gallagher 8999188b5d [fix] Pressable disabled focus behavior
Fix #2127
2021-09-29 10:19:26 -07:00
Nicolas Gallagher 36681c4f54 0.17.3 2021-09-29 10:12:10 -07:00
Chris ZelenakandNicolas Gallagher 126642783b [fix] AppState addEventListener returns subscription object
Close #2129
2021-09-29 10:09:36 -07:00
Cloud LeandNicolas Gallagher 4aba2bdcf4 [fix] Dimensions addEventListener returns subscription object
Fix #2130
Close #2131
2021-09-29 10:06:58 -07:00
Nicolas Gallagher 68e878be8f 0.17.2 2021-09-28 11:41:39 -07:00
Warr1611andNicolas Gallagher 192472b226 Add document about use PanResponder on elements with text content
Close #2123
2021-09-28 11:39:21 -07:00
sawa-zenandNicolas Gallagher aeae9dd184 Update documentation styling example
Close #2137
2021-09-28 11:35:18 -07:00
Janic DuplessisandNicolas Gallagher 562db69a0f [fix] numberOfLines=1 on Safari
Safari requires use of `white-space:nowrap` if not using the multi-line
technique. This patch uses the multi-lines styles to truncate single-lines.

Fix #2111
Close #2113
2021-09-28 11:19:33 -07:00
dependabot[bot]andGitHub ea3975d357 Bump next from 10.0.6 to 11.1.1
Bumps [next](https://github.com/vercel/next.js) from 10.0.6 to 11.1.1.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v10.0.6...v11.1.1)

---
updated-dependencies:
- dependency-name: next
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-28 18:03:33 +00:00
Nicolas Gallagher 39ee95b4a4 0.17.1 2021-06-23 10:45:51 -07:00
Andrew HaywardandNicolas Gallagher ba3c728f2c [fix] Image does not set persistent click handler
Only set the click handler if it is needed. This was previously always set,
which caused screen readers to announce the element as "clickable".

Close #2061
2021-06-23 10:42:05 -07:00
Nicolas Gallagher b2eb3ca03f 0.17.0 2021-06-17 09:45:30 -07:00
Evan CharltonandNicolas Gallagher ab98851881 [fix] Text preserves white-space if numberOfLines={1}
Preserve meaningful white-space when `numberOfLines={1}` by using the `pre`
value instead of `nowrap`.

Source: https://developer.mozilla.org/en-US/docs/Web/CSS/white-space

Close #2058
2021-06-17 09:39:28 -07:00
Nicolas Gallagher d48f630600 [fix] ProgressBar & Switch for High Contrast mode
Prevent these controls from becoming invisible in Windows High Contrast mode by
disabling forced color adjustment for these elements.

Fix #1606
2021-06-14 12:41:09 -07:00
Nicolas Gallagher 2a930b7e3f [fix] Change logic of PressResponder for keyboards
This patch removes the keyboard `onClick` shim from `unstable_createElement`
and adds it to the `PressResponder`.

Previously, the logic in `createElement` was calling `onClick` during
`onKeyDown`. This could result in React state update warnings if the host
element was no longer in the DOM during `keyup`.

Fix #2051
2021-06-14 10:25:20 -07:00
Nicolas Gallagher 6d7a1eaf0e [change] Remove createElement host type inference for 'href'
Elements other than 'a' support the 'href' attribute, so the element type
should not be inferred from 'href'. Longer term no host element type inference
should be performed by 'createElement'.

Fix #1958
2021-06-08 16:45:20 -07:00
Nicolas Gallagher 7775b3ab19 [change] Remove special treatment of accessibilityRole="menuitem"
This role is not meant to be in the tab flow unless the element type demands
it. Users will now have to manage `onClick` and `onKeyDown` callbacks to apply
the desired interaction behavior.

Fix #1968
2021-06-08 16:45:20 -07:00
Nicolas Gallagher 22f3d142c6 [fix] Remove CSS reset for number spin buttons
The TextInput element no longer uses the 'number' input type, so this reset is
no longer necessary. Furthermore, the reset potentially impacts non-framework
components.

Fix #1949
2021-06-08 16:45:20 -07:00
Nicolas Gallagher 6de619563c 0.16.5 2021-06-08 16:43:36 -07:00
aryoandNicolas Gallagher a7fabe4500 [fix] ScrollView forwards style when 'refreshControl' prop is present
Fix #2024
2021-06-08 16:28:23 -07:00
Nicolas Gallagher a968c0ce66 TextInput: event handlers get hostNode from event not ref
Avoid the event handlers depending on a React ref when the hostNode can be
found on the event object.
2021-06-08 16:12:20 -07:00
Nicolas Gallagher 697479e2cd [fix] TextInput calls onFocus if autoFocus={true}
The host node ref is not a dependency of the focus handling. Previously, the
focus callback was not called if the element was auto-focused, because  React
DOM calls `onFocus` while the object ref is `null`.

Fix #2045
2021-06-08 15:58:16 -07:00
Nicolas Gallagher 3fc7634819 0.16.4 2021-06-08 15:13:05 -07:00
Nicolas Gallagher 146426dc27 [fix] Allow focusable={false} to set tabIndex="-1"
Close #2046
2021-06-08 13:38:46 -07:00