@ssplib/react-components 0.0.308 → 0.0.310

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.
Files changed (105) hide show
  1. package/package.json +18 -22
  2. package/Map-31d95a26.js +0 -2
  3. package/Map-31d95a26.js.map +0 -1
  4. package/Map-644d2f90.js +0 -2
  5. package/Map-644d2f90.js.map +0 -1
  6. package/components/detalhes/Category.d.ts +0 -3
  7. package/components/detalhes/Field.d.ts +0 -8
  8. package/components/detalhes/FieldLabel.d.ts +0 -8
  9. package/components/detalhes/File.d.ts +0 -7
  10. package/components/form/checkbox/CheckBox.d.ts +0 -10
  11. package/components/form/checkbox/CheckBoxAdditional.d.ts +0 -7
  12. package/components/form/checkbox/CheckBoxWarning.d.ts +0 -10
  13. package/components/form/checkbox/RequiredCheckBoxValidator.d.ts +0 -5
  14. package/components/form/date/DatePicker.d.ts +0 -13
  15. package/components/form/date/GenericDatePicker.d.ts +0 -13
  16. package/components/form/date/TimePicker.d.ts +0 -10
  17. package/components/form/file/DropFileUpload.d.ts +0 -16
  18. package/components/form/file/FileUpload.d.ts +0 -13
  19. package/components/form/input/ActiveInput.d.ts +0 -12
  20. package/components/form/input/AutoComplete.d.ts +0 -11
  21. package/components/form/input/FetchAutoComplete.d.ts +0 -19
  22. package/components/form/input/FixedAutoComplete.d.ts +0 -18
  23. package/components/form/input/GenericFetchAutoComplete.d.ts +0 -19
  24. package/components/form/input/GenericInput.d.ts +0 -19
  25. package/components/form/input/GenericMaskInput.d.ts +0 -14
  26. package/components/form/input/GenericMultInput.d.ts +0 -13
  27. package/components/form/input/Input.d.ts +0 -19
  28. package/components/form/input/MaskInput.d.ts +0 -14
  29. package/components/form/input/MultInput.d.ts +0 -13
  30. package/components/form/input/OptionalInput.d.ts +0 -10
  31. package/components/form/input/OtherCheckBox.d.ts +0 -7
  32. package/components/form/stepper/Stepper.d.ts +0 -16
  33. package/components/form/stepper/StepperBlock.d.ts +0 -14
  34. package/components/form/switch/Switch.d.ts +0 -11
  35. package/components/form/switch/ToggleVisibility.d.ts +0 -13
  36. package/components/form/table/FilterSection.d.ts +0 -7
  37. package/components/form/table/GenericTable.d.ts +0 -8
  38. package/components/form/table/Table.d.ts +0 -5
  39. package/components/form/table/TableErrorState.d.ts +0 -9
  40. package/components/form/table/TableLoadingState.d.ts +0 -5
  41. package/components/form/table/types.d.ts +0 -212
  42. package/components/form/table/utils.d.ts +0 -29
  43. package/components/icons/icons.d.ts +0 -3
  44. package/components/loading/LinearProgress.d.ts +0 -2
  45. package/components/loading/LoadingScreen.d.ts +0 -7
  46. package/components/map/AnimatedMarker.d.ts +0 -5
  47. package/components/map/DraggableMarker.d.ts +0 -12
  48. package/components/map/Map.d.ts +0 -17
  49. package/components/map/index.d.ts +0 -1
  50. package/components/modal/Modal.d.ts +0 -7
  51. package/components/navbar/NavBar.d.ts +0 -15
  52. package/components/navbar/TabNavBar.d.ts +0 -17
  53. package/components/providers/FormProvider.d.ts +0 -11
  54. package/components/providers/GenericFormProvider.d.ts +0 -10
  55. package/components/providers/KeycloakAuthProvider.d.ts +0 -10
  56. package/components/providers/OAuthProvider.d.ts +0 -18
  57. package/components/providers/SspComponentsProvider.d.ts +0 -3
  58. package/components/teste/Teste.d.ts +0 -3
  59. package/components/utils/Bt.d.ts +0 -8
  60. package/components/utils/CustomMenu.d.ts +0 -12
  61. package/context/auth.d.ts +0 -2
  62. package/context/form.d.ts +0 -20
  63. package/decorators/FormBaseDecorator.d.ts +0 -2
  64. package/decorators/GenericFormBaseDecorator.d.ts +0 -2
  65. package/decorators/StepperDecorator.d.ts +0 -2
  66. package/index.cjs +0 -3
  67. package/index.cjs.map +0 -1
  68. package/index.d.ts +0 -44
  69. package/index.esm.js +0 -3
  70. package/index.esm.js.map +0 -1
  71. package/stories/Autocomplete.stories.d.ts +0 -6
  72. package/stories/CheckBox.stories.d.ts +0 -6
  73. package/stories/CheckBoxWarning.stories.d.ts +0 -6
  74. package/stories/DatePicker.stories.d.ts +0 -6
  75. package/stories/DetalhesCategory.stories.d.ts +0 -6
  76. package/stories/DetalhesField.stories.d.ts +0 -6
  77. package/stories/DetalhesFieldLabel.stories.d.ts +0 -6
  78. package/stories/DetalhesFile.stories.d.ts +0 -6
  79. package/stories/DropFileUpload.stories.d.ts +0 -6
  80. package/stories/ExemploAssitirValorInput.stories.d.ts +0 -7
  81. package/stories/ExemploInputs.stories.d.ts +0 -7
  82. package/stories/ExemploValoresCompartilhados.stories.d.ts +0 -7
  83. package/stories/FetchAutocomplete.stories.d.ts +0 -6
  84. package/stories/FileUpload.stories.d.ts +0 -6
  85. package/stories/FixedAutocomplete.stories.d.ts +0 -6
  86. package/stories/GenericFetchAutocomplete.stories.d.ts +0 -6
  87. package/stories/GenericInput.stories.d.ts +0 -6
  88. package/stories/GenericTable.stories.d.ts +0 -6
  89. package/stories/Input.stories.d.ts +0 -6
  90. package/stories/LinearProgress.stories.d.ts +0 -6
  91. package/stories/LoadingScreen.stories.d.ts +0 -6
  92. package/stories/Map.stories.d.ts +0 -6
  93. package/stories/MultInput.stories.d.ts +0 -6
  94. package/stories/NavBar.stories.d.ts +0 -6
  95. package/stories/OptionalInput.stories.d.ts +0 -6
  96. package/stories/OtherCheckBox.stories.d.ts +0 -6
  97. package/stories/Stepper.stories.d.ts +0 -6
  98. package/stories/StepperBlock.stories.d.ts +0 -6
  99. package/stories/Switch.stories.d.ts +0 -6
  100. package/stories/Table.stories.d.ts +0 -4
  101. package/stories/TableWithStaticData.stories.d.ts +0 -6
  102. package/stories/Teste.stories.d.ts +0 -6
  103. package/stories/TimePicker.stories.d.ts +0 -6
  104. package/types/auth.d.ts +0 -72
  105. package/types/form.d.ts +0 -64
@@ -1,212 +0,0 @@
1
- import { BoxProps } from '@mui/material';
2
- import { ReactNode } from 'react';
3
- export interface ColumnData {
4
- title: string;
5
- keyName: string;
6
- customComponent?: (content: string, obj: any) => JSX.Element;
7
- size?: number;
8
- }
9
- export interface OrderBy {
10
- label: string;
11
- key: string;
12
- type: 'string' | 'number';
13
- }
14
- export type FilterType = 'string' | 'number' | 'date' | 'dates';
15
- export type FilterOperators = 'igual' | 'contem' | 'maior que' | 'menor que' | 'data exata' | 'após' | 'antes de' | 'entre' | 'tem um dos' | 'depois de' | 'antes de' | 'data inicio' | 'data fim' | 'tem a data';
16
- export interface FilterValue {
17
- label: string;
18
- keyName: string;
19
- type: FilterType;
20
- operator: FilterOperators;
21
- operators: FilterOperators[];
22
- value: string | any;
23
- value2?: string | any;
24
- useList?: {
25
- id: string | number;
26
- label: string;
27
- }[];
28
- customFunc?: string;
29
- }
30
- export interface CsvMapProps {
31
- name: string;
32
- key: string;
33
- onlyFilter?: boolean;
34
- onlyAll?: boolean;
35
- useFilterValue?: {
36
- label: string;
37
- operators: FilterOperators[];
38
- };
39
- }
40
- export interface CsvConfigProp {
41
- fileName: string;
42
- downloadAll?: boolean;
43
- customFiltered?: (list: any[], filters: FilterValue[]) => any[];
44
- customAll?: (list: any[], filters: FilterValue[]) => any[];
45
- map?: CsvMapProps[];
46
- }
47
- /**
48
- * Interface para as propriedades do componente Table.
49
- */
50
- export interface TableProps {
51
- /** ID único da tabela */
52
- id: string;
53
- /** Configurações de largura para telas grandes */
54
- mediaQueryLG?: {
55
- all: number;
56
- action: number;
57
- };
58
- /** Funções de transformação para filtros */
59
- filtersFunc?: {
60
- [key: string]: (value: string) => any;
61
- };
62
- /** Filtros disponíveis */
63
- filters?: FilterValue[];
64
- /** Ordenação por colunas */
65
- orderBy?: OrderBy[];
66
- /** Margem personalizada (desktop) */
67
- customMargin?: number;
68
- /** Margem personalizada (mobile) */
69
- customMarginMobile?: number;
70
- /** Estilo customizado da tabela */
71
- customTableStyle?: BoxProps;
72
- /** Mensagem de erro personalizada */
73
- customErrorMsg?: string | ReactNode;
74
- /** Colunas da tabela */
75
- columns: any[];
76
- /** Nome da tabela */
77
- tableName: string;
78
- csvConfig?: CsvConfigProp;
79
- /** Altura da célula colapsada */
80
- collapsedSize?: number;
81
- /** Validação para exclusão de chaves no CSV */
82
- csvExcludeValidate?: (key: string, value: string | number) => boolean;
83
- /** Tamanho máximo do texto antes de colapsar */
84
- expandTextMaxLength?: number;
85
- /** Ações por linha */
86
- action: (prop: any) => JSX.Element;
87
- /** Quantidade de itens por página */
88
- itemCount?: number;
89
- /** Número de colunas da tabela */
90
- columnSize: number;
91
- /** Função para buscar dados */
92
- fetchFunc?: () => Promise<Response>;
93
- /** Mensagens para quando não há dados */
94
- emptyMsg?: {
95
- user: string;
96
- public: string;
97
- };
98
- /** Caminho dos dados no JSON da resposta */
99
- dataPath?: string;
100
- /** Usa autenticação via Keycloak */
101
- useKC?: boolean;
102
- /** Dados iniciais da tabela */
103
- initialData?: Array<{
104
- [key: string]: any;
105
- }> | null;
106
- /** Flag de carregamento dos dados da tabela */
107
- isLoading?: boolean;
108
- /** Flag para mostrar ou não o botão de expandir a Linha */
109
- isExpandable?: boolean;
110
- }
111
- export interface TableProps2 {
112
- /** ID único da tabela */
113
- id: string;
114
- /** Configurações de largura para telas grandes */
115
- mediaQueryLG?: {
116
- all: number;
117
- action: number;
118
- };
119
- /** Funções de transformação para filtros */
120
- filtersFunc?: {
121
- [key: string]: (value: string) => any;
122
- };
123
- /** Filtros disponíveis */
124
- filters?: FilterValue[];
125
- /** Ordenação por colunas */
126
- orderBy?: OrderBy[];
127
- /** Margem personalizada (desktop) */
128
- customMargin?: number;
129
- /** Margem personalizada (mobile) */
130
- customMarginMobile?: number;
131
- /** Normaliza textos (remove acentos) */
132
- normalize?: boolean;
133
- /** Converte textos para maiúsculas */
134
- csvUpper?: boolean;
135
- /** Estilo customizado da tabela */
136
- customTableStyle?: BoxProps;
137
- /** Caminho múltiplo dentro dos dados */
138
- multipleDataPath?: string;
139
- /** Mensagem de erro personalizada */
140
- customErrorMsg?: string | ReactNode;
141
- /** Remove aspas dos valores no CSV */
142
- removeQuotes?: boolean;
143
- /** Colunas da tabela */
144
- columns: any[];
145
- /** Nome da tabela */
146
- tableName: string;
147
- /** Exibe botão para exportar todos os dados */
148
- csvShowAllButton?: boolean;
149
- /** Chaves excluídas da exportação (upper) */
150
- csvExcludeUpper?: string[];
151
- /** Exporta CSV sem compactação */
152
- csvWithoutZip?: boolean;
153
- /** Altura da célula colapsada */
154
- collapsedSize?: number;
155
- /** Texto do botão "Exportar todos em CSV" */
156
- csvAllButtonTitle?: string;
157
- /** Texto do botão "Exportar CSV" */
158
- csvButtonTitle?: string;
159
- /** Texto do botão "Exportar sem ZIP" */
160
- csvNoZipText?: string;
161
- /** Chave para nomear arquivos ZIP */
162
- csvZipFileNamesKey?: string;
163
- /** Gera arquivo ZIP ao exportar */
164
- generateCsvZip?: boolean;
165
- /** Validação para exclusão de chaves no CSV */
166
- csvExcludeValidate?: (key: string, value: string | number) => boolean;
167
- /** Mapeia nomes customizados de colunas no CSV */
168
- csvCustomKeyNames?: {
169
- [key: string]: string;
170
- };
171
- /** Tamanho máximo do texto antes de colapsar */
172
- expandTextMaxLength?: number;
173
- /** Chaves excluídas da exportação CSV simples */
174
- csvExcludeKeysCSV?: string[];
175
- /** Chaves excluídas da exportação geral */
176
- csvExcludeKeys?: string[];
177
- /** Oculta o título na exportação CSV */
178
- hideTitleCSV?: boolean;
179
- /** Chaves excluídas no CSV com todos os dados */
180
- csvExcludeKeysAll?: string[];
181
- /** Nome da chave para status da linha */
182
- statusKeyName?: string;
183
- /** Quantidade de itens por página */
184
- itemCount?: number;
185
- /** Ações por linha */
186
- action: (prop: any) => JSX.Element;
187
- /** Configuração para exportação CSV */
188
- csv?: {
189
- fileName: string;
190
- };
191
- /** Número de colunas da tabela */
192
- columnSize: number;
193
- /** Função para buscar dados */
194
- fetchFunc?: () => Promise<Response>;
195
- /** Mensagens para quando não há dados */
196
- emptyMsg?: {
197
- user: string;
198
- public: string;
199
- };
200
- /** Caminho dos dados no JSON da resposta */
201
- dataPath?: string;
202
- /** Usa autenticação via Keycloak */
203
- useKC?: boolean;
204
- /** Dados iniciais da tabela */
205
- initialData?: Array<{
206
- [key: string]: any;
207
- }> | null;
208
- /** Flag de carregamento dos dados da tabela */
209
- isLoading?: boolean;
210
- /** Flag para mostrar ou não o botão de expandir a Linha */
211
- isExpandable?: boolean;
212
- }
@@ -1,29 +0,0 @@
1
- import { CsvConfigProp, FilterValue, OrderBy } from './types';
2
- export declare const getCount: (countData: any[], itemsCount: number) => number;
3
- export declare function transformArrayObjectInString(o: Object): String;
4
- export declare function removePunctuationAndAccents(text: string): string;
5
- export declare function formatarString(str: string | number): string;
6
- interface FiltrarProps {
7
- startData: any[];
8
- filterData: FilterValue[];
9
- filtersFuncData: {
10
- [key: string]: (value: string) => any;
11
- };
12
- localTableName: string;
13
- setList: (arg: any) => void;
14
- setPagCount: (arg: any) => void;
15
- setCurrentPage: (arg: number) => void;
16
- setListPage: (arg: number) => void;
17
- setListClone: (arg: any) => void;
18
- itemsCount: number;
19
- }
20
- export declare function filtrarDados({ filterData, startData, filtersFuncData, localTableName, setCurrentPage, setList, setListClone, setListPage, setPagCount, itemsCount }: FiltrarProps): void;
21
- interface OrdenarDadosProps {
22
- order: OrderBy;
23
- list: any[];
24
- orderAsc: boolean;
25
- }
26
- export declare function ordenarDados({ order, list, orderAsc }: OrdenarDadosProps): any[];
27
- export declare function downloadCSVFile(list: any[], config: CsvConfigProp, filters: FilterValue[]): Promise<void>;
28
- export declare function downloadCSVAll(e: React.MouseEvent, list: any[], keys: string[], fileName: string): void;
29
- export {};
@@ -1,3 +0,0 @@
1
- import { SvgIconProps } from '@mui/material';
2
- export declare function PDFIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
3
- export declare function TrashIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { LinearProgressProps } from '@mui/material';
2
- export declare function LinearProgress(props: LinearProgressProps): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import { SxProps } from '@mui/material';
2
- interface LoadingScreenProps {
3
- textMessage?: string;
4
- containerSx: SxProps;
5
- }
6
- export declare const LoadingScreen: ({ textMessage, containerSx }: LoadingScreenProps) => import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,5 +0,0 @@
1
- import { LatLngExpression } from 'leaflet';
2
- declare const AnimatedMarker: ({ coords }: {
3
- coords: LatLngExpression;
4
- }) => any;
5
- export default AnimatedMarker;
@@ -1,12 +0,0 @@
1
- import { LatLngExpression } from 'leaflet';
2
- import { ReactElement } from 'react';
3
- interface DraggableMarkerProps {
4
- startCoord: LatLngExpression;
5
- draggable?: boolean;
6
- onChange?: (coord: LatLngExpression) => void;
7
- children?: ReactElement;
8
- showPopup?: boolean;
9
- fixedPosition?: boolean;
10
- }
11
- export default function DraggableMarker({ ...props }: DraggableMarkerProps): import("react/jsx-runtime").JSX.Element;
12
- export {};
@@ -1,17 +0,0 @@
1
- import { BoxProps } from '@mui/material';
2
- import React from 'react';
3
- import 'leaflet-defaulticon-compatibility';
4
- import 'leaflet-defaulticon-compatibility/dist/leaflet-defaulticon-compatibility.css';
5
- import 'leaflet/dist/leaflet.css';
6
- import { LatLngExpression } from 'leaflet';
7
- import { ReactElement } from 'react';
8
- export interface MapProps {
9
- firstCoords: any;
10
- onCoordsChange?: (coords: any) => void;
11
- pulseMarkerList?: LatLngExpression[];
12
- popupContent?: ReactElement;
13
- style?: BoxProps;
14
- mapStyle?: React.CSSProperties;
15
- fixedPosition?: boolean;
16
- }
17
- export declare function Map(props: MapProps): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const Map: import("react").ComponentType<import("./Map").MapProps>;
@@ -1,7 +0,0 @@
1
- export declare let MODAL: {
2
- open: (customCompoment?: JSX.Element | JSX.Element[] | (() => JSX.Element)) => void;
3
- reparent: (child: JSX.Element, id: string | number) => JSX.Element;
4
- openReparented: (id: string | number) => void;
5
- close: () => void;
6
- };
7
- export declare function CustomModalProvider(): import("react/jsx-runtime").JSX.Element;
@@ -1,15 +0,0 @@
1
- export default function NavBar({ links, title, img, pos, next, el, menuItems, paddingBottom, logoutMsg, logoutFunc, ...props }: {
2
- links: {
3
- name: string;
4
- path: string;
5
- }[];
6
- title: string;
7
- img: string;
8
- paddingBottom?: number;
9
- menuItems: JSX.Element | JSX.Element[];
10
- next?: boolean;
11
- el?: JSX.Element;
12
- logoutMsg?: string;
13
- logoutFunc?: () => Promise<void>;
14
- pos?: 'fixed' | 'inherit';
15
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,17 +0,0 @@
1
- export default function TabNavBar({ links, title, img, pos, next, el, menuItems, color, route, paddingBottom, logoutMsg, logoutFunc, ...props }: {
2
- links: {
3
- name: string;
4
- path: string;
5
- }[];
6
- title: string;
7
- img: string;
8
- color?: string;
9
- route?: string;
10
- paddingBottom?: number;
11
- menuItems: JSX.Element | JSX.Element[];
12
- next?: boolean;
13
- el?: JSX.Element;
14
- logoutMsg?: string;
15
- logoutFunc?: () => Promise<void>;
16
- pos?: 'fixed' | 'inherit';
17
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,11 +0,0 @@
1
- import { ReactElement } from 'react';
2
- import { FieldValues } from 'react-hook-form';
3
- import type { FilesID } from '../../types/form';
4
- interface FormProviderProps<T extends FieldValues> {
5
- children: ReactElement | ReactElement[];
6
- onSubmit: (data: T, filesUid: FilesID) => void;
7
- formMethod?: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'UPDATE';
8
- submiting?: boolean;
9
- }
10
- export default function FormProvider<T extends FieldValues>({ children, onSubmit, formMethod, submiting }: FormProviderProps<T>): import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1,10 +0,0 @@
1
- import { ReactElement } from 'react';
2
- import { FieldValues } from 'react-hook-form';
3
- interface FormProviderProps<T extends FieldValues> {
4
- children: ReactElement | ReactElement[];
5
- onSubmit: (data: T) => void;
6
- formMethod?: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'UPDATE';
7
- submiting?: boolean;
8
- }
9
- export default function GenericFormProvider<T extends FieldValues>({ children, onSubmit, formMethod, submiting }: FormProviderProps<T>): import("react/jsx-runtime").JSX.Element;
10
- export {};
@@ -1,10 +0,0 @@
1
- export declare const cookieName = "nextauth.token";
2
- export declare function KeycloakAuthProvider({ url, realm, clientId, children, type, resource_name, redirectUri, }: {
3
- url: string;
4
- realm: string;
5
- clientId: string;
6
- children: JSX.Element | JSX.Element[];
7
- type?: 'govbr' | 'ad';
8
- resource_name?: string;
9
- redirectUri?: string;
10
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,18 +0,0 @@
1
- interface OiDcConfig {
2
- client_id: string;
3
- scope: string;
4
- redirect_uri: string;
5
- authority: string;
6
- }
7
- export declare const cookieName = "nextauth.token";
8
- export declare function OAuthProvider({ children, AUTH_URL, oidcConfig, redirectURL, validateTokenRoute, testToken, testIP, logoutURL, }: {
9
- children: JSX.Element | JSX.Element[];
10
- AUTH_URL: string;
11
- oidcConfig: OiDcConfig;
12
- redirectURL: string;
13
- validateTokenRoute: string;
14
- testToken: string;
15
- testIP?: string;
16
- logoutURL?: string;
17
- }): import("react/jsx-runtime").JSX.Element;
18
- export {};
@@ -1,3 +0,0 @@
1
- export declare function SspComponentsProvider(props: {
2
- children: JSX.Element | JSX.Element[];
3
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import '../../css/globals.css';
2
- export declare function Exemplo(): import("react/jsx-runtime").JSX.Element;
3
- export default function Teste(): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- import { ButtonProps } from '@mui/material';
2
- import tinycolor from 'tinycolor2';
3
- interface CustomButton extends ButtonProps {
4
- customColor?: tinycolor.ColorInput;
5
- customFontColor?: tinycolor.ColorInput;
6
- }
7
- export default function Bt({ customColor, customFontColor, ...props }: CustomButton): import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,12 +0,0 @@
1
- import { ButtonProps } from '@mui/material';
2
- import React from 'react';
3
- interface MenuProps {
4
- data: {
5
- name: string;
6
- onClick?: () => void;
7
- }[];
8
- btProps?: ButtonProps;
9
- children?: React.ReactNode;
10
- }
11
- export default function CustomMenu({ data, ...props }: MenuProps): import("react/jsx-runtime").JSX.Element;
12
- export {};
package/context/auth.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import { AuthReturnData } from '../types/auth';
2
- export declare const AuthContext: import("react").Context<AuthReturnData>;
package/context/form.d.ts DELETED
@@ -1,20 +0,0 @@
1
- import { Dispatch, SetStateAction } from 'react';
2
- import { Control, FieldErrors, FieldValues, UseFormGetValues, UseFormHandleSubmit, UseFormRegister, UseFormReset, UseFormSetValue, UseFormStateReturn, UseFormTrigger, UseFormUnregister, UseFormWatch } from 'react-hook-form';
3
- export declare const FormContext: import("react").Context<{
4
- formRegister: UseFormRegister<FieldValues>;
5
- formWatch: UseFormWatch<FieldValues>;
6
- formReset: UseFormReset<FieldValues>;
7
- formSetValue: UseFormSetValue<FieldValues>;
8
- formControl: Control<FieldValues, any>;
9
- formTrigger: UseFormTrigger<FieldValues>;
10
- formUnregister: UseFormUnregister<FieldValues>;
11
- formHandleSubmit: UseFormHandleSubmit<FieldValues>;
12
- formGetValues: UseFormGetValues<FieldValues>;
13
- setFilesUid: Dispatch<SetStateAction<{
14
- CO_SEQ_ARQUIVO: number;
15
- CO_TIPO_ARQUIVO: number;
16
- }[]>>;
17
- formState: UseFormStateReturn<FieldValues>;
18
- errors: FieldErrors<FieldValues>;
19
- submiting: boolean;
20
- }>;
@@ -1,2 +0,0 @@
1
- import '../css/ReactToastify.css';
2
- export default function FormBaseDecorator(Story: any, el: any): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import '../css/ReactToastify.css';
2
- export default function GenericFormBaseDecorator(Story: any, el: any): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import '../css/ReactToastify.css';
2
- export default function StepperDecorator(Story: any, el: any): import("react/jsx-runtime").JSX.Element;