@selectwin/kit 0.1.52 → 0.1.54

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.
@@ -15,6 +15,27 @@ type SelectMenuItemOwnProps = {
15
15
  };
16
16
  export type SelectMenuItemProps = SelectMenuItemOwnProps & Omit<ComponentPropsWithoutRef<'button'>, keyof SelectMenuItemOwnProps>;
17
17
  export declare const SelectMenuItem: import('react').ForwardRefExoticComponent<SelectMenuItemOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, keyof SelectMenuItemOwnProps> & import('react').RefAttributes<HTMLButtonElement>>;
18
+ type SelectMenuLinkOwnProps = {
19
+ children: ReactNode;
20
+ /** Destino. Absoluto (https:, mailto:) → tratado como externo por padrão. */
21
+ href: string;
22
+ icon?: ReactNode;
23
+ /** Elemento à direita. Num item externo, default = a seta de "abre fora". */
24
+ trailing?: ReactNode;
25
+ /** Força/desliga o comportamento externo (nova aba + seta). */
26
+ external?: boolean;
27
+ tone?: 'default' | 'critical';
28
+ };
29
+ export type SelectMenuLinkProps = SelectMenuLinkOwnProps & Omit<ComponentPropsWithoutRef<'a'>, keyof SelectMenuLinkOwnProps>;
30
+ /** A linha de menu que é um LINK de verdade (<a>), não um botão com onClick: preserva
31
+ * clique do meio, "abrir em nova aba" e o URL na barra de status do browser — o que um
32
+ * menu de documentação/recursos precisa ter. */
33
+ export declare const SelectMenuLink: import('react').ForwardRefExoticComponent<SelectMenuLinkOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref">, keyof SelectMenuLinkOwnProps> & import('react').RefAttributes<HTMLAnchorElement>>;
34
+ /** Rótulo de grupo dentro do menu ("RECURSOS", "AJUDA"). Não é um item: não recebe foco
35
+ * nem role de menuitem. */
36
+ export declare function SelectMenuHeading({ children }: {
37
+ children: ReactNode;
38
+ }): import("react").JSX.Element;
18
39
  export declare function SelectMenuDivider(): import("react").JSX.Element;
19
40
  type SelectMenuButtonOwnProps = {
20
41
  children: ReactNode;
@@ -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/icons.d.ts CHANGED
@@ -30,6 +30,10 @@ export declare function SplitIcon(): import("react").JSX.Element;
30
30
  export declare function GlobeIcon(): import("react").JSX.Element;
31
31
  export declare function SelectorIcon(): import("react").JSX.Element;
32
32
  export declare function InfoIcon(): import("react").JSX.Element;
33
+ /** "?" circular — gatilho de AJUDA GLOBAL (menu de documentação/recursos no topo).
34
+ * Não confundir com o InfoIcon ("i"), que é ajuda CONTEXTUAL de um número (SelectInfoTip):
35
+ * o "i" explica ESTE dado, o "?" abre os recursos do produto. */
36
+ export declare function HelpIcon(): import("react").JSX.Element;
33
37
  export declare function WarningIcon(): import("react").JSX.Element;
34
38
  export declare function UserIcon(): import("react").JSX.Element;
35
39
  export declare function BellIcon(): import("react").JSX.Element;
package/dist/index.d.ts CHANGED
@@ -59,7 +59,7 @@ export { SelectTabs } from './SelectTabs';
59
59
  export { SelectSideNav } from './SelectSideNav';
60
60
  export { SelectSearchInput } from './SelectSearchInput';
61
61
  export { SelectTable, SelectTableRow, SelectTableCell, SelectTableEmpty, SelectUserCell } from './SelectTable';
62
- export { SelectMenu, SelectMenuItem, SelectMenuDivider, SelectMenuButton } from './SelectMenu';
62
+ export { SelectMenu, SelectMenuItem, SelectMenuLink, SelectMenuHeading, SelectMenuDivider, SelectMenuButton } from './SelectMenu';
63
63
  export { SelectFilterChip } from './SelectFilterChip';
64
64
  export { SelectCopyRow } from './SelectCopyRow';
65
65
  export { SelectCopyableId } from './SelectCopyableId';