@selectwin/kit 0.1.162 → 0.1.164

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.
@@ -0,0 +1,11 @@
1
+ export type SelectBrand = 'pipedrive' | 'rdstation' | 'hubspot';
2
+ /** O nome de cada marca — o rótulo para leitor de tela quando quem chama não passa outro. */
3
+ export declare const SELECT_BRAND_NAMES: Record<SelectBrand, string>;
4
+ export interface SelectBrandIconProps {
5
+ brand: SelectBrand;
6
+ /** Lado do quadrado, em px. */
7
+ size?: number;
8
+ /** O rótulo para leitor de tela; `null` esconde (quando o nome já está escrito ao lado). */
9
+ label?: string | null;
10
+ }
11
+ export declare function SelectBrandIcon({ brand, size, label }: SelectBrandIconProps): import("react").JSX.Element;
@@ -7,18 +7,25 @@ export interface SelectSetupStep {
7
7
  status: SelectSetupStepStatus;
8
8
  /** Lado direito da linha: selo de estado ou uma ação curta ("Pular", "Desfazer"). */
9
9
  trailing?: ReactNode;
10
+ /** A linha inteira vira botão e leva até a etapa (0.1.163). */
11
+ onSelect?: () => void;
10
12
  }
11
13
  export interface SelectSetupGroup {
12
14
  title: ReactNode;
13
15
  steps: SelectSetupStep[];
16
+ /** O título vira botão que recolhe e abre o grupo (0.1.163). */
17
+ collapsible?: boolean;
18
+ /** Começa recolhido (só com `collapsible`). */
19
+ defaultCollapsed?: boolean;
14
20
  }
15
21
  type SelectSetupGuideOwnProps = {
16
22
  title: ReactNode;
17
23
  description?: ReactNode;
18
- /** Quantas etapas contam e quantas já estão feitas — a barra e o "3 de 8". */
24
+ /** Quantas etapas contam e quantas já estão feitas — a barra e o "3 de 8" (`label` troca o texto). */
19
25
  progress?: {
20
26
  done: number;
21
27
  total: number;
28
+ label?: ReactNode;
22
29
  };
23
30
  /** Ações do guia na cabeça (minimizar, ocultar). */
24
31
  actions?: ReactNode;
@@ -18,4 +18,21 @@ export interface SelectTourProps {
18
18
  };
19
19
  theme?: 'light' | 'dark';
20
20
  }
21
+ interface Box {
22
+ top: number;
23
+ left: number;
24
+ width: number;
25
+ height: number;
26
+ }
27
+ type Side = 'right' | 'left' | 'bottom' | 'top' | 'sheet';
28
+ interface Pop {
29
+ top: number;
30
+ left: number;
31
+ side: Side;
32
+ /** Onde a seta encosta, ao longo da borda do balão. */
33
+ arrow?: number;
34
+ }
35
+ /** O lado do balão: o primeiro que cabe inteiro na tela sem cobrir o alvo. */
36
+ export declare function placePop(b: Box, pw: number, ph: number, vw: number, vh: number): Pop;
21
37
  export declare function SelectTour({ open, steps, onClose, labels, theme }: SelectTourProps): import('react').ReactPortal | null;
38
+ export {};
package/dist/index.d.ts CHANGED
@@ -28,6 +28,8 @@ export { SelectStatusBadge, SELECT_TRANSACTION_STATUS } from './SelectStatusBadg
28
28
  export { SelectActionMenu } from './SelectActionMenu';
29
29
  export { SelectPaymentBrand, SELECT_CARD_BRANDS, selectCardBrand, selectCardBrandLabel } from './SelectPaymentBrand';
30
30
  export type { SelectCardBrand } from './SelectPaymentBrand';
31
+ export { SelectBrandIcon, SELECT_BRAND_NAMES } from './SelectBrandIcon';
32
+ export type { SelectBrand, SelectBrandIconProps } from './SelectBrandIcon';
31
33
  export { SelectJsonViewer } from './SelectJsonViewer';
32
34
  export type { SelectJsonViewerProps } from './SelectJsonViewer';
33
35
  export { SelectTimeline } from './SelectTimeline';