@fattureincloud/fic-design-system 0.19.0 → 0.19.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (196) hide show
  1. package/dist/components/chart/stories/styled.d.ts +20 -2
  2. package/dist/components/ficFeatures/components/iconSelectionModal/styled.d.ts +3 -2
  3. package/dist/components/ficFeatures/constants/configExample.d.ts +3 -0
  4. package/dist/components/ficFeatures/constants/icons.d.ts +8 -0
  5. package/dist/components/form/inputText/components/InputElement.d.ts +1 -1
  6. package/dist/components/form/inputText/components/types.d.ts +18 -0
  7. package/dist/components/form/inputText/components/unitDropdown/UnitDropdown.d.ts +4 -0
  8. package/dist/components/form/inputText/components/unitDropdown/styled.d.ts +2 -0
  9. package/dist/components/form/inputText/components/unitDropdownContent/UnitDropdownContent.d.ts +8 -0
  10. package/dist/components/form/inputText/components/unitDropdownContent/styled.d.ts +8 -0
  11. package/dist/components/form/inputText/components/unitDropdownTrigger/UnitDropdownTrigger.d.ts +6 -0
  12. package/dist/components/form/inputText/components/unitDropdownTrigger/styled.d.ts +1 -0
  13. package/dist/components/form/inputText/index.d.ts +1 -2
  14. package/dist/components/form/inputText/types.d.ts +1 -1
  15. package/dist/components/inlineMessage/const.d.ts +2 -0
  16. package/dist/index.d.ts +1 -1
  17. package/dist/index.esm.js +9 -9
  18. package/dist/index.esm.js.map +1 -1
  19. package/dist/index.js +9 -9
  20. package/dist/index.js.map +1 -1
  21. package/package.json +1 -2
  22. package/dist/assets/index-0788b002.css +0 -626
  23. package/dist/assets/index.esm-7d789d8e.css +0 -626
  24. package/dist/common/components/Label.d.ts +0 -3
  25. package/dist/common/types/label.d.ts +0 -12
  26. package/dist/common/utils/label.d.ts +0 -5
  27. package/dist/components/accordion-new/Accordion.d.ts +0 -12
  28. package/dist/components/accordion-new/accordion-new.stories.d.ts +0 -4
  29. package/dist/components/accordion-new/components/AccordionIcon.d.ts +0 -3
  30. package/dist/components/accordion-new/components/AccordionItem.d.ts +0 -3
  31. package/dist/components/accordion-new/components/styled.d.ts +0 -8
  32. package/dist/components/accordion-new/index.d.ts +0 -3
  33. package/dist/components/accordion-new/types.d.ts +0 -58
  34. package/dist/components/accordion-new/utils.d.ts +0 -10
  35. package/dist/components/accordions/accordions.d.ts +0 -9
  36. package/dist/components/accordions/accordions.stories.d.ts +0 -8
  37. package/dist/components/accordions/components/styledAccordionWrapper.d.ts +0 -1
  38. package/dist/components/accordions/index.d.ts +0 -1
  39. package/dist/components/accordions/types.d.ts +0 -19
  40. package/dist/components/banner/utils.d.ts +0 -8
  41. package/dist/components/carousel/components/common/styled.d.ts +0 -2
  42. package/dist/components/chart/components/styled.d.ts +0 -13
  43. package/dist/components/checkbox/Checkbox.d.ts +0 -15
  44. package/dist/components/checkbox/checkbox.stories.d.ts +0 -1
  45. package/dist/components/checkbox/checkboxPalette.d.ts +0 -16
  46. package/dist/components/checkbox/components/Input.d.ts +0 -9
  47. package/dist/components/checkbox/components/Label.d.ts +0 -8
  48. package/dist/components/checkbox/hooks/useCheckboxValue.d.ts +0 -11
  49. package/dist/components/checkbox/index.d.ts +0 -4
  50. package/dist/components/checkbox/types.d.ts +0 -19
  51. package/dist/components/checkbox/utils.d.ts +0 -24
  52. package/dist/components/chips/chips.d.ts +0 -7
  53. package/dist/components/chips/chips.stories.d.ts +0 -6
  54. package/dist/components/chips/components/styledChipWrapper.d.ts +0 -4
  55. package/dist/components/chips/index.d.ts +0 -2
  56. package/dist/components/chips/types.d.ts +0 -11
  57. package/dist/components/drawer/types.d.ts +0 -14
  58. package/dist/components/form/checkbox/components/Input.d.ts +0 -9
  59. package/dist/components/form/checkbox/components/Label.d.ts +0 -8
  60. package/dist/components/form/datepicker/StyledDatePicker.d.ts +0 -1
  61. package/dist/components/form/datepicker/components/MonthPicker.d.ts +0 -5
  62. package/dist/components/form/fileUploader/fileTypes.d.ts +0 -3
  63. package/dist/components/form/fileUploader/hooks/useIcon.d.ts +0 -4
  64. package/dist/components/form/fileUploader/hooks/useTexts.d.ts +0 -3
  65. package/dist/components/form/select/components/Placeholder.d.ts +0 -4
  66. package/dist/components/form/select/components/types.d.ts +0 -10
  67. package/dist/components/groupRadioButton/index.d.ts +0 -23
  68. package/dist/components/groupRadioButton/radio-group.stories.d.ts +0 -6
  69. package/dist/components/inlineMessages/components/styledInlineMessageWrapper.d.ts +0 -8
  70. package/dist/components/inlineMessages/index.d.ts +0 -2
  71. package/dist/components/inlineMessages/inlineMessages.d.ts +0 -4
  72. package/dist/components/inlineMessages/inlineMessages.stories.d.ts +0 -7
  73. package/dist/components/inlineMessages/types.d.ts +0 -29
  74. package/dist/components/inputText/components/icons.d.ts +0 -8
  75. package/dist/components/inputText/components/inputContainer.d.ts +0 -1
  76. package/dist/components/inputText/components/messages.d.ts +0 -2
  77. package/dist/components/inputText/components/wrapperTextArea.d.ts +0 -1
  78. package/dist/components/inputText/icons.d.ts +0 -9
  79. package/dist/components/inputText/index.d.ts +0 -3
  80. package/dist/components/inputText/inputText.stories.d.ts +0 -1
  81. package/dist/components/inputText/inputTextStyledWrapper.d.ts +0 -2
  82. package/dist/components/inputText/sideText.d.ts +0 -6
  83. package/dist/components/inputText/typings/enums.d.ts +0 -17
  84. package/dist/components/inputText/typings/inputText.d.ts +0 -43
  85. package/dist/components/inputText/utils.d.ts +0 -8
  86. package/dist/components/newTable/components/action/favorite/Favorite.d.ts +0 -13
  87. package/dist/components/newTable/components/action/favorite/index.d.ts +0 -1
  88. package/dist/components/newTable/components/action/favorite/styled.d.ts +0 -3
  89. package/dist/components/pagination/paginationStyledWrapper.d.ts +0 -1
  90. package/dist/components/progressbar/components/styledProgressbarWrapper.d.ts +0 -2
  91. package/dist/components/radioButton/components/label.d.ts +0 -2
  92. package/dist/components/radioButton/components/radio.d.ts +0 -2
  93. package/dist/components/radioButton/index.d.ts +0 -2
  94. package/dist/components/radioButton/radio.stories.d.ts +0 -6
  95. package/dist/components/radioButton/typings/radioButton.d.ts +0 -21
  96. package/dist/components/select/hooks/constants.d.ts +0 -4613
  97. package/dist/components/select/hooks/useCustomSelectStyle.d.ts +0 -4
  98. package/dist/components/select/index.d.ts +0 -4
  99. package/dist/components/select/select.stories.d.ts +0 -1
  100. package/dist/components/select/typings/select.d.ts +0 -22
  101. package/dist/components/stepBar/components/singleStep.d.ts +0 -3
  102. package/dist/components/stepBar/components/styledStepBarWrapper.d.ts +0 -2
  103. package/dist/components/stepBar/index.d.ts +0 -2
  104. package/dist/components/stepBar/stepBar.d.ts +0 -7
  105. package/dist/components/stepBar/stepBar.stories.d.ts +0 -1
  106. package/dist/components/stepBar/types.d.ts +0 -15
  107. package/dist/components/table/components/EmptyState.d.ts +0 -7
  108. package/dist/components/table/components/SelectedRowsCount.d.ts +0 -7
  109. package/dist/components/table/components/actionLink.d.ts +0 -3
  110. package/dist/components/table/components/actions/ActionsCell.d.ts +0 -10
  111. package/dist/components/table/components/actions/DropdownActions.d.ts +0 -10
  112. package/dist/components/table/components/actions/PrimaryAction.d.ts +0 -12
  113. package/dist/components/table/components/actions/actionsContainer.d.ts +0 -1
  114. package/dist/components/table/components/actions/actionsPopUp.d.ts +0 -12
  115. package/dist/components/table/components/actions/actionsPopUpButton.d.ts +0 -8
  116. package/dist/components/table/components/actions/actionsPopUpUnderlay.d.ts +0 -3
  117. package/dist/components/table/components/checkboxes/Cell.d.ts +0 -5
  118. package/dist/components/table/components/checkboxes/Header.d.ts +0 -5
  119. package/dist/components/table/components/checkboxes/useHeaderCheckboxProps.d.ts +0 -12
  120. package/dist/components/table/components/components/headDesktop.d.ts +0 -15
  121. package/dist/components/table/components/components/listMobile.d.ts +0 -15
  122. package/dist/components/table/components/components/rowDesktop.d.ts +0 -18
  123. package/dist/components/table/components/customizationModal/customizationsModal.d.ts +0 -10
  124. package/dist/components/table/components/customizationModal/index.d.ts +0 -2
  125. package/dist/components/table/components/customizationModal/styledWrapper.d.ts +0 -3
  126. package/dist/components/table/components/customizationModal/useDnd.d.ts +0 -8
  127. package/dist/components/table/components/customizationModal/utils.d.ts +0 -6
  128. package/dist/components/table/components/emptySet.d.ts +0 -10
  129. package/dist/components/table/components/linearBackground.d.ts +0 -1
  130. package/dist/components/table/components/loadingCell/LoadingCell.d.ts +0 -8
  131. package/dist/components/table/components/loadingContent.d.ts +0 -7
  132. package/dist/components/table/components/pagination/PageButton.d.ts +0 -10
  133. package/dist/components/table/components/pagination/PaginationButtons.d.ts +0 -10
  134. package/dist/components/table/components/pagination/utils.d.ts +0 -14
  135. package/dist/components/table/components/pagination.d.ts +0 -8
  136. package/dist/components/table/components/sortIcon.d.ts +0 -2
  137. package/dist/components/table/components/styledWrapper.d.ts +0 -3
  138. package/dist/components/table/components/tableBody/TableBody.d.ts +0 -17
  139. package/dist/components/table/components/tableBody/TableBodyTr.d.ts +0 -8
  140. package/dist/components/table/components/tableHeader/SortIndicator.d.ts +0 -7
  141. package/dist/components/table/components/tableHeader/TableHeader.d.ts +0 -12
  142. package/dist/components/table/components/tableParts/TableTd.d.ts +0 -8
  143. package/dist/components/table/components/tableParts/TableTh.d.ts +0 -4
  144. package/dist/components/table/components/tableParts/styled.d.ts +0 -17
  145. package/dist/components/table/components/unstyledTable.d.ts +0 -11
  146. package/dist/components/table/constants.d.ts +0 -2
  147. package/dist/components/table/hooks/useCheckboxesComponents.d.ts +0 -4
  148. package/dist/components/table/hooks/useRowsSelection.d.ts +0 -4
  149. package/dist/components/table/hooks/useTableHooks.d.ts +0 -6
  150. package/dist/components/table/hooks/useTableValues.d.ts +0 -14
  151. package/dist/components/table/index.d.ts +0 -7
  152. package/dist/components/table/stories/columns.d.ts +0 -3
  153. package/dist/components/table/stories/components/CustomPerson.d.ts +0 -7
  154. package/dist/components/table/stories/components/Role.d.ts +0 -8
  155. package/dist/components/table/stories/components/types.d.ts +0 -14
  156. package/dist/components/table/stories/data.d.ts +0 -2
  157. package/dist/components/table/table.d.ts +0 -57
  158. package/dist/components/table/table.stories.d.ts +0 -6
  159. package/dist/components/table/tablePalette.d.ts +0 -33
  160. package/dist/components/table/types.d.ts +0 -28
  161. package/dist/components/table/typings/main.d.ts +0 -92
  162. package/dist/components/table/utils/configPersistency.d.ts +0 -14
  163. package/dist/components/table/utils.d.ts +0 -16
  164. package/dist/components/textButton/TextButton.d.ts +0 -12
  165. package/dist/components/textButton/index.d.ts +0 -2
  166. package/dist/components/textButton/textButton.stories.d.ts +0 -1
  167. package/dist/components/tip/components/styledTip.d.ts +0 -4
  168. package/dist/components/toast/ToastContainer.d.ts +0 -9
  169. package/dist/components/toast/typings/toast.d.ts +0 -32
  170. package/dist/components/tooltips/components/message.d.ts +0 -12
  171. package/dist/components/tooltips/components/styledTooltipWrapper.d.ts +0 -1
  172. package/dist/components/tooltips/index.d.ts +0 -2
  173. package/dist/components/tooltips/tooltips.d.ts +0 -15
  174. package/dist/components/tooltips/tooltips.stories.d.ts +0 -1
  175. package/dist/components/tooltips/types.d.ts +0 -25
  176. package/dist/components/verticalTab/VerticalTab.d.ts +0 -4
  177. package/dist/components/verticalTab/components/VerticalTabSelector/VerticalTabSelector.d.ts +0 -13
  178. package/dist/components/verticalTab/components/VerticalTabSelector/index.d.ts +0 -5
  179. package/dist/components/verticalTab/components/VerticalTabSelector/styled.d.ts +0 -11
  180. package/dist/components/verticalTab/components/VerticalTabSelector/types.d.ts +0 -37
  181. package/dist/components/verticalTab/components/VerticalTabSelector/verticalTabSelector.stories.d.ts +0 -5
  182. package/dist/components/verticalTab/components/VerticalTabSelector/verticalTabSelectorPalette.d.ts +0 -3
  183. package/dist/components/verticalTab/index.d.ts +0 -2
  184. package/dist/components/verticalTab/styled.d.ts +0 -6
  185. package/dist/components/verticalTab/types.d.ts +0 -6
  186. package/dist/components/verticalTab/verticalTab.stories.d.ts +0 -8
  187. package/dist/styles/elevations.d.ts +0 -7
  188. package/dist/utils/FICNumbers.d.ts +0 -11
  189. /package/dist/components/floatingBadge/{floatingBadge.d.ts → FloatingBadge.d.ts} +0 -0
  190. /package/dist/components/floatingBadge/{withBadge.d.ts → WithBadge.d.ts} +0 -0
  191. /package/dist/components/progressbar/{progressbar.d.ts → ProgressBar.d.ts} +0 -0
  192. /package/dist/components/progressbar/{progressbar.stories.d.ts → progressBar.stories.d.ts} +0 -0
  193. /package/dist/components/tip/{shortcutTip.d.ts → ShortcutTip.d.ts} +0 -0
  194. /package/dist/components/tip/{tip.d.ts → Tip.d.ts} +0 -0
  195. /package/dist/components/toast/{toast.d.ts → Toast.d.ts} +0 -0
  196. /package/dist/components/toast/components/{toastContent.d.ts → ToastContent.d.ts} +0 -0
@@ -1,4 +0,0 @@
1
- import { Styles } from 'react-select/src/styles';
2
- declare type sizeType = 'medium' | 'large';
3
- declare const useCustomSelectStyle: (size?: sizeType) => Partial<Styles>;
4
- export default useCustomSelectStyle;
@@ -1,4 +0,0 @@
1
- import { TSelect, TSelectAsync, TSelectCreatable } from './typings/select';
2
- export declare const Select: TSelect;
3
- export declare const SelectCreatable: TSelectCreatable;
4
- export declare const SelectAsync: TSelectAsync;
@@ -1 +0,0 @@
1
- export {};
@@ -1,22 +0,0 @@
1
- /// <reference types="react" />
2
- import { default as Select } from 'react-select';
3
- import { default as AsyncSelect } from 'react-select/async';
4
- import CreatableSelect from 'react-select/creatable';
5
- import { InputActionMeta } from 'react-select/src/types';
6
- export interface Props {
7
- label?: string;
8
- size?: 'medium' | 'large' | undefined;
9
- inputChange?: (newValue: string, actionMeta: InputActionMeta) => void;
10
- getRef?: (node: any) => any;
11
- }
12
- export declare type TSelectProps = React.ComponentProps<typeof Select & Props>;
13
- export declare type TAsyncSelectProps = React.ComponentProps<typeof AsyncSelect & Props>;
14
- export declare type TSelectPropsCreatable = React.ComponentProps<typeof CreatableSelect> & {
15
- label?: string;
16
- size?: 'medium' | 'large' | undefined;
17
- inputChange?: (newValue: string, actionMeta: InputActionMeta) => void;
18
- createOption?: (inputValue: string) => void;
19
- };
20
- export declare type TSelect = React.FunctionComponent<TSelectProps>;
21
- export declare type TSelectCreatable = React.FunctionComponent<TSelectPropsCreatable>;
22
- export declare type TSelectAsync = React.FunctionComponent<TAsyncSelectProps>;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { StepProps } from '../types';
3
- export declare const SingleStep: (props: StepProps) => JSX.Element;
@@ -1,2 +0,0 @@
1
- import { UnstyledStepBarPropsInterface } from '../types';
2
- export declare const StyledStepBarWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, UnstyledStepBarPropsInterface, never>;
@@ -1,2 +0,0 @@
1
- import StepBar from './stepBar';
2
- export { StepBar };
@@ -1,7 +0,0 @@
1
- import { Component } from 'react';
2
- import { TStepBar, UnstyledStepBarPropsInterface, UnstyledStepBarStateInterface } from './types';
3
- export declare class UnstyledStepBar extends Component<UnstyledStepBarPropsInterface, UnstyledStepBarStateInterface> {
4
- render(): JSX.Element;
5
- }
6
- declare const StepBar: TStepBar;
7
- export default StepBar;
@@ -1 +0,0 @@
1
- export {};
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- export interface StepProps {
3
- title: string;
4
- type: 'standard' | 'current' | 'completed';
5
- number: number;
6
- }
7
- interface Props {
8
- stepList: Array<StepProps>;
9
- }
10
- export declare type TStepBar = React.FunctionComponent<Props>;
11
- export interface UnstyledStepBarPropsInterface extends Props {
12
- }
13
- export interface UnstyledStepBarStateInterface {
14
- }
15
- export {};
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- export interface EmptyTablePageProps {
3
- columnsCount: number;
4
- EmptyPage?: JSX.Element;
5
- }
6
- declare const EmptyState: ({ columnsCount, EmptyPage }: EmptyTablePageProps) => JSX.Element;
7
- export default EmptyState;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- interface Props {
3
- count: number;
4
- resetSelection: () => void;
5
- }
6
- declare const SelectedRowsCount: ({ count, resetSelection }: Props) => JSX.Element;
7
- export default SelectedRowsCount;
@@ -1,3 +0,0 @@
1
- export declare const ActionLink: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {
2
- color?: string | undefined;
3
- }, never>;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { Row } from 'react-table';
3
- import { RowActions, TableData } from '../../types';
4
- interface Props<T extends TableData> {
5
- row: Row<T>;
6
- actions?: RowActions<T>;
7
- renderActions?: () => JSX.Element;
8
- }
9
- declare const ActionsCell: <T extends TableData>({ row, actions, renderActions }: Props<T>) => JSX.Element;
10
- export default ActionsCell;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { Row } from 'react-table';
3
- import { RowAction, TableData } from '../../types';
4
- interface Props<T extends TableData> {
5
- row: Row<T>;
6
- actions: RowAction<T>[];
7
- rowIsDisabled?: boolean;
8
- }
9
- declare const DropdownActions: <T extends TableData>({ row, actions, rowIsDisabled }: Props<T>) => JSX.Element;
10
- export default DropdownActions;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import { Row } from 'react-table';
3
- import { DropdownItemType } from '../../../dropdown/types';
4
- import { RowAction, TableData } from '../../types';
5
- interface Props<T extends TableData> {
6
- action: RowAction<T>;
7
- row: Row<T>;
8
- rowIsDisabled?: boolean;
9
- type?: DropdownItemType;
10
- }
11
- declare const PrimaryAction: <T extends TableData>({ action, row, rowIsDisabled, type, }: Props<T>) => JSX.Element | null;
12
- export default PrimaryAction;
@@ -1 +0,0 @@
1
- export declare const ActionsContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { ActionType } from '../../typings/main';
3
- export declare const ActionsPopUp: (props: {
4
- actions: Array<ActionType>;
5
- selectedRows: number[];
6
- element: {
7
- [key: string]: React.ReactText;
8
- id: number;
9
- };
10
- active: boolean;
11
- handlePopUpVisibility: (rowId?: number | undefined) => void;
12
- }) => JSX.Element;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- declare type Props = {
3
- rowId: number;
4
- handlePopUpVisibility: (rowId: number) => void;
5
- active: boolean;
6
- };
7
- export declare const ActionsPopUpButton: (props: Props) => JSX.Element;
8
- export {};
@@ -1,3 +0,0 @@
1
- export declare const ActionsPopUpUnderlay: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
2
- active: boolean;
3
- }, never>;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { CellProps } from 'react-table';
3
- import { TableData } from '../../types';
4
- declare const Cell: <T extends TableData>({ row }: CellProps<T, any>) => JSX.Element;
5
- export default Cell;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { HeaderProps } from 'react-table';
3
- import { TableData } from '../../types';
4
- declare const Header: <T extends TableData>(props: HeaderProps<T>) => JSX.Element;
5
- export default Header;
@@ -1,12 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- import { HeaderProps, TableToggleAllRowsSelectedProps } from 'react-table';
3
- import { TableData } from '../../types';
4
- interface Props<T extends TableData> {
5
- headerProps: PropsWithChildren<HeaderProps<T>>;
6
- selectSinglePage?: boolean;
7
- }
8
- interface ReturnType extends TableToggleAllRowsSelectedProps {
9
- disabled: boolean;
10
- }
11
- declare const useHeaderCheckboxProps: <T extends TableData>({ headerProps, selectSinglePage, }: Props<T>) => ReturnType;
12
- export default useHeaderCheckboxProps;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { ActionType, PropertyFilterInterface, TControlledProperties } from '../../typings/main';
3
- interface Props {
4
- isLoading?: boolean;
5
- allChecked: boolean;
6
- handleSelectAll: (e: React.ChangeEvent<HTMLInputElement>) => void;
7
- controlledProperties: TControlledProperties;
8
- setShowModalCustomizeTrue: () => void;
9
- propertiesFilter: PropertyFilterInterface[];
10
- handleSortOnProperty: (id: string, type: boolean | 'desc' | 'asc') => void;
11
- actions?: ActionType[];
12
- disableSelection?: boolean;
13
- }
14
- export declare const HeadDesktop: ({ actions, allChecked, controlledProperties, disableSelection, handleSelectAll, handleSortOnProperty, isLoading, propertiesFilter, setShowModalCustomizeTrue, }: Props) => JSX.Element;
15
- export {};
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- interface Props {
3
- listSize: number;
4
- isLoading?: boolean;
5
- data: {
6
- [key: string]: React.ReactText;
7
- id: number;
8
- }[];
9
- renderMobileRow?: (o: {
10
- [key: string]: React.ReactText;
11
- id: number;
12
- }) => JSX.Element;
13
- }
14
- export declare const ListMobile: ({ data, isLoading, listSize, renderMobileRow }: Props) => JSX.Element;
15
- export {};
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import { ActionType, TControlledProperties } from '../../typings/main';
3
- interface Props {
4
- index: number;
5
- selectedList?: number[];
6
- element: {
7
- [key: string]: React.ReactText;
8
- id: number;
9
- };
10
- handleSelection: (id: number) => void;
11
- controlledProperties: TControlledProperties;
12
- actions?: ActionType[];
13
- handlePopUpVisibility: (rowId?: number) => void;
14
- currentActionsPopUp?: number;
15
- disableSelection?: boolean;
16
- }
17
- export declare const RowDesktop: ({ actions, controlledProperties, currentActionsPopUp, disableSelection, element, handlePopUpVisibility, handleSelection, index, selectedList, }: Props) => JSX.Element;
18
- export {};
@@ -1,10 +0,0 @@
1
- import { Component } from 'react';
2
- import { DropResult, ResponderProvided } from 'react-beautiful-dnd';
3
- import { CustomizationsModalPropsInterface, CustomizationsModalStateInterface } from '../../typings/main';
4
- export declare class CustomizationsModal extends Component<CustomizationsModalPropsInterface, CustomizationsModalStateInterface> {
5
- constructor(props: CustomizationsModalPropsInterface);
6
- propertiesDisplayHandler: (id: string) => void;
7
- onDragEnd: (result: DropResult, provided: ResponderProvided) => void;
8
- resetProperties: () => void;
9
- render(): JSX.Element;
10
- }
@@ -1,2 +0,0 @@
1
- import { CustomizationsModal } from './customizationsModal';
2
- export { CustomizationsModal };
@@ -1,3 +0,0 @@
1
- export declare const StyledWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
2
- show?: boolean | undefined;
3
- }, never>;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { DropResult, ResponderProvided } from 'react-beautiful-dnd';
3
- import { TControlledProperties } from '../../typings/main';
4
- export declare const UseDnd: React.FunctionComponent<{
5
- localProperties: TControlledProperties;
6
- onDragEnd: (result: DropResult, provided: ResponderProvided) => void;
7
- propertiesDisplayHandler: (id: string) => void;
8
- }>;
@@ -1,6 +0,0 @@
1
- import { CSSProperties } from 'react';
2
- import { DraggableStateSnapshot, DraggingStyle, NotDraggingStyle } from 'react-beautiful-dnd';
3
- import { TControlledProperties } from '../../typings/main';
4
- export declare const getItemStyle: (snapshot: DraggableStateSnapshot, draggableStyle?: DraggingStyle | NotDraggingStyle | undefined) => React.CSSProperties;
5
- export declare const getListStyle: (isDraggingOver: boolean) => CSSProperties;
6
- export declare const reorder: (list: TControlledProperties, startIndex: number, endIndex: number) => import("../../typings/main").TControlledProperty[];
@@ -1,10 +0,0 @@
1
- import { Component } from 'react';
2
- interface Props {
3
- }
4
- interface State {
5
- }
6
- export declare class EmptySet extends Component<Props, State> {
7
- state: {};
8
- render(): JSX.Element;
9
- }
10
- export {};
@@ -1 +0,0 @@
1
- export declare const linearBackground: () => import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { ColumnInstance } from 'react-table';
3
- import { TableData } from '../../types';
4
- interface LoadingCellProps<T extends TableData> {
5
- column: ColumnInstance<T>;
6
- }
7
- declare const LoadingCell: <T extends TableData>({ column }: LoadingCellProps<T>) => JSX.Element;
8
- export default LoadingCell;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- interface LoadingContentProps {
3
- elmentsNumber: number;
4
- propsNumber: number;
5
- }
6
- export declare const LoadingContent: (props: LoadingContentProps) => JSX.Element;
7
- export {};
@@ -1,10 +0,0 @@
1
- import { ReactText } from 'react';
2
- interface Props extends PageButtonWrapperProps {
3
- text: ReactText;
4
- onClick: () => void;
5
- }
6
- declare const PageButton: ({ text, onClick, isActive }: Props) => JSX.Element;
7
- export interface PageButtonWrapperProps {
8
- isActive: boolean;
9
- }
10
- export default PageButton;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { UsePaginationInstanceProps } from 'react-table';
3
- import { TableData } from '../../types';
4
- interface Props<T extends TableData> {
5
- pageCount: number;
6
- pageIndex: number;
7
- gotoPage: UsePaginationInstanceProps<T>['gotoPage'];
8
- }
9
- declare const PaginationButtons: <T extends TableData>({ pageCount, pageIndex, gotoPage }: Props<T>) => JSX.Element;
10
- export default PaginationButtons;
@@ -1,14 +0,0 @@
1
- import { DefaultTheme } from 'styled-components';
2
- import { paletteColor } from '../../../../styles/types';
3
- import { PageButtonWrapperProps } from './PageButton';
4
- interface GetPageButtonParams extends PageButtonWrapperProps {
5
- theme: DefaultTheme;
6
- }
7
- export interface PageButtonStyles {
8
- color: paletteColor;
9
- background: paletteColor;
10
- hoverColor: paletteColor;
11
- hoverBackground: paletteColor;
12
- }
13
- export declare const getPageButtonStyles: ({ theme, isActive }: GetPageButtonParams) => PageButtonStyles;
14
- export {};
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { UsePaginationInstanceProps } from 'react-table';
3
- import { TableData } from '../types';
4
- interface Props<T extends TableData> extends Omit<UsePaginationInstanceProps<T>, 'page' | 'pageOptions' | 'setPageSize'> {
5
- pageIndex: number;
6
- }
7
- declare const Pagination: <T extends TableData>({ canPreviousPage, nextPage, previousPage, canNextPage, gotoPage, pageCount, pageIndex, }: Props<T>) => JSX.Element;
8
- export default Pagination;
@@ -1,2 +0,0 @@
1
- import { TSortIcon } from '../typings/main';
2
- export declare const SortIcon: TSortIcon;
@@ -1,3 +0,0 @@
1
- import { TablePropsInterface } from '../typings/main';
2
- import { UnstyledTable } from './unstyledTable';
3
- export declare const StyledTableWrapper: import("styled-components").StyledComponent<typeof UnstyledTable, import("styled-components").DefaultTheme, TablePropsInterface, never>;
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import { Row, UseTableInstanceProps } from 'react-table';
3
- import { TableData } from '../../types';
4
- interface Props<T extends TableData> {
5
- rows: Row<T>[];
6
- prepareRow: UseTableInstanceProps<T>['prepareRow'];
7
- selectedRowsIds: string[];
8
- isLoading: boolean;
9
- onRowClick?: (row: Row<T>) => void;
10
- rowHasFocus: boolean;
11
- rowHeight: number | string;
12
- selectableRows?: boolean;
13
- setHighlightedRow: React.Dispatch<React.SetStateAction<number>>;
14
- tableId: string;
15
- }
16
- declare const TableBody: <T extends TableData>({ isLoading, onRowClick, prepareRow, rowHasFocus, rowHeight, rows, selectableRows, selectedRowsIds, setHighlightedRow, tableId, }: Props<T>) => JSX.Element;
17
- export default TableBody;
@@ -1,8 +0,0 @@
1
- import { TableBodyTrStyles } from '../../utils';
2
- export interface TableBodyTrProps {
3
- isSelected?: boolean;
4
- isDisabled?: boolean;
5
- rowHasFocus: boolean;
6
- }
7
- declare const TableBodyTr: import("styled-components").StyledComponent<"tr", import("styled-components").DefaultTheme, import("../tableParts/styled").TrProps & TableBodyTrStyles & TableBodyTrProps, keyof TableBodyTrStyles>;
8
- export default TableBodyTr;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- interface Props {
3
- isSorted: boolean;
4
- isSortedDesc?: boolean;
5
- }
6
- declare const SortIndicator: ({ isSorted, isSortedDesc }: Props) => JSX.Element;
7
- export default SortIndicator;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import { HeaderGroup, SortingRule } from 'react-table';
3
- import { TableData } from '../../types';
4
- interface Props<T extends TableData> {
5
- scrollBar: number;
6
- headerGroups: HeaderGroup<T>[];
7
- headerHeight?: number | string;
8
- selectedRowsIds?: string[];
9
- sortBy: SortingRule<T>[];
10
- }
11
- declare const TableHeader: <T extends TableData>({ headerHeight, headerGroups, scrollBar }: Props<T>) => JSX.Element;
12
- export default TableHeader;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- declare type alignType = 'left' | 'center' | 'right';
3
- interface Props extends React.HTMLAttributes<HTMLTableDataCellElement> {
4
- align?: alignType;
5
- isLoading?: boolean;
6
- }
7
- export declare const TableTd: import("styled-components").StyledComponent<({ children, align, isLoading, ...rest }: Props) => JSX.Element, import("styled-components").DefaultTheme, Props, never>;
8
- export default TableTd;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- declare type Props = React.HTMLAttributes<HTMLTableHeaderCellElement>;
3
- export declare const TableTh: import("styled-components").StyledComponent<({ children, ...rest }: Props) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
4
- export default TableTh;
@@ -1,17 +0,0 @@
1
- export declare const TableWrapper: import("styled-components").StyledComponent<"table", import("styled-components").DefaultTheme, {}, never>;
2
- interface THeadProps {
3
- scrollBar: number;
4
- }
5
- export declare const THead: import("styled-components").StyledComponent<"thead", import("styled-components").DefaultTheme, THeadProps, never>;
6
- interface TableBodyProps {
7
- bodyHeight: number | string;
8
- }
9
- export declare const TBody: import("styled-components").StyledComponent<"tbody", import("styled-components").DefaultTheme, TableBodyProps, never>;
10
- export interface TrProps {
11
- isHeader?: boolean;
12
- rowHeight?: number | string;
13
- headerHeight?: number | string;
14
- }
15
- export declare const TableTr: import("styled-components").StyledComponent<"tr", import("styled-components").DefaultTheme, TrProps, never>;
16
- export declare const TFoot: import("styled-components").StyledComponent<"tfoot", import("styled-components").DefaultTheme, {}, never>;
17
- export {};
@@ -1,11 +0,0 @@
1
- import React, { Component } from 'react';
2
- import { TablePropsInterface, TableStateInterface, TControlledProperties } from '../typings/main';
3
- export declare class UnstyledTable extends Component<TablePropsInterface, TableStateInterface> {
4
- constructor(props: TablePropsInterface);
5
- handleSelection: (id: number) => void;
6
- handleSelectAll: (e: React.ChangeEvent<HTMLInputElement>) => void;
7
- handleSortOnProperty: (id: string, type: 'desc' | 'asc' | boolean) => void;
8
- modifyControlledPropertiesHandler: (properties: TControlledProperties) => void;
9
- handlePopUpVisibility: (rowId?: number | undefined) => void;
10
- render(): JSX.Element;
11
- }
@@ -1,2 +0,0 @@
1
- export declare const DEFAULT_BODY_HEIGHT = 300;
2
- export declare const DEFAULT_ROW_HEIGHT = 40;
@@ -1,4 +0,0 @@
1
- import { Hooks } from 'react-table';
2
- import { TableData } from '../types';
3
- declare const useCheckboxesComponents: <T extends TableData>(hooks: Hooks<T>) => void;
4
- export default useCheckboxesComponents;
@@ -1,4 +0,0 @@
1
- import { Row } from 'react-table';
2
- import { OnSelectionChange, TableData } from '../types';
3
- declare const useRowsSelection: <T extends TableData>(selectedFlatRows: Row<T>[], preSelectAllRows: boolean, onSelectionChange: OnSelectionChange<T> | undefined, allRows: Row<T>[]) => string[];
4
- export default useRowsSelection;
@@ -1,6 +0,0 @@
1
- import { PluginHook } from 'react-table';
2
- import { TableProps } from '../Table';
3
- import { TableData } from '../types';
4
- declare type Props<T extends TableData> = Pick<TableProps<T>, 'actions' | 'withCheckbox' | 'renderActions' | 'selectableRows' | 'actionsHeader'>;
5
- declare const useTableHooks: <T extends TableData>({ actions, renderActions, withCheckbox, selectableRows, actionsHeader, }: Props<T>) => PluginHook<T>[];
6
- export default useTableHooks;
@@ -1,14 +0,0 @@
1
- import { Dispatch, SetStateAction } from 'react';
2
- import { Row } from 'react-table';
3
- import { TableData } from '../types';
4
- interface Props {
5
- initialFilter?: string;
6
- }
7
- interface ReturnType<DataType extends TableData> {
8
- filter: string;
9
- setFilter: Dispatch<SetStateAction<string>>;
10
- selection: Row<DataType>[];
11
- setSelection: Dispatch<SetStateAction<Row<DataType>[]>>;
12
- }
13
- declare const useTableValues: <DataType extends TableData>({ initialFilter }?: Props) => ReturnType<DataType>;
14
- export default useTableValues;
@@ -1,7 +0,0 @@
1
- import { Column, Row } from 'react-table';
2
- import useTableValues from './hooks/useTableValues';
3
- import Table from './Table';
4
- import { TableProps } from './Table';
5
- import tablePalette, { TablePalette } from './tablePalette';
6
- import { ManualPagination, OnSelectionChange, OnSort, RowActions, TableData } from './types';
7
- export { Table, TableProps, TableData, tablePalette, useTableValues, TablePalette, RowActions, ManualPagination, OnSelectionChange, OnSort, Row, Column, };
@@ -1,3 +0,0 @@
1
- import { Column } from 'react-table';
2
- import { DataType } from './components/types';
3
- export declare const columns: Column<DataType>[];
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { CustomPersonData } from './types';
3
- interface Props {
4
- value: CustomPersonData;
5
- }
6
- declare const CustomPerson: ({ value: { img, name, role } }: Props) => JSX.Element;
7
- export default CustomPerson;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const rolesArray: readonly ["master", "admin", undefined];
3
- export declare type roleType = typeof rolesArray[number];
4
- interface Props {
5
- role: roleType;
6
- }
7
- declare const Role: ({ role }: Props) => JSX.Element | null;
8
- export default Role;
@@ -1,14 +0,0 @@
1
- import { roleType } from './Role';
2
- export interface CustomPersonData {
3
- img: string;
4
- name: string;
5
- role?: roleType;
6
- }
7
- export interface DataType {
8
- person: CustomPersonData;
9
- name: string;
10
- address: string;
11
- date: string;
12
- order: number;
13
- isDisabled?: boolean;
14
- }
@@ -1,2 +0,0 @@
1
- import { DataType } from './components/types';
2
- export declare const getRandomUsers: (n: number) => DataType[];