@fattureincloud/fic-design-system 0.4.9-expenses.1.1 → 0.4.9-expenses.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (267) hide show
  1. package/dist/components/accordions/types.d.ts +1 -0
  2. package/dist/components/avatar/Avatar.d.ts +1 -0
  3. package/dist/components/avatar/avatar.stories.d.ts +1 -0
  4. package/dist/components/badge/{badge.d.ts → Badge.d.ts} +1 -0
  5. package/dist/components/badge/badge.stories.d.ts +1 -0
  6. package/dist/components/banner/Banner.d.ts +1 -0
  7. package/dist/components/banner/banner.stories.d.ts +1 -0
  8. package/dist/components/buttons/button/styled.d.ts +1 -0
  9. package/dist/components/buttons/iconButton/iconButton.stories.d.ts +1 -0
  10. package/dist/components/chips/components/styledChipWrapper.d.ts +1 -0
  11. package/dist/components/chips/types.d.ts +1 -0
  12. package/dist/components/drawer/components/styledDrawerWrapper.d.ts +1 -0
  13. package/dist/components/drawer/types.d.ts +1 -0
  14. package/dist/components/dropdown/components/Item.d.ts +1 -0
  15. package/dist/components/dropdown/components/Separator.d.ts +1 -0
  16. package/dist/components/dropdown/components/Title.d.ts +1 -0
  17. package/dist/components/dropdown/components/UserListItem.d.ts +1 -0
  18. package/dist/components/dropdown/dropdown.stories.d.ts +1 -0
  19. package/dist/components/floatingBadge/floatingBadge.stories.d.ts +1 -0
  20. package/dist/components/form/datepicker/DatePicker.d.ts +5 -0
  21. package/dist/components/form/datepicker/DatePickerImpl.d.ts +25 -0
  22. package/dist/components/{table/components/actions/actionsContainer.d.ts → form/datepicker/StyledDatePicker.d.ts} +1 -1
  23. package/dist/components/form/datepicker/components/CustomButton.d.ts +7 -0
  24. package/dist/components/form/datepicker/components/DatePickerDay.d.ts +3 -0
  25. package/dist/components/form/datepicker/components/DatePickerHeader.d.ts +8 -0
  26. package/dist/components/form/datepicker/components/MonthPicker.d.ts +4 -0
  27. package/dist/components/form/datepicker/components/YearPicker.d.ts +6 -0
  28. package/dist/components/form/datepicker/components/hooks/useDatePickerHeaderShowLogic.d.ts +15 -0
  29. package/dist/components/form/datepicker/components/styled.d.ts +5 -0
  30. package/dist/components/form/datepicker/datePickerPalette.d.ts +33 -0
  31. package/dist/components/form/datepicker/datepicker.stories.d.ts +6 -0
  32. package/dist/components/form/datepicker/hooks/useDatePickerValues.d.ts +13 -0
  33. package/dist/components/form/datepicker/hooks/useYearsList.d.ts +2 -0
  34. package/dist/components/form/datepicker/index.d.ts +5 -0
  35. package/dist/components/form/datepicker/types.d.ts +1 -0
  36. package/dist/components/form/datepicker/utils.d.ts +1 -0
  37. package/dist/components/form/fileUploader/fileUploaderPalette.d.ts +1 -0
  38. package/dist/components/form/label/Label.d.ts +1 -0
  39. package/dist/components/groupedList/components/groupElement.d.ts +1 -0
  40. package/dist/components/groupedList/components/itemElement.d.ts +1 -0
  41. package/dist/components/groupedList/components/titleElement.d.ts +1 -0
  42. package/dist/components/groupedList/groupedList.d.ts +1 -0
  43. package/dist/components/groupedList/groupedList.stories.d.ts +1 -0
  44. package/dist/components/icon/icon.stories.d.ts +1 -0
  45. package/dist/components/inlineMessages/components/styledInlineMessageWrapper.d.ts +1 -0
  46. package/dist/components/inlineMessages/inlineMessages.d.ts +1 -0
  47. package/dist/components/inlineMessages/inlineMessages.stories.d.ts +1 -0
  48. package/dist/components/inlineMessages/types.d.ts +1 -0
  49. package/dist/components/microTag/microtag.stories.d.ts +1 -0
  50. package/dist/components/modals/confirmationModal.d.ts +1 -0
  51. package/dist/components/modals/modals.stories.d.ts +1 -0
  52. package/dist/components/pageEmptySet/pageEmptySet.d.ts +1 -0
  53. package/dist/components/pagination/index.d.ts +1 -0
  54. package/dist/components/pagination/pagination.stories.d.ts +1 -0
  55. package/dist/components/progressbar/types.d.ts +1 -0
  56. package/dist/components/radioButton/radio.stories.d.ts +1 -0
  57. package/dist/components/radioButton/typings/radioButton.d.ts +1 -0
  58. package/dist/components/stepper/stepper.stories.d.ts +1 -0
  59. package/dist/components/table/Table.d.ts +51 -0
  60. package/dist/components/table/components/ActionsCell.d.ts +1 -0
  61. package/dist/components/table/components/EmptyState.d.ts +1 -0
  62. package/dist/components/table/components/{pagination.d.ts → Pagination.d.ts} +0 -0
  63. package/dist/components/table/components/TableBody.d.ts +2 -1
  64. package/dist/components/table/components/actions/ActionsCell.d.ts +10 -0
  65. package/dist/components/table/components/loadingCell/LoadingCell.d.ts +9 -0
  66. package/dist/components/table/components/tableBody/TableBody.d.ts +12 -0
  67. package/dist/components/table/components/tableBody/TableBodyLoader.d.ts +7 -0
  68. package/dist/components/table/components/tableBody/TableBodyTr.d.ts +7 -0
  69. package/dist/components/table/components/tableBody/styled.d.ts +3 -0
  70. package/dist/components/table/components/tableHeader/SortIndicator.d.ts +6 -0
  71. package/dist/components/table/components/tableHeader/TableHeader.d.ts +10 -0
  72. package/dist/components/table/components/tableParts/TableTd.d.ts +2 -1
  73. package/dist/components/table/components/tableParts/styled.d.ts +16 -1
  74. package/dist/components/table/hooks/useTableHooks.d.ts +2 -2
  75. package/dist/components/table/utils.d.ts +2 -1
  76. package/dist/components/tabs/common/types.d.ts +1 -0
  77. package/dist/components/tabs/tabs.stories.d.ts +1 -0
  78. package/dist/components/tag/Tag.d.ts +1 -0
  79. package/dist/components/tag/styled.d.ts +1 -0
  80. package/dist/components/tag/tag.stories.d.ts +1 -0
  81. package/dist/components/tip/shortcutTip.d.ts +1 -0
  82. package/dist/components/tip/tip.d.ts +1 -0
  83. package/dist/components/tip/tip.stories.d.ts +1 -0
  84. package/dist/components/toast/ToastContainer.d.ts +1 -0
  85. package/dist/components/toast/components/toastContent.d.ts +1 -0
  86. package/dist/components/toast/toast.stories.d.ts +1 -0
  87. package/dist/components/tooltip/tooltip.stories.d.ts +1 -0
  88. package/dist/index.d.ts +2 -1
  89. package/dist/index.esm.js +10 -4
  90. package/dist/index.esm.js.map +1 -1
  91. package/dist/index.js +9 -3
  92. package/dist/index.js.map +1 -1
  93. package/dist/styles/theme.d.ts +2 -0
  94. package/package.json +6 -1
  95. package/CHANGELOG.md +0 -386
  96. package/dist/components/avatar/AvatarImage.d.ts +0 -3
  97. package/dist/components/avatar/AvatarInitials.d.ts +0 -3
  98. package/dist/components/avatar/AvatarPlaceholder.d.ts +0 -3
  99. package/dist/components/avatar/baseAvatar.d.ts +0 -3
  100. package/dist/components/avatar/typings/avatar.d.ts +0 -30
  101. package/dist/components/badge/components/styledBadgeWrapper.d.ts +0 -1
  102. package/dist/components/buttons/baseButton.d.ts +0 -3
  103. package/dist/components/buttons/button.d.ts +0 -3
  104. package/dist/components/buttons/buttons.stories.d.ts +0 -1
  105. package/dist/components/buttons/iconButton.d.ts +0 -3
  106. package/dist/components/buttons/iconButton.stories.d.ts +0 -1
  107. package/dist/components/buttons/typings/baseButton.d.ts +0 -15
  108. package/dist/components/buttons/typings/buttons.d.ts +0 -9
  109. package/dist/components/buttons/typings/iconButton.d.ts +0 -13
  110. package/dist/components/buttons/utils.d.ts +0 -47
  111. package/dist/components/checkbox/Checkbox.d.ts +0 -15
  112. package/dist/components/checkbox/checkbox.stories.d.ts +0 -1
  113. package/dist/components/checkbox/checkboxPalette.d.ts +0 -16
  114. package/dist/components/checkbox/components/Input.d.ts +0 -9
  115. package/dist/components/checkbox/components/checkbox-input.d.ts +0 -2
  116. package/dist/components/checkbox/components/container.d.ts +0 -2
  117. package/dist/components/checkbox/components/label.d.ts +0 -8
  118. package/dist/components/checkbox/components/styledCheckboxInputWrapper.d.ts +0 -2
  119. package/dist/components/checkbox/hooks/useCheckboxValue.d.ts +0 -11
  120. package/dist/components/checkbox/index.d.ts +0 -4
  121. package/dist/components/checkbox/types.d.ts +0 -19
  122. package/dist/components/checkbox/typings/checkbox.d.ts +0 -38
  123. package/dist/components/checkbox/utils.d.ts +0 -24
  124. package/dist/components/common/Icon/components/backgroundWrapper.d.ts +0 -5
  125. package/dist/components/common/Icon/icon.stories.d.ts +0 -1
  126. package/dist/components/common/Icon/index.d.ts +0 -6
  127. package/dist/components/common/Icon/typings.d.ts +0 -43
  128. package/dist/components/dropdown/components/StyledDropdown.d.ts +0 -8
  129. package/dist/components/dropdown/components/StyledDropdownWrapper.d.ts +0 -10
  130. package/dist/components/dropdown/components/UnstyledDropdown.d.ts +0 -13
  131. package/dist/components/dropdownLegacy/DropdownImpl.d.ts +0 -12
  132. package/dist/components/dropdownLegacy/components/Item.d.ts +0 -8
  133. package/dist/components/dropdownLegacy/components/Separator.d.ts +0 -2
  134. package/dist/components/dropdownLegacy/components/ShortcutText.d.ts +0 -1
  135. package/dist/components/dropdownLegacy/components/Title.d.ts +0 -4
  136. package/dist/components/dropdownLegacy/components/UserListItem.d.ts +0 -6
  137. package/dist/components/dropdownLegacy/dropdown.d.ts +0 -13
  138. package/dist/components/dropdownLegacy/dropdown.stories.d.ts +0 -1
  139. package/dist/components/dropdownLegacy/types.d.ts +0 -45
  140. package/dist/components/dropdownV2/DropdownImpl.d.ts +0 -4
  141. package/dist/components/dropdownV2/components/Item.d.ts +0 -8
  142. package/dist/components/dropdownV2/components/Separator.d.ts +0 -3
  143. package/dist/components/dropdownV2/components/ShortcutText.d.ts +0 -1
  144. package/dist/components/dropdownV2/components/Title.d.ts +0 -4
  145. package/dist/components/dropdownV2/components/UserListItem.d.ts +0 -6
  146. package/dist/components/dropdownV2/dropdown.d.ts +0 -14
  147. package/dist/components/dropdownV2/dropdown.stories.d.ts +0 -1
  148. package/dist/components/dropdownV2/index.d.ts +0 -3
  149. package/dist/components/dropdownV2/types.d.ts +0 -49
  150. package/dist/components/form/fileUploader/hooks/useIcon.d.ts +0 -4
  151. package/dist/components/form/fileUploader/hooks/useTexts.d.ts +0 -3
  152. package/dist/components/groupRadioButton/typings/groupRadioButton.d.ts +0 -21
  153. package/dist/components/groupRadioButton/utils.d.ts +0 -3
  154. package/dist/components/groupedList/components/StyledGroupedList.d.ts +0 -17
  155. package/dist/components/iconDropdown/iconDropdown.d.ts +0 -9
  156. package/dist/components/iconDropdown/index.d.ts +0 -2
  157. package/dist/components/inlineMessages/utils.d.ts +0 -295
  158. package/dist/components/inputText/components/icons.d.ts +0 -8
  159. package/dist/components/inputText/components/inputContainer.d.ts +0 -1
  160. package/dist/components/inputText/components/messages.d.ts +0 -2
  161. package/dist/components/inputText/components/wrapperTextArea.d.ts +0 -1
  162. package/dist/components/inputText/icons.d.ts +0 -9
  163. package/dist/components/inputText/index.d.ts +0 -3
  164. package/dist/components/inputText/inputText.stories.d.ts +0 -1
  165. package/dist/components/inputText/inputTextStyledWrapper.d.ts +0 -2
  166. package/dist/components/inputText/sideText.d.ts +0 -6
  167. package/dist/components/inputText/typings/enums.d.ts +0 -17
  168. package/dist/components/inputText/typings/inputText.d.ts +0 -43
  169. package/dist/components/inputText/utils.d.ts +0 -8
  170. package/dist/components/modals/components/HeaderSearch.d.ts +0 -8
  171. package/dist/components/modals/modalStyledWrapper.d.ts +0 -2
  172. package/dist/components/navigationDropdown/index.d.ts +0 -2
  173. package/dist/components/navigationDropdown/navigationDropdown.d.ts +0 -9
  174. package/dist/components/select/custom-select-style.d.ts +0 -2
  175. package/dist/components/select/hooks/constants.d.ts +0 -4613
  176. package/dist/components/select/hooks/useCustomSelectStyle.d.ts +0 -4
  177. package/dist/components/select/index.d.ts +0 -4
  178. package/dist/components/select/select.stories.d.ts +0 -1
  179. package/dist/components/select/typings/select.d.ts +0 -22
  180. package/dist/components/select/utils.d.ts +0 -1
  181. package/dist/components/stepBar/components/singleStep.d.ts +0 -3
  182. package/dist/components/stepBar/components/styledStepBarWrapper.d.ts +0 -2
  183. package/dist/components/stepBar/index.d.ts +0 -2
  184. package/dist/components/stepBar/stepBar.d.ts +0 -7
  185. package/dist/components/stepBar/stepBar.stories.d.ts +0 -1
  186. package/dist/components/stepBar/types.d.ts +0 -15
  187. package/dist/components/table/components/actionLink.d.ts +0 -3
  188. package/dist/components/table/components/actions/actionsPopUp.d.ts +0 -12
  189. package/dist/components/table/components/actions/actionsPopUpButton.d.ts +0 -8
  190. package/dist/components/table/components/actions/actionsPopUpUnderlay.d.ts +0 -3
  191. package/dist/components/table/components/components/headDesktop.d.ts +0 -15
  192. package/dist/components/table/components/components/listMobile.d.ts +0 -15
  193. package/dist/components/table/components/components/rowDesktop.d.ts +0 -18
  194. package/dist/components/table/components/customizationModal/customizationsModal.d.ts +0 -10
  195. package/dist/components/table/components/customizationModal/index.d.ts +0 -2
  196. package/dist/components/table/components/customizationModal/styledWrapper.d.ts +0 -3
  197. package/dist/components/table/components/customizationModal/useDnd.d.ts +0 -8
  198. package/dist/components/table/components/customizationModal/utils.d.ts +0 -6
  199. package/dist/components/table/components/emptySet.d.ts +0 -10
  200. package/dist/components/table/components/linearBackground.d.ts +0 -1
  201. package/dist/components/table/components/loadingContent.d.ts +0 -7
  202. package/dist/components/table/components/sortIcon.d.ts +0 -2
  203. package/dist/components/table/components/styledWrapper.d.ts +0 -3
  204. package/dist/components/table/components/unstyledTable.d.ts +0 -11
  205. package/dist/components/table/table.d.ts +0 -19
  206. package/dist/components/table/typings/main.d.ts +0 -92
  207. package/dist/components/table/utils/configPersistency.d.ts +0 -14
  208. package/dist/components/tabs/components/item/Item.d.ts +0 -8
  209. package/dist/components/tabs/components/item/components/ActiveTag.d.ts +0 -6
  210. package/dist/components/tabs/components/item/components/Tab.d.ts +0 -6
  211. package/dist/components/tabs/components/tabsDropdown/TabsDropdown.d.ts +0 -8
  212. package/dist/components/tabs/components/tabsDropdown/components/TabsDropdownTrigger.d.ts +0 -7
  213. package/dist/components/tabs/hooks/useResizedWidth.d.ts +0 -7
  214. package/dist/components/tabs/hooks/useTabItemsCount.d.ts +0 -12
  215. package/dist/components/tabs/tabs.d.ts +0 -12
  216. package/dist/components/tabs/types.d.ts +0 -5
  217. package/dist/components/tag/components/StyledTag.d.ts +0 -10
  218. package/dist/components/test/index.d.ts +0 -2
  219. package/dist/components/test/test.d.ts +0 -5
  220. package/dist/components/textButton/TextButton.d.ts +0 -12
  221. package/dist/components/textButton/index.d.ts +0 -2
  222. package/dist/components/textButton/textButton.stories.d.ts +0 -1
  223. package/dist/components/tooltips/components/message.d.ts +0 -12
  224. package/dist/components/tooltips/components/styledTooltipWrapper.d.ts +0 -1
  225. package/dist/components/tooltips/index.d.ts +0 -2
  226. package/dist/components/tooltips/tooltips.d.ts +0 -15
  227. package/dist/components/tooltips/tooltips.stories.d.ts +0 -1
  228. package/dist/components/tooltips/types.d.ts +0 -25
  229. package/dist/styles/default-palette/base.d.ts +0 -18
  230. package/dist/styles/default-palette/blue.d.ts +0 -12
  231. package/dist/styles/default-palette/cyan.d.ts +0 -12
  232. package/dist/styles/default-palette/fucsia.d.ts +0 -12
  233. package/dist/styles/default-palette/green.d.ts +0 -12
  234. package/dist/styles/default-palette/grey.d.ts +0 -12
  235. package/dist/styles/default-palette/index.d.ts +0 -152
  236. package/dist/styles/default-palette/indigo.d.ts +0 -12
  237. package/dist/styles/default-palette/orange.d.ts +0 -12
  238. package/dist/styles/default-palette/pink.d.ts +0 -12
  239. package/dist/styles/default-palette/red.d.ts +0 -12
  240. package/dist/styles/default-palette/yellow.d.ts +0 -12
  241. package/dist/styles/defaultPalette/base.d.ts +0 -18
  242. package/dist/styles/defaultPalette/blue.d.ts +0 -12
  243. package/dist/styles/defaultPalette/cyan.d.ts +0 -12
  244. package/dist/styles/defaultPalette/fuchsia.d.ts +0 -12
  245. package/dist/styles/defaultPalette/green.d.ts +0 -12
  246. package/dist/styles/defaultPalette/grey.d.ts +0 -12
  247. package/dist/styles/defaultPalette/indigo.d.ts +0 -12
  248. package/dist/styles/defaultPalette/orange.d.ts +0 -12
  249. package/dist/styles/defaultPalette/pink.d.ts +0 -12
  250. package/dist/styles/defaultPalette/red.d.ts +0 -12
  251. package/dist/styles/defaultPalette/yellow.d.ts +0 -12
  252. package/dist/styles/elevations.d.ts +0 -7
  253. package/dist/styles/fic-palette/base.d.ts +0 -18
  254. package/dist/styles/fic-palette/blue.d.ts +0 -12
  255. package/dist/styles/fic-palette/cyan.d.ts +0 -12
  256. package/dist/styles/fic-palette/fucsia.d.ts +0 -12
  257. package/dist/styles/fic-palette/green.d.ts +0 -12
  258. package/dist/styles/fic-palette/grey.d.ts +0 -12
  259. package/dist/styles/fic-palette/index.d.ts +0 -141
  260. package/dist/styles/fic-palette/indigo.d.ts +0 -12
  261. package/dist/styles/fic-palette/orange.d.ts +0 -12
  262. package/dist/styles/fic-palette/pink.d.ts +0 -12
  263. package/dist/styles/fic-palette/red.d.ts +0 -12
  264. package/dist/styles/fic-palette/yellow.d.ts +0 -12
  265. package/dist/styles/palette.d.ts +0 -298
  266. package/dist/styles/shadows.d.ts +0 -3
  267. package/dist/utils/FICNumbers.d.ts +0 -11
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface Props {
2
3
  title?: string;
3
4
  renderTitle?: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { AvatarProps } from './types';
2
3
  declare const Avatar: import("styled-components").StyledComponent<(props: AvatarProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
3
4
  export default Avatar;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Meta } from '@storybook/react';
2
3
  import { AvatarProps } from './types';
3
4
  export declare const Generic: () => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { BadgeProps } from './types';
2
3
  export declare const Badge: (props: BadgeProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Meta } from '@storybook/react';
2
3
  import { BadgeProps } from './types';
3
4
  export declare const Normal: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from '../icon';
2
3
  export declare type bannerColorType = 'red' | 'blue' | 'yellow' | 'green' | 'grey' | undefined;
3
4
  export interface BannerProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Meta } from '@storybook/react';
2
3
  import { BannerProps } from './Banner';
3
4
  export declare const WithKnobs: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ButtonProps } from './Button';
2
3
  import { ButtonStyles, WrapperProps } from './types';
3
4
  export declare const LeftIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const WithKnobs: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ChipsProps } from '../types';
2
3
  export declare const StyledChipWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ChipsProps, never>;
3
4
  export declare const StyledIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface ChipsProps {
2
3
  text?: string | number;
3
4
  statusEdit?: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { UnstyledDrawerProps } from '../types';
2
3
  export declare const StyledDrawerWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, UnstyledDrawerProps, never>;
3
4
  export declare const StyledIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface Props {
2
3
  show?: boolean;
3
4
  title?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DropdownItemProps } from '../types';
2
3
  import { DropdownItemStyles } from '../utils';
3
4
  declare const Item: ({ active, className, icon, onClick, shortcut, text, isDisabled, ...rest }: DropdownItemProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Separator: () => JSX.Element;
2
3
  export default Separator;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TitleProps } from '../types';
2
3
  declare const Title: (props: TitleProps) => JSX.Element;
3
4
  export default Title;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { UserListItemProps } from '../types';
2
3
  export declare const UserListItem: (props: UserListItemProps) => JSX.Element;
3
4
  export declare const UserListWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Meta } from '@storybook/react';
2
3
  import { DropdownProps } from './types';
3
4
  export declare const Simple: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Meta } from '@storybook/react';
2
3
  import { WithBadgeProps } from './types';
3
4
  export declare const Normal: () => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { LabelProps } from '../label';
2
+ import { DatePickerImplProps } from './DatePickerImpl';
3
+ export declare type DatePickerProps = LabelProps & DatePickerImplProps;
4
+ declare const DatePicker: (props: DatePickerProps) => JSX.Element;
5
+ export default DatePicker;
@@ -0,0 +1,25 @@
1
+ import { Dispatch, ReactChild, SetStateAction } from 'react';
2
+ import { ReactDatePickerProps } from 'react-datepicker';
3
+ import { CommonFormTypes } from '../common/types';
4
+ export declare type RenderCustomFooterType = (props: RenderCustomFooterProps) => ReactChild;
5
+ export declare type CustomButtonProps = {
6
+ text: string;
7
+ onClick: (props: RenderCustomFooterProps) => void;
8
+ };
9
+ export interface DatePickerImplProps extends ReactDatePickerProps, CommonFormTypes {
10
+ date: Date | null;
11
+ setDate: Dispatch<SetStateAction<Date | null>>;
12
+ allowMonthView?: boolean;
13
+ allowYearView?: boolean;
14
+ yearsDisplayed?: number;
15
+ hasTodayButton?: boolean;
16
+ customButtons?: CustomButtonProps[];
17
+ renderCustomFooter?: RenderCustomFooterType;
18
+ isPrefilled?: boolean;
19
+ }
20
+ export interface RenderCustomFooterProps extends DatePickerImplProps {
21
+ isOpen: boolean;
22
+ setIsOpen: Dispatch<SetStateAction<boolean>>;
23
+ }
24
+ declare const DatePickerImpl: (props: DatePickerImplProps) => JSX.Element;
25
+ export default DatePickerImpl;
@@ -1 +1 @@
1
- export declare const ActionsContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
1
+ export declare const StyledDatePicker: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,7 @@
1
+ interface Props {
2
+ onClick: () => void;
3
+ selected?: boolean;
4
+ text: string;
5
+ }
6
+ declare const CustomButton: ({ onClick, selected, text }: Props) => JSX.Element;
7
+ export default CustomButton;
@@ -0,0 +1,3 @@
1
+ import { ReactDatePickerProps } from 'react-datepicker';
2
+ declare const DatePickerDay: ReactDatePickerProps['renderDayContents'];
3
+ export default DatePickerDay;
@@ -0,0 +1,8 @@
1
+ import { ReactDatePickerCustomHeaderProps } from 'react-datepicker';
2
+ export interface DatePickerHeaderProps extends ReactDatePickerCustomHeaderProps {
3
+ allowMonthView: boolean;
4
+ allowYearView: boolean;
5
+ yearsDisplayed: number;
6
+ }
7
+ declare const DatePickerHeader: (props: DatePickerHeaderProps) => JSX.Element;
8
+ export default DatePickerHeader;
@@ -0,0 +1,4 @@
1
+ import { ReactDatePickerCustomHeaderProps } from 'react-datepicker';
2
+ declare type Props = Pick<ReactDatePickerCustomHeaderProps, 'changeMonth' | 'date'>;
3
+ declare const MonthPicker: ({ changeMonth, date }: Props) => JSX.Element;
4
+ export default MonthPicker;
@@ -0,0 +1,6 @@
1
+ import { ReactDatePickerCustomHeaderProps } from 'react-datepicker';
2
+ interface Props extends Pick<ReactDatePickerCustomHeaderProps, 'date' | 'changeYear'> {
3
+ yearsDisplayed: number;
4
+ }
5
+ declare const YearPicker: ({ date, changeYear, yearsDisplayed }: Props) => JSX.Element;
6
+ export default YearPicker;
@@ -0,0 +1,15 @@
1
+ import { datePickerStatus } from '../../types';
2
+ import { DatePickerHeaderProps } from '../DatePickerHeader';
3
+ interface ReturnType {
4
+ status: datePickerStatus;
5
+ title: string;
6
+ leftArrowOnClick: () => void;
7
+ leftArrowIsDisabled: boolean;
8
+ rightArrowOnClick: () => void;
9
+ rightArrowIsDisabled: boolean;
10
+ onBottomArrowClick: () => void;
11
+ showBottomArrow: boolean;
12
+ showLRArrows: boolean;
13
+ }
14
+ declare const useDatePickerHeaderShowLogic: ({ date, decreaseMonth, increaseMonth, prevMonthButtonDisabled, nextMonthButtonDisabled, nextYearButtonDisabled, prevYearButtonDisabled, decreaseYear, increaseYear, allowYearView, allowMonthView, }: DatePickerHeaderProps) => ReturnType;
15
+ export default useDatePickerHeaderShowLogic;
@@ -0,0 +1,5 @@
1
+ interface DatePickerItemProps {
2
+ isActive: boolean;
3
+ }
4
+ export declare const DatePickerItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, DatePickerItemProps, never>;
5
+ export {};
@@ -0,0 +1,33 @@
1
+ import { colorsPalette } from '../../../common/types/colorsPalette';
2
+ import { paletteColor } from '../../../styles/types';
3
+ declare type itemStatus = 'normal' | 'active' | 'normalHover' | 'activeHover';
4
+ declare type DayPalette = {
5
+ borderRadius: string;
6
+ today: {
7
+ [k in itemStatus]: colorsPalette;
8
+ };
9
+ inMonth: {
10
+ [k in itemStatus]: colorsPalette;
11
+ };
12
+ outMonth: {
13
+ [k in Exclude<itemStatus, 'active' | 'activeHover'>]: colorsPalette;
14
+ };
15
+ };
16
+ declare type ItemStatusPalette = {
17
+ [k in itemStatus]: colorsPalette;
18
+ };
19
+ interface ItemPalette extends ItemStatusPalette {
20
+ borderRadius: string;
21
+ }
22
+ interface DaysNamesPalette {
23
+ color: paletteColor;
24
+ }
25
+ export interface DatePickerPalette {
26
+ background: paletteColor;
27
+ weekDaysNames: DaysNamesPalette;
28
+ days: DayPalette;
29
+ item: ItemPalette;
30
+ defaultYearsDisplayed: number;
31
+ }
32
+ declare const datePickerPalette: DatePickerPalette;
33
+ export default datePickerPalette;
@@ -0,0 +1,6 @@
1
+ import { Meta, Story } from '@storybook/react';
2
+ import { DatePickerProps } from './DatePicker';
3
+ export declare const Normal: Story<DatePickerProps>;
4
+ export declare const WithCustomButton: Story<DatePickerProps>;
5
+ declare const DatePickerStories: Meta<DatePickerProps>;
6
+ export default DatePickerStories;
@@ -0,0 +1,13 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ interface ReturnType {
3
+ date: Date | null;
4
+ setDate: Dispatch<SetStateAction<Date | null>>;
5
+ value: string | null;
6
+ setValue: Dispatch<SetStateAction<string | null>>;
7
+ }
8
+ interface Props {
9
+ initialDate?: Date | null;
10
+ initialValue?: string | null;
11
+ }
12
+ declare const useDatePickerValues: ({ initialDate, initialValue }?: Props) => ReturnType;
13
+ export default useDatePickerValues;
@@ -0,0 +1,2 @@
1
+ declare const useYearsList: (dateYear: number, page: number, yearsCount: number) => number[];
2
+ export default useYearsList;
@@ -0,0 +1,5 @@
1
+ import DatePicker, { DatePickerProps } from './DatePicker';
2
+ import datePickerPalette, { DatePickerPalette } from './datePickerPalette';
3
+ import useDatePickerValues from './hooks/useDatePickerValues';
4
+ import { timeConversionOptions } from './utils';
5
+ export { datePickerPalette, DatePickerProps, DatePickerPalette, DatePicker, useDatePickerValues, timeConversionOptions };
@@ -0,0 +1 @@
1
+ export declare type datePickerStatus = 'dayPicker' | 'monthPicker' | 'yearPicker';
@@ -0,0 +1 @@
1
+ export declare const timeConversionOptions: Intl.DateTimeFormatOptions;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { paletteColor } from '../../../styles/types';
2
3
  import { IconProps } from '../../icon';
3
4
  import { statuses } from './types';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface LabelProps extends WrapperProps {
2
3
  label?: string | JSX.Element;
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CommonComponentsProps, GroupType } from '../types';
2
3
  interface GroupElementType extends GroupType, CommonComponentsProps {
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CommonComponentsProps, ItemType } from '../types';
2
3
  interface ItemElementType extends ItemType, CommonComponentsProps {
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GroupType } from '../types';
2
3
  interface Props {
3
4
  title: GroupType['title'];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GroupedListProps } from './types';
2
3
  declare const GroupedList: (props: GroupedListProps) => JSX.Element;
3
4
  export default GroupedList;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Meta } from '@storybook/react';
2
3
  import { GroupedListProps } from './types';
3
4
  export declare const Simple: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Meta } from '@storybook/react';
2
3
  import { IconProps } from './Icon';
3
4
  export declare const Normal: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InlineMessagesProps, StyledContentProps } from '../types';
2
3
  export declare const StyledIconTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
4
  export declare const StyledContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InlineMessagesProps } from './types';
2
3
  declare const InlineMessage: (props: InlineMessagesProps) => JSX.Element;
3
4
  export default InlineMessage;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Meta } from '@storybook/react';
2
3
  import { InlineMessagesProps } from './types';
3
4
  export declare const Colors: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from '../icon';
2
3
  export declare type MessageType = 'standard' | 'error' | 'info' | 'warning' | 'success';
3
4
  export interface InlineMessagesProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Meta } from '@storybook/react';
2
3
  import { MicroTagProps } from './MicroTag';
3
4
  export declare const Normal: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface Props {
2
3
  title: string;
3
4
  type: 'success' | 'error' | 'warning' | 'info';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Meta } from '@storybook/react';
2
3
  import { ModalPropsInterface } from './types';
3
4
  export declare const OpenModal: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconProps } from '../icon';
2
3
  interface Props {
3
4
  icon?: IconProps;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { PaginationProps } from './types';
2
3
  export declare const Pagination: (props: PaginationProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Meta } from '@storybook/react';
2
3
  import { PaginationProps } from './types';
3
4
  export declare const Normal: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface Props {
2
3
  color?: 'blue' | 'green' | 'red' | 'yellow' | 'grey';
3
4
  percentage: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Meta } from '@storybook/react';
2
3
  import { RadioButtonInterface } from './typings/radioButton';
3
4
  export declare const WithKnobs: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface RadioInterface {
2
3
  isDisabled?: boolean;
3
4
  isChecked: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Meta } from '@storybook/react';
2
3
  import { StepperProps } from './Stepper';
3
4
  export declare const WithKnobs: () => JSX.Element;
@@ -0,0 +1,51 @@
1
+ /// <reference types="react" />
2
+ import { Row, UseTableOptions } from 'react-table';
3
+ import { EmptyTablePageProps } from './components/EmptyState';
4
+ import { ManualPagination, OnSort, RowActions, TableData } from './types';
5
+ export interface TableProps<T extends TableData> extends UseTableOptions<T> {
6
+ sortable?: boolean;
7
+ onSort?: OnSort<T>;
8
+ noPagination?: boolean;
9
+ manualPagination?: ManualPagination;
10
+ onScroll?: () => void;
11
+ selectableRows?: boolean;
12
+ preSelectAllRows?: boolean;
13
+ onSelectionChange?: (rows: Array<Row<T>>) => void;
14
+ onRowClick?: (row: Row<T>) => void;
15
+ globalFilter?: string;
16
+ hideHeader?: boolean;
17
+ EmptyPage?: EmptyTablePageProps['EmptyPage'];
18
+ Footer?: JSX.Element;
19
+ withCheckbox?: boolean;
20
+ isLoading?: boolean;
21
+ actions?: RowActions<T>;
22
+ renderActions?: () => JSX.Element;
23
+ bodyHeight?: number | string;
24
+ headerHeight?: number | string;
25
+ rowHeight?: number | string;
26
+ }
27
+ /**
28
+ * Component Props:
29
+ * @param {boolean} sortable Makes all columns sortable, sort can be disabled for a single column inside columns definition
30
+ * @param {function} onSort Callback called on column sort change
31
+ * @param {boolean} noPagination Hide table paginator and disabled pagination
32
+ * @param {object} manualPagination If you want to manage the pagination by yourself
33
+ * @param {function} onScroll If pagination is disabled, this callback is called when user scroll to the bottom of the table
34
+ * @param {boolean} selectableRows Allow to select rows
35
+ * @param {boolean} preSelectAllRows Pre-select all rows
36
+ * @param {function} onSelectionChange Callback called when rows selection changes
37
+ * @param {function} onRowClick Callback called on row click
38
+ * @param {string} globalFilter Filter all columns by value
39
+ * @param {boolean} hideHeader Hide the table header
40
+ * @param {object} EmptyPage Configuration to show a custom component when table has no rows
41
+ * @param {JSX.Element} Footer Custom footer component
42
+ * @param {boolean} withCheckbox Show a column with checkboxes on left side of the table
43
+ * @param {boolean} isLoading Apply loading style to all cells
44
+ * @param {object} actions Configuration to render actions column
45
+ * @param {function} renderActions Used to customize actions column
46
+ * @param {number|string} bodyHeight Set tbody height, default 300px (if number is provided is considered as measure in pixels)
47
+ * @param {number|string} headerHeight Set thead and th height, default 40px (if number is provided is considered as measure in pixels)
48
+ * @param {number|string} rowHeight Set row height, default 40px (if number is provided is considered as measure in pixels)
49
+ */
50
+ 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, }: TableProps<T>) => JSX.Element;
51
+ export default Table;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Row } from 'react-table';
2
3
  import { RowActions, TableData } from '../types';
3
4
  interface Props<T extends TableData> {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface EmptyTablePageProps {
2
3
  columnsCount: number;
3
4
  EmptyPage?: JSX.Element;
@@ -4,8 +4,9 @@ interface Props<T extends TableData> {
4
4
  rows: Row<T>[];
5
5
  prepareRow: UseTableInstanceProps<T>['prepareRow'];
6
6
  selectedRowsIds: string[];
7
+ isLoading: boolean;
7
8
  }
8
- declare const TableBody: <T extends TableData>({ rows, prepareRow, selectedRowsIds }: Props<T>) => JSX.Element;
9
+ declare const TableBody: <T extends TableData>({ isLoading, rows, prepareRow, selectedRowsIds }: Props<T>) => JSX.Element;
9
10
  export interface TableBodyTrProps {
10
11
  isSelected?: boolean;
11
12
  isDisabled?: boolean;
@@ -0,0 +1,10 @@
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;
@@ -0,0 +1,9 @@
1
+ import { Key } from 'react';
2
+ import { ColumnInstance } from 'react-table';
3
+ import { TableData } from '../../types';
4
+ interface LoadingCellProps<T extends TableData> {
5
+ column: ColumnInstance<T>;
6
+ key: Key;
7
+ }
8
+ declare const LoadingCell: <T extends TableData>({ column, key }: LoadingCellProps<T>) => JSX.Element;
9
+ export default LoadingCell;
@@ -0,0 +1,12 @@
1
+ import { Row, UseTableInstanceProps } from 'react-table';
2
+ import { TableData } from '../../types';
3
+ interface Props<T extends TableData> {
4
+ rows: Row<T>[];
5
+ prepareRow: UseTableInstanceProps<T>['prepareRow'];
6
+ selectedRowsIds: string[];
7
+ isLoading: boolean;
8
+ onRowClick?: (row: Row<T>) => void;
9
+ rowHeight?: number | string;
10
+ }
11
+ declare const TableBody: <T extends TableData>({ isLoading, rows, prepareRow, selectedRowsIds, onRowClick, rowHeight, }: Props<T>) => JSX.Element;
12
+ export default TableBody;
@@ -0,0 +1,7 @@
1
+ import { ColumnInstance } from 'react-table';
2
+ import { TableData } from '../../types';
3
+ interface Props<T extends TableData> {
4
+ allColumns: ColumnInstance<T>[];
5
+ }
6
+ declare const TableBodyLoader: <T extends TableData>({ allColumns }: Props<T>) => JSX.Element;
7
+ export default TableBodyLoader;
@@ -0,0 +1,7 @@
1
+ import { TableBodyTrStyles } from '../../utils';
2
+ export interface TableBodyTrProps {
3
+ isSelected?: boolean;
4
+ isDisabled?: boolean;
5
+ }
6
+ declare const TableBodyTr: import("styled-components").StyledComponent<"tr", import("styled-components").DefaultTheme, import("../tableParts/styled").TrProps & TableBodyTrStyles & TableBodyTrProps, keyof TableBodyTrStyles>;
7
+ export default TableBodyTr;
@@ -0,0 +1,3 @@
1
+ import { TableBodyTrStyles } from '../../utils';
2
+ import { TableBodyTrProps } from '../TableBody';
3
+ export declare const TableBodyTr: import("styled-components").StyledComponent<"tr", import("styled-components").DefaultTheme, import("../tableParts/styled").TrProps & TableBodyTrStyles & TableBodyTrProps, keyof TableBodyTrStyles>;
@@ -0,0 +1,6 @@
1
+ interface Props {
2
+ isSorted: boolean;
3
+ isSortedDesc?: boolean;
4
+ }
5
+ declare const SortIndicator: ({ isSorted, isSortedDesc }: Props) => JSX.Element;
6
+ export default SortIndicator;
@@ -0,0 +1,10 @@
1
+ import { HeaderGroup } from 'react-table';
2
+ import { TableData } from '../../types';
3
+ interface Props<T extends TableData> {
4
+ scrollBar: number;
5
+ headerGroups: HeaderGroup<T>[];
6
+ headerHeight?: number | string;
7
+ selectedRowsIds?: string[];
8
+ }
9
+ declare const TableHeader: <T extends TableData>({ headerHeight, headerGroups, scrollBar }: Props<T>) => JSX.Element;
10
+ export default TableHeader;
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  declare type alignType = 'left' | 'center' | 'right';
3
3
  interface Props extends React.HTMLAttributes<HTMLTableDataCellElement> {
4
4
  align?: alignType;
5
+ isLoading?: boolean;
5
6
  }
6
- export declare const TableTd: import("styled-components").StyledComponent<({ children, align, ...rest }: Props) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
7
+ export declare const TableTd: import("styled-components").StyledComponent<({ children, align, isLoading, ...rest }: Props) => JSX.Element, import("styled-components").DefaultTheme, Props, never>;
7
8
  export default TableTd;