@selectwin/kit 0.1.51 → 0.1.52

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.
@@ -1,10 +1,17 @@
1
1
  import { ComponentPropsWithoutRef } from 'react';
2
+ /** Um passo: só o rótulo, ou rótulo + descrição (a descrição só aparece na vertical). */
3
+ export type SelectStepItem = string | {
4
+ label: string;
5
+ description?: string;
6
+ };
2
7
  type SelectStepsOwnProps = {
3
- steps: string[];
8
+ steps: SelectStepItem[];
4
9
  /** Zero-based index of the active step. */
5
10
  current: number;
6
11
  /** Optional — makes already-completed steps clickable (go back). */
7
12
  onSelect?: (index: number) => void;
13
+ /** 'horizontal' (padrão) = barra; 'vertical' = trilha lateral com descrições. */
14
+ orientation?: 'horizontal' | 'vertical';
8
15
  };
9
16
  export type SelectStepsProps = SelectStepsOwnProps & Omit<ComponentPropsWithoutRef<'ol'>, keyof SelectStepsOwnProps>;
10
17
  export declare const SelectSteps: import('react').ForwardRefExoticComponent<SelectStepsOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref">, keyof SelectStepsOwnProps> & import('react').RefAttributes<HTMLOListElement>>;
package/dist/index.d.ts CHANGED
@@ -143,6 +143,7 @@ export { SelectAddButton } from './SelectAddButton';
143
143
  export { SelectAddCard } from './SelectAddCard';
144
144
  export type { SelectAddCardProps } from './SelectAddCard';
145
145
  export { SelectSteps } from './SelectSteps';
146
+ export type { SelectStepsProps, SelectStepItem } from './SelectSteps';
146
147
  export { SelectPlanCard } from './SelectPlanCard';
147
148
  export { SelectListCard, SelectListRow } from './SelectListCard';
148
149
  export { SelectThumbnail } from './SelectThumbnail';