@fattureincloud/fic-design-system 0.4.18 → 0.4.21

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 (63) hide show
  1. package/dist/common/components/Spinner.d.ts +1 -0
  2. package/dist/components/dropdown/DropdownImpl.d.ts +2 -1
  3. package/dist/components/dropdown/components/DefaultDropdown.d.ts +7 -2
  4. package/dist/components/dropdown/components/DefaultTrigger.d.ts +1 -0
  5. package/dist/components/dropdown/components/Item.d.ts +5 -2
  6. package/dist/components/dropdown/types.d.ts +2 -0
  7. package/dist/components/dropdown/utils.d.ts +1 -2
  8. package/dist/components/floatingBadge/withBadge.d.ts +1 -0
  9. package/dist/components/form/datepicker/DatePicker.d.ts +1 -0
  10. package/dist/components/form/datepicker/components/CustomButton.d.ts +1 -0
  11. package/dist/components/form/datepicker/components/DatePickerHeader.d.ts +1 -0
  12. package/dist/components/form/datepicker/components/MonthPicker.d.ts +1 -0
  13. package/dist/components/form/datepicker/components/YearPicker.d.ts +1 -0
  14. package/dist/components/form/fileUploader/FileUploader.d.ts +1 -0
  15. package/dist/components/form/inputText/components/StatusIcon.d.ts +1 -0
  16. package/dist/components/form/inputText/components/UnitDropdown.d.ts +1 -0
  17. package/dist/components/form/inputText/components/unitDropdown/UnitDropdownTrigger.d.ts +1 -0
  18. package/dist/components/form/select/Select.d.ts +1 -0
  19. package/dist/components/form/select/components/ClearIndicator.d.ts +1 -0
  20. package/dist/components/form/select/components/Control.d.ts +1 -0
  21. package/dist/components/form/select/components/DropdownIndicator.d.ts +1 -0
  22. package/dist/components/form/select/components/FooterActions.d.ts +1 -0
  23. package/dist/components/form/select/components/MenuList.d.ts +1 -0
  24. package/dist/components/form/select/components/Option.d.ts +1 -0
  25. package/dist/components/form/textArea/TextArea.d.ts +1 -0
  26. package/dist/components/form/textArea/components/CharCounter.d.ts +1 -0
  27. package/dist/components/form/textArea/components/TextAreaElement.d.ts +1 -0
  28. package/dist/components/icon/Icon.d.ts +1 -0
  29. package/dist/components/layout/sidebarItem/components/SidebarItemDropdown.d.ts +1 -0
  30. package/dist/components/microTag/MicroTag.d.ts +1 -0
  31. package/dist/components/stepper/Stepper.d.ts +1 -0
  32. package/dist/components/stepper/components/StepItem.d.ts +1 -0
  33. package/dist/components/table/Table.d.ts +6 -4
  34. package/dist/components/table/components/Pagination.d.ts +1 -0
  35. package/dist/components/table/components/SelectedRowsCount.d.ts +1 -0
  36. package/dist/components/table/components/actions/DropdownActions.d.ts +1 -0
  37. package/dist/components/table/components/actions/PrimaryAction.d.ts +1 -0
  38. package/dist/components/table/components/checkboxes/Cell.d.ts +1 -0
  39. package/dist/components/table/components/checkboxes/Header.d.ts +1 -0
  40. package/dist/components/table/components/loadingCell/LoadingCell.d.ts +1 -0
  41. package/dist/components/table/components/pagination/PaginationButtons.d.ts +1 -0
  42. package/dist/components/table/components/tableBody/TableBody.d.ts +6 -2
  43. package/dist/components/table/components/tableBody/TableBodyTr.d.ts +1 -0
  44. package/dist/components/table/components/tableHeader/SortIndicator.d.ts +1 -0
  45. package/dist/components/table/components/tableHeader/TableHeader.d.ts +1 -0
  46. package/dist/components/table/components/tableParts/styled.d.ts +1 -1
  47. package/dist/components/table/stories/components/CustomPerson.d.ts +1 -0
  48. package/dist/components/table/stories/components/Role.d.ts +1 -0
  49. package/dist/components/table/utils.d.ts +0 -1
  50. package/dist/components/tabs/dropdownTabs/TabsDropdown.d.ts +1 -0
  51. package/dist/components/tabs/dropdownTabs/TabsDropdownTrigger.d.ts +1 -0
  52. package/dist/components/tabs/dropdownTabs.d.ts +1 -0
  53. package/dist/components/tabs/scrollableTabs.d.ts +1 -0
  54. package/dist/components/toast/components/toastContent.d.ts +10 -1
  55. package/dist/components/toast/index.d.ts +2 -3
  56. package/dist/components/toast/toast.d.ts +2 -9
  57. package/dist/components/toast/typings/toast.d.ts +2 -0
  58. package/dist/index.d.ts +2 -1
  59. package/dist/index.esm.js +5 -5
  60. package/dist/index.esm.js.map +1 -1
  61. package/dist/index.js +4 -4
  62. package/dist/index.js.map +1 -1
  63. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface Props {
2
3
  className?: string;
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DropdownProps } from './types';
2
- declare const DropdownImpl: (props: DropdownProps) => JSX.Element;
3
+ declare const DropdownImpl: ({ className, content, fullWidth, maxWidth, minWidthAsTrigger, placement, renderContent, renderTrigger, triggerStyles, title, forceOpen, disableArrowNavigation, maxHeight, isSmall, }: DropdownProps) => JSX.Element;
3
4
  export default DropdownImpl;
@@ -1,9 +1,14 @@
1
+ import React from 'react';
1
2
  import { DropdownItemProps, DropdownProps } from '../types';
2
3
  interface Props {
4
+ closeDropdown: () => void;
5
+ componentId: string;
3
6
  content: DropdownItemProps[];
7
+ disableArrowNavigation: boolean;
4
8
  fullWidth: DropdownProps['fullWidth'];
5
9
  maxWidth: DropdownProps['maxWidth'];
6
- closeDropdown: () => void;
10
+ rowHasFocus: boolean;
11
+ setHighlightedItem: React.Dispatch<React.SetStateAction<number>>;
7
12
  }
8
- declare const DefaultDropdown: ({ closeDropdown, content, fullWidth, maxWidth }: Props) => JSX.Element;
13
+ declare const DefaultDropdown: ({ closeDropdown, componentId, content, fullWidth, maxWidth, rowHasFocus, setHighlightedItem, }: Props) => JSX.Element;
9
14
  export default DefaultDropdown;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface DropdownTriggerProps {
2
3
  title: string;
3
4
  }
@@ -1,9 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import { DropdownItemProps } from '../types';
3
3
  import { DropdownItemStyles } from '../utils';
4
- declare const Item: ({ active, className, icon, onClick, shortcut, text, isDisabled, ...rest }: DropdownItemProps) => JSX.Element;
4
+ declare const Item: ({ active, className, componentId, icon, isDisabled, onClick, rowHasFocus, shortcut, text, ...rest }: DropdownItemProps & {
5
+ componentId?: string | undefined;
6
+ rowHasFocus?: boolean | undefined;
7
+ }) => JSX.Element;
5
8
  export interface StyledItemProps extends Pick<DropdownItemProps, 'fullWidth' | 'maxWidth' | 'active' | 'isDisabled' | 'type'> {
6
- hasAction: boolean;
9
+ rowHasFocus: boolean;
7
10
  }
8
11
  export declare const StyledItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, DropdownItemStyles & StyledItemProps, keyof DropdownItemStyles>;
9
12
  export default Item;
@@ -19,6 +19,7 @@ export declare type DropdownProps = {
19
19
  placement?: Placement;
20
20
  minWidthAsTrigger?: boolean;
21
21
  forceOpen?: boolean;
22
+ disableArrowNavigation?: boolean;
22
23
  isSmall?: boolean;
23
24
  maxHeight?: number;
24
25
  };
@@ -35,6 +36,7 @@ export interface DropdownItemProps {
35
36
  children?: React.ReactChild;
36
37
  isDisabled?: boolean;
37
38
  type?: DropdownItemType;
39
+ onMouseEnter?: () => void;
38
40
  }
39
41
  export interface UserListItemProps {
40
42
  img?: string;
@@ -9,7 +9,6 @@ export interface DropdownItemStyles {
9
9
  background: paletteColor;
10
10
  color: paletteColor;
11
11
  hoverBackground: paletteColor;
12
- cursor: string;
13
12
  }
14
- export declare const getDropdownItemStyles: ({ theme, isDisabled, active, hasAction, type, }: GetDropdownItemStylesParams) => DropdownItemStyles;
13
+ export declare const getDropdownItemStyles: ({ theme, isDisabled, active, type, }: GetDropdownItemStylesParams) => DropdownItemStyles;
15
14
  export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { WithBadgeProps } from './types';
2
3
  declare const WithBadge: (props: WithBadgeProps) => JSX.Element;
3
4
  export default WithBadge;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { LabelProps } from '../label';
2
3
  import { DatePickerImplProps } from './DatePickerImpl';
3
4
  export declare type DatePickerProps = LabelProps & DatePickerImplProps;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface Props {
2
3
  onClick: () => void;
3
4
  selected?: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ReactDatePickerCustomHeaderProps } from 'react-datepicker';
2
3
  export interface DatePickerHeaderProps extends ReactDatePickerCustomHeaderProps {
3
4
  allowMonthView: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ReactDatePickerCustomHeaderProps } from 'react-datepicker';
2
3
  declare type Props = Pick<ReactDatePickerCustomHeaderProps, 'changeMonth' | 'date'>;
3
4
  declare const MonthPicker: ({ changeMonth, date }: Props) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ReactDatePickerCustomHeaderProps } from 'react-datepicker';
2
3
  interface Props extends Pick<ReactDatePickerCustomHeaderProps, 'date' | 'changeYear'> {
3
4
  yearsDisplayed: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FileRejection } from 'react-dropzone';
2
3
  import { CustomPalette, FileType, FileUploaderSize, FileUploaderStatus } from './types';
3
4
  export declare type fileUploaderOnDrop = (acceptedFiles: File[], rejectedFiles: FileRejection[]) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { statusType } from '../../common/types';
2
3
  interface Props {
3
4
  status: statusType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DropdownProps } from '../../../dropdown/types';
2
3
  import { Unit } from './unitDropdown/UnitDropdownTrigger';
3
4
  export interface UnitDropdownProps extends Pick<DropdownProps, 'renderContent' | 'placement' | 'className' | 'triggerStyles' | 'content' | 'maxWidth' | 'minWidthAsTrigger' | 'forceOpen'> {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface Unit {
2
3
  name: string;
3
4
  shortName?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { OptionType } from './components/Option';
2
3
  import { AsyncCreatableSelectProps, AsyncSelectProps, CreatableSelectProps, SelectProps } from './types';
3
4
  export declare const Select: <O extends OptionType = OptionType, IsMulti extends boolean = false>(props: SelectProps<O, IsMulti, import("react-select").Props<O, IsMulti, import("react-select").GroupTypeBase<O>>>) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IndicatorProps } from 'react-select/src/components/indicators';
2
3
  import { OptionType } from './Option';
3
4
  declare const ClearIndicator: <O extends OptionType = OptionType, IsMulti extends boolean = false>({ isDisabled, clearValue, }: IndicatorProps<O, IsMulti, import("react-select").GroupTypeBase<O>>) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ControlProps } from 'react-select';
2
3
  import { OptionType } from './Option';
3
4
  declare const Control: <O extends OptionType = OptionType, IsMulti extends boolean = false>({ innerProps: { onMouseDown }, children, }: ControlProps<O, IsMulti, import("react-select").GroupTypeBase<O>>) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IndicatorProps } from 'react-select';
2
3
  import { OptionType } from './Option';
3
4
  declare const DropdownIndicator: <O extends OptionType = OptionType, IsMulti extends boolean = false>({ selectProps, }: IndicatorProps<O, IsMulti, import("react-select").GroupTypeBase<O>>) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DropdownItemProps } from '../../../dropdown';
2
3
  export interface SelectActionsType extends DropdownItemProps {
3
4
  closeOnClick?: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { MenuListComponentProps } from 'react-select/src/components/Menu';
2
3
  import { OptionType } from './Option';
3
4
  declare const MenuList: <O extends OptionType = OptionType, IsMulti extends boolean = false>(props: MenuListComponentProps<O, IsMulti, import("react-select").GroupTypeBase<O>>) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { OptionProps } from 'react-select';
2
3
  import { OptionTypeBase } from 'react-select/src/types';
3
4
  import { IconProps } from '../../../icon';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { LabelProps } from '../label';
2
3
  import { TextAreaElementProps } from './types';
3
4
  export declare type TextAreaProps = LabelProps & TextAreaElementProps;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface CharCounterProps extends CharCounterOptions {
2
3
  length: number;
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { BoxedInputWrapperProps } from '../../common/styles';
2
3
  import { TextAreaElementProps } from '../types';
3
4
  declare const TextAreaElement: ({ autoFocus, onBlur, onChange, value, placeholder, disabled, name, onKeyPress, status, onKeyDown, onKeyUp, onFocus, className, setValue, initialHeight, maxLength, isResizable, showCounter, isPrefilled, }: TextAreaElementProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
2
3
  import { iconColors } from './iconPalette';
3
4
  export interface IconProps extends Omit<FontAwesomeIconProps, 'color'> {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DropdownItemProps } from '../../../dropdown';
2
3
  interface Props {
3
4
  content: DropdownItemProps[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TagType } from './types';
2
3
  export interface MicroTagProps {
3
4
  text: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface StepperProps {
2
3
  steps: string[];
3
4
  currentStep: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { stepStatusType } from '../types';
2
3
  interface Props {
3
4
  text?: string;
@@ -24,6 +24,7 @@ export interface TableProps<T extends TableData> extends UseTableOptions<T> {
24
24
  bodyHeight?: number | string;
25
25
  headerHeight?: number | string;
26
26
  rowHeight?: number | string;
27
+ disableArrowNavigation?: boolean;
27
28
  }
28
29
  /**
29
30
  * Component Props:
@@ -45,9 +46,10 @@ export interface TableProps<T extends TableData> extends UseTableOptions<T> {
45
46
  * @param {boolean} isLoading Apply loading style to all cells
46
47
  * @param {object} actions Configuration to render actions column
47
48
  * @param {function} renderActions Used to customize actions column
48
- * @param {number|string} bodyHeight Set tbody height, default 300px (if number is provided is considered as measure in pixels)
49
- * @param {number|string} headerHeight Set thead and th height, default 40px (if number is provided is considered as measure in pixels)
50
- * @param {number|string} rowHeight Set row height, default 40px (if number is provided is considered as measure in pixels)
49
+ * @param {number|string} bodyHeight Set tbody height, default 300px
50
+ * @param {number|string} headerHeight Set thead and th height, default 40px
51
+ * @param {number|string} rowHeight Set row height, default 40px
52
+ * @param {boolean} disableArrowNavigation Used to turn off Up/Down row selection and Enter click
51
53
  */
52
- declare const Table: <T extends TableData>({ actions, bodyHeight, columns, data, EmptyPage, Footer, globalFilter: externalGlobalFilter, headerHeight, hideHeader, isLoading, manualPagination, noPagination, onRowClick, onScroll, onSelectionChange, onSort, preSelectAllRows, renderActions, rowHeight, selectableRows, sortable, withCheckbox, pageSize, }: TableProps<T>) => JSX.Element;
54
+ declare const Table: <T extends TableData>({ actions, bodyHeight, columns, data, EmptyPage, Footer, globalFilter: externalGlobalFilter, headerHeight, hideHeader, isLoading, manualPagination, noPagination, onRowClick, onScroll, onSelectionChange, onSort, preSelectAllRows, renderActions, rowHeight, selectableRows, sortable, withCheckbox, pageSize, disableArrowNavigation, }: TableProps<T>) => JSX.Element;
53
55
  export default Table;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { UsePaginationInstanceProps } from 'react-table';
2
3
  import { TableData } from '../types';
3
4
  interface Props<T extends TableData> extends Omit<UsePaginationInstanceProps<T>, 'page' | 'pageOptions' | 'setPageSize'> {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface Props {
2
3
  count: number;
3
4
  resetSelection: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Row } from 'react-table';
2
3
  import { RowAction, TableData } from '../../types';
3
4
  interface Props<T extends TableData> {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Row } from 'react-table';
2
3
  import { DropdownItemType } from '../../../dropdown/types';
3
4
  import { RowAction, TableData } from '../../types';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CellProps } from 'react-table';
2
3
  import { TableData } from '../../types';
3
4
  declare const Cell: <T extends TableData>({ row }: CellProps<T, any>) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { HeaderProps } from 'react-table';
2
3
  import { TableData } from '../../types';
3
4
  declare const Header: <T extends TableData>(props: HeaderProps<T>) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ColumnInstance } from 'react-table';
2
3
  import { TableData } from '../../types';
3
4
  interface LoadingCellProps<T extends TableData> {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { UsePaginationInstanceProps } from 'react-table';
2
3
  import { TableData } from '../../types';
3
4
  interface Props<T extends TableData> {
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { Row, UseTableInstanceProps } from 'react-table';
2
3
  import { TableData } from '../../types';
3
4
  interface Props<T extends TableData> {
@@ -6,8 +7,11 @@ interface Props<T extends TableData> {
6
7
  selectedRowsIds: string[];
7
8
  isLoading: boolean;
8
9
  onRowClick?: (row: Row<T>) => void;
9
- rowHeight?: number | string;
10
+ rowHasFocus: boolean;
11
+ rowHeight: number | string;
10
12
  selectableRows?: boolean;
13
+ setHighlightedRow: React.Dispatch<React.SetStateAction<number>>;
14
+ tableId: string;
11
15
  }
12
- declare const TableBody: <T extends TableData>({ isLoading, onRowClick, prepareRow, rowHeight, rows, selectableRows, selectedRowsIds, }: Props<T>) => JSX.Element;
16
+ declare const TableBody: <T extends TableData>({ isLoading, onRowClick, prepareRow, rowHasFocus, rowHeight, rows, selectableRows, selectedRowsIds, setHighlightedRow, tableId, }: Props<T>) => JSX.Element;
13
17
  export default TableBody;
@@ -2,6 +2,7 @@ import { TableBodyTrStyles } from '../../utils';
2
2
  export interface TableBodyTrProps {
3
3
  isSelected?: boolean;
4
4
  isDisabled?: boolean;
5
+ rowHasFocus: boolean;
5
6
  }
6
7
  declare const TableBodyTr: import("styled-components").StyledComponent<"tr", import("styled-components").DefaultTheme, import("../tableParts/styled").TrProps & TableBodyTrStyles & TableBodyTrProps, keyof TableBodyTrStyles>;
7
8
  export default TableBodyTr;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface Props {
2
3
  isSorted: boolean;
3
4
  isSortedDesc?: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { HeaderGroup, SortingRule } from 'react-table';
2
3
  import { TableData } from '../../types';
3
4
  interface Props<T extends TableData> {
@@ -4,7 +4,7 @@ interface THeadProps {
4
4
  }
5
5
  export declare const THead: import("styled-components").StyledComponent<"thead", import("styled-components").DefaultTheme, THeadProps, never>;
6
6
  interface TableBodyProps {
7
- bodyHeight?: number | string;
7
+ bodyHeight: number | string;
8
8
  }
9
9
  export declare const TBody: import("styled-components").StyledComponent<"tbody", import("styled-components").DefaultTheme, TableBodyProps, never>;
10
10
  export interface TrProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CustomPersonData } from './types';
2
3
  interface Props {
3
4
  value: CustomPersonData;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const rolesArray: readonly ["master", "admin", undefined];
2
3
  export declare type roleType = typeof rolesArray[number];
3
4
  interface Props {
@@ -12,6 +12,5 @@ export interface TableBodyTrStyles {
12
12
  hoverBackground: paletteColor;
13
13
  }
14
14
  export declare const getTableBodyTrStyles: ({ theme, isDisabled, isSelected, }: GetTableBodyTrStylesParams) => TableBodyTrStyles;
15
- export declare const isNumber: (n: number | string | undefined) => boolean;
16
15
  export declare const getIdsFromRows: <T extends TableData>(rows: Row<T>[] | undefined) => string[];
17
16
  export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TabsItem } from '../common/types';
2
3
  interface Props {
3
4
  active: TabsItem['active'];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TabsItem } from '../common/types';
2
3
  interface Props {
3
4
  active: TabsItem['active'];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TabsProps } from './common/types';
2
3
  declare const DropdownTabs: ({ className, distance, lateralPadding, tabs }: TabsProps) => JSX.Element;
3
4
  export default DropdownTabs;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TabsItem } from './common/types';
2
3
  interface Props {
3
4
  className?: string;
@@ -1,8 +1,17 @@
1
1
  /// <reference types="react" />
2
- export declare const StyledIconDiv: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const StyledIconContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
3
+ isCentered: boolean;
4
+ }, never>;
3
5
  export declare const StyledIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
6
+ export declare const ActionButton: import("styled-components").StyledComponent<({ className, color, fullWidth, href, iconLeft, iconRight, isDisabled, isLoading, onClick, size, target, text, type, }: import("../../buttons").ButtonProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
7
+ export declare const StyledTitleContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8
+ export declare const StyledBody: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
9
  export declare const StyledTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
5
10
  export declare const StyledContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
11
+ export declare const StyledTitleText: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
12
  export declare const StyledAction: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
13
  export declare const StyledToast: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8
14
  export declare const StyledActionLabel: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, {}, never>;
15
+ export declare const StyledHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
16
+ isCentered: boolean;
17
+ }, never>;
@@ -1,3 +1,2 @@
1
- import { ToastInterface, ToastProps } from './typings/toast';
2
- declare const Toast: ToastInterface;
3
- export { Toast, ToastProps };
1
+ export { Toast } from './Toast';
2
+ export { ToastInterface, ToastProps } from './typings/toast';
@@ -1,9 +1,2 @@
1
- import { ReactNode } from 'react';
2
- import { ToastProps } from './typings/toast';
3
- export declare const show: (title: ReactNode, options: ToastProps) => string | undefined;
4
- export declare const dismiss: (toastId: string | undefined) => void;
5
- export declare const success: (title: ReactNode, options?: ToastProps | undefined) => string | undefined;
6
- export declare const error: (title: ReactNode, options?: ToastProps | undefined) => string | undefined;
7
- export declare const warning: (title: ReactNode, options?: ToastProps | undefined) => string | undefined;
8
- export declare const standard: (title: ReactNode, options?: ToastProps | undefined) => string | undefined;
9
- export declare const info: (title: ReactNode, options?: ToastProps | undefined) => string | undefined;
1
+ import { ToastInterface } from './typings/toast';
2
+ export declare const Toast: ToastInterface;
@@ -2,6 +2,8 @@ import React, { ReactNode } from 'react';
2
2
  import { ToastPosition } from 'react-toastify/dist/types';
3
3
  import { IconProps } from '../../icon';
4
4
  export declare type toastType = 'standard' | 'error' | 'info' | 'warning' | 'success';
5
+ export declare type toastLibraryType = 'dark' | 'error' | 'info' | 'warning' | 'success';
6
+ export declare const typeMap: Record<toastType, toastLibraryType>;
5
7
  export interface ToastProps {
6
8
  type?: toastType;
7
9
  content?: ReactNode;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import Spinner from 'common/components/Spinner';
1
2
  import { Accordion } from './components/accordions';
2
3
  import { Avatar } from './components/avatar';
3
4
  import { Badge, BadgeProps } from './components/badge';
@@ -39,4 +40,4 @@ import { Tooltip, TooltipPalette, TooltipProps } from './components/tooltip';
39
40
  import { autocompleteYellow } from './styles/defaultPalette/colors/others';
40
41
  import { Theme } from './styles/theme';
41
42
  import { Palette, paletteColor } from './styles/types';
42
- export { autocompleteYellow, paletteColor, Avatar, Banner, BannerProps, Button, ButtonProps, IconButton, IconButtonProps, Icon, IconProps, IconPalette, IconBackground, IconBackgroundPalette, Table, TableProps, TableData, useTableValues, Row, Column, TablePalette, RowActions, ManualPagination, OnSelectionChange, OnSort, Checkbox, useCheckboxValue, CheckboxProps, CheckboxPalette, checkboxStatus, Select, CreatableSelect, AsyncSelect, AsyncCreatableSelect, SelectProps, AsyncSelectProps, AsyncCreatableSelectProps, useSelectSimpleValue, isSimpleValue, simpleValue, CreatableSelectProps, useSelectValue, useSelectMultiValues, SelectPalette, SelectComponentsType, OptionType, PageEmptySet, Modal, ModalBody, ModalSearchable, Tooltip, TooltipProps, TooltipPalette, Accordion, Progressbar, Drawer, Chip, RadioButton, RadioButtonGroup, InlineMessage, Badge, BadgeProps, Dropdown, DropdownItemProps, DropdownPalette, closeDropdownType, renderContentType, DropdownTabs, ScrollableTabs, SidebarItem, sidebarItemHeight, SidebarItemPalette, SidebarItemProps, CustomSidebarItemProps, TabsItem, Stepper, StepperProps, StepperPalette, Tip, ShortcutTip, ThemeProvider, Theme, Palette, GroupedList, ItemType, GroupType, WithBadge, Pagination, Toast, ToastProps, ConfirmationModal, MicroTag, MicroTagProps, MicroTagPalette, Tag, TagProps, TagPalette, InputText, InputTextProps, InputTextPalette, UnitDropdownProps, DatePickerProps, DatePickerPalette, DatePicker, useFormattedDate, timeConversionOptions, InputHelper, InputHelperProps, InputHelperPalette, TextArea, TextAreaProps, TextAreaPalette, FileUploader, FileUploaderProps, FileUploaderPalette, FileRejection, fileUploaderOnDrop, };
43
+ export { autocompleteYellow, paletteColor, Avatar, Banner, BannerProps, Button, ButtonProps, IconButton, IconButtonProps, Icon, IconProps, IconPalette, IconBackground, IconBackgroundPalette, Table, TableProps, TableData, useTableValues, Row, Column, TablePalette, RowActions, ManualPagination, OnSelectionChange, OnSort, Checkbox, useCheckboxValue, CheckboxProps, CheckboxPalette, checkboxStatus, Select, CreatableSelect, AsyncSelect, AsyncCreatableSelect, SelectProps, AsyncSelectProps, AsyncCreatableSelectProps, useSelectSimpleValue, isSimpleValue, simpleValue, CreatableSelectProps, useSelectValue, useSelectMultiValues, SelectPalette, SelectComponentsType, OptionType, PageEmptySet, Modal, ModalBody, ModalSearchable, Tooltip, TooltipProps, TooltipPalette, Accordion, Progressbar, Drawer, Chip, RadioButton, RadioButtonGroup, InlineMessage, Badge, BadgeProps, Dropdown, DropdownItemProps, DropdownPalette, closeDropdownType, renderContentType, DropdownTabs, ScrollableTabs, SidebarItem, sidebarItemHeight, SidebarItemPalette, SidebarItemProps, CustomSidebarItemProps, TabsItem, Stepper, StepperProps, StepperPalette, Tip, ShortcutTip, ThemeProvider, Theme, Palette, GroupedList, ItemType, GroupType, WithBadge, Pagination, Toast, ToastProps, ConfirmationModal, MicroTag, MicroTagProps, MicroTagPalette, Tag, TagProps, TagPalette, InputText, InputTextProps, InputTextPalette, UnitDropdownProps, DatePickerProps, DatePickerPalette, DatePicker, useFormattedDate, timeConversionOptions, InputHelper, InputHelperProps, InputHelperPalette, TextArea, TextAreaProps, TextAreaPalette, FileUploader, FileUploaderProps, FileUploaderPalette, FileRejection, fileUploaderOnDrop, Spinner, };