@ffid-br/tailor-ui 0.8.0 → 0.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.
- package/README.md +5 -2
- package/dist/index.es.js +626 -617
- package/dist/index.umd.js +1 -1
- package/dist/style.css +14 -3
- package/dist/types/components/MascoteVetor.d.ts +11 -0
- package/dist/types/components/TailorPageHeader.d.ts +7 -1
- package/package.json +1 -1
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
|
-
|
|
90
|
-
.tailor-
|
|
91
|
-
.tailor-ph__stat
|
|
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. */
|
|
@@ -122,6 +122,17 @@ declare const AGENTES: {
|
|
|
122
122
|
corpo: React.JSX.Element;
|
|
123
123
|
verde: React.JSX.Element;
|
|
124
124
|
};
|
|
125
|
+
cs: {
|
|
126
|
+
topo: number;
|
|
127
|
+
apoio: [number, number];
|
|
128
|
+
olhos: {
|
|
129
|
+
l: number;
|
|
130
|
+
r: number;
|
|
131
|
+
y: number;
|
|
132
|
+
};
|
|
133
|
+
corpo: React.JSX.Element;
|
|
134
|
+
verde: React.JSX.Element;
|
|
135
|
+
};
|
|
125
136
|
};
|
|
126
137
|
export type ChaveDoAgenteVetor = keyof typeof AGENTES;
|
|
127
138
|
/** Expressão só nos olhos: formato, pálpebra e pupila, por lado. */
|
|
@@ -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
|
-
/**
|
|
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.
|
|
4
|
+
"version": "0.10.0",
|
|
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",
|