@selectwin/kit 0.1.104 → 0.1.105
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/SelectCardGrid.d.ts +4 -1
- package/dist/SelectChoiceCard.d.ts +9 -1
- package/dist/SelectKpiCard.d.ts +2 -0
- package/dist/SelectProgressBar.d.ts +2 -0
- package/dist/SelectSection.d.ts +3 -1
- package/dist/SelectSkeleton.d.ts +14 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +635 -553
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/SelectCardGrid.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { SelectListChromeProps, SelectListPagination } from './internal/listChrome';
|
|
3
|
-
export declare function SelectCardGrid<T>({ items, getId, renderItem, loading, skeletonCount, empty, pagination, create, minCardWidth, title, help, description, action, filters, tools, }: {
|
|
3
|
+
export declare function SelectCardGrid<T>({ items, getId, renderItem, loading, skeletonCount, empty, pagination, create, minCardWidth, skeletonCover, title, help, description, action, filters, tools, }: {
|
|
4
4
|
items: T[];
|
|
5
5
|
getId: (item: T) => string;
|
|
6
6
|
/** O card de um item — tipicamente um SelectRecordCard. */
|
|
@@ -25,4 +25,7 @@ export declare function SelectCardGrid<T>({ items, getId, renderItem, loading, s
|
|
|
25
25
|
};
|
|
26
26
|
/** Piso da coluna da grade (`auto-fill` + `minmax`). */
|
|
27
27
|
minCardWidth?: string;
|
|
28
|
+
/** Os cards têm capa (`SelectRecordCard cover`): o esqueleto traz a faixa 16:9 no topo, para a
|
|
29
|
+
* grade não pular de altura quando as capas chegam. */
|
|
30
|
+
skeletonCover?: boolean;
|
|
28
31
|
} & SelectListChromeProps): import("react").JSX.Element;
|
|
@@ -21,10 +21,18 @@ export interface SelectChoiceCardProps {
|
|
|
21
21
|
'data-tour'?: string;
|
|
22
22
|
}
|
|
23
23
|
export declare const SelectChoiceCard: import('react').ForwardRefExoticComponent<SelectChoiceCardProps & import('react').RefAttributes<HTMLElement>>;
|
|
24
|
+
/** O card carregando, na FORMA do real: quadrado do ícone, selo no canto, nome, duas linhas e o rodapé. */
|
|
25
|
+
export declare function SelectChoiceCardSkeleton({ badge }: {
|
|
26
|
+
badge?: boolean;
|
|
27
|
+
}): import("react").JSX.Element;
|
|
24
28
|
type SelectChoiceGridOwnProps = {
|
|
25
|
-
children
|
|
29
|
+
children?: ReactNode;
|
|
26
30
|
/** Largura mínima de um card antes de a grade quebrar a linha. */
|
|
27
31
|
minCardWidth?: string;
|
|
32
|
+
/** Carregando: a grade desenha `skeletonCount` cards-esqueleto no lugar dos filhos. */
|
|
33
|
+
loading?: boolean;
|
|
34
|
+
/** Quantos esqueletos — o número de cards que VAI aparecer, para a grade não mudar de forma. */
|
|
35
|
+
skeletonCount?: number;
|
|
28
36
|
};
|
|
29
37
|
export type SelectChoiceGridProps = SelectChoiceGridOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectChoiceGridOwnProps>;
|
|
30
38
|
export declare const SelectChoiceGrid: import('react').ForwardRefExoticComponent<SelectChoiceGridOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectChoiceGridOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
|
package/dist/SelectKpiCard.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
type SelectKpiCardOwnProps = {
|
|
3
3
|
label: ReactNode;
|
|
4
|
+
/** O número ainda carrega: valor e legenda viram skeleton na altura deles (o rótulo fica). */
|
|
5
|
+
loading?: boolean;
|
|
4
6
|
value: ReactNode;
|
|
5
7
|
caption?: ReactNode;
|
|
6
8
|
chart?: ReactNode;
|
|
@@ -16,6 +16,8 @@ type SelectProgressBarOwnProps = {
|
|
|
16
16
|
indeterminate?: boolean;
|
|
17
17
|
/** Nome acessível quando não há `label` visível. */
|
|
18
18
|
ariaLabel?: string;
|
|
19
|
+
/** O número ainda não chegou: rótulo, valor e trilho viram esqueleto na mesma altura. */
|
|
20
|
+
loading?: boolean;
|
|
19
21
|
};
|
|
20
22
|
export type SelectProgressBarProps = SelectProgressBarOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectProgressBarOwnProps>;
|
|
21
23
|
export declare const SelectProgressBar: import('react').ForwardRefExoticComponent<SelectProgressBarOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectProgressBarOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
|
package/dist/SelectSection.d.ts
CHANGED
|
@@ -5,7 +5,9 @@ type SelectSectionOwnProps = {
|
|
|
5
5
|
* `collapsible` — ali o head inteiro é um <button>, e botão dentro de botão é DOM
|
|
6
6
|
* inválido. */
|
|
7
7
|
help?: ReactNode;
|
|
8
|
-
/** Subdued line under the title (e.g. the step subtitle of a wizard card).
|
|
8
|
+
/** Subdued line under the title (e.g. the step subtitle of a wizard card). Collapsible too:
|
|
9
|
+
* there it is the SUMMARY of what is inside ("Liberação imediata · conclui com 90%"), so the
|
|
10
|
+
* closed card still says what it holds. */
|
|
9
11
|
description?: ReactNode;
|
|
10
12
|
/** Right-aligned action in the head (e.g. an "Editar" link). Ignored when collapsible. */
|
|
11
13
|
action?: ReactNode;
|
package/dist/SelectSkeleton.d.ts
CHANGED
|
@@ -9,8 +9,19 @@ declare function SkeletonThumbnail({ size }: {
|
|
|
9
9
|
}): import("react").JSX.Element;
|
|
10
10
|
/** Área de conteúdo não-textual carregando (chart, mapa, imagem, preview): retângulo
|
|
11
11
|
* shimmer com 100% da largura do pai e a altura dada. */
|
|
12
|
-
declare function SkeletonBlock({ height }: {
|
|
12
|
+
declare function SkeletonBlock({ height, aspectRatio }: {
|
|
13
13
|
height?: number | string;
|
|
14
|
+
aspectRatio?: string;
|
|
15
|
+
}): import("react").JSX.Element;
|
|
16
|
+
/** Um campo de formulário carregando: o rótulo curto e a caixa do controle na altura real. */
|
|
17
|
+
declare function SkeletonField({ tall }: {
|
|
18
|
+
tall?: boolean;
|
|
19
|
+
}): import("react").JSX.Element;
|
|
20
|
+
/** Uma linha de lista carregando. `boxed` = o item emoldurado (linha dentro de um well). */
|
|
21
|
+
declare function SkeletonRow({ media, action, boxed }: {
|
|
22
|
+
media?: boolean;
|
|
23
|
+
action?: boolean;
|
|
24
|
+
boxed?: boolean;
|
|
14
25
|
}): import("react").JSX.Element;
|
|
15
26
|
export declare const SelectSkeleton: (({ lines }: {
|
|
16
27
|
lines?: number;
|
|
@@ -19,5 +30,7 @@ export declare const SelectSkeleton: (({ lines }: {
|
|
|
19
30
|
Display: typeof SkeletonDisplay;
|
|
20
31
|
Thumbnail: typeof SkeletonThumbnail;
|
|
21
32
|
Block: typeof SkeletonBlock;
|
|
33
|
+
Field: typeof SkeletonField;
|
|
34
|
+
Row: typeof SkeletonRow;
|
|
22
35
|
};
|
|
23
36
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -178,7 +178,7 @@ export { SelectFlowCanvas, SelectFlowNode, SelectFlowLayout } from './SelectFlow
|
|
|
178
178
|
export { SelectSwitchField } from './SelectSwitchField';
|
|
179
179
|
export { SelectColorField, SELECT_COLOR_PRESETS, normalizeHex, contrastRatio } from './SelectColorField';
|
|
180
180
|
export { SelectProgressBar, type SelectProgressBarProps, type SelectProgressTone } from './SelectProgressBar';
|
|
181
|
-
export { SelectChoiceCard, SelectChoiceGrid, type SelectChoiceCardProps, type SelectChoiceGridProps } from './SelectChoiceCard';
|
|
181
|
+
export { SelectChoiceCard, SelectChoiceCardSkeleton, SelectChoiceGrid, type SelectChoiceCardProps, type SelectChoiceGridProps } from './SelectChoiceCard';
|
|
182
182
|
export { SelectCertificatePreview, type SelectCertificatePreviewProps, type SelectCertificateSignature } from './SelectCertificatePreview';
|
|
183
183
|
export { SelectImageField } from './SelectImageField';
|
|
184
184
|
export { SelectAccordion } from './SelectAccordion';
|