@nulogy/components 8.11.1 → 8.13.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 (114) hide show
  1. package/dist/main.js +2599 -2444
  2. package/dist/main.module.js +2596 -2442
  3. package/dist/src/Alert/Alert.d.ts +2 -3
  4. package/dist/src/Alert/Alert.story.d.ts +0 -1
  5. package/dist/src/Alert/CloseButton.d.ts +0 -1
  6. package/dist/src/AsyncSelect/AsyncSelect.story.d.ts +0 -1
  7. package/dist/src/Banner/Banner.story.d.ts +0 -1
  8. package/dist/src/Box/Box.story.d.ts +0 -1
  9. package/dist/src/BrandedNavBar/NavBar.d.ts +0 -1
  10. package/dist/src/BrandedNavBar/NavBar.story.d.ts +0 -1
  11. package/dist/src/BrandedNavBar/NulogyLogo.d.ts +0 -1
  12. package/dist/src/BrandedNavBar/NulogyLogoContainer.d.ts +0 -1
  13. package/dist/src/BrandedNavBar/SmallNavBar.story.d.ts +0 -1
  14. package/dist/src/Branding/Branding.d.ts +0 -1
  15. package/dist/src/Branding/Branding.story.d.ts +0 -1
  16. package/dist/src/Breadcrumbs/Breadcrumbs.story.d.ts +0 -1
  17. package/dist/src/Button/Button.story.d.ts +0 -1
  18. package/dist/src/Button/ControlIcon.story.d.ts +0 -1
  19. package/dist/src/Button/IconicButton.story.d.ts +0 -1
  20. package/dist/src/ButtonGroup/ButtonGroup.story.d.ts +0 -1
  21. package/dist/src/Card/Card.story.d.ts +0 -1
  22. package/dist/src/Checkbox/Checkbox.story.d.ts +0 -1
  23. package/dist/src/Checkbox/CheckboxGroup.story.d.ts +0 -1
  24. package/dist/src/DatePicker/DatePicker.d.ts +4 -1
  25. package/dist/src/DatePicker/DatePicker.story.d.ts +0 -1
  26. package/dist/src/DatePicker/DatePickerInput.d.ts +2 -0
  27. package/dist/src/DateRange/DateRange.story.d.ts +0 -1
  28. package/dist/src/Divider/Divider.d.ts +0 -1
  29. package/dist/src/Divider/Divider.story.d.ts +0 -1
  30. package/dist/src/DropdownMenu/DropdownMenu.story.d.ts +0 -1
  31. package/dist/src/FieldLabel/FieldLabel.d.ts +0 -1
  32. package/dist/src/FieldLabel/FieldLabel.story.d.ts +0 -1
  33. package/dist/src/FieldLabel/MaybeFieldLabel.d.ts +0 -1
  34. package/dist/src/FieldLabel/RequirementText.d.ts +0 -1
  35. package/dist/src/Flex/Flex.story.d.ts +0 -1
  36. package/dist/src/Form/Form.story.d.ts +0 -1
  37. package/dist/src/Icon/Icon.story.d.ts +0 -1
  38. package/dist/src/Input/Input.story.d.ts +0 -1
  39. package/dist/src/Input/Prefix.d.ts +0 -1
  40. package/dist/src/Input/Suffix.d.ts +0 -1
  41. package/dist/src/Layout/ApplicationFrame.story.d.ts +0 -1
  42. package/dist/src/Layout/Header.story.d.ts +0 -1
  43. package/dist/src/Layout/Page.story.d.ts +0 -1
  44. package/dist/src/Layout/Sidebar.story.d.ts +0 -1
  45. package/dist/src/Link/Link.story.d.ts +0 -1
  46. package/dist/src/List/List.story.d.ts +0 -1
  47. package/dist/src/LoadingAnimation/LoadingAnimation.story.d.ts +0 -1
  48. package/dist/src/Modal/Modal.story.d.ts +0 -1
  49. package/dist/src/NDSProvider/NDSProvider.d.ts +0 -1
  50. package/dist/src/NDSProvider/renderWithNDSProvider.spec-utils.d.ts +1 -1
  51. package/dist/src/NavBar/DesktopMenu.d.ts +0 -1
  52. package/dist/src/NavBar/MenuTrigger.d.ts +0 -1
  53. package/dist/src/NavBar/MobileMenu.d.ts +0 -1
  54. package/dist/src/NavBar/NavBar.story.d.ts +0 -1
  55. package/dist/src/NavBar/SubMenuTrigger.d.ts +0 -1
  56. package/dist/src/Overlay/Overlay.story.d.ts +0 -1
  57. package/dist/src/Pagination/NextButton.d.ts +0 -1
  58. package/dist/src/Pagination/Pagination.story.d.ts +0 -1
  59. package/dist/src/Pagination/PreviousButton.d.ts +0 -1
  60. package/dist/src/Radio/Radio.story.d.ts +0 -1
  61. package/dist/src/Radio/RadioGroup.d.ts +0 -1
  62. package/dist/src/Radio/RadioGroup.story.d.ts +0 -1
  63. package/dist/src/RangeContainer/RangeContainer.story.d.ts +0 -1
  64. package/dist/src/Select/Select.story.d.ts +0 -1
  65. package/dist/src/Select/SelectComponents.d.ts +0 -1
  66. package/dist/src/Select/SelectOption.d.ts +0 -1
  67. package/dist/src/StatusIndicator/StatusIndicator.story.d.ts +0 -1
  68. package/dist/src/Summary/Summary.story.d.ts +0 -1
  69. package/dist/src/Summary/SummaryDivider.d.ts +0 -1
  70. package/dist/src/Switcher/Switch.story.d.ts +0 -1
  71. package/dist/src/Switcher/Switcher.story.d.ts +0 -1
  72. package/dist/src/Table/BaseTable.story.d.ts +0 -1
  73. package/dist/src/Table/SortingColumnHeader.d.ts +0 -1
  74. package/dist/src/Table/SortingColumnHeader.story.d.ts +0 -1
  75. package/dist/src/Table/Table.d.ts +0 -1
  76. package/dist/src/Table/Table.story.d.ts +0 -1
  77. package/dist/src/Table/TableBody.d.ts +0 -1
  78. package/dist/src/Table/TableFoot.d.ts +0 -1
  79. package/dist/src/Table/TableWithCustomSorting.story.d.ts +0 -1
  80. package/dist/src/Table/TableWithFiltering.story.d.ts +0 -1
  81. package/dist/src/Table/TableWithSelectableRows.story.d.ts +0 -1
  82. package/dist/src/Table/TableWithServerSidePagination.story.d.ts +0 -1
  83. package/dist/src/Tabs/Tabs.story.d.ts +0 -1
  84. package/dist/src/Textarea/Textarea.story.d.ts +0 -1
  85. package/dist/src/TimePicker/TimePicker.story.d.ts +0 -1
  86. package/dist/src/TimeRange/TimeRange.story.d.ts +0 -1
  87. package/dist/src/Toast/Toast.d.ts +30 -7
  88. package/dist/src/Toast/Toast.story.d.ts +0 -1
  89. package/dist/src/ToastContainer/ToastContainer.d.ts +20 -0
  90. package/dist/src/ToastContainer/ToastContainer.story.d.ts +5 -0
  91. package/dist/src/ToastContainer/ToastFunction.d.ts +14 -0
  92. package/dist/src/ToastContainer/index.d.ts +2 -0
  93. package/dist/src/Toggle/Toggle.story.d.ts +0 -1
  94. package/dist/src/Tokens/Tokens.story.d.ts +0 -1
  95. package/dist/src/Tooltip/Tooltip.story.d.ts +0 -1
  96. package/dist/src/TruncatedText/MaybeTooltip.d.ts +0 -1
  97. package/dist/src/TruncatedText/TruncatedText.d.ts +0 -1
  98. package/dist/src/TruncatedText/TruncatedText.story.d.ts +0 -1
  99. package/dist/src/TruncatedText/TruncatedTextFillWidth.d.ts +0 -1
  100. package/dist/src/TruncatedText/TruncatedTextMaxCharacters.d.ts +0 -1
  101. package/dist/src/Type/Headings.story.d.ts +0 -1
  102. package/dist/src/Type/Text.story.d.ts +0 -1
  103. package/dist/src/Type/Typography.story.d.ts +0 -1
  104. package/dist/src/Validation/InlineValidation.story.d.ts +0 -1
  105. package/dist/src/Validation/mapErrorsToList.d.ts +0 -1
  106. package/dist/src/VisualTests/Select.story.d.ts +0 -1
  107. package/dist/src/VisualTests/WithSpace.story.d.ts +0 -1
  108. package/dist/src/index.d.ts +1 -0
  109. package/dist/src/pages/ErrorPage.story.d.ts +0 -1
  110. package/dist/src/pages/LoginPage.story.d.ts +0 -1
  111. package/dist/src/utils/datePickerLocales.d.ts +1 -1
  112. package/dist/src/utils/numberFromDimension/index.d.ts +5 -0
  113. package/dist/src/utils/numberFromDimension/numberFromDimension.spec.d.ts +1 -0
  114. package/package.json +9 -8
@@ -1,7 +1,6 @@
1
- import React from "react";
2
- import { BoxProps } from "../Box/Box";
1
+ import { FlexProps } from "../Flex/Flex";
3
2
  type NotificationType = "danger" | "informative" | "success" | "warning";
4
- export type AlertProps = BoxProps & React.HTMLProps<HTMLDivElement> & {
3
+ export type AlertProps = FlexProps & {
5
4
  isCloseable?: boolean;
6
5
  closeAriaLabel?: string;
7
6
  title?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type CloseButtonProps = {
3
2
  onClick: any;
4
3
  "aria-label": string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const WithCallToAction: () => JSX.Element;
3
2
  export declare const Dismissible: () => JSX.Element;
4
3
  export declare const AboveTheNavbar: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const NAVBAR_HEIGHT = "56px";
3
2
  type BaseNavBarProps = {
4
3
  menuData?: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const NulogyLogo: () => JSX.Element;
3
2
  export default NulogyLogo;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type NulogyLogoContainerProps = {
3
2
  subText?: string;
4
3
  height?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  parameters: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type BrandingProps = {
3
2
  logoType?: "wordmark" | "lettermark";
4
3
  logoColor?: "blue" | "white";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,9 +1,12 @@
1
1
  import React from "react";
2
+ import type { ReactDatePickerProps } from "react-datepicker";
2
3
  import { FieldProps } from "../Form/Field";
3
4
  type DatePickerProps = FieldProps & {
4
5
  selected?: any;
5
6
  dateFormat?: string;
6
- onChange?: (...args: any[]) => any;
7
+ onChange?: ReactDatePickerProps["onChange"];
8
+ onBlur?: ReactDatePickerProps["onBlur"];
9
+ onFocus?: ReactDatePickerProps["onFocus"];
7
10
  onInputChange?: (...args: any[]) => any;
8
11
  inputProps?: any;
9
12
  errorMessage?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,5 +1,7 @@
1
1
  import React from "react";
2
2
  type DatePickerInputProps = {
3
+ onBlur?: React.ComponentPropsWithRef<"input">["onBlur"];
4
+ onFocus?: React.ComponentPropsWithRef<"input">["onFocus"];
3
5
  onClick?: (...args: any[]) => any;
4
6
  onChange?: (...args: any[]) => any;
5
7
  onUpKeyPress?: (...args: any[]) => any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BoxProps } from "../Box/Box";
3
2
  type DividerProps = BoxProps;
4
3
  declare const Divider: ({ borderColor, ...props }: DividerProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  component: ({ borderColor, ...props }: import("../Box/Box").BoxProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldLabelProps } from "./FieldLabel.type";
3
2
  declare const FieldLabel: {
4
3
  ({ labelText, requirementText, helpText, children, ...props }: FieldLabelProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const MaybeFieldLabel: ({ labelText, children, ...props }: any) => JSX.Element;
3
2
  export default MaybeFieldLabel;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TextProps } from "../Type/Text";
3
2
  declare const RequirementText: (props: TextProps) => JSX.Element;
4
3
  export default RequirementText;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TextProps } from "../Type/Text";
3
2
  type PrefixProps = TextProps & {
4
3
  prefix?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TextProps } from "../Type/Text";
3
2
  type SuffixProps = TextProps & {
4
3
  suffix?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  parameters: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const Default: () => JSX.Element;
3
2
  export declare const WithActions: () => JSX.Element;
4
3
  export declare const WithSubTitle: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  parameters: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  parameters: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ThemeType } from "../theme.type";
3
2
  type NDSProviderProps = {
4
3
  theme?: ThemeType;
@@ -1 +1 @@
1
- export function renderWithNDSProvider(component: any, locale?: string): import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries")>;
1
+ export function renderWithNDSProvider(component: any, locale?: string): import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import PropTypes from "prop-types";
3
2
  declare const DesktopMenu: import("styled-components").StyledComponent<{
4
3
  ({ menuData, themeColorObject, ...props }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import PropTypes from "prop-types";
3
2
  export type MenuTriggerProps = {
4
3
  name?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import PropTypes from "prop-types";
3
2
  declare const MobileMenu: import("styled-components").StyledComponent<{
4
3
  ({ menuData, closeMenu, subtext, includeSubtext, themeColorObject, ...props }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import PropTypes from "prop-types";
3
2
  declare const SubMenuTrigger: {
4
3
  (props: any): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import PropTypes from "prop-types";
3
2
  declare const NextButton: {
4
3
  ({ disabled, onClick, label, "aria-label": ariaLabel }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import PropTypes from "prop-types";
3
2
  declare const PreviousButton: {
4
3
  ({ disabled, onClick, label, "aria-label": ariaLabel }: any): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface RadioGroupProps {
3
2
  className?: string;
4
3
  id?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  parameters: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const SelectControl: (props: any) => JSX.Element;
3
2
  export declare const SelectMultiValue: (props: any) => JSX.Element;
4
3
  export declare const SelectClearIndicator: (props: any) => JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const SelectOption: (props: any) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare function Default(): JSX.Element;
3
2
  export declare function WithMainInfoOnly(): JSX.Element;
4
3
  declare const _default: {
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const SummaryDivider: (props: any) => JSX.Element;
3
2
  export default SummaryDivider;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const WithSelectedValue: () => JSX.Element;
3
2
  export declare const WithOtherInteractiveElements: () => JSX.Element;
4
3
  export declare const WithContent: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import PropTypes from "prop-types";
3
2
  declare const SortingColumnHeader: {
4
3
  ({ onChange, label, ascending, active, ariaLabel }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StatefulTableProps } from "./StatefulTable";
3
2
  import { ColumnType, RowType, CellInfoType } from "./Table.types";
4
3
  export type TableProps = StatefulTableProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type TableBodyProps = {
3
2
  rows: any[];
4
3
  columns: any[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import PropTypes from "prop-types";
3
2
  declare const TableFoot: {
4
3
  ({ columns, rows, keyField, loading, compact }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -1,21 +1,44 @@
1
- /// <reference types="react" />
2
1
  import { AlertProps } from "../Alert/Alert";
3
2
  type ToastProps = AlertProps & {
4
3
  triggered?: boolean;
5
- onShow?: (...args: any[]) => any;
6
- onHide?: (...args: any[]) => any;
4
+ isCloseable?: boolean;
7
5
  showDuration?: number;
8
- onHidden?: (...args: any[]) => any;
6
+ onShow?: () => void;
7
+ onHide?: () => void;
8
+ onHidden?: () => void;
9
+ };
10
+ export declare const TOAST_SHOW_DURATION = 2000;
11
+ export declare const toastAnimationConfig: {
12
+ initial: {
13
+ opacity: number;
14
+ y: number;
15
+ };
16
+ animate: {
17
+ opacity: number;
18
+ y: number;
19
+ transition: {
20
+ type: string;
21
+ bounce: number;
22
+ duration: number;
23
+ };
24
+ };
25
+ exit: {
26
+ y: number;
27
+ opacity: number;
28
+ transition: {
29
+ ease: string;
30
+ duration: number;
31
+ };
32
+ };
9
33
  };
10
34
  export declare const Toast: {
11
35
  ({ triggered, onHide, onShow, isCloseable, children, showDuration, onHidden, zIndex, ...props }: ToastProps): JSX.Element;
12
36
  defaultProps: {
13
37
  triggered: boolean;
14
- onShow: () => void;
15
- onHide: () => void;
16
- children: any;
17
38
  isCloseable: boolean;
18
39
  showDuration: number;
40
+ onShow: () => void;
41
+ onHide: () => void;
19
42
  onHidden: () => void;
20
43
  };
21
44
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  title: string;
4
3
  };
@@ -0,0 +1,20 @@
1
+ import { ToasterProps } from "react-hot-toast";
2
+ import { ToastOptions } from "./ToastFunction";
3
+ type ToastContainerProps = {
4
+ gap?: number;
5
+ maxVisibleToasts?: number;
6
+ toastOptions?: ToastOptions;
7
+ } & Omit<ToasterProps, "gutter" | "toastOptions">;
8
+ declare const ToastContainer: {
9
+ ({ gap, maxVisibleToasts, toastOptions, ...props }: ToastContainerProps): JSX.Element;
10
+ defaultProps: {
11
+ position: string;
12
+ reverseOrder: boolean;
13
+ containerClassName: string;
14
+ toastOptions: {
15
+ duration: number;
16
+ };
17
+ maxVisibleToasts: number;
18
+ };
19
+ };
20
+ export default ToastContainer;
@@ -0,0 +1,5 @@
1
+ export declare const WithEverything: () => JSX.Element;
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;