@selectwin/kit 0.1.94 → 0.1.96
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/SelectSetupGuide.d.ts +42 -0
- package/dist/SelectTour.d.ts +21 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +351 -79
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
export type SelectSetupStepStatus = 'done' | 'todo' | 'next' | 'skipped' | 'waiting';
|
|
3
|
+
export interface SelectSetupStep {
|
|
4
|
+
id: string;
|
|
5
|
+
title: ReactNode;
|
|
6
|
+
description?: ReactNode;
|
|
7
|
+
status: SelectSetupStepStatus;
|
|
8
|
+
/** Lado direito da linha: selo de estado ou uma ação curta ("Pular", "Desfazer"). */
|
|
9
|
+
trailing?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export interface SelectSetupGroup {
|
|
12
|
+
title: ReactNode;
|
|
13
|
+
steps: SelectSetupStep[];
|
|
14
|
+
}
|
|
15
|
+
type SelectSetupGuideOwnProps = {
|
|
16
|
+
title: ReactNode;
|
|
17
|
+
description?: ReactNode;
|
|
18
|
+
/** Quantas etapas contam e quantas já estão feitas — a barra e o "3 de 8". */
|
|
19
|
+
progress?: {
|
|
20
|
+
done: number;
|
|
21
|
+
total: number;
|
|
22
|
+
};
|
|
23
|
+
/** Ações do guia na cabeça (minimizar, ocultar). */
|
|
24
|
+
actions?: ReactNode;
|
|
25
|
+
/** O painel do próximo passo. Sem ele, a lista ocupa o corpo inteiro. */
|
|
26
|
+
next?: ReactNode;
|
|
27
|
+
groups: SelectSetupGroup[];
|
|
28
|
+
/** Só a cabeça: o guia vira uma faixa. */
|
|
29
|
+
minimized?: boolean;
|
|
30
|
+
/** Cor da barra — `sandbox` quando o guia acompanha o ambiente de teste. */
|
|
31
|
+
tone?: 'default' | 'sandbox';
|
|
32
|
+
};
|
|
33
|
+
export type SelectSetupGuideProps = SelectSetupGuideOwnProps & Omit<ComponentPropsWithoutRef<'section'>, keyof SelectSetupGuideOwnProps>;
|
|
34
|
+
export declare const SelectSetupGuide: import('react').ForwardRefExoticComponent<SelectSetupGuideOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, keyof SelectSetupGuideOwnProps> & import('react').RefAttributes<HTMLElement>>;
|
|
35
|
+
/** O painel do próximo passo, no ritmo da casa: sobrancelha, título, texto e a fileira de ações. */
|
|
36
|
+
export declare function SelectSetupNext({ eyebrow, title, children, actions, }: {
|
|
37
|
+
eyebrow?: ReactNode;
|
|
38
|
+
title: ReactNode;
|
|
39
|
+
children?: ReactNode;
|
|
40
|
+
actions?: ReactNode;
|
|
41
|
+
}): import("react").JSX.Element;
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface SelectTourStep {
|
|
3
|
+
/** Seletor CSS do elemento que a parada destaca. */
|
|
4
|
+
target: string;
|
|
5
|
+
title: ReactNode;
|
|
6
|
+
body: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export interface SelectTourProps {
|
|
9
|
+
open: boolean;
|
|
10
|
+
steps: SelectTourStep[];
|
|
11
|
+
/** `done` = chegou ao fim; `skip` = pulou (botão ou Esc). */
|
|
12
|
+
onClose: (reason: 'done' | 'skip') => void;
|
|
13
|
+
labels?: {
|
|
14
|
+
skip?: string;
|
|
15
|
+
prev?: string;
|
|
16
|
+
next?: string;
|
|
17
|
+
done?: string;
|
|
18
|
+
};
|
|
19
|
+
theme?: 'light' | 'dark';
|
|
20
|
+
}
|
|
21
|
+
export declare function SelectTour({ open, steps, onClose, labels, theme }: SelectTourProps): import('react').ReactPortal | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -150,6 +150,10 @@ export { SelectAddCard } from './SelectAddCard';
|
|
|
150
150
|
export type { SelectAddCardProps } from './SelectAddCard';
|
|
151
151
|
export { SelectSteps } from './SelectSteps';
|
|
152
152
|
export type { SelectStepsProps, SelectStepItem } from './SelectSteps';
|
|
153
|
+
export { SelectSetupGuide, SelectSetupNext } from './SelectSetupGuide';
|
|
154
|
+
export type { SelectSetupGuideProps, SelectSetupGroup, SelectSetupStep, SelectSetupStepStatus } from './SelectSetupGuide';
|
|
155
|
+
export { SelectTour } from './SelectTour';
|
|
156
|
+
export type { SelectTourProps, SelectTourStep } from './SelectTour';
|
|
153
157
|
export { SelectPlanCard } from './SelectPlanCard';
|
|
154
158
|
export { SelectListCard, SelectListRow } from './SelectListCard';
|
|
155
159
|
export { SelectThumbnail } from './SelectThumbnail';
|