@refy-design/mobile 0.0.0-stage → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +61 -2
- package/dist/index.js +10298 -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 +12 -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 +83 -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 +422 -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 +108 -4
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { PropertyCardBadge, PropertyCardCoreProps, PropertyCardFact, PropertyCardLayout } from "../_contracts/index";
|
|
3
|
+
import type { PropertyActionGroupProps } from "./PropertyActionGroup";
|
|
4
|
+
import type { PropertyMediaProps } from "./PropertyMedia";
|
|
5
|
+
export type { PropertyCardBadge, PropertyCardFact, PropertyCardLayout };
|
|
6
|
+
export interface PropertyCardProps extends PropertyCardCoreProps {
|
|
7
|
+
mediaProps?: Omit<PropertyMediaProps, "items">;
|
|
8
|
+
actions?: PropertyActionGroupProps | false;
|
|
9
|
+
style?: StyleProp<ViewStyle>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Cartão com galeria, título, valor, fatos e decisões. O `layout` muda a composição, nunca
|
|
13
|
+
* duplica mídia ou ações. Até 768 pt de largura `list` empilha como `grid`, igual à web.
|
|
14
|
+
*/
|
|
15
|
+
export declare function PropertyCard({ title, subtitle, value, valueSuffix, address, price, priceSuffix, media, mediaProps, layout, matchScore, badges, facts, summary, actions, headerAction, detailsAction, style }: PropertyCardProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { PropertyMediaCoreProps, PropertyMediaItem } from "../_contracts/index";
|
|
3
|
+
export type { PropertyMediaItem };
|
|
4
|
+
export interface PropertyMediaProps extends PropertyMediaCoreProps {
|
|
5
|
+
/** Só no nativo: largura ÷ altura. Na web é `aspectRatio` do CSS ("4 / 3"). */
|
|
6
|
+
aspectRatio?: number;
|
|
7
|
+
style?: StyleProp<ViewStyle>;
|
|
8
|
+
}
|
|
9
|
+
/** Índice seguinte em volta, igual à web: passa do último volta ao primeiro. */
|
|
10
|
+
export declare function wrapIndex(next: number, length: number): number;
|
|
11
|
+
/**
|
|
12
|
+
* Galeria de fotos com setas, pontos e contador "Foto X de N". Carregando mostra o esqueleto;
|
|
13
|
+
* se a foto falha, um aviso com "Tentar novamente". A foto entra deslizando do lado escolhido.
|
|
14
|
+
*/
|
|
15
|
+
export declare function PropertyMedia({ items, index, defaultIndex, onIndexChange, aspectRatio, fit, loading, errorMessage, onRetry, style }: PropertyMediaProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { Question, QuestionnaireCoreProps } from "../_contracts/index";
|
|
3
|
+
export type { Question };
|
|
4
|
+
export interface QuestionnaireProps extends QuestionnaireCoreProps {
|
|
5
|
+
style?: StyleProp<ViewStyle>;
|
|
6
|
+
}
|
|
7
|
+
/** Uma pergunta por vez, com progresso, obrigatoriedade e revisão depois do envio. Mesmo fluxo da web. */
|
|
8
|
+
export declare function Questionnaire({ questions, onSubmit, style }: QuestionnaireProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { RadioGroupCoreProps, RadioOption } from "../_contracts/index";
|
|
3
|
+
export type { RadioOption };
|
|
4
|
+
export interface RadioGroupProps extends RadioGroupCoreProps, Omit<ViewProps, "children"> {
|
|
5
|
+
}
|
|
6
|
+
/** Escolha única: cada opção é uma linha tocável com borda, que acende na selecionada. */
|
|
7
|
+
export declare function RadioGroup({ options, value, defaultValue, onChange, label, style, ...rest }: RadioGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { RangeCoreProps, RangeValue } from "../_contracts/index";
|
|
3
|
+
export type { RangeValue };
|
|
4
|
+
export interface RangeProps extends RangeCoreProps, Omit<ViewProps, "children"> {
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Intervalo com dois controles. Tocar na trilha leva o controle mais próximo ao ponto; o mínimo
|
|
8
|
+
* nunca passa do máximo. Cada controle é ajustável pelo leitor de tela, um passo por gesto.
|
|
9
|
+
*/
|
|
10
|
+
export declare function Range({ min, max, step, value, defaultValue, onChange, label, formatValue, showValue, fixedMinimum, ticks, histogram, disabled, style, ...rest }: RangeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { ScoreBand, ScoreGaugeCoreProps, ScoreGaugeSize } from "../_contracts/index";
|
|
3
|
+
export type { ScoreBand, ScoreGaugeSize };
|
|
4
|
+
export interface ScoreGaugeProps extends ScoreGaugeCoreProps, Omit<ViewProps, "children"> {
|
|
5
|
+
}
|
|
6
|
+
export declare function scoreBand(value: number, okAt?: number, warnAt?: number): ScoreBand;
|
|
7
|
+
/** Nota de 0 a 100 num anel colorido pela faixa; o arco cresce até o valor ao aparecer. */
|
|
8
|
+
export declare function ScoreGauge({ value, label, size, okAt, warnAt, formatValue, style, accessibilityLabel, ...rest }: ScoreGaugeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ScrollView } from "react-native";
|
|
2
|
+
import type { DimensionValue, ScrollViewProps } from "react-native";
|
|
3
|
+
import type { ScrollAreaCoreProps } from "../_contracts/index";
|
|
4
|
+
export interface ScrollAreaProps extends ScrollAreaCoreProps, ScrollViewProps {
|
|
5
|
+
}
|
|
6
|
+
/** A web aceita qualquer comprimento CSS; o RN só entende número e porcentagem. "240px" vira 240. */
|
|
7
|
+
export declare function toDimension(value: number | string): DimensionValue | undefined;
|
|
8
|
+
/** Área rolável com altura máxima, padrão 240 como na web. */
|
|
9
|
+
export declare const ScrollArea: import("react").ForwardRefExoticComponent<ScrollAreaProps & import("react").RefAttributes<ScrollView>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { SectionHeaderCoreProps } from "../_contracts/index";
|
|
3
|
+
export interface SectionHeaderProps extends SectionHeaderCoreProps, Omit<ViewProps, "children"> {
|
|
4
|
+
}
|
|
5
|
+
/** Cabeçalho de seção: título, contador, ação à direita e descrição. `rule` é a versão compacta com régua. */
|
|
6
|
+
export declare function SectionHeader({ title, sub, count, action, rule, style, ...rest }: SectionHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { SegmentedCoreProps, SegmentedOption } from "../_contracts/index";
|
|
3
|
+
export type { SegmentedOption };
|
|
4
|
+
export interface SegmentedProps extends SegmentedCoreProps, Omit<ViewProps, "children"> {
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Seleção única em pílula. Semântica de radiogroup; cada segmento é radio. Sem tooltip no
|
|
8
|
+
* toque: em iconOnly o rótulo textual vira só o nome acessível.
|
|
9
|
+
*/
|
|
10
|
+
export declare function Segmented({ options, value, defaultValue, onChange, label, disabled, sliding, iconOnly, style, ...rest }: SegmentedProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { SelectCoreProps } from "../_contracts/index";
|
|
3
|
+
export interface SelectOption {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface SelectProps extends SelectCoreProps, Omit<ViewProps, "children"> {
|
|
9
|
+
options: SelectOption[];
|
|
10
|
+
value?: string;
|
|
11
|
+
onValueChange?: (value: string) => void;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/** Seleção única. Abre uma lista em folha modal no lugar do popup do sistema. */
|
|
16
|
+
export declare function Select({ label, hint, error, block, options, value, onValueChange, placeholder, disabled, style, ...rest }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { PressableProps, SwitchProps, ViewProps } from "react-native";
|
|
2
|
+
import type { SettingRowCoreProps, SettingRowGroupCoreProps } from "../_contracts/index";
|
|
3
|
+
export interface SettingRowProps extends SettingRowCoreProps, Omit<ViewProps, "children"> {
|
|
4
|
+
/** Linha clicável; no web é onClick/href. */
|
|
5
|
+
onPress?: PressableProps["onPress"];
|
|
6
|
+
/** Switch nativo no lugar das ações, como `switchProps` na web. */
|
|
7
|
+
switchProps?: Omit<SwitchProps, "accessibilityLabel">;
|
|
8
|
+
}
|
|
9
|
+
export interface SettingRowGroupProps extends SettingRowGroupCoreProps, Omit<ViewProps, "children"> {
|
|
10
|
+
}
|
|
11
|
+
/** Linha de lista e configuração: leading, título, descrição, meta e ações, chevron ou switch. */
|
|
12
|
+
export declare function SettingRow({ title, description, meta, leading, leadingFrame, actions, disabled, showChevron, onPress, switchProps, style, ...rest }: SettingRowProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
/** Lista de SettingRow com divisor entre itens. */
|
|
14
|
+
export declare function SettingRowGroup({ children, "aria-label": label, style, ...rest }: SettingRowGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { SettingsSubnavCoreProps, SettingsSubnavGroup, SettingsSubnavItem } from "../_contracts/index";
|
|
3
|
+
export type { SettingsSubnavGroup, SettingsSubnavItem };
|
|
4
|
+
export interface SettingsSubnavProps extends SettingsSubnavCoreProps {
|
|
5
|
+
style?: StyleProp<ViewStyle>;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Menu secundário das subpáginas de um mesmo assunto (Configurações → Conta, Geral, Time).
|
|
9
|
+
* O item de `activeHref` fica marcado; o toque chama `onNavigate`, e o app navega.
|
|
10
|
+
* Na web cada item é um link real (`renderLink`); no nativo não há href a seguir.
|
|
11
|
+
*/
|
|
12
|
+
export declare function SettingsSubnav({ items, groups, activeHref, label, onNavigate, style }: SettingsSubnavProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { SkeletonCoreProps } from "../_contracts/index";
|
|
3
|
+
export interface SkeletonProps extends SkeletonCoreProps, Omit<ViewProps, "children"> {
|
|
4
|
+
}
|
|
5
|
+
/** Placeholder com brilho correndo enquanto o conteúdo carrega. Fica parado com movimento reduzido. */
|
|
6
|
+
export declare function Skeleton({ width, height, circle, style, ...rest }: SkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { SliderCoreProps } from "../_contracts/index";
|
|
3
|
+
export interface SliderProps extends SliderCoreProps, Omit<ViewProps, "children"> {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Controle contínuo arrastável. Tocar na trilha leva o controle ao ponto; arrastar segue o dedo.
|
|
7
|
+
* Com leitor de tela, deslizar para cima ou para baixo anda um passo.
|
|
8
|
+
*/
|
|
9
|
+
export declare function Slider({ min, max, step, value, defaultValue, onChange, label, hideLabel, formatValue, showValue: showValueProp, ticks, marks, disabled, style, ...rest }: SliderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { SnackbarCoreProps } from "../_contracts/index";
|
|
3
|
+
export interface SnackbarProps extends SnackbarCoreProps, Omit<ViewProps, "children"> {
|
|
4
|
+
}
|
|
5
|
+
/** Aviso de uma linha com ação ("Desfazer"). Só apresentação: quem posiciona é o app, ou o Toast. */
|
|
6
|
+
export declare function Snackbar({ children, action, style, ...rest }: SnackbarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
export interface SpinnerProps extends ViewProps {
|
|
3
|
+
/** Nome lido pelo leitor de tela. Padrão "Carregando". */
|
|
4
|
+
accessibilityLabel?: string;
|
|
5
|
+
}
|
|
6
|
+
/** Indicador de carregamento: anel com o topo na cor da marca, uma volta a cada 800 ms. */
|
|
7
|
+
export declare function Spinner({ accessibilityLabel, style, ...rest }: SpinnerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { SplitButtonCoreProps, SplitButtonOption, SplitButtonVariant } from "../_contracts/index";
|
|
3
|
+
export type { SplitButtonOption, SplitButtonVariant };
|
|
4
|
+
export interface SplitButtonProps extends SplitButtonCoreProps {
|
|
5
|
+
style?: StyleProp<ViewStyle>;
|
|
6
|
+
}
|
|
7
|
+
/** Botão com menu de variações: a opção escolhida vira a ação do botão principal. Button + Menu, como na web. */
|
|
8
|
+
export declare function SplitButton({ label, variant, menuAlign, leadingIcon, onClick, onSelect, options, size, disabled, loading, loadingLabel, open, defaultOpen, onOpenChange, defaultOptionId, style }: SplitButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { StatCoreProps, StatDelta, StatDeltaSentiment, StatGroupCoreProps, StatSize, StatTrend } from "../_contracts/index";
|
|
3
|
+
export type { StatDelta, StatDeltaSentiment, StatSize, StatTrend };
|
|
4
|
+
export interface StatProps extends StatCoreProps, Omit<ViewProps, "children"> {
|
|
5
|
+
}
|
|
6
|
+
export interface StatGroupProps extends StatGroupCoreProps, Omit<ViewProps, "children"> {
|
|
7
|
+
/** Largura mínima do tile; a web usa minmax(180px, 1fr). */
|
|
8
|
+
minTileWidth?: number;
|
|
9
|
+
}
|
|
10
|
+
/** Número em destaque com rótulo mono, unidade, delta e descrição. */
|
|
11
|
+
export declare function Stat({ label, value, unit, description, delta, chart, size, style, accessibilityLabel, ...rest }: StatProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
/** Tiles lado a lado com largura mínima; quebra de linha no lugar do grid auto-fit. */
|
|
13
|
+
export declare function StatGroup({ children, minTileWidth, style, ...rest }: StatGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { StatusDotCoreProps, StatusDotTone } from "../_contracts/index";
|
|
3
|
+
export type { StatusDotTone };
|
|
4
|
+
export interface StatusDotProps extends StatusDotCoreProps, Omit<ViewProps, "children"> {
|
|
5
|
+
}
|
|
6
|
+
/** Ponto de estado de 6 pt com halo, rótulo opcional e pulso "ao vivo". */
|
|
7
|
+
export declare function StatusDot({ tone, pulse, children, style, ...rest }: StatusDotProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { StickyBarCoreProps, StickyFooterCoreProps } from "../_contracts/index";
|
|
3
|
+
export interface StickyBarProps extends StickyBarCoreProps, Omit<ViewProps, "children"> {
|
|
4
|
+
}
|
|
5
|
+
export interface StickyFooterProps extends StickyFooterCoreProps, Omit<ViewProps, "children"> {
|
|
6
|
+
/** Espaço da área segura embaixo (barra de gestos). O Refy não depende de safe-area-context: o app passa o número. */
|
|
7
|
+
bottomInset?: number;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Barra que aparece no topo quando o cabeçalho da página sai da tela. O app decide `visible`
|
|
11
|
+
* pela rolagem; posicionar (absoluta sobre a lista ou `stickyHeaderIndices`) é do app, como o `top` na web.
|
|
12
|
+
*/
|
|
13
|
+
export declare function StickyBar({ title, meta, status, actions, visible, style, ...rest }: StickyBarProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
/** Rodapé de ações preso embaixo da tela: contexto à esquerda e botões à direita. Montado fora do ScrollView. */
|
|
15
|
+
export declare function StickyFooter({ start, children, bottomInset, style, ...rest }: StickyFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { PropertyAction, SwipeDeckCoreProps } from "../_contracts/index";
|
|
3
|
+
import type { PropertyCardProps } from "./PropertyCard";
|
|
4
|
+
export interface SwipeDeckItem extends PropertyCardProps {
|
|
5
|
+
id: string;
|
|
6
|
+
}
|
|
7
|
+
export interface SwipeDeckProps extends SwipeDeckCoreProps {
|
|
8
|
+
items: SwipeDeckItem[];
|
|
9
|
+
onAction?: (action: PropertyAction, item: SwipeDeckItem) => void;
|
|
10
|
+
style?: StyleProp<ViewStyle>;
|
|
11
|
+
}
|
|
12
|
+
/** Decisão do gesto: 72 pt ou mais para a esquerda descarta, para a direita seleciona. */
|
|
13
|
+
export declare function swipeDecision(dx: number): PropertyAction | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Fila de revisão no estilo "deslize para decidir". Os botões são o caminho principal;
|
|
16
|
+
* arrastar o cartão é atalho equivalente, como na web.
|
|
17
|
+
*/
|
|
18
|
+
export declare function SwipeDeck({ items, index, defaultIndex, onIndexChange, onAction, onReset, gestureEnabled, motion, title, instructions, style }: SwipeDeckProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { View } from "react-native";
|
|
2
|
+
import type { PressableProps } from "react-native";
|
|
3
|
+
import type { SwitchCoreProps } from "../_contracts/index";
|
|
4
|
+
export interface SwitchProps extends SwitchCoreProps, Omit<PressableProps, "children" | "style" | "disabled"> {
|
|
5
|
+
/** Chamado com o novo estado. Na web o equivalente é o `onChange` do input. */
|
|
6
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
7
|
+
style?: PressableProps["style"];
|
|
8
|
+
}
|
|
9
|
+
/** Liga e desliga com papel de switch; ligado usa a cor primária do tema. */
|
|
10
|
+
export declare const Switch: import("react").ForwardRefExoticComponent<SwitchProps & import("react").RefAttributes<View>>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { TableColumnCore, TableCoreProps, TablePagination } from "../_contracts/index";
|
|
3
|
+
export type { TablePagination };
|
|
4
|
+
export interface Column<Row> extends TableColumnCore<Row> {
|
|
5
|
+
/** Largura fixa em pt. Sem ela, a coluna divide o espaço com as outras. */
|
|
6
|
+
width?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface TableProps<Row> extends TableCoreProps<Row> {
|
|
9
|
+
columns: Column<Row>[];
|
|
10
|
+
/** Largura mínima em pt; acima da tela, a tabela rola de lado. */
|
|
11
|
+
minTableWidth?: number;
|
|
12
|
+
style?: StyleProp<ViewStyle>;
|
|
13
|
+
}
|
|
14
|
+
export type SortDir = "asc" | "desc";
|
|
15
|
+
/** Busca, filtros e ordem, com as mesmas regras da web (pt-BR, números naturais, nulos no fim). */
|
|
16
|
+
export declare function tableRows<Row>(rows: Row[], columns: Column<Row>[], o: {
|
|
17
|
+
query?: string;
|
|
18
|
+
searchMatch?: (row: Row, q: string) => boolean;
|
|
19
|
+
filters?: Record<string, string[]>;
|
|
20
|
+
sortKey?: string | null;
|
|
21
|
+
sortDir?: SortDir;
|
|
22
|
+
except?: string;
|
|
23
|
+
}): Row[];
|
|
24
|
+
/**
|
|
25
|
+
* Tabela de dados com busca, filtros por coluna, ordem pelo cabeçalho (cresce, decresce,
|
|
26
|
+
* original) e paginação. Com `minTableWidth` maior que a tela, a grade rola de lado.
|
|
27
|
+
*/
|
|
28
|
+
export declare function Table<Row>({ columns, rows, rowKey, onRowClick, rowLabel, caption, empty, searchable, searchPlaceholder, searchMatch, loading, error, pagination, minTableWidth, style }: TableProps<Row>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { TabItem, TabsCoreProps } from "../_contracts/index";
|
|
3
|
+
export type { TabItem };
|
|
4
|
+
export interface TabsProps extends TabsCoreProps, Omit<ViewProps, "children"> {
|
|
5
|
+
}
|
|
6
|
+
/** Abas com indicador. Mostra o conteúdo da aba ativa quando `content` vem no item. */
|
|
7
|
+
export declare function Tabs({ items, value, defaultValue, onChange, variant, orientation, wrap, style, ...rest }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TextInput } from "react-native";
|
|
2
|
+
import type { TextInputProps } from "react-native";
|
|
3
|
+
import type { TextareaCoreProps } from "../_contracts/index";
|
|
4
|
+
export interface TextareaProps extends TextareaCoreProps, Omit<TextInputProps, "style" | "multiline"> {
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
/** Linhas visíveis antes de rolar; a web usa rows=3. */
|
|
7
|
+
rows?: number;
|
|
8
|
+
style?: TextInputProps["style"];
|
|
9
|
+
}
|
|
10
|
+
/** Texto longo. Mesma moldura do Input; cresce até `rows` linhas visíveis. */
|
|
11
|
+
export declare const Textarea: import("react").ForwardRefExoticComponent<TextareaProps & import("react").RefAttributes<TextInput>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { TimelineCoreProps, TimelineMilestone } from "../_contracts/index";
|
|
3
|
+
export type { TimelineMilestone };
|
|
4
|
+
export interface TimelineProps extends TimelineCoreProps {
|
|
5
|
+
style?: StyleProp<ViewStyle>;
|
|
6
|
+
}
|
|
7
|
+
/** Mês, dia e ano do cartão, no fuso pedido, como na web. */
|
|
8
|
+
export declare function milestoneDate(value: Date | string, locale: string, timeZone: string): {
|
|
9
|
+
month: string;
|
|
10
|
+
day: string;
|
|
11
|
+
year: string;
|
|
12
|
+
long: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Marcos de uma jornada. Em tela estreita a linha fica à esquerda e os cartões à direita;
|
|
16
|
+
* acima de 640 pt eles alternam dos dois lados, e `horizontal` vira uma faixa que rola.
|
|
17
|
+
*/
|
|
18
|
+
export declare function Timeline({ items, title, description, orientation, locale, timezone, emptyMessage, style }: TimelineProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { ToastCoreProps, ToastData, ToastRegionCoreProps, ToastTone } from "../_contracts/index";
|
|
3
|
+
export type { ToastData, ToastTone };
|
|
4
|
+
export interface ToastProps extends ToastCoreProps, Omit<ViewProps, "children" | "id"> {
|
|
5
|
+
/** Interno da região: o toast de cima entra de cima. */
|
|
6
|
+
fromTop?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface ToastRegionProps extends ToastRegionCoreProps, Omit<ViewProps, "children"> {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Toast individual: pílula escura com ícone por tom, título e descrição. Segurar o dedo pausa
|
|
12
|
+
* o tempo (o equivalente do hover da web); com leitor de tela ativo o toast não some sozinho.
|
|
13
|
+
*/
|
|
14
|
+
export declare function Toast({ id, title, description, tone, action, duration, onDismiss, fromTop, style, ...rest }: ToastProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
/**
|
|
16
|
+
* Pilha de toasts num canto. Controlada, como na web. Monte uma vez na raiz do app, acima da
|
|
17
|
+
* navegação; o app soma a área segura via `style` quando precisar (o Refy não depende de
|
|
18
|
+
* react-native-safe-area-context).
|
|
19
|
+
*/
|
|
20
|
+
export declare function ToastRegion({ toasts, onDismiss, position, style, ...rest }: ToastRegionProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { ToggleGroupCoreProps, ToggleOption } from "../_contracts/index";
|
|
3
|
+
export type { ToggleOption };
|
|
4
|
+
export interface ToggleGroupProps extends ToggleGroupCoreProps, Omit<ViewProps, "children"> {
|
|
5
|
+
}
|
|
6
|
+
/** Botões liga/desliga independentes (seleção múltipla). Para escolha única, use Segmented. */
|
|
7
|
+
export declare function ToggleGroup({ options, value, defaultValue, onChange, label, disabled, style, ...rest }: ToggleGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TooltipCoreProps } from "../_contracts/index";
|
|
2
|
+
export interface TooltipProps extends TooltipCoreProps {
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Dica curta sobre um controle. Sem ponteiro no toque, abre no toque longo e fecha no toque
|
|
6
|
+
* seguinte. O texto também vai para o `accessibilityHint` do gatilho, que o leitor de tela lê
|
|
7
|
+
* sem precisar abrir a bolha.
|
|
8
|
+
*/
|
|
9
|
+
export declare function Tooltip({ label, description, side, open, defaultOpen, onOpenChange, children }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { TraceCoreProps, TraceStep } from "../_contracts/index";
|
|
3
|
+
import type { CodeBlockProps } from "./CodeBlock";
|
|
4
|
+
export type { TraceStep };
|
|
5
|
+
export interface TraceProps extends TraceCoreProps {
|
|
6
|
+
/** Só no nativo: repassado ao CodeBlock de cada etapa (área de transferência, realce). */
|
|
7
|
+
codeBlockProps?: Pick<CodeBlockProps, "copyToClipboard" | "highlight">;
|
|
8
|
+
style?: StyleProp<ViewStyle>;
|
|
9
|
+
}
|
|
10
|
+
/** Etapas de uma execução: título, estado e duração; abrir a etapa mostra o detalhe em JSON. */
|
|
11
|
+
export declare function Trace({ steps, label, codeBlockProps, style }: TraceProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { GestureResponderHandlers } from "react-native";
|
|
2
|
+
import type { RefyContext } from "../theme";
|
|
3
|
+
export declare const clamp: (v: number, min: number, max: number) => number;
|
|
4
|
+
/** Arredonda ao passo sem o 0.30000000000000004 dos passos decimais, como a web. */
|
|
5
|
+
export declare function snap(v: number, min: number, max: number, step: number): number;
|
|
6
|
+
/**
|
|
7
|
+
* Toque e arraste na trilha. `onStart` recebe o valor do ponto tocado (a web teleporta o
|
|
8
|
+
* controle para ali); `onMove` recebe o valor enquanto o dedo anda; `onEnd` solta.
|
|
9
|
+
*/
|
|
10
|
+
export declare function useTrackGesture(min: number, max: number, disabled: boolean | undefined, handlers: {
|
|
11
|
+
onStart: (v: number) => void;
|
|
12
|
+
onMove: (v: number) => void;
|
|
13
|
+
onEnd: () => void;
|
|
14
|
+
}): {
|
|
15
|
+
width: number;
|
|
16
|
+
onLayout: (e: {
|
|
17
|
+
nativeEvent: {
|
|
18
|
+
layout: {
|
|
19
|
+
width: number;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}) => void;
|
|
23
|
+
handlers: GestureResponderHandlers;
|
|
24
|
+
};
|
|
25
|
+
export declare function mono(t: RefyContext, size: string): {
|
|
26
|
+
fontFamily?: string | undefined | undefined;
|
|
27
|
+
fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
|
|
28
|
+
fontSize: number;
|
|
29
|
+
color: string;
|
|
30
|
+
};
|
|
31
|
+
export declare function Header({ t, label, readout }: {
|
|
32
|
+
t: RefyContext;
|
|
33
|
+
label?: string;
|
|
34
|
+
readout?: string;
|
|
35
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
36
|
+
/** Bolinha do controle: anel da superfície, sombra e halo da marca enquanto arrasta. */
|
|
37
|
+
export declare function thumbStyle(t: RefyContext, size: number, left: number, dragging: boolean, reduced: boolean): {
|
|
38
|
+
position: "absolute";
|
|
39
|
+
top: "50%";
|
|
40
|
+
left: number;
|
|
41
|
+
width: number;
|
|
42
|
+
height: number;
|
|
43
|
+
marginLeft: number;
|
|
44
|
+
marginTop: number;
|
|
45
|
+
borderRadius: number;
|
|
46
|
+
backgroundColor: string;
|
|
47
|
+
borderWidth: number;
|
|
48
|
+
borderColor: string;
|
|
49
|
+
boxShadow: string;
|
|
50
|
+
transform: {
|
|
51
|
+
scale: number;
|
|
52
|
+
}[] | undefined;
|
|
53
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { ProgressTone, UsageMeterCoreProps, UsageMeterGroupCoreProps } from "../_contracts/index";
|
|
3
|
+
export interface UsageMeterProps extends UsageMeterCoreProps, Omit<ViewProps, "children"> {
|
|
4
|
+
}
|
|
5
|
+
export interface UsageMeterGroupProps extends UsageMeterGroupCoreProps, Omit<ViewProps, "children"> {
|
|
6
|
+
}
|
|
7
|
+
/** Mesma regra da web: crítico a partir de `criticalAt`, aviso a partir de `warnAt`. */
|
|
8
|
+
export declare function usageTone(percent: number, warnAt?: number, criticalAt?: number): ProgressTone;
|
|
9
|
+
/** Uso de uma cota: rótulo, "usado / limite" e a barra, que muda de cor perto do limite. */
|
|
10
|
+
export declare function UsageMeter({ label, used, limit, unit, meta, formatValue, warnAt, criticalAt, size, style, ...rest }: UsageMeterProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
/** Lista de medidores com divisória entre eles. */
|
|
12
|
+
export declare function UsageMeterGroup({ children, style, ...rest }: UsageMeterGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { UserMenuCoreProps, UserMenuUser } from "../_contracts/index";
|
|
3
|
+
export type { UserMenuUser };
|
|
4
|
+
export interface UserMenuProps extends UserMenuCoreProps {
|
|
5
|
+
style?: StyleProp<ViewStyle>;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Bloco do usuário que abre o menu da conta. Avatar mais nome e e-mail (barra lateral) ou só o
|
|
9
|
+
* avatar (`compact`, barra do topo). Itens padrão Perfil, Configurações e Sair, como na web.
|
|
10
|
+
*/
|
|
11
|
+
export declare function UserMenu({ user, entries, onSelect, compact, side, align, style }: UserMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { VisitAvailability, VisitSchedulePickerCoreProps } from "../_contracts/index";
|
|
3
|
+
export type { VisitAvailability };
|
|
4
|
+
export interface VisitSchedulePickerProps extends VisitSchedulePickerCoreProps {
|
|
5
|
+
style?: StyleProp<ViewStyle>;
|
|
6
|
+
}
|
|
7
|
+
/** Junta horários de 30 em 30 minutos em faixas ("09h–10h30"), igual à web. */
|
|
8
|
+
export declare function groupVisitTimes(times: string[]): string[];
|
|
9
|
+
/** Escolha de dias e horários para visita, com resumo em faixas e fuso explícito. */
|
|
10
|
+
export declare function VisitSchedulePicker({ value, defaultValue, onChange, defaultActiveDate, minDate, maxDate, timezone, unavailable, disabled, style }: VisitSchedulePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const SchedulePicker: typeof VisitSchedulePicker;
|
|
12
|
+
export type SchedulePickerProps = VisitSchedulePickerProps;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { VoiceRecorderCoreProps, VoiceRecorderState } from "../_contracts/index";
|
|
3
|
+
export type { VoiceRecorderState };
|
|
4
|
+
export interface VoiceRecorderProps extends VoiceRecorderCoreProps {
|
|
5
|
+
style?: StyleProp<ViewStyle>;
|
|
6
|
+
}
|
|
7
|
+
/** "mm:ss", igual à web. */
|
|
8
|
+
export declare function formatDuration(seconds: number): string;
|
|
9
|
+
/**
|
|
10
|
+
* Captura de voz controlada. O microfone e a transcrição são do app; o componente mostra os
|
|
11
|
+
* estados (convite, escutando, pausado, erro, ditado do teclado) e devolve os toques.
|
|
12
|
+
*/
|
|
13
|
+
export declare function VoiceRecorder({ state, duration, level, errorMessage, onStart, onPause, onResume, onCancel, onFinish, onRetry, onUseFallback, style }: VoiceRecorderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import type { WizardStep, WizardStepperCoreProps } from "../_contracts/index";
|
|
3
|
+
export type { WizardStep };
|
|
4
|
+
export interface WizardStepperProps extends WizardStepperCoreProps, Omit<ViewProps, "children"> {
|
|
5
|
+
}
|
|
6
|
+
/** Progresso navegável de wizard: resumo, barra e etapas. Futuras ficam bloqueadas por padrão. */
|
|
7
|
+
export declare function WizardStepper({ steps, current, label, variant, allowFutureNavigation, onStepChange, onBack, backLabel, style, onLayout, ...rest }: WizardStepperProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from "react-native";
|
|
2
|
+
import type { Workspace, WorkspaceSwitcherCoreProps } from "../_contracts/index";
|
|
3
|
+
export type { Workspace };
|
|
4
|
+
export interface WorkspaceSwitcherProps extends WorkspaceSwitcherCoreProps {
|
|
5
|
+
style?: StyleProp<ViewStyle>;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Seletor de ambiente. Gatilho com avatar quadrado, nome, papel e seta dupla; o painel lista os
|
|
9
|
+
* ambientes com check no atual e ganha busca a partir de 5, como na web.
|
|
10
|
+
*/
|
|
11
|
+
export declare function WorkspaceSwitcher({ workspaces, value, defaultValue, onChange, compact, style }: WorkspaceSwitcherProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const providerIcons: {
|
|
2
|
+
readonly facebook: "M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z";
|
|
3
|
+
readonly linkedin: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z";
|
|
4
|
+
readonly spotify: "M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24-2.82-1.74-6.36-2.101-10.561-1.141-.418.122-.779-.179-.899-.539-.12-.421.18-.78.54-.9 4.56-1.021 8.52-.6 11.64 1.32.42.18.479.659.301 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3-3.239-1.98-8.159-2.58-11.939-1.38-.479.12-1.02-.12-1.14-.6-.12-.48.12-1.021.6-1.141C9.6 9.9 15 10.561 18.72 12.84c.361.181.54.78.241 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.721-.18-.601.18-1.2.72-1.381 4.26-1.26 11.28-1.02 15.721 1.621.539.3.719 1.02.419 1.56-.299.421-1.02.599-1.559.3z";
|
|
5
|
+
readonly github: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12";
|
|
6
|
+
readonly x: "M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z";
|
|
7
|
+
readonly apple: "M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701";
|
|
8
|
+
readonly microsoft: "M0 0v11.408h11.408V0zm12.594 0v11.408H24V0zM0 12.594V24h11.408V12.594zm12.594 0V24H24V12.594z";
|
|
9
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Equivale a prefers-reduced-motion; o token --motion-reduced=1 do tema também desliga movimento. */
|
|
2
|
+
export declare function useReducedMotion(forced?: boolean): boolean;
|
|
3
|
+
/** Estado controlado ou não, como o input da web: `value` manda quando vem; senão vale o interno. */
|
|
4
|
+
export declare function useControllable<T>(value: T | undefined, initial: T, onChange?: (next: T) => void): readonly [T, (next: T) => void];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Na web o componente dimensiona e pinta o <svg> filho por CSS (`.md svg { width: 16px }`,
|
|
4
|
+
* `color` herdado). O RN não herda nem seleciona filhos: o componente publica tamanho e cor
|
|
5
|
+
* aqui e o ícone do app lê com `useIconStyle()`.
|
|
6
|
+
*/
|
|
7
|
+
export interface IconStyle {
|
|
8
|
+
size: number;
|
|
9
|
+
color: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function useIconStyle(fallback?: IconStyle): IconStyle;
|
|
12
|
+
export declare function IconSlot({ size, color, children }: IconStyle & {
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|