@cnc-ti/layout-basic 5.0.0 → 6.0.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/.turbo/turbo-build.log +22 -0
- package/CHANGELOG.md +6 -0
- package/dist/index.css +1 -998
- package/dist/index.d.mts +139 -24
- package/dist/index.d.ts +139 -24
- package/dist/index.js +322 -37040
- package/dist/index.mjs +322 -37030
- package/package.json +1 -1
- package/postcss.config.js +6 -6
- package/src/components/Button/index.tsx +100 -100
- package/src/components/Command/index.tsx +156 -156
- package/src/components/Dialog/index.tsx +114 -114
- package/src/components/DropDownMenu/index.tsx +190 -190
- package/src/components/Header/index.tsx +88 -88
- package/src/components/Modal/ModalMudancaEntidade/index.tsx +42 -42
- package/src/components/Modal/index.tsx +44 -44
- package/src/components/Popover/index.tsx +32 -32
- package/src/components/Sidebar/index.tsx +195 -195
- package/src/components/assets/logotipo-default.tsx +26 -26
- package/src/components/utils.ts +6 -6
- package/src/index.ts +8 -9
- package/src/tailwindcss/tailwind.css +13 -13
- package/tailwind.config.js +65 -65
- package/tsconfig.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,24 +1,139 @@
|
|
|
1
|
-
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
2
|
-
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import * as React$1 from 'react';
|
|
4
|
+
import React__default, { PropsWithChildren, ReactNode, ReactElement, ComponentProps, SVGProps } from 'react';
|
|
5
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
7
|
+
import * as Accordion from '@radix-ui/react-accordion';
|
|
8
|
+
|
|
9
|
+
declare const buttonVariants: (props?: ({
|
|
10
|
+
variant?: "default" | "confirm" | "create" | "secondary" | "danger" | null | undefined;
|
|
11
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
12
|
+
outline?: boolean | null | undefined;
|
|
13
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
14
|
+
interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
15
|
+
asChild?: boolean;
|
|
16
|
+
isLoading?: boolean;
|
|
17
|
+
}
|
|
18
|
+
declare const Button: React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
|
|
20
|
+
type HeaderProps = {
|
|
21
|
+
userName: string;
|
|
22
|
+
imageUrl?: string;
|
|
23
|
+
entityName?: string;
|
|
24
|
+
};
|
|
25
|
+
declare const Header: ({ userName, entityName }: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
26
|
+
|
|
27
|
+
type ModalProps = {
|
|
28
|
+
title?: string;
|
|
29
|
+
content?: React.ReactElement;
|
|
30
|
+
onClose?: any;
|
|
31
|
+
visibleModal?: boolean;
|
|
32
|
+
};
|
|
33
|
+
declare const Modal: ({ title, content, visibleModal, onClose, }: ModalProps) => react_jsx_runtime.JSX.Element;
|
|
34
|
+
|
|
35
|
+
type ModalMudancaEnntidadeProps = {
|
|
36
|
+
title?: string;
|
|
37
|
+
onClose?: any;
|
|
38
|
+
visibleModal?: boolean;
|
|
39
|
+
SelectComponent?: any;
|
|
40
|
+
buttonAction: React__default.MouseEventHandler<HTMLButtonElement>;
|
|
41
|
+
};
|
|
42
|
+
declare const ModalMudancaEntidade: ({ title, onClose, visibleModal, SelectComponent, buttonAction, }: ModalMudancaEnntidadeProps) => react_jsx_runtime.JSX.Element;
|
|
43
|
+
|
|
44
|
+
declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
|
|
45
|
+
declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
46
|
+
declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
47
|
+
declare const DialogClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
48
|
+
declare const DialogOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
49
|
+
declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
50
|
+
declare const DialogHeader: {
|
|
51
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
52
|
+
displayName: string;
|
|
53
|
+
};
|
|
54
|
+
declare const DialogFooter: {
|
|
55
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
56
|
+
displayName: string;
|
|
57
|
+
};
|
|
58
|
+
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
59
|
+
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Propriedades para o componente SidebarContainer.
|
|
63
|
+
*
|
|
64
|
+
* @extends HTMLAttributes<HTMLDivElement>
|
|
65
|
+
*/
|
|
66
|
+
interface SidebarContainerProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
67
|
+
/**
|
|
68
|
+
* Indica se o sidebar está aberto ou fechado.
|
|
69
|
+
* @default true
|
|
70
|
+
*/
|
|
71
|
+
isOpen?: boolean;
|
|
72
|
+
}
|
|
73
|
+
declare function SidebarContainer({ isOpen, ...rest }: SidebarContainerProps): react_jsx_runtime.JSX.Element;
|
|
74
|
+
interface SidebarImageBrandProps extends PropsWithChildren {
|
|
75
|
+
/** @param {boolean} [props.asChild=false] - Se `true`, e `children` for um elemento React válido, este será usado como logotipo. Se `img` também for fornecido, `img` terá precedência. Se `children` não for um elemento React válido, o comportamento padrão de exibir a imagem de `img` ou `children` como conteúdo será usado. */
|
|
76
|
+
asChild?: boolean;
|
|
77
|
+
/** @param {{ src?: string; alt?: string }} [props.img] - Objeto com as propriedades `src` e `alt` da imagem, usado quando `asChild` é `false` ou quando `asChild` é `true` mas `children` não é um elemento React válido para ser usado como logotipo. */
|
|
78
|
+
img?: {
|
|
79
|
+
src?: string;
|
|
80
|
+
alt?: string;
|
|
81
|
+
};
|
|
82
|
+
/** @param {ReactNode} [props.children] - Conteúdo personalizado ou elemento filho a ser exibido como logotipo quando `asChild` for `true` e `img` não for fornecido. Normalmente usado para o botão de toggle ou um logotipo customizado. */
|
|
83
|
+
children?: ReactNode;
|
|
84
|
+
onChangeToggle?: () => void;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Componente para exibir a imagem da marca (logotipo) na barra lateral.
|
|
88
|
+
*
|
|
89
|
+
* Exibe uma imagem, um elemento filho como logotipo ou conteúdo personalizado na parte superior da barra lateral.
|
|
90
|
+
* Permite a inclusão de um botão de alternância (toggle) para colapsar a barra lateral.
|
|
91
|
+
* A prop `asChild` permite usar um elemento filho como logotipo, caso a prop `img` não seja fornecida.
|
|
92
|
+
*/
|
|
93
|
+
declare function SidebarImageBrand({ asChild, onChangeToggle, img, children }: SidebarImageBrandProps): react_jsx_runtime.JSX.Element;
|
|
94
|
+
type AccordionRootProps = ComponentProps<typeof Accordion.Root>;
|
|
95
|
+
type SidebarProps = AccordionRootProps & {
|
|
96
|
+
/** @param {ReactNode} props.children - Os elementos filhos a serem renderizados dentro do Sidebar. */
|
|
97
|
+
children?: AccordionRootProps['children'];
|
|
98
|
+
/** @param {'single' | 'multiple'} [props.type='single'] - Determina se um ou vários itens podem ser abertos simultaneamente. */
|
|
99
|
+
type: AccordionRootProps['type'];
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* Componente Sidebar, responsável por renderizar a estrutura principal do menu lateral
|
|
103
|
+
* e gerenciar o comportamento de acordeão dos itens de navegação.
|
|
104
|
+
*
|
|
105
|
+
* Este componente utiliza o Radix UI Accordion para controlar a expansão e o colapso
|
|
106
|
+
* dos itens do menu. O tipo de acordeão (único ou múltiplo) é determinado pela propriedade `type`.
|
|
107
|
+
*
|
|
108
|
+
* Estende as tipagens do componente `Accordion.Root` do Radix UI.
|
|
109
|
+
*/
|
|
110
|
+
declare function Siderbar({ children, ...rest }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
111
|
+
/**
|
|
112
|
+
* Componente de link de navegação para o Sidebar.
|
|
113
|
+
*
|
|
114
|
+
* Renderiza um link com ícone e título, permitindo navegação dentro do Sidebar.
|
|
115
|
+
* Recomenda-se que o ícone fornecido tenha 20px de altura e largura para
|
|
116
|
+
* consistência visual.
|
|
117
|
+
*
|
|
118
|
+
* @param {SidebarNavLinkProps} props - As propriedades do componente.
|
|
119
|
+
* @param {ReactNode} props.children - O título do link e o icone que pode ser fornecido como componente ou svg (🚨recomendado 20px x 20px).
|
|
120
|
+
* @param {string} props.href O caminho para redirecionamento.
|
|
121
|
+
*/
|
|
122
|
+
interface SidebarNavLinkProps extends React__default.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
123
|
+
asChild?: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Determina se é principal ou filho de um collapse nav, 'primary' link solto e 'secondary' é utilizado no collapse.
|
|
126
|
+
* @default 'primary'
|
|
127
|
+
*/
|
|
128
|
+
type?: 'primary' | 'secondary';
|
|
129
|
+
}
|
|
130
|
+
declare function SidebarNavLink({ asChild, type, ...rest }: SidebarNavLinkProps): react_jsx_runtime.JSX.Element;
|
|
131
|
+
interface IconProps extends SVGProps<SVGSVGElement> {
|
|
132
|
+
}
|
|
133
|
+
interface SidebarNavCollapseProps extends Accordion.AccordionItemProps {
|
|
134
|
+
title: string;
|
|
135
|
+
icon?: ReactElement<IconProps> | ReactNode;
|
|
136
|
+
}
|
|
137
|
+
declare function SidebarNavCollapse({ children, title, icon, ...rest }: SidebarNavCollapseProps): react_jsx_runtime.JSX.Element;
|
|
138
|
+
|
|
139
|
+
export { Button, type ButtonProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Header, type HeaderProps, Modal, ModalMudancaEntidade, type ModalProps, SidebarContainer, type SidebarContainerProps, SidebarImageBrand, type SidebarImageBrandProps, SidebarNavCollapse, type SidebarNavCollapseProps, SidebarNavLink, type SidebarNavLinkProps, type SidebarProps, Siderbar, buttonVariants };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,24 +1,139 @@
|
|
|
1
|
-
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
2
|
-
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import * as React$1 from 'react';
|
|
4
|
+
import React__default, { PropsWithChildren, ReactNode, ReactElement, ComponentProps, SVGProps } from 'react';
|
|
5
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
7
|
+
import * as Accordion from '@radix-ui/react-accordion';
|
|
8
|
+
|
|
9
|
+
declare const buttonVariants: (props?: ({
|
|
10
|
+
variant?: "default" | "confirm" | "create" | "secondary" | "danger" | null | undefined;
|
|
11
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
12
|
+
outline?: boolean | null | undefined;
|
|
13
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
14
|
+
interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
15
|
+
asChild?: boolean;
|
|
16
|
+
isLoading?: boolean;
|
|
17
|
+
}
|
|
18
|
+
declare const Button: React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
|
|
20
|
+
type HeaderProps = {
|
|
21
|
+
userName: string;
|
|
22
|
+
imageUrl?: string;
|
|
23
|
+
entityName?: string;
|
|
24
|
+
};
|
|
25
|
+
declare const Header: ({ userName, entityName }: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
26
|
+
|
|
27
|
+
type ModalProps = {
|
|
28
|
+
title?: string;
|
|
29
|
+
content?: React.ReactElement;
|
|
30
|
+
onClose?: any;
|
|
31
|
+
visibleModal?: boolean;
|
|
32
|
+
};
|
|
33
|
+
declare const Modal: ({ title, content, visibleModal, onClose, }: ModalProps) => react_jsx_runtime.JSX.Element;
|
|
34
|
+
|
|
35
|
+
type ModalMudancaEnntidadeProps = {
|
|
36
|
+
title?: string;
|
|
37
|
+
onClose?: any;
|
|
38
|
+
visibleModal?: boolean;
|
|
39
|
+
SelectComponent?: any;
|
|
40
|
+
buttonAction: React__default.MouseEventHandler<HTMLButtonElement>;
|
|
41
|
+
};
|
|
42
|
+
declare const ModalMudancaEntidade: ({ title, onClose, visibleModal, SelectComponent, buttonAction, }: ModalMudancaEnntidadeProps) => react_jsx_runtime.JSX.Element;
|
|
43
|
+
|
|
44
|
+
declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
|
|
45
|
+
declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
46
|
+
declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
47
|
+
declare const DialogClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
48
|
+
declare const DialogOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
49
|
+
declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
50
|
+
declare const DialogHeader: {
|
|
51
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
52
|
+
displayName: string;
|
|
53
|
+
};
|
|
54
|
+
declare const DialogFooter: {
|
|
55
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
56
|
+
displayName: string;
|
|
57
|
+
};
|
|
58
|
+
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
59
|
+
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Propriedades para o componente SidebarContainer.
|
|
63
|
+
*
|
|
64
|
+
* @extends HTMLAttributes<HTMLDivElement>
|
|
65
|
+
*/
|
|
66
|
+
interface SidebarContainerProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
67
|
+
/**
|
|
68
|
+
* Indica se o sidebar está aberto ou fechado.
|
|
69
|
+
* @default true
|
|
70
|
+
*/
|
|
71
|
+
isOpen?: boolean;
|
|
72
|
+
}
|
|
73
|
+
declare function SidebarContainer({ isOpen, ...rest }: SidebarContainerProps): react_jsx_runtime.JSX.Element;
|
|
74
|
+
interface SidebarImageBrandProps extends PropsWithChildren {
|
|
75
|
+
/** @param {boolean} [props.asChild=false] - Se `true`, e `children` for um elemento React válido, este será usado como logotipo. Se `img` também for fornecido, `img` terá precedência. Se `children` não for um elemento React válido, o comportamento padrão de exibir a imagem de `img` ou `children` como conteúdo será usado. */
|
|
76
|
+
asChild?: boolean;
|
|
77
|
+
/** @param {{ src?: string; alt?: string }} [props.img] - Objeto com as propriedades `src` e `alt` da imagem, usado quando `asChild` é `false` ou quando `asChild` é `true` mas `children` não é um elemento React válido para ser usado como logotipo. */
|
|
78
|
+
img?: {
|
|
79
|
+
src?: string;
|
|
80
|
+
alt?: string;
|
|
81
|
+
};
|
|
82
|
+
/** @param {ReactNode} [props.children] - Conteúdo personalizado ou elemento filho a ser exibido como logotipo quando `asChild` for `true` e `img` não for fornecido. Normalmente usado para o botão de toggle ou um logotipo customizado. */
|
|
83
|
+
children?: ReactNode;
|
|
84
|
+
onChangeToggle?: () => void;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Componente para exibir a imagem da marca (logotipo) na barra lateral.
|
|
88
|
+
*
|
|
89
|
+
* Exibe uma imagem, um elemento filho como logotipo ou conteúdo personalizado na parte superior da barra lateral.
|
|
90
|
+
* Permite a inclusão de um botão de alternância (toggle) para colapsar a barra lateral.
|
|
91
|
+
* A prop `asChild` permite usar um elemento filho como logotipo, caso a prop `img` não seja fornecida.
|
|
92
|
+
*/
|
|
93
|
+
declare function SidebarImageBrand({ asChild, onChangeToggle, img, children }: SidebarImageBrandProps): react_jsx_runtime.JSX.Element;
|
|
94
|
+
type AccordionRootProps = ComponentProps<typeof Accordion.Root>;
|
|
95
|
+
type SidebarProps = AccordionRootProps & {
|
|
96
|
+
/** @param {ReactNode} props.children - Os elementos filhos a serem renderizados dentro do Sidebar. */
|
|
97
|
+
children?: AccordionRootProps['children'];
|
|
98
|
+
/** @param {'single' | 'multiple'} [props.type='single'] - Determina se um ou vários itens podem ser abertos simultaneamente. */
|
|
99
|
+
type: AccordionRootProps['type'];
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* Componente Sidebar, responsável por renderizar a estrutura principal do menu lateral
|
|
103
|
+
* e gerenciar o comportamento de acordeão dos itens de navegação.
|
|
104
|
+
*
|
|
105
|
+
* Este componente utiliza o Radix UI Accordion para controlar a expansão e o colapso
|
|
106
|
+
* dos itens do menu. O tipo de acordeão (único ou múltiplo) é determinado pela propriedade `type`.
|
|
107
|
+
*
|
|
108
|
+
* Estende as tipagens do componente `Accordion.Root` do Radix UI.
|
|
109
|
+
*/
|
|
110
|
+
declare function Siderbar({ children, ...rest }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
111
|
+
/**
|
|
112
|
+
* Componente de link de navegação para o Sidebar.
|
|
113
|
+
*
|
|
114
|
+
* Renderiza um link com ícone e título, permitindo navegação dentro do Sidebar.
|
|
115
|
+
* Recomenda-se que o ícone fornecido tenha 20px de altura e largura para
|
|
116
|
+
* consistência visual.
|
|
117
|
+
*
|
|
118
|
+
* @param {SidebarNavLinkProps} props - As propriedades do componente.
|
|
119
|
+
* @param {ReactNode} props.children - O título do link e o icone que pode ser fornecido como componente ou svg (🚨recomendado 20px x 20px).
|
|
120
|
+
* @param {string} props.href O caminho para redirecionamento.
|
|
121
|
+
*/
|
|
122
|
+
interface SidebarNavLinkProps extends React__default.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
123
|
+
asChild?: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Determina se é principal ou filho de um collapse nav, 'primary' link solto e 'secondary' é utilizado no collapse.
|
|
126
|
+
* @default 'primary'
|
|
127
|
+
*/
|
|
128
|
+
type?: 'primary' | 'secondary';
|
|
129
|
+
}
|
|
130
|
+
declare function SidebarNavLink({ asChild, type, ...rest }: SidebarNavLinkProps): react_jsx_runtime.JSX.Element;
|
|
131
|
+
interface IconProps extends SVGProps<SVGSVGElement> {
|
|
132
|
+
}
|
|
133
|
+
interface SidebarNavCollapseProps extends Accordion.AccordionItemProps {
|
|
134
|
+
title: string;
|
|
135
|
+
icon?: ReactElement<IconProps> | ReactNode;
|
|
136
|
+
}
|
|
137
|
+
declare function SidebarNavCollapse({ children, title, icon, ...rest }: SidebarNavCollapseProps): react_jsx_runtime.JSX.Element;
|
|
138
|
+
|
|
139
|
+
export { Button, type ButtonProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Header, type HeaderProps, Modal, ModalMudancaEntidade, type ModalProps, SidebarContainer, type SidebarContainerProps, SidebarImageBrand, type SidebarImageBrandProps, SidebarNavCollapse, type SidebarNavCollapseProps, SidebarNavLink, type SidebarNavLinkProps, type SidebarProps, Siderbar, buttonVariants };
|