@selectwin/kit 0.1.58 → 0.1.59
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/SelectBuilderWorkspace.d.ts +43 -0
- package/dist/SelectPreviewFrame.d.ts +3 -0
- package/dist/icons.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2843 -2743
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface SelectBuilderSection {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
/** Linha de apoio no cabeçalho do painel — o que a seção controla. */
|
|
6
|
+
description?: string;
|
|
7
|
+
/** Glifo do item na trilha. */
|
|
8
|
+
icon?: ReactNode;
|
|
9
|
+
/** Agrupa itens da trilha sob um rótulo (a ordem de aparição define a ordem dos grupos). */
|
|
10
|
+
group?: string;
|
|
11
|
+
/** Termos extras para a busca da trilha (o título já entra por padrão). */
|
|
12
|
+
keywords?: string;
|
|
13
|
+
/** Selo curto à direita do item — estado da seção ("Ativo", "3 itens"). */
|
|
14
|
+
status?: ReactNode;
|
|
15
|
+
content: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export interface SelectBuilderWorkspaceProps {
|
|
18
|
+
title: string;
|
|
19
|
+
subtitle?: string;
|
|
20
|
+
/** Destino do voltar; sem ele, volta no histórico. */
|
|
21
|
+
backTo?: string;
|
|
22
|
+
onSave: () => void;
|
|
23
|
+
saving?: boolean;
|
|
24
|
+
saveLabel?: string;
|
|
25
|
+
saveDisabled?: boolean;
|
|
26
|
+
cancelTo?: string;
|
|
27
|
+
/** Banner de erro acima das colunas. */
|
|
28
|
+
error?: ReactNode;
|
|
29
|
+
sections: SelectBuilderSection[];
|
|
30
|
+
/** Seção ativa (controlado). Sem ela o workspace guarda a própria seleção. */
|
|
31
|
+
activeId?: string;
|
|
32
|
+
onActiveChange?: (id: string) => void;
|
|
33
|
+
/** Caixa de busca na trilha (filtra por título/keywords). */
|
|
34
|
+
searchable?: boolean;
|
|
35
|
+
/** O palco: normalmente um `<SelectPreviewFrame fill />`. */
|
|
36
|
+
preview?: ReactNode;
|
|
37
|
+
/** Controles extras no centro da barra (ex.: alternador de dispositivo). */
|
|
38
|
+
toolbar?: ReactNode;
|
|
39
|
+
/** Selo de "alterações não salvas" na barra. */
|
|
40
|
+
dirty?: boolean;
|
|
41
|
+
dirtyLabel?: string;
|
|
42
|
+
}
|
|
43
|
+
export declare function SelectBuilderWorkspace({ title, subtitle, backTo, onSave, saving, saveLabel, saveDisabled, cancelTo, error, sections, activeId, onActiveChange, searchable, preview, toolbar, dirty, dirtyLabel, }: SelectBuilderWorkspaceProps): import("react").JSX.Element;
|
|
@@ -4,6 +4,9 @@ export interface SelectPreviewFrameProps {
|
|
|
4
4
|
src?: string;
|
|
5
5
|
title?: string;
|
|
6
6
|
height?: number;
|
|
7
|
+
/** Preenche a altura do pai em vez de medir `height` — para o palco de um
|
|
8
|
+
* `SelectBuilderWorkspace`, onde a coluna já tem altura e o palco é quem sobra. */
|
|
9
|
+
fill?: boolean;
|
|
7
10
|
initialDevice?: Device;
|
|
8
11
|
showDeviceToggle?: boolean;
|
|
9
12
|
emptyLabel?: string;
|
package/dist/icons.d.ts
CHANGED
|
@@ -90,6 +90,8 @@ export declare function ChartLineIcon(): import("react").JSX.Element;
|
|
|
90
90
|
export declare function StoreIcon({ duotone }?: IconVariantProps): import("react").JSX.Element;
|
|
91
91
|
export declare function AppsIcon(): import("react").JSX.Element;
|
|
92
92
|
export declare function MinusCircleIcon(): import("react").JSX.Element;
|
|
93
|
+
/** Carrinho de compras (Iconsax ShoppingCart) — o resumo do pedido no checkout. */
|
|
94
|
+
export declare function CartIcon(): import("react").JSX.Element;
|
|
93
95
|
export declare function MenuIcon(): import("react").JSX.Element;
|
|
94
96
|
/** Marketplace — a storefront with an awning (a platform of sub-stores). */
|
|
95
97
|
export declare function StorefrontIcon({ duotone }?: IconVariantProps): import("react").JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -161,6 +161,7 @@ export { SelectRating } from './SelectRating';
|
|
|
161
161
|
export { SelectNumberField } from './SelectNumberField';
|
|
162
162
|
export { SelectRepeatingFieldArray } from './SelectRepeatingFieldArray';
|
|
163
163
|
export { SelectBuilderLayout } from './SelectBuilderLayout';
|
|
164
|
+
export { SelectBuilderWorkspace } from './SelectBuilderWorkspace';
|
|
164
165
|
export { SelectSwitchField } from './SelectSwitchField';
|
|
165
166
|
export { SelectColorField } from './SelectColorField';
|
|
166
167
|
export { SelectImageField } from './SelectImageField';
|
|
@@ -168,6 +169,7 @@ export { SelectAccordion } from './SelectAccordion';
|
|
|
168
169
|
export type { SelectNumberFieldProps } from './SelectNumberField';
|
|
169
170
|
export type { SelectRepeatingFieldArrayProps, SelectRepeatingRowHelpers } from './SelectRepeatingFieldArray';
|
|
170
171
|
export type { SelectBuilderLayoutProps } from './SelectBuilderLayout';
|
|
172
|
+
export type { SelectBuilderSection, SelectBuilderWorkspaceProps } from './SelectBuilderWorkspace';
|
|
171
173
|
export type { SelectSwitchFieldProps } from './SelectSwitchField';
|
|
172
174
|
export type { SelectColorFieldProps } from './SelectColorField';
|
|
173
175
|
export type { SelectImageFieldProps } from './SelectImageField';
|