@toski-labs/ds 0.5.0 → 0.5.2

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 (36) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/build/json/app-tokens.json +10 -2
  3. package/build/json/app-tokens.koti.json +53 -8
  4. package/build/json/app-tokens.pethealth.json +30 -2
  5. package/build/json/mobile.json +16 -3
  6. package/build/json/web.json +6 -1
  7. package/build/json/web.koti.json +49 -7
  8. package/build/json/web.pethealth.json +26 -1
  9. package/build/swift/ToskiColors.swift +5 -1
  10. package/dist/components/ProductArt.d.ts +13 -1
  11. package/dist/generated/icons.d.ts +50 -0
  12. package/dist/generated/products.d.ts +7 -1
  13. package/dist/generated/tokens.d.ts +1 -1
  14. package/dist/index.d.ts +1 -1
  15. package/dist/index.js +68 -3
  16. package/dist/index.js.map +1 -1
  17. package/icons/icons.json +20 -0
  18. package/icons/svg/circulo-alerta.svg +3 -0
  19. package/icons/svg/desfazer.svg +3 -0
  20. package/icons/svg/encerrar.svg +3 -0
  21. package/icons/svg/pausar.svg +3 -0
  22. package/icons/svg/triangulo.svg +3 -0
  23. package/package.json +1 -1
  24. package/products/koti/icon/koti-icon-dark-1024.png +0 -0
  25. package/products/koti/icon/koti-icon-dark.svg +7 -0
  26. package/products/koti/icon/koti-icon-light-1024.png +0 -0
  27. package/products/koti/icon/koti-icon-light.svg +7 -0
  28. package/products/koti/icon/koti-icon-tinted-1024.png +0 -0
  29. package/products/koti/icon/koti-icon-tinted.svg +7 -0
  30. package/products/koti/logo/koti-logo-paper.svg +5 -0
  31. package/products/koti/logo/koti-logo-plum.svg +5 -0
  32. package/products/pethealth/animations.md +25 -0
  33. package/products/pethealth/icon-alt/pethealth-icon-night-1024.png +0 -0
  34. package/products/pethealth/icon-alt/pethealth-icon-night.svg +1 -0
  35. package/products/pethealth/icon-alt/pethealth-icon-paper-1024.png +0 -0
  36. package/products/pethealth/icon-alt/pethealth-icon-paper.svg +1 -0
package/CHANGELOG.md CHANGED
@@ -5,6 +5,43 @@ 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.5.2 — 2026-10-09
9
+
10
+ ### Corrigido
11
+
12
+ - `mobile.pet.calendarDots` estava truncado em 2 cores claras e 2 escuras, mas o app usa 6 de cada
13
+ (`calendarDots.count == avatars.count`). Restauradas as 6, claro e escuro; todas passam de 3:1 sobre `background` e
14
+ `surface` nos dois modos (mínimo 3,05:1). A base muda só nesse ponto, então `app-tokens.json` e `web/mobile.json`
15
+ deixam de sair byte a byte iguais à 0.5.1.
16
+ - `npm run sync:app` saía com erro porque o app tem ícones que o DS não tinha (veja "Adicionado").
17
+
18
+ ### Adicionado
19
+
20
+ - Ícones de interface `circulo-alerta` (`alert-circle`), `desfazer` (`undo`), `encerrar` (`end`), `pausar` (`pause`) e
21
+ `triangulo` (`triangle`), com os desenhos que o app já usa, em `icons/icons.json` e `icons/svg/`.
22
+ - Ícones alternativos do PetHealthTracker Plus (Noite e Papel; SVG e PNG 1024) em `products/pethealth/icon-alt/`, com
23
+ nomes em inglês na web (`pethealth-icon-night`, `pethealth-icon-paper`) e em português no app
24
+ (`pethealth-icone-noite`, `pethealth-icone-papel`) em `themes.pethealth.assets`. Sem o metadata C2PA dos originais.
25
+ `npm run sync:app` copia os dois para `docs/design/assets/products/`.
26
+ - `products/pethealth/animations.md`: animações da dupla (login, carregando, erro/vazios e Reduzir movimento).
27
+
28
+ ## 0.5.1 — 2026-10-09
29
+
30
+ ### Adicionado
31
+
32
+ - Ícones do Koti em `products/koti/icon/` (claro, escuro, tingido; SVG e PNG 1024) e logotipos em `products/koti/logo/`
33
+ (ameixa, para fundos claros, e papel, para fundos escuros e ameixa), no mesmo padrão do PetHealthTracker.
34
+ Nomes em inglês na web (`koti-icon-light`, `koti-logo-plum`) e em português no app (`koti-icone-claro`,
35
+ `koti-logotipo-ameixa`), em `themes.koti.assets`. Sem o metadata C2PA dos arquivos originais.
36
+ - `ProductIcon` funciona com `product="koti"` e o novo `ProductLogo` mostra o logotipo certo para claro e escuro.
37
+ - Storybook: a página Marca/Temas de produto mostra os ícones e o logotipo do Koti no lugar de "pendente".
38
+ - `npm run sync:app -- --theme koti` passa a copiar ícones e logotipos do Koti para `docs/design/assets/products/`.
39
+
40
+ ### Pendente
41
+
42
+ - Corrigir o `lockBackground` da base (`#DB9A5B` com `onLock` `#FFF8EE` dá 2,27:1; o par não está no CI). Os dois
43
+ apps usam o próprio tema e passam.
44
+
8
45
  ## 0.5.0 — 2026-10-09
9
46
 
10
47
  ### Adicionado
@@ -221,11 +221,19 @@
221
221
  "calendarDots": {
222
222
  "light": [
223
223
  "#C27A3A",
224
- "#6F8A5C"
224
+ "#6F8A5C",
225
+ "#A0814A",
226
+ "#87755F",
227
+ "#5B7792",
228
+ "#94688F"
225
229
  ],
226
230
  "dark": [
227
231
  "#DB9A5B",
228
- "#9DB089"
232
+ "#9DB089",
233
+ "#E2C79A",
234
+ "#C9B8A6",
235
+ "#B7C4D1",
236
+ "#D8C0D6"
229
237
  ]
230
238
  },
231
239
  "onAvatar": "#231B17",
@@ -221,11 +221,19 @@
221
221
  "calendarDots": {
222
222
  "light": [
223
223
  "#C27A3A",
224
- "#6F8A5C"
224
+ "#6F8A5C",
225
+ "#A0814A",
226
+ "#87755F",
227
+ "#5B7792",
228
+ "#94688F"
225
229
  ],
226
230
  "dark": [
227
231
  "#DB9A5B",
228
- "#9DB089"
232
+ "#9DB089",
233
+ "#E2C79A",
234
+ "#C9B8A6",
235
+ "#B7C4D1",
236
+ "#D8C0D6"
229
237
  ]
230
238
  },
231
239
  "onAvatar": "#231B17",
@@ -411,11 +419,48 @@
411
419
  }
412
420
  }
413
421
  },
414
- "assets": [],
415
- "pending": [
416
- "koti-icone.svg",
417
- "koti-icone-escuro.svg",
418
- "koti-icone-colorido.svg"
419
- ]
422
+ "assets": [
423
+ {
424
+ "name": "koti-icone-claro",
425
+ "file": "products/koti/icon/koti-icon-light.svg",
426
+ "kind": "icon"
427
+ },
428
+ {
429
+ "name": "koti-icone-claro-1024",
430
+ "file": "products/koti/icon/koti-icon-light-1024.png",
431
+ "kind": "icon-png"
432
+ },
433
+ {
434
+ "name": "koti-icone-escuro",
435
+ "file": "products/koti/icon/koti-icon-dark.svg",
436
+ "kind": "icon"
437
+ },
438
+ {
439
+ "name": "koti-icone-escuro-1024",
440
+ "file": "products/koti/icon/koti-icon-dark-1024.png",
441
+ "kind": "icon-png"
442
+ },
443
+ {
444
+ "name": "koti-icone-tingido",
445
+ "file": "products/koti/icon/koti-icon-tinted.svg",
446
+ "kind": "icon"
447
+ },
448
+ {
449
+ "name": "koti-icone-tingido-1024",
450
+ "file": "products/koti/icon/koti-icon-tinted-1024.png",
451
+ "kind": "icon-png"
452
+ },
453
+ {
454
+ "name": "koti-logotipo-ameixa",
455
+ "file": "products/koti/logo/koti-logo-plum.svg",
456
+ "kind": "logo"
457
+ },
458
+ {
459
+ "name": "koti-logotipo-papel",
460
+ "file": "products/koti/logo/koti-logo-paper.svg",
461
+ "kind": "logo"
462
+ }
463
+ ],
464
+ "pending": []
420
465
  }
421
466
  }
@@ -221,11 +221,19 @@
221
221
  "calendarDots": {
222
222
  "light": [
223
223
  "#C27A3A",
224
- "#6F8A5C"
224
+ "#6F8A5C",
225
+ "#A0814A",
226
+ "#87755F",
227
+ "#5B7792",
228
+ "#94688F"
225
229
  ],
226
230
  "dark": [
227
231
  "#DB9A5B",
228
- "#9DB089"
232
+ "#9DB089",
233
+ "#E2C79A",
234
+ "#C9B8A6",
235
+ "#B7C4D1",
236
+ "#D8C0D6"
229
237
  ]
230
238
  },
231
239
  "onAvatar": "#231B17",
@@ -477,6 +485,26 @@
477
485
  "name": "bolinha-indigo-escuro",
478
486
  "file": "products/pethealth/mascots/ball-indigo-dark.svg",
479
487
  "kind": "mascot"
488
+ },
489
+ {
490
+ "name": "pethealth-icone-noite",
491
+ "file": "products/pethealth/icon-alt/pethealth-icon-night.svg",
492
+ "kind": "icon-alt"
493
+ },
494
+ {
495
+ "name": "pethealth-icone-noite-1024",
496
+ "file": "products/pethealth/icon-alt/pethealth-icon-night-1024.png",
497
+ "kind": "icon-alt-png"
498
+ },
499
+ {
500
+ "name": "pethealth-icone-papel",
501
+ "file": "products/pethealth/icon-alt/pethealth-icon-paper.svg",
502
+ "kind": "icon-alt"
503
+ },
504
+ {
505
+ "name": "pethealth-icone-papel-1024",
506
+ "file": "products/pethealth/icon-alt/pethealth-icon-paper-1024.png",
507
+ "kind": "icon-alt-png"
480
508
  }
481
509
  ],
482
510
  "pending": []
@@ -103,11 +103,19 @@
103
103
  "calendarDots": {
104
104
  "light": [
105
105
  "#C27A3A",
106
- "#6F8A5C"
106
+ "#6F8A5C",
107
+ "#A0814A",
108
+ "#87755F",
109
+ "#5B7792",
110
+ "#94688F"
107
111
  ],
108
112
  "dark": [
109
113
  "#DB9A5B",
110
- "#9DB089"
114
+ "#9DB089",
115
+ "#E2C79A",
116
+ "#C9B8A6",
117
+ "#B7C4D1",
118
+ "#D8C0D6"
111
119
  ]
112
120
  },
113
121
  "onAvatar": "#231B17",
@@ -491,7 +499,12 @@
491
499
  "tema": "theme",
492
500
  "tosa": "grooming",
493
501
  "vacina": "vaccine",
494
- "vet": "vet"
502
+ "vet": "vet",
503
+ "circulo-alerta": "alert-circle",
504
+ "desfazer": "undo",
505
+ "encerrar": "end",
506
+ "pausar": "pause",
507
+ "triangulo": "triangle"
495
508
  },
496
509
  "rules": {
497
510
  "pdf": "O PDF usa sempre os valores claros dos tokens, nunca o tema do aparelho.",
@@ -229,6 +229,11 @@
229
229
  "arrow-right",
230
230
  "flask",
231
231
  "list",
232
- "mail"
232
+ "mail",
233
+ "alert-circle",
234
+ "undo",
235
+ "end",
236
+ "pause",
237
+ "triangle"
233
238
  ]
234
239
  }
@@ -229,7 +229,12 @@
229
229
  "arrow-right",
230
230
  "flask",
231
231
  "list",
232
- "mail"
232
+ "mail",
233
+ "alert-circle",
234
+ "undo",
235
+ "end",
236
+ "pause",
237
+ "triangle"
233
238
  ],
234
239
  "product": {
235
240
  "id": "koti",
@@ -281,11 +286,48 @@
281
286
  }
282
287
  }
283
288
  },
284
- "assets": [],
285
- "pending": [
286
- "koti-icone.svg",
287
- "koti-icone-escuro.svg",
288
- "koti-icone-colorido.svg"
289
- ]
289
+ "assets": [
290
+ {
291
+ "name": "koti-icon-light",
292
+ "file": "products/koti/icon/koti-icon-light.svg",
293
+ "kind": "icon"
294
+ },
295
+ {
296
+ "name": "koti-icon-light-1024",
297
+ "file": "products/koti/icon/koti-icon-light-1024.png",
298
+ "kind": "icon-png"
299
+ },
300
+ {
301
+ "name": "koti-icon-dark",
302
+ "file": "products/koti/icon/koti-icon-dark.svg",
303
+ "kind": "icon"
304
+ },
305
+ {
306
+ "name": "koti-icon-dark-1024",
307
+ "file": "products/koti/icon/koti-icon-dark-1024.png",
308
+ "kind": "icon-png"
309
+ },
310
+ {
311
+ "name": "koti-icon-tinted",
312
+ "file": "products/koti/icon/koti-icon-tinted.svg",
313
+ "kind": "icon"
314
+ },
315
+ {
316
+ "name": "koti-icon-tinted-1024",
317
+ "file": "products/koti/icon/koti-icon-tinted-1024.png",
318
+ "kind": "icon-png"
319
+ },
320
+ {
321
+ "name": "koti-logo-plum",
322
+ "file": "products/koti/logo/koti-logo-plum.svg",
323
+ "kind": "logo"
324
+ },
325
+ {
326
+ "name": "koti-logo-paper",
327
+ "file": "products/koti/logo/koti-logo-paper.svg",
328
+ "kind": "logo"
329
+ }
330
+ ],
331
+ "pending": []
290
332
  }
291
333
  }
@@ -229,7 +229,12 @@
229
229
  "arrow-right",
230
230
  "flask",
231
231
  "list",
232
- "mail"
232
+ "mail",
233
+ "alert-circle",
234
+ "undo",
235
+ "end",
236
+ "pause",
237
+ "triangle"
233
238
  ],
234
239
  "product": {
235
240
  "id": "pethealth",
@@ -347,6 +352,26 @@
347
352
  "name": "ball-indigo-dark",
348
353
  "file": "products/pethealth/mascots/ball-indigo-dark.svg",
349
354
  "kind": "mascot"
355
+ },
356
+ {
357
+ "name": "pethealth-icon-night",
358
+ "file": "products/pethealth/icon-alt/pethealth-icon-night.svg",
359
+ "kind": "icon-alt"
360
+ },
361
+ {
362
+ "name": "pethealth-icon-night-1024",
363
+ "file": "products/pethealth/icon-alt/pethealth-icon-night-1024.png",
364
+ "kind": "icon-alt-png"
365
+ },
366
+ {
367
+ "name": "pethealth-icon-paper",
368
+ "file": "products/pethealth/icon-alt/pethealth-icon-paper.svg",
369
+ "kind": "icon-alt"
370
+ },
371
+ {
372
+ "name": "pethealth-icon-paper-1024",
373
+ "file": "products/pethealth/icon-alt/pethealth-icon-paper-1024.png",
374
+ "kind": "icon-alt-png"
350
375
  }
351
376
  ],
352
377
  "pending": []
@@ -119,7 +119,11 @@ public enum ToskiColors {
119
119
  /// Bolinhas do calendário por pet (visão Todos).
120
120
  public static let petCalendarDots: [Color] = [
121
121
  dynamic(light: 0xC27A3A, dark: 0xDB9A5B),
122
- dynamic(light: 0x6F8A5C, dark: 0x9DB089)
122
+ dynamic(light: 0x6F8A5C, dark: 0x9DB089),
123
+ dynamic(light: 0xA0814A, dark: 0xE2C79A),
124
+ dynamic(light: 0x87755F, dark: 0xC9B8A6),
125
+ dynamic(light: 0x5B7792, dark: 0xB7C4D1),
126
+ dynamic(light: 0x94688F, dark: 0xD8C0D6)
123
127
  ]
124
128
  /// Inicial sobre o avatar.
125
129
  public static let onPetAvatar = fixed(0x231B17)
@@ -10,7 +10,7 @@ export interface ProductIconProps {
10
10
  label?: string;
11
11
  className?: string;
12
12
  }
13
- /** Ícone do app de um produto (PetHealthTracker). O Koti entra quando os arquivos chegarem. */
13
+ /** Ícone do app de um produto (PetHealthTracker ou Koti). */
14
14
  export declare function ProductIcon({ product, variant, size, label, className }: ProductIconProps): import("react").JSX.Element | null;
15
15
  export interface ProductMascotProps {
16
16
  product: ProductId;
@@ -26,3 +26,15 @@ export interface ProductMascotProps {
26
26
  }
27
27
  /** Mascotes de um produto, com o contorno na cor oposta ao fundo (claro/escuro). */
28
28
  export declare function ProductMascot({ product, art, mode, width, label, className }: ProductMascotProps): import("react").JSX.Element;
29
+ export interface ProductLogoProps {
30
+ product: ProductId;
31
+ /** Sem `mode`, segue o tema da página: ameixa no claro, papel no escuro. */
32
+ mode?: 'light' | 'dark';
33
+ /** Largura (px ou CSS). Padrão 100%. */
34
+ width?: number | string;
35
+ /** Texto para leitores de tela. Sem ele o logotipo é decorativo. */
36
+ label?: string;
37
+ className?: string;
38
+ }
39
+ /** Logotipo do produto (Koti): versão para fundo claro ou escuro. */
40
+ export declare function ProductLogo({ product, mode, width, label, className }: ProductLogoProps): import("react").JSX.Element;
@@ -649,4 +649,54 @@ export declare const iconData: {
649
649
  readonly d: "M5.5 5h13A2.5 2.5 0 0 1 21 7.5v9a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 16.5v-9A2.5 2.5 0 0 1 5.5 5ZM4 7l8 6 8-6";
650
650
  }];
651
651
  };
652
+ readonly "alert-circle": {
653
+ readonly mobile: "circulo-alerta";
654
+ readonly size: 18;
655
+ readonly stroke: 2;
656
+ readonly filled: false;
657
+ readonly linejoin: "round";
658
+ readonly shapes: readonly [{
659
+ readonly d: "M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18z M12 8v5 M12 16.5v.5";
660
+ }];
661
+ };
662
+ readonly undo: {
663
+ readonly mobile: "desfazer";
664
+ readonly size: 20;
665
+ readonly stroke: 2;
666
+ readonly filled: false;
667
+ readonly linejoin: "round";
668
+ readonly shapes: readonly [{
669
+ readonly d: "M9 14L4 9l5-5 M4 9h11a5 5 0 0 1 0 10h-3";
670
+ }];
671
+ };
672
+ readonly end: {
673
+ readonly mobile: "encerrar";
674
+ readonly size: 20;
675
+ readonly stroke: 2;
676
+ readonly filled: false;
677
+ readonly linejoin: "round";
678
+ readonly shapes: readonly [{
679
+ readonly d: "M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18z M9 9l6 6 M15 9l-6 6";
680
+ }];
681
+ };
682
+ readonly pause: {
683
+ readonly mobile: "pausar";
684
+ readonly size: 20;
685
+ readonly stroke: 2;
686
+ readonly filled: false;
687
+ readonly linejoin: "round";
688
+ readonly shapes: readonly [{
689
+ readonly d: "M9 5v14 M15 5v14";
690
+ }];
691
+ };
692
+ readonly triangle: {
693
+ readonly mobile: "triangulo";
694
+ readonly size: 18;
695
+ readonly stroke: 2;
696
+ readonly filled: false;
697
+ readonly linejoin: "round";
698
+ readonly shapes: readonly [{
699
+ readonly d: "M12 4l9 16H3z M12 10v4 M12 17v.5";
700
+ }];
701
+ };
652
702
  };
@@ -12,6 +12,12 @@ export declare const productArt: {
12
12
  readonly "ball-indigo-light": "<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=\"#E3E6F5\" 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>";
13
13
  readonly "ball-indigo-dark": "<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>";
14
14
  };
15
- readonly koti: {};
15
+ readonly koti: {
16
+ readonly "koti-icon-light": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 180 180\" width=\"1024\" height=\"1024\">\n <title>Ícone do Koti — Bolinha sob o teto (padrão)</title>\n <rect width=\"180\" height=\"180\" fill=\"#7A3F6E\"></rect>\n <path d=\"M39 89 L90 47 L141 89\" fill=\"none\" stroke=\"#F4E4CC\" stroke-width=\"13.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <circle cx=\"90\" cy=\"89\" r=\"13.5\" fill=\"#DB9A5B\"></circle>\n <rect x=\"79.5\" y=\"110\" width=\"21\" height=\"33\" rx=\"10.5\" fill=\"#F4E4CC\"></rect>\n</svg>";
17
+ readonly "koti-icon-dark": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 180 180\" width=\"1024\" height=\"1024\">\n <title>Ícone do Koti — versão escura (iOS 18+), fundo transparente</title>\n \n <path d=\"M39 89 L90 47 L141 89\" fill=\"none\" stroke=\"#D9A6CC\" stroke-width=\"13.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <circle cx=\"90\" cy=\"89\" r=\"13.5\" fill=\"#DB9A5B\"></circle>\n <rect x=\"79.5\" y=\"110\" width=\"21\" height=\"33\" rx=\"10.5\" fill=\"#D9A6CC\"></rect>\n</svg>";
18
+ readonly "koti-icon-tinted": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 180 180\" width=\"1024\" height=\"1024\">\n <title>Ícone do Koti — versão tingida (iOS 18+), tons de cinza</title>\n \n <path d=\"M39 89 L90 47 L141 89\" fill=\"none\" stroke=\"#E6E6E6\" stroke-width=\"13.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <circle cx=\"90\" cy=\"89\" r=\"13.5\" fill=\"#9C9C9C\"></circle>\n <rect x=\"79.5\" y=\"110\" width=\"21\" height=\"33\" rx=\"10.5\" fill=\"#E6E6E6\"></rect>\n</svg>";
19
+ readonly "koti-logo-plum": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"-90 -110 1913 1000\" width=\"478\" height=\"250\">\n <title>Koti — logotipo, ameixa (fundos claros)</title>\n <g transform=\"translate(0 760) scale(1 -1)\" fill=\"#7A3F6E\"><path transform=\"translate(0 0)\" d=\"M366 0 189 236V0H58V723H189V262L365 483H516L326 253L526 0Z\"></path><path transform=\"translate(528 0)\" d=\"M285 -10Q212 -10 153.5 23.5Q95 57 60.5 114.5Q26 172 26 243Q26 314 60.0 370.5Q94 427 153.0 460.5Q212 494 284 494Q358 494 416.5 460.5Q475 427 509.0 370.5Q543 314 543 243Q543 172 509.0 114.5Q475 57 416.5 23.5Q358 -10 285 -10ZM284 112Q321 112 349.5 128.5Q378 145 393.5 174.5Q409 204 409 242Q409 280 393.0 309.0Q377 338 349.0 354.5Q321 371 284 371Q248 371 220.0 354.5Q192 338 176.0 309.0Q160 280 160 242Q160 204 176.0 174.5Q192 145 220.0 128.5Q248 112 284 112Z\"></path><path transform=\"translate(1097 0)\" d=\"M129 0V368H16V483H129V684H260V483H373V368H260V0Z\"></path><path transform=\"translate(1486 0)\" d=\"M58 0V483H189V0Z\"></path></g>\n <circle cx=\"1609.5\" cy=\"120\" r=\"82\" fill=\"#DB9A5B\"></circle>\n</svg>";
20
+ readonly "koti-logo-paper": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"-90 -110 1913 1000\" width=\"478\" height=\"250\">\n <title>Koti — logotipo, papel (fundos escuros e ameixa)</title>\n <g transform=\"translate(0 760) scale(1 -1)\" fill=\"#F7F1E8\"><path transform=\"translate(0 0)\" d=\"M366 0 189 236V0H58V723H189V262L365 483H516L326 253L526 0Z\"></path><path transform=\"translate(528 0)\" d=\"M285 -10Q212 -10 153.5 23.5Q95 57 60.5 114.5Q26 172 26 243Q26 314 60.0 370.5Q94 427 153.0 460.5Q212 494 284 494Q358 494 416.5 460.5Q475 427 509.0 370.5Q543 314 543 243Q543 172 509.0 114.5Q475 57 416.5 23.5Q358 -10 285 -10ZM284 112Q321 112 349.5 128.5Q378 145 393.5 174.5Q409 204 409 242Q409 280 393.0 309.0Q377 338 349.0 354.5Q321 371 284 371Q248 371 220.0 354.5Q192 338 176.0 309.0Q160 280 160 242Q160 204 176.0 174.5Q192 145 220.0 128.5Q248 112 284 112Z\"></path><path transform=\"translate(1097 0)\" d=\"M129 0V368H16V483H129V684H260V483H373V368H260V0Z\"></path><path transform=\"translate(1486 0)\" d=\"M58 0V483H189V0Z\"></path></g>\n <circle cx=\"1609.5\" cy=\"120\" r=\"82\" fill=\"#DB9A5B\"></circle>\n</svg>";
21
+ };
16
22
  };
17
23
  export type ProductId = keyof typeof productArt;
@@ -135,7 +135,7 @@ export declare const tokens: {
135
135
  readonly disabledOpacity: 0.5;
136
136
  };
137
137
  };
138
- readonly icons: readonly ["help", "settings", "alert", "archive", "download", "bath", "bug", "search", "dog", "lock", "calendar-export", "calendar-dot", "calendar", "camera", "phone", "check", "chevron-down", "chevron-right", "chevron-left", "microchip", "share", "contact", "copy", "heart", "document-lines", "document-off", "document", "edit", "star", "close", "filter", "cat", "globe", "info", "home", "bell-off", "bell", "external-link", "location", "more", "plus", "message", "snow", "weight", "people", "paw", "plan", "next", "food", "receipt", "clock", "medicine", "repeat", "spinner", "theme", "grooming", "vaccine", "vet", "arrow-down", "arrow-up", "arrow-right", "flask", "list", "mail"];
138
+ readonly icons: readonly ["help", "settings", "alert", "archive", "download", "bath", "bug", "search", "dog", "lock", "calendar-export", "calendar-dot", "calendar", "camera", "phone", "check", "chevron-down", "chevron-right", "chevron-left", "microchip", "share", "contact", "copy", "heart", "document-lines", "document-off", "document", "edit", "star", "close", "filter", "cat", "globe", "info", "home", "bell-off", "bell", "external-link", "location", "more", "plus", "message", "snow", "weight", "people", "paw", "plan", "next", "food", "receipt", "clock", "medicine", "repeat", "spinner", "theme", "grooming", "vaccine", "vet", "arrow-down", "arrow-up", "arrow-right", "flask", "list", "mail", "alert-circle", "undo", "end", "pause", "triangle"];
139
139
  };
140
140
  export type ToskiTokens = typeof tokens;
141
141
  export type ToskiColorName = keyof typeof tokens.light;
package/dist/index.d.ts CHANGED
@@ -9,4 +9,4 @@ export { Icon, iconData, iconNames, type IconName, type IconProps } from './comp
9
9
  export { Mascot, mascotPaths, type MascotProps } from './components/Mascot';
10
10
  export { AppIcon, type AppIconProps } from './components/AppIcon';
11
11
  export { tokens, type ToskiTokens, type ToskiColorName } from './generated/tokens';
12
- export { ProductIcon, ProductMascot, type ProductId, type ProductIconProps, type ProductMascotProps } from './components/ProductArt';
12
+ export { ProductIcon, ProductMascot, ProductLogo, type ProductId, type ProductIconProps, type ProductMascotProps, type ProductLogoProps } from './components/ProductArt';
package/dist/index.js CHANGED
@@ -534,6 +534,46 @@ var a = {
534
534
  filled: !1,
535
535
  linejoin: "round",
536
536
  shapes: [{ d: "M5.5 5h13A2.5 2.5 0 0 1 21 7.5v9a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 16.5v-9A2.5 2.5 0 0 1 5.5 5ZM4 7l8 6 8-6" }]
537
+ },
538
+ "alert-circle": {
539
+ mobile: "circulo-alerta",
540
+ size: 18,
541
+ stroke: 2,
542
+ filled: !1,
543
+ linejoin: "round",
544
+ shapes: [{ d: "M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18z M12 8v5 M12 16.5v.5" }]
545
+ },
546
+ undo: {
547
+ mobile: "desfazer",
548
+ size: 20,
549
+ stroke: 2,
550
+ filled: !1,
551
+ linejoin: "round",
552
+ shapes: [{ d: "M9 14L4 9l5-5 M4 9h11a5 5 0 0 1 0 10h-3" }]
553
+ },
554
+ end: {
555
+ mobile: "encerrar",
556
+ size: 20,
557
+ stroke: 2,
558
+ filled: !1,
559
+ linejoin: "round",
560
+ shapes: [{ d: "M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18z M9 9l6 6 M15 9l-6 6" }]
561
+ },
562
+ pause: {
563
+ mobile: "pausar",
564
+ size: 20,
565
+ stroke: 2,
566
+ filled: !1,
567
+ linejoin: "round",
568
+ shapes: [{ d: "M9 5v14 M15 5v14" }]
569
+ },
570
+ triangle: {
571
+ mobile: "triangulo",
572
+ size: 18,
573
+ stroke: 2,
574
+ filled: !1,
575
+ linejoin: "round",
576
+ shapes: [{ d: "M12 4l9 16H3z M12 10v4 M12 17v.5" }]
537
577
  }
538
578
  }, o = Object.keys(a);
539
579
  function s({ name: e, size: n = 24, stroke: r = 1.8, label: o, className: s, ...c }) {
@@ -858,7 +898,7 @@ var x = {
858
898
  disabledOpacity: .5
859
899
  }
860
900
  },
861
- icons: /* @__PURE__ */ "help.settings.alert.archive.download.bath.bug.search.dog.lock.calendar-export.calendar-dot.calendar.camera.phone.check.chevron-down.chevron-right.chevron-left.microchip.share.contact.copy.heart.document-lines.document-off.document.edit.star.close.filter.cat.globe.info.home.bell-off.bell.external-link.location.more.plus.message.snow.weight.people.paw.plan.next.food.receipt.clock.medicine.repeat.spinner.theme.grooming.vaccine.vet.arrow-down.arrow-up.arrow-right.flask.list.mail".split(".")
901
+ icons: /* @__PURE__ */ "help.settings.alert.archive.download.bath.bug.search.dog.lock.calendar-export.calendar-dot.calendar.camera.phone.check.chevron-down.chevron-right.chevron-left.microchip.share.contact.copy.heart.document-lines.document-off.document.edit.star.close.filter.cat.globe.info.home.bell-off.bell.external-link.location.more.plus.message.snow.weight.people.paw.plan.next.food.receipt.clock.medicine.repeat.spinner.theme.grooming.vaccine.vet.arrow-down.arrow-up.arrow-right.flask.list.mail.alert-circle.undo.end.pause.triangle".split(".")
862
902
  }, { caramelo: S, ferrugem: C, creme: w } = x.brand, T = {
863
903
  body: "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",
864
904
  ear: "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",
@@ -1032,7 +1072,13 @@ var F = {
1032
1072
  "ball-indigo-light": "<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=\"#E3E6F5\" 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>",
1033
1073
  "ball-indigo-dark": "<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>"
1034
1074
  },
1035
- koti: {}
1075
+ koti: {
1076
+ "koti-icon-light": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 180 180\" width=\"1024\" height=\"1024\">\n <title>Ícone do Koti — Bolinha sob o teto (padrão)</title>\n <rect width=\"180\" height=\"180\" fill=\"#7A3F6E\"></rect>\n <path d=\"M39 89 L90 47 L141 89\" fill=\"none\" stroke=\"#F4E4CC\" stroke-width=\"13.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <circle cx=\"90\" cy=\"89\" r=\"13.5\" fill=\"#DB9A5B\"></circle>\n <rect x=\"79.5\" y=\"110\" width=\"21\" height=\"33\" rx=\"10.5\" fill=\"#F4E4CC\"></rect>\n</svg>",
1077
+ "koti-icon-dark": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 180 180\" width=\"1024\" height=\"1024\">\n <title>Ícone do Koti — versão escura (iOS 18+), fundo transparente</title>\n \n <path d=\"M39 89 L90 47 L141 89\" fill=\"none\" stroke=\"#D9A6CC\" stroke-width=\"13.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <circle cx=\"90\" cy=\"89\" r=\"13.5\" fill=\"#DB9A5B\"></circle>\n <rect x=\"79.5\" y=\"110\" width=\"21\" height=\"33\" rx=\"10.5\" fill=\"#D9A6CC\"></rect>\n</svg>",
1078
+ "koti-icon-tinted": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 180 180\" width=\"1024\" height=\"1024\">\n <title>Ícone do Koti — versão tingida (iOS 18+), tons de cinza</title>\n \n <path d=\"M39 89 L90 47 L141 89\" fill=\"none\" stroke=\"#E6E6E6\" stroke-width=\"13.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>\n <circle cx=\"90\" cy=\"89\" r=\"13.5\" fill=\"#9C9C9C\"></circle>\n <rect x=\"79.5\" y=\"110\" width=\"21\" height=\"33\" rx=\"10.5\" fill=\"#E6E6E6\"></rect>\n</svg>",
1079
+ "koti-logo-plum": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"-90 -110 1913 1000\" width=\"478\" height=\"250\">\n <title>Koti — logotipo, ameixa (fundos claros)</title>\n <g transform=\"translate(0 760) scale(1 -1)\" fill=\"#7A3F6E\"><path transform=\"translate(0 0)\" d=\"M366 0 189 236V0H58V723H189V262L365 483H516L326 253L526 0Z\"></path><path transform=\"translate(528 0)\" d=\"M285 -10Q212 -10 153.5 23.5Q95 57 60.5 114.5Q26 172 26 243Q26 314 60.0 370.5Q94 427 153.0 460.5Q212 494 284 494Q358 494 416.5 460.5Q475 427 509.0 370.5Q543 314 543 243Q543 172 509.0 114.5Q475 57 416.5 23.5Q358 -10 285 -10ZM284 112Q321 112 349.5 128.5Q378 145 393.5 174.5Q409 204 409 242Q409 280 393.0 309.0Q377 338 349.0 354.5Q321 371 284 371Q248 371 220.0 354.5Q192 338 176.0 309.0Q160 280 160 242Q160 204 176.0 174.5Q192 145 220.0 128.5Q248 112 284 112Z\"></path><path transform=\"translate(1097 0)\" d=\"M129 0V368H16V483H129V684H260V483H373V368H260V0Z\"></path><path transform=\"translate(1486 0)\" d=\"M58 0V483H189V0Z\"></path></g>\n <circle cx=\"1609.5\" cy=\"120\" r=\"82\" fill=\"#DB9A5B\"></circle>\n</svg>",
1080
+ "koti-logo-paper": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"-90 -110 1913 1000\" width=\"478\" height=\"250\">\n <title>Koti — logotipo, papel (fundos escuros e ameixa)</title>\n <g transform=\"translate(0 760) scale(1 -1)\" fill=\"#F7F1E8\"><path transform=\"translate(0 0)\" d=\"M366 0 189 236V0H58V723H189V262L365 483H516L326 253L526 0Z\"></path><path transform=\"translate(528 0)\" d=\"M285 -10Q212 -10 153.5 23.5Q95 57 60.5 114.5Q26 172 26 243Q26 314 60.0 370.5Q94 427 153.0 460.5Q212 494 284 494Q358 494 416.5 460.5Q475 427 509.0 370.5Q543 314 543 243Q543 172 509.0 114.5Q475 57 416.5 23.5Q358 -10 285 -10ZM284 112Q321 112 349.5 128.5Q378 145 393.5 174.5Q409 204 409 242Q409 280 393.0 309.0Q377 338 349.0 354.5Q321 371 284 371Q248 371 220.0 354.5Q192 338 176.0 309.0Q160 280 160 242Q160 204 176.0 174.5Q192 145 220.0 128.5Q248 112 284 112Z\"></path><path transform=\"translate(1097 0)\" d=\"M129 0V368H16V483H129V684H260V483H373V368H260V0Z\"></path><path transform=\"translate(1486 0)\" d=\"M58 0V483H189V0Z\"></path></g>\n <circle cx=\"1609.5\" cy=\"120\" r=\"82\" fill=\"#DB9A5B\"></circle>\n</svg>"
1081
+ }
1036
1082
  };
1037
1083
  //#endregion
1038
1084
  //#region src/components/ProductArt.tsx
@@ -1072,7 +1118,26 @@ function R({ product: e, art: n = "pair", mode: i, width: a = "100%", label: o,
1072
1118
  })
1073
1119
  });
1074
1120
  }
1121
+ function z({ product: e, mode: n, width: i = "100%", label: a, className: o }) {
1122
+ let s = r().replace(/:/g, ""), c = F[e], l = (n ? [n] : ["light", "dark"]).map((t) => ({
1123
+ m: t,
1124
+ svg: c[`${e}-logo-${t === "light" ? "plum" : "paper"}`]
1125
+ }));
1126
+ return /* @__PURE__ */ t("span", {
1127
+ className: o,
1128
+ style: {
1129
+ display: "inline-block",
1130
+ width: i,
1131
+ lineHeight: 0
1132
+ },
1133
+ children: l.map(({ m: e, svg: r }) => r ? /* @__PURE__ */ t("span", {
1134
+ "data-art": n ? void 0 : e,
1135
+ style: { display: "block" },
1136
+ dangerouslySetInnerHTML: { __html: I(r, `${s}${e}`, "100%", a) }
1137
+ }, e) : null)
1138
+ });
1139
+ }
1075
1140
  //#endregion
1076
- export { P as AppIcon, d as Button, h as Card, b as CheckList, s as Icon, g as IconBox, _ as Kicker, k as Mascot, p as Pill, L as ProductIcon, R as ProductMascot, y as SectionHeading, u as buttonClasses, a as iconData, o as iconNames, T as mascotPaths, x as tokens };
1141
+ export { P as AppIcon, d as Button, h as Card, b as CheckList, s as Icon, g as IconBox, _ as Kicker, k as Mascot, p as Pill, L as ProductIcon, z as ProductLogo, R as ProductMascot, y as SectionHeading, u as buttonClasses, a as iconData, o as iconNames, T as mascotPaths, x as tokens };
1077
1142
 
1078
1143
  //# sourceMappingURL=index.js.map