@ffid-br/tailor-ui 0.2.0 → 0.3.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 +3 -3
- package/dist/index.es.js +316 -348
- package/dist/index.umd.js +1 -1
- package/dist/style.css +13 -11
- package/dist/types/components/TailorLoader.d.ts +4 -4
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -18,17 +18,19 @@
|
|
|
18
18
|
--tailor-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
/* TailorLoader — a
|
|
22
|
-
.tailor-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
/* TailorLoader — a malha pequena se desenha a partir do ponto e some, em 2φ (3,236s). */
|
|
22
|
+
.tailor-malha__linha {
|
|
23
|
+
stroke-dasharray: 1;
|
|
24
|
+
stroke-dashoffset: 1;
|
|
25
|
+
animation: tailor-malha 3.236s var(--tailor-ease-in-out) infinite;
|
|
25
26
|
}
|
|
26
|
-
@keyframes tailor-
|
|
27
|
-
0% {
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
@keyframes tailor-malha {
|
|
28
|
+
0% { stroke-dashoffset: 1; opacity: 1; }
|
|
29
|
+
38.2% { stroke-dashoffset: 0; opacity: 1; }
|
|
30
|
+
80% { stroke-dashoffset: 0; opacity: 1; }
|
|
31
|
+
100% { stroke-dashoffset: 0; opacity: 0; }
|
|
30
32
|
}
|
|
31
|
-
.tailor-
|
|
33
|
+
.tailor-loader__reticencias::after {
|
|
32
34
|
content: '';
|
|
33
35
|
animation: tailor-reticencias 1.618s steps(4, end) infinite;
|
|
34
36
|
}
|
|
@@ -71,7 +73,7 @@
|
|
|
71
73
|
|
|
72
74
|
/* Menos movimento: a informação continua, o movimento sai. */
|
|
73
75
|
@media (prefers-reduced-motion: reduce) {
|
|
74
|
-
.tailor-
|
|
75
|
-
.tailor-
|
|
76
|
+
.tailor-malha__linha { animation: none; stroke-dashoffset: 0; }
|
|
77
|
+
.tailor-loader__reticencias::after { animation: none; content: '...'; }
|
|
76
78
|
.tailor-ponto-pisca { animation: none; }
|
|
77
79
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
export type TailorLoaderProps = {
|
|
3
|
-
/** Rótulo principal. Padrão: "
|
|
3
|
+
/** Rótulo principal. Padrão: "Carregando". */
|
|
4
4
|
label?: string;
|
|
5
5
|
/** Linha de apoio abaixo do rótulo (o que está sendo carregado, ou quanto falta). */
|
|
6
6
|
detail?: string;
|
|
7
7
|
/**
|
|
8
8
|
* `inline`: no lugar do conteúdo. `overlay`: tela inteira, bloqueia.
|
|
9
|
-
* `compact`: uma linha (
|
|
10
|
-
* `caixa`:
|
|
9
|
+
* `compact`: uma linha (ponto + rótulo), para botões e listas.
|
|
10
|
+
* `caixa`: numa caixa própria de 377px, com fundo e borda — para painéis
|
|
11
11
|
* estreitos e fundos com estampa (chat), onde o inline ficaria transparente.
|
|
12
12
|
*/
|
|
13
13
|
variant?: 'inline' | 'overlay' | 'compact' | 'caixa';
|
|
@@ -15,5 +15,5 @@ export type TailorLoaderProps = {
|
|
|
15
15
|
semRespiro?: boolean;
|
|
16
16
|
className?: string;
|
|
17
17
|
};
|
|
18
|
-
/** Loader da marca (
|
|
18
|
+
/** Loader da marca (ponto verde e malha Fibonacci). Sempre expõe `role="status"` com o rótulo. */
|
|
19
19
|
export declare const TailorLoader: React.FC<TailorLoaderProps>;
|
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.3.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",
|