@plexui/react-native 0.1.1 → 0.2.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 (149) hide show
  1. package/README.md +34 -0
  2. package/dist/es/components/ActionSheet/ActionSheet.js +53 -19
  3. package/dist/es/components/Alert/Alert.js +163 -0
  4. package/dist/es/components/Avatar/Avatar.js +20 -8
  5. package/dist/es/components/BottomActions/BottomActions.js +34 -0
  6. package/dist/es/components/BottomSheet/BottomSheet.js +85 -17
  7. package/dist/es/components/Button/Button.js +108 -28
  8. package/dist/es/components/Card/Card.js +16 -8
  9. package/dist/es/components/Checkbox/Checkbox.js +67 -99
  10. package/dist/es/components/Chip/Chip.js +16 -7
  11. package/dist/es/components/Dialog/Dialog.js +38 -24
  12. package/dist/es/components/Field/Field.js +91 -0
  13. package/dist/es/components/FloatingLabelInput/FloatingLabelInput.js +59 -0
  14. package/dist/es/components/Icon/createIcon.js +13 -2
  15. package/dist/es/components/Indicator/CircularProgress.js +80 -0
  16. package/dist/es/components/Indicator/LoadingDots.js +46 -0
  17. package/dist/es/components/Indicator/LoadingIndicator.js +101 -0
  18. package/dist/es/components/Indicator/index.js +3 -0
  19. package/dist/es/components/Input/Input.js +69 -60
  20. package/dist/es/components/InputGroup/InputGroup.js +130 -0
  21. package/dist/es/components/List/List.js +175 -59
  22. package/dist/es/components/Menu/Menu.js +69 -40
  23. package/dist/es/components/NavigationButton/NavigationButton.js +20 -4
  24. package/dist/es/components/OTPInput/OTPInput.js +9 -3
  25. package/dist/es/components/PageControl/PageControl.js +13 -7
  26. package/dist/es/components/Popover/Popover.js +128 -0
  27. package/dist/es/components/Progress/Progress.js +142 -0
  28. package/dist/es/components/ProgressSteps/ProgressSteps.js +207 -0
  29. package/dist/es/components/RollingNumber/RollingNumber.js +125 -0
  30. package/dist/es/components/Select/Select.js +97 -34
  31. package/dist/es/components/Separator/Separator.js +31 -0
  32. package/dist/es/components/ShimmerText/ShimmerText.js +98 -0
  33. package/dist/es/components/Stepper/Stepper.js +219 -0
  34. package/dist/es/components/Switch/Switch.js +26 -12
  35. package/dist/es/components/TagInput/TagInput.js +121 -0
  36. package/dist/es/components/Text/Text.js +7 -4
  37. package/dist/es/components/TextLink/TextLink.js +42 -0
  38. package/dist/es/components/Textarea/Textarea.js +12 -0
  39. package/dist/es/components/Tip/Tip.js +193 -0
  40. package/dist/es/components/Toolbar/Toolbar.js +6 -2
  41. package/dist/es/components/Tooltip/Tooltip.js +272 -0
  42. package/dist/es/index.js +20 -2
  43. package/dist/es/internal/FloatingPanel.js +111 -0
  44. package/dist/es/internal/fieldStack.js +73 -0
  45. package/dist/es/internal/floating.js +97 -0
  46. package/dist/es/internal/ripple.js +119 -0
  47. package/dist/es/internal/row.js +2 -1
  48. package/dist/es/internal/transition.js +113 -0
  49. package/dist/es/theme/ThemeProvider.js +41 -9
  50. package/dist/es/theme/material.js +37 -7
  51. package/dist/types/components/ActionSheet/ActionSheet.d.ts +15 -7
  52. package/dist/types/components/Alert/Alert.d.ts +51 -0
  53. package/dist/types/components/Avatar/Avatar.d.ts +4 -2
  54. package/dist/types/components/BottomActions/BottomActions.d.ts +18 -0
  55. package/dist/types/components/BottomSheet/BottomSheet.d.ts +4 -2
  56. package/dist/types/components/Button/Button.d.ts +20 -5
  57. package/dist/types/components/Card/Card.d.ts +14 -1
  58. package/dist/types/components/Checkbox/Checkbox.d.ts +4 -3
  59. package/dist/types/components/Chip/Chip.d.ts +12 -1
  60. package/dist/types/components/Dialog/Dialog.d.ts +9 -5
  61. package/dist/types/components/Field/Field.d.ts +64 -0
  62. package/dist/types/components/FloatingLabelInput/FloatingLabelInput.d.ts +42 -0
  63. package/dist/types/components/Indicator/CircularProgress.d.ts +34 -0
  64. package/dist/types/components/Indicator/LoadingDots.d.ts +17 -0
  65. package/dist/types/components/Indicator/LoadingIndicator.d.ts +46 -0
  66. package/dist/types/components/Indicator/index.d.ts +3 -0
  67. package/dist/types/components/Input/Input.d.ts +13 -3
  68. package/dist/types/components/InputGroup/InputGroup.d.ts +71 -0
  69. package/dist/types/components/List/List.d.ts +57 -14
  70. package/dist/types/components/Menu/Menu.d.ts +4 -0
  71. package/dist/types/components/NavigationButton/NavigationButton.d.ts +11 -3
  72. package/dist/types/components/OTPInput/OTPInput.d.ts +10 -1
  73. package/dist/types/components/PageControl/PageControl.d.ts +11 -1
  74. package/dist/types/components/Popover/Popover.d.ts +86 -0
  75. package/dist/types/components/Progress/Progress.d.ts +56 -0
  76. package/dist/types/components/ProgressSteps/ProgressSteps.d.ts +61 -0
  77. package/dist/types/components/RollingNumber/RollingNumber.d.ts +36 -0
  78. package/dist/types/components/Select/Select.d.ts +36 -8
  79. package/dist/types/components/Separator/Separator.d.ts +19 -0
  80. package/dist/types/components/ShimmerText/ShimmerText.d.ts +28 -0
  81. package/dist/types/components/Stepper/Stepper.d.ts +61 -0
  82. package/dist/types/components/Switch/Switch.d.ts +5 -5
  83. package/dist/types/components/TagInput/TagInput.d.ts +44 -0
  84. package/dist/types/components/TextLink/TextLink.d.ts +30 -0
  85. package/dist/types/components/Textarea/Textarea.d.ts +19 -0
  86. package/dist/types/components/Tip/Tip.d.ts +71 -0
  87. package/dist/types/components/Toolbar/Toolbar.d.ts +9 -1
  88. package/dist/types/components/Tooltip/Tooltip.d.ts +84 -0
  89. package/dist/types/index.d.ts +20 -2
  90. package/dist/types/internal/FloatingPanel.d.ts +70 -0
  91. package/dist/types/internal/fieldStack.d.ts +48 -0
  92. package/dist/types/internal/floating.d.ts +71 -0
  93. package/dist/types/internal/ripple.d.ts +17 -0
  94. package/dist/types/internal/row.d.ts +15 -3
  95. package/dist/types/internal/transition.d.ts +37 -0
  96. package/dist/types/theme/ThemeProvider.d.ts +28 -4
  97. package/dist/types/theme/material.d.ts +20 -6
  98. package/dist/types/theme/types.d.ts +8 -0
  99. package/package.json +2 -2
  100. package/src/components/ActionSheet/ActionSheet.tsx +107 -38
  101. package/src/components/Alert/Alert.tsx +279 -0
  102. package/src/components/Avatar/Avatar.tsx +21 -9
  103. package/src/components/BottomActions/BottomActions.tsx +54 -0
  104. package/src/components/BottomSheet/BottomSheet.tsx +111 -25
  105. package/src/components/Button/Button.tsx +170 -35
  106. package/src/components/Card/Card.tsx +33 -9
  107. package/src/components/Checkbox/Checkbox.tsx +89 -124
  108. package/src/components/Chip/Chip.tsx +49 -6
  109. package/src/components/Dialog/Dialog.tsx +68 -37
  110. package/src/components/Field/Field.tsx +227 -0
  111. package/src/components/FloatingLabelInput/FloatingLabelInput.tsx +144 -0
  112. package/src/components/Icon/createIcon.tsx +16 -6
  113. package/src/components/Indicator/CircularProgress.tsx +141 -0
  114. package/src/components/Indicator/LoadingDots.tsx +79 -0
  115. package/src/components/Indicator/LoadingIndicator.tsx +166 -0
  116. package/src/components/Indicator/index.ts +3 -0
  117. package/src/components/Input/Input.tsx +126 -97
  118. package/src/components/InputGroup/InputGroup.tsx +261 -0
  119. package/src/components/List/List.tsx +345 -88
  120. package/src/components/Menu/Menu.tsx +83 -41
  121. package/src/components/NavigationButton/NavigationButton.tsx +35 -5
  122. package/src/components/OTPInput/OTPInput.tsx +21 -2
  123. package/src/components/PageControl/PageControl.tsx +36 -8
  124. package/src/components/Popover/Popover.tsx +261 -0
  125. package/src/components/Progress/Progress.tsx +255 -0
  126. package/src/components/ProgressSteps/ProgressSteps.tsx +415 -0
  127. package/src/components/RollingNumber/RollingNumber.tsx +189 -0
  128. package/src/components/Select/Select.tsx +175 -71
  129. package/src/components/Separator/Separator.tsx +51 -0
  130. package/src/components/ShimmerText/ShimmerText.tsx +144 -0
  131. package/src/components/Stepper/Stepper.tsx +386 -0
  132. package/src/components/Switch/Switch.tsx +26 -12
  133. package/src/components/TagInput/TagInput.tsx +227 -0
  134. package/src/components/Text/Text.tsx +8 -4
  135. package/src/components/TextLink/TextLink.tsx +77 -0
  136. package/src/components/Textarea/Textarea.tsx +23 -0
  137. package/src/components/Tip/Tip.tsx +410 -0
  138. package/src/components/Toolbar/Toolbar.tsx +27 -2
  139. package/src/components/Tooltip/Tooltip.tsx +478 -0
  140. package/src/index.ts +36 -2
  141. package/src/internal/FloatingPanel.tsx +199 -0
  142. package/src/internal/fieldStack.tsx +179 -0
  143. package/src/internal/floating.ts +131 -0
  144. package/src/internal/ripple.tsx +132 -0
  145. package/src/internal/row.ts +16 -3
  146. package/src/internal/transition.ts +124 -0
  147. package/src/theme/ThemeProvider.tsx +65 -15
  148. package/src/theme/material.ts +39 -7
  149. package/src/theme/types.ts +8 -0
@@ -3,12 +3,20 @@ import { type ImageSourcePropType, type StyleProp, type ViewStyle } from "react-
3
3
  import type { Theme } from "../../theme/types";
4
4
  export type CardVariant = "outline" | "solid" | "ghost";
5
5
  export type CardSize = "sm" | "md" | "lg";
6
+ /** A fill of the palette: the accent, the Plex primary, or a semantic color. */
7
+ export type CardColor = "accent" | "primary" | "info" | "success" | "warning" | "caution" | "danger" | "discovery";
6
8
  export type CardProps = {
7
9
  children: ReactNode;
8
10
  /** @default "outline" */
9
11
  variant?: CardVariant;
10
12
  /** The padding: 12, 16 or 20 on a phone. @default "md" */
11
13
  size?: CardSize;
14
+ /**
15
+ * Fills the card with a color of the palette (`--color-background-<color>-solid`, the accent for `accent`) in place
16
+ * of its variant's surface: the title, the text and the icons in the color made for it (`--color-text-<color>-solid`),
17
+ * the description that color at 80%. The press is a veil of that text color.
18
+ */
19
+ color?: CardColor;
12
20
  /** Makes the whole card a button. */
13
21
  onPress?: () => void;
14
22
  /** Shows the press of a card whose own parts take it. */
@@ -31,7 +39,12 @@ export declare function cardSurface(theme: Theme, variant: CardVariant): {
31
39
  * section card of a settings screen (16dp corners, no border, the white card on the gray page; `solid` a gray fill),
32
40
  * 16dp padding, Title M and Body M, pressed in the list selector as a List row.
33
41
  */
34
- declare function CardRoot({ children, variant, size, onPress, interactive, accessibilityLabel, testID, style }: CardProps): import("react").JSX.Element;
42
+ /** A colored card's fill and the color of what stands on it. */
43
+ export declare function cardColors(theme: Theme, color: CardColor): {
44
+ fill: string;
45
+ ink: string;
46
+ };
47
+ declare function CardRoot({ children, variant, size, color, onPress, interactive, accessibilityLabel, testID, style }: CardProps): import("react").JSX.Element;
35
48
  declare namespace CardRoot {
36
49
  var displayName: string;
37
50
  }
@@ -10,7 +10,7 @@ export type CheckboxProps = {
10
10
  orientation?: "left" | "right";
11
11
  /** `ghost`: the checkmark alone, as an iOS list row draws it. @default "solid" */
12
12
  variant?: "solid" | "ghost";
13
- /** Kept for the API of @plexui/ui: the phone box is a circle on iOS and a square on Android. */
13
+ /** Kept for the API of @plexui/ui: the phone box is a circle on both platforms. */
14
14
  pill?: boolean;
15
15
  invalid?: boolean;
16
16
  disabled?: boolean;
@@ -20,7 +20,8 @@ export type CheckboxProps = {
20
20
  };
21
21
  /**
22
22
  * A checkbox: on iOS the 22pt circle of the phone layer (`--checkbox-*`: a 1.5pt ring, filled in the primary with a
23
- * check), on Android a square checkbox (an 18dp box, 4dp corners, a gray 1.33dp outline, filled in the selection
24
- * color with a round-capped check) in a 48dp target.
23
+ * check), on Android the reference's round check (a 20dp circle, a 1.5dp ring in a light gray, filled in the
24
+ * selection color with a white round-capped check) in a 48dp target. As the first control of a List row (`RowStart`)
25
+ * it leads the row, 22 in.
25
26
  */
26
27
  export declare function Checkbox({ checked: checkedProp, defaultChecked, onCheckedChange, label, description, orientation, variant, invalid, disabled, accessibilityLabel, testID, style, }: CheckboxProps): import("react").JSX.Element;
@@ -10,6 +10,17 @@ export type ChipProps = {
10
10
  onPress?: () => void;
11
11
  /** A symbol before the label. */
12
12
  icon?: ReactNode;
13
+ /** A symbol after the label. */
14
+ trailingIcon?: ReactNode;
15
+ /**
16
+ * The chip opens a menu (a filter that picks among options): a chevron after the label (iOS `chevron.down`, Material
17
+ * `arrow_drop_down`) unless `trailingIcon` is given, and `aria-haspopup` for a screen reader. `true` is a menu;
18
+ * `"listbox"` and `"dialog"` name what it opens.
19
+ */
20
+ menu?: boolean | "menu" | "listbox" | "dialog";
21
+ /** Whether the chip's menu is open (`aria-expanded`). */
22
+ expanded?: boolean;
23
+ accessibilityLabel?: string;
13
24
  /** An input chip: a cross at the end that calls this. */
14
25
  onRemove?: () => void;
15
26
  /** @default "Remove" */
@@ -24,4 +35,4 @@ export type ChipProps = {
24
35
  * capsule, 15/20 medium, the soft gray fill, the Plex primary when selected, as a selected Plex Button). The web has
25
36
  * no Chip; the props follow Toggle-like controls (`selected`, `onSelectedChange`) and Badge's `onRemove`.
26
37
  */
27
- export declare function Chip({ children, selected: selectedProp, defaultSelected, onSelectedChange, onPress, icon, onRemove, removeLabel, disabled, testID, style }: ChipProps): import("react").JSX.Element;
38
+ export declare function Chip({ children, selected: selectedProp, defaultSelected, onSelectedChange, onPress, icon, trailingIcon, menu, expanded, accessibilityLabel, onRemove, removeLabel, disabled, testID, style, }: ChipProps): import("react").JSX.Element;
@@ -31,7 +31,7 @@ export type DialogProps = {
31
31
  /**
32
32
  * A dialog that asks for a decision: on iOS the alert of iOS 26 (UIAlertController `.alert`: 320 wide, glass, radius
33
33
  * 34, capsule actions 48 tall, `--dialog-alert-*`, Dialog.module.css), on Android a flat alert (at most 356 wide,
34
- * radius 20, a Medium 20 title over 16 text, text buttons in the accent at the end, Android's dialog animation). The
34
+ * radius 21, a Medium 20 title over 16 text, text buttons in the accent at the end, Android's dialog animation). The
35
35
  * web Dialog's `mobileVariant="alert"` as one call; a sheet is `BottomSheet`.
36
36
  */
37
37
  export declare function Dialog({ open, onOpenChange, title, description, actions, children, mobileLayout, dismissible, testID }: DialogProps): import("react").JSX.Element;
@@ -40,8 +40,11 @@ export type ChoiceDialogProps = {
40
40
  onClose: () => void;
41
41
  /** The setting's name, over the rows. */
42
42
  title?: ReactNode;
43
- /** The one button, which closes the dialog. */
43
+ /** The button that closes the dialog with no change (the one button of a single choice). */
44
44
  cancelLabel: string;
45
+ /** A multiple choice's button after Cancel, which applies the rows checked (`onOk`) and closes the dialog. */
46
+ okLabel?: string;
47
+ onOk?: () => void;
45
48
  /** The rows, across the dialog's whole width; they scroll under the title when the screen is short. */
46
49
  children: ReactNode;
47
50
  /** Props for the element that holds the rows (its role and name). */
@@ -49,9 +52,10 @@ export type ChoiceDialogProps = {
49
52
  testID?: string;
50
53
  };
51
54
  /**
52
- * Android's single-choice alert (one option picked from a list): the dialog's panel, its title,
53
- * rows across its width and one Cancel button. Select's picker on Android; not part of the public API.
55
+ * Android's choice alert: the dialog's panel, its title and rows across its width; one Cancel button for a single
56
+ * choice (a row picks and closes), Cancel and OK at the end, 8 apart, for a multiple one (the rows check, OK applies).
57
+ * Select's picker on Android; not part of the public API.
54
58
  */
55
- export declare function ChoiceDialog({ open, onClose, title, cancelLabel, children, listProps, testID }: ChoiceDialogProps): import("react").JSX.Element;
59
+ export declare function ChoiceDialog({ open, onClose, title, cancelLabel, okLabel, onOk, children, listProps, testID }: ChoiceDialogProps): import("react").JSX.Element;
56
60
  /** The background of an Android dialog: white, a dark gray in dark mode. */
57
61
  export declare const androidDialogBackground: (theme: Theme) => string;
@@ -0,0 +1,64 @@
1
+ import { type ReactElement, type ReactNode } from "react";
2
+ import { type StyleProp, type ViewStyle } from "react-native";
3
+ /** What a Field hands its control: its name, the description's link and the invalid state. */
4
+ export type FieldControlProps = {
5
+ /** The label's text, the control's name (a child's own name wins). */
6
+ accessibilityLabel?: string;
7
+ /** The description or the error: a hint on a phone. */
8
+ accessibilityHint?: string;
9
+ /** The description or the error on the web (react-native-web). */
10
+ "aria-describedby"?: string;
11
+ /** The field has an error. */
12
+ invalid: boolean;
13
+ };
14
+ export type FieldProps = {
15
+ /** The label's text. It names the control. */
16
+ label: ReactNode;
17
+ /** The label is not drawn; it still names the control. On a row the value or placeholder starts at the row's edge. */
18
+ hideLabel?: boolean;
19
+ /** Words that explain the field, under it (on a row under its label). */
20
+ description?: ReactNode;
21
+ /** An error under the control; it marks the control invalid. */
22
+ errorMessage?: ReactNode;
23
+ /** Content at the end of the label's line, such as a link that acts on the field. */
24
+ labelAction?: ReactNode;
25
+ /** An asterisk after the label (visual only). */
26
+ required?: boolean;
27
+ /** @default "horizontal" on a row with a visible label, else "vertical" */
28
+ orientation?: "vertical" | "horizontal";
29
+ /** One line of a List, as the web's `Field row` in a FieldGroup. */
30
+ row?: boolean;
31
+ /** On a row, the control takes the rest of the line after the label. */
32
+ fill?: boolean;
33
+ /** On a row, a symbol before the label (a ListItem's `leading`). */
34
+ icon?: ReactNode;
35
+ /** On a row, a control at the end of the row after the row's own control. */
36
+ action?: ReactNode;
37
+ /** The field is unavailable as a whole: its label dims with the control (the web's `data-disabled` on a row). */
38
+ disabled?: boolean;
39
+ /** The control, given the field's name, description and invalid state; or a function that places them itself. */
40
+ children: ReactElement | ((control: FieldControlProps) => ReactNode);
41
+ style?: StyleProp<ViewStyle>;
42
+ testID?: string;
43
+ };
44
+ /**
45
+ * A label, a description and an error around a control, linked to it: Plex UI's Field. On its own the label stands over
46
+ * the control (TextField's stack: iOS 15/20 Medium 8 above it, the help 4 under it; on Android an Input or a Textarea
47
+ * floats the label in its outlined field). With `row` it is a line of a List, as the web's `Field row` on a phone: the
48
+ * label at the start and the control at the end (a ListItem), or with `orientation="vertical"` or `hideLabel` the value
49
+ * a line of its own under the label (iOS: 15/20 in the secondary label, 13 above and below).
50
+ */
51
+ export declare function Field({ label, hideLabel, description, errorMessage, labelAction, required, orientation, row, fill, icon, action, disabled, children, style, testID, }: FieldProps): import("react").JSX.Element;
52
+ export type FieldErrorProps = {
53
+ children: ReactNode;
54
+ /** The exclamation mark before the message (iOS). Turn it off where the message stands alone. @default true */
55
+ icon?: boolean;
56
+ nativeID?: string;
57
+ style?: StyleProp<ViewStyle>;
58
+ testID?: string;
59
+ };
60
+ /**
61
+ * A form's error message, announced when it appears: Plex UI's FieldError. iOS: 15/20 in the danger color after a 16pt
62
+ * exclamation mark, 4 apart (`--mobile-field-error-*`); Android: the help's 14sp in the error color, with no mark.
63
+ */
64
+ export declare function FieldError({ children, icon, nativeID, style, testID }: FieldErrorProps): import("react").JSX.Element;
@@ -0,0 +1,42 @@
1
+ import { type ReactNode } from "react";
2
+ import type { StyleProp, ViewStyle } from "react-native";
3
+ import { type InputProps } from "../Input/Input";
4
+ export type FloatingLabelInputProps = Omit<InputProps, "variant" | "size" | "invalid" | "multiline" | "secureTextEntry" | "pill"> & {
5
+ /** The field's name: on Android it floats in the outlined field; on iOS it is the placeholder of its cell. */
6
+ label: string;
7
+ /** An error under the field (iOS: inside the cell); it marks the field invalid. */
8
+ errorMessage?: string;
9
+ /** @default false (true with an `errorMessage`) */
10
+ invalid?: boolean;
11
+ /** Words under the field (iOS: the footer under its cell). */
12
+ description?: ReactNode;
13
+ /**
14
+ * The kind of value: `password` hides it (with the eye that shows it, `revealable`); `email`, `tel`, `url` and
15
+ * `number` bring their keyboard. @default "text"
16
+ */
17
+ type?: "text" | "password" | "email" | "tel" | "url" | "number";
18
+ /** The eye at the end that shows or hides the value. @default true for `type="password"` with no `endAdornment` */
19
+ revealable?: boolean;
20
+ /** Called with the new state each time the eye is pressed. */
21
+ onRevealedChange?: (revealed: boolean) => void;
22
+ /** Several lines (a Textarea). @default false */
23
+ multiline?: boolean;
24
+ /** The lines of a `multiline` field. @default 2 */
25
+ rows?: number;
26
+ /**
27
+ * Where the label rests once it floats (Android): on the outline (`border`), or inside a filled box with the value
28
+ * under it (`inside`). @default "border"
29
+ */
30
+ labelPlacement?: "border" | "inside";
31
+ /** A capsule (the web's default). Android keeps the outlined field's 8dp corners unless it is set. */
32
+ pill?: boolean;
33
+ style?: StyleProp<ViewStyle>;
34
+ };
35
+ /**
36
+ * A text field named by a label that floats into its frame: Plex UI's FloatingLabelInput. Android: the outlined field,
37
+ * its label 16sp at rest that springs to 12sp on the outline as the field takes focus or a value (or into a filled
38
+ * box with `labelPlacement="inside"`), the help 14sp under it and a shake on an error, as TextField. iOS has no
39
+ * floating label: the field is a cell named by its placeholder, as an iOS form (the web's phone view, a label-hidden
40
+ * `Field row`): a row of its List, or a List of its own with the description in its footer.
41
+ */
42
+ export declare function FloatingLabelInput({ label, errorMessage, invalid: invalidProp, description, type, revealable: revealableProp, onRevealedChange, multiline, rows, labelPlacement, pill, endAdornment, disabled, style, testID, accessibilityLabel, ...rest }: FloatingLabelInputProps): import("react").JSX.Element;
@@ -0,0 +1,34 @@
1
+ import { type StyleProp, type ViewStyle } from "react-native";
2
+ export type CircularProgressProps = {
3
+ /** Maximum duration to use for simulated upload progress in ms. @default 15000 */
4
+ maxDuration?: number;
5
+ /** Sets the progress to full and resolves the simulated timer. @default false */
6
+ done?: boolean;
7
+ /** A fixed progress, 0 to 100, instead of the simulated one. */
8
+ progress?: number;
9
+ /** Size of the indicator, in pixels. @default 28 */
10
+ size?: number;
11
+ /** Stroke width of the ring, in pixels of its 20px drawing, between 1 and 4. @default 2 */
12
+ strokeWidth?: number;
13
+ /** Color of the active progress track (stroke): a color or a token, such as `"var(--gray-1000)"`. */
14
+ trackActiveColor?: string;
15
+ /** Color of the base track (background stroke): a color or a token, such as `"var(--alpha-15)"`. */
16
+ trackColor?: string;
17
+ /** The name read out, as a progress bar. */
18
+ "aria-label"?: string;
19
+ accessibilityLabel?: string;
20
+ testID?: string;
21
+ style?: StyleProp<ViewStyle>;
22
+ };
23
+ /**
24
+ * Deterministically returns a progress value between 0 and 100 that decays as it approaches 100, based on a maximum
25
+ * duration and the elapsed time, as @plexui/ui's simulated progress.
26
+ */
27
+ export declare function getSimulatedProgress(maxTime: number, elapsedTime: number): number;
28
+ /**
29
+ * A progress ring, as @plexui/ui's CircularProgress: a light green track and a green arc for its share, 28px by
30
+ * default. Without `progress` it simulates one over `maxDuration`, and `done` fills it. Neither platform has a ring
31
+ * of its own for this, so both draw the Plex ring; a new value moves the arc in 300ms (ease) on iOS, as the web's
32
+ * transition, and in Android's determinate radial progress time (200ms, decelerating); at once with reduced motion.
33
+ */
34
+ export declare function CircularProgress({ maxDuration, done, progress: progressProp, size, strokeWidth, trackActiveColor, trackColor, "aria-label": ariaLabel, accessibilityLabel, testID, style, }: CircularProgressProps): import("react").JSX.Element;
@@ -0,0 +1,17 @@
1
+ import { type StyleProp, type ViewStyle } from "react-native";
2
+ import { type TextColor } from "../Text/Text";
3
+ export type LoadingDotsProps = {
4
+ /** The color of the dots, a text color or any color string; the web takes the text color. @default "primary" */
5
+ color?: TextColor | (string & {});
6
+ /** The name read out, as a busy progress indicator; without one the dots are decorative, as on the web. */
7
+ "aria-label"?: string;
8
+ accessibilityLabel?: string;
9
+ testID?: string;
10
+ style?: StyleProp<ViewStyle>;
11
+ };
12
+ /**
13
+ * Three pulsing dots for typing or a short wait, as @plexui/ui's LoadingDots: 8px dots 4px apart, as tall as a line
14
+ * of text (24). iOS pulses their opacity as the web does; Android grows and shrinks them on the Plex Android look's
15
+ * typing timing, in the same tones. With reduced motion they stand still.
16
+ */
17
+ export declare function LoadingDots({ color, "aria-label": ariaLabel, accessibilityLabel, testID, style }: LoadingDotsProps): import("react").JSX.Element;
@@ -0,0 +1,46 @@
1
+ import { type StyleProp, type ViewStyle } from "react-native";
2
+ import { type TextColor } from "../Text/Text";
3
+ export type LoadingIndicatorProps = {
4
+ /** Size of the indicator, in pixels. @default 20 */
5
+ size?: number;
6
+ /**
7
+ * The spokes' width on iOS (by default the iOS 27 kit's proportion of the size: 2/14 up to 16, 4/30 to 27, 5/35
8
+ * from 28), the arc's stroke on Android (by default an eighth of the size).
9
+ */
10
+ strokeWidth?: number;
11
+ /** The color, a text color or any color string; the web takes the text color (`currentcolor`). @default "primary" (iOS), the accent (Android) */
12
+ color?: TextColor | (string & {});
13
+ /** The time of one turn in ms, as the web's `--indicator-rotate-duration`; Android's cycle keeps its proportion. @default 800 */
14
+ duration?: number;
15
+ /** The name read out, as a busy progress indicator; without one the spinner is decorative, as on the web. */
16
+ "aria-label"?: string;
17
+ accessibilityLabel?: string;
18
+ testID?: string;
19
+ style?: StyleProp<ViewStyle>;
20
+ };
21
+ /**
22
+ * A spinner for a loading state, as @plexui/ui's LoadingIndicator. iOS: the iOS 27 spinner (UIActivityIndicatorView)
23
+ * of eight rounded spokes, as the touch stylesheet draws it: 20pt, the spokes brightening to the leading one, a turn in
24
+ * 800ms in eight steps. Android: Material's circular progress, the arc of CircularProgressDrawable (a 5.4s cycle of four
25
+ * 250° surges) in the accent. With reduced motion it stands still.
26
+ */
27
+ export declare function LoadingIndicator({ size, strokeWidth, color, duration, "aria-label": ariaLabel, accessibilityLabel, testID, style }: LoadingIndicatorProps): import("react").JSX.Element;
28
+ /**
29
+ * Android's spinner over one 5400ms cycle (CircularProgressDrawable): the arc's head turns 1520° and makes four surges
30
+ * of 250°, 667ms each, 1350ms apart; its tail turns 20° behind the head's steady turn and makes the same surges 667ms
31
+ * later.
32
+ */
33
+ export declare const SPIN: {
34
+ cycle: number;
35
+ turn: number;
36
+ lag: number;
37
+ surge: number;
38
+ surgeTime: number;
39
+ surgeEvery: number;
40
+ surges: number;
41
+ };
42
+ /** The spinner at a share of its cycle: how far its tail has turned and how long its arc is, in degrees. */
43
+ export declare function spinnerAt(share: number): {
44
+ tail: number;
45
+ arc: number;
46
+ };
@@ -0,0 +1,3 @@
1
+ export { CircularProgress, getSimulatedProgress, type CircularProgressProps } from "./CircularProgress";
2
+ export { LoadingDots, type LoadingDotsProps } from "./LoadingDots";
3
+ export { LoadingIndicator, type LoadingIndicatorProps } from "./LoadingIndicator";
@@ -123,14 +123,24 @@ export type InputAdornmentButtonProps = Omit<PressableProps, "children" | "style
123
123
  * field's icon color on a 48dp target, as Android's field icons.
124
124
  */
125
125
  export declare function InputAdornmentButton({ children, accessibilityLabel, selected, disabled, style, ...rest }: InputAdornmentButtonProps): import("react").JSX.Element;
126
- /** `shift` moves the field sideways (TextField's shake on an error). */
127
- type FieldExtras = {
126
+ /**
127
+ * `shift` moves the field sideways (TextField's shake on an error). With `multiline` (a Textarea) `rows` sets the
128
+ * least height in lines, and `autoResize` grows the field with its text up to `maxRows` (else it stays at `rows` and
129
+ * scrolls).
130
+ */
131
+ export type FieldExtras = {
128
132
  label?: ReactNode;
129
133
  required?: boolean;
130
134
  shift?: Animated.Value;
135
+ rows?: number;
136
+ maxRows?: number;
137
+ autoResize?: boolean;
138
+ /** Android, at a row's end: the value stands at the end, as a value row's and the web's ghost row value (a Field row's
139
+ * Input, an InputGroup's value before its unit); in a List with `columns` it still starts its column. */
140
+ valueAtEnd?: boolean;
131
141
  };
132
142
  /** The field itself; TextField passes it a floating label on Android. */
133
- export declare function InputField({ variant, size, disabled, invalid, onClear, startAdornment, endAdornment, pill, style, testID, label, required, shift, value, defaultValue, onChangeText, onFocus, onBlur, readOnly: readOnlyProp, placeholderTextColor, selectionColor, cursorColor, ...rest }: InputProps & FieldExtras): import("react").JSX.Element;
143
+ export declare function InputField({ variant, size, disabled, invalid, onClear, startAdornment, endAdornment, pill, style, testID, label: ownLabel, required: ownRequired, shift: ownShift, rows, maxRows, autoResize, valueAtEnd, value, defaultValue, onChangeText, onFocus, onBlur, readOnly: readOnlyProp, placeholderTextColor, selectionColor, cursorColor, ...rest }: InputProps & FieldExtras): import("react").JSX.Element;
134
144
  export type TextFieldProps = InputProps & {
135
145
  /** The field's name: over the field on iOS, floating inside it on Android. */
136
146
  label: ReactNode;
@@ -0,0 +1,71 @@
1
+ import { type ReactElement, type ReactNode } from "react";
2
+ import { type StyleProp, type ViewStyle } from "react-native";
3
+ import { type ButtonProps, type ControlSize } from "../Button/Button";
4
+ import { type InputProps } from "../Input/Input";
5
+ import { type TextProps } from "../Text/Text";
6
+ export type InputGroupProps = {
7
+ /** @default "outline" */
8
+ variant?: "outline" | "soft";
9
+ /** @default "md" */
10
+ size?: ControlSize;
11
+ /** A capsule. @default false */
12
+ pill?: boolean;
13
+ /** @default false */
14
+ disabled?: boolean;
15
+ /** @default false */
16
+ invalid?: boolean;
17
+ /** One `InputGroup.Input` or `InputGroup.Textarea`, and `InputGroup.Addon`s around it. */
18
+ children: ReactNode;
19
+ style?: StyleProp<ViewStyle>;
20
+ testID?: string;
21
+ };
22
+ export type InputGroupInputProps = Omit<InputProps, "variant" | "size" | "pill" | "startAdornment" | "endAdornment" | "multiline">;
23
+ export type InputGroupTextareaProps = InputGroupInputProps & {
24
+ /** @default 3 */
25
+ rows?: number;
26
+ autoResize?: boolean;
27
+ maxRows?: number;
28
+ };
29
+ export type InputGroupAddonAlign = "inline-start" | "inline-end" | "block-start" | "block-end";
30
+ export type InputGroupAddonProps = {
31
+ /**
32
+ * Where the addon sits: before or after the control on its line, or as a row above or below it (a Textarea's heading
33
+ * or counter). @default "inline-start"
34
+ */
35
+ align?: InputGroupAddonAlign;
36
+ children: ReactNode;
37
+ style?: StyleProp<ViewStyle>;
38
+ };
39
+ export type InputGroupButtonProps = Omit<ButtonProps, "size"> & {
40
+ /** @default "secondary" */
41
+ color?: ButtonProps["color"];
42
+ };
43
+ export type InputGroupTextProps = TextProps;
44
+ /** The control of a group: its props, read by the group (it is drawn by the group's field). */
45
+ declare function InputGroupInput(_props: InputGroupInputProps): ReactElement | null;
46
+ declare function InputGroupTextarea(_props: InputGroupTextareaProps): ReactElement | null;
47
+ /** Content beside, above or below the control: icons, text, buttons. */
48
+ declare function InputGroupAddon({ children, style }: InputGroupAddonProps): import("react").JSX.Element;
49
+ /**
50
+ * A ghost Button sized from the group, a step under the field. An icon alone (`uniform`) is the field's adornment
51
+ * button: its 44pt (48dp) target around a 20pt (24dp) glyph in the field's icon gray.
52
+ */
53
+ declare function InputGroupButton({ color, variant, uniform, disabled, children, accessibilityLabel, onPress, style, ...rest }: InputGroupButtonProps): import("react").JSX.Element;
54
+ /** Plain text in an addon (a prefix, a unit, a counter): the field's type in the secondary label. */
55
+ declare function InputGroupText({ style, children, ...rest }: InputGroupTextProps): import("react").JSX.Element;
56
+ /**
57
+ * A field with addons around its control: Plex UI's InputGroup. The addons on its line are the field's adornments
58
+ * (an icon, a prefix, a unit, a button), in the frame of an Input of the same `variant`, `size` and `pill`; block
59
+ * addons stand as rows above and below the control inside one frame. In a List row (a `Field row`) the row is the
60
+ * frame, as the web's on a phone: a prefix sits right before the value in the secondary label, a unit right after it
61
+ * ("72 kg"), a button at the row's end.
62
+ */
63
+ export declare function InputGroup({ variant, size, pill, disabled, invalid, children, style, testID }: InputGroupProps): import("react").JSX.Element;
64
+ export declare namespace InputGroup {
65
+ var Input: typeof InputGroupInput;
66
+ var Textarea: typeof InputGroupTextarea;
67
+ var Addon: typeof InputGroupAddon;
68
+ var Button: typeof InputGroupButton;
69
+ var Text: typeof InputGroupText;
70
+ }
71
+ export { InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea };
@@ -9,8 +9,8 @@ export type ListProps = {
9
9
  /** A note under the section. */
10
10
  footer?: ReactNode;
11
11
  /**
12
- * An error under the rows, as the web's FieldError in a group's footer: the danger color, 15/20, 4 lower than a
13
- * footer on iOS. It stands in place of the footer while it is set, and is announced when it appears.
12
+ * An error under the rows: it stands in the footer's place, in the footer's type (iOS 13/16, 8 under the section;
13
+ * Android 14sp), only in the danger color, while it is set, and is announced when it appears.
14
14
  */
15
15
  error?: ReactNode;
16
16
  /**
@@ -20,23 +20,43 @@ export type ListProps = {
20
20
  * list at its edges) in the cards' color, the header a 32dp band of the grouped gray. @default "grouped"
21
21
  */
22
22
  surface?: "grouped" | "plain";
23
+ /**
24
+ * Content at the end of the header, as the web's FieldGroup `action`: a ghost Button there is the list header's text
25
+ * action (iOS: tinted 17/22 text on the title's line with a 44pt target; Android: 14sp Medium in its color). A string,
26
+ * a number or a Text (a count such as "2/3") takes the header's type in the secondary label, on the title's line. With
27
+ * no `header` the action stands alone at the header's end.
28
+ */
29
+ action?: ReactNode;
30
+ /**
31
+ * How much the header stands out, as the web's FieldGroup `headerProminence`: `increased` is iOS's prominent list
32
+ * header (20/25 Semibold in the primary label, 10 above the rows), and on Android a 16sp Medium title in the text
33
+ * color in place of the accent's 14sp. @default "standard"
34
+ */
35
+ headerProminence?: "standard" | "increased";
36
+ /**
37
+ * Every row's value starts at one column, 40% into the row (`--field-row-column-width`), as the web's FieldGroup
38
+ * `columns`: a form of typed details. Off, values end at the row's edge.
39
+ */
40
+ columns?: boolean;
23
41
  "aria-label"?: string;
24
42
  testID?: string;
25
43
  style?: StyleProp<ViewStyle>;
26
44
  };
45
+ /** Whether a control stands in a List's rows (a FloatingLabelInput is a row there, a List of its own elsewhere). */
46
+ export declare function useInList(): boolean;
27
47
  /**
28
48
  * A section of rows. iOS 26: a section of an inset grouped list, as @plexui/ui's FieldGroup on a phone
29
49
  * (`--field-group-radius` 26, the grouped secondary surface, rows 20 in from its edges, hairlines between rows from
30
50
  * the text's start; the header 17/22 at 590 in the secondary label over its description 15/20, the footer 13/16, an
31
- * error 15/20 in the danger color). Android: a section of a settings screen: one card of the section's rows,
32
- * 16dp round, a 1px divider between rows from the text's start; the header inside the card, a 40dp row of 14sp Medium
33
- * in the accent 20 in, its description 14sp in the secondary label under it; the footer under the card, 14sp in the
34
- * secondary label 12 in (24 from the screen's edge, as the screen insets the card 12), 10 above and 17 below, an
35
- * error the same in the error color. The screen sets the cards 12 from its edges and 12 apart. On a plain canvas
51
+ * error in its place and type in the danger color). Android: a section of a settings screen: one card of the section's rows,
52
+ * 16dp round, a 1px divider between rows from the text's start to the card's end; the header inside the card, a 40dp
53
+ * row of 15sp Medium in the accent 21 in (14 above it), its description 14sp in the secondary label under it; the
54
+ * footer under the card, 14sp in the secondary label 13 in (25 from the screen's edge, as the screen insets the card
55
+ * 12), 11 above and 17 below, an error the same in the error color (the web's FieldGroup on Android). The screen sets the cards 12 from its edges and 12 apart. On a plain canvas
36
56
  * Android draws a plain list: the rows across the screen with no card, the header a 32dp band of the grouped gray,
37
57
  * the footer on that gray.
38
58
  */
39
- export declare function List({ children, header, description, footer, error, surface, "aria-label": ariaLabel, testID, style }: ListProps): import("react").JSX.Element;
59
+ export declare function List({ children, header, description, footer, error, surface, action, headerProminence, columns, "aria-label": ariaLabel, testID, style, }: ListProps): import("react").JSX.Element;
40
60
  export type ListItemProps = {
41
61
  /** The row's text, as @plexui/ui's NavigationRow `label`. */
42
62
  label: ReactNode;
@@ -91,11 +111,34 @@ export type ListItemProps = {
91
111
  * A row of a List: the label (17/22, `--field-row-*`: 52 tall, 70 with a description, 12 above and below the text at
92
112
  * least) with a description, a leading symbol, a value (wrapping within 60% of the row, or under the label: `valuePlacement`) or a control, and the chevron
93
113
  * of a drill-in (`Disclosure`, in the tertiary label, turned over right to left). A row with `checked` is a switch
94
- * row. On Android a row of a settings screen: 50dp tall at least (60 with a description), the label 16sp, the
95
- * description 13sp in the secondary label under it, the value 16sp in the accent at the end, 17 from it (20 in a row
96
- * with a tile), no chevron; the text 20 in, or 71 after a 24dp symbol at 21, or 64 after a 28dp tile of
97
- * `leadingColor` at 18 with a 24dp symbol (the tile's corners 10), or 64 after a RadioGroup option's 20dp ring at 22
98
- * (the row 64dp with a description); a 1px divider from the text's start to the next row, none under a row with a
99
- * tile (a tiled row draws none).
114
+ * row. On Android a row of a settings screen: 50dp tall at least (64 with a description, its text 12 from the row's
115
+ * top and bottom), the label 16sp, the description 13sp in the secondary label under it, the value 16sp in the accent
116
+ * at the end, 17 from it (20 in a row with a tile), no chevron; the text 21 in, or 64 after a 24dp symbol at 20, or 64
117
+ * after a 28dp tile of `leadingColor` at 18 with a 24dp symbol (the tile's corners 10), or 64 after a RadioGroup
118
+ * option's 20dp ring at 22; a lone Checkbox at the end of a row with no `leading` leads it instead, its 20dp circle 22
119
+ * in (a multi-select list); a 1px divider from the text's start to the card's end, none under a row with a tile (a
120
+ * tiled row draws none).
100
121
  */
101
122
  export declare function ListItem({ label, description, leading, leadingColor, value, valuePlacement, trailing, error, checked: checkedProp, defaultChecked, onCheckedChange, disclosure, onPress, disabled, destructive, accessibilityLabel, testID, }: ListItemProps): import("react").JSX.Element;
123
+ export type StackedRowProps = {
124
+ /** The label over the value; none for a row whose placeholder names the field (`hideLabel`). */
125
+ label?: ReactNode;
126
+ /** Words under the value (a label-hidden field's description). */
127
+ description?: ReactNode;
128
+ error?: ReactNode;
129
+ disabled?: boolean;
130
+ /** A control at the end of the label's line. */
131
+ action?: ReactNode;
132
+ /** The field: drawn bare, its text from the row's text start, as tall as its lines. */
133
+ children: ReactNode;
134
+ testID?: string;
135
+ };
136
+ /**
137
+ * A field row whose value is a line of its own, as the web's `Field row` with `orientation="vertical"` or `hideLabel`
138
+ * on a phone. iOS: the label 15/20 in the secondary label (`--field-row-above-*`), the value under it in the row's
139
+ * 17/22, 13 above and below (68 for one line); with no label the value alone, centred in the row's 52. The error 4
140
+ * under the value, as a row's. Android: the label 13sp in the secondary label, 4 over the bare value (17sp, as a card's
141
+ * text field), 10 above and below, 21 in; with no label the value alone 17 above and below and 22 in, a 54dp row (the
142
+ * reference's card input), the line above the row starting there too.
143
+ */
144
+ export declare function ListStackedRow({ label, description, error, disabled, action, children, testID }: StackedRowProps): import("react").JSX.Element;
@@ -75,10 +75,14 @@ type SurfaceProps = MenuContentProps & {
75
75
  anchor: MenuAnchor | null;
76
76
  onClose: () => void;
77
77
  check?: boolean;
78
+ /** Select's `multiple`: a press checks or unchecks an option and the menu stays open. */
79
+ multiple?: boolean;
78
80
  /** The menu opens over its trigger, as Android's popup and the web's phone menu (a dropdown field's list opens under it). @default true */
79
81
  cover?: boolean;
80
82
  /** The List row the menu opens from: on Android the screen dims around it and the popup stands under it. */
81
83
  row?: MenuRow | null;
84
+ /** Opened from a bar's button: on Android the header menu, in the bar's glass. */
85
+ header?: boolean;
82
86
  };
83
87
  /** The floating panel of a menu, placed under its anchor (over it when the screen ends first). */
84
88
  export declare function MenuSurface(props: SurfaceProps): import("react").JSX.Element;
@@ -5,12 +5,20 @@ export type NavigationButtonProps = Omit<ButtonProps, "children" | "uniform" | "
5
5
  action: NavigationAction;
6
6
  /** @default "Back", "Close" or "Confirm" */
7
7
  accessibilityLabel?: string;
8
+ /**
9
+ * Android: the short word drawn on confirm's pill (Done, Save, Apply); the pill never draws the `accessibilityLabel`,
10
+ * which stays the button's name. iOS draws no text (confirm is a check circle), so it is unused there, as for back
11
+ * and close. @default "Done"
12
+ */
13
+ label?: string;
8
14
  };
9
15
  /**
10
16
  * Back, close and confirm: on iOS the 44pt circle of a bar, glass for back and close and the accent for confirm (in a
11
17
  * Toolbar), with the kit's glyphs at their sizes (`--navigation-button-*`); on Android Material's glyphs (`arrow_back`,
12
- * `close`, `check`) at 24dp: in a bar back and close take Android's 46dp glass circle and confirm the accent one,
13
- * outside a bar they are plain icon buttons.
18
+ * `close`, `check`) at 24dp: in a bar back and close take Android's 46dp glass circle, outside a bar they are plain icon
19
+ * buttons. Confirm on Android is the glass text pill of a top bar (outside a bar too): a short word, its `label` (Done
20
+ * by default), 15/20 Bold in the text color, 16 in from its ends and cut short past 160; in a bottom bar it keeps the
21
+ * accent circle.
14
22
  * Back points the way the screen reads: right to left it turns over.
15
23
  */
16
- export declare function NavigationButton({ action, color, variant, mobileMaterial, size, accessibilityLabel, ...rest }: NavigationButtonProps): import("react").JSX.Element;
24
+ export declare function NavigationButton({ action, color, variant, mobileMaterial, size, accessibilityLabel, label, ...rest }: NavigationButtonProps): import("react").JSX.Element;
@@ -18,6 +18,15 @@ export type OTPInputProps = {
18
18
  disabled?: boolean;
19
19
  /** Focuses the first cell on mount. @default false */
20
20
  autoFocus?: boolean;
21
+ /**
22
+ * Names the code ("Verification code"): the cells' group on the web, and the start of each cell's name on iOS and
23
+ * Android ("Verification code, digit 1 of 6"), where a group is not announced.
24
+ */
25
+ "aria-label"?: string;
26
+ /** The same name as `aria-label`. */
27
+ label?: string;
28
+ /** The name of a cell, for another language. @default (index, length) => `Digit ${index + 1}`, with `of ${length}` once the code is named */
29
+ digitLabel?: (index: number, length: number) => string;
21
30
  /** Applied to the root; each cell's field gets `${testID}-digit-${n}`. */
22
31
  testID?: string;
23
32
  style?: StyleProp<ViewStyle>;
@@ -30,4 +39,4 @@ export type OTPInputProps = {
30
39
  * cells (44 by 52pt capsules); Android outlined code boxes with the accent on the box with focus, whose digits slide
31
40
  * or grow in and shrink away, and whose row shakes when an error appears.
32
41
  */
33
- export declare function OTPInput({ length: lengthProp, value, onChange, onComplete, grouping, invalid, errorMessage, disabled, autoFocus, testID, style, }: OTPInputProps): import("react").JSX.Element;
42
+ export declare function OTPInput({ length: lengthProp, value, onChange, onComplete, grouping, invalid, errorMessage, disabled, autoFocus, "aria-label": ariaLabel, label, digitLabel, testID, style, }: OTPInputProps): import("react").JSX.Element;
@@ -19,6 +19,16 @@ export type PageControlProps = {
19
19
  * turns off scrubbing there. @default "automatic"
20
20
  */
21
21
  background?: "automatic" | "prominent" | "minimal";
22
+ /**
23
+ * How the current page shows: `dots`, iOS's and Android's own (the current dot solid); `pill`, the current page a
24
+ * short capsule (two and a half dots wide) among the dots, as many onboarding pagers draw it. @default "dots"
25
+ */
26
+ indicator?: "dots" | "pill";
27
+ /**
28
+ * `default` draws the dots in the label colors; `onColor` in white for a page of color or a photo behind them (the
29
+ * current white, the rest white at 40%), the capsule a white veil. @default "default"
30
+ */
31
+ tone?: "default" | "onColor";
22
32
  /** @default (index, count) => `Page ${index + 1} of ${count}` */
23
33
  valueText?: (index: number, count: number) => string;
24
34
  /** @default "Pages" */
@@ -41,4 +51,4 @@ export declare const pageControlDots: (count: number, current: number) => PageCo
41
51
  * page and back as it moves), in a 48dp target, with no capsule at all. For a screen reader it is adjustable: swipe
42
52
  * up or down for the next or previous page.
43
53
  */
44
- export declare function PageControl({ count, value: valueProp, defaultValue, onChange, background, valueText, "aria-label": ariaLabel, testID, style }: PageControlProps): import("react").JSX.Element;
54
+ export declare function PageControl({ count, value: valueProp, defaultValue, onChange, background, indicator, tone, valueText, "aria-label": ariaLabel, testID, style, }: PageControlProps): import("react").JSX.Element;