@selectwin/kit 0.1.51 → 0.1.53
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/SelectSegmented.d.ts +3 -0
- package/dist/SelectSteps.d.ts +8 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1132 -1118
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -2,6 +2,9 @@ import { ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
|
2
2
|
export interface SegmentedOption {
|
|
3
3
|
value: string;
|
|
4
4
|
label: ReactNode;
|
|
5
|
+
/** Nome acessível quando o `label` é só um ícone — vira `aria-label` + `title`.
|
|
6
|
+
* Sem ele um segmento icon-only não tem nome nenhum para leitor de tela. */
|
|
7
|
+
title?: string;
|
|
5
8
|
}
|
|
6
9
|
type SelectSegmentedOwnProps = {
|
|
7
10
|
value: string;
|
package/dist/SelectSteps.d.ts
CHANGED
|
@@ -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:
|
|
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';
|