@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,59 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.css";
|
|
3
|
+
import type { RailGateCondition, RailLeaf, RailMode, RailStepData } from "./types";
|
|
4
|
+
/**
|
|
5
|
+
* Rail — a esteira Gyra+: uma lista ordenada e vertical de etapas, com um
|
|
6
|
+
* conector condicional entre elas.
|
|
7
|
+
*
|
|
8
|
+
* Uma linha, nao um grafo: le de cima para baixo na mesma ordem em que a
|
|
9
|
+
* decisao acontece. A referencia e o Atalhos da Apple, nao um editor de
|
|
10
|
+
* diagramas.
|
|
11
|
+
*
|
|
12
|
+
* Dois modos, uma arvore so:
|
|
13
|
+
* - `edit`: inserir etapa entre etapas, trocar a condicao do conector,
|
|
14
|
+
* reordenar.
|
|
15
|
+
* - `run`: a mesma linha com estado por etapa. Etapa que nao disparou fica
|
|
16
|
+
* translucida com o motivo a vista.
|
|
17
|
+
*
|
|
18
|
+
* Teclado: a esteira e UM ponto de tabulacao (roving tabindex). Setas
|
|
19
|
+
* cima/baixo andam entre etapas, Home/End vao para a primeira/ultima, e
|
|
20
|
+
* Alt+setas reordenam no modo edit. Todo controle dentro da etapa (conector,
|
|
21
|
+
* abrir relatorio, remover, folhas) e um botao ou link de verdade.
|
|
22
|
+
*/
|
|
23
|
+
type RailProps = {
|
|
24
|
+
id?: string;
|
|
25
|
+
className?: string;
|
|
26
|
+
/** Default: "edit". */
|
|
27
|
+
mode?: RailMode;
|
|
28
|
+
steps: Array<RailStepData>;
|
|
29
|
+
/** Rotulo acessivel da lista. Default: "Esteira". */
|
|
30
|
+
ariaLabel?: string;
|
|
31
|
+
/** Etapa em foco na execucao ao vivo (modo run). */
|
|
32
|
+
activeStepId?: string;
|
|
33
|
+
/** Etapa selecionada no construtor (modo edit). */
|
|
34
|
+
selectedStepId?: string;
|
|
35
|
+
/** Condicoes oferecidas nos conectores. Default: as quatro. */
|
|
36
|
+
gateOptions?: Array<RailGateCondition>;
|
|
37
|
+
/** Folhas abertas (controlado). Sem isto, a expansao e interna. */
|
|
38
|
+
expandedStepIds?: Array<string>;
|
|
39
|
+
/** Folhas abertas na primeira renderizacao (nao controlado). */
|
|
40
|
+
defaultExpandedStepIds?: Array<string>;
|
|
41
|
+
/** Rotulo do botao que acrescenta etapa no fim. Default: "Adicionar etapa". */
|
|
42
|
+
addLabel?: string;
|
|
43
|
+
/** Texto da esteira vazia. */
|
|
44
|
+
emptyText?: string;
|
|
45
|
+
onSelectStep?: (step: RailStepData) => void;
|
|
46
|
+
onOpenStep?: (step: RailStepData) => void;
|
|
47
|
+
onOpenLeaf?: (leaf: RailLeaf, step: RailStepData) => void;
|
|
48
|
+
/** Trocar a condicao do conector que fica ACIMA da etapa `stepId`. */
|
|
49
|
+
onChangeGate?: (stepId: string, condition: RailGateCondition) => void;
|
|
50
|
+
/** Inserir etapa na posicao `index` (0 = antes da primeira). */
|
|
51
|
+
onInsertStep?: (index: number) => void;
|
|
52
|
+
onRemoveStep?: (step: RailStepData) => void;
|
|
53
|
+
/** Reordenar. `toIndex` ja vem calculado e dentro dos limites. */
|
|
54
|
+
onMoveStep?: (step: RailStepData, direction: "up" | "down", toIndex: number) => void;
|
|
55
|
+
onExpandStep?: (stepId: string, expanded: boolean) => void;
|
|
56
|
+
};
|
|
57
|
+
declare const Rail: ({ id, className, mode, steps, ariaLabel, activeStepId, selectedStepId, gateOptions, expandedStepIds, defaultExpandedStepIds, addLabel, emptyText, onSelectStep, onOpenStep, onOpenLeaf, onChangeGate, onInsertStep, onRemoveStep, onMoveStep, onExpandStep, }: RailProps) => React.JSX.Element;
|
|
58
|
+
export { Rail };
|
|
59
|
+
export type { RailProps };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.css";
|
|
3
|
+
import type { RailGateCondition } from "./types";
|
|
4
|
+
type RailGateState = "default" | "passed" | "blocked";
|
|
5
|
+
type RailGateProps = {
|
|
6
|
+
id?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
value?: RailGateCondition;
|
|
9
|
+
/** Quando falso, o conector e so leitura (modo run, ou etapa travada). */
|
|
10
|
+
editable?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** Quais condicoes oferecer. Default: as quatro, na ordem canonica. */
|
|
13
|
+
options?: Array<RailGateCondition>;
|
|
14
|
+
/** No modo run: se a condicao foi atendida, bloqueou, ou nem chegou a valer. */
|
|
15
|
+
state?: RailGateState;
|
|
16
|
+
/** Rotulo acessivel do grupo, ex: "Conector antes da etapa 2". */
|
|
17
|
+
ariaLabel?: string;
|
|
18
|
+
onChange?: (value: RailGateCondition) => void;
|
|
19
|
+
};
|
|
20
|
+
declare const RailGate: ({ id, className, value, editable, disabled, options, state, ariaLabel, onChange, }: RailGateProps) => React.JSX.Element;
|
|
21
|
+
export { RailGate };
|
|
22
|
+
export type { RailGateProps, RailGateState };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.css";
|
|
3
|
+
import type { RailStepData } from "./types";
|
|
4
|
+
/**
|
|
5
|
+
* RailMini — a MESMA esteira, do tamanho de uma linha de lista.
|
|
6
|
+
*
|
|
7
|
+
* Existe porque o progresso da esteira e a informacao que a listagem de
|
|
8
|
+
* execucoes precisa dar de graca: sem isto, saber que a esteira parou na
|
|
9
|
+
* etapa 1 de 4 custa um clique e uma expansao. E uma miniatura, nao um
|
|
10
|
+
* componente novo: le o mesmo `RailStepData` do `Rail`, so que como uma fila
|
|
11
|
+
* de marcas horizontais.
|
|
12
|
+
*
|
|
13
|
+
* Nao e clicavel de proposito. Quem quer detalhe abre a linha; a miniatura e
|
|
14
|
+
* um indicador, e um alvo de clique dentro de outro alvo de clique so cria
|
|
15
|
+
* ambiguidade.
|
|
16
|
+
*/
|
|
17
|
+
type RailMiniProps = {
|
|
18
|
+
className?: string;
|
|
19
|
+
steps: Array<RailStepData>;
|
|
20
|
+
/** Rotulo acessivel. Default: "Progresso da esteira". */
|
|
21
|
+
ariaLabel?: string;
|
|
22
|
+
};
|
|
23
|
+
declare const RailMini: ({ className, steps, ariaLabel }: RailMiniProps) => React.JSX.Element | null;
|
|
24
|
+
export { RailMini };
|
|
25
|
+
export type { RailMiniProps };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.css";
|
|
3
|
+
import type { RailLeaf, RailMode, RailStepData } from "./types";
|
|
4
|
+
/**
|
|
5
|
+
* RailStep — o cartao de uma etapa.
|
|
6
|
+
*
|
|
7
|
+
* E o mesmo cartao nos dois modos: no `edit` ele mostra a barra de ordenacao e
|
|
8
|
+
* o slot de configuracao; no `run` ele mostra o estado e as acoes. Nada de
|
|
9
|
+
* duas arvores: se construir e acompanhar exigissem componentes diferentes, o
|
|
10
|
+
* desenho teria falhado.
|
|
11
|
+
*
|
|
12
|
+
* Etapa que nao disparou fica translucida, mas o MOTIVO fica fora do cartao,
|
|
13
|
+
* em contraste cheio: e a informacao que o analista precisa ler.
|
|
14
|
+
*/
|
|
15
|
+
type RailStepProps = {
|
|
16
|
+
id?: string;
|
|
17
|
+
className?: string;
|
|
18
|
+
step: RailStepData;
|
|
19
|
+
mode?: RailMode;
|
|
20
|
+
/** Posicao 1-based na esteira. */
|
|
21
|
+
index?: number;
|
|
22
|
+
/** Total de etapas, para o "Etapa 2 de 5" lido pelo leitor de tela. */
|
|
23
|
+
total?: number;
|
|
24
|
+
/** Etapa em foco na execucao ao vivo. */
|
|
25
|
+
active?: boolean;
|
|
26
|
+
/** Etapa selecionada no construtor. */
|
|
27
|
+
selected?: boolean;
|
|
28
|
+
/** Folhas visiveis. */
|
|
29
|
+
expanded?: boolean;
|
|
30
|
+
canMoveUp?: boolean;
|
|
31
|
+
canMoveDown?: boolean;
|
|
32
|
+
/** Roving tabindex: o Rail decide qual etapa esta na ordem de tabulacao. */
|
|
33
|
+
tabIndex?: number;
|
|
34
|
+
onExpand?: (expanded: boolean) => void;
|
|
35
|
+
onOpen?: () => void;
|
|
36
|
+
onSelect?: () => void;
|
|
37
|
+
onRemove?: () => void;
|
|
38
|
+
onMove?: (direction: "up" | "down") => void;
|
|
39
|
+
onOpenLeaf?: (leaf: RailLeaf) => void;
|
|
40
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
41
|
+
onFocus?: (event: React.FocusEvent<HTMLDivElement>) => void;
|
|
42
|
+
};
|
|
43
|
+
declare const RailStep: React.ForwardRefExoticComponent<RailStepProps & React.RefAttributes<HTMLDivElement>>;
|
|
44
|
+
export { RailStep };
|
|
45
|
+
export type { RailStepProps };
|