@hozo/primitives 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +71 -0
- package/README.md +18 -1
- package/dist/button-host-attributes.d.ts +20 -0
- package/dist/button-host-attributes.d.ts.map +1 -0
- package/dist/button-host-attributes.js +47 -0
- package/dist/button-host-attributes.js.map +1 -0
- package/dist/button-host-props.native.d.ts +8 -0
- package/dist/button-host-props.native.d.ts.map +1 -0
- package/dist/button-host-props.native.js +20 -0
- package/dist/button-host-props.native.js.map +1 -0
- package/dist/foundation.d.ts +27 -6
- package/dist/foundation.d.ts.map +1 -1
- package/dist/foundation.js +72 -19
- package/dist/foundation.js.map +1 -1
- package/dist/foundation.native.d.ts +27 -7
- package/dist/foundation.native.d.ts.map +1 -1
- package/dist/foundation.native.js +18 -3
- package/dist/foundation.native.js.map +1 -1
- package/dist/generated/button-dom-props.d.ts +11 -0
- package/dist/generated/button-dom-props.d.ts.map +1 -0
- package/dist/generated/button-dom-props.js +132 -0
- package/dist/generated/button-dom-props.js.map +1 -0
- package/dist/generated/button-props.d.ts +3 -0
- package/dist/generated/button-props.d.ts.map +1 -0
- package/dist/generated/button-props.js +5 -0
- package/dist/generated/button-props.js.map +1 -0
- package/dist/generated/button-props.native.d.ts +2 -0
- package/dist/generated/button-props.native.d.ts.map +1 -0
- package/dist/generated/button-props.native.js +2 -0
- package/dist/generated/button-props.native.js.map +1 -0
- package/dist/generated/inherited-label.d.ts +2 -0
- package/dist/generated/inherited-label.d.ts.map +1 -0
- package/dist/generated/inherited-label.js +3 -0
- package/dist/generated/inherited-label.js.map +1 -0
- package/dist/generated/inherited-pressable.d.ts +2 -0
- package/dist/generated/inherited-pressable.d.ts.map +1 -0
- package/dist/generated/inherited-pressable.js +3 -0
- package/dist/generated/inherited-pressable.js.map +1 -0
- package/dist/generated/inherited-relative-text.d.ts +2 -0
- package/dist/generated/inherited-relative-text.d.ts.map +1 -0
- package/dist/generated/inherited-relative-text.js +3 -0
- package/dist/generated/inherited-relative-text.js.map +1 -0
- package/dist/generated/inherited-text.d.ts +2 -0
- package/dist/generated/inherited-text.d.ts.map +1 -0
- package/dist/generated/inherited-text.js +3 -0
- package/dist/generated/inherited-text.js.map +1 -0
- package/dist/generated/inherited-view.d.ts +2 -0
- package/dist/generated/inherited-view.d.ts.map +1 -0
- package/dist/generated/inherited-view.js +3 -0
- package/dist/generated/inherited-view.js.map +1 -0
- package/dist/generated/native-disabled.d.ts +2 -0
- package/dist/generated/native-disabled.d.ts.map +1 -0
- package/dist/generated/native-disabled.js +2 -0
- package/dist/generated/native-disabled.js.map +1 -0
- package/dist/generated/text-input-dom-props.d.ts +7 -0
- package/dist/generated/text-input-dom-props.d.ts.map +1 -0
- package/dist/generated/text-input-dom-props.js +130 -0
- package/dist/generated/text-input-dom-props.js.map +1 -0
- package/dist/generated/text-input.native.d.ts +1 -1
- package/dist/generated/text-input.native.d.ts.map +1 -1
- package/dist/generated/text-input.native.js +1 -1
- package/dist/generated/text-input.native.js.map +1 -1
- package/dist/generated/view-dom-props.d.ts +8 -0
- package/dist/generated/view-dom-props.d.ts.map +1 -0
- package/dist/generated/view-dom-props.js +241 -0
- package/dist/generated/view-dom-props.js.map +1 -0
- package/dist/inherited-label.native.d.ts +8 -0
- package/dist/inherited-label.native.d.ts.map +1 -0
- package/dist/inherited-label.native.js +12 -0
- package/dist/inherited-label.native.js.map +1 -0
- package/dist/inherited-pressable.native.d.ts +11 -0
- package/dist/inherited-pressable.native.d.ts.map +1 -0
- package/dist/inherited-pressable.native.js +75 -0
- package/dist/inherited-pressable.native.js.map +1 -0
- package/dist/inherited-relative-text.native.d.ts +13 -0
- package/dist/inherited-relative-text.native.d.ts.map +1 -0
- package/dist/inherited-relative-text.native.js +16 -0
- package/dist/inherited-relative-text.native.js.map +1 -0
- package/dist/inherited-text-scope.d.ts +8 -0
- package/dist/inherited-text-scope.d.ts.map +1 -0
- package/dist/inherited-text-scope.js +10 -0
- package/dist/inherited-text-scope.js.map +1 -0
- package/dist/inherited-text-style.native.d.ts +5 -0
- package/dist/inherited-text-style.native.d.ts.map +1 -0
- package/dist/inherited-text-style.native.js +30 -0
- package/dist/inherited-text-style.native.js.map +1 -0
- package/dist/inherited-text.native.d.ts +5 -0
- package/dist/inherited-text.native.d.ts.map +1 -0
- package/dist/inherited-text.native.js +18 -0
- package/dist/inherited-text.native.js.map +1 -0
- package/dist/inherited-view.native.d.ts +9 -0
- package/dist/inherited-view.native.d.ts.map +1 -0
- package/dist/inherited-view.native.js +17 -0
- package/dist/inherited-view.native.js.map +1 -0
- package/dist/link.d.ts +4 -3
- package/dist/link.d.ts.map +1 -1
- package/dist/link.js +9 -1
- package/dist/link.js.map +1 -1
- package/dist/link.native.d.ts +16 -7
- package/dist/link.native.d.ts.map +1 -1
- package/dist/link.native.js +15 -5
- package/dist/link.native.js.map +1 -1
- package/dist/native-disabled.d.ts +13 -0
- package/dist/native-disabled.d.ts.map +1 -0
- package/dist/native-disabled.js +13 -0
- package/dist/native-disabled.js.map +1 -0
- package/dist/presence.native.d.ts.map +1 -1
- package/dist/presence.native.js +1 -1
- package/dist/presence.native.js.map +1 -1
- package/dist/pressable.d.ts +1 -1
- package/dist/pressable.d.ts.map +1 -1
- package/dist/pressable.js +15 -5
- package/dist/pressable.js.map +1 -1
- package/dist/pressable.native.d.ts +10 -1
- package/dist/pressable.native.d.ts.map +1 -1
- package/dist/pressable.native.js +206 -221
- package/dist/pressable.native.js.map +1 -1
- package/dist/runtime-container.native.d.ts +11 -9
- package/dist/runtime-container.native.d.ts.map +1 -1
- package/dist/runtime-container.native.js +8 -6
- package/dist/runtime-container.native.js.map +1 -1
- package/dist/text-color-transition.native.d.ts +12 -0
- package/dist/text-color-transition.native.d.ts.map +1 -0
- package/dist/text-color-transition.native.js +87 -0
- package/dist/text-color-transition.native.js.map +1 -0
- package/dist/text-input-props.native.d.ts +10 -0
- package/dist/text-input-props.native.d.ts.map +1 -0
- package/dist/text-input-props.native.js +15 -0
- package/dist/text-input-props.native.js.map +1 -0
- package/dist/text-input.native.d.ts +19 -0
- package/dist/text-input.native.d.ts.map +1 -0
- package/dist/text-input.native.js +32 -0
- package/dist/text-input.native.js.map +1 -0
- package/dist/view.d.ts +1 -285
- package/dist/view.d.ts.map +1 -1
- package/dist/view.js +5 -4
- package/dist/view.js.map +1 -1
- package/package.json +51 -7
- package/src/button-host-attributes.ts +56 -0
- package/src/button-host-props.native.ts +22 -0
- package/src/foundation.native.tsx +45 -6
- package/src/foundation.tsx +139 -28
- package/src/generated/button-dom-props.ts +127 -0
- package/src/generated/button-props.native.ts +1 -0
- package/src/generated/button-props.ts +4 -0
- package/src/generated/inherited-label.ts +2 -0
- package/src/generated/inherited-pressable.ts +2 -0
- package/src/generated/inherited-relative-text.ts +2 -0
- package/src/generated/inherited-text.ts +2 -0
- package/src/generated/inherited-view.ts +2 -0
- package/src/generated/native-disabled.ts +1 -0
- package/src/generated/text-input-dom-props.ts +128 -0
- package/src/generated/text-input.native.ts +1 -4
- package/src/generated/view-dom-props.ts +267 -0
- package/src/inherited-label.native.tsx +28 -0
- package/src/inherited-pressable.native.tsx +152 -0
- package/src/inherited-relative-text.native.tsx +22 -0
- package/src/inherited-text-scope.tsx +27 -0
- package/src/inherited-text-style.native.ts +35 -0
- package/src/inherited-text.native.tsx +32 -0
- package/src/inherited-view.native.tsx +37 -0
- package/src/link.native.tsx +43 -28
- package/src/link.ts +12 -0
- package/src/native-disabled.ts +23 -0
- package/src/presence.native.tsx +1 -1
- package/src/pressable.native.tsx +298 -262
- package/src/pressable.ts +34 -17
- package/src/runtime-container.native.tsx +30 -15
- package/src/text-color-transition.native.ts +96 -0
- package/src/text-input-props.native.ts +26 -0
- package/src/text-input.native.tsx +57 -0
- package/src/view.ts +34 -25
- package/dist/generated/animated.d.ts +0 -2
- package/dist/generated/animated.d.ts.map +0 -1
- package/dist/generated/animated.js +0 -3
- package/dist/generated/animated.js.map +0 -1
- package/dist/presence-context.d.ts +0 -15
- package/dist/presence-context.d.ts.map +0 -1
- package/dist/presence-context.js +0 -11
- package/dist/presence-context.js.map +0 -1
- package/dist/runtime-transition.native.d.ts +0 -30
- package/dist/runtime-transition.native.d.ts.map +0 -1
- package/dist/runtime-transition.native.js +0 -183
- package/dist/runtime-transition.native.js.map +0 -1
- package/src/generated/animated.ts +0 -6
- package/src/presence-context.ts +0 -27
- package/src/runtime-transition.native.tsx +0 -244
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,76 @@
|
|
|
1
1
|
# @hozo/primitives
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1462](https://github.com/iray-tno/hozo/pull/1462) [`b0c6f22`](https://github.com/iray-tno/hozo/commit/b0c6f220c74d8a5c5a0c13bcf5fc9f8b97a25419) Thanks [@iray-tno](https://github.com/iray-tno)! - `HozoAnimated` can animate position and size (`start`, `end`, `top`, `left`, `width`, `height` and the rest) between numbers, when its transition spec names them in the new `properties` list (`inset-inline-start`, `width`, `all`, ...). Without `properties` nothing new animates.
|
|
8
|
+
|
|
9
|
+
- [#1462](https://github.com/iray-tno/hozo/pull/1462) [`add3e7b`](https://github.com/iray-tno/hozo/commit/add3e7b2c5a152c770eabee7d09d723e925958e1) Thanks [@iray-tno](https://github.com/iray-tno)! - `HozoAnimated` and `PresenceContext` move from `@hozo/primitives` to `@hozo/engine` (`@hozo/engine/generated/animated`), so `@hozo/patterns` can run them. `@hozo/primitives/generated/animated` is gone; compiled output imports them through `@hozo/core/generated/animated` as before.
|
|
10
|
+
|
|
11
|
+
- [#1597](https://github.com/iray-tno/hozo/pull/1597) [`b3df5b7`](https://github.com/iray-tno/hozo/commit/b3df5b73a8ec104fe407d89472e4339411de311d) Thanks [@iray-tno](https://github.com/iray-tno)! - React Native 0.87 is now the lowest supported version (`react-native: >=0.87`), and `@hozo/media`'s Expo peers move to SDK 58 (`expo-video`, `expo-audio` and `expo-asset` `>=58 <59`). Native gradients go under `backgroundImage` again: the `experimental_backgroundImage` spelling existed only for React Native 0.86, which read nothing else.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#1099](https://github.com/iray-tno/hozo/pull/1099) [`d7dd5b9`](https://github.com/iray-tno/hozo/commit/d7dd5b9d91a77c6cf647ba2de6fb321f8e558613) Thanks [@iray-tno](https://github.com/iray-tno)! - A `Button` whose props reach it through a rest spread (`function B({ href, ...rest }) { return <Button {...rest} /> }`) works again on the Web. Since the compiler started deciding such a Button's element at build time, the spread reached the `<button>` or `<a>` raw, so `onPress` never became `onClick` and clicking an `@hozo/ui` Button did nothing. The spread now goes through the same translation as the uncompiled `Button`: `onPress`, `accessibilityLabel`, `accessibilityHint`, `testID`, `nativeID`, `disabled` and `data-*`. On an anchor, a press is still suppressed while disabled.
|
|
16
|
+
|
|
17
|
+
- [#1148](https://github.com/iray-tno/hozo/pull/1148) [`27536fc`](https://github.com/iray-tno/hozo/commit/27536fc602947b8928df7fa4d8940363fc0e3a67) Thanks [@iray-tno](https://github.com/iray-tno)! - On the Web a `Button` forwards `tabIndex`, so a `Button` in a `Toolbar` takes the roving tab stop the toolbar hands it, and the toolbar is one tab stop. Before this, every item stayed in the tab order. On a link that is disabled, the tab stop is still `-1`.
|
|
18
|
+
|
|
19
|
+
- [#1142](https://github.com/iray-tno/hozo/pull/1142) [`99892e2`](https://github.com/iray-tno/hozo/commit/99892e25f536991e2966aa60769bd7155d5d8336) Thanks [@iray-tno](https://github.com/iray-tno)! - A `Button` forwards what a wrapper needs to make it a trigger. That means `Tooltip` now opens around a `Button`, including `@hozo/ui`'s, whether it is compiled or not.
|
|
20
|
+
|
|
21
|
+
- On the Web: `ref`, `onFocus`, `onBlur`, `onKeyDown`, `onPointerEnter`, `onPointerLeave` and `aria-describedby`.
|
|
22
|
+
- On React Native: `ref`, `onFocus`, `onBlur`, `onHoverIn`, `onHoverOut` and `onLongPress`.
|
|
23
|
+
|
|
24
|
+
Before this, the uncompiled `Button` and the translation of a spread onto a compiled one both dropped these props. Other props it does not name are still not forwarded.
|
|
25
|
+
|
|
26
|
+
- [#1384](https://github.com/iray-tno/hozo/pull/1384) [`1b54676`](https://github.com/iray-tno/hozo/commit/1b54676fbc476f848d2e834a9443fde0bf888ce9) Thanks [@iray-tno](https://github.com/iray-tno)! - A windowed `CodeBlock` now windows on the Web too: only the lines near the visible ones are mounted, the rest are held as space, and an unwrapped block keeps its scrolling width with a hidden copy of the widest line. The lines stay one `<pre><code>`.
|
|
27
|
+
|
|
28
|
+
- [#1213](https://github.com/iray-tno/hozo/pull/1213) [`ffd5b6b`](https://github.com/iray-tno/hozo/commit/ffd5b6bbb0021d512d416fc5d8ae7441cc18c463) Thanks [@iray-tno](https://github.com/iray-tno)! - On the Web, a server-rendered `Image` whose `src` has already failed before hydration (`complete && naturalWidth === 0` when the ref attaches) now falls back to `defaultSource`, both directly and through a compiled spread.
|
|
29
|
+
|
|
30
|
+
- [#1039](https://github.com/iray-tno/hozo/pull/1039) [`cf7773e`](https://github.com/iray-tno/hozo/commit/cf7773edcfd5f9d9cb42e35489ce1b15e35312bb) Thanks [@iray-tno](https://github.com/iray-tno)! - A Text nested in `@hozo/ui`'s `Checkbox` or `Switch` label now takes their `hover:`, `active:` and `focus-visible:` text classes on Native. `@hozo/patterns`' pressable provides its state through `HozoInteractionContext`, now in `@hozo/behaviors/pressable-interaction` and shared with `@hozo/primitives`, so the `HozoText` a caller's Text compiles to reads it.
|
|
31
|
+
|
|
32
|
+
- [#1155](https://github.com/iray-tno/hozo/pull/1155) [`416d627`](https://github.com/iray-tno/hozo/commit/416d627e8afc6a3f321c95dbe1f74b630d173d7b) Thanks [@iray-tno](https://github.com/iray-tno)! - On the Web, a spread onto a compiled `View`, `Text` or `Image` keeps the props that need the element.
|
|
33
|
+
|
|
34
|
+
- **`onLayout`** is called on mount and when the layout changes, as it is uncompiled. It is not called again on a re-render.
|
|
35
|
+
- **The responder props** (`onStartShouldSetResponder`, `onResponderGrant`, `onResponderMove`, …) claim and release the pointer on a `View`.
|
|
36
|
+
- **An `Image` whose `src` fails to load falls back to `defaultSource`.**
|
|
37
|
+
|
|
38
|
+
Before this, these reached the DOM raw and did nothing. The spread's translation now adds a callback ref when the spread carries one of them. `@hozo/engine` exports `createSpreadResponder` for it: the responder without a hook.
|
|
39
|
+
|
|
40
|
+
- [#1119](https://github.com/iray-tno/hozo/pull/1119) [`242253d`](https://github.com/iray-tno/hozo/commit/242253da3910698e0838d74cbc9d51e1ca5995d6) Thanks [@iray-tno](https://github.com/iray-tno)! - A `TextInput` whose props reach it through a spread (`function F(props) { return <TextInput {...props} /> }`) works on the Web. The spread reached the `<input>` or `<textarea>` raw, so `onChangeText` was never called and a controlled `@hozo/ui` `Input` could not be typed into. The spread now goes through the same translation as the uncompiled `TextInput`: `onChangeText`, `onSubmitEditing`, `editable`, `keyboardType`, `secureTextEntry`, `returnKeyType`, `autoCorrect`, the `accessibility*` props, `testID` and `nativeID`. A named `onChangeText` that is `undefined` no longer throws when the field is typed into.
|
|
41
|
+
|
|
42
|
+
- [#1124](https://github.com/iray-tno/hozo/pull/1124) [`e7d97e9`](https://github.com/iray-tno/hozo/commit/e7d97e981615355534d0ea20c4a70410556cbda4) Thanks [@iray-tno](https://github.com/iray-tno)! - A `View`, `Text`, `Image` or document primitive whose props reach it through a spread (`function Box(props) { return <View {...props} /> }`) keeps them on the Web. The spread reached the element raw, so `accessibilityLabel`, `accessibilityHint`, `testID`, `nativeID`, `pointerEvents`, `accessibilityState`, `accessibilityValue` and `accessibilityLiveRegion` became unknown attributes, and the element lost its accessible name. The spread now goes through the same translation as the uncompiled primitive. On an `Image` it also resolves an object or list `src` and uses the accessibility label as `alt`.
|
|
43
|
+
- Updated dependencies [[`4270a72`](https://github.com/iray-tno/hozo/commit/4270a727b14605d7ff5c9831238e60cb518e3ed6), [`1c052da`](https://github.com/iray-tno/hozo/commit/1c052dad66426e8a4acd462c776f161249330c35), [`480e00a`](https://github.com/iray-tno/hozo/commit/480e00a0d6e165b92beb8dbf9310710fcceb7fd1), [`fac2f53`](https://github.com/iray-tno/hozo/commit/fac2f53a7636c7373cf22c4d49fcf5a137bb08ec), [`add3e7b`](https://github.com/iray-tno/hozo/commit/add3e7b2c5a152c770eabee7d09d723e925958e1), [`e4734c8`](https://github.com/iray-tno/hozo/commit/e4734c832c6469edc4ba88a7e09209b2b2ccd29b), [`b59995e`](https://github.com/iray-tno/hozo/commit/b59995e108e4cc9b6d093c2487cebece0d02a707), [`d5a1a1e`](https://github.com/iray-tno/hozo/commit/d5a1a1ee6a55dd50c6c2f91289a11a8665dd9d74), [`c1ca21a`](https://github.com/iray-tno/hozo/commit/c1ca21afee0e3f4dd92110570f3ff3775b01c4cf), [`5cbbb5d`](https://github.com/iray-tno/hozo/commit/5cbbb5de2ba68dd8e44c1939535a84f5325bb950), [`cf7773e`](https://github.com/iray-tno/hozo/commit/cf7773edcfd5f9d9cb42e35489ce1b15e35312bb), [`c4696a4`](https://github.com/iray-tno/hozo/commit/c4696a4660ceb546fc9e29bc18d1fe73979681e5), [`b3df5b7`](https://github.com/iray-tno/hozo/commit/b3df5b73a8ec104fe407d89472e4339411de311d), [`c9a3b4d`](https://github.com/iray-tno/hozo/commit/c9a3b4d61541024c66165c91a4b7e2a75c9a203c), [`416d627`](https://github.com/iray-tno/hozo/commit/416d627e8afc6a3f321c95dbe1f74b630d173d7b), [`37a9151`](https://github.com/iray-tno/hozo/commit/37a915152634d8e25dfa9b2958661d4bc8f0a134)]:
|
|
44
|
+
- @hozo/behaviors@0.4.0
|
|
45
|
+
- @hozo/engine@0.4.0
|
|
46
|
+
|
|
47
|
+
## 0.3.0
|
|
48
|
+
|
|
49
|
+
### Minor Changes
|
|
50
|
+
|
|
51
|
+
- [#923](https://github.com/iray-tno/hozo/pull/923) [`8d58223`](https://github.com/iray-tno/hozo/commit/8d5822322607b6214fa7f57d233a9173a45815b6) Thanks [@iray-tno](https://github.com/iray-tno)! - Compile project-defined Tailwind animations and their keyframes for both backends, including keyframes needed by dynamic class candidates. StyleX conditions inside property values now reach the shared condition model.
|
|
52
|
+
|
|
53
|
+
Extend Native negated conditions across supported environment, breakpoint, pixel-width, container, prop, sibling and interaction predicates. Link states use the existing interaction owner, descendant focus-visible follows that owner, and independent transform resets and runtime-state transform families compose without losing their other transform entries. Unsupported predicates are still diagnosed, not assumed false.
|
|
54
|
+
|
|
55
|
+
Respect project radius tokens and built-in radius overrides, discover runtime candidates in quoted class arrays, and preserve separate Native style keys for ternary branches. Caller classes override a component's resting look while explicit state classes retain their precedence. On Web, fallback candidate rules stay below authored Tailwind utilities, and conditional class selection reaches elements that remain components.
|
|
56
|
+
|
|
57
|
+
Native line-breaking utilities that cannot be represented now warn instead of failing the build. This does not implement Android/CJK line-break controls that React Native does not expose.
|
|
58
|
+
|
|
59
|
+
### Patch Changes
|
|
60
|
+
|
|
61
|
+
- [#923](https://github.com/iray-tno/hozo/pull/923) [`8d58223`](https://github.com/iray-tno/hozo/commit/8d5822322607b6214fa7f57d233a9173a45815b6) Thanks [@iray-tno](https://github.com/iray-tno)! - Uncompiled View, Text and Image forward refs to their platform hosts. Container measurement preserves the host instead of replacing it, and Web View layout defaults agree between compiled output and fallback components.
|
|
62
|
+
|
|
63
|
+
An uncompiled Svg now uses its accessibility label as its name, as the compiled path already did. Web controls, including generated Canvas controls and form/pattern actions, show the shared clickable cursor without giving disabled controls an active pointer.
|
|
64
|
+
|
|
65
|
+
- [#923](https://github.com/iray-tno/hozo/pull/923) [`8d58223`](https://github.com/iray-tno/hozo/commit/8d5822322607b6214fa7f57d233a9173a45815b6) Thanks [@iray-tno](https://github.com/iray-tno)! - Resolve Native pattern class-name slots through the project's runtime class resolver. Pattern controls now share the primitive interaction engine and deliver hover, focus, focus-visible and pressed facts to their actual owners instead of reporting pressed alone.
|
|
66
|
+
|
|
67
|
+
Static interaction styles are additionally wired for Chip, ColorPicker swatches, Pagination page controls and CommandPalette pointer-state item slots. Selection slots and nested controls retain their own ownership: a remove button does not inherit its row's focus, and a command item does not borrow the input's focus. Other static state slots and semantic predicates remain subject to their existing diagnostics.
|
|
68
|
+
|
|
69
|
+
Styled Button receives a pressed look; Checkbox and Switch indicators are real elements on both platforms rather than Native-invisible pseudo-elements. Non-transition Native Pressables and their Text children no longer allocate animation values/listeners. Interaction ownership remains mounted when transitions are added or removed. This removes idle animation work, not every initial-mount cost or every platform delivery difference; measured list mount/update tradeoffs remain tracked separately.
|
|
70
|
+
- Updated dependencies [[`80f2686`](https://github.com/iray-tno/hozo/commit/80f2686ace0922e27502695d0b88c1dba2e08be0), [`adfe1fd`](https://github.com/iray-tno/hozo/commit/adfe1fd914d60effc27677efdaee6edf19feaf6b), [`496f1b7`](https://github.com/iray-tno/hozo/commit/496f1b75e06bc5f5b079870ce566754e7161c21a), [`ad1ad0b`](https://github.com/iray-tno/hozo/commit/ad1ad0b355c6ecae07372f44a65aed279e539e22), [`8d58223`](https://github.com/iray-tno/hozo/commit/8d5822322607b6214fa7f57d233a9173a45815b6), [`8d58223`](https://github.com/iray-tno/hozo/commit/8d5822322607b6214fa7f57d233a9173a45815b6), [`8d58223`](https://github.com/iray-tno/hozo/commit/8d5822322607b6214fa7f57d233a9173a45815b6), [`70cc763`](https://github.com/iray-tno/hozo/commit/70cc763166d3f3aa04c466c5a12e7a8a4dba0a0f), [`9a33076`](https://github.com/iray-tno/hozo/commit/9a3307689c1a37847d45bea9083cee1f63c7edba), [`8d58223`](https://github.com/iray-tno/hozo/commit/8d5822322607b6214fa7f57d233a9173a45815b6), [`030d179`](https://github.com/iray-tno/hozo/commit/030d1791515ef5523560c38c1788e4b23f6bfd92)]:
|
|
71
|
+
- @hozo/behaviors@0.3.0
|
|
72
|
+
- @hozo/engine@0.3.0
|
|
73
|
+
|
|
3
74
|
## 0.2.0
|
|
4
75
|
|
|
5
76
|
- Add `Presence` to retain a child through exit animation and expose `data-state="closed"`.
|
package/README.md
CHANGED
|
@@ -37,6 +37,23 @@ child that does not carry the matching per-item tag — which `VirtualizedList`'
|
|
|
37
37
|
spacers do not. See [#512](https://github.com/iray-tno/hozo/issues/512); it comes back when React
|
|
38
38
|
Native stops casting that tag with `as` instead of `as?`.
|
|
39
39
|
|
|
40
|
+
### Responsive images
|
|
41
|
+
|
|
42
|
+
`Image` does what [#155](https://github.com/iray-tno/hozo/issues/155) asked for with what each platform already has, rather than with a second image component:
|
|
43
|
+
|
|
44
|
+
| | Web | React Native |
|
|
45
|
+
|---|---|---|
|
|
46
|
+
| A box before the image loads | `aspect-video`, `aspect-[4/3]`: CSS `aspect-ratio` | the same classes: `aspectRatio` |
|
|
47
|
+
| Several resolutions | `srcSet` and `sizes`, passed to `<img>` | `srcSet`, which React Native reads itself, by **density only** (`1x`, `2x`, `3x`) |
|
|
48
|
+
| A picture to show instead | `defaultSource`, shown if the image **fails** | `defaultSource`, shown **while it loads** on iOS |
|
|
49
|
+
| `loading="lazy"` | the browser's | ignored |
|
|
50
|
+
|
|
51
|
+
Width descriptors (`800w`) are skipped on device with a runtime warning, and `sizes` is not read there, so the compiler warns about a `srcSet` written with them.
|
|
52
|
+
|
|
53
|
+
Not provided:
|
|
54
|
+
- **BlurHash:** decoding one needs a library, which is a dependency for the application to choose (`expo-image` on Native).
|
|
55
|
+
- **A `<Picture>` with format negotiation:** that is the server's or the CDN's job, done with `Accept`.
|
|
56
|
+
|
|
40
57
|
What each primitive compiles to on both platforms is generated into
|
|
41
58
|
[docs/primitives.md](https://github.com/iray-tno/hozo/blob/main/docs/primitives.md).
|
|
42
59
|
|
|
@@ -54,6 +71,6 @@ backdrop blur. Those have no Web implementation to speak of, because they lower
|
|
|
54
71
|
|
|
55
72
|
---
|
|
56
73
|
|
|
57
|
-
Part of [Hozo](https://iray-tno.github.io/hozo/), a
|
|
74
|
+
Part of [Hozo](https://iray-tno.github.io/hozo/), a universal UI framework for React Native, compiled by Rust, with native semantics on every platform, first-class accessibility, and diagnostics for humans and AI agents alike. Most applications install [`@hozo/core`](https://www.npmjs.com/package/@hozo/core) and one build integration; see [Getting started](https://iray-tno.github.io/hozo/docs/getting-started/). Source and issues: [github.com/iray-tno/hozo](https://github.com/iray-tno/hozo).
|
|
58
75
|
|
|
59
76
|
<!-- /generated: package-footer -->
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** The documented DOM metadata channel; never forward arbitrary leftover props. */
|
|
2
|
+
export interface ButtonDataProps {
|
|
3
|
+
[name: `data-${string}`]: string | number | boolean | undefined;
|
|
4
|
+
}
|
|
5
|
+
export declare function buttonDataProps(props: ButtonDataProps): ButtonDataProps;
|
|
6
|
+
/**
|
|
7
|
+
* What a wrapper hands a Button to make it a trigger, by platform.
|
|
8
|
+
*
|
|
9
|
+
* `Tooltip` clones its child with a ref to position against, the handlers
|
|
10
|
+
* that open it, and -- on the Web -- `aria-describedby` naming the bubble.
|
|
11
|
+
* A Button that dropped them was a trigger nothing could hear (#1137).
|
|
12
|
+
* `Toolbar` hands its items a roving `tabIndex` on the Web, and a Button
|
|
13
|
+
* that dropped it left every item a tab stop of its own.
|
|
14
|
+
* Still a list rather than "every leftover prop": the rule above stands,
|
|
15
|
+
* and these are the ones a known wrapper writes.
|
|
16
|
+
*/
|
|
17
|
+
export declare const BUTTON_TRIGGER_PROPS_WEB: readonly ['ref', 'onFocus', 'onBlur', 'onKeyDown', 'onPointerEnter', 'onPointerLeave', 'aria-describedby', 'tabIndex'];
|
|
18
|
+
export declare const BUTTON_TRIGGER_PROPS_NATIVE: readonly ['ref', 'onFocus', 'onBlur', 'onHoverIn', 'onHoverOut', 'onLongPress'];
|
|
19
|
+
export declare function buttonTriggerProps(props: Record<string, unknown>, names: readonly string[]): Record<string, unknown>;
|
|
20
|
+
//# sourceMappingURL=button-host-attributes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button-host-attributes.d.ts","sourceRoot":"","sources":["../src/button-host-attributes.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,MAAM,WAAW,eAAe;IAC9B,CAAC,IAAI,EAAE,QAAQ,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAA;CAChE;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,eAAe,GAAG,eAAe,CAQvE;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,wBAAwB,YACnC,KAAK,EACL,SAAS,EACT,QAAQ,EACR,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,UAAU,CACF,CAAA;AAEV,eAAO,MAAM,2BAA2B,YACtC,KAAK,EACL,SAAS,EACT,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,aAAa,CACL,CAAA;AAEV,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9B,KAAK,EAAE,SAAS,MAAM,EAAE,GACvB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAMzB"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export function buttonDataProps(props) {
|
|
2
|
+
const data = {};
|
|
3
|
+
for (const name in props) {
|
|
4
|
+
if (Object.hasOwn(props, name) && name.startsWith('data-')) {
|
|
5
|
+
data[name] = props[name];
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
return data;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* What a wrapper hands a Button to make it a trigger, by platform.
|
|
12
|
+
*
|
|
13
|
+
* `Tooltip` clones its child with a ref to position against, the handlers
|
|
14
|
+
* that open it, and -- on the Web -- `aria-describedby` naming the bubble.
|
|
15
|
+
* A Button that dropped them was a trigger nothing could hear (#1137).
|
|
16
|
+
* `Toolbar` hands its items a roving `tabIndex` on the Web, and a Button
|
|
17
|
+
* that dropped it left every item a tab stop of its own.
|
|
18
|
+
* Still a list rather than "every leftover prop": the rule above stands,
|
|
19
|
+
* and these are the ones a known wrapper writes.
|
|
20
|
+
*/
|
|
21
|
+
export const BUTTON_TRIGGER_PROPS_WEB = [
|
|
22
|
+
'ref',
|
|
23
|
+
'onFocus',
|
|
24
|
+
'onBlur',
|
|
25
|
+
'onKeyDown',
|
|
26
|
+
'onPointerEnter',
|
|
27
|
+
'onPointerLeave',
|
|
28
|
+
'aria-describedby',
|
|
29
|
+
'tabIndex',
|
|
30
|
+
];
|
|
31
|
+
export const BUTTON_TRIGGER_PROPS_NATIVE = [
|
|
32
|
+
'ref',
|
|
33
|
+
'onFocus',
|
|
34
|
+
'onBlur',
|
|
35
|
+
'onHoverIn',
|
|
36
|
+
'onHoverOut',
|
|
37
|
+
'onLongPress',
|
|
38
|
+
];
|
|
39
|
+
export function buttonTriggerProps(props, names) {
|
|
40
|
+
const out = {};
|
|
41
|
+
for (const name of names) {
|
|
42
|
+
if (Object.hasOwn(props, name))
|
|
43
|
+
out[name] = props[name];
|
|
44
|
+
}
|
|
45
|
+
return out;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=button-host-attributes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button-host-attributes.js","sourceRoot":"","sources":["../src/button-host-attributes.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,eAAe,CAAC,KAAsB;IACpD,MAAM,IAAI,GAAoB,EAAE,CAAA;IAChC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;YAC3D,IAAI,CAAC,IAAwB,CAAC,GAAG,KAAK,CAAC,IAAwB,CAAC,CAAA;QAClE,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAA;AACb,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,KAAK;IACL,SAAS;IACT,QAAQ;IACR,WAAW;IACX,gBAAgB;IAChB,gBAAgB;IAChB,kBAAkB;IAClB,UAAU;CACF,CAAA;AAEV,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,KAAK;IACL,SAAS;IACT,QAAQ;IACR,WAAW;IACX,YAAY;IACZ,aAAa;CACL,CAAA;AAEV,MAAM,UAAU,kBAAkB,CAChC,KAA8B,EAC9B,KAAwB;IAExB,MAAM,GAAG,GAA4B,EAAE,CAAA;IACvC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC;YAAE,GAAG,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,CAAA;IACzD,CAAC;IACD,OAAO,GAAG,CAAA;AACZ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Preserve evaluation/identity of authored props, but name the platform
|
|
3
|
+
* boundary: RN has no DOM dataset. Metadata is not an accessibility label
|
|
4
|
+
* or nativeID. Do not fabricate either from an application's data channel.
|
|
5
|
+
* The compiler uses this for opaque spreads; the fallback uses it too.
|
|
6
|
+
*/
|
|
7
|
+
export declare function hozoButtonProps<T>(props: T): T;
|
|
8
|
+
//# sourceMappingURL=button-host-props.native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button-host-props.native.d.ts","sourceRoot":"","sources":["../src/button-host-props.native.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAa9C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
let warned = false;
|
|
2
|
+
/**
|
|
3
|
+
* Preserve evaluation/identity of authored props, but name the platform
|
|
4
|
+
* boundary: RN has no DOM dataset. Metadata is not an accessibility label
|
|
5
|
+
* or nativeID. Do not fabricate either from an application's data channel.
|
|
6
|
+
* The compiler uses this for opaque spreads; the fallback uses it too.
|
|
7
|
+
*/
|
|
8
|
+
export function hozoButtonProps(props) {
|
|
9
|
+
if (!warned && props !== null && typeof props === 'object') {
|
|
10
|
+
for (const name in props) {
|
|
11
|
+
if (Object.hasOwn(props, name) && name.startsWith('data-')) {
|
|
12
|
+
warned = true;
|
|
13
|
+
console.warn('[hozo] Button data-* metadata requires a Web DOM dataset; React Native does not consume it. nativeID remains available on both platforms. No data values are mapped to accessibility props.');
|
|
14
|
+
break;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return props;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=button-host-props.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button-host-props.native.js","sourceRoot":"","sources":["../src/button-host-props.native.ts"],"names":[],"mappings":"AAAA,IAAI,MAAM,GAAG,KAAK,CAAA;AAElB;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAI,KAAQ;IACzC,IAAI,CAAC,MAAM,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC3D,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;gBAC3D,MAAM,GAAG,IAAI,CAAA;gBACb,OAAO,CAAC,IAAI,CACV,6LAA6L,CAC9L,CAAA;gBACD,MAAK;YACP,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC"}
|
package/dist/foundation.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type HozoDomStyle, type ResponderProps } from '@hozo/engine';
|
|
2
|
-
import { type AriaRole, type CSSProperties, type MouseEventHandler, type ReactNode } from 'react';
|
|
2
|
+
import { type AriaRole, type CSSProperties, type FocusEventHandler, type KeyboardEventHandler, type MouseEventHandler, type PointerEventHandler, type ReactNode, type Ref } from 'react';
|
|
3
|
+
import { type ButtonDataProps } from './button-host-attributes.ts';
|
|
3
4
|
import { HozoPressable, type HozoPressableProps } from './pressable.ts';
|
|
4
5
|
import { HozoTextInput, type HozoTextInputProps } from './text-input.ts';
|
|
5
6
|
export type { HozoResponderEvent, HozoResponderTouch, HozoTouchHistory, HozoTouchTrack, ResponderProps, } from '@hozo/engine';
|
|
@@ -42,13 +43,15 @@ export interface UniversalProps {
|
|
|
42
43
|
export interface ViewProps extends UniversalProps, ResponderProps {
|
|
43
44
|
className?: string;
|
|
44
45
|
children?: ReactNode;
|
|
46
|
+
ref?: Ref<HTMLDivElement>;
|
|
45
47
|
}
|
|
46
|
-
export declare function View({ className, children, onLayout, ...universal }: ViewProps): import("react").JSX.Element;
|
|
48
|
+
export declare function View({ className, children, onLayout, ref, ...universal }: ViewProps): import("react").JSX.Element;
|
|
47
49
|
export interface TextProps extends UniversalProps {
|
|
48
50
|
className?: string;
|
|
49
51
|
children?: ReactNode;
|
|
52
|
+
ref?: Ref<HTMLSpanElement>;
|
|
50
53
|
}
|
|
51
|
-
export declare function Text({ className, children, onLayout, ...universal }: TextProps): import("react").JSX.Element;
|
|
54
|
+
export declare function Text({ className, children, onLayout, ref, ...universal }: TextProps): import("react").JSX.Element;
|
|
52
55
|
export interface ImageProps extends UniversalProps {
|
|
53
56
|
className?: string;
|
|
54
57
|
src: HozoImageSource;
|
|
@@ -57,13 +60,14 @@ export interface ImageProps extends UniversalProps {
|
|
|
57
60
|
accessibilityLabel?: string;
|
|
58
61
|
onLoad?: (event: unknown) => void;
|
|
59
62
|
onError?: (event: unknown) => void;
|
|
63
|
+
ref?: Ref<HTMLImageElement>;
|
|
60
64
|
}
|
|
61
65
|
export interface HozoImageSourceObject {
|
|
62
66
|
uri?: string;
|
|
63
67
|
default?: string;
|
|
64
68
|
}
|
|
65
69
|
export type HozoImageSource = string | number | HozoImageSourceObject | readonly HozoImageSourceObject[];
|
|
66
|
-
export declare function Image({ className, src, defaultSource, alt, accessibilityLabel, onLoad, onError, onLayout, ...universal }: ImageProps): import("react").JSX.Element;
|
|
70
|
+
export declare function Image({ className, src, defaultSource, alt, accessibilityLabel, onLoad, onError, onLayout, ref, ...universal }: ImageProps): import("react").JSX.Element;
|
|
67
71
|
export { HozoPressable as Pressable, type HozoPressableProps as PressableProps, HozoTextInput as TextInput, type HozoTextInputProps as TextInputProps, };
|
|
68
72
|
export interface LinkProps {
|
|
69
73
|
className?: string;
|
|
@@ -82,9 +86,10 @@ export interface LinkProps {
|
|
|
82
86
|
replace?: boolean;
|
|
83
87
|
prefetch?: boolean;
|
|
84
88
|
onPress?: MouseEventHandler<HTMLAnchorElement>;
|
|
89
|
+
disabled?: boolean;
|
|
85
90
|
}
|
|
86
91
|
export declare function Link({ children, ...props }: LinkProps): import("react").JSX.Element;
|
|
87
|
-
export interface ButtonProps {
|
|
92
|
+
export interface ButtonProps extends ButtonDataProps {
|
|
88
93
|
className?: string;
|
|
89
94
|
children?: ReactNode;
|
|
90
95
|
onPress?: MouseEventHandler<HTMLElement>;
|
|
@@ -99,6 +104,22 @@ export interface ButtonProps {
|
|
|
99
104
|
rel?: string;
|
|
100
105
|
download?: boolean | string;
|
|
101
106
|
testID?: string;
|
|
107
|
+
/** Stable host ID: DOM id on Web, nativeID on React Native. */
|
|
108
|
+
nativeID?: string;
|
|
109
|
+
/**
|
|
110
|
+
* What a wrapper writes to make this a trigger -- `Tooltip` positions
|
|
111
|
+
* against the ref, opens on these handlers, and names its bubble with
|
|
112
|
+
* `aria-describedby` (#1137). Forwarded to the element as given.
|
|
113
|
+
*/
|
|
114
|
+
ref?: Ref<HTMLElement>;
|
|
115
|
+
onFocus?: FocusEventHandler<HTMLElement>;
|
|
116
|
+
onBlur?: FocusEventHandler<HTMLElement>;
|
|
117
|
+
onKeyDown?: KeyboardEventHandler<HTMLElement>;
|
|
118
|
+
onPointerEnter?: PointerEventHandler<HTMLElement>;
|
|
119
|
+
onPointerLeave?: PointerEventHandler<HTMLElement>;
|
|
120
|
+
'aria-describedby'?: string;
|
|
121
|
+
/** A roving tab stop, as `Toolbar` hands its items. */
|
|
122
|
+
tabIndex?: number;
|
|
102
123
|
}
|
|
103
|
-
export declare function Button({ className, children, onPress, disabled, accessibilityLabel, accessibilityHint, href, external, replace, prefetch, target, rel, download, testID, }: ButtonProps): import("react").JSX.Element;
|
|
124
|
+
export declare function Button({ className, children, onPress, disabled, accessibilityLabel, accessibilityHint, href, external, replace, prefetch, target, rel, download, testID, nativeID, ...metadata }: ButtonProps): import("react").JSX.Element;
|
|
104
125
|
//# sourceMappingURL=foundation.d.ts.map
|
package/dist/foundation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"foundation.d.ts","sourceRoot":"","sources":["../src/foundation.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"foundation.d.ts","sourceRoot":"","sources":["../src/foundation.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,YAAY,EAIjB,KAAK,cAAc,EAEpB,MAAM,cAAc,CAAA;AACrB,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,SAAS,EACd,KAAK,GAAG,EAKT,MAAM,OAAO,CAAA;AACd,OAAO,EAEL,KAAK,eAAe,EAGrB,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAExE,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,cAAc,GACf,MAAM,cAAc,CAAA;AAErB,MAAM,WAAW,mBAAmB;IAClC,CAAC,EA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-runtime";
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// Canonical authored primitives. The compiler normally lowers these to a
|
|
3
3
|
// platform element, but these implementations keep uncompiled and partially
|
|
4
4
|
// compiled source useful instead of turning compilation into a runtime
|
|
5
5
|
// requirement.
|
|
6
|
-
import { hozoDomStyle, useResponderDomProps, } from '@hozo/engine';
|
|
7
|
-
import { useEffect, useRef, useState, } from 'react';
|
|
6
|
+
import { hozoDomStyle, hozoViewBase, hozoViewClassName, useResponderDomProps, } from '@hozo/engine';
|
|
7
|
+
import { useCallback, useEffect, useRef, useState, } from 'react';
|
|
8
|
+
import { BUTTON_TRIGGER_PROPS_WEB, buttonDataProps, buttonTriggerProps, } from './button-host-attributes.js';
|
|
8
9
|
import { HozoLink } from './link.js';
|
|
9
10
|
import { HozoPressable } from './pressable.js';
|
|
10
11
|
import { HozoTextInput } from './text-input.js';
|
|
@@ -32,8 +33,25 @@ function universalDomProps(props) {
|
|
|
32
33
|
'aria-description': props.accessibilityHint,
|
|
33
34
|
};
|
|
34
35
|
}
|
|
35
|
-
|
|
36
|
+
/**
|
|
37
|
+
* The element, for `onLayout` and the responder, and the caller's `ref` too.
|
|
38
|
+
*
|
|
39
|
+
* React Native's `View` takes a `ref`, and the compiled `<div>` passes one
|
|
40
|
+
* straight through. This fallback held its own ref for `onLayout` and gave
|
|
41
|
+
* the caller nothing, so whether `ref` worked depended on whether the
|
|
42
|
+
* compiler had run. `setRef` hands the node to both.
|
|
43
|
+
*/
|
|
44
|
+
function useLayoutRef(onLayout, forwarded) {
|
|
36
45
|
const elementRef = useRef(null);
|
|
46
|
+
// A new function only when the caller's ref changes, so React detaches the
|
|
47
|
+
// old one and attaches the new rather than re-running both every render.
|
|
48
|
+
const setRef = useCallback((node) => {
|
|
49
|
+
elementRef.current = node;
|
|
50
|
+
if (typeof forwarded === 'function')
|
|
51
|
+
forwarded(node);
|
|
52
|
+
else if (forwarded)
|
|
53
|
+
forwarded.current = node;
|
|
54
|
+
}, [forwarded]);
|
|
37
55
|
const callbackRef = useRef(onLayout);
|
|
38
56
|
callbackRef.current = onLayout;
|
|
39
57
|
useEffect(() => {
|
|
@@ -62,16 +80,16 @@ function useLayoutRef(onLayout) {
|
|
|
62
80
|
observer.observe(element);
|
|
63
81
|
return () => observer.disconnect();
|
|
64
82
|
}, []);
|
|
65
|
-
return elementRef;
|
|
83
|
+
return { elementRef, setRef };
|
|
66
84
|
}
|
|
67
|
-
export function View({ className, children, onLayout, ...universal }) {
|
|
68
|
-
const
|
|
69
|
-
const responder = useResponderDomProps(
|
|
70
|
-
return (_jsx("div", { ref:
|
|
85
|
+
export function View({ className, children, onLayout, ref, ...universal }) {
|
|
86
|
+
const { elementRef, setRef } = useLayoutRef(onLayout, ref);
|
|
87
|
+
const responder = useResponderDomProps(elementRef, universal);
|
|
88
|
+
return (_jsxs(_Fragment, { children: [hozoViewBase(), _jsx("div", { ref: setRef, className: hozoViewClassName(className), ...universalDomProps(universal), ...responder, children: children })] }));
|
|
71
89
|
}
|
|
72
|
-
export function Text({ className, children, onLayout, ...universal }) {
|
|
73
|
-
const
|
|
74
|
-
return (_jsx("span", { ref:
|
|
90
|
+
export function Text({ className, children, onLayout, ref, ...universal }) {
|
|
91
|
+
const { setRef } = useLayoutRef(onLayout, ref);
|
|
92
|
+
return (_jsx("span", { ref: setRef, className: className, ...universalDomProps(universal), children: children }));
|
|
75
93
|
}
|
|
76
94
|
function webImageSource(source) {
|
|
77
95
|
if (typeof source === 'string')
|
|
@@ -93,11 +111,42 @@ function webImageSource(source) {
|
|
|
93
111
|
? object.default
|
|
94
112
|
: undefined;
|
|
95
113
|
}
|
|
96
|
-
export function Image({ className, src, defaultSource, alt, accessibilityLabel, onLoad, onError, onLayout, ...universal }) {
|
|
97
|
-
const
|
|
114
|
+
export function Image({ className, src, defaultSource, alt, accessibilityLabel, onLoad, onError, onLayout, ref, ...universal }) {
|
|
115
|
+
const { setRef } = useLayoutRef(onLayout, ref);
|
|
98
116
|
const [failedSource, setFailedSource] = useState();
|
|
99
|
-
const
|
|
100
|
-
|
|
117
|
+
const primary = webImageSource(src);
|
|
118
|
+
const fallback = webImageSource(defaultSource);
|
|
119
|
+
const webSrc = (failedSource === src ? undefined : primary) ?? fallback;
|
|
120
|
+
// A server-rendered `<img>` starts loading before React hydrates, so its
|
|
121
|
+
// `error` event may already have fired when `onError` is attached (#1156).
|
|
122
|
+
// `complete && naturalWidth === 0` spots that, and `decode()` separates a
|
|
123
|
+
// broken load from a widthless SVG that some browsers report as 0px wide.
|
|
124
|
+
// The caller's `onError` is not synthesized here because the native error
|
|
125
|
+
// event has already come and gone before hydration.
|
|
126
|
+
const stateRef = useRef({ src, primary, fallback, failedSource });
|
|
127
|
+
stateRef.current = { src, primary, fallback, failedSource };
|
|
128
|
+
const imageRef = useCallback((node) => {
|
|
129
|
+
setRef(node);
|
|
130
|
+
const current = stateRef.current;
|
|
131
|
+
if (node &&
|
|
132
|
+
current.primary &&
|
|
133
|
+
current.fallback &&
|
|
134
|
+
current.failedSource !== current.src &&
|
|
135
|
+
node.complete &&
|
|
136
|
+
node.naturalWidth === 0) {
|
|
137
|
+
const failed = current.src;
|
|
138
|
+
if (typeof node.decode === 'function') {
|
|
139
|
+
node.decode().then(undefined, () => {
|
|
140
|
+
if (stateRef.current.src === failed)
|
|
141
|
+
setFailedSource(failed);
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
setFailedSource(failed);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}, [setRef]);
|
|
149
|
+
return (_jsx("img", { ref: imageRef, className: className, src: webSrc, alt: alt ?? accessibilityLabel ?? '', onLoad: onLoad, onError: (event) => {
|
|
101
150
|
setFailedSource(src);
|
|
102
151
|
onError?.(event);
|
|
103
152
|
}, ...universalDomProps(universal) }));
|
|
@@ -106,10 +155,14 @@ export { HozoPressable as Pressable, HozoTextInput as TextInput, };
|
|
|
106
155
|
export function Link({ children, ...props }) {
|
|
107
156
|
return _jsx(HozoLink, { ...props, children: children });
|
|
108
157
|
}
|
|
109
|
-
export function Button({ className, children, onPress, disabled, accessibilityLabel, accessibilityHint, href, external, replace, prefetch, target, rel, download, testID, }) {
|
|
158
|
+
export function Button({ className, children, onPress, disabled, accessibilityLabel, accessibilityHint, href, external, replace, prefetch, target, rel, download, testID, nativeID, ...metadata }) {
|
|
159
|
+
const data = {
|
|
160
|
+
...buttonDataProps(metadata),
|
|
161
|
+
...buttonTriggerProps(metadata, BUTTON_TRIGGER_PROPS_WEB),
|
|
162
|
+
};
|
|
110
163
|
if (href != null) {
|
|
111
|
-
return (_jsx(HozoLink, { href: href, external: external, replace: replace, prefetch: prefetch, target: target, rel: rel, download: download, className: className, accessibilityLabel: accessibilityLabel, accessibilityHint: accessibilityHint, disabled: disabled, testID: testID, onPress: onPress, children: children }));
|
|
164
|
+
return (_jsx(HozoLink, { ...data, href: href, external: external, replace: replace, prefetch: prefetch, target: target, rel: rel, download: download, className: className, accessibilityLabel: accessibilityLabel, accessibilityHint: accessibilityHint, disabled: disabled, testID: testID, nativeID: nativeID, onPress: onPress, children: children }));
|
|
112
165
|
}
|
|
113
|
-
return (_jsx("button", { type: "button", className: className, disabled: disabled, "data-hozo-disabled": disabled ? '' : undefined, "aria-label": accessibilityLabel, "aria-description": accessibilityHint, "data-testid": testID, onClick: onPress, children: children }));
|
|
166
|
+
return (_jsxs(_Fragment, { children: [hozoViewBase(), _jsx("button", { ...data, type: "button", className: className, disabled: disabled, "data-hozo-disabled": disabled ? '' : undefined, "aria-disabled": disabled, "data-hozo-pressable": onPress && !disabled ? '' : undefined, "aria-label": accessibilityLabel, "aria-description": accessibilityHint, "data-testid": testID, id: nativeID, onClick: onPress, children: children })] }));
|
|
114
167
|
}
|
|
115
168
|
//# sourceMappingURL=foundation.js.map
|
package/dist/foundation.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"foundation.js","sourceRoot":"","sources":["../src/foundation.tsx"],"names":[],"mappings":";AAAA,yEAAyE;AACzE,4EAA4E;AAC5E,uEAAuE;AACvE,eAAe;AAEf,OAAO,EAEL,YAAY,
|
|
1
|
+
{"version":3,"file":"foundation.js","sourceRoot":"","sources":["../src/foundation.tsx"],"names":[],"mappings":";AAAA,yEAAyE;AACzE,4EAA4E;AAC5E,uEAAuE;AACvE,eAAe;AAEf,OAAO,EAEL,YAAY,EACZ,YAAY,EACZ,iBAAiB,EAEjB,oBAAoB,GACrB,MAAM,cAAc,CAAA;AACrB,OAAO,EASL,WAAW,EACX,SAAS,EACT,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAA;AACd,OAAO,EACL,wBAAwB,EAExB,eAAe,EACf,kBAAkB,GACnB,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AACpC,OAAO,EAAE,aAAa,EAA2B,MAAM,gBAAgB,CAAA;AACvE,OAAO,EAAE,aAAa,EAA2B,MAAM,iBAAiB,CAAA;AA2CxE,SAAS,iBAAiB,CAAC,KAAqB;IAC9C,MAAM,KAAK,GAAG,KAAK,CAAC,kBAAkB,CAAA;IACtC,MAAM,KAAK,GAAG,KAAK,CAAC,kBAAkB,CAAA;IACtC,OAAO;QACL,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,KAAK,EAAE,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC;QAChC,aAAa,EAAE,KAAK,CAAC,MAAM;QAC3B,EAAE,EAAE,KAAK,CAAC,QAAQ;QAClB,0BAA0B,EAAE,KAAK,CAAC,aAAa;QAC/C,oBAAoB,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;QACtD,eAAe,EAAE,KAAK,EAAE,QAAQ;QAChC,eAAe,EAAE,KAAK,EAAE,QAAQ;QAChC,cAAc,EAAE,KAAK,EAAE,OAAO;QAC9B,WAAW,EAAE,KAAK,EAA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AI,EACV,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,GAAG,EACR,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,kBAAkB,EAAE,kBAAkB,EACtC,iBAAiB,EAAE,iBAAiB,EACpC,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAA+C,YAEvD,QAAQ,GACA,CACZ,CAAA;IACH,CAAC;IACD,OAAO,CACL,8BACG,YAAY,EAAE,EACf,oBACM,IAAI,EACR,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,wBACE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,mBAC9B,QAAQ,yBACF,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,gBAC9C,kBAAkB,sBACZ,iBAAiB,iBACtB,MAAM,EACnB,EAAE,EAAE,QAAQ,EACZ,OAAO,EAAE,OAA+C,YAEvD,QAAQ,GACF,IACR,CACJ,CAAA;AACH,CAAC"}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import React, { type ReactNode, type Ref } from 'react';
|
|
2
|
-
import { type AccessibilityRole,
|
|
1
|
+
import React, { type ComponentRef, type ReactNode, type Ref } from 'react';
|
|
2
|
+
import { type AccessibilityRole, Pressable as RNPressable, type PressableProps as RNPressableProps, TextInput as RNTextInput, type TextProps as RNTextProps, type StyleProp, type TextStyle, type ViewStyle } from 'react-native';
|
|
3
|
+
import { type ButtonDataProps } from './button-host-attributes.ts';
|
|
4
|
+
import { type NativeTextInputProps } from './text-input-props.native.ts';
|
|
3
5
|
export type { HozoResponderEvent, HozoResponderTouch, HozoTouchHistory, HozoTouchTrack, ResponderProps, } from '@hozo/engine';
|
|
4
|
-
export type { ImageProps,
|
|
5
|
-
export { Image,
|
|
6
|
+
export type { ImageProps, ViewProps, } from 'react-native';
|
|
7
|
+
export { Image, View } from 'react-native';
|
|
8
|
+
export type TextInputProps = NativeTextInputProps & {
|
|
9
|
+
ref?: Ref<ComponentRef<typeof RNTextInput>>;
|
|
10
|
+
};
|
|
11
|
+
/** The canonical disabled contract also applies outside compiler-owned JSX. */
|
|
12
|
+
export declare function TextInput({ ref, ...props }: TextInputProps): React.JSX.Element;
|
|
6
13
|
export type { HozoImageSource, HozoImageSourceObject, HozoLayoutEvent, HozoLayoutRectangle, HozoStyle, UniversalProps, } from './foundation.tsx';
|
|
7
14
|
export type TextProps = RNTextProps;
|
|
8
15
|
export declare function Text({ children, style, ...props }: TextProps): React.JSX.Element;
|
|
@@ -20,7 +27,7 @@ export interface PressableProps extends RNPressableProps {
|
|
|
20
27
|
* A caller needs it to hand the control to something else: `Dialog`'s
|
|
21
28
|
* `restoreFocusTo` is where this came up (#462).
|
|
22
29
|
*/
|
|
23
|
-
ref?: Ref<
|
|
30
|
+
ref?: Ref<ComponentRef<typeof RNPressable>>;
|
|
24
31
|
href?: string;
|
|
25
32
|
external?: boolean;
|
|
26
33
|
replace?: boolean;
|
|
@@ -43,6 +50,7 @@ export interface LinkProps {
|
|
|
43
50
|
onPress?: (event: {
|
|
44
51
|
defaultPrevented?: boolean;
|
|
45
52
|
}) => void;
|
|
53
|
+
disabled?: boolean;
|
|
46
54
|
style?: StyleProp<TextStyle>;
|
|
47
55
|
testID?: string;
|
|
48
56
|
nativeID?: string;
|
|
@@ -51,7 +59,7 @@ export interface LinkProps {
|
|
|
51
59
|
accessibilityRole?: AccessibilityRole;
|
|
52
60
|
}
|
|
53
61
|
export declare function Link({ href, external, replace, prefetch, target: _target, rel: _rel, download: _download, ...props }: LinkProps): React.JSX.Element;
|
|
54
|
-
export interface ButtonProps {
|
|
62
|
+
export interface ButtonProps extends ButtonDataProps {
|
|
55
63
|
className?: string;
|
|
56
64
|
children?: ReactNode;
|
|
57
65
|
onPress?: RNPressableProps['onPress'];
|
|
@@ -67,7 +75,19 @@ export interface ButtonProps {
|
|
|
67
75
|
download?: boolean | string;
|
|
68
76
|
style?: StyleProp<ViewStyle>;
|
|
69
77
|
testID?: string;
|
|
78
|
+
nativeID?: string;
|
|
79
|
+
/**
|
|
80
|
+
* What a wrapper writes to make this a trigger -- `Tooltip` measures the
|
|
81
|
+
* ref and opens on hover or a long press (#1137). Forwarded to the
|
|
82
|
+
* Pressable as given.
|
|
83
|
+
*/
|
|
84
|
+
ref?: Ref<ComponentRef<typeof RNPressable>>;
|
|
85
|
+
onFocus?: RNPressableProps['onFocus'];
|
|
86
|
+
onBlur?: RNPressableProps['onBlur'];
|
|
87
|
+
onHoverIn?: RNPressableProps['onHoverIn'];
|
|
88
|
+
onHoverOut?: RNPressableProps['onHoverOut'];
|
|
89
|
+
onLongPress?: RNPressableProps['onLongPress'];
|
|
70
90
|
}
|
|
71
91
|
export type ButtonNativeProps = ButtonProps;
|
|
72
|
-
export declare function Button({ children, onPress, disabled, accessibilityLabel, accessibilityHint, href, external, replace, prefetch, style, testID, }: ButtonProps): React.JSX.Element;
|
|
92
|
+
export declare function Button({ children, onPress, disabled, accessibilityLabel, accessibilityHint, href, external, replace, prefetch, style, testID, nativeID, ...metadata }: ButtonProps): React.JSX.Element;
|
|
73
93
|
//# sourceMappingURL=foundation.native.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"foundation.native.d.ts","sourceRoot":"","sources":["../src/foundation.native.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAsB,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"foundation.native.d.ts","sourceRoot":"","sources":["../src/foundation.native.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,KAAK,YAAY,EAAsB,KAAK,SAAS,EAAE,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