@lumx/react 3.0.2 → 3.0.3

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 (391) hide show
  1. package/{esm/_internal/_rollupPluginBabelHelpers.js → _internal/ClickAwayProvider.js} +107 -2
  2. package/_internal/ClickAwayProvider.js.map +1 -0
  3. package/_internal/types.d.ts +271 -0
  4. package/index.d.ts +2686 -0
  5. package/index.js +12533 -0
  6. package/index.js.map +1 -0
  7. package/package.json +7 -6
  8. package/src/components/alert-dialog/AlertDialog.tsx +2 -1
  9. package/src/components/autocomplete/Autocomplete.tsx +2 -2
  10. package/src/components/autocomplete/AutocompleteMultiple.tsx +2 -1
  11. package/src/components/avatar/Avatar.tsx +2 -1
  12. package/src/components/badge/Badge.test.tsx +1 -1
  13. package/src/components/badge/Badge.tsx +2 -1
  14. package/src/components/button/Button.test.tsx +1 -1
  15. package/src/components/button/Button.tsx +2 -1
  16. package/src/components/button/ButtonGroup.tsx +2 -1
  17. package/src/components/button/ButtonRoot.test.tsx +1 -1
  18. package/src/components/button/ButtonRoot.tsx +2 -1
  19. package/src/components/button/IconButton.tsx +2 -1
  20. package/src/components/checkbox/Checkbox.test.tsx +1 -1
  21. package/src/components/checkbox/Checkbox.tsx +2 -1
  22. package/src/components/chip/Chip.test.tsx +1 -1
  23. package/src/components/chip/Chip.tsx +3 -1
  24. package/src/components/chip/ChipGroup.tsx +2 -1
  25. package/src/components/comment-block/CommentBlock.tsx +2 -1
  26. package/src/components/date-picker/DatePicker.tsx +1 -1
  27. package/src/components/date-picker/DatePickerControlled.tsx +1 -1
  28. package/src/components/date-picker/DatePickerField.tsx +1 -1
  29. package/src/components/date-picker/constants.ts +1 -1
  30. package/src/components/date-picker/types.ts +1 -1
  31. package/src/components/dialog/Dialog.tsx +4 -8
  32. package/src/components/divider/Divider.test.tsx +1 -1
  33. package/src/components/divider/Divider.tsx +3 -2
  34. package/src/components/drag-handle/DragHandle.tsx +2 -1
  35. package/src/components/dropdown/Dropdown.tsx +2 -1
  36. package/src/components/expansion-panel/ExpansionPanel.test.tsx +1 -1
  37. package/src/components/expansion-panel/ExpansionPanel.tsx +3 -10
  38. package/src/components/flag/Flag.test.tsx +1 -1
  39. package/src/components/flag/Flag.tsx +2 -1
  40. package/src/components/flex-box/FlexBox.stories.tsx +8 -0
  41. package/src/components/flex-box/FlexBox.tsx +7 -3
  42. package/src/components/flex-box/__snapshots__/FlexBox.test.tsx.snap +16 -0
  43. package/src/components/generic-block/GenericBlock.stories.jsx +23 -1
  44. package/src/components/generic-block/GenericBlock.tsx +18 -4
  45. package/src/components/generic-block/constants.ts +9 -0
  46. package/src/components/generic-block/index.ts +1 -0
  47. package/src/components/grid/Grid.tsx +2 -1
  48. package/src/components/grid/GridItem.tsx +2 -1
  49. package/src/components/heading/Heading.tsx +2 -1
  50. package/src/components/heading/HeadingLevelProvider.tsx +1 -1
  51. package/src/components/heading/context.tsx +1 -1
  52. package/src/components/icon/Icon.test.tsx +1 -1
  53. package/src/components/icon/Icon.tsx +2 -1
  54. package/src/components/image-block/ImageBlock.tsx +2 -1
  55. package/src/components/index.ts +1 -1
  56. package/src/components/inline-list/InlineList.stories.tsx +40 -0
  57. package/src/components/inline-list/InlineList.test.tsx +41 -0
  58. package/src/components/inline-list/InlineList.tsx +80 -0
  59. package/src/components/inline-list/index.ts +1 -0
  60. package/src/components/input-helper/InputHelper.tsx +2 -1
  61. package/src/components/input-label/InputLabel.tsx +2 -1
  62. package/src/components/lightbox/Lightbox.tsx +2 -1
  63. package/src/components/link/Link.tsx +2 -1
  64. package/src/components/link-preview/LinkPreview.test.tsx +1 -1
  65. package/src/components/link-preview/LinkPreview.tsx +2 -1
  66. package/src/components/list/List.tsx +2 -1
  67. package/src/components/list/ListDivider.tsx +2 -1
  68. package/src/components/list/ListItem.tsx +3 -8
  69. package/src/components/list/ListSubheader.tsx +2 -1
  70. package/src/components/list/useInteractiveList.tsx +1 -1
  71. package/src/components/message/Message.test.tsx +1 -1
  72. package/src/components/message/Message.tsx +2 -1
  73. package/src/components/mosaic/Mosaic.tsx +2 -1
  74. package/src/components/notification/Notification.tsx +2 -1
  75. package/src/components/popover/Popover.tsx +2 -1
  76. package/src/components/post-block/PostBlock.tsx +2 -1
  77. package/src/components/progress/Progress.tsx +2 -1
  78. package/src/components/progress-tracker/ProgressTracker.tsx +2 -1
  79. package/src/components/progress-tracker/ProgressTrackerStep.test.tsx +1 -1
  80. package/src/components/progress-tracker/ProgressTrackerStep.tsx +2 -1
  81. package/src/components/progress-tracker/ProgressTrackerStepPanel.tsx +2 -1
  82. package/src/components/radio-button/RadioButton.test.tsx +1 -1
  83. package/src/components/radio-button/RadioButton.tsx +2 -1
  84. package/src/components/radio-button/RadioGroup.tsx +2 -1
  85. package/src/components/select/Select.test.tsx +1 -1
  86. package/src/components/select/Select.tsx +2 -1
  87. package/src/components/select/SelectMultiple.test.tsx +1 -1
  88. package/src/components/select/SelectMultiple.tsx +2 -1
  89. package/src/components/select/WithSelectContext.tsx +1 -1
  90. package/src/components/select/constants.ts +1 -1
  91. package/src/components/side-navigation/SideNavigation.tsx +2 -1
  92. package/src/components/side-navigation/SideNavigationItem.test.tsx +1 -1
  93. package/src/components/side-navigation/SideNavigationItem.tsx +3 -9
  94. package/src/components/skeleton/SkeletonCircle.tsx +2 -1
  95. package/src/components/skeleton/SkeletonRectangle.tsx +2 -1
  96. package/src/components/skeleton/SkeletonTypography.tsx +2 -1
  97. package/src/components/slider/Slider.tsx +2 -1
  98. package/src/components/slideshow/Slides.tsx +2 -1
  99. package/src/components/slideshow/Slideshow.tsx +1 -1
  100. package/src/components/slideshow/SlideshowControls.tsx +2 -1
  101. package/src/components/slideshow/SlideshowItem.tsx +2 -1
  102. package/src/components/slideshow/SlideshowItemGroup.tsx +2 -1
  103. package/src/components/switch/Switch.test.tsx +1 -1
  104. package/src/components/switch/Switch.tsx +2 -1
  105. package/src/components/table/Table.tsx +2 -1
  106. package/src/components/table/TableBody.tsx +2 -1
  107. package/src/components/table/TableCell.tsx +3 -1
  108. package/src/components/table/TableHeader.tsx +2 -1
  109. package/src/components/table/TableRow.tsx +2 -1
  110. package/src/components/tabs/Tab.test.tsx +1 -1
  111. package/src/components/tabs/Tab.tsx +2 -1
  112. package/src/components/tabs/TabList.test.tsx +1 -1
  113. package/src/components/tabs/TabList.tsx +2 -1
  114. package/src/components/tabs/TabPanel.tsx +2 -1
  115. package/src/components/text/{Text.stories.tsx → Text.stories.jsx} +23 -28
  116. package/src/components/text/Text.test.tsx +15 -1
  117. package/src/components/text/Text.tsx +38 -12
  118. package/src/components/text-field/TextField.test.tsx +1 -1
  119. package/src/components/text-field/TextField.tsx +2 -1
  120. package/src/components/thumbnail/Thumbnail.tsx +2 -1
  121. package/src/components/thumbnail/types.ts +1 -1
  122. package/src/components/toolbar/Toolbar.tsx +2 -1
  123. package/src/components/tooltip/Tooltip.tsx +2 -1
  124. package/src/components/tooltip/useTooltipOpen.tsx +1 -1
  125. package/src/components/uploader/Uploader.test.tsx +1 -1
  126. package/src/components/uploader/Uploader.tsx +2 -1
  127. package/src/components/user-block/UserBlock.tsx +2 -1
  128. package/src/hooks/useCallbackOnEscape.ts +2 -1
  129. package/src/hooks/useClickAway.tsx +1 -1
  130. package/src/hooks/useDisableBodyScroll.ts +1 -1
  131. package/src/hooks/useFocusTrap.ts +1 -1
  132. package/src/hooks/useInterval.tsx +1 -1
  133. package/src/hooks/useOnResize.ts +1 -1
  134. package/src/index.ts +5 -0
  135. package/src/stories/generated/GenericBlock/Demos.stories.tsx +3 -1
  136. package/src/stories/generated/Heading/Demos.stories.tsx +6 -0
  137. package/src/stories/withResizableBox.tsx +18 -0
  138. package/src/testing/utils/commonTestsSuite.ts +1 -1
  139. package/src/utils/{getRootClassName.ts → className.ts} +19 -0
  140. package/src/utils/event.ts +1 -0
  141. package/src/utils/index.ts +5 -0
  142. package/src/utils/type.ts +3 -0
  143. package/src/utils/utils.test.ts +1 -1
  144. package/types.d.ts +68 -11
  145. package/utils/index.d.ts +29 -0
  146. package/utils/index.js +2 -0
  147. package/utils/index.js.map +1 -0
  148. package/esm/_internal/AlertDialog.js +0 -141
  149. package/esm/_internal/AlertDialog.js.map +0 -1
  150. package/esm/_internal/AutocompleteMultiple.js +0 -257
  151. package/esm/_internal/AutocompleteMultiple.js.map +0 -1
  152. package/esm/_internal/Avatar2.js +0 -82
  153. package/esm/_internal/Avatar2.js.map +0 -1
  154. package/esm/_internal/Badge2.js +0 -54
  155. package/esm/_internal/Badge2.js.map +0 -1
  156. package/esm/_internal/Button2.js +0 -84
  157. package/esm/_internal/Button2.js.map +0 -1
  158. package/esm/_internal/ButtonGroup.js +0 -51
  159. package/esm/_internal/ButtonGroup.js.map +0 -1
  160. package/esm/_internal/ButtonRoot.js +0 -135
  161. package/esm/_internal/ButtonRoot.js.map +0 -1
  162. package/esm/_internal/Checkbox2.js +0 -116
  163. package/esm/_internal/Checkbox2.js.map +0 -1
  164. package/esm/_internal/Chip2.js +0 -118
  165. package/esm/_internal/Chip2.js.map +0 -1
  166. package/esm/_internal/ChipGroup.js +0 -122
  167. package/esm/_internal/ChipGroup.js.map +0 -1
  168. package/esm/_internal/ClickAwayProvider.js +0 -217
  169. package/esm/_internal/ClickAwayProvider.js.map +0 -1
  170. package/esm/_internal/CommentBlock.js +0 -124
  171. package/esm/_internal/CommentBlock.js.map +0 -1
  172. package/esm/_internal/DatePickerField.js +0 -347
  173. package/esm/_internal/DatePickerField.js.map +0 -1
  174. package/esm/_internal/Dialog2.js +0 -274
  175. package/esm/_internal/Dialog2.js.map +0 -1
  176. package/esm/_internal/Divider2.js +0 -53
  177. package/esm/_internal/Divider2.js.map +0 -1
  178. package/esm/_internal/DragHandle.js +0 -50
  179. package/esm/_internal/DragHandle.js.map +0 -1
  180. package/esm/_internal/Dropdown2.js +0 -157
  181. package/esm/_internal/Dropdown2.js.map +0 -1
  182. package/esm/_internal/ExpansionPanel.js +0 -156
  183. package/esm/_internal/ExpansionPanel.js.map +0 -1
  184. package/esm/_internal/Flag2.js +0 -48
  185. package/esm/_internal/Flag2.js.map +0 -1
  186. package/esm/_internal/FlexBox.js +0 -55
  187. package/esm/_internal/FlexBox.js.map +0 -1
  188. package/esm/_internal/GenericBlock.js +0 -125
  189. package/esm/_internal/GenericBlock.js.map +0 -1
  190. package/esm/_internal/GridItem.js +0 -96
  191. package/esm/_internal/GridItem.js.map +0 -1
  192. package/esm/_internal/HeadingLevelProvider.js +0 -112
  193. package/esm/_internal/HeadingLevelProvider.js.map +0 -1
  194. package/esm/_internal/Icon2.js +0 -120
  195. package/esm/_internal/Icon2.js.map +0 -1
  196. package/esm/_internal/IconButton.js +0 -74
  197. package/esm/_internal/IconButton.js.map +0 -1
  198. package/esm/_internal/ImageBlock.js +0 -101
  199. package/esm/_internal/ImageBlock.js.map +0 -1
  200. package/esm/_internal/InputHelper.js +0 -72
  201. package/esm/_internal/InputHelper.js.map +0 -1
  202. package/esm/_internal/InputLabel.js +0 -58
  203. package/esm/_internal/InputLabel.js.map +0 -1
  204. package/esm/_internal/Lightbox2.js +0 -123
  205. package/esm/_internal/Lightbox2.js.map +0 -1
  206. package/esm/_internal/Link2.js +0 -122
  207. package/esm/_internal/Link2.js.map +0 -1
  208. package/esm/_internal/LinkPreview.js +0 -105
  209. package/esm/_internal/LinkPreview.js.map +0 -1
  210. package/esm/_internal/List2.js +0 -799
  211. package/esm/_internal/List2.js.map +0 -1
  212. package/esm/_internal/ListSubheader.js +0 -79
  213. package/esm/_internal/ListSubheader.js.map +0 -1
  214. package/esm/_internal/Message2.js +0 -78
  215. package/esm/_internal/Message2.js.map +0 -1
  216. package/esm/_internal/Mosaic2.js +0 -89
  217. package/esm/_internal/Mosaic2.js.map +0 -1
  218. package/esm/_internal/Notification2.js +0 -133
  219. package/esm/_internal/Notification2.js.map +0 -1
  220. package/esm/_internal/Popover2.js +0 -2473
  221. package/esm/_internal/Popover2.js.map +0 -1
  222. package/esm/_internal/PostBlock.js +0 -96
  223. package/esm/_internal/PostBlock.js.map +0 -1
  224. package/esm/_internal/Progress2.js +0 -81
  225. package/esm/_internal/Progress2.js.map +0 -1
  226. package/esm/_internal/ProgressTrackerStepPanel.js +0 -313
  227. package/esm/_internal/ProgressTrackerStepPanel.js.map +0 -1
  228. package/esm/_internal/RadioGroup.js +0 -147
  229. package/esm/_internal/RadioGroup.js.map +0 -1
  230. package/esm/_internal/SelectMultiple.js +0 -424
  231. package/esm/_internal/SelectMultiple.js.map +0 -1
  232. package/esm/_internal/SideNavigationItem.js +0 -151
  233. package/esm/_internal/SideNavigationItem.js.map +0 -1
  234. package/esm/_internal/SkeletonTypography.js +0 -168
  235. package/esm/_internal/SkeletonTypography.js.map +0 -1
  236. package/esm/_internal/Slider2.js +0 -327
  237. package/esm/_internal/Slider2.js.map +0 -1
  238. package/esm/_internal/Slides.js +0 -864
  239. package/esm/_internal/Slides.js.map +0 -1
  240. package/esm/_internal/Switch2.js +0 -116
  241. package/esm/_internal/Switch2.js.map +0 -1
  242. package/esm/_internal/TabPanel.js +0 -280
  243. package/esm/_internal/TabPanel.js.map +0 -1
  244. package/esm/_internal/TableRow.js +0 -291
  245. package/esm/_internal/TableRow.js.map +0 -1
  246. package/esm/_internal/Text2.js +0 -63
  247. package/esm/_internal/Text2.js.map +0 -1
  248. package/esm/_internal/TextField.js +0 -322
  249. package/esm/_internal/TextField.js.map +0 -1
  250. package/esm/_internal/Thumbnail2.js +0 -301
  251. package/esm/_internal/Thumbnail2.js.map +0 -1
  252. package/esm/_internal/Toolbar2.js +0 -60
  253. package/esm/_internal/Toolbar2.js.map +0 -1
  254. package/esm/_internal/Tooltip2.js +0 -282
  255. package/esm/_internal/Tooltip2.js.map +0 -1
  256. package/esm/_internal/Uploader2.js +0 -84
  257. package/esm/_internal/Uploader2.js.map +0 -1
  258. package/esm/_internal/UserBlock.js +0 -132
  259. package/esm/_internal/UserBlock.js.map +0 -1
  260. package/esm/_internal/_rollupPluginBabelHelpers.js.map +0 -1
  261. package/esm/_internal/alert-dialog.js +0 -34
  262. package/esm/_internal/alert-dialog.js.map +0 -1
  263. package/esm/_internal/autocomplete.js +0 -32
  264. package/esm/_internal/autocomplete.js.map +0 -1
  265. package/esm/_internal/avatar.js +0 -13
  266. package/esm/_internal/avatar.js.map +0 -1
  267. package/esm/_internal/badge.js +0 -10
  268. package/esm/_internal/badge.js.map +0 -1
  269. package/esm/_internal/button.js +0 -25
  270. package/esm/_internal/button.js.map +0 -1
  271. package/esm/_internal/checkbox.js +0 -14
  272. package/esm/_internal/checkbox.js.map +0 -1
  273. package/esm/_internal/chip.js +0 -12
  274. package/esm/_internal/chip.js.map +0 -1
  275. package/esm/_internal/comment-block.js +0 -24
  276. package/esm/_internal/comment-block.js.map +0 -1
  277. package/esm/_internal/components.js +0 -156
  278. package/esm/_internal/components.js.map +0 -1
  279. package/esm/_internal/constants.js +0 -13
  280. package/esm/_internal/constants.js.map +0 -1
  281. package/esm/_internal/date-picker.js +0 -32
  282. package/esm/_internal/date-picker.js.map +0 -1
  283. package/esm/_internal/dialog.js +0 -27
  284. package/esm/_internal/dialog.js.map +0 -1
  285. package/esm/_internal/divider.js +0 -10
  286. package/esm/_internal/divider.js.map +0 -1
  287. package/esm/_internal/drag-handle.js +0 -11
  288. package/esm/_internal/drag-handle.js.map +0 -1
  289. package/esm/_internal/dropdown.js +0 -21
  290. package/esm/_internal/dropdown.js.map +0 -1
  291. package/esm/_internal/expansion-panel.js +0 -32
  292. package/esm/_internal/expansion-panel.js.map +0 -1
  293. package/esm/_internal/flag.js +0 -11
  294. package/esm/_internal/flag.js.map +0 -1
  295. package/esm/_internal/flex-box.js +0 -11
  296. package/esm/_internal/flex-box.js.map +0 -1
  297. package/esm/_internal/generic-block.js +0 -20
  298. package/esm/_internal/generic-block.js.map +0 -1
  299. package/esm/_internal/getRootClassName.js +0 -346
  300. package/esm/_internal/getRootClassName.js.map +0 -1
  301. package/esm/_internal/grid.js +0 -10
  302. package/esm/_internal/grid.js.map +0 -1
  303. package/esm/_internal/heading.js +0 -11
  304. package/esm/_internal/heading.js.map +0 -1
  305. package/esm/_internal/icon.js +0 -10
  306. package/esm/_internal/icon.js.map +0 -1
  307. package/esm/_internal/image-block.js +0 -14
  308. package/esm/_internal/image-block.js.map +0 -1
  309. package/esm/_internal/input-helper.js +0 -10
  310. package/esm/_internal/input-helper.js.map +0 -1
  311. package/esm/_internal/input-label.js +0 -10
  312. package/esm/_internal/input-label.js.map +0 -1
  313. package/esm/_internal/lightbox.js +0 -27
  314. package/esm/_internal/lightbox.js.map +0 -1
  315. package/esm/_internal/link-preview.js +0 -15
  316. package/esm/_internal/link-preview.js.map +0 -1
  317. package/esm/_internal/link.js +0 -12
  318. package/esm/_internal/link.js.map +0 -1
  319. package/esm/_internal/list.js +0 -15
  320. package/esm/_internal/list.js.map +0 -1
  321. package/esm/_internal/mergeRefs.js +0 -25
  322. package/esm/_internal/mergeRefs.js.map +0 -1
  323. package/esm/_internal/message.js +0 -11
  324. package/esm/_internal/message.js.map +0 -1
  325. package/esm/_internal/mosaic.js +0 -14
  326. package/esm/_internal/mosaic.js.map +0 -1
  327. package/esm/_internal/notification.js +0 -18
  328. package/esm/_internal/notification.js.map +0 -1
  329. package/esm/_internal/partitionMulti.js +0 -27
  330. package/esm/_internal/partitionMulti.js.map +0 -1
  331. package/esm/_internal/popover.js +0 -15
  332. package/esm/_internal/popover.js.map +0 -1
  333. package/esm/_internal/post-block.js +0 -15
  334. package/esm/_internal/post-block.js.map +0 -1
  335. package/esm/_internal/progress-tracker.js +0 -17
  336. package/esm/_internal/progress-tracker.js.map +0 -1
  337. package/esm/_internal/progress.js +0 -10
  338. package/esm/_internal/progress.js.map +0 -1
  339. package/esm/_internal/radio-button.js +0 -13
  340. package/esm/_internal/radio-button.js.map +0 -1
  341. package/esm/_internal/renderLink.js +0 -25
  342. package/esm/_internal/renderLink.js.map +0 -1
  343. package/esm/_internal/select.js +0 -31
  344. package/esm/_internal/select.js.map +0 -1
  345. package/esm/_internal/side-navigation.js +0 -25
  346. package/esm/_internal/side-navigation.js.map +0 -1
  347. package/esm/_internal/skeleton.js +0 -10
  348. package/esm/_internal/skeleton.js.map +0 -1
  349. package/esm/_internal/slider.js +0 -13
  350. package/esm/_internal/slider.js.map +0 -1
  351. package/esm/_internal/slideshow.js +0 -29
  352. package/esm/_internal/slideshow.js.map +0 -1
  353. package/esm/_internal/state.js +0 -145
  354. package/esm/_internal/state.js.map +0 -1
  355. package/esm/_internal/switch.js +0 -13
  356. package/esm/_internal/switch.js.map +0 -1
  357. package/esm/_internal/table.js +0 -12
  358. package/esm/_internal/table.js.map +0 -1
  359. package/esm/_internal/tabs.js +0 -15
  360. package/esm/_internal/tabs.js.map +0 -1
  361. package/esm/_internal/text-field.js +0 -26
  362. package/esm/_internal/text-field.js.map +0 -1
  363. package/esm/_internal/text.js +0 -10
  364. package/esm/_internal/text.js.map +0 -1
  365. package/esm/_internal/thumbnail.js +0 -13
  366. package/esm/_internal/thumbnail.js.map +0 -1
  367. package/esm/_internal/toolbar.js +0 -9
  368. package/esm/_internal/toolbar.js.map +0 -1
  369. package/esm/_internal/tooltip.js +0 -18
  370. package/esm/_internal/tooltip.js.map +0 -1
  371. package/esm/_internal/type.js +0 -40
  372. package/esm/_internal/type.js.map +0 -1
  373. package/esm/_internal/types.js +0 -23
  374. package/esm/_internal/types.js.map +0 -1
  375. package/esm/_internal/uploader.js +0 -11
  376. package/esm/_internal/uploader.js.map +0 -1
  377. package/esm/_internal/useDelayedVisibility.js +0 -47
  378. package/esm/_internal/useDelayedVisibility.js.map +0 -1
  379. package/esm/_internal/useDisableBodyScroll.js +0 -220
  380. package/esm/_internal/useDisableBodyScroll.js.map +0 -1
  381. package/esm/_internal/useFocusTrap.js +0 -86
  382. package/esm/_internal/useFocusTrap.js.map +0 -1
  383. package/esm/_internal/useRovingTabIndex.js +0 -87
  384. package/esm/_internal/useRovingTabIndex.js.map +0 -1
  385. package/esm/_internal/user-block.js +0 -17
  386. package/esm/_internal/user-block.js.map +0 -1
  387. package/esm/index.js +0 -95
  388. package/esm/index.js.map +0 -1
  389. package/esm/index2.js +0 -16
  390. package/esm/index2.js.map +0 -1
  391. package/src/utils/index.tsx +0 -7
@@ -1,4 +1,4 @@
1
- import { HeadingElement } from '@lumx/react/utils';
1
+ import { HeadingElement } from '@lumx/react/utils/type';
2
2
  import { createContext } from 'react';
3
3
 
4
4
  interface HeadingLevelContext {
@@ -7,7 +7,7 @@ import { build, fake, oneOf } from 'test-data-bot';
7
7
  import { mdiCheck, mdiPlus } from '@lumx/icons';
8
8
  import { ColorPalette, ColorVariant, Size } from '@lumx/react';
9
9
  import { commonTestsSuite, Wrapper } from '@lumx/react/testing/utils';
10
- import { getBasicClass } from '@lumx/react/utils';
10
+ import { getBasicClass } from '@lumx/react/utils/className';
11
11
 
12
12
  import { Icon, IconProps } from './Icon';
13
13
 
@@ -3,7 +3,8 @@ import React, { forwardRef } from 'react';
3
3
  import classNames from 'classnames';
4
4
 
5
5
  import { Color, ColorPalette, ColorVariant, Size, Theme } from '@lumx/react';
6
- import { Comp, GenericProps, getRootClassName, handleBasicClasses, HasTheme } from '@lumx/react/utils';
6
+ import { Comp, GenericProps, HasTheme } from '@lumx/react/utils/type';
7
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
7
8
  import { mdiAlertCircle } from '@lumx/icons';
8
9
 
9
10
  export type IconSizes = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
@@ -6,7 +6,8 @@ import isObject from 'lodash/isObject';
6
6
 
7
7
  import { Alignment, HorizontalAlignment, Size, Theme, Thumbnail } from '@lumx/react';
8
8
 
9
- import { Comp, GenericProps, getRootClassName, handleBasicClasses, HasTheme, ValueOf } from '@lumx/react/utils';
9
+ import { Comp, GenericProps, HasTheme, ValueOf } from '@lumx/react/utils/type';
10
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
10
11
  import { ThumbnailProps } from '../thumbnail/Thumbnail';
11
12
 
12
13
  /**
@@ -1,4 +1,4 @@
1
- import { ValueOf } from '@lumx/react/utils';
1
+ import { ValueOf } from '@lumx/react/utils/type';
2
2
 
3
3
  /**
4
4
  * Alignments.
@@ -0,0 +1,40 @@
1
+ import React from 'react';
2
+ import { mdiEarth } from '@lumx/icons';
3
+ import { ColorPalette, ColorVariant, Icon, Text, TypographyCustom, TypographyInterface } from '@lumx/react';
4
+ import { withResizableBox } from '@lumx/react/stories/withResizableBox';
5
+ import { InlineList } from '.';
6
+
7
+ const ALL_TYPOGRAPHY = [undefined, ...Object.values(TypographyInterface), ...Object.values(TypographyCustom)];
8
+
9
+ export default {
10
+ title: 'LumX components/inline-list/InlineList',
11
+ argTypes: {
12
+ typography: { control: 'select', options: ALL_TYPOGRAPHY },
13
+ color: { control: 'select', options: ColorPalette },
14
+ colorVariant: { control: 'select', options: ColorVariant },
15
+ },
16
+ };
17
+
18
+ export const Default = (args: any) => (
19
+ <InlineList as="p" {...args}>
20
+ <span>Some text</span>
21
+ <span>Some other text</span>
22
+ <span>Some other other text</span>
23
+ </InlineList>
24
+ );
25
+
26
+ export const MixedNoWrapAndTruncate = (args: any) => (
27
+ <InlineList typography="body1" color="dark" colorVariant="L2" {...args} style={{ width: '100%' }}>
28
+ <Text as="span" truncate>
29
+ Very very very very very long text
30
+ </Text>
31
+ <Text as="span" noWrap>
32
+ <Icon icon={mdiEarth} />
33
+ Some text
34
+ </Text>
35
+ <Text as="span" truncate>
36
+ Very very very very very long text
37
+ </Text>
38
+ </InlineList>
39
+ );
40
+ MixedNoWrapAndTruncate.decorators = [withResizableBox({ width: 400 })];
@@ -0,0 +1,41 @@
1
+ import React from 'react';
2
+
3
+ import { shallow } from 'enzyme';
4
+ import 'jest-enzyme';
5
+
6
+ import { commonTestsSuite } from '@lumx/react/testing/utils';
7
+ import { InlineList, InlineListProps } from '.';
8
+
9
+ const setup = (props: Partial<InlineListProps> = {}) => {
10
+ const wrapper = shallow(<InlineList {...props} />);
11
+ return { props, wrapper };
12
+ };
13
+
14
+ describe(`<${InlineList.displayName}>`, () => {
15
+ describe('Snapshots and structure', () => {
16
+ it('should render default', () => {
17
+ const { wrapper } = setup({ children: ['Some text', 'Some other text'] });
18
+ expect(wrapper).toHaveDisplayName('ul');
19
+ expect(wrapper.prop('className')).toBe(InlineList.className);
20
+ expect(wrapper.find('li')).toHaveLength(2);
21
+ });
22
+
23
+ it('should render with typography', () => {
24
+ const { wrapper } = setup({ typography: 'body2', children: 'Some text' });
25
+ expect(wrapper).toHaveClassName('lumx-typography-body2');
26
+ });
27
+
28
+ it('should render with color', () => {
29
+ const { wrapper } = setup({ color: 'blue', children: 'Some text' });
30
+ expect(wrapper).toHaveClassName('lumx-color-font-blue-N');
31
+ });
32
+
33
+ it('should render with color and variant', () => {
34
+ const { wrapper } = setup({ color: 'blue', colorVariant: 'D2', children: 'Some text' });
35
+ expect(wrapper).toHaveClassName('lumx-color-font-blue-D2');
36
+ });
37
+ });
38
+
39
+ // Common tests suite.
40
+ commonTestsSuite(setup, { className: 'wrapper', prop: 'wrapper' }, { className: InlineList.className });
41
+ });
@@ -0,0 +1,80 @@
1
+ import React, { Children, forwardRef, isValidElement } from 'react';
2
+
3
+ import classNames from 'classnames';
4
+
5
+ import { ColorPalette, ColorVariant, Typography } from '@lumx/react';
6
+ import { Comp, GenericProps } from '@lumx/react/utils/type';
7
+ import { getFontColorClassName, getRootClassName, getTypographyClassName } from '@lumx/react/utils/className';
8
+
9
+ /**
10
+ * Defines the props of the component.
11
+ */
12
+ export interface InlineListProps extends GenericProps {
13
+ /**
14
+ * Text color.
15
+ */
16
+ color?: ColorPalette;
17
+ /**
18
+ * Lightened or darkened variant of the selected color.
19
+ */
20
+ colorVariant?: ColorVariant;
21
+ /**
22
+ * Typography variant.
23
+ */
24
+ typography?: Typography;
25
+ }
26
+
27
+ /**
28
+ * Component display name.
29
+ */
30
+ const COMPONENT_NAME = 'InlineList';
31
+
32
+ /**
33
+ * Component default class name and class prefix.
34
+ */
35
+ const CLASSNAME = getRootClassName(COMPONENT_NAME);
36
+
37
+ /**
38
+ * Component default props.
39
+ */
40
+ const DEFAULT_PROPS = {} as const;
41
+
42
+ /**
43
+ * InlineList component.
44
+ *
45
+ * @param props Component props.
46
+ * @param ref Component ref.
47
+ * @return React element.
48
+ */
49
+ export const InlineList: Comp<InlineListProps> = forwardRef((props, ref) => {
50
+ const { className, color, colorVariant, typography, children, ...forwardedProps } = props;
51
+ const fontColorClassName = color && getFontColorClassName(color, colorVariant);
52
+ const typographyClassName = typography && getTypographyClassName(typography);
53
+ return (
54
+ // eslint-disable-next-line jsx-a11y/no-redundant-roles
55
+ <ul
56
+ {...forwardedProps}
57
+ ref={ref as any}
58
+ className={classNames(className, CLASSNAME, fontColorClassName, typographyClassName)}
59
+ // Lists with removed bullet style can lose their a11y list role on some browsers
60
+ role="list"
61
+ >
62
+ {Children.toArray(children).map((child, index) => {
63
+ const key = (isValidElement(child) && child.key) || index;
64
+ return (
65
+ <li key={key} className={`${CLASSNAME}__item`}>
66
+ {index !== 0 && (
67
+ <span className={`${CLASSNAME}__item-separator`} aria-hidden="true">
68
+ {'\u00A0•\u00A0'}
69
+ </span>
70
+ )}
71
+ {child}
72
+ </li>
73
+ );
74
+ })}
75
+ </ul>
76
+ );
77
+ });
78
+ InlineList.displayName = COMPONENT_NAME;
79
+ InlineList.className = CLASSNAME;
80
+ InlineList.defaultProps = DEFAULT_PROPS;
@@ -0,0 +1 @@
1
+ export * from './InlineList';
@@ -1,5 +1,6 @@
1
1
  import { Kind, Theme } from '@lumx/react';
2
- import { Comp, GenericProps, getRootClassName, handleBasicClasses, HasTheme } from '@lumx/react/utils';
2
+ import { Comp, GenericProps, HasTheme } from '@lumx/react/utils/type';
3
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
3
4
  import classNames from 'classnames';
4
5
  import React, { forwardRef, ReactNode } from 'react';
5
6
 
@@ -1,5 +1,6 @@
1
1
  import { Theme } from '@lumx/react';
2
- import { Comp, GenericProps, getRootClassName, handleBasicClasses, HasTheme } from '@lumx/react/utils';
2
+ import { Comp, GenericProps, HasTheme } from '@lumx/react/utils/type';
3
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
3
4
  import classNames from 'classnames';
4
5
  import React, { forwardRef, ReactNode } from 'react';
5
6
 
@@ -6,7 +6,8 @@ import { createPortal } from 'react-dom';
6
6
  import { mdiClose } from '@lumx/icons';
7
7
  import { ColorPalette, Emphasis, IconButton, IconButtonProps } from '@lumx/react';
8
8
  import { DOCUMENT } from '@lumx/react/constants';
9
- import { Comp, GenericProps, getRootClassName, handleBasicClasses, HasTheme } from '@lumx/react/utils';
9
+ import { Comp, GenericProps, HasTheme } from '@lumx/react/utils/type';
10
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
10
11
 
11
12
  import { useFocusTrap } from '@lumx/react/hooks/useFocusTrap';
12
13
  import { useDelayedVisibility } from '@lumx/react/hooks/useDelayedVisibility';
@@ -5,7 +5,8 @@ import isEmpty from 'lodash/isEmpty';
5
5
  import classNames from 'classnames';
6
6
 
7
7
  import { Color, ColorVariant, Icon, Size, Typography } from '@lumx/react';
8
- import { Comp, GenericProps, getRootClassName, handleBasicClasses } from '@lumx/react/utils';
8
+ import { Comp, GenericProps } from '@lumx/react/utils/type';
9
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
9
10
  import { renderLink } from '@lumx/react/utils/renderLink';
10
11
 
11
12
  type HTMLAnchorProps = React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
@@ -4,7 +4,7 @@ import { mount, shallow } from 'enzyme';
4
4
  import 'jest-enzyme';
5
5
 
6
6
  import { commonTestsSuite, Wrapper } from '@lumx/react/testing/utils';
7
- import { getBasicClass } from '@lumx/react/utils';
7
+ import { getBasicClass } from '@lumx/react/utils/className';
8
8
  import { Link, Thumbnail } from '@lumx/react';
9
9
 
10
10
  import { Size, Theme } from '..';
@@ -14,7 +14,8 @@ import {
14
14
  ThumbnailProps,
15
15
  } from '@lumx/react';
16
16
 
17
- import { Comp, GenericProps, getRootClassName, handleBasicClasses, HeadingElement, HasTheme } from '@lumx/react/utils';
17
+ import { Comp, GenericProps, HeadingElement, HasTheme } from '@lumx/react/utils/type';
18
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
18
19
 
19
20
  /**
20
21
  * Defines the props of the component.
@@ -1,7 +1,8 @@
1
1
  import { Size } from '@lumx/react';
2
2
 
3
3
  import { useKeyboardListNavigation } from '@lumx/react/hooks/useKeyboardListNavigation';
4
- import { Comp, GenericProps, getRootClassName, handleBasicClasses } from '@lumx/react/utils';
4
+ import { Comp, GenericProps } from '@lumx/react/utils/type';
5
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
5
6
  import { mergeRefs } from '@lumx/react/utils/mergeRefs';
6
7
 
7
8
  import classNames from 'classnames';
@@ -2,7 +2,8 @@ import React, { forwardRef } from 'react';
2
2
 
3
3
  import classNames from 'classnames';
4
4
 
5
- import { Comp, GenericProps, getRootClassName, handleBasicClasses } from '@lumx/react/utils';
5
+ import { Comp, GenericProps } from '@lumx/react/utils/type';
6
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
6
7
 
7
8
  /**
8
9
  * Defines the props of the component.
@@ -4,14 +4,9 @@ import classNames from 'classnames';
4
4
  import isEmpty from 'lodash/isEmpty';
5
5
 
6
6
  import { ListProps, Size } from '@lumx/react';
7
- import {
8
- Comp,
9
- GenericProps,
10
- getRootClassName,
11
- handleBasicClasses,
12
- onEnterPressed,
13
- onButtonPressed,
14
- } from '@lumx/react/utils';
7
+ import { Comp, GenericProps } from '@lumx/react/utils/type';
8
+ import { onEnterPressed, onButtonPressed } from '@lumx/react/utils/event';
9
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
15
10
  import { renderLink } from '@lumx/react/utils/renderLink';
16
11
 
17
12
  export type ListItemSize = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
@@ -2,7 +2,8 @@ import React, { forwardRef, ReactNode } from 'react';
2
2
 
3
3
  import classNames from 'classnames';
4
4
 
5
- import { Comp, GenericProps, getRootClassName, handleBasicClasses } from '@lumx/react/utils';
5
+ import { Comp, GenericProps } from '@lumx/react/utils/type';
6
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
6
7
 
7
8
  /**
8
9
  * Defines the props of the component.
@@ -1,7 +1,7 @@
1
1
  import { ListItemProps } from '@lumx/react';
2
2
  import { isClickable } from '@lumx/react/components/list/ListItem';
3
3
 
4
- import { isComponent } from '@lumx/react/utils';
4
+ import { isComponent } from '@lumx/react/utils/type';
5
5
  import { flattenChildren } from '@lumx/react/utils/flattenChildren';
6
6
  import { mergeRefs } from '@lumx/react/utils/mergeRefs';
7
7
  import get from 'lodash/get';
@@ -1,6 +1,6 @@
1
1
  import { commonTestsSuite, Wrapper } from '@lumx/react/testing/utils';
2
2
  import { Kind } from '@lumx/react';
3
- import { getBasicClass } from '@lumx/react/utils';
3
+ import { getBasicClass } from '@lumx/react/utils/className';
4
4
  import { mount, shallow } from 'enzyme';
5
5
  import 'jest-enzyme';
6
6
  import React, { ReactElement } from 'react';
@@ -1,6 +1,7 @@
1
1
  import { mdiAlert, mdiAlertCircle, mdiCheckCircle, mdiInformation } from '@lumx/icons';
2
2
  import { ColorPalette, Icon, Kind, Size } from '@lumx/react';
3
- import { Comp, GenericProps, getRootClassName, handleBasicClasses } from '@lumx/react/utils';
3
+ import { Comp, GenericProps } from '@lumx/react/utils/type';
4
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
4
5
  import classNames from 'classnames';
5
6
  import React, { forwardRef, ReactNode } from 'react';
6
7
 
@@ -1,7 +1,8 @@
1
1
  import React, { forwardRef, MouseEventHandler, useMemo } from 'react';
2
2
 
3
3
  import { Alignment, AspectRatio, Theme, Thumbnail, ThumbnailProps } from '@lumx/react';
4
- import { Comp, GenericProps, getRootClassName, handleBasicClasses, HasTheme } from '@lumx/react/utils';
4
+ import { Comp, GenericProps, HasTheme } from '@lumx/react/utils/type';
5
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
5
6
  import classNames from 'classnames';
6
7
  import take from 'lodash/take';
7
8
 
@@ -9,7 +9,8 @@ import { Button, Emphasis, Icon, Kind, Size, Theme } from '@lumx/react';
9
9
 
10
10
  import { DOCUMENT, NOTIFICATION_TRANSITION_DURATION } from '@lumx/react/constants';
11
11
  import { NOTIFICATION_CONFIGURATION } from '@lumx/react/components/notification/constants';
12
- import { Comp, GenericProps, getRootClassName, handleBasicClasses, HasTheme } from '@lumx/react/utils';
12
+ import { Comp, GenericProps, HasTheme } from '@lumx/react/utils/type';
13
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
13
14
 
14
15
  import { useDelayedVisibility } from '@lumx/react/hooks/useDelayedVisibility';
15
16
 
@@ -10,7 +10,8 @@ import { useCallbackOnEscape } from '@lumx/react/hooks/useCallbackOnEscape';
10
10
  import { useFocus } from '@lumx/react/hooks/useFocus';
11
11
  import { ClickAwayProvider } from '@lumx/react/utils/ClickAwayProvider';
12
12
 
13
- import { Comp, GenericProps, getRootClassName, handleBasicClasses, ValueOf } from '@lumx/react/utils';
13
+ import { Comp, GenericProps, ValueOf } from '@lumx/react/utils/type';
14
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
14
15
  import { mergeRefs } from '@lumx/react/utils/mergeRefs';
15
16
  import { useFocusWithin } from '@lumx/react/hooks/useFocusWithin';
16
17
  import { getFirstAndLastFocusable } from '@lumx/react/utils/focus/getFirstAndLastFocusable';
@@ -6,7 +6,8 @@ import isObject from 'lodash/isObject';
6
6
 
7
7
  import { Orientation, Theme, Thumbnail, ThumbnailProps, ThumbnailVariant } from '@lumx/react';
8
8
 
9
- import { Comp, GenericProps, getRootClassName, handleBasicClasses, HasTheme } from '@lumx/react/utils';
9
+ import { Comp, GenericProps, HasTheme } from '@lumx/react/utils/type';
10
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
10
11
 
11
12
  /**
12
13
  * Defines the props of the component.
@@ -4,7 +4,8 @@ import classNames from 'classnames';
4
4
 
5
5
  import { Theme } from '@lumx/react';
6
6
 
7
- import { Comp, GenericProps, getRootClassName, handleBasicClasses, HasTheme, ValueOf } from '@lumx/react/utils';
7
+ import { Comp, GenericProps, HasTheme, ValueOf } from '@lumx/react/utils/type';
8
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
8
9
 
9
10
  /**
10
11
  * Progress variants.
@@ -2,7 +2,8 @@ import React, { forwardRef, ReactNode } from 'react';
2
2
 
3
3
  import classNames from 'classnames';
4
4
 
5
- import { Comp, GenericProps, getRootClassName, handleBasicClasses } from '@lumx/react/utils';
5
+ import { Comp, GenericProps } from '@lumx/react/utils/type';
6
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
6
7
  import { mergeRefs } from '@lumx/react/utils/mergeRefs';
7
8
  import { useRovingTabIndex } from '../../hooks/useRovingTabIndex';
8
9
  import { useTabProviderContextState } from '../tabs/state';
@@ -1,5 +1,5 @@
1
1
  import { commonTestsSuite, Wrapper } from '@lumx/react/testing/utils';
2
- import { getBasicClass } from '@lumx/react/utils';
2
+ import { getBasicClass } from '@lumx/react/utils/className';
3
3
 
4
4
  import { mount, shallow } from 'enzyme';
5
5
  import 'jest-enzyme';
@@ -4,7 +4,8 @@ import classNames from 'classnames';
4
4
 
5
5
  import { Icon, InputHelper, InputLabel, Kind, Size } from '@lumx/react';
6
6
 
7
- import { Comp, GenericProps, getRootClassName, handleBasicClasses } from '@lumx/react/utils';
7
+ import { Comp, GenericProps } from '@lumx/react/utils/type';
8
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
8
9
 
9
10
  import { mdiAlertCircle, mdiCheckCircle, mdiRadioboxBlank, mdiRadioboxMarked } from '@lumx/icons';
10
11
  import { useTabProviderContext } from '../tabs/state';
@@ -1,6 +1,7 @@
1
1
  import { useTabProviderContext } from '@lumx/react/components/tabs/state';
2
2
  import { CSS_PREFIX } from '@lumx/react/constants';
3
- import { Comp, GenericProps, handleBasicClasses } from '@lumx/react/utils';
3
+ import { Comp, GenericProps } from '@lumx/react/utils/type';
4
+ import { handleBasicClasses } from '@lumx/react/utils/className';
4
5
 
5
6
  import classNames from 'classnames';
6
7
  import React, { forwardRef } from 'react';
@@ -4,7 +4,7 @@ import { mount, shallow } from 'enzyme';
4
4
  import 'jest-enzyme';
5
5
 
6
6
  import { commonTestsSuite, Wrapper } from '@lumx/react/testing/utils';
7
- import { getBasicClass } from '@lumx/react/utils';
7
+ import { getBasicClass } from '@lumx/react/utils/className';
8
8
 
9
9
  import { Theme } from '@lumx/react';
10
10
  import { RadioButton, RadioButtonProps } from './RadioButton';
@@ -5,7 +5,8 @@ import { uid } from 'uid';
5
5
 
6
6
  import { InputHelper, InputLabel, Theme } from '@lumx/react';
7
7
 
8
- import { Comp, GenericProps, getRootClassName, handleBasicClasses, HasTheme } from '@lumx/react/utils';
8
+ import { Comp, GenericProps, HasTheme } from '@lumx/react/utils/type';
9
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
9
10
 
10
11
  /**
11
12
  * Defines the props of the component.
@@ -2,7 +2,8 @@ import React, { forwardRef, ReactNode } from 'react';
2
2
 
3
3
  import classNames from 'classnames';
4
4
 
5
- import { Comp, GenericProps, getRootClassName, handleBasicClasses } from '@lumx/react/utils';
5
+ import { Comp, GenericProps } from '@lumx/react/utils/type';
6
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
6
7
 
7
8
  /**
8
9
  * Defines the props of the component.
@@ -8,7 +8,7 @@ import { Chip } from '@lumx/react/components/chip/Chip';
8
8
  import { Icon } from '@lumx/react/components/icon/Icon';
9
9
 
10
10
  import { commonTestsSuite, Wrapper } from '@lumx/react/testing/utils';
11
- import { getBasicClass } from '@lumx/react/utils';
11
+ import { getBasicClass } from '@lumx/react/utils/className';
12
12
 
13
13
  import { mdiCloseCircle, mdiMenuDown } from '@lumx/icons';
14
14
  import { Dropdown } from '@lumx/react/components/dropdown/Dropdown';
@@ -11,7 +11,8 @@ import { Chip } from '@lumx/react/components/chip/Chip';
11
11
  import { Icon } from '@lumx/react/components/icon/Icon';
12
12
  import { InputLabel } from '@lumx/react/components/input-label/InputLabel';
13
13
 
14
- import { Comp, getRootClassName, handleBasicClasses } from '@lumx/react/utils';
14
+ import { Comp } from '@lumx/react/utils/type';
15
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
15
16
 
16
17
  import { WithSelectContext } from './WithSelectContext';
17
18
  import { CoreSelectProps, SelectVariant } from './constants';
@@ -10,7 +10,7 @@ import { Dropdown } from '@lumx/react/components/dropdown/Dropdown';
10
10
  import { Icon } from '@lumx/react/components/icon/Icon';
11
11
 
12
12
  import { commonTestsSuite, Wrapper } from '@lumx/react/testing/utils';
13
- import { getBasicClass } from '@lumx/react/utils';
13
+ import { getBasicClass } from '@lumx/react/utils/className';
14
14
  import { SelectMultiple, SelectMultipleProps } from './SelectMultiple';
15
15
  import { DEFAULT_PROPS } from './WithSelectContext';
16
16
  import { SelectVariant } from './constants';
@@ -9,7 +9,8 @@ import { Chip } from '@lumx/react/components/chip/Chip';
9
9
  import { Icon } from '@lumx/react/components/icon/Icon';
10
10
  import { InputLabel } from '@lumx/react/components/input-label/InputLabel';
11
11
 
12
- import { Comp, getRootClassName, handleBasicClasses } from '@lumx/react/utils';
12
+ import { Comp } from '@lumx/react/utils/type';
13
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
13
14
 
14
15
  import { WithSelectContext } from './WithSelectContext';
15
16
  import { CoreSelectProps, SelectVariant } from './constants';
@@ -8,7 +8,7 @@ import { Dropdown } from '@lumx/react/components/dropdown/Dropdown';
8
8
  import { InputHelper } from '@lumx/react/components/input-helper/InputHelper';
9
9
  import { Placement } from '@lumx/react/components/popover/Popover';
10
10
 
11
- import { getRootClassName, handleBasicClasses } from '@lumx/react/utils';
11
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
12
12
  import { mergeRefs } from '@lumx/react/utils/mergeRefs';
13
13
  import { useListenFocus } from '@lumx/react/hooks/useListenFocus';
14
14
  import { CoreSelectProps, SelectVariant } from './constants';
@@ -1,5 +1,5 @@
1
1
  import { IconButtonProps } from '@lumx/react';
2
- import { GenericProps, HasTheme, ValueOf } from '@lumx/react/utils';
2
+ import { GenericProps, HasTheme, ValueOf } from '@lumx/react/utils/type';
3
3
  import { ReactNode, SyntheticEvent } from 'react';
4
4
 
5
5
  /**
@@ -4,7 +4,8 @@ import classNames from 'classnames';
4
4
 
5
5
  import { SideNavigationItem, Theme } from '@lumx/react';
6
6
 
7
- import { Comp, GenericProps, getRootClassName, handleBasicClasses, HasTheme, isComponent } from '@lumx/react/utils';
7
+ import { Comp, GenericProps, HasTheme, isComponent } from '@lumx/react/utils/type';
8
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
8
9
 
9
10
  /**
10
11
  * Defines the props of the component.
@@ -5,7 +5,7 @@ import 'jest-enzyme';
5
5
  import without from 'lodash/without';
6
6
 
7
7
  import { commonTestsSuite, Wrapper } from '@lumx/react/testing/utils';
8
- import { getBasicClass } from '@lumx/react/utils';
8
+ import { getBasicClass } from '@lumx/react/utils/className';
9
9
 
10
10
  import { mdiAccount } from '@lumx/icons';
11
11
 
@@ -7,15 +7,9 @@ import { mdiChevronDown, mdiChevronUp } from '@lumx/icons';
7
7
 
8
8
  import { Emphasis, Icon, Size, IconButton, IconButtonProps } from '@lumx/react';
9
9
 
10
- import {
11
- Callback,
12
- Comp,
13
- GenericProps,
14
- getRootClassName,
15
- handleBasicClasses,
16
- isComponent,
17
- onEnterPressed,
18
- } from '@lumx/react/utils';
10
+ import { Callback, Comp, GenericProps, isComponent } from '@lumx/react/utils/type';
11
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
12
+ import { onEnterPressed } from '@lumx/react/utils/event';
19
13
  import { renderLink } from '@lumx/react/utils/renderLink';
20
14
 
21
15
  /**
@@ -2,7 +2,8 @@ import classNames from 'classnames';
2
2
  import React, { forwardRef } from 'react';
3
3
 
4
4
  import { GlobalSize, Theme, ColorPalette } from '@lumx/react';
5
- import { Comp, GenericProps, getRootClassName, handleBasicClasses, HasTheme } from '@lumx/react/utils';
5
+ import { Comp, GenericProps, HasTheme } from '@lumx/react/utils/type';
6
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
6
7
 
7
8
  /**
8
9
  * Defines the props of the component.
@@ -2,7 +2,8 @@ import classNames from 'classnames';
2
2
  import React, { forwardRef } from 'react';
3
3
 
4
4
  import { AspectRatio, GlobalSize, Theme, ColorPalette } from '@lumx/react';
5
- import { Comp, GenericProps, getRootClassName, handleBasicClasses, HasTheme, ValueOf } from '@lumx/react/utils';
5
+ import { Comp, GenericProps, HasTheme, ValueOf } from '@lumx/react/utils/type';
6
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
6
7
 
7
8
  /**
8
9
  * Skeleton variants.
@@ -2,7 +2,8 @@ import classNames from 'classnames';
2
2
  import React, { CSSProperties, forwardRef } from 'react';
3
3
 
4
4
  import { Theme, TypographyInterface, ColorPalette } from '@lumx/react';
5
- import { Comp, GenericProps, getRootClassName, handleBasicClasses, HasTheme } from '@lumx/react/utils';
5
+ import { Comp, GenericProps, HasTheme } from '@lumx/react/utils/type';
6
+ import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
6
7
 
7
8
  /**
8
9
  * Defines the props of the component.