@ffid-br/tailor-ui 0.9.0 → 0.10.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.
package/dist/style.css CHANGED
@@ -86,9 +86,20 @@
86
86
  }
87
87
  .tailor-ph__description { margin: 0; max-width: 610px; font-size: 16px; line-height: 1.618; color: var(--tailor-brand-text-muted); }
88
88
  .tailor-ph__aside { display: flex; flex-shrink: 0; flex-wrap: wrap; align-items: center; gap: 13px; }
89
- .tailor-ph__stat { text-align: right; }
90
- .tailor-ph__stat-value { display: block; font-size: 26px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; font-family: var(--tailor-brand-heading-font); }
91
- .tailor-ph__stat-label { display: block; margin-top: 8px; font-size: 13px; color: var(--tailor-brand-text-muted); }
89
+ /* Faixa de números: cada um com o fio à esquerda (a cor do tom), rótulo em cima e o número grande embaixo. */
90
+ .tailor-ph__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(144px, 1fr)); gap: 21px 34px; margin: 0; }
91
+ .tailor-ph__stat { --tailor-stat-color: var(--tailor-brand-border); min-width: 0; padding: 2px 0 2px 13px; border-left: 3px solid var(--tailor-stat-color); }
92
+ .tailor-ph__stat--danger { --tailor-stat-color: #FF0040; }
93
+ .tailor-ph__stat--warning { --tailor-stat-color: #FF9033; }
94
+ .tailor-ph__stat--success { --tailor-stat-color: #008548; }
95
+ .tailor-ph__stat-label { margin: 0; font-size: 13px; line-height: 1.382; color: var(--tailor-brand-text-muted); }
96
+ .tailor-ph__stat-value {
97
+ margin: 5px 0 0; font-size: 34px; font-weight: 500; line-height: 1; font-variant-numeric: lining-nums tabular-nums;
98
+ font-family: var(--tailor-brand-heading-font); color: var(--tailor-brand-text);
99
+ }
100
+ .tailor-ph__stat--danger .tailor-ph__stat-value { color: #D10035; }
101
+ .tailor-ph__stat--warning .tailor-ph__stat-value { color: #B35A00; }
102
+ @media (max-width: 639px) { .tailor-ph__stat-value { font-size: 26px; } }
92
103
  .tailor-ph__below { min-width: 0; }
93
104
 
94
105
  /* TailorTabela — relatório. Medidas em --tailor-table-*, cores da marca. */
@@ -25,10 +25,16 @@ export type TailorPageHeaderProps = {
25
25
  };
26
26
  /** Ao lado do título: status, plano, contagem. */
27
27
  badge?: React.ReactNode;
28
- /** Números do topo, quando ajudam a decidir o que fazer aqui. */
28
+ /**
29
+ * Números do topo, quando ajudam a decidir o que fazer aqui. Ficam numa faixa própria,
30
+ * abaixo do título. `tone` pinta o fio e o número: `danger` (crítico), `warning` (atenção),
31
+ * `success` (em dia). Sem tone, neutro.
32
+ */
29
33
  stats?: Array<{
30
34
  label: string;
31
35
  value: React.ReactNode;
36
+ tone?: 'danger' | 'warning' | 'success';
37
+ hint?: string;
32
38
  }>;
33
39
  /** Botões e busca, à direita. */
34
40
  actions?: React.ReactNode;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ffid-br/tailor-ui",
3
3
  "private": false,
4
- "version": "0.9.0",
4
+ "version": "0.10.2",
5
5
  "description": "Primitivos de marca Tailor.ia em React: loader, intro, transição de login, lockup e barra lateral.",
6
6
  "type": "module",
7
7
  "main": "dist/index.umd.js",