@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.
Files changed (194) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +32 -0
  3. package/README.md +61 -2
  4. package/dist/index.js +10322 -0
  5. package/dist/types/_contracts/accordion.d.ts +34 -0
  6. package/dist/types/_contracts/account.d.ts +113 -0
  7. package/dist/types/_contracts/activity-item.d.ts +23 -0
  8. package/dist/types/_contracts/aspect-ratio.d.ts +5 -0
  9. package/dist/types/_contracts/avatar-group.d.ts +20 -0
  10. package/dist/types/_contracts/avatar.d.ts +23 -0
  11. package/dist/types/_contracts/badge.d.ts +9 -0
  12. package/dist/types/_contracts/boards.d.ts +42 -0
  13. package/dist/types/_contracts/brand-logo.d.ts +16 -0
  14. package/dist/types/_contracts/bubble.d.ts +5 -0
  15. package/dist/types/_contracts/button-group.d.ts +12 -0
  16. package/dist/types/_contracts/button.d.ts +27 -0
  17. package/dist/types/_contracts/calendar.d.ts +33 -0
  18. package/dist/types/_contracts/callout.d.ts +19 -0
  19. package/dist/types/_contracts/capture.d.ts +29 -0
  20. package/dist/types/_contracts/card.d.ts +26 -0
  21. package/dist/types/_contracts/charts.d.ts +79 -0
  22. package/dist/types/_contracts/checkbox.d.ts +17 -0
  23. package/dist/types/_contracts/chip.d.ts +23 -0
  24. package/dist/types/_contracts/choice-card.d.ts +34 -0
  25. package/dist/types/_contracts/combobox.d.ts +57 -0
  26. package/dist/types/_contracts/connector-card.d.ts +26 -0
  27. package/dist/types/_contracts/content.d.ts +87 -0
  28. package/dist/types/_contracts/divider.d.ts +12 -0
  29. package/dist/types/_contracts/empty-state.d.ts +13 -0
  30. package/dist/types/_contracts/fab.d.ts +13 -0
  31. package/dist/types/_contracts/form-fields.d.ts +41 -0
  32. package/dist/types/_contracts/guided.d.ts +67 -0
  33. package/dist/types/_contracts/icon-button.d.ts +9 -0
  34. package/dist/types/_contracts/index.d.ts +62 -0
  35. package/dist/types/_contracts/input.d.ts +15 -0
  36. package/dist/types/_contracts/item.d.ts +11 -0
  37. package/dist/types/_contracts/modal.d.ts +18 -0
  38. package/dist/types/_contracts/nav-card.d.ts +12 -0
  39. package/dist/types/_contracts/oauth-button.d.ts +8 -0
  40. package/dist/types/_contracts/organisms.d.ts +133 -0
  41. package/dist/types/_contracts/otp.d.ts +23 -0
  42. package/dist/types/_contracts/overlay.d.ts +118 -0
  43. package/dist/types/_contracts/page-header.d.ts +14 -0
  44. package/dist/types/_contracts/pagination.d.ts +10 -0
  45. package/dist/types/_contracts/person-cell.d.ts +9 -0
  46. package/dist/types/_contracts/progress-bar.d.ts +19 -0
  47. package/dist/types/_contracts/radio-group.d.ts +15 -0
  48. package/dist/types/_contracts/score-gauge.d.ts +15 -0
  49. package/dist/types/_contracts/scroll-area.d.ts +3 -0
  50. package/dist/types/_contracts/section-header.d.ts +13 -0
  51. package/dist/types/_contracts/segmented.d.ts +22 -0
  52. package/dist/types/_contracts/select.d.ts +7 -0
  53. package/dist/types/_contracts/setting-row.d.ts +27 -0
  54. package/dist/types/_contracts/skeleton.d.ts +9 -0
  55. package/dist/types/_contracts/slider.d.ts +45 -0
  56. package/dist/types/_contracts/stat.d.ts +37 -0
  57. package/dist/types/_contracts/status-dot.d.ts +11 -0
  58. package/dist/types/_contracts/sticky.d.ts +14 -0
  59. package/dist/types/_contracts/switch.d.ts +10 -0
  60. package/dist/types/_contracts/table.d.ts +33 -0
  61. package/dist/types/_contracts/tabs.d.ts +23 -0
  62. package/dist/types/_contracts/textarea.d.ts +7 -0
  63. package/dist/types/_contracts/toast.d.ts +28 -0
  64. package/dist/types/_contracts/toggle-group.d.ts +19 -0
  65. package/dist/types/_contracts/usage-meter.d.ts +19 -0
  66. package/dist/types/_contracts/wizard-stepper.d.ts +21 -0
  67. package/dist/types/_contracts/workflow.d.ts +103 -0
  68. package/dist/types/_tokens/index.d.ts +423 -0
  69. package/dist/types/chart/Charts.d.ts +77 -0
  70. package/dist/types/chart/D3Chart.d.ts +11 -0
  71. package/dist/types/chart/SceneChart.d.ts +19 -0
  72. package/dist/types/chart/d3/cartesian.d.ts +4 -0
  73. package/dist/types/chart/d3/hierarchy.d.ts +3 -0
  74. package/dist/types/chart/d3/radial.d.ts +3 -0
  75. package/dist/types/chart/d3/relations.d.ts +3 -0
  76. package/dist/types/chart/d3/shared.d.ts +21 -0
  77. package/dist/types/chart/d3/styles.d.ts +10 -0
  78. package/dist/types/chart/d3/svg.d.ts +6 -0
  79. package/dist/types/chart/d3/types.d.ts +228 -0
  80. package/dist/types/chart/scales.d.ts +17 -0
  81. package/dist/types/chart/scene.d.ts +32 -0
  82. package/dist/types/chart/types.d.ts +92 -0
  83. package/dist/types/components/Accordion.d.ts +10 -0
  84. package/dist/types/components/ActivityItem.d.ts +7 -0
  85. package/dist/types/components/AlertDialog.d.ts +8 -0
  86. package/dist/types/components/ApprovalWorkbench.d.ts +11 -0
  87. package/dist/types/components/AspectRatio.d.ts +6 -0
  88. package/dist/types/components/Avatar.d.ts +9 -0
  89. package/dist/types/components/AvatarGroup.d.ts +9 -0
  90. package/dist/types/components/Badge.d.ts +7 -0
  91. package/dist/types/components/BillingCard.d.ts +6 -0
  92. package/dist/types/components/BrandLogo.d.ts +7 -0
  93. package/dist/types/components/Bubble.d.ts +6 -0
  94. package/dist/types/components/Button.d.ts +13 -0
  95. package/dist/types/components/ButtonGroup.d.ts +6 -0
  96. package/dist/types/components/Calendar.d.ts +17 -0
  97. package/dist/types/components/Callout.d.ts +7 -0
  98. package/dist/types/components/Card.d.ts +10 -0
  99. package/dist/types/components/Carousel.d.ts +11 -0
  100. package/dist/types/components/Checkbox.d.ts +10 -0
  101. package/dist/types/components/Chip.d.ts +9 -0
  102. package/dist/types/components/ChoiceCard.d.ts +14 -0
  103. package/dist/types/components/CodeBlock.d.ts +22 -0
  104. package/dist/types/components/Collapsible.d.ts +6 -0
  105. package/dist/types/components/Combobox.d.ts +32 -0
  106. package/dist/types/components/ConnectorCard.d.ts +6 -0
  107. package/dist/types/components/ContextMenu.d.ts +10 -0
  108. package/dist/types/components/Coverflow.d.ts +12 -0
  109. package/dist/types/components/DangerZone.d.ts +10 -0
  110. package/dist/types/components/DatePicker.d.ts +7 -0
  111. package/dist/types/components/Divider.d.ts +7 -0
  112. package/dist/types/components/Drawer.d.ts +23 -0
  113. package/dist/types/components/EmptyState.d.ts +6 -0
  114. package/dist/types/components/EventTimeline.d.ts +15 -0
  115. package/dist/types/components/Fab.d.ts +8 -0
  116. package/dist/types/components/FabMenu.d.ts +11 -0
  117. package/dist/types/components/Field.d.ts +24 -0
  118. package/dist/types/components/FileUpload.d.ts +37 -0
  119. package/dist/types/components/GeoAreaPicker.d.ts +17 -0
  120. package/dist/types/components/GoogleButton.d.ts +5 -0
  121. package/dist/types/components/GuidedTour.d.ts +15 -0
  122. package/dist/types/components/HelpField.d.ts +11 -0
  123. package/dist/types/components/HelpMenu.d.ts +7 -0
  124. package/dist/types/components/IconButton.d.ts +10 -0
  125. package/dist/types/components/Input.d.ts +9 -0
  126. package/dist/types/components/IntentComposer.d.ts +14 -0
  127. package/dist/types/components/Item.d.ts +6 -0
  128. package/dist/types/components/KanbanBoard.d.ts +15 -0
  129. package/dist/types/components/KanbanCard.d.ts +8 -0
  130. package/dist/types/components/Marker.d.ts +4 -0
  131. package/dist/types/components/Matrix2x2.d.ts +15 -0
  132. package/dist/types/components/Menu.d.ts +15 -0
  133. package/dist/types/components/Message.d.ts +14 -0
  134. package/dist/types/components/Modal.d.ts +9 -0
  135. package/dist/types/components/Multiselect.d.ts +18 -0
  136. package/dist/types/components/NavCard.d.ts +8 -0
  137. package/dist/types/components/NotificationBell.d.ts +11 -0
  138. package/dist/types/components/OAuthButton.d.ts +8 -0
  139. package/dist/types/components/Otp.d.ts +10 -0
  140. package/dist/types/components/PageHeader.d.ts +6 -0
  141. package/dist/types/components/Pagination.d.ts +8 -0
  142. package/dist/types/components/PersonCell.d.ts +6 -0
  143. package/dist/types/components/PhoneInput.d.ts +13 -0
  144. package/dist/types/components/PlanCard.d.ts +6 -0
  145. package/dist/types/components/Popover.d.ts +12 -0
  146. package/dist/types/components/PostalCodeInput.d.ts +12 -0
  147. package/dist/types/components/ProgressBar.d.ts +7 -0
  148. package/dist/types/components/PropertyActionGroup.d.ts +11 -0
  149. package/dist/types/components/PropertyCard.d.ts +15 -0
  150. package/dist/types/components/PropertyMedia.d.ts +15 -0
  151. package/dist/types/components/Questionnaire.d.ts +8 -0
  152. package/dist/types/components/RadioGroup.d.ts +7 -0
  153. package/dist/types/components/Range.d.ts +10 -0
  154. package/dist/types/components/ScoreGauge.d.ts +8 -0
  155. package/dist/types/components/ScrollArea.d.ts +9 -0
  156. package/dist/types/components/SectionHeader.d.ts +6 -0
  157. package/dist/types/components/Segmented.d.ts +10 -0
  158. package/dist/types/components/Select.d.ts +16 -0
  159. package/dist/types/components/SettingRow.d.ts +14 -0
  160. package/dist/types/components/SettingsSubnav.d.ts +12 -0
  161. package/dist/types/components/Skeleton.d.ts +6 -0
  162. package/dist/types/components/Slider.d.ts +9 -0
  163. package/dist/types/components/Snackbar.d.ts +6 -0
  164. package/dist/types/components/Spinner.d.ts +7 -0
  165. package/dist/types/components/SplitButton.d.ts +8 -0
  166. package/dist/types/components/Stat.d.ts +13 -0
  167. package/dist/types/components/StatusDot.d.ts +7 -0
  168. package/dist/types/components/Sticky.d.ts +15 -0
  169. package/dist/types/components/SwipeDeck.d.ts +18 -0
  170. package/dist/types/components/Switch.d.ts +10 -0
  171. package/dist/types/components/Table.d.ts +28 -0
  172. package/dist/types/components/Tabs.d.ts +7 -0
  173. package/dist/types/components/Textarea.d.ts +11 -0
  174. package/dist/types/components/Timeline.d.ts +18 -0
  175. package/dist/types/components/Toast.d.ts +20 -0
  176. package/dist/types/components/ToggleGroup.d.ts +7 -0
  177. package/dist/types/components/Tooltip.d.ts +9 -0
  178. package/dist/types/components/Trace.d.ts +11 -0
  179. package/dist/types/components/Track.d.ts +53 -0
  180. package/dist/types/components/UsageMeter.d.ts +12 -0
  181. package/dist/types/components/UserMenu.d.ts +11 -0
  182. package/dist/types/components/VisitSchedulePicker.d.ts +12 -0
  183. package/dist/types/components/VoiceRecorder.d.ts +13 -0
  184. package/dist/types/components/WizardStepper.d.ts +7 -0
  185. package/dist/types/components/WorkspaceSwitcher.d.ts +11 -0
  186. package/dist/types/components/providerIcons.d.ts +9 -0
  187. package/dist/types/hooks.d.ts +4 -0
  188. package/dist/types/icon.d.ts +14 -0
  189. package/dist/types/index.d.ts +114 -0
  190. package/dist/types/messages/en.d.ts +523 -0
  191. package/dist/types/overlay.d.ts +69 -0
  192. package/dist/types/primitives.d.ts +41 -0
  193. package/dist/types/theme.d.ts +37 -0
  194. package/package.json +109 -4
@@ -0,0 +1,6 @@
1
+ import type { ReactNode } from "react";
2
+ import type { RefyContext } from "../../theme";
3
+ /** "var(--x, var(--y))" resolvido no tema nativo. */
4
+ export declare function resolveColor(t: RefyContext, value: string): string;
5
+ /** Converte a árvore; `color` é o `currentColor` herdado da marca. */
6
+ export declare function toNativeSvg(node: ReactNode, t: RefyContext, color: string, key?: string | number): ReactNode;
@@ -0,0 +1,228 @@
1
+ import type { CSSProperties, ReactNode } from "react";
2
+ import type { FeatureCollection, Geometry, GeoJsonProperties } from "geojson";
3
+ import type { GeoProjection } from "d3-geo";
4
+ import type { ScaleContinuousNumeric } from "d3-scale";
5
+ import type { CurveFactory } from "d3-shape";
6
+ /** Data coordinates. Dates use a time scale; text uses categories. */
7
+ export type ChartX = number | string | Date;
8
+ export interface ChartPoint {
9
+ x: ChartX;
10
+ y: number;
11
+ size?: number;
12
+ low?: number;
13
+ high?: number;
14
+ open?: number;
15
+ close?: number;
16
+ }
17
+ export interface ChartSeries {
18
+ id: string;
19
+ label: string;
20
+ data: ChartPoint[];
21
+ color?: string;
22
+ }
23
+ export interface ChartSlice {
24
+ id: string;
25
+ label: string;
26
+ value: number;
27
+ color?: string;
28
+ }
29
+ export interface ChartNode {
30
+ id: string;
31
+ name: string;
32
+ value?: number;
33
+ children?: ChartNode[];
34
+ }
35
+ export interface ChartNetwork {
36
+ nodes: {
37
+ id: string;
38
+ label: string;
39
+ value?: number;
40
+ }[];
41
+ links: {
42
+ source: string;
43
+ target: string;
44
+ value: number;
45
+ }[];
46
+ }
47
+ export interface ChartAxis {
48
+ visible?: boolean;
49
+ line?: boolean;
50
+ ticks?: boolean;
51
+ tickCount?: number;
52
+ tickValues?: ChartX[];
53
+ domain?: [number | Date, number | Date];
54
+ scale?: "linear" | "log" | "symlog" | "sqrt" | "time";
55
+ nice?: boolean;
56
+ createScale?: () => ScaleContinuousNumeric<number, number>;
57
+ title?: string;
58
+ format?: (value: ChartX) => string;
59
+ }
60
+ export interface ChartDatum {
61
+ id: string;
62
+ label: string;
63
+ values: Record<string, string | number>;
64
+ seriesId?: string;
65
+ }
66
+ export interface ChartLegendItem {
67
+ id: string;
68
+ label: string;
69
+ color: string;
70
+ }
71
+ export interface ChartMark {
72
+ id: string;
73
+ datum: ChartDatum;
74
+ color: string;
75
+ x?: number;
76
+ y?: number;
77
+ element: ReactNode;
78
+ }
79
+ export interface ChartScene {
80
+ marks: ChartMark[];
81
+ decorations?: ReactNode;
82
+ plot?: ReactNode;
83
+ legend?: ChartLegendItem[];
84
+ error?: string;
85
+ xScale?: (value: ChartX) => number;
86
+ xInvert?: (pixel: number) => ChartX;
87
+ yScale?: (value: number) => number;
88
+ }
89
+ export interface ChartLayout {
90
+ width: number;
91
+ height: number;
92
+ top: number;
93
+ right: number;
94
+ bottom: number;
95
+ left: number;
96
+ }
97
+ export interface ChartViewport {
98
+ k: number;
99
+ x: number;
100
+ y: number;
101
+ }
102
+ export interface ChartBrushSelection {
103
+ range: [ChartX, ChartX];
104
+ items: ChartDatum[];
105
+ }
106
+ export interface ChartStreamBatch {
107
+ seriesId: string;
108
+ points: ChartPoint[];
109
+ }
110
+ export interface ChartStreamOptions {
111
+ /** Subscribe once per source; return cleanup for WebSocket/SSE/listeners/timers. */
112
+ subscribe: (push: (batches: ChartStreamBatch[]) => void) => void | (() => void);
113
+ maxPoints?: number;
114
+ paused?: boolean;
115
+ onError?: (message: string) => void;
116
+ }
117
+ export interface ChartOptions {
118
+ zoom?: boolean | {
119
+ maxScale?: number;
120
+ wheel?: boolean;
121
+ onChange?: (viewport: ChartViewport) => void;
122
+ };
123
+ brush?: boolean | {
124
+ onChange?: (selection: ChartBrushSelection | null) => void;
125
+ };
126
+ stream?: ChartStreamOptions;
127
+ height?: number;
128
+ margin?: Partial<Pick<ChartLayout, "top" | "right" | "bottom" | "left">>;
129
+ /** BCP 47 tag for axis dates and numbers. Default: the `LocaleProvider` language. */
130
+ locale?: string;
131
+ colors?: string[];
132
+ /** Color by value: heatmap cells and bars (bar/histogram). */
133
+ colorScale?: (value: number) => string;
134
+ xAxis?: ChartAxis;
135
+ yAxis?: ChartAxis;
136
+ grid?: boolean | "x" | "y" | "both";
137
+ legend?: boolean | {
138
+ position?: "top" | "bottom" | "right";
139
+ interactive?: boolean;
140
+ marker?: "square" | "circle" | "line";
141
+ render?: (item: ChartLegendItem) => ReactNode;
142
+ };
143
+ tooltip?: boolean | {
144
+ render?: (datum: ChartDatum) => ReactNode;
145
+ };
146
+ onSelect?: (datum: ChartDatum) => void;
147
+ onHover?: (datum: ChartDatum | null) => void;
148
+ renderMark?: (mark: ChartMark, context: ChartLayout) => ReactNode;
149
+ renderOverlay?: (context: ChartLayout & {
150
+ scene: ChartScene;
151
+ }) => ReactNode;
152
+ }
153
+ export interface D3ChartBaseProps extends ChartOptions {
154
+ title: string;
155
+ label: string;
156
+ /** Data table: "disclosure" (default) shows "See data for…"; "screen-reader" keeps it only for screen readers. */
157
+ dataTable?: "disclosure" | "screen-reader";
158
+ showTitle?: boolean;
159
+ className?: string;
160
+ style?: CSSProperties;
161
+ }
162
+ export type ChartCurve = "linear" | "natural" | "monotone" | "step" | "step-before" | "step-after" | "basis" | "cardinal" | "catmull-rom" | "bump" | CurveFactory;
163
+ export type CartesianType = "line" | "area" | "bar" | "scatter" | "bubble";
164
+ export type RadialType = "pie" | "donut" | "radial-bar" | "gauge";
165
+ export type HierarchyType = "treemap" | "pack" | "tree" | "cluster" | "partition" | "sunburst";
166
+ export type RelationType = "network" | "chord" | "sankey";
167
+ /** Discriminated data contracts keep incompatible data out of each family. */
168
+ export type D3ChartProps = D3ChartBaseProps & ({
169
+ type: CartesianType;
170
+ series: ChartSeries[];
171
+ curve?: ChartCurve;
172
+ stacked?: boolean | "percent";
173
+ orientation?: "vertical" | "horizontal";
174
+ dots?: boolean;
175
+ strokeWidth?: number;
176
+ fillOpacity?: number;
177
+ /** Preenchimento da área: "solid" (padrão) ou "gradient", que esmaece a cor da série até transparente. */
178
+ areaFill?: "solid" | "gradient";
179
+ } | {
180
+ type: "histogram";
181
+ values: number[];
182
+ thresholds?: number | number[];
183
+ } | {
184
+ type: "boxplot";
185
+ groups: {
186
+ id: string;
187
+ label: string;
188
+ values: number[];
189
+ }[];
190
+ } | {
191
+ type: "candlestick";
192
+ series: ChartSeries[];
193
+ } | {
194
+ type: "heatmap";
195
+ cells: {
196
+ x: string;
197
+ y: string;
198
+ value: number;
199
+ }[];
200
+ } | {
201
+ type: RadialType;
202
+ items: ChartSlice[];
203
+ innerRadius?: number;
204
+ padAngle?: number;
205
+ cornerRadius?: number;
206
+ startAngle?: number;
207
+ endAngle?: number;
208
+ max?: number;
209
+ } | {
210
+ type: "radar";
211
+ series: ChartSeries[];
212
+ max?: number;
213
+ fillOpacity?: number;
214
+ } | {
215
+ type: HierarchyType;
216
+ root: ChartNode;
217
+ padding?: number;
218
+ separation?: number;
219
+ } | {
220
+ type: RelationType;
221
+ network: ChartNetwork;
222
+ iterations?: number;
223
+ padAngle?: number;
224
+ } | {
225
+ type: "geo";
226
+ features: FeatureCollection<Geometry, GeoJsonProperties>;
227
+ projection?: "mercator" | "equal-earth" | "orthographic" | (() => GeoProjection);
228
+ });
@@ -0,0 +1,17 @@
1
+ import type { ChartAxis, ChartCurve, ChartViewport, ChartX } from "./types";
2
+ export declare const palette: string[];
3
+ export declare const colorAt: (index: number, colors?: string[]) => string;
4
+ export declare const keyX: (value: ChartX) => string;
5
+ export declare const formatX: (value: ChartX, locale?: string) => string;
6
+ export declare const resolveCurve: (curve?: ChartCurve) => import("d3-shape").CurveFactory;
7
+ export declare function numericScale(domain: [number, number], range: [number, number], axis?: ChartAxis): import("d3-scale").ScaleContinuousNumeric<number, number, never>;
8
+ export declare function xCoordinates(values: ChartX[], range: [number, number], axis?: ChartAxis, viewport?: ChartViewport): {
9
+ at: (value: ChartX) => number;
10
+ ticks: ChartX[];
11
+ bandwidth: number;
12
+ invert: (pixel: number) => ChartX;
13
+ };
14
+ export declare function finite(values: number[]): void;
15
+ export declare function uniqueIds(items: {
16
+ id: string;
17
+ }[]): void;
@@ -0,0 +1,32 @@
1
+ import type { ChartDatum, ChartLayout, ChartLegendItem, ChartViewport, ChartX, D3ChartProps } from "./types";
2
+ export interface LineMark {
3
+ id: string;
4
+ datum: ChartDatum;
5
+ color: string;
6
+ x: number;
7
+ y: number;
8
+ }
9
+ export interface LineScene {
10
+ marks: LineMark[];
11
+ paths: {
12
+ id: string;
13
+ kind: "line" | "area";
14
+ d: string;
15
+ color: string;
16
+ }[];
17
+ legend: ChartLegendItem[];
18
+ xTicks: {
19
+ value: ChartX;
20
+ at: number;
21
+ text: string;
22
+ }[];
23
+ yTicks: {
24
+ value: number;
25
+ at: number;
26
+ text: string;
27
+ }[];
28
+ error?: string;
29
+ xScale?: (value: ChartX) => number;
30
+ yScale?: (value: number) => number;
31
+ }
32
+ export declare function lineScene(props: D3ChartProps, layout: ChartLayout, hidden: string[], viewport?: ChartViewport): LineScene;
@@ -0,0 +1,92 @@
1
+ import type { ReactNode } from "react";
2
+ import type { ScaleContinuousNumeric } from "d3-scale";
3
+ import type { CurveFactory } from "d3-shape";
4
+ export type ChartX = number | string | Date;
5
+ export interface ChartPoint {
6
+ x: ChartX;
7
+ y: number;
8
+ size?: number;
9
+ low?: number;
10
+ high?: number;
11
+ open?: number;
12
+ close?: number;
13
+ }
14
+ export interface ChartSeries {
15
+ id: string;
16
+ label: string;
17
+ data: ChartPoint[];
18
+ color?: string;
19
+ }
20
+ export interface ChartAxis {
21
+ visible?: boolean;
22
+ line?: boolean;
23
+ ticks?: boolean;
24
+ tickCount?: number;
25
+ tickValues?: ChartX[];
26
+ domain?: [number | Date, number | Date];
27
+ scale?: "linear" | "log" | "symlog" | "sqrt" | "time";
28
+ nice?: boolean;
29
+ createScale?: () => ScaleContinuousNumeric<number, number>;
30
+ title?: string;
31
+ format?: (value: ChartX) => string;
32
+ }
33
+ export interface ChartDatum {
34
+ id: string;
35
+ label: string;
36
+ values: Record<string, string | number>;
37
+ seriesId?: string;
38
+ }
39
+ export interface ChartLegendItem {
40
+ id: string;
41
+ label: string;
42
+ color: string;
43
+ }
44
+ export interface ChartLayout {
45
+ width: number;
46
+ height: number;
47
+ top: number;
48
+ right: number;
49
+ bottom: number;
50
+ left: number;
51
+ }
52
+ export interface ChartViewport {
53
+ k: number;
54
+ x: number;
55
+ y: number;
56
+ }
57
+ export type ChartCurve = "linear" | "natural" | "monotone" | "step" | "step-before" | "step-after" | "basis" | "cardinal" | "catmull-rom" | "bump" | CurveFactory;
58
+ /**
59
+ * Props do gráfico nativo. Ficam de fora, por ora: zoom, brush, stream, renderMark e
60
+ * renderOverlay (desenham SVG do DOM), e as famílias além de line e area.
61
+ */
62
+ export interface D3ChartProps {
63
+ type: "line" | "area";
64
+ title: string;
65
+ label: string;
66
+ /** BCP 47 tag for axis dates and numbers, as on the web. Default: "en". */
67
+ locale?: string;
68
+ showTitle?: boolean;
69
+ series: ChartSeries[];
70
+ curve?: ChartCurve;
71
+ stacked?: boolean | "percent";
72
+ dots?: boolean;
73
+ strokeWidth?: number;
74
+ fillOpacity?: number;
75
+ height?: number;
76
+ margin?: Partial<Pick<ChartLayout, "top" | "right" | "bottom" | "left">>;
77
+ colors?: string[];
78
+ xAxis?: ChartAxis;
79
+ yAxis?: ChartAxis;
80
+ grid?: boolean | "x" | "y" | "both";
81
+ legend?: boolean | {
82
+ position?: "top" | "bottom" | "right";
83
+ interactive?: boolean;
84
+ marker?: "square" | "circle" | "line";
85
+ render?: (item: ChartLegendItem) => ReactNode;
86
+ };
87
+ tooltip?: boolean | {
88
+ render?: (datum: ChartDatum) => ReactNode;
89
+ };
90
+ onSelect?: (datum: ChartDatum) => void;
91
+ onHover?: (datum: ChartDatum | null) => void;
92
+ }
@@ -0,0 +1,10 @@
1
+ import type { ViewProps } from "react-native";
2
+ import type { AccordionCoreProps, AccordionItem } from "../_contracts/index";
3
+ import type { RefyContext } from "../theme";
4
+ export type { AccordionItem };
5
+ export interface AccordionProps extends AccordionCoreProps, Omit<ViewProps, "children"> {
6
+ }
7
+ /** Abre e fecha o conteúdo com a mesma transição de altura nos dois sentidos, e respeita movimento reduzido. */
8
+ export declare function animateDisclosure(t: RefyContext, reduced: boolean): void;
9
+ /** Seções que abrem e fecham. `single` mantém uma aberta; `multiple` permite várias. */
10
+ export declare function Accordion({ items, type, value, defaultValue, onChange, variant, size, leadingIndicator, indentContent, style, ...rest }: AccordionProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import type { ViewProps } from "react-native";
2
+ import type { ActivityActorCore, ActivityItemCoreProps } from "../_contracts/index";
3
+ export type ActivityActor = ActivityActorCore;
4
+ export interface ActivityItemProps extends ActivityItemCoreProps, Omit<ViewProps, "children"> {
5
+ }
6
+ /** Entrada de feed: quem fez, o que fez, quando, e o selo de estado. `compact` tira o cartão. */
7
+ export declare function ActivityItem({ title, actor, timestamp, description, badge, status, metadata, action, density, style, ...rest }: ActivityItemProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import type { AlertDialogCoreProps } from "../_contracts/index";
2
+ export interface AlertDialogProps extends AlertDialogCoreProps {
3
+ }
4
+ /**
5
+ * Confirmação que não fecha no toque fora nem tem ✕: a pessoa escolhe cancelar ou confirmar.
6
+ * Enquanto `pending`, o voltar do Android não fecha e o botão de confirmar mostra o carregamento.
7
+ */
8
+ export declare function AlertDialog({ open, onOpenChange, title, children, onConfirm, confirmLabel, cancelLabel, destructive, pending }: AlertDialogProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import type { StyleProp, ViewStyle } from "react-native";
2
+ import type { ApprovalWorkbenchCoreProps, ApprovalWorkbenchItem, ApprovalWorkbenchItemState } from "../_contracts/index";
3
+ export type { ApprovalWorkbenchItem, ApprovalWorkbenchItemState };
4
+ export interface ApprovalWorkbenchProps extends ApprovalWorkbenchCoreProps {
5
+ style?: StyleProp<ViewStyle>;
6
+ }
7
+ /**
8
+ * Análise manual em dois planos: a fila de itens e o editor do item ativo. Até 840 pt de
9
+ * tela a fila vira uma faixa com rolagem lateral acima do editor, como na web.
10
+ */
11
+ export declare function ApprovalWorkbench({ label, items, activeId, onActiveChange, children, style }: ApprovalWorkbenchProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import type { ViewProps } from "react-native";
2
+ import type { AspectRatioCoreProps } from "../_contracts/index";
3
+ export interface AspectRatioProps extends AspectRatioCoreProps, ViewProps {
4
+ }
5
+ /** Caixa que ocupa a largura toda e tira a altura da proporção. */
6
+ export declare function AspectRatio({ ratio, style, ...rest }: AspectRatioProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import type { ImageSourcePropType, ViewProps } from "react-native";
2
+ import type { AvatarCoreProps, AvatarShape, AvatarSize } from "../_contracts/index";
3
+ export type { AvatarShape, AvatarSize };
4
+ export interface AvatarProps extends AvatarCoreProps, Omit<ViewProps, "children"> {
5
+ /** Só no nativo: imagem empacotada (`require("./foto.jpg")`). `src` continua aceitando URL. */
6
+ source?: ImageSourcePropType;
7
+ }
8
+ /** Avatar de pessoa (círculo) ou de entidade (`shape="square"`): foto, iniciais ou gradiente por semente. */
9
+ export declare function Avatar({ initials, src, source, alt, size, shape, color, seed, style, ...rest }: AvatarProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import type { ViewProps } from "react-native";
2
+ import type { AvatarGroupCoreProps, AvatarGroupItem } from "../_contracts/index";
3
+ export type { AvatarGroupItem };
4
+ export interface AvatarGroupProps extends AvatarGroupCoreProps, Omit<ViewProps, "children"> {
5
+ }
6
+ /** Iniciais: primeira letra do primeiro e do último nome, como na web. */
7
+ export declare function initialsOf(name: string): string;
8
+ /** Avatares empilhados, o primeiro por cima; o excedente vira "+N" com os nomes no nome acessível. */
9
+ export declare function AvatarGroup({ items, max, size, onItemClick, onOverflowClick, style, accessibilityLabel, ...rest }: AvatarGroupProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import type { ViewProps } from "react-native";
2
+ import type { BadgeCoreProps, BadgeTone } from "../_contracts/index";
3
+ export type { BadgeTone };
4
+ export interface BadgeProps extends BadgeCoreProps, Omit<ViewProps, "children"> {
5
+ }
6
+ /** Status curto: fundo suave e texto na cor semântica, mono e em caixa alta. */
7
+ export declare function Badge({ tone, dot, children, style, ...rest }: BadgeProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import type { ViewProps } from "react-native";
2
+ import type { BillingCardCoreProps } from "../_contracts/index";
3
+ export interface BillingCardProps extends BillingCardCoreProps, Omit<ViewProps, "children"> {
4
+ }
5
+ /** Método de pagamento, próxima cobrança e ações sobre o Card. Bandeira, status e ações entram por slots. */
6
+ export declare function BillingCard({ brandIcon, methodLabel, lastDigits, methodMeta, status, nextChargeLabel, nextChargeAmount, nextChargeDate, actions, elevation, style, ...rest }: BillingCardProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import type { ViewProps } from "react-native";
2
+ import type { BrandLogoCoreProps, BrandLogoSize } from "../_contracts/index";
3
+ export type { BrandLogoSize };
4
+ export interface BrandLogoProps extends BrandLogoCoreProps, Omit<ViewProps, "children"> {
5
+ }
6
+ /** Assinatura do Refy: "refy" em mono com o ponto que pulsa. markOnly mostra o monograma "r". */
7
+ export declare function BrandLogo({ brand, size, tone, animated, markOnly, symbol, height, children, style, ...rest }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import type { ViewProps } from "react-native";
2
+ import type { BubbleCoreProps } from "../_contracts/index";
3
+ export interface BubbleProps extends BubbleCoreProps, ViewProps {
4
+ }
5
+ /** Balão de mensagem; `end` encosta à direita na cor da marca. */
6
+ export declare function Bubble({ side, children, style, ...rest }: BubbleProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
1
+ import type { ReactNode } from "react";
2
+ import { View } from "react-native";
3
+ import type { PressableProps, StyleProp, TextStyle } from "react-native";
4
+ import type { ButtonCoreProps, ButtonProgressEffect, ButtonSize, ButtonStatus, ButtonVariant } from "../_contracts/index";
5
+ export type { ButtonProgressEffect, ButtonSize, ButtonStatus, ButtonVariant };
6
+ export interface ButtonProps extends ButtonCoreProps, Omit<PressableProps, "children" | "style"> {
7
+ children?: ReactNode;
8
+ style?: PressableProps["style"];
9
+ /** Só no nativo: estilo do rótulo, para composições como o botão do Google. */
10
+ labelStyle?: StyleProp<TextStyle>;
11
+ }
12
+ /** Botão base do Refy. Mesmo contrato do web; `onPress` no lugar de `onClick`. */
13
+ export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<View>>;
@@ -0,0 +1,6 @@
1
+ import type { ViewProps } from "react-native";
2
+ import type { ButtonGroupCoreProps } from "../_contracts/index";
3
+ export interface ButtonGroupProps extends ButtonGroupCoreProps, ViewProps {
4
+ }
5
+ /** Grupo de escolha única com bordas coladas; a opção ativa vira o botão primário. */
6
+ export declare function ButtonGroup({ orientation, label, defaultActiveIndex, activeIndex, onActiveIndexChange, children, style, ...rest }: ButtonGroupProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,17 @@
1
+ import type { StyleProp, ViewStyle } from "react-native";
2
+ import type { CalendarCoreProps, CalendarMode, DateRange } from "../_contracts/index";
3
+ export type { CalendarMode, DateRange };
4
+ export interface CalendarProps extends CalendarCoreProps {
5
+ style?: StyleProp<ViewStyle>;
6
+ }
7
+ /** Rótulo do mês igual ao da web: "Outubro de 2026" (long) ou "Outubro 2026" (compact). */
8
+ export declare function calendarMonthLabel(base: Date, locale: string, style: "long" | "compact"): string;
9
+ /** Dias da grade do mês, começando no domingo ou na segunda, como na web. */
10
+ export declare function calendarCells(base: Date, weekStartsOn: 0 | 1, fixedWeeks: boolean): Date[];
11
+ /** Seleção de range igual à da web: 1º toque fixa o início, 2º toque (≥ início) fixa o fim. */
12
+ export declare function nextRange(range: DateRange, day: Date): DateRange;
13
+ /**
14
+ * Calendário de um dia ou de um intervalo. Mesmo contrato e mesmas regras da web; no toque
15
+ * cada dia é um alvo de 44 pt (a web usa 36), então o mês ocupa 308 pt em vez de 252.
16
+ */
17
+ export declare function Calendar({ mode, value, defaultValue, onChange, numberOfMonths, fixedWeeks, month, defaultMonth, onMonthChange, min, max, weekStartsOn, locale, monthLabelStyle, style }: CalendarProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import type { ViewProps } from "react-native";
2
+ import type { CalloutCoreProps, CalloutTone } from "../_contracts/index";
3
+ export type { CalloutTone };
4
+ export interface CalloutProps extends CalloutCoreProps, Omit<ViewProps, "children"> {
5
+ }
6
+ /** Aviso fixo dentro da página (dica, nota, limite, upsell). Para aviso passageiro, use Toast. */
7
+ export declare function Callout({ tone, icon, title, children, action, dismissible, onDismiss, dismissLabel, style, ...rest }: CalloutProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,10 @@
1
+ import type { ViewProps } from "react-native";
2
+ import type { CardCoreProps, CardHeaderCoreProps, CardTone } from "../_contracts/index";
3
+ export type { CardTone };
4
+ export interface CardProps extends CardCoreProps, Omit<ViewProps, "children"> {
5
+ }
6
+ export interface CardHeaderProps extends CardHeaderCoreProps, Omit<ViewProps, "children"> {
7
+ }
8
+ /** Superfície base. `elevation` usa as sombras --elev-*; `inverted` desenha o degradê com SVG. */
9
+ export declare function Card({ elevation, padding, tone, children, style, ...rest }: CardProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function CardHeader({ title, count, action, icon, description, size, style, ...rest }: CardHeaderProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import type { StyleProp, ViewStyle } from "react-native";
2
+ import type { CarouselCoreProps, CarouselItem } from "../_contracts/index";
3
+ export type { CarouselItem };
4
+ export interface CarouselProps extends CarouselCoreProps {
5
+ style?: StyleProp<ViewStyle>;
6
+ }
7
+ /**
8
+ * Um conteúdo por vez, com setas e "1 de N", como na web. No toque também troca com o
9
+ * arrasto lateral; o leitor de tela usa as setas e ouve só o conteúdo visível.
10
+ */
11
+ export declare function Carousel({ items, label, index, defaultIndex, onIndexChange, style }: CarouselProps): 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 { CheckboxCoreProps } from "../_contracts/index";
4
+ export interface CheckboxProps extends CheckboxCoreProps, 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
+ /** Caixa de seleção com check desenhado; `boxed` vira linha com borda que acende quando marcada. */
10
+ export declare const Checkbox: import("react").ForwardRefExoticComponent<CheckboxProps & import("react").RefAttributes<View>>;
@@ -0,0 +1,9 @@
1
+ import { View } from "react-native";
2
+ import type { PressableProps } from "react-native";
3
+ import type { ChipCoreProps, ChipSelectionMode, ChipTone } from "../_contracts/index";
4
+ export type { ChipSelectionMode, ChipTone };
5
+ export interface ChipProps extends ChipCoreProps, Omit<PressableProps, "children" | "style"> {
6
+ style?: PressableProps["style"];
7
+ }
8
+ /** Chip de filtro: alterna seleção; opcionalmente removível. */
9
+ export declare const Chip: import("react").ForwardRefExoticComponent<ChipProps & import("react").RefAttributes<View>>;
@@ -0,0 +1,14 @@
1
+ import type { ViewProps } from "react-native";
2
+ import type { ChoiceCardCoreProps, ChoiceCardGroupCoreProps, ChoiceCardMode } from "../_contracts/index";
3
+ export type { ChoiceCardMode };
4
+ export interface ChoiceCardGroupProps extends ChoiceCardGroupCoreProps, Omit<ViewProps, "children"> {
5
+ }
6
+ export interface ChoiceCardProps extends ChoiceCardCoreProps, Omit<ViewProps, "children"> {
7
+ }
8
+ /**
9
+ * Grupo de cards com semântica de radio (single) ou checkbox (multiple). No toque não há
10
+ * roving de teclado: o leitor de tela anda card a card e anuncia "selecionado".
11
+ */
12
+ export declare function ChoiceCardGroup({ mode, value, defaultValue, onChange, label, columns, children, style, ...rest }: ChoiceCardGroupProps): import("react/jsx-runtime").JSX.Element;
13
+ /** Card selecionável: preview opcional, título com ícone, descrição e meta. Só dentro de ChoiceCardGroup. */
14
+ export declare function ChoiceCard({ value, title, description, icon, preview, meta, disabled, style, ...rest }: ChoiceCardProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,22 @@
1
+ import type { ViewProps } from "react-native";
2
+ import type { CodeBlockCoreProps } from "../_contracts/index";
3
+ /** Trecho realçado: `type` usa os mesmos nomes de token do Prism que a web pinta. */
4
+ export interface CodeToken {
5
+ text: string;
6
+ type?: string;
7
+ }
8
+ export interface CodeBlockProps extends CodeBlockCoreProps, Omit<ViewProps, "children"> {
9
+ /**
10
+ * Só no nativo: grava na área de transferência (ex.: `Clipboard.setStringAsync` do
11
+ * expo-clipboard). O pacote não traz essa dependência; sem ela, o botão copiar não aparece.
12
+ */
13
+ copyToClipboard?: (code: string) => void | Promise<void>;
14
+ /** Só no nativo: realce de sintaxe injetado (ex.: tokens do Prism achatados). Sem ele, texto simples. */
15
+ highlight?: (code: string, language?: string) => CodeToken[];
16
+ }
17
+ export declare function maskSecret(code: string, visibleChars: number): string;
18
+ /**
19
+ * Bloco de código monoespaçado com rolagem lateral própria. `secret` mascara chaves com o
20
+ * botão de revelar; copiar sempre leva o valor real e mostra "Copiado".
21
+ */
22
+ export declare function CodeBlock({ code, children, label, language, secret, visibleChars, copyLabel, copiedLabel, revealLabel, hideLabel, onCopy, wrap, copyToClipboard, highlight, style, ...rest }: CodeBlockProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import type { ViewProps } from "react-native";
2
+ import type { CollapsibleCoreProps } from "../_contracts/index";
3
+ export interface CollapsibleProps extends CollapsibleCoreProps, Omit<ViewProps, "children"> {
4
+ }
5
+ /** Botão que mostra e esconde um bloco; o sinal muda de + para −. */
6
+ export declare function Collapsible({ title, children, open, defaultOpen, onOpenChange, disabled, style, ...rest }: CollapsibleProps): import("react/jsx-runtime").JSX.Element;