@refy-design/mobile 0.0.0-stage → 1.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.
- package/LICENSE +202 -0
- package/NOTICE +32 -0
- package/README.md +61 -2
- package/dist/index.js +10322 -0
- package/dist/types/_contracts/accordion.d.ts +34 -0
- package/dist/types/_contracts/account.d.ts +113 -0
- package/dist/types/_contracts/activity-item.d.ts +23 -0
- package/dist/types/_contracts/aspect-ratio.d.ts +5 -0
- package/dist/types/_contracts/avatar-group.d.ts +20 -0
- package/dist/types/_contracts/avatar.d.ts +23 -0
- package/dist/types/_contracts/badge.d.ts +9 -0
- package/dist/types/_contracts/boards.d.ts +42 -0
- package/dist/types/_contracts/brand-logo.d.ts +16 -0
- package/dist/types/_contracts/bubble.d.ts +5 -0
- package/dist/types/_contracts/button-group.d.ts +12 -0
- package/dist/types/_contracts/button.d.ts +27 -0
- package/dist/types/_contracts/calendar.d.ts +33 -0
- package/dist/types/_contracts/callout.d.ts +19 -0
- package/dist/types/_contracts/capture.d.ts +29 -0
- package/dist/types/_contracts/card.d.ts +26 -0
- package/dist/types/_contracts/charts.d.ts +79 -0
- package/dist/types/_contracts/checkbox.d.ts +17 -0
- package/dist/types/_contracts/chip.d.ts +23 -0
- package/dist/types/_contracts/choice-card.d.ts +34 -0
- package/dist/types/_contracts/combobox.d.ts +57 -0
- package/dist/types/_contracts/connector-card.d.ts +26 -0
- package/dist/types/_contracts/content.d.ts +87 -0
- package/dist/types/_contracts/divider.d.ts +12 -0
- package/dist/types/_contracts/empty-state.d.ts +13 -0
- package/dist/types/_contracts/fab.d.ts +13 -0
- package/dist/types/_contracts/form-fields.d.ts +41 -0
- package/dist/types/_contracts/guided.d.ts +67 -0
- package/dist/types/_contracts/icon-button.d.ts +9 -0
- package/dist/types/_contracts/index.d.ts +62 -0
- package/dist/types/_contracts/input.d.ts +15 -0
- package/dist/types/_contracts/item.d.ts +11 -0
- package/dist/types/_contracts/modal.d.ts +18 -0
- package/dist/types/_contracts/nav-card.d.ts +12 -0
- package/dist/types/_contracts/oauth-button.d.ts +8 -0
- package/dist/types/_contracts/organisms.d.ts +133 -0
- package/dist/types/_contracts/otp.d.ts +23 -0
- package/dist/types/_contracts/overlay.d.ts +118 -0
- package/dist/types/_contracts/page-header.d.ts +14 -0
- package/dist/types/_contracts/pagination.d.ts +10 -0
- package/dist/types/_contracts/person-cell.d.ts +9 -0
- package/dist/types/_contracts/progress-bar.d.ts +19 -0
- package/dist/types/_contracts/radio-group.d.ts +15 -0
- package/dist/types/_contracts/score-gauge.d.ts +15 -0
- package/dist/types/_contracts/scroll-area.d.ts +3 -0
- package/dist/types/_contracts/section-header.d.ts +13 -0
- package/dist/types/_contracts/segmented.d.ts +22 -0
- package/dist/types/_contracts/select.d.ts +7 -0
- package/dist/types/_contracts/setting-row.d.ts +27 -0
- package/dist/types/_contracts/skeleton.d.ts +9 -0
- package/dist/types/_contracts/slider.d.ts +45 -0
- package/dist/types/_contracts/stat.d.ts +37 -0
- package/dist/types/_contracts/status-dot.d.ts +11 -0
- package/dist/types/_contracts/sticky.d.ts +14 -0
- package/dist/types/_contracts/switch.d.ts +10 -0
- package/dist/types/_contracts/table.d.ts +33 -0
- package/dist/types/_contracts/tabs.d.ts +23 -0
- package/dist/types/_contracts/textarea.d.ts +7 -0
- package/dist/types/_contracts/toast.d.ts +28 -0
- package/dist/types/_contracts/toggle-group.d.ts +19 -0
- package/dist/types/_contracts/usage-meter.d.ts +19 -0
- package/dist/types/_contracts/wizard-stepper.d.ts +21 -0
- package/dist/types/_contracts/workflow.d.ts +103 -0
- package/dist/types/_tokens/index.d.ts +423 -0
- package/dist/types/chart/Charts.d.ts +77 -0
- package/dist/types/chart/D3Chart.d.ts +11 -0
- package/dist/types/chart/SceneChart.d.ts +19 -0
- package/dist/types/chart/d3/cartesian.d.ts +4 -0
- package/dist/types/chart/d3/hierarchy.d.ts +3 -0
- package/dist/types/chart/d3/radial.d.ts +3 -0
- package/dist/types/chart/d3/relations.d.ts +3 -0
- package/dist/types/chart/d3/shared.d.ts +21 -0
- package/dist/types/chart/d3/styles.d.ts +10 -0
- package/dist/types/chart/d3/svg.d.ts +6 -0
- package/dist/types/chart/d3/types.d.ts +228 -0
- package/dist/types/chart/scales.d.ts +17 -0
- package/dist/types/chart/scene.d.ts +32 -0
- package/dist/types/chart/types.d.ts +92 -0
- package/dist/types/components/Accordion.d.ts +10 -0
- package/dist/types/components/ActivityItem.d.ts +7 -0
- package/dist/types/components/AlertDialog.d.ts +8 -0
- package/dist/types/components/ApprovalWorkbench.d.ts +11 -0
- package/dist/types/components/AspectRatio.d.ts +6 -0
- package/dist/types/components/Avatar.d.ts +9 -0
- package/dist/types/components/AvatarGroup.d.ts +9 -0
- package/dist/types/components/Badge.d.ts +7 -0
- package/dist/types/components/BillingCard.d.ts +6 -0
- package/dist/types/components/BrandLogo.d.ts +7 -0
- package/dist/types/components/Bubble.d.ts +6 -0
- package/dist/types/components/Button.d.ts +13 -0
- package/dist/types/components/ButtonGroup.d.ts +6 -0
- package/dist/types/components/Calendar.d.ts +17 -0
- package/dist/types/components/Callout.d.ts +7 -0
- package/dist/types/components/Card.d.ts +10 -0
- package/dist/types/components/Carousel.d.ts +11 -0
- package/dist/types/components/Checkbox.d.ts +10 -0
- package/dist/types/components/Chip.d.ts +9 -0
- package/dist/types/components/ChoiceCard.d.ts +14 -0
- package/dist/types/components/CodeBlock.d.ts +22 -0
- package/dist/types/components/Collapsible.d.ts +6 -0
- package/dist/types/components/Combobox.d.ts +32 -0
- package/dist/types/components/ConnectorCard.d.ts +6 -0
- package/dist/types/components/ContextMenu.d.ts +10 -0
- package/dist/types/components/Coverflow.d.ts +12 -0
- package/dist/types/components/DangerZone.d.ts +10 -0
- package/dist/types/components/DatePicker.d.ts +7 -0
- package/dist/types/components/Divider.d.ts +7 -0
- package/dist/types/components/Drawer.d.ts +23 -0
- package/dist/types/components/EmptyState.d.ts +6 -0
- package/dist/types/components/EventTimeline.d.ts +15 -0
- package/dist/types/components/Fab.d.ts +8 -0
- package/dist/types/components/FabMenu.d.ts +11 -0
- package/dist/types/components/Field.d.ts +24 -0
- package/dist/types/components/FileUpload.d.ts +37 -0
- package/dist/types/components/GeoAreaPicker.d.ts +17 -0
- package/dist/types/components/GoogleButton.d.ts +5 -0
- package/dist/types/components/GuidedTour.d.ts +15 -0
- package/dist/types/components/HelpField.d.ts +11 -0
- package/dist/types/components/HelpMenu.d.ts +7 -0
- package/dist/types/components/IconButton.d.ts +10 -0
- package/dist/types/components/Input.d.ts +9 -0
- package/dist/types/components/IntentComposer.d.ts +14 -0
- package/dist/types/components/Item.d.ts +6 -0
- package/dist/types/components/KanbanBoard.d.ts +15 -0
- package/dist/types/components/KanbanCard.d.ts +8 -0
- package/dist/types/components/Marker.d.ts +4 -0
- package/dist/types/components/Matrix2x2.d.ts +15 -0
- package/dist/types/components/Menu.d.ts +15 -0
- package/dist/types/components/Message.d.ts +14 -0
- package/dist/types/components/Modal.d.ts +9 -0
- package/dist/types/components/Multiselect.d.ts +18 -0
- package/dist/types/components/NavCard.d.ts +8 -0
- package/dist/types/components/NotificationBell.d.ts +11 -0
- package/dist/types/components/OAuthButton.d.ts +8 -0
- package/dist/types/components/Otp.d.ts +10 -0
- package/dist/types/components/PageHeader.d.ts +6 -0
- package/dist/types/components/Pagination.d.ts +8 -0
- package/dist/types/components/PersonCell.d.ts +6 -0
- package/dist/types/components/PhoneInput.d.ts +13 -0
- package/dist/types/components/PlanCard.d.ts +6 -0
- package/dist/types/components/Popover.d.ts +12 -0
- package/dist/types/components/PostalCodeInput.d.ts +12 -0
- package/dist/types/components/ProgressBar.d.ts +7 -0
- package/dist/types/components/PropertyActionGroup.d.ts +11 -0
- package/dist/types/components/PropertyCard.d.ts +15 -0
- package/dist/types/components/PropertyMedia.d.ts +15 -0
- package/dist/types/components/Questionnaire.d.ts +8 -0
- package/dist/types/components/RadioGroup.d.ts +7 -0
- package/dist/types/components/Range.d.ts +10 -0
- package/dist/types/components/ScoreGauge.d.ts +8 -0
- package/dist/types/components/ScrollArea.d.ts +9 -0
- package/dist/types/components/SectionHeader.d.ts +6 -0
- package/dist/types/components/Segmented.d.ts +10 -0
- package/dist/types/components/Select.d.ts +16 -0
- package/dist/types/components/SettingRow.d.ts +14 -0
- package/dist/types/components/SettingsSubnav.d.ts +12 -0
- package/dist/types/components/Skeleton.d.ts +6 -0
- package/dist/types/components/Slider.d.ts +9 -0
- package/dist/types/components/Snackbar.d.ts +6 -0
- package/dist/types/components/Spinner.d.ts +7 -0
- package/dist/types/components/SplitButton.d.ts +8 -0
- package/dist/types/components/Stat.d.ts +13 -0
- package/dist/types/components/StatusDot.d.ts +7 -0
- package/dist/types/components/Sticky.d.ts +15 -0
- package/dist/types/components/SwipeDeck.d.ts +18 -0
- package/dist/types/components/Switch.d.ts +10 -0
- package/dist/types/components/Table.d.ts +28 -0
- package/dist/types/components/Tabs.d.ts +7 -0
- package/dist/types/components/Textarea.d.ts +11 -0
- package/dist/types/components/Timeline.d.ts +18 -0
- package/dist/types/components/Toast.d.ts +20 -0
- package/dist/types/components/ToggleGroup.d.ts +7 -0
- package/dist/types/components/Tooltip.d.ts +9 -0
- package/dist/types/components/Trace.d.ts +11 -0
- package/dist/types/components/Track.d.ts +53 -0
- package/dist/types/components/UsageMeter.d.ts +12 -0
- package/dist/types/components/UserMenu.d.ts +11 -0
- package/dist/types/components/VisitSchedulePicker.d.ts +12 -0
- package/dist/types/components/VoiceRecorder.d.ts +13 -0
- package/dist/types/components/WizardStepper.d.ts +7 -0
- package/dist/types/components/WorkspaceSwitcher.d.ts +11 -0
- package/dist/types/components/providerIcons.d.ts +9 -0
- package/dist/types/hooks.d.ts +4 -0
- package/dist/types/icon.d.ts +14 -0
- package/dist/types/index.d.ts +114 -0
- package/dist/types/messages/en.d.ts +523 -0
- package/dist/types/overlay.d.ts +69 -0
- package/dist/types/primitives.d.ts +41 -0
- package/dist/types/theme.d.ts +37 -0
- package/package.json +109 -4
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { TextInput } from "react-native";
|
|
3
|
+
import type { TextInputProps } from "react-native";
|
|
4
|
+
import type { ComboboxCoreProps, ComboboxOption, ComboboxOptionAvatar } from "../_contracts/index";
|
|
5
|
+
import type { RefyContext } from "../theme";
|
|
6
|
+
export type { ComboboxOption, ComboboxOptionAvatar };
|
|
7
|
+
export interface ComboboxProps extends ComboboxCoreProps, Omit<TextInputProps, "value" | "defaultValue" | "onChange" | "style" | "placeholder"> {
|
|
8
|
+
style?: TextInputProps["style"];
|
|
9
|
+
}
|
|
10
|
+
/** Filtro e seções na ordem de aparição, iguais aos da web. */
|
|
11
|
+
export declare function comboboxSections(options: ComboboxOption[], query: string, filter?: ComboboxCoreProps["filter"]): {
|
|
12
|
+
filtered: ComboboxOption[];
|
|
13
|
+
sections: {
|
|
14
|
+
group: string;
|
|
15
|
+
items: ComboboxOption[];
|
|
16
|
+
}[];
|
|
17
|
+
};
|
|
18
|
+
/** Lista embutida no campo (Field.module.css `.options`). */
|
|
19
|
+
export declare function listboxStyle(t: RefyContext): {
|
|
20
|
+
maxHeight: number;
|
|
21
|
+
padding: number;
|
|
22
|
+
borderTopWidth: number;
|
|
23
|
+
borderTopColor: string;
|
|
24
|
+
};
|
|
25
|
+
export declare function EmptyRow({ children }: {
|
|
26
|
+
children: ReactNode;
|
|
27
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
/**
|
|
29
|
+
* Campo com sugestões. A lista abre dentro do mesmo contorno do campo e empurra o conteúdo
|
|
30
|
+
* abaixo, como na web. Filtro, destaque do trecho digitado e seções por `group` iguais.
|
|
31
|
+
*/
|
|
32
|
+
export declare const Combobox: import("react").ForwardRefExoticComponent<ComboboxProps & import("react").RefAttributes<TextInput>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { ConnectorCardCoreProps } from "../_contracts/index";
|
|
3
|
+
export interface ConnectorCardProps extends ConnectorCardCoreProps, Omit<ViewProps, "children"> {
|
|
4
|
+
}
|
|
5
|
+
/** Card de integração: logo, nome, status, descrição, meta e ações; `locked` troca ações por lockHint. */
|
|
6
|
+
export declare function ConnectorCard({ logo, name, status, description, meta, actions, locked, lockHint, style, ...rest }: ConnectorCardProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { ContextMenuCoreProps } from "../_contracts/index";
|
|
3
|
+
export interface ContextMenuProps extends ContextMenuCoreProps {
|
|
4
|
+
style?: StyleProp<ViewStyle>;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Menu de contexto. Na web abre no botão direito; no toque abre no toque longo, no ponto
|
|
8
|
+
* do dedo. Leitor de tela: a ação "Abrir menu" ancora o menu na própria área.
|
|
9
|
+
*/
|
|
10
|
+
export declare function ContextMenu({ children, entries, label, onSelect, style }: ContextMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { CoverflowCoreProps, CoverflowItem } from "../_contracts/index";
|
|
3
|
+
export type { CoverflowItem };
|
|
4
|
+
export interface CoverflowProps<T extends CoverflowItem = CoverflowItem> extends CoverflowCoreProps<T> {
|
|
5
|
+
/** Largura do cartão em pt (a web usa 16rem). Nunca passa da largura disponível menos 64. */
|
|
6
|
+
itemWidth?: number;
|
|
7
|
+
style?: StyleProp<ViewStyle>;
|
|
8
|
+
}
|
|
9
|
+
/** Índice depois de arrastar `dx` pt com cartões de `stride` pt, preso à lista. Mesma conta da web. */
|
|
10
|
+
export declare function coverflowTarget(index: number, dx: number, stride: number, count: number): number;
|
|
11
|
+
/** Navegação finita por conteúdo visual: toque, arrasto lateral ou setas. Sem autoplay. */
|
|
12
|
+
export declare function Coverflow<T extends CoverflowItem>({ items, renderItem, selectedId, defaultSelectedId, onSelectionChange, onActivate, label, disabled, emptyContent, itemWidth, style }: CoverflowProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { DangerZoneCoreProps, DangerZoneRowCoreProps } from "../_contracts/index";
|
|
3
|
+
export interface DangerZoneProps extends DangerZoneCoreProps, Omit<ViewProps, "children"> {
|
|
4
|
+
}
|
|
5
|
+
export interface DangerZoneRowProps extends DangerZoneRowCoreProps, Omit<ViewProps, "children"> {
|
|
6
|
+
}
|
|
7
|
+
/** Seção de ações destrutivas: borda tracejada em tom crítico. Cada linha só pede confirmação ao app. */
|
|
8
|
+
export declare function DangerZone({ title, children, style, ...rest }: DangerZoneProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
/** Linha de ação destrutiva: o que acontece, a consequência e o botão de perigo. */
|
|
10
|
+
export declare function DangerZoneRow({ title, description, actionLabel, onConfirm, disabled, style, ...rest }: DangerZoneRowProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { DatePickerCoreProps } from "../_contracts/index";
|
|
3
|
+
export interface DatePickerProps extends DatePickerCoreProps {
|
|
4
|
+
style?: StyleProp<ViewStyle>;
|
|
5
|
+
}
|
|
6
|
+
/** Campo de data: botão com a data escolhida que abre o Calendar num Popover, como na web. */
|
|
7
|
+
export declare function DatePicker({ label, value, defaultValue, onChange, min, max, disabled, style }: DatePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { DividerCoreProps, DividerOrientation, DividerSpacing } from "../_contracts/index";
|
|
3
|
+
export type { DividerOrientation, DividerSpacing };
|
|
4
|
+
export interface DividerProps extends DividerCoreProps, Omit<ViewProps, "children"> {
|
|
5
|
+
}
|
|
6
|
+
/** Separador entre blocos: linha horizontal (com rótulo central opcional) ou vertical. */
|
|
7
|
+
export declare function Divider({ orientation, label, spacing, style, ...rest }: DividerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { DrawerCoreProps, DrawerSide } from "../_contracts/index";
|
|
3
|
+
export type { DrawerSide };
|
|
4
|
+
export interface DrawerProps extends DrawerCoreProps {
|
|
5
|
+
/** Largura do painel lateral em pt. Padrão `--drawer-width` (320), até 90% da tela. */
|
|
6
|
+
width?: number;
|
|
7
|
+
/**
|
|
8
|
+
* Só no nativo: margens seguras do aparelho (entalhe, barra de gestos), vindas de
|
|
9
|
+
* react-native-safe-area-context no app. O pacote não traz essa dependência.
|
|
10
|
+
*/
|
|
11
|
+
insets?: {
|
|
12
|
+
top?: number;
|
|
13
|
+
bottom?: number;
|
|
14
|
+
left?: number;
|
|
15
|
+
right?: number;
|
|
16
|
+
};
|
|
17
|
+
style?: StyleProp<ViewStyle>;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Painel que desliza da lateral, de baixo ou ocupa a tela. Fecha no ✕, no toque no fundo, no
|
|
21
|
+
* voltar do Android e, no painel de baixo, ao arrastar o topo para baixo.
|
|
22
|
+
*/
|
|
23
|
+
export declare function Drawer({ open, modal, onOpenChange, side, title, footer, width, children, hideClose, insets, style }: DrawerProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { EmptyStateCoreProps } from "../_contracts/index";
|
|
3
|
+
export interface EmptyStateProps extends EmptyStateCoreProps, Omit<ViewProps, "children"> {
|
|
4
|
+
}
|
|
5
|
+
/** Estado vazio: ícone em quadro, título, mensagem e uma ação. */
|
|
6
|
+
export declare function EmptyState({ icon, title, message, action, bordered, style, ...rest }: EmptyStateProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { EventTimelineCoreProps, TimelineEventCore } from "../_contracts/index";
|
|
3
|
+
export type TimelineEvent = TimelineEventCore;
|
|
4
|
+
export interface EventTimelineProps extends EventTimelineCoreProps {
|
|
5
|
+
events: TimelineEvent[];
|
|
6
|
+
style?: StyleProp<ViewStyle>;
|
|
7
|
+
}
|
|
8
|
+
/** Ordena do mais novo ao mais antigo e agrupa por dia no fuso pedido, como a web. */
|
|
9
|
+
export declare function groupEvents(events: TimelineEvent[], timezone: string, byDate: boolean): [string, {
|
|
10
|
+
date: Date;
|
|
11
|
+
items: TimelineEvent[];
|
|
12
|
+
}][];
|
|
13
|
+
/** Histórico de atividades com separador por dia. Para marcos de uma jornada, use Timeline. */
|
|
14
|
+
export declare function EventTimeline({ title, context, events, locale, timezone, error, onRetry, emptyTitle, emptyMessage, density, showHeader, groupByDate, style }: EventTimelineProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export { EventTimeline as ActivityTimeline };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PressableProps, View as ViewType } from "react-native";
|
|
2
|
+
import type { FabCoreProps, FabSize, FabVariant } from "../_contracts/index";
|
|
3
|
+
export type { FabSize, FabVariant };
|
|
4
|
+
export interface FabProps extends FabCoreProps, Omit<PressableProps, "children" | "style"> {
|
|
5
|
+
style?: PressableProps["style"];
|
|
6
|
+
}
|
|
7
|
+
/** Botão de ação flutuante. Redondo; com `extended` e `label`, pílula com texto. Quem posiciona é o app. */
|
|
8
|
+
export declare const Fab: import("react").ForwardRefExoticComponent<FabProps & import("react").RefAttributes<ViewType>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { FabMenuAction, FabMenuCoreProps } from "../_contracts/index";
|
|
3
|
+
export type { FabMenuAction };
|
|
4
|
+
export interface FabMenuProps extends FabMenuCoreProps {
|
|
5
|
+
style?: StyleProp<ViewStyle>;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Botão flutuante que abre um Menu acima dele, com o fundo escurecido. O ícone + gira para
|
|
9
|
+
* virar ×. Quem posiciona o botão na tela é o app, como no Fab.
|
|
10
|
+
*/
|
|
11
|
+
export declare function FabMenu({ actions, label, open, defaultOpen, onOpenChange, onSelect, align, style }: FabMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
3
|
+
import type { RefyContext } from "../theme";
|
|
4
|
+
export declare function FieldLabel({ children, nativeID }: {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
nativeID?: string;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function FieldHelp({ children, error }: {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
error?: boolean;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function surfaceStyle(t: RefyContext, { focused, error, disabled }: {
|
|
13
|
+
focused: boolean;
|
|
14
|
+
error: boolean;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
}): StyleProp<ViewStyle>;
|
|
17
|
+
export declare function FieldShell({ label, labelId, hint, error, block, children }: {
|
|
18
|
+
label?: string;
|
|
19
|
+
labelId?: string;
|
|
20
|
+
hint?: string;
|
|
21
|
+
error?: string;
|
|
22
|
+
block: boolean;
|
|
23
|
+
children: ReactNode;
|
|
24
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { FileUploadCoreProps, FileUploadState } from "../_contracts/index";
|
|
3
|
+
export type { FileUploadState };
|
|
4
|
+
/** Arquivo escolhido no aparelho: o que expo-document-picker e afins devolvem. */
|
|
5
|
+
export interface NativeFile {
|
|
6
|
+
name: string;
|
|
7
|
+
size: number;
|
|
8
|
+
/** Tipo MIME. Com `image/*` e `uri`, a linha mostra a miniatura. */
|
|
9
|
+
type?: string;
|
|
10
|
+
uri?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface FileUploadProps extends FileUploadCoreProps {
|
|
13
|
+
files?: NativeFile[];
|
|
14
|
+
defaultFiles?: NativeFile[];
|
|
15
|
+
onFilesChange?: (files: NativeFile[]) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Só no nativo: abre o seletor do app (expo-document-picker, react-native-document-picker)
|
|
18
|
+
* e devolve os arquivos escolhidos. Sem ele, o botão "Escolher arquivo" não aparece.
|
|
19
|
+
*/
|
|
20
|
+
pickFiles?: (options: {
|
|
21
|
+
accept?: string;
|
|
22
|
+
multiple: boolean;
|
|
23
|
+
}) => Promise<NativeFile[]>;
|
|
24
|
+
style?: StyleProp<ViewStyle>;
|
|
25
|
+
}
|
|
26
|
+
/** Tipo pela extensão, igual à web: doc, docx, odt e pdf viram documento. */
|
|
27
|
+
export declare function fileKind(name: string): {
|
|
28
|
+
kind: "document" | "file";
|
|
29
|
+
label: string;
|
|
30
|
+
};
|
|
31
|
+
/** Mensagem de estado igual à da web. */
|
|
32
|
+
export declare function fileUploadStatus(state: FileUploadState, count: number, progress?: number): string;
|
|
33
|
+
/**
|
|
34
|
+
* Envio de arquivos. A lista fica com o app; o componente valida o tamanho, mostra miniatura,
|
|
35
|
+
* progresso e remoção. No celular não há arrastar e soltar: a escolha vem de `pickFiles`.
|
|
36
|
+
*/
|
|
37
|
+
export declare function FileUpload({ files, defaultFiles, onFilesChange, pickFiles, accept, multiple, maxSize, state, progress, errorMessage, disabled, label, hint, style }: FileUploadProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { GeoAreaPickerCoreProps, GeoNeighborhood } from "../_contracts/index";
|
|
3
|
+
export type { GeoNeighborhood };
|
|
4
|
+
export interface GeoAreaPickerProps extends GeoAreaPickerCoreProps {
|
|
5
|
+
style?: StyleProp<ViewStyle>;
|
|
6
|
+
}
|
|
7
|
+
/** Bairros no raio, incluídos e de fora, pelas mesmas regras da web (o principal sempre entra). */
|
|
8
|
+
export declare function geoAreaLists(neighborhoods: GeoNeighborhood[], baseId: string, radius: number, includedIds: string[]): {
|
|
9
|
+
extras: GeoNeighborhood[];
|
|
10
|
+
included: GeoNeighborhood[];
|
|
11
|
+
excluded: GeoNeighborhood[];
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Seleção geográfica que se resolve inteira por texto. O mapa é um espaço do app (`map`);
|
|
15
|
+
* raio, bairros alcançados e inclusão explícita ficam aqui.
|
|
16
|
+
*/
|
|
17
|
+
export declare function GeoAreaPicker({ neighborhoods, baseId, radius, defaultRadius, minRadius, maxRadius, radiusStep, onRadiusChange, includedIds, defaultIncludedIds, onIncludedIdsChange, map, mapLabel, error, style }: GeoAreaPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { View as ViewType } from "react-native";
|
|
2
|
+
import type { ButtonProps } from "./Button";
|
|
3
|
+
export type GoogleButtonProps = Omit<ButtonProps, "variant" | "leadingIcon">;
|
|
4
|
+
/** Botão "Continuar com Google" nas cores que a marca do Google exige, lidas dos tokens --auth-control-*. */
|
|
5
|
+
export declare const GoogleButton: import("react").ForwardRefExoticComponent<GoogleButtonProps & import("react").RefAttributes<ViewType>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { GuidedTourAction, GuidedTourAnchorCoreProps, GuidedTourCoreProps, GuidedTourStep } from "../_contracts/index";
|
|
3
|
+
export type { GuidedTourAction, GuidedTourStep };
|
|
4
|
+
export interface GuidedTourProps extends GuidedTourCoreProps {
|
|
5
|
+
}
|
|
6
|
+
export interface GuidedTourAnchorProps extends GuidedTourAnchorCoreProps {
|
|
7
|
+
style?: StyleProp<ViewStyle>;
|
|
8
|
+
}
|
|
9
|
+
/** Estado e navegação do tour; GuidedTourAnchor marca o controle real de cada passo. */
|
|
10
|
+
export declare function GuidedTour({ steps, open, defaultOpen, onOpenChange, currentStep, defaultStep, onStepChange, onComplete, children }: GuidedTourProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
/**
|
|
12
|
+
* Prende um passo do tour ao controle real. O fundo escurece em volta do controle e o cartão
|
|
13
|
+
* abre ao lado dele; tocar fora, o voltar do Android ou o escape do VoiceOver fecham o tour.
|
|
14
|
+
*/
|
|
15
|
+
export declare function GuidedTourAnchor({ stepId, children, block, style }: GuidedTourAnchorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { HelpFieldCoreProps } from "../_contracts/index";
|
|
3
|
+
export interface HelpFieldProps extends HelpFieldCoreProps {
|
|
4
|
+
style?: StyleProp<ViewStyle>;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Linha de formulário para campo técnico: rótulo simples e um ícone de ajuda. Sem hover no
|
|
8
|
+
* toque, o ícone abre um Popover com a explicação e o "Saber mais". O campo recebe o texto de
|
|
9
|
+
* ajuda como `accessibilityHint`.
|
|
10
|
+
*/
|
|
11
|
+
export declare function HelpField({ label, helpText, children, onLearnMore, learnMoreLabel, side, style }: HelpFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { HelpMenuCoreProps } from "../_contracts/index";
|
|
3
|
+
export interface HelpMenuProps extends HelpMenuCoreProps {
|
|
4
|
+
style?: StyleProp<ViewStyle>;
|
|
5
|
+
}
|
|
6
|
+
/** Botão "?" que abre o menu de ajuda, alinhado ao fim, como o sino de notificações. */
|
|
7
|
+
export declare function HelpMenu({ entries, onSelect, label, style }: HelpMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PressableProps, View as ViewType } from "react-native";
|
|
2
|
+
import type { IconButtonCoreProps, IconButtonSize, IconButtonVariant } from "../_contracts/index";
|
|
3
|
+
export type { IconButtonSize, IconButtonVariant };
|
|
4
|
+
export interface IconButtonProps extends IconButtonCoreProps, Omit<PressableProps, "children" | "style"> {
|
|
5
|
+
/** Obrigatório: o botão não tem texto visível. É o `aria-label` da web. */
|
|
6
|
+
accessibilityLabel: string;
|
|
7
|
+
style?: PressableProps["style"];
|
|
8
|
+
}
|
|
9
|
+
/** Botão só-ícone. O nome acessível é obrigatório. */
|
|
10
|
+
export declare const IconButton: import("react").ForwardRefExoticComponent<IconButtonProps & import("react").RefAttributes<ViewType>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TextInput } from "react-native";
|
|
2
|
+
import type { TextInputProps } from "react-native";
|
|
3
|
+
import type { InputCoreProps } from "../_contracts/index";
|
|
4
|
+
export interface InputProps extends InputCoreProps, Omit<TextInputProps, "style"> {
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
style?: TextInputProps["style"];
|
|
7
|
+
}
|
|
8
|
+
/** Campo de texto. Rótulo mono em caixa alta; foco na cor da marca. */
|
|
9
|
+
export declare const Input: import("react").ForwardRefExoticComponent<InputProps & import("react").RefAttributes<TextInput>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { IntentComposerCoreProps, IntentComposerState, IntentFilterGroup, IntentFilterOption } from "../_contracts/index";
|
|
3
|
+
import type { VoiceRecorderProps } from "./VoiceRecorder";
|
|
4
|
+
export type { IntentComposerState, IntentFilterGroup, IntentFilterOption };
|
|
5
|
+
export interface IntentComposerProps extends IntentComposerCoreProps {
|
|
6
|
+
voiceRecorderProps?: VoiceRecorderProps;
|
|
7
|
+
style?: StyleProp<ViewStyle>;
|
|
8
|
+
}
|
|
9
|
+
/** Próximo valor dos filtros ao tocar numa opção: troca no `single`, liga ou desliga no `multiple`. */
|
|
10
|
+
export declare function nextIntentFilters(values: Record<string, string[]>, group: IntentFilterGroup, option: string): {
|
|
11
|
+
[x: string]: string[];
|
|
12
|
+
};
|
|
13
|
+
/** Uma superfície para contextualizar, escrever e enviar um pedido: filtros, texto, voz, estados e ações. */
|
|
14
|
+
export declare function IntentComposer({ state, filters, filterValues, defaultFilterValues, onFilterValuesChange, value, defaultValue, onChange, label, placeholder, examples, submitLabel, understoodSummary, errorMessage, onSubmit, onVoiceStart, onEditRequest, onEditDetails, voiceRecorderProps, leadingActions, submitIcon, voiceButtonVariant, actionSize, showVoiceControl, processingContent, style, }: IntentComposerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { ItemCoreProps } from "../_contracts/index";
|
|
3
|
+
export interface ItemProps extends ItemCoreProps, Omit<ViewProps, "children"> {
|
|
4
|
+
}
|
|
5
|
+
/** Linha de item com mídia, título, descrição e ações. `onClick` mantém o nome do contrato. */
|
|
6
|
+
export declare function Item({ title, description, media, actions, onClick, selected, variant, style, ...rest }: ItemProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { KanbanBoardCoreProps, KanbanColumnItem } from "../_contracts/index";
|
|
3
|
+
export type { KanbanColumnItem };
|
|
4
|
+
export interface KanbanBoardProps extends KanbanBoardCoreProps {
|
|
5
|
+
style?: StyleProp<ViewStyle>;
|
|
6
|
+
}
|
|
7
|
+
/** Motivo de bloqueio da mudança de etapa (transição proibida ou WIP cheio), igual à web. */
|
|
8
|
+
export declare function kanbanBlocked(columns: KanbanColumnItem[], from: string, to: string, wipLimit?: number, allowed?: Record<string, readonly string[]>): string | undefined;
|
|
9
|
+
/** Move o card antes de `beforeId` (ou para o fim) e devolve as colunas novas. */
|
|
10
|
+
export declare function kanbanMove(columns: KanbanColumnItem[], id: string, from: string, to: string, beforeId?: string): KanbanColumnItem[];
|
|
11
|
+
/**
|
|
12
|
+
* Quadro de etapas com as mesmas regras da web (WIP, transições permitidas). No toque o card
|
|
13
|
+
* muda de etapa pelo menu ⋯ e pelas ações do leitor de tela; não há arrastar.
|
|
14
|
+
*/
|
|
15
|
+
export declare function KanbanBoard({ columns, onColumnsChange, onCardClick, wipLimit, allowedTransitions, toolbar, filter, onAddCard, columnActions, ariaLabel, instructions, style }: KanbanBoardProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { KanbanCardCoreProps, KanbanCardItem } from "../_contracts/index";
|
|
3
|
+
import type { CardProps } from "./Card";
|
|
4
|
+
export type { KanbanCardItem };
|
|
5
|
+
export interface KanbanCardProps extends KanbanCardCoreProps, Omit<CardProps, "children" | "title"> {
|
|
6
|
+
}
|
|
7
|
+
/** Cartão de uma coluna do quadro. O mesmo cartão serve à coluna e à prévia do arraste. */
|
|
8
|
+
export declare function KanbanCard({ item, onOpen, dragHandle, actions, elevation, ...rest }: KanbanCardProps & Omit<ViewProps, "children">): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { TextProps } from "react-native";
|
|
2
|
+
export type MarkerProps = TextProps;
|
|
3
|
+
/** Trecho realçado dentro de um texto, como o <mark> da web. Use dentro de um <Text>. */
|
|
4
|
+
export declare function Marker({ style, ...rest }: MarkerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { Matrix2x2CoreProps, MatrixPoint } from "../_contracts/index";
|
|
3
|
+
export type { MatrixPoint };
|
|
4
|
+
export interface Matrix2x2Props extends Matrix2x2CoreProps {
|
|
5
|
+
/** Só no nativo: altura da área. Padrão 460, a mesma altura mínima da web. */
|
|
6
|
+
height?: number;
|
|
7
|
+
style?: StyleProp<ViewStyle>;
|
|
8
|
+
}
|
|
9
|
+
/** Percentual de --critical na cor do ponto `index`: 100 no primeiro, 0 no último, como a web. */
|
|
10
|
+
export declare function priorityMix(index: number, count: number): number;
|
|
11
|
+
/**
|
|
12
|
+
* Matriz impacto × esforço com pontos numerados por prioridade. A cor vai de crítico (1º) a
|
|
13
|
+
* informação (último). Tocar num ponto seleciona; tocar de novo desmarca.
|
|
14
|
+
*/
|
|
15
|
+
export declare function Matrix2x2({ points, xLabel, yLabel, quadrants, legend, selectedId, defaultSelectedId, onPointClick, height, style }: Matrix2x2Props): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { MenuCoreProps, MenuEntry } from "../_contracts/index";
|
|
3
|
+
export type { MenuEntry };
|
|
4
|
+
export interface MenuProps extends MenuCoreProps {
|
|
5
|
+
/** Só no nativo: estilo da caixa que envolve o gatilho. */
|
|
6
|
+
style?: StyleProp<ViewStyle>;
|
|
7
|
+
/** Só no nativo: cor do fundo atrás do menu (o FabMenu escurece a tela). */
|
|
8
|
+
scrim?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Menu de ações ancorado ao gatilho. Controlado por `open`/`onOpenChange`, como na web.
|
|
12
|
+
* Fecha ao escolher, no toque fora, no voltar do Android e no escape do VoiceOver.
|
|
13
|
+
* Atalho de teclado (`shortcut`) não aparece no toque.
|
|
14
|
+
*/
|
|
15
|
+
export declare function Menu({ anchorPoint, matchWidth, open, onOpenChange, entries, onSelect, children, align, side, ariaLabel, style, scrim }: MenuProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { StyleProp, ViewProps, ViewStyle } from "react-native";
|
|
2
|
+
import type { MessageCoreProps, MessageScrollerCoreProps } from "../_contracts/index";
|
|
3
|
+
export interface MessageProps extends MessageCoreProps, Omit<ViewProps, "children"> {
|
|
4
|
+
}
|
|
5
|
+
/** Avatar, autoria e balão numa linha de conversa. `end` espelha para quem enviou. */
|
|
6
|
+
export declare function Message({ author, initials, time, side, children, style, ...rest }: MessageProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export interface MessageScrollerProps extends MessageScrollerCoreProps {
|
|
8
|
+
style?: StyleProp<ViewStyle>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Histórico de conversa que acompanha a última mensagem. Quem rola para cima para de ser
|
|
12
|
+
* levado para baixo e ganha o botão "Ir para mensagens recentes", como na web.
|
|
13
|
+
*/
|
|
14
|
+
export declare function MessageScroller({ children, label, maxHeight, style }: MessageScrollerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { ModalCoreProps } from "../_contracts/index";
|
|
3
|
+
export interface ModalProps extends ModalCoreProps, Omit<ViewProps, "children" | "role"> {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Modal centralizado com scrim. Fecha no botão voltar do Android (onRequestClose), no toque
|
|
7
|
+
* fora e no ✕. O foco preso da web vem do próprio Modal do RN (accessibilityViewIsModal).
|
|
8
|
+
*/
|
|
9
|
+
export declare function Modal({ role, hideCloseButton, closeOnBackdrop, ariaDescribedBy, open, onClose, title, ariaLabel, footer, width, children, style, ...rest }: ModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TextInput } from "react-native";
|
|
2
|
+
import type { TextInputProps } from "react-native";
|
|
3
|
+
import type { MultiselectCoreProps, MultiselectOption } from "../_contracts/index";
|
|
4
|
+
export type { MultiselectOption };
|
|
5
|
+
export interface MultiselectProps extends MultiselectCoreProps, Omit<TextInputProps, "value" | "defaultValue" | "onChange" | "style" | "placeholder"> {
|
|
6
|
+
style?: TextInputProps["style"];
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Quantos chips inteiros cabem na área, contando o "+N" quando sobra algum. Mesma conta da web
|
|
10
|
+
* (Multiselect.tsx, `measure`), com a largura do contador medida uma vez.
|
|
11
|
+
*/
|
|
12
|
+
export declare function visibleChipCount(widths: number[], gap: number, area: number, counter: number, max?: number): number;
|
|
13
|
+
/**
|
|
14
|
+
* Seleção de várias opções com chips dentro do campo. Mostra os chips que cabem inteiros e
|
|
15
|
+
* resume o resto num "+N", como na web. A lista abre dentro do campo (`inline`) ou ancorada
|
|
16
|
+
* embaixo dele (`overlay`).
|
|
17
|
+
*/
|
|
18
|
+
export declare const Multiselect: import("react").ForwardRefExoticComponent<MultiselectProps & import("react").RefAttributes<TextInput>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { View } from "react-native";
|
|
2
|
+
import type { PressableProps } from "react-native";
|
|
3
|
+
import type { NavCardCoreProps } from "../_contracts/index";
|
|
4
|
+
export interface NavCardProps extends NavCardCoreProps, Omit<PressableProps, "children" | "style" | "disabled"> {
|
|
5
|
+
style?: PressableProps["style"];
|
|
6
|
+
}
|
|
7
|
+
/** Cartão que leva a outra tela: título, descrição, meta à direita e a seta. */
|
|
8
|
+
export declare const NavCard: import("react").ForwardRefExoticComponent<NavCardProps & import("react").RefAttributes<View>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { NotificationBellCoreProps, NotificationItem } from "../_contracts/index";
|
|
3
|
+
export type { NotificationItem };
|
|
4
|
+
export interface NotificationBellProps extends NotificationBellCoreProps {
|
|
5
|
+
style?: StyleProp<ViewStyle>;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Sino com o número de não lidas e o painel das notificações. O estado é do app: o componente
|
|
9
|
+
* só mostra `items` e avisa toque e "Marcar todas como lidas", como na web.
|
|
10
|
+
*/
|
|
11
|
+
export declare function NotificationBell({ items, onItemClick, onMarkAllRead, title, emptyMessage, style }: NotificationBellProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { View as ViewType } from "react-native";
|
|
2
|
+
import type { OAuthButtonCoreProps, OAuthProvider } from "../_contracts/index";
|
|
3
|
+
import type { ButtonProps } from "./Button";
|
|
4
|
+
export type { OAuthProvider };
|
|
5
|
+
export interface OAuthButtonProps extends OAuthButtonCoreProps, Omit<ButtonProps, "variant" | "leadingIcon" | "provider"> {
|
|
6
|
+
}
|
|
7
|
+
/** Composição de Button para entrar com um provedor. Não abre janelas nem guarda credenciais. */
|
|
8
|
+
export declare const OAuthButton: import("react").ForwardRefExoticComponent<OAuthButtonProps & import("react").RefAttributes<ViewType>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { View } from "react-native";
|
|
2
|
+
import type { ViewProps } from "react-native";
|
|
3
|
+
import type { OtpCoreProps } from "../_contracts/index";
|
|
4
|
+
export interface OtpProps extends OtpCoreProps, Omit<ViewProps, "children"> {
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Código de verificação, um dígito por campo. Digitar avança; apagar num campo vazio volta e
|
|
8
|
+
* limpa o anterior; colar ou o preenchimento automático do SMS distribui o código inteiro.
|
|
9
|
+
*/
|
|
10
|
+
export declare const Otp: import("react").ForwardRefExoticComponent<OtpProps & import("react").RefAttributes<View>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { PageHeaderCoreProps } from "../_contracts/index";
|
|
3
|
+
export interface PageHeaderProps extends PageHeaderCoreProps, Omit<ViewProps, "children"> {
|
|
4
|
+
}
|
|
5
|
+
/** Cabeçalho de página: eyebrow mono, título display, lead e ações à direita. */
|
|
6
|
+
export declare function PageHeader({ eyebrow, title, lead, actions, breadcrumb, style, ...rest }: PageHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { PaginationCoreProps } from "../_contracts/index";
|
|
3
|
+
export interface PaginationProps extends PaginationCoreProps, Omit<ViewProps, "children"> {
|
|
4
|
+
}
|
|
5
|
+
/** Mesma sequência da web: 1 … vizinhos da atual … última. */
|
|
6
|
+
export declare function paginationPages(page: number, pageCount: number, siblingCount: number): Array<number | "…">;
|
|
7
|
+
/** Paginação numérica em mono; a página atual fica preenchida na cor da tinta. */
|
|
8
|
+
export declare function Pagination({ page, pageCount, onPageChange, siblingCount, style, ...rest }: PaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { PersonCellCoreProps } from "../_contracts/index";
|
|
3
|
+
export interface PersonCellProps extends PersonCellCoreProps, Omit<ViewProps, "children"> {
|
|
4
|
+
}
|
|
5
|
+
/** Pessoa numa linha de tabela ou lista: avatar, nome com etiqueta e uma linha de apoio. */
|
|
6
|
+
export declare function PersonCell({ avatar, name, tag, secondary, size, style, ...rest }: PersonCellProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TextInput } from "react-native";
|
|
2
|
+
import type { TextInputProps } from "react-native";
|
|
3
|
+
import type { PhoneCountry, PhoneInputCoreProps } from "../_contracts/index";
|
|
4
|
+
export type { PhoneCountry };
|
|
5
|
+
/** Cópia da lista da web; o teste de paridade compara as duas. */
|
|
6
|
+
export declare const phoneCountries: PhoneCountry[];
|
|
7
|
+
export declare function formatBrazilianPhone(value: string): string;
|
|
8
|
+
export interface PhoneInputProps extends PhoneInputCoreProps, Omit<TextInputProps, "style" | "keyboardType"> {
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
style?: TextInputProps["style"];
|
|
11
|
+
}
|
|
12
|
+
/** Telefone com país e código internacional no mesmo campo. No Brasil, formata (31) 99999-9999 enquanto digita. */
|
|
13
|
+
export declare const PhoneInput: import("react").ForwardRefExoticComponent<PhoneInputProps & import("react").RefAttributes<TextInput>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { PlanCardCoreProps } from "../_contracts/index";
|
|
3
|
+
export interface PlanCardProps extends PlanCardCoreProps, Omit<ViewProps, "children"> {
|
|
4
|
+
}
|
|
5
|
+
/** Cartão de plano: nome, preço, CTA e lista de recursos. `current` trava o CTA; `highlighted` destaca o recomendado. */
|
|
6
|
+
export declare function PlanCard({ name, description, price, period, priceNote, features, checkIcon, cta, ctaPosition, current, currentLabel, highlighted, highlightLabel, style, ...rest }: PlanCardProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { PopoverAlign, PopoverCoreProps, PopoverSide } from "../_contracts/index";
|
|
3
|
+
export type { PopoverAlign, PopoverSide };
|
|
4
|
+
export interface PopoverProps extends PopoverCoreProps {
|
|
5
|
+
/** Só no nativo: estilo da caixa que envolve o gatilho. */
|
|
6
|
+
style?: StyleProp<ViewStyle>;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Painel interativo ancorado ao gatilho (filtros, formulário curto). Controlado, como na web.
|
|
10
|
+
* Fecha no toque fora, no voltar do Android e no escape do VoiceOver.
|
|
11
|
+
*/
|
|
12
|
+
export declare function Popover({ open, onOpenChange, content, children, side, align, label, style }: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { StyleProp, TextInputProps, ViewStyle } from "react-native";
|
|
2
|
+
import type { PostalCodeAddress, PostalCodeInputCoreProps } from "../_contracts/index";
|
|
3
|
+
export type { PostalCodeAddress };
|
|
4
|
+
export interface PostalCodeInputProps extends PostalCodeInputCoreProps {
|
|
5
|
+
/** Recebe o CEP já com máscara 00000-000. */
|
|
6
|
+
onChangeText: (value: string) => void;
|
|
7
|
+
onBlur?: TextInputProps["onBlur"];
|
|
8
|
+
style?: StyleProp<ViewStyle>;
|
|
9
|
+
}
|
|
10
|
+
export declare const maskPostalCode: (value: string) => string;
|
|
11
|
+
/** Consulta um CEP (a busca vem do app, em `lookup`) e devolve o endereço ao formulário. */
|
|
12
|
+
export declare function PostalCodeInput({ value, onChangeText, lookup, onAddressFound, error, disabled, onBlur, style }: PostalCodeInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { ProgressBarCoreProps, ProgressTone } from "../_contracts/index";
|
|
3
|
+
export type { ProgressTone };
|
|
4
|
+
export interface ProgressBarProps extends ProgressBarCoreProps, ViewProps {
|
|
5
|
+
}
|
|
6
|
+
/** Barra de progresso. Indeterminada desliza em loop; com movimento reduzido fica a meia opacidade. */
|
|
7
|
+
export declare function ProgressBar({ value, tone, size, indeterminate, style, ...rest }: ProgressBarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { PropertyAction, PropertyActionGroupCoreProps, PropertyActionGroupState } from "../_contracts/index";
|
|
3
|
+
export type { PropertyAction, PropertyActionGroupState };
|
|
4
|
+
export interface PropertyActionGroupProps extends PropertyActionGroupCoreProps {
|
|
5
|
+
style?: StyleProp<ViewStyle>;
|
|
6
|
+
}
|
|
7
|
+
export declare const decisionLabels: Record<PropertyAction, string>;
|
|
8
|
+
/** Mensagem de estado igual à da web. */
|
|
9
|
+
export declare function propertyActionMessage(state: PropertyActionGroupState, activeAction: PropertyAction | undefined, labels: Record<PropertyAction, string>): string;
|
|
10
|
+
/** Decisões sobre um item (descartar, salvar, selecionar). Empilha em 360 pt ou menos, como a web. */
|
|
11
|
+
export declare function PropertyActionGroup({ state, activeAction, onAction, orientation, disabledActions, statusMessage, labels: overrides, style }: PropertyActionGroupProps): import("react/jsx-runtime").JSX.Element;
|