@toski-labs/ds 0.5.1 → 0.5.3

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.
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
2
+ <path d="M9 5v14 M15 5v14"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
2
+ <path d="M12 4l9 16H3z M12 10v4 M12 17v.5"/>
3
+ </svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toski-labs/ds",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "description": "Toski DS — design system da Toski Labs: tokens (web, Tailwind CSS 4, SwiftUI) e componentes React.",
5
5
  "keywords": [
6
6
  "design-system",
@@ -0,0 +1,36 @@
1
+ # Animações da dupla — PetHealthTracker
2
+
3
+ Como a dupla (cachorro e gato) e a bolinha se movem no app. Curvas e tempos seguem `motion` do `tokens.json`;
4
+ aqui só ficam as regras de cada tela.
5
+
6
+ ## Login
7
+
8
+ - O **coração pulsa**: escala 1 → 1,12 → 1.
9
+ - Duração: 1,8 s, `ease-in-out`, em repetição contínua.
10
+ - A **dupla fica parada**; só o coração se move.
11
+
12
+ ## Carregando
13
+
14
+ - A **bolinha pula entre os focinhos**: sobe 16 pt e volta, em 1,2 s, `ease-in-out`.
15
+ - Fica **parada no alto entre 45% e 60%** do ciclo.
16
+ - Os **pontinhos** continuam como hoje.
17
+
18
+ ## Erro e estados vazios
19
+
20
+ - Sem animação. A dupla (`pair-error-*` no erro, `pair-*` nos vazios) fica parada.
21
+
22
+ ## Reduzir movimento
23
+
24
+ - Com "Reduzir movimento" ligado no sistema, **tudo fica parado**: o coração do login, a bolinha do carregamento
25
+ (na posição de repouso) e qualquer outra animação da dupla. Os pontinhos também não se movem.
26
+
27
+ ## Cores da bolinha
28
+
29
+ As cores ficam nos SVGs (`ball-indigo-*` e a bolinha de `pair-error-*`), não em tokens. O aro acompanha o círculo atrás da dupla.
30
+
31
+ | Aparência | Bolinha | Costura | Aro |
32
+ | --- | --- | --- | --- |
33
+ | Claro | `#3E4C8A` (Índigo) | `#F4E4CC` (creme) | `#E3E6F5` |
34
+ | Escuro | `#A9B4E8` (lilás) | `#2C376A` (Índigo escuro) | `#2A2E45` |
35
+
36
+ No escuro, a bolinha tem contraste de 6,6:1 sobre o círculo do hero (`#2A2E45`).
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 180 180" width="1024" height="1024"><title>PetHealthTracker — ícone Noite (alternativo, Plus)</title><rect width="180" height="180" fill="#231B17"/><clipPath id="c"><rect width="180" height="180"/></clipPath><g clip-path="url(#c)"><g transform="translate(90 116) scale(.64) translate(-225 -100)"><g transform="translate(232 0) scale(-1 1)"><path d="M26 90 C26 84 32 80 40 79 L74 72 C82 70 86 62 94 56 C104 48 124 46 140 52 C158 58 166 76 168 96 C172 120 182 150 196 200 L72 200 C66 190 74 184 68 176 C62 168 72 162 68 154 C64 146 74 140 74 132 C70 126 64 122 58 118 C48 114 38 110 32 104 C27 100 25 95 26 90 Z" fill="#B88250" stroke="#F4E4CC" stroke-width="5" stroke-linejoin="round"></path><path d="M112 64 C128 56 148 62 150 78 C154 98 150 116 140 126 C136 132 128 132 124 126 C120 120 122 114 118 110 C112 96 104 78 112 64 Z" fill="#6E4529" stroke="#F4E4CC" stroke-width="4" stroke-linejoin="round"></path><ellipse cx="96" cy="74" rx="4.4" ry="3" fill="#100C0A"></ellipse><ellipse cx="31" cy="88" rx="7" ry="6" fill="#100C0A"></ellipse><ellipse cx="29" cy="85.6" rx="2.2" ry="1.5" fill="#F7F1E8" opacity=".75"></ellipse></g><g transform="translate(204 0)"><path d="M30 98 C30 91 35 87 43 86 C50 85 56 80 62 72 C68 63 76 57 86 54 L94 22 C95 18 99 18 101 21 L118 46 C126 45 134 46 141 48 L158 26 C160 23 164 24 164 28 L163 58 C174 70 179 88 178 106 C177 132 182 160 192 200 L80 200 C76 188 82 178 78 168 C74 156 82 146 80 134 C70 130 58 124 48 118 C38 112 30 106 30 98 Z" fill="#7C8199" stroke="#F4E4CC" stroke-width="5" stroke-linejoin="round"></path><path d="M98 32 L111 47 C106 49 101 52 97 56 Z" fill="#E8B4B0"></path><path d="M86 80 Q92 76 98 80" fill="none" stroke="#100C0A" stroke-width="3.2" stroke-linecap="round"></path><path d="M30 95 L38 93 L35 100 Z" fill="#D98C8C" stroke="#D98C8C" stroke-width="2" stroke-linejoin="round"></path><path d="M48 104 L18 98 M48 108 L20 112" stroke="#F4E4CC" stroke-width="2" stroke-linecap="round" opacity=".85"></path></g><path d="M217 62 C211 54 200 57 205 66 L217 77 L229 66 C234 57 223 54 217 62 Z" fill="#A9B4E8"></path></g></g></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 180 180" width="1024" height="1024"><title>PetHealthTracker — ícone Papel (alternativo, Plus)</title><rect width="180" height="180" fill="#F7F1E8"/><clipPath id="c"><rect width="180" height="180"/></clipPath><g clip-path="url(#c)"><g transform="translate(90 116) scale(.64) translate(-225 -100)"><g transform="translate(232 0) scale(-1 1)"><path d="M26 90 C26 84 32 80 40 79 L74 72 C82 70 86 62 94 56 C104 48 124 46 140 52 C158 58 166 76 168 96 C172 120 182 150 196 200 L72 200 C66 190 74 184 68 176 C62 168 72 162 68 154 C64 146 74 140 74 132 C70 126 64 122 58 118 C48 114 38 110 32 104 C27 100 25 95 26 90 Z" fill="#B88250" stroke="#231B17" stroke-width="5" stroke-linejoin="round"></path><path d="M112 64 C128 56 148 62 150 78 C154 98 150 116 140 126 C136 132 128 132 124 126 C120 120 122 114 118 110 C112 96 104 78 112 64 Z" fill="#6E4529" stroke="#231B17" stroke-width="4" stroke-linejoin="round"></path><ellipse cx="96" cy="74" rx="4.4" ry="3" fill="#231B17"></ellipse><ellipse cx="31" cy="88" rx="7" ry="6" fill="#231B17"></ellipse><ellipse cx="29" cy="85.6" rx="2.2" ry="1.5" fill="#F7F1E8" opacity=".75"></ellipse></g><g transform="translate(204 0)"><path d="M30 98 C30 91 35 87 43 86 C50 85 56 80 62 72 C68 63 76 57 86 54 L94 22 C95 18 99 18 101 21 L118 46 C126 45 134 46 141 48 L158 26 C160 23 164 24 164 28 L163 58 C174 70 179 88 178 106 C177 132 182 160 192 200 L80 200 C76 188 82 178 78 168 C74 156 82 146 80 134 C70 130 58 124 48 118 C38 112 30 106 30 98 Z" fill="#7C8199" stroke="#231B17" stroke-width="5" stroke-linejoin="round"></path><path d="M98 32 L111 47 C106 49 101 52 97 56 Z" fill="#E8B4B0"></path><path d="M86 80 Q92 76 98 80" fill="none" stroke="#231B17" stroke-width="3.2" stroke-linecap="round"></path><path d="M30 95 L38 93 L35 100 Z" fill="#D98C8C" stroke="#D98C8C" stroke-width="2" stroke-linejoin="round"></path><path d="M48 104 L18 98 M48 108 L20 112" stroke="#F4E4CC" stroke-width="2" stroke-linecap="round" opacity=".85"></path></g><path d="M217 62 C211 54 200 57 205 66 L217 77 L229 66 C234 57 223 54 217 62 Z" fill="#3E4C8A"></path></g></g></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="196 124 52 52" width="208" height="208"><g class="" opacity="1"><circle cx="222" cy="150" r="18" fill="#3E4C8A" stroke="#2A2E45" stroke-width="4"></circle><path d="M212.1 135.6 Q224.7 150 212.1 164.4 M231.9 135.6 Q219.3 150 231.9 164.4" fill="none" stroke="#F4E4CC" stroke-width="2.4" stroke-linecap="round"></path></g></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="196 124 52 52" width="208" height="208"><g class="" opacity="1"><circle cx="222" cy="150" r="18" fill="#A9B4E8" stroke="#2A2E45" stroke-width="4"></circle><path d="M212.1 135.6 Q224.7 150 212.1 164.4 M231.9 135.6 Q219.3 150 231.9 164.4" fill="none" stroke="#2C376A" stroke-width="2.4" stroke-linecap="round"></path></g></svg>
@@ -1 +1 @@
1
- <svg viewBox="0 -30 430 230" role="img" aria-label="Cachorro e gato" width="860" height="460" xmlns="http://www.w3.org/2000/svg"><g transform="translate(222 0) scale(-1 1)"><path d="M26 90 C26 84 32 80 40 79 L74 72 C82 70 86 62 94 56 C104 48 124 46 140 52 C158 58 166 76 168 96 C172 120 182 150 196 200 L72 200 C66 190 74 184 68 176 C62 168 72 162 68 154 C64 146 74 140 74 132 C70 126 64 122 58 118 C48 114 38 110 32 104 C27 100 25 95 26 90 Z" fill="#B88250" stroke="#F4E4CC" stroke-width="5" stroke-linejoin="round"></path><path d="M112 64 C128 56 148 62 150 78 C154 98 150 116 140 126 C136 132 128 132 124 126 C120 120 122 114 118 110 C112 96 104 78 112 64 Z" fill="#6E4529" stroke="#F4E4CC" stroke-width="4" stroke-linejoin="round"></path><ellipse cx="94" cy="77" rx="4.4" ry="3" fill="#100C0A"></ellipse><ellipse cx="31" cy="88" rx="7" ry="6" fill="#100C0A"></ellipse><ellipse cx="29" cy="85.6" rx="2.2" ry="1.5" fill="#F7F1E8" opacity=".75"></ellipse></g><g transform="translate(214 0)"><path d="M30 98 C30 91 35 87 43 86 C50 85 56 80 62 72 C68 63 76 57 86 54 L94 22 C95 18 99 18 101 21 L118 46 C126 45 134 46 141 48 L158 26 C160 23 164 24 164 28 L163 58 C174 70 179 88 178 106 C177 132 182 160 192 200 L80 200 C76 188 82 178 78 168 C74 156 82 146 80 134 C70 130 58 124 48 118 C38 112 30 106 30 98 Z" fill="#7C8199" stroke="#F4E4CC" stroke-width="5" stroke-linejoin="round"></path><path d="M98 32 L111 47 C106 49 101 52 97 56 Z" fill="#E8B4B0"></path><ellipse cx="90" cy="81" rx="3.2" ry="4" fill="#100C0A"></ellipse><path d="M30 95 L38 93 L35 100 Z" fill="#D98C8C" stroke="#D98C8C" stroke-width="2" stroke-linejoin="round"></path><path d="M48 104 L18 98 M48 108 L20 112" stroke="#F4E4CC" stroke-width="2" stroke-linecap="round" opacity=".85"></path></g><g class="" opacity="0.6"><circle cx="222" cy="176" r="12" fill="#3E4C8A" stroke="#2A2E45" stroke-width="4"></circle><path d="M215.4 166.4 Q223.8 176 215.4 185.6 M228.6 166.4 Q220.2 176 228.6 185.6" fill="none" stroke="#F4E4CC" stroke-width="2.4" stroke-linecap="round"></path></g></svg>
1
+ <svg viewBox="0 -30 430 230" role="img" aria-label="Cachorro e gato" width="860" height="460" xmlns="http://www.w3.org/2000/svg"><g transform="translate(222 0) scale(-1 1)"><path d="M26 90 C26 84 32 80 40 79 L74 72 C82 70 86 62 94 56 C104 48 124 46 140 52 C158 58 166 76 168 96 C172 120 182 150 196 200 L72 200 C66 190 74 184 68 176 C62 168 72 162 68 154 C64 146 74 140 74 132 C70 126 64 122 58 118 C48 114 38 110 32 104 C27 100 25 95 26 90 Z" fill="#B88250" stroke="#F4E4CC" stroke-width="5" stroke-linejoin="round"></path><path d="M112 64 C128 56 148 62 150 78 C154 98 150 116 140 126 C136 132 128 132 124 126 C120 120 122 114 118 110 C112 96 104 78 112 64 Z" fill="#6E4529" stroke="#F4E4CC" stroke-width="4" stroke-linejoin="round"></path><ellipse cx="94" cy="77" rx="4.4" ry="3" fill="#100C0A"></ellipse><ellipse cx="31" cy="88" rx="7" ry="6" fill="#100C0A"></ellipse><ellipse cx="29" cy="85.6" rx="2.2" ry="1.5" fill="#F7F1E8" opacity=".75"></ellipse></g><g transform="translate(214 0)"><path d="M30 98 C30 91 35 87 43 86 C50 85 56 80 62 72 C68 63 76 57 86 54 L94 22 C95 18 99 18 101 21 L118 46 C126 45 134 46 141 48 L158 26 C160 23 164 24 164 28 L163 58 C174 70 179 88 178 106 C177 132 182 160 192 200 L80 200 C76 188 82 178 78 168 C74 156 82 146 80 134 C70 130 58 124 48 118 C38 112 30 106 30 98 Z" fill="#7C8199" stroke="#F4E4CC" stroke-width="5" stroke-linejoin="round"></path><path d="M98 32 L111 47 C106 49 101 52 97 56 Z" fill="#E8B4B0"></path><ellipse cx="90" cy="81" rx="3.2" ry="4" fill="#100C0A"></ellipse><path d="M30 95 L38 93 L35 100 Z" fill="#D98C8C" stroke="#D98C8C" stroke-width="2" stroke-linejoin="round"></path><path d="M48 104 L18 98 M48 108 L20 112" stroke="#F4E4CC" stroke-width="2" stroke-linecap="round" opacity=".85"></path></g><g class="" opacity="0.6"><circle cx="222" cy="176" r="12" fill="#A9B4E8" stroke="#2A2E45" stroke-width="4"></circle><path d="M215.4 166.4 Q223.8 176 215.4 185.6 M228.6 166.4 Q220.2 176 228.6 185.6" fill="none" stroke="#2C376A" stroke-width="2.4" stroke-linecap="round"></path></g></svg>