@fluxus-ui/native 0.0.0-stage → 0.1.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 (180) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +61 -2
  3. package/lib/module/Avatar.js +58 -0
  4. package/lib/module/Avatar.js.map +1 -0
  5. package/lib/module/Badge.js +72 -0
  6. package/lib/module/Badge.js.map +1 -0
  7. package/lib/module/BottomSheet.js +159 -0
  8. package/lib/module/BottomSheet.js.map +1 -0
  9. package/lib/module/Button.js +133 -0
  10. package/lib/module/Button.js.map +1 -0
  11. package/lib/module/Card.js +71 -0
  12. package/lib/module/Card.js.map +1 -0
  13. package/lib/module/Dialog.js +137 -0
  14. package/lib/module/Dialog.js.map +1 -0
  15. package/lib/module/Disclosure.js +153 -0
  16. package/lib/module/Disclosure.js.map +1 -0
  17. package/lib/module/EmptyState.js +43 -0
  18. package/lib/module/EmptyState.js.map +1 -0
  19. package/lib/module/ListItem.js +83 -0
  20. package/lib/module/ListItem.js.map +1 -0
  21. package/lib/module/Menu.js +76 -0
  22. package/lib/module/Menu.js.map +1 -0
  23. package/lib/module/Message.js +51 -0
  24. package/lib/module/Message.js.map +1 -0
  25. package/lib/module/Popover.js +153 -0
  26. package/lib/module/Popover.js.map +1 -0
  27. package/lib/module/Progress.js +54 -0
  28. package/lib/module/Progress.js.map +1 -0
  29. package/lib/module/Select.js +146 -0
  30. package/lib/module/Select.js.map +1 -0
  31. package/lib/module/Skeleton.js +39 -0
  32. package/lib/module/Skeleton.js.map +1 -0
  33. package/lib/module/Slider.js +137 -0
  34. package/lib/module/Slider.js.map +1 -0
  35. package/lib/module/Spinner.js +30 -0
  36. package/lib/module/Spinner.js.map +1 -0
  37. package/lib/module/Swap.js +87 -0
  38. package/lib/module/Swap.js.map +1 -0
  39. package/lib/module/Tabs.js +118 -0
  40. package/lib/module/Tabs.js.map +1 -0
  41. package/lib/module/Text.js +47 -0
  42. package/lib/module/Text.js.map +1 -0
  43. package/lib/module/TextField.js +190 -0
  44. package/lib/module/TextField.js.map +1 -0
  45. package/lib/module/Toast.js +108 -0
  46. package/lib/module/Toast.js.map +1 -0
  47. package/lib/module/blur.js +55 -0
  48. package/lib/module/blur.js.map +1 -0
  49. package/lib/module/controls.js +259 -0
  50. package/lib/module/controls.js.map +1 -0
  51. package/lib/module/generated/tokens.js +484 -0
  52. package/lib/module/generated/tokens.js.map +1 -0
  53. package/lib/module/icon.js +51 -0
  54. package/lib/module/icon.js.map +1 -0
  55. package/lib/module/index.js +33 -0
  56. package/lib/module/index.js.map +1 -0
  57. package/lib/module/layout.js +75 -0
  58. package/lib/module/layout.js.map +1 -0
  59. package/lib/module/motion.js +28 -0
  60. package/lib/module/motion.js.map +1 -0
  61. package/lib/module/overlay.js +99 -0
  62. package/lib/module/overlay.js.map +1 -0
  63. package/lib/module/package.json +1 -0
  64. package/lib/module/pending.js +177 -0
  65. package/lib/module/pending.js.map +1 -0
  66. package/lib/module/presence.js +68 -0
  67. package/lib/module/presence.js.map +1 -0
  68. package/lib/module/press.js +32 -0
  69. package/lib/module/press.js.map +1 -0
  70. package/lib/module/screen.js +45 -0
  71. package/lib/module/screen.js.map +1 -0
  72. package/lib/module/theme.js +41 -0
  73. package/lib/module/theme.js.map +1 -0
  74. package/lib/typescript/Avatar.d.ts +17 -0
  75. package/lib/typescript/Avatar.d.ts.map +1 -0
  76. package/lib/typescript/Badge.d.ts +21 -0
  77. package/lib/typescript/Badge.d.ts.map +1 -0
  78. package/lib/typescript/BottomSheet.d.ts +27 -0
  79. package/lib/typescript/BottomSheet.d.ts.map +1 -0
  80. package/lib/typescript/Button.d.ts +27 -0
  81. package/lib/typescript/Button.d.ts.map +1 -0
  82. package/lib/typescript/Card.d.ts +17 -0
  83. package/lib/typescript/Card.d.ts.map +1 -0
  84. package/lib/typescript/Dialog.d.ts +34 -0
  85. package/lib/typescript/Dialog.d.ts.map +1 -0
  86. package/lib/typescript/Disclosure.d.ts +39 -0
  87. package/lib/typescript/Disclosure.d.ts.map +1 -0
  88. package/lib/typescript/EmptyState.d.ts +12 -0
  89. package/lib/typescript/EmptyState.d.ts.map +1 -0
  90. package/lib/typescript/ListItem.d.ts +20 -0
  91. package/lib/typescript/ListItem.d.ts.map +1 -0
  92. package/lib/typescript/Menu.d.ts +23 -0
  93. package/lib/typescript/Menu.d.ts.map +1 -0
  94. package/lib/typescript/Message.d.ts +14 -0
  95. package/lib/typescript/Message.d.ts.map +1 -0
  96. package/lib/typescript/Popover.d.ts +71 -0
  97. package/lib/typescript/Popover.d.ts.map +1 -0
  98. package/lib/typescript/Progress.d.ts +12 -0
  99. package/lib/typescript/Progress.d.ts.map +1 -0
  100. package/lib/typescript/Select.d.ts +30 -0
  101. package/lib/typescript/Select.d.ts.map +1 -0
  102. package/lib/typescript/Skeleton.d.ts +13 -0
  103. package/lib/typescript/Skeleton.d.ts.map +1 -0
  104. package/lib/typescript/Slider.d.ts +21 -0
  105. package/lib/typescript/Slider.d.ts.map +1 -0
  106. package/lib/typescript/Spinner.d.ts +12 -0
  107. package/lib/typescript/Spinner.d.ts.map +1 -0
  108. package/lib/typescript/Swap.d.ts +25 -0
  109. package/lib/typescript/Swap.d.ts.map +1 -0
  110. package/lib/typescript/Tabs.d.ts +18 -0
  111. package/lib/typescript/Tabs.d.ts.map +1 -0
  112. package/lib/typescript/Text.d.ts +20 -0
  113. package/lib/typescript/Text.d.ts.map +1 -0
  114. package/lib/typescript/TextField.d.ts +36 -0
  115. package/lib/typescript/TextField.d.ts.map +1 -0
  116. package/lib/typescript/Toast.d.ts +25 -0
  117. package/lib/typescript/Toast.d.ts.map +1 -0
  118. package/lib/typescript/blur.d.ts +4 -0
  119. package/lib/typescript/blur.d.ts.map +1 -0
  120. package/lib/typescript/controls.d.ts +37 -0
  121. package/lib/typescript/controls.d.ts.map +1 -0
  122. package/lib/typescript/generated/tokens.d.ts +499 -0
  123. package/lib/typescript/generated/tokens.d.ts.map +1 -0
  124. package/lib/typescript/icon.d.ts +25 -0
  125. package/lib/typescript/icon.d.ts.map +1 -0
  126. package/lib/typescript/index.d.ts +31 -0
  127. package/lib/typescript/index.d.ts.map +1 -0
  128. package/lib/typescript/layout.d.ts +24 -0
  129. package/lib/typescript/layout.d.ts.map +1 -0
  130. package/lib/typescript/motion.d.ts +7 -0
  131. package/lib/typescript/motion.d.ts.map +1 -0
  132. package/lib/typescript/overlay.d.ts +33 -0
  133. package/lib/typescript/overlay.d.ts.map +1 -0
  134. package/lib/typescript/package.json +1 -0
  135. package/lib/typescript/pending.d.ts +25 -0
  136. package/lib/typescript/pending.d.ts.map +1 -0
  137. package/lib/typescript/presence.d.ts +37 -0
  138. package/lib/typescript/presence.d.ts.map +1 -0
  139. package/lib/typescript/press.d.ts +12 -0
  140. package/lib/typescript/press.d.ts.map +1 -0
  141. package/lib/typescript/screen.d.ts +16 -0
  142. package/lib/typescript/screen.d.ts.map +1 -0
  143. package/lib/typescript/theme.d.ts +32 -0
  144. package/lib/typescript/theme.d.ts.map +1 -0
  145. package/package.json +100 -3
  146. package/src/Avatar.tsx +44 -0
  147. package/src/Badge.tsx +45 -0
  148. package/src/BottomSheet.tsx +109 -0
  149. package/src/Button.tsx +117 -0
  150. package/src/Card.tsx +65 -0
  151. package/src/Dialog.tsx +93 -0
  152. package/src/Disclosure.tsx +108 -0
  153. package/src/EmptyState.tsx +32 -0
  154. package/src/ListItem.tsx +73 -0
  155. package/src/Menu.tsx +57 -0
  156. package/src/Message.tsx +43 -0
  157. package/src/Popover.tsx +145 -0
  158. package/src/Progress.tsx +33 -0
  159. package/src/Select.tsx +118 -0
  160. package/src/Skeleton.tsx +27 -0
  161. package/src/Slider.tsx +107 -0
  162. package/src/Spinner.tsx +18 -0
  163. package/src/Swap.tsx +74 -0
  164. package/src/Tabs.tsx +84 -0
  165. package/src/Text.tsx +44 -0
  166. package/src/TextField.tsx +137 -0
  167. package/src/Toast.tsx +94 -0
  168. package/src/blur.tsx +33 -0
  169. package/src/controls.tsx +196 -0
  170. package/src/generated/tokens.ts +653 -0
  171. package/src/icon.tsx +39 -0
  172. package/src/index.ts +30 -0
  173. package/src/layout.tsx +40 -0
  174. package/src/motion.ts +22 -0
  175. package/src/overlay.tsx +77 -0
  176. package/src/pending.tsx +131 -0
  177. package/src/presence.tsx +65 -0
  178. package/src/press.ts +23 -0
  179. package/src/screen.tsx +32 -0
  180. package/src/theme.tsx +49 -0
@@ -0,0 +1,27 @@
1
+ import { type ComponentRef, type ReactNode, type Ref } from 'react';
2
+ import { Pressable, type GestureResponderEvent, type PressableProps, type StyleProp, type ViewStyle } from 'react-native';
3
+ import { type Theme } from './theme.js';
4
+ export type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'danger';
5
+ export type ButtonSize = 'sm' | 'md' | 'lg';
6
+ export interface ButtonProps extends Omit<PressableProps, 'children' | 'style' | 'ref' | 'onPress'> {
7
+ /** If it returns a promise, the button waits for it: it fills from where it was pressed and takes no other press. */
8
+ onPress?: (event: GestureResponderEvent) => void | Promise<unknown>;
9
+ children: ReactNode;
10
+ /** Default: 'secondary'. */
11
+ variant?: ButtonVariant;
12
+ /** Default: 'md'. */
13
+ size?: ButtonSize;
14
+ /** It is working: it shows a spinner, says so to a screen reader and takes no press. */
15
+ busy?: boolean;
16
+ style?: StyleProp<ViewStyle>;
17
+ ref?: Ref<ComponentRef<typeof Pressable>>;
18
+ }
19
+ /** The surface, the ink and the edge of a variant, and the box of a size: only tokens. */
20
+ export declare function buttonStyle(theme: Theme, variant?: ButtonVariant, size?: ButtonSize): {
21
+ box: ViewStyle;
22
+ ink: string;
23
+ slop: number;
24
+ };
25
+ /** A button with the variants and sizes of the web; pressed, it gives on the snappy spring. */
26
+ export declare function Button({ children, variant, size, busy, disabled, style, onPress, onPressIn, onPressOut, onLayout, onFocus, onBlur, ...rest }: ButtonProps): import("react").JSX.Element;
27
+ //# sourceMappingURL=Button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAqB,SAAS,EAAE,KAAK,qBAAqB,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAM7I,OAAO,EAAY,KAAK,KAAK,EAAE,MAAM,YAAS,CAAC;AAE/C,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,CAAC;AACzE,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE5C,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,OAAO,GAAG,KAAK,GAAG,SAAS,CAAC;IACjG,qHAAqH;IACrH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACpE,QAAQ,EAAE,SAAS,CAAC;IACpB,4BAA4B;IAC5B,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,qBAAqB;IACrB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,wFAAwF;IACxF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,GAAG,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC;CAC3C;AAID,0FAA0F;AAC1F,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,GAAE,aAA2B,EAAE,IAAI,GAAE,UAAiB,GAAG;IAAE,GAAG,EAAE,SAAS,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CA2BtJ;AAED,+FAA+F;AAC/F,wBAAgB,MAAM,CAAC,EAAE,QAAQ,EAAE,OAAqB,EAAE,IAAW,EAAE,IAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,WAAW,+BAyDtL"}
@@ -0,0 +1,17 @@
1
+ import type { ComponentRef, ReactNode, Ref } from 'react';
2
+ import { Pressable, type GestureResponderEvent, type PressableProps, type StyleProp, type ViewStyle } from 'react-native';
3
+ import { type Theme } from './theme.js';
4
+ export interface CardProps extends Omit<PressableProps, 'children' | 'style' | 'ref' | 'onPress'> {
5
+ /** If it returns a promise, the card waits for it: it fills from where it was pressed. */
6
+ onPress?: (event: GestureResponderEvent) => void | Promise<unknown>;
7
+ children?: ReactNode;
8
+ style?: StyleProp<ViewStyle>;
9
+ ref?: Ref<ComponentRef<typeof Pressable>>;
10
+ }
11
+ export declare const cardStyle: (theme: Theme) => ViewStyle;
12
+ /**
13
+ * A surface. With `onPress` it is one button that gives when pressed, and a screen reader reads it whole.
14
+ * Without, it is a plain view: what it holds is reached piece by piece.
15
+ */
16
+ export declare function Card({ children, style, onPress, onPressIn, onPressOut, onLayout, ...rest }: CardProps): import("react").JSX.Element;
17
+ //# sourceMappingURL=Card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../src/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAQ,KAAK,qBAAqB,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAIhI,OAAO,EAAY,KAAK,KAAK,EAAE,MAAM,YAAS,CAAC;AAE/C,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,OAAO,GAAG,KAAK,GAAG,SAAS,CAAC;IAC/F,0FAA0F;IAC1F,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACpE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,GAAG,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC;CAC3C;AAID,eAAO,MAAM,SAAS,GAAI,OAAO,KAAK,KAAG,SAMvC,CAAC;AAEH;;;GAGG;AACH,wBAAgB,IAAI,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,SAAS,+BAmCrG"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * A window in the middle of the screen: a title, what it says and its buttons. It comes growing a little as it
3
+ * shows. `ConfirmDialog` is the one that asks before acting, and waits for the answer of the app. (SPEC §15.8)
4
+ */
5
+ import { type ReactNode } from 'react';
6
+ import { type ButtonVariant } from './Button.js';
7
+ export interface DialogProps {
8
+ open: boolean;
9
+ /** A press outside (unless `alert`) and back. Its buttons close it by calling this too. */
10
+ onClose: () => void;
11
+ title: string;
12
+ /** Under the title, muted. */
13
+ description?: string;
14
+ children?: ReactNode;
15
+ /** The buttons, at the end. */
16
+ actions?: ReactNode;
17
+ /** It asks something that must be answered: a press outside does not close it, and it is an `alertdialog`. */
18
+ alert?: boolean;
19
+ testID?: string;
20
+ }
21
+ export declare function Dialog({ open, onClose, alert, ...rest }: DialogProps): import("react").JSX.Element;
22
+ export interface ConfirmDialogProps extends Pick<DialogProps, 'open' | 'onClose' | 'title' | 'description' | 'children' | 'testID'> {
23
+ /** What the button that confirms says. */
24
+ confirm: string;
25
+ /** What the other says. Default: 'Cancel'. */
26
+ cancel?: string;
27
+ /** Default: 'primary'; 'danger' to delete. */
28
+ confirmVariant?: ButtonVariant;
29
+ /** If it returns a promise, the button waits for it and the dialog closes once it is fulfilled. If it fails it stays: say why in `children`. */
30
+ onConfirm: () => void | Promise<unknown>;
31
+ }
32
+ /** It asks before acting, with the names of `ConfirmButton` on the web. */
33
+ export declare function ConfirmDialog({ confirm, cancel, confirmVariant, onConfirm, onClose, ...rest }: ConfirmDialogProps): import("react").JSX.Element;
34
+ //# sourceMappingURL=Dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../src/Dialog.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAA6B,KAAK,SAAS,EAAkB,MAAM,OAAO,CAAC;AAGlF,OAAO,EAAU,KAAK,aAAa,EAAE,MAAM,aAAU,CAAC;AAUtD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,2FAA2F;IAC3F,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,8BAA8B;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,+BAA+B;IAC/B,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,8GAA8G;IAC9G,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAyBD,wBAAgB,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,WAAW,+BAOpE;AAED,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,aAAa,GAAG,UAAU,GAAG,QAAQ,CAAC;IACjI,0CAA0C;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8CAA8C;IAC9C,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,gJAAgJ;IAChJ,SAAS,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC1C;AAED,2EAA2E;AAC3E,wBAAgB,aAAa,CAAC,EAAE,OAAO,EAAE,MAAiB,EAAE,cAA0B,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,EAAE,kBAAkB,+BAgBxI"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * A title that shows or hides what is under it. The one piece that animates a height: what is below it has to
3
+ * travel with it, whatever it is. One at a time, and by a press. `Accordion` is a group of them. (SPEC §15.8)
4
+ */
5
+ import { type ReactNode } from 'react';
6
+ import { type StyleProp, type ViewProps, type ViewStyle } from 'react-native';
7
+ import { type SharedValue } from 'react-native-reanimated';
8
+ /** An arrow drawn with two edges, without an icon: it points down at 0 and up at 1. */
9
+ export declare function Chevron({ t, color }: {
10
+ t?: SharedValue<number>;
11
+ color?: string;
12
+ }): import("react").JSX.Element;
13
+ export interface DisclosureProps {
14
+ title: string;
15
+ children: ReactNode;
16
+ /** It holds its own state from here. Default: false. */
17
+ defaultOpen?: boolean;
18
+ /** Or the app does. */
19
+ open?: boolean;
20
+ onOpenChange?: (open: boolean) => void;
21
+ style?: StyleProp<ViewStyle>;
22
+ testID?: string;
23
+ }
24
+ export declare function Disclosure({ title, children, defaultOpen, open, onOpenChange, style, testID }: DisclosureProps): import("react").JSX.Element;
25
+ export interface AccordionItem {
26
+ key: string;
27
+ title: string;
28
+ content: ReactNode;
29
+ }
30
+ export interface AccordionProps extends Omit<ViewProps, 'children'> {
31
+ items: readonly AccordionItem[];
32
+ /** Several may be open at once. Default: opening one closes the others. */
33
+ multiple?: boolean;
34
+ /** The keys of the ones open at first. */
35
+ defaultOpen?: readonly string[];
36
+ onChange?: (open: readonly string[]) => void;
37
+ }
38
+ export declare function Accordion({ items, multiple, defaultOpen, onChange, ...rest }: AccordionProps): import("react").JSX.Element;
39
+ //# sourceMappingURL=Disclosure.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Disclosure.d.ts","sourceRoot":"","sources":["../../src/Disclosure.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAmB,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC/F,OAAiB,EAAoC,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAOvG,uFAAuF;AACvF,wBAAgB,OAAO,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,CAAC,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,+BAWhF;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;IACpB,wDAAwD;IACxD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,uBAAuB;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAmB,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,eAAe,+BAgCtH;AAED,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,SAAS,CAAC;CACpB;AAED,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IACjE,KAAK,EAAE,SAAS,aAAa,EAAE,CAAC;IAChC,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0CAA0C;IAC1C,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,KAAK,IAAI,CAAC;CAC9C;AAED,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,QAAgB,EAAE,WAAgB,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,cAAc,+BAmBzG"}
@@ -0,0 +1,12 @@
1
+ import type { ReactNode } from 'react';
2
+ import { type ViewProps } from 'react-native';
3
+ export interface EmptyStateProps extends ViewProps {
4
+ title: string;
5
+ /** What to do about it. */
6
+ children?: ReactNode;
7
+ /** A button under the text. */
8
+ action?: ReactNode;
9
+ }
10
+ /** There is nothing here, and what to do about it. */
11
+ export declare function EmptyState({ title, children, action, style, ...rest }: EmptyStateProps): import("react").JSX.Element;
12
+ //# sourceMappingURL=EmptyState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../src/EmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAIpD,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,+BAA+B;IAC/B,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AAED,sDAAsD;AACtD,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,eAAe,+BAiBtF"}
@@ -0,0 +1,20 @@
1
+ import type { ComponentRef, ReactNode, Ref } from 'react';
2
+ import { Pressable, type GestureResponderEvent, type PressableProps, type StyleProp, type ViewStyle } from 'react-native';
3
+ export interface ListItemProps extends Omit<PressableProps, 'children' | 'style' | 'ref' | 'onPress'> {
4
+ /** If it returns a promise, the row waits for it: it fills from where it was pressed. */
5
+ onPress?: (event: GestureResponderEvent) => void | Promise<unknown>;
6
+ title: string;
7
+ description?: string;
8
+ /** Before the text: an icon, an avatar. */
9
+ leading?: ReactNode;
10
+ /** After it: a badge, a figure, a chevron. */
11
+ trailing?: ReactNode;
12
+ style?: StyleProp<ViewStyle>;
13
+ ref?: Ref<ComponentRef<typeof Pressable>>;
14
+ }
15
+ /**
16
+ * A row of a list. With `onPress` it is one button, read whole by a screen reader, that darkens when pressed.
17
+ * At rest it carries no animated component: a list has many rows. Only the one that waits has its fill.
18
+ */
19
+ export declare function ListItem({ title, description, leading, trailing, style, onPress, onPressIn, onLayout, disabled, ...rest }: ListItemProps): import("react").JSX.Element;
20
+ //# sourceMappingURL=ListItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../src/ListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAQ,KAAK,qBAAqB,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAMhI,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,OAAO,GAAG,KAAK,GAAG,SAAS,CAAC;IACnG,yFAAyF;IACzF,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,GAAG,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC;CAC3C;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa,+BAgDxI"}
@@ -0,0 +1,23 @@
1
+ /** A few things to do, by what opened them. Choosing one closes the menu; if it waits, once it is done. (SPEC §15.8) */
2
+ import { type ReactNode } from 'react';
3
+ import { type PopoverProps } from './Popover.js';
4
+ export interface MenuProps extends Omit<PopoverProps, 'children' | 'label'> {
5
+ /** `MenuItem` and `MenuSeparator`. */
6
+ children: ReactNode;
7
+ /** Its name, for a screen reader. */
8
+ label?: string;
9
+ }
10
+ export declare function Menu({ trigger, children, label, placement, onOpenChange, testID }: MenuProps): import("react").JSX.Element;
11
+ export interface MenuItemProps {
12
+ label: string;
13
+ /** Before the label. */
14
+ icon?: ReactNode;
15
+ disabled?: boolean;
16
+ /** When it is chosen. If it returns a promise, the row waits for it and the menu closes once it is fulfilled. */
17
+ onSelect?: () => void | Promise<unknown>;
18
+ testID?: string;
19
+ }
20
+ export declare function MenuItem({ label, icon, disabled, onSelect, testID }: MenuItemProps): import("react").JSX.Element;
21
+ /** A rule between two groups of a menu. */
22
+ export declare function MenuSeparator(): import("react").JSX.Element;
23
+ //# sourceMappingURL=Menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../src/Menu.tsx"],"names":[],"mappings":"AAAA,wHAAwH;AACxH,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAKlE,OAAO,EAAyB,KAAK,YAAY,EAAE,MAAM,cAAW,CAAC;AAKrE,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,YAAY,EAAE,UAAU,GAAG,OAAO,CAAC;IACzE,sCAAsC;IACtC,QAAQ,EAAE,SAAS,CAAC;IACpB,qCAAqC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,IAAI,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,SAA0B,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,+BAe7G;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,wBAAwB;IACxB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iHAAiH;IACjH,QAAQ,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,aAAa,+BAKlF;AAED,2CAA2C;AAC3C,wBAAgB,aAAa,gCAG5B"}
@@ -0,0 +1,14 @@
1
+ import { type ReactNode } from 'react';
2
+ import { type StyleProp, type ViewProps, type ViewStyle } from 'react-native';
3
+ export interface MessageProps extends Omit<ViewProps, 'style'> {
4
+ children: ReactNode;
5
+ /** Default: 'info'. */
6
+ tone?: 'info' | 'success' | 'warning' | 'danger';
7
+ title?: string;
8
+ /** It is announced when it appears: at once if it is a danger, when the reader is free otherwise. Default: true. */
9
+ live?: boolean;
10
+ style?: StyleProp<ViewStyle>;
11
+ }
12
+ /** Something the person has to know: a notice, or what went wrong and what to do. */
13
+ export declare function Message({ children, tone, title, live, style, ...rest }: MessageProps): import("react").JSX.Element;
14
+ //# sourceMappingURL=Message.d.ts.map
@@ -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;AAKpF,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;AAO5G,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,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"}