@hozo/primitives 0.1.0 → 0.3.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.
Files changed (76) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/README.md +24 -2
  3. package/dist/flat-list.native.d.ts +8 -8
  4. package/dist/flat-list.native.d.ts.map +1 -1
  5. package/dist/flat-list.native.js +55 -25
  6. package/dist/flat-list.native.js.map +1 -1
  7. package/dist/foundation.d.ts +7 -4
  8. package/dist/foundation.d.ts.map +1 -1
  9. package/dist/foundation.js +33 -16
  10. package/dist/foundation.js.map +1 -1
  11. package/dist/foundation.native.d.ts +16 -2
  12. package/dist/foundation.native.d.ts.map +1 -1
  13. package/dist/foundation.native.js.map +1 -1
  14. package/dist/index.d.ts +6 -3
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +7 -9
  17. package/dist/index.js.map +1 -1
  18. package/dist/index.native.d.ts +1 -0
  19. package/dist/index.native.d.ts.map +1 -1
  20. package/dist/index.native.js +1 -0
  21. package/dist/index.native.js.map +1 -1
  22. package/dist/link.native.d.ts +16 -7
  23. package/dist/link.native.d.ts.map +1 -1
  24. package/dist/link.native.js +9 -5
  25. package/dist/link.native.js.map +1 -1
  26. package/dist/presence-context.d.ts +15 -0
  27. package/dist/presence-context.d.ts.map +1 -0
  28. package/dist/presence-context.js +11 -0
  29. package/dist/presence-context.js.map +1 -0
  30. package/dist/presence.d.ts +12 -0
  31. package/dist/presence.d.ts.map +1 -0
  32. package/dist/presence.js +45 -0
  33. package/dist/presence.js.map +1 -0
  34. package/dist/presence.native.d.ts +8 -0
  35. package/dist/presence.native.d.ts.map +1 -0
  36. package/dist/presence.native.js +66 -0
  37. package/dist/presence.native.js.map +1 -0
  38. package/dist/pressable.d.ts +9 -2
  39. package/dist/pressable.d.ts.map +1 -1
  40. package/dist/pressable.js +9 -6
  41. package/dist/pressable.js.map +1 -1
  42. package/dist/pressable.native.d.ts.map +1 -1
  43. package/dist/pressable.native.js +181 -195
  44. package/dist/pressable.native.js.map +1 -1
  45. package/dist/runtime-container.native.d.ts +11 -9
  46. package/dist/runtime-container.native.d.ts.map +1 -1
  47. package/dist/runtime-container.native.js +8 -6
  48. package/dist/runtime-container.native.js.map +1 -1
  49. package/dist/runtime-transition.native.d.ts +16 -1
  50. package/dist/runtime-transition.native.d.ts.map +1 -1
  51. package/dist/runtime-transition.native.js +34 -7
  52. package/dist/runtime-transition.native.js.map +1 -1
  53. package/dist/text-input.d.ts +319 -3
  54. package/dist/text-input.d.ts.map +1 -1
  55. package/dist/text-input.js +4 -3
  56. package/dist/text-input.js.map +1 -1
  57. package/dist/view.d.ts +11 -2
  58. package/dist/view.d.ts.map +1 -1
  59. package/dist/view.js +7 -6
  60. package/dist/view.js.map +1 -1
  61. package/package.json +4 -3
  62. package/src/flat-list.native.tsx +69 -47
  63. package/src/foundation.native.tsx +16 -1
  64. package/src/foundation.tsx +66 -25
  65. package/src/index.native.ts +2 -0
  66. package/src/index.ts +209 -219
  67. package/src/link.native.tsx +29 -18
  68. package/src/presence-context.ts +27 -0
  69. package/src/presence.native.tsx +81 -0
  70. package/src/presence.tsx +55 -0
  71. package/src/pressable.native.tsx +251 -243
  72. package/src/pressable.ts +92 -79
  73. package/src/runtime-container.native.tsx +30 -15
  74. package/src/runtime-transition.native.tsx +68 -7
  75. package/src/text-input.ts +74 -72
  76. package/src/view.ts +76 -61
@@ -16,17 +16,19 @@ import { jsx as _jsx } from "react/jsx-runtime";
16
16
  // `HozoContainerQuery` renders no element of its own. It exists to put a
17
17
  // component boundary between the provider and the read, and adding a View
18
18
  // to do that would change the layout the query is measuring.
19
- import { createContext, useContext, useMemo, useState } from 'react';
19
+ import { createContext, useContext, useMemo, useState, } from 'react';
20
20
  import { View } from 'react-native';
21
21
  import { keepIfSettled } from './runtime-measured.js';
22
22
  const HozoContainerContext = createContext({});
23
23
  /**
24
- * A View that measures itself and hands its width to its subtree.
24
+ * Measures the existing host and hands its width to its subtree.
25
25
  *
26
- * The compiler renders an element here instead of a View when its classes
27
- * declared it a container.
26
+ * A provider adds no layout node. The host keeps its own style/children
27
+ * callbacks, refs and events rather than asking a replacement View to
28
+ * approximate them. An ordinary container still defaults to View.
28
29
  */
29
- export function HozoContainer({ hozoContainerName, onLayout, children, ...rest }) {
30
+ export function HozoContainer({ hozoContainerComponent, hozoContainerName, onLayout, children, ...rest }) {
31
+ const Component = hozoContainerComponent ?? View;
30
32
  const [width, setWidth] = useState(undefined);
31
33
  const outer = useContext(HozoContainerContext);
32
34
  const widths = useMemo(() => ({
@@ -45,7 +47,7 @@ export function HozoContainer({ hozoContainerName, onLayout, children, ...rest }
45
47
  setWidth((current) => keepIfSettled(current, measured));
46
48
  onLayout?.(event);
47
49
  };
48
- return (_jsx(View, { ...rest, onLayout: measure, children: _jsx(HozoContainerContext.Provider, { value: widths, children: children }) }));
50
+ return (_jsx(HozoContainerContext.Provider, { value: widths, children: _jsx(Component, { ...rest, onLayout: measure, children: children }) }));
49
51
  }
50
52
  /**
51
53
  * Hands the widths in scope to the element that queries them.
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-container.native.js","sourceRoot":"","sources":["../src/runtime-container.native.tsx"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,0EAA0E;AAC1E,yDAAyD;AACzD,EAAE;AACF,qEAAqE;AACrE,sEAAsE;AACtE,oEAAoE;AACpE,uEAAuE;AACvE,yEAAyE;AACzE,sEAAsE;AACtE,EAAE;AACF,yEAAyE;AACzE,0EAA0E;AAC1E,6DAA6D;AAE7D,OAAO,EAAE,aAAa,EAAkB,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACpF,OAAO,EAA0B,IAAI,EAAkB,MAAM,cAAc,CAAA;AAE3E,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAkBrD,MAAM,oBAAoB,GAAG,aAAa,CAAsB,EAAE,C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,CAAC"}
1
+ {"version":3,"file":"runtime-container.native.js","sourceRoot":"","sources":["../src/runtime-container.native.tsx"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,0EAA0E;AAC1E,yDAAyD;AACzD,EAAE;AACF,qEAAqE;AACrE,sEAAsE;AACtE,oEAAoE;AACpE,uEAAuE;AACvE,yEAAyE;AACzE,sEAAsE;AACtE,EAAE;AACF,yEAAyE;AACzE,0EAA0E;AAC1E,6DAA6D;AAE7D,OAAO,EAEL,aAAa,EAGb,UAAU,EACV,OAAO,EACP,QAAQ,GACT,MAAM,OAAO,CAAA;AACd,OAAO,EAA0B,IAAI,EAAE,MAAM,cAAc,CAAA;AAE3D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAkBrD,MAAM,oBAAoB,GAAG,aAAa,CAAsB,EAAE,CAAC,CAAA;AAUnE;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAAyC,EACpE,sBAAsB,EACtB,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,GAAG,IAAI,EACkB;IACzB,MAAM,SAAS,GAAgB,sBAAsB,IAAI,IAAI,CAAA;IAC7D,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAqB,SAAS,CAAC,CAAA;IACjE,MAAM,KAAK,GAAG,UAAU,CAAC,oBAAoB,CAAC,CAAA;IAE9C,MAAM,MAAM,GAAG,OAAO,CACpB,GAAG,EAAE,CAAC,CAAC;QACL,GAAG,KAAK;QACR,EAAE,EAAE,KAAK;QACT,GAAG,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAC,iBAAiB,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC7D,CAAC,EACF,CAAC,KAAK,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAClC,CAAA;IAED,uEAAuE;IACvE,wEAAwE;IACxE,MAAM,OAAO,GAAG,CAAC,KAAwB,EAAE,EAAE;QAC3C,MAAM,QAAQ,GAAG,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAA;QAC/C,qEAAqE;QACrE,sEAAsE;QACtE,mEAAmE;QACnE,+BAA+B;QAC/B,QAAQ,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAA;QACvD,QAAQ,EAAE,CAAC,KAAK,CAAC,CAAA;IACnB,CAAC,CAAA;IAED,OAAO,CACL,KAAC,oBAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,MAAM,YAC1C,KAAC,SAAS,OAAK,IAAI,EAAE,QAAQ,EAAE,OAAO,YACnC,QAAQ,GACC,GACkB,CACjC,CAAA;AACH,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,kBAAkB,CAAC,EACjC,QAAQ,GAGT;IACC,OAAO,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC,CAAA;AACnD,CAAC"}
@@ -8,8 +8,23 @@ export interface HozoTransitionSpec {
8
8
  export interface HozoAnimatedProps {
9
9
  style?: StyleProp<ViewStyle>;
10
10
  hozoTransition?: HozoTransitionSpec;
11
+ /**
12
+ * The first frame of an enter animation, from a `starting:` class
13
+ * (decision 007). The element mounts at these values and transitions to
14
+ * `style`, which is what `@starting-style` does on Web. Read once, on
15
+ * mount: it is where the element enters from, not a style it keeps.
16
+ */
17
+ hozoStarting?: StyleProp<ViewStyle>;
18
+ /**
19
+ * The last frame of an exit animation, from a `data-[state=closed]:`
20
+ * class (decision 007, amendment 1). Laid over `style` while the
21
+ * enclosing `Presence` is closing, which is what the attribute selector
22
+ * does on Web; `Presence` removes the element when the transition to it
23
+ * ends.
24
+ */
25
+ hozoExit?: StyleProp<ViewStyle>;
11
26
  children?: ReactNode;
12
27
  [key: string]: unknown;
13
28
  }
14
- export declare function HozoAnimated({ style, hozoTransition, children, ...props }: HozoAnimatedProps): import("react").JSX.Element;
29
+ export declare function HozoAnimated({ style, hozoTransition, hozoStarting, hozoExit, children, ...props }: HozoAnimatedProps): import("react").JSX.Element;
15
30
  //# sourceMappingURL=runtime-transition.native.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-transition.native.d.ts","sourceRoot":"","sources":["../src/runtime-transition.native.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAAE,KAAK,SAAS,EAA8B,MAAM,OAAO,CAAA;AAClE,OAAO,EAAoB,KAAK,SAAS,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAE3F,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,aAAa,CAAA;CAC1D;AA6BD,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IAC5B,cAAc,CAAC,EAAE,kBAAkB,CAAA;IACnC,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AAED,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,+BAoG5F"}
1
+ {"version":3,"file":"runtime-transition.native.d.ts","sourceRoot":"","sources":["../src/runtime-transition.native.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAAE,KAAK,SAAS,EAAoD,MAAM,OAAO,CAAA;AACxF,OAAO,EAAoB,KAAK,SAAS,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAG3F,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,aAAa,CAAA;CAC1D;AA6BD,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IAC5B,cAAc,CAAC,EAAE,kBAAkB,CAAA;IACnC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IACnC;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IAC/B,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AAED,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,iBAAiB,+BA0InB"}
@@ -20,8 +20,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
20
20
  // React Native cannot interpolate a colour natively, so mixing the two in
21
21
  // one `Animated.timing` would drag the fast ones onto the slow driver.
22
22
  // They are separate animations for that reason and not for tidiness.
23
- import { useEffect, useMemo, useRef } from 'react';
23
+ import { useContext, useEffect, useMemo, useRef, useState } from 'react';
24
24
  import { Animated, Easing, StyleSheet } from 'react-native';
25
+ import { PresenceContext } from './presence-context.js';
25
26
  /** The colour properties worth animating, in the order they are read. */
26
27
  const COLOR_KEYS = ['backgroundColor', 'borderColor', 'color'];
27
28
  /**
@@ -48,15 +49,25 @@ function transformMap(style) {
48
49
  function identity(key) {
49
50
  return key.startsWith('scale') ? 1 : 0;
50
51
  }
51
- export function HozoAnimated({ style, hozoTransition, children, ...props }) {
52
- const flat = useMemo(() => StyleSheet.flatten(style) ?? {}, [style]);
52
+ export function HozoAnimated({ style, hozoTransition, hozoStarting, hozoExit, children, ...props }) {
53
+ const presence = useContext(PresenceContext);
54
+ // Only an element that has somewhere to leave to takes part. One without
55
+ // `hozoExit` neither waits for `Presence` nor makes it wait.
56
+ const exits = presence !== null && hozoExit != null;
57
+ const leaving = exits && presence.state === 'closed';
58
+ const flat = useMemo(() => StyleSheet.flatten(leaving ? [style, hozoExit] : style) ?? {}, [style, hozoExit, leaving]);
53
59
  // One progress value per animation rather than one per property. The
54
60
  // properties change together -- they are the same rule flipping -- so
55
61
  // animating a single 0 → 1 and interpolating each property from its old
56
62
  // value to its new one is both cheaper and impossible to get out of
57
63
  // step with itself.
58
64
  const progress = useRef(new Animated.Value(1)).current;
59
- const from = useRef(flat);
65
+ // Without `hozoStarting` the first render has nothing to animate from --
66
+ // `from` and `to` are the same style, and the mount effect below runs an
67
+ // animation that moves nothing. With it, `from` is the starting frame
68
+ // laid over the style, so that same mount effect is the enter animation.
69
+ const [entersFrom] = useState(() => hozoStarting ? { ...flat, ...(StyleSheet.flatten(hozoStarting) ?? {}) } : flat);
70
+ const from = useRef(entersFrom);
60
71
  const to = useRef(flat);
61
72
  // What changed, computed during render so the effect below has nothing
62
73
  // to work out. `JSON.stringify` on the two style objects is enough: they
@@ -72,6 +83,19 @@ export function HozoAnimated({ style, hozoTransition, children, ...props }) {
72
83
  to.current = flat;
73
84
  previous.current = signature;
74
85
  }
86
+ // Registered for as long as it can exit, so `Presence` knows to wait for
87
+ // it and how long to wait before giving up.
88
+ const [id] = useState(() => Symbol('HozoAnimated'));
89
+ const register = exits ? presence.register : undefined;
90
+ const exitMs = hozoTransition ? hozoTransition.duration + (hozoTransition.delay ?? 0) : 0;
91
+ useEffect(() => register?.(id, exitMs), [register, id, exitMs]);
92
+ // Read when the animation ends, which is after this render's values may
93
+ // have changed.
94
+ const leavingNow = useRef(leaving);
95
+ leavingNow.current = leaving;
96
+ const done = presence?.done;
97
+ const doneNow = useRef(done);
98
+ doneNow.current = done;
75
99
  // `signature` is read above rather than inside, and it is what says the
76
100
  // style moved -- `hozoTransition` does not change when only the values
77
101
  // do. Without it a style change starts no transition at all, which is
@@ -93,9 +117,12 @@ export function HozoAnimated({ style, hozoTransition, children, ...props }) {
93
117
  // before the text that sits on it is worse than both arriving late.
94
118
  useNativeDriver: false,
95
119
  });
96
- animation.start();
120
+ animation.start(({ finished }) => {
121
+ if (finished && leavingNow.current)
122
+ doneNow.current?.(id);
123
+ });
97
124
  return () => animation.stop();
98
- }, [progress, signature, hozoTransition]);
125
+ }, [progress, signature, hozoTransition, id]);
99
126
  // biome-ignore lint/correctness/useExhaustiveDependencies: as above -- `signature` is what changed
100
127
  const animated = useMemo(() => {
101
128
  if (!hozoTransition)
@@ -135,7 +162,7 @@ export function HozoAnimated({ style, hozoTransition, children, ...props }) {
135
162
  }
136
163
  return [flat, overrides];
137
164
  }, [flat, hozoTransition, progress, signature]);
138
- return (_jsx(Animated.View, { style: animated, ...props, children: children }));
165
+ return (_jsx(Animated.View, { style: animated, ...props, children: exits ? (_jsx(PresenceContext.Provider, { value: null, children: children })) : (children) }));
139
166
  }
140
167
  function easingFor(name) {
141
168
  // Built here rather than in a module-level table, for the reason
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-transition.native.js","sourceRoot":"","sources":["../src/runtime-transition.native.tsx"],"names":[],"mappings":";AAAA,+DAA+D;AAC/D,eAAe;AACf,EAAE;AACF,2EAA2E;AAC3E,4EAA4E;AAC5E,wEAAwE;AACxE,0EAA0E;AAC1E,mEAAmE;AACnE,qEAAqE;AACrE,4DAA4D;AAC5D,EAAE;AACF,2EAA2E;AAC3E,yEAAyE;AACzE,yEAAyE;AACzE,2EAA2E;AAC3E,mDAAmD;AACnD,EAAE;AACF,0EAA0E;AAC1E,0EAA0E;AAC1E,uEAAuE;AACvE,qEAAqE;AAErE,OAAO,EAAkB,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAkB,UAAU,EAAkB,MAAM,cAAc,CAAA;AAQ3F,yEAAyE;AACzE,MAAM,UAAU,GAAG,CAAC,iBAAiB,EAAE,aAAa,EAAE,OAAO,CAAU,CAAA;AAEvE;;;;;;GAMG;AACH,SAAS,YAAY,CAAC,KAA4B;IAChD,MAAM,GAAG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iBACjF,CAAC;aACH,CAAC,CAAC,CAAA;QACL,CAAC;QAED,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,CAAA;IAC1B,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAA;IAE/C,OAAO,CACL,KAAC,QAAQ,CAAC,IAAI,IAAC,KAAK,EAAE,QAAgC,KAAM,KAAK,YAC9D,KAAK,CAAC,CAAC,CAAC,CAIP,KAAC,eAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,YAAG,QAAQ,GAA4B,CAC7E,CAAC,CAAC,CAAC,CACF,QAAQ,CACT,GACa,CACjB,CAAA;AACH,CAAC;AAED,SAAS,SAAS,CAAC,IAAkC;IACnD,iEAAiE;IACjE,oEAAoE;IACpE,6DAA6D;IAC7D,2DAA2D;IAC3D,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,QAAQ;YACX,OAAO,MAAM,CAAC,MAAM,CAAA;QACtB,KAAK,SAAS;YACZ,OAAO,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;QACpC,KAAK,UAAU;YACb,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAA;QACpC;YACE,OAAO,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAA;IACxC,CAAC;AACH,CAAC"}
@@ -1,8 +1,10 @@
1
1
  import { type HozoDomStyle } from '@hozo/engine';
2
- import { type ChangeEventHandler, type InputHTMLAttributes, type KeyboardEvent, type ReactNode } from 'react';
2
+ import { type ChangeEvent, type ChangeEventHandler, type InputHTMLAttributes, type KeyboardEvent, type ReactNode, type Ref } from 'react';
3
3
  type InputMode = 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';
4
- type DomInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'children' | 'onChange' | 'onKeyDown' | 'readOnly' | 'size' | 'style' | 'value'>;
4
+ type DomInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'autoCorrect' | 'children' | 'onChange' | 'onKeyDown' | 'readOnly' | 'size' | 'style' | 'value'>;
5
5
  export interface HozoTextInputProps extends DomInputProps {
6
+ /** Declared here, because React 19 takes `ref` as an ordinary prop. */
7
+ ref?: Ref<HTMLInputElement | HTMLTextAreaElement>;
6
8
  children?: ReactNode;
7
9
  value?: string;
8
10
  style?: HozoDomStyle;
@@ -20,6 +22,8 @@ export interface HozoTextInputProps extends DomInputProps {
20
22
  };
21
23
  }) => void;
22
24
  editable?: boolean;
25
+ /** React Native uses a boolean; the DOM spells it as "on" / "off". */
26
+ autoCorrect?: boolean;
23
27
  readOnly?: boolean;
24
28
  multiline?: boolean;
25
29
  numberOfLines?: number;
@@ -35,6 +39,318 @@ export interface HozoTextInputProps extends DomInputProps {
35
39
  hitSlop?: unknown;
36
40
  }
37
41
  /** A value-level TextInput for factories and other code the JSX compiler cannot rewrite. */
38
- export declare const HozoTextInput: import("react").ForwardRefExoticComponent<HozoTextInputProps & import("react").RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
42
+ export declare function HozoTextInput({ ref, autoCorrect, accessibilityHint, accessibilityLabel, accessibilityLabelledBy, blurOnSubmit, cursorColor, editable, hitSlop: _hitSlop, inputMode, keyboardAppearance: _keyboardAppearance, keyboardType, multiline, nativeID, numberOfLines, onChange, onChangeText, onKeyPress, onSubmitEditing, placeholderTextColor: _placeholderTextColor, readOnly, returnKeyType, secureTextEntry, selectionColor, style, testID, value, ...props }: HozoTextInputProps): import("react").DetailedReactHTMLElement<{
43
+ dangerouslySetInnerHTML?: {
44
+ __html: string | TrustedHTML;
45
+ } | undefined;
46
+ onCopy?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
47
+ onCopyCapture?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
48
+ onCut?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
49
+ onCutCapture?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
50
+ onPaste?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
51
+ onPasteCapture?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
52
+ onCompositionEnd?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
53
+ onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
54
+ onCompositionStart?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
55
+ onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
56
+ onCompositionUpdate?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
57
+ onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLInputElement> | undefined;
58
+ onFocus?: import("react").FocusEventHandler<HTMLInputElement> | undefined;
59
+ onFocusCapture?: import("react").FocusEventHandler<HTMLInputElement> | undefined;
60
+ onBlur?: import("react").FocusEventHandler<HTMLInputElement> | undefined;
61
+ onBlurCapture?: import("react").FocusEventHandler<HTMLInputElement> | undefined;
62
+ onChangeCapture?: ChangeEventHandler<HTMLInputElement, Element> | undefined;
63
+ onBeforeInput?: import("react").InputEventHandler<HTMLInputElement> | undefined;
64
+ onBeforeInputCapture?: import("react").InputEventHandler<HTMLInputElement> | undefined;
65
+ onInput?: import("react").InputEventHandler<HTMLInputElement> | undefined;
66
+ onInputCapture?: import("react").InputEventHandler<HTMLInputElement> | undefined;
67
+ onReset?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
68
+ onResetCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
69
+ onSubmit?: import("react").SubmitEventHandler<HTMLInputElement> | undefined;
70
+ onSubmitCapture?: import("react").SubmitEventHandler<HTMLInputElement> | undefined;
71
+ onInvalid?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
72
+ onInvalidCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
73
+ onLoad?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
74
+ onLoadCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
75
+ onError?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
76
+ onErrorCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
77
+ onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
78
+ onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
79
+ onKeyUp?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
80
+ onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLInputElement> | undefined;
81
+ onAbort?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
82
+ onAbortCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
83
+ onCanPlay?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
84
+ onCanPlayCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
85
+ onCanPlayThrough?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
86
+ onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
87
+ onDurationChange?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
88
+ onDurationChangeCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
89
+ onEmptied?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
90
+ onEmptiedCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
91
+ onEncrypted?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
92
+ onEncryptedCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
93
+ onEnded?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
94
+ onEndedCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
95
+ onLoadedData?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
96
+ onLoadedDataCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
97
+ onLoadedMetadata?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
98
+ onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
99
+ onLoadStart?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
100
+ onLoadStartCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
101
+ onPause?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
102
+ onPauseCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
103
+ onPlay?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
104
+ onPlayCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
105
+ onPlaying?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
106
+ onPlayingCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
107
+ onProgress?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
108
+ onProgressCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
109
+ onRateChange?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
110
+ onRateChangeCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
111
+ onSeeked?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
112
+ onSeekedCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
113
+ onSeeking?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
114
+ onSeekingCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
115
+ onStalled?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
116
+ onStalledCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
117
+ onSuspend?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
118
+ onSuspendCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
119
+ onTimeUpdate?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
120
+ onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
121
+ onVolumeChange?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
122
+ onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
123
+ onWaiting?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
124
+ onWaitingCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
125
+ onAuxClick?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
126
+ onAuxClickCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
127
+ onClick?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
128
+ onClickCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
129
+ onContextMenu?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
130
+ onContextMenuCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
131
+ onDoubleClick?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
132
+ onDoubleClickCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
133
+ onDrag?: import("react").DragEventHandler<HTMLInputElement> | undefined;
134
+ onDragCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
135
+ onDragEnd?: import("react").DragEventHandler<HTMLInputElement> | undefined;
136
+ onDragEndCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
137
+ onDragEnter?: import("react").DragEventHandler<HTMLInputElement> | undefined;
138
+ onDragEnterCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
139
+ onDragExit?: import("react").DragEventHandler<HTMLInputElement> | undefined;
140
+ onDragExitCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
141
+ onDragLeave?: import("react").DragEventHandler<HTMLInputElement> | undefined;
142
+ onDragLeaveCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
143
+ onDragOver?: import("react").DragEventHandler<HTMLInputElement> | undefined;
144
+ onDragOverCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
145
+ onDragStart?: import("react").DragEventHandler<HTMLInputElement> | undefined;
146
+ onDragStartCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
147
+ onDrop?: import("react").DragEventHandler<HTMLInputElement> | undefined;
148
+ onDropCapture?: import("react").DragEventHandler<HTMLInputElement> | undefined;
149
+ onMouseDown?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
150
+ onMouseDownCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
151
+ onMouseEnter?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
152
+ onMouseLeave?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
153
+ onMouseMove?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
154
+ onMouseMoveCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
155
+ onMouseOut?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
156
+ onMouseOutCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
157
+ onMouseOver?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
158
+ onMouseOverCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
159
+ onMouseUp?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
160
+ onMouseUpCapture?: import("react").MouseEventHandler<HTMLInputElement> | undefined;
161
+ onSelect?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
162
+ onSelectCapture?: import("react").ReactEventHandler<HTMLInputElement> | undefined;
163
+ onTouchCancel?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
164
+ onTouchCancelCapture?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
165
+ onTouchEnd?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
166
+ onTouchEndCapture?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
167
+ onTouchMove?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
168
+ onTouchMoveCapture?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
169
+ onTouchStart?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
170
+ onTouchStartCapture?: import("react").TouchEventHandler<HTMLInputElement> | undefined;
171
+ onPointerDown?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
172
+ onPointerDownCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
173
+ onPointerMove?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
174
+ onPointerMoveCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
175
+ onPointerUp?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
176
+ onPointerUpCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
177
+ onPointerCancel?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
178
+ onPointerCancelCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
179
+ onPointerEnter?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
180
+ onPointerLeave?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
181
+ onPointerOver?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
182
+ onPointerOverCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
183
+ onPointerOut?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
184
+ onPointerOutCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
185
+ onGotPointerCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
186
+ onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
187
+ onLostPointerCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
188
+ onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLInputElement> | undefined;
189
+ onScroll?: import("react").UIEventHandler<HTMLInputElement> | undefined;
190
+ onScrollCapture?: import("react").UIEventHandler<HTMLInputElement> | undefined;
191
+ onScrollEnd?: import("react").UIEventHandler<HTMLInputElement> | undefined;
192
+ onScrollEndCapture?: import("react").UIEventHandler<HTMLInputElement> | undefined;
193
+ onWheel?: import("react").WheelEventHandler<HTMLInputElement> | undefined;
194
+ onWheelCapture?: import("react").WheelEventHandler<HTMLInputElement> | undefined;
195
+ onAnimationStart?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
196
+ onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
197
+ onAnimationEnd?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
198
+ onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
199
+ onAnimationIteration?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
200
+ onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLInputElement> | undefined;
201
+ onToggle?: import("react").ToggleEventHandler<HTMLInputElement> | undefined;
202
+ onBeforeToggle?: import("react").ToggleEventHandler<HTMLInputElement> | undefined;
203
+ onTransitionCancel?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
204
+ onTransitionCancelCapture?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
205
+ onTransitionEnd?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
206
+ onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
207
+ onTransitionRun?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
208
+ onTransitionRunCapture?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
209
+ onTransitionStart?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
210
+ onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLInputElement> | undefined;
211
+ "aria-activedescendant"?: string | undefined;
212
+ "aria-atomic"?: ("false" | "true" | boolean) | undefined;
213
+ "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
214
+ "aria-braillelabel"?: string | undefined;
215
+ "aria-brailleroledescription"?: string | undefined;
216
+ "aria-busy"?: ("false" | "true" | boolean) | undefined;
217
+ "aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
218
+ "aria-colcount"?: number | undefined;
219
+ "aria-colindex"?: number | undefined;
220
+ "aria-colindextext"?: string | undefined;
221
+ "aria-colspan"?: number | undefined;
222
+ "aria-controls"?: string | undefined;
223
+ "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
224
+ "aria-describedby"?: string | undefined;
225
+ "aria-details"?: string | undefined;
226
+ "aria-disabled"?: ("false" | "true" | boolean) | undefined;
227
+ "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
228
+ "aria-errormessage"?: string | undefined;
229
+ "aria-expanded"?: ("false" | "true" | boolean) | undefined;
230
+ "aria-flowto"?: string | undefined;
231
+ "aria-grabbed"?: ("false" | "true" | boolean) | undefined;
232
+ "aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
233
+ "aria-hidden"?: ("false" | "true" | boolean) | undefined;
234
+ "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
235
+ "aria-keyshortcuts"?: string | undefined;
236
+ "aria-level"?: number | undefined;
237
+ "aria-live"?: "off" | "assertive" | "polite" | undefined;
238
+ "aria-modal"?: ("false" | "true" | boolean) | undefined;
239
+ "aria-multiline"?: ("false" | "true" | boolean) | undefined;
240
+ "aria-multiselectable"?: ("false" | "true" | boolean) | undefined;
241
+ "aria-orientation"?: "horizontal" | "vertical" | undefined;
242
+ "aria-owns"?: string | undefined;
243
+ "aria-placeholder"?: string | undefined;
244
+ "aria-posinset"?: number | undefined;
245
+ "aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
246
+ "aria-readonly"?: ("false" | "true" | boolean) | undefined;
247
+ "aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
248
+ "aria-required"?: ("false" | "true" | boolean) | undefined;
249
+ "aria-roledescription"?: string | undefined;
250
+ "aria-rowcount"?: number | undefined;
251
+ "aria-rowindex"?: number | undefined;
252
+ "aria-rowindextext"?: string | undefined;
253
+ "aria-rowspan"?: number | undefined;
254
+ "aria-selected"?: ("false" | "true" | boolean) | undefined;
255
+ "aria-setsize"?: number | undefined;
256
+ "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
257
+ "aria-valuemax"?: number | undefined;
258
+ "aria-valuemin"?: number | undefined;
259
+ "aria-valuenow"?: number | undefined;
260
+ "aria-valuetext"?: string | undefined;
261
+ defaultChecked?: boolean | undefined;
262
+ defaultValue?: string | number | readonly string[] | undefined;
263
+ suppressContentEditableWarning?: boolean | undefined;
264
+ suppressHydrationWarning?: boolean | undefined;
265
+ accessKey?: string | undefined;
266
+ autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
267
+ autoFocus?: boolean | undefined;
268
+ className?: string | undefined;
269
+ contentEditable?: ("false" | "true" | boolean) | "inherit" | "plaintext-only" | undefined;
270
+ contextMenu?: string | undefined;
271
+ dir?: string | undefined;
272
+ draggable?: ("false" | "true" | boolean) | undefined;
273
+ hidden?: boolean | undefined;
274
+ lang?: string | undefined;
275
+ nonce?: string | undefined;
276
+ slot?: string | undefined;
277
+ spellCheck?: ("false" | "true" | boolean) | undefined;
278
+ tabIndex?: number | undefined;
279
+ title?: string | undefined;
280
+ translate?: "yes" | "no" | undefined;
281
+ radioGroup?: string | undefined;
282
+ role?: import("react").AriaRole | undefined;
283
+ about?: string | undefined;
284
+ content?: string | undefined;
285
+ datatype?: string | undefined;
286
+ inlist?: any;
287
+ prefix?: string | undefined;
288
+ property?: string | undefined;
289
+ rel?: string | undefined;
290
+ resource?: string | undefined;
291
+ rev?: string | undefined;
292
+ typeof?: string | undefined;
293
+ vocab?: string | undefined;
294
+ autoSave?: string | undefined;
295
+ color?: string | undefined;
296
+ itemProp?: string | undefined;
297
+ itemScope?: boolean | undefined;
298
+ itemType?: string | undefined;
299
+ itemID?: string | undefined;
300
+ itemRef?: string | undefined;
301
+ results?: number | undefined;
302
+ security?: string | undefined;
303
+ unselectable?: "on" | "off" | undefined;
304
+ popover?: "" | "auto" | "manual" | "hint" | undefined;
305
+ popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
306
+ popoverTarget?: string | undefined;
307
+ inert?: boolean | undefined;
308
+ is?: string | undefined;
309
+ exportparts?: string | undefined;
310
+ part?: string | undefined;
311
+ accept?: string | undefined;
312
+ alt?: string | undefined;
313
+ autoComplete?: import("react").HTMLInputAutoCompleteAttribute | undefined;
314
+ capture?: boolean | "user" | "environment" | undefined;
315
+ checked?: boolean | undefined;
316
+ disabled?: boolean | undefined;
317
+ form?: string | undefined;
318
+ formAction?: string | ((formData: FormData) => void | Promise<void>) | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS] | undefined;
319
+ formEncType?: string | undefined;
320
+ formMethod?: string | undefined;
321
+ formNoValidate?: boolean | undefined;
322
+ formTarget?: string | undefined;
323
+ height?: number | string | undefined;
324
+ list?: string | undefined;
325
+ max?: number | string | undefined;
326
+ maxLength?: number | undefined;
327
+ min?: number | string | undefined;
328
+ minLength?: number | undefined;
329
+ multiple?: boolean | undefined;
330
+ name?: string | undefined;
331
+ pattern?: string | undefined;
332
+ placeholder?: string | undefined;
333
+ required?: boolean | undefined;
334
+ src?: string | undefined;
335
+ step?: number | string | undefined;
336
+ width?: number | string | undefined;
337
+ children?: ReactNode;
338
+ autoCorrect: string | undefined;
339
+ id: string | undefined;
340
+ value: string | undefined;
341
+ readOnly: boolean | undefined;
342
+ inputMode: InputMode | undefined;
343
+ enterKeyHint: InputHTMLAttributes<HTMLInputElement>['enterKeyHint'];
344
+ style: import("react").CSSProperties | undefined;
345
+ 'aria-label': string | undefined;
346
+ 'aria-description': string | undefined;
347
+ 'aria-labelledby': string | undefined;
348
+ 'data-testid': string | undefined;
349
+ onChange: (event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
350
+ onKeyDown: (event: KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
351
+ ref: Ref<HTMLInputElement | HTMLTextAreaElement> | undefined;
352
+ rows: number | undefined;
353
+ type: import("react").HTMLInputTypeAttribute | undefined;
354
+ }, HTMLInputElement | HTMLTextAreaElement>;
39
355
  export {};
40
356
  //# sourceMappingURL=text-input.d.ts.map
@@ -1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AAA;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,4FAA4F;AAC5F,wBAAgB,aAAa,CAAC,EAC5B,GAAG,EACH,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,OAAO,EAAE,QAAQ,EACjB,SAAS,EACT,kBAAkB,EAAE,mBAAmB,EACvC,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,eAAe,EACf,oBAAoB,EAAE,qBAAqB,EAC3C,QAAQ,EACR,aAAa,EACb,eAAe,EACf,cAAc,EACd,KAAK,EACL,MAAM,EACN,KAAK,EACL,GAAG,KAAK,EACT,EAAE,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA5DR,SAAS;;;;;;kBAoFa,mBAAmB,CAAC,gBAAgB,CAAC,CAAC,cAAc,CAAC;;;;;;sBAvB/D,WAAW,CAAC,gBAAgB,GAAG,mBAAmB,CAAC;uBAIlD,aAAa,CAAC,gBAAgB,GAAG,mBAAmB,CAAC;;;;2CAkC9E"}
@@ -1,5 +1,5 @@
1
1
  import { hozoDomStyle } from '@hozo/engine';
2
- import { createElement, forwardRef, } from 'react';
2
+ import { createElement, } from 'react';
3
3
  const INPUT_MODES = {
4
4
  'number-pad': 'numeric',
5
5
  numeric: 'numeric',
@@ -10,7 +10,7 @@ const INPUT_MODES = {
10
10
  'web-search': 'search',
11
11
  };
12
12
  /** A value-level TextInput for factories and other code the JSX compiler cannot rewrite. */
13
- export const HozoTextInput = forwardRef(function HozoTextInput({ accessibilityHint, accessibilityLabel, accessibilityLabelledBy, blurOnSubmit, cursorColor, editable, hitSlop: _hitSlop, inputMode, keyboardAppearance: _keyboardAppearance, keyboardType, multiline, nativeID, numberOfLines, onChange, onChangeText, onKeyPress, onSubmitEditing, placeholderTextColor: _placeholderTextColor, readOnly, returnKeyType, secureTextEntry, selectionColor, style, testID, value, ...props }, ref) {
13
+ export function HozoTextInput({ ref, autoCorrect, accessibilityHint, accessibilityLabel, accessibilityLabelledBy, blurOnSubmit, cursorColor, editable, hitSlop: _hitSlop, inputMode, keyboardAppearance: _keyboardAppearance, keyboardType, multiline, nativeID, numberOfLines, onChange, onChangeText, onKeyPress, onSubmitEditing, placeholderTextColor: _placeholderTextColor, readOnly, returnKeyType, secureTextEntry, selectionColor, style, testID, value, ...props }) {
14
14
  const change = (event) => {
15
15
  onChange?.(event);
16
16
  onChangeText?.(event.currentTarget.value);
@@ -31,6 +31,7 @@ export const HozoTextInput = forwardRef(function HozoTextInput({ accessibilityHi
31
31
  ]);
32
32
  const shared = {
33
33
  ...props,
34
+ autoCorrect: autoCorrect === undefined ? undefined : autoCorrect ? 'on' : 'off',
34
35
  id: nativeID,
35
36
  value,
36
37
  readOnly: readOnly ?? (editable === undefined ? undefined : !editable),
@@ -50,5 +51,5 @@ export const HozoTextInput = forwardRef(function HozoTextInput({ accessibilityHi
50
51
  rows: multiline ? numberOfLines : undefined,
51
52
  type: multiline ? undefined : secureTextEntry ? 'password' : props.type,
52
53
  });
53
- });
54
+ }
54
55
  //# sourceMappingURL=text-input.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-input.js","sourceRoot":"","sources":["../src/text-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,YAAY,EAAE,MAAM,cAAc,CAAA;AAC9D,OAAO,EAGL,aAAa,EACb,UAAU,G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AC"}
package/dist/view.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { type HozoDomStyle, type ResponderProps } from '@hozo/engine';
2
- import { type HTMLAttributes, type ReactNode } from 'react';
2
+ import { type HTMLAttributes, type ReactNode, type Ref } from 'react';
3
3
  export interface HozoLayoutEvent {
4
4
  nativeEvent: {
5
5
  layout: {
@@ -36,7 +36,16 @@ export interface HozoViewProps extends Omit<HTMLAttributes<HTMLDivElement>, 'chi
36
36
  onLayout?: (event: HozoLayoutEvent) => void;
37
37
  collapsable?: boolean;
38
38
  'data-hozo-disabled'?: string;
39
+ /**
40
+ * Declared here rather than supplied by `forwardRef`'s return type.
41
+ *
42
+ * React 19 takes `ref` as an ordinary prop, so the component is a plain
43
+ * function and nothing adds `ref` to its props on the way out. A caller's
44
+ * `ref` is accepted because this line says so, which is also why it has to
45
+ * be destructured below: `...props` would otherwise carry it to the `div`.
46
+ */
47
+ ref?: Ref<HTMLDivElement>;
39
48
  }
40
49
  /** A measured/responder-aware View for the Web paths that cannot be a plain div. */
41
- export declare const HozoView: import("react").ForwardRefExoticComponent<HozoViewProps & import("react").RefAttributes<HTMLDivElement>>;
50
+ export declare function HozoView({ ref: forwardedRef, children, style, testID, nativeID, pointerEvents, accessibilityLabel, accessibilityHint, accessibilityRole, accessibilityState, accessibilityValue, accessibilityLiveRegion, onLayout, collapsable: _collapsable, role, 'aria-disabled': ariaDisabled, 'data-hozo-disabled': dataHozoDisabled, onStartShouldSetResponder, onStartShouldSetResponderCapture, onMoveShouldSetResponder, onMoveShouldSetResponderCapture, onResponderGrant, onResponderStart, onResponderMove, onResponderEnd, onResponderRelease, onResponderReject, onResponderTerminate, onResponderTerminationRequest, ...props }: HozoViewProps): import("react").FunctionComponentElement<import("react").FragmentProps>;
42
51
  //# sourceMappingURL=view.d.ts.map