@juninmd/sonido 0.0.0-stage → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +164 -2
- package/dist/components/Accordion/Accordion.d.ts +16 -0
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/AgendaRail/AgendaRail.d.ts +38 -0
- package/dist/components/AgendaRail/index.d.ts +1 -0
- package/dist/components/Alert/Alert.d.ts +12 -0
- package/dist/components/Alert/index.d.ts +1 -0
- package/dist/components/AlertCard/AlertCard.d.ts +126 -0
- package/dist/components/AlertCard/index.d.ts +1 -0
- package/dist/components/AlertCard/scenes.d.ts +33 -0
- package/dist/components/AmbientBackdrop/AmbientBackdrop.d.ts +12 -0
- package/dist/components/AmbientBackdrop/index.d.ts +1 -0
- package/dist/components/Artwork/Artwork.d.ts +13 -0
- package/dist/components/Artwork/index.d.ts +1 -0
- package/dist/components/Avatar/Avatar.d.ts +23 -0
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/Badge/Badge.d.ts +14 -0
- package/dist/components/Badge/index.d.ts +1 -0
- package/dist/components/BarChart/BarChart.d.ts +17 -0
- package/dist/components/BarChart/index.d.ts +1 -0
- package/dist/components/BatteryMeter/BatteryMeter.d.ts +13 -0
- package/dist/components/BatteryMeter/index.d.ts +1 -0
- package/dist/components/Bento/Bento.d.ts +11 -0
- package/dist/components/Bento/index.d.ts +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +12 -0
- package/dist/components/Breadcrumb/index.d.ts +1 -0
- package/dist/components/Button/Button.d.ts +17 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Card/Card.d.ts +17 -0
- package/dist/components/Card/index.d.ts +1 -0
- package/dist/components/Carousel/Carousel.d.ts +14 -0
- package/dist/components/Carousel/index.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +12 -0
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/CommandPalette/CommandPalette.d.ts +23 -0
- package/dist/components/CommandPalette/index.d.ts +1 -0
- package/dist/components/ConfirmButton/ConfirmButton.d.ts +15 -0
- package/dist/components/ConfirmButton/index.d.ts +1 -0
- package/dist/components/CountUp/CountUp.d.ts +11 -0
- package/dist/components/CountUp/index.d.ts +1 -0
- package/dist/components/DataTable/DataTable.d.ts +21 -0
- package/dist/components/DataTable/index.d.ts +1 -0
- package/dist/components/Dialog/Dialog.d.ts +16 -0
- package/dist/components/Dialog/index.d.ts +1 -0
- package/dist/components/Dock/Dock.d.ts +23 -0
- package/dist/components/Dock/index.d.ts +1 -0
- package/dist/components/Duel/Duel.d.ts +19 -0
- package/dist/components/Duel/index.d.ts +1 -0
- package/dist/components/EmojiBurst/EmojiBurst.d.ts +11 -0
- package/dist/components/EmojiBurst/index.d.ts +1 -0
- package/dist/components/EmptyState/EmptyState.d.ts +12 -0
- package/dist/components/EmptyState/index.d.ts +1 -0
- package/dist/components/FilterChips/FilterChips.d.ts +20 -0
- package/dist/components/FilterChips/index.d.ts +1 -0
- package/dist/components/Heatmap/Heatmap.d.ts +16 -0
- package/dist/components/Heatmap/index.d.ts +1 -0
- package/dist/components/Hero/Hero.d.ts +18 -0
- package/dist/components/Hero/index.d.ts +1 -0
- package/dist/components/HourlyForecast/HourlyForecast.d.ts +19 -0
- package/dist/components/HourlyForecast/index.d.ts +1 -0
- package/dist/components/Island/Island.d.ts +52 -0
- package/dist/components/Island/IslandWidgets.d.ts +110 -0
- package/dist/components/Island/icons.d.ts +18 -0
- package/dist/components/Island/index.d.ts +3 -0
- package/dist/components/Kbd/Kbd.d.ts +4 -0
- package/dist/components/Kbd/index.d.ts +1 -0
- package/dist/components/LiveBadge/LiveBadge.d.ts +20 -0
- package/dist/components/LiveBadge/index.d.ts +1 -0
- package/dist/components/Menu/Menu.d.ts +24 -0
- package/dist/components/Menu/index.d.ts +1 -0
- package/dist/components/MeterCard/MeterCard.d.ts +32 -0
- package/dist/components/MeterCard/index.d.ts +1 -0
- package/dist/components/Motion/Motion.d.ts +13 -0
- package/dist/components/Motion/index.d.ts +1 -0
- package/dist/components/NavRail/NavRail.d.ts +25 -0
- package/dist/components/NavRail/index.d.ts +1 -0
- package/dist/components/Odometer/Odometer.d.ts +9 -0
- package/dist/components/Odometer/index.d.ts +1 -0
- package/dist/components/PageHeader/PageHeader.d.ts +22 -0
- package/dist/components/PageHeader/index.d.ts +1 -0
- package/dist/components/Pagination/Pagination.d.ts +14 -0
- package/dist/components/Pagination/index.d.ts +1 -0
- package/dist/components/PresenceOrb/PresenceOrb.d.ts +18 -0
- package/dist/components/PresenceOrb/index.d.ts +1 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +13 -0
- package/dist/components/ProgressBar/index.d.ts +1 -0
- package/dist/components/ProgressRing/ProgressRing.d.ts +14 -0
- package/dist/components/ProgressRing/index.d.ts +1 -0
- package/dist/components/RadialClock/RadialClock.d.ts +12 -0
- package/dist/components/RadialClock/index.d.ts +1 -0
- package/dist/components/RadialMenu/RadialMenu.d.ts +25 -0
- package/dist/components/RadialMenu/index.d.ts +1 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +19 -0
- package/dist/components/RadioGroup/index.d.ts +1 -0
- package/dist/components/Rating/Rating.d.ts +12 -0
- package/dist/components/Rating/index.d.ts +1 -0
- package/dist/components/RouteMap/RouteMap.d.ts +42 -0
- package/dist/components/RouteMap/index.d.ts +1 -0
- package/dist/components/SaveIndicator/SaveIndicator.d.ts +12 -0
- package/dist/components/SaveIndicator/index.d.ts +1 -0
- package/dist/components/SearchField/SearchField.d.ts +15 -0
- package/dist/components/SearchField/index.d.ts +1 -0
- package/dist/components/Select/Select.d.ts +16 -0
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Skeleton/Skeleton.d.ts +11 -0
- package/dist/components/Skeleton/index.d.ts +1 -0
- package/dist/components/Slider/Slider.d.ts +14 -0
- package/dist/components/Slider/index.d.ts +1 -0
- package/dist/components/Sparkline/Sparkline.d.ts +14 -0
- package/dist/components/Sparkline/index.d.ts +1 -0
- package/dist/components/SpeechBubble/SpeechBubble.d.ts +18 -0
- package/dist/components/SpeechBubble/index.d.ts +1 -0
- package/dist/components/Spinner/Spinner.d.ts +9 -0
- package/dist/components/Spinner/index.d.ts +1 -0
- package/dist/components/Stamp/Stamp.d.ts +12 -0
- package/dist/components/Stamp/index.d.ts +1 -0
- package/dist/components/Stat/Stat.d.ts +16 -0
- package/dist/components/Stat/index.d.ts +1 -0
- package/dist/components/StatTile/StatTile.d.ts +14 -0
- package/dist/components/StatTile/index.d.ts +1 -0
- package/dist/components/Stepper/Stepper.d.ts +14 -0
- package/dist/components/Stepper/index.d.ts +1 -0
- package/dist/components/Switch/Switch.d.ts +10 -0
- package/dist/components/Switch/index.d.ts +1 -0
- package/dist/components/Tabs/Tabs.d.ts +24 -0
- package/dist/components/Tabs/index.d.ts +1 -0
- package/dist/components/TextField/TextField.d.ts +18 -0
- package/dist/components/TextField/index.d.ts +1 -0
- package/dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +22 -0
- package/dist/components/ThemeSwitcher/index.d.ts +1 -0
- package/dist/components/Thinking/Thinking.d.ts +30 -0
- package/dist/components/Thinking/index.d.ts +1 -0
- package/dist/components/Timeline/Timeline.d.ts +20 -0
- package/dist/components/Timeline/index.d.ts +1 -0
- package/dist/components/Toast/Toast.d.ts +19 -0
- package/dist/components/Toast/index.d.ts +1 -0
- package/dist/components/ToggleCard/ToggleCard.d.ts +17 -0
- package/dist/components/ToggleCard/index.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +13 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/WeatherIcon/WeatherIcon.d.ts +12 -0
- package/dist/components/WeatherIcon/index.d.ts +1 -0
- package/dist/components/WeatherSky/WeatherSky.d.ts +15 -0
- package/dist/components/WeatherSky/index.d.ts +1 -0
- package/dist/components/WeatherSky/sky.d.ts +36 -0
- package/dist/index.d.ts +79 -0
- package/dist/index.js +4600 -0
- package/dist/index.js.map +1 -0
- package/dist/sonido.css +2 -0
- package/dist/tokens/index.d.ts +65 -0
- package/dist/tokens.css +397 -0
- package/dist/tokens.js +61 -0
- package/dist/tokens.js.map +1 -0
- package/dist/utils/accent.d.ts +6 -0
- package/dist/utils/confetti.d.ts +5 -0
- package/dist/utils/cx.d.ts +2 -0
- package/dist/utils/hue.d.ts +4 -0
- package/dist/utils/useCanvasLoop.d.ts +25 -0
- package/dist/utils/useReducedMotion.d.ts +2 -0
- package/package.json +100 -4
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./Odometer.css";
|
|
2
|
+
export interface OdometerProps {
|
|
3
|
+
value: number;
|
|
4
|
+
/** Formatação: padrão pt-BR com separador de milhar. */
|
|
5
|
+
locale?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
/** Odômetro do eleicoes-radar: cada dígito é uma coluna 0–9 que rola até o valor novo. */
|
|
9
|
+
export declare function Odometer({ value, locale, className }: OdometerProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Odometer";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./PageHeader.css";
|
|
3
|
+
export interface PageHeaderProps {
|
|
4
|
+
title: string;
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
/** Rótulo acima do título; some quando há `pills`. */
|
|
7
|
+
eyebrow?: string;
|
|
8
|
+
/** Fatos rápidos em Badge (estado, categoria, contagem). */
|
|
9
|
+
pills?: ReactNode;
|
|
10
|
+
description?: ReactNode;
|
|
11
|
+
/** Antes do ícone (ex.: botão voltar). */
|
|
12
|
+
leading?: ReactNode;
|
|
13
|
+
actions?: ReactNode;
|
|
14
|
+
/** Grade de StatTile à direita: o retrato numérico da página. */
|
|
15
|
+
aside?: ReactNode;
|
|
16
|
+
/** Linha de contexto com ícone de info no rodapé. */
|
|
17
|
+
note?: ReactNode;
|
|
18
|
+
children?: ReactNode;
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
/** Cabeçalho canônico de página (PageHero do mika): ícone com brilho, pílulas, título, ações e números. */
|
|
22
|
+
export declare function PageHeader({ title, icon, eyebrow, pills, description, leading, actions, aside, note, children, className, }: PageHeaderProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./PageHeader";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "./Pagination.css";
|
|
2
|
+
export interface PaginationProps {
|
|
3
|
+
page: number;
|
|
4
|
+
pages: number;
|
|
5
|
+
onChange: (page: number) => void;
|
|
6
|
+
/** Páginas vizinhas visíveis de cada lado. */
|
|
7
|
+
siblings?: number;
|
|
8
|
+
label?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/** Lista de páginas com reticências: 1 … 4 5 [6] 7 8 … 20. */
|
|
12
|
+
export declare function pageRange(page: number, pages: number, siblings?: number): Array<number | "…">;
|
|
13
|
+
/** Paginação acessível com anterior/próxima e página atual em `aria-current`. */
|
|
14
|
+
export declare function Pagination({ page, pages, onChange, siblings, label, className }: PaginationProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Pagination";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import "./PresenceOrb.css";
|
|
2
|
+
export type PresenceState = "idle" | "listening" | "thinking" | "speaking" | "confirming" | "error" | "offline" | "muted";
|
|
3
|
+
export interface PresenceOrbProps {
|
|
4
|
+
state: PresenceState;
|
|
5
|
+
/** Nível 0–1 (microfone ou voz). Função = lido a cada quadro, sem re-render. */
|
|
6
|
+
level?: number | (() => number);
|
|
7
|
+
label?: string;
|
|
8
|
+
/** Mostra a palavra de estado ao lado. */
|
|
9
|
+
showLabel?: boolean;
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
size?: number;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Orbe de presença do mika: um só indicador para "o que o assistente está fazendo".
|
|
16
|
+
* O nível vai direto para `--lvl` no elemento (rAF), sem re-render do React.
|
|
17
|
+
*/
|
|
18
|
+
export declare function PresenceOrb({ state, level, label, showLabel, onClick, size, className, }: PresenceOrbProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./PresenceOrb";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "./ProgressBar.css";
|
|
2
|
+
export interface ProgressBarProps {
|
|
3
|
+
/** 0 a 1. Omitido = indeterminado. */
|
|
4
|
+
value?: number;
|
|
5
|
+
label: string;
|
|
6
|
+
/** Mostra rótulo e porcentagem acima da barra. */
|
|
7
|
+
showValue?: boolean;
|
|
8
|
+
tone?: "brand" | "signature" | "aqua";
|
|
9
|
+
size?: "sm" | "md";
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
/** Barra de progresso linear, determinada ou indeterminada. */
|
|
13
|
+
export declare function ProgressBar({ value, label, showValue, tone, size, className }: ProgressBarProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ProgressBar";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import "./ProgressRing.css";
|
|
3
|
+
export interface ProgressRingProps {
|
|
4
|
+
/** 0 a 1. */
|
|
5
|
+
value: number;
|
|
6
|
+
size?: number;
|
|
7
|
+
thickness?: number;
|
|
8
|
+
/** Conteúdo central (ex.: nível, porcentagem). */
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
label: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
/** Anel de progresso com traço em gradiente (LevelRing do games-gallery). */
|
|
14
|
+
export declare function ProgressRing({ value, size, thickness, children, label, className }: ProgressRingProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ProgressRing";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "./RadialClock.css";
|
|
2
|
+
export interface RadialClockProps {
|
|
3
|
+
/** 24 valores, um por hora. */
|
|
4
|
+
hist: number[];
|
|
5
|
+
label: string;
|
|
6
|
+
/** Horas da noite pintadas no tom de destaque. */
|
|
7
|
+
night?: (h: number) => boolean;
|
|
8
|
+
caption?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/** Relógio de 24 h (franca-segura): fatia por hora com raio pela raiz da área, pico de 3 h em vermelho, setas navegam. */
|
|
12
|
+
export declare function RadialClock({ hist, label, night, caption, className }: RadialClockProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./RadialClock";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import "./RadialMenu.css";
|
|
3
|
+
export interface RadialItem {
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
icon: ReactNode;
|
|
7
|
+
tone?: "accent" | "violet" | "aqua" | "gold" | "success" | "danger" | "info";
|
|
8
|
+
active?: boolean;
|
|
9
|
+
onSelect: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface RadialMenuProps {
|
|
12
|
+
items: RadialItem[];
|
|
13
|
+
open: boolean;
|
|
14
|
+
onClose: () => void;
|
|
15
|
+
/** Centro do menu (o botão que abre). */
|
|
16
|
+
hub: ReactNode;
|
|
17
|
+
radius?: number;
|
|
18
|
+
label?: string;
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Menu radial do mika (NeuralWheel): nós de vidro num círculo, ligados ao centro por linhas finas,
|
|
23
|
+
* entrada em mola girando. Setas giram o foco, Enter escolhe, Esc fecha.
|
|
24
|
+
*/
|
|
25
|
+
export declare function RadialMenu({ items, open, onClose, hub, radius, label, className, }: RadialMenuProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./RadialMenu";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import "../Checkbox/Checkbox.css";
|
|
2
|
+
import "./RadioGroup.css";
|
|
3
|
+
export interface RadioOption<K extends string> {
|
|
4
|
+
value: K;
|
|
5
|
+
label: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface RadioGroupProps<K extends string> {
|
|
10
|
+
label: string;
|
|
11
|
+
options: RadioOption<K>[];
|
|
12
|
+
value: K;
|
|
13
|
+
onChange: (value: K) => void;
|
|
14
|
+
/** `list` = rádios clássicos; `cards` = opções em cartão. */
|
|
15
|
+
variant?: "list" | "cards";
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
/** Grupo de rádio nativo (setas funcionam sozinhas). */
|
|
19
|
+
export declare function RadioGroup<K extends string>({ label, options, value, onChange, variant, className, }: RadioGroupProps<K>): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./RadioGroup";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "./Rating.css";
|
|
2
|
+
export interface RatingProps {
|
|
3
|
+
value: number;
|
|
4
|
+
max?: number;
|
|
5
|
+
/** Sem `onChange` = somente leitura. */
|
|
6
|
+
onChange?: (value: number) => void;
|
|
7
|
+
label: string;
|
|
8
|
+
size?: number;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/** Avaliação em estrelas (gold = avaliação). Interativa como radiogroup. */
|
|
12
|
+
export declare function Rating({ value, max, onChange, label, size, className }: RatingProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Rating";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import "./RouteMap.css";
|
|
2
|
+
export type Traffic = "free" | "slow" | "jam" | "stop";
|
|
3
|
+
export interface RouteSegment {
|
|
4
|
+
/** Pontos [x, y] no espaço 0–100. */
|
|
5
|
+
points: [number, number][];
|
|
6
|
+
traffic: Traffic;
|
|
7
|
+
}
|
|
8
|
+
export interface MapPin {
|
|
9
|
+
id: string;
|
|
10
|
+
at: [number, number];
|
|
11
|
+
label: string;
|
|
12
|
+
kind?: "home" | "work" | "incident" | "place";
|
|
13
|
+
}
|
|
14
|
+
export interface RouteMapProps {
|
|
15
|
+
segments: RouteSegment[];
|
|
16
|
+
/** Onde você está: ponto com anel pulsante. */
|
|
17
|
+
me?: [number, number];
|
|
18
|
+
pins?: MapPin[];
|
|
19
|
+
selected?: string;
|
|
20
|
+
onSelectPin?: (id: string) => void;
|
|
21
|
+
/** Mostra o selo "ao vivo" piscando. */
|
|
22
|
+
live?: boolean;
|
|
23
|
+
label?: string;
|
|
24
|
+
height?: number;
|
|
25
|
+
className?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Mapa de trajeto do canto-widget (aba Mapa): rota desenhada ao entrar, brilho, trechos coloridos
|
|
29
|
+
* pelo trânsito, pino que cresce ao passar o mouse, ponto "você está aqui" com pulso e selo ao vivo.
|
|
30
|
+
* O fundo é uma grade estilizada; troque por tiles reais via `className`/children se quiser.
|
|
31
|
+
*/
|
|
32
|
+
export declare function RouteMap({ segments, me, pins, selected, onSelectPin, live, label, height, className, }: RouteMapProps): import("react").JSX.Element;
|
|
33
|
+
export interface TrafficGaugeProps {
|
|
34
|
+
/** Minutos de atraso sobre o normal. */
|
|
35
|
+
delay: number;
|
|
36
|
+
/** Tempo total, ex.: "32 min". */
|
|
37
|
+
eta: string;
|
|
38
|
+
label?: string;
|
|
39
|
+
className?: string;
|
|
40
|
+
}
|
|
41
|
+
/** Medidor de trânsito: arco que varre e muda de cor conforme o atraso (map-gauge). */
|
|
42
|
+
export declare function TrafficGauge({ delay, eta, label, className }: TrafficGaugeProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./RouteMap";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "./SaveIndicator.css";
|
|
2
|
+
export type SaveState = "idle" | "dirty" | "saving" | "saved" | "error";
|
|
3
|
+
export interface SaveIndicatorProps {
|
|
4
|
+
state: SaveState;
|
|
5
|
+
error?: string;
|
|
6
|
+
/** Some sozinho depois de "salvo" (ms). */
|
|
7
|
+
hideAfter?: number;
|
|
8
|
+
labels?: Partial<Record<Exclude<SaveState, "idle">, string>>;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/** Estado do salvamento automático (SettingsSaveIndicator do mika): ponto, giro, check e erro em pílula viva. */
|
|
12
|
+
export declare function SaveIndicator({ state, error, hideAfter, labels, className }: SaveIndicatorProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SaveIndicator";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type InputHTMLAttributes } from "react";
|
|
2
|
+
import "./SearchField.css";
|
|
3
|
+
export interface SearchFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "onChange" | "value"> {
|
|
4
|
+
value: string;
|
|
5
|
+
onChange: (value: string) => void;
|
|
6
|
+
/** Rótulo acessível (visualmente oculto). */
|
|
7
|
+
label: string;
|
|
8
|
+
/** Mostra a dica de atalho "/". */
|
|
9
|
+
shortcutHint?: boolean;
|
|
10
|
+
/** Chamado com ↓ para passar o foco à lista de resultados. */
|
|
11
|
+
onArrowDown?: () => void;
|
|
12
|
+
clearLabel?: string;
|
|
13
|
+
}
|
|
14
|
+
/** Campo de busca: Esc limpa, ↓ entrega o foco à lista, botão de limpar. */
|
|
15
|
+
export declare function SearchField({ value, onChange, label, shortcutHint, onArrowDown, clearLabel, className, onKeyDown, ...rest }: SearchFieldProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SearchField";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type SelectHTMLAttributes } from "react";
|
|
2
|
+
import "../TextField/TextField.css";
|
|
3
|
+
import "./Select.css";
|
|
4
|
+
export interface SelectOption {
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
}
|
|
8
|
+
export interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, "onChange"> {
|
|
9
|
+
label: string;
|
|
10
|
+
options: SelectOption[];
|
|
11
|
+
value: string;
|
|
12
|
+
onChange: (value: string) => void;
|
|
13
|
+
hint?: string;
|
|
14
|
+
}
|
|
15
|
+
/** `<select>` nativo estilizado: acessível e bom no celular. */
|
|
16
|
+
export declare function Select({ label, options, value, onChange, hint, className, id, ...rest }: SelectProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Select";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "./Skeleton.css";
|
|
2
|
+
export interface SkeletonProps {
|
|
3
|
+
/** Texto anunciado aos leitores de tela. */
|
|
4
|
+
label?: string;
|
|
5
|
+
rows?: number;
|
|
6
|
+
/** Mostra um bloco de mídia (capa/avatar) à esquerda. */
|
|
7
|
+
media?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
/** Placeholder com brilho enquanto o conteúdo carrega. */
|
|
11
|
+
export declare function Skeleton({ label, rows, media, className }: SkeletonProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Skeleton";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "./Slider.css";
|
|
2
|
+
export interface SliderProps {
|
|
3
|
+
label: string;
|
|
4
|
+
value: number;
|
|
5
|
+
onChange: (value: number) => void;
|
|
6
|
+
min?: number;
|
|
7
|
+
max?: number;
|
|
8
|
+
step?: number;
|
|
9
|
+
format?: (n: number) => string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
/** `<input type="range">` com trilho em gradiente e valor ao vivo. */
|
|
14
|
+
export declare function Slider({ label, value, onChange, min, max, step, format, disabled, className, }: SliderProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Slider";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "./Sparkline.css";
|
|
2
|
+
export interface SparklineProps {
|
|
3
|
+
data: number[];
|
|
4
|
+
width?: number;
|
|
5
|
+
height?: number;
|
|
6
|
+
/** Área preenchida sob a linha. */
|
|
7
|
+
area?: boolean;
|
|
8
|
+
/** Rótulo acessível; sem ele o gráfico é decorativo. */
|
|
9
|
+
label?: string;
|
|
10
|
+
tone?: "signature" | "accent" | "aqua" | "success" | "danger";
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
/** Minigráfico de linha com área em gradiente e ponto final destacado. */
|
|
14
|
+
export declare function Sparkline({ data, width, height, area, label, tone, className, }: SparklineProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Sparkline";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import "./SpeechBubble.css";
|
|
3
|
+
export interface SpeechBubbleProps {
|
|
4
|
+
/** Texto (pode crescer enquanto chega). */
|
|
5
|
+
text: string;
|
|
6
|
+
/** Chegando aos pedaços: só o trecho novo aparece em fade. */
|
|
7
|
+
streaming?: boolean;
|
|
8
|
+
/** Para onde aponta a ponta. */
|
|
9
|
+
tail?: "left" | "right" | "bottom" | "top" | "none";
|
|
10
|
+
/** Cor do filete superior (ex.: emoção). */
|
|
11
|
+
accent?: string;
|
|
12
|
+
speaker?: ReactNode;
|
|
13
|
+
footer?: ReactNode;
|
|
14
|
+
maxWidth?: number;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
/** Balão de fala do mika: vidro, ponta, filete em gradiente e revelação suave do texto em streaming. */
|
|
18
|
+
export declare function SpeechBubble({ text, streaming, tail, accent, speaker, footer, maxWidth, className, }: SpeechBubbleProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SpeechBubble";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./Spinner.css";
|
|
2
|
+
export interface SpinnerProps {
|
|
3
|
+
size?: number;
|
|
4
|
+
/** Quando definido, anuncia o carregamento para leitores de tela. */
|
|
5
|
+
label?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
/** Indicador de carregamento circular. Decorativo por padrão. */
|
|
9
|
+
export declare function Spinner({ size, label, className }: SpinnerProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Spinner";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./Stamp.css";
|
|
3
|
+
export type StampTone = "true" | "false" | "misleading" | "imprecise" | "none" | "pending" | "winner";
|
|
4
|
+
export interface StampProps {
|
|
5
|
+
tone: StampTone;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/** Bate o carimbo ao aparecer. */
|
|
8
|
+
slam?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/** Carimbo de veredito (treta-aovivo) e selo de vencedor (eleicoes-radar). */
|
|
12
|
+
export declare function Stamp({ tone, children, slam, className }: StampProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Stamp";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./Stat.css";
|
|
3
|
+
export interface StatProps {
|
|
4
|
+
label: string;
|
|
5
|
+
value: number;
|
|
6
|
+
format?: (n: number) => string;
|
|
7
|
+
/** Variação em %, ex.: 12.5 ou -3. */
|
|
8
|
+
delta?: number;
|
|
9
|
+
/** Texto ao lado da variação, ex.: "vs. semana passada". */
|
|
10
|
+
deltaLabel?: string;
|
|
11
|
+
trend?: number[];
|
|
12
|
+
icon?: ReactNode;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
/** Cartão de KPI: número animado, variação colorida e sparkline. */
|
|
16
|
+
export declare function Stat({ label, value, format, delta, deltaLabel, trend, icon, className }: StatProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Stat";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./StatTile.css";
|
|
3
|
+
export type StatTileTone = "neutral" | "accent" | "success" | "warning" | "danger" | "info";
|
|
4
|
+
export interface StatTileProps {
|
|
5
|
+
label: string;
|
|
6
|
+
value: ReactNode;
|
|
7
|
+
hint?: string;
|
|
8
|
+
icon?: ReactNode;
|
|
9
|
+
tone?: StatTileTone;
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
/** Bloco de número compacto (StatTile do mika): rótulo espaçado, valor que sobe ao mudar, tom e clique opcional. */
|
|
14
|
+
export declare function StatTile({ label, value, hint, icon, tone, onClick, className }: StatTileProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./StatTile";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "./Stepper.css";
|
|
2
|
+
export interface Step {
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface StepperProps {
|
|
7
|
+
steps: Step[];
|
|
8
|
+
/** Índice do passo atual (0…n). `n` = todos concluídos. */
|
|
9
|
+
current: number;
|
|
10
|
+
orientation?: "horizontal" | "vertical";
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
/** Passos de um fluxo (onboarding, checkout). Concluído, atual e pendente. */
|
|
14
|
+
export declare function Stepper({ steps, current, orientation, className }: StepperProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Stepper";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type InputHTMLAttributes } from "react";
|
|
2
|
+
import "./Switch.css";
|
|
3
|
+
export interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "onChange"> {
|
|
4
|
+
checked: boolean;
|
|
5
|
+
onChange: (checked: boolean) => void;
|
|
6
|
+
label: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
}
|
|
9
|
+
/** Interruptor liga/desliga sobre `<input type="checkbox" role="switch">`. */
|
|
10
|
+
export declare function Switch({ checked, onChange, label, description, className, id, ...rest }: SwitchProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Switch";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import "./Tabs.css";
|
|
3
|
+
export interface TabItem<K extends string> {
|
|
4
|
+
key: K;
|
|
5
|
+
label: string;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
badge?: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export interface TabsProps<K extends string> {
|
|
10
|
+
items: TabItem<K>[];
|
|
11
|
+
value: K;
|
|
12
|
+
onChange: (value: K) => void;
|
|
13
|
+
/** Rótulo acessível do tablist. */
|
|
14
|
+
label: string;
|
|
15
|
+
/** `underline` = abas clássicas; `pill` = controle segmentado (games-gallery). */
|
|
16
|
+
variant?: "underline" | "pill";
|
|
17
|
+
/** Prefixo dos ids, para ligar a `aria-controls` dos painéis. */
|
|
18
|
+
idPrefix?: string;
|
|
19
|
+
/** Há painéis com id `${idPrefix}-panel-${key}`: liga `aria-controls`. */
|
|
20
|
+
hasPanels?: boolean;
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
/** Tablist WAI-ARIA com foco itinerante (setas, Home, End). */
|
|
24
|
+
export declare function Tabs<K extends string>({ items, value, onChange, label, variant, idPrefix, hasPanels, className, }: TabsProps<K>): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Tabs";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type InputHTMLAttributes, type ReactNode, type TextareaHTMLAttributes } from "react";
|
|
2
|
+
import "./TextField.css";
|
|
3
|
+
interface Common {
|
|
4
|
+
label: string;
|
|
5
|
+
hint?: ReactNode;
|
|
6
|
+
/** Mensagem de erro: marca `aria-invalid` e substitui a dica. */
|
|
7
|
+
error?: string;
|
|
8
|
+
/** Ícone à esquerda (só input). */
|
|
9
|
+
icon?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export type TextFieldProps = Common & (({
|
|
12
|
+
multiline?: false;
|
|
13
|
+
} & InputHTMLAttributes<HTMLInputElement>) | ({
|
|
14
|
+
multiline: true;
|
|
15
|
+
} & TextareaHTMLAttributes<HTMLTextAreaElement>));
|
|
16
|
+
/** Campo de texto com rótulo, dica e erro ligados por `aria-describedby`. */
|
|
17
|
+
export declare function TextField(props: TextFieldProps): import("react").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./TextField";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import "./ThemeSwitcher.css";
|
|
2
|
+
export interface ThemeOption {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
/** Três cores para a amostra: fundo, superfície, destaque. */
|
|
6
|
+
swatch: [string, string, string];
|
|
7
|
+
}
|
|
8
|
+
/** Os temas que vêm no Sonido. */
|
|
9
|
+
export declare const SONIDO_THEMES: ThemeOption[];
|
|
10
|
+
export interface ThemeSwitcherProps {
|
|
11
|
+
value: string;
|
|
12
|
+
onChange: (id: string) => void;
|
|
13
|
+
themes?: ThemeOption[];
|
|
14
|
+
/** Onde aplicar `data-theme`. Padrão: `<html>`. */
|
|
15
|
+
target?: () => HTMLElement;
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Troca de tema com "lavada" circular a partir do clique (ai-session-monitor).
|
|
20
|
+
* Aplica `data-theme` e chama `onChange`; a lavada some com reduced-motion.
|
|
21
|
+
*/
|
|
22
|
+
export declare function ThemeSwitcher({ value, onChange, themes, target, className }: ThemeSwitcherProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ThemeSwitcher";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./Thinking.css";
|
|
3
|
+
/** Três pontos que respiram (mika). Com reduced-motion ficam parados e visíveis. */
|
|
4
|
+
export declare function BreathingDots({ className }: {
|
|
5
|
+
className?: string;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
7
|
+
/** Quatro pontos em órbita (mika); parado vira um anel estático. */
|
|
8
|
+
export declare function OrbitSpinner({ size, className }: {
|
|
9
|
+
size?: number;
|
|
10
|
+
className?: string;
|
|
11
|
+
}): import("react").JSX.Element;
|
|
12
|
+
export interface ThinkingStep {
|
|
13
|
+
id: string;
|
|
14
|
+
label: string;
|
|
15
|
+
status: "pending" | "active" | "done" | "error";
|
|
16
|
+
}
|
|
17
|
+
export interface ThinkingBubbleProps {
|
|
18
|
+
/** O que foi ouvido/pedido. */
|
|
19
|
+
transcript?: string;
|
|
20
|
+
/** Ferramenta em uso agora. */
|
|
21
|
+
tool?: string;
|
|
22
|
+
steps?: ThinkingStep[];
|
|
23
|
+
/** Depois de alguns segundos, troque para a órbita. */
|
|
24
|
+
long?: boolean;
|
|
25
|
+
label?: string;
|
|
26
|
+
children?: ReactNode;
|
|
27
|
+
className?: string;
|
|
28
|
+
}
|
|
29
|
+
/** Bolha de "pensando" do mika: vidro com mancha em gradiente, pontos que respiram, ferramenta e passos. */
|
|
30
|
+
export declare function ThinkingBubble({ transcript, tool, steps, long, label, children, className, }: ThinkingBubbleProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Thinking";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./Timeline.css";
|
|
3
|
+
export interface TimelineEvent {
|
|
4
|
+
key: string;
|
|
5
|
+
title: ReactNode;
|
|
6
|
+
/** Hora ou data exibida. */
|
|
7
|
+
time: string;
|
|
8
|
+
/** ISO para `<time dateTime>`. */
|
|
9
|
+
dateTime?: string;
|
|
10
|
+
description?: ReactNode;
|
|
11
|
+
tone?: "accent" | "violet" | "aqua" | "gold" | "success" | "danger" | "neutral";
|
|
12
|
+
icon?: ReactNode;
|
|
13
|
+
/** Destaca o evento atual ("agora"). */
|
|
14
|
+
now?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** Linha do tempo vertical para agenda, histórico e atividades. */
|
|
17
|
+
export declare function Timeline({ events, className }: {
|
|
18
|
+
events: TimelineEvent[];
|
|
19
|
+
className?: string;
|
|
20
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Timeline";
|