plataforma-fundacao-componentes 2.25.11 → 2.26.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.
Files changed (97) hide show
  1. package/dist/assets/icons/PercentLoaderIcon.d.ts +1 -1
  2. package/dist/assets/icons/ThreeDotsLoader.d.ts +3 -4
  3. package/dist/components/accordion/Accordion.stories.d.ts +9 -10
  4. package/dist/components/bigBlockButton/BigBlockButton.d.ts +4 -6
  5. package/dist/components/bottomNavigation/BottomNavigation.d.ts +1 -1
  6. package/dist/components/bottomNavigation/BottomNavigation.stories.d.ts +14 -14
  7. package/dist/components/breadCrumb/BreadCrumb.stories.d.ts +5 -6
  8. package/dist/components/button/Button.d.ts +6 -27
  9. package/dist/components/calendar/Calendar.d.ts +1 -1
  10. package/dist/components/calendar/components/calendarDays/CalendarDays.d.ts +4 -4
  11. package/dist/components/calendar/components/calendarMonthDay/CalendarMonthDay.d.ts +1 -1
  12. package/dist/components/card/Card.stories.d.ts +8 -7
  13. package/dist/components/carousel/Carousel.stories.d.ts +6 -7
  14. package/dist/components/carouselPersona/CarouselPersona.stories.d.ts +5 -6
  15. package/dist/components/carouselTouchFrendly/CarouselTouchFrendly.stories.d.ts +6 -7
  16. package/dist/components/chart/components/moneyMonthLineChart/MoneyMonthLineChart.d.ts +2 -1
  17. package/dist/components/chart/doughnutSquare/DoughnutSquare.stories.d.ts +9 -8
  18. package/dist/components/chart/moneyByMonth/MoneyByMonth.d.ts +2 -1
  19. package/dist/components/chart/moneyByMonth/MoneyByMonth.stories.d.ts +3 -2
  20. package/dist/components/checkbox/Checkbox.d.ts +0 -1
  21. package/dist/components/checkbox/Checkbox.stories.d.ts +9 -10
  22. package/dist/components/col/Col.stories.d.ts +6 -7
  23. package/dist/components/collapse/Collapse.stories.d.ts +5 -6
  24. package/dist/components/container/Container.stories.d.ts +6 -7
  25. package/dist/components/controlLabel/ControlLabel.d.ts +1 -1
  26. package/dist/components/datePicker/DatePicker.d.ts +1 -6
  27. package/dist/components/datePicker/DatePicker.stories.d.ts +7 -8
  28. package/dist/components/doughnut/Doughnut.d.ts +1 -6
  29. package/dist/components/doughnut/Doughnut.stories.d.ts +21 -25
  30. package/dist/components/elementPaginator/ElementPaginator.stories.d.ts +5 -6
  31. package/dist/components/etapas/Etapas.stories.d.ts +10 -11
  32. package/dist/components/etiqueta/Etiqueta.stories.d.ts +28 -34
  33. package/dist/components/fileLoader/FileLoader.stories.d.ts +7 -8
  34. package/dist/components/fileUpload/FileUpload.d.ts +1 -2
  35. package/dist/components/fileUpload/FileUpload.stories.d.ts +14 -13
  36. package/dist/components/footerSicredi/FooterSicredi.stories.d.ts +9 -10
  37. package/dist/components/fullHeightContainer/FullHeightContainer.stories.d.ts +7 -8
  38. package/dist/components/header/Header.d.ts +2 -3
  39. package/dist/components/header/Header.stories.d.ts +12 -13
  40. package/dist/components/iconButton/IconButton.d.ts +0 -1
  41. package/dist/components/iconButton/IconButton.stories.d.ts +7 -8
  42. package/dist/components/inputArea/InputArea.d.ts +0 -1
  43. package/dist/components/inputArea/InputArea.stories.d.ts +16 -17
  44. package/dist/components/menu/components/menuItem/MenuItem.d.ts +1 -2
  45. package/dist/components/menu/components/menuItem/MenuItem.stories.d.ts +8 -9
  46. package/dist/components/modal/Modal.d.ts +280 -20
  47. package/dist/components/modal/Modal.stories.d.ts +1 -0
  48. package/dist/components/modal/ModalMask.d.ts +2 -1
  49. package/dist/components/modal/ModalTypes.d.ts +3 -18
  50. package/dist/components/pageTitle/PageTitle.stories.d.ts +7 -6
  51. package/dist/components/pagination/Pagination.d.ts +1 -1
  52. package/dist/components/pagination/Pagination.stories.d.ts +46 -60
  53. package/dist/components/paginator/Paginator.stories.d.ts +16 -15
  54. package/dist/components/radioButton/RadioButton.d.ts +1 -2
  55. package/dist/components/row/Row.stories.d.ts +5 -6
  56. package/dist/components/select/Select.stories.d.ts +1 -0
  57. package/dist/components/switch/Switch.d.ts +0 -1
  58. package/dist/components/switch/Switch.stories.d.ts +8 -9
  59. package/dist/components/table/Table.d.ts +1 -1
  60. package/dist/components/tableFileNameAndAction/TableFileNameAndAction.d.ts +10 -9
  61. package/dist/components/tableFileNameAndAction/TableFileNameAndAction.stories.d.ts +7 -8
  62. package/dist/components/textEditor/TextEditor.d.ts +0 -1
  63. package/dist/components/textEditor/TextEditor.stories.d.ts +11 -12
  64. package/dist/components/textEditor/components/textEditorColorPicker/TextEditorColorPicker.d.ts +3 -8
  65. package/dist/components/textEditor/components/textEditorInput/TextEditorHeaderInput.d.ts +2 -7
  66. package/dist/components/textEditor/components/textEditorTitleChoser/TextEditorTitleChoser.d.ts +3 -8
  67. package/dist/components/textEditor/components/textEditorUrlCreator/TextEditorUrlCreator.d.ts +3 -8
  68. package/dist/components/toast/Toast.d.ts +0 -2
  69. package/dist/components/toastManager/ToastManager.d.ts +7 -1
  70. package/dist/components/toastManager/ToastManager.stories.d.ts +5 -6
  71. package/dist/components/tooltip/Tooltip.stories.d.ts +8 -9
  72. package/dist/components/tooltipManager/TooltipManager.stories.d.ts +7 -8
  73. package/dist/components/topLoader/TopLoader.stories.d.ts +6 -7
  74. package/dist/components/videoModal/VideoModal.d.ts +273 -10
  75. package/dist/components/videoPlayer/VideoPlayer.stories.d.ts +10 -11
  76. package/dist/hooks/useDebounce/useDebounce.d.ts +5 -0
  77. package/dist/hooks/useDebounce/useDebounce.stories.d.ts +10 -0
  78. package/dist/hooks/useHTMLShare/useHTMLShare.d.ts +1 -1
  79. package/dist/hooks/usePagination/usePagination.d.ts +1 -1
  80. package/dist/hooks/usePublicMenuList/usePublicMenuList.d.ts +1 -1
  81. package/dist/hooks/useScreenSize/useScreenSize.d.ts +7 -8
  82. package/dist/hooks/useStorageState/useStorageState.d.ts +1 -1
  83. package/dist/hooks/useToastManager/useToastManager.d.ts +1 -1
  84. package/dist/hooks/useValidatedState/useValidatedState.d.ts +1 -1
  85. package/dist/index.css +74 -75
  86. package/dist/index.d.ts +3 -2
  87. package/dist/index.js +2704 -2676
  88. package/dist/index.js.map +1 -1
  89. package/dist/index.modern.js +2380 -2351
  90. package/dist/index.modern.js.map +1 -1
  91. package/dist/libraries/ModalSize.d.ts +2 -1
  92. package/dist/libraries/ScreenSizes.d.ts +7 -0
  93. package/dist/utils/ArrayUtils.d.ts +1 -2
  94. package/dist/utils/HTMLutils.d.ts +3 -3
  95. package/dist/utils/MaskUtils.d.ts +8 -8
  96. package/dist/utils/ScrollUtils.d.ts +1 -1
  97. package/package.json +4 -4
@@ -8,12 +8,7 @@ export interface AlertModalProps<Req = any, Res = any> extends ModalProps {
8
8
  disabled?: boolean;
9
9
  showIcons?: boolean;
10
10
  }
11
- export declare function AlertModal(props: AlertModalProps): React.JSX.Element;
12
- export declare namespace AlertModal {
13
- var defaultProps: {
14
- showIcons: boolean;
15
- };
16
- }
11
+ export declare function AlertModal({ disabled, language, onConfirm, showIcons, ...props }: AlertModalProps): React.JSX.Element;
17
12
  export interface ConfirmModalProps<Req = any, Res = any> extends ModalProps {
18
13
  language?: {
19
14
  confirm: string;
@@ -24,12 +19,7 @@ export interface ConfirmModalProps<Req = any, Res = any> extends ModalProps {
24
19
  showIcons?: boolean;
25
20
  disabled?: boolean;
26
21
  }
27
- export declare function ConfirmModal(props: ConfirmModalProps): React.JSX.Element;
28
- export declare namespace ConfirmModal {
29
- var defaultProps: {
30
- showIcons: boolean;
31
- };
32
- }
22
+ export declare function ConfirmModal({ disabled, language, onCancel, onConfirm, showIcons, ...props }: ConfirmModalProps): React.JSX.Element;
33
23
  export interface DestructiveModalProps extends ModalProps {
34
24
  language?: {
35
25
  confirm: string;
@@ -40,9 +30,4 @@ export interface DestructiveModalProps extends ModalProps {
40
30
  onCancel: () => void;
41
31
  showIcons?: boolean;
42
32
  }
43
- export declare function DestructiveModal(props: DestructiveModalProps): React.JSX.Element;
44
- export declare namespace DestructiveModal {
45
- var defaultProps: {
46
- showIcons: boolean;
47
- };
48
- }
33
+ export declare function DestructiveModal({ disabled, language, onCancel, onConfirm, showIcons, ...props }: DestructiveModalProps): React.JSX.Element;
@@ -1,7 +1,8 @@
1
- declare namespace _default {
2
- export const title: string;
3
- export { PageTitle as component };
4
- }
1
+ import React from 'react';
2
+ import PageTitle from './PageTitle';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof PageTitle;
6
+ };
5
7
  export default _default;
6
- export function Primary(): import("react").JSX.Element;
7
- import PageTitle from "./PageTitle";
8
+ export declare const Primary: () => React.JSX.Element;
@@ -17,7 +17,7 @@ interface PaginationProps {
17
17
  totalItems: number;
18
18
  };
19
19
  rowsPerPage?: {
20
- options: Number[];
20
+ options: number[];
21
21
  rows: number;
22
22
  onChange: onChangeType;
23
23
  };
@@ -1,61 +1,47 @@
1
- declare namespace _default {
2
- export const title: string;
3
- export { Pagination as component };
4
- }
1
+ import React, { ComponentProps } from 'react';
2
+ import Pagination from './Pagination';
3
+ declare const _default: {
4
+ title: string;
5
+ };
5
6
  export default _default;
6
- export function WithSiblings(args: any): import("react").JSX.Element;
7
- export namespace WithSiblings {
8
- export namespace args {
9
- export const siblingCount: number;
10
- export const boundaryCount: number;
11
- export const totalPages: number;
12
- export const disabled: boolean;
13
- export const loading: boolean;
14
- export const hideNextButton: boolean;
15
- export const hidePrevButton: boolean;
16
- }
17
- }
18
- export function WithoutSiblings(args: any): import("react").JSX.Element;
19
- export namespace WithoutSiblings {
20
- export namespace args_1 {
21
- export const maxLength: number;
22
- const totalPages_1: number;
23
- export { totalPages_1 as totalPages };
24
- const boundaryCount_1: number;
25
- export { boundaryCount_1 as boundaryCount };
26
- const disabled_1: boolean;
27
- export { disabled_1 as disabled };
28
- const loading_1: boolean;
29
- export { loading_1 as loading };
30
- const hideNextButton_1: boolean;
31
- export { hideNextButton_1 as hideNextButton };
32
- const hidePrevButton_1: boolean;
33
- export { hidePrevButton_1 as hidePrevButton };
34
- }
35
- export { args_1 as args };
36
- }
37
- export function PageCounter(args: any): import("react").JSX.Element;
38
- export namespace PageCounter {
39
- export namespace args_2 {
40
- const boundaryCount_2: number;
41
- export { boundaryCount_2 as boundaryCount };
42
- const disabled_2: boolean;
43
- export { disabled_2 as disabled };
44
- const loading_2: boolean;
45
- export { loading_2 as loading };
46
- const hideNextButton_2: boolean;
47
- export { hideNextButton_2 as hideNextButton };
48
- const hidePrevButton_2: boolean;
49
- export { hidePrevButton_2 as hidePrevButton };
50
- const maxLength_1: number;
51
- export { maxLength_1 as maxLength };
52
- export namespace countPages {
53
- export const rows: number;
54
- export const totalItems: number;
55
- }
56
- }
57
- export { args_2 as args };
58
- }
59
- export function PageSize(args: any): import("react").JSX.Element;
60
- export function CounterAndPageSize(args: any): import("react").JSX.Element;
61
- import Pagination from "./Pagination";
7
+ export declare const WithSiblings: {
8
+ (args: ComponentProps<typeof Pagination>): React.JSX.Element;
9
+ args: {
10
+ siblingCount: number;
11
+ boundaryCount: number;
12
+ totalPages: number;
13
+ disabled: boolean;
14
+ loading: boolean;
15
+ hideNextButton: boolean;
16
+ hidePrevButton: boolean;
17
+ };
18
+ };
19
+ export declare const WithoutSiblings: {
20
+ (args: ComponentProps<typeof Pagination>): React.JSX.Element;
21
+ args: {
22
+ maxLength: number;
23
+ totalPages: number;
24
+ boundaryCount: number;
25
+ disabled: boolean;
26
+ loading: boolean;
27
+ hideNextButton: boolean;
28
+ hidePrevButton: boolean;
29
+ };
30
+ };
31
+ export declare const PageCounter: {
32
+ (args: ComponentProps<typeof Pagination>): React.JSX.Element;
33
+ args: {
34
+ boundaryCount: number;
35
+ disabled: boolean;
36
+ loading: boolean;
37
+ hideNextButton: boolean;
38
+ hidePrevButton: boolean;
39
+ maxLength: number;
40
+ countPages: {
41
+ rows: number;
42
+ totalItems: number;
43
+ };
44
+ };
45
+ };
46
+ export declare const PageSize: () => React.JSX.Element;
47
+ export declare const CounterAndPageSize: () => React.JSX.Element;
@@ -1,16 +1,17 @@
1
- declare namespace _default {
2
- export const title: string;
3
- export { Paginator as component };
4
- }
1
+ import React, { ComponentProps } from 'react';
2
+ import Paginator from './Paginator';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof Paginator;
6
+ };
5
7
  export default _default;
6
- export function Example(args: any): import("react").JSX.Element;
7
- export namespace Example {
8
- export namespace args {
9
- export const quantidadeDePaginas: number;
10
- export const limiter: number;
11
- export const maxLength: number;
12
- export const loading: boolean;
13
- }
14
- }
15
- export function ExampleWithInteraction(): import("react").JSX.Element;
16
- import Paginator from "./Paginator";
8
+ export declare const Example: {
9
+ (args: ComponentProps<typeof Paginator>): React.JSX.Element;
10
+ args: {
11
+ quantidadeDePaginas: number;
12
+ limiter: number;
13
+ maxLength: number;
14
+ loading: boolean;
15
+ };
16
+ };
17
+ export declare const ExampleWithInteraction: () => React.JSX.Element;
@@ -8,14 +8,13 @@ interface RadioButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonEle
8
8
  'tooltip-text'?: string;
9
9
  value: boolean;
10
10
  theme?: RadioButtonType;
11
- onChange: (value: boolean) => void;
11
+ onChange?: (value: boolean) => void;
12
12
  }
13
13
  declare function RadioButton(props: RadioButtonProps): React.JSX.Element;
14
14
  declare namespace RadioButton {
15
15
  var defaultProps: {
16
16
  disabled: boolean;
17
17
  value: boolean;
18
- onChange: () => void;
19
18
  theme: RadioButtonType;
20
19
  };
21
20
  }
@@ -1,7 +1,6 @@
1
- declare namespace _default {
2
- export const title: string;
3
- export { Row as component };
4
- }
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
5
  export default _default;
6
- export function Primary(): import("react").JSX.Element;
7
- import Row from "./Row";
6
+ export declare const Primary: () => React.JSX.Element;
@@ -20,3 +20,4 @@ export declare const MultipleWithoutOptions: () => React.JSX.Element;
20
20
  export declare const MultiplePreSelectUniqueOption: () => React.JSX.Element;
21
21
  export declare const MultiplePreSelectUniqueOptionReadOnly: () => React.JSX.Element;
22
22
  export declare const TwoTest: () => React.JSX.Element;
23
+ export declare const NumberValue: () => React.JSX.Element;
@@ -16,7 +16,6 @@ declare namespace Switch {
16
16
  var defaultProps: {
17
17
  disabled: boolean;
18
18
  value: boolean;
19
- onChange: () => void;
20
19
  scale: number;
21
20
  };
22
21
  }
@@ -1,10 +1,9 @@
1
- declare namespace _default {
2
- export const title: string;
3
- export { Switch as component };
4
- }
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
5
  export default _default;
6
- export function Primary(): import("react").JSX.Element;
7
- export function Scaled(): import("react").JSX.Element;
8
- export function DisabledOn(): import("react").JSX.Element;
9
- export function DisabledOff(): import("react").JSX.Element;
10
- import Switch from "./Switch";
6
+ export declare const Primary: () => React.JSX.Element;
7
+ export declare const Scaled: () => React.JSX.Element;
8
+ export declare const DisabledOn: () => React.JSX.Element;
9
+ export declare const DisabledOff: () => React.JSX.Element;
@@ -43,5 +43,5 @@ export interface TypedTableProps<R extends indexes> extends BasicTableProps {
43
43
  lines?: LineObject<R>[];
44
44
  }
45
45
  export declare function TypedTable<R extends indexes>(props: TypedTableProps<R>): React.JSX.Element;
46
- export default function Table(props: TableProps): JSX.Element;
46
+ export default function Table({ columns, lines, onSort, confirmSort, sortable, upperHeader, className, ...props }: TableProps): JSX.Element;
47
47
  export {};
@@ -1,15 +1,16 @@
1
1
  import React from 'react';
2
2
  import './TableFileNameAndAction.scss';
3
+ export declare type TableFileName = {
4
+ file?: File;
5
+ name?: string;
6
+ progress?: number;
7
+ indefinido?: boolean;
8
+ uploading?: boolean;
9
+ error?: boolean;
10
+ disabled?: boolean;
11
+ };
3
12
  export interface TableFileNameAndActionProps {
4
- files: {
5
- file?: Blob | any;
6
- name?: string;
7
- progress?: number;
8
- indefinido?: boolean;
9
- uploading?: boolean;
10
- error?: boolean;
11
- disabled?: boolean;
12
- }[];
13
+ files: TableFileName[];
13
14
  white?: boolean;
14
15
  rightIcon?: React.ReactNode;
15
16
  onRightIconClick?: (event: number) => void;
@@ -1,9 +1,8 @@
1
- declare namespace _default {
2
- export const title: string;
3
- export { TableFileNameAndAction as component };
4
- }
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
5
  export default _default;
6
- export function Primary(): import("react").JSX.Element;
7
- export function White(): import("react").JSX.Element;
8
- export function WithLoader(): import("react").JSX.Element;
9
- import TableFileNameAndAction from "./TableFileNameAndAction";
6
+ export declare const Primary: () => React.JSX.Element;
7
+ export declare const White: () => React.JSX.Element;
8
+ export declare const WithLoader: () => React.JSX.Element;
@@ -16,7 +16,6 @@ declare namespace TextEditor {
16
16
  var defaultProps: {
17
17
  disabled: boolean;
18
18
  value: string;
19
- onChange: () => void;
20
19
  };
21
20
  }
22
21
  export default TextEditor;
@@ -1,13 +1,12 @@
1
- declare namespace _default {
2
- export const title: string;
3
- export { TextEditor as component };
4
- }
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
5
  export default _default;
6
- export function Primary(): import("react").JSX.Element;
7
- export function TopLabelHelperText(): import("react").JSX.Element;
8
- export function Disabled(): import("react").JSX.Element;
9
- export function Error(): import("react").JSX.Element;
10
- export function OnChangeListener(): import("react").JSX.Element;
11
- export function WithValue(): import("react").JSX.Element;
12
- export function ShowHTML(): import("react").JSX.Element;
13
- import TextEditor from "./TextEditor";
6
+ export declare const Primary: () => React.JSX.Element;
7
+ export declare const TopLabelHelperText: () => React.JSX.Element;
8
+ export declare const Disabled: () => React.JSX.Element;
9
+ export declare const Error: () => React.JSX.Element;
10
+ export declare const OnChangeListener: () => React.JSX.Element;
11
+ export declare const WithValue: () => React.JSX.Element;
12
+ export declare const ShowHTML: () => React.JSX.Element;
@@ -1,14 +1,9 @@
1
1
  import React from 'react';
2
2
  import './TextEditorColorPicker.scss';
3
3
  interface Props {
4
- onChange: (color: string) => void;
4
+ onChange?: (color: string) => void;
5
5
  atualColor?: string;
6
6
  opened: boolean;
7
7
  }
8
- declare function TextEditorColorPicker(props: Props): React.JSX.Element;
9
- declare namespace TextEditorColorPicker {
10
- var defaultProps: {
11
- onChange: () => void;
12
- };
13
- }
14
- export default TextEditorColorPicker;
8
+ export default function TextEditorColorPicker(props: Props): React.JSX.Element;
9
+ export {};
@@ -4,10 +4,5 @@ interface Props extends InputHTMLAttributes<HTMLInputElement> {
4
4
  label?: string;
5
5
  onEnter: () => void;
6
6
  }
7
- declare function TextEditorHeaderInput(props: Props): React.JSX.Element;
8
- declare namespace TextEditorHeaderInput {
9
- var defaultProps: {
10
- onChange: () => void;
11
- };
12
- }
13
- export default TextEditorHeaderInput;
7
+ export default function TextEditorHeaderInput(props: Props): React.JSX.Element;
8
+ export {};
@@ -1,13 +1,8 @@
1
1
  import React from 'react';
2
2
  import './TextEditorTitleChoser.scss';
3
3
  interface Props {
4
- onChange: (text: string) => void;
4
+ onChange?: (text: string) => void;
5
5
  opened: boolean;
6
6
  }
7
- declare function TextEditorTitleChoser(props: Props): React.JSX.Element;
8
- declare namespace TextEditorTitleChoser {
9
- var defaultProps: {
10
- onChange: () => void;
11
- };
12
- }
13
- export default TextEditorTitleChoser;
7
+ export default function TextEditorTitleChoser(props: Props): React.JSX.Element;
8
+ export {};
@@ -2,13 +2,8 @@ import React from 'react';
2
2
  import './TextEditorUrlCreator.scss';
3
3
  interface Props {
4
4
  opened?: boolean;
5
- onChange: (textValue: string, urlValue: string, newTab: boolean) => void;
5
+ onChange?: (textValue: string, urlValue: string, newTab: boolean) => void;
6
6
  editorId: string;
7
7
  }
8
- declare function TextEditorUrlCreator(props: Props): React.JSX.Element;
9
- declare namespace TextEditorUrlCreator {
10
- var defaultProps: {
11
- onChange: () => void;
12
- };
13
- }
14
- export default TextEditorUrlCreator;
8
+ export default function TextEditorUrlCreator(props: Props): React.JSX.Element;
9
+ export {};
@@ -21,8 +21,6 @@ declare namespace Toast {
21
21
  theme: ToastTypes;
22
22
  showActionButton: boolean;
23
23
  actionButtonText: string;
24
- onActionButtonClick: () => void;
25
- onClose: () => void;
26
24
  };
27
25
  }
28
26
  export default Toast;
@@ -1,4 +1,6 @@
1
1
  import React from 'react';
2
+ import { ToastTypes } from '../../libraries/Toast';
3
+ import { ToastProps } from '../toast/Toast';
2
4
  import './../../hooks/useToastManager/useToastManager.scss';
3
5
  interface ToastManagerProps {
4
6
  max?: string | number;
@@ -9,5 +11,9 @@ interface ToastManagerProps {
9
11
  animateSize?: boolean;
10
12
  pauseOnFocusLoss?: boolean;
11
13
  }
12
- export declare const ToastManager: React.ForwardRefExoticComponent<ToastManagerProps & React.RefAttributes<unknown>>;
14
+ export interface ToastManagerRefType {
15
+ showToast: (toast: ToastProps | string, theme?: ToastTypes, timeout?: number, showStatusBar?: boolean, prevent?: boolean) => void;
16
+ clearToast: () => void;
17
+ }
18
+ export declare const ToastManager: React.ForwardRefExoticComponent<ToastManagerProps & React.RefAttributes<ToastManagerRefType>>;
13
19
  export {};
@@ -1,7 +1,6 @@
1
- declare namespace _default {
2
- export const title: string;
3
- export { ToastManager as component };
4
- }
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
5
  export default _default;
6
- export function Default(): import("react").JSX.Element;
7
- import { ToastManager } from "./ToastManager";
6
+ export declare const Default: () => React.JSX.Element;
@@ -1,10 +1,9 @@
1
- declare namespace _default {
2
- export const title: string;
3
- export { Tooltip as component };
4
- }
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
5
  export default _default;
6
- export function Bottom(): import("react").JSX.Element;
7
- export function Top(): import("react").JSX.Element;
8
- export function Right(): import("react").JSX.Element;
9
- export function Left(): import("react").JSX.Element;
10
- import Tooltip from "./Tooltip";
6
+ export declare const Bottom: () => React.JSX.Element;
7
+ export declare const Top: () => React.JSX.Element;
8
+ export declare const Right: () => React.JSX.Element;
9
+ export declare const Left: () => React.JSX.Element;
@@ -1,9 +1,8 @@
1
- declare namespace _default {
2
- export const title: string;
3
- export { TooltipManager as component };
4
- }
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
5
  export default _default;
6
- export function Example(): import("react").JSX.Element;
7
- export function ElementExample(): import("react").JSX.Element;
8
- export function PageChange(): import("react").JSX.Element;
9
- import TooltipManager from "./TooltipManager";
6
+ export declare const Example: () => React.JSX.Element;
7
+ export declare const ElementExample: () => React.JSX.Element;
8
+ export declare const PageChange: () => React.JSX.Element;
@@ -1,8 +1,7 @@
1
- declare namespace _default {
2
- export const title: string;
3
- export { TopLoader as component };
4
- }
1
+ import React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
5
  export default _default;
6
- export function Loader(): import("react").JSX.Element;
7
- export function LoaderWithStatus(): import("react").JSX.Element;
8
- import TopLoader from "./TopLoader";
6
+ export declare const Loader: () => React.JSX.Element;
7
+ export declare const LoaderWithStatus: () => React.JSX.Element;