@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,26 @@
1
+ import type { ReactNode } from "react";
2
+ /** Props for the ConnectorCard integration row. */
3
+ export interface ConnectorCardCoreProps {
4
+ /**
5
+ * Logo do serviço (slot — SVG real do serviço, nunca bundleado no DS).
6
+ * Renderizado num quadrado 40px com borda neutra.
7
+ */
8
+ logo?: ReactNode;
9
+ /** Nome do serviço/conexão. */
10
+ name: ReactNode;
11
+ /** Status ao lado do nome (slot — `Badge` "Conectado", `StatusDot`…). */
12
+ status?: ReactNode;
13
+ /** Descrição curta do que a integração faz. */
14
+ description?: ReactNode;
15
+ /** Linha mono de metadados (conta, nº de sites, último sync). */
16
+ meta?: ReactNode;
17
+ /** Ações à direita (slot — `Button` "Conectar"/"Configurar", `Menu`…). */
18
+ actions?: ReactNode;
19
+ /**
20
+ * Bloqueado pelo plano (upsell): superfície apagada; `lockHint` substitui
21
+ * as ações (ex.: `Badge` "Plano Growth" + `Button` de upgrade).
22
+ */
23
+ locked?: boolean;
24
+ /** Conteúdo exibido no lugar das ações quando `locked`. */
25
+ lockHint?: ReactNode;
26
+ }
@@ -0,0 +1,83 @@
1
+ import type { ReactNode } from "react";
2
+ export interface CarouselItem {
3
+ id: string;
4
+ label: string;
5
+ content: ReactNode;
6
+ }
7
+ /** Props for the Carousel component. */
8
+ export interface CarouselCoreProps {
9
+ items: CarouselItem[];
10
+ label?: string;
11
+ index?: number;
12
+ defaultIndex?: number;
13
+ onIndexChange?: (index: number) => void;
14
+ }
15
+ /** Props for the Message row. */
16
+ export interface MessageCoreProps {
17
+ author: string;
18
+ initials?: string;
19
+ time?: string;
20
+ side?: "start" | "end";
21
+ children: ReactNode;
22
+ }
23
+ /** Props for the MessageScroller log. */
24
+ export interface MessageScrollerCoreProps {
25
+ children: ReactNode;
26
+ label?: string;
27
+ maxHeight?: number;
28
+ }
29
+ /** Props for the CodeBlock component. A cópia para a área de transferência é do app no nativo. */
30
+ export interface CodeBlockCoreProps {
31
+ code: string;
32
+ children?: ReactNode;
33
+ label?: ReactNode;
34
+ language?: string;
35
+ secret?: boolean;
36
+ visibleChars?: number;
37
+ copyLabel?: string;
38
+ copiedLabel?: string;
39
+ revealLabel?: string;
40
+ hideLabel?: string;
41
+ onCopy?: (code: string) => void;
42
+ wrap?: boolean;
43
+ }
44
+ /** Props for the BillingCard component. */
45
+ export interface BillingCardCoreProps {
46
+ brandIcon?: ReactNode;
47
+ methodLabel: ReactNode;
48
+ lastDigits?: string;
49
+ methodMeta?: ReactNode;
50
+ status?: ReactNode;
51
+ nextChargeLabel?: ReactNode;
52
+ nextChargeAmount?: ReactNode;
53
+ nextChargeDate?: ReactNode;
54
+ actions?: ReactNode;
55
+ elevation?: 0 | 1 | 2;
56
+ }
57
+ /** Props for the PlanCard component. */
58
+ export interface PlanCardCoreProps {
59
+ name: ReactNode;
60
+ price: ReactNode;
61
+ period?: ReactNode;
62
+ priceNote?: ReactNode;
63
+ features?: ReactNode[];
64
+ checkIcon?: ReactNode;
65
+ cta?: ReactNode;
66
+ current?: boolean;
67
+ currentLabel?: string;
68
+ highlighted?: boolean;
69
+ highlightLabel?: string;
70
+ }
71
+ /** Props for the DangerZone container. */
72
+ export interface DangerZoneCoreProps {
73
+ title?: ReactNode;
74
+ children: ReactNode;
75
+ }
76
+ /** Props for a destructive action row inside DangerZone. */
77
+ export interface DangerZoneRowCoreProps {
78
+ title: ReactNode;
79
+ description?: ReactNode;
80
+ actionLabel: ReactNode;
81
+ onConfirm?: () => void;
82
+ disabled?: boolean;
83
+ }
@@ -0,0 +1,12 @@
1
+ import type { ReactNode } from "react";
2
+ export type DividerOrientation = "horizontal" | "vertical";
3
+ export type DividerSpacing = "none" | "sm" | "md" | "lg";
4
+ /** Props for the Divider component. */
5
+ export interface DividerCoreProps {
6
+ /** Direção do separador (padrão: horizontal). */
7
+ orientation?: DividerOrientation;
8
+ /** Rótulo central opcional (ex.: "ou"). Só vale na horizontal. */
9
+ label?: ReactNode;
10
+ /** Margem externa no eixo do fluxo (padrão: "md"). */
11
+ spacing?: DividerSpacing;
12
+ }
@@ -0,0 +1,13 @@
1
+ import type { ReactNode } from "react";
2
+ /** Props for the EmptyState component. */
3
+ export interface EmptyStateCoreProps {
4
+ /** Ícone dentro do quadro (via prop, nunca bundleado). */
5
+ icon?: ReactNode;
6
+ title: ReactNode;
7
+ /** Copy explicativa (máx ~36ch). */
8
+ message?: ReactNode;
9
+ /** CTA opcional (ex.: <Button>Limpar filtros</Button>). */
10
+ action?: ReactNode;
11
+ /** Borda dashed em volta, indicando ausência. Padrão `true`. */
12
+ bordered?: boolean;
13
+ }
@@ -0,0 +1,13 @@
1
+ import type { ReactNode } from "react";
2
+ export type FabSize = "md" | "lg";
3
+ export type FabVariant = "primary" | "surface";
4
+ /** Props for the floating action button. */
5
+ export interface FabCoreProps {
6
+ /** Ícone (obrigatório — é o sujeito do FAB). */
7
+ icon: ReactNode;
8
+ /** Se presente e `extended`, vira FAB estendido com texto. */
9
+ label?: string;
10
+ extended?: boolean;
11
+ size?: FabSize;
12
+ variant?: FabVariant;
13
+ }
@@ -0,0 +1,41 @@
1
+ import type { ReactNode } from "react";
2
+ export interface PhoneCountry {
3
+ code: string;
4
+ name: string;
5
+ callingCode: string;
6
+ flag: string;
7
+ }
8
+ /** Props for the PhoneInput field. */
9
+ export interface PhoneInputCoreProps {
10
+ label?: string;
11
+ hint?: string;
12
+ error?: string;
13
+ country?: string;
14
+ countries?: PhoneCountry[];
15
+ onCountryChange?: (country: PhoneCountry) => void;
16
+ }
17
+ export interface PostalCodeAddress {
18
+ postalCode: string;
19
+ street: string;
20
+ neighborhood: string;
21
+ city: string;
22
+ state: string;
23
+ }
24
+ /** Props for the PostalCodeInput field. */
25
+ export interface PostalCodeInputCoreProps {
26
+ value: string;
27
+ lookup: (postalCode: string) => Promise<PostalCodeAddress | null>;
28
+ onAddressFound: (address: PostalCodeAddress) => void;
29
+ name?: string;
30
+ error?: string;
31
+ disabled?: boolean;
32
+ }
33
+ /** Props for the HelpField form-row wrapper. `htmlFor` é do DOM e fica só na web. */
34
+ export interface HelpFieldCoreProps {
35
+ label: string;
36
+ helpText: string;
37
+ children: ReactNode;
38
+ onLearnMore?: () => void;
39
+ learnMoreLabel?: string;
40
+ side?: "top" | "bottom" | "left" | "right";
41
+ }
@@ -0,0 +1,67 @@
1
+ import type { ReactNode } from "react";
2
+ import type { PopoverAlign, PopoverSide } from "./overlay";
3
+ export interface Question {
4
+ id: string;
5
+ title: string;
6
+ description?: string;
7
+ options?: {
8
+ value: string;
9
+ label: string;
10
+ }[];
11
+ required?: boolean;
12
+ }
13
+ /** Props for the Questionnaire component. */
14
+ export interface QuestionnaireCoreProps {
15
+ questions: Question[];
16
+ onSubmit: (answers: Record<string, string>) => void;
17
+ }
18
+ export interface GuidedTourAction {
19
+ label: string;
20
+ onAction: () => void;
21
+ advance?: boolean;
22
+ }
23
+ export interface GuidedTourStep {
24
+ id: string;
25
+ title: string;
26
+ description: ReactNode;
27
+ side?: PopoverSide;
28
+ align?: PopoverAlign;
29
+ action?: GuidedTourAction;
30
+ }
31
+ /** Props for the GuidedTour component. */
32
+ export interface GuidedTourCoreProps {
33
+ steps: GuidedTourStep[];
34
+ open?: boolean;
35
+ defaultOpen?: boolean;
36
+ onOpenChange?: (open: boolean) => void;
37
+ currentStep?: string;
38
+ defaultStep?: string;
39
+ onStepChange?: (id: string) => void;
40
+ onComplete?: () => void;
41
+ children: ReactNode;
42
+ }
43
+ /** Props for the GuidedTourAnchor component. */
44
+ export interface GuidedTourAnchorCoreProps {
45
+ stepId: string;
46
+ children: ReactNode;
47
+ block?: boolean;
48
+ }
49
+ export interface CoverflowItem {
50
+ id: string;
51
+ label: string;
52
+ }
53
+ /** Props for the Coverflow component. */
54
+ export interface CoverflowCoreProps<T extends CoverflowItem = CoverflowItem> {
55
+ items: readonly T[];
56
+ renderItem: (item: T, state: {
57
+ selected: boolean;
58
+ index: number;
59
+ }) => ReactNode;
60
+ selectedId?: string;
61
+ defaultSelectedId?: string;
62
+ onSelectionChange?: (id: string) => void;
63
+ onActivate?: (item: T) => void;
64
+ label?: string;
65
+ disabled?: boolean;
66
+ emptyContent?: ReactNode;
67
+ }
@@ -0,0 +1,9 @@
1
+ import type { ReactNode } from "react";
2
+ export type IconButtonVariant = "ghost" | "outline" | "solid";
3
+ export type IconButtonSize = "sm" | "md" | "lg";
4
+ /** Props for icon-only buttons. */
5
+ export interface IconButtonCoreProps {
6
+ icon: ReactNode;
7
+ variant?: IconButtonVariant;
8
+ size?: IconButtonSize;
9
+ }
@@ -0,0 +1,62 @@
1
+ export type { ButtonVariant, ButtonSize, ButtonStatus, ButtonProgressEffect, ButtonCoreProps } from "./button";
2
+ export type { BadgeTone, BadgeCoreProps } from "./badge";
3
+ export type { BrandLogoBrand, BrandLogoSize, BrandLogoCoreProps } from "./brand-logo";
4
+ export type { CardTone, CardCoreProps, CardHeaderCoreProps } from "./card";
5
+ export type { ConnectorCardCoreProps } from "./connector-card";
6
+ export type { EmptyStateCoreProps } from "./empty-state";
7
+ export type { ItemCoreProps } from "./item";
8
+ export type { PageHeaderCoreProps } from "./page-header";
9
+ export type { ProgressTone, ProgressBarCoreProps } from "./progress-bar";
10
+ export type { StatSize, StatTrend, StatDeltaSentiment, StatDelta, StatCoreProps, StatGroupCoreProps } from "./stat";
11
+ export type { ScrollAreaCoreProps } from "./scroll-area";
12
+ export type { InputCoreProps } from "./input";
13
+ export type { TextareaCoreProps } from "./textarea";
14
+ export type { SelectCoreProps } from "./select";
15
+ export type { SettingRowCoreProps, SettingRowGroupCoreProps } from "./setting-row";
16
+ export type { ChoiceCardMode, ChoiceCardGroupCoreProps, ChoiceCardCoreProps } from "./choice-card";
17
+ export type { SegmentedOption, SegmentedCoreProps } from "./segmented";
18
+ export type { TabItem, TabsCoreProps } from "./tabs";
19
+ export type { WizardStep, WizardStepperCoreProps } from "./wizard-stepper";
20
+ export type { ModalCoreProps } from "./modal";
21
+ export type { ToastTone, ToastData, ToastCoreProps, ToastRegionCoreProps } from "./toast";
22
+ export type { OAuthProvider, OAuthButtonCoreProps } from "./oauth-button";
23
+ export type { ChipTone, ChipSelectionMode, ChipCoreProps } from "./chip";
24
+ export type { IconButtonVariant, IconButtonSize, IconButtonCoreProps } from "./icon-button";
25
+ export type { AvatarSize, AvatarShape, AvatarCoreProps } from "./avatar";
26
+ export type { FabSize, FabVariant, FabCoreProps } from "./fab";
27
+ export type { DividerOrientation, DividerSpacing, DividerCoreProps } from "./divider";
28
+ export type { SkeletonCoreProps } from "./skeleton";
29
+ export type { StatusDotTone, StatusDotCoreProps } from "./status-dot";
30
+ export type { SwitchCoreProps } from "./switch";
31
+ export type { CheckboxCoreProps } from "./checkbox";
32
+ export type { RadioOption, RadioGroupCoreProps } from "./radio-group";
33
+ export type { AspectRatioCoreProps } from "./aspect-ratio";
34
+ export type { BubbleCoreProps } from "./bubble";
35
+ export type { ToggleOption, ToggleGroupCoreProps } from "./toggle-group";
36
+ export type { PaginationCoreProps } from "./pagination";
37
+ export type { OtpCoreProps } from "./otp";
38
+ export type { SliderCoreProps, RangeValue, RangeCoreProps } from "./slider";
39
+ export type { AccordionItem, AccordionCoreProps, CollapsibleCoreProps } from "./accordion";
40
+ export type { CalloutTone, CalloutCoreProps } from "./callout";
41
+ export type { ButtonGroupCoreProps } from "./button-group";
42
+ export type { AvatarGroupItem, AvatarGroupCoreProps } from "./avatar-group";
43
+ export type { SectionHeaderCoreProps } from "./section-header";
44
+ export type { ActivityActorCore, ActivityItemCoreProps } from "./activity-item";
45
+ export type { PersonCellCoreProps } from "./person-cell";
46
+ export type { NavCardCoreProps } from "./nav-card";
47
+ export type { UsageMeterCoreProps, UsageMeterGroupCoreProps } from "./usage-meter";
48
+ export type { ScoreGaugeSize, ScoreBand, ScoreGaugeCoreProps } from "./score-gauge";
49
+ export type { StickyBarCoreProps, StickyFooterCoreProps } from "./sticky";
50
+ export type { PopoverSide, PopoverAlign, PopoverCoreProps, TooltipCoreProps, MenuEntry, MenuCoreProps, ContextMenuCoreProps, SnackbarCoreProps, SplitButtonOption, SplitButtonVariant, SplitButtonCoreProps, FabMenuAction, FabMenuCoreProps, } from "./overlay";
51
+ export type { CalendarMode, DateRange, CalendarCoreProps, DatePickerCoreProps } from "./calendar";
52
+ export type { PhoneCountry, PhoneInputCoreProps, PostalCodeAddress, PostalCodeInputCoreProps, HelpFieldCoreProps } from "./form-fields";
53
+ export type { ComboboxOptionAvatar, ComboboxOption, ComboboxCoreProps, MultiselectOption, MultiselectCoreProps } from "./combobox";
54
+ export type { CarouselItem, CarouselCoreProps, MessageCoreProps, MessageScrollerCoreProps, CodeBlockCoreProps, BillingCardCoreProps, PlanCardCoreProps, DangerZoneCoreProps, DangerZoneRowCoreProps } from "./content";
55
+ export type { UserMenuUser, UserMenuCoreProps, HelpMenuCoreProps, NotificationItem, NotificationBellCoreProps, Workspace, WorkspaceSwitcherCoreProps, SettingsSubnavItem, SettingsSubnavGroup, SettingsSubnavCoreProps, KanbanCardItem, KanbanCardCoreProps, PropertyAction, PropertyActionGroupState, PropertyActionGroupCoreProps, PropertyMediaItem, PropertyMediaCoreProps } from "./account";
56
+ export type { FileUploadState, FileUploadCoreProps, VoiceRecorderState, VoiceRecorderCoreProps } from "./capture";
57
+ export type { AlertDialogCoreProps, DrawerSide, DrawerCoreProps, TimelineMilestone, TimelineCoreProps, TimelineEventCore, EventTimelineCoreProps, PropertyCardLayout, PropertyCardBadge, PropertyCardFact, PropertyCardCoreProps, MatrixPoint, Matrix2x2CoreProps } from "./organisms";
58
+ export type { TableColumnCore, TablePagination, TableCoreProps } from "./table";
59
+ export type { KanbanColumnItem, KanbanBoardCoreProps, SwipeDeckItemCore, SwipeDeckCoreProps } from "./boards";
60
+ export type { Question, QuestionnaireCoreProps, GuidedTourAction, GuidedTourStep, GuidedTourCoreProps, GuidedTourAnchorCoreProps, CoverflowItem, CoverflowCoreProps } from "./guided";
61
+ export type { ApprovalWorkbenchItemState, ApprovalWorkbenchItem, ApprovalWorkbenchCoreProps, TraceStep, TraceCoreProps, VisitAvailability, VisitSchedulePickerCoreProps, GeoNeighborhood, GeoAreaPickerCoreProps, IntentComposerState, IntentFilterOption, IntentFilterGroup, IntentComposerCoreProps } from "./workflow";
62
+ export type { ChartTone, LineSeries, LineChartCoreProps, AreaChartCoreProps, BarChartItem, BarChartCoreProps, DonutSegment, DonutChartCoreProps, SparklineCoreProps, ChartLegendItem, ChartLegendCoreProps } from "./charts";
@@ -0,0 +1,15 @@
1
+ import type { ReactNode } from "react";
2
+ /** Props for the text Input field. */
3
+ export interface InputCoreProps {
4
+ /** Rótulo mono uppercase acima do campo. */
5
+ label?: string;
6
+ /** Texto de apoio abaixo do campo. */
7
+ hint?: string;
8
+ /** Mensagem de erro (substitui hint e pinta a borda). */
9
+ error?: string;
10
+ /** Conteúdo fixo à esquerda (ícone ou prefixo tipo "example.com/"). */
11
+ prefix?: ReactNode;
12
+ /** Conteúdo fixo à direita (ícone ou sufixo). */
13
+ suffix?: ReactNode;
14
+ block?: boolean;
15
+ }
@@ -0,0 +1,11 @@
1
+ import type { ReactNode } from "react";
2
+ export interface ItemCoreProps {
3
+ title: string;
4
+ description?: ReactNode;
5
+ media?: ReactNode;
6
+ actions?: ReactNode;
7
+ onClick?: () => void;
8
+ selected?: boolean;
9
+ /** Remove a superfície para compor metadados dentro de outra superfície. */
10
+ variant?: 'default' | 'plain';
11
+ }
@@ -0,0 +1,18 @@
1
+ import type { ReactNode } from "react";
2
+ /** Props for the Modal dialog. */
3
+ export interface ModalCoreProps {
4
+ role?: "dialog" | "alertdialog";
5
+ hideCloseButton?: boolean;
6
+ closeOnBackdrop?: boolean;
7
+ ariaDescribedBy?: string;
8
+ open: boolean;
9
+ onClose: () => void;
10
+ title?: ReactNode;
11
+ /** Nome acessível quando não há título visível. */
12
+ ariaLabel?: string;
13
+ /** Ações do rodapé (botões). Sem rodapé se ausente. */
14
+ footer?: ReactNode;
15
+ /** Largura máxima em px. Default 520. */
16
+ width?: number;
17
+ children: ReactNode;
18
+ }
@@ -0,0 +1,12 @@
1
+ import type { ReactNode } from "react";
2
+ /** Props for the NavCard component. */
3
+ export interface NavCardCoreProps {
4
+ title: ReactNode;
5
+ description?: ReactNode;
6
+ meta?: ReactNode;
7
+ leading?: ReactNode;
8
+ disabled?: boolean;
9
+ current?: boolean;
10
+ variant?: "solid" | "dashed";
11
+ showChevron?: boolean;
12
+ }
@@ -0,0 +1,8 @@
1
+ import type { ButtonCoreProps } from "./button";
2
+ /** Provedores com rótulo e símbolo prontos. A aplicação fornece o fluxo OAuth. */
3
+ export type OAuthProvider = "google" | "facebook" | "linkedin" | "spotify" | "github" | "x" | "apple" | "microsoft";
4
+ /** Composição de Button. Não abre janelas nem armazena credenciais. */
5
+ export interface OAuthButtonCoreProps extends Omit<ButtonCoreProps, "variant" | "leadingIcon"> {
6
+ /** Provedor identificado pelo rótulo e símbolo. A aplicação fornece o fluxo OAuth. */
7
+ provider: OAuthProvider;
8
+ }
@@ -0,0 +1,133 @@
1
+ import type { ReactNode } from "react";
2
+ import type { ActivityActorCore } from "./activity-item";
3
+ import type { BadgeTone } from "./badge";
4
+ import type { StatusDotTone } from "./status-dot";
5
+ /** Props for the AlertDialog component. */
6
+ export interface AlertDialogCoreProps {
7
+ open: boolean;
8
+ onOpenChange: (open: boolean) => void;
9
+ title: string;
10
+ children: ReactNode;
11
+ onConfirm: () => void;
12
+ confirmLabel?: string;
13
+ cancelLabel?: string;
14
+ destructive?: boolean;
15
+ pending?: boolean;
16
+ }
17
+ export type DrawerSide = "left" | "right" | "bottom" | "full";
18
+ /** Props for the Drawer component. */
19
+ export interface DrawerCoreProps {
20
+ modal?: boolean;
21
+ open: boolean;
22
+ onOpenChange: (open: boolean) => void;
23
+ side?: DrawerSide;
24
+ title?: ReactNode;
25
+ footer?: ReactNode;
26
+ children: ReactNode;
27
+ hideClose?: boolean;
28
+ }
29
+ export interface TimelineMilestone {
30
+ id: string;
31
+ timestamp: Date | string;
32
+ title: ReactNode;
33
+ description?: ReactNode;
34
+ media?: ReactNode;
35
+ action?: ReactNode;
36
+ status?: "completed" | "current" | "upcoming";
37
+ }
38
+ /** Props for the Timeline (marcos de uma jornada). */
39
+ export interface TimelineCoreProps {
40
+ items: TimelineMilestone[];
41
+ title?: ReactNode;
42
+ description?: ReactNode;
43
+ orientation?: "vertical" | "horizontal";
44
+ locale?: string;
45
+ timezone?: string;
46
+ emptyMessage?: ReactNode;
47
+ }
48
+ export interface TimelineEventCore {
49
+ id: string;
50
+ timestamp: Date | string;
51
+ title: ReactNode;
52
+ description?: ReactNode;
53
+ actor?: ActivityActorCore;
54
+ icon?: ReactNode;
55
+ metadata?: ReactNode;
56
+ status?: {
57
+ label: ReactNode;
58
+ tone?: StatusDotTone;
59
+ pulse?: boolean;
60
+ };
61
+ badge?: {
62
+ label: ReactNode;
63
+ tone?: BadgeTone;
64
+ };
65
+ action?: ReactNode;
66
+ }
67
+ /** Props for the EventTimeline (histórico de atividades), sem a lista de eventos. */
68
+ export interface EventTimelineCoreProps {
69
+ title?: ReactNode;
70
+ context?: ReactNode;
71
+ locale?: string;
72
+ timezone?: string;
73
+ error?: string;
74
+ onRetry?: () => void;
75
+ emptyTitle?: ReactNode;
76
+ emptyMessage?: ReactNode;
77
+ density?: "default" | "compact";
78
+ showHeader?: boolean;
79
+ groupByDate?: boolean;
80
+ }
81
+ export type PropertyCardLayout = "grid" | "list" | "deck";
82
+ export interface PropertyCardBadge {
83
+ label: ReactNode;
84
+ tone?: BadgeTone;
85
+ }
86
+ export interface PropertyCardFact {
87
+ label: string;
88
+ value: ReactNode;
89
+ }
90
+ /** Props for the PropertyCard component, sem `mediaProps` e `actions`. */
91
+ export interface PropertyCardCoreProps {
92
+ title: ReactNode;
93
+ subtitle?: ReactNode;
94
+ value?: ReactNode;
95
+ valueSuffix?: ReactNode;
96
+ address?: ReactNode;
97
+ price?: ReactNode;
98
+ priceSuffix?: ReactNode;
99
+ media: {
100
+ src: string;
101
+ alt: string;
102
+ }[];
103
+ layout?: PropertyCardLayout;
104
+ matchScore?: number;
105
+ badges?: PropertyCardBadge[];
106
+ facts?: PropertyCardFact[];
107
+ summary?: ReactNode;
108
+ headerAction?: ReactNode;
109
+ detailsAction?: ReactNode;
110
+ }
111
+ export interface MatrixPoint {
112
+ id: string;
113
+ label: string;
114
+ x: number;
115
+ y: number;
116
+ prioritized?: boolean;
117
+ }
118
+ /** Props for the Matrix2x2 component. */
119
+ export interface Matrix2x2CoreProps {
120
+ points: MatrixPoint[];
121
+ xLabel?: string;
122
+ yLabel?: string;
123
+ quadrants?: {
124
+ topLeft?: ReactNode;
125
+ topRight?: ReactNode;
126
+ bottomLeft?: ReactNode;
127
+ bottomRight?: ReactNode;
128
+ };
129
+ legend?: [string, string];
130
+ selectedId?: string | null;
131
+ defaultSelectedId?: string | null;
132
+ onPointClick?: (point: MatrixPoint | null) => void;
133
+ }
@@ -0,0 +1,23 @@
1
+ /** Props for the OTP input group. */
2
+ export interface OtpCoreProps {
3
+ /** Quantidade de dígitos. Padrão 6. */
4
+ length?: number;
5
+ /** Separador "—" a cada N dígitos. */
6
+ groupSize?: number;
7
+ /** Código controlado. */
8
+ value?: string;
9
+ /** Código inicial (não-controlado). */
10
+ defaultValue?: string;
11
+ /** Disparado a cada digitação com o código atual. */
12
+ onChange?: (code: string) => void;
13
+ /** Disparado quando todos os dígitos são preenchidos. */
14
+ onComplete?: (code: string) => void;
15
+ /** Aceita letras além de números. */
16
+ alphanumeric?: boolean;
17
+ /** Rótulo acessível do grupo. */
18
+ label?: string;
19
+ error?: string;
20
+ disabled?: boolean;
21
+ /** Foca o primeiro campo ao montar. */
22
+ autoFocus?: boolean;
23
+ }