@gyramais/gyra-design 0.2.48 → 0.2.49
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/components/Button/Button.d.ts +7 -0
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Card/Card.d.ts +1 -7
- package/dist/components/Card/index.js +6 -6
- package/dist/components/Card/index.js.map +1 -1
- package/dist/components/ContextMenu/index.js +1 -1
- package/dist/components/ContextMenu/index.js.map +1 -1
- package/dist/components/DropdownMenu/index.js +1 -1
- package/dist/components/DropdownMenu/index.js.map +1 -1
- package/dist/components/Empty/Empty.d.ts +1 -18
- package/dist/components/Empty/index.js +40 -2
- package/dist/components/Empty/index.js.map +1 -1
- package/dist/components/Filter/index.js.map +1 -1
- package/dist/components/FloatingCard/index.js +7 -7
- package/dist/components/FloatingCard/index.js.map +1 -1
- package/dist/components/List/index.js +40 -2
- package/dist/components/List/index.js.map +1 -1
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/MultiSelectPicker/index.js +1 -1
- package/dist/components/MultiSelectPicker/index.js.map +1 -1
- package/dist/components/OperatorPicker/index.js +1 -1
- package/dist/components/OperatorPicker/index.js.map +1 -1
- package/dist/components/PickerPopover/index.js +1 -1
- package/dist/components/PickerPopover/index.js.map +1 -1
- package/dist/components/Popover/Popover.d.ts +3 -1
- package/dist/components/Popover/index.js +1 -1
- package/dist/components/Popover/index.js.map +1 -1
- package/dist/components/Rail/Rail.d.ts +59 -0
- package/dist/components/Rail/RailGate.d.ts +22 -0
- package/dist/components/Rail/RailMini.d.ts +25 -0
- package/dist/components/Rail/RailStep.d.ts +45 -0
- package/dist/components/Rail/index.d.ts +6 -0
- package/dist/components/Rail/index.js +45 -0
- package/dist/components/Rail/index.js.map +1 -0
- package/dist/components/Rail/labels.d.ts +25 -0
- package/dist/components/Rail/types.d.ts +75 -0
- package/dist/components/RuleSearchPicker/index.js +1 -1
- package/dist/components/RuleSearchPicker/index.js.map +1 -1
- package/dist/components/SegmentedPicker/SegmentedPicker.d.ts +7 -1
- package/dist/components/SegmentedPicker/index.js +2 -2
- package/dist/components/SegmentedPicker/index.js.map +1 -1
- package/dist/components/Switch/Switch.d.ts +7 -1
- package/dist/components/Switch/index.js +1 -1
- package/dist/components/Switch/index.js.map +1 -1
- package/dist/components/Table/Table.d.ts +1 -14
- package/dist/components/Table/index.js +40 -2
- package/dist/components/Table/index.js.map +1 -1
- package/dist/emails/balance-sheet-finalized/components/Button/Button.d.ts +7 -0
- package/dist/emails/balance-sheet-finalized/components/Card/Card.d.ts +1 -7
- package/dist/emails/balance-sheet-finalized/components/Empty/Empty.d.ts +1 -18
- package/dist/emails/balance-sheet-finalized/components/Popover/Popover.d.ts +3 -1
- package/dist/emails/balance-sheet-finalized/components/Rail/Rail.d.ts +59 -0
- package/dist/emails/balance-sheet-finalized/components/Rail/RailGate.d.ts +22 -0
- package/dist/emails/balance-sheet-finalized/components/Rail/RailMini.d.ts +25 -0
- package/dist/emails/balance-sheet-finalized/components/Rail/RailStep.d.ts +45 -0
- package/dist/emails/balance-sheet-finalized/components/Rail/index.d.ts +6 -0
- package/dist/emails/balance-sheet-finalized/components/Rail/labels.d.ts +25 -0
- package/dist/emails/balance-sheet-finalized/components/Rail/types.d.ts +75 -0
- package/dist/emails/balance-sheet-finalized/components/SegmentedPicker/SegmentedPicker.d.ts +7 -1
- package/dist/emails/balance-sheet-finalized/components/Switch/Switch.d.ts +7 -1
- package/dist/emails/balance-sheet-finalized/components/Table/Table.d.ts +1 -14
- package/dist/emails/balance-sheet-finalized/index.d.ts +1 -1
- package/dist/emails/email/components/Button/Button.d.ts +7 -0
- package/dist/emails/email/components/Card/Card.d.ts +1 -7
- package/dist/emails/email/components/Empty/Empty.d.ts +1 -18
- package/dist/emails/email/components/Popover/Popover.d.ts +3 -1
- package/dist/emails/email/components/Rail/Rail.d.ts +59 -0
- package/dist/emails/email/components/Rail/RailGate.d.ts +22 -0
- package/dist/emails/email/components/Rail/RailMini.d.ts +25 -0
- package/dist/emails/email/components/Rail/RailStep.d.ts +45 -0
- package/dist/emails/email/components/Rail/index.d.ts +6 -0
- package/dist/emails/email/components/Rail/labels.d.ts +25 -0
- package/dist/emails/email/components/Rail/types.d.ts +75 -0
- package/dist/emails/email/components/SegmentedPicker/SegmentedPicker.d.ts +7 -1
- package/dist/emails/email/components/Switch/Switch.d.ts +7 -1
- package/dist/emails/email/components/Table/Table.d.ts +1 -14
- package/dist/emails/email/index.d.ts +1 -1
- package/dist/index.css +859 -372
- package/package.json +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts +0 -50
- package/dist/components/Skeleton/index.d.ts +0 -1
- package/dist/components/Skeleton/index.js +0 -7
- package/dist/components/Skeleton/index.js.map +0 -1
- package/dist/emails/balance-sheet-finalized/components/Skeleton/Skeleton.d.ts +0 -50
- package/dist/emails/balance-sheet-finalized/components/Skeleton/index.d.ts +0 -1
- package/dist/emails/email/components/Skeleton/Skeleton.d.ts +0 -50
- package/dist/emails/email/components/Skeleton/index.d.ts +0 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { RailDecision, RailGateCondition, RailStepKind, RailStepStatus } from "./types";
|
|
2
|
+
import type { StatusTagVariant } from "../StatusTag";
|
|
3
|
+
/**
|
|
4
|
+
* Vocabulario em portugues da esteira. Fica num arquivo so para que o rail, o
|
|
5
|
+
* conector e o (futuro) modo frase leiam exatamente os mesmos rotulos: dois
|
|
6
|
+
* vocabularios para o mesmo enum ja e um debito conhecido do gyra-operation.
|
|
7
|
+
*/
|
|
8
|
+
export declare const KIND_LABEL: Record<RailStepKind, string>;
|
|
9
|
+
/** Glifo do card GYR-1623: ◉ análise · ⊕ aprofundar · ✋ checkpoint · ⌘ vínculos. */
|
|
10
|
+
export declare const KIND_GLYPH: Record<RailStepKind, string>;
|
|
11
|
+
export declare const GATE_LABEL: Record<RailGateCondition, string>;
|
|
12
|
+
export declare const GATE_DESCRIPTION: Record<RailGateCondition, string>;
|
|
13
|
+
export declare const GATE_ORDER: Array<RailGateCondition>;
|
|
14
|
+
export declare const STATUS_LABEL: Record<RailStepStatus, string>;
|
|
15
|
+
export declare const DECISION_LABEL: Record<RailDecision, string>;
|
|
16
|
+
export declare const DECISION_VARIANT: Record<RailDecision, StatusTagVariant>;
|
|
17
|
+
export declare const STATUS_VARIANT: Record<RailStepStatus, StatusTagVariant>;
|
|
18
|
+
/**
|
|
19
|
+
* O que a pilula de estado mostra: quando a etapa terminou e registrou uma
|
|
20
|
+
* decisao, a decisao vence o "concluida" (e o que o analista quer ler).
|
|
21
|
+
*/
|
|
22
|
+
export declare const resolveStatusTag: (status?: RailStepStatus, decision?: RailDecision) => {
|
|
23
|
+
title: string;
|
|
24
|
+
variant: StatusTagVariant;
|
|
25
|
+
} | undefined;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Rail — vocabulario da esteira Gyra+.
|
|
4
|
+
*
|
|
5
|
+
* O modelo espelha 1:1 o `OperationStep` do gyra-operation (kind + runIf +
|
|
6
|
+
* order), de proposito: o construtor e o acompanhamento ao vivo leem o MESMO
|
|
7
|
+
* array. Quem consome so troca `mode`.
|
|
8
|
+
*/
|
|
9
|
+
/** edit = construtor. run = acompanhamento ao vivo. Mesma arvore. */
|
|
10
|
+
export type RailMode = "edit" | "run";
|
|
11
|
+
/** Os 4 tipos de etapa. Espelha `StepKind` do gyra-operation. */
|
|
12
|
+
export type RailStepKind = "ANALYSIS" | "DEEPEN" | "CHECKPOINT" | "RELATIONSHIPS";
|
|
13
|
+
/**
|
|
14
|
+
* A condicao do conector: sempre avaliada contra a ULTIMA decisao registrada
|
|
15
|
+
* na esteira. Espelha `Gate` do gyra-operation.
|
|
16
|
+
*/
|
|
17
|
+
export type RailGateCondition = "ALWAYS" | "IF_APPROVED" | "IF_APPROVED_OR_ALERT" | "IF_REPROVED";
|
|
18
|
+
/** Estado de execucao de uma etapa (so tem significado no modo run). */
|
|
19
|
+
export type RailStepStatus = "PENDING" | "RUNNING" | "WAITING" | "DONE" | "SKIPPED" | "ERROR";
|
|
20
|
+
/** A decisao que a etapa registrou (nem toda etapa decide). */
|
|
21
|
+
export type RailDecision = "APPROVED" | "ALERT" | "REPROVED";
|
|
22
|
+
/**
|
|
23
|
+
* Folha de uma etapa de Vinculos: um relatorio derivado (socio, 1o nivel,
|
|
24
|
+
* filial...). Cada folha e linkavel.
|
|
25
|
+
*/
|
|
26
|
+
export type RailLeaf = {
|
|
27
|
+
id: string;
|
|
28
|
+
title: string;
|
|
29
|
+
/** Ex: "Socia · Socio PF v3". */
|
|
30
|
+
subtitle?: string;
|
|
31
|
+
/** CPF/CNPJ. Renderizado em IBM Plex Mono. */
|
|
32
|
+
document?: string;
|
|
33
|
+
status?: RailStepStatus;
|
|
34
|
+
decision?: RailDecision;
|
|
35
|
+
/** Quando presente, a folha vira ancora. Senao, botao com `onOpen`. */
|
|
36
|
+
href?: string;
|
|
37
|
+
onOpen?: () => void;
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
};
|
|
40
|
+
/** Uma etapa da esteira (o dado; o componente que a desenha se chama RailStep). */
|
|
41
|
+
export type RailStepData = {
|
|
42
|
+
id: string;
|
|
43
|
+
kind: RailStepKind;
|
|
44
|
+
title: string;
|
|
45
|
+
/** Politica, camada, niveis de vinculo... */
|
|
46
|
+
subtitle?: React.ReactNode;
|
|
47
|
+
/**
|
|
48
|
+
* A condicao do conector que fica ACIMA desta etapa. A primeira etapa da
|
|
49
|
+
* esteira nao tem conector, entao o campo e ignorado nela.
|
|
50
|
+
*/
|
|
51
|
+
runIf?: RailGateCondition;
|
|
52
|
+
status?: RailStepStatus;
|
|
53
|
+
decision?: RailDecision;
|
|
54
|
+
/**
|
|
55
|
+
* Por que a etapa nao disparou. Renderizado FORA do cartao translucido, em
|
|
56
|
+
* contraste cheio: etapa pulada mostra o motivo a vista.
|
|
57
|
+
*/
|
|
58
|
+
reason?: string;
|
|
59
|
+
/** Chips/tags extras no header (camada, custo, tier...). */
|
|
60
|
+
meta?: React.ReactNode;
|
|
61
|
+
/** Acoes da etapa no modo run (ex: "Decidir agora"). */
|
|
62
|
+
actions?: React.ReactNode;
|
|
63
|
+
/** Slot livre de conteudo: seletor de politica, niveis, o que o consumer quiser. */
|
|
64
|
+
content?: React.ReactNode;
|
|
65
|
+
/** Folhas (relatorios derivados). So faz sentido em RELATIONSHIPS. */
|
|
66
|
+
leaves?: RailLeaf[];
|
|
67
|
+
/** Rotulo da lista de folhas. Default: "Relatorios derivados". */
|
|
68
|
+
leavesLabel?: string;
|
|
69
|
+
/** Quando presente, o titulo vira link para o relatorio da etapa. */
|
|
70
|
+
href?: string;
|
|
71
|
+
/** Etapa desabilitada (nao editavel, nao clicavel). */
|
|
72
|
+
disabled?: boolean;
|
|
73
|
+
/** Trava so o conector desta etapa (ex: etapa herdada de um modelo). */
|
|
74
|
+
gateLocked?: boolean;
|
|
75
|
+
};
|
|
@@ -21,7 +21,13 @@ type SegmentedPickerProps = {
|
|
|
21
21
|
/** primary: solid filled trigger; secondary: outlined/ghost trigger. */
|
|
22
22
|
variant?: "primary" | "secondary";
|
|
23
23
|
disabled?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Alinhamento do menu em relacao ao gatilho. Default `start`: o menu e mais
|
|
26
|
+
* largo que a pilula, e alinhado pelo fim ele cresce para a ESQUERDA — de
|
|
27
|
+
* dentro de uma gaveta ou de um card, isso o joga para fora do container.
|
|
28
|
+
*/
|
|
29
|
+
align?: "start" | "center" | "end";
|
|
24
30
|
};
|
|
25
|
-
declare const SegmentedPicker: ({ id, className, value, options, onChange, variant, disabled, }: SegmentedPickerProps) => React.JSX.Element | null;
|
|
31
|
+
declare const SegmentedPicker: ({ id, className, value, options, onChange, variant, disabled, align, }: SegmentedPickerProps) => React.JSX.Element | null;
|
|
26
32
|
export { SegmentedPicker };
|
|
27
33
|
export type { SegmentedPickerProps, SegmentedPickerOption };
|
|
@@ -5,7 +5,13 @@ type SwitchProps = {
|
|
|
5
5
|
className?: string;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
checked?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Nome do controle. Um switch sozinho numa linha de tabela nao tem rotulo
|
|
10
|
+
* visivel nenhum: sem isto o leitor de tela anuncia so "alternar".
|
|
11
|
+
*/
|
|
12
|
+
title?: string;
|
|
13
|
+
"aria-label"?: string;
|
|
8
14
|
onCheckedChange?: (checked: boolean) => void;
|
|
9
15
|
};
|
|
10
|
-
declare const Switch: ({ id, className, disabled, checked, onCheckedChange, }: SwitchProps) => React.JSX.Element;
|
|
16
|
+
declare const Switch: ({ id, className, disabled, checked, onCheckedChange, ...props }: SwitchProps) => React.JSX.Element;
|
|
11
17
|
export { Switch };
|
|
@@ -19,24 +19,11 @@ type TableProps = {
|
|
|
19
19
|
text?: string;
|
|
20
20
|
};
|
|
21
21
|
headlesss?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Estado de carregamento da tabela. O desenho depende de JA existir dado:
|
|
24
|
-
*
|
|
25
|
-
* - **sem linhas** (primeira carga): linhas de skeleton na forma das
|
|
26
|
-
* `columns`, entao a tabela nao muda de largura quando o dado chega.
|
|
27
|
-
* - **com linhas** (refetch por filtro, busca ou acao de linha): as linhas
|
|
28
|
-
* ficam, esmaecidas, com uma barra fina de progresso no topo. Apagar o
|
|
29
|
-
* que o usuario esta lendo para mostrar um placeholder e' pior do que
|
|
30
|
-
* deixar o dado velho a vista por um instante.
|
|
31
|
-
*/
|
|
32
|
-
loading?: boolean;
|
|
33
|
-
/** Quantas linhas de skeleton desenhar na primeira carga. Padrao 5. */
|
|
34
|
-
loadingRows?: number;
|
|
35
22
|
onRowClick?: (e: React.MouseEvent<HTMLTableRowElement, MouseEvent>, data: any) => void;
|
|
36
23
|
/** Optional per-row className. Receives the row's data object and its
|
|
37
24
|
* zero-based index. Useful for transient state highlights (e.g. a row
|
|
38
25
|
* that just finished processing in real-time). */
|
|
39
26
|
rowClassName?: (data: any, index: number) => string | undefined;
|
|
40
27
|
};
|
|
41
|
-
declare const Table: ({ id, className, height, type, columns, data, empty, headlesss,
|
|
28
|
+
declare const Table: ({ id, className, height, type, columns, data, empty, headlesss, onRowClick, rowClassName, }: TableProps) => React.JSX.Element;
|
|
42
29
|
export { Table };
|
|
@@ -37,6 +37,7 @@ import "./components/Popover/index.css";
|
|
|
37
37
|
import "./components/ProcessingChip/index.css";
|
|
38
38
|
import "./components/Progress/index.css";
|
|
39
39
|
import "./components/RadioGroup/index.css";
|
|
40
|
+
import "./components/Rail/index.css";
|
|
40
41
|
import "./components/RichInput/index.css";
|
|
41
42
|
import "./components/Row/index.css";
|
|
42
43
|
import "./components/ScoreBar/index.css";
|
|
@@ -45,7 +46,6 @@ import "./components/SegmentedToggle/index.css";
|
|
|
45
46
|
import "./components/Select/index.css";
|
|
46
47
|
import "./components/Selector/index.css";
|
|
47
48
|
import "./components/SelectTree/index.css";
|
|
48
|
-
import "./components/Skeleton/index.css";
|
|
49
49
|
import "./components/PickerPopover/index.css";
|
|
50
50
|
import "./components/MultiSelectPicker/index.css";
|
|
51
51
|
import "./components/RuleSearchPicker/index.css";
|