@selectwin/kit 0.1.50 → 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.
@@ -0,0 +1,13 @@
1
+ import { ReactNode, ComponentPropsWithoutRef } from 'react';
2
+ type SelectAddCardOwnProps = {
3
+ /** Rótulo da ação, ex.: "Nova instalação". */
4
+ label: ReactNode;
5
+ /** Linha de apoio opcional, abaixo do rótulo. */
6
+ description?: ReactNode;
7
+ onClick?: () => void;
8
+ /** Troca o glifo central (padrão: um "+"). */
9
+ icon?: ReactNode;
10
+ };
11
+ export type SelectAddCardProps = SelectAddCardOwnProps & Omit<ComponentPropsWithoutRef<'button'>, keyof SelectAddCardOwnProps>;
12
+ export declare const SelectAddCard: import('react').ForwardRefExoticComponent<SelectAddCardOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, keyof SelectAddCardOwnProps> & import('react').RefAttributes<HTMLButtonElement>>;
13
+ export {};
@@ -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
@@ -140,7 +140,10 @@ export { SelectCombobox } from './SelectCombobox';
140
140
  export { SelectThemeSwitcher, resolveSelectTheme } from './SelectThemeSwitcher';
141
141
  export { SelectDetailList, SelectDetailRow } from './SelectDetail';
142
142
  export { SelectAddButton } from './SelectAddButton';
143
+ export { SelectAddCard } from './SelectAddCard';
144
+ export type { SelectAddCardProps } from './SelectAddCard';
143
145
  export { SelectSteps } from './SelectSteps';
146
+ export type { SelectStepsProps, SelectStepItem } from './SelectSteps';
144
147
  export { SelectPlanCard } from './SelectPlanCard';
145
148
  export { SelectListCard, SelectListRow } from './SelectListCard';
146
149
  export { SelectThumbnail } from './SelectThumbnail';