@ishtar-sink/vega 0.0.0-stage → 0.2.0
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/LICENSE +661 -0
- package/README.md +135 -2
- package/dist/app-shell/app-shell.constants.d.ts +13 -0
- package/dist/app-shell/app-shell.d.ts +6 -0
- package/dist/app-shell/app-shell.types.d.ts +20 -0
- package/dist/app-shell/bottom-nav.d.ts +3 -0
- package/dist/app-shell/bottom-nav.types.d.ts +12 -0
- package/dist/app-shell/nav-link.d.ts +11 -0
- package/dist/app-shell/nav.types.d.ts +22 -0
- package/dist/app-shell/sidebar.d.ts +3 -0
- package/dist/app-shell/sidebar.types.d.ts +22 -0
- package/dist/app-shell/topbar.d.ts +3 -0
- package/dist/app-shell/topbar.types.d.ts +9 -0
- package/dist/app-shell/use-focus-trap.d.ts +6 -0
- package/dist/app-shell/use-media-query.d.ts +2 -0
- package/dist/autocomplete/autocomplete.d.ts +37 -0
- package/dist/badge/badge.d.ts +8 -0
- package/dist/bottom-sheet/bottom-sheet.constants.d.ts +3 -0
- package/dist/bottom-sheet/bottom-sheet.d.ts +3 -0
- package/dist/bottom-sheet/bottom-sheet.types.d.ts +26 -0
- package/dist/bottom-sheet/use-bottom-sheet.d.ts +14 -0
- package/dist/brand-logo/brand-logo.d.ts +9 -0
- package/dist/button/button.d.ts +15 -0
- package/dist/calendar/calendar.d.ts +28 -0
- package/dist/callout/callout.constants.d.ts +4 -0
- package/dist/callout/callout.d.ts +3 -0
- package/dist/callout/callout.types.d.ts +14 -0
- package/dist/card/card.d.ts +9 -0
- package/dist/card-link/card-button.d.ts +3 -0
- package/dist/card-link/card-link.d.ts +3 -0
- package/dist/card-link/card-link.types.d.ts +10 -0
- package/dist/checkbox/checkbox.d.ts +6 -0
- package/dist/color-field/color-field.d.ts +20 -0
- package/dist/color-field/color-picker.d.ts +42 -0
- package/dist/color-field/color.d.ts +11 -0
- package/dist/confirm-dialog/confirm-dialog.d.ts +15 -0
- package/dist/date-field/date-field.d.ts +38 -0
- package/dist/date-time-field/date-time-field.d.ts +33 -0
- package/dist/dialog/dialog.d.ts +21 -0
- package/dist/disclosure/accordion-context.d.ts +5 -0
- package/dist/disclosure/accordion.d.ts +3 -0
- package/dist/disclosure/disclosure.d.ts +3 -0
- package/dist/disclosure/disclosure.types.d.ts +24 -0
- package/dist/disclosure/use-disclosure.d.ts +22 -0
- package/dist/empty-state/empty-state.d.ts +10 -0
- package/dist/error-state/error-state.d.ts +12 -0
- package/dist/focus-header/focus-header.constants.d.ts +2 -0
- package/dist/focus-header/focus-header.d.ts +3 -0
- package/dist/focus-header/focus-header.types.d.ts +24 -0
- package/dist/form-layout/form-layout.d.ts +17 -0
- package/dist/icon-button/icon-button.d.ts +10 -0
- package/dist/icons/icon.d.ts +10 -0
- package/dist/icons/icon.types.d.ts +5 -0
- package/dist/icons/index.d.ts +4 -0
- package/dist/icons/interface-icons.d.ts +144 -0
- package/dist/icons/view-icons.d.ts +17 -0
- package/dist/index.d.ts +102 -0
- package/dist/index.js +3782 -0
- package/dist/item-swatch/item-swatch.d.ts +10 -0
- package/dist/item-swatch/palette.d.ts +6 -0
- package/dist/loading-state/loading-state.d.ts +13 -0
- package/dist/menu-button/menu-button.d.ts +26 -0
- package/dist/money-field/money-field.d.ts +13 -0
- package/dist/money-field/money-mask.d.ts +6 -0
- package/dist/page-header/page-header.d.ts +20 -0
- package/dist/period-field/period-field.d.ts +47 -0
- package/dist/period-field/period.d.ts +31 -0
- package/dist/progress-bar/progress-bar.d.ts +14 -0
- package/dist/prose/index.d.ts +2 -0
- package/dist/prose/prose.constants.d.ts +2 -0
- package/dist/prose/prose.d.ts +2 -0
- package/dist/prose/prose.types.d.ts +23 -0
- package/dist/prose/prose.utils.d.ts +4 -0
- package/dist/prose.js +91 -0
- package/dist/radio-group/radio-group.constants.d.ts +4 -0
- package/dist/radio-group/radio-group.d.ts +2 -0
- package/dist/radio-group/radio-group.types.d.ts +41 -0
- package/dist/radio-group/radio-option.d.ts +12 -0
- package/dist/segmented-field/segmented-field.d.ts +24 -0
- package/dist/select-field/select-field.d.ts +24 -0
- package/dist/style.css +2 -0
- package/dist/switch/switch.d.ts +3 -0
- package/dist/switch/switch.types.d.ts +11 -0
- package/dist/tabs/tabs.d.ts +19 -0
- package/dist/tag-field/tag-field.d.ts +20 -0
- package/dist/text-area-field/text-area-field.d.ts +2 -0
- package/dist/text-area-field/text-area-field.types.d.ts +17 -0
- package/dist/text-area-field/use-auto-resize.d.ts +7 -0
- package/dist/text-field/text-field.d.ts +10 -0
- package/dist/theme/contrast.d.ts +16 -0
- package/dist/theme/index.d.ts +5 -0
- package/dist/theme/theme.d.ts +15 -0
- package/dist/theme/tokens.d.ts +138 -0
- package/dist/time-field/parse-time.d.ts +4 -0
- package/dist/time-field/time-field.d.ts +20 -0
- package/dist/toast/toast.d.ts +11 -0
- package/dist/tokens.css +166 -0
- package/dist/toolbar/toolbar.d.ts +16 -0
- package/dist/view-switcher/view-switcher.d.ts +19 -0
- package/fonts/OFL-Inter.txt +92 -0
- package/fonts/OFL-Outfit.txt +93 -0
- package/fonts/inter-variable.woff2 +0 -0
- package/fonts/outfit-variable.ttf +0 -0
- package/package.json +78 -4
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
export interface DateFieldLabels {
|
|
3
|
+
/** Texto do gatilho sem data. */
|
|
4
|
+
placeholder: string;
|
|
5
|
+
/** Botão que escolhe o dia atual. */
|
|
6
|
+
today: string;
|
|
7
|
+
/** Botão que limpa a data. */
|
|
8
|
+
clear: string;
|
|
9
|
+
/** Nome do botão do mês anterior. */
|
|
10
|
+
previous: string;
|
|
11
|
+
/** Nome do botão do próximo mês. */
|
|
12
|
+
next: string;
|
|
13
|
+
/** Sufixo do dia atual no nome acessível. */
|
|
14
|
+
todayMarker: string;
|
|
15
|
+
}
|
|
16
|
+
export interface DateFieldProps extends Omit<ComponentPropsWithRef<'button'>, 'onChange' | 'onBlur' | 'value' | 'defaultValue' | 'children' | 'type'> {
|
|
17
|
+
/** Rótulo visível do campo. */
|
|
18
|
+
label: string;
|
|
19
|
+
/** Data no formato `YYYY-MM-DD`, ou `''` quando vazia. */
|
|
20
|
+
value: string;
|
|
21
|
+
/** Chamado com a data escolhida (`YYYY-MM-DD`) ou `''` ao limpar. */
|
|
22
|
+
onChange: (value: string) => void;
|
|
23
|
+
/** Chamado quando o calendário fecha por clique fora, sem escolher. */
|
|
24
|
+
onBlur?: () => void;
|
|
25
|
+
/** Locale das datas. Padrão: `pt-BR`. */
|
|
26
|
+
locale?: string;
|
|
27
|
+
/** Textos do campo; o que faltar usa o padrão em pt-br, qualquer que seja o `locale`. */
|
|
28
|
+
labels?: Partial<DateFieldLabels>;
|
|
29
|
+
/** Dia atual (`YYYY-MM-DD`); padrão: a data do navegador, lida só quando a prop falta. */
|
|
30
|
+
today?: string;
|
|
31
|
+
/** Esconde o rótulo visualmente, mantendo-o para leitores de tela. */
|
|
32
|
+
hideLabel?: boolean;
|
|
33
|
+
/** Texto de ajuda abaixo do campo. */
|
|
34
|
+
help?: string;
|
|
35
|
+
/** Mensagem de erro; aparece com `role="alert"` e marca o campo como inválido. */
|
|
36
|
+
error?: string;
|
|
37
|
+
}
|
|
38
|
+
export declare function DateField({ label, value, onChange, onBlur, locale, labels, today, hideLabel, help, error, id, className, style, ref, ...rest }: DateFieldProps): import('react').JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { DateFieldLabels } from '../date-field/date-field';
|
|
3
|
+
export interface DateTimeFieldLabels extends DateFieldLabels {
|
|
4
|
+
/** Nome do campo de data. Padrão: `"<label>: data"`. */
|
|
5
|
+
date: string;
|
|
6
|
+
/** Nome do campo de hora. Padrão: `"<label>: hora (24 horas)"`. */
|
|
7
|
+
time: string;
|
|
8
|
+
/** Texto de exemplo do campo de hora. Padrão: `hh:mm`. */
|
|
9
|
+
timePlaceholder: string;
|
|
10
|
+
}
|
|
11
|
+
export interface DateTimeFieldProps extends Omit<ComponentPropsWithRef<'fieldset'>, 'onChange' | 'onBlur' | 'defaultValue' | 'disabled'> {
|
|
12
|
+
/** Título do grupo; também deriva os nomes das duas partes. */
|
|
13
|
+
label: string;
|
|
14
|
+
/** Data e hora no formato `YYYY-MM-DDTHH:mm`, ou `''` quando vazia. */
|
|
15
|
+
value: string;
|
|
16
|
+
/** Chamado com `YYYY-MM-DDTHH:mm`, ou `''` enquanto falta uma das partes. */
|
|
17
|
+
onChange: (value: string) => void;
|
|
18
|
+
/** Chamado quando uma das partes perde o foco. */
|
|
19
|
+
onBlur?: () => void;
|
|
20
|
+
/** Locale das datas. Padrão: `pt-BR`. */
|
|
21
|
+
locale?: string;
|
|
22
|
+
/** Textos do campo; o que faltar usa o padrão em pt-br, qualquer que seja o `locale`. */
|
|
23
|
+
labels?: Partial<DateTimeFieldLabels>;
|
|
24
|
+
/** Dia atual (`YYYY-MM-DD`); padrão: a data do navegador. */
|
|
25
|
+
today?: string;
|
|
26
|
+
/** Desabilita as duas partes. */
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
/** Texto de ajuda abaixo do campo. */
|
|
29
|
+
help?: string;
|
|
30
|
+
/** Mensagem de erro; aparece com `role="alert"` no campo de data. */
|
|
31
|
+
error?: string;
|
|
32
|
+
}
|
|
33
|
+
export declare function DateTimeField({ label, value, onChange, onBlur, locale, labels, today, disabled, help, error, className, ...rest }: DateTimeFieldProps): import('react').JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
export interface DialogProps extends Omit<ComponentPropsWithRef<'dialog'>, 'title' | 'open' | 'onClose' | 'role' | 'children'> {
|
|
3
|
+
/** Abre o diálogo como modal (`showModal()`); ao ficar `false`, fecha e devolve o foco. */
|
|
4
|
+
open: boolean;
|
|
5
|
+
/** Título do diálogo, lido como nome acessível. */
|
|
6
|
+
title: string;
|
|
7
|
+
/** Chamado no Esc, no `cancel` nativo e no clique no fundo (se `closeOnBackdrop`). */
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
/** Conteúdo do corpo. */
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
/** Ações do rodapé. */
|
|
12
|
+
actions: ReactNode;
|
|
13
|
+
/** Papel ARIA. Padrão: `dialog`. */
|
|
14
|
+
role?: 'dialog' | 'alertdialog';
|
|
15
|
+
/** Largura máxima. Padrão: `default`. */
|
|
16
|
+
size?: 'default' | 'wide';
|
|
17
|
+
/** Chama `onClose` ao clicar no fundo. Padrão: `false`. */
|
|
18
|
+
closeOnBackdrop?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/** Diálogo modal genérico: corpo, ações no rodapé, foco preso e Esc entregue ao `onClose`. */
|
|
21
|
+
export declare function Dialog({ open, title, onClose, children, actions, role, size, closeOnBackdrop, 'aria-describedby': describedBy, className, ref, ...rest }: DialogProps): import('react').JSX.Element | null;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DisclosureProps } from './disclosure.types';
|
|
2
|
+
/** Seção recolhível sobre `<details>` e `<summary>` nativos. */
|
|
3
|
+
export declare function Disclosure({ title, icon, open, defaultOpen, onOpenChange, tone, className, children, ...rest }: DisclosureProps): import('react').JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
export type DisclosureTone = 'default' | 'accent' | 'warning' | 'info';
|
|
3
|
+
export interface DisclosureProps extends Omit<ComponentPropsWithRef<'details'>, 'title' | 'open' | 'onToggle'> {
|
|
4
|
+
/** Título, exibido no resumo e lido como nome acessível. */
|
|
5
|
+
title: ReactNode;
|
|
6
|
+
/** Ícone decorativo antes do título. */
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
/** Estado aberto. Quando definido, o componente é controlado. */
|
|
9
|
+
open?: boolean;
|
|
10
|
+
/** Estado inicial quando não controlado. Padrão: `false`. */
|
|
11
|
+
defaultOpen?: boolean;
|
|
12
|
+
/** Chamado com o novo estado; no modo controlado, o pai decide se muda `open`. */
|
|
13
|
+
onOpenChange?: (open: boolean) => void;
|
|
14
|
+
/** Tom do fundo, do título e do ícone. Padrão: `default`. */
|
|
15
|
+
tone?: DisclosureTone;
|
|
16
|
+
}
|
|
17
|
+
export interface AccordionProps extends ComponentPropsWithRef<'div'> {
|
|
18
|
+
/**
|
|
19
|
+
* `single` mantém só um `Disclosure` aberto (use-os não controlados); `multiple` os deixa
|
|
20
|
+
* independentes. Padrão: `multiple`.
|
|
21
|
+
*/
|
|
22
|
+
type?: 'single' | 'multiple';
|
|
23
|
+
children: ReactNode;
|
|
24
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { KeyboardEvent, MouseEvent, SyntheticEvent } from 'react';
|
|
2
|
+
interface Options {
|
|
3
|
+
open?: boolean;
|
|
4
|
+
defaultOpen?: boolean;
|
|
5
|
+
onOpenChange?: (open: boolean) => void;
|
|
6
|
+
}
|
|
7
|
+
/** Estado controlado ou não do `<details>`, teclado do resumo e aviso ao `Accordion`. */
|
|
8
|
+
export declare function useDisclosure({ open, defaultOpen, onOpenChange }: Options): {
|
|
9
|
+
detailsProps: {
|
|
10
|
+
open: true | undefined;
|
|
11
|
+
onToggle: (event: SyntheticEvent<HTMLDetailsElement>) => void;
|
|
12
|
+
} | {
|
|
13
|
+
open: boolean;
|
|
14
|
+
onToggle?: undefined;
|
|
15
|
+
};
|
|
16
|
+
summaryProps: {
|
|
17
|
+
onClick: (event: MouseEvent<HTMLElement>) => void;
|
|
18
|
+
onKeyDown: (event: KeyboardEvent<HTMLElement>) => void;
|
|
19
|
+
};
|
|
20
|
+
accordion: import('./accordion-context').AccordionContextValue | null;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
export interface EmptyStateProps extends Omit<ComponentPropsWithRef<'div'>, 'title'> {
|
|
3
|
+
/** Título do estado vazio. */
|
|
4
|
+
title: string;
|
|
5
|
+
/** Explicação do que fazer ou do porquê de estar vazio. */
|
|
6
|
+
description: string;
|
|
7
|
+
/** Ação principal, como um botão ou link para criar o primeiro item. */
|
|
8
|
+
action?: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare function EmptyState({ title, description, action, className, style, ...rest }: EmptyStateProps): import('react').JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
export interface ErrorStateProps extends Omit<ComponentPropsWithRef<'div'>, 'title'> {
|
|
3
|
+
/** Título do erro. */
|
|
4
|
+
title?: string;
|
|
5
|
+
/** Explicação opcional do que aconteceu. */
|
|
6
|
+
description?: string;
|
|
7
|
+
/** Texto do botão de nova tentativa. */
|
|
8
|
+
retryLabel?: string;
|
|
9
|
+
/** Ação de nova tentativa; o botão só aparece quando ela existe. */
|
|
10
|
+
onRetry?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function ErrorState({ title, description, retryLabel, onRetry, className, style, ...rest }: ErrorStateProps): import('react').JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { FocusHeaderProps } from './focus-header.types';
|
|
2
|
+
export type { FocusHeaderProps, FocusHeaderLabels } from './focus-header.types';
|
|
3
|
+
export declare function FocusHeader({ title, onExit, position, progress, labels, className, ...rest }: FocusHeaderProps): import('react').JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
export interface FocusHeaderLabels {
|
|
3
|
+
/** Nome acessível do botão de sair. Padrão: `Sair`. */
|
|
4
|
+
exit: string;
|
|
5
|
+
}
|
|
6
|
+
export interface FocusHeaderProps extends Omit<ComponentPropsWithRef<'header'>, 'title'> {
|
|
7
|
+
/** Título do fluxo, exibido como `h1` em uma linha. */
|
|
8
|
+
title: string;
|
|
9
|
+
/** Chamado quando a pessoa aciona o botão de sair. */
|
|
10
|
+
onExit: () => void;
|
|
11
|
+
/** Posição no fluxo, em texto livre (ex.: `3/8`). */
|
|
12
|
+
position?: string;
|
|
13
|
+
/** Progresso do fluxo; sem ele a barra não aparece. */
|
|
14
|
+
progress?: {
|
|
15
|
+
/** Valor atual. */
|
|
16
|
+
value: number;
|
|
17
|
+
/** Valor que representa 100%. */
|
|
18
|
+
max: number;
|
|
19
|
+
/** Nome acessível da barra. */
|
|
20
|
+
label: string;
|
|
21
|
+
};
|
|
22
|
+
/** Textos sobrescrevíveis, com padrão em pt-br. */
|
|
23
|
+
labels?: Partial<FocusHeaderLabels>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
export type FormGridProps = ComponentPropsWithRef<'div'>;
|
|
3
|
+
/** Grade do formulário; um filho com `data-span="full"` ocupa a linha inteira. */
|
|
4
|
+
export declare function FormGrid({ className, ...rest }: FormGridProps): import('react').JSX.Element;
|
|
5
|
+
export interface FormActionsProps extends ComponentPropsWithRef<'div'> {
|
|
6
|
+
/** Texto do botão de cancelar. Padrão: `Cancelar`. */
|
|
7
|
+
cancelLabel?: string;
|
|
8
|
+
/** Texto do botão de enviar. Padrão: `Salvar`. */
|
|
9
|
+
submitLabel?: string;
|
|
10
|
+
/** Chamado ao cancelar. */
|
|
11
|
+
onCancel: () => void;
|
|
12
|
+
/** Mostra o carregamento no botão de enviar e bloqueia o clique. */
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
/** Desabilita o botão de enviar. */
|
|
15
|
+
submitDisabled?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare function FormActions({ cancelLabel, submitLabel, onCancel, loading, submitDisabled, className, ...rest }: FormActionsProps): import('react').JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
export interface IconButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children' | 'aria-label'> {
|
|
3
|
+
/** Nome acessível: obrigatório, porque o botão não tem texto. */
|
|
4
|
+
'aria-label': string;
|
|
5
|
+
/** Ícone em SVG inline; fica dentro de um `<span aria-hidden="true">`. */
|
|
6
|
+
icon: ReactNode;
|
|
7
|
+
/** Padrão: `ghost`. */
|
|
8
|
+
variant?: 'ghost' | 'secondary';
|
|
9
|
+
}
|
|
10
|
+
export declare function IconButton({ icon, variant, type, className, ...rest }: IconButtonProps): import('react').JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LucideIcon } from 'lucide-react';
|
|
2
|
+
import { IconProps } from './icon.types';
|
|
3
|
+
/**
|
|
4
|
+
* Embrulha um ícone do `lucide-react` com os padrões da Vega: traço `currentColor`
|
|
5
|
+
* de espessura 2 e tamanho 20.
|
|
6
|
+
*/
|
|
7
|
+
export declare function createIcon(Lucide: LucideIcon, displayName: string): {
|
|
8
|
+
({ size, ...rest }: IconProps): import('react').JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { ListIcon, GridIcon, ShelfIcon, TableIcon, DayIcon, TimelineIcon } from './view-icons';
|
|
2
|
+
export type { ViewIconProps } from './view-icons';
|
|
3
|
+
export { HomeIcon, BookOpenIcon, LayersIcon, TimerIcon, UsersIcon, MenuIcon, ChevronLeftIcon, ChevronRightIcon, ChevronDownIcon, ArrowLeftIcon, CloseIcon, PlusIcon, MinusIcon, DownloadIcon, UploadIcon, FlagIcon, RefreshIcon, EyeIcon, CheckIcon, CircleCheckIcon, InfoIcon, AlertTriangleIcon, CircleAlertIcon, WifiOffIcon, CloudCheckIcon, UserIcon, SettingsIcon, LogOutIcon, SunIcon, MoonIcon, LightbulbIcon, ClockIcon, CalendarIcon, PencilIcon, SearchIcon, TrashIcon, } from './interface-icons';
|
|
4
|
+
export type { IconProps } from './icon.types';
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
export declare const HomeIcon: {
|
|
2
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
3
|
+
displayName: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const BookOpenIcon: {
|
|
6
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const LayersIcon: {
|
|
10
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const TimerIcon: {
|
|
14
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const UsersIcon: {
|
|
18
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
19
|
+
displayName: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const MenuIcon: {
|
|
22
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
23
|
+
displayName: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const ChevronLeftIcon: {
|
|
26
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
27
|
+
displayName: string;
|
|
28
|
+
};
|
|
29
|
+
export declare const ChevronRightIcon: {
|
|
30
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
31
|
+
displayName: string;
|
|
32
|
+
};
|
|
33
|
+
export declare const ChevronDownIcon: {
|
|
34
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
35
|
+
displayName: string;
|
|
36
|
+
};
|
|
37
|
+
export declare const ArrowLeftIcon: {
|
|
38
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
39
|
+
displayName: string;
|
|
40
|
+
};
|
|
41
|
+
export declare const CloseIcon: {
|
|
42
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
43
|
+
displayName: string;
|
|
44
|
+
};
|
|
45
|
+
export declare const PlusIcon: {
|
|
46
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
47
|
+
displayName: string;
|
|
48
|
+
};
|
|
49
|
+
export declare const MinusIcon: {
|
|
50
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
51
|
+
displayName: string;
|
|
52
|
+
};
|
|
53
|
+
export declare const DownloadIcon: {
|
|
54
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
55
|
+
displayName: string;
|
|
56
|
+
};
|
|
57
|
+
export declare const UploadIcon: {
|
|
58
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
59
|
+
displayName: string;
|
|
60
|
+
};
|
|
61
|
+
export declare const FlagIcon: {
|
|
62
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
63
|
+
displayName: string;
|
|
64
|
+
};
|
|
65
|
+
export declare const RefreshIcon: {
|
|
66
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
67
|
+
displayName: string;
|
|
68
|
+
};
|
|
69
|
+
export declare const EyeIcon: {
|
|
70
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
71
|
+
displayName: string;
|
|
72
|
+
};
|
|
73
|
+
export declare const CheckIcon: {
|
|
74
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
75
|
+
displayName: string;
|
|
76
|
+
};
|
|
77
|
+
export declare const CircleCheckIcon: {
|
|
78
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
79
|
+
displayName: string;
|
|
80
|
+
};
|
|
81
|
+
export declare const InfoIcon: {
|
|
82
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
83
|
+
displayName: string;
|
|
84
|
+
};
|
|
85
|
+
export declare const AlertTriangleIcon: {
|
|
86
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
87
|
+
displayName: string;
|
|
88
|
+
};
|
|
89
|
+
export declare const CircleAlertIcon: {
|
|
90
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
91
|
+
displayName: string;
|
|
92
|
+
};
|
|
93
|
+
export declare const WifiOffIcon: {
|
|
94
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
95
|
+
displayName: string;
|
|
96
|
+
};
|
|
97
|
+
export declare const CloudCheckIcon: {
|
|
98
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
99
|
+
displayName: string;
|
|
100
|
+
};
|
|
101
|
+
export declare const UserIcon: {
|
|
102
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
103
|
+
displayName: string;
|
|
104
|
+
};
|
|
105
|
+
export declare const SettingsIcon: {
|
|
106
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
107
|
+
displayName: string;
|
|
108
|
+
};
|
|
109
|
+
export declare const LogOutIcon: {
|
|
110
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
111
|
+
displayName: string;
|
|
112
|
+
};
|
|
113
|
+
export declare const SunIcon: {
|
|
114
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
115
|
+
displayName: string;
|
|
116
|
+
};
|
|
117
|
+
export declare const MoonIcon: {
|
|
118
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
119
|
+
displayName: string;
|
|
120
|
+
};
|
|
121
|
+
export declare const LightbulbIcon: {
|
|
122
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
123
|
+
displayName: string;
|
|
124
|
+
};
|
|
125
|
+
export declare const ClockIcon: {
|
|
126
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
127
|
+
displayName: string;
|
|
128
|
+
};
|
|
129
|
+
export declare const CalendarIcon: {
|
|
130
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
131
|
+
displayName: string;
|
|
132
|
+
};
|
|
133
|
+
export declare const PencilIcon: {
|
|
134
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
135
|
+
displayName: string;
|
|
136
|
+
};
|
|
137
|
+
export declare const SearchIcon: {
|
|
138
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
139
|
+
displayName: string;
|
|
140
|
+
};
|
|
141
|
+
export declare const TrashIcon: {
|
|
142
|
+
({ size, ...rest }: import('./icon.types').IconProps): import('react').JSX.Element;
|
|
143
|
+
displayName: string;
|
|
144
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
export interface ViewIconProps extends Omit<ComponentPropsWithRef<'svg'>, 'children'> {
|
|
3
|
+
/** Lado do ícone em pixels. Padrão: 18. */
|
|
4
|
+
size?: number;
|
|
5
|
+
}
|
|
6
|
+
/** Visualização em lista. */
|
|
7
|
+
export declare function ListIcon(props: ViewIconProps): import('react').JSX.Element;
|
|
8
|
+
/** Visualização em grade. */
|
|
9
|
+
export declare function GridIcon(props: ViewIconProps): import('react').JSX.Element;
|
|
10
|
+
/** Visualização em estante. */
|
|
11
|
+
export declare function ShelfIcon(props: ViewIconProps): import('react').JSX.Element;
|
|
12
|
+
/** Visualização em tabela. */
|
|
13
|
+
export declare function TableIcon(props: ViewIconProps): import('react').JSX.Element;
|
|
14
|
+
/** Visualização por dia. */
|
|
15
|
+
export declare function DayIcon(props: ViewIconProps): import('react').JSX.Element;
|
|
16
|
+
/** Visualização em linha do tempo. */
|
|
17
|
+
export declare function TimelineIcon(props: ViewIconProps): import('react').JSX.Element;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export { Button } from './button/button';
|
|
2
|
+
export type { ButtonProps, ButtonVariant } from './button/button';
|
|
3
|
+
export { IconButton } from './icon-button/icon-button';
|
|
4
|
+
export type { IconButtonProps } from './icon-button/icon-button';
|
|
5
|
+
export { MenuButton } from './menu-button/menu-button';
|
|
6
|
+
export type { MenuButtonProps, MenuItem } from './menu-button/menu-button';
|
|
7
|
+
export { TextField } from './text-field/text-field';
|
|
8
|
+
export type { TextFieldProps } from './text-field/text-field';
|
|
9
|
+
export { SelectField } from './select-field/select-field';
|
|
10
|
+
export type { SelectFieldProps } from './select-field/select-field';
|
|
11
|
+
export { Checkbox } from './checkbox/checkbox';
|
|
12
|
+
export type { CheckboxProps } from './checkbox/checkbox';
|
|
13
|
+
export { SegmentedField } from './segmented-field/segmented-field';
|
|
14
|
+
export type { SegmentedFieldProps, SegmentedOption } from './segmented-field/segmented-field';
|
|
15
|
+
export { Autocomplete } from './autocomplete/autocomplete';
|
|
16
|
+
export type { AutocompleteProps, AutocompleteOption, AutocompleteSingleProps, AutocompleteMultipleProps, } from './autocomplete/autocomplete';
|
|
17
|
+
export { TagField } from './tag-field/tag-field';
|
|
18
|
+
export type { TagFieldProps } from './tag-field/tag-field';
|
|
19
|
+
export { ColorField } from './color-field/color-field';
|
|
20
|
+
export type { ColorFieldProps } from './color-field/color-field';
|
|
21
|
+
export { ColorPicker, DEFAULT_COLOR_FIELD_LABELS } from './color-field/color-picker';
|
|
22
|
+
export type { ColorFieldLabels, ColorPickerProps } from './color-field/color-picker';
|
|
23
|
+
export { hexToRgb, rgbToHex, hslToRgb, rgbToHsl } from './color-field/color';
|
|
24
|
+
export { Calendar } from './calendar/calendar';
|
|
25
|
+
export type { CalendarProps, CalendarValue, CalendarLabels } from './calendar/calendar';
|
|
26
|
+
export { DateField } from './date-field/date-field';
|
|
27
|
+
export type { DateFieldProps, DateFieldLabels } from './date-field/date-field';
|
|
28
|
+
export { TimeField } from './time-field/time-field';
|
|
29
|
+
export type { TimeFieldProps } from './time-field/time-field';
|
|
30
|
+
export { DateTimeField } from './date-time-field/date-time-field';
|
|
31
|
+
export type { DateTimeFieldProps, DateTimeFieldLabels } from './date-time-field/date-time-field';
|
|
32
|
+
export { PeriodField } from './period-field/period-field';
|
|
33
|
+
export type { PeriodFieldProps, PeriodFieldLabels } from './period-field/period-field';
|
|
34
|
+
export { parseTime, maskTime } from './time-field/parse-time';
|
|
35
|
+
export { resolvePeriod } from './period-field/period';
|
|
36
|
+
export type { PeriodPreset, PeriodRule, PeriodValue, PeriodRange } from './period-field/period';
|
|
37
|
+
export { MoneyField } from './money-field/money-field';
|
|
38
|
+
export type { MoneyFieldProps } from './money-field/money-field';
|
|
39
|
+
export { maskMoneyInput, parseMoneyInput, formatCents } from './money-field/money-mask';
|
|
40
|
+
export { Card } from './card/card';
|
|
41
|
+
export type { CardProps, CardTone } from './card/card';
|
|
42
|
+
export { PageHeader } from './page-header/page-header';
|
|
43
|
+
export type { PageHeaderProps } from './page-header/page-header';
|
|
44
|
+
export { Toolbar } from './toolbar/toolbar';
|
|
45
|
+
export type { ToolbarProps } from './toolbar/toolbar';
|
|
46
|
+
export { Tabs } from './tabs/tabs';
|
|
47
|
+
export type { TabItem, TabsProps } from './tabs/tabs';
|
|
48
|
+
export { ViewSwitcher } from './view-switcher/view-switcher';
|
|
49
|
+
export type { ViewOption, ViewSwitcherProps } from './view-switcher/view-switcher';
|
|
50
|
+
export { FormGrid, FormActions } from './form-layout/form-layout';
|
|
51
|
+
export type { FormGridProps, FormActionsProps } from './form-layout/form-layout';
|
|
52
|
+
export { Dialog } from './dialog/dialog';
|
|
53
|
+
export type { DialogProps } from './dialog/dialog';
|
|
54
|
+
export { ConfirmDialog } from './confirm-dialog/confirm-dialog';
|
|
55
|
+
export type { ConfirmDialogProps } from './confirm-dialog/confirm-dialog';
|
|
56
|
+
export { Toast, ToastRegion } from './toast/toast';
|
|
57
|
+
export type { ToastProps, ToastTone } from './toast/toast';
|
|
58
|
+
export { EmptyState } from './empty-state/empty-state';
|
|
59
|
+
export type { EmptyStateProps } from './empty-state/empty-state';
|
|
60
|
+
export { LoadingState, Skeleton } from './loading-state/loading-state';
|
|
61
|
+
export type { LoadingStateProps, SkeletonProps } from './loading-state/loading-state';
|
|
62
|
+
export { ErrorState } from './error-state/error-state';
|
|
63
|
+
export type { ErrorStateProps } from './error-state/error-state';
|
|
64
|
+
export { ProgressBar } from './progress-bar/progress-bar';
|
|
65
|
+
export type { ProgressBarProps } from './progress-bar/progress-bar';
|
|
66
|
+
export { BrandLogo } from './brand-logo/brand-logo';
|
|
67
|
+
export type { BrandLogoProps } from './brand-logo/brand-logo';
|
|
68
|
+
export { Badge } from './badge/badge';
|
|
69
|
+
export type { BadgeProps, BadgeTone } from './badge/badge';
|
|
70
|
+
export { ItemSwatch } from './item-swatch/item-swatch';
|
|
71
|
+
export type { ItemSwatchProps } from './item-swatch/item-swatch';
|
|
72
|
+
export { ListIcon, GridIcon, ShelfIcon, TableIcon, DayIcon, TimelineIcon, HomeIcon, BookOpenIcon, LayersIcon, TimerIcon, UsersIcon, MenuIcon, ChevronLeftIcon, ChevronRightIcon, ChevronDownIcon, ArrowLeftIcon, CloseIcon, PlusIcon, MinusIcon, DownloadIcon, UploadIcon, FlagIcon, RefreshIcon, EyeIcon, CheckIcon, CircleCheckIcon, InfoIcon, AlertTriangleIcon, CircleAlertIcon, WifiOffIcon, CloudCheckIcon, UserIcon, SettingsIcon, LogOutIcon, SunIcon, MoonIcon, LightbulbIcon, ClockIcon, CalendarIcon, PencilIcon, SearchIcon, TrashIcon, } from './icons';
|
|
73
|
+
export type { ViewIconProps, IconProps } from './icons';
|
|
74
|
+
export { Switch } from './switch/switch';
|
|
75
|
+
export type { SwitchProps } from './switch/switch.types';
|
|
76
|
+
export { RadioGroup } from './radio-group/radio-group';
|
|
77
|
+
export type { RadioOption, RadioGroupProps } from './radio-group/radio-group.types';
|
|
78
|
+
export { TextAreaField } from './text-area-field/text-area-field';
|
|
79
|
+
export type { TextAreaFieldProps } from './text-area-field/text-area-field.types';
|
|
80
|
+
export { Disclosure } from './disclosure/disclosure';
|
|
81
|
+
export { Accordion } from './disclosure/accordion';
|
|
82
|
+
export type { DisclosureProps, AccordionProps } from './disclosure/disclosure.types';
|
|
83
|
+
export { Callout } from './callout/callout';
|
|
84
|
+
export type { CalloutProps } from './callout/callout.types';
|
|
85
|
+
export { BottomSheet } from './bottom-sheet/bottom-sheet';
|
|
86
|
+
export type { BottomSheetProps } from './bottom-sheet/bottom-sheet.types';
|
|
87
|
+
export { CardLink } from './card-link/card-link';
|
|
88
|
+
export { CardButton } from './card-link/card-button';
|
|
89
|
+
export type { CardLinkProps, CardButtonProps } from './card-link/card-link.types';
|
|
90
|
+
export { FocusHeader } from './focus-header/focus-header';
|
|
91
|
+
export type { FocusHeaderProps } from './focus-header/focus-header.types';
|
|
92
|
+
export { Topbar } from './app-shell/topbar';
|
|
93
|
+
export type { TopbarProps } from './app-shell/topbar.types';
|
|
94
|
+
export { Sidebar } from './app-shell/sidebar';
|
|
95
|
+
export type { SidebarProps } from './app-shell/sidebar.types';
|
|
96
|
+
export { BottomNav } from './app-shell/bottom-nav';
|
|
97
|
+
export type { BottomNavProps } from './app-shell/bottom-nav.types';
|
|
98
|
+
export { AppShell } from './app-shell/app-shell';
|
|
99
|
+
export type { AppShellProps } from './app-shell/app-shell.types';
|
|
100
|
+
export type { NavItem, RenderNavLink } from './app-shell/nav.types';
|
|
101
|
+
export { light, dark, radii, space, spacing, fontSizes, fontWeights, lineHeights, zIndices, motion, gradients, fonts, breakpoints, itemPalette, defineTheme, ishtarSinkTheme, contrastRatio, checkThemeContrast, CONTRAST_REQUIREMENTS, } from './theme';
|
|
102
|
+
export type { Theme, ThemeName, ThemeTokens, ContrastRequirement, ContrastViolation, } from './theme';
|