@selectwin/kit 0.1.126 → 0.1.128

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.
@@ -33,6 +33,12 @@ type SelectChoiceGridOwnProps = {
33
33
  loading?: boolean;
34
34
  /** Quantos esqueletos — o número de cards que VAI aparecer, para a grade não mudar de forma. */
35
35
  skeletonCount?: number;
36
+ /**
37
+ * No celular (≤ 40rem), a grade vira UMA lista numa caixa: cada card é uma linha — ícone, nome,
38
+ * a linha de apoio (o `meta`, ou a descrição quando não há meta), o selo e a chamada à direita
39
+ * (0.1.127). Para os "por onde começar" que no celular empurrariam o conteúdo da tela para baixo.
40
+ */
41
+ listOnPhone?: boolean;
36
42
  };
37
43
  export type SelectChoiceGridProps = SelectChoiceGridOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectChoiceGridOwnProps>;
38
44
  export declare const SelectChoiceGrid: import('react').ForwardRefExoticComponent<SelectChoiceGridOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectChoiceGridOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,20 @@
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ type SelectCodeBlockOwnProps = {
3
+ /** O texto, cru. */
4
+ value: string;
5
+ /** Uma linha acima do bloco ("Resposta do endpoint"). */
6
+ label?: ReactNode;
7
+ /** Indenta quando o texto é JSON válido; o resto passa como veio. */
8
+ pretty?: boolean;
9
+ /** Altura máxima (rem) antes de rolar. Padrão 14. */
10
+ maxHeight?: number;
11
+ /** Mostra o botão de copiar. Padrão true. */
12
+ copyable?: boolean;
13
+ /** `critical` = o bloco fica sobre um aviso vermelho (a resposta de uma falha). */
14
+ tone?: 'neutral' | 'critical';
15
+ };
16
+ export type SelectCodeBlockProps = SelectCodeBlockOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectCodeBlockOwnProps>;
17
+ /** JSON válido → indentado; qualquer outra coisa → como veio. */
18
+ export declare function prettyCode(raw: string): string;
19
+ export declare const SelectCodeBlock: import('react').ForwardRefExoticComponent<SelectCodeBlockOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectCodeBlockOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
20
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- export declare function SelectModal({ open, onClose, title, subtitle, children, footer, aside, size, showClose, noise, dividedHeader, backdrop, theme, }: {
2
+ export declare function SelectModal({ open, onClose, title, subtitle, children, footer, aside, size, showClose, noise, dividedHeader, backdrop, theme, placement, }: {
3
3
  open: boolean;
4
4
  onClose: () => void;
5
5
  title?: ReactNode;
@@ -17,4 +17,6 @@ export declare function SelectModal({ open, onClose, title, subtitle, children,
17
17
  * trás (queda do servidor): escurecer só não esconde, o conteúdo segue legível. */
18
18
  backdrop?: 'dim' | 'blur';
19
19
  theme?: 'light' | 'dark';
20
+ /** `side` = folha lateral à direita, na altura inteira (o detalhe de uma linha da lista). */
21
+ placement?: 'center' | 'side';
20
22
  }): import('react').ReactPortal | null;
package/dist/index.d.ts CHANGED
@@ -64,6 +64,8 @@ export { SelectTable, SelectTableRow, SelectTableCell, SelectTableEmpty, SelectU
64
64
  export { SelectMenu, SelectMenuItem, SelectMenuLink, SelectMenuHeading, SelectMenuDivider, SelectMenuButton } from './SelectMenu';
65
65
  export { SelectFilterChip } from './SelectFilterChip';
66
66
  export { SelectCopyRow } from './SelectCopyRow';
67
+ export { SelectCodeBlock, prettyCode } from './SelectCodeBlock';
68
+ export type { SelectCodeBlockProps } from './SelectCodeBlock';
67
69
  export { SelectCopyableId } from './SelectCopyableId';
68
70
  export type { SelectCopyableIdProps } from './SelectCopyableId';
69
71
  export { SelectCollapsible } from './SelectCollapsible';