@selectwin/kit 0.1.183 → 0.1.185

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.
@@ -27,5 +27,12 @@ export interface SelectConversationBubbleProps {
27
27
  metaTone?: 'critical' | 'info';
28
28
  /** O texto. Sem texto (só um arquivo), o balão não é desenhado. */
29
29
  children?: ReactNode;
30
+ /**
31
+ * 0.1.184: a foto ou as iniciais de quem escreveu (`SelectAvatar`), ao lado da mensagem. Com ela, a mensagem vira a de
32
+ * uma linha do tempo (um chamado, um comentário): o nome em cima, em tamanho de texto, e o balão encostado no avatar.
33
+ */
34
+ avatar?: ReactNode;
35
+ /** 0.1.184: a hora ao lado do nome, em cima do balão ("Você · 26/10, 08:46"). */
36
+ time?: ReactNode;
30
37
  }
31
- export declare function SelectConversationBubble({ direction, author, label, attachment, meta, metaTone, children }: SelectConversationBubbleProps): import("react").JSX.Element;
38
+ export declare function SelectConversationBubble({ direction, author, label, attachment, meta, metaTone, children, avatar, time }: SelectConversationBubbleProps): import("react").JSX.Element;
@@ -0,0 +1,23 @@
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ export interface SelectDnsRecord {
3
+ /** CNAME, TXT, A… */
4
+ type: string;
5
+ /** O host do registro (o campo "Nome"/"Host"/"Name" do provedor). */
6
+ name: string;
7
+ /** O conteúdo (o campo "Valor"/"Aponta para"/"Content"). */
8
+ value: string;
9
+ /** Uma marca curta embaixo do tipo ("Esta conta"), quando um registro precisa se distinguir dos outros. */
10
+ tag?: ReactNode;
11
+ }
12
+ type SelectDnsRecordsOwnProps = {
13
+ records: SelectDnsRecord[];
14
+ /** Os cabeçalhos, se o produto chamar os campos de outro jeito. */
15
+ labels?: {
16
+ type?: string;
17
+ name?: string;
18
+ value?: string;
19
+ };
20
+ };
21
+ export type SelectDnsRecordsProps = SelectDnsRecordsOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectDnsRecordsOwnProps>;
22
+ export declare const SelectDnsRecords: import('react').ForwardRefExoticComponent<SelectDnsRecordsOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectDnsRecordsOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
23
+ export {};
@@ -0,0 +1,19 @@
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ /** `done` = feito · `todo` = falta o lojista agir · `wait` = esperando (nada a fazer agora) · `critical` = errado. */
3
+ export type SelectStripFactState = 'done' | 'todo' | 'wait' | 'critical';
4
+ export interface SelectStripFact {
5
+ /** O rótulo (fato) ou o nome do passo. */
6
+ label: ReactNode;
7
+ /** O valor (fato) ou a situação do passo. */
8
+ value?: ReactNode;
9
+ /** A cor do valor: o prazo vencido (`caution`), o que deu errado (`critical`), o que fechou (`success`). */
10
+ tone?: 'caution' | 'critical' | 'success';
11
+ /** Com estado, o item vira passo: a marca redonda antes, o nome em negrito e a situação embaixo. */
12
+ state?: SelectStripFactState;
13
+ }
14
+ type SelectFactStripOwnProps = {
15
+ items: SelectStripFact[];
16
+ };
17
+ export type SelectFactStripProps = SelectFactStripOwnProps & Omit<ComponentPropsWithoutRef<'dl'>, keyof SelectFactStripOwnProps>;
18
+ export declare const SelectFactStrip: import('react').ForwardRefExoticComponent<SelectFactStripOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDListElement>, HTMLDListElement>, "ref">, "items"> & import('react').RefAttributes<HTMLDListElement>>;
19
+ export {};
@@ -1,11 +1,13 @@
1
1
  import { ReactNode } from 'react';
2
- export declare function SelectModal({ open, onClose, eyebrow, title, subtitle, children, footer, aside, size, showClose, noise, dividedHeader, backdrop, theme, placement, headerAction, }: {
2
+ export declare function SelectModal({ open, onClose, eyebrow, title, subtitle, badge, children, footer, aside, size, showClose, noise, dividedHeader, backdrop, theme, placement, headerAction, flush, }: {
3
3
  open: boolean;
4
4
  onClose: () => void;
5
5
  /** Uma linha de contexto acima do título ("Passo a passo · ponto 1 de 5"). */
6
6
  eyebrow?: ReactNode;
7
7
  title?: ReactNode;
8
8
  subtitle?: ReactNode;
9
+ /** 0.1.184: o selo da situação (`SelectBadge`), na linha do subtítulo, antes dele ("Aberto · Chamado · Estorno"). */
10
+ badge?: ReactNode;
9
11
  children?: ReactNode;
10
12
  footer?: ReactNode;
11
13
  /** Left rail content — switches the modal to the wide split layout. */
@@ -26,4 +28,10 @@ export declare function SelectModal({ open, onClose, eyebrow, title, subtitle, c
26
28
  * estreita ele desce para baixo do título, na largura toda. Só no layout padrão (sem `aside`).
27
29
  */
28
30
  headerAction?: ReactNode;
31
+ /**
32
+ * O corpo sem respiro (0.1.184): cada filho é uma FAIXA de ponta a ponta, separada da seguinte por um traço — a
33
+ * faixa de fatos, a conversa, a caixa de responder. Cada faixa traz o próprio respiro (`SelectBox padding`); a
34
+ * `SelectFactStrip` já vem com o dela.
35
+ */
36
+ flush?: boolean;
29
37
  }): import('react').ReactPortal | null;
@@ -0,0 +1,26 @@
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ export interface SelectStatusPageMeta {
3
+ label: ReactNode;
4
+ /** O que aparece (mono). */
5
+ value: ReactNode;
6
+ /** O texto que o botão de copiar leva; sem ele, não há botão. */
7
+ copy?: string;
8
+ }
9
+ type SelectStatusPageOwnProps = {
10
+ /** O selo: "Erro 404", "Erro 500", "Sem acesso". */
11
+ badge: ReactNode;
12
+ /** A cor do selo. */
13
+ tone?: 'neutral' | 'info' | 'warning' | 'critical';
14
+ title: ReactNode;
15
+ /** Uma linha: o que aconteceu, em palavras de quem usa. */
16
+ description?: ReactNode;
17
+ /** Os botões (`SelectButton inline`): o principal primeiro. */
18
+ actions?: ReactNode;
19
+ /** A marca, em cima do card (o símbolo e o nome). */
20
+ brand?: ReactNode;
21
+ /** Os dados para o suporte, na faixa de baixo. */
22
+ meta?: SelectStatusPageMeta[];
23
+ };
24
+ export type SelectStatusPageProps = SelectStatusPageOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectStatusPageOwnProps | 'title'>;
25
+ export declare const SelectStatusPage: import('react').ForwardRefExoticComponent<SelectStatusPageOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectStatusPageOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
26
+ export {};
package/dist/index.d.ts CHANGED
@@ -95,6 +95,12 @@ export type { SelectMailEditorProps } from './SelectMailEditor';
95
95
  export type { SelectInboxProps, SelectInboxToolbarProps, SelectInboxEmptyProps, SelectMailboxStatusTone, SelectMailAddress, SelectMailListItemProps, SelectMailReaderProps, SelectMailMessageProps, SelectMailAttachmentProps, SelectMailAttachmentState, SelectMailComposerProps, SelectMailUploadProps, SelectMailUploadState, SelectRecipientInputProps, SelectTemplateMenuItem, SelectTemplateMenuProps, } from './SelectMail';
96
96
  export type { SelectKanbanColumn, SelectKanbanProps, SelectKanbanCardProps } from './SelectKanban';
97
97
  export { SelectModal } from './SelectModal';
98
+ export { SelectFactStrip } from './SelectFactStrip';
99
+ export type { SelectStripFact, SelectStripFactState, SelectFactStripProps } from './SelectFactStrip';
100
+ export { SelectDnsRecords } from './SelectDnsRecords';
101
+ export type { SelectDnsRecord, SelectDnsRecordsProps } from './SelectDnsRecords';
102
+ export { SelectStatusPage } from './SelectStatusPage';
103
+ export type { SelectStatusPageMeta, SelectStatusPageProps } from './SelectStatusPage';
98
104
  export { SelectPopover } from './SelectPopover';
99
105
  export { SelectActionList } from './SelectActionList';
100
106
  export { SelectTooltip } from './SelectTooltip';