@fattureincloud/fic-design-system 0.7.45-tmp-react-18 → 0.7.46

Sign up to get free protection for your applications and to get access to all the features.
Files changed (289) hide show
  1. package/dist/common/components/typography/types.d.ts +3 -3
  2. package/dist/common/hooks/useOutsideClick.d.ts +1 -1
  3. package/dist/common/hooks/useUpDownKeyNavigation.d.ts +2 -2
  4. package/dist/common/types/colorsPalette.d.ts +1 -1
  5. package/dist/common/types/dateTypes.d.ts +2 -2
  6. package/dist/components/accordions/types.d.ts +1 -1
  7. package/dist/components/avatar/types.d.ts +2 -2
  8. package/dist/components/badge/badge.stories.d.ts +2 -2
  9. package/dist/components/badge/types.d.ts +3 -3
  10. package/dist/components/banner/banner.stories.d.ts +2 -2
  11. package/dist/components/banner/types.d.ts +1 -1
  12. package/dist/components/buttons/button/button.stories.d.ts +2 -2
  13. package/dist/components/buttons/button/buttonPalette.d.ts +3 -3
  14. package/dist/components/buttons/button/types.d.ts +5 -5
  15. package/dist/components/buttons/iconButton/iconButton.stories.d.ts +0 -4
  16. package/dist/components/buttons/iconButton/iconButtonPalette.d.ts +3 -3
  17. package/dist/components/buttons/iconButton/types.d.ts +4 -4
  18. package/dist/components/buttons/iconButton/utils.d.ts +1 -1
  19. package/dist/components/card/card.stories.d.ts +2 -2
  20. package/dist/components/card/types.d.ts +5 -5
  21. package/dist/components/chart/Chart.d.ts +4 -0
  22. package/dist/components/chart/chart.stories.d.ts +7 -0
  23. package/dist/components/chart/components/ChartButton.d.ts +8 -0
  24. package/dist/components/chart/components/ChartIndicators.d.ts +14 -0
  25. package/dist/components/chart/components/ChartLegend.d.ts +9 -0
  26. package/dist/components/chart/index.d.ts +2 -0
  27. package/dist/components/chart/stories/data.d.ts +2 -0
  28. package/dist/components/chart/stories/styled.d.ts +4 -0
  29. package/dist/components/chart/styled.d.ts +3 -0
  30. package/dist/components/chart/types.d.ts +52 -0
  31. package/dist/components/chart/utils.d.ts +6 -0
  32. package/dist/components/chip/chip.stories.d.ts +3 -3
  33. package/dist/components/chip/types.d.ts +1 -1
  34. package/dist/components/circularProgressBar/types.d.ts +1 -1
  35. package/dist/components/closableCard/ClosableCard.d.ts +4 -0
  36. package/dist/components/closableCard/closableCard.stories.d.ts +6 -0
  37. package/dist/components/closableCard/closableCardPalette.d.ts +3 -0
  38. package/dist/components/closableCard/index.d.ts +3 -0
  39. package/dist/components/closableCard/styled.d.ts +5 -0
  40. package/dist/components/closableCard/types.d.ts +13 -0
  41. package/dist/components/drawer/utils.d.ts +1 -1
  42. package/dist/components/dropdown/dropdownPalette.d.ts +1 -1
  43. package/dist/components/dropdown/types.d.ts +7 -6
  44. package/dist/components/floatingBadge/floatingBadge.stories.d.ts +2 -2
  45. package/dist/components/floatingBadge/types.d.ts +2 -2
  46. package/dist/components/form/checkbox/Checkbox.d.ts +1 -0
  47. package/dist/components/form/checkbox/checkbox.stories.d.ts +3 -3
  48. package/dist/components/form/checkbox/types.d.ts +4 -3
  49. package/dist/components/form/checkbox/utils.d.ts +1 -1
  50. package/dist/components/form/common/types.d.ts +2 -2
  51. package/dist/components/form/datepicker/components/MonthPicker.d.ts +1 -1
  52. package/dist/components/form/datepicker/datePickerPalette.d.ts +3 -3
  53. package/dist/components/form/datepicker/datepicker.stories.d.ts +3 -3
  54. package/dist/components/form/datepicker/hooks/useDatePickerValues.d.ts +13 -0
  55. package/dist/components/form/datepicker/hooks/useFormattedDate.d.ts +3 -3
  56. package/dist/components/form/datepicker/types.d.ts +5 -5
  57. package/dist/components/form/fileUploader/FileUploader.d.ts +1 -1
  58. package/dist/components/form/fileUploader/components/FileUploaderContent.d.ts +2 -2
  59. package/dist/components/form/fileUploader/fileUploader.stories.d.ts +2 -2
  60. package/dist/components/form/fileUploader/fileUploaderPalette.d.ts +4 -4
  61. package/dist/components/form/fileUploader/hooks/useCustomPalette.d.ts +1 -1
  62. package/dist/components/form/fileUploader/types.d.ts +8 -8
  63. package/dist/components/form/inputHelper/InputHelper.d.ts +2 -2
  64. package/dist/components/form/inputHelper/hooks/useHelperIcon.d.ts +1 -1
  65. package/dist/components/form/inputHelper/inputHelper.stories.d.ts +2 -2
  66. package/dist/components/form/inputHelper/inputHelperPalette.d.ts +1 -1
  67. package/dist/components/form/inputHelper/types.d.ts +1 -1
  68. package/dist/components/form/inputText/components/InputElement.d.ts +3 -3
  69. package/dist/components/form/inputText/components/codeInput/CodeInput.d.ts +4 -0
  70. package/dist/components/form/inputText/components/codeInput/styled.d.ts +29 -0
  71. package/dist/components/form/inputText/components/codeInput/useCodeInputHooks.d.ts +11 -0
  72. package/dist/components/form/inputText/components/telephoneInput/TelephoneInput.d.ts +4 -0
  73. package/dist/components/form/inputText/components/telephoneInput/countriesTelephonePrefixes.d.ts +7 -0
  74. package/dist/components/form/inputText/components/telephoneInput/styled.d.ts +2 -0
  75. package/dist/components/form/inputText/countriesTelephonePrefixes.d.ts +1 -1
  76. package/dist/components/form/inputText/hooks/useCodeInputHooks.d.ts +1 -1
  77. package/dist/components/form/inputText/inputText.stories.d.ts +5 -5
  78. package/dist/components/form/inputText/inputTextPalette.d.ts +2 -2
  79. package/dist/components/form/inputText/types.d.ts +6 -6
  80. package/dist/components/form/label/types.d.ts +1 -1
  81. package/dist/components/form/radio/radio.stories.d.ts +3 -3
  82. package/dist/components/form/radio/types.d.ts +3 -3
  83. package/dist/components/form/radioGroup/radioGroup.stories.d.ts +2 -2
  84. package/dist/components/form/radioGroup/types.d.ts +1 -1
  85. package/dist/components/form/select/Select.d.ts +1 -1
  86. package/dist/components/form/select/SelectWrapper.d.ts +2 -2
  87. package/dist/components/form/select/components/ClearIndicator.d.ts +2 -2
  88. package/dist/components/form/select/components/Control.d.ts +1 -1
  89. package/dist/components/form/select/components/DropdownIndicator.d.ts +1 -1
  90. package/dist/components/form/select/components/MenuList.d.ts +1 -1
  91. package/dist/components/form/select/components/SingleValue.d.ts +1 -1
  92. package/dist/components/form/select/hooks/useSelectGeneric.d.ts +1 -1
  93. package/dist/components/form/select/hooks/useSelectSimpleValue.d.ts +1 -1
  94. package/dist/components/form/select/hooks/useSelectThemeStyles.d.ts +1 -1
  95. package/dist/components/form/select/hooks/useSelectValue.d.ts +2 -2
  96. package/dist/components/form/select/index.d.ts +1 -1
  97. package/dist/components/form/select/select.stories.d.ts +4 -4
  98. package/dist/components/form/select/selectPalette.d.ts +1 -1
  99. package/dist/components/form/select/types.d.ts +5 -5
  100. package/dist/components/form/textArea/TextArea.d.ts +3 -3
  101. package/dist/components/form/textArea/components/TextAreaElement.d.ts +2 -2
  102. package/dist/components/form/textArea/textArea.stories.d.ts +2 -2
  103. package/dist/components/form/textArea/textAreaPalette.d.ts +1 -1
  104. package/dist/components/form/textArea/types.d.ts +1 -1
  105. package/dist/components/graphic/Graphic.d.ts +4 -0
  106. package/dist/components/graphic/components/ChartLegend.d.ts +9 -0
  107. package/dist/components/graphic/components/GraphButton.d.ts +8 -0
  108. package/dist/components/graphic/components/GraphIndicators.d.ts +14 -0
  109. package/dist/components/graphic/graphic.stories.d.ts +7 -0
  110. package/dist/components/graphic/index.d.ts +2 -0
  111. package/dist/components/graphic/stories/data.d.ts +2 -0
  112. package/dist/components/graphic/stories/styled.d.ts +4 -0
  113. package/dist/components/graphic/styled.d.ts +3 -0
  114. package/dist/components/graphic/types.d.ts +52 -0
  115. package/dist/components/graphic/utils.d.ts +6 -0
  116. package/dist/components/icon/Icon.d.ts +1 -1
  117. package/dist/components/icon/components/iconBackground/iconBackgroundPalette.d.ts +1 -1
  118. package/dist/components/icon/components/iconBackground/utils.d.ts +1 -1
  119. package/dist/components/icon/iconPalette.d.ts +4 -4
  120. package/dist/components/inlineMessage/inlineMessage.stories.d.ts +2 -2
  121. package/dist/components/inlineMessage/types.d.ts +2 -2
  122. package/dist/components/layout/sidebarItem/sidebarItem.stories.d.ts +3 -3
  123. package/dist/components/layout/sidebarItem/types.d.ts +4 -4
  124. package/dist/components/microTag/microTagPalette.d.ts +3 -3
  125. package/dist/components/microTag/types.d.ts +1 -1
  126. package/dist/components/modals/components/ModalSearchable.d.ts +3 -3
  127. package/dist/components/modals/index.d.ts +0 -2
  128. package/dist/components/modals/modalStyled.d.ts +1 -1
  129. package/dist/components/modals/modals.stories.d.ts +1 -0
  130. package/dist/components/modals/stepModal/components/styled.d.ts +2 -1
  131. package/dist/components/modals/stepModal/components/utils.d.ts +1 -1
  132. package/dist/components/modals/stepModal/types.d.ts +10 -10
  133. package/dist/components/modals/styleCreators/styledModalBoxWidth.d.ts +1 -1
  134. package/dist/components/modals/types.d.ts +13 -14
  135. package/dist/components/monthlyTab/types.d.ts +4 -4
  136. package/dist/components/newTable/Table.d.ts +2 -1
  137. package/dist/components/newTable/components/action/favorite/Favorite.d.ts +1 -0
  138. package/dist/components/newTable/components/action/favorite/styled.d.ts +1 -0
  139. package/dist/components/newTable/components/action/settings/ColumnsSettings/ColumnItem/ColumnItem.d.ts +1 -1
  140. package/dist/components/newTable/components/body/Body.d.ts +3 -1
  141. package/dist/components/newTable/components/cell/Cell.d.ts +2 -1
  142. package/dist/components/newTable/components/cell/customActionCell/CustomActionCell.d.ts +2 -1
  143. package/dist/components/newTable/components/cell/customCell/CustomCell.d.ts +3 -2
  144. package/dist/components/newTable/components/cell/customCell/CustomInput.d.ts +1 -1
  145. package/dist/components/newTable/components/cell/customCell/TextAreaPopup.d.ts +1 -1
  146. package/dist/components/newTable/components/cell/styled.d.ts +3 -1
  147. package/dist/components/newTable/components/header/Header.d.ts +2 -1
  148. package/dist/components/newTable/components/header/headerCell/ActionHeaderCell.d.ts +4 -2
  149. package/dist/components/newTable/components/header/headerCell/HeaderCell.d.ts +2 -1
  150. package/dist/components/newTable/components/header/styled.d.ts +1 -0
  151. package/dist/components/newTable/components/row/LoadingRow.d.ts +9 -0
  152. package/dist/components/newTable/components/row/Row.d.ts +2 -1
  153. package/dist/components/newTable/hooks/useColumnPinning.d.ts +1 -1
  154. package/dist/components/newTable/index.d.ts +1 -1
  155. package/dist/components/newTable/table.stories.d.ts +2 -2
  156. package/dist/components/newTable/types.d.ts +22 -20
  157. package/dist/components/newTable/utils.d.ts +2 -2
  158. package/dist/components/oldTable/components/checkboxes/Cell.d.ts +1 -1
  159. package/dist/components/oldTable/components/tableParts/TableTd.d.ts +1 -1
  160. package/dist/components/oldTable/components/tableParts/TableTh.d.ts +1 -1
  161. package/dist/components/oldTable/hooks/useTableHooks.d.ts +1 -1
  162. package/dist/components/oldTable/stories/components/Role.d.ts +1 -1
  163. package/dist/components/oldTable/table.stories.d.ts +2 -2
  164. package/dist/components/oldTable/tablePalette.d.ts +6 -6
  165. package/dist/components/oldTable/types.d.ts +3 -3
  166. package/dist/components/pagination/pagination.stories.d.ts +3 -3
  167. package/dist/components/pagination/types.d.ts +4 -4
  168. package/dist/components/progressbar/progressbar.stories.d.ts +2 -2
  169. package/dist/components/progressbar/types.d.ts +1 -1
  170. package/dist/components/segmentButton/segmentButton.stories.d.ts +2 -2
  171. package/dist/components/segmentButton/styled.d.ts +1 -1
  172. package/dist/components/segmentButton/types.d.ts +3 -3
  173. package/dist/components/stepper/components/StepItem.d.ts +1 -1
  174. package/dist/components/stepper/stepperPalette.d.ts +1 -1
  175. package/dist/components/stepper/types.d.ts +1 -1
  176. package/dist/components/switch/types.d.ts +1 -1
  177. package/dist/components/table/components/ActionsCell.d.ts +10 -0
  178. package/dist/components/table/components/SortIndicator.d.ts +6 -0
  179. package/dist/components/table/components/TableBody.d.ts +14 -0
  180. package/dist/components/table/components/TableFoot.d.ts +2 -0
  181. package/dist/components/table/components/TableHeader.d.ts +7 -0
  182. package/dist/components/table/components/tableBody/TableBodyLoader.d.ts +7 -0
  183. package/dist/components/table/components/tableBody/styled.d.ts +3 -0
  184. package/dist/components/tabs/common/Item.d.ts +2 -1
  185. package/dist/components/tabs/common/types.d.ts +2 -1
  186. package/dist/components/tabs/tabs.stories.d.ts +4 -3
  187. package/dist/components/tag/tagPalette.d.ts +5 -5
  188. package/dist/components/tip/tip.stories.d.ts +3 -3
  189. package/dist/components/tip/types.d.ts +3 -3
  190. package/dist/components/toast/styled.d.ts +2 -3
  191. package/dist/components/toast/toast.stories.d.ts +4 -4
  192. package/dist/components/toast/types.d.ts +3 -3
  193. package/dist/components/toast/typings/toast.d.ts +2 -0
  194. package/dist/components/tooltip/Tooltip.d.ts +4 -1
  195. package/dist/components/tooltip/styled.d.ts +4 -0
  196. package/dist/components/tooltip/tooltip.stories.d.ts +7 -5
  197. package/dist/components/tooltip/tooltipPalette.d.ts +2 -2
  198. package/dist/components/verticalTab/components/VerticalTabSelector/types.d.ts +1 -1
  199. package/dist/components/verticalTab/index.d.ts +2 -2
  200. package/dist/index.css +128 -0
  201. package/dist/index.d.ts +45 -37
  202. package/dist/index.esm.css +128 -0
  203. package/dist/index.esm.js +14 -8
  204. package/dist/index.esm.js.map +1 -1
  205. package/dist/index.js +14 -8
  206. package/dist/index.js.map +1 -1
  207. package/dist/styles/defaultPalette/colors/azure.d.ts +2 -0
  208. package/dist/styles/defaultPalette/colors/purple.d.ts +2 -0
  209. package/dist/styles/theme.d.ts +2 -0
  210. package/dist/styles/types.d.ts +11 -11
  211. package/package.json +61 -67
  212. package/dist/components/accordion-new/Accordion.d.ts +0 -12
  213. package/dist/components/accordion-new/accordion-new.stories.d.ts +0 -4
  214. package/dist/components/accordion-new/components/AccordionIcon.d.ts +0 -3
  215. package/dist/components/accordion-new/components/AccordionItem.d.ts +0 -3
  216. package/dist/components/accordion-new/components/styled.d.ts +0 -8
  217. package/dist/components/accordion-new/index.d.ts +0 -3
  218. package/dist/components/accordion-new/types.d.ts +0 -58
  219. package/dist/components/accordion-new/utils.d.ts +0 -10
  220. package/dist/components/checkbox/Checkbox.d.ts +0 -15
  221. package/dist/components/checkbox/checkbox.stories.d.ts +0 -1
  222. package/dist/components/checkbox/checkboxPalette.d.ts +0 -16
  223. package/dist/components/checkbox/components/Input.d.ts +0 -9
  224. package/dist/components/checkbox/components/Label.d.ts +0 -8
  225. package/dist/components/checkbox/hooks/useCheckboxValue.d.ts +0 -11
  226. package/dist/components/checkbox/index.d.ts +0 -4
  227. package/dist/components/checkbox/types.d.ts +0 -19
  228. package/dist/components/checkbox/utils.d.ts +0 -24
  229. package/dist/components/form/fileUploader/fileTypes.d.ts +0 -3
  230. package/dist/components/form/fileUploader/hooks/useIcon.d.ts +0 -4
  231. package/dist/components/form/fileUploader/hooks/useTexts.d.ts +0 -3
  232. package/dist/components/form/select/components/types.d.ts +0 -10
  233. package/dist/components/inputText/components/icons.d.ts +0 -8
  234. package/dist/components/inputText/components/inputContainer.d.ts +0 -1
  235. package/dist/components/inputText/components/messages.d.ts +0 -2
  236. package/dist/components/inputText/components/wrapperTextArea.d.ts +0 -1
  237. package/dist/components/inputText/icons.d.ts +0 -9
  238. package/dist/components/inputText/index.d.ts +0 -3
  239. package/dist/components/inputText/inputText.stories.d.ts +0 -1
  240. package/dist/components/inputText/inputTextStyledWrapper.d.ts +0 -2
  241. package/dist/components/inputText/sideText.d.ts +0 -6
  242. package/dist/components/inputText/typings/enums.d.ts +0 -17
  243. package/dist/components/inputText/typings/inputText.d.ts +0 -43
  244. package/dist/components/inputText/utils.d.ts +0 -8
  245. package/dist/components/select/hooks/constants.d.ts +0 -4613
  246. package/dist/components/select/hooks/useCustomSelectStyle.d.ts +0 -4
  247. package/dist/components/select/index.d.ts +0 -4
  248. package/dist/components/select/select.stories.d.ts +0 -1
  249. package/dist/components/select/typings/select.d.ts +0 -22
  250. package/dist/components/stepBar/components/singleStep.d.ts +0 -3
  251. package/dist/components/stepBar/components/styledStepBarWrapper.d.ts +0 -2
  252. package/dist/components/stepBar/index.d.ts +0 -2
  253. package/dist/components/stepBar/stepBar.d.ts +0 -7
  254. package/dist/components/stepBar/stepBar.stories.d.ts +0 -1
  255. package/dist/components/stepBar/types.d.ts +0 -15
  256. package/dist/components/table/components/actionLink.d.ts +0 -3
  257. package/dist/components/table/components/actions/actionsContainer.d.ts +0 -1
  258. package/dist/components/table/components/actions/actionsPopUp.d.ts +0 -12
  259. package/dist/components/table/components/actions/actionsPopUpButton.d.ts +0 -8
  260. package/dist/components/table/components/actions/actionsPopUpUnderlay.d.ts +0 -3
  261. package/dist/components/table/components/components/headDesktop.d.ts +0 -15
  262. package/dist/components/table/components/components/listMobile.d.ts +0 -15
  263. package/dist/components/table/components/components/rowDesktop.d.ts +0 -18
  264. package/dist/components/table/components/customizationModal/customizationsModal.d.ts +0 -10
  265. package/dist/components/table/components/customizationModal/index.d.ts +0 -2
  266. package/dist/components/table/components/customizationModal/styledWrapper.d.ts +0 -3
  267. package/dist/components/table/components/customizationModal/useDnd.d.ts +0 -8
  268. package/dist/components/table/components/customizationModal/utils.d.ts +0 -6
  269. package/dist/components/table/components/emptySet.d.ts +0 -10
  270. package/dist/components/table/components/linearBackground.d.ts +0 -1
  271. package/dist/components/table/components/loadingContent.d.ts +0 -7
  272. package/dist/components/table/components/sortIcon.d.ts +0 -2
  273. package/dist/components/table/components/styledWrapper.d.ts +0 -3
  274. package/dist/components/table/components/unstyledTable.d.ts +0 -11
  275. package/dist/components/table/typings/main.d.ts +0 -92
  276. package/dist/components/table/utils/configPersistency.d.ts +0 -14
  277. package/dist/components/textButton/TextButton.d.ts +0 -12
  278. package/dist/components/textButton/index.d.ts +0 -2
  279. package/dist/components/textButton/textButton.stories.d.ts +0 -1
  280. package/dist/components/tooltips/components/message.d.ts +0 -12
  281. package/dist/components/tooltips/components/styledTooltipWrapper.d.ts +0 -1
  282. package/dist/components/tooltips/index.d.ts +0 -2
  283. package/dist/components/tooltips/tooltips.d.ts +0 -15
  284. package/dist/components/tooltips/tooltips.stories.d.ts +0 -1
  285. package/dist/components/tooltips/types.d.ts +0 -25
  286. package/dist/styles/elevations.d.ts +0 -7
  287. package/dist/utils/FICNumbers.d.ts +0 -11
  288. /package/dist/components/table/{table.d.ts → Table.d.ts} +0 -0
  289. /package/dist/components/table/components/{pagination.d.ts → Pagination.d.ts} +0 -0
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { Row } from '@tanstack/react-table';
3
3
  import { AccessorColumnDef, AdditionalColumnDef, CustomCellProps } from '../../../types';
4
- type CustomInputProps<CellProps> = {
4
+ declare type CustomInputProps<CellProps> = {
5
5
  row: Row<CellProps>;
6
6
  hover?: boolean;
7
7
  } & CustomCellProps & Omit<AccessorColumnDef<CellProps>, 'isEditable'> & AdditionalColumnDef<CellProps>;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { Row } from '@tanstack/react-table';
3
3
  import { AccessorColumnDef, CustomCellProps } from '../../../types';
4
- type TextAreaPopupProps<CellProps> = {
4
+ declare type TextAreaPopupProps<CellProps> = {
5
5
  row: Row<CellProps>;
6
6
  onBlur: () => void;
7
7
  } & CustomCellProps & Omit<AccessorColumnDef<CellProps>, 'isEditable'>;
@@ -22,4 +22,6 @@ export declare const MicroTagContainer: import("styled-components").StyledCompon
22
22
  export declare const InputTextWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
23
23
  hasMeasureUnit?: boolean | undefined;
24
24
  }, never>;
25
- export declare const ContentContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
25
+ export declare const ContentContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
26
+ unitSymbol?: string | undefined;
27
+ }, never>;
@@ -16,6 +16,7 @@ interface HeaderProps<T> {
16
16
  notRemovableColumns?: string[];
17
17
  onChangeTableSettings?: onChangeTableSettings;
18
18
  isLoading: boolean;
19
+ actionColumnWidth?: string | number;
19
20
  }
20
- declare const Header: <T>({ headerGroup, headerSize, onSort, forceHideSettings, rowSelection, setRowSelection, preSettedTableSettings, onChangeTableSettings, notRemovableColumns, isLoading, }: HeaderProps<T>) => JSX.Element;
21
+ declare const Header: <T>({ headerGroup, headerSize, onSort, forceHideSettings, rowSelection, setRowSelection, preSettedTableSettings, onChangeTableSettings, notRemovableColumns, isLoading, actionColumnWidth, }: HeaderProps<T>) => JSX.Element;
21
22
  export default Header;
@@ -1,9 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  import { Header } from '@tanstack/react-table';
3
3
  import { onChangeTableSettings } from '../../../types';
4
- interface CustomHeaderCellProps<T> {
4
+ export interface CustomHeaderCellProps<T> {
5
5
  header: Header<T, unknown>;
6
6
  onOpen?: (isOpen: boolean) => void;
7
+ onClose?: (isOpen: boolean) => void;
7
8
  forceHideSettings: boolean;
8
9
  rowSelection?: string[];
9
10
  setRowSelection?: (e: string[]) => void;
@@ -11,6 +12,7 @@ interface CustomHeaderCellProps<T> {
11
12
  dimensionRow?: number;
12
13
  onChangeTableSettings?: onChangeTableSettings;
13
14
  isLoading: boolean;
15
+ actionColumnWidth?: number | string;
14
16
  }
15
- declare const ActionHeaderCell: <T>({ header, onOpen, forceHideSettings, rowSelection, setRowSelection, notRemovableColumns, dimensionRow, onChangeTableSettings, isLoading, }: CustomHeaderCellProps<T>) => JSX.Element;
17
+ declare const ActionHeaderCell: <T>({ header, onOpen, onClose, forceHideSettings, rowSelection, setRowSelection, notRemovableColumns, dimensionRow, onChangeTableSettings, isLoading, actionColumnWidth, }: CustomHeaderCellProps<T>) => JSX.Element;
16
18
  export default ActionHeaderCell;
@@ -14,6 +14,7 @@ interface HeaderCellProps<T> {
14
14
  dimensionRow?: number;
15
15
  onChangeTableSettings?: onChangeTableSettings;
16
16
  isLoading: boolean;
17
+ actionColumnWidth?: string | number;
17
18
  }
18
- declare const HeaderCell: <T>({ header, headerSize, onSort, customSorted, setCustomSorted, forceHideSettings, rowSelection, setRowSelection, notRemovableColumns, dimensionRow, onChangeTableSettings, isLoading, }: HeaderCellProps<T>) => JSX.Element;
19
+ declare const HeaderCell: <T>({ header, headerSize, onSort, customSorted, setCustomSorted, forceHideSettings, rowSelection, setRowSelection, notRemovableColumns, dimensionRow, onChangeTableSettings, isLoading, actionColumnWidth, }: HeaderCellProps<T>) => JSX.Element;
19
20
  export default HeaderCell;
@@ -0,0 +1 @@
1
+ export declare const THead: import("styled-components").StyledComponent<"thead", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { ColumnDef } from '@tanstack/react-table';
3
+ import { CellProps } from '../../types';
4
+ interface Props<T> {
5
+ loadingMode: 'full' | 'cell';
6
+ columns: ColumnDef<T, CellProps>[];
7
+ }
8
+ declare const LoadingRow: <T>({ columns, loadingMode }: Props<T>) => JSX.Element;
9
+ export default LoadingRow;
@@ -8,6 +8,7 @@ interface TrProps<T> extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLTa
8
8
  onRowClick?: (row: Row<T>) => void;
9
9
  isRowHighlighted: boolean;
10
10
  rowHighlightColor?: TableProps<T>['rowHighlightColor'];
11
+ actionColumnWidth?: string | number;
11
12
  }
12
- declare const Tr: <T>({ row, isLoading, onRowClick, isRowHighlighted, rowHighlightColor, defaultRowSize, }: TrProps<T>) => JSX.Element;
13
+ declare const Tr: <T>({ row, isLoading, onRowClick, isRowHighlighted, rowHighlightColor, defaultRowSize, actionColumnWidth, }: TrProps<T>) => JSX.Element;
13
14
  export default Tr;
@@ -4,5 +4,5 @@ interface ReturnType {
4
4
  readonly columnPinning: ColumnPinningState;
5
5
  readonly setColumnPinning: React.Dispatch<React.SetStateAction<ColumnPinningState>>;
6
6
  }
7
- export declare const useColumnPinning: (defaultValues?: ColumnPinningState) => ReturnType;
7
+ export declare const useColumnPinning: (defaultValues?: ColumnPinningState | undefined) => ReturnType;
8
8
  export {};
@@ -1,2 +1,2 @@
1
1
  export { default as NewTable } from './Table';
2
- export { ColumnDefType, ColumnsType, CellProps, BulkAction, RowActions, RowAction, RowSize } from './types';
2
+ export { ColumnDefType, ColumnsType, CellProps, BulkAction, RowActions, RowAction } from './types';
@@ -1,6 +1,6 @@
1
- import { Meta, StoryFn } from '@storybook/react';
1
+ import { Meta, Story } from '@storybook/react';
2
2
  import { DataType } from './stories/types';
3
3
  import { TableProps } from './types';
4
- export declare const Template: StoryFn<TableProps<DataType>>;
4
+ export declare const Template: Story<TableProps<DataType>>;
5
5
  declare const TableStories: Meta<TableProps<DataType>>;
6
6
  export default TableStories;
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { Column, DisplayColumnDef, GroupColumnDef, IdentifiedColumnDef, PaginationState, Row, SortDirection } from '@tanstack/react-table';
2
+ import { DisplayColumnDef, GroupColumnDef, IdentifiedColumnDef, PaginationState, Row, SortDirection } from '@tanstack/react-table';
3
+ import { buttonColors } from 'components/buttons/button/types';
3
4
  import { AvatarProps } from '../avatar';
4
5
  import { ButtonProps } from '../buttons';
5
6
  import { DropdownItemType } from '../dropdown';
@@ -50,8 +51,10 @@ export interface TableProps<T> {
50
51
  };
51
52
  notRemovableColumns?: string[];
52
53
  onChangeTableSettings?: onChangeTableSettings;
54
+ actionColumnWidth?: string | number;
55
+ disableScrollX?: boolean;
53
56
  }
54
- export type onChangeTableSettings = (key: keyof PreSettedTableSettings, valueChange: Pick<PreSettedTableSettings, 'orderColumns' | 'dimensionRow' | 'notVisibleColumns'>) => void;
57
+ export declare type onChangeTableSettings = (key: keyof PreSettedTableSettings, valueChange: Pick<PreSettedTableSettings, 'orderColumns' | 'dimensionRow' | 'notVisibleColumns'>) => void;
55
58
  export interface PreSettedTableSettings {
56
59
  orderColumns?: string[];
57
60
  dimensionRow?: number;
@@ -68,8 +71,8 @@ interface SettingsDropdownConfig {
68
71
  }
69
72
  export declare enum RowSize {
70
73
  UNSPECIFIED = 0,
71
- SMALL = 42,
72
- LARGE = 56
74
+ SMALL,
75
+ LARGE
73
76
  }
74
77
  export declare enum ColumnDefType {
75
78
  ACCESSOR = "accessor",
@@ -89,14 +92,14 @@ interface InitalColumnDef<T> extends Omit<IdentifiedColumnDef<T, CellProps>, 'he
89
92
  header?: IdentifiedColumnDef<T, CellProps>['header'] | JSX.Element;
90
93
  disableClick?: boolean;
91
94
  }
92
- export type AccessorColumnDef<T> = InitalColumnDef<T> | ExtraColumnDef<T>;
95
+ export declare type AccessorColumnDef<T> = InitalColumnDef<T> | ExtraColumnDef<T>;
93
96
  export declare enum ActionType {
94
97
  CHECKBOX = "checkbox",
95
98
  TOGGLE = "toggle",
96
99
  ROW_ACTIONS = "row_actions",
97
100
  SETTINGS = "settings"
98
101
  }
99
- export type ActionColumnDef<T> = {
102
+ export declare type ActionColumnDef<T> = {
100
103
  onActionChange?: (id: string) => void;
101
104
  actionType: ActionType;
102
105
  toggles?: string[];
@@ -105,7 +108,7 @@ export type ActionColumnDef<T> = {
105
108
  rowActions?: RowActions<T>;
106
109
  settingsDropdownConfig?: SettingsDropdownConfig;
107
110
  } & IdentifiedColumnDef<T, CellProps>;
108
- export type AdditionalColumnDef<T> = {
111
+ export declare type AdditionalColumnDef<T> = {
109
112
  unitSymbol?: string;
110
113
  minWidth?: number;
111
114
  maxWidth?: number;
@@ -114,7 +117,7 @@ export type AdditionalColumnDef<T> = {
114
117
  align?: 'center' | 'left' | 'right';
115
118
  headerTitle?: string;
116
119
  };
117
- export type ColumnsType<T> = ({
120
+ export declare type ColumnsType<T> = ({
118
121
  columnDefType: ColumnDefType.ACCESSOR;
119
122
  columnDef: AccessorColumnDef<T> & AdditionalColumnDef<T>;
120
123
  } & BaseColumnsType<T>) | ({
@@ -148,8 +151,8 @@ export interface BasicCustomCell {
148
151
  tag?: TagProps;
149
152
  isToggled?: boolean;
150
153
  }
151
- export type CustomCellProps = CustomCellWithIcon | CustomCellWithAvatar;
152
- export type CellProps = CustomCellProps | string | number;
154
+ export declare type CustomCellProps = CustomCellWithIcon | CustomCellWithAvatar;
155
+ export declare type CellProps = CustomCellProps | string | number;
153
156
  export interface RowActions<T> {
154
157
  headerTitle?: string | number;
155
158
  primary?: PrimaryAction<T>[];
@@ -161,20 +164,24 @@ export interface RowAction<T> {
161
164
  type?: DropdownItemType;
162
165
  onClick: (row: Row<T>) => void;
163
166
  }
164
- type BasicPrimaryAction<T> = {
167
+ declare type BasicPrimaryAction<T> = {
165
168
  tooltip?: TooltipProps;
166
169
  onClick: (row: Row<T>) => void;
167
170
  };
168
171
  interface PrimaryTextAction<T> extends BasicPrimaryAction<T> {
169
172
  text?: string | number;
170
173
  icon?: never;
174
+ color?: buttonColors;
175
+ className?: string;
171
176
  }
172
177
  interface PrimaryIconAction<T> extends BasicPrimaryAction<T> {
173
178
  text?: never;
174
179
  icon?: IconProps;
180
+ color?: buttonColors;
181
+ className?: string;
175
182
  }
176
- export type PrimaryAction<T> = PrimaryTextAction<T> | PrimaryIconAction<T>;
177
- export type DropdownAction<T> = {
183
+ export declare type PrimaryAction<T> = PrimaryTextAction<T> | PrimaryIconAction<T>;
184
+ export declare type DropdownAction<T> = {
178
185
  items: RowAction<T>[];
179
186
  tooltip?: TooltipProps;
180
187
  };
@@ -187,16 +194,11 @@ export interface AllSelectedCTA {
187
194
  onClick: () => void;
188
195
  text: string;
189
196
  }
190
- export type OnSort<T> = (sortParams: {
197
+ export declare type OnSort<T> = (sortParams: {
191
198
  sortBy: keyof T;
192
199
  direction: false | SortDirection;
193
200
  }) => void;
194
- export type CustomSorted<T> = {
201
+ export declare type CustomSorted<T> = {
195
202
  [key in keyof T]: false | SortDirection;
196
203
  };
197
- export type CustomColumn<T> = Column<T, unknown> & {
198
- columnDef: Pick<Column<T, unknown>, 'columnDef'> & {
199
- headerTitle?: string;
200
- };
201
- };
202
204
  export {};
@@ -8,6 +8,6 @@ interface ColumnsHelperProps<T> extends Omit<TableProps<T>, 'data' | 'uniqueId'>
8
8
  notVisibleColumns?: string[];
9
9
  };
10
10
  }
11
- export declare const useColumnsHelper: <T>({ columns, isSelectable, toggles, isTogglesSortable, onTogglesChange, rowActions, enableSettings, settingsDropdownConfig, preSettedTableSettings, }: ColumnsHelperProps<T>) => ColumnDef<T, CellProps>[];
12
- export declare const getNextSortingDirection: (direction?: false | SortDirection) => false | SortDirection;
11
+ export declare const useColumnsHelper: <T>({ columns, isSelectable, toggles, isTogglesSortable, onTogglesChange, rowActions, enableSettings, settingsDropdownConfig, preSettedTableSettings, actionColumnWidth, }: ColumnsHelperProps<T>) => ColumnDef<T, CellProps>[];
12
+ export declare const getNextSortingDirection: (direction?: false | SortDirection | undefined) => false | SortDirection;
13
13
  export {};
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { CellProps } from 'react-table';
3
3
  import { TableData } from '../../types';
4
- declare const Cell: <T extends TableData>({ row }: CellProps<T>) => JSX.Element;
4
+ declare const Cell: <T extends TableData>({ row }: CellProps<T, any>) => JSX.Element;
5
5
  export default Cell;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- type alignType = 'left' | 'center' | 'right';
2
+ declare type alignType = 'left' | 'center' | 'right';
3
3
  interface Props extends React.HTMLAttributes<HTMLTableDataCellElement> {
4
4
  align?: alignType;
5
5
  isLoading?: boolean;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- type Props = React.HTMLAttributes<HTMLTableHeaderCellElement>;
2
+ declare type Props = React.HTMLAttributes<HTMLTableHeaderCellElement>;
3
3
  export declare const TableTh: import("styled-components").StyledComponent<({ children, ...rest }: Props) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
4
4
  export default TableTh;
@@ -1,6 +1,6 @@
1
1
  import { PluginHook } from 'react-table';
2
2
  import { TableProps } from '../Table';
3
3
  import { TableData } from '../types';
4
- type Props<T extends TableData> = Pick<TableProps<T>, 'actions' | 'withCheckbox' | 'renderActions' | 'selectableRows' | 'actionsHeader'>;
4
+ declare type Props<T extends TableData> = Pick<TableProps<T>, 'actions' | 'withCheckbox' | 'renderActions' | 'selectableRows' | 'actionsHeader'>;
5
5
  declare const useTableHooks: <T extends TableData>({ actions, renderActions, withCheckbox, selectableRows, actionsHeader, }: Props<T>) => PluginHook<T>[];
6
6
  export default useTableHooks;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export declare const rolesArray: readonly ["master", "admin", undefined];
3
- export type roleType = typeof rolesArray[number];
3
+ export declare type roleType = typeof rolesArray[number];
4
4
  interface Props {
5
5
  role: roleType;
6
6
  }
@@ -1,6 +1,6 @@
1
- import { Meta, StoryFn } from '@storybook/react';
1
+ import { Meta, Story } from '@storybook/react';
2
2
  import { DataType } from './stories/components/types';
3
3
  import { TableProps } from './Table';
4
- export declare const Template: StoryFn<TableProps<DataType>>;
4
+ export declare const Template: Story<TableProps<DataType>>;
5
5
  declare const TableStories: Meta<TableProps<DataType>>;
6
6
  export default TableStories;
@@ -1,22 +1,22 @@
1
1
  import { colorsPalette } from '../../common/types/colorsPalette';
2
2
  import { ButtonProps, IconButtonProps } from '../buttons';
3
3
  import { DropdownItemType } from '../dropdown';
4
- type TableHeaderPalette = colorsPalette;
5
- type rowStatus = 'normal' | 'hover' | 'selected' | 'disabled';
6
- type TableRowsPalette = {
4
+ declare type TableHeaderPalette = colorsPalette;
5
+ declare type rowStatus = 'normal' | 'hover' | 'selected' | 'disabled';
6
+ declare type TableRowsPalette = {
7
7
  [k in rowStatus]: colorsPalette;
8
8
  };
9
9
  interface SelectedRowsCountPalette extends colorsPalette {
10
10
  resetButtonColor: ButtonProps['color'];
11
11
  }
12
- type paginationItemStatus = 'normal' | 'hover' | 'active';
13
- type PaginationPalette = {
12
+ declare type paginationItemStatus = 'normal' | 'hover' | 'active';
13
+ declare type PaginationPalette = {
14
14
  numbers: {
15
15
  [k in paginationItemStatus]: colorsPalette;
16
16
  };
17
17
  buttons: ButtonProps['color'];
18
18
  };
19
- type ActionsPalette = {
19
+ declare type ActionsPalette = {
20
20
  colors: {
21
21
  [k in DropdownItemType]: ButtonProps['color'];
22
22
  };
@@ -22,7 +22,7 @@ interface ManualPaginationConfig {
22
22
  pageCount: number;
23
23
  setCurrentPage: (page: number) => void;
24
24
  }
25
- export type ManualPagination = ManualPaginationConfig | undefined;
26
- export type OnSort<T extends TableData> = (sortBy: Array<SortingRule<T>>) => void;
27
- export type OnSelectionChange<T extends TableData> = (rows: Row<T>[], addedRows: Row<T>[], removedRows: Row<T>[]) => void;
25
+ export declare type ManualPagination = ManualPaginationConfig | undefined;
26
+ export declare type OnSort<T extends TableData> = (sortBy: Array<SortingRule<T>>) => void;
27
+ export declare type OnSelectionChange<T extends TableData> = (rows: Row<T>[], addedRows: Row<T>[], removedRows: Row<T>[]) => void;
28
28
  export {};
@@ -1,6 +1,6 @@
1
- import { Meta, StoryFn } from '@storybook/react';
1
+ import { Meta, Story } from '@storybook/react';
2
2
  import { PaginationProps } from './types';
3
- export declare const Template: StoryFn<PaginationProps>;
4
- export declare const Normal: StoryFn<PaginationProps>;
3
+ export declare const Template: Story<PaginationProps>;
4
+ export declare const Normal: Story<PaginationProps>;
5
5
  declare const PaginationStories: Meta<PaginationProps>;
6
6
  export default PaginationStories;
@@ -6,7 +6,7 @@ export declare enum PaginationType {
6
6
  YELLOW = "yellow",
7
7
  GREEN = "green"
8
8
  }
9
- export type PaginationProps = {
9
+ export declare type PaginationProps = {
10
10
  pageSize: number;
11
11
  listSize: number;
12
12
  changePageAction: (pageNumber: number) => void;
@@ -17,9 +17,9 @@ export type PaginationProps = {
17
17
  nextText: string;
18
18
  totalPages?: number;
19
19
  };
20
- type PaginationNumbersStatus = 'normal' | 'hover' | 'active';
21
- type PaginationButtonsStatus = 'normal' | 'disabled';
22
- export type PaginationPalette = {
20
+ declare type PaginationNumbersStatus = 'normal' | 'hover' | 'active';
21
+ declare type PaginationButtonsStatus = 'normal' | 'disabled';
22
+ export declare type PaginationPalette = {
23
23
  numbers: {
24
24
  [k in PaginationNumbersStatus]: {
25
25
  backgroundColor: paletteColor;
@@ -1,8 +1,8 @@
1
- import { Meta, StoryFn } from '@storybook/react';
1
+ import { Meta, Story } from '@storybook/react';
2
2
  import React, { ComponentProps } from 'react';
3
3
  import { ProgressBar } from '.';
4
4
  import { ProgressBarProps } from './';
5
- export declare const Template: StoryFn<ProgressBarProps>;
5
+ export declare const Template: Story<ProgressBarProps>;
6
6
  export declare const Editable: () => React.JSX.Element;
7
7
  export declare const Autocomplete: () => React.JSX.Element;
8
8
  export declare const AllColors: () => React.JSX.Element;
@@ -10,7 +10,7 @@ export interface ProgressBarProps {
10
10
  color?: ProgressBarType;
11
11
  percentage: number;
12
12
  }
13
- export type ProgressBarPalette = {
13
+ export declare type ProgressBarPalette = {
14
14
  [key in ProgressBarType]: {
15
15
  backgroundColor: paletteColor;
16
16
  };
@@ -1,5 +1,5 @@
1
- import { Meta, StoryFn } from '@storybook/react';
1
+ import { Meta, Story } from '@storybook/react';
2
2
  import { SegmentButtonProps } from './types';
3
- export declare const Standard: StoryFn<SegmentButtonProps>;
3
+ export declare const Standard: Story<SegmentButtonProps>;
4
4
  declare const SegmentButtonStories: Meta<SegmentButtonProps>;
5
5
  export default SegmentButtonStories;
@@ -1,4 +1,4 @@
1
- type Props = {
1
+ declare type Props = {
2
2
  active: boolean;
3
3
  };
4
4
  export declare const SegmentButtonContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -1,6 +1,6 @@
1
1
  import { paletteColor } from '../../styles/types';
2
2
  import { IconProps } from '../icon';
3
- export type SegmentButtonPalette = {
3
+ export declare type SegmentButtonPalette = {
4
4
  selected: {
5
5
  background: paletteColor;
6
6
  border: paletteColor;
@@ -14,12 +14,12 @@ export type SegmentButtonPalette = {
14
14
  secondary: paletteColor;
15
15
  };
16
16
  };
17
- export type Segment = {
17
+ export declare type Segment = {
18
18
  counter?: number;
19
19
  icon?: IconProps;
20
20
  text?: string;
21
21
  };
22
- export type SegmentButtonProps = {
22
+ export declare type SegmentButtonProps = {
23
23
  onChange?: (i: number, s: Segment) => void;
24
24
  preselected?: number;
25
25
  segments: Segment[];
@@ -6,5 +6,5 @@ interface Props {
6
6
  status: stepStatusType;
7
7
  }
8
8
  declare const StepItem: ({ text, number, status }: Props) => JSX.Element;
9
- export type StepItemWrapperProps = Pick<Props, 'status'>;
9
+ export declare type StepItemWrapperProps = Pick<Props, 'status'>;
10
10
  export default StepItem;
@@ -5,7 +5,7 @@ export interface ItemStatusStyles {
5
5
  circleBackground: paletteColor;
6
6
  circleTextColor: paletteColor;
7
7
  }
8
- type ItemPalette = {
8
+ declare type ItemPalette = {
9
9
  [k in stepStatusType]: ItemStatusStyles;
10
10
  };
11
11
  export interface StepperPalette {
@@ -1 +1 @@
1
- export type stepStatusType = 'completed' | 'active' | 'normal';
1
+ export declare type stepStatusType = 'completed' | 'active' | 'normal';
@@ -1,5 +1,5 @@
1
1
  import { InputHTMLAttributes } from 'react';
2
- export type switchColors = 'blue' | 'green';
2
+ export declare type switchColors = 'blue' | 'green';
3
3
  export interface SwitchProps {
4
4
  checked: boolean;
5
5
  onChange: InputHTMLAttributes<HTMLInputElement>['onChange'];
@@ -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,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,14 @@
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
+ }
9
+ declare const TableBody: <T extends TableData>({ isLoading, rows, prepareRow, selectedRowsIds }: Props<T>) => JSX.Element;
10
+ export interface TableBodyTrProps {
11
+ isSelected?: boolean;
12
+ isDisabled?: boolean;
13
+ }
14
+ export default TableBody;
@@ -0,0 +1,2 @@
1
+ declare const TableFoot: import("styled-components").StyledComponent<"tfoot", import("styled-components").DefaultTheme, {}, never>;
2
+ export default TableFoot;
@@ -0,0 +1,7 @@
1
+ import { HeaderGroup } from 'react-table';
2
+ import { TableData } from '../types';
3
+ interface Props<T extends TableData> {
4
+ headerGroups: HeaderGroup<T>[];
5
+ }
6
+ declare const TableHeader: <T extends TableData>({ headerGroups }: Props<T>) => JSX.Element;
7
+ export default TableHeader;
@@ -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,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>;
@@ -2,6 +2,7 @@ import { RefObject } from 'react';
2
2
  import { TabsItem } from './types';
3
3
  interface Props extends TabsItem {
4
4
  tabRef?: () => RefObject<HTMLDivElement>;
5
+ customBadge?: JSX.Element;
5
6
  }
6
- declare const Item: ({ active, handleClick, tabRef, text, tooltip, badge }: Props) => JSX.Element;
7
+ declare const Item: ({ active, handleClick, tabRef, text, tooltip, badge, customBadge }: Props) => JSX.Element;
7
8
  export default Item;
@@ -7,11 +7,12 @@ export interface TabsProps {
7
7
  distance?: number;
8
8
  lateralPadding?: number;
9
9
  }
10
- export type TabsBadgeProps = Omit<WithBadgeProps, 'children'>;
10
+ export declare type TabsBadgeProps = Omit<WithBadgeProps, 'children'>;
11
11
  export interface TabsItem {
12
12
  text: string | JSX.Element;
13
13
  active?: boolean;
14
14
  handleClick?: () => void;
15
15
  tooltip?: TooltipProps;
16
16
  badge?: TabsBadgeProps;
17
+ customBadge?: JSX.Element;
17
18
  }
@@ -1,7 +1,8 @@
1
+ /// <reference types="react" />
1
2
  import { Meta } from '@storybook/react';
2
- import React from 'react';
3
3
  import { TabsProps } from './common/types';
4
- export declare const WithDropdown: () => React.JSX.Element;
5
- export declare const Scrollable: () => React.JSX.Element;
4
+ export declare const WithDropdown: () => JSX.Element;
5
+ export declare const Scrollable: () => JSX.Element;
6
6
  declare const TabsStories: Meta<TabsProps>;
7
+ export declare const WithCustomBadge: () => JSX.Element;
7
8
  export default TabsStories;
@@ -1,11 +1,11 @@
1
1
  import { paletteColor } from '../../styles/types';
2
- export type tagTypes = 'standard' | 'error' | 'info' | 'warning' | 'success';
3
- export type tagStyles = 'soft' | 'full' | 'text';
4
- export type tagParts = 'color' | 'backgroundColor';
5
- export type TagParts = {
2
+ export declare type tagTypes = 'standard' | 'error' | 'info' | 'warning' | 'success';
3
+ export declare type tagStyles = 'soft' | 'full' | 'text';
4
+ export declare type tagParts = 'color' | 'backgroundColor';
5
+ export declare type TagParts = {
6
6
  [key in tagParts]: paletteColor;
7
7
  };
8
- export type TagPalette = {
8
+ export declare type TagPalette = {
9
9
  [key in tagStyles]: {
10
10
  [key in tagTypes]: TagParts;
11
11
  };
@@ -1,6 +1,6 @@
1
- import { Meta, StoryFn } from '@storybook/react';
1
+ import { Meta, Story } from '@storybook/react';
2
2
  import { ShortcutTipProps, TipProps } from './types';
3
- export declare const Normal: StoryFn<TipProps>;
4
- export declare const Shortcut: StoryFn<ShortcutTipProps>;
3
+ export declare const Normal: Story<TipProps>;
4
+ export declare const Shortcut: Story<ShortcutTipProps>;
5
5
  declare const TipStories: Meta<TipProps>;
6
6
  export default TipStories;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { ReactChild } from 'react';
2
2
  import { paletteColor } from '../..';
3
3
  import { IconProps } from '../icon';
4
4
  export declare enum TipType {
@@ -18,10 +18,10 @@ export interface TipProps {
18
18
  leftIcon?: IconProps;
19
19
  onClose?: () => void;
20
20
  renderCloseIcon?: () => JSX.Element;
21
- text: ReactNode;
21
+ text: ReactChild;
22
22
  type?: TipType;
23
23
  }
24
- export type TipPalette = {
24
+ export declare type TipPalette = {
25
25
  [key in TipType]: {
26
26
  color: paletteColor;
27
27
  backgroundColor: paletteColor;