@corva/ui 0.97.0-7 → 0.97.0-9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (305) hide show
  1. package/cjs-bundle/components/AddComment/Popover.js +1 -1
  2. package/cjs-bundle/components/AddComment/components/Content.js +1 -1
  3. package/cjs-bundle/components/AdvancedSlider/AdvancedSlider.js +1 -1
  4. package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
  5. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  6. package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
  7. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  8. package/cjs-bundle/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
  9. package/cjs-bundle/components/ColorPickerPalette/ColorPickerPalette.js +1 -1
  10. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
  11. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  12. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  13. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  14. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  15. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  16. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  17. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  18. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  19. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  20. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  21. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  22. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  23. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  24. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  25. package/cjs-bundle/components/GradientPicker/GradientPicker.js +1 -1
  26. package/cjs-bundle/components/IconButton/index.js +1 -1
  27. package/cjs-bundle/components/LoadingIndicator/LoadingIndicator.js +1 -1
  28. package/cjs-bundle/components/LoadingIndicator/types.js +1 -1
  29. package/cjs-bundle/components/Notifications/NotificationsContainer.js +1 -1
  30. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
  31. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
  32. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  33. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  34. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
  35. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  36. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  37. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  38. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  39. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  40. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  41. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  42. package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
  43. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
  44. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
  45. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  46. package/cjs-bundle/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
  47. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
  48. package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  49. package/cjs-bundle/components/Popover/Popover.js +1 -1
  50. package/cjs-bundle/components/Popper/Popper.js +1 -1
  51. package/cjs-bundle/components/RangeSlider/RangeSlider.js +1 -1
  52. package/cjs-bundle/components/RangeSlider/constants.js +1 -1
  53. package/cjs-bundle/components/Search/components/RecentSearches.js +1 -1
  54. package/cjs-bundle/components/Select/index.js +1 -1
  55. package/cjs-bundle/components/SettingEditors/RadioEditor/index.js +1 -1
  56. package/cjs-bundle/components/Table/TableCell/TableCell.js +1 -1
  57. package/cjs-bundle/components/Table/TableContainer/TableContainer.js +1 -1
  58. package/cjs-bundle/components/Table/TableSortLabel/TableSortLabel.js +1 -1
  59. package/cjs-bundle/components/Table/TableToolbar/TableToolbar.js +1 -1
  60. package/cjs-bundle/components/Tabs/Tab.js +1 -1
  61. package/cjs-bundle/components/Tabs/Tabs.js +1 -1
  62. package/cjs-bundle/components/TextField/index.js +1 -1
  63. package/cjs-bundle/components/TextLink/index.js +1 -1
  64. package/cjs-bundle/components/Toaster/Toaster.js +1 -1
  65. package/cjs-bundle/components/TruncatedText/index.js +1 -1
  66. package/cjs-bundle/components/VirtualizedTable/VirtualizedTable.js +1 -1
  67. package/cjs-bundle/components/VirtualizedTable/index.js +1 -1
  68. package/cjs-bundle/components/index.js +1 -1
  69. package/components/AddComment/Popover.js +1 -1
  70. package/components/AddComment/components/Content.js +1 -1
  71. package/components/AdvancedSlider/AdvancedSlider.d.ts +45 -18
  72. package/components/AdvancedSlider/AdvancedSlider.d.ts.map +1 -1
  73. package/components/AdvancedSlider/AdvancedSlider.js +1 -1
  74. package/components/AdvancedSlider/AdvancedSlider.stories.d.ts +11 -0
  75. package/components/AdvancedSlider/AdvancedSlider.stories.d.ts.map +1 -0
  76. package/components/BICOffsetPickerDialog/index.js +1 -1
  77. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  78. package/components/Casing/CasingTableV2/components/Component.js +1 -1
  79. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  80. package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.d.ts +32 -18
  81. package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.d.ts.map +1 -1
  82. package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
  83. package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.stories.d.ts +9 -0
  84. package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.stories.d.ts.map +1 -0
  85. package/components/ColorPickerPalette/ColorPickerPalette.d.ts +23 -3
  86. package/components/ColorPickerPalette/ColorPickerPalette.d.ts.map +1 -1
  87. package/components/ColorPickerPalette/ColorPickerPalette.js +1 -1
  88. package/components/ColorPickerPalette/ColorPickerPalette.stories.d.ts +8 -0
  89. package/components/ColorPickerPalette/ColorPickerPalette.stories.d.ts.map +1 -0
  90. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts +1 -1
  91. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts.map +1 -1
  92. package/components/DocumentViewer/DocumentViewer.js +1 -1
  93. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  94. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  95. package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  96. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  97. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  98. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  99. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  100. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  101. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  102. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  103. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  104. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  105. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  106. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  107. package/components/FilesDropzone/FilesDropzone.stories.d.ts +5 -18
  108. package/components/FilesDropzone/FilesDropzone.stories.d.ts.map +1 -1
  109. package/components/FilesLoaderV2/FilesLoaderV2.stories.d.ts +5 -43
  110. package/components/FilesLoaderV2/FilesLoaderV2.stories.d.ts.map +1 -1
  111. package/components/FilesProcessor/FilesProcessor.stories.d.ts +4 -3
  112. package/components/FilesProcessor/FilesProcessor.stories.d.ts.map +1 -1
  113. package/components/GradientManager/GradientManager.stories.d.ts +7 -20
  114. package/components/GradientManager/GradientManager.stories.d.ts.map +1 -1
  115. package/components/GradientManager/GradientManagerWithStorage/GradientManagerWithStorage.stories.d.ts +7 -19
  116. package/components/GradientManager/GradientManagerWithStorage/GradientManagerWithStorage.stories.d.ts.map +1 -1
  117. package/components/GradientPicker/GradientPicker.d.ts +2 -2
  118. package/components/GradientPicker/GradientPicker.d.ts.map +1 -1
  119. package/components/GradientPicker/GradientPicker.js +1 -1
  120. package/components/GradientPicker/GradientPicker.stories.d.ts +7 -34
  121. package/components/GradientPicker/GradientPicker.stories.d.ts.map +1 -1
  122. package/components/Hint/Hint.stories.d.ts.map +1 -1
  123. package/components/IconButton/IconButton.stories.d.ts +11 -0
  124. package/components/IconButton/IconButton.stories.d.ts.map +1 -0
  125. package/components/IconButton/index.d.ts +18 -54
  126. package/components/IconButton/index.d.ts.map +1 -1
  127. package/components/IconButton/index.js +1 -1
  128. package/components/LoadingIndicator/LoadingIndicator.d.ts +7 -14
  129. package/components/LoadingIndicator/LoadingIndicator.d.ts.map +1 -1
  130. package/components/LoadingIndicator/LoadingIndicator.js +1 -1
  131. package/components/LoadingIndicator/LoadingIndicator.stories.d.ts +9 -0
  132. package/components/LoadingIndicator/LoadingIndicator.stories.d.ts.map +1 -0
  133. package/components/LoadingIndicator/types.d.ts +0 -8
  134. package/components/LoadingIndicator/types.d.ts.map +1 -1
  135. package/components/LoadingIndicator/types.js +1 -1
  136. package/components/MiddleTruncatedText/MiddleTruncatedText.d.ts +6 -3
  137. package/components/MiddleTruncatedText/MiddleTruncatedText.d.ts.map +1 -1
  138. package/components/MiddleTruncatedText/MiddleTruncatedText.stories.d.ts +9 -0
  139. package/components/MiddleTruncatedText/MiddleTruncatedText.stories.d.ts.map +1 -0
  140. package/components/Modal/Modal.stories.d.ts +11 -0
  141. package/components/Modal/Modal.stories.d.ts.map +1 -0
  142. package/components/Modal/types.d.ts +22 -4
  143. package/components/Modal/types.d.ts.map +1 -1
  144. package/components/NewDocumentViewer/NewDocumentViewer.d.ts +4 -1
  145. package/components/NewDocumentViewer/NewDocumentViewer.d.ts.map +1 -1
  146. package/components/NewDocumentViewer/NewDocumentViewer.stories.d.ts +8 -0
  147. package/components/NewDocumentViewer/NewDocumentViewer.stories.d.ts.map +1 -0
  148. package/components/Notifications/Notifications.stories.d.ts +10 -0
  149. package/components/Notifications/Notifications.stories.d.ts.map +1 -0
  150. package/components/Notifications/NotificationsContainer.d.ts +1 -0
  151. package/components/Notifications/NotificationsContainer.d.ts.map +1 -1
  152. package/components/Notifications/NotificationsContainer.js +1 -1
  153. package/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
  154. package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
  155. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  156. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  157. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
  158. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  159. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  160. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  161. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  162. package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  163. package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  164. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  165. package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
  166. package/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
  167. package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
  168. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  169. package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
  170. package/components/PadOffsetsPicker/StagesSelector.js +1 -1
  171. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  172. package/components/Popover/Popover.d.ts +34 -1
  173. package/components/Popover/Popover.d.ts.map +1 -1
  174. package/components/Popover/Popover.js +1 -1
  175. package/components/Popover/Popover.stories.d.ts +8 -0
  176. package/components/Popover/Popover.stories.d.ts.map +1 -0
  177. package/components/Popper/Popper.d.ts +20 -1
  178. package/components/Popper/Popper.d.ts.map +1 -1
  179. package/components/Popper/Popper.js +1 -1
  180. package/components/Popper/Popper.stories.d.ts +8 -0
  181. package/components/Popper/Popper.stories.d.ts.map +1 -0
  182. package/components/RangeSlider/RangeSlider.d.ts +44 -41
  183. package/components/RangeSlider/RangeSlider.d.ts.map +1 -1
  184. package/components/RangeSlider/RangeSlider.js +1 -1
  185. package/components/RangeSlider/RangeSlider.stories.d.ts +11 -0
  186. package/components/RangeSlider/RangeSlider.stories.d.ts.map +1 -0
  187. package/components/RangeSlider/constants.d.ts +24 -18
  188. package/components/RangeSlider/constants.d.ts.map +1 -1
  189. package/components/RangeSlider/constants.js +1 -1
  190. package/components/Search/components/RecentSearches.d.ts +20 -12
  191. package/components/Search/components/RecentSearches.d.ts.map +1 -1
  192. package/components/Search/components/RecentSearches.js +1 -1
  193. package/components/Search/components/RecentSearches.stories.d.ts +9 -0
  194. package/components/Search/components/RecentSearches.stories.d.ts.map +1 -0
  195. package/components/Select/Select.stories.d.ts +10 -0
  196. package/components/Select/Select.stories.d.ts.map +1 -0
  197. package/components/Select/index.d.ts +1 -11
  198. package/components/Select/index.d.ts.map +1 -1
  199. package/components/Select/index.js +1 -1
  200. package/components/Select/types.d.ts +14 -2
  201. package/components/Select/types.d.ts.map +1 -1
  202. package/components/SettingEditors/RadioEditor/RadioEditor.stories.d.ts +8 -0
  203. package/components/SettingEditors/RadioEditor/RadioEditor.stories.d.ts.map +1 -0
  204. package/components/SettingEditors/RadioEditor/index.d.ts +10 -26
  205. package/components/SettingEditors/RadioEditor/index.d.ts.map +1 -1
  206. package/components/SettingEditors/RadioEditor/index.js +1 -1
  207. package/components/Stepper/Step/Step.d.ts.map +1 -1
  208. package/components/Stepper/Stepper.d.ts +1 -1
  209. package/components/Stepper/Stepper.d.ts.map +1 -1
  210. package/components/Stepper/Stepper.stories.d.ts +9 -36
  211. package/components/Stepper/Stepper.stories.d.ts.map +1 -1
  212. package/components/SwitchControl/SwitchControl.stories.d.ts +8 -0
  213. package/components/SwitchControl/SwitchControl.stories.d.ts.map +1 -0
  214. package/components/Table/Table/Table.d.ts +10 -0
  215. package/components/Table/Table/Table.d.ts.map +1 -0
  216. package/components/Table/Table/index.d.ts +2 -0
  217. package/components/Table/Table/index.d.ts.map +1 -0
  218. package/components/Table/Table.stories.d.ts +10 -0
  219. package/components/Table/Table.stories.d.ts.map +1 -0
  220. package/components/Table/TableBody/TableBody.d.ts +2 -0
  221. package/components/Table/TableBody/TableBody.d.ts.map +1 -0
  222. package/components/Table/TableBody/index.d.ts +2 -0
  223. package/components/Table/TableBody/index.d.ts.map +1 -0
  224. package/components/Table/TableCell/TableCell.d.ts +29 -13
  225. package/components/Table/TableCell/TableCell.d.ts.map +1 -1
  226. package/components/Table/TableCell/TableCell.js +1 -1
  227. package/components/Table/TableCell/TableCell.stories.d.ts +9 -0
  228. package/components/Table/TableCell/TableCell.stories.d.ts.map +1 -0
  229. package/components/Table/TableContainer/TableContainer.d.ts +9 -1
  230. package/components/Table/TableContainer/TableContainer.d.ts.map +1 -1
  231. package/components/Table/TableContainer/TableContainer.js +1 -1
  232. package/components/Table/TableHead/TableHead.d.ts +2 -0
  233. package/components/Table/TableHead/TableHead.d.ts.map +1 -0
  234. package/components/Table/TableHead/index.d.ts +2 -0
  235. package/components/Table/TableHead/index.d.ts.map +1 -0
  236. package/components/Table/TablePagination/TablePagination.stories.d.ts +9 -0
  237. package/components/Table/TablePagination/TablePagination.stories.d.ts.map +1 -0
  238. package/components/Table/TableRow/TableRow.d.ts +2 -0
  239. package/components/Table/TableRow/TableRow.d.ts.map +1 -0
  240. package/components/Table/TableRow/index.d.ts +2 -0
  241. package/components/Table/TableRow/index.d.ts.map +1 -0
  242. package/components/Table/TableSortLabel/TableSortLabel.d.ts +13 -1
  243. package/components/Table/TableSortLabel/TableSortLabel.d.ts.map +1 -1
  244. package/components/Table/TableSortLabel/TableSortLabel.js +1 -1
  245. package/components/Table/TableSortLabel/TableSortLabel.stories.d.ts +8 -0
  246. package/components/Table/TableSortLabel/TableSortLabel.stories.d.ts.map +1 -0
  247. package/components/Table/TableToolbar/TableToolbar.d.ts +9 -23
  248. package/components/Table/TableToolbar/TableToolbar.d.ts.map +1 -1
  249. package/components/Table/TableToolbar/TableToolbar.js +1 -1
  250. package/components/Table/TableToolbar/TableToolbar.stories.d.ts +10 -0
  251. package/components/Table/TableToolbar/TableToolbar.stories.d.ts.map +1 -0
  252. package/components/Table/index.d.ts +4 -0
  253. package/components/Tabs/Tab.d.ts +6 -15
  254. package/components/Tabs/Tab.d.ts.map +1 -1
  255. package/components/Tabs/Tab.js +1 -1
  256. package/components/Tabs/Tabs.d.ts +8 -14
  257. package/components/Tabs/Tabs.d.ts.map +1 -1
  258. package/components/Tabs/Tabs.js +1 -1
  259. package/components/Tabs/Tabs.stories.d.ts +11 -0
  260. package/components/Tabs/Tabs.stories.d.ts.map +1 -0
  261. package/components/TextField/TextField.stories.d.ts +12 -0
  262. package/components/TextField/TextField.stories.d.ts.map +1 -0
  263. package/components/TextField/index.d.ts +5 -4
  264. package/components/TextField/index.d.ts.map +1 -1
  265. package/components/TextField/index.js +1 -1
  266. package/components/TextLink/TextLink.stories.d.ts +9 -0
  267. package/components/TextLink/TextLink.stories.d.ts.map +1 -0
  268. package/components/TextLink/index.d.ts +20 -35
  269. package/components/TextLink/index.d.ts.map +1 -1
  270. package/components/TextLink/index.js +1 -1
  271. package/components/Toaster/Toaster.d.ts +1 -0
  272. package/components/Toaster/Toaster.d.ts.map +1 -1
  273. package/components/Toaster/Toaster.js +1 -1
  274. package/components/Toaster/Toaster.stories.d.ts +8 -0
  275. package/components/Toaster/Toaster.stories.d.ts.map +1 -0
  276. package/components/Tooltip/ScrollableTooltip.d.ts.map +1 -1
  277. package/components/Tooltip/Tooltip.d.ts +71 -4
  278. package/components/Tooltip/Tooltip.d.ts.map +1 -1
  279. package/components/Tooltip/Tooltip.stories.d.ts +11 -0
  280. package/components/Tooltip/Tooltip.stories.d.ts.map +1 -0
  281. package/components/TruncatedText/TruncatedText.stories.d.ts +9 -0
  282. package/components/TruncatedText/TruncatedText.stories.d.ts.map +1 -0
  283. package/components/TruncatedText/index.d.ts +10 -23
  284. package/components/TruncatedText/index.d.ts.map +1 -1
  285. package/components/TruncatedText/index.js +1 -1
  286. package/components/Typography.d.ts +10 -9
  287. package/components/Typography.d.ts.map +1 -1
  288. package/components/Typography.stories.d.ts +8 -0
  289. package/components/Typography.stories.d.ts.map +1 -0
  290. package/components/VirtualizedTable/VirtualizedTable.d.ts +9 -261
  291. package/components/VirtualizedTable/VirtualizedTable.d.ts.map +1 -1
  292. package/components/VirtualizedTable/VirtualizedTable.js +1 -1
  293. package/components/VirtualizedTable/VirtualizedTable.stories.d.ts +9 -0
  294. package/components/VirtualizedTable/VirtualizedTable.stories.d.ts.map +1 -0
  295. package/components/VirtualizedTable/index.d.ts +43 -60
  296. package/components/VirtualizedTable/index.d.ts.map +1 -1
  297. package/components/VirtualizedTable/index.js +1 -1
  298. package/components/index.js +1 -1
  299. package/package.json +1 -1
  300. package/storyBookHelpers/components.d.ts +2 -1
  301. package/storyBookHelpers/components.d.ts.map +1 -1
  302. package/storyBookHelpers/utils.d.ts +3 -2
  303. package/storyBookHelpers/utils.d.ts.map +1 -1
  304. package/components/AdvancedSlider/chartOptions.d.ts +0 -39
  305. package/components/AdvancedSlider/chartOptions.d.ts.map +0 -1
@@ -1 +1 @@
1
- import{__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as n,jsx as t}from"react/jsx-runtime";import{useState as i,useRef as r,useEffect as o}from"react";import a from"classnames";import{round as l,throttle as u}from"lodash";import s from"prop-types";import{Tooltip as c}from"@material-ui/core";import{isMobileDetected as m}from"../../utils/mobileDetect.js";import{horizontalStrategy as d}from"./strategies/horizontal.js";import{verticalStrategy as g}from"./strategies/vertical.js";import{getToolipBoundingClientRect as f,calculatePercentForValue as R,updateToValue as p,calculateValueFromPercent as v,updateFromValue as S}from"./utils.js";import b from"./inputs/FromInput.js";import O from"./inputs/ToInput.js";import{RangeSliderControl as h,DEFAULT_FOCUSED_EL as B,RangeSliderOrientation as C}from"./constants.js";import T from"./RangeSlider.css.js";var M=function(s){var M,I,N,x,y,L=s.min,A=s.max,F=s.from,V=s.to,E=s.minRange,w=s.disabled,j=s.onChange,P=s.orientation,z=s.precision,H=s.isSingleRange,X=s.isWithoutInput,Y=i(null),_=Y[0],D=Y[1],U=i(null),W=U[0],q=U[1],k=i({}),Z=k[0],G=k[1],J=i(""),K=J[0],Q=J[1],$=i(null),ee=$[0],ne=$[1],te=i(h.FROM),ie=te[0],re=te[1],oe=i(null),ae=oe[0],le=oe[1],ue=i({}),se=ue[0],ce=ue[1],me=i(B),de=me[0],ge=me[1],fe=r(null),Re=r(null),pe=r(null),ve=r(null),Se=r(null),be=null===(y=fe.current)||void 0===y?void 0:y.getBoundingClientRect(),Oe=P===C.HORIZONTAL,he=P===C.VERTICAL,Be=H&&X;o((function(){P===C.HORIZONTAL&&ne(d),P===C.VERTICAL&&ne(g)}),[P]),o((function(){H&&j({from:0,to:V})}),[H]),o((function(){var e;if(ee){var n=l(F,z),t=l(V,z),i=l(L,z),r=l(A,z),o=R(n,i,r),a=R(t,i,r);ce(((e={})[h.FROM]=ee.getThumbStyles(o,ie===h.FROM),e[h.TO]=ee.getThumbStyles(a,ie===h.TO),e[h.BAR]=ee.getBarStyles(o,a),e[h.FROM_INPUT]=ee.getInputStyles(ae===h.FROM||ae===h.BAR||de.from),e[h.TO_INPUT]=ee.getInputStyles(ae===h.TO||ae===h.BAR||de.to),e)),D(n.toString()),q(t.toString())}}),[ee,L,A,F,V,ae,de]);var Ce=function(e){var n=ee.getCoordinates(e,fe.current.getBoundingClientRect()),t=R(n.new,n.min,n.max),i=l(v(t,L,A),z);if(i!==F){var r=S(i,F,V,L,E);j(r)}},Te=function(e){var n=he&&H?ee.getRotatedCoordinates(e,fe.current.getBoundingClientRect()):ee.getCoordinates(e,fe.current.getBoundingClientRect()),t=R(n.new,n.min,n.max),i=l(v(t,L,A),z);if(i!==V){var r=p(i,F,V,A,E);j(r)}},Me=function(e,n){var t=ee.getBarCoordinates(e,n,fe.current.getBoundingClientRect()),i=R(t.new,t.min,t.max),r=l(v(i,L,A),z),o=l(V+(r-F),z);if(r<L){var a=L-r;r=L,o=l(o+a,z)}if(o>A){a=o-A;o=A,r=l(r-a,z)}r!==F&&o!==V&&r>=L&&o<=A&&j({from:r,to:o})},Ie=function(n){var t;n!==h.BAR?ge(e(e({},B),((t={})[n]=!0,t))):ge({from:!0,bar:!0,to:!0})},Ne=function(n){var t;n!==h.BAR?ge(e(e({},de),((t={})[n]=!1,t))):ge(B)},xe=function(e,n){if(!(H&&e===h.BAR||w)){n.stopPropagation(),re(e),le(e);var t=n.clientX,i=n.clientY,r=n.target.getBoundingClientRect(),o=r.x,a=r.y,l=u((function(n){!function(e){return e===h.FROM?Ce:e===h.TO?Te:Me}(e)(n,{clientX:t,clientY:i,x:o,y:a})}),4);document.addEventListener("mousemove",l),document.addEventListener("mouseup",(function e(){le(null),document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",e)}))}},ye=function(e,n){var t=n.target.value;Number.isNaN(Number(t))||function(e){return e===h.FROM?D:q}(e)(t)},Le=function(e,n){var t=n.target.value,i=l(t,z);if(e===h.FROM){var r=S(i,F,V,L,E);j(r),D(r.from)}if(e===h.TO){r=p(i,F,V,A,E);j(r),q(r.to)}},Ae=function(e){if(!(de.bar||de.from||de.to)){var n=e.clientX,t=e.clientY,i=Oe?{clientX:n}:{clientY:t},r=he&&H?ee.getRotatedCoordinates(i,fe.current.getBoundingClientRect()):ee.getCoordinates(i,fe.current.getBoundingClientRect()),o=R(r.new,r.min,r.max),a=l(v(o,L,A),z);j(H?{from:F,to:a}:{from:F>a?a:F,to:V<a?a:V})}};return o((function(){var e=fe.current;return e.addEventListener("click",Ae),function(){return e.removeEventListener("click",Ae)}}),[H,ee,de]),n("div",e({className:a((M={},M[T.disabled]=w,M[T.rangeSliderHorizontal]=Oe,M[T.rangeSliderVertical]=he,M[T.rotatedVerticalRange]=he&&H,M))},{children:[!H&&t(b,{compStyles:se[h.FROM_INPUT],isVerticalOrientation:he,max:A,disabled:w,precision:z,fromInputRef:ve,from:F,fromInputValue:_,onInputChange:ye,validateInputChange:Le}),t(c,e({title:K,placement:Oe?"top":"left",onMouseMove:function(e){var n=e.clientX,t=e.clientY,i=Oe?{clientX:n}:{clientY:t},r=he&&H?ee.getRotatedCoordinates(i,fe.current.getBoundingClientRect()):ee.getCoordinates(i,fe.current.getBoundingClientRect());if(de.bar)return Q(""),void G({x:n,y:t});var o=R(r.new,r.min,r.max),a=l(v(o,L,A),z);a<L&&Q(L.toString()),a>A&&Q(A.toString()),a>=L&&a<=A&&Q(a.toString()),G({x:n,y:t})},PopperProps:{anchorEl:{clientHeight:0,clientWidth:0,getBoundingClientRect:function(){return f({isHorizontalOrientation:Oe,railPosition:be,tooltipPosition:Z})}}}},{children:n("div",e({className:a(T.rangeSliderRail,(I={},I[T.rangeSliderRailHorizontal]=Oe,I[T.rangeSliderRailVertical]=he,I)),ref:fe},{children:[!H&&t("div",e({ref:Re,className:a(T.rangeSliderThumb,m&&T.mobileRangeSliderThumb),style:se[h.FROM],onMouseDown:function(e){return xe(h.FROM,e)},onMouseEnter:function(){Ie(h.FROM)},onMouseLeave:function(){Ne(h.FROM)}},{children:t("div",{className:T.rangeSliderLabel})})),t("div",e({className:a(T.rangeSliderBar,(N={},N[T.rangeSliderBarHorizontal]=Oe,N[T.rangeSliderBarVertical]=he,N)),style:se[h.BAR],onMouseDown:function(e){return xe(h.BAR,e)},onMouseEnter:function(){Ie(h.BAR)},onMouseLeave:function(){Ne(h.BAR)}},{children:t("div",{className:a(T.rangeSliderBarView,(x={},x[T.rangeSliderBarViewHorizontal]=Oe,x[T.rangeSliderBarViewVertical]=he,x))})})),t("div",e({ref:pe,className:a(T.rangeSliderThumb,m&&T.mobileRangeSliderThumb),style:se[h.TO],onMouseDown:function(e){return xe(h.TO,e)},onMouseEnter:function(){Ie(h.TO)},onMouseLeave:function(){Ne(h.TO)}},{children:t("div",{className:T.rangeSliderLabel})}))]}))})),!Be&&t(O,{compStyles:se[h.TO_INPUT],disabled:w,isVerticalOrientation:he,rotated:he&&H,max:A,precision:z,toInputRef:Se,to:V,toInputValue:W,onInputChange:ye,validateInputChange:Le})]}))},I={min:s.number,max:s.number,from:s.number.isRequired,to:s.number.isRequired,orientation:s.oneOf(["horizontal","vertical"]),precision:s.number,minRange:s.number,onChange:s.func,isSingleRange:s.bool,isWithoutInput:s.bool,disabled:s.bool.isRequired};M.propTypes=I,M.defaultProps={min:0,max:100,orientation:"horizontal",precision:0,minRange:0,onChange:function(){},isSingleRange:!1,isWithoutInput:!1};export{M as default};
1
+ import{__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as n,jsx as t}from"react/jsx-runtime";import{useState as i,useRef as r,useEffect as o}from"react";import a from"classnames";import{round as l,throttle as u}from"lodash";import{Tooltip as c}from"@material-ui/core";import{isMobileDetected as s}from"../../utils/mobileDetect.js";import{horizontalStrategy as m}from"./strategies/horizontal.js";import{verticalStrategy as d}from"./strategies/vertical.js";import{getToolipBoundingClientRect as f,calculatePercentForValue as g,updateToValue as v,calculateValueFromPercent as R,updateFromValue as p}from"./utils.js";import O from"./inputs/FromInput.js";import S from"./inputs/ToInput.js";import{RangeSliderControl as B,DEFAULT_FOCUSED_EL as C,RangeSliderOrientation as T}from"./constants.js";import h from"./RangeSlider.css.js";var M=function(M){var b,I,N,L,x,y=M.from,A=M.to,F=M.disabled,V=void 0!==F&&F,E=M.min,w=void 0===E?0:E,j=M.max,P=void 0===j?100:j,H=M.orientation,z=void 0===H?"horizontal":H,X=M.precision,Y=void 0===X?0:X,_=M.minRange,D=void 0===_?0:_,U=M.onChange,k=void 0===U?function(){}:U,W=M.isSingleRange,Z=void 0!==W&&W,q=M.isWithoutInput,G=void 0!==q&&q,J=i(null),K=J[0],Q=J[1],$=i(null),ee=$[0],ne=$[1],te=i({}),ie=te[0],re=te[1],oe=i(""),ae=oe[0],le=oe[1],ue=i(null),ce=ue[0],se=ue[1],me=i(B.FROM),de=me[0],fe=me[1],ge=i(null),ve=ge[0],Re=ge[1],pe=i({}),Oe=pe[0],Se=pe[1],Be=i(C),Ce=Be[0],Te=Be[1],he=r(null),Me=r(null),be=r(null),Ie=r(null),Ne=r(null),Le=null===(x=he.current)||void 0===x?void 0:x.getBoundingClientRect(),xe=z===T.HORIZONTAL,ye=z===T.VERTICAL,Ae=Z&&G;o((function(){z===T.HORIZONTAL&&se(m),z===T.VERTICAL&&se(d)}),[z]),o((function(){Z&&k({from:0,to:A})}),[Z]),o((function(){var e;if(ce){var n=l(y,Y),t=l(A,Y),i=l(w,Y),r=l(P,Y),o=g(n,i,r),a=g(t,i,r);Se(((e={})[B.FROM]=ce.getThumbStyles(o,de===B.FROM),e[B.TO]=ce.getThumbStyles(a,de===B.TO),e[B.BAR]=ce.getBarStyles(o,a),e[B.FROM_INPUT]=ce.getInputStyles(ve===B.FROM||ve===B.BAR||Ce.from),e[B.TO_INPUT]=ce.getInputStyles(ve===B.TO||ve===B.BAR||Ce.to),e)),Q(n.toString()),ne(t.toString())}}),[ce,w,P,y,A,ve,Ce]);var Fe=function(e){var n=ce.getCoordinates(e,he.current.getBoundingClientRect()),t=g(n.new,n.min,n.max),i=l(R(t,w,P),Y);if(i!==y){var r=p(i,y,A,w,D);k(r)}},Ve=function(e){var n=ye&&Z?ce.getRotatedCoordinates(e,he.current.getBoundingClientRect()):ce.getCoordinates(e,he.current.getBoundingClientRect()),t=g(n.new,n.min,n.max),i=l(R(t,w,P),Y);if(i!==A){var r=v(i,y,A,P,D);k(r)}},Ee=function(e,n){var t=ce.getBarCoordinates(e,n,he.current.getBoundingClientRect()),i=g(t.new,t.min,t.max),r=l(R(i,w,P),Y),o=l(A+(r-y),Y);if(r<w){var a=w-r;r=w,o=l(o+a,Y)}if(o>P){a=o-P;o=P,r=l(r-a,Y)}r!==y&&o!==A&&r>=w&&o<=P&&k({from:r,to:o})},we=function(n){var t;n!==B.BAR?Te(e(e({},C),((t={})[n]=!0,t))):Te({from:!0,bar:!0,to:!0})},je=function(n){var t;n!==B.BAR?Te(e(e({},Ce),((t={})[n]=!1,t))):Te(C)},Pe=function(e,n){if(!(Z&&e===B.BAR||V)){n.stopPropagation(),fe(e),Re(e);var t=n.clientX,i=n.clientY,r=n.target.getBoundingClientRect(),o=r.x,a=r.y,l=u((function(n){!function(e){return e===B.FROM?Fe:e===B.TO?Ve:Ee}(e)(n,{clientX:t,clientY:i,x:o,y:a})}),4);document.addEventListener("mousemove",l),document.addEventListener("mouseup",(function e(){Re(null),document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",e)}))}},He=function(e,n){var t=n.target.value;Number.isNaN(Number(t))||function(e){return e===B.FROM?Q:ne}(e)(t)},ze=function(e,n){var t=n.target.value,i=l(Number(t),Y);if(e===B.FROM){var r=p(i,y,A,w,D);k(r),Q(r.from)}if(e===B.TO){r=v(i,y,A,P,D);k(r),ne(r.to)}},Xe=function(e){if(!(Ce.bar||Ce.from||Ce.to)){var n=e.clientX,t=e.clientY,i=xe?{clientX:n}:{clientY:t},r=ye&&Z?ce.getRotatedCoordinates(i,he.current.getBoundingClientRect()):ce.getCoordinates(i,he.current.getBoundingClientRect()),o=g(r.new,r.min,r.max),a=l(R(o,w,P),Y);k(Z?{from:y,to:a}:{from:y>a?a:y,to:A<a?a:A})}};return o((function(){var e=he.current;return e.addEventListener("click",Xe),function(){return e.removeEventListener("click",Xe)}}),[Z,ce,Ce]),n("div",e({className:a((b={},b[h.disabled]=V,b[h.rangeSliderHorizontal]=xe,b[h.rangeSliderVertical]=ye,b[h.rotatedVerticalRange]=ye&&Z,b))},{children:[!Z&&t(O,{compStyles:Oe[B.FROM_INPUT],isVerticalOrientation:ye,max:P,disabled:V,precision:Y,fromInputRef:Ie,from:y,fromInputValue:K,onInputChange:He,validateInputChange:ze}),t(c,e({title:ae,placement:xe?"top":"left",onMouseMove:function(e){var n=e.clientX,t=e.clientY,i=xe?{clientX:n}:{clientY:t},r=ye&&Z?ce.getRotatedCoordinates(i,he.current.getBoundingClientRect()):ce.getCoordinates(i,he.current.getBoundingClientRect());if(Ce.bar)return le(""),void re({x:n,y:t});var o=g(r.new,r.min,r.max),a=l(R(o,w,P),Y);a<w&&le(w.toString()),a>P&&le(P.toString()),a>=w&&a<=P&&le(a.toString()),re({x:n,y:t})},PopperProps:{anchorEl:{clientHeight:0,clientWidth:0,getBoundingClientRect:function(){return f({isHorizontalOrientation:xe,railPosition:Le,tooltipPosition:ie})}}}},{children:n("div",e({className:a(h.rangeSliderRail,(I={},I[h.rangeSliderRailHorizontal]=xe,I[h.rangeSliderRailVertical]=ye,I)),ref:he},{children:[!Z&&t("div",e({ref:Me,className:a(h.rangeSliderThumb,s&&h.mobileRangeSliderThumb),style:Oe[B.FROM],onMouseDown:function(e){return Pe(B.FROM,e)},onMouseEnter:function(){we(B.FROM)},onMouseLeave:function(){je(B.FROM)}},{children:t("div",{className:h.rangeSliderLabel})})),t("div",e({className:a(h.rangeSliderBar,(N={},N[h.rangeSliderBarHorizontal]=xe,N[h.rangeSliderBarVertical]=ye,N)),style:Oe[B.BAR],onMouseDown:function(e){return Pe(B.BAR,e)},onMouseEnter:function(){we(B.BAR)},onMouseLeave:function(){je(B.BAR)}},{children:t("div",{className:a(h.rangeSliderBarView,(L={},L[h.rangeSliderBarViewHorizontal]=xe,L[h.rangeSliderBarViewVertical]=ye,L))})})),t("div",e({ref:be,className:a(h.rangeSliderThumb,s&&h.mobileRangeSliderThumb),style:Oe[B.TO],onMouseDown:function(e){return Pe(B.TO,e)},onMouseEnter:function(){we(B.TO)},onMouseLeave:function(){je(B.TO)}},{children:t("div",{className:h.rangeSliderLabel})}))]}))})),!Ae&&t(S,{compStyles:Oe[B.TO_INPUT],disabled:V,isVerticalOrientation:ye,rotated:ye&&Z,max:P,precision:Y,toInputRef:Ne,to:A,toInputValue:ee,onInputChange:He,validateInputChange:ze})]}))};export{M as default};
@@ -0,0 +1,11 @@
1
+ import { Meta } from '@storybook/react';
2
+ import { ComponentProps } from 'react';
3
+ import RangeSlider from './RangeSlider';
4
+ declare type Props = ComponentProps<typeof RangeSlider>;
5
+ declare const meta: Meta<Props>;
6
+ export default meta;
7
+ export declare const Default: (props: Props) => JSX.Element;
8
+ export declare const Vertical: () => JSX.Element;
9
+ export declare const AsASlider: () => JSX.Element;
10
+ export declare const MinimumRange: () => JSX.Element;
11
+ //# sourceMappingURL=RangeSlider.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RangeSlider.stories.d.ts","sourceRoot":"","sources":["../../../src/components/RangeSlider/RangeSlider.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AAEjD,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,aAAK,KAAK,GAAG,cAAc,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAgBF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBAiBnC,CAAC;AAEF,eAAO,MAAM,QAAQ,mBAgBpB,CAAC;AAOF,eAAO,MAAM,SAAS,mBAoBrB,CAAC;AAMF,eAAO,MAAM,YAAY,mBAcxB,CAAC"}
@@ -1,20 +1,26 @@
1
- export namespace RangeSliderControl {
2
- const FROM: string;
3
- const TO: string;
4
- const BAR: string;
5
- const RAIL: string;
6
- const FROM_INPUT: string;
7
- const TO_INPUT: string;
8
- const COMPACT_INPUTS: string;
9
- }
10
- export namespace RangeSliderOrientation {
11
- const HORIZONTAL: string;
12
- const VERTICAL: string;
13
- }
14
- export const TOOLTIP_MARGIN: 6;
15
- export namespace DEFAULT_FOCUSED_EL {
16
- const from: boolean;
17
- const bar: boolean;
18
- const to: boolean;
1
+ export declare enum RangeSliderControl {
2
+ FROM = "from",
3
+ TO = "to",
4
+ BAR = "bar",
5
+ RAIL = "rail",
6
+ FROM_INPUT = "from-input",
7
+ TO_INPUT = "to-input",
8
+ COMPACT_INPUTS = "compact-inputs"
19
9
  }
10
+ export declare type StartCoordinates = {
11
+ clientX: number;
12
+ clientY: number;
13
+ x: number;
14
+ y: number;
15
+ };
16
+ export declare const RangeSliderOrientation: {
17
+ HORIZONTAL: string;
18
+ VERTICAL: string;
19
+ };
20
+ export declare const TOOLTIP_MARGIN = 6;
21
+ export declare const DEFAULT_FOCUSED_EL: {
22
+ from: boolean;
23
+ bar: boolean;
24
+ to: boolean;
25
+ };
20
26
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/RangeSlider/constants.js"],"names":[],"mappings":";;;;;;;;;;;;;AAeA,+BAAgC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/RangeSlider/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,IAAI,SAAS;IACb,EAAE,OAAO;IACT,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,cAAc,mBAAmB;CAClC;AAED,oBAAY,gBAAgB,GAAG;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;CAGlC,CAAC;AAEF,eAAO,MAAM,cAAc,IAAI,CAAC;AAEhC,eAAO,MAAM,kBAAkB;;;;CAAyC,CAAC"}
@@ -1 +1 @@
1
- var o={FROM:"from",TO:"to",BAR:"bar",RAIL:"rail",FROM_INPUT:"from-input",TO_INPUT:"to-input",COMPACT_INPUTS:"compact-inputs"},r={HORIZONTAL:"horizontal",VERTICAL:"vertical"},t=6,T={from:!1,bar:!1,to:!1};export{T as DEFAULT_FOCUSED_EL,o as RangeSliderControl,r as RangeSliderOrientation,t as TOOLTIP_MARGIN};
1
+ var o;!function(o){o.FROM="from",o.TO="to",o.BAR="bar",o.RAIL="rail",o.FROM_INPUT="from-input",o.TO_INPUT="to-input",o.COMPACT_INPUTS="compact-inputs"}(o||(o={}));var r={HORIZONTAL:"horizontal",VERTICAL:"vertical"},t=6,a={from:!1,bar:!1,to:!1};export{a as DEFAULT_FOCUSED_EL,o as RangeSliderControl,r as RangeSliderOrientation,t as TOOLTIP_MARGIN};
@@ -1,14 +1,22 @@
1
+ import { ComponentType, ReactNode } from 'react';
2
+ declare type Storage = {
3
+ getItem: (key: string) => string;
4
+ setItem: (key: string, value: any) => any;
5
+ };
6
+ declare type RecentSearchesProps = {
7
+ dataStorage: Storage;
8
+ dataStorageKey: string;
9
+ onInputChange: (value: string) => void;
10
+ maxCount: number;
11
+ className?: string;
12
+ title?: ReactNode;
13
+ Icon?: ComponentType<{
14
+ className: string;
15
+ }>;
16
+ inputValue?: string;
17
+ isHidden?: boolean;
18
+ clearable?: boolean;
19
+ };
20
+ declare const RecentSearches: ({ className, title, Icon, onInputChange, inputValue, isHidden, maxCount, dataStorageKey, dataStorage, clearable, }: RecentSearchesProps) => JSX.Element;
1
21
  export default RecentSearches;
2
- declare function RecentSearches({ className, title, Icon, onInputChange, inputValue, isHidden, maxCount, dataStorageKey, dataStorage, clearable, }: {
3
- className: any;
4
- title: any;
5
- Icon: any;
6
- onInputChange: any;
7
- inputValue: any;
8
- isHidden: any;
9
- maxCount: any;
10
- dataStorageKey: any;
11
- dataStorage: any;
12
- clearable: any;
13
- }): JSX.Element;
14
22
  //# sourceMappingURL=RecentSearches.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RecentSearches.d.ts","sourceRoot":"","sources":["../../../../src/components/Search/components/RecentSearches.js"],"names":[],"mappings":";AA8CA;;;;;;;;;;;gBA+DC"}
1
+ {"version":3,"file":"RecentSearches.d.ts","sourceRoot":"","sources":["../../../../src/components/Search/components/RecentSearches.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAsC5D,aAAK,OAAO,GAAG;IACb,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;IACjC,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC;CAC3C,CAAC;AAUF,aAAK,mBAAmB,GAAG;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC5C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,cAAc,uHAWjB,mBAAmB,gBAsDrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/toConsumableArray";import{useEffect as r}from"react";import{isEmpty as t,take as n}from"lodash";import a from"classnames";import{makeStyles as i,Typography as o}from"@material-ui/core";import{jsxs as c,jsx as l}from"react/jsx-runtime";var p=i((function(e){var r=e.palette;return{recentSearchesWrapper:{paddingBottom:"8px"},option:{display:"flex",alignItems:"center",padding:"0 16px","&:hover":{cursor:"pointer",backgroundColor:"rgba(255, 255, 255, 0.16)"}},label:{lineHeight:"36px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},caption:{color:r.primary.text6,fontSize:"12px",padding:"16px 0 8px 16px"},recentSearchesIcon:{width:"16px",height:"16px",color:r.primary.text6,marginRight:"16px"}}})),s=function(e,r,t){e.setItem(r,JSON.stringify(t))},m=function(i){var m=i.className,u=i.title,d=i.Icon,f=i.onInputChange,h=i.inputValue,x=i.isHidden,g=i.maxCount,v=i.dataStorageKey,S=i.dataStorage,b=i.clearable,N=function(e,r){return JSON.parse(e.getItem(r))||[]}(S,v),I=p();if(r((function(){null!=h&&h.trim()&&!N.includes(h)&&s(S,v,n([h].concat(e(N)),g))}),[h]),t(N)||x)return null;var y=null==N?void 0:N.map((function(e){return c("div",{className:I.option,"data-testid":"".concat("RecentSearches","_").concat(e),onClick:function(){!function(e){s(S,v,b?N:N.filter((function(r){return r!==e}))),f(e)}(e)},children:[d&&l(d,{className:I.recentSearchesIcon}),l("div",{className:I.label,children:e})]},e)}));return c("div",{className:a(I.recentSearchesWrapper,m),children:[u&&l(o,{className:I.caption,children:u}),y]})};export{m as default};
1
+ import{__assign as e,__spreadArray as t}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as r,jsx as n}from"react/jsx-runtime";import{useEffect as a}from"react";import{isEmpty as i,take as o}from"lodash";import c from"classnames";import{makeStyles as l,Typography as p}from"@material-ui/core";var s=l((function(e){var t=e.palette;return{recentSearchesWrapper:{paddingBottom:"8px"},option:{display:"flex",alignItems:"center",padding:"0 16px","&:hover":{cursor:"pointer",backgroundColor:"rgba(255, 255, 255, 0.16)"}},label:{lineHeight:"36px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},caption:{color:t.primary.text6,fontSize:"12px",padding:"16px 0 8px 16px"},recentSearchesIcon:{width:"16px",height:"16px",color:t.primary.text6,marginRight:"16px"}}})),m=function(e,t,r){e.setItem(t,JSON.stringify(r))},d=function(l){var d=l.className,u=l.title,f=l.Icon,h=l.onInputChange,x=l.inputValue,g=l.isHidden,v=l.maxCount,S=l.dataStorageKey,N=l.dataStorage,b=l.clearable,I=function(e,t){return JSON.parse(e.getItem(t))||[]}(N,S),w=s();if(a((function(){(null==x?void 0:x.trim())&&!I.includes(x)&&m(N,S,o(t([x],I,!0),v))}),[x]),i(I)||g)return null;var y=null==I?void 0:I.map((function(t){return r("div",e({className:w.option,"data-testid":"".concat("RecentSearches","_").concat(t),onClick:function(){!function(e){m(N,S,b?I:I.filter((function(t){return t!==e}))),h(e)}(t)}},{children:[f&&n(f,{className:w.recentSearchesIcon}),n("div",e({className:w.label},{children:t}))]}),t)}));return r("div",e({className:c(w.recentSearchesWrapper,d)},{children:[u&&n(p,e({className:w.caption},{children:u})),y]}))};export{d as default};
@@ -0,0 +1,9 @@
1
+ import { Meta } from '@storybook/react';
2
+ import { ComponentProps } from 'react';
3
+ import RecentSearches from './RecentSearches';
4
+ declare type Props = ComponentProps<typeof RecentSearches>;
5
+ declare const meta: Meta<Props>;
6
+ export default meta;
7
+ export declare const Default: (props: Props) => JSX.Element;
8
+ export declare const WithIcons: () => JSX.Element;
9
+ //# sourceMappingURL=RecentSearches.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RecentSearches.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Search/components/RecentSearches.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,aAAK,KAAK,GAAG,cAAc,CAAC,OAAO,cAAc,CAAC,CAAC;AAEnD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AA2BF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBAAkC,CAAC;AAEvE,eAAO,MAAM,SAAS,mBAQrB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { Meta } from '@storybook/react';
2
+ import { ComponentProps } from 'react';
3
+ import Select from './index';
4
+ declare type Props = ComponentProps<typeof Select>;
5
+ declare const meta: Meta<Props>;
6
+ export default meta;
7
+ export declare const Default: (props: Props) => JSX.Element;
8
+ export declare const ErrorState: () => JSX.Element;
9
+ export declare const WithIcons: () => JSX.Element;
10
+ //# sourceMappingURL=Select.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Select.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,MAAM,MAAM,SAAS,CAAC;AAK7B,aAAK,KAAK,GAAG,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAE3C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAgBF,eAAe,IAAI,CAAC;AAyBpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBAQnC,CAAC;AAEF,eAAO,MAAM,UAAU,mBAQtB,CAAC;AAMF,eAAO,MAAM,SAAS,mBAiBrB,CAAC"}
@@ -1,15 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { SelectProps } from './types';
3
- declare const Select: {
4
- <T extends unknown>(props: SelectProps<T>): JSX.Element;
5
- defaultProps: {
6
- FormControlProps: {};
7
- InputLabelProps: {};
8
- label: any;
9
- formHelperText: any;
10
- error: boolean;
11
- fullWidth: boolean;
12
- };
13
- };
3
+ declare const Select: <T extends unknown>({ FormControlProps, InputLabelProps, label, formHelperText, error, fullWidth, ...SelectProps }: SelectProps<T>) => JSX.Element;
14
4
  export default Select;
15
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AA8KtC,QAAA,MAAM,MAAM;gDAA+C,WAAW;;;;;;;;;CAqDrE,CAAC;AAWF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.tsx"],"names":[],"mappings":";AAUA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AA8KtC,QAAA,MAAM,MAAM,yIAQQ,WAmDnB,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1 +1 @@
1
- import{__rest as e,__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,jsx as r}from"react/jsx-runtime";import{useMemo as i}from"react";import{makeStyles as l,FormControl as a,InputLabel as n,Select as u,FormHelperText as d}from"@material-ui/core";import p from"uuid/v4";import c from"classnames";var s=l((function(e){return{formControlRoot:{"& .MuiSelect-icon":{top:"calc(50% - 8px)",right:4},"& .MuiSelect-icon.MuiSelect-iconOutlined":{right:8},"& .MuiSelect-icon.MuiSelect-iconFilled":{right:8},"&:hover":{"& .MuiFormLabel-root, & .MuiInputAdornment-root, & .MuiSelect-icon > svg > path":{color:e.palette.primary.contrastText},"& .MuiSelect-icon > svg > path":{stroke:e.palette.primary.contrastText,fill:e.palette.primary.contrastText},"& .MuiInput-underline:not(.Mui-disabled), & .MuiFilledInput-underline:not(.Mui-disabled)":{"&::before":{borderBottom:"2px solid ".concat(e.palette.primary.contrastText)}}},"& .MuiInputBase-root.Mui-focused":{"& .MuiSelect-icon > svg > path":{stroke:e.palette.primary.main,fill:e.palette.primary.main}},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::before":{borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&.Mui-disabled":{"&::before":{opacity:"0.4",borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&::after":{opacity:"0.4"}}},"& .MuiSelect-root":{"&.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"}},"& .MuiFormLabel-root":{color:e.palette.primary.text6,"&.Mui-focused":{color:e.palette.primary.main},"&.Mui-disabled.MuiInputLabel-root":{color:e.palette.primary.text6,opacity:"0.4"}},"& .MuiSelect-icon.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"},"& .MuiFormHelperText-root":{color:e.palette.primary.text6,"&.Mui-disabled":{opacity:"0.4"}},"& .MuiFilledInput-root":{backgroundColor:e.palette.background.b6,"&:hover":{backgroundColor:e.palette.background.b7},"&.Mui-disabled":{backgroundColor:e.palette.background.b6,opacity:"0.4"}},"& .MuiInputLabel-filled":{left:2},"& .MuiSelect-filled":{paddingLeft:14},"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.text6},"& .MuiInputBase-root":{"& .MuiInputAdornment-root":{color:e.palette.primary.text6,"& svg":{height:16,width:16}},"&.Mui-error":{"& .MuiInputAdornment-root":{color:e.palette.error.main}},"&.Mui-disabled":{"& .MuiInputAdornment-root":{opacity:"0.4"}},"&.Mui-focused":{"& .MuiInputAdornment-root":{color:e.palette.primary.main}}}},menuList:{backgroundColor:e.palette.background.b9,"& .MuiMenuItem-root":{"&.Mui-selected":{backgroundColor:e.palette.primary.text9}}},error:{"&:hover":{"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"2px solid ".concat(e.palette.error.main)}},"& .MuiInput-underline.Mui-disabled, & .MuiFilledInput-underline.Mui-disabled":{"&::before":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&::after":{display:"none"}},"& .MuiOutlinedInput-root.Mui-error:not(.Mui-disabled) .MuiOutlinedInput-notchedOutline":{borderWidth:2}},"& .MuiFormLabel-root.MuiInputLabel-root":{color:e.palette.error.main,"&.Mui-focused":{color:e.palette.error.main},"&.Mui-disabled":{color:e.palette.error.main}},"& .MuiFormHelperText-root":{color:e.palette.error.main},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&.Mui-disabled::after":{display:"none"},"&.Mui-disabled::before":{borderBottom:"1px solid ".concat(e.palette.error.main)}},"& .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.error.main,opacity:"0.4"}},paper:{marginTop:8}}})),m=function(l){var m,M,b,f,I,v,x,y=l.FormControlProps,h=l.InputLabelProps,g=l.label,F=l.formHelperText,S=l.fullWidth,C=e(l,["FormControlProps","InputLabelProps","label","formHelperText","fullWidth"]),L=i(p,[]),P=s();return t(a,o({},y,{classes:o(o({},y.classes),{root:c(null===(M=y.classes)||void 0===M?void 0:M.root,P.formControlRoot,(m={},m[P.error]=C.error,m))}),disabled:y.disabled||C.disabled,fullWidth:S},{children:[g&&r(n,o({id:L},h,{children:g})),r(u,o({},C,{labelId:L,label:g,MenuProps:o(o({getContentAnchorEl:null,anchorOrigin:{horizontal:"left",vertical:"bottom"},transformOrigin:{vertical:"top",horizontal:"left"}},null==C?void 0:C.MenuProps),{classes:o(o({},null===(b=null==C?void 0:C.MenuProps)||void 0===b?void 0:b.classes),{paper:c(P.paper,null===(I=null===(f=null==C?void 0:C.MenuProps)||void 0===f?void 0:f.classes)||void 0===I?void 0:I.paper),list:c(null===(x=null===(v=null==C?void 0:C.MenuProps)||void 0===v?void 0:v.classes)||void 0===x?void 0:x.list,P.menuList)})}),fullWidth:S})),F&&r(d,{children:F})]}))};m.defaultProps={FormControlProps:{},InputLabelProps:{},label:null,formHelperText:null,error:!1,fullWidth:!1};export{m as default};
1
+ import{__rest as e,__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,jsx as r}from"react/jsx-runtime";import{useMemo as i}from"react";import{makeStyles as l,FormControl as a,InputLabel as n,Select as u,FormHelperText as d}from"@material-ui/core";import p from"uuid/v4";import c from"classnames";var s=l((function(e){return{formControlRoot:{"& .MuiSelect-icon":{top:"calc(50% - 8px)",right:4},"& .MuiSelect-icon.MuiSelect-iconOutlined":{right:8},"& .MuiSelect-icon.MuiSelect-iconFilled":{right:8},"&:hover":{"& .MuiFormLabel-root, & .MuiInputAdornment-root, & .MuiSelect-icon > svg > path":{color:e.palette.primary.contrastText},"& .MuiSelect-icon > svg > path":{stroke:e.palette.primary.contrastText,fill:e.palette.primary.contrastText},"& .MuiInput-underline:not(.Mui-disabled), & .MuiFilledInput-underline:not(.Mui-disabled)":{"&::before":{borderBottom:"2px solid ".concat(e.palette.primary.contrastText)}}},"& .MuiInputBase-root.Mui-focused":{"& .MuiSelect-icon > svg > path":{stroke:e.palette.primary.main,fill:e.palette.primary.main}},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::before":{borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&.Mui-disabled":{"&::before":{opacity:"0.4",borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&::after":{opacity:"0.4"}}},"& .MuiSelect-root":{"&.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"}},"& .MuiFormLabel-root":{color:e.palette.primary.text6,"&.Mui-focused":{color:e.palette.primary.main},"&.Mui-disabled.MuiInputLabel-root":{color:e.palette.primary.text6,opacity:"0.4"}},"& .MuiSelect-icon.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"},"& .MuiFormHelperText-root":{color:e.palette.primary.text6,"&.Mui-disabled":{opacity:"0.4"}},"& .MuiFilledInput-root":{backgroundColor:e.palette.background.b6,"&:hover":{backgroundColor:e.palette.background.b7},"&.Mui-disabled":{backgroundColor:e.palette.background.b6,opacity:"0.4"}},"& .MuiInputLabel-filled":{left:2},"& .MuiSelect-filled":{paddingLeft:14},"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.text6},"& .MuiInputBase-root":{"& .MuiInputAdornment-root":{color:e.palette.primary.text6,"& svg":{height:16,width:16}},"&.Mui-error":{"& .MuiInputAdornment-root":{color:e.palette.error.main}},"&.Mui-disabled":{"& .MuiInputAdornment-root":{opacity:"0.4"}},"&.Mui-focused":{"& .MuiInputAdornment-root":{color:e.palette.primary.main}}}},menuList:{backgroundColor:e.palette.background.b9,"& .MuiMenuItem-root":{"&.Mui-selected":{backgroundColor:e.palette.primary.text9}}},error:{"&:hover":{"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"2px solid ".concat(e.palette.error.main)}},"& .MuiInput-underline.Mui-disabled, & .MuiFilledInput-underline.Mui-disabled":{"&::before":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&::after":{display:"none"}},"& .MuiOutlinedInput-root.Mui-error:not(.Mui-disabled) .MuiOutlinedInput-notchedOutline":{borderWidth:2}},"& .MuiFormLabel-root.MuiInputLabel-root":{color:e.palette.error.main,"&.Mui-focused":{color:e.palette.error.main},"&.Mui-disabled":{color:e.palette.error.main}},"& .MuiFormHelperText-root":{color:e.palette.error.main},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&.Mui-disabled::after":{display:"none"},"&.Mui-disabled::before":{borderBottom:"1px solid ".concat(e.palette.error.main)}},"& .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.error.main,opacity:"0.4"}},paper:{marginTop:8}}})),m=function(l){var m,M,b,f,v,I,y,x=l.FormControlProps,h=void 0===x?{}:x,g=l.InputLabelProps,F=void 0===g?{}:g,S=l.label,k=void 0===S?null:S,C=l.formHelperText,L=void 0===C?null:C,T=l.error,B=void 0!==T&&T,O=l.fullWidth,P=void 0!==O&&O,A=e(l,["FormControlProps","InputLabelProps","label","formHelperText","error","fullWidth"]),W=i(p,[]),H=s();return t(a,o({},h,{classes:o(o({},h.classes),{root:c(null===(M=h.classes)||void 0===M?void 0:M.root,H.formControlRoot,(m={},m[H.error]=B,m))}),disabled:h.disabled||A.disabled,fullWidth:P,error:B},{children:[k&&r(n,o({id:W},F,{children:k})),r(u,o({},A,{labelId:W,label:k,MenuProps:o(o({getContentAnchorEl:null,anchorOrigin:{horizontal:"left",vertical:"bottom"},transformOrigin:{vertical:"top",horizontal:"left"}},null==A?void 0:A.MenuProps),{classes:o(o({},null===(b=null==A?void 0:A.MenuProps)||void 0===b?void 0:b.classes),{paper:c(H.paper,null===(v=null===(f=null==A?void 0:A.MenuProps)||void 0===f?void 0:f.classes)||void 0===v?void 0:v.paper),list:c(null===(y=null===(I=null==A?void 0:A.MenuProps)||void 0===I?void 0:I.classes)||void 0===y?void 0:y.list,H.menuList)})}),fullWidth:P})),L&&r(d,{children:L})]}))};export{m as default};
@@ -1,16 +1,28 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { FormControlProps, InputLabelProps, SelectProps as MuiSelectProps } from '@material-ui/core';
3
- export declare type SelectProps<T> = {
3
+ export declare type SelectProps<T> = Omit<MuiSelectProps, 'children' | 'FormControlProps' | 'InputLabelProps' | 'label' | 'formHelperText' | 'error' | 'value' | 'onChange' | 'fullWidth' | 'disabled'> & {
4
+ /**
5
+ * Contents of the select dropdown. Use `<MenuItem/>` for options.
6
+ *
7
+ * ⚠️The `<MenuItem/>` elements must be direct descendants of `<Select/>`
8
+ */
9
+ children?: ReactNode;
4
10
  FormControlProps?: FormControlProps;
5
11
  InputLabelProps?: InputLabelProps;
6
12
  label?: string | ReactNode;
7
13
  formHelperText?: string | ReactNode;
8
14
  error?: boolean;
9
15
  value?: T;
16
+ /**
17
+ * Use `e.target.value` to access selected option's id
18
+ * @param e
19
+ * @param child
20
+ */
10
21
  onChange?: (e: React.ChangeEvent<{
11
22
  name?: string;
12
23
  value: T;
13
24
  }>, child: ReactNode) => void;
14
25
  fullWidth?: boolean;
15
- } & Omit<MuiSelectProps, 'value' | 'onChange'>;
26
+ disabled?: boolean;
27
+ };
16
28
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Select/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,WAAW,IAAI,cAAc,EAC9B,MAAM,mBAAmB,CAAC;AAE3B,oBAAY,WAAW,CAAC,CAAC,IAAI;IAC3B,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,CAAC,CAAA;KAAE,CAAC,EAAE,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACzF,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,GAAG,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Select/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,WAAW,IAAI,cAAc,EAC9B,MAAM,mBAAmB,CAAC;AAE3B,oBAAY,WAAW,CAAC,CAAC,IAAI,IAAI,CAC/B,cAAc,EACZ,UAAU,GACV,kBAAkB,GAClB,iBAAiB,GACjB,OAAO,GACP,gBAAgB,GAChB,OAAO,GACP,OAAO,GACP,UAAU,GACV,WAAW,GACX,UAAU,CACb,GAAG;IACF;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,CAAC,CAAC;IACV;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,CAAC,CAAA;KAAE,CAAC,EAAE,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACzF,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Meta } from '@storybook/react';
2
+ import { ComponentProps } from 'react';
3
+ import RadioEditor from './index';
4
+ declare type Props = ComponentProps<typeof RadioEditor>;
5
+ declare const meta: Meta<Props>;
6
+ export default meta;
7
+ export declare const Default: (props: Props) => JSX.Element;
8
+ //# sourceMappingURL=RadioEditor.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioEditor.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingEditors/RadioEditor/RadioEditor.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AAEjD,OAAO,WAAW,MAAM,SAAS,CAAC;AAElC,aAAK,KAAK,GAAG,cAAc,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAuBF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBAYnC,CAAC"}
@@ -1,30 +1,14 @@
1
1
  /// <reference types="react" />
2
- import PropTypes from 'prop-types';
3
- declare type RadioEditorProps = PropTypes.InferProps<typeof radioEditorPropTypes>;
4
- declare const RadioEditor: {
5
- ({ options, currentValue, defaultValue, onChange }: RadioEditorProps): JSX.Element;
6
- propTypes: {
7
- options: PropTypes.Validator<PropTypes.InferProps<{
8
- value: PropTypes.Requireable<string>;
9
- label: PropTypes.Requireable<string>;
10
- }>[]>;
11
- defaultValue: PropTypes.Validator<NonNullable<NonNullable<string | number>>>;
12
- currentValue: PropTypes.Requireable<NonNullable<string | number>>;
13
- onChange: PropTypes.Validator<(...args: any[]) => any>;
14
- };
15
- defaultProps: {
16
- currentValue: any;
17
- };
18
- };
19
- declare const radioEditorPropTypes: {
20
- options: PropTypes.Validator<PropTypes.InferProps<{
21
- value: PropTypes.Requireable<string>;
22
- label: PropTypes.Requireable<string>;
23
- }>[]>;
24
- defaultValue: PropTypes.Validator<NonNullable<NonNullable<string | number>>>;
25
- currentValue: PropTypes.Requireable<NonNullable<string | number>>;
26
- onChange: PropTypes.Validator<(...args: any[]) => any>;
2
+ declare type RadioEditorProps = {
3
+ options: {
4
+ value: string | number;
5
+ label: string;
6
+ }[];
7
+ onChange: (value: string | number) => void;
8
+ defaultValue: string | number;
9
+ currentValue?: string | number;
27
10
  };
11
+ declare const RadioEditor: ({ options, currentValue, defaultValue, onChange, }: RadioEditorProps) => JSX.Element;
28
12
  export default RadioEditor;
29
- export declare const radioEditorForDefinitions: (options: any, defaultValue: any) => (props: any) => JSX.Element;
13
+ export declare const radioEditorForDefinitions: (options: RadioEditorProps['options'], defaultValue: RadioEditorProps['defaultValue']) => (props: Omit<RadioEditorProps, 'options' | 'defaultValue'>) => JSX.Element;
30
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingEditors/RadioEditor/index.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,aAAK,gBAAgB,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE1E,QAAA,MAAM,WAAW;wDAAuD,gBAAgB,GAAG,WAAW;;;;;;;;;;;;;CAgBrG,CAAC;AAEF,QAAA,MAAM,oBAAoB;;;;;;;;CAMzB,CAAA;AAQD,eAAe,WAAW,CAAC;AAG3B,eAAO,MAAM,yBAAyB,kEAErC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingEditors/RadioEditor/index.tsx"],"names":[],"mappings":";AAEA,aAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACrD,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IAC3C,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAChC,CAAC;AAEF,QAAA,MAAM,WAAW,uDAKd,gBAAgB,KAAG,WAgBrB,CAAC;AAEF,eAAe,WAAW,CAAC;AAG3B,eAAO,MAAM,yBAAyB,YAC1B,gBAAgB,CAAC,SAAS,CAAC,gBAAgB,gBAAgB,CAAC,cAAc,CAAC,aAC7E,KAAK,gBAAgB,EAAE,SAAS,GAAG,cAAc,CAAC,gBACgB,CAAC"}
@@ -1 +1 @@
1
- import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as r}from"react/jsx-runtime";import n from"prop-types";import{FormControl as o,RadioGroup as i,FormControlLabel as t,Radio as a}from"@material-ui/core";var l=function(n){var l=n.options,u=n.currentValue,s=n.defaultValue,p=n.onChange,d=void 0===u?s:u;return r(o,e({component:"fieldset",margin:"dense",fullWidth:!0},{children:r(i,e({"aria-label":"position",name:"radio_editor",row:!0},{children:l.map((function(e){var n=e.value,o=e.label;return r(t,{onChange:function(){return p(n)},control:r(a,{color:"primary",checked:n===d}),label:o},n)}))}))}))},u={options:n.arrayOf(n.shape({value:n.string,label:n.string})).isRequired,defaultValue:n.oneOfType([n.string,n.number]).isRequired,currentValue:n.oneOfType([n.string,n.number]),onChange:n.func.isRequired};l.propTypes=u,l.defaultProps={currentValue:void 0};export{l as default};
1
+ import{__assign as e}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as r}from"react/jsx-runtime";import{FormControl as o,RadioGroup as n,FormControlLabel as t,Radio as a}from"@material-ui/core";var i=function(i){var l=i.options,u=i.currentValue,m=i.defaultValue,c=i.onChange,d=void 0===u?m:u;return r(o,e({component:"fieldset",margin:"dense",fullWidth:!0},{children:r(n,e({"aria-label":"position",name:"radio_editor",row:!0},{children:l.map((function(e){var o=e.value,n=e.label;return r(t,{onChange:function(){return c(o)},control:r(a,{color:"primary",checked:o===d}),label:n},o)}))}))}))};export{i as default};
@@ -1 +1 @@
1
- {"version":3,"file":"Step.d.ts","sourceRoot":"","sources":["../../../../src/components/Stepper/Step/Step.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,SAAS,EAAE,MAAM,OAAO,CAAC;AAOjE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAgBpC,aAAK,SAAS,GAAG;IAEf,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,aAAa,CAAC,EAAE,SAAS,CAAC;IAG1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,IAAI,CAAC;IAGZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,IAAI,UAAW,SAAS,gBAuEpC,CAAC"}
1
+ {"version":3,"file":"Step.d.ts","sourceRoot":"","sources":["../../../../src/components/Stepper/Step/Step.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,SAAS,EAAE,MAAM,OAAO,CAAC;AAOjE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAiBpC,aAAK,SAAS,GAAG;IAEf,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,aAAa,CAAC,EAAE,SAAS,CAAC;IAG1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,IAAI,CAAC;IAGZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,IAAI,UAAW,SAAS,gBAuEpC,CAAC"}
@@ -8,7 +8,7 @@ declare type StepperProps = {
8
8
  size?: Size;
9
9
  };
10
10
  export declare const Stepper: {
11
- (props: StepperProps): JSX.Element;
11
+ ({ steps, activeStep, size, className }: StepperProps): JSX.Element;
12
12
  SIZE: typeof Size;
13
13
  };
14
14
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Stepper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAW,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAGnC,aAAK,YAAY,GAAG;IAClB,KAAK,EAAE,cAAc,CAAC,OAAO,IAAI,CAAC,EAAE,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,IAAI,CAAC;CACb,CAAC;AAyBF,eAAO,MAAM,OAAO;YAvBQ,YAAY;;CAuBN,CAAC"}
1
+ {"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Stepper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAW,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAGnC,aAAK,YAAY,GAAG;IAClB,KAAK,EAAE,cAAc,CAAC,OAAO,IAAI,CAAC,EAAE,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,IAAI,CAAC;CACb,CAAC;AAuBF,eAAO,MAAM,OAAO;6CArB4D,YAAY;;CAqB1D,CAAC"}
@@ -1,37 +1,10 @@
1
- /// <reference types="react" />
2
- export declare const Steps: () => JSX.Element;
3
- export declare const StepWizard: () => JSX.Element;
4
- export declare const StepsConfiguration: () => JSX.Element;
5
- export declare const SimpleExample: () => JSX.Element;
6
- declare const _default: {
7
- title: string;
8
- component: {
9
- (props: {
10
- steps: {
11
- value: import("react").ReactNode;
12
- label?: import("react").ReactNode;
13
- tooltip?: import("react").ReactNode;
14
- goBackTooltip?: import("react").ReactNode;
15
- checked?: boolean;
16
- active?: boolean;
17
- error?: boolean;
18
- disabled?: boolean;
19
- size?: import("./constants").Size;
20
- className?: string;
21
- canGoBack?: boolean;
22
- onClick?: () => void;
23
- }[];
24
- className?: string;
25
- activeStep?: number;
26
- size?: import("./constants").Size;
27
- }): JSX.Element;
28
- SIZE: typeof import("./constants").Size;
29
- };
30
- parameters: {
31
- isGenerateImportExample: boolean;
32
- sourceLink: string;
33
- designLink: string;
34
- };
35
- };
36
- export default _default;
1
+ import { Meta } from '@storybook/react';
2
+ import { ComponentProps } from 'react';
3
+ import { Stepper } from './Stepper';
4
+ declare type Props = ComponentProps<typeof Stepper>;
5
+ declare const meta: Meta<Props>;
6
+ export default meta;
7
+ export declare const Default: (props: Props) => JSX.Element;
8
+ export declare const Sizes: () => JSX.Element;
9
+ export declare const StepParameters: () => JSX.Element;
37
10
  //# sourceMappingURL=Stepper.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Stepper.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Stepper.stories.tsx"],"names":[],"mappings":";AAsDA,eAAO,MAAM,KAAK,mBAoBjB,CAAC;AAEF,eAAO,MAAM,UAAU,mBA0FtB,CAAC;AAoGF,eAAO,MAAM,kBAAkB,mBAmC9B,CAAC;AAEF,eAAO,MAAM,aAAa,mBA0BzB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,wBASE"}
1
+ {"version":3,"file":"Stepper.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Stepper.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,aAAK,KAAK,GAAG,cAAc,CAAC,OAAO,OAAO,CAAC,CAAC;AAE5C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAgBF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBAA2B,CAAC;AAEhE,eAAO,MAAM,KAAK,mBAKjB,CAAC;AASF,eAAO,MAAM,cAAc,mBAmC1B,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Meta } from '@storybook/react';
2
+ import { ComponentProps } from 'react';
3
+ import SwitchControl from './index';
4
+ declare type Props = ComponentProps<typeof SwitchControl>;
5
+ declare const meta: Meta<Props>;
6
+ export default meta;
7
+ export declare const Default: (props: Props) => JSX.Element;
8
+ //# sourceMappingURL=SwitchControl.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwitchControl.stories.d.ts","sourceRoot":"","sources":["../../../src/components/SwitchControl/SwitchControl.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AAEjD,OAAO,aAAa,MAAM,SAAS,CAAC;AAEpC,aAAK,KAAK,GAAG,cAAc,CAAC,OAAO,aAAa,CAAC,CAAC;AAElD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAoBF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBAanC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ import { TableProps as MuiTableProps } from '@material-ui/core';
3
+ export declare type TableProps = {
4
+ /**
5
+ * The content of the table, normally TableHead and TableBody.
6
+ */
7
+ children: ReactNode;
8
+ } & Omit<MuiTableProps, 'children'>;
9
+ export declare const Table: (props: TableProps) => JSX.Element;
10
+ //# sourceMappingURL=Table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAqB,UAAU,IAAI,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEnF,oBAAY,UAAU,GAAG;IACvB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;AAGpC,eAAO,MAAM,KAAK,UAAW,UAAU,gBAA4B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './Table';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/Table/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { Meta } from '@storybook/react';
2
+ import { ComponentProps } from 'react';
3
+ import { Table } from './Table';
4
+ declare type Props = ComponentProps<typeof Table>;
5
+ declare const meta: Meta<Props>;
6
+ export default meta;
7
+ export declare const Default: (props: Props) => JSX.Element;
8
+ export declare const StickyHeader: () => JSX.Element;
9
+ export declare const WithStickyColumnHeaders: () => JSX.Element;
10
+ //# sourceMappingURL=Table.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQhC,aAAK,KAAK,GAAG,cAAc,CAAC,OAAO,KAAK,CAAC,CAAC;AAE1C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAgBF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBA2CnC,CAAC;AAEF,eAAO,MAAM,YAAY,mBAiDxB,CAAC;AAMF,eAAO,MAAM,uBAAuB,mBAoDnC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { TableBody } from '@material-ui/core';
2
+ //# sourceMappingURL=TableBody.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableBody.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableBody/TableBody.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './TableBody';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableBody/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
@@ -1,14 +1,30 @@
1
- export function TableCell({ isExpanded, setIsExpanded, tooltipTitle, collapsibleHeader, collapsibleBody, maxCellWidth, maxCharsNumberFromStart, maxCharsNumberFromEnd, cellWidth, children, ...props }: {
2
- [x: string]: any;
3
- isExpanded: any;
4
- setIsExpanded: any;
5
- tooltipTitle: any;
6
- collapsibleHeader: any;
7
- collapsibleBody: any;
8
- maxCellWidth: any;
9
- maxCharsNumberFromStart: any;
10
- maxCharsNumberFromEnd: any;
11
- cellWidth: any;
12
- children: any;
13
- }): JSX.Element;
1
+ import { ReactNode } from 'react';
2
+ import { TableCellProps as MUITableCellProps } from '@material-ui/core';
3
+ export declare type TableCellProps = {
4
+ /**
5
+ * Cell Content
6
+ */
7
+ children?: ReactNode;
8
+ isExpanded?: boolean;
9
+ setIsExpanded?: (value: boolean) => void;
10
+ tooltipTitle?: string;
11
+ collapsibleHeader?: boolean;
12
+ collapsibleBody?: boolean;
13
+ /**
14
+ * Cell width when expanded
15
+ */
16
+ cellWidth?: string | number;
17
+ /**
18
+ * Cell width when collapsed
19
+ */
20
+ maxCellWidth?: string | number;
21
+ maxCharsNumberFromStart?: number;
22
+ maxCharsNumberFromEnd?: number;
23
+ stickyCell?: boolean;
24
+ emptyCell?: boolean;
25
+ className?: string;
26
+ align?: 'center' | 'inherit' | 'justify' | 'left' | 'right';
27
+ size?: 'medium' | 'small';
28
+ } & Omit<MUITableCellProps, 'children' | 'className' | 'align' | 'size'>;
29
+ export declare const TableCell: ({ isExpanded, setIsExpanded, tooltipTitle, collapsibleHeader, collapsibleBody, maxCellWidth, cellWidth, maxCharsNumberFromStart, maxCharsNumberFromEnd, children, stickyCell, emptyCell, className, ...props }: TableCellProps) => JSX.Element;
14
30
  //# sourceMappingURL=TableCell.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableCell/TableCell.js"],"names":[],"mappings":"AAsCO;;;;;;;;;;;;gBAqEN"}
1
+ {"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/TableCell/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAC5C,OAAO,EAGL,cAAc,IAAI,iBAAiB,EACpC,MAAM,mBAAmB,CAAC;AAuC3B,oBAAY,cAAc,GAAG;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;IAC5D,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;CAC3B,GAAG,IAAI,CAAC,iBAAiB,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,GAAG,MAAM,CAAC,CAAC;AAEzE,eAAO,MAAM,SAAS,mNAenB,cAAc,gBAyDhB,CAAC"}