@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.
Files changed (161) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +164 -2
  3. package/dist/components/Accordion/Accordion.d.ts +16 -0
  4. package/dist/components/Accordion/index.d.ts +1 -0
  5. package/dist/components/AgendaRail/AgendaRail.d.ts +38 -0
  6. package/dist/components/AgendaRail/index.d.ts +1 -0
  7. package/dist/components/Alert/Alert.d.ts +12 -0
  8. package/dist/components/Alert/index.d.ts +1 -0
  9. package/dist/components/AlertCard/AlertCard.d.ts +126 -0
  10. package/dist/components/AlertCard/index.d.ts +1 -0
  11. package/dist/components/AlertCard/scenes.d.ts +33 -0
  12. package/dist/components/AmbientBackdrop/AmbientBackdrop.d.ts +12 -0
  13. package/dist/components/AmbientBackdrop/index.d.ts +1 -0
  14. package/dist/components/Artwork/Artwork.d.ts +13 -0
  15. package/dist/components/Artwork/index.d.ts +1 -0
  16. package/dist/components/Avatar/Avatar.d.ts +23 -0
  17. package/dist/components/Avatar/index.d.ts +1 -0
  18. package/dist/components/Badge/Badge.d.ts +14 -0
  19. package/dist/components/Badge/index.d.ts +1 -0
  20. package/dist/components/BarChart/BarChart.d.ts +17 -0
  21. package/dist/components/BarChart/index.d.ts +1 -0
  22. package/dist/components/BatteryMeter/BatteryMeter.d.ts +13 -0
  23. package/dist/components/BatteryMeter/index.d.ts +1 -0
  24. package/dist/components/Bento/Bento.d.ts +11 -0
  25. package/dist/components/Bento/index.d.ts +1 -0
  26. package/dist/components/Breadcrumb/Breadcrumb.d.ts +12 -0
  27. package/dist/components/Breadcrumb/index.d.ts +1 -0
  28. package/dist/components/Button/Button.d.ts +17 -0
  29. package/dist/components/Button/index.d.ts +1 -0
  30. package/dist/components/Card/Card.d.ts +17 -0
  31. package/dist/components/Card/index.d.ts +1 -0
  32. package/dist/components/Carousel/Carousel.d.ts +14 -0
  33. package/dist/components/Carousel/index.d.ts +1 -0
  34. package/dist/components/Checkbox/Checkbox.d.ts +12 -0
  35. package/dist/components/Checkbox/index.d.ts +1 -0
  36. package/dist/components/CommandPalette/CommandPalette.d.ts +23 -0
  37. package/dist/components/CommandPalette/index.d.ts +1 -0
  38. package/dist/components/ConfirmButton/ConfirmButton.d.ts +15 -0
  39. package/dist/components/ConfirmButton/index.d.ts +1 -0
  40. package/dist/components/CountUp/CountUp.d.ts +11 -0
  41. package/dist/components/CountUp/index.d.ts +1 -0
  42. package/dist/components/DataTable/DataTable.d.ts +21 -0
  43. package/dist/components/DataTable/index.d.ts +1 -0
  44. package/dist/components/Dialog/Dialog.d.ts +16 -0
  45. package/dist/components/Dialog/index.d.ts +1 -0
  46. package/dist/components/Dock/Dock.d.ts +23 -0
  47. package/dist/components/Dock/index.d.ts +1 -0
  48. package/dist/components/Duel/Duel.d.ts +19 -0
  49. package/dist/components/Duel/index.d.ts +1 -0
  50. package/dist/components/EmojiBurst/EmojiBurst.d.ts +11 -0
  51. package/dist/components/EmojiBurst/index.d.ts +1 -0
  52. package/dist/components/EmptyState/EmptyState.d.ts +12 -0
  53. package/dist/components/EmptyState/index.d.ts +1 -0
  54. package/dist/components/FilterChips/FilterChips.d.ts +20 -0
  55. package/dist/components/FilterChips/index.d.ts +1 -0
  56. package/dist/components/Heatmap/Heatmap.d.ts +16 -0
  57. package/dist/components/Heatmap/index.d.ts +1 -0
  58. package/dist/components/Hero/Hero.d.ts +18 -0
  59. package/dist/components/Hero/index.d.ts +1 -0
  60. package/dist/components/HourlyForecast/HourlyForecast.d.ts +19 -0
  61. package/dist/components/HourlyForecast/index.d.ts +1 -0
  62. package/dist/components/Island/Island.d.ts +52 -0
  63. package/dist/components/Island/IslandWidgets.d.ts +110 -0
  64. package/dist/components/Island/icons.d.ts +18 -0
  65. package/dist/components/Island/index.d.ts +3 -0
  66. package/dist/components/Kbd/Kbd.d.ts +4 -0
  67. package/dist/components/Kbd/index.d.ts +1 -0
  68. package/dist/components/LiveBadge/LiveBadge.d.ts +20 -0
  69. package/dist/components/LiveBadge/index.d.ts +1 -0
  70. package/dist/components/Menu/Menu.d.ts +24 -0
  71. package/dist/components/Menu/index.d.ts +1 -0
  72. package/dist/components/MeterCard/MeterCard.d.ts +32 -0
  73. package/dist/components/MeterCard/index.d.ts +1 -0
  74. package/dist/components/Motion/Motion.d.ts +13 -0
  75. package/dist/components/Motion/index.d.ts +1 -0
  76. package/dist/components/NavRail/NavRail.d.ts +25 -0
  77. package/dist/components/NavRail/index.d.ts +1 -0
  78. package/dist/components/Odometer/Odometer.d.ts +9 -0
  79. package/dist/components/Odometer/index.d.ts +1 -0
  80. package/dist/components/PageHeader/PageHeader.d.ts +22 -0
  81. package/dist/components/PageHeader/index.d.ts +1 -0
  82. package/dist/components/Pagination/Pagination.d.ts +14 -0
  83. package/dist/components/Pagination/index.d.ts +1 -0
  84. package/dist/components/PresenceOrb/PresenceOrb.d.ts +18 -0
  85. package/dist/components/PresenceOrb/index.d.ts +1 -0
  86. package/dist/components/ProgressBar/ProgressBar.d.ts +13 -0
  87. package/dist/components/ProgressBar/index.d.ts +1 -0
  88. package/dist/components/ProgressRing/ProgressRing.d.ts +14 -0
  89. package/dist/components/ProgressRing/index.d.ts +1 -0
  90. package/dist/components/RadialClock/RadialClock.d.ts +12 -0
  91. package/dist/components/RadialClock/index.d.ts +1 -0
  92. package/dist/components/RadialMenu/RadialMenu.d.ts +25 -0
  93. package/dist/components/RadialMenu/index.d.ts +1 -0
  94. package/dist/components/RadioGroup/RadioGroup.d.ts +19 -0
  95. package/dist/components/RadioGroup/index.d.ts +1 -0
  96. package/dist/components/Rating/Rating.d.ts +12 -0
  97. package/dist/components/Rating/index.d.ts +1 -0
  98. package/dist/components/RouteMap/RouteMap.d.ts +42 -0
  99. package/dist/components/RouteMap/index.d.ts +1 -0
  100. package/dist/components/SaveIndicator/SaveIndicator.d.ts +12 -0
  101. package/dist/components/SaveIndicator/index.d.ts +1 -0
  102. package/dist/components/SearchField/SearchField.d.ts +15 -0
  103. package/dist/components/SearchField/index.d.ts +1 -0
  104. package/dist/components/Select/Select.d.ts +16 -0
  105. package/dist/components/Select/index.d.ts +1 -0
  106. package/dist/components/Skeleton/Skeleton.d.ts +11 -0
  107. package/dist/components/Skeleton/index.d.ts +1 -0
  108. package/dist/components/Slider/Slider.d.ts +14 -0
  109. package/dist/components/Slider/index.d.ts +1 -0
  110. package/dist/components/Sparkline/Sparkline.d.ts +14 -0
  111. package/dist/components/Sparkline/index.d.ts +1 -0
  112. package/dist/components/SpeechBubble/SpeechBubble.d.ts +18 -0
  113. package/dist/components/SpeechBubble/index.d.ts +1 -0
  114. package/dist/components/Spinner/Spinner.d.ts +9 -0
  115. package/dist/components/Spinner/index.d.ts +1 -0
  116. package/dist/components/Stamp/Stamp.d.ts +12 -0
  117. package/dist/components/Stamp/index.d.ts +1 -0
  118. package/dist/components/Stat/Stat.d.ts +16 -0
  119. package/dist/components/Stat/index.d.ts +1 -0
  120. package/dist/components/StatTile/StatTile.d.ts +14 -0
  121. package/dist/components/StatTile/index.d.ts +1 -0
  122. package/dist/components/Stepper/Stepper.d.ts +14 -0
  123. package/dist/components/Stepper/index.d.ts +1 -0
  124. package/dist/components/Switch/Switch.d.ts +10 -0
  125. package/dist/components/Switch/index.d.ts +1 -0
  126. package/dist/components/Tabs/Tabs.d.ts +24 -0
  127. package/dist/components/Tabs/index.d.ts +1 -0
  128. package/dist/components/TextField/TextField.d.ts +18 -0
  129. package/dist/components/TextField/index.d.ts +1 -0
  130. package/dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +22 -0
  131. package/dist/components/ThemeSwitcher/index.d.ts +1 -0
  132. package/dist/components/Thinking/Thinking.d.ts +30 -0
  133. package/dist/components/Thinking/index.d.ts +1 -0
  134. package/dist/components/Timeline/Timeline.d.ts +20 -0
  135. package/dist/components/Timeline/index.d.ts +1 -0
  136. package/dist/components/Toast/Toast.d.ts +19 -0
  137. package/dist/components/Toast/index.d.ts +1 -0
  138. package/dist/components/ToggleCard/ToggleCard.d.ts +17 -0
  139. package/dist/components/ToggleCard/index.d.ts +1 -0
  140. package/dist/components/Tooltip/Tooltip.d.ts +13 -0
  141. package/dist/components/Tooltip/index.d.ts +1 -0
  142. package/dist/components/WeatherIcon/WeatherIcon.d.ts +12 -0
  143. package/dist/components/WeatherIcon/index.d.ts +1 -0
  144. package/dist/components/WeatherSky/WeatherSky.d.ts +15 -0
  145. package/dist/components/WeatherSky/index.d.ts +1 -0
  146. package/dist/components/WeatherSky/sky.d.ts +36 -0
  147. package/dist/index.d.ts +79 -0
  148. package/dist/index.js +4600 -0
  149. package/dist/index.js.map +1 -0
  150. package/dist/sonido.css +2 -0
  151. package/dist/tokens/index.d.ts +65 -0
  152. package/dist/tokens.css +397 -0
  153. package/dist/tokens.js +61 -0
  154. package/dist/tokens.js.map +1 -0
  155. package/dist/utils/accent.d.ts +6 -0
  156. package/dist/utils/confetti.d.ts +5 -0
  157. package/dist/utils/cx.d.ts +2 -0
  158. package/dist/utils/hue.d.ts +4 -0
  159. package/dist/utils/useCanvasLoop.d.ts +25 -0
  160. package/dist/utils/useReducedMotion.d.ts +2 -0
  161. package/package.json +100 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 juninmd
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,165 @@
1
- # Temporary Holding Version
1
+ <div align="center">
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ <img src=".github/assets/hero.png" alt="Componentes do Sonido: céu animado do clima, alertas com cena, duelo de placar e balão de pensamento" width="100%" />
4
+
5
+ # Sonido
6
+
7
+ **O design system dos apps do juninmd, em React.**
8
+ Escuro por padrão, vidro sobre um fundo atmosférico, cor com função e movimento que responde ao toque.
9
+
10
+ [![npm](https://img.shields.io/npm/v/@juninmd/sonido?color=ff3d6e&label=npm)](https://www.npmjs.com/package/@juninmd/sonido)
11
+ [![CI](https://github.com/juninmd/sonido/actions/workflows/ci.yml/badge.svg)](https://github.com/juninmd/sonido/actions/workflows/ci.yml)
12
+ [![Docs](https://img.shields.io/badge/docs-ao%20vivo-7c5cff)](https://juninmd.github.io/sonido/)
13
+ [![semantic-release](https://img.shields.io/badge/semantic--release-conventional-3fe3d3)](https://github.com/semantic-release/semantic-release)
14
+ [![Licença MIT](https://img.shields.io/badge/licen%C3%A7a-MIT-f5b73d)](LICENSE)
15
+
16
+ [**Documentação ao vivo**](https://juninmd.github.io/sonido/) · [Começar](#começar) · [Componentes](#componentes) · [Temas](#temas) · [Contribuir](#contribuir)
17
+
18
+ </div>
19
+
20
+ ---
21
+
22
+ ## Por que Sonido
23
+
24
+ | | |
25
+ | --------------------------- | ------------------------------------------------------------------------------------------------- |
26
+ | 🧩 **78 componentes** | De botão a céu animado do clima, todos com tipos, teclado e ARIA. |
27
+ | 🎨 **8 temas** | Troque com um atributo: `data-theme="hueco-mundo"`. Tokens `--sn-*` em CSS e em JS. |
28
+ | ✨ **Movimento com motivo** | Mola tátil, confete, cenas em canvas. Tudo desliga com `prefers-reduced-motion`. |
29
+ | ♿ **Acessível** | Contraste AA nos 8 temas, auditado com axe. Alvos de 44px e foco visível. |
30
+ | 🧪 **Teste ao vivo** | Cada página da documentação tem um editor: mude o código, veja o resultado, copie com os imports. |
31
+ | 📦 **Leve** | Sem dependências além do React. ESM, tree-shakeable, CSS em um arquivo. |
32
+
33
+ ## Começar
34
+
35
+ ```bash
36
+ npm install @juninmd/sonido
37
+ ```
38
+
39
+ ```tsx
40
+ import { Button, Card, CardTitle, ProgressBar, burst } from "@juninmd/sonido";
41
+ import "@juninmd/sonido/styles.css";
42
+
43
+ export function Licao() {
44
+ return (
45
+ <Card>
46
+ <CardTitle>Lição 12</CardTitle>
47
+ <ProgressBar value={0.6} label="Meta do dia" />
48
+ <Button press onClick={(e) => burst(e.currentTarget)}>
49
+ Concluir lição
50
+ </Button>
51
+ </Card>
52
+ );
53
+ }
54
+ ```
55
+
56
+ Coloque `class="sn-body"` no `<body>` para herdar fonte, cor e fundo do tema.
57
+
58
+ > 💡 Não sabe qual componente usar? Abra a [documentação](https://juninmd.github.io/sonido/), edite o exemplo e clique em **Copiar código**.
59
+
60
+ ## Componentes
61
+
62
+ | Grupo | Componentes |
63
+ | --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
64
+ | **Ações** | Button, ConfirmButton |
65
+ | **Formulários** | Checkbox, FilterChips, RadioGroup, Rating, SearchField, Select, Slider, Switch, TextField, ToggleCard |
66
+ | **Exibição** | Avatar, Badge, Kbd, Tooltip |
67
+ | **Feedback** | Alert, EmptyState, LiveBadge, SaveIndicator, Skeleton, Spinner, Stamp, Toast |
68
+ | **Superfícies** | Accordion, AmbientBackdrop, Artwork, Bento, Card, Carousel, Dialog, Hero, PageHeader |
69
+ | **Navegação** | Breadcrumb, CommandPalette, Dock, Menu, NavRail, Pagination, Stepper, Tabs |
70
+ | **Dados** | BarChart, CountUp, DataTable, Duel, Heatmap, MeterCard, Odometer, ProgressBar, ProgressRing, RadialClock, Sparkline, Stat, StatTile, Timeline |
71
+ | **Widgets** | AgendaRail, AlertCard, RouteMap, WeatherIcon, WeatherSky |
72
+ | **Assistente** | EmojiBurst, PresenceOrb, RadialMenu, SpeechBubble, ThinkingBubble |
73
+ | **Movimento e temas** | Motion, ThemeSwitcher |
74
+
75
+ Utilitários: `burst` (confete), `accentStyle(hue)` (cor por seção), `useReducedMotion`, `useCanvasLoop`, `hueFrom`, `initials`, `cx`.
76
+
77
+ ## Ilhas vivas
78
+
79
+ Pílulas escuras para atividades em andamento: chamada, timer, música, gravação, rota, cotação, clima e bateria. Ficam escuras em qualquer tema e usam a cor de destaque dele.
80
+
81
+ <img src=".github/assets/islands.png" alt="Galeria de ilhas vivas: cotação, chamada, timer, navegação, player, gravação, clima por hora, progresso e bateria" width="100%" />
82
+
83
+ ```tsx
84
+ <IslandCall name="Ana Lima" subtitle="celular" onAccept={atender} onDecline={recusar} />
85
+ <IslandTimer duration={25 * 60} label="Foco" onDone={tocar} />
86
+ <IslandChip icon={<Bike />} value="2,0 km" tone="gold" label="Pedalada: 2 km" />
87
+ ```
88
+
89
+ ## Temas
90
+
91
+ <img src=".github/assets/themes.png" alt="O mesmo card em seis temas: Sonido escuro, Sonido claro, Hueco Mundo, Canto, Drácula e Aurora" width="100%" />
92
+
93
+ | Tema | Ativar |
94
+ | ---------------------- | ------------------------------------------------- |
95
+ | Sonido escuro (padrão) | nada, é o `:root` |
96
+ | Sonido claro | `data-theme="light"` |
97
+ | Hueco Mundo | `data-theme="hueco-mundo"` |
98
+ | Canto · Canto claro | `data-theme="canto"` · `data-theme="canto-claro"` |
99
+ | Drácula | `data-theme="dracula"` |
100
+ | Glass | `data-theme="glass"` |
101
+ | Aurora | `data-theme="aurora"` |
102
+
103
+ ```ts
104
+ document.documentElement.dataset.theme = "aurora";
105
+ // ou <ThemeSwitcher value={tema} onChange={setTema} /> com a lavada circular
106
+ ```
107
+
108
+ Tokens em JS: `import { color, space, duration } from "@juninmd/sonido/tokens"`. Só as variáveis: `@juninmd/sonido/tokens.css`.
109
+
110
+ ## De onde veio cada peça
111
+
112
+ Sonido junta o melhor dos apps do juninmd:
113
+
114
+ | Origem | O que trouxe |
115
+ | --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
116
+ | games-gallery | Dock com ampliação, Hero, Card com tilt, AmbientBackdrop, ProgressRing, CountUp, Toast |
117
+ | nerd-watch | Tokens base, CommandPalette, Carousel, NavRail, BarChart, Artwork, confete |
118
+ | canto-widget | Tema Hueco Mundo e os 5 skins do canto, WeatherSky, AlertCard com 19 cenas, RouteMap, AgendaRail, Tabs, DataTable |
119
+ | pobre-lingo | Botão tátil, curva de mola, Rating e ProgressBar gamificados |
120
+ | mika | PresenceOrb, ThinkingBubble, SpeechBubble, RadialMenu, EmojiBurst, PageHeader, StatTile, ToggleCard, SaveIndicator, Bento |
121
+ | ai-session-monitor | ThemeSwitcher, MeterCard |
122
+ | franca-segura · eleicoes-radar · treta-aovivo | Heatmap, RadialClock, Odometer, Stamp, LiveBadge, Duel |
123
+ | faxina | Release com semantic-release e commitlint |
124
+
125
+ ## Desenvolvimento
126
+
127
+ ```bash
128
+ npm install
129
+ npm run dev # Storybook em http://localhost:6006
130
+ npm run check # lint + tipos + auditoria do design system + testes
131
+ npm run build # pacote em dist/
132
+ npm run build:docs # site estático em storybook-static/
133
+ ```
134
+
135
+ Os testes montam **todos os exemplos da documentação**, então o código que você copia da doc sempre funciona.
136
+
137
+ ### Skills de auditoria
138
+
139
+ Em `.claude/skills/` há três skills para o Claude Code:
140
+
141
+ - **sonido-audit**: roda `npm run audit:ds`, lint, tipos e testes e corrige o que falhar.
142
+ - **sonido-a11y**: axe-core nos 78 exemplos em todos os temas.
143
+ - **sonido-component**: passo a passo para criar ou portar um componente.
144
+
145
+ ## Releases
146
+
147
+ Versões saem sozinhas a cada merge na `main`, pelo [semantic-release](https://github.com/semantic-release/semantic-release), a partir das mensagens de commit:
148
+
149
+ | Commit | Versão |
150
+ | ----------------------------- | ------------- |
151
+ | `fix(button): foco no Safari` | patch `1.0.1` |
152
+ | `feat(toast): ação desfazer` | minor `1.1.0` |
153
+ | `feat!: remove a prop tone` | major `2.0.0` |
154
+
155
+ O commitlint valida as mensagens no `commit-msg` (husky) e no CI.
156
+
157
+ ## Contribuir
158
+
159
+ 1. Crie uma branch, faça commits semânticos e abra um PR.
160
+ 2. O CI roda lint, tipos, auditoria, testes, build do pacote e da documentação.
161
+ 3. No merge, a `main` publica no npm e atualiza a documentação.
162
+
163
+ ## Licença
164
+
165
+ [MIT](LICENSE) © juninmd
@@ -0,0 +1,16 @@
1
+ import { type ReactNode } from "react";
2
+ import "./Accordion.css";
3
+ export interface AccordionItem {
4
+ key: string;
5
+ title: ReactNode;
6
+ content: ReactNode;
7
+ }
8
+ export interface AccordionProps {
9
+ items: AccordionItem[];
10
+ /** Permite várias abertas ao mesmo tempo. */
11
+ multiple?: boolean;
12
+ defaultOpen?: string[];
13
+ className?: string;
14
+ }
15
+ /** Seções expansíveis com altura animada (grid 0fr → 1fr). */
16
+ export declare function Accordion({ items, multiple, defaultOpen, className }: AccordionProps): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./Accordion";
@@ -0,0 +1,38 @@
1
+ import type { ReactNode } from "react";
2
+ import "./AgendaRail.css";
3
+ export interface AgendaEvent {
4
+ id: string;
5
+ /** Minutos desde 00:00. */
6
+ start: number;
7
+ end: number;
8
+ title: string;
9
+ where?: ReactNode;
10
+ kind?: "event" | "task" | "free";
11
+ /** Conflito com outro evento: o trilho fica vermelho. */
12
+ clash?: boolean;
13
+ }
14
+ export interface AgendaRailProps {
15
+ events: AgendaEvent[];
16
+ /** Minuto atual; a linha do agora fica antes do próximo evento. */
17
+ now: number;
18
+ label?: string;
19
+ className?: string;
20
+ }
21
+ export declare const hhmm: (m: number) => string;
22
+ /**
23
+ * Linha do dia do canto-widget: reuniões, tarefas com horário e janelas livres num trilho,
24
+ * com a linha do "agora" e um ponto que bate. Eventos em andamento ganham o anel de contagem.
25
+ */
26
+ export declare function AgendaRail({ events, now, label, className }: AgendaRailProps): import("react").JSX.Element;
27
+ /** A linha vermelha do agora, com o ponto que bate (canto-now-dot). */
28
+ export declare function NowLine({ now }: {
29
+ now: number;
30
+ }): import("react").JSX.Element;
31
+ export interface CountdownRingProps {
32
+ start: number;
33
+ end: number;
34
+ now: number;
35
+ size?: number;
36
+ }
37
+ /** Anel de reunião em andamento: o arco esvazia até o fim e mostra os minutos restantes. */
38
+ export declare function CountdownRing({ start, end, now, size }: CountdownRingProps): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./AgendaRail";
@@ -0,0 +1,12 @@
1
+ import type { ReactNode } from "react";
2
+ import "./Alert.css";
3
+ export interface AlertProps {
4
+ tone?: "info" | "success" | "warning" | "danger";
5
+ title?: string;
6
+ children?: ReactNode;
7
+ /** Ação à direita, ex.: botão "Tentar de novo". */
8
+ action?: ReactNode;
9
+ className?: string;
10
+ }
11
+ /** Mensagem em linha. `danger` usa `role="alert"`; os demais, `role="status"`. */
12
+ export declare function Alert({ tone, title, children, action, className }: AlertProps): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./Alert";
@@ -0,0 +1,126 @@
1
+ import { type ReactNode } from "react";
2
+ import { type AlertScene } from "./scenes";
3
+ import "./AlertCard.css";
4
+ export type { AlertScene };
5
+ export type AlertTone = "danger" | "warn" | "accent" | "muted";
6
+ export type AlertEnter = "drop" | "shake" | "gust" | "rise" | "frost" | "mist" | "glow";
7
+ /** Entrada e cena sugeridas por tipo de alerta (alertFxSpec do canto-widget). */
8
+ export declare const ALERT_PRESETS: {
9
+ meeting: {
10
+ scene: "calendar";
11
+ enter: "rise";
12
+ sky: string;
13
+ };
14
+ task: {
15
+ scene: "ticks";
16
+ enter: "drop";
17
+ sky: string;
18
+ };
19
+ ciFail: {
20
+ scene: "bugs";
21
+ enter: "shake";
22
+ sky: string;
23
+ };
24
+ conflict: {
25
+ scene: "branches";
26
+ enter: "gust";
27
+ sky: string;
28
+ };
29
+ approved: {
30
+ scene: "sparks";
31
+ enter: "glow";
32
+ sky: string;
33
+ };
34
+ mention: {
35
+ scene: "bubbles";
36
+ enter: "rise";
37
+ sky: string;
38
+ };
39
+ status: {
40
+ scene: "pulse";
41
+ enter: "drop";
42
+ sky: string;
43
+ };
44
+ morning: {
45
+ scene: "rays";
46
+ enter: "mist";
47
+ sky: string;
48
+ };
49
+ rain: {
50
+ scene: "rain";
51
+ enter: "drop";
52
+ sky: string;
53
+ };
54
+ flood: {
55
+ scene: "flood";
56
+ enter: "drop";
57
+ sky: string;
58
+ };
59
+ storm: {
60
+ scene: "storm";
61
+ enter: "shake";
62
+ sky: string;
63
+ };
64
+ snow: {
65
+ scene: "snow";
66
+ enter: "frost";
67
+ sky: string;
68
+ };
69
+ cold: {
70
+ scene: "cold";
71
+ enter: "frost";
72
+ sky: string;
73
+ };
74
+ heat: {
75
+ scene: "heat";
76
+ enter: "rise";
77
+ sky: string;
78
+ };
79
+ dry: {
80
+ scene: "dry";
81
+ enter: "mist";
82
+ sky: string;
83
+ };
84
+ wind: {
85
+ scene: "wind";
86
+ enter: "gust";
87
+ sky: string;
88
+ };
89
+ uv: {
90
+ scene: "uv";
91
+ enter: "glow";
92
+ sky: string;
93
+ };
94
+ smoke: {
95
+ scene: "smoke";
96
+ enter: "mist";
97
+ sky: string;
98
+ };
99
+ fog: {
100
+ scene: "fog";
101
+ enter: "mist";
102
+ sky: string;
103
+ };
104
+ };
105
+ export interface AlertCardProps {
106
+ title: ReactNode;
107
+ children?: ReactNode;
108
+ /** Ícone ou emoji à esquerda. */
109
+ icon?: ReactNode;
110
+ /** Hora/meta à direita do título. */
111
+ meta?: ReactNode;
112
+ scene?: AlertScene;
113
+ enter?: AlertEnter;
114
+ tone?: AlertTone;
115
+ /** Cor do céu atrás do cartão. */
116
+ sky?: string;
117
+ /** Grave: anel pulsante, vinheta de alarme e cena mais intensa. */
118
+ severe?: boolean;
119
+ actions?: ReactNode;
120
+ className?: string;
121
+ }
122
+ /**
123
+ * Notificação viva do canto-widget: cada tipo chega de um jeito (cai, treme, rajada, sobe, geada, névoa, brilho)
124
+ * e espera com uma cena animada atrás (agenda, tarefas, CI, PR, clima…). Sem cena com reduced-motion.
125
+ */
126
+ export declare function AlertCard({ title, children, icon, meta, scene, enter, tone, sky, severe, actions, className, }: AlertCardProps): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./AlertCard";
@@ -0,0 +1,33 @@
1
+ /** Cenas animadas de fundo dos alertas do canto-widget (AlertFx + WeatherAlertFx), num só mapa. */
2
+ import type { CanvasFrame } from "../../utils/useCanvasLoop";
3
+ export type AlertScene = "calendar" | "ticks" | "sparks" | "bugs" | "branches" | "bubbles" | "rays" | "pulse" | "rain" | "storm" | "flood" | "snow" | "cold" | "heat" | "dry" | "wind" | "uv" | "smoke" | "fog";
4
+ type P = {
5
+ x: number;
6
+ y: number;
7
+ v: number;
8
+ r: number;
9
+ a: number;
10
+ s: number;
11
+ };
12
+ export type SceneState = {
13
+ p: P[];
14
+ ripples: {
15
+ x: number;
16
+ r: number;
17
+ a: number;
18
+ }[];
19
+ nextBolt: number;
20
+ bolt: {
21
+ life: number;
22
+ pts: [number, number][];
23
+ } | null;
24
+ };
25
+ type F = CanvasFrame & {
26
+ st: SceneState;
27
+ rgb: string;
28
+ hot: boolean;
29
+ flash: () => void;
30
+ };
31
+ export declare function seedScene(scene: AlertScene, w: number, h: number, hot: boolean): SceneState;
32
+ export declare const SCENES: Record<AlertScene, (f: F) => void>;
33
+ export {};
@@ -0,0 +1,12 @@
1
+ import "./AmbientBackdrop.css";
2
+ export interface AmbientBackdropProps {
3
+ /** Duas cores do ambiente (ex.: tiradas da capa em foco). Padrão: as do tema. */
4
+ colors?: [string, string];
5
+ /** `fixed` cobre a viewport; `absolute` cobre o pai posicionado. */
6
+ position?: "fixed" | "absolute";
7
+ /** Deriva lenta das manchas (desliga com reduced-motion). */
8
+ animated?: boolean;
9
+ className?: string;
10
+ }
11
+ /** Fundo atmosférico com duas manchas de cor desfocadas e vinheta (games-gallery + nerd-watch). */
12
+ export declare function AmbientBackdrop({ colors, position, animated, className }: AmbientBackdropProps): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./AmbientBackdrop";
@@ -0,0 +1,13 @@
1
+ import { type ReactNode } from "react";
2
+ import "./Artwork.css";
3
+ export interface ArtworkProps {
4
+ title: string;
5
+ src?: string;
6
+ /** Proporção da capa. */
7
+ ratio?: "poster" | "square" | "wide";
8
+ /** Selo no canto (ex.: plataforma, nota). */
9
+ badge?: ReactNode;
10
+ className?: string;
11
+ }
12
+ /** Arte (capa, pôster) com fade-in e placeholder em gradiente de cor estável derivada do título (nerd-watch + games-gallery). */
13
+ export declare function Artwork({ title, src, ratio, badge, className }: ArtworkProps): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./Artwork";
@@ -0,0 +1,23 @@
1
+ import { type ReactNode } from "react";
2
+ import "./Avatar.css";
3
+ export interface AvatarProps {
4
+ name: string;
5
+ src?: string;
6
+ size?: number;
7
+ /** Ponto de presença. */
8
+ status?: "online" | "away" | "busy" | "offline";
9
+ /** Anel em gradiente (história/destaque). */
10
+ ring?: boolean;
11
+ className?: string;
12
+ }
13
+ /** Foto ou iniciais com cor estável derivada do nome. */
14
+ export declare function Avatar({ name, src, size, status, ring, className }: AvatarProps): import("react").JSX.Element;
15
+ export interface AvatarGroupProps {
16
+ children: ReactNode;
17
+ /** Quantos aparecem antes do "+N". */
18
+ max?: number;
19
+ size?: number;
20
+ className?: string;
21
+ }
22
+ /** Avatares sobrepostos com contador do excedente. */
23
+ export declare function AvatarGroup({ children, max, size, className }: AvatarGroupProps): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./Avatar";
@@ -0,0 +1,14 @@
1
+ import type { HTMLAttributes } from "react";
2
+ import "./Badge.css";
3
+ export type BadgeTone = "neutral" | "accent" | "violet" | "aqua" | "gold" | "success" | "warning" | "danger";
4
+ export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
5
+ tone?: BadgeTone;
6
+ /** `soft` = pílula tingida; `solid` = preenchida. */
7
+ appearance?: "soft" | "solid";
8
+ /** Mostra um ponto de status antes do texto. */
9
+ dot?: boolean;
10
+ /** Estado ao vivo: o ponto emite um pulso (StatusPill do mika). */
11
+ live?: boolean;
12
+ }
13
+ /** Pílula para status, contagem e categoria. */
14
+ export declare function Badge({ tone, appearance, dot, live, className, children, ...rest }: BadgeProps): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./Badge";
@@ -0,0 +1,17 @@
1
+ import "./BarChart.css";
2
+ export interface BarDatum {
3
+ label: string;
4
+ value: number;
5
+ }
6
+ export interface BarChartProps {
7
+ data: BarDatum[];
8
+ /** Título acessível; também vira a legenda da tabela oculta. */
9
+ label: string;
10
+ format?: (n: number) => string;
11
+ /** `columns` (vertical) ou `bars` (horizontal). */
12
+ orientation?: "columns" | "bars";
13
+ height?: number;
14
+ className?: string;
15
+ }
16
+ /** Gráfico de barras só com CSS (nerd-watch): texto nítido, marcas focáveis e tabela para leitores de tela. */
17
+ export declare function BarChart({ data, label, format, orientation, height, className, }: BarChartProps): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./BarChart";
@@ -0,0 +1,13 @@
1
+ import "./BatteryMeter.css";
2
+ export interface BatteryMeterProps {
3
+ /** 0 a 1. */
4
+ level: number;
5
+ charging?: boolean;
6
+ /** Mostra a porcentagem ao lado. */
7
+ showValue?: boolean;
8
+ /** Abaixo disso fica vermelho e pisca (padrão 0,2). */
9
+ low?: number;
10
+ className?: string;
11
+ }
12
+ /** Bateria com cor por nível: verde, âmbar abaixo de 50% e vermelho (piscando) abaixo de `low`. */
13
+ export declare function BatteryMeter({ level, charging, showValue, low, className }: BatteryMeterProps): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./BatteryMeter";
@@ -0,0 +1,11 @@
1
+ import type { ReactNode } from "react";
2
+ import "./Bento.css";
3
+ export interface BentoProps {
4
+ /** `auto` = flex que quebra, cada item com base 260px (sem trilhas vazias). */
5
+ cols?: 1 | 2 | 3 | "auto";
6
+ minItem?: number;
7
+ children: ReactNode;
8
+ className?: string;
9
+ }
10
+ /** Grade bento (BentoGrid do mika). Itens podem ocupar 2 colunas com `.sn-bento__wide`. */
11
+ export declare function Bento({ cols, minItem, children, className }: BentoProps): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./Bento";
@@ -0,0 +1,12 @@
1
+ import "./Breadcrumb.css";
2
+ export interface Crumb {
3
+ label: string;
4
+ href?: string;
5
+ onClick?: () => void;
6
+ }
7
+ /** Trilha de navegação. O último item é a página atual. */
8
+ export declare function Breadcrumb({ items, className, label, }: {
9
+ items: Crumb[];
10
+ className?: string;
11
+ label?: string;
12
+ }): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./Breadcrumb";
@@ -0,0 +1,17 @@
1
+ import { type ButtonHTMLAttributes, type ReactNode } from "react";
2
+ import "./Button.css";
3
+ export type ButtonVariant = "primary" | "secondary" | "ghost" | "danger" | "link";
4
+ export type ButtonSize = "sm" | "md" | "lg" | "icon";
5
+ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
6
+ /** Estilo visual. `primary` usa o gradiente da marca com brilho no hover. */
7
+ variant?: ButtonVariant;
8
+ size?: ButtonSize;
9
+ /** Sombra tátil que "afunda" no clique (pobre-lingo). */
10
+ press?: boolean;
11
+ /** Mostra spinner, desabilita e marca `aria-busy`. */
12
+ loading?: boolean;
13
+ iconStart?: ReactNode;
14
+ iconEnd?: ReactNode;
15
+ }
16
+ /** Botão base do Sonido. Para ícone sozinho, use `size="icon"` e `aria-label`. */
17
+ export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1 @@
1
+ export * from "./Button";
@@ -0,0 +1,17 @@
1
+ import { type HTMLAttributes } from "react";
2
+ import "./Card.css";
3
+ export interface CardProps extends HTMLAttributes<HTMLDivElement> {
4
+ /** `glass` = vidro com blur (games-gallery); `solid` = superfície opaca. */
5
+ surface?: "glass" | "solid";
6
+ /** Eleva no hover. */
7
+ interactive?: boolean;
8
+ /** Inclinação 3D + spotlight seguindo o ponteiro (games-gallery / nerd-watch). */
9
+ tilt?: boolean;
10
+ padding?: "none" | "sm" | "md" | "lg";
11
+ }
12
+ /** Contêiner de conteúdo. Combine com `CardHeader`, `CardBody`, `CardFooter`. */
13
+ export declare function Card({ surface, interactive, tilt, padding, className, onPointerMove, onPointerLeave, ...rest }: CardProps): import("react").JSX.Element;
14
+ export declare function CardHeader({ className, ...rest }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
15
+ export declare function CardTitle({ className, ...rest }: HTMLAttributes<HTMLHeadingElement>): import("react").JSX.Element;
16
+ export declare function CardBody({ className, ...rest }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
17
+ export declare function CardFooter({ className, ...rest }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./Card";
@@ -0,0 +1,14 @@
1
+ import { type ReactNode } from "react";
2
+ import "./Carousel.css";
3
+ export interface CarouselProps {
4
+ /** Título da faixa (também rotula a região). */
5
+ title: string;
6
+ /** Ação no cabeçalho, ex.: "Ver tudo". */
7
+ action?: ReactNode;
8
+ children: ReactNode;
9
+ /** Largura de cada item. */
10
+ itemWidth?: number;
11
+ className?: string;
12
+ }
13
+ /** Faixa horizontal com scroll-snap e setas que rolam uma página (nerd-watch). */
14
+ export declare function Carousel({ title, action, children, itemWidth, className }: CarouselProps): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./Carousel";