@selectwin/kit 0.1.179 → 0.1.181
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/SelectLauncher.d.ts +26 -0
- package/dist/SelectLineChart.d.ts +7 -1
- package/dist/SelectModal.d.ts +6 -1
- package/dist/SelectSearchInput.d.ts +2 -0
- package/dist/chartUtils.d.ts +9 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +974 -870
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
type SelectLauncherSectionOwnProps = {
|
|
3
|
+
/** O nome da seção ("No dock"). */
|
|
4
|
+
title: ReactNode;
|
|
5
|
+
/** O que mostrar quando a seção não tem itens (a seção some se não houver nem itens nem isto). */
|
|
6
|
+
empty?: ReactNode;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export type SelectLauncherSectionProps = SelectLauncherSectionOwnProps & Omit<ComponentPropsWithoutRef<'section'>, keyof SelectLauncherSectionOwnProps | 'title'>;
|
|
10
|
+
export declare const SelectLauncherSection: import('react').ForwardRefExoticComponent<SelectLauncherSectionOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, keyof SelectLauncherSectionOwnProps> & import('react').RefAttributes<HTMLElement>>;
|
|
11
|
+
type SelectLauncherItemOwnProps = {
|
|
12
|
+
/** O ícone do app (40×40). */
|
|
13
|
+
media?: ReactNode;
|
|
14
|
+
title: ReactNode;
|
|
15
|
+
/** Uma linha; o que passar disso vira "…". */
|
|
16
|
+
description?: ReactNode;
|
|
17
|
+
/** Abre o app. */
|
|
18
|
+
onOpen?: () => void;
|
|
19
|
+
/** Rótulo do alvo principal para o leitor de tela (padrão: o próprio título). */
|
|
20
|
+
openLabel?: string;
|
|
21
|
+
/** A ação à direita (ex.: o alfinete). */
|
|
22
|
+
action?: ReactNode;
|
|
23
|
+
};
|
|
24
|
+
export type SelectLauncherItemProps = SelectLauncherItemOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectLauncherItemOwnProps | 'title'>;
|
|
25
|
+
export declare const SelectLauncherItem: import('react').ForwardRefExoticComponent<SelectLauncherItemOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectLauncherItemOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
|
|
26
|
+
export {};
|
|
@@ -6,7 +6,13 @@ type SelectLineChartOwnProps = {
|
|
|
6
6
|
height?: number;
|
|
7
7
|
format?: (n: number) => string;
|
|
8
8
|
area?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Ocupa a altura que sobra no pai (0.1.180): `height` vira o PISO e o gráfico cresce até o fim da coluna — o card
|
|
11
|
+
* do gráfico ao lado de um card mais alto fecha sem faixa branca embaixo. O pai precisa ser uma coluna flex que
|
|
12
|
+
* estica (ex.: `SelectStack fill growLast`, com o gráfico por último); fora dela, fica na altura `height`.
|
|
13
|
+
*/
|
|
14
|
+
fill?: boolean;
|
|
9
15
|
};
|
|
10
16
|
export type SelectLineChartProps = SelectLineChartOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectLineChartOwnProps>;
|
|
11
|
-
export declare function SelectLineChart({ series, labels, height, format, area, className, ...rest }: SelectLineChartProps): import("react").JSX.Element;
|
|
17
|
+
export declare function SelectLineChart({ series, labels, height: baseHeight, format, area, fill, className, style, ...rest }: SelectLineChartProps): import("react").JSX.Element;
|
|
12
18
|
export {};
|
package/dist/SelectModal.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
export declare function SelectModal({ open, onClose, eyebrow, title, subtitle, children, footer, aside, size, showClose, noise, dividedHeader, backdrop, theme, placement, }: {
|
|
2
|
+
export declare function SelectModal({ open, onClose, eyebrow, title, subtitle, children, footer, aside, size, showClose, noise, dividedHeader, backdrop, theme, placement, headerAction, }: {
|
|
3
3
|
open: boolean;
|
|
4
4
|
onClose: () => void;
|
|
5
5
|
/** Uma linha de contexto acima do título ("Passo a passo · ponto 1 de 5"). */
|
|
@@ -21,4 +21,9 @@ export declare function SelectModal({ open, onClose, eyebrow, title, subtitle, c
|
|
|
21
21
|
theme?: 'light' | 'dark';
|
|
22
22
|
/** `side` = folha lateral à direita, na altura inteira (o detalhe de uma linha da lista). */
|
|
23
23
|
placement?: 'center' | 'side';
|
|
24
|
+
/**
|
|
25
|
+
* 0.1.181: um controle na LINHA do título, à direita (a busca do modal de Apps do painel). Numa tela
|
|
26
|
+
* estreita ele desce para baixo do título, na largura toda. Só no layout padrão (sem `aside`).
|
|
27
|
+
*/
|
|
28
|
+
headerAction?: ReactNode;
|
|
24
29
|
}): import('react').ReactPortal | null;
|
|
@@ -5,6 +5,8 @@ type SelectSearchInputOwnProps = {
|
|
|
5
5
|
placeholder?: string;
|
|
6
6
|
/** Right-aligned shortcut hint (rendered as a small chip). */
|
|
7
7
|
shortcut?: string;
|
|
8
|
+
/** 0.1.181: o nome do campo para o leitor de tela (padrão: o placeholder — sem ele o campo não tinha nome). */
|
|
9
|
+
inputLabel?: string;
|
|
8
10
|
};
|
|
9
11
|
export type SelectSearchInputProps = SelectSearchInputOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectSearchInputOwnProps>;
|
|
10
12
|
export declare const SelectSearchInput: import('react').ForwardRefExoticComponent<SelectSearchInputOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectSearchInputOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
|
package/dist/chartUtils.d.ts
CHANGED
|
@@ -3,8 +3,17 @@
|
|
|
3
3
|
export declare function useChartSize(height: number): {
|
|
4
4
|
ref: import('react').RefObject<HTMLDivElement>;
|
|
5
5
|
width: number;
|
|
6
|
+
boxHeight: number;
|
|
6
7
|
height: number;
|
|
7
8
|
};
|
|
9
|
+
/**
|
|
10
|
+
* Recuo esquerdo do plot na medida do MAIOR rótulo do eixo Y (0.1.180). O recuo fixo de 48px cabia "R$ 8 mil", mas
|
|
11
|
+
* "R$ 500,00" e "R$ 1,5 mil" vazavam para a esquerda do SVG e encostavam na borda do card, fora do alinhamento do
|
|
12
|
+
* resto do conteúdo. Agora o rótulo mais largo começa no x=0 do gráfico — na mesma linha do que está acima dele.
|
|
13
|
+
* Mede com o canvas (a fonte do eixo: 500, 0.6875rem, na família do próprio gráfico — `el`, a caixa dele; o `body` do
|
|
14
|
+
* app pode ter outra); sem canvas (teste), estima pela contagem de caracteres.
|
|
15
|
+
*/
|
|
16
|
+
export declare function yAxisPad(labels: string[], el?: Element | null): number;
|
|
8
17
|
/** Live pixel width of a ref'd element, for viewBox SVGs whose box is sized in rem (so it
|
|
9
18
|
* scales with the fluid root): feeding the measured px back into the geometry keeps the
|
|
10
19
|
* viewBox 1:1 with the rendered px, so px-positioned HTML overlays (tooltips) stay aligned.
|
package/dist/index.d.ts
CHANGED
|
@@ -78,6 +78,8 @@ export type { SelectCopyableIdProps } from './SelectCopyableId';
|
|
|
78
78
|
export { SelectCollapsible } from './SelectCollapsible';
|
|
79
79
|
export { SelectActionCard } from './SelectActionCard';
|
|
80
80
|
export { SelectAppTile, SelectCreateTile } from './SelectTile';
|
|
81
|
+
export { SelectLauncherSection, SelectLauncherItem } from './SelectLauncher';
|
|
82
|
+
export type { SelectLauncherSectionProps, SelectLauncherItemProps } from './SelectLauncher';
|
|
81
83
|
export { SelectWorkspaceSwitcher } from './SelectWorkspaceSwitcher';
|
|
82
84
|
export { SelectKanban, SelectKanbanCard } from './SelectKanban';
|
|
83
85
|
export { SelectCalendar, calendarRange, calendarToday } from './SelectCalendar';
|