@snksergio/design-system 0.38.0 → 0.38.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.
@@ -3,15 +3,25 @@ import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
3
3
  /**
4
4
  * AlertDialog — variante do Dialog pra confirmação destrutiva/crítica.
5
5
  *
6
- * Diferenças vs. Dialog:
7
- * - role="alertdialog" (assistive tech anuncia diferente)
8
- * - Foco vai pro botão `Cancel` (mais seguro como ação default)
9
- * - Não fecha ao clicar fora ou apertar ESC (decisão forçada)
6
+ * Diferenças vs. Dialog, TODAS medidas no browser (2026-08-13) e não deduzidas:
7
+ * - `role="alertdialog"` (assistive tech anuncia diferente) ✔ confirmado
8
+ * - Foco inicial no botão `Cancel`, que é o default seguro ✔ confirmado
9
+ * - **Não fecha ao clicar fora** ✔ confirmado — e o Dialog comum, no MESMO teste,
10
+ * fecha. A diferença é real.
11
+ *
12
+ * ⚠️ **ESC FECHA.** Este bloco afirmava "não fecha ao clicar fora ou apertar ESC"; a
13
+ * segunda metade era falsa. O Radix trata as duas coisas em canais separados: o
14
+ * pointer-down externo o AlertDialog bloqueia, o ESC não. Quem precisasse de uma decisão
15
+ * inescapável (o caso que a frase prometia cobrir) sairia daqui acreditando estar
16
+ * protegido. Pra travar de verdade, no consumidor:
17
+ *
18
+ * <AlertDialogContent onEscapeKeyDown={(e) => e.preventDefault()}>
10
19
  *
11
20
  * Estilo alinhado com `.tbl-confirm-dialog` do sandbox: 420px, body 32/28/24,
12
21
  * radius-2xl, shadow-2xl, outline halo, ícone 56x56 com bg-tone-muted.
13
22
  *
14
- * Pra um wrapper "one-shot" com tone + ícone + botões → use <AlertModal>.
23
+ * Pra um wrapper "one-shot" com tone + ícone + botões → use <AlertModal>. Doc e a
24
+ * comparação dos três (AlertModal / AlertDialog / Dialog): página `#/alert-dialog`.
15
25
  */
16
26
  declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
17
27
  declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/shadcn/alert-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AAIrE;;;;;;;;;;;;GAYG;AAEH,QAAA,MAAM,WAAW,iDAA4B,CAAC;AAC9C,QAAA,MAAM,kBAAkB,wHAA+B,CAAC;AACxD,QAAA,MAAM,iBAAiB,uDAA8B,CAAC;AAEtD,QAAA,MAAM,kBAAkB,wKActB,CAAC;AAGH,QAAA,MAAM,kBAAkB,wKAsBtB,CAAC;AAGH,QAAA,MAAM,iBAAiB;8BAGpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAStC,CAAC;AAGF,QAAA,MAAM,iBAAiB;8BAGpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAWtC,CAAC;AAGF,QAAA,MAAM,gBAAgB,8KAYpB,CAAC;AAGH,QAAA,MAAM,sBAAsB,wLAY1B,CAAC;AAIH,QAAA,MAAM,iBAAiB,uHAA8B,CAAC;AACtD,QAAA,MAAM,iBAAiB,uHAA8B,CAAC;AAEtD,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,GAClB,CAAC"}
1
+ {"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/shadcn/alert-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AAIrE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,QAAA,MAAM,WAAW,iDAA4B,CAAC;AAC9C,QAAA,MAAM,kBAAkB,wHAA+B,CAAC;AACxD,QAAA,MAAM,iBAAiB,uDAA8B,CAAC;AAEtD,QAAA,MAAM,kBAAkB,wKActB,CAAC;AAGH,QAAA,MAAM,kBAAkB,wKAsBtB,CAAC;AAGH,QAAA,MAAM,iBAAiB;8BAGpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAStC,CAAC;AAGF,QAAA,MAAM,iBAAiB;8BAGpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAWtC,CAAC;AAGF,QAAA,MAAM,gBAAgB,8KAYpB,CAAC;AAGH,QAAA,MAAM,sBAAsB,wLAY1B,CAAC;AAIH,QAAA,MAAM,iBAAiB,uHAA8B,CAAC;AACtD,QAAA,MAAM,iBAAiB,uHAA8B,CAAC;AAEtD,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,GAClB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"column-type-registry.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/DataTable/column-types/column-type-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAE/E;;;;;;;;;GASG;AACH,cAAM,kBAAkB;IACtB,OAAO,CAAC,KAAK,CAA2C;IAExD,QAAQ,CAAC,UAAU,EAAE,oBAAoB,GAAG,IAAI;IAWhD,YAAY,CAAC,WAAW,EAAE,oBAAoB,EAAE,GAAG,IAAI;IAIvD,GAAG,CAAC,MAAM,EAAE,YAAY,GAAG,SAAS,GAAG,oBAAoB;IAqB3D,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAI5B,IAAI,IAAI,oBAAoB,EAAE;CAG/B;AAED,eAAO,MAAM,kBAAkB,oBAA2B,CAAC"}
1
+ {"version":3,"file":"column-type-registry.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ui/DataTable/column-types/column-type-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAqB/E;;;;;;;;;GASG;AACH,cAAM,kBAAkB;IACtB,OAAO,CAAC,KAAK,CAA2C;IAExD,QAAQ,CAAC,UAAU,EAAE,oBAAoB,GAAG,IAAI;IAWhD,YAAY,CAAC,WAAW,EAAE,oBAAoB,EAAE,GAAG,IAAI;IAIvD,GAAG,CAAC,MAAM,EAAE,YAAY,GAAG,SAAS,GAAG,oBAAoB;IAuC3D,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAI5B,IAAI,IAAI,oBAAoB,EAAE;CAG/B;AAED,eAAO,MAAM,kBAAkB,oBAA2B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snksergio/design-system",
3
- "version": "0.38.0",
3
+ "version": "0.38.2",
4
4
  "//distribuicao": "Canal PRIMARIO = registry shadcn (copy-in) + CLI @snksergio/create-design-system; sobe sozinho no merge (Vercel). Canal SECUNDARIO = este pacote npm (@snksergio/design-system), publicado por passo MANUAL do mantenedor, entao costuma ficar atras do registry. SECUNDARIO descreve a ORDEM DE PUBLICACAO, nao o nivel de suporte: NAO e depreciado, e desde a 0.37.0 entrega 41 dos 42 componentes ui/ no barrel raiz + os 41 primitivos shadcn no subpath ./shadcn (so TabelaTeste, demo interno, fica de fora). Publish so pelo Passo 7 do .claude/skills/ds-dev/release.md (valida com `npm run lib:verify`, pede o token, publica, revoga). Ver DISTRIBUICAO.md.",
5
5
  "description": "iGreen Design System — internal library for SaaS CRM, admin panels and dashboards. React 19 + Tailwind v4 + Shadcn + Radix.",
6
6
  "license": "UNLICENSED",
@@ -106,7 +106,7 @@
106
106
  "release:check": "node scripts/registry-check.mjs --ci && node scripts/brand-check.mjs && node scripts/distribution-debt.mjs --ci && node scripts/examples-drift-check.mjs --ci && npm run registry-app:audit",
107
107
  "registry-app:audit": "npm audit --audit-level=high --prefix registry-app",
108
108
  "distribution:debt": "node scripts/distribution-debt.mjs",
109
- "lint:styles": "node scripts/lint-styles.mjs --ratchet origin/main",
109
+ "lint:styles": "node scripts/lint-styles.mjs --ratchet",
110
110
  "cli:rebake": "node scripts/cli-rebake-foundationals.mjs",
111
111
  "test": "vitest run",
112
112
  "test:watch": "vitest",