@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.
Files changed (193) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +61 -2
  3. package/dist/index.js +10298 -0
  4. package/dist/types/_contracts/accordion.d.ts +34 -0
  5. package/dist/types/_contracts/account.d.ts +113 -0
  6. package/dist/types/_contracts/activity-item.d.ts +23 -0
  7. package/dist/types/_contracts/aspect-ratio.d.ts +5 -0
  8. package/dist/types/_contracts/avatar-group.d.ts +20 -0
  9. package/dist/types/_contracts/avatar.d.ts +23 -0
  10. package/dist/types/_contracts/badge.d.ts +9 -0
  11. package/dist/types/_contracts/boards.d.ts +42 -0
  12. package/dist/types/_contracts/brand-logo.d.ts +12 -0
  13. package/dist/types/_contracts/bubble.d.ts +5 -0
  14. package/dist/types/_contracts/button-group.d.ts +12 -0
  15. package/dist/types/_contracts/button.d.ts +27 -0
  16. package/dist/types/_contracts/calendar.d.ts +33 -0
  17. package/dist/types/_contracts/callout.d.ts +19 -0
  18. package/dist/types/_contracts/capture.d.ts +29 -0
  19. package/dist/types/_contracts/card.d.ts +26 -0
  20. package/dist/types/_contracts/charts.d.ts +79 -0
  21. package/dist/types/_contracts/checkbox.d.ts +17 -0
  22. package/dist/types/_contracts/chip.d.ts +23 -0
  23. package/dist/types/_contracts/choice-card.d.ts +34 -0
  24. package/dist/types/_contracts/combobox.d.ts +57 -0
  25. package/dist/types/_contracts/connector-card.d.ts +26 -0
  26. package/dist/types/_contracts/content.d.ts +83 -0
  27. package/dist/types/_contracts/divider.d.ts +12 -0
  28. package/dist/types/_contracts/empty-state.d.ts +13 -0
  29. package/dist/types/_contracts/fab.d.ts +13 -0
  30. package/dist/types/_contracts/form-fields.d.ts +41 -0
  31. package/dist/types/_contracts/guided.d.ts +67 -0
  32. package/dist/types/_contracts/icon-button.d.ts +9 -0
  33. package/dist/types/_contracts/index.d.ts +62 -0
  34. package/dist/types/_contracts/input.d.ts +15 -0
  35. package/dist/types/_contracts/item.d.ts +11 -0
  36. package/dist/types/_contracts/modal.d.ts +18 -0
  37. package/dist/types/_contracts/nav-card.d.ts +12 -0
  38. package/dist/types/_contracts/oauth-button.d.ts +8 -0
  39. package/dist/types/_contracts/organisms.d.ts +133 -0
  40. package/dist/types/_contracts/otp.d.ts +23 -0
  41. package/dist/types/_contracts/overlay.d.ts +118 -0
  42. package/dist/types/_contracts/page-header.d.ts +14 -0
  43. package/dist/types/_contracts/pagination.d.ts +10 -0
  44. package/dist/types/_contracts/person-cell.d.ts +9 -0
  45. package/dist/types/_contracts/progress-bar.d.ts +19 -0
  46. package/dist/types/_contracts/radio-group.d.ts +15 -0
  47. package/dist/types/_contracts/score-gauge.d.ts +15 -0
  48. package/dist/types/_contracts/scroll-area.d.ts +3 -0
  49. package/dist/types/_contracts/section-header.d.ts +13 -0
  50. package/dist/types/_contracts/segmented.d.ts +22 -0
  51. package/dist/types/_contracts/select.d.ts +7 -0
  52. package/dist/types/_contracts/setting-row.d.ts +27 -0
  53. package/dist/types/_contracts/skeleton.d.ts +9 -0
  54. package/dist/types/_contracts/slider.d.ts +45 -0
  55. package/dist/types/_contracts/stat.d.ts +37 -0
  56. package/dist/types/_contracts/status-dot.d.ts +11 -0
  57. package/dist/types/_contracts/sticky.d.ts +14 -0
  58. package/dist/types/_contracts/switch.d.ts +10 -0
  59. package/dist/types/_contracts/table.d.ts +33 -0
  60. package/dist/types/_contracts/tabs.d.ts +23 -0
  61. package/dist/types/_contracts/textarea.d.ts +7 -0
  62. package/dist/types/_contracts/toast.d.ts +28 -0
  63. package/dist/types/_contracts/toggle-group.d.ts +19 -0
  64. package/dist/types/_contracts/usage-meter.d.ts +19 -0
  65. package/dist/types/_contracts/wizard-stepper.d.ts +21 -0
  66. package/dist/types/_contracts/workflow.d.ts +103 -0
  67. package/dist/types/_tokens/index.d.ts +422 -0
  68. package/dist/types/chart/Charts.d.ts +77 -0
  69. package/dist/types/chart/D3Chart.d.ts +11 -0
  70. package/dist/types/chart/SceneChart.d.ts +19 -0
  71. package/dist/types/chart/d3/cartesian.d.ts +4 -0
  72. package/dist/types/chart/d3/hierarchy.d.ts +3 -0
  73. package/dist/types/chart/d3/radial.d.ts +3 -0
  74. package/dist/types/chart/d3/relations.d.ts +3 -0
  75. package/dist/types/chart/d3/shared.d.ts +21 -0
  76. package/dist/types/chart/d3/styles.d.ts +10 -0
  77. package/dist/types/chart/d3/svg.d.ts +6 -0
  78. package/dist/types/chart/d3/types.d.ts +228 -0
  79. package/dist/types/chart/scales.d.ts +17 -0
  80. package/dist/types/chart/scene.d.ts +32 -0
  81. package/dist/types/chart/types.d.ts +92 -0
  82. package/dist/types/components/Accordion.d.ts +10 -0
  83. package/dist/types/components/ActivityItem.d.ts +7 -0
  84. package/dist/types/components/AlertDialog.d.ts +8 -0
  85. package/dist/types/components/ApprovalWorkbench.d.ts +11 -0
  86. package/dist/types/components/AspectRatio.d.ts +6 -0
  87. package/dist/types/components/Avatar.d.ts +9 -0
  88. package/dist/types/components/AvatarGroup.d.ts +9 -0
  89. package/dist/types/components/Badge.d.ts +7 -0
  90. package/dist/types/components/BillingCard.d.ts +6 -0
  91. package/dist/types/components/BrandLogo.d.ts +7 -0
  92. package/dist/types/components/Bubble.d.ts +6 -0
  93. package/dist/types/components/Button.d.ts +13 -0
  94. package/dist/types/components/ButtonGroup.d.ts +6 -0
  95. package/dist/types/components/Calendar.d.ts +17 -0
  96. package/dist/types/components/Callout.d.ts +7 -0
  97. package/dist/types/components/Card.d.ts +10 -0
  98. package/dist/types/components/Carousel.d.ts +11 -0
  99. package/dist/types/components/Checkbox.d.ts +10 -0
  100. package/dist/types/components/Chip.d.ts +9 -0
  101. package/dist/types/components/ChoiceCard.d.ts +14 -0
  102. package/dist/types/components/CodeBlock.d.ts +22 -0
  103. package/dist/types/components/Collapsible.d.ts +6 -0
  104. package/dist/types/components/Combobox.d.ts +32 -0
  105. package/dist/types/components/ConnectorCard.d.ts +6 -0
  106. package/dist/types/components/ContextMenu.d.ts +10 -0
  107. package/dist/types/components/Coverflow.d.ts +12 -0
  108. package/dist/types/components/DangerZone.d.ts +10 -0
  109. package/dist/types/components/DatePicker.d.ts +7 -0
  110. package/dist/types/components/Divider.d.ts +7 -0
  111. package/dist/types/components/Drawer.d.ts +23 -0
  112. package/dist/types/components/EmptyState.d.ts +6 -0
  113. package/dist/types/components/EventTimeline.d.ts +15 -0
  114. package/dist/types/components/Fab.d.ts +8 -0
  115. package/dist/types/components/FabMenu.d.ts +11 -0
  116. package/dist/types/components/Field.d.ts +24 -0
  117. package/dist/types/components/FileUpload.d.ts +37 -0
  118. package/dist/types/components/GeoAreaPicker.d.ts +17 -0
  119. package/dist/types/components/GoogleButton.d.ts +5 -0
  120. package/dist/types/components/GuidedTour.d.ts +15 -0
  121. package/dist/types/components/HelpField.d.ts +11 -0
  122. package/dist/types/components/HelpMenu.d.ts +7 -0
  123. package/dist/types/components/IconButton.d.ts +10 -0
  124. package/dist/types/components/Input.d.ts +9 -0
  125. package/dist/types/components/IntentComposer.d.ts +14 -0
  126. package/dist/types/components/Item.d.ts +6 -0
  127. package/dist/types/components/KanbanBoard.d.ts +15 -0
  128. package/dist/types/components/KanbanCard.d.ts +8 -0
  129. package/dist/types/components/Marker.d.ts +4 -0
  130. package/dist/types/components/Matrix2x2.d.ts +15 -0
  131. package/dist/types/components/Menu.d.ts +15 -0
  132. package/dist/types/components/Message.d.ts +14 -0
  133. package/dist/types/components/Modal.d.ts +9 -0
  134. package/dist/types/components/Multiselect.d.ts +18 -0
  135. package/dist/types/components/NavCard.d.ts +8 -0
  136. package/dist/types/components/NotificationBell.d.ts +11 -0
  137. package/dist/types/components/OAuthButton.d.ts +8 -0
  138. package/dist/types/components/Otp.d.ts +10 -0
  139. package/dist/types/components/PageHeader.d.ts +6 -0
  140. package/dist/types/components/Pagination.d.ts +8 -0
  141. package/dist/types/components/PersonCell.d.ts +6 -0
  142. package/dist/types/components/PhoneInput.d.ts +13 -0
  143. package/dist/types/components/PlanCard.d.ts +6 -0
  144. package/dist/types/components/Popover.d.ts +12 -0
  145. package/dist/types/components/PostalCodeInput.d.ts +12 -0
  146. package/dist/types/components/ProgressBar.d.ts +7 -0
  147. package/dist/types/components/PropertyActionGroup.d.ts +11 -0
  148. package/dist/types/components/PropertyCard.d.ts +15 -0
  149. package/dist/types/components/PropertyMedia.d.ts +15 -0
  150. package/dist/types/components/Questionnaire.d.ts +8 -0
  151. package/dist/types/components/RadioGroup.d.ts +7 -0
  152. package/dist/types/components/Range.d.ts +10 -0
  153. package/dist/types/components/ScoreGauge.d.ts +8 -0
  154. package/dist/types/components/ScrollArea.d.ts +9 -0
  155. package/dist/types/components/SectionHeader.d.ts +6 -0
  156. package/dist/types/components/Segmented.d.ts +10 -0
  157. package/dist/types/components/Select.d.ts +16 -0
  158. package/dist/types/components/SettingRow.d.ts +14 -0
  159. package/dist/types/components/SettingsSubnav.d.ts +12 -0
  160. package/dist/types/components/Skeleton.d.ts +6 -0
  161. package/dist/types/components/Slider.d.ts +9 -0
  162. package/dist/types/components/Snackbar.d.ts +6 -0
  163. package/dist/types/components/Spinner.d.ts +7 -0
  164. package/dist/types/components/SplitButton.d.ts +8 -0
  165. package/dist/types/components/Stat.d.ts +13 -0
  166. package/dist/types/components/StatusDot.d.ts +7 -0
  167. package/dist/types/components/Sticky.d.ts +15 -0
  168. package/dist/types/components/SwipeDeck.d.ts +18 -0
  169. package/dist/types/components/Switch.d.ts +10 -0
  170. package/dist/types/components/Table.d.ts +28 -0
  171. package/dist/types/components/Tabs.d.ts +7 -0
  172. package/dist/types/components/Textarea.d.ts +11 -0
  173. package/dist/types/components/Timeline.d.ts +18 -0
  174. package/dist/types/components/Toast.d.ts +20 -0
  175. package/dist/types/components/ToggleGroup.d.ts +7 -0
  176. package/dist/types/components/Tooltip.d.ts +9 -0
  177. package/dist/types/components/Trace.d.ts +11 -0
  178. package/dist/types/components/Track.d.ts +53 -0
  179. package/dist/types/components/UsageMeter.d.ts +12 -0
  180. package/dist/types/components/UserMenu.d.ts +11 -0
  181. package/dist/types/components/VisitSchedulePicker.d.ts +12 -0
  182. package/dist/types/components/VoiceRecorder.d.ts +13 -0
  183. package/dist/types/components/WizardStepper.d.ts +7 -0
  184. package/dist/types/components/WorkspaceSwitcher.d.ts +11 -0
  185. package/dist/types/components/providerIcons.d.ts +9 -0
  186. package/dist/types/hooks.d.ts +4 -0
  187. package/dist/types/icon.d.ts +14 -0
  188. package/dist/types/index.d.ts +114 -0
  189. package/dist/types/messages/en.d.ts +523 -0
  190. package/dist/types/overlay.d.ts +69 -0
  191. package/dist/types/primitives.d.ts +41 -0
  192. package/dist/types/theme.d.ts +37 -0
  193. package/package.json +108 -4
@@ -0,0 +1,103 @@
1
+ import type { ReactNode } from "react";
2
+ import type { IconButtonSize, IconButtonVariant } from "./icon-button";
3
+ export type ApprovalWorkbenchItemState = "not-started" | "in-progress" | "complete";
4
+ export interface ApprovalWorkbenchItem {
5
+ id: string;
6
+ label: string;
7
+ meta?: string;
8
+ state: ApprovalWorkbenchItemState;
9
+ }
10
+ /** Props for the ApprovalWorkbench component. */
11
+ export interface ApprovalWorkbenchCoreProps {
12
+ label?: string;
13
+ items: ApprovalWorkbenchItem[];
14
+ activeId: string;
15
+ onActiveChange: (id: string) => void;
16
+ children: ReactNode;
17
+ }
18
+ export interface TraceStep {
19
+ id: string;
20
+ title: string;
21
+ status: "pending" | "running" | "complete" | "error";
22
+ duration?: string;
23
+ detail: string;
24
+ }
25
+ /** Props for the Trace component. */
26
+ export interface TraceCoreProps {
27
+ steps: TraceStep[];
28
+ label?: string;
29
+ }
30
+ export type VisitAvailability = Record<string, string[]>;
31
+ /** Props for the VisitSchedulePicker component. */
32
+ export interface VisitSchedulePickerCoreProps {
33
+ value?: VisitAvailability;
34
+ defaultValue?: VisitAvailability;
35
+ onChange?: (value: VisitAvailability) => void;
36
+ defaultActiveDate?: Date;
37
+ minDate?: Date;
38
+ maxDate?: Date;
39
+ timezone?: string;
40
+ unavailable?: VisitAvailability;
41
+ disabled?: boolean;
42
+ }
43
+ export interface GeoNeighborhood {
44
+ id: string;
45
+ label: string;
46
+ distance: number;
47
+ }
48
+ /** Props for the GeoAreaPicker component. */
49
+ export interface GeoAreaPickerCoreProps {
50
+ neighborhoods: GeoNeighborhood[];
51
+ baseId: string;
52
+ radius?: number;
53
+ defaultRadius?: number;
54
+ minRadius?: number;
55
+ maxRadius?: number;
56
+ radiusStep?: number;
57
+ onRadiusChange?: (radius: number) => void;
58
+ includedIds?: string[];
59
+ defaultIncludedIds?: string[];
60
+ onIncludedIdsChange?: (ids: string[]) => void;
61
+ map?: ReactNode;
62
+ mapLabel?: string;
63
+ error?: string;
64
+ }
65
+ export type IntentComposerState = "idle" | "listening" | "processing" | "understood" | "error";
66
+ export interface IntentFilterOption {
67
+ value: string;
68
+ label: string;
69
+ disabled?: boolean;
70
+ }
71
+ export interface IntentFilterGroup {
72
+ id: string;
73
+ label: string;
74
+ mode: "single" | "multiple";
75
+ options: IntentFilterOption[];
76
+ }
77
+ /** Props for the IntentComposer component. */
78
+ export interface IntentComposerCoreProps {
79
+ state?: IntentComposerState;
80
+ filters?: IntentFilterGroup[];
81
+ filterValues?: Record<string, string[]>;
82
+ defaultFilterValues?: Record<string, string[]>;
83
+ onFilterValuesChange?: (values: Record<string, string[]>) => void;
84
+ value?: string;
85
+ defaultValue?: string;
86
+ onChange?: (value: string) => void;
87
+ label?: string;
88
+ placeholder?: string;
89
+ examples?: string[];
90
+ submitLabel?: string;
91
+ understoodSummary?: string;
92
+ errorMessage?: string;
93
+ onSubmit?: () => void;
94
+ onVoiceStart?: () => void;
95
+ onEditRequest?: () => void;
96
+ onEditDetails?: () => void;
97
+ leadingActions?: ReactNode;
98
+ submitIcon?: ReactNode;
99
+ voiceButtonVariant?: IconButtonVariant;
100
+ actionSize?: IconButtonSize;
101
+ showVoiceControl?: boolean;
102
+ processingContent?: ReactNode;
103
+ }
@@ -0,0 +1,422 @@
1
+ // Gerado por packages/tokens/build.mjs.
2
+ export type RefyMode = "light" | "dark" | "editorial";
3
+ export type RefyTokenName =
4
+ | "--auth-control-active"
5
+ | "--auth-control-bg"
6
+ | "--auth-control-border"
7
+ | "--auth-control-hover"
8
+ | "--auth-control-text"
9
+ | "--avatar-radius"
10
+ | "--avatar-square-radius"
11
+ | "--avatar-text"
12
+ | "--bg"
13
+ | "--border"
14
+ | "--border-soft"
15
+ | "--brand"
16
+ | "--brand-clear-space-scale"
17
+ | "--brand-copa-blue"
18
+ | "--brand-copa-green"
19
+ | "--brand-copa-yellow"
20
+ | "--brand-divider-gap-scale"
21
+ | "--brand-divider-height-scale"
22
+ | "--brand-glow"
23
+ | "--brand-gradient"
24
+ | "--brand-icon-mobile-120"
25
+ | "--brand-icon-mobile-152"
26
+ | "--brand-icon-mobile-167"
27
+ | "--brand-icon-mobile-180"
28
+ | "--brand-icon-mobile-192"
29
+ | "--brand-icon-mobile-512"
30
+ | "--brand-icon-site-128"
31
+ | "--brand-icon-site-16"
32
+ | "--brand-icon-site-32"
33
+ | "--brand-icon-site-48"
34
+ | "--brand-icon-site-64"
35
+ | "--brand-icon-site-96"
36
+ | "--brand-inverse-primary"
37
+ | "--brand-lockup-gap-scale"
38
+ | "--brand-logo-inverse"
39
+ | "--brand-logo-line-black"
40
+ | "--brand-logo-line-theme"
41
+ | "--brand-logo-line-white"
42
+ | "--brand-logo-mono"
43
+ | "--brand-logo-orange"
44
+ | "--brand-logo-solid-black"
45
+ | "--brand-logo-solid-black-bg"
46
+ | "--brand-logo-solid-black-fg"
47
+ | "--brand-logo-solid-theme"
48
+ | "--brand-logo-solid-theme-bg"
49
+ | "--brand-logo-solid-theme-end"
50
+ | "--brand-logo-solid-theme-fg"
51
+ | "--brand-logo-solid-theme-start"
52
+ | "--brand-logo-solid-white"
53
+ | "--brand-logo-solid-white-bg"
54
+ | "--brand-logo-solid-white-fg"
55
+ | "--brand-logo-solid-wordmark"
56
+ | "--brand-logo-symbol"
57
+ | "--brand-logo-wordmark"
58
+ | "--brand-on-primary"
59
+ | "--brand-on-primary-container"
60
+ | "--brand-pride-blue"
61
+ | "--brand-pride-green"
62
+ | "--brand-pride-orange"
63
+ | "--brand-pride-pink"
64
+ | "--brand-pride-purple"
65
+ | "--brand-pride-red"
66
+ | "--brand-pride-yellow"
67
+ | "--brand-primary"
68
+ | "--brand-primary-container"
69
+ | "--brand-soft"
70
+ | "--brand-trans-blue"
71
+ | "--brand-trans-pink"
72
+ | "--brand-trans-white"
73
+ | "--brand-wordmark-scale"
74
+ | "--button-border-width"
75
+ | "--button-danger-background"
76
+ | "--button-danger-background-active"
77
+ | "--button-danger-background-hover"
78
+ | "--button-danger-border"
79
+ | "--button-danger-border-hover"
80
+ | "--button-danger-foreground"
81
+ | "--button-ghost-background"
82
+ | "--button-ghost-background-active"
83
+ | "--button-ghost-background-hover"
84
+ | "--button-ghost-foreground"
85
+ | "--button-ghost-foreground-hover"
86
+ | "--button-height-md"
87
+ | "--button-height-sm"
88
+ | "--button-primary-background"
89
+ | "--button-primary-background-active"
90
+ | "--button-primary-background-hover"
91
+ | "--button-primary-border"
92
+ | "--button-primary-foreground"
93
+ | "--button-primary-foreground-active"
94
+ | "--button-primary-foreground-hover"
95
+ | "--button-primary-shadow"
96
+ | "--button-radius"
97
+ | "--button-secondary-background"
98
+ | "--button-secondary-background-active"
99
+ | "--button-secondary-background-hover"
100
+ | "--button-secondary-border"
101
+ | "--button-secondary-border-hover"
102
+ | "--button-secondary-foreground"
103
+ | "--card-background"
104
+ | "--card-border-width"
105
+ | "--card-padding"
106
+ | "--card-radius"
107
+ | "--chart-octonary"
108
+ | "--chart-primary"
109
+ | "--chart-quaternary"
110
+ | "--chart-quinary"
111
+ | "--chart-secondary"
112
+ | "--chart-senary"
113
+ | "--chart-septenary"
114
+ | "--chart-tertiary"
115
+ | "--checkbox-radius"
116
+ | "--chip-radius"
117
+ | "--code-syntax-comment"
118
+ | "--code-syntax-function"
119
+ | "--code-syntax-keyword"
120
+ | "--code-syntax-number"
121
+ | "--code-syntax-property"
122
+ | "--code-syntax-punctuation"
123
+ | "--code-syntax-string"
124
+ | "--code-syntax-tag"
125
+ | "--control-border-style"
126
+ | "--control-border-width"
127
+ | "--control-group-radius"
128
+ | "--control-radius"
129
+ | "--critical"
130
+ | "--critical-ink"
131
+ | "--critical-soft"
132
+ | "--danger"
133
+ | "--dialog-border-color"
134
+ | "--dialog-border-width"
135
+ | "--dialog-radius"
136
+ | "--dialog-shadow"
137
+ | "--dialog-surface"
138
+ | "--drawer-radius"
139
+ | "--drawer-width"
140
+ | "--duration-base"
141
+ | "--duration-fast"
142
+ | "--duration-instant"
143
+ | "--duration-mid"
144
+ | "--duration-normal"
145
+ | "--duration-progress"
146
+ | "--duration-slow"
147
+ | "--ease-emph"
148
+ | "--ease-in"
149
+ | "--ease-out"
150
+ | "--ease-spring"
151
+ | "--elev-0"
152
+ | "--elev-1"
153
+ | "--elev-2"
154
+ | "--elev-3"
155
+ | "--elev-4"
156
+ | "--elev-5"
157
+ | "--elev-d-1"
158
+ | "--elev-d-2"
159
+ | "--elev-d-3"
160
+ | "--elev-d-4"
161
+ | "--error"
162
+ | "--error-container"
163
+ | "--field-background"
164
+ | "--field-border"
165
+ | "--field-border-width"
166
+ | "--field-height"
167
+ | "--field-label-font"
168
+ | "--field-label-size"
169
+ | "--field-label-tracking"
170
+ | "--field-label-transform"
171
+ | "--field-padding-inline"
172
+ | "--field-radius"
173
+ | "--field-shadow"
174
+ | "--focus-ring"
175
+ | "--font-body"
176
+ | "--font-brand"
177
+ | "--font-heading"
178
+ | "--font-headline"
179
+ | "--font-mono"
180
+ | "--font-weight-bold"
181
+ | "--font-weight-medium"
182
+ | "--font-weight-regular"
183
+ | "--font-weight-semibold"
184
+ | "--good"
185
+ | "--good-ink"
186
+ | "--good-soft"
187
+ | "--info"
188
+ | "--info-ink"
189
+ | "--info-soft"
190
+ | "--ink-1"
191
+ | "--ink-2"
192
+ | "--ink-3"
193
+ | "--ink-4"
194
+ | "--interface-detail-font"
195
+ | "--inverse-on-surface"
196
+ | "--inverse-primary"
197
+ | "--inverse-surface"
198
+ | "--leading-normal"
199
+ | "--leading-relaxed"
200
+ | "--leading-snug"
201
+ | "--leading-tight"
202
+ | "--legacy-black"
203
+ | "--legacy-brand-soft"
204
+ | "--legacy-brand-soft-hover"
205
+ | "--legacy-brand-tint"
206
+ | "--legacy-button-shadow"
207
+ | "--legacy-critical-ring"
208
+ | "--legacy-danger-ink"
209
+ | "--legacy-danger-line"
210
+ | "--legacy-danger-line-hover"
211
+ | "--legacy-info-soft"
212
+ | "--legacy-ink-1"
213
+ | "--legacy-ink-2"
214
+ | "--legacy-ink-3"
215
+ | "--legacy-line"
216
+ | "--legacy-line-faint"
217
+ | "--legacy-line-strong"
218
+ | "--legacy-line-subtle"
219
+ | "--legacy-modal-scrim"
220
+ | "--legacy-neutral-soft"
221
+ | "--legacy-ring"
222
+ | "--legacy-surface-hover"
223
+ | "--legacy-surface-muted"
224
+ | "--legacy-switch-shadow"
225
+ | "--legacy-warn-ink"
226
+ | "--legacy-white"
227
+ | "--line"
228
+ | "--line-soft"
229
+ | "--line-strong"
230
+ | "--motion-context-duration"
231
+ | "--motion-context-exit-duration"
232
+ | "--motion-context-x"
233
+ | "--motion-context-y"
234
+ | "--motion-ease-enter"
235
+ | "--motion-ease-exit"
236
+ | "--motion-feedback-duration"
237
+ | "--motion-orientation-duration"
238
+ | "--motion-orientation-exit-duration"
239
+ | "--motion-page-duration"
240
+ | "--motion-pressed-scale"
241
+ | "--motion-reduced"
242
+ | "--navigation-link-radius"
243
+ | "--ok"
244
+ | "--ok-ink"
245
+ | "--ok-soft"
246
+ | "--on-background"
247
+ | "--on-critical"
248
+ | "--on-error"
249
+ | "--on-error-container"
250
+ | "--on-good"
251
+ | "--on-info"
252
+ | "--on-ok"
253
+ | "--on-primary"
254
+ | "--on-primary-container"
255
+ | "--on-secondary"
256
+ | "--on-secondary-container"
257
+ | "--on-surface"
258
+ | "--on-surface-variant"
259
+ | "--on-tertiary"
260
+ | "--on-tertiary-container"
261
+ | "--on-weak"
262
+ | "--outline"
263
+ | "--outline-variant"
264
+ | "--primary"
265
+ | "--primary-container"
266
+ | "--primary-fixed"
267
+ | "--primary-fixed-dim"
268
+ | "--primary-hover"
269
+ | "--primary-ink"
270
+ | "--primary-soft"
271
+ | "--radius-default"
272
+ | "--radius-full-token"
273
+ | "--radius-lg"
274
+ | "--radius-lg-token"
275
+ | "--radius-md"
276
+ | "--radius-pill"
277
+ | "--radius-sm"
278
+ | "--radius-xl"
279
+ | "--radius-xl-token"
280
+ | "--radius-xs"
281
+ | "--secondary"
282
+ | "--secondary-container"
283
+ | "--secondary-fixed"
284
+ | "--secondary-fixed-dim"
285
+ | "--shadow-1"
286
+ | "--shadow-2"
287
+ | "--shadow-card-dark"
288
+ | "--shadow-card-light"
289
+ | "--shadow-focus-ring"
290
+ | "--shadow-focus-ring-soft"
291
+ | "--shadow-glow-hover"
292
+ | "--shadow-glow-pulse"
293
+ | "--shadow-glow-soft"
294
+ | "--sidebar-width-compact"
295
+ | "--sidebar-width-expanded"
296
+ | "--sidebar-width-rail"
297
+ | "--space-1"
298
+ | "--space-10"
299
+ | "--space-12"
300
+ | "--space-16"
301
+ | "--space-2"
302
+ | "--space-20"
303
+ | "--space-24"
304
+ | "--space-3"
305
+ | "--space-4"
306
+ | "--space-5"
307
+ | "--space-6"
308
+ | "--space-7"
309
+ | "--space-8"
310
+ | "--surface"
311
+ | "--surface-2"
312
+ | "--surface-border-width"
313
+ | "--surface-bright"
314
+ | "--surface-container"
315
+ | "--surface-container-high"
316
+ | "--surface-container-highest"
317
+ | "--surface-container-low"
318
+ | "--surface-container-lowest"
319
+ | "--surface-dim"
320
+ | "--surface-tint"
321
+ | "--surface-variant"
322
+ | "--tertiary"
323
+ | "--tertiary-container"
324
+ | "--tertiary-fixed"
325
+ | "--tertiary-fixed-dim"
326
+ | "--text-2xs"
327
+ | "--text-base"
328
+ | "--text-display"
329
+ | "--text-eyebrow"
330
+ | "--text-h1"
331
+ | "--text-h2"
332
+ | "--text-h3"
333
+ | "--text-h4"
334
+ | "--text-h5"
335
+ | "--text-md"
336
+ | "--text-sm"
337
+ | "--text-xs"
338
+ | "--timeline-line"
339
+ | "--tracking-brand"
340
+ | "--tracking-breadcrumb"
341
+ | "--tracking-display"
342
+ | "--tracking-eyebrow"
343
+ | "--tracking-h3"
344
+ | "--tracking-heading"
345
+ | "--tracking-normal"
346
+ | "--tracking-uppercase"
347
+ | "--type-body-large-line"
348
+ | "--type-body-large-size"
349
+ | "--type-body-lead-line"
350
+ | "--type-body-lead-size"
351
+ | "--type-body-medium-line"
352
+ | "--type-body-medium-size"
353
+ | "--type-body-small-line"
354
+ | "--type-body-small-size"
355
+ | "--type-body-xsmall-line"
356
+ | "--type-body-xsmall-size"
357
+ | "--type-code-line"
358
+ | "--type-code-size"
359
+ | "--type-display-hero-line"
360
+ | "--type-display-hero-size"
361
+ | "--type-display-large-line"
362
+ | "--type-display-large-size"
363
+ | "--type-h1-line"
364
+ | "--type-h1-size"
365
+ | "--type-h2-line"
366
+ | "--type-h2-size"
367
+ | "--type-h3-line"
368
+ | "--type-h3-size"
369
+ | "--type-h4-line"
370
+ | "--type-h4-size"
371
+ | "--type-h5-line"
372
+ | "--type-h5-size"
373
+ | "--type-helper-line"
374
+ | "--type-helper-size"
375
+ | "--type-input-line"
376
+ | "--type-input-size"
377
+ | "--type-label-large-line"
378
+ | "--type-label-large-size"
379
+ | "--type-label-medium-line"
380
+ | "--type-label-medium-size"
381
+ | "--type-label-small-line"
382
+ | "--type-label-small-size"
383
+ | "--type-metric-large-line"
384
+ | "--type-metric-large-size"
385
+ | "--type-navigation-line"
386
+ | "--type-navigation-size"
387
+ | "--weak"
388
+ | "--weak-ink"
389
+ | "--weak-soft"
390
+ | "--weight-bold"
391
+ | "--weight-medium"
392
+ | "--weight-regular"
393
+ | "--weight-semi"
394
+ | "--weight-semibold"
395
+ | "--z-dropdown"
396
+ | "--z-modal"
397
+ | "--z-overlay"
398
+ | "--z-popover"
399
+ | "--z-sticky"
400
+ | "--z-toast"
401
+ | "--z-tooltip";
402
+ export type NativeTokenKind = 'size' | 'em' | 'duration' | 'number' | 'color' | 'easing' | 'shadow' | 'keyword' | 'fontFamily' | 'unsupported';
403
+ export type NativeTokenValue = string | number | number[];
404
+ export interface RefyTheme {
405
+ name: string;
406
+ tokens?: Partial<Record<`--${string}`, string | number>>;
407
+ modes?: Partial<Record<RefyMode, Partial<Record<`--${string}`, string | number>>>>;
408
+ }
409
+ export interface NativeTheme {
410
+ name: string;
411
+ mode: RefyMode;
412
+ values: Record<RefyTokenName, NativeTokenValue> & Record<string, NativeTokenValue>;
413
+ kinds: Record<string, NativeTokenKind>;
414
+ /** Variáveis do tema que nenhum token nem componente do Refy lê. */
415
+ unknown: string[];
416
+ }
417
+ export declare const modes: RefyMode[];
418
+ export declare const raw: Record<RefyMode, Record<RefyTokenName, string>>;
419
+ export declare const componentHooks: string[];
420
+ export declare function createNativeTheme(theme?: RefyTheme, mode?: RefyMode): NativeTheme;
421
+ /** color-mix(in srgb, …) já resolvido para hex ou rgba. */
422
+ export declare function colorMix(expression: string): string;
@@ -0,0 +1,77 @@
1
+ import type { StyleProp, ViewStyle } from "react-native";
2
+ import type { AreaChartCoreProps, BarChartCoreProps, BarChartItem, ChartLegendCoreProps, ChartTone, DonutChartCoreProps, DonutSegment, LineChartCoreProps, LineSeries, SparklineCoreProps } from "../_contracts/index";
3
+ import type { RefyContext } from "../theme";
4
+ export type { BarChartItem, ChartTone, DonutSegment, LineSeries };
5
+ type Styled = {
6
+ style?: StyleProp<ViewStyle>;
7
+ };
8
+ export interface LineChartProps extends LineChartCoreProps, Styled {
9
+ }
10
+ export interface AreaChartProps extends AreaChartCoreProps, Styled {
11
+ }
12
+ export interface BarChartProps extends BarChartCoreProps, Styled {
13
+ }
14
+ export interface DonutChartProps extends DonutChartCoreProps, Styled {
15
+ }
16
+ export interface SparklineProps extends SparklineCoreProps, Styled {
17
+ }
18
+ export interface ChartLegendProps extends ChartLegendCoreProps, Styled {
19
+ }
20
+ /** Cor do tom com a mesma cadeia de tokens da web (--chart-* e o semântico de reserva). */
21
+ export declare function chartToneColor(t: RefyContext, tone?: ChartTone | "muted"): string;
22
+ /** Geometria do LineChart, cópia da web: mesmas escalas `nice(4)`, curvas e empilhamento. */
23
+ export declare function lineChartGeometry(p: Pick<LineChartCoreProps, "data" | "series" | "label" | "max" | "stacked" | "curve" | "xLabels">, W: number, hidden?: string[]): {
24
+ allSeries: LineSeries[];
25
+ series: LineSeries[];
26
+ plotData: {
27
+ data: number[];
28
+ name: string;
29
+ tone?: ChartTone;
30
+ }[];
31
+ pointCount: number;
32
+ x: import("d3-scale").ScaleLinear<number, number, never>;
33
+ y: import("d3-scale").ScaleLinear<number, number, never>;
34
+ yTicks: number[];
35
+ xTicks: {
36
+ text: string;
37
+ at: number;
38
+ }[];
39
+ lines: string[];
40
+ areas: string[];
41
+ };
42
+ /** Legenda dos gráficos. Com `onToggle`, cada item liga e desliga a série. */
43
+ export declare function ChartLegend({ label, items, hidden, onToggle, marker, render, style }: ChartLegendProps): import("react/jsx-runtime").JSX.Element;
44
+ /**
45
+ * Gráfico de linhas com eixos, grade, legenda e tooltip, na geometria da web. Arrastar o dedo
46
+ * percorre os pontos; com leitor de tela o gráfico é ajustável, ponto a ponto.
47
+ */
48
+ export declare function LineChart({ title, showTitle, data, series: seriesProp, xLabels, pointLabels, yTitle, xTitle, formatY, max, area: showArea, showLegend, stacked, curve, label, style }: LineChartProps): import("react/jsx-runtime").JSX.Element;
49
+ export declare function AreaChart(props: AreaChartProps): import("react/jsx-runtime").JSX.Element;
50
+ /** Geometria do BarChart, cópia da web: rótulos à esquerda, régua `nice(4)` embaixo. */
51
+ export declare function barChartGeometry(items: BarChartItem[], W: number): {
52
+ barX: number;
53
+ axisY: number;
54
+ scale: import("d3-scale").ScaleLinear<number, number, never>;
55
+ ticks: number[];
56
+ bars: {
57
+ item: BarChartItem;
58
+ y: number;
59
+ width: number;
60
+ height: number;
61
+ }[];
62
+ };
63
+ /** Compara uma medida entre categorias: grade, régua de valores e valor no fim da barra. */
64
+ export declare function BarChart({ title, showTitle, items, formatValue, valueTitle, label, style }: BarChartProps): import("react/jsx-runtime").JSX.Element;
65
+ /** Arcos do DonutChart, cópia da web: cantos arredondados e fresta de 0,03 rad entre segmentos. */
66
+ export declare function donutArcs(value: number | undefined, segments?: DonutSegment[]): {
67
+ filled: number;
68
+ track: string;
69
+ paths: {
70
+ d: string;
71
+ tone: ChartTone | "muted";
72
+ }[];
73
+ };
74
+ /** Anel de progresso ou de distribuição, com valor no centro e legenda ao lado. */
75
+ export declare function DonutChart({ value, segments, centerLabel, caption, showLegend, formatValue, size, label, style }: DonutChartProps): import("react/jsx-runtime").JSX.Element;
76
+ /** Mini-linha de tendência sem eixos (100 × 28 por padrão). */
77
+ export declare function Sparkline({ data, tone, width, height, label, style }: SparklineProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import type { ViewProps } from "react-native";
2
+ import type { D3ChartProps as Props } from "./types";
3
+ import type { SceneChartProps } from "./SceneChart";
4
+ export type * from "./types";
5
+ export interface LineAreaChartProps extends Props, Omit<ViewProps, "children"> {
6
+ }
7
+ export type { SceneChartProps };
8
+ export type { ChartSlice, ChartNode, ChartNetwork } from "./d3/types";
9
+ /** line e area usam a cena nativa; as demais famílias, as cenas copiadas da web. */
10
+ export type D3ChartNativeProps = LineAreaChartProps | (SceneChartProps & Omit<ViewProps, "children">);
11
+ export declare function D3Chart(input: D3ChartNativeProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import type { ViewProps } from "react-native";
2
+ import type { ChartLayout, ChartScene, D3ChartProps as WebProps } from "./d3/types";
3
+ type WebOnly = "zoom" | "brush" | "stream" | "renderMark" | "renderOverlay" | "className" | "style";
4
+ type DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;
5
+ /** Famílias além de line e area, com o contrato de dados da web. */
6
+ type WithoutLineArea<T> = T extends {
7
+ type: infer K;
8
+ } ? ([Exclude<K, "line" | "area">] extends [never] ? never : Omit<T, "type"> & {
9
+ type: Exclude<K, "line" | "area">;
10
+ }) : never;
11
+ export type SceneChartProps = WithoutLineArea<DistributiveOmit<WebProps, WebOnly>>;
12
+ /** Cena da web para as famílias não line/area, com as mesmas regras de erro da web. */
13
+ export declare function sceneFor(props: SceneChartProps, layout: ChartLayout, suppressed: string[]): ChartScene;
14
+ /**
15
+ * As famílias de barra, dispersão, radiais, hierarquias, relações e mapa, com a geometria das
16
+ * cenas da web (cópia fiel em ./d3). Tocar ou arrastar escolhe a marca mais próxima.
17
+ */
18
+ export declare function SceneChart(input: SceneChartProps & Omit<ViewProps, "children">): import("react/jsx-runtime").JSX.Element;
19
+ export {};
@@ -0,0 +1,4 @@
1
+ import type { RefyMessages } from "../../messages/en";
2
+ import type { ChartCurve, ChartLayout, ChartScene, ChartViewport, D3ChartProps } from "./types";
3
+ export declare const resolveCurve: (curve?: ChartCurve) => import("d3-shape").CurveFactory;
4
+ export declare function cartesianScene(props: D3ChartProps, layout: ChartLayout, hidden: string[], viewport?: ChartViewport, text?: RefyMessages["d3Chart"]): ChartScene;
@@ -0,0 +1,3 @@
1
+ import type { RefyMessages } from "../../messages/en";
2
+ import type { ChartLayout, ChartScene, D3ChartProps } from "./types";
3
+ export declare function hierarchyScene(props: D3ChartProps, layout: ChartLayout, hidden: string[], text?: RefyMessages["d3Chart"]): ChartScene;
@@ -0,0 +1,3 @@
1
+ import type { RefyMessages } from "../../messages/en";
2
+ import type { ChartLayout, ChartScene, D3ChartProps } from "./types";
3
+ export declare function radialScene(props: D3ChartProps, layout: ChartLayout, hidden: string[], text?: RefyMessages["d3Chart"]): ChartScene;
@@ -0,0 +1,3 @@
1
+ import type { RefyMessages } from "../../messages/en";
2
+ import type { ChartLayout, ChartScene, D3ChartProps } from "./types";
3
+ export declare function relationScene(props: D3ChartProps, layout: ChartLayout, hidden: string[], text?: RefyMessages["d3Chart"]): ChartScene;
@@ -0,0 +1,21 @@
1
+ import type { ReactNode } from "react";
2
+ import type { ChartAxis, ChartLayout, ChartOptions, ChartX, ChartViewport } from "./types";
3
+ export declare const palette: string[];
4
+ export declare const colorAt: (index: number, colors?: string[]) => string;
5
+ export declare const keyX: (value: ChartX) => string;
6
+ export declare const formatX: (value: ChartX, locale?: string) => string;
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 axes(layout: ChartLayout, x: {
15
+ at: (value: ChartX) => number;
16
+ ticks: ChartX[];
17
+ }, y: ReturnType<typeof numericScale>, options: ChartOptions): ReactNode;
18
+ export declare function finite(values: number[]): void;
19
+ export declare function uniqueIds(items: {
20
+ id: string;
21
+ }[]): void;
@@ -0,0 +1,10 @@
1
+ declare const styles: {
2
+ readonly axes: "axes";
3
+ readonly grid: "grid";
4
+ readonly axisLine: "axisLine";
5
+ readonly links: "links";
6
+ readonly markLabel: "markLabel";
7
+ readonly track: "track";
8
+ readonly centerValue: "centerValue";
9
+ };
10
+ export default styles;