@hipay/hipay-material-ui 2.3.0-rcstyleguide-beta5 → 2.3.1-rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (666) hide show
  1. package/HiAlertModal/HiAlertModal.js +10 -10
  2. package/HiAlertModal/index.js +1 -1
  3. package/HiAppBar/HiAppBar.js +8 -8
  4. package/HiAppBar/index.js +1 -1
  5. package/HiBadge/HiBadge.js +2 -2
  6. package/HiBadge/index.js +1 -1
  7. package/HiBreadcrumb/HiBreadcrumb.js +8 -8
  8. package/HiBreadcrumb/HiStep.js +9 -9
  9. package/HiBreadcrumb/HiStepConnector.js +10 -10
  10. package/HiBreadcrumb/HiStepContent.js +7 -7
  11. package/HiBreadcrumb/HiStepIcon.js +7 -7
  12. package/HiBreadcrumb/HiStepLabel.js +10 -10
  13. package/HiBreadcrumb/HiStepper.js +8 -8
  14. package/HiBreadcrumb/index.js +1 -1
  15. package/HiButton/HiButton.js +2 -2
  16. package/HiButton/index.js +1 -1
  17. package/HiCell/CellAddress.js +7 -7
  18. package/HiCell/CellDate.js +8 -8
  19. package/HiCell/CellIcon.js +7 -7
  20. package/HiCell/CellImage.js +7 -7
  21. package/HiCell/CellNumeric.js +7 -7
  22. package/HiCell/CellPinToAction.js +6 -6
  23. package/HiCell/CellRate.js +7 -7
  24. package/HiCell/CellSentinel.js +7 -7
  25. package/HiCell/CellSentinelScore.js +7 -7
  26. package/HiCell/CellText.js +9 -9
  27. package/HiCell/CellTextStyled.js +1 -1
  28. package/HiCell/index.js +1 -1
  29. package/HiCheckbox/HiCheckbox.js +11 -11
  30. package/HiCheckbox/index.js +1 -1
  31. package/HiChip/HiChip.js +3 -4
  32. package/HiChip/HiChipSwitch.js +10 -10
  33. package/HiChip/index.js +1 -1
  34. package/HiColoredLabel/HiColoredLabel.js +5 -5
  35. package/HiColoredLabel/index.js +1 -1
  36. package/HiDatePicker/Caption.js +2 -2
  37. package/HiDatePicker/HiDatePicker.js +12 -12
  38. package/HiDatePicker/HiDatePickerMobile.js +9 -9
  39. package/HiDatePicker/HiDateRangePicker.js +11 -11
  40. package/HiDatePicker/HiDateRangeSelector.js +33 -14
  41. package/HiDatePicker/ListPicker.js +8 -8
  42. package/HiDatePicker/NavBar.js +1 -1
  43. package/HiDatePicker/Overlays/CustomOverlayLayout.js +4 -4
  44. package/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +4 -4
  45. package/HiDatePicker/Overlays/MonthPickerOverlay.js +10 -10
  46. package/HiDatePicker/Overlays/Overlay.js +4 -4
  47. package/HiDatePicker/Overlays/TimePickerOverlay.js +11 -11
  48. package/HiDatePicker/Overlays/YearPickerOverlay.js +10 -10
  49. package/HiDatePicker/Overlays/index.js +1 -1
  50. package/HiDatePicker/Weekday.js +1 -1
  51. package/HiDatePicker/index.js +1 -1
  52. package/HiDatePicker/stylesheet.js +2 -2
  53. package/HiDotsStepper/HiDot.js +9 -9
  54. package/HiDotsStepper/HiDotsStepper.js +8 -8
  55. package/HiDotsStepper/index.js +23 -0
  56. package/HiExpansionPanel/HiExpansionPanel.js +38 -14
  57. package/HiExpansionPanel/index.js +1 -1
  58. package/HiForm/HiAddressField.js +10 -10
  59. package/HiForm/HiEmailField.js +10 -10
  60. package/HiForm/HiFormControl.js +11 -11
  61. package/HiForm/HiFormLabel.js +10 -10
  62. package/HiForm/HiInput.js +9 -9
  63. package/HiForm/HiPasswordField.js +11 -11
  64. package/HiForm/HiSearchField.js +10 -10
  65. package/HiForm/HiSlider.js +9 -9
  66. package/HiForm/HiTextField.js +9 -9
  67. package/HiForm/HiUpload.js +10 -10
  68. package/HiForm/HiUploadField.js +9 -9
  69. package/HiForm/HiUploadInput.js +9 -9
  70. package/HiForm/index.js +1 -1
  71. package/HiIcon/HiIcon.js +5 -6
  72. package/HiIcon/index.js +1 -1
  73. package/HiIconButton/HiIconButton.js +4 -4
  74. package/HiIconButton/index.js +1 -1
  75. package/HiLoader/HiLoader.js +2 -2
  76. package/HiLoader/index.js +1 -1
  77. package/HiMap/HiMap.js +8 -8
  78. package/HiMap/HiMapExpand.js +9 -9
  79. package/HiMap/index.js +1 -1
  80. package/HiNotice/HiKPI.js +14 -13
  81. package/HiNotice/HiKPINotice.js +1 -1
  82. package/HiNotice/index.js +1 -1
  83. package/HiPaymentMeans/HiPaymentMeans.js +8 -8
  84. package/HiPaymentMeans/index.js +1 -1
  85. package/HiPdfReader/HiPdfReader.js +10 -10
  86. package/HiPdfReader/index.js +1 -1
  87. package/HiPin/HiPin.js +3 -3
  88. package/HiPin/index.js +1 -1
  89. package/HiRadio/HiRadio.js +1 -1
  90. package/HiRadio/index.js +1 -1
  91. package/HiSelect/HiDynamicSelect.js +12 -12
  92. package/HiSelect/HiDynamicSelectField.js +8 -8
  93. package/HiSelect/HiNestedSelect.js +12 -12
  94. package/HiSelect/HiNestedSelectContent.js +12 -12
  95. package/HiSelect/HiNestedSelectField.js +8 -8
  96. package/HiSelect/HiSelect.js +11 -11
  97. package/HiSelect/HiSelectContent.js +11 -11
  98. package/HiSelect/HiSelectField.js +8 -8
  99. package/HiSelect/HiSelectInput.js +9 -9
  100. package/HiSelect/HiSelectMobile.js +11 -11
  101. package/HiSelect/HiSuggestSelect.js +10 -10
  102. package/HiSelect/HiSuggestSelectField.js +8 -8
  103. package/HiSelect/index.js +2 -2
  104. package/HiSelectableList/HiSelectableList.js +11 -11
  105. package/HiSelectableList/HiSelectableListHierarchic.js +10 -10
  106. package/HiSelectableList/HiSelectableListItem.js +10 -10
  107. package/HiSelectableList/index.js +1 -1
  108. package/HiSwitch/HiSwitch.js +4 -4
  109. package/HiSwitch/HiSwitchState.js +2 -2
  110. package/HiSwitch/index.js +1 -1
  111. package/HiTable/HiCellBuilder.js +9 -9
  112. package/HiTable/HiTable.js +8 -8
  113. package/HiTable/HiTableBody.js +6 -6
  114. package/HiTable/HiTableHeader.js +9 -9
  115. package/HiTable/HiTableRow.js +11 -10
  116. package/HiTable/constants.js +2 -2
  117. package/HiTable/index.js +1 -1
  118. package/README.md +267 -37
  119. package/es/HiAlertModal/HiAlertModal.js +10 -10
  120. package/es/HiAlertModal/index.js +1 -1
  121. package/es/HiAppBar/HiAppBar.js +8 -8
  122. package/es/HiAppBar/index.js +1 -1
  123. package/es/HiBadge/HiBadge.js +2 -2
  124. package/es/HiBadge/index.js +1 -1
  125. package/es/HiBreadcrumb/HiBreadcrumb.js +8 -8
  126. package/es/HiBreadcrumb/HiStep.js +9 -9
  127. package/es/HiBreadcrumb/HiStepConnector.js +10 -10
  128. package/es/HiBreadcrumb/HiStepContent.js +7 -7
  129. package/es/HiBreadcrumb/HiStepIcon.js +7 -7
  130. package/es/HiBreadcrumb/HiStepLabel.js +10 -10
  131. package/es/HiBreadcrumb/HiStepper.js +8 -8
  132. package/es/HiBreadcrumb/index.js +1 -1
  133. package/es/HiButton/HiButton.js +2 -2
  134. package/es/HiButton/index.js +1 -1
  135. package/es/HiCell/CellAddress.js +7 -7
  136. package/es/HiCell/CellDate.js +8 -8
  137. package/es/HiCell/CellIcon.js +7 -7
  138. package/es/HiCell/CellImage.js +7 -7
  139. package/es/HiCell/CellNumeric.js +7 -7
  140. package/es/HiCell/CellPinToAction.js +6 -6
  141. package/es/HiCell/CellRate.js +7 -7
  142. package/es/HiCell/CellSentinel.js +7 -7
  143. package/es/HiCell/CellSentinelScore.js +7 -7
  144. package/es/HiCell/CellText.js +9 -9
  145. package/es/HiCell/CellTextStyled.js +1 -1
  146. package/es/HiCell/index.js +1 -1
  147. package/es/HiCheckbox/HiCheckbox.js +11 -11
  148. package/es/HiCheckbox/index.js +1 -1
  149. package/es/HiChip/HiChip.js +3 -4
  150. package/es/HiChip/HiChipSwitch.js +10 -10
  151. package/es/HiChip/index.js +1 -1
  152. package/es/HiColoredLabel/HiColoredLabel.js +5 -5
  153. package/es/HiColoredLabel/index.js +1 -1
  154. package/es/HiDatePicker/Caption.js +2 -2
  155. package/es/HiDatePicker/HiDatePicker.js +12 -12
  156. package/es/HiDatePicker/HiDatePickerMobile.js +9 -9
  157. package/es/HiDatePicker/HiDateRangePicker.js +11 -11
  158. package/es/HiDatePicker/HiDateRangeSelector.js +33 -14
  159. package/es/HiDatePicker/ListPicker.js +8 -8
  160. package/es/HiDatePicker/NavBar.js +1 -1
  161. package/es/HiDatePicker/Overlays/CustomOverlayLayout.js +4 -4
  162. package/es/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +4 -4
  163. package/es/HiDatePicker/Overlays/MonthPickerOverlay.js +10 -10
  164. package/es/HiDatePicker/Overlays/Overlay.js +4 -4
  165. package/es/HiDatePicker/Overlays/TimePickerOverlay.js +11 -11
  166. package/es/HiDatePicker/Overlays/YearPickerOverlay.js +10 -10
  167. package/es/HiDatePicker/Overlays/index.js +1 -1
  168. package/es/HiDatePicker/Weekday.js +1 -1
  169. package/es/HiDatePicker/index.js +1 -1
  170. package/es/HiDatePicker/stylesheet.js +2 -2
  171. package/es/HiDotsStepper/HiDot.js +9 -9
  172. package/es/HiDotsStepper/HiDotsStepper.js +8 -8
  173. package/es/HiDotsStepper/index.js +23 -0
  174. package/es/HiExpansionPanel/HiExpansionPanel.js +38 -14
  175. package/es/HiExpansionPanel/index.js +1 -1
  176. package/es/HiForm/HiAddressField.js +10 -10
  177. package/es/HiForm/HiEmailField.js +10 -10
  178. package/es/HiForm/HiFormControl.js +11 -11
  179. package/es/HiForm/HiFormLabel.js +10 -10
  180. package/es/HiForm/HiInput.js +9 -9
  181. package/es/HiForm/HiPasswordField.js +11 -11
  182. package/es/HiForm/HiSearchField.js +10 -10
  183. package/es/HiForm/HiSlider.js +9 -9
  184. package/es/HiForm/HiTextField.js +9 -9
  185. package/es/HiForm/HiUpload.js +10 -10
  186. package/es/HiForm/HiUploadField.js +9 -9
  187. package/es/HiForm/HiUploadInput.js +9 -9
  188. package/es/HiForm/index.js +1 -1
  189. package/es/HiIcon/HiIcon.js +5 -6
  190. package/es/HiIcon/index.js +1 -1
  191. package/es/HiIconButton/HiIconButton.js +4 -4
  192. package/es/HiIconButton/index.js +1 -1
  193. package/es/HiLoader/HiLoader.js +2 -2
  194. package/es/HiLoader/index.js +1 -1
  195. package/es/HiMap/HiMap.js +8 -8
  196. package/es/HiMap/HiMapExpand.js +9 -9
  197. package/es/HiMap/index.js +1 -1
  198. package/es/HiNotice/HiKPI.js +14 -13
  199. package/es/HiNotice/HiKPINotice.js +1 -1
  200. package/es/HiNotice/index.js +1 -1
  201. package/es/HiPaymentMeans/HiPaymentMeans.js +8 -8
  202. package/es/HiPaymentMeans/index.js +1 -1
  203. package/es/HiPdfReader/HiPdfReader.js +10 -10
  204. package/es/HiPdfReader/index.js +1 -1
  205. package/es/HiPin/HiPin.js +3 -3
  206. package/es/HiPin/index.js +1 -1
  207. package/es/HiRadio/HiRadio.js +1 -1
  208. package/es/HiRadio/index.js +1 -1
  209. package/es/HiSelect/HiDynamicSelect.js +12 -12
  210. package/es/HiSelect/HiDynamicSelectField.js +8 -8
  211. package/es/HiSelect/HiNestedSelect.js +12 -12
  212. package/es/HiSelect/HiNestedSelectContent.js +12 -12
  213. package/es/HiSelect/HiNestedSelectField.js +8 -8
  214. package/es/HiSelect/HiSelect.js +11 -11
  215. package/es/HiSelect/HiSelectContent.js +11 -11
  216. package/es/HiSelect/HiSelectField.js +8 -8
  217. package/es/HiSelect/HiSelectInput.js +9 -9
  218. package/es/HiSelect/HiSelectMobile.js +11 -11
  219. package/es/HiSelect/HiSuggestSelect.js +10 -10
  220. package/es/HiSelect/HiSuggestSelectField.js +8 -8
  221. package/es/HiSelect/index.js +2 -2
  222. package/es/HiSelectableList/HiSelectableList.js +11 -11
  223. package/es/HiSelectableList/HiSelectableListHierarchic.js +10 -10
  224. package/es/HiSelectableList/HiSelectableListItem.js +10 -10
  225. package/es/HiSelectableList/index.js +1 -1
  226. package/es/HiSwitch/HiSwitch.js +4 -4
  227. package/es/HiSwitch/HiSwitchState.js +2 -2
  228. package/es/HiSwitch/index.js +1 -1
  229. package/es/HiTable/HiCellBuilder.js +9 -9
  230. package/es/HiTable/HiTable.js +8 -8
  231. package/es/HiTable/HiTableBody.js +6 -6
  232. package/es/HiTable/HiTableHeader.js +9 -9
  233. package/es/HiTable/HiTableRow.js +11 -10
  234. package/es/HiTable/constants.js +2 -2
  235. package/es/HiTable/index.js +1 -1
  236. package/es/hi-svg-icons/HiAccount.js +21 -9
  237. package/es/hi-svg-icons/HiActivity.js +21 -9
  238. package/es/hi-svg-icons/HiAll.js +21 -9
  239. package/es/hi-svg-icons/HiBilling.js +21 -9
  240. package/es/hi-svg-icons/HiBriefcaseRescue.js +22 -10
  241. package/es/hi-svg-icons/HiCatalog.js +22 -7
  242. package/es/hi-svg-icons/HiCustomer.js +22 -7
  243. package/es/hi-svg-icons/HiDownload.js +13 -5
  244. package/es/hi-svg-icons/HiFinance.js +22 -7
  245. package/es/hi-svg-icons/HiPermission.js +22 -7
  246. package/es/hi-svg-icons/HiRoute.js +22 -7
  247. package/es/hi-svg-icons/HiSettlement.js +22 -7
  248. package/es/hi-svg-icons/HiSizeLarge.js +5 -3
  249. package/es/hi-svg-icons/HiSizeMedium.js +3 -3
  250. package/es/hi-svg-icons/HiSizeSmall.js +3 -3
  251. package/es/hi-svg-icons/HiTransaction.js +22 -7
  252. package/es/hi-svg-icons/HiUser.js +22 -7
  253. package/es/hi-svg-icons/HiWidget.js +22 -7
  254. package/es/hi-svg-icons/index.js +1 -1
  255. package/es/hi-svg-icons/index.text.js +51 -0
  256. package/es/styleguide/Wrapper.js +7 -7
  257. package/es/styles/MuiThemeProvider.js +10 -10
  258. package/es/styles/colorManipulator.js +1 -1
  259. package/es/styles/createBreakpoints.js +3 -3
  260. package/es/styles/createGenerateClassName.js +1 -1
  261. package/es/styles/createMixins.js +3 -3
  262. package/es/styles/createMuiTheme.js +3 -3
  263. package/es/styles/createPalette.js +3 -3
  264. package/es/styles/createTypography.js +3 -3
  265. package/es/styles/getStylesCreator.js +3 -3
  266. package/es/styles/index.js +2 -18
  267. package/es/styles/jssPreset.js +1 -1
  268. package/es/styles/mergeClasses.js +2 -2
  269. package/es/styles/themeListener.js +2 -2
  270. package/es/styles/transitions.js +2 -2
  271. package/es/test-utils/createMount.js +3 -3
  272. package/es/test-utils/createRender.js +3 -3
  273. package/es/test-utils/createShallow.js +3 -3
  274. package/es/test-utils/index.js +1 -1
  275. package/es/test-utils/until.js +3 -3
  276. package/es/utils/exactProp.js +43 -0
  277. package/es/utils/helpers.js +3 -3
  278. package/es/withMobileDialog/index.js +1 -1
  279. package/es/withMobileDialog/withMobileDialog.js +3 -3
  280. package/hi-svg-icons/HiAccount.js +21 -9
  281. package/hi-svg-icons/HiActivity.js +21 -9
  282. package/hi-svg-icons/HiAll.js +21 -9
  283. package/hi-svg-icons/HiBilling.js +21 -9
  284. package/hi-svg-icons/HiBriefcaseRescue.js +22 -10
  285. package/hi-svg-icons/HiCatalog.js +22 -7
  286. package/hi-svg-icons/HiCustomer.js +22 -7
  287. package/hi-svg-icons/HiDownload.js +13 -5
  288. package/hi-svg-icons/HiFinance.js +22 -7
  289. package/hi-svg-icons/HiPermission.js +22 -7
  290. package/hi-svg-icons/HiRoute.js +22 -7
  291. package/hi-svg-icons/HiSettlement.js +22 -7
  292. package/hi-svg-icons/HiSizeLarge.js +5 -3
  293. package/hi-svg-icons/HiSizeMedium.js +3 -3
  294. package/hi-svg-icons/HiSizeSmall.js +3 -3
  295. package/hi-svg-icons/HiTransaction.js +22 -7
  296. package/hi-svg-icons/HiUser.js +22 -7
  297. package/hi-svg-icons/HiWidget.js +22 -7
  298. package/hi-svg-icons/index.js +1 -1
  299. package/hi-svg-icons/index.text.js +51 -0
  300. package/package.json +14 -4
  301. package/styleguide/Wrapper.js +7 -7
  302. package/styles/MuiThemeProvider.js +10 -10
  303. package/styles/colorManipulator.js +1 -1
  304. package/styles/createBreakpoints.js +3 -3
  305. package/styles/createGenerateClassName.js +1 -1
  306. package/styles/createMixins.js +3 -3
  307. package/styles/createMuiTheme.js +3 -3
  308. package/styles/createPalette.js +3 -3
  309. package/styles/createTypography.js +3 -3
  310. package/styles/getStylesCreator.js +3 -3
  311. package/styles/index.js +2 -18
  312. package/styles/jssPreset.js +1 -1
  313. package/styles/mergeClasses.js +2 -2
  314. package/styles/themeListener.js +2 -2
  315. package/styles/transitions.js +2 -2
  316. package/test-utils/createMount.js +3 -3
  317. package/test-utils/createRender.js +3 -3
  318. package/test-utils/createShallow.js +3 -3
  319. package/test-utils/index.js +1 -1
  320. package/test-utils/until.js +3 -3
  321. package/utils/exactProp.js +43 -0
  322. package/utils/helpers.js +3 -3
  323. package/withMobileDialog/index.js +1 -1
  324. package/withMobileDialog/withMobileDialog.js +3 -3
  325. package/es/old_components/HiAlertModal/HiAlertModal.js +0 -231
  326. package/es/old_components/HiAlertModal/index.js +0 -15
  327. package/es/old_components/HiAppBar/HiAppBar.js +0 -136
  328. package/es/old_components/HiAppBar/index.js +0 -15
  329. package/es/old_components/HiBadge/HiBadge.js +0 -103
  330. package/es/old_components/HiBadge/index.js +0 -15
  331. package/es/old_components/HiBreadcrumb/HiBreadcrumb.js +0 -105
  332. package/es/old_components/HiBreadcrumb/HiStep.js +0 -128
  333. package/es/old_components/HiBreadcrumb/HiStepConnector.js +0 -164
  334. package/es/old_components/HiBreadcrumb/HiStepContent.js +0 -97
  335. package/es/old_components/HiBreadcrumb/HiStepIcon.js +0 -154
  336. package/es/old_components/HiBreadcrumb/HiStepLabel.js +0 -173
  337. package/es/old_components/HiBreadcrumb/HiStepper.js +0 -81
  338. package/es/old_components/HiBreadcrumb/index.js +0 -15
  339. package/es/old_components/HiButton/HiButton.js +0 -92
  340. package/es/old_components/HiButton/index.js +0 -13
  341. package/es/old_components/HiCell/CellAddress.js +0 -98
  342. package/es/old_components/HiCell/CellDate.js +0 -110
  343. package/es/old_components/HiCell/CellIcon.js +0 -129
  344. package/es/old_components/HiCell/CellImage.js +0 -115
  345. package/es/old_components/HiCell/CellNumeric.js +0 -91
  346. package/es/old_components/HiCell/CellPinToAction.js +0 -73
  347. package/es/old_components/HiCell/CellRate.js +0 -150
  348. package/es/old_components/HiCell/CellSentinel.js +0 -91
  349. package/es/old_components/HiCell/CellSentinelScore.js +0 -94
  350. package/es/old_components/HiCell/CellText.js +0 -228
  351. package/es/old_components/HiCell/CellTextStyled.js +0 -92
  352. package/es/old_components/HiCell/index.js +0 -79
  353. package/es/old_components/HiCheckbox/HiCheckbox.js +0 -175
  354. package/es/old_components/HiCheckbox/index.js +0 -15
  355. package/es/old_components/HiChip/HiChip.js +0 -227
  356. package/es/old_components/HiChip/HiChipSwitch.js +0 -249
  357. package/es/old_components/HiChip/index.js +0 -23
  358. package/es/old_components/HiColoredLabel/HiColoredLabel.js +0 -179
  359. package/es/old_components/HiColoredLabel/index.js +0 -15
  360. package/es/old_components/HiDatePicker/Caption.js +0 -57
  361. package/es/old_components/HiDatePicker/HiDatePicker.js +0 -357
  362. package/es/old_components/HiDatePicker/HiDatePickerMobile.js +0 -106
  363. package/es/old_components/HiDatePicker/HiDateRangePicker.js +0 -641
  364. package/es/old_components/HiDatePicker/HiDateRangeSelector.js +0 -464
  365. package/es/old_components/HiDatePicker/ListPicker.js +0 -136
  366. package/es/old_components/HiDatePicker/NavBar.js +0 -106
  367. package/es/old_components/HiDatePicker/Overlays/CustomOverlayLayout.js +0 -111
  368. package/es/old_components/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +0 -103
  369. package/es/old_components/HiDatePicker/Overlays/MonthPickerOverlay.js +0 -89
  370. package/es/old_components/HiDatePicker/Overlays/Overlay.js +0 -77
  371. package/es/old_components/HiDatePicker/Overlays/TimePickerOverlay.js +0 -217
  372. package/es/old_components/HiDatePicker/Overlays/YearPickerOverlay.js +0 -110
  373. package/es/old_components/HiDatePicker/Overlays/index.js +0 -47
  374. package/es/old_components/HiDatePicker/Weekday.js +0 -25
  375. package/es/old_components/HiDatePicker/hiLocaleUtils.js +0 -144
  376. package/es/old_components/HiDatePicker/index.js +0 -15
  377. package/es/old_components/HiDatePicker/stylesheet.js +0 -266
  378. package/es/old_components/HiDotsStepper/HiDot.js +0 -102
  379. package/es/old_components/HiDotsStepper/HiDotsStepper.js +0 -111
  380. package/es/old_components/HiExpansionPanel/HiExpansionPanel.js +0 -194
  381. package/es/old_components/HiExpansionPanel/index.js +0 -13
  382. package/es/old_components/HiForm/HiAddressField.js +0 -153
  383. package/es/old_components/HiForm/HiEmailField.js +0 -81
  384. package/es/old_components/HiForm/HiFormControl.js +0 -306
  385. package/es/old_components/HiForm/HiFormLabel.js +0 -125
  386. package/es/old_components/HiForm/HiInput.js +0 -459
  387. package/es/old_components/HiForm/HiPasswordField.js +0 -113
  388. package/es/old_components/HiForm/HiSearchField.js +0 -157
  389. package/es/old_components/HiForm/HiSlider.js +0 -281
  390. package/es/old_components/HiForm/HiTextField.js +0 -170
  391. package/es/old_components/HiForm/HiUpload.js +0 -385
  392. package/es/old_components/HiForm/HiUploadField.js +0 -90
  393. package/es/old_components/HiForm/HiUploadInput.js +0 -390
  394. package/es/old_components/HiForm/index.js +0 -95
  395. package/es/old_components/HiIcon/HiIcon.js +0 -114
  396. package/es/old_components/HiIcon/index.js +0 -15
  397. package/es/old_components/HiIconButton/HiIconButton.js +0 -104
  398. package/es/old_components/HiIconButton/index.js +0 -15
  399. package/es/old_components/HiLoader/HiLoader.js +0 -49
  400. package/es/old_components/HiLoader/index.js +0 -15
  401. package/es/old_components/HiMap/HiMap.js +0 -317
  402. package/es/old_components/HiMap/HiMapExpand.js +0 -200
  403. package/es/old_components/HiMap/index.js +0 -23
  404. package/es/old_components/HiNotice/HiKPI.js +0 -186
  405. package/es/old_components/HiNotice/HiKPINotice.js +0 -69
  406. package/es/old_components/HiNotice/index.js +0 -23
  407. package/es/old_components/HiPaymentMeans/HiPaymentMeans.js +0 -576
  408. package/es/old_components/HiPaymentMeans/index.js +0 -15
  409. package/es/old_components/HiPdfReader/HiPdfReader.js +0 -245
  410. package/es/old_components/HiPdfReader/index.js +0 -15
  411. package/es/old_components/HiPin/HiPin.js +0 -104
  412. package/es/old_components/HiPin/index.js +0 -15
  413. package/es/old_components/HiRadio/HiRadio.js +0 -67
  414. package/es/old_components/HiRadio/index.js +0 -15
  415. package/es/old_components/HiSelect/HiDynamicSelect.js +0 -165
  416. package/es/old_components/HiSelect/HiDynamicSelectField.js +0 -98
  417. package/es/old_components/HiSelect/HiNestedSelect.js +0 -445
  418. package/es/old_components/HiSelect/HiNestedSelectContent.js +0 -350
  419. package/es/old_components/HiSelect/HiNestedSelectField.js +0 -98
  420. package/es/old_components/HiSelect/HiSelect.js +0 -808
  421. package/es/old_components/HiSelect/HiSelectContent.js +0 -404
  422. package/es/old_components/HiSelect/HiSelectField.js +0 -100
  423. package/es/old_components/HiSelect/HiSelectInput.js +0 -323
  424. package/es/old_components/HiSelect/HiSelectMobile.js +0 -167
  425. package/es/old_components/HiSelect/HiSuggestSelect.js +0 -313
  426. package/es/old_components/HiSelect/HiSuggestSelectField.js +0 -87
  427. package/es/old_components/HiSelect/index.js +0 -85
  428. package/es/old_components/HiSelectableList/HiSelectableList.js +0 -292
  429. package/es/old_components/HiSelectableList/HiSelectableListHierarchic.js +0 -173
  430. package/es/old_components/HiSelectableList/HiSelectableListItem.js +0 -427
  431. package/es/old_components/HiSelectableList/index.js +0 -31
  432. package/es/old_components/HiSwitch/HiSwitch.js +0 -201
  433. package/es/old_components/HiSwitch/HiSwitchState.js +0 -163
  434. package/es/old_components/HiSwitch/index.js +0 -23
  435. package/es/old_components/HiTable/HiCellBuilder.js +0 -231
  436. package/es/old_components/HiTable/HiTable.js +0 -101
  437. package/es/old_components/HiTable/HiTableBody.js +0 -62
  438. package/es/old_components/HiTable/HiTableHeader.js +0 -141
  439. package/es/old_components/HiTable/HiTableRow.js +0 -136
  440. package/es/old_components/HiTable/constants.js +0 -149
  441. package/es/old_components/HiTable/index.js +0 -15
  442. package/es/old_components/hi-svg-icons/HiAccount.js +0 -46
  443. package/es/old_components/hi-svg-icons/HiActivity.js +0 -44
  444. package/es/old_components/hi-svg-icons/HiAll.js +0 -51
  445. package/es/old_components/hi-svg-icons/HiBilling.js +0 -46
  446. package/es/old_components/hi-svg-icons/HiBriefcaseRescue.js +0 -27
  447. package/es/old_components/hi-svg-icons/HiCatalog.js +0 -43
  448. package/es/old_components/hi-svg-icons/HiCustomer.js +0 -43
  449. package/es/old_components/hi-svg-icons/HiDownload.js +0 -28
  450. package/es/old_components/hi-svg-icons/HiFinance.js +0 -43
  451. package/es/old_components/hi-svg-icons/HiPermission.js +0 -41
  452. package/es/old_components/hi-svg-icons/HiRoute.js +0 -43
  453. package/es/old_components/hi-svg-icons/HiSettlement.js +0 -43
  454. package/es/old_components/hi-svg-icons/HiSizeLarge.js +0 -36
  455. package/es/old_components/hi-svg-icons/HiSizeMedium.js +0 -36
  456. package/es/old_components/hi-svg-icons/HiSizeSmall.js +0 -36
  457. package/es/old_components/hi-svg-icons/HiTransaction.js +0 -43
  458. package/es/old_components/hi-svg-icons/HiUser.js +0 -43
  459. package/es/old_components/hi-svg-icons/HiWidget.js +0 -48
  460. package/es/old_components/hi-svg-icons/index.js +0 -151
  461. package/es/old_components/styles/MuiThemeProvider.js +0 -155
  462. package/es/old_components/styles/colorManipulator.js +0 -286
  463. package/es/old_components/styles/createBreakpoints.js +0 -81
  464. package/es/old_components/styles/createGenerateClassName.js +0 -86
  465. package/es/old_components/styles/createMixins.js +0 -36
  466. package/es/old_components/styles/createMuiTheme.js +0 -77
  467. package/es/old_components/styles/createPalette.js +0 -287
  468. package/es/old_components/styles/createStyles.js +0 -10
  469. package/es/old_components/styles/createTypography.js +0 -185
  470. package/es/old_components/styles/getStylesCreator.js +0 -54
  471. package/es/old_components/styles/getThemeProps.js +0 -20
  472. package/es/old_components/styles/index.js +0 -63
  473. package/es/old_components/styles/jssPreset.js +0 -31
  474. package/es/old_components/styles/mergeClasses.js +0 -41
  475. package/es/old_components/styles/shadows.js +0 -17
  476. package/es/old_components/styles/shape.js +0 -11
  477. package/es/old_components/styles/spacing.js +0 -14
  478. package/es/old_components/styles/themeListener.js +0 -40
  479. package/es/old_components/styles/transitions.js +0 -106
  480. package/es/old_components/styles/withStyles.js +0 -373
  481. package/es/old_components/styles/withTheme.js +0 -122
  482. package/es/old_components/styles/zIndex.js +0 -18
  483. package/es/old_components/test-utils/createMount.js +0 -44
  484. package/es/old_components/test-utils/createRender.js +0 -29
  485. package/es/old_components/test-utils/createShallow.js +0 -48
  486. package/es/old_components/test-utils/getClasses.js +0 -12
  487. package/es/old_components/test-utils/index.js +0 -47
  488. package/es/old_components/test-utils/until.js +0 -49
  489. package/es/old_components/test-utils/unwrap.js +0 -10
  490. package/es/old_components/transitions/utils.js +0 -23
  491. package/es/old_components/utils/helpers.js +0 -335
  492. package/es/old_components/withMobileDialog/index.js +0 -15
  493. package/es/old_components/withMobileDialog/withMobileDialog.js +0 -40
  494. package/es/styles/withStyles.js +0 -373
  495. package/es/styles/withTheme.js +0 -122
  496. package/old_components/HiAlertModal/HiAlertModal.js +0 -231
  497. package/old_components/HiAlertModal/index.js +0 -15
  498. package/old_components/HiAppBar/HiAppBar.js +0 -136
  499. package/old_components/HiAppBar/index.js +0 -15
  500. package/old_components/HiBadge/HiBadge.js +0 -103
  501. package/old_components/HiBadge/index.js +0 -15
  502. package/old_components/HiBreadcrumb/HiBreadcrumb.js +0 -105
  503. package/old_components/HiBreadcrumb/HiStep.js +0 -128
  504. package/old_components/HiBreadcrumb/HiStepConnector.js +0 -164
  505. package/old_components/HiBreadcrumb/HiStepContent.js +0 -97
  506. package/old_components/HiBreadcrumb/HiStepIcon.js +0 -154
  507. package/old_components/HiBreadcrumb/HiStepLabel.js +0 -173
  508. package/old_components/HiBreadcrumb/HiStepper.js +0 -81
  509. package/old_components/HiBreadcrumb/index.js +0 -15
  510. package/old_components/HiButton/HiButton.js +0 -92
  511. package/old_components/HiButton/index.js +0 -13
  512. package/old_components/HiCell/CellAddress.js +0 -98
  513. package/old_components/HiCell/CellDate.js +0 -110
  514. package/old_components/HiCell/CellIcon.js +0 -129
  515. package/old_components/HiCell/CellImage.js +0 -115
  516. package/old_components/HiCell/CellNumeric.js +0 -91
  517. package/old_components/HiCell/CellPinToAction.js +0 -73
  518. package/old_components/HiCell/CellRate.js +0 -150
  519. package/old_components/HiCell/CellSentinel.js +0 -91
  520. package/old_components/HiCell/CellSentinelScore.js +0 -94
  521. package/old_components/HiCell/CellText.js +0 -228
  522. package/old_components/HiCell/CellTextStyled.js +0 -92
  523. package/old_components/HiCell/index.js +0 -79
  524. package/old_components/HiCheckbox/HiCheckbox.js +0 -175
  525. package/old_components/HiCheckbox/index.js +0 -15
  526. package/old_components/HiChip/HiChip.js +0 -227
  527. package/old_components/HiChip/HiChipSwitch.js +0 -249
  528. package/old_components/HiChip/index.js +0 -23
  529. package/old_components/HiColoredLabel/HiColoredLabel.js +0 -179
  530. package/old_components/HiColoredLabel/index.js +0 -15
  531. package/old_components/HiDatePicker/Caption.js +0 -57
  532. package/old_components/HiDatePicker/HiDatePicker.js +0 -357
  533. package/old_components/HiDatePicker/HiDatePickerMobile.js +0 -106
  534. package/old_components/HiDatePicker/HiDateRangePicker.js +0 -641
  535. package/old_components/HiDatePicker/HiDateRangeSelector.js +0 -464
  536. package/old_components/HiDatePicker/ListPicker.js +0 -136
  537. package/old_components/HiDatePicker/NavBar.js +0 -106
  538. package/old_components/HiDatePicker/Overlays/CustomOverlayLayout.js +0 -111
  539. package/old_components/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +0 -103
  540. package/old_components/HiDatePicker/Overlays/MonthPickerOverlay.js +0 -89
  541. package/old_components/HiDatePicker/Overlays/Overlay.js +0 -77
  542. package/old_components/HiDatePicker/Overlays/TimePickerOverlay.js +0 -217
  543. package/old_components/HiDatePicker/Overlays/YearPickerOverlay.js +0 -110
  544. package/old_components/HiDatePicker/Overlays/index.js +0 -47
  545. package/old_components/HiDatePicker/Weekday.js +0 -25
  546. package/old_components/HiDatePicker/hiLocaleUtils.js +0 -144
  547. package/old_components/HiDatePicker/index.js +0 -15
  548. package/old_components/HiDatePicker/stylesheet.js +0 -266
  549. package/old_components/HiDotsStepper/HiDot.js +0 -102
  550. package/old_components/HiDotsStepper/HiDotsStepper.js +0 -111
  551. package/old_components/HiExpansionPanel/HiExpansionPanel.js +0 -194
  552. package/old_components/HiExpansionPanel/index.js +0 -13
  553. package/old_components/HiForm/HiAddressField.js +0 -153
  554. package/old_components/HiForm/HiEmailField.js +0 -81
  555. package/old_components/HiForm/HiFormControl.js +0 -306
  556. package/old_components/HiForm/HiFormLabel.js +0 -125
  557. package/old_components/HiForm/HiInput.js +0 -459
  558. package/old_components/HiForm/HiPasswordField.js +0 -113
  559. package/old_components/HiForm/HiSearchField.js +0 -157
  560. package/old_components/HiForm/HiSlider.js +0 -281
  561. package/old_components/HiForm/HiTextField.js +0 -170
  562. package/old_components/HiForm/HiUpload.js +0 -385
  563. package/old_components/HiForm/HiUploadField.js +0 -90
  564. package/old_components/HiForm/HiUploadInput.js +0 -390
  565. package/old_components/HiForm/index.js +0 -95
  566. package/old_components/HiIcon/HiIcon.js +0 -114
  567. package/old_components/HiIcon/index.js +0 -15
  568. package/old_components/HiIconButton/HiIconButton.js +0 -104
  569. package/old_components/HiIconButton/index.js +0 -15
  570. package/old_components/HiLoader/HiLoader.js +0 -49
  571. package/old_components/HiLoader/index.js +0 -15
  572. package/old_components/HiMap/HiMap.js +0 -317
  573. package/old_components/HiMap/HiMapExpand.js +0 -200
  574. package/old_components/HiMap/index.js +0 -23
  575. package/old_components/HiNotice/HiKPI.js +0 -186
  576. package/old_components/HiNotice/HiKPINotice.js +0 -69
  577. package/old_components/HiNotice/index.js +0 -23
  578. package/old_components/HiPaymentMeans/HiPaymentMeans.js +0 -576
  579. package/old_components/HiPaymentMeans/index.js +0 -15
  580. package/old_components/HiPdfReader/HiPdfReader.js +0 -245
  581. package/old_components/HiPdfReader/index.js +0 -15
  582. package/old_components/HiPin/HiPin.js +0 -104
  583. package/old_components/HiPin/index.js +0 -15
  584. package/old_components/HiRadio/HiRadio.js +0 -67
  585. package/old_components/HiRadio/index.js +0 -15
  586. package/old_components/HiSelect/HiDynamicSelect.js +0 -165
  587. package/old_components/HiSelect/HiDynamicSelectField.js +0 -98
  588. package/old_components/HiSelect/HiNestedSelect.js +0 -445
  589. package/old_components/HiSelect/HiNestedSelectContent.js +0 -350
  590. package/old_components/HiSelect/HiNestedSelectField.js +0 -98
  591. package/old_components/HiSelect/HiSelect.js +0 -808
  592. package/old_components/HiSelect/HiSelectContent.js +0 -404
  593. package/old_components/HiSelect/HiSelectField.js +0 -100
  594. package/old_components/HiSelect/HiSelectInput.js +0 -323
  595. package/old_components/HiSelect/HiSelectMobile.js +0 -167
  596. package/old_components/HiSelect/HiSuggestSelect.js +0 -313
  597. package/old_components/HiSelect/HiSuggestSelectField.js +0 -87
  598. package/old_components/HiSelect/index.js +0 -85
  599. package/old_components/HiSelectableList/HiSelectableList.js +0 -292
  600. package/old_components/HiSelectableList/HiSelectableListHierarchic.js +0 -173
  601. package/old_components/HiSelectableList/HiSelectableListItem.js +0 -427
  602. package/old_components/HiSelectableList/index.js +0 -31
  603. package/old_components/HiSwitch/HiSwitch.js +0 -201
  604. package/old_components/HiSwitch/HiSwitchState.js +0 -163
  605. package/old_components/HiSwitch/index.js +0 -23
  606. package/old_components/HiTable/HiCellBuilder.js +0 -231
  607. package/old_components/HiTable/HiTable.js +0 -101
  608. package/old_components/HiTable/HiTableBody.js +0 -62
  609. package/old_components/HiTable/HiTableHeader.js +0 -141
  610. package/old_components/HiTable/HiTableRow.js +0 -136
  611. package/old_components/HiTable/constants.js +0 -149
  612. package/old_components/HiTable/index.js +0 -15
  613. package/old_components/hi-svg-icons/HiAccount.js +0 -46
  614. package/old_components/hi-svg-icons/HiActivity.js +0 -44
  615. package/old_components/hi-svg-icons/HiAll.js +0 -51
  616. package/old_components/hi-svg-icons/HiBilling.js +0 -46
  617. package/old_components/hi-svg-icons/HiBriefcaseRescue.js +0 -27
  618. package/old_components/hi-svg-icons/HiCatalog.js +0 -43
  619. package/old_components/hi-svg-icons/HiCustomer.js +0 -43
  620. package/old_components/hi-svg-icons/HiDownload.js +0 -28
  621. package/old_components/hi-svg-icons/HiFinance.js +0 -43
  622. package/old_components/hi-svg-icons/HiPermission.js +0 -41
  623. package/old_components/hi-svg-icons/HiRoute.js +0 -43
  624. package/old_components/hi-svg-icons/HiSettlement.js +0 -43
  625. package/old_components/hi-svg-icons/HiSizeLarge.js +0 -36
  626. package/old_components/hi-svg-icons/HiSizeMedium.js +0 -36
  627. package/old_components/hi-svg-icons/HiSizeSmall.js +0 -36
  628. package/old_components/hi-svg-icons/HiTransaction.js +0 -43
  629. package/old_components/hi-svg-icons/HiUser.js +0 -43
  630. package/old_components/hi-svg-icons/HiWidget.js +0 -48
  631. package/old_components/hi-svg-icons/index.js +0 -151
  632. package/old_components/styles/MuiThemeProvider.js +0 -155
  633. package/old_components/styles/colorManipulator.js +0 -286
  634. package/old_components/styles/createBreakpoints.js +0 -81
  635. package/old_components/styles/createGenerateClassName.js +0 -86
  636. package/old_components/styles/createMixins.js +0 -36
  637. package/old_components/styles/createMuiTheme.js +0 -77
  638. package/old_components/styles/createPalette.js +0 -287
  639. package/old_components/styles/createStyles.js +0 -10
  640. package/old_components/styles/createTypography.js +0 -185
  641. package/old_components/styles/getStylesCreator.js +0 -54
  642. package/old_components/styles/getThemeProps.js +0 -20
  643. package/old_components/styles/index.js +0 -63
  644. package/old_components/styles/jssPreset.js +0 -31
  645. package/old_components/styles/mergeClasses.js +0 -41
  646. package/old_components/styles/shadows.js +0 -17
  647. package/old_components/styles/shape.js +0 -11
  648. package/old_components/styles/spacing.js +0 -14
  649. package/old_components/styles/themeListener.js +0 -40
  650. package/old_components/styles/transitions.js +0 -106
  651. package/old_components/styles/withStyles.js +0 -373
  652. package/old_components/styles/withTheme.js +0 -122
  653. package/old_components/styles/zIndex.js +0 -18
  654. package/old_components/test-utils/createMount.js +0 -44
  655. package/old_components/test-utils/createRender.js +0 -29
  656. package/old_components/test-utils/createShallow.js +0 -48
  657. package/old_components/test-utils/getClasses.js +0 -12
  658. package/old_components/test-utils/index.js +0 -47
  659. package/old_components/test-utils/until.js +0 -49
  660. package/old_components/test-utils/unwrap.js +0 -10
  661. package/old_components/transitions/utils.js +0 -23
  662. package/old_components/utils/helpers.js +0 -335
  663. package/old_components/withMobileDialog/index.js +0 -15
  664. package/old_components/withMobileDialog/withMobileDialog.js +0 -40
  665. package/styles/withStyles.js +0 -373
  666. package/styles/withTheme.js +0 -122
@@ -1,808 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.default = exports.styles = void 0;
9
-
10
- var _extends2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/extends"));
11
-
12
- var _toConsumableArray2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/toConsumableArray"));
13
-
14
- var _classCallCheck2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck"));
15
-
16
- var _createClass2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass"));
17
-
18
- var _possibleConstructorReturn2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn"));
19
-
20
- var _getPrototypeOf2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf"));
21
-
22
- var _assertThisInitialized2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized"));
23
-
24
- var _inherits2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits"));
25
-
26
- var _defineProperty2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/defineProperty"));
27
-
28
- var _objectSpread2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hmui-styleguide/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/objectSpread2"));
29
-
30
- var _react = _interopRequireDefault(require("react"));
31
-
32
- var _reactCustomScrollbars = _interopRequireDefault(require("react-custom-scrollbars"));
33
-
34
- var _Grow = _interopRequireDefault(require("@material-ui/core/Grow"));
35
-
36
- var _Paper = _interopRequireDefault(require("@material-ui/core/Paper"));
37
-
38
- var _Popper = _interopRequireDefault(require("@material-ui/core/Popper"));
39
-
40
- var _ClickAwayListener = _interopRequireDefault(require("@material-ui/core/ClickAwayListener"));
41
-
42
- var _HiSelectableList = _interopRequireDefault(require("../HiSelectableList"));
43
-
44
- var _HiInput = _interopRequireDefault(require("../HiForm/HiInput"));
45
-
46
- var _HiSelectInput = _interopRequireDefault(require("./HiSelectInput"));
47
-
48
- var _styles = require("@material-ui/core/styles");
49
-
50
- var _helpers = require("../utils/helpers");
51
-
52
- var _HiIcon = _interopRequireDefault(require("../HiIcon"));
53
-
54
- var _keycode = _interopRequireDefault(require("keycode"));
55
-
56
- var _classnames = _interopRequireDefault(require("classnames"));
57
-
58
- var _HiAlertModal = _interopRequireDefault(require("../HiAlertModal"));
59
-
60
- var _reactDeviceDetect = require("react-device-detect");
61
-
62
- var _HiSelectMobile = _interopRequireDefault(require("./HiSelectMobile"));
63
-
64
- var _reactDom = require("react-dom");
65
-
66
- var styles = function styles(theme) {
67
- return {
68
- root: {
69
- backgroundColor: theme.palette.background2,
70
- maxWidth: 500,
71
- width: '100%',
72
- position: 'relative'
73
- },
74
- popper: {
75
- zIndex: 1200
76
- },
77
- popperWidth: {
78
- width: '100% !important'
79
- },
80
- popperRightAlign: {
81
- right: 0,
82
- left: 'unset!important'
83
- },
84
- paper: {
85
- borderRadius: '0px 2px',
86
- maxHeight: 480,
87
- transition: 'none !important'
88
- },
89
- labelIcon: {
90
- marginRight: 10,
91
- verticalAlign: 'text-bottom'
92
- },
93
- labelImg: {
94
- height: 18,
95
- width: 'auto',
96
- margin: '0 4px',
97
- verticalAlign: 'text-bottom'
98
- },
99
- selectIconLabel: (0, _objectSpread2.default)({
100
- whiteSpace: 'nowrap',
101
- overflow: 'hidden',
102
- textOverflow: 'ellipsis',
103
- paddingRight: 16
104
- }, theme.typography.b1, {
105
- display: 'inline-block',
106
- width: '100%'
107
- }),
108
- selectImgLabel: (0, _objectSpread2.default)({
109
- whiteSpace: 'nowrap',
110
- overflow: 'hidden',
111
- textOverflow: 'ellipsis',
112
- paddingRight: 16
113
- }, theme.typography.b1, {
114
- display: 'inline-flex',
115
- width: '100%'
116
- }),
117
- separator: {
118
- borderTop: "1px solid ".concat(theme.palette.input.bottomLine)
119
- }
120
- };
121
- };
122
-
123
- exports.styles = styles;
124
-
125
- function filterValue(item, search) {
126
- return search === '' || (0, _helpers.foldAccents)(item.label.toString().toLowerCase()).search((0, _helpers.foldAccents)(search.toLowerCase())) !== -1;
127
- }
128
- /**
129
- *
130
- * Utilisé pour tous types de selects dans les formulaires.
131
- * - single / multiple ( multi-select )
132
- * - avec / sans checkboxes
133
- * - avec / sans barre de recherche
134
- * - avec / sans option "All"
135
- * - prise en compte du type des éléments (text, image, icon, ...)
136
- * - les actions du clavier son capturés avec KeyDown
137
- *
138
- * Ce composant réuni les sous-composants
139
- * - HiSelectInput : affiche l'élément dans le formulaire
140
- * - HiSearchField : intègre une barre de recherche dans le Popper, il filtre la liste des suggestions
141
- * - HiSelectableList : affiche la liste des suggestions selon le type des éléments
142
- */
143
-
144
-
145
- var HiSelect =
146
- /*#__PURE__*/
147
- function (_React$PureComponent) {
148
- (0, _inherits2.default)(HiSelect, _React$PureComponent);
149
-
150
- function HiSelect(props) {
151
- var _this;
152
-
153
- (0, _classCallCheck2.default)(this, HiSelect);
154
- _this = (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(HiSelect).call(this, props));
155
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "buildSelectProps", function (options) {
156
- var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
157
- var search = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
158
- var loading = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
159
- // build item list
160
- var itemList = [].concat((0, _toConsumableArray2.default)(loading ? [{
161
- id: '_loading',
162
- type: 'loader',
163
- disabled: true,
164
- centered: true,
165
- hideCheckbox: true,
166
- label: 'loading'
167
- }] : []), (0, _toConsumableArray2.default)(search !== '' ? (0, _toConsumableArray2.default)(options.filter(function (item) {
168
- return _this.props.filterFunc(item, search);
169
- })) : [].concat((0, _toConsumableArray2.default)(_this.props.hasAll ? [(0, _objectSpread2.default)({
170
- id: '_all',
171
- label: _this.props.translations.all
172
- }, _this.props.iconAll && {
173
- type: 'icon',
174
- icon: _this.props.iconAll
175
- })] : []), (0, _toConsumableArray2.default)(options))));
176
- return {
177
- itemList: itemList,
178
- inputValue: _this.buildInputValue(options, value, loading)
179
- };
180
- });
181
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "buildInputValue", function (options) {
182
- var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
183
- var loading = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
184
- var _this$props = _this.props,
185
- classes = _this$props.classes,
186
- hasAll = _this$props.hasAll,
187
- translations = _this$props.translations,
188
- type = _this$props.type; // build input value
189
-
190
- var inputValue;
191
-
192
- if (loading && value.length === 1) {
193
- inputValue = translations.one_item_selected;
194
- } else if (hasAll && options.length === value.length) {
195
- inputValue = translations.all;
196
- value.unshift('_all');
197
- } else if (value.length > 1) {
198
- inputValue = translations.n_items_selected.replace('%s', value.length);
199
- } else if (value.length === 1) {
200
- var item = options.find(function (o) {
201
- return o.id === value[0];
202
- });
203
-
204
- if (item === undefined) {
205
- inputValue = translations.one_item_selected;
206
- } else if (type === 'icon' || item.type === 'icon') {
207
- inputValue = _react.default.createElement("span", {
208
- className: classes.selectIconLabel
209
- }, _react.default.createElement(_HiIcon.default, {
210
- className: classes.labelIcon,
211
- color: item.color,
212
- icon: item.icon
213
- }), item.label);
214
- } else if (type === 'image' || item.type === 'image') {
215
- inputValue = _react.default.createElement("span", {
216
- className: classes.selectIconLabel
217
- }, item.img && _react.default.createElement("img", {
218
- className: classes.labelImg,
219
- src: item.img,
220
- alt: item.label,
221
- onError: function onError(e) {
222
- if (item.fallbackImage) {
223
- e.target.src = "".concat(item.fallbackImage);
224
- } else {
225
- e.target.style.display = 'none';
226
- }
227
- }
228
- }), item.label);
229
- } else {
230
- inputValue = item.label;
231
- }
232
- }
233
-
234
- return inputValue;
235
- });
236
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "focusOnFirstItem", function () {
237
- if (_this.overlay && _this.overlay.getElementsByTagName('li')[0]) {
238
- setTimeout(function () {
239
- var item = _this.overlay.getElementsByTagName('li')[0];
240
-
241
- item.focus();
242
- }, 1);
243
- }
244
- });
245
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getInputElement", function (el) {
246
- _this.searchField = el;
247
-
248
- if (_this.props.inputRef) {
249
- _this.props.inputRef(_this.searchField);
250
- }
251
- });
252
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleBlur", function (event) {
253
- _this.handleSearchReset();
254
-
255
- _this.setState({
256
- focused: false
257
- });
258
-
259
- if (_this.props.onBlur && !_this.inputEl.contains(event.relatedTarget) && !_this.state.open) {
260
- _this.props.onBlur(event);
261
- }
262
- });
263
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleClick", function () {
264
- if (_this.state.open) {
265
- _this.handleClose();
266
- } else if (_this.props.alert && !_this.state.alertOpen) {
267
- _this.setState({
268
- open: false,
269
- alertOpen: true
270
- });
271
- } else {
272
- _this.setState({
273
- open: true,
274
- alertOpen: false
275
- });
276
-
277
- _this.handleSuggestions(_this.props.options);
278
-
279
- if (_this.props.onClick) _this.props.onClick(); // Gestion du focus
280
-
281
- setTimeout(function () {
282
- if (!_this.props.searchable) {
283
- // Sinon focus sur l'élément sélectionné
284
- _this.focusOnSelectedItem(_this.props.value);
285
- }
286
- }, 1);
287
- }
288
- });
289
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleSubmitAlert", function () {
290
- _this.handleClick();
291
- });
292
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleCancelAlert", function () {
293
- _this.handleClose();
294
- });
295
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleExitedAlert", function () {
296
- if (_this.searchField) {
297
- _this.searchField.focus();
298
- }
299
- });
300
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleCloseAlert", function () {
301
- _this.handleClose();
302
- });
303
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "focusOnSelectedItem", function (selectedValue) {
304
- if (_this.overlay && _this.overlay.getElementsByTagName('li')[0]) {
305
- setTimeout(function () {
306
- if (_this.overlay) {
307
- // On initialise au premier élément pour être sûr de ne pas se retrouver avec un focus of undefined
308
- var item = _this.overlay.getElementsByTagName('li')[0];
309
-
310
- if (selectedValue && typeof selectedValue === 'string') {
311
- item = _this.overlay.getElementsByTagName('li')[selectedValue];
312
- } else if (selectedValue && typeof selectedValue === 'number') {
313
- item = _this.overlay.getElementsByTagName('li')[selectedValue - 1];
314
- }
315
-
316
- if (item) {
317
- item.focus();
318
- }
319
- }
320
- }, 1);
321
- }
322
- });
323
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleClickAway", function (event) {
324
- // Au clic sur le bouton, on laisse le handleClick fermer le select
325
- if (!_this.inputEl.contains(event.target)) {
326
- _this.handleClose(event);
327
- }
328
- });
329
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleClose", function () {
330
- _this.handleSearchReset();
331
-
332
- _this.setState({
333
- open: false,
334
- alertOpen: false
335
- });
336
-
337
- if (_this.props.onClose) {
338
- _this.props.onClose();
339
- }
340
-
341
- if (_this.inputEl) {
342
- _this.inputEl.focus();
343
- }
344
- });
345
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleFocus", function () {
346
- _this.setState({
347
- focused: true
348
- });
349
- });
350
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleKeyDownCapture", function (event) {
351
- var key = (0, _keycode.default)(event);
352
-
353
- if (key === 'enter') {
354
- if (_this.state.open) {
355
- if (_this.props.multiple) {
356
- event.stopPropagation();
357
-
358
- _this.handleClose();
359
- }
360
- }
361
- }
362
- });
363
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleKeyDown", function (event) {
364
- var key = (0, _keycode.default)(event);
365
-
366
- if (!_this.state.alertOpen) {
367
- if (key === 'esc') {
368
- event.preventDefault();
369
-
370
- _this.handleClose();
371
- } else if (key === 'enter') {
372
- if (_this.state.open) {
373
- if (_this.props.multiple) {
374
- _this.handleClose();
375
- }
376
- }
377
- } else if (key === 'space' && event.target !== _this.searchField) {
378
- event.preventDefault();
379
-
380
- _this.handleClick();
381
- } else if (key === 'tab') {
382
- _this.handleClose();
383
- }
384
- }
385
- });
386
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleKeyDownSearch", function (event) {
387
- var key = (0, _keycode.default)(event);
388
-
389
- if (_this.overlay && (key === 'down' || key === 'up')) {
390
- _this.focusOnFirstItem();
391
- } else if (_this.overlay && (key === 'esc' || key === 'enter')) {
392
- event.preventDefault();
393
-
394
- _this.handleClose();
395
- } else if (key === 'tab') {
396
- _this.setState({
397
- open: false
398
- });
399
- }
400
- });
401
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleScroll", function (e) {
402
- if (e.target.scrollHeight - e.target.clientHeight - e.target.scrollTop < 15) {
403
- _this.props.onScrollReachBottom();
404
- }
405
- });
406
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleSelect", function (event, item) {
407
- var _this$props2 = _this.props,
408
- hasAll = _this$props2.hasAll,
409
- multiple = _this$props2.multiple,
410
- onChange = _this$props2.onChange,
411
- options = _this$props2.options,
412
- value = _this$props2.value;
413
-
414
- if (!multiple) {
415
- // single value
416
- _this.handleClose();
417
-
418
- onChange(event, item.id, item);
419
- } else if (hasAll && item.id === '_all') {
420
- if (value.length === options.length) {
421
- // unselect _all options
422
- onChange(event, [], item);
423
- } else {
424
- // select _all options
425
- onChange(event, options.map(function (option) {
426
- return option.id;
427
- }), item);
428
- }
429
- } else if (_reactDeviceDetect.isMobile && multiple) {
430
- // Array of selected values
431
- onChange(event, item.map(function (option) {
432
- return option.id;
433
- }), item);
434
- } else if (value.includes(item.id)) {
435
- // unselect item
436
- onChange(event, value.filter(function (id) {
437
- return id !== item.id;
438
- }), item);
439
- } else {
440
- onChange(event, [].concat((0, _toConsumableArray2.default)(value), [item.id]), item);
441
- }
442
- });
443
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleSuggestions", function (suggestions) {
444
- var _this$props3 = _this.props,
445
- hasAll = _this$props3.hasAll,
446
- iconAll = _this$props3.iconAll,
447
- translations = _this$props3.translations;
448
-
449
- if (suggestions.length === 0) {
450
- // Add '_no_result' suggestion
451
- _this.setState(function (prevState) {
452
- return (0, _objectSpread2.default)({}, prevState, {
453
- suggestions: [{
454
- id: '_no_result',
455
- type: 'text',
456
- disabled: true,
457
- centered: true,
458
- hideCheckbox: true,
459
- label: translations.no_result_match
460
- }]
461
- });
462
- });
463
- } else {
464
- _this.setState({
465
- suggestions: [].concat((0, _toConsumableArray2.default)(hasAll ? [(0, _objectSpread2.default)({
466
- id: '_all',
467
- label: translations.all
468
- }, iconAll && {
469
- type: 'icon',
470
- icon: iconAll
471
- })] : []), (0, _toConsumableArray2.default)(suggestions))
472
- });
473
- }
474
- });
475
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleSearch", function (e, inputValue) {
476
- var searchValue = inputValue && e.target.value ? inputValue : e.target.value;
477
-
478
- if (_this.props.onSearch) {
479
- _this.props.onSearch(e, searchValue);
480
- } else {
481
- _this.setState({
482
- searchValue: searchValue
483
- });
484
- }
485
- });
486
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleSearchReset", function () {
487
- _this.handleSearch({
488
- target: {
489
- value: ''
490
- }
491
- }, '');
492
- });
493
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getLengthItemList", function (itemList) {
494
- var itemListLength = 0;
495
- itemList.forEach(function (parent) {
496
- if (parent.displayed !== false) {
497
- itemListLength += 1;
498
-
499
- if (parent.children) {
500
- itemListLength += _this.getLengthItemList(parent.children);
501
- }
502
- }
503
- });
504
- return itemListLength;
505
- });
506
- _this.state = {
507
- alertOpen: false,
508
- open: false,
509
- focused: false,
510
- searchValue: props.searchValue ? undefined : '',
511
- suggestions: props.options,
512
- openDown: true,
513
- overlayWidth: 0
514
- };
515
- return _this;
516
- }
517
-
518
- (0, _createClass2.default)(HiSelect, [{
519
- key: "componentDidMount",
520
- value: function componentDidMount() {
521
- if (this.props.autoFocus) {
522
- this.inputEl.focus();
523
- }
524
-
525
- if (this.overlay) {
526
- this.setState({
527
- overlayWidth: (0, _reactDom.findDOMNode)(this.overlay).clientWidth
528
- });
529
- }
530
- }
531
- }, {
532
- key: "render",
533
- value: function render() {
534
- var _classNames,
535
- _this2 = this;
536
-
537
- var _this$props4 = this.props,
538
- alert = _this$props4.alert,
539
- classes = _this$props4.classes,
540
- disabled = _this$props4.disabled,
541
- error = _this$props4.error,
542
- loading = _this$props4.loading,
543
- options = _this$props4.options,
544
- searchable = _this$props4.searchable,
545
- displayAsChip = _this$props4.displayAsChip,
546
- type = _this$props4.type,
547
- value = _this$props4.value,
548
- multiple = _this$props4.multiple,
549
- translations = _this$props4.translations,
550
- hiSearchInputProps = _this$props4.hiSearchInputProps,
551
- hiSelectableListProps = _this$props4.hiSelectableListProps,
552
- hiSelectInputProps = _this$props4.hiSelectInputProps,
553
- id = _this$props4.id,
554
- onScrollReachBottom = _this$props4.onScrollReachBottom,
555
- onSubmit = _this$props4.onSubmit,
556
- placeholder = _this$props4.placeholder,
557
- _this$props4$searchVa = _this$props4.searchValue,
558
- searchValue = _this$props4$searchVa === void 0 ? this.state.searchValue : _this$props4$searchVa,
559
- startAdornment = _this$props4.startAdornment,
560
- staticPosition = _this$props4.staticPosition,
561
- maxOptionsDisplayed = _this$props4.maxOptionsDisplayed,
562
- _this$props4$buildSel = _this$props4.buildSelectProps,
563
- buildSelectProps = _this$props4$buildSel === void 0 ? this.buildSelectProps : _this$props4$buildSel;
564
- var _this$state = this.state,
565
- alertOpen = _this$state.alertOpen,
566
- open = _this$state.open,
567
- focused = _this$state.focused;
568
-
569
- if (multiple) {
570
- if (!Array.isArray(value)) {
571
- throw new Error('HiPay Material-UI: the `value` property must be an array ' + 'when using the `HiSelect` component with `multiple`.');
572
- }
573
- }
574
-
575
- var selectedItemIdList = [];
576
-
577
- if (value) {
578
- selectedItemIdList = multiple ? (0, _toConsumableArray2.default)(value) : [value];
579
- }
580
-
581
- var _buildSelectProps = buildSelectProps(options, selectedItemIdList, searchValue, loading),
582
- itemList = _buildSelectProps.itemList,
583
- _buildSelectProps$inp = _buildSelectProps.inputValue,
584
- inputValue = _buildSelectProps$inp === void 0 ? this.buildInputValue(options, selectedItemIdList, loading) : _buildSelectProps$inp;
585
-
586
- var popperStyle = {};
587
-
588
- if (this.props.containerWidth > 0) {
589
- popperStyle = {
590
- width: this.props.containerWidth
591
- };
592
-
593
- if (!staticPosition) {
594
- popperStyle.position = 'absolute';
595
- }
596
- }
597
-
598
- var popperClass = (0, _classnames.default)(classes.popper, (_classNames = {}, (0, _defineProperty2.default)(_classNames, classes.popperWidth, !this.props.containerWidth), (0, _defineProperty2.default)(_classNames, classes.popperRightAlign, this.props.containerWidth && this.props.align === 'right'), _classNames));
599
-
600
- var searchInput = function searchInput(position) {
601
- if (searchable) {
602
- return _react.default.createElement(_HiInput.default, (0, _extends2.default)({
603
- value: searchValue,
604
- autoFocus: true,
605
- inputRef: _this2.getInputElement,
606
- onKeyDown: _this2.handleKeyDownSearch,
607
- onChange: _this2.handleSearch,
608
- onReset: _this2.handleSearchReset,
609
- placeholder: translations.search,
610
- startAdornment: 'search',
611
- tabIndex: 0,
612
- className: (0, _classnames.default)((0, _defineProperty2.default)({}, classes.separator, position === 'top'))
613
- }, hiSearchInputProps));
614
- }
615
-
616
- return null;
617
- }; // Replace popper onSearch when popper displayed on top of selectButton
618
-
619
-
620
- if (this.placement && this.placement.indexOf('top') >= 0 && !!searchable) {
621
- // In case we have a nested list
622
- var itemListLength = this.getLengthItemList(itemList); // +1 for search input
623
-
624
- var nbItems = itemListLength <= maxOptionsDisplayed - 2 ? itemListLength + 1 : maxOptionsDisplayed - 1;
625
- popperStyle.transform = "translate3d(-1px, -".concat(nbItems * 40 + 2, "px, 0px)");
626
- } else if (this.placement && this.placement.indexOf('top') < 0 && !!searchable) {
627
- popperStyle.transform = 'translate3d(-1px, 40px, 0px)';
628
- }
629
-
630
- var content = function content(_ref) {
631
- var placement = _ref.placement;
632
-
633
- if (placement !== _this2.placement) {
634
- _this2.placement = placement;
635
- }
636
-
637
- var nbItemsDisplayed = !!searchable ? maxOptionsDisplayed - 1 : maxOptionsDisplayed;
638
- var autoHeightMax = nbItemsDisplayed * 40 - 10;
639
- return _react.default.createElement(_ClickAwayListener.default, {
640
- onClickAway: _this2.handleClickAway
641
- }, _react.default.createElement(_Grow.default, {
642
- in: open,
643
- id: "menu-list",
644
- style: {
645
- transformOrigin: '0 0 0'
646
- }
647
- }, _react.default.createElement(_Paper.default, {
648
- style: maxOptionsDisplayed < 12 ? {
649
- maxHeight: 40 * maxOptionsDisplayed
650
- } : {},
651
- className: classes.paper
652
- }, (_this2.placement && _this2.placement.indexOf('bottom') >= 0 || staticPosition) && searchInput('bottom'), startAdornment, _react.default.createElement(_reactCustomScrollbars.default, (0, _extends2.default)({
653
- ref: function ref(contentEl) {
654
- _this2.optionsContent = contentEl;
655
- },
656
- autoHeight: true,
657
- autoHeightMax: autoHeightMax
658
- }, onScrollReachBottom && {
659
- onScroll: _this2.handleScroll
660
- }), _react.default.createElement(_HiSelectableList.default, (0, _extends2.default)({
661
- type: type,
662
- itemList: itemList,
663
- onSelect: _this2.handleSelect,
664
- selectedItemIdList: selectedItemIdList,
665
- fallbackImage: _this2.props.fallbackImage,
666
- overlay: _this2.overlay,
667
- value: value
668
- }, hiSelectableListProps))), _this2.placement && _this2.placement.indexOf('top') >= 0 && !staticPosition && searchInput('top'))));
669
- };
670
-
671
- return !_reactDeviceDetect.isMobile ? _react.default.createElement("div", {
672
- className: classes.root,
673
- ref: function ref(el) {
674
- _this2.overlay = el;
675
- },
676
- onKeyDown: this.handleKeyDown,
677
- onKeyDownCapture: this.handleKeyDownCapture
678
- }, alert && _react.default.createElement(_HiAlertModal.default, {
679
- open: alertOpen,
680
- title: alert.title,
681
- content: alert.content,
682
- onSubmitClick: this.handleSubmitAlert,
683
- onCancelClick: this.handleCancelAlert,
684
- onClose: this.handleCloseAlert,
685
- onExited: this.handleExitedAlert,
686
- labelSubmitButton: alert.submitButton,
687
- labelCancelButton: alert.cancelButton
688
- }), _react.default.createElement(_HiSelectInput.default, (0, _extends2.default)({
689
- id: id,
690
- value: inputValue,
691
- open: open,
692
- focused: focused,
693
- type: type,
694
- disabled: disabled,
695
- noButton: displayAsChip,
696
- error: error,
697
- onClick: this.handleClick,
698
- onFocus: this.handleFocus,
699
- onBlur: this.handleBlur,
700
- onSubmit: onSubmit,
701
- onMouseEnter: this.props.onMouseEnter,
702
- onMouseLeave: this.props.onMouseLeave,
703
- onReset: this.props.onReset,
704
- placeholder: placeholder
705
- }, hiSelectInputProps, {
706
- refElement: function refElement(el) {
707
- _this2.inputEl = el;
708
- }
709
- })), open && staticPosition ? _react.default.createElement("div", {
710
- style: popperStyle,
711
- className: popperClass
712
- }, content({})) : _react.default.createElement(_Popper.default, {
713
- anchorEl: this.inputEl,
714
- placement: "bottom-start",
715
- open: open,
716
- className: popperClass,
717
- disablePortal: true,
718
- style: popperStyle
719
- }, content)) : _react.default.createElement("div", {
720
- ref: function ref(el) {
721
- _this2.overlay = el;
722
- }
723
- }, _react.default.createElement(_HiSelectInput.default, (0, _extends2.default)({
724
- id: id,
725
- value: inputValue,
726
- open: open,
727
- focused: focused,
728
- type: type,
729
- disabled: disabled,
730
- noButton: displayAsChip,
731
- error: error,
732
- onFocus: this.handleFocus,
733
- onBlur: this.handleBlur,
734
- onMouseEnter: this.props.onMouseEnter,
735
- onMouseLeave: this.props.onMouseLeave,
736
- onReset: this.props.onReset,
737
- placeholder: placeholder
738
- }, hiSelectInputProps, {
739
- refElement: function refElement(el) {
740
- _this2.inputEl = el;
741
- }
742
- })), _react.default.createElement(_HiSelectMobile.default, {
743
- onChange: this.handleSelect,
744
- multiple: multiple,
745
- id: id,
746
- itemList: itemList,
747
- value: value,
748
- width: this.state.overlayWidth
749
- }));
750
- }
751
- }], [{
752
- key: "getDerivedStateFromProps",
753
- value: function getDerivedStateFromProps(nextProps, prevState) {
754
- if (nextProps.options !== prevState.suggestions) {
755
- return (0, _objectSpread2.default)({}, prevState, {
756
- suggestions: nextProps.options
757
- });
758
- }
759
-
760
- return null;
761
- }
762
- /**
763
- * Build itemList & inputValue from select props
764
- * @param options
765
- * @param value
766
- * @param search
767
- * @param loading
768
- * @returns {{itemList: *[], inputValue: *}}
769
- */
770
-
771
- }]);
772
- return HiSelect;
773
- }(_react.default.PureComponent);
774
-
775
- (0, _defineProperty2.default)(HiSelect, "defaultProps", {
776
- align: 'left',
777
- autoFocus: false,
778
- disabled: false,
779
- displayAsChip: false,
780
- error: false,
781
- hasAll: false,
782
- hiSelectableListProps: {},
783
- hiSelectInputProps: {},
784
- hiSearchInputProps: {},
785
- multiple: false,
786
- placeholder: '',
787
- searchable: false,
788
- staticPosition: false,
789
- translations: {
790
- all: 'All',
791
- no_result_match: 'No result match',
792
- search: 'Search',
793
- n_items_selected: '%s items selected',
794
- one_item_selected: '%s item selected',
795
- n_children: '%s items',
796
- one_child: '%s item'
797
- },
798
- type: 'text',
799
- filterFunc: filterValue,
800
- maxOptionsDisplayed: 12
801
- });
802
-
803
- var _default = (0, _styles.withStyles)(styles, {
804
- hiComponent: true,
805
- name: 'HmuiHiSelect'
806
- })(HiSelect);
807
-
808
- exports.default = _default;