@toski-labs/ds 0.8.0 → 0.8.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/CHANGELOG.md +22 -0
- package/build/json/mobile.json +3 -8
- package/build/swift/ToskiTokens.swift +3 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,28 @@ Escreva as mudanças em "Próxima versão" enquanto trabalha; `npm run release`
|
|
|
5
5
|
|
|
6
6
|
## Próxima versão
|
|
7
7
|
|
|
8
|
+
## 0.8.1 — 2026-11-07
|
|
9
|
+
|
|
10
|
+
Sugestão de número ao lançar: **0.8.1** (correção). Muda `component` em `mobile.json` e em `ToskiTokens.swift`, e **remove
|
|
11
|
+
`ToskiComponent.Button.Card`**, que é API pública do Swift; pré-1.0, mesma regra do 0.6.0 e do 0.8.0, então segue 0.8.1, e
|
|
12
|
+
nada a usava (nem o DS, nem o app, nem o site; o `sync:app` não leva o `component`). O `app-tokens*.json` não muda.
|
|
13
|
+
|
|
14
|
+
### Corrigido
|
|
15
|
+
|
|
16
|
+
- **`component.button` apontava para raios que a 0.8.0 tirou.** `large.radius` e `text.radius` eram `"button"` e
|
|
17
|
+
`card.radius` era `"buttonSmall"`; agora `large` e `text` usam `"surface"` (22), o que o app usa nos botões.
|
|
18
|
+
- **As alturas de `component.button` agora descrevem o app** (`ToskiButtonStyle.swift`): `large` 54 (já conferia) e `text`
|
|
19
|
+
de 48 para 44 (`textoNova`, `minTouchTarget`). O botão `card` (46) saiu, porque o app não tem esse botão.
|
|
20
|
+
|
|
21
|
+
### Removido
|
|
22
|
+
|
|
23
|
+
- `size.component.button.card` (`ToskiComponent.Button.Card` no Swift e `component.button.card` em `mobile.json`).
|
|
24
|
+
|
|
25
|
+
### Adicionado
|
|
26
|
+
|
|
27
|
+
- **Checagem no build**: todo `radius` em texto dentro de `size.component` precisa ser o nome de um raio do app. Se não for,
|
|
28
|
+
`tokens:build` e `tokens:check` falham dizendo o caminho e os nomes válidos (teste em `tokens.test.ts`).
|
|
29
|
+
|
|
8
30
|
## 0.8.0 — 2026-11-06
|
|
9
31
|
|
|
10
32
|
Sugestão de número ao lançar: **0.8.0** (muda o que o app e a web recebem; pré-1.0, mesma regra do 0.6.0).
|
package/build/json/mobile.json
CHANGED
|
@@ -276,18 +276,13 @@
|
|
|
276
276
|
"button": {
|
|
277
277
|
"large": {
|
|
278
278
|
"height": 54,
|
|
279
|
-
"radius": "
|
|
279
|
+
"radius": "surface",
|
|
280
280
|
"fontSize": 17,
|
|
281
281
|
"secondaryFontSize": 16
|
|
282
282
|
},
|
|
283
|
-
"card": {
|
|
284
|
-
"height": 46,
|
|
285
|
-
"radius": "buttonSmall",
|
|
286
|
-
"fontSize": 15
|
|
287
|
-
},
|
|
288
283
|
"text": {
|
|
289
|
-
"height":
|
|
290
|
-
"radius": "
|
|
284
|
+
"height": 44,
|
|
285
|
+
"radius": "surface",
|
|
291
286
|
"fontSize": 16,
|
|
292
287
|
"horizontalPadding": 4
|
|
293
288
|
},
|
|
@@ -12,18 +12,13 @@ public enum ToskiComponent {
|
|
|
12
12
|
public enum Button {
|
|
13
13
|
public enum Large {
|
|
14
14
|
public static let height: CGFloat = 54
|
|
15
|
-
public static let radius = "
|
|
15
|
+
public static let radius = "surface"
|
|
16
16
|
public static let fontSize: CGFloat = 17
|
|
17
17
|
public static let secondaryFontSize: CGFloat = 16
|
|
18
18
|
}
|
|
19
|
-
public enum Card {
|
|
20
|
-
public static let height: CGFloat = 46
|
|
21
|
-
public static let radius = "buttonSmall"
|
|
22
|
-
public static let fontSize: CGFloat = 15
|
|
23
|
-
}
|
|
24
19
|
public enum Text {
|
|
25
|
-
public static let height: CGFloat =
|
|
26
|
-
public static let radius = "
|
|
20
|
+
public static let height: CGFloat = 44
|
|
21
|
+
public static let radius = "surface"
|
|
27
22
|
public static let fontSize: CGFloat = 16
|
|
28
23
|
public static let horizontalPadding: CGFloat = 4
|
|
29
24
|
}
|