@ffid-br/tailor-ui 0.20.0 → 0.20.1
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
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
@media (min-width: 640px) {
|
|
66
66
|
.tailor-ph__row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
|
|
67
67
|
}
|
|
68
|
-
.tailor-ph__main { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--tailor-space-xs); }
|
|
68
|
+
.tailor-ph__main { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--tailor-space-xs); }
|
|
69
69
|
.tailor-ph__back {
|
|
70
70
|
display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer;
|
|
71
71
|
font: inherit; font-size: 13px; color: var(--tailor-brand-text-muted); text-decoration: none; border-radius: var(--tailor-brand-radius);
|
|
@@ -89,7 +89,8 @@
|
|
|
89
89
|
font-size: var(--tailor-header-title-size, clamp(26px, 4vw, 42px));
|
|
90
90
|
}
|
|
91
91
|
.tailor-ph__description { margin: 0; max-width: 610px; font-size: 16px; line-height: 1.618; color: var(--tailor-brand-text-muted); }
|
|
92
|
-
|
|
92
|
+
/* Muitas ações não espremem o título: o bloco encolhe e os botões quebram linha, alinhados à direita. */
|
|
93
|
+
.tailor-ph__aside { display: flex; flex: 0 1 auto; min-width: 0; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--tailor-space-sm); }
|
|
93
94
|
/* Faixa de números: cada um com o fio à esquerda (a cor do tom), rótulo em cima e o número grande embaixo. */
|
|
94
95
|
.tailor-ph__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(144px, 1fr)); gap: var(--tailor-space-md) var(--tailor-space-lg); margin: 0; }
|
|
95
96
|
.tailor-ph__stat { --tailor-stat-color: var(--tailor-brand-border); min-width: 0; padding: 2px 0 2px var(--tailor-space-sm); border-left: 3px solid var(--tailor-stat-color); }
|
|
@@ -663,6 +664,9 @@ a.tailor-btn { text-decoration: none; }
|
|
|
663
664
|
.tailor-insight--empty { border-left-color: var(--tailor-brand-border); }
|
|
664
665
|
.tailor-insight__meta { display: flex; flex-wrap: wrap; gap: var(--tailor-space-half) var(--tailor-space-sm); font-size: 12px; color: var(--tailor-brand-text-muted); }
|
|
665
666
|
.tailor-insight__ai { font-weight: 600; color: var(--tailor-brand-text); }
|
|
667
|
+
.tailor-ai-mark { display: inline-flex; align-items: center; gap: 6px; font-family: var(--tailor-brand-body-font); font-size: 12px; font-weight: 500; line-height: 1; color: var(--tailor-brand-text); white-space: nowrap; }
|
|
668
|
+
.tailor-ai-mark__dot { width: 8px; height: 8px; flex-shrink: 0; background: var(--tailor-brand-primary); border-radius: var(--tailor-brand-radius); }
|
|
669
|
+
.tailor-ai-mark--compact { gap: 4px; font-size: 11px; }
|
|
666
670
|
.tailor-insight__takeaway { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.4; }
|
|
667
671
|
.tailor-insight__why { margin: 0; font-size: 14px; line-height: 1.5; color: var(--tailor-brand-text-muted); }
|
|
668
672
|
.tailor-insight__actions { margin-top: var(--tailor-space-half); }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface TailorAiMarkProps {
|
|
2
|
+
/** Texto ao lado do ponto. Padrão: "Gerado por IA". */
|
|
3
|
+
label?: string;
|
|
4
|
+
/** Só o ponto e "IA" (para linha de tabela, chip, botão). O texto completo vai para o leitor de tela e o title. */
|
|
5
|
+
compact?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Marca de conteúdo feito por IA. O ponto verde é o mesmo do logotipo, o que antecede o "ia":
|
|
10
|
+
* o momento em que a inteligência assume. Sem emoji e sem brilho.
|
|
11
|
+
*/
|
|
12
|
+
export declare function TailorAiMark({ label, compact, className }: TailorAiMarkProps): import("react").JSX.Element;
|
|
@@ -11,7 +11,7 @@ export type TailorExplainProps = {
|
|
|
11
11
|
}>;
|
|
12
12
|
/** Lembra no navegador se a pessoa recolheu (`tailor-explain:<storageKey>`). Sem ele, não lembra. */
|
|
13
13
|
storageKey?: string;
|
|
14
|
-
/** Aberto na primeira visita. Padrão:
|
|
14
|
+
/** Aberto na primeira visita. Padrão: false (a tela começa no conteúdo; quem precisa abre). */
|
|
15
15
|
defaultOpen?: boolean;
|
|
16
16
|
className?: string;
|
|
17
17
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -45,6 +45,8 @@ export type { TailorEmptyProps } from './components/TailorEmpty';
|
|
|
45
45
|
export type { TailorActionSpec } from './components/TailorAction';
|
|
46
46
|
export { TailorMonogram, monogramInitials, monogramTone, MONOGRAM_TONES } from './components/TailorMonogram';
|
|
47
47
|
export type { TailorMonogramProps } from './components/TailorMonogram';
|
|
48
|
+
export { TailorAiMark } from './components/TailorAiMark';
|
|
49
|
+
export type { TailorAiMarkProps } from './components/TailorAiMark';
|
|
48
50
|
export { TailorInsight } from './components/TailorInsight';
|
|
49
51
|
export type { TailorInsightProps } from './components/TailorInsight';
|
|
50
52
|
export { TailorExplain } from './components/TailorExplain';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ffid-br/tailor-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.20.
|
|
4
|
+
"version": "0.20.1",
|
|
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",
|