@data-c/ui 0.1.40 → 0.1.42

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/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as _mui_material from '@mui/material';
3
- import { ButtonProps as ButtonProps$2, StackProps, CheckboxProps as CheckboxProps$1, DialogProps as DialogProps$1, IconButtonProps, DrawerProps, TypographyProps, ToolbarProps, TextFieldProps, FilterOptionsState, TooltipProps as TooltipProps$2, BoxProps, PaperProps, SvgIconProps, IconProps } from '@mui/material';
3
+ import { ButtonProps as ButtonProps$2, StackProps, CheckboxProps as CheckboxProps$1, DialogProps as DialogProps$1, IconButtonProps, DrawerProps, TypographyProps, ToolbarProps, TextFieldProps, FilterOptionsState, TooltipProps as TooltipProps$2, BoxProps, PaperProps, SvgIconProps, IconProps, InputBaseProps, ChipProps } from '@mui/material';
4
4
  import * as React$1 from 'react';
5
5
  import React__default, { ReactNode, ComponentType } from 'react';
6
6
  import { MUIDataTableProps } from 'mui-datatables';
7
7
  import { PaginationProps, TransportableDataTableProps, CredentialsConfigsInterface, AmbienteDataInterface } from '@data-c/hooks';
8
8
  import * as _mui_material_styles from '@mui/material/styles';
9
- import { DialogComponent, DialogProps as DialogProps$2 } from '@toolpad/core/useDialogs';
10
9
  import { AvatarProps } from '@mui/material/Avatar';
10
+ import { DialogComponent, DialogProps as DialogProps$2 } from '@toolpad/core/useDialogs';
11
11
 
12
12
  interface ButtonProps$1 extends ButtonProps$2 {
13
13
  isLoading?: boolean;
@@ -140,8 +140,8 @@ interface FilterProps {
140
140
  disableFilterControl?: Boolean;
141
141
  drawerProps?: DrawerProps;
142
142
  }
143
- declare function FilterContainer(props: FilterProps): react_jsx_runtime.JSX.Element;
144
- declare namespace FilterContainer {
143
+ declare function FilterContainer$1(props: FilterProps): react_jsx_runtime.JSX.Element;
144
+ declare namespace FilterContainer$1 {
145
145
  var defaultProps: {
146
146
  triggerButtonLabel: string;
147
147
  triggerButtonProps: {
@@ -294,68 +294,6 @@ declare function Surface(props: PaperProps): react_jsx_runtime.JSX.Element;
294
294
 
295
295
  declare const theme: _mui_material_styles.Theme;
296
296
 
297
- interface RootProps extends Omit<DialogProps$1, 'onClose'> {
298
- height?: number | string;
299
- children: ReactNode;
300
- onClose: (result: any) => Promise<void>;
301
- }
302
- declare function DialogRoot({ children, height, fullWidth, ...rest }: RootProps): react_jsx_runtime.JSX.Element;
303
-
304
- interface DialogProviderProps {
305
- children: React__default.ReactNode;
306
- }
307
- declare function DialogProvider({ children }: DialogProviderProps): react_jsx_runtime.JSX.Element;
308
-
309
- interface DialogAdicionarButtonProps<T> extends Omit<ButtonProps$2, 'onClick'> {
310
- dialogComponent: DialogComponent<any, any>;
311
- payload: T;
312
- label?: string;
313
- }
314
- declare function DialogAdicionarButton<T>(props: DialogAdicionarButtonProps<T>): react_jsx_runtime.JSX.Element;
315
-
316
- declare function DialogHeader(props: StackProps): react_jsx_runtime.JSX.Element;
317
-
318
- declare function Title(props: TypographyProps): react_jsx_runtime.JSX.Element;
319
-
320
- interface DialogActionCloseProps {
321
- onClose: (result?: any) => Promise<void>;
322
- }
323
- declare function DialogActionClose({ onClose }: DialogActionCloseProps): react_jsx_runtime.JSX.Element;
324
-
325
- declare function DialogContent({ children, ...rest }: StackProps): react_jsx_runtime.JSX.Element;
326
-
327
- declare function Footer(props: StackProps): react_jsx_runtime.JSX.Element;
328
-
329
- declare function DialogActions(props: StackProps): react_jsx_runtime.JSX.Element;
330
-
331
- declare function DialogActionCancelar$1({ children, ...rest }: ButtonProps$2): react_jsx_runtime.JSX.Element;
332
-
333
- type ButtonProps = {
334
- isLoading: boolean;
335
- label?: string;
336
- } & ButtonProps$2;
337
- declare function DialogActionCancelar({ children, label, ...rest }: ButtonProps): react_jsx_runtime.JSX.Element;
338
-
339
- declare function DialogConfirmDelete({ open, onClose, payload, }: DialogProps$2<{
340
- identificador: any;
341
- useRemover: any;
342
- }>): react_jsx_runtime.JSX.Element;
343
-
344
- declare const Dialog: {
345
- Root: typeof DialogRoot;
346
- Provider: typeof DialogProvider;
347
- AdicionarButton: typeof DialogAdicionarButton;
348
- Header: typeof DialogHeader;
349
- Title: typeof Title;
350
- ActionClose: typeof DialogActionClose;
351
- Content: typeof DialogContent;
352
- Footer: typeof Footer;
353
- Actions: typeof DialogActions;
354
- ActionCancelar: typeof DialogActionCancelar$1;
355
- ActionSalvar: typeof DialogActionCancelar;
356
- ConfirmDelete: typeof DialogConfirmDelete;
357
- };
358
-
359
297
  declare function Avatar(props: AvatarProps): react_jsx_runtime.JSX.Element;
360
298
 
361
299
  interface ProfileProps {
@@ -381,6 +319,10 @@ declare const Header: {
381
319
  ToggleMenu: typeof HeaderToggleMenu;
382
320
  };
383
321
 
322
+ declare function IconBarCode(props: SvgIconProps): react_jsx_runtime.JSX.Element;
323
+
324
+ declare function IconBlock$1(props: SvgIconProps): react_jsx_runtime.JSX.Element;
325
+
384
326
  declare function IconCadastro(props: SvgIconProps): react_jsx_runtime.JSX.Element;
385
327
 
386
328
  declare function IconChevronDown(props: SvgIconProps): react_jsx_runtime.JSX.Element;
@@ -389,8 +331,14 @@ declare function IconCircle(props: SvgIconProps): react_jsx_runtime.JSX.Element;
389
331
 
390
332
  declare function IconClientes(props: SvgIconProps): react_jsx_runtime.JSX.Element;
391
333
 
334
+ declare function IconClosePanel(props: SvgIconProps): react_jsx_runtime.JSX.Element;
335
+
336
+ declare function IconConfigs(props: SvgIconProps): react_jsx_runtime.JSX.Element;
337
+
392
338
  declare function IconDashboard(props: SvgIconProps): react_jsx_runtime.JSX.Element;
393
339
 
340
+ declare function IconDocs(props: SvgIconProps): react_jsx_runtime.JSX.Element;
341
+
394
342
  declare function IconDown(props: SvgIconProps): react_jsx_runtime.JSX.Element;
395
343
 
396
344
  declare function IconErease(props: SvgIconProps): react_jsx_runtime.JSX.Element;
@@ -405,49 +353,57 @@ declare function IconExpandable(props: IconExpandableProps): react_jsx_runtime.J
405
353
 
406
354
  declare function IconFilter(props: SvgIconProps): react_jsx_runtime.JSX.Element;
407
355
 
408
- declare function IconKanban(props: SvgIconProps): react_jsx_runtime.JSX.Element;
356
+ declare function IconHandShake(props: SvgIconProps): react_jsx_runtime.JSX.Element;
409
357
 
410
- declare function IconNegociacao(props: SvgIconProps): react_jsx_runtime.JSX.Element;
358
+ declare function IconHelp(props: SvgIconProps): react_jsx_runtime.JSX.Element;
411
359
 
412
- declare function IconSearch(props: SvgIconProps): react_jsx_runtime.JSX.Element;
360
+ declare function IconHistory(props: SvgIconProps): react_jsx_runtime.JSX.Element;
413
361
 
414
- declare function IconBarCode(props: SvgIconProps): react_jsx_runtime.JSX.Element;
362
+ declare function IconKanban(props: SvgIconProps): react_jsx_runtime.JSX.Element;
415
363
 
416
- declare function IconTextCursor(props: SvgIconProps): react_jsx_runtime.JSX.Element;
364
+ declare function IconLogout(props: SvgIconProps): react_jsx_runtime.JSX.Element;
417
365
 
418
- declare function IconOpenPanel(props: SvgIconProps): react_jsx_runtime.JSX.Element;
366
+ declare function IconMapPin(props: SvgIconProps): react_jsx_runtime.JSX.Element;
419
367
 
420
- declare function IconClosePanel(props: SvgIconProps): react_jsx_runtime.JSX.Element;
368
+ declare function IconMaps(props: SvgIconProps): react_jsx_runtime.JSX.Element;
421
369
 
422
370
  declare function IconMenu(props: SvgIconProps): react_jsx_runtime.JSX.Element;
423
371
 
424
- declare function IconConfigs$1(props: SvgIconProps): react_jsx_runtime.JSX.Element;
372
+ declare function IconNegociacao(props: SvgIconProps): react_jsx_runtime.JSX.Element;
425
373
 
426
- declare function IconUsers$1(props: SvgIconProps): react_jsx_runtime.JSX.Element;
374
+ declare function IconOpenPanel(props: SvgIconProps): react_jsx_runtime.JSX.Element;
427
375
 
428
376
  declare function IconPasswords(props: SvgIconProps): react_jsx_runtime.JSX.Element;
429
377
 
430
- declare function IconLogout(props: SvgIconProps): react_jsx_runtime.JSX.Element;
378
+ declare function IconSearch(props: SvgIconProps): react_jsx_runtime.JSX.Element;
431
379
 
432
- declare function IconHistory(props: SvgIconProps): react_jsx_runtime.JSX.Element;
380
+ declare function IconStore(props: SvgIconProps): react_jsx_runtime.JSX.Element;
433
381
 
434
- declare function IconHelp(props: SvgIconProps): react_jsx_runtime.JSX.Element;
382
+ declare function IconTextCursor(props: SvgIconProps): react_jsx_runtime.JSX.Element;
435
383
 
436
- declare function IconDocs(props: SvgIconProps): react_jsx_runtime.JSX.Element;
384
+ declare function IconUsers(props: SvgIconProps): react_jsx_runtime.JSX.Element;
437
385
 
438
386
  declare function IconVideo(props: SvgIconProps): react_jsx_runtime.JSX.Element;
439
387
 
440
388
  declare function IconBlock(props: SvgIconProps): react_jsx_runtime.JSX.Element;
441
389
 
442
- declare function IconMaps(props: SvgIconProps): react_jsx_runtime.JSX.Element;
390
+ declare function IconContaBancaria(props: SvgIconProps): react_jsx_runtime.JSX.Element;
443
391
 
444
- declare function IconMapPin(props: SvgIconProps): react_jsx_runtime.JSX.Element;
392
+ declare function IconGrupoLancamento(props: SvgIconProps): react_jsx_runtime.JSX.Element;
445
393
 
446
- declare function IconConfigs(props: SvgIconProps): react_jsx_runtime.JSX.Element;
394
+ declare function IconHistoricoPadrao(props: SvgIconProps): react_jsx_runtime.JSX.Element;
447
395
 
448
- declare function IconBlocked(props: SvgIconProps): react_jsx_runtime.JSX.Element;
396
+ declare function IconImovel(props: SvgIconProps): react_jsx_runtime.JSX.Element;
449
397
 
450
- declare function IconUsers(props: SvgIconProps): react_jsx_runtime.JSX.Element;
398
+ declare function Iconlancamento(props: SvgIconProps): react_jsx_runtime.JSX.Element;
399
+
400
+ declare function ChevronLeft(props: SvgIconProps): react_jsx_runtime.JSX.Element;
401
+
402
+ declare function ChevronRight(props: SvgIconProps): react_jsx_runtime.JSX.Element;
403
+
404
+ declare function IconCalendar(props: SvgIconProps): react_jsx_runtime.JSX.Element;
405
+
406
+ declare function IconSave(props: SvgIconProps): react_jsx_runtime.JSX.Element;
451
407
 
452
408
  declare const Icon: {
453
409
  Circle: typeof IconCircle;
@@ -467,20 +423,29 @@ declare const Icon: {
467
423
  OpenPanel: typeof IconOpenPanel;
468
424
  ClosePanel: typeof IconClosePanel;
469
425
  Menu: typeof IconMenu;
470
- Configs: typeof IconConfigs$1;
471
- Users: typeof IconUsers$1;
426
+ Configs: typeof IconConfigs;
427
+ Users: typeof IconUsers;
472
428
  Password: typeof IconPasswords;
473
429
  Logout: typeof IconLogout;
474
430
  History: typeof IconHistory;
475
431
  Help: typeof IconHelp;
476
432
  Video: typeof IconVideo;
477
433
  Docs: typeof IconDocs;
478
- Block: typeof IconBlock;
434
+ Block: typeof IconBlock$1;
479
435
  Maps: typeof IconMaps;
480
436
  MapPin: typeof IconMapPin;
481
- Estoque: typeof IconConfigs;
482
- Blocked: typeof IconBlocked;
483
- Profile: typeof IconUsers;
437
+ HandShake: typeof IconHandShake;
438
+ Store: typeof IconStore;
439
+ Download: typeof IconBlock;
440
+ ContaBancaria: typeof IconContaBancaria;
441
+ GrupoLancamento: typeof IconGrupoLancamento;
442
+ HistoricoPadrao: typeof IconHistoricoPadrao;
443
+ Imovel: typeof IconImovel;
444
+ Lancamento: typeof Iconlancamento;
445
+ ChevronLeft: typeof ChevronLeft;
446
+ ChevronRight: typeof ChevronRight;
447
+ Calendar: typeof IconCalendar;
448
+ Save: typeof IconSave;
484
449
  };
485
450
 
486
451
  interface MenuItemProps {
@@ -531,4 +496,129 @@ declare const ContentTitle: {
531
496
  Root: typeof ContentTitleRoot;
532
497
  };
533
498
 
534
- export { AlterarSenha, AlterarSenhaProps, Avatar, Breadcrumbs, BreadcrumbsItem, BreadcrumbsProps, Button, ButtonContainer, Checkbox, CheckboxProps, ColorsGrid, Content, ContentProps, ContentTitle, CurrencyCellStyle, CurrencyTextField, DataTable, DataTableOptions, DataTableOptionsProps, DataTableProps, DeleteContainer, DeleteContainerProps, Dialog$1 as Dialog, DialogProps, Dialog as DialogV2, DrawerMenu, DrawerMenuProps, Editable, EditableProps, FilterContainer, FilterControl, FilterProps, Flag, FormContainer, FormContainerProps, Header, Icon, LabelValue, LabelValueProps, Menu, MenuItemProps$1 as MenuItemProps, MioAuth, MioAuthProps, OptionStyles, PageTitle, PasswordTextField, Profile, ProfileProps, SearchTextField, Surface, Tooltip, TooltipProps, Transporter, TransporterProps, renderMenuItems, theme };
499
+ interface RootProps extends Omit<DialogProps$1, 'onClose'> {
500
+ height?: number | string;
501
+ children: ReactNode;
502
+ onClose: (result: any) => Promise<void>;
503
+ }
504
+ declare function DialogRoot({ children, height, fullWidth, ...rest }: RootProps): react_jsx_runtime.JSX.Element;
505
+
506
+ interface DialogProviderProps {
507
+ children: React__default.ReactNode;
508
+ }
509
+ declare function DialogProvider({ children }: DialogProviderProps): react_jsx_runtime.JSX.Element;
510
+
511
+ interface DialogAdicionarButtonProps<T> extends Omit<ButtonProps$2, 'onClick'> {
512
+ dialogComponent: DialogComponent<any, any>;
513
+ payload: T;
514
+ label?: string;
515
+ }
516
+ declare function DialogAdicionarButton<T>(props: DialogAdicionarButtonProps<T>): react_jsx_runtime.JSX.Element;
517
+
518
+ declare function DialogHeader(props: StackProps): react_jsx_runtime.JSX.Element;
519
+
520
+ declare function Title(props: TypographyProps): react_jsx_runtime.JSX.Element;
521
+
522
+ interface DialogActionCloseProps {
523
+ onClose: (result?: any) => Promise<void>;
524
+ }
525
+ declare function DialogActionClose({ onClose }: DialogActionCloseProps): react_jsx_runtime.JSX.Element;
526
+
527
+ declare function DialogContent({ children, ...rest }: StackProps): react_jsx_runtime.JSX.Element;
528
+
529
+ declare function Footer(props: StackProps): react_jsx_runtime.JSX.Element;
530
+
531
+ declare function DialogActions(props: StackProps): react_jsx_runtime.JSX.Element;
532
+
533
+ declare function DialogActionCancelar$1({ children, ...rest }: ButtonProps$2): react_jsx_runtime.JSX.Element;
534
+
535
+ type ButtonProps = {
536
+ isLoading: boolean;
537
+ label?: string;
538
+ } & ButtonProps$2;
539
+ declare function DialogActionCancelar({ children, label, ...rest }: ButtonProps): react_jsx_runtime.JSX.Element;
540
+
541
+ declare function DialogConfirmDelete({ open, onClose, payload, }: DialogProps$2<{
542
+ identificador: any;
543
+ useRemover: any;
544
+ }>): react_jsx_runtime.JSX.Element;
545
+
546
+ declare const Dialog: {
547
+ Root: typeof DialogRoot;
548
+ Provider: typeof DialogProvider;
549
+ AdicionarButton: typeof DialogAdicionarButton;
550
+ Header: typeof DialogHeader;
551
+ Title: typeof Title;
552
+ ActionClose: typeof DialogActionClose;
553
+ Content: typeof DialogContent;
554
+ Footer: typeof Footer;
555
+ Actions: typeof DialogActions;
556
+ ActionCancelar: typeof DialogActionCancelar$1;
557
+ ActionSalvar: typeof DialogActionCancelar;
558
+ ConfirmDelete: typeof DialogConfirmDelete;
559
+ };
560
+
561
+ declare function FilterAdvancedButton(): react_jsx_runtime.JSX.Element;
562
+
563
+ interface FilterAdvancedContainerProps {
564
+ children: ReactNode;
565
+ }
566
+ declare function FilterAdvancedContainer(props: FilterAdvancedContainerProps): react_jsx_runtime.JSX.Element;
567
+
568
+ declare function FilterContainer({ children }: {
569
+ children: ReactNode;
570
+ }): react_jsx_runtime.JSX.Element;
571
+
572
+ interface FilterProviderProps<T = any> {
573
+ children: ReactNode;
574
+ filterValues?: T;
575
+ storagePath?: string;
576
+ }
577
+ declare function FilterProvider<T>(props: FilterProviderProps<T>): react_jsx_runtime.JSX.Element;
578
+
579
+ interface FilterRootProps {
580
+ children: ReactNode;
581
+ }
582
+ declare function FilterRoot(props: FilterRootProps): react_jsx_runtime.JSX.Element;
583
+
584
+ interface FilterSearchTextFieldProps extends Omit<InputBaseProps, 'onChange'> {
585
+ onChange: (query: string) => void;
586
+ }
587
+ declare function FilterSearchTextField(props: FilterSearchTextFieldProps): react_jsx_runtime.JSX.Element;
588
+
589
+ declare function ApplyButton(): react_jsx_runtime.JSX.Element;
590
+
591
+ declare function ResetButton(): react_jsx_runtime.JSX.Element;
592
+
593
+ interface FilterAdvancedActionsContainerProps {
594
+ children: React__default.ReactNode;
595
+ }
596
+ declare function FilterAdvancedActionsContainer({ children, }: FilterAdvancedActionsContainerProps): react_jsx_runtime.JSX.Element;
597
+
598
+ interface FilterChipsProps {
599
+ children: ReactNode;
600
+ }
601
+ declare function FilterChips({ children: childrenProp, }: FilterChipsProps): react_jsx_runtime.JSX.Element;
602
+
603
+ interface FiltrerChipProps extends Omit<ChipProps, 'children'> {
604
+ children?: ReactNode;
605
+ name: string;
606
+ disabledDelete?: boolean;
607
+ }
608
+ declare function FiltrerChip(props: FiltrerChipProps): react_jsx_runtime.JSX.Element;
609
+
610
+ declare const Filter: {
611
+ Root: typeof FilterRoot;
612
+ SearchTextField: typeof FilterSearchTextField;
613
+ Container: typeof FilterContainer;
614
+ AdvancedContainer: typeof FilterAdvancedContainer;
615
+ AdvancedActionsContainer: typeof FilterAdvancedActionsContainer;
616
+ AdvancedButton: typeof FilterAdvancedButton;
617
+ Provider: typeof FilterProvider;
618
+ ApplyButton: typeof ApplyButton;
619
+ ResetButton: typeof ResetButton;
620
+ Chips: typeof FilterChips;
621
+ Chip: typeof FiltrerChip;
622
+ };
623
+
624
+ export { AlterarSenha, AlterarSenhaProps, Avatar, Breadcrumbs, BreadcrumbsItem, BreadcrumbsProps, Button, ButtonContainer, Checkbox, CheckboxProps, ColorsGrid, Content, ContentProps, ContentTitle, CurrencyCellStyle, CurrencyTextField, DataTable, DataTableOptions, DataTableOptionsProps, DataTableProps, DeleteContainer, DeleteContainerProps, Dialog$1 as Dialog, DialogProps, Dialog as DialogV2, DrawerMenu, DrawerMenuProps, Editable, EditableProps, Filter, FilterContainer$1 as FilterContainer, FilterControl, FilterProps, Flag, FormContainer, FormContainerProps, Header, Icon, LabelValue, LabelValueProps, Menu, MenuItemProps$1 as MenuItemProps, MioAuth, MioAuthProps, OptionStyles, PageTitle, PasswordTextField, Profile, ProfileProps, SearchTextField, Surface, Tooltip, TooltipProps, Transporter, TransporterProps, renderMenuItems, theme };