@fluxus-ui/native 0.0.0-stage → 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 (230) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +75 -2
  3. package/lib/module/AudioPlayer.js +174 -0
  4. package/lib/module/AudioPlayer.js.map +1 -0
  5. package/lib/module/Avatar.js +58 -0
  6. package/lib/module/Avatar.js.map +1 -0
  7. package/lib/module/Badge.js +72 -0
  8. package/lib/module/Badge.js.map +1 -0
  9. package/lib/module/BottomSheet.js +159 -0
  10. package/lib/module/BottomSheet.js.map +1 -0
  11. package/lib/module/Bubble.js +182 -0
  12. package/lib/module/Bubble.js.map +1 -0
  13. package/lib/module/Button.js +209 -0
  14. package/lib/module/Button.js.map +1 -0
  15. package/lib/module/Card.js +79 -0
  16. package/lib/module/Card.js.map +1 -0
  17. package/lib/module/Dialog.js +137 -0
  18. package/lib/module/Dialog.js.map +1 -0
  19. package/lib/module/Disclosure.js +153 -0
  20. package/lib/module/Disclosure.js.map +1 -0
  21. package/lib/module/EmptyState.js +71 -0
  22. package/lib/module/EmptyState.js.map +1 -0
  23. package/lib/module/Link.js +97 -0
  24. package/lib/module/Link.js.map +1 -0
  25. package/lib/module/ListItem.js +89 -0
  26. package/lib/module/ListItem.js.map +1 -0
  27. package/lib/module/Menu.js +76 -0
  28. package/lib/module/Menu.js.map +1 -0
  29. package/lib/module/Message.js +51 -0
  30. package/lib/module/Message.js.map +1 -0
  31. package/lib/module/Popover.js +153 -0
  32. package/lib/module/Popover.js.map +1 -0
  33. package/lib/module/Progress.js +54 -0
  34. package/lib/module/Progress.js.map +1 -0
  35. package/lib/module/Select.js +146 -0
  36. package/lib/module/Select.js.map +1 -0
  37. package/lib/module/Skeleton.js +40 -0
  38. package/lib/module/Skeleton.js.map +1 -0
  39. package/lib/module/Slider.js +137 -0
  40. package/lib/module/Slider.js.map +1 -0
  41. package/lib/module/Spinner.js +30 -0
  42. package/lib/module/Spinner.js.map +1 -0
  43. package/lib/module/Swap.js +87 -0
  44. package/lib/module/Swap.js.map +1 -0
  45. package/lib/module/Tabs.js +118 -0
  46. package/lib/module/Tabs.js.map +1 -0
  47. package/lib/module/Text.js +47 -0
  48. package/lib/module/Text.js.map +1 -0
  49. package/lib/module/TextField.js +190 -0
  50. package/lib/module/TextField.js.map +1 -0
  51. package/lib/module/Toast.js +157 -0
  52. package/lib/module/Toast.js.map +1 -0
  53. package/lib/module/audio.js +54 -0
  54. package/lib/module/audio.js.map +1 -0
  55. package/lib/module/blur.js +55 -0
  56. package/lib/module/blur.js.map +1 -0
  57. package/lib/module/controls.js +292 -0
  58. package/lib/module/controls.js.map +1 -0
  59. package/lib/module/feel.js +24 -0
  60. package/lib/module/feel.js.map +1 -0
  61. package/lib/module/generated/tokens.js +484 -0
  62. package/lib/module/generated/tokens.js.map +1 -0
  63. package/lib/module/haptics.js +25 -0
  64. package/lib/module/haptics.js.map +1 -0
  65. package/lib/module/icon-host.js +42 -0
  66. package/lib/module/icon-host.js.map +1 -0
  67. package/lib/module/icon-shape.js +222 -0
  68. package/lib/module/icon-shape.js.map +1 -0
  69. package/lib/module/icon.js +331 -0
  70. package/lib/module/icon.js.map +1 -0
  71. package/lib/module/index.js +39 -0
  72. package/lib/module/index.js.map +1 -0
  73. package/lib/module/layout.js +75 -0
  74. package/lib/module/layout.js.map +1 -0
  75. package/lib/module/marks.js +99 -0
  76. package/lib/module/marks.js.map +1 -0
  77. package/lib/module/motion.js +95 -0
  78. package/lib/module/motion.js.map +1 -0
  79. package/lib/module/overlay.js +99 -0
  80. package/lib/module/overlay.js.map +1 -0
  81. package/lib/module/package.json +1 -0
  82. package/lib/module/pending.js +181 -0
  83. package/lib/module/pending.js.map +1 -0
  84. package/lib/module/presence.js +71 -0
  85. package/lib/module/presence.js.map +1 -0
  86. package/lib/module/press.js +32 -0
  87. package/lib/module/press.js.map +1 -0
  88. package/lib/module/screen.js +50 -0
  89. package/lib/module/screen.js.map +1 -0
  90. package/lib/module/success.js +59 -0
  91. package/lib/module/success.js.map +1 -0
  92. package/lib/module/theme.js +41 -0
  93. package/lib/module/theme.js.map +1 -0
  94. package/lib/typescript/AudioPlayer.d.ts +26 -0
  95. package/lib/typescript/AudioPlayer.d.ts.map +1 -0
  96. package/lib/typescript/Avatar.d.ts +17 -0
  97. package/lib/typescript/Avatar.d.ts.map +1 -0
  98. package/lib/typescript/Badge.d.ts +21 -0
  99. package/lib/typescript/Badge.d.ts.map +1 -0
  100. package/lib/typescript/BottomSheet.d.ts +27 -0
  101. package/lib/typescript/BottomSheet.d.ts.map +1 -0
  102. package/lib/typescript/Bubble.d.ts +23 -0
  103. package/lib/typescript/Bubble.d.ts.map +1 -0
  104. package/lib/typescript/Button.d.ts +29 -0
  105. package/lib/typescript/Button.d.ts.map +1 -0
  106. package/lib/typescript/Card.d.ts +17 -0
  107. package/lib/typescript/Card.d.ts.map +1 -0
  108. package/lib/typescript/Dialog.d.ts +34 -0
  109. package/lib/typescript/Dialog.d.ts.map +1 -0
  110. package/lib/typescript/Disclosure.d.ts +39 -0
  111. package/lib/typescript/Disclosure.d.ts.map +1 -0
  112. package/lib/typescript/EmptyState.d.ts +14 -0
  113. package/lib/typescript/EmptyState.d.ts.map +1 -0
  114. package/lib/typescript/Link.d.ts +23 -0
  115. package/lib/typescript/Link.d.ts.map +1 -0
  116. package/lib/typescript/ListItem.d.ts +20 -0
  117. package/lib/typescript/ListItem.d.ts.map +1 -0
  118. package/lib/typescript/Menu.d.ts +23 -0
  119. package/lib/typescript/Menu.d.ts.map +1 -0
  120. package/lib/typescript/Message.d.ts +14 -0
  121. package/lib/typescript/Message.d.ts.map +1 -0
  122. package/lib/typescript/Popover.d.ts +71 -0
  123. package/lib/typescript/Popover.d.ts.map +1 -0
  124. package/lib/typescript/Progress.d.ts +12 -0
  125. package/lib/typescript/Progress.d.ts.map +1 -0
  126. package/lib/typescript/Select.d.ts +30 -0
  127. package/lib/typescript/Select.d.ts.map +1 -0
  128. package/lib/typescript/Skeleton.d.ts +13 -0
  129. package/lib/typescript/Skeleton.d.ts.map +1 -0
  130. package/lib/typescript/Slider.d.ts +21 -0
  131. package/lib/typescript/Slider.d.ts.map +1 -0
  132. package/lib/typescript/Spinner.d.ts +12 -0
  133. package/lib/typescript/Spinner.d.ts.map +1 -0
  134. package/lib/typescript/Swap.d.ts +25 -0
  135. package/lib/typescript/Swap.d.ts.map +1 -0
  136. package/lib/typescript/Tabs.d.ts +18 -0
  137. package/lib/typescript/Tabs.d.ts.map +1 -0
  138. package/lib/typescript/Text.d.ts +20 -0
  139. package/lib/typescript/Text.d.ts.map +1 -0
  140. package/lib/typescript/TextField.d.ts +36 -0
  141. package/lib/typescript/TextField.d.ts.map +1 -0
  142. package/lib/typescript/Toast.d.ts +25 -0
  143. package/lib/typescript/Toast.d.ts.map +1 -0
  144. package/lib/typescript/audio.d.ts +10 -0
  145. package/lib/typescript/audio.d.ts.map +1 -0
  146. package/lib/typescript/blur.d.ts +4 -0
  147. package/lib/typescript/blur.d.ts.map +1 -0
  148. package/lib/typescript/controls.d.ts +37 -0
  149. package/lib/typescript/controls.d.ts.map +1 -0
  150. package/lib/typescript/feel.d.ts +10 -0
  151. package/lib/typescript/feel.d.ts.map +1 -0
  152. package/lib/typescript/generated/tokens.d.ts +499 -0
  153. package/lib/typescript/generated/tokens.d.ts.map +1 -0
  154. package/lib/typescript/haptics.d.ts +7 -0
  155. package/lib/typescript/haptics.d.ts.map +1 -0
  156. package/lib/typescript/icon-host.d.ts +30 -0
  157. package/lib/typescript/icon-host.d.ts.map +1 -0
  158. package/lib/typescript/icon-shape.d.ts +28 -0
  159. package/lib/typescript/icon-shape.d.ts.map +1 -0
  160. package/lib/typescript/icon.d.ts +24 -0
  161. package/lib/typescript/icon.d.ts.map +1 -0
  162. package/lib/typescript/index.d.ts +37 -0
  163. package/lib/typescript/index.d.ts.map +1 -0
  164. package/lib/typescript/layout.d.ts +24 -0
  165. package/lib/typescript/layout.d.ts.map +1 -0
  166. package/lib/typescript/marks.d.ts +23 -0
  167. package/lib/typescript/marks.d.ts.map +1 -0
  168. package/lib/typescript/motion.d.ts +30 -0
  169. package/lib/typescript/motion.d.ts.map +1 -0
  170. package/lib/typescript/overlay.d.ts +33 -0
  171. package/lib/typescript/overlay.d.ts.map +1 -0
  172. package/lib/typescript/package.json +1 -0
  173. package/lib/typescript/pending.d.ts +26 -0
  174. package/lib/typescript/pending.d.ts.map +1 -0
  175. package/lib/typescript/presence.d.ts +37 -0
  176. package/lib/typescript/presence.d.ts.map +1 -0
  177. package/lib/typescript/press.d.ts +12 -0
  178. package/lib/typescript/press.d.ts.map +1 -0
  179. package/lib/typescript/screen.d.ts +21 -0
  180. package/lib/typescript/screen.d.ts.map +1 -0
  181. package/lib/typescript/success.d.ts +13 -0
  182. package/lib/typescript/success.d.ts.map +1 -0
  183. package/lib/typescript/theme.d.ts +32 -0
  184. package/lib/typescript/theme.d.ts.map +1 -0
  185. package/package.json +123 -3
  186. package/src/AudioPlayer.tsx +106 -0
  187. package/src/Avatar.tsx +44 -0
  188. package/src/Badge.tsx +45 -0
  189. package/src/BottomSheet.tsx +109 -0
  190. package/src/Bubble.tsx +112 -0
  191. package/src/Button.tsx +168 -0
  192. package/src/Card.tsx +70 -0
  193. package/src/Dialog.tsx +93 -0
  194. package/src/Disclosure.tsx +108 -0
  195. package/src/EmptyState.tsx +51 -0
  196. package/src/Link.tsx +61 -0
  197. package/src/ListItem.tsx +78 -0
  198. package/src/Menu.tsx +57 -0
  199. package/src/Message.tsx +43 -0
  200. package/src/Popover.tsx +145 -0
  201. package/src/Progress.tsx +33 -0
  202. package/src/Select.tsx +118 -0
  203. package/src/Skeleton.tsx +28 -0
  204. package/src/Slider.tsx +107 -0
  205. package/src/Spinner.tsx +18 -0
  206. package/src/Swap.tsx +74 -0
  207. package/src/Tabs.tsx +84 -0
  208. package/src/Text.tsx +44 -0
  209. package/src/TextField.tsx +137 -0
  210. package/src/Toast.tsx +122 -0
  211. package/src/audio.tsx +56 -0
  212. package/src/blur.tsx +33 -0
  213. package/src/controls.tsx +224 -0
  214. package/src/feel.ts +22 -0
  215. package/src/generated/tokens.ts +653 -0
  216. package/src/haptics.tsx +26 -0
  217. package/src/icon-host.tsx +46 -0
  218. package/src/icon-shape.ts +213 -0
  219. package/src/icon.tsx +276 -0
  220. package/src/index.ts +36 -0
  221. package/src/layout.tsx +40 -0
  222. package/src/marks.tsx +79 -0
  223. package/src/motion.ts +94 -0
  224. package/src/overlay.tsx +77 -0
  225. package/src/pending.tsx +135 -0
  226. package/src/presence.tsx +68 -0
  227. package/src/press.ts +23 -0
  228. package/src/screen.tsx +37 -0
  229. package/src/success.tsx +48 -0
  230. package/src/theme.tsx +49 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../src/Message.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAQ,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAMpF,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5D,QAAQ,EAAE,SAAS,CAAC;IACpB,uBAAuB;IACvB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oHAAoH;IACpH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,qFAAqF;AACrF,wBAAgB,OAAO,CAAC,EAAE,QAAQ,EAAE,IAAa,EAAE,KAAK,EAAE,IAAW,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,YAAY,+BAwBpG"}
@@ -0,0 +1,71 @@
1
+ /**
2
+ * A panel by what opened it: below if it fits, above if not, never off the screen. It grows from the corner
3
+ * that touches its origin. `Menu` is this with rows to choose. (SPEC §15.8)
4
+ */
5
+ import { type ReactElement, type ReactNode, type Ref } from 'react';
6
+ import { type GestureResponderEvent } from 'react-native';
7
+ import { type SharedValue } from 'react-native-reanimated';
8
+ export type Placement = 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end';
9
+ export interface Rect {
10
+ x: number;
11
+ y: number;
12
+ width: number;
13
+ height: number;
14
+ }
15
+ /** Where a panel of `size` goes by `anchor` in a `screen`, in the points of the window, and the corner it grows from. */
16
+ export declare function place(anchor: Rect, size: {
17
+ width: number;
18
+ height: number;
19
+ }, screen: {
20
+ width: number;
21
+ height: number;
22
+ }, placement?: Placement, rtl?: boolean): {
23
+ left: number;
24
+ top: number;
25
+ origin: string;
26
+ };
27
+ type Trigger = ReactElement<{
28
+ onPress?: (event: GestureResponderEvent) => unknown;
29
+ ref?: Ref<unknown>;
30
+ 'aria-expanded'?: boolean;
31
+ }>;
32
+ /** The trigger, opening what it opens, and where it is on the screen. Its own `onPress` and `ref` still work. */
33
+ export declare function useAnchored(trigger: Trigger, onOpenChange?: (open: boolean) => void): {
34
+ open: boolean;
35
+ rect: Rect | null;
36
+ close: () => void;
37
+ trigger: ReactElement<{
38
+ onPress?: (event: GestureResponderEvent) => unknown;
39
+ ref?: Ref<unknown>;
40
+ 'aria-expanded'?: boolean;
41
+ }, string | import("react").JSXElementConstructor<any>>;
42
+ };
43
+ export interface FloatingProps {
44
+ t: SharedValue<number>;
45
+ rect: Rect | null;
46
+ placement: Placement;
47
+ role: 'dialog' | 'menu';
48
+ label?: string;
49
+ /** Around what it holds. Default: none. */
50
+ padding?: number;
51
+ children: ReactNode;
52
+ testID?: string;
53
+ }
54
+ /** The panel itself. Until it knows where its origin is and how big it is, it is not seen. */
55
+ export declare function Floating({ t, rect, placement, role, label, padding, children, testID }: FloatingProps): import("react").JSX.Element;
56
+ export interface PopoverProps {
57
+ /** What opens it: something that is pressed and takes a `ref`, as a Button. */
58
+ trigger: Trigger;
59
+ /** What it holds; as a function, it is given what closes it. */
60
+ children: ReactNode | ((close: () => void) => ReactNode);
61
+ /** Its name, for a screen reader. */
62
+ label: string;
63
+ /** Default: 'bottom-start'. It goes to the other side when it does not fit. */
64
+ placement?: Placement;
65
+ onOpenChange?: (open: boolean) => void;
66
+ testID?: string;
67
+ }
68
+ /** A small panel with anything in it, by what opened it. A press outside closes it. */
69
+ export declare function Popover({ trigger, children, label, placement, onOpenChange, testID }: PopoverProps): import("react").JSX.Element;
70
+ export {};
71
+ //# sourceMappingURL=Popover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../src/Popover.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAkC,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AACpG,OAAO,EAAgD,KAAK,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACxG,OAAiB,EAAoB,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAIvF,MAAM,MAAM,SAAS,GAAG,cAAc,GAAG,YAAY,GAAG,WAAW,GAAG,SAAS,CAAC;AAEhF,MAAM,WAAW,IAAI;IACnB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AASD,yHAAyH;AACzH,wBAAgB,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EAAE,MAAM,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EAAE,SAAS,GAAE,SAA0B,EAAE,GAAG,UAAQ,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAazN;AAED,KAAK,OAAO,GAAG,YAAY,CAAC;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,OAAO,CAAC;IAAC,GAAG,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IAAC,eAAe,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AAEpI,iHAAiH;AACjH,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI;;;iBAYrE,IAAI;;kBAfqB,CAAC,KAAK,EAAE,qBAAqB,KAAK,OAAO;cAAQ,GAAG,CAAC,OAAO,CAAC;0BAAoB,OAAO;;EAmC/H;AAED,MAAM,WAAW,aAAa;IAC5B,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACvB,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,8FAA8F;AAC9F,wBAAgB,QAAQ,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,aAAa,+BAqBrG;AAED,MAAM,WAAW,YAAY;IAC3B,+EAA+E;IAC/E,OAAO,EAAE,OAAO,CAAC;IACjB,gEAAgE;IAChE,QAAQ,EAAE,SAAS,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,IAAI,KAAK,SAAS,CAAC,CAAC;IACzD,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,+EAA+E;IAC/E,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,uFAAuF;AACvF,wBAAgB,OAAO,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,SAA0B,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,YAAY,+BAenH"}
@@ -0,0 +1,12 @@
1
+ import { type StyleProp, type ViewProps, type ViewStyle } from 'react-native';
2
+ export interface ProgressProps extends Omit<ViewProps, 'style' | 'children'> {
3
+ value: number;
4
+ /** Default: 100. */
5
+ max?: number;
6
+ /** What advances, for a screen reader. */
7
+ label: string;
8
+ style?: StyleProp<ViewStyle>;
9
+ }
10
+ /** How far something has gone. The bar travels to a new value on the smooth spring, moving only its transform. */
11
+ export declare function Progress({ value, max, label, style, ...rest }: ProgressProps): import("react").JSX.Element;
12
+ //# sourceMappingURL=Progress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../src/Progress.tsx"],"names":[],"mappings":"AACA,OAAO,EAAqB,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAKjG,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,UAAU,CAAC;IAC1E,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,kHAAkH;AAClH,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,GAAS,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa,+BAgBlF"}
@@ -0,0 +1,30 @@
1
+ import { type StyleProp, type ViewStyle } from 'react-native';
2
+ export interface SelectOption<T extends string = string> {
3
+ value: T;
4
+ label: string;
5
+ description?: string;
6
+ disabled?: boolean;
7
+ }
8
+ export interface SelectProps<T extends string = string> {
9
+ label: string;
10
+ options: readonly SelectOption<T>[];
11
+ value?: T | null;
12
+ /** It holds its own value from here. */
13
+ defaultValue?: T | null;
14
+ /** If it returns a promise, the chosen row waits for it and the sheet closes once it is fulfilled. */
15
+ onChange?: (value: T) => void | Promise<unknown>;
16
+ /** What the field says with nothing chosen. */
17
+ placeholder?: string;
18
+ /** Help under the field. */
19
+ hint?: string;
20
+ /** What is wrong, and how to fix it. It takes the place of the hint. */
21
+ error?: string;
22
+ disabled?: boolean;
23
+ /** For the sheet: what the bottom edge of the screen takes, and the name of its handle. */
24
+ inset?: number;
25
+ closeLabel?: string;
26
+ style?: StyleProp<ViewStyle>;
27
+ testID?: string;
28
+ }
29
+ export declare function Select<T extends string = string>({ label, options, value, defaultValue, onChange, placeholder, hint, error, disabled, inset, closeLabel, style, testID }: SelectProps<T>): import("react").JSX.Element;
30
+ //# sourceMappingURL=Select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../src/Select.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAmB,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAU/E,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IACrD,KAAK,EAAE,CAAC,CAAC;IACT,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,WAAW,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IACpD,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,SAAS,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;IACpC,KAAK,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IACjB,wCAAwC;IACxC,YAAY,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IACxB,sGAAsG;IACtG,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACjD,+CAA+C;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4BAA4B;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wEAAwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2FAA2F;IAC3F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,MAAM,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,YAAmB,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,EAAE,QAAgB,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,WAAW,CAAC,CAAC,CAAC,+BAyEvM"}
@@ -0,0 +1,13 @@
1
+ import type { DimensionValue, StyleProp, ViewProps, ViewStyle } from 'react-native';
2
+ export interface SkeletonProps extends Omit<ViewProps, 'style' | 'children'> {
3
+ /** Default: the whole width. */
4
+ width?: DimensionValue;
5
+ /** Default: a line of body text. */
6
+ height?: number;
7
+ /** Default: `radius.1`. For an avatar, half its height. */
8
+ radius?: number;
9
+ style?: StyleProp<ViewStyle>;
10
+ }
11
+ /** The shape of what is coming, breathing while it loads. Still with reduced motion; not there for a screen reader. */
12
+ export declare function Skeleton({ width, height, radius, style, ...rest }: SkeletonProps): import("react").JSX.Element;
13
+ //# sourceMappingURL=Skeleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../src/Skeleton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMpF,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,UAAU,CAAC;IAC1E,gCAAgC;IAChC,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,2DAA2D;IAC3D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,uHAAuH;AACvH,wBAAgB,QAAQ,CAAC,EAAE,KAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa,+BASzF"}
@@ -0,0 +1,21 @@
1
+ import { type StyleProp, type ViewProps, type ViewStyle } from 'react-native';
2
+ export interface SliderProps extends Omit<ViewProps, 'children' | 'style'> {
3
+ /** What it sets, for a screen reader. */
4
+ label: string;
5
+ /** Default: 0. */
6
+ min?: number;
7
+ /** Default: 100. */
8
+ max?: number;
9
+ /** Default: 1. */
10
+ step?: number;
11
+ value?: number;
12
+ defaultValue?: number;
13
+ /** On every step, while it slides too. */
14
+ onChange?: (value: number) => void;
15
+ /** What a screen reader says for a value: «0,8 ×», «3 de 5». Default: the number. */
16
+ valueText?: (value: number) => string;
17
+ disabled?: boolean;
18
+ style?: StyleProp<ViewStyle>;
19
+ }
20
+ export declare function Slider({ label, min, max, step, value, defaultValue, onChange, valueText, disabled, style, ...rest }: SliderProps): import("react").JSX.Element;
21
+ //# sourceMappingURL=Slider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../src/Slider.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAiD,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAM7H,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAAC;IACxE,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,oBAAoB;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,kBAAkB;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,qFAAqF;IACrF,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,MAAM,CAAC,EAAE,KAAK,EAAE,GAAO,EAAE,GAAS,EAAE,IAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAgB,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,WAAW,+BA2EtJ"}
@@ -0,0 +1,12 @@
1
+ import { type ActivityIndicatorProps } from 'react-native';
2
+ export interface SpinnerProps extends Omit<ActivityIndicatorProps, 'size' | 'color'> {
3
+ /** What is loading, for a screen reader. Without it the spinner is decoration and is hidden from one. */
4
+ label?: string;
5
+ /** Default: 'md'. The system draws two sizes: 'lg' is the large one. */
6
+ size?: 'sm' | 'md' | 'lg';
7
+ /** Default: 'muted'. */
8
+ tone?: 'muted' | 'accent';
9
+ }
10
+ /** Something is loading. Where there is a layout to show, a Skeleton instead. */
11
+ export declare function Spinner({ label, size, tone, ...rest }: SpinnerProps): import("react").JSX.Element;
12
+ //# sourceMappingURL=Spinner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../src/Spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAG9E,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,sBAAsB,EAAE,MAAM,GAAG,OAAO,CAAC;IAClF,yGAAyG;IACzG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wEAAwE;IACxE,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,wBAAwB;IACxB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CAC3B;AAED,iFAAiF;AACjF,wBAAgB,OAAO,CAAC,EAAE,KAAK,EAAE,IAAW,EAAE,IAAc,EAAE,GAAG,IAAI,EAAE,EAAE,YAAY,+BAIpF"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * What it shows gives way to what comes without a jump: the old dissolves, then the new condenses. In a browser
3
+ * it loses focus too (`filter: blur`); on a phone React Native cannot animate a blur, and the veil of
4
+ * `@fluxus-ui/native/blur` does it. With reduced motion the change is immediate. (SPEC §15.6)
5
+ */
6
+ import { type ReactNode } from 'react';
7
+ import { type StyleProp, type ViewProps, type ViewStyle } from 'react-native';
8
+ import { type SharedValue } from 'react-native-reanimated';
9
+ /**
10
+ * `content` is what to paint now, `t` goes 1 → 0 → 1 across a change, and `moving` is true while it does.
11
+ * A change of `id` is a relay; a change of the children under the same `id` just shows.
12
+ */
13
+ export declare function useSwap(id: string | number, children: ReactNode): {
14
+ content: ReactNode;
15
+ t: SharedValue<number>;
16
+ moving: boolean;
17
+ };
18
+ export interface SwapProps extends Omit<ViewProps, 'style' | 'id'> {
19
+ /** What is shown: when it changes, the old gives way to the new. */
20
+ id: string | number;
21
+ children?: ReactNode;
22
+ style?: StyleProp<ViewStyle>;
23
+ }
24
+ export declare function Swap({ id, children, style, ...rest }: SwapProps): import("react").JSX.Element;
25
+ //# sourceMappingURL=Swap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Swap.d.ts","sourceRoot":"","sources":["../../src/Swap.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACpE,OAAO,EAAY,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACxF,OAAiB,EAAsD,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AASzH;;;GAGG;AACH,wBAAgB,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,EAAE,SAAS,GAAG;IAAE,OAAO,EAAE,SAAS,CAAC;IAAC,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,CA8BjI;AAED,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI,CAAC;IAChE,oEAAoE;IACpE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,IAAI,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,SAAS,+BAc/D"}
@@ -0,0 +1,18 @@
1
+ import { type StyleProp, type ViewProps, type ViewStyle } from 'react-native';
2
+ export interface TabItem {
3
+ key: string;
4
+ label: string;
5
+ }
6
+ export interface TabsProps extends Omit<ViewProps, 'style' | 'children'> {
7
+ items: readonly TabItem[];
8
+ /** The key of the chosen one. */
9
+ value: string;
10
+ /** If it returns a promise, the pressed tab waits for it: the mark goes to it at once, and it fills. If it fails, the mark goes back. */
11
+ onChange: (key: string) => void | Promise<unknown>;
12
+ /** The name of the group, for a screen reader. */
13
+ label?: string;
14
+ style?: StyleProp<ViewStyle>;
15
+ }
16
+ /** A few views of the same thing, one chosen. The mark slides to it on the smooth spring, moving only its transform. */
17
+ export declare function Tabs({ items, value, onChange, label, style, ...rest }: TabsProps): import("react").JSX.Element;
18
+ //# sourceMappingURL=Tabs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../src/Tabs.tsx"],"names":[],"mappings":"AACA,OAAO,EAAgC,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAO5G,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,UAAU,CAAC;IACtE,KAAK,EAAE,SAAS,OAAO,EAAE,CAAC;IAC1B,iCAAiC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,yIAAyI;IACzI,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACnD,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAwBD,wHAAwH;AACxH,wBAAgB,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,SAAS,+BAoChF"}
@@ -0,0 +1,20 @@
1
+ import type { ComponentRef, Ref } from 'react';
2
+ import { Text as NativeText, type TextProps as NativeTextProps, type TextStyle } from 'react-native';
3
+ import { type Theme } from './theme.js';
4
+ export type TextVariant = 'display' | 'heading' | 'title' | 'body' | 'label' | 'caption';
5
+ export type TextWeight = 'regular' | 'medium' | 'bold';
6
+ export type TextTone = 'default' | 'muted' | 'accent' | 'disabled' | 'on-accent' | 'inverse';
7
+ export interface TextProps extends Omit<NativeTextProps, 'ref'> {
8
+ /** Its place in the type scale. Default: 'body'. (`role` is taken: it is the ARIA role of React Native.) */
9
+ variant?: TextVariant;
10
+ /** Default: 'default'. */
11
+ tone?: TextTone;
12
+ /** Default: the one of its variant. */
13
+ weight?: TextWeight;
14
+ ref?: Ref<ComponentRef<typeof NativeText>>;
15
+ }
16
+ /** The style of a variant: its size, its line and its weight, from the theme. */
17
+ export declare function textStyle(theme: Theme, variant?: TextVariant, tone?: TextTone, weight?: TextWeight): TextStyle;
18
+ /** Text in one of the six variants of the type scale; a title is a heading for a screen reader. It scales with the system's text size. */
19
+ export declare function Text({ variant, tone, weight, style, ...rest }: TextProps): import("react").JSX.Element;
20
+ //# sourceMappingURL=Text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,KAAK,SAAS,IAAI,eAAe,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACrG,OAAO,EAAY,KAAK,KAAK,EAAE,MAAM,YAAS,CAAC;AAE/C,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AACzF,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;AACvD,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,WAAW,GAAG,SAAS,CAAC;AAE7F,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC;IAC7D,4GAA4G;IAC5G,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,0BAA0B;IAC1B,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,uCAAuC;IACvC,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,GAAG,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC;CAC5C;AAWD,iFAAiF;AACjF,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,GAAE,WAAoB,EAAE,IAAI,GAAE,QAAoB,EAAE,MAAM,CAAC,EAAE,UAAU,GAAG,SAAS,CASjI;AAED,0IAA0I;AAC1I,wBAAgB,IAAI,CAAC,EAAE,OAAgB,EAAE,IAAgB,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,SAAS,+BAG7F"}
@@ -0,0 +1,36 @@
1
+ import { type ComponentRef, type ReactNode, type Ref } from 'react';
2
+ import { TextInput, type StyleProp, type TextInputProps, type ViewStyle } from 'react-native';
3
+ export interface TextFieldProps extends Omit<TextInputProps, 'style' | 'ref'> {
4
+ label: string;
5
+ /** Help under the field. */
6
+ hint?: string;
7
+ /** What is wrong, and how to fix it. It takes the place of the hint. */
8
+ error?: string;
9
+ /** The label is only for a screen reader: a search field, whose place says what it is. */
10
+ labelHidden?: boolean;
11
+ /** Several lines: the field is this many lines tall at least, and grows with what is written. */
12
+ rows?: number;
13
+ /** At the end of the field, inside it: a button to clear it. */
14
+ trailing?: ReactNode;
15
+ /** A password: what is written is hidden, and a button in the field shows it. The two names of that button. */
16
+ reveal?: {
17
+ show: string;
18
+ hide: string;
19
+ };
20
+ /** The style of the whole field: its label, its box and its message. */
21
+ style?: StyleProp<ViewStyle>;
22
+ ref?: Ref<ComponentRef<typeof TextInput>>;
23
+ }
24
+ /** A text input with its label, its help and its error. A screen reader hears the three with the field. */
25
+ export declare function TextField({ label, hint, error, labelHidden, rows, trailing, reveal, style, editable, onFocus, onBlur, ...rest }: TextFieldProps): import("react").JSX.Element;
26
+ /** A text input of several lines: three at least, unless `rows` says otherwise. */
27
+ export declare function TextArea({ rows, ...rest }: Omit<TextFieldProps, 'reveal' | 'trailing'>): import("react").JSX.Element;
28
+ export interface SearchFieldProps extends Omit<TextFieldProps, 'reveal' | 'rows' | 'trailing' | 'labelHidden' | 'onSubmitEditing'> {
29
+ /** With the key «search» of the keyboard. */
30
+ onSearch?: (text: string) => void;
31
+ /** The name of the button that empties it. Default: 'Clear'. */
32
+ clearLabel?: string;
33
+ }
34
+ /** A field to search with: its label is only for a screen reader, and a button empties it once it has text. */
35
+ export declare function SearchField({ value, defaultValue, onChangeText, onSearch, clearLabel, ...rest }: SearchFieldProps): import("react").JSX.Element;
36
+ //# sourceMappingURL=TextField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../src/TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AACzF,OAAO,EAAa,SAAS,EAAQ,KAAK,SAAS,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAQ/G,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,KAAK,CAAC;IAC3E,KAAK,EAAE,MAAM,CAAC;IACd,4BAA4B;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wEAAwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0FAA0F;IAC1F,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iGAAiG;IACjG,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gEAAgE;IAChE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,+GAA+G;IAC/G,MAAM,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACxC,wEAAwE;IACxE,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,GAAG,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC;CAC3C;AAED,2GAA2G;AAC3G,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,QAAe,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,cAAc,+BA6DtJ;AAED,mFAAmF;AACnF,wBAAgB,QAAQ,CAAC,EAAE,IAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,UAAU,CAAC,+BAE1F;AAED,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,MAAM,GAAG,UAAU,GAAG,aAAa,GAAG,iBAAiB,CAAC;IAChI,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,gEAAgE;IAChE,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,+GAA+G;AAC/G,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,YAAiB,EAAE,YAAY,EAAE,QAAQ,EAAE,UAAoB,EAAE,GAAG,IAAI,EAAE,EAAE,gBAAgB,+BA8BhI"}
@@ -0,0 +1,25 @@
1
+ import { type ReactNode } from 'react';
2
+ export interface ToastInput {
3
+ title: string;
4
+ description?: string;
5
+ /** Default: 'info'. */
6
+ tone?: 'info' | 'success' | 'warning' | 'danger';
7
+ /** How long it stays, in ms; 0 stays until it is pressed. Default: 5000, and 0 for a danger. */
8
+ duration?: number;
9
+ }
10
+ /** Inside a window that opens above the app (`Modal`), where the notices of the app would be behind. */
11
+ export declare const ToastLayer: () => ReactNode;
12
+ export interface ToastProviderProps {
13
+ children?: ReactNode;
14
+ /** How far from the bottom: the app's safe area, or what a tab bar takes. Default: `space.4`. */
15
+ inset?: number;
16
+ /** What pressing one does, for a screen reader. Default: 'Dismiss'. */
17
+ dismissLabel?: string;
18
+ }
19
+ /** Said aloud on both platforms: Android reads a live region by itself, iOS has to be told. */
20
+ export declare const announce: (text: string) => void;
21
+ /** Holds the notices of the app above everything it wraps: put it once, near the root. */
22
+ export declare function ToastProvider({ children, inset, dismissLabel }: ToastProviderProps): import("react").JSX.Element;
23
+ /** `toast({ title })` shows a notice. */
24
+ export declare function useToast(): (toast: ToastInput) => void;
25
+ //# sourceMappingURL=Toast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../src/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAW5G,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uBAAuB;IACvB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;IACjD,gGAAgG;IAChG,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAMD,wGAAwG;AACxG,eAAO,MAAM,UAAU,QAAO,SAA8B,CAAC;AAE7D,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,iGAAiG;IACjG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,+FAA+F;AAC/F,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,KAAG,IAEvC,CAAC;AAEF,0FAA0F;AAC1F,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAwB,EAAE,EAAE,kBAAkB,+BAiD9F;AAED,yCAAyC;AACzC,wBAAgB,QAAQ,IAAI,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAItD"}
@@ -0,0 +1,10 @@
1
+ import { type AudioSource } from 'expo-audio';
2
+ import { type AudioPlayerProps } from './AudioPlayer.js';
3
+ export interface AudioProps extends Pick<AudioPlayerProps, 'labels' | 'style' | 'testID'> {
4
+ /** What to play: an address, an asset, or null while it is not known (a signed address that is still coming). */
5
+ source: AudioSource;
6
+ /** It could not be played: the app says why. */
7
+ onError?: (message: string) => void;
8
+ }
9
+ export declare function Audio({ source, onError, ...rest }: AudioProps): import("react").JSX.Element;
10
+ //# sourceMappingURL=audio.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audio.d.ts","sourceRoot":"","sources":["../../src/audio.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAwC,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AACpF,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,kBAAe,CAAC;AAEnE,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,gBAAgB,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;IACvF,iHAAiH;IACjH,MAAM,EAAE,WAAW,CAAC;IACpB,gDAAgD;IAChD,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAED,wBAAgB,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,EAAE,UAAU,+BAwC7D"}
@@ -0,0 +1,4 @@
1
+ import { type SwapProps } from './Swap.js';
2
+ export declare function Swap({ id, children, style, ...rest }: SwapProps): import("react").JSX.Element;
3
+ export type { SwapProps };
4
+ //# sourceMappingURL=blur.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blur.d.ts","sourceRoot":"","sources":["../../src/blur.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAW,KAAK,SAAS,EAAE,MAAM,WAAQ,CAAC;AAMjD,wBAAgB,IAAI,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,SAAS,+BAc/D;AAED,YAAY,EAAE,SAAS,EAAE,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { type PressableProps, type StyleProp, type ViewProps, type ViewStyle } from 'react-native';
2
+ /** A value the app holds, or one the piece holds by itself from `defaultValue`. */
3
+ export declare function useControlled<T>(value: T | undefined, initial: T, onChange?: (next: T) => void): [T, (next: T) => void];
4
+ interface ToggleProps extends Omit<PressableProps, 'children' | 'style' | 'onPress' | 'role'> {
5
+ label: string;
6
+ hint?: string;
7
+ checked?: boolean;
8
+ defaultChecked?: boolean;
9
+ onChange?: (checked: boolean) => void;
10
+ style?: StyleProp<ViewStyle>;
11
+ }
12
+ export interface CheckboxProps extends ToggleProps {
13
+ /** Neither on nor off: some of what it stands for is chosen. */
14
+ mixed?: boolean;
15
+ }
16
+ export declare function Checkbox({ checked, defaultChecked, mixed, onChange, ...rest }: CheckboxProps): import("react").JSX.Element;
17
+ export type SwitchProps = ToggleProps;
18
+ export declare function Switch({ checked, defaultChecked, onChange, ...rest }: SwitchProps): import("react").JSX.Element;
19
+ export interface RadioOption {
20
+ value: string;
21
+ label: string;
22
+ hint?: string;
23
+ disabled?: boolean;
24
+ }
25
+ export interface RadioGroupProps extends Omit<ViewProps, 'children'> {
26
+ /** The name of the group, for a screen reader. */
27
+ label: string;
28
+ options: readonly RadioOption[];
29
+ value?: string | null;
30
+ defaultValue?: string | null;
31
+ onChange?: (value: string) => void;
32
+ disabled?: boolean;
33
+ }
34
+ /** One of a few, all in sight. */
35
+ export declare function RadioGroup({ label, options, value, defaultValue, onChange, disabled, ...rest }: RadioGroupProps): import("react").JSX.Element;
36
+ export {};
37
+ //# sourceMappingURL=controls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../../src/controls.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAgC,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AASjI,mFAAmF;AACnF,wBAAgB,aAAa,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC,CASvH;AAkDD,UAAU,WAAY,SAAQ,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IAC3F,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,aAAc,SAAQ,WAAW;IAChD,gEAAgE;IAChE,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,wBAAgB,QAAQ,CAAC,EAAE,OAAO,EAAE,cAAsB,EAAE,KAAa,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa,+BA6B5G;AAED,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC;AAEtC,wBAAgB,MAAM,CAAC,EAAE,OAAO,EAAE,cAAsB,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,WAAW,+BAuCzF;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAClE,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,SAAS,WAAW,EAAE,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAiCD,kCAAkC;AAClC,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,YAAmB,EAAE,QAAQ,EAAE,QAAgB,EAAE,GAAG,IAAI,EAAE,EAAE,eAAe,+BAY9H"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * The haptics of the main entry, by registration: it never imports the library of haptics. `enableHaptics()` of
3
+ * `@fluxus-ui/native/haptics` gives it the real one; without it, nothing is felt and nothing breaks. (SPEC §15.14)
4
+ */
5
+ export type HapticKind = 'success' | 'warning' | 'error' | 'light' | 'medium' | 'selection';
6
+ /** What makes a haptic; null for none. */
7
+ export declare const setHaptics: (fn: ((kind: HapticKind) => unknown) | null) => void;
8
+ /** A haptic, if there is a way to make one. It never throws. */
9
+ export declare const feel: (kind: HapticKind) => void;
10
+ //# sourceMappingURL=feel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feel.d.ts","sourceRoot":"","sources":["../../src/feel.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,WAAW,CAAC;AAI5F,0CAA0C;AAC1C,eAAO,MAAM,UAAU,GAAI,IAAI,CAAC,CAAC,IAAI,EAAE,UAAU,KAAK,OAAO,CAAC,GAAG,IAAI,KAAG,IAEvE,CAAC;AAEF,gEAAgE;AAChE,eAAO,MAAM,IAAI,GAAI,MAAM,UAAU,KAAG,IAOvC,CAAC"}