@kenlo/kdls-design-system 2.9.2 → 2.10.0

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.
@@ -3351,6 +3351,7 @@
3351
3351
  :root {
3352
3352
  --font-family-base: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
3353
3353
  --font-weight-regular: 400;
3354
+ --font-weight-medium: 500;
3354
3355
  --font-weight-semibold: 600;
3355
3356
  --font-weight-bold: 700;
3356
3357
  --font-size-display-lg: 56px;
@@ -3400,12 +3401,22 @@
3400
3401
  }
3401
3402
 
3402
3403
  /* ------------------------------------------------------------------------------ */
3403
- /* ------------------------------------EASING------------------------------------ */
3404
+ /* ------------------------------------MOTION------------------------------------ */
3404
3405
  :root {
3406
+ --duration-fast: 120ms;
3407
+ --duration-base: 200ms;
3408
+ --duration-slow: 300ms;
3405
3409
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
3406
3410
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
3407
3411
  }
3408
3412
 
3413
+ @media (prefers-reduced-motion: reduce) {
3414
+ :root {
3415
+ --duration-fast: 0ms;
3416
+ --duration-base: 0ms;
3417
+ --duration-slow: 0ms;
3418
+ }
3419
+ }
3409
3420
  /* ------------------------------------------------------------------------------ */
3410
3421
  /* -----------------------------PAGE BACKGROUND----------------------------- */
3411
3422
  :root {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "package": {
3
3
  "name": "@kenlo/kdls-design-system",
4
- "version": "2.9.2"
4
+ "version": "2.10.0"
5
5
  },
6
6
  "install": {
7
7
  "add": "npm install @kenlo/kdls-design-system",
@@ -14,8 +14,8 @@
14
14
  "counts": {
15
15
  "components": 60,
16
16
  "propsTables": 85,
17
- "props": 732,
18
- "tokens": 548,
17
+ "props": 733,
18
+ "tokens": 552,
19
19
  "api": 12,
20
20
  "icons": 49
21
21
  },
@@ -512,7 +512,7 @@
512
512
  "name": "size",
513
513
  "type": "'sm'|'md'|'lg'",
514
514
  "default": "'sm'",
515
- "description": "'sm' = 12px · 'md' = 14px · 'lg' = 16px",
515
+ "description": "'sm' = rótulo 12px, caixa 24px · 'md' = rótulo 16px, caixa 28px · 'lg' = rótulo 16px, caixa 32px",
516
516
  "example": "size=\"sm\""
517
517
  },
518
518
  {
@@ -2420,16 +2420,16 @@
2420
2420
  },
2421
2421
  {
2422
2422
  "name": "variant",
2423
- "type": "'primary' | 'neutral'",
2423
+ "type": "'primary' | 'neutral' | 'inverse'",
2424
2424
  "default": "'primary'",
2425
- "description": "'primary' = cor do tema ativo · 'neutral' = cinza neutro. Usar 'neutral' para chevrons e ações secundárias",
2425
+ "description": "'primary' = cor do tema ativo · 'neutral' = cinza neutro, para chevrons e ações secundárias · 'inverse' = ícone branco com hover claro, para o botão sobre uma foto ou um fundo escuro",
2426
2426
  "example": "variant=\"primary\""
2427
2427
  },
2428
2428
  {
2429
2429
  "name": "size",
2430
- "type": "'sm' | 'md' | 'lg'",
2430
+ "type": "'xs' | 'sm' | 'md' | 'lg'",
2431
2431
  "default": "'sm'",
2432
- "description": "Tamanho do botão e da área de hover — 'sm' = 32px · 'md' = 40px · 'lg' = 48px. O ícone é sempre 24px independente do tamanho.",
2432
+ "description": "Tamanho que o botão ocupa — 'xs' = 24px (só o ícone entra na linha; o hover, o pressionado e a área de toque continuam com 32px em volta) · 'sm' = 32px · 'md' = 40px · 'lg' = 48px. O ícone é sempre 24px independente do tamanho.",
2433
2433
  "example": "size=\"sm\""
2434
2434
  },
2435
2435
  {
@@ -2454,6 +2454,13 @@
2454
2454
  "description": "Label acessível — obrigatório: não há como derivar um rótulo automático de um ícone arbitrário",
2455
2455
  "example": "aria-label=\"Excluir contato\""
2456
2456
  },
2457
+ {
2458
+ "name": "aria-expanded",
2459
+ "type": "boolean",
2460
+ "default": "—",
2461
+ "description": "Diz ao leitor de tela se o que o botão abre está aberto — gatilho de menu, gaveta ou acordeão. Os demais atributos de botão (aria-*, onKeyDown, title…) também chegam ao elemento raiz",
2462
+ "example": "aria-expanded={open}"
2463
+ },
2457
2464
  {
2458
2465
  "name": "className",
2459
2466
  "type": "string",
@@ -3010,16 +3017,16 @@
3010
3017
  },
3011
3018
  {
3012
3019
  "name": "iconVariant",
3013
- "type": "'neutral' | 'primary'",
3020
+ "type": "'neutral' | 'primary' | 'inverse'",
3014
3021
  "default": "'primary'",
3015
- "description": "Variant de cor do IconButton interno — use 'neutral' para ícones de opções e chevrons.",
3022
+ "description": "Variant de cor do IconButton interno — use 'neutral' para ícones de opções e chevrons, 'inverse' sobre foto ou fundo escuro.",
3016
3023
  "example": "iconVariant=\"primary\""
3017
3024
  },
3018
3025
  {
3019
3026
  "name": "iconSize",
3020
- "type": "'sm' | 'md' | 'lg'",
3027
+ "type": "'xs' | 'sm' | 'md' | 'lg'",
3021
3028
  "default": "'sm'",
3022
- "description": "Tamanho do IconButton interno — o ícone continua 24px em qualquer tamanho.",
3029
+ "description": "Tamanho do IconButton interno — o ícone continua 24px em qualquer tamanho; 'xs' ocupa só os 24px do ícone na linha.",
3023
3030
  "example": "iconSize=\"sm\""
3024
3031
  },
3025
3032
  {
@@ -4041,9 +4048,8 @@
4041
4048
  {
4042
4049
  "name": "active",
4043
4050
  "type": "boolean",
4044
- "default": "false",
4045
- "required": true,
4046
- "description": "Estado ativo — preenchido com cor primária. Inativo = apenas contorno",
4051
+ "default": "—",
4052
+ "description": "Estado ativo de uma pílula de filtro ou alternância — preenchida com a cor primária; false = só o contorno. Omita quando a pílula é uma ação (abre algo, navega): sem active ela é anunciada como botão simples, sem estado ligado/desligado",
4047
4053
  "example": "active={isActive}"
4048
4054
  },
4049
4055
  {
@@ -7907,6 +7913,20 @@
7907
7913
  "value": "var(--color-neutral-90)"
7908
7914
  }
7909
7915
  ],
7916
+ "duration": [
7917
+ {
7918
+ "name": "--duration-base",
7919
+ "value": "200ms"
7920
+ },
7921
+ {
7922
+ "name": "--duration-fast",
7923
+ "value": "120ms"
7924
+ },
7925
+ {
7926
+ "name": "--duration-slow",
7927
+ "value": "300ms"
7928
+ }
7929
+ ],
7910
7930
  "ease": [
7911
7931
  {
7912
7932
  "name": "--ease-spring",
@@ -7976,6 +7996,10 @@
7976
7996
  "name": "--font-weight-bold",
7977
7997
  "value": "700"
7978
7998
  },
7999
+ {
8000
+ "name": "--font-weight-medium",
8001
+ "value": "500"
8002
+ },
7979
8003
  {
7980
8004
  "name": "--font-weight-regular",
7981
8005
  "value": "400"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kenlo/kdls-design-system",
3
- "version": "2.9.2",
3
+ "version": "2.10.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "KDLS Design System — componentes React + TypeScript",