@geotab/zenith 2.0.0 → 3.0.0-beta.0

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 (890) hide show
  1. package/README.md +40 -0
  2. package/dist/absolute/absolute.d.ts +2 -2
  3. package/dist/accordion/accordionItem/accordionItem.d.ts +2 -2
  4. package/dist/accordion/accordionItem/accordionItem.js +9 -1
  5. package/dist/advancedGroupsFilter/advancedGroupsFilter.d.ts +0 -5
  6. package/dist/advancedGroupsFilter/advancedGroupsFilterForm.d.ts +0 -5
  7. package/dist/advancedGroupsFilter/advancedGroupsFilterFormSection.d.ts +0 -5
  8. package/dist/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.d.ts +0 -5
  9. package/dist/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.js +1 -2
  10. package/dist/alert/hooks/useAlertState.d.ts +1 -1
  11. package/dist/alertRaw/alertRaw.d.ts +4 -2
  12. package/dist/alertRaw/alertRaw.js +3 -4
  13. package/dist/banner/banner.d.ts +0 -15
  14. package/dist/banner/bannerUtils.d.ts +0 -2
  15. package/dist/banner/bannerUtils.js +1 -0
  16. package/dist/betaPill/betaPill.d.ts +0 -5
  17. package/dist/bulkEditControl/bulkEditControl.d.ts +0 -5
  18. package/dist/button/button.d.ts +6 -1
  19. package/dist/button/button.js +4 -27
  20. package/dist/calendar/calendar.d.ts +0 -5
  21. package/dist/card/card.d.ts +4 -7
  22. package/dist/card/card.js +7 -4
  23. package/dist/card/components/status.d.ts +0 -5
  24. package/dist/card/components/title.d.ts +2 -0
  25. package/dist/card/components/title.js +11 -6
  26. package/dist/card/hooks/useCardSize.d.ts +2 -1
  27. package/dist/cardContainer/cardContainer.d.ts +3 -2
  28. package/dist/cardContainer/cardContainer.js +3 -4
  29. package/dist/chart/lineChart/useChartTicks.d.ts +1 -1
  30. package/dist/chart/lineChart/useSummary.d.ts +1 -1
  31. package/dist/checkboxListWithAction/checkboxListWithAction.d.ts +0 -5
  32. package/dist/chip/utils/useChip.d.ts +1 -1
  33. package/dist/columnsSelector/columnsSelector.d.ts +0 -5
  34. package/dist/columnsSelector/columnsTab/columnsTab.d.ts +0 -5
  35. package/dist/columnsSelector/columnsTabGroup/columnsTabGroup.d.ts +0 -5
  36. package/dist/comboboxSelected/comboboxSelected.d.ts +0 -5
  37. package/dist/commonHelpers/arrowNavigation/hooks/useClearTimers.d.ts +3 -3
  38. package/dist/commonHelpers/arrowNavigation/hooks/useHoldOnScroll.d.ts +1 -1
  39. package/dist/commonHelpers/arrowNavigation/hooks/useManualScrolling.d.ts +2 -2
  40. package/dist/commonHelpers/arrowNavigation/hooks/useScrollWhileHolding.d.ts +2 -2
  41. package/dist/commonHelpers/hooks/useArrowKey.d.ts +2 -1
  42. package/dist/commonHelpers/hooks/useContainerTypeObserver.d.ts +2 -2
  43. package/dist/commonHelpers/hooks/useEscape.d.ts +2 -1
  44. package/dist/commonHelpers/hooks/useGridSize.d.ts +1 -1
  45. package/dist/commonHelpers/hooks/usePillSize.d.ts +1 -1
  46. package/dist/commonHelpers/hooks/useResizeObserver.d.ts +1 -1
  47. package/dist/commonHelpers/hooks/useTrapFocus.d.ts +2 -1
  48. package/dist/commonHelpers/ref.d.ts +2 -0
  49. package/dist/controlledPopup/controlledPopup.d.ts +2 -2
  50. package/dist/dataFeed/dataFeed.d.ts +2 -2
  51. package/dist/dataFeed/dataFeedColumnsItems.d.ts +2 -2
  52. package/dist/dataFeed/feedSelectControl/feedSelectControl.d.ts +6 -2
  53. package/dist/dataFeed/feedSelectControl/feedSelectControl.js +3 -3
  54. package/dist/dataGrid/cell/cell.js +1 -1
  55. package/dist/dataGrid/columns/actionLinkColumn/actionButtonsMobileWrapper.js +1 -1
  56. package/dist/dataGrid/columns/actionLinkColumn/actionLinkColumnWrapper.js +1 -1
  57. package/dist/dataGrid/columns/actionsColumn/actionsButton.d.ts +0 -5
  58. package/dist/dataGrid/columns/actionsColumn/actionsColumn.d.ts +4 -4
  59. package/dist/dataGrid/columns/actionsColumn/actionsColumnCell.d.ts +3 -2
  60. package/dist/dataGrid/columns/actionsColumn/actionsColumnCell.js +4 -3
  61. package/dist/dataGrid/columns/basicColumn.d.ts +1 -1
  62. package/dist/dataGrid/columns/checkboxColumn/checkboxColumnWrapper.d.ts +3 -3
  63. package/dist/dataGrid/columns/checkboxColumn/checkboxHeaderCell.d.ts +4 -4
  64. package/dist/dataGrid/columns/checkboxColumn/checkboxHeaderCell.js +2 -2
  65. package/dist/dataGrid/columns/checkboxColumn/limitedCheckboxColumnWrapper.d.ts +2 -2
  66. package/dist/dataGrid/columns/mainColumn/mainColumnWrapper.d.ts +1 -1
  67. package/dist/dataGrid/dataGrid.d.ts +1 -1
  68. package/dist/dataGrid/emptySearchList/emptySearchList.d.ts +0 -5
  69. package/dist/dataGrid/entitiesListActions/actions/columnsListButton.d.ts +4 -5
  70. package/dist/dataGrid/entitiesListActions/actions/columnsListButton.js +2 -4
  71. package/dist/dataGrid/entitiesListActions/actions/fullscreenButton.d.ts +4 -7
  72. package/dist/dataGrid/entitiesListActions/entitiesListActions.d.ts +1 -1
  73. package/dist/dataGrid/withActions/withActions.d.ts +6 -2
  74. package/dist/dataGrid/withActions/withActions.js +18 -16
  75. package/dist/dataGrid/withFlexibleColumns/components/columnSettings.d.ts +4 -4
  76. package/dist/dataGrid/withFlexibleColumns/components/columnSettings.js +2 -3
  77. package/dist/dataGrid/withFlexibleColumns/components/columnSettingsSidePanel.js +1 -1
  78. package/dist/dataGrid/withFlexibleColumns/withFlexibleColumns.d.ts +6 -7
  79. package/dist/dataGrid/withFlexibleColumns/withFlexibleColumns.js +123 -121
  80. package/dist/dataGrid/withLoading/withLoading.d.ts +7 -4
  81. package/dist/dataGrid/withLoading/withLoading.js +34 -32
  82. package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActionButton/bulkActionButton.d.ts +3 -2
  83. package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActionButton/bulkActionButton.js +3 -3
  84. package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActionLink/bulkActionLink.d.ts +3 -2
  85. package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActionLink/bulkActionLink.js +3 -3
  86. package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActions.d.ts +7 -8
  87. package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActions.js +6 -1
  88. package/dist/dataGrid/withSelectableRows/withLimitedSelectableRows.d.ts +6 -2
  89. package/dist/dataGrid/withSelectableRows/withLimitedSelectableRows.js +38 -36
  90. package/dist/dataGrid/withSelectableRows/withSelectableRows.d.ts +6 -5
  91. package/dist/dataGrid/withSelectableRows/withSelectableRows.js +165 -163
  92. package/dist/dataGrid/withSortableColumns/columns/sortableColumnWrapper.d.ts +0 -5
  93. package/dist/dataGrid/withSortableColumns/withSortableColumns.d.ts +3 -7
  94. package/dist/dataGrid/withSortableColumns/withSortableColumns.js +3 -3
  95. package/dist/dateInput/dateInput.d.ts +0 -4
  96. package/dist/dateInputInner/dateInputInner.d.ts +0 -5
  97. package/dist/dateInputInner/dateInputInnerControlBlock.d.ts +3 -3
  98. package/dist/dateInputInner/dateInputInnerControlBlock.js +4 -8
  99. package/dist/dateSelectionWrapper/dateSelectionWrapper.d.ts +0 -5
  100. package/dist/dialog/dialogContent.js +1 -1
  101. package/dist/dropdown/dropdown.d.ts +0 -5
  102. package/dist/dropdown/dropdownList.d.ts +1 -6
  103. package/dist/dropdown/dropdownPopup.d.ts +4 -4
  104. package/dist/dropdown/dropdownSearchableTrigger.d.ts +7 -8
  105. package/dist/dropdown/dropdownSearchableTrigger.js +5 -27
  106. package/dist/dropdown/dropdownTrigger.d.ts +2 -7
  107. package/dist/feedbackContainer/feedbackContext.d.ts +3 -3
  108. package/dist/feedbackContainer/hooks/useFeedbackAlert.d.ts +1 -1
  109. package/dist/feedbackContainer/hooks/useFeedbackAlertState.d.ts +1 -1
  110. package/dist/feedbackContainer/hooks/useFeedbackToast.d.ts +1 -1
  111. package/dist/feedbackContainer/hooks/useFeedbackToastState.d.ts +1 -1
  112. package/dist/filterButton/filterButton.d.ts +3 -2
  113. package/dist/filterButton/filterButton.js +4 -4
  114. package/dist/filters/components/filtersContainer.js +8 -4
  115. package/dist/filters/components/filtersDateRange.d.ts +1 -2
  116. package/dist/filters/components/filtersDropdown.d.ts +1 -1
  117. package/dist/filters/components/filtersItem.d.ts +2 -2
  118. package/dist/filters/components/filtersSearch.d.ts +6 -2
  119. package/dist/filters/components/filtersSearch.js +3 -2
  120. package/dist/filters/filters.js +20 -11
  121. package/dist/filters/filtersHelper.d.ts +1 -1
  122. package/dist/filters/filtersHelper.js +20 -14
  123. package/dist/filtersBar/components/filtersBarGroupsFilter/filtersBarGroupsFilter.d.ts +1 -1
  124. package/dist/filtersBar/components/filtersBarPeriodPicker/filtersBarPeriodPicker.d.ts +0 -5
  125. package/dist/filtersBar/components/resetComponentButton.d.ts +0 -5
  126. package/dist/filtersBar/filtersBar.d.ts +0 -5
  127. package/dist/filtersBar/filtersBar.js +3 -2
  128. package/dist/filtersBar/filtersBarActions/filtersBarActions.d.ts +1 -6
  129. package/dist/filtersBar/filtersBarProviderTrigger.d.ts +3 -3
  130. package/dist/filtersBar/filtersBarSidePanel/filtersBarSidePanel.d.ts +1 -6
  131. package/dist/filtersBar/filtersBarSidePanel/filtersBarSidePanel.js +1 -0
  132. package/dist/filtersBar/filtersContainer/filtersContainer.d.ts +0 -5
  133. package/dist/filtersBar/filtersContainer/filtersContainer.js +2 -2
  134. package/dist/filtersBar/utils/isCustomElementValid.js +7 -1
  135. package/dist/formField/formField.d.ts +6 -3
  136. package/dist/formField/formField.js +5 -9
  137. package/dist/formStepper/components/formStep.d.ts +2 -1
  138. package/dist/formStepper/components/formStep.js +3 -2
  139. package/dist/formStepper/components/formStepRaw.d.ts +2 -2
  140. package/dist/formStepper/components/formStepRaw.js +6 -4
  141. package/dist/formStepper/formStepper.d.ts +4 -1
  142. package/dist/formStepper/formStepper.js +20 -7
  143. package/dist/formStepper/utils/getOnClick.d.ts +1 -1
  144. package/dist/formStepper/utils/getOnClick.js +1 -1
  145. package/dist/formStepper/utils/getTabIndex.d.ts +1 -1
  146. package/dist/formStepper/utils/getTabIndex.js +4 -1
  147. package/dist/formStepperButtons/formStepperButtons.js +3 -2
  148. package/dist/gridLayout/hooks/useStretch.d.ts +1 -1
  149. package/dist/gridLayout/hooks/useStretch.js +3 -2
  150. package/dist/gridLayout/utils/isGridItem.d.ts +1 -1
  151. package/dist/groupsFilter/groupsFilter.d.ts +1 -16
  152. package/dist/groupsFilter/groupsFilter.js +6 -6
  153. package/dist/groupsFilter/groupsFilterAdjustmentState.d.ts +0 -5
  154. package/dist/groupsFilter/groupsFilterBox.d.ts +0 -5
  155. package/dist/groupsFilter/groupsFilterCommon.d.ts +0 -5
  156. package/dist/groupsFilter/groupsFilterCurrentlySelectedState.d.ts +0 -5
  157. package/dist/groupsFilter/groupsFilterCurrentlySelectedState.js +1 -3
  158. package/dist/groupsFilter/groupsFilterInitialState.d.ts +0 -5
  159. package/dist/groupsFilter/groupsFilterInitialState.js +1 -3
  160. package/dist/groupsFilter/groupsFilterMenu.d.ts +0 -5
  161. package/dist/groupsFilter/groupsFilterTrigger.d.ts +6 -7
  162. package/dist/groupsFilter/groupsFilterTrigger.js +5 -27
  163. package/dist/header/components/basicToolbar/basicToolbar.d.ts +2 -2
  164. package/dist/header/components/collapsedItemsControl/collapsedItemsControl.d.ts +1 -6
  165. package/dist/header/components/collapsedItemsControl/utils/handleCustomMenuWrapper.js +3 -3
  166. package/dist/header/components/mobileFilterControl/mobileFilterControl.d.ts +3 -8
  167. package/dist/header/components/mobileFilterControl/mobileFilterControl.js +3 -6
  168. package/dist/header/components/mobileSearchControl/mobileSearchControl.d.ts +0 -5
  169. package/dist/header/header.d.ts +0 -10
  170. package/dist/header/header.js +15 -2
  171. package/dist/header/headerHelpers.d.ts +3 -3
  172. package/dist/header/headerHelpers.js +20 -16
  173. package/dist/header/hooks/useNonFittingElements.d.ts +1 -1
  174. package/dist/headerTitle/headerTitle.d.ts +0 -5
  175. package/dist/index.css +313 -933
  176. package/dist/index.d.ts +2 -9
  177. package/dist/index.js +15 -30
  178. package/dist/inputAdornments/inputAdornments.d.ts +6 -2
  179. package/dist/inputAdornments/inputAdornments.js +3 -26
  180. package/dist/layout/layout.js +1 -1
  181. package/dist/layout/layoutSummaryTiles.d.ts +3 -3
  182. package/dist/layout/layoutSummaryTiles.js +3 -2
  183. package/dist/list/hooks/useLazyLoading.d.ts +2 -1
  184. package/dist/list/hooks/useVirtualScroll.d.ts +2 -2
  185. package/dist/list/list.js +1 -0
  186. package/dist/menu/components/menuButton.d.ts +3 -2
  187. package/dist/menu/components/menuButton.js +3 -4
  188. package/dist/menu/components/menuItem.d.ts +1 -0
  189. package/dist/menu/components/menuItem.js +32 -7
  190. package/dist/menu/components/menuSeparator.d.ts +2 -1
  191. package/dist/menu/components/menuSeparator.js +15 -1
  192. package/dist/menu/controlledMenu.d.ts +1 -1
  193. package/dist/menu/controlledMenu.js +11 -10
  194. package/dist/menu/menu.d.ts +1 -1
  195. package/dist/menu/menu.js +3 -1
  196. package/dist/menu/utils/findContent.js +4 -3
  197. package/dist/miniTabs/miniTabsHeaderItem.d.ts +2 -2
  198. package/dist/miniTabs/miniTabsHelper.d.ts +1 -1
  199. package/dist/miniTabs/miniTabsHelper.js +55 -10
  200. package/dist/mobileSheet/mobileSheet.d.ts +0 -5
  201. package/dist/mobileSheet/mobileSheet.js +4 -4
  202. package/dist/modal/modal.js +3 -0
  203. package/dist/nav/nav.js +2 -1
  204. package/dist/nav/navHeader/navHeader.js +4 -1
  205. package/dist/nav/utils/navUtils.d.ts +1 -1
  206. package/dist/nav/utils/navUtils.js +6 -7
  207. package/dist/notification/notification.d.ts +3 -2
  208. package/dist/notification/notification.js +3 -4
  209. package/dist/oldPill/pill.d.ts +3 -2
  210. package/dist/oldPill/pill.js +4 -27
  211. package/dist/pageHeader/pageHeaderActions.js +1 -1
  212. package/dist/pageHeader/pageHeaderHelpers.d.ts +2 -2
  213. package/dist/pageHeader/pageHeaderHelpers.js +3 -2
  214. package/dist/pageLayout/pageContentLayout/pageContentLayout.d.ts +6 -2
  215. package/dist/pageLayout/pageContentLayout/pageContentLayout.js +3 -26
  216. package/dist/pagination/pagination.d.ts +2 -7
  217. package/dist/pagination/paginationText/paginationText.d.ts +0 -5
  218. package/dist/parallelSelection/parallelSelection.d.ts +4 -3
  219. package/dist/parallelSelection/parallelSelection.js +5 -27
  220. package/dist/pillBox/components/pillBoxItem.d.ts +0 -5
  221. package/dist/pillBox/pillBox.d.ts +0 -5
  222. package/dist/pillExpandable/pillExpandable.js +4 -2
  223. package/dist/pillExpandable/pillExpandableSimple.d.ts +6 -2
  224. package/dist/pillExpandable/pillExpandableSimple.js +3 -2
  225. package/dist/popup/popup.d.ts +2 -2
  226. package/dist/popup/popup.js +3 -1
  227. package/dist/primaryIcon/renderIcon.d.ts +1 -1
  228. package/dist/radio/radio.d.ts +3 -2
  229. package/dist/radio/radio.js +4 -3
  230. package/dist/radioGroup/radioGroup.js +1 -1
  231. package/dist/range/rangeField.d.ts +2 -2
  232. package/dist/react-chartjs/chart.js +1 -1
  233. package/dist/react-chartjs/types.d.ts +2 -2
  234. package/dist/searchInput/searchInput.d.ts +4 -2
  235. package/dist/searchInput/searchInput.js +4 -7
  236. package/dist/searchInputRaw/searchInputRaw.d.ts +6 -6
  237. package/dist/searchInputRaw/searchInputRaw.js +3 -2
  238. package/dist/searchList/searchList.d.ts +0 -22
  239. package/dist/searchList/searchList.js +0 -157
  240. package/dist/select/select.d.ts +4 -4
  241. package/dist/selectField/selectField.d.ts +4 -4
  242. package/dist/selectList/selectList.js +2 -2
  243. package/dist/selectRaw/hooks/usePopupWidth.d.ts +2 -2
  244. package/dist/selectRaw/selectRaw.d.ts +6 -7
  245. package/dist/selectRaw/selectRaw.js +5 -4
  246. package/dist/sidePanel/sidePanel.d.ts +2 -2
  247. package/dist/sidePanel/sidePanelCell/sidePanelCell.d.ts +1 -1
  248. package/dist/sortControl/sortControl.d.ts +0 -5
  249. package/dist/stepper/stepper.d.ts +4 -2
  250. package/dist/stepper/stepper.js +4 -7
  251. package/dist/stepperRaw/stepperRaw.d.ts +3 -2
  252. package/dist/stepperRaw/stepperRaw.js +3 -4
  253. package/dist/summaryTile/summaryTile.d.ts +0 -5
  254. package/dist/summaryTile/summaryTileTrigger.d.ts +3 -1
  255. package/dist/summaryTile/summaryTileTrigger.js +4 -3
  256. package/dist/table/actions/actionsMenu.d.ts +3 -3
  257. package/dist/table/actions/useActions.d.ts +2 -3
  258. package/dist/table/children/useTableChildren.d.ts +7 -7
  259. package/dist/table/children/useTableChildren.js +10 -9
  260. package/dist/table/flexible/columnsPopup.d.ts +2 -2
  261. package/dist/table/flexible/useFlexibleColumns.d.ts +1 -1
  262. package/dist/table/nested/nestedData.js +2 -0
  263. package/dist/textIconButton/textIconButton.d.ts +1 -1
  264. package/dist/textIconButton/textIconButton.js +4 -3
  265. package/dist/textInput/textInput.d.ts +7 -3
  266. package/dist/textInput/textInput.js +4 -27
  267. package/dist/textInputRaw/textInputRaw.d.ts +3 -1
  268. package/dist/textInputRaw/textInputRaw.js +4 -29
  269. package/dist/textarea/textarea.d.ts +4 -2
  270. package/dist/textarea/textarea.js +4 -27
  271. package/dist/textareaRaw/textareaRaw.d.ts +6 -1
  272. package/dist/textareaRaw/textareaRaw.js +3 -26
  273. package/dist/timePicker/timePicker.d.ts +0 -5
  274. package/dist/toast/hooks/useToast.js +9 -4
  275. package/dist/toast/hooks/useToastState.d.ts +2 -2
  276. package/dist/toastRaw/toastRaw.d.ts +4 -3
  277. package/dist/toastRaw/toastRaw.js +3 -4
  278. package/dist/toggleButton/toggleButton.d.ts +1 -1
  279. package/dist/toggleButton/toggleButton.js +2 -1
  280. package/dist/toolbar/toolbarContent.d.ts +3 -2
  281. package/dist/toolbar/toolbarContent.js +8 -5
  282. package/dist/tooltip/helpers/calculateArrowPosition.d.ts +2 -1
  283. package/dist/tooltip/tooltip.d.ts +2 -7
  284. package/dist/tooltip/tooltip.js +12 -7
  285. package/dist/utils/positioningUtils/calculatePosition.d.ts +2 -1
  286. package/dist/utils/positioningUtils/calculatePosition.js +21 -9
  287. package/dist/utils/useNodeText.d.ts +2 -1
  288. package/esm/absolute/absolute.d.ts +2 -2
  289. package/esm/accordion/accordionItem/accordionItem.d.ts +2 -2
  290. package/esm/accordion/accordionItem/accordionItem.js +9 -1
  291. package/esm/advancedGroupsFilter/advancedGroupsFilter.d.ts +0 -5
  292. package/esm/advancedGroupsFilter/advancedGroupsFilterForm.d.ts +0 -5
  293. package/esm/advancedGroupsFilter/advancedGroupsFilterFormSection.d.ts +0 -5
  294. package/esm/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.d.ts +0 -5
  295. package/esm/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.js +1 -2
  296. package/esm/alert/hooks/useAlertState.d.ts +1 -1
  297. package/esm/alertRaw/alertRaw.d.ts +4 -2
  298. package/esm/alertRaw/alertRaw.js +3 -5
  299. package/esm/banner/banner.d.ts +0 -15
  300. package/esm/banner/bannerUtils.d.ts +0 -2
  301. package/esm/banner/bannerUtils.js +1 -0
  302. package/esm/betaPill/betaPill.d.ts +0 -5
  303. package/esm/bulkEditControl/bulkEditControl.d.ts +0 -5
  304. package/esm/button/button.d.ts +6 -1
  305. package/esm/button/button.js +3 -4
  306. package/esm/calendar/calendar.d.ts +0 -5
  307. package/esm/card/card.d.ts +4 -7
  308. package/esm/card/card.js +7 -4
  309. package/esm/card/components/status.d.ts +0 -5
  310. package/esm/card/components/title.d.ts +2 -0
  311. package/esm/card/components/title.js +12 -7
  312. package/esm/card/hooks/useCardSize.d.ts +2 -1
  313. package/esm/cardContainer/cardContainer.d.ts +3 -2
  314. package/esm/cardContainer/cardContainer.js +3 -5
  315. package/esm/chart/lineChart/useChartTicks.d.ts +1 -1
  316. package/esm/chart/lineChart/useSummary.d.ts +1 -1
  317. package/esm/checkboxListWithAction/checkboxListWithAction.d.ts +0 -5
  318. package/esm/chip/utils/useChip.d.ts +1 -1
  319. package/esm/columnsSelector/columnsSelector.d.ts +0 -5
  320. package/esm/columnsSelector/columnsTab/columnsTab.d.ts +0 -5
  321. package/esm/columnsSelector/columnsTabGroup/columnsTabGroup.d.ts +0 -5
  322. package/esm/comboboxSelected/comboboxSelected.d.ts +0 -5
  323. package/esm/commonHelpers/arrowNavigation/hooks/useClearTimers.d.ts +3 -3
  324. package/esm/commonHelpers/arrowNavigation/hooks/useHoldOnScroll.d.ts +1 -1
  325. package/esm/commonHelpers/arrowNavigation/hooks/useManualScrolling.d.ts +2 -2
  326. package/esm/commonHelpers/arrowNavigation/hooks/useScrollWhileHolding.d.ts +2 -2
  327. package/esm/commonHelpers/hooks/useArrowKey.d.ts +2 -1
  328. package/esm/commonHelpers/hooks/useContainerTypeObserver.d.ts +2 -2
  329. package/esm/commonHelpers/hooks/useEscape.d.ts +2 -1
  330. package/esm/commonHelpers/hooks/useGridSize.d.ts +1 -1
  331. package/esm/commonHelpers/hooks/usePillSize.d.ts +1 -1
  332. package/esm/commonHelpers/hooks/useResizeObserver.d.ts +1 -1
  333. package/esm/commonHelpers/hooks/useTrapFocus.d.ts +2 -1
  334. package/esm/commonHelpers/ref.d.ts +2 -0
  335. package/esm/controlledPopup/controlledPopup.d.ts +2 -2
  336. package/esm/dataFeed/dataFeed.d.ts +2 -2
  337. package/esm/dataFeed/dataFeedColumnsItems.d.ts +2 -2
  338. package/esm/dataFeed/feedSelectControl/feedSelectControl.d.ts +6 -2
  339. package/esm/dataFeed/feedSelectControl/feedSelectControl.js +2 -3
  340. package/esm/dataGrid/cell/cell.js +1 -1
  341. package/esm/dataGrid/columns/actionLinkColumn/actionButtonsMobileWrapper.js +1 -1
  342. package/esm/dataGrid/columns/actionLinkColumn/actionLinkColumnWrapper.js +1 -1
  343. package/esm/dataGrid/columns/actionsColumn/actionsButton.d.ts +0 -5
  344. package/esm/dataGrid/columns/actionsColumn/actionsColumn.d.ts +4 -4
  345. package/esm/dataGrid/columns/actionsColumn/actionsColumnCell.d.ts +3 -2
  346. package/esm/dataGrid/columns/actionsColumn/actionsColumnCell.js +4 -4
  347. package/esm/dataGrid/columns/basicColumn.d.ts +1 -1
  348. package/esm/dataGrid/columns/checkboxColumn/checkboxColumnWrapper.d.ts +3 -3
  349. package/esm/dataGrid/columns/checkboxColumn/checkboxHeaderCell.d.ts +4 -4
  350. package/esm/dataGrid/columns/checkboxColumn/checkboxHeaderCell.js +3 -3
  351. package/esm/dataGrid/columns/checkboxColumn/limitedCheckboxColumnWrapper.d.ts +2 -2
  352. package/esm/dataGrid/columns/mainColumn/mainColumnWrapper.d.ts +1 -1
  353. package/esm/dataGrid/dataGrid.d.ts +1 -1
  354. package/esm/dataGrid/emptySearchList/emptySearchList.d.ts +0 -5
  355. package/esm/dataGrid/entitiesListActions/actions/columnsListButton.d.ts +4 -5
  356. package/esm/dataGrid/entitiesListActions/actions/columnsListButton.js +2 -4
  357. package/esm/dataGrid/entitiesListActions/actions/fullscreenButton.d.ts +4 -7
  358. package/esm/dataGrid/entitiesListActions/entitiesListActions.d.ts +1 -1
  359. package/esm/dataGrid/withActions/withActions.d.ts +6 -2
  360. package/esm/dataGrid/withActions/withActions.js +19 -17
  361. package/esm/dataGrid/withFlexibleColumns/components/columnSettings.d.ts +4 -4
  362. package/esm/dataGrid/withFlexibleColumns/components/columnSettings.js +2 -3
  363. package/esm/dataGrid/withFlexibleColumns/components/columnSettingsSidePanel.js +1 -1
  364. package/esm/dataGrid/withFlexibleColumns/withFlexibleColumns.d.ts +6 -7
  365. package/esm/dataGrid/withFlexibleColumns/withFlexibleColumns.js +124 -122
  366. package/esm/dataGrid/withLoading/withLoading.d.ts +7 -4
  367. package/esm/dataGrid/withLoading/withLoading.js +35 -33
  368. package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActionButton/bulkActionButton.d.ts +3 -2
  369. package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActionButton/bulkActionButton.js +2 -3
  370. package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActionLink/bulkActionLink.d.ts +3 -2
  371. package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActionLink/bulkActionLink.js +2 -3
  372. package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActions.d.ts +7 -8
  373. package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActions.js +6 -1
  374. package/esm/dataGrid/withSelectableRows/withLimitedSelectableRows.d.ts +6 -2
  375. package/esm/dataGrid/withSelectableRows/withLimitedSelectableRows.js +39 -37
  376. package/esm/dataGrid/withSelectableRows/withSelectableRows.d.ts +6 -5
  377. package/esm/dataGrid/withSelectableRows/withSelectableRows.js +166 -164
  378. package/esm/dataGrid/withSortableColumns/columns/sortableColumnWrapper.d.ts +0 -5
  379. package/esm/dataGrid/withSortableColumns/withSortableColumns.d.ts +3 -7
  380. package/esm/dataGrid/withSortableColumns/withSortableColumns.js +4 -4
  381. package/esm/dateInput/dateInput.d.ts +0 -4
  382. package/esm/dateInputInner/dateInputInner.d.ts +0 -5
  383. package/esm/dateInputInner/dateInputInnerControlBlock.d.ts +3 -3
  384. package/esm/dateInputInner/dateInputInnerControlBlock.js +3 -5
  385. package/esm/dateSelectionWrapper/dateSelectionWrapper.d.ts +0 -5
  386. package/esm/dialog/dialogContent.js +1 -1
  387. package/esm/dropdown/dropdown.d.ts +0 -5
  388. package/esm/dropdown/dropdownList.d.ts +1 -6
  389. package/esm/dropdown/dropdownPopup.d.ts +4 -4
  390. package/esm/dropdown/dropdownSearchableTrigger.d.ts +7 -8
  391. package/esm/dropdown/dropdownSearchableTrigger.js +4 -4
  392. package/esm/dropdown/dropdownTrigger.d.ts +2 -7
  393. package/esm/feedbackContainer/feedbackContext.d.ts +3 -3
  394. package/esm/feedbackContainer/hooks/useFeedbackAlert.d.ts +1 -1
  395. package/esm/feedbackContainer/hooks/useFeedbackAlertState.d.ts +1 -1
  396. package/esm/feedbackContainer/hooks/useFeedbackToast.d.ts +1 -1
  397. package/esm/feedbackContainer/hooks/useFeedbackToastState.d.ts +1 -1
  398. package/esm/filterButton/filterButton.d.ts +3 -2
  399. package/esm/filterButton/filterButton.js +4 -5
  400. package/esm/filters/components/filtersContainer.js +8 -4
  401. package/esm/filters/components/filtersDateRange.d.ts +1 -2
  402. package/esm/filters/components/filtersDropdown.d.ts +1 -1
  403. package/esm/filters/components/filtersItem.d.ts +2 -2
  404. package/esm/filters/components/filtersSearch.d.ts +6 -2
  405. package/esm/filters/components/filtersSearch.js +2 -2
  406. package/esm/filters/filters.js +20 -11
  407. package/esm/filters/filtersHelper.d.ts +1 -1
  408. package/esm/filters/filtersHelper.js +20 -14
  409. package/esm/filtersBar/components/filtersBarGroupsFilter/filtersBarGroupsFilter.d.ts +1 -1
  410. package/esm/filtersBar/components/filtersBarPeriodPicker/filtersBarPeriodPicker.d.ts +0 -5
  411. package/esm/filtersBar/components/resetComponentButton.d.ts +0 -5
  412. package/esm/filtersBar/filtersBar.d.ts +0 -5
  413. package/esm/filtersBar/filtersBar.js +3 -2
  414. package/esm/filtersBar/filtersBarActions/filtersBarActions.d.ts +1 -6
  415. package/esm/filtersBar/filtersBarProviderTrigger.d.ts +3 -3
  416. package/esm/filtersBar/filtersBarSidePanel/filtersBarSidePanel.d.ts +1 -6
  417. package/esm/filtersBar/filtersBarSidePanel/filtersBarSidePanel.js +1 -0
  418. package/esm/filtersBar/filtersContainer/filtersContainer.d.ts +0 -5
  419. package/esm/filtersBar/filtersContainer/filtersContainer.js +2 -2
  420. package/esm/filtersBar/utils/isCustomElementValid.js +7 -1
  421. package/esm/formField/formField.d.ts +6 -3
  422. package/esm/formField/formField.js +5 -6
  423. package/esm/formStepper/components/formStep.d.ts +2 -1
  424. package/esm/formStepper/components/formStep.js +3 -2
  425. package/esm/formStepper/components/formStepRaw.d.ts +2 -2
  426. package/esm/formStepper/components/formStepRaw.js +6 -4
  427. package/esm/formStepper/formStepper.d.ts +4 -1
  428. package/esm/formStepper/formStepper.js +19 -6
  429. package/esm/formStepper/utils/getOnClick.d.ts +1 -1
  430. package/esm/formStepper/utils/getOnClick.js +1 -1
  431. package/esm/formStepper/utils/getTabIndex.d.ts +1 -1
  432. package/esm/formStepper/utils/getTabIndex.js +4 -1
  433. package/esm/formStepperButtons/formStepperButtons.js +3 -2
  434. package/esm/gridLayout/hooks/useStretch.d.ts +1 -1
  435. package/esm/gridLayout/hooks/useStretch.js +3 -2
  436. package/esm/gridLayout/utils/isGridItem.d.ts +1 -1
  437. package/esm/groupsFilter/groupsFilter.d.ts +1 -16
  438. package/esm/groupsFilter/groupsFilter.js +6 -6
  439. package/esm/groupsFilter/groupsFilterAdjustmentState.d.ts +0 -5
  440. package/esm/groupsFilter/groupsFilterBox.d.ts +0 -5
  441. package/esm/groupsFilter/groupsFilterCommon.d.ts +0 -5
  442. package/esm/groupsFilter/groupsFilterCurrentlySelectedState.d.ts +0 -5
  443. package/esm/groupsFilter/groupsFilterCurrentlySelectedState.js +1 -3
  444. package/esm/groupsFilter/groupsFilterInitialState.d.ts +0 -5
  445. package/esm/groupsFilter/groupsFilterInitialState.js +1 -3
  446. package/esm/groupsFilter/groupsFilterMenu.d.ts +0 -5
  447. package/esm/groupsFilter/groupsFilterTrigger.d.ts +6 -7
  448. package/esm/groupsFilter/groupsFilterTrigger.js +4 -4
  449. package/esm/header/components/basicToolbar/basicToolbar.d.ts +2 -2
  450. package/esm/header/components/collapsedItemsControl/collapsedItemsControl.d.ts +1 -6
  451. package/esm/header/components/collapsedItemsControl/utils/handleCustomMenuWrapper.js +4 -4
  452. package/esm/header/components/mobileFilterControl/mobileFilterControl.d.ts +3 -8
  453. package/esm/header/components/mobileFilterControl/mobileFilterControl.js +2 -3
  454. package/esm/header/components/mobileSearchControl/mobileSearchControl.d.ts +0 -5
  455. package/esm/header/header.d.ts +0 -10
  456. package/esm/header/header.js +15 -2
  457. package/esm/header/headerHelpers.d.ts +3 -3
  458. package/esm/header/headerHelpers.js +20 -16
  459. package/esm/header/hooks/useNonFittingElements.d.ts +1 -1
  460. package/esm/headerTitle/headerTitle.d.ts +0 -5
  461. package/esm/index.d.ts +2 -9
  462. package/esm/index.js +1 -9
  463. package/esm/inputAdornments/inputAdornments.d.ts +6 -2
  464. package/esm/inputAdornments/inputAdornments.js +2 -3
  465. package/esm/layout/layout.js +1 -1
  466. package/esm/layout/layoutSummaryTiles.d.ts +3 -3
  467. package/esm/layout/layoutSummaryTiles.js +3 -3
  468. package/esm/list/hooks/useLazyLoading.d.ts +2 -1
  469. package/esm/list/hooks/useVirtualScroll.d.ts +2 -2
  470. package/esm/list/list.js +1 -0
  471. package/esm/menu/components/menuButton.d.ts +3 -2
  472. package/esm/menu/components/menuButton.js +3 -5
  473. package/esm/menu/components/menuItem.d.ts +1 -0
  474. package/esm/menu/components/menuItem.js +31 -7
  475. package/esm/menu/components/menuSeparator.d.ts +2 -1
  476. package/esm/menu/components/menuSeparator.js +13 -0
  477. package/esm/menu/controlledMenu.d.ts +1 -1
  478. package/esm/menu/controlledMenu.js +13 -12
  479. package/esm/menu/menu.d.ts +1 -1
  480. package/esm/menu/menu.js +3 -1
  481. package/esm/menu/utils/findContent.js +4 -3
  482. package/esm/miniTabs/miniTabsHeaderItem.d.ts +2 -2
  483. package/esm/miniTabs/miniTabsHelper.d.ts +1 -1
  484. package/esm/miniTabs/miniTabsHelper.js +33 -8
  485. package/esm/mobileSheet/mobileSheet.d.ts +0 -5
  486. package/esm/mobileSheet/mobileSheet.js +5 -5
  487. package/esm/modal/modal.js +3 -0
  488. package/esm/nav/nav.js +2 -1
  489. package/esm/nav/navHeader/navHeader.js +4 -1
  490. package/esm/nav/utils/navUtils.d.ts +1 -1
  491. package/esm/nav/utils/navUtils.js +7 -8
  492. package/esm/notification/notification.d.ts +3 -2
  493. package/esm/notification/notification.js +3 -5
  494. package/esm/oldPill/pill.d.ts +3 -2
  495. package/esm/oldPill/pill.js +3 -4
  496. package/esm/pageHeader/pageHeaderActions.js +3 -3
  497. package/esm/pageHeader/pageHeaderHelpers.d.ts +2 -2
  498. package/esm/pageHeader/pageHeaderHelpers.js +3 -2
  499. package/esm/pageLayout/pageContentLayout/pageContentLayout.d.ts +6 -2
  500. package/esm/pageLayout/pageContentLayout/pageContentLayout.js +2 -3
  501. package/esm/pagination/pagination.d.ts +2 -7
  502. package/esm/pagination/paginationText/paginationText.d.ts +0 -5
  503. package/esm/parallelSelection/parallelSelection.d.ts +4 -3
  504. package/esm/parallelSelection/parallelSelection.js +4 -4
  505. package/esm/pillBox/components/pillBoxItem.d.ts +0 -5
  506. package/esm/pillBox/pillBox.d.ts +0 -5
  507. package/esm/pillExpandable/pillExpandable.js +4 -2
  508. package/esm/pillExpandable/pillExpandableSimple.d.ts +6 -2
  509. package/esm/pillExpandable/pillExpandableSimple.js +3 -3
  510. package/esm/popup/popup.d.ts +2 -2
  511. package/esm/popup/popup.js +3 -1
  512. package/esm/primaryIcon/renderIcon.d.ts +1 -1
  513. package/esm/radio/radio.d.ts +3 -2
  514. package/esm/radio/radio.js +3 -3
  515. package/esm/radioGroup/radioGroup.js +1 -1
  516. package/esm/range/rangeField.d.ts +2 -2
  517. package/esm/react-chartjs/chart.js +1 -1
  518. package/esm/react-chartjs/types.d.ts +2 -2
  519. package/esm/searchInput/searchInput.d.ts +4 -2
  520. package/esm/searchInput/searchInput.js +3 -4
  521. package/esm/searchInputRaw/searchInputRaw.d.ts +6 -6
  522. package/esm/searchInputRaw/searchInputRaw.js +2 -2
  523. package/esm/searchList/searchList.d.ts +0 -22
  524. package/esm/searchList/searchList.js +1 -154
  525. package/esm/select/select.d.ts +4 -4
  526. package/esm/selectField/selectField.d.ts +4 -4
  527. package/esm/selectList/selectList.js +3 -3
  528. package/esm/selectRaw/hooks/usePopupWidth.d.ts +2 -2
  529. package/esm/selectRaw/selectRaw.d.ts +6 -7
  530. package/esm/selectRaw/selectRaw.js +5 -5
  531. package/esm/sidePanel/sidePanel.d.ts +2 -2
  532. package/esm/sidePanel/sidePanelCell/sidePanelCell.d.ts +1 -1
  533. package/esm/sortControl/sortControl.d.ts +0 -5
  534. package/esm/stepper/stepper.d.ts +4 -2
  535. package/esm/stepper/stepper.js +3 -4
  536. package/esm/stepperRaw/stepperRaw.d.ts +3 -2
  537. package/esm/stepperRaw/stepperRaw.js +3 -5
  538. package/esm/storybookHelpers/dataGridWithDifferentCellOptions/components/EntitiesListAction.d.ts +2 -7
  539. package/esm/summaryTile/summaryTile.d.ts +0 -5
  540. package/esm/summaryTile/summaryTileTrigger.d.ts +3 -1
  541. package/esm/summaryTile/summaryTileTrigger.js +3 -3
  542. package/esm/table/actions/actionsMenu.d.ts +3 -3
  543. package/esm/table/actions/useActions.d.ts +2 -3
  544. package/esm/table/children/useTableChildren.d.ts +7 -7
  545. package/esm/table/children/useTableChildren.js +11 -10
  546. package/esm/table/flexible/columnsPopup.d.ts +2 -2
  547. package/esm/table/flexible/useFlexibleColumns.d.ts +1 -1
  548. package/esm/table/nested/nestedData.js +2 -0
  549. package/esm/textIconButton/textIconButton.d.ts +1 -1
  550. package/esm/textIconButton/textIconButton.js +3 -3
  551. package/esm/textInput/textInput.d.ts +7 -3
  552. package/esm/textInput/textInput.js +3 -4
  553. package/esm/textInputRaw/textInputRaw.d.ts +3 -1
  554. package/esm/textInputRaw/textInputRaw.js +3 -6
  555. package/esm/textarea/textarea.d.ts +4 -2
  556. package/esm/textarea/textarea.js +3 -4
  557. package/esm/textareaRaw/textareaRaw.d.ts +6 -1
  558. package/esm/textareaRaw/textareaRaw.js +2 -3
  559. package/esm/timePicker/timePicker.d.ts +0 -5
  560. package/esm/toast/hooks/useToast.js +9 -4
  561. package/esm/toast/hooks/useToastState.d.ts +2 -2
  562. package/esm/toastRaw/toastRaw.d.ts +4 -3
  563. package/esm/toastRaw/toastRaw.js +3 -5
  564. package/esm/toggleButton/toggleButton.d.ts +1 -1
  565. package/esm/toggleButton/toggleButton.js +3 -2
  566. package/esm/toolbar/toolbarContent.d.ts +3 -2
  567. package/esm/toolbar/toolbarContent.js +8 -6
  568. package/esm/tooltip/helpers/calculateArrowPosition.d.ts +2 -1
  569. package/esm/tooltip/tooltip.d.ts +2 -7
  570. package/esm/tooltip/tooltip.js +12 -7
  571. package/esm/utils/positioningUtils/calculatePosition.d.ts +2 -1
  572. package/esm/utils/positioningUtils/calculatePosition.js +21 -9
  573. package/esm/utils/useNodeText.d.ts +2 -1
  574. package/package.json +8 -8
  575. package/dist/bottomSection/bottomSection.d.ts +0 -13
  576. package/dist/bottomSection/bottomSection.js +0 -48
  577. package/dist/bottomSection/bottomSectionType.d.ts +0 -4
  578. package/dist/bottomSection/bottomSectionType.js +0 -8
  579. package/dist/comboList/comboList.d.ts +0 -24
  580. package/dist/comboList/comboList.js +0 -30
  581. package/dist/comboList/comboListHook.d.ts +0 -4
  582. package/dist/comboList/comboListHook.js +0 -14
  583. package/dist/combobox/combobox.d.ts +0 -27
  584. package/dist/combobox/combobox.js +0 -190
  585. package/dist/combobox/comboboxNavigation.d.ts +0 -3
  586. package/dist/combobox/comboboxNavigation.js +0 -26
  587. package/dist/commonHelpers/translatable.d.ts +0 -11
  588. package/dist/dropdownOld/dropdownOld.d.ts +0 -17
  589. package/dist/dropdownOld/dropdownOld.js +0 -54
  590. package/dist/dropdownOld/dropdownOldHelpers/isDropdownStateTheSame.d.ts +0 -1
  591. package/dist/dropdownOld/dropdownOldHelpers/isDropdownStateTheSame.js +0 -10
  592. package/dist/icons/deprecated/iconActivity.d.ts +0 -7
  593. package/dist/icons/deprecated/iconActivity.js +0 -20
  594. package/dist/icons/deprecated/iconArchive.d.ts +0 -7
  595. package/dist/icons/deprecated/iconArchive.js +0 -20
  596. package/dist/icons/deprecated/iconArrowBottom.d.ts +0 -7
  597. package/dist/icons/deprecated/iconArrowBottom.js +0 -20
  598. package/dist/icons/deprecated/iconArrowDown.d.ts +0 -7
  599. package/dist/icons/deprecated/iconArrowDown.js +0 -20
  600. package/dist/icons/deprecated/iconArrowTop.d.ts +0 -7
  601. package/dist/icons/deprecated/iconArrowTop.js +0 -20
  602. package/dist/icons/deprecated/iconAssetInactive.d.ts +0 -7
  603. package/dist/icons/deprecated/iconAssetInactive.js +0 -20
  604. package/dist/icons/deprecated/iconBookmark.d.ts +0 -7
  605. package/dist/icons/deprecated/iconBookmark.js +0 -20
  606. package/dist/icons/deprecated/iconBookmarkFill.d.ts +0 -7
  607. package/dist/icons/deprecated/iconBookmarkFill.js +0 -20
  608. package/dist/icons/deprecated/iconCalendar.d.ts +0 -7
  609. package/dist/icons/deprecated/iconCalendar.js +0 -20
  610. package/dist/icons/deprecated/iconChevronDownSmall.d.ts +0 -7
  611. package/dist/icons/deprecated/iconChevronDownSmall.js +0 -20
  612. package/dist/icons/deprecated/iconChevronLeftSmall.d.ts +0 -7
  613. package/dist/icons/deprecated/iconChevronLeftSmall.js +0 -20
  614. package/dist/icons/deprecated/iconChevronRightSmall.d.ts +0 -7
  615. package/dist/icons/deprecated/iconChevronRightSmall.js +0 -20
  616. package/dist/icons/deprecated/iconCircleOk.d.ts +0 -7
  617. package/dist/icons/deprecated/iconCircleOk.js +0 -20
  618. package/dist/icons/deprecated/iconCogSettings.d.ts +0 -7
  619. package/dist/icons/deprecated/iconCogSettings.js +0 -20
  620. package/dist/icons/deprecated/iconConditions.d.ts +0 -7
  621. package/dist/icons/deprecated/iconConditions.js +0 -20
  622. package/dist/icons/deprecated/iconDelete.d.ts +0 -7
  623. package/dist/icons/deprecated/iconDelete.js +0 -20
  624. package/dist/icons/deprecated/iconDownload.d.ts +0 -7
  625. package/dist/icons/deprecated/iconDownload.js +0 -20
  626. package/dist/icons/deprecated/iconDragAndDrop.d.ts +0 -7
  627. package/dist/icons/deprecated/iconDragAndDrop.js +0 -20
  628. package/dist/icons/deprecated/iconEdit.d.ts +0 -7
  629. package/dist/icons/deprecated/iconEdit.js +0 -20
  630. package/dist/icons/deprecated/iconError.d.ts +0 -7
  631. package/dist/icons/deprecated/iconError.js +0 -20
  632. package/dist/icons/deprecated/iconErrorNew.d.ts +0 -7
  633. package/dist/icons/deprecated/iconErrorNew.js +0 -20
  634. package/dist/icons/deprecated/iconExclude.d.ts +0 -7
  635. package/dist/icons/deprecated/iconExclude.js +0 -20
  636. package/dist/icons/deprecated/iconFilterOutline.d.ts +0 -7
  637. package/dist/icons/deprecated/iconFilterOutline.js +0 -20
  638. package/dist/icons/deprecated/iconFolderNew.d.ts +0 -7
  639. package/dist/icons/deprecated/iconFolderNew.js +0 -20
  640. package/dist/icons/deprecated/iconFullscreen.d.ts +0 -7
  641. package/dist/icons/deprecated/iconFullscreen.js +0 -20
  642. package/dist/icons/deprecated/iconInfoCircled.d.ts +0 -7
  643. package/dist/icons/deprecated/iconInfoCircled.js +0 -20
  644. package/dist/icons/deprecated/iconLeftBracketLg.d.ts +0 -7
  645. package/dist/icons/deprecated/iconLeftBracketLg.js +0 -20
  646. package/dist/icons/deprecated/iconLocation.d.ts +0 -7
  647. package/dist/icons/deprecated/iconLocation.js +0 -20
  648. package/dist/icons/deprecated/iconLocationPin.d.ts +0 -7
  649. package/dist/icons/deprecated/iconLocationPin.js +0 -20
  650. package/dist/icons/deprecated/iconLvlUp.d.ts +0 -7
  651. package/dist/icons/deprecated/iconLvlUp.js +0 -20
  652. package/dist/icons/deprecated/iconMap.d.ts +0 -7
  653. package/dist/icons/deprecated/iconMap.js +0 -20
  654. package/dist/icons/deprecated/iconNarrowArrowRight.d.ts +0 -7
  655. package/dist/icons/deprecated/iconNarrowArrowRight.js +0 -20
  656. package/dist/icons/deprecated/iconNotificationBell.d.ts +0 -7
  657. package/dist/icons/deprecated/iconNotificationBell.js +0 -20
  658. package/dist/icons/deprecated/iconOptionsIcon.d.ts +0 -7
  659. package/dist/icons/deprecated/iconOptionsIcon.js +0 -20
  660. package/dist/icons/deprecated/iconPlus.d.ts +0 -7
  661. package/dist/icons/deprecated/iconPlus.js +0 -20
  662. package/dist/icons/deprecated/iconReportError.d.ts +0 -7
  663. package/dist/icons/deprecated/iconReportError.js +0 -20
  664. package/dist/icons/deprecated/iconRightArrow.d.ts +0 -7
  665. package/dist/icons/deprecated/iconRightArrow.js +0 -20
  666. package/dist/icons/deprecated/iconSelectArrow.d.ts +0 -7
  667. package/dist/icons/deprecated/iconSelectArrow.js +0 -20
  668. package/dist/icons/deprecated/iconSettings6SliderThree.d.ts +0 -7
  669. package/dist/icons/deprecated/iconSettings6SliderThree.js +0 -20
  670. package/dist/icons/deprecated/iconShrink.d.ts +0 -7
  671. package/dist/icons/deprecated/iconShrink.js +0 -20
  672. package/dist/icons/deprecated/iconSortAsc.d.ts +0 -7
  673. package/dist/icons/deprecated/iconSortAsc.js +0 -20
  674. package/dist/icons/deprecated/iconSortDec.d.ts +0 -7
  675. package/dist/icons/deprecated/iconSortDec.js +0 -20
  676. package/dist/icons/deprecated/iconSpinner.d.ts +0 -7
  677. package/dist/icons/deprecated/iconSpinner.js +0 -20
  678. package/dist/icons/deprecated/iconStatusNoComm.d.ts +0 -7
  679. package/dist/icons/deprecated/iconStatusNoComm.js +0 -20
  680. package/dist/icons/deprecated/iconSuccessNew.d.ts +0 -7
  681. package/dist/icons/deprecated/iconSuccessNew.js +0 -20
  682. package/dist/icons/deprecated/iconTick.d.ts +0 -7
  683. package/dist/icons/deprecated/iconTick.js +0 -20
  684. package/dist/icons/deprecated/iconVerticalEllipsis.d.ts +0 -7
  685. package/dist/icons/deprecated/iconVerticalEllipsis.js +0 -20
  686. package/dist/icons/deprecated/iconWarningNew.d.ts +0 -7
  687. package/dist/icons/deprecated/iconWarningNew.js +0 -20
  688. package/dist/icons/deprecated/iconZoneGeofence.d.ts +0 -7
  689. package/dist/icons/deprecated/iconZoneGeofence.js +0 -18
  690. package/dist/icons/iconAddPeople2.d.ts +0 -8
  691. package/dist/icons/iconAddPeople2.js +0 -21
  692. package/dist/icons/iconCalendar2.d.ts +0 -8
  693. package/dist/icons/iconCalendar2.js +0 -21
  694. package/dist/icons/iconCornerUpRight2.d.ts +0 -8
  695. package/dist/icons/iconCornerUpRight2.js +0 -21
  696. package/dist/icons/iconImac2.d.ts +0 -8
  697. package/dist/icons/iconImac2.js +0 -21
  698. package/dist/icons/iconInbox2.d.ts +0 -8
  699. package/dist/icons/iconInbox2.js +0 -21
  700. package/dist/icons/iconMenuCircle2.d.ts +0 -8
  701. package/dist/icons/iconMenuCircle2.js +0 -21
  702. package/dist/icons/iconShare2.d.ts +0 -8
  703. package/dist/icons/iconShare2.js +0 -21
  704. package/dist/icons/iconVolumeOf.d.ts +0 -8
  705. package/dist/icons/iconVolumeOf.js +0 -21
  706. package/dist/reportPopup/groupedReportsItem.d.ts +0 -7
  707. package/dist/reportPopup/groupedReportsItem.js +0 -10
  708. package/dist/reportPopup/notificationTemplates/errorNotification.d.ts +0 -9
  709. package/dist/reportPopup/notificationTemplates/errorNotification.js +0 -19
  710. package/dist/reportPopup/notificationTemplates/infoNotification.d.ts +0 -9
  711. package/dist/reportPopup/notificationTemplates/infoNotification.js +0 -19
  712. package/dist/reportPopup/notificationTemplates/successNotification.d.ts +0 -10
  713. package/dist/reportPopup/notificationTemplates/successNotification.js +0 -20
  714. package/dist/reportPopup/reportPopup.d.ts +0 -23
  715. package/dist/reportPopup/reportPopup.js +0 -56
  716. package/dist/reportPopup/reportPopupContent.d.ts +0 -12
  717. package/dist/reportPopup/reportPopupContent.js +0 -29
  718. package/dist/reportPopup/reports.d.ts +0 -7
  719. package/dist/reportPopup/reports.js +0 -11
  720. package/dist/reportPopup/reportsItem.d.ts +0 -12
  721. package/dist/reportPopup/reportsItem.js +0 -18
  722. package/dist/reportPopup/reportsItemFormats.d.ts +0 -10
  723. package/dist/reportPopup/reportsItemFormats.js +0 -14
  724. package/dist/searchList/searchListHelpers.d.ts +0 -20
  725. package/dist/searchList/searchListHelpers.js +0 -90
  726. package/dist/searchableField/searchableField.d.ts +0 -28
  727. package/dist/searchableField/searchableField.js +0 -31
  728. package/dist/static/icons/icons.d.ts +0 -67
  729. package/dist/static/icons/icons.js +0 -76
  730. package/dist/svgIcon/svgIcon.d.ts +0 -16
  731. package/dist/svgIcon/svgIcon.js +0 -43
  732. package/esm/bottomSection/bottomSection.d.ts +0 -13
  733. package/esm/bottomSection/bottomSection.js +0 -21
  734. package/esm/bottomSection/bottomSectionType.d.ts +0 -4
  735. package/esm/bottomSection/bottomSectionType.js +0 -5
  736. package/esm/comboList/comboList.d.ts +0 -24
  737. package/esm/comboList/comboList.js +0 -26
  738. package/esm/comboList/comboListHook.d.ts +0 -4
  739. package/esm/comboList/comboListHook.js +0 -10
  740. package/esm/combobox/combobox.d.ts +0 -27
  741. package/esm/combobox/combobox.js +0 -163
  742. package/esm/combobox/comboboxNavigation.d.ts +0 -3
  743. package/esm/combobox/comboboxNavigation.js +0 -21
  744. package/esm/commonHelpers/translatable.d.ts +0 -11
  745. package/esm/dropdownOld/dropdownOld.d.ts +0 -17
  746. package/esm/dropdownOld/dropdownOld.js +0 -50
  747. package/esm/dropdownOld/dropdownOldHelpers/isDropdownStateTheSame.d.ts +0 -1
  748. package/esm/dropdownOld/dropdownOldHelpers/isDropdownStateTheSame.js +0 -6
  749. package/esm/icons/deprecated/iconActivity.d.ts +0 -7
  750. package/esm/icons/deprecated/iconActivity.js +0 -16
  751. package/esm/icons/deprecated/iconArchive.d.ts +0 -7
  752. package/esm/icons/deprecated/iconArchive.js +0 -16
  753. package/esm/icons/deprecated/iconArrowBottom.d.ts +0 -7
  754. package/esm/icons/deprecated/iconArrowBottom.js +0 -16
  755. package/esm/icons/deprecated/iconArrowDown.d.ts +0 -7
  756. package/esm/icons/deprecated/iconArrowDown.js +0 -16
  757. package/esm/icons/deprecated/iconArrowTop.d.ts +0 -7
  758. package/esm/icons/deprecated/iconArrowTop.js +0 -16
  759. package/esm/icons/deprecated/iconAssetInactive.d.ts +0 -7
  760. package/esm/icons/deprecated/iconAssetInactive.js +0 -16
  761. package/esm/icons/deprecated/iconBookmark.d.ts +0 -7
  762. package/esm/icons/deprecated/iconBookmark.js +0 -16
  763. package/esm/icons/deprecated/iconBookmarkFill.d.ts +0 -7
  764. package/esm/icons/deprecated/iconBookmarkFill.js +0 -16
  765. package/esm/icons/deprecated/iconCalendar.d.ts +0 -7
  766. package/esm/icons/deprecated/iconCalendar.js +0 -16
  767. package/esm/icons/deprecated/iconChevronDownSmall.d.ts +0 -7
  768. package/esm/icons/deprecated/iconChevronDownSmall.js +0 -16
  769. package/esm/icons/deprecated/iconChevronLeftSmall.d.ts +0 -7
  770. package/esm/icons/deprecated/iconChevronLeftSmall.js +0 -16
  771. package/esm/icons/deprecated/iconChevronRightSmall.d.ts +0 -7
  772. package/esm/icons/deprecated/iconChevronRightSmall.js +0 -16
  773. package/esm/icons/deprecated/iconCircleOk.d.ts +0 -7
  774. package/esm/icons/deprecated/iconCircleOk.js +0 -16
  775. package/esm/icons/deprecated/iconCogSettings.d.ts +0 -7
  776. package/esm/icons/deprecated/iconCogSettings.js +0 -16
  777. package/esm/icons/deprecated/iconConditions.d.ts +0 -7
  778. package/esm/icons/deprecated/iconConditions.js +0 -16
  779. package/esm/icons/deprecated/iconDelete.d.ts +0 -7
  780. package/esm/icons/deprecated/iconDelete.js +0 -16
  781. package/esm/icons/deprecated/iconDownload.d.ts +0 -7
  782. package/esm/icons/deprecated/iconDownload.js +0 -16
  783. package/esm/icons/deprecated/iconDragAndDrop.d.ts +0 -7
  784. package/esm/icons/deprecated/iconDragAndDrop.js +0 -16
  785. package/esm/icons/deprecated/iconEdit.d.ts +0 -7
  786. package/esm/icons/deprecated/iconEdit.js +0 -16
  787. package/esm/icons/deprecated/iconError.d.ts +0 -7
  788. package/esm/icons/deprecated/iconError.js +0 -16
  789. package/esm/icons/deprecated/iconErrorNew.d.ts +0 -7
  790. package/esm/icons/deprecated/iconErrorNew.js +0 -16
  791. package/esm/icons/deprecated/iconExclude.d.ts +0 -7
  792. package/esm/icons/deprecated/iconExclude.js +0 -16
  793. package/esm/icons/deprecated/iconFilterOutline.d.ts +0 -7
  794. package/esm/icons/deprecated/iconFilterOutline.js +0 -16
  795. package/esm/icons/deprecated/iconFolderNew.d.ts +0 -7
  796. package/esm/icons/deprecated/iconFolderNew.js +0 -16
  797. package/esm/icons/deprecated/iconFullscreen.d.ts +0 -7
  798. package/esm/icons/deprecated/iconFullscreen.js +0 -16
  799. package/esm/icons/deprecated/iconInfoCircled.d.ts +0 -7
  800. package/esm/icons/deprecated/iconInfoCircled.js +0 -16
  801. package/esm/icons/deprecated/iconLeftBracketLg.d.ts +0 -7
  802. package/esm/icons/deprecated/iconLeftBracketLg.js +0 -16
  803. package/esm/icons/deprecated/iconLocation.d.ts +0 -7
  804. package/esm/icons/deprecated/iconLocation.js +0 -16
  805. package/esm/icons/deprecated/iconLocationPin.d.ts +0 -7
  806. package/esm/icons/deprecated/iconLocationPin.js +0 -16
  807. package/esm/icons/deprecated/iconLvlUp.d.ts +0 -7
  808. package/esm/icons/deprecated/iconLvlUp.js +0 -16
  809. package/esm/icons/deprecated/iconMap.d.ts +0 -7
  810. package/esm/icons/deprecated/iconMap.js +0 -16
  811. package/esm/icons/deprecated/iconNarrowArrowRight.d.ts +0 -7
  812. package/esm/icons/deprecated/iconNarrowArrowRight.js +0 -16
  813. package/esm/icons/deprecated/iconNotificationBell.d.ts +0 -7
  814. package/esm/icons/deprecated/iconNotificationBell.js +0 -16
  815. package/esm/icons/deprecated/iconOptionsIcon.d.ts +0 -7
  816. package/esm/icons/deprecated/iconOptionsIcon.js +0 -16
  817. package/esm/icons/deprecated/iconPlus.d.ts +0 -7
  818. package/esm/icons/deprecated/iconPlus.js +0 -16
  819. package/esm/icons/deprecated/iconReportError.d.ts +0 -7
  820. package/esm/icons/deprecated/iconReportError.js +0 -16
  821. package/esm/icons/deprecated/iconRightArrow.d.ts +0 -7
  822. package/esm/icons/deprecated/iconRightArrow.js +0 -16
  823. package/esm/icons/deprecated/iconSelectArrow.d.ts +0 -7
  824. package/esm/icons/deprecated/iconSelectArrow.js +0 -16
  825. package/esm/icons/deprecated/iconSettings6SliderThree.d.ts +0 -7
  826. package/esm/icons/deprecated/iconSettings6SliderThree.js +0 -16
  827. package/esm/icons/deprecated/iconShrink.d.ts +0 -7
  828. package/esm/icons/deprecated/iconShrink.js +0 -16
  829. package/esm/icons/deprecated/iconSortAsc.d.ts +0 -7
  830. package/esm/icons/deprecated/iconSortAsc.js +0 -16
  831. package/esm/icons/deprecated/iconSortDec.d.ts +0 -7
  832. package/esm/icons/deprecated/iconSortDec.js +0 -16
  833. package/esm/icons/deprecated/iconSpinner.d.ts +0 -7
  834. package/esm/icons/deprecated/iconSpinner.js +0 -16
  835. package/esm/icons/deprecated/iconStatusNoComm.d.ts +0 -7
  836. package/esm/icons/deprecated/iconStatusNoComm.js +0 -16
  837. package/esm/icons/deprecated/iconSuccessNew.d.ts +0 -7
  838. package/esm/icons/deprecated/iconSuccessNew.js +0 -16
  839. package/esm/icons/deprecated/iconTick.d.ts +0 -7
  840. package/esm/icons/deprecated/iconTick.js +0 -16
  841. package/esm/icons/deprecated/iconVerticalEllipsis.d.ts +0 -7
  842. package/esm/icons/deprecated/iconVerticalEllipsis.js +0 -16
  843. package/esm/icons/deprecated/iconWarningNew.d.ts +0 -7
  844. package/esm/icons/deprecated/iconWarningNew.js +0 -16
  845. package/esm/icons/deprecated/iconZoneGeofence.d.ts +0 -7
  846. package/esm/icons/deprecated/iconZoneGeofence.js +0 -14
  847. package/esm/icons/iconAddPeople2.d.ts +0 -8
  848. package/esm/icons/iconAddPeople2.js +0 -17
  849. package/esm/icons/iconCalendar2.d.ts +0 -8
  850. package/esm/icons/iconCalendar2.js +0 -17
  851. package/esm/icons/iconCornerUpRight2.d.ts +0 -8
  852. package/esm/icons/iconCornerUpRight2.js +0 -17
  853. package/esm/icons/iconImac2.d.ts +0 -8
  854. package/esm/icons/iconImac2.js +0 -17
  855. package/esm/icons/iconInbox2.d.ts +0 -8
  856. package/esm/icons/iconInbox2.js +0 -17
  857. package/esm/icons/iconMenuCircle2.d.ts +0 -8
  858. package/esm/icons/iconMenuCircle2.js +0 -17
  859. package/esm/icons/iconShare2.d.ts +0 -8
  860. package/esm/icons/iconShare2.js +0 -17
  861. package/esm/icons/iconVolumeOf.d.ts +0 -8
  862. package/esm/icons/iconVolumeOf.js +0 -17
  863. package/esm/reportPopup/groupedReportsItem.d.ts +0 -7
  864. package/esm/reportPopup/groupedReportsItem.js +0 -6
  865. package/esm/reportPopup/notificationTemplates/errorNotification.d.ts +0 -9
  866. package/esm/reportPopup/notificationTemplates/errorNotification.js +0 -16
  867. package/esm/reportPopup/notificationTemplates/infoNotification.d.ts +0 -9
  868. package/esm/reportPopup/notificationTemplates/infoNotification.js +0 -16
  869. package/esm/reportPopup/notificationTemplates/successNotification.d.ts +0 -10
  870. package/esm/reportPopup/notificationTemplates/successNotification.js +0 -17
  871. package/esm/reportPopup/reportPopup.d.ts +0 -23
  872. package/esm/reportPopup/reportPopup.js +0 -52
  873. package/esm/reportPopup/reportPopupContent.d.ts +0 -12
  874. package/esm/reportPopup/reportPopupContent.js +0 -26
  875. package/esm/reportPopup/reports.d.ts +0 -7
  876. package/esm/reportPopup/reports.js +0 -7
  877. package/esm/reportPopup/reportsItem.d.ts +0 -12
  878. package/esm/reportPopup/reportsItem.js +0 -14
  879. package/esm/reportPopup/reportsItemFormats.d.ts +0 -10
  880. package/esm/reportPopup/reportsItemFormats.js +0 -10
  881. package/esm/searchList/searchListHelpers.d.ts +0 -20
  882. package/esm/searchList/searchListHelpers.js +0 -79
  883. package/esm/searchableField/searchableField.d.ts +0 -28
  884. package/esm/searchableField/searchableField.js +0 -27
  885. package/esm/static/icons/icons.d.ts +0 -67
  886. package/esm/static/icons/icons.js +0 -73
  887. package/esm/svgIcon/svgIcon.d.ts +0 -16
  888. package/esm/svgIcon/svgIcon.js +0 -16
  889. /package/dist/commonHelpers/{translatable.js → ref.js} +0 -0
  890. /package/esm/commonHelpers/{translatable.js → ref.js} +0 -0
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TRANSLATIONS = exports.ControlledMenu = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- /* eslint-disable @typescript-eslint/naming-convention */
5
+ /* eslint-disable @typescript-eslint/naming-convention, @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument */
6
6
  const react_1 = require("react");
7
7
  const menuItem_1 = require("./components/menuItem");
8
8
  const classNames_1 = require("../commonHelpers/classNames/classNames");
@@ -63,7 +63,8 @@ const ControlledMenu = ({ children, isOpen, setIsOpen, triggerRef, ariaLabel, ar
63
63
  if (isMobile && path.length > 0) {
64
64
  const el = (0, findContent_1.findContent)(children, exports.ControlledMenu.Item, path[path.length - 1]);
65
65
  if (el || (0, react_1.isValidElement)(el)) {
66
- currentChildren = el.props.children;
66
+ const elProps = el.props;
67
+ currentChildren = elProps.children;
67
68
  par = el;
68
69
  }
69
70
  }
@@ -76,14 +77,14 @@ const ControlledMenu = ({ children, isOpen, setIsOpen, triggerRef, ariaLabel, ar
76
77
  cont.push((0, jsx_runtime_1.jsx)("li", { role: "presentation", className: (0, classNames_1.classNames)(["zen-menu-item__content"]), children: child }, (0, utils_1.generateId)()));
77
78
  return;
78
79
  }
79
- if (child.type === menuSeparator_1.MenuSeparator) {
80
+ if ((0, react_1.isValidElement)(child) && (0, menuSeparator_1.isSeparator)(child)) {
80
81
  const clone = (0, react_1.cloneElement)(child, {
81
82
  key: child.props.key || (0, utils_1.generateId)()
82
83
  });
83
84
  cont.push(clone);
84
85
  return;
85
86
  }
86
- if (child.type === exports.ControlledMenu.Item) {
87
+ if ((0, react_1.isValidElement)(child) && (0, menuItem_1.isMenuItem)(child)) {
87
88
  const clone = (0, react_1.cloneElement)(child, {
88
89
  isMobile,
89
90
  key: child.props.id,
@@ -93,17 +94,17 @@ const ControlledMenu = ({ children, isOpen, setIsOpen, triggerRef, ariaLabel, ar
93
94
  cont.push(clone);
94
95
  return;
95
96
  }
96
- cont.push((0, jsx_runtime_1.jsx)("li", { className: (0, classNames_1.classNames)(["zen-menu-item__content"]), role: "presentation", children: child }, child.props.id || child.props["data-id"] || (0, utils_1.generateId)()));
97
+ const childProps = child.props;
98
+ cont.push((0, jsx_runtime_1.jsx)("li", { className: (0, classNames_1.classNames)(["zen-menu-item__content"]), role: "presentation", children: child }, childProps.id || childProps["data-id"] || (0, utils_1.generateId)()));
97
99
  });
98
- while (cont[0] && cont[0].type === menuSeparator_1.MenuSeparator) {
100
+ while (cont[0] && (0, menuSeparator_1.isSeparator)(cont[0])) {
99
101
  cont.shift();
100
102
  }
101
- while (cont[cont.length - 1] && cont[cont.length - 1].type === menuSeparator_1.MenuSeparator) {
103
+ while (cont[cont.length - 1] && (0, menuSeparator_1.isSeparator)(cont[cont.length - 1])) {
102
104
  cont.pop();
103
105
  }
104
106
  cont = cont.filter((el, indx, arr) => {
105
- var _a;
106
- if (el.type === menuSeparator_1.MenuSeparator && ((_a = arr[indx - 1]) === null || _a === void 0 ? void 0 : _a.type) === menuSeparator_1.MenuSeparator) {
107
+ if ((0, menuSeparator_1.isSeparator)(el) && arr[indx - 1] && (0, menuSeparator_1.isSeparator)(arr[indx - 1])) {
107
108
  return false;
108
109
  }
109
110
  return true;
@@ -143,7 +144,7 @@ const ControlledMenu = ({ children, isOpen, setIsOpen, triggerRef, ariaLabel, ar
143
144
  }
144
145
  }
145
146
  };
146
- const renderMenuList = () => (0, jsx_runtime_1.jsx)("div", { onKeyDown: onKeyDown, className: (0, classNames_1.classNames)(["zen-action-list", className]), children: (0, jsx_runtime_1.jsxs)("ul", { role: "menu", className: (0, classNames_1.classNames)(["zen-menu-item", className, listClassName]), children: [parent ? (0, jsx_runtime_1.jsx)(menuButton_1.MenuButton, { id: "root", name: parent.props.name, icon: iconArrowLeft_1.IconArrowLeft, onClick: closeBranch, hasChildren: false, disabled: false }, "root") : null, content] }) });
147
+ const renderMenuList = () => (0, jsx_runtime_1.jsx)("div", { onKeyDown: onKeyDown, className: (0, classNames_1.classNames)(["zen-action-list", className]), children: (0, jsx_runtime_1.jsxs)("ul", { role: "menu", className: (0, classNames_1.classNames)(["zen-menu-item", className, listClassName]), children: [parent ? (0, jsx_runtime_1.jsx)(menuButton_1.MenuButton, { id: "root", name: parent.props.name || "", icon: iconArrowLeft_1.IconArrowLeft, onClick: closeBranch, hasChildren: false, disabled: false }, "root") : null, content] }) });
147
148
  const hideMenu = (0, react_1.useCallback)(() => {
148
149
  closeBranch();
149
150
  setIsOpen(false);
@@ -5,7 +5,7 @@ import { TAlignment } from "../absolute/absolute";
5
5
  import { IMenuSeparator } from "./components/menuSeparator";
6
6
  export interface IMenu extends Pick<IZenComponentProps, "children"> {
7
7
  trigger?: ReactElement;
8
- triggerRef?: RefObject<HTMLElement>;
8
+ triggerRef?: RefObject<HTMLElement | null>;
9
9
  title: string;
10
10
  alignment?: TAlignment;
11
11
  ariaLabel?: string;
package/dist/menu/menu.js CHANGED
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Menu = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
+ /* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument */
5
6
  const react_1 = require("react");
6
7
  const controlledMenu_1 = require("./controlledMenu");
7
8
  const menuItem_1 = require("./components/menuItem");
@@ -11,6 +12,7 @@ const classNames_1 = require("../commonHelpers/classNames/classNames");
11
12
  const Menu =
12
13
  // eslint-disable-next-line react/prop-types
13
14
  ({ children, title, trigger, triggerRef, ariaLabel, ariaLabelledBy, alignment = "bottom-left", className }) => {
15
+ var _a;
14
16
  const [isOpen, setIsOpen] = (0, react_1.useState)(false);
15
17
  const innerRef = (0, react_1.useRef)(null);
16
18
  const shouldRenderTrigger = !!trigger;
@@ -31,7 +33,7 @@ const Menu =
31
33
  }
32
34
  }, [triggerRef, isOpen, shouldRenderTrigger]);
33
35
  const triggerComp = shouldRenderTrigger ? renderTrigger() : null;
34
- return (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [triggerComp, (0, jsx_runtime_1.jsx)(controlledMenu_1.ControlledMenu, { alignment: alignment, ariaLabel: ariaLabel, ariaLabelledby: ariaLabelledBy || (triggerComp === null || triggerComp === void 0 ? void 0 : triggerComp.props.id), isOpen: isOpen, setIsOpen: setIsOpen, triggerRef: ref, title: title, className: (0, classNames_1.classNames)(["zen-menu", className || ""]), children: children })] });
36
+ return (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [triggerComp, (0, jsx_runtime_1.jsx)(controlledMenu_1.ControlledMenu, { alignment: alignment, ariaLabel: ariaLabel, ariaLabelledby: ariaLabelledBy || ((_a = triggerComp === null || triggerComp === void 0 ? void 0 : triggerComp.props) === null || _a === void 0 ? void 0 : _a.id), isOpen: isOpen, setIsOpen: setIsOpen, triggerRef: ref, title: title, className: (0, classNames_1.classNames)(["zen-menu", className || ""]), children: children })] });
35
37
  };
36
38
  exports.Menu = Menu;
37
39
  exports.Menu.Item = menuItem_1.MenuItem;
@@ -11,12 +11,13 @@ const findContent = (children, targetComponent, id) => {
11
11
  if (found || !react_1.default.isValidElement(child)) {
12
12
  return;
13
13
  }
14
- if (id ? child.type === targetComponent && child.props.id === id : child.type === targetComponent) {
14
+ const childProps = child.props;
15
+ if (id ? child.type === targetComponent && childProps.id === id : child.type === targetComponent) {
15
16
  found = child;
16
17
  return;
17
18
  }
18
- if (child.props.children) {
19
- found = (0, exports.findContent)(child.props.children, targetComponent, id);
19
+ if (childProps.children) {
20
+ found = (0, exports.findContent)(childProps.children, targetComponent, id);
20
21
  }
21
22
  });
22
23
  return found;
@@ -1,10 +1,10 @@
1
- import React from "react";
1
+ import React, { RefObject } from "react";
2
2
  import { IZenComponentProps } from "../commonHelpers/zenComponent";
3
3
  export interface IMiniTabsHeaderItem extends IZenComponentProps {
4
4
  id: string;
5
5
  isActive: boolean;
6
6
  handleClick: (e: React.MouseEvent<HTMLElement>) => void;
7
7
  children: string;
8
- buttonRef?: React.RefObject<HTMLButtonElement>;
8
+ buttonRef?: RefObject<HTMLButtonElement | null>;
9
9
  }
10
10
  export declare const MiniTabsHeaderItem: React.FC<IMiniTabsHeaderItem>;
@@ -1,5 +1,5 @@
1
1
  import React, { ReactElement } from "react";
2
2
  import { IMiniTabsItem, MiniTabsItem } from "./miniTabsItem";
3
3
  export declare const getChildren: (elem: ReactElement<typeof MiniTabsItem> | ReactElement<typeof MiniTabsItem>[] | undefined) => React.ReactElement<React.FC<IMiniTabsItem>, string | React.JSXElementConstructor<any>>[] | undefined;
4
- export declare const convertChild: (child: React.ReactElement) => any;
4
+ export declare const convertChild: (child: React.ReactNode) => IMiniTabsItem | IMiniTabsItem[] | undefined;
5
5
  export declare const getChildrenForRender: (children: React.ReactElement<typeof MiniTabsItem> | React.ReactElement<typeof MiniTabsItem>[]) => IMiniTabsItem[];
@@ -1,10 +1,30 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
4
24
  };
5
25
  Object.defineProperty(exports, "__esModule", { value: true });
6
26
  exports.getChildrenForRender = exports.convertChild = exports.getChildren = void 0;
7
- const react_1 = __importDefault(require("react"));
27
+ const react_1 = __importStar(require("react"));
8
28
  const miniTabsItem_1 = require("./miniTabsItem");
9
29
  const getChildren = (elem) => {
10
30
  if (!elem) {
@@ -16,22 +36,47 @@ const getChildren = (elem) => {
16
36
  return [elem];
17
37
  };
18
38
  exports.getChildren = getChildren;
39
+ const hasChildren = (child) => {
40
+ if (!(0, react_1.isValidElement)(child)) {
41
+ return false;
42
+ }
43
+ const childElement = child;
44
+ return "children" in childElement.props && react_1.Children.count(childElement.props.children) > 0;
45
+ };
19
46
  const convertChild = (child) => {
47
+ if (!(0, react_1.isValidElement)(child)) {
48
+ return undefined;
49
+ }
20
50
  if (child.type === miniTabsItem_1.MiniTabsItem) {
21
51
  return Object.assign({}, child.props);
22
52
  }
23
- if (child.type === react_1.default.Fragment && child.props.children) {
24
- if (Array.isArray(child.props.children)) {
25
- return [...child.props.children].filter(el => (el.type === miniTabsItem_1.MiniTabsItem)).map(el => el.props);
53
+ if (child.type === react_1.default.Fragment && hasChildren(child)) {
54
+ const fragmentProps = child.props;
55
+ if (fragmentProps.children && Array.isArray(fragmentProps.children)) {
56
+ return fragmentProps.children
57
+ .filter((el) => (0, react_1.isValidElement)(el) && el.type === miniTabsItem_1.MiniTabsItem)
58
+ .map(el => (Object.assign({}, el.props)));
26
59
  }
27
- return child.props.children.type === miniTabsItem_1.MiniTabsItem ? Object.assign({}, child.props.children.props) : undefined;
60
+ const nestedChild = fragmentProps.children;
61
+ return (0, react_1.isValidElement)(nestedChild) && nestedChild.type === miniTabsItem_1.MiniTabsItem ? Object.assign({}, nestedChild.props) : undefined;
28
62
  }
29
63
  return undefined;
30
64
  };
31
65
  exports.convertChild = convertChild;
32
66
  const getChildrenForRender = (children) => {
33
- var _a;
34
- const childElements = (_a = (0, exports.getChildren)(children)) === null || _a === void 0 ? void 0 : _a.map(exports.convertChild).filter(el => el).reduce((acc, curr) => acc.concat(curr), []);
35
- return childElements || [];
67
+ const childrenArray = react_1.Children.toArray(children);
68
+ const result = [];
69
+ childrenArray.forEach((child) => {
70
+ const converted = (0, exports.convertChild)(child);
71
+ if (converted) {
72
+ if (Array.isArray(converted)) {
73
+ result.push(...converted);
74
+ }
75
+ else {
76
+ result.push(converted);
77
+ }
78
+ }
79
+ });
80
+ return result;
36
81
  };
37
82
  exports.getChildrenForRender = getChildrenForRender;
@@ -12,11 +12,6 @@ export interface IMobileSheet extends IZenComponentProps, Pick<ISidePanel, "trig
12
12
  useTrapFocusWithTrigger?: boolean;
13
13
  onCloseClick?: () => void;
14
14
  onBackClick?: () => void;
15
- /**
16
- * @deprecated
17
- * @param translate - will be removed in the next major release
18
- */
19
- translate?: (s: string) => string;
20
15
  onReadyForFocus?: (currentIsOpen: boolean) => void;
21
16
  wrapperClassName?: string;
22
17
  }
@@ -37,15 +37,15 @@ const MobileSheet =
37
37
  const f = [];
38
38
  const t = [];
39
39
  react_1.Children.forEach(children, (child) => {
40
- if (!f.length && child.type === exports.MobileSheet.Footer) {
40
+ if (!f.length && (0, react_1.isValidElement)(child) && child.type === exports.MobileSheet.Footer) {
41
41
  f.push(child);
42
42
  return;
43
43
  }
44
- if (!c.length && child.type === exports.MobileSheet.Content) {
44
+ if (!c.length && (0, react_1.isValidElement)(child) && child.type === exports.MobileSheet.Content) {
45
45
  c.push(child);
46
46
  return;
47
47
  }
48
- if (!t.length && child.type === exports.MobileSheet.Title) {
48
+ if (!t.length && (0, react_1.isValidElement)(child) && child.type === exports.MobileSheet.Title) {
49
49
  t.push(child);
50
50
  return;
51
51
  }
@@ -82,7 +82,7 @@ const MobileSheet =
82
82
  (0, jsx_runtime_1.jsx)(textIconButton_1.TextIconButton, { onClick: (e) => {
83
83
  e.stopPropagation();
84
84
  onBackClick === null || onBackClick === void 0 ? void 0 : onBackClick();
85
- }, "aria-label": backButtonAriaLabel || ((_b = (_a = title[0]) === null || _a === void 0 ? void 0 : _a.props) === null || _b === void 0 ? void 0 : _b.children) || translate("Back"), type: buttonType_1.ButtonType.TertiaryBlack, className: "zen-mobile-sheet__back-button", iconPosition: textIconButton_1.ButtonIconPosition.Start, icon: iconBackArrow_1.IconBackArrow, contentClasses: "ellipsis", children: title[0] }) : (0, jsx_runtime_1.jsx)("span", { className: "zen-mobile-sheet__title-text", children: title[0] }), (0, jsx_runtime_1.jsx)(textIconButton_1.TextIconButton, { onClick: onCloseClick, "aria-label": translate("Close"), iconSize: isDrive ? "huge" : "large", type: buttonType_1.ButtonType.TertiaryBlack, iconPosition: textIconButton_1.ButtonIconPosition.Start, className: "zen-mobile-sheet__close-button", icon: iconClose_1.IconClose })] }), (0, jsx_runtime_1.jsx)("div", { className: "zen-mobile-sheet__content", children: content[0] }), (0, jsx_runtime_1.jsx)("div", { className: (0, classNames_1.classNames)(["zen-mobile-sheet__footer", driveFooterClassName || ""]), children: footer[0] })] }) })] });
85
+ }, "aria-label": backButtonAriaLabel || (((_b = (_a = title[0]) === null || _a === void 0 ? void 0 : _a.props) === null || _b === void 0 ? void 0 : _b.children) || translate("Back")), type: buttonType_1.ButtonType.TertiaryBlack, className: "zen-mobile-sheet__back-button", iconPosition: textIconButton_1.ButtonIconPosition.Start, icon: iconBackArrow_1.IconBackArrow, contentClasses: "ellipsis", children: title[0] }) : (0, jsx_runtime_1.jsx)("span", { className: "zen-mobile-sheet__title-text", children: title[0] }), (0, jsx_runtime_1.jsx)(textIconButton_1.TextIconButton, { onClick: onCloseClick, "aria-label": translate("Close"), iconSize: isDrive ? "huge" : "large", type: buttonType_1.ButtonType.TertiaryBlack, iconPosition: textIconButton_1.ButtonIconPosition.Start, className: "zen-mobile-sheet__close-button", icon: iconClose_1.IconClose })] }), (0, jsx_runtime_1.jsx)("div", { className: "zen-mobile-sheet__content", children: content[0] }), (0, jsx_runtime_1.jsx)("div", { className: (0, classNames_1.classNames)(["zen-mobile-sheet__footer", driveFooterClassName || ""]), children: footer[0] })] }) })] });
86
86
  };
87
87
  exports.MobileSheet = MobileSheet;
88
88
  exports.TRANSLATIONS = [
@@ -67,6 +67,9 @@ const Modal = ({ isOpen, children, onClose, closeOnClickOutside, maxWidth, title
67
67
  if (isOpen) {
68
68
  document.body.classList.add("zen-modal-content--hidden-overflow");
69
69
  }
70
+ return () => {
71
+ document.body.classList.remove("zen-modal-content--hidden-overflow");
72
+ };
70
73
  }, [isOpen]);
71
74
  (0, react_1.useEffect)(() => {
72
75
  const changeTopSpace = () => {
package/dist/nav/nav.js CHANGED
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Nav = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
+ /* eslint-disable max-len */
5
6
  const classNames_1 = require("../commonHelpers/classNames/classNames");
6
7
  const nav_context_1 = require("./context/nav.context");
7
8
  const react_1 = require("react");
@@ -59,7 +60,7 @@ const Nav = ({ children, className, collapsed = false, onCollapseToggle, onMenuV
59
60
  const [isSearchOpen, setIsSearchOpen] = (0, react_1.useState)(false);
60
61
  const [searchTerm, setSearchTerm] = (0, react_1.useState)("");
61
62
  const isMobile = (0, useMobile_1.useMobile)();
62
- const prevIsMobileRef = (0, react_1.useRef)();
63
+ const prevIsMobileRef = (0, react_1.useRef)(false);
63
64
  // Focus the first active element inside the Nav when mobile menu opens
64
65
  (0, react_1.useLayoutEffect)(() => {
65
66
  var _a;
@@ -28,9 +28,12 @@ const NavHeaderComponent = ({ className, logo, logoLink, imgTitle, collapsedLogo
28
28
  const element = child;
29
29
  return element.type && element.type.displayName === "NavItem";
30
30
  })
31
- .map(child => (0, react_1.cloneElement)(child, {
31
+ .map(child => (0, react_1.cloneElement)(
32
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
33
+ child, {
32
34
  className: (0, classNames_1.classNames)([
33
35
  "zen-nav-item--level-2",
36
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
34
37
  child.props.className || ""
35
38
  ]),
36
39
  collapsed: false
@@ -7,4 +7,4 @@ export declare function isImageUrl(str?: string | ReactNode): boolean;
7
7
  export declare const filterPrimaryNavItems: <T extends {
8
8
  children?: ReactNode;
9
9
  }>(element: ReactElement<T>, isNegative: boolean) => ReactElement<T> | null;
10
- export declare const collectNavItems: (element: ReactElement) => ReactElement<ILinkNavItem | IButtonNavItem>[];
10
+ export declare const collectNavItems: (element: ReactElement) => (ReactElement<ILinkNavItem> | ReactElement<IButtonNavItem>)[];
@@ -35,13 +35,13 @@ function isImageUrl(str) {
35
35
  return false;
36
36
  }
37
37
  exports.isImageUrl = isImageUrl;
38
+ const isNavItem = (element) => element.type && element.type.displayName === "NavItem";
38
39
  const filterPrimaryNavItems = (element, isNegative) => {
39
- const isNavItem = element.type && element.type.displayName === "NavItem";
40
40
  const children = element.props.children;
41
- if (!isNavItem && !children) {
41
+ if (!isNavItem(element) && !children) {
42
42
  return element;
43
43
  }
44
- if (!isNavItem && children) {
44
+ if (!isNavItem(element) && children) {
45
45
  const filteredChildren = react_1.Children.map(children, child => (0, exports.filterPrimaryNavItems)(child, isNegative));
46
46
  if (!filteredChildren) {
47
47
  return null;
@@ -49,7 +49,7 @@ const filterPrimaryNavItems = (element, isNegative) => {
49
49
  const validChildren = filteredChildren.filter(Boolean);
50
50
  return validChildren.length > 0 ? Object.assign(Object.assign({}, element), { props: Object.assign(Object.assign({}, element.props), { children: validChildren }) }) : null;
51
51
  }
52
- if (isNavItem) {
52
+ if (isNavItem(element)) {
53
53
  const itemProps = element.props;
54
54
  const isPrimary = itemProps.isPrimary;
55
55
  const shouldInclude = isNegative ? isPrimary !== true : isPrimary === true;
@@ -70,10 +70,9 @@ const filterPrimaryNavItems = (element, isNegative) => {
70
70
  };
71
71
  exports.filterPrimaryNavItems = filterPrimaryNavItems;
72
72
  const collectNavItems = (element) => {
73
- const isNavItem = element.type && element.type.displayName === "NavItem";
74
- const childrenArray = react_1.Children.toArray(element.props.children);
73
+ const childrenArray = (0, react_1.isValidElement)(element) ? react_1.Children.toArray(element.props.children) : [];
75
74
  const children = childrenArray.filter((child) => Boolean(child && typeof child === "object" && "type" in child));
76
- if (isNavItem) {
75
+ if (isNavItem(element)) {
77
76
  return [element];
78
77
  }
79
78
  return children.length > 0
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import { RefObject } from "react";
2
2
  import { IZenComponentProps } from "../commonHelpers/zenComponent";
3
3
  import "./notification.less";
4
4
  export type NotificationType = "error" | "info" | "success" | "warning";
@@ -10,6 +10,7 @@ export interface INotificationProps extends IZenComponentProps {
10
10
  type?: NotificationType;
11
11
  id?: string;
12
12
  isCollapsible?: boolean;
13
+ ref?: RefObject<HTMLDivElement | null>;
13
14
  footerButtons?: {
14
15
  teritary?: {
15
16
  title?: string;
@@ -25,5 +26,5 @@ export interface INotificationProps extends IZenComponentProps {
25
26
  };
26
27
  };
27
28
  }
28
- export declare const Notification: import("react").ForwardRefExoticComponent<INotificationProps & import("react").RefAttributes<HTMLDivElement>>;
29
+ export declare const Notification: ({ id, isCollapsible, type, title, text, footerButtons, className, onClose, isOpen, ref }: INotificationProps) => import("react/jsx-runtime").JSX.Element;
29
30
  export declare const TRANSLATIONS: string[];
@@ -16,9 +16,7 @@ const iconHexonalWarning_1 = require("../icons/iconHexonalWarning");
16
16
  const iconCheckRadio_1 = require("../icons/iconCheckRadio");
17
17
  const iconDiamondWarning_1 = require("../icons/iconDiamondWarning");
18
18
  const useLanguage_1 = require("../utils/localization/useLanguage");
19
- exports.Notification =
20
- // eslint-disable-next-line @typescript-eslint/naming-convention
21
- (0, react_1.forwardRef)(function InnerNotification({ id, isCollapsible = true, type, title, text, footerButtons, className, onClose, isOpen = true }, ref) {
19
+ const Notification = ({ id, isCollapsible = true, type, title, text, footerButtons, className, onClose, isOpen = true, ref }) => {
22
20
  const getIcon = (0, react_1.useCallback)((t) => {
23
21
  switch (t) {
24
22
  case "error": return iconHexonalWarning_1.IconHexonalWarning;
@@ -33,7 +31,8 @@ exports.Notification =
33
31
  size: "huge",
34
32
  className: `zen-push__icon--${type || "info"}`
35
33
  }) }), (0, jsx_runtime_1.jsx)("div", { className: `zen-push__title zen-push__title--${type || "info"}`, children: title })] }), (0, jsx_runtime_1.jsxs)("div", { className: "zen-push__body", children: [(0, jsx_runtime_1.jsx)("div", { className: "zen-push__text", children: text }), (0, jsx_runtime_1.jsx)("div", { className: "zen-push__body-buttons", children: footerButtons && (0, jsx_runtime_1.jsxs)("div", { className: "zen-push__body-buttons", children: [footerButtons.teritary && (0, jsx_runtime_1.jsx)(button_1.Button, { title: footerButtons.teritary.title, type: buttonType_1.ButtonType.Tertiary, className: `zen-push__button zen-push__tertiary-button zen-push__tertiary-button--${type || "info"}`, onClick: footerButtons.teritary.onClick, link: footerButtons.teritary.link, children: footerButtons.teritary.text }), footerButtons.primary && (0, jsx_runtime_1.jsx)(button_1.Button, { onClick: footerButtons.primary.onClick, link: footerButtons.primary.link, className: "zen-push__button zen-push__primary-button zen-push__primary-button--" + (type || "info"), title: footerButtons.primary.title, type: buttonType_1.ButtonType.Primary, children: footerButtons.primary.text })] }) })] })] }), isCollapsible && (0, jsx_runtime_1.jsx)("div", { className: "zen-push__actions", children: (0, jsx_runtime_1.jsx)("button", { type: "button", className: (0, classNames_1.classNames)(["zen-push__close-button", `zen-push__close-button--${type || "info"}`]), onClick: onClose, title: translate("Close"), "aria-label": translate("Close"), children: (0, jsx_runtime_1.jsx)(iconCrossThin_1.IconCrossThin, {}) }) })] }) });
36
- });
34
+ };
35
+ exports.Notification = Notification;
37
36
  exports.TRANSLATIONS = [
38
37
  "Close"
39
38
  ];
@@ -1,6 +1,6 @@
1
- import * as React from "react";
2
1
  import "./pill.less";
3
2
  import { IZenComponentProps } from "../commonHelpers/zenComponent";
3
+ import { RefObject } from "react";
4
4
  export declare enum PillSize {
5
5
  Normal = "normal",
6
6
  Small = "small"
@@ -16,8 +16,9 @@ export interface IPill extends IZenComponentProps {
16
16
  type?: PillType;
17
17
  long?: boolean;
18
18
  size?: PillSize;
19
+ ref?: RefObject<HTMLDivElement | null>;
19
20
  }
20
21
  /**
21
22
  * @deprecated - will be removed in the next releases.
22
23
  */
23
- export declare const Pill: React.ForwardRefExoticComponent<IPill & React.RefAttributes<HTMLDivElement>>;
24
+ export declare const Pill: ({ children, className, type, long, size, ref, ...restProps }: IPill) => import("react/jsx-runtime").JSX.Element;
@@ -1,27 +1,4 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
2
  var __rest = (this && this.__rest) || function (s, e) {
26
3
  var t = {};
27
4
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -36,7 +13,6 @@ var __rest = (this && this.__rest) || function (s, e) {
36
13
  Object.defineProperty(exports, "__esModule", { value: true });
37
14
  exports.Pill = exports.PillType = exports.PillSize = void 0;
38
15
  const jsx_runtime_1 = require("react/jsx-runtime");
39
- const React = __importStar(require("react"));
40
16
  const classNames_1 = require("../commonHelpers/classNames/classNames");
41
17
  var PillSize;
42
18
  (function (PillSize) {
@@ -68,11 +44,12 @@ const getPillTypeClassName = (type) => pillClassesByType[type] || "";
68
44
  * 2. Rename .zen-pill-new-content to zen-pill-content
69
45
  * 3. Remove commonStyles/pillStyles/pillStyles.less
70
46
  */
71
- exports.Pill = React.forwardRef(function pill(_a, ref) {
72
- var { children, className = "", type, long, size = PillSize.Normal } = _a, restProps = __rest(_a, ["children", "className", "type", "long", "size"]);
47
+ const Pill = (_a) => {
48
+ var { children, className = "", type, long, size = PillSize.Normal, ref } = _a, restProps = __rest(_a, ["children", "className", "type", "long", "size", "ref"]);
73
49
  const pillTypeClass = getPillTypeClassName(type || "");
74
50
  const pillLongClass = long ? "zen-pill--long" : "";
75
51
  const pillSizeClass = size === PillSize.Small ? "zen-pill--small" : "";
76
52
  const pillClasses = (0, classNames_1.classNames)(["zen-pill", pillTypeClass, pillLongClass, pillSizeClass, className]);
77
53
  return (0, jsx_runtime_1.jsx)("div", Object.assign({}, restProps, { className: pillClasses, ref: ref, children: children }));
78
- });
54
+ };
55
+ exports.Pill = Pill;
@@ -16,7 +16,7 @@ const pageHeaderHelpers_1 = require("./pageHeaderHelpers");
16
16
  const PageHeaderActions = ({ className = "", children }) => {
17
17
  const childrenArray = (0, react_1.useMemo)(() => (0, pageHeaderHelpers_1.getItemsFromFragments)(
18
18
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
19
- (0, headerHelpers_1.getArrayOfChildren)(children).filter((child) => child !== null && child !== undefined && react_2.default.isValidElement(child))), [children]);
19
+ react_1.Children.toArray(children).filter((child) => child !== null && child !== undefined && react_2.default.isValidElement(child))), [children]);
20
20
  const nonFittingElements = (0, react_1.useMemo)(() => childrenArray.slice(2, childrenArray.length), [childrenArray]);
21
21
  const fittingElements = (0, react_1.useMemo)(() => childrenArray.slice(0, 2).map(el => {
22
22
  if ((0, headerHelpers_1.isNamedChildComponent)(el, pageHeaderButton_1.PageHeaderButtonDisplayName)) {
@@ -1,4 +1,4 @@
1
1
  import { ReactElement } from "react";
2
2
  import React from "react";
3
- export declare const getItemsFromFragments: <T extends ReactElement<any, string | React.JSXElementConstructor<any>>>(items: T[]) => T[];
4
- export declare const regulatePageHeaderChildren: (children: ReactElement | ReactElement[] | (ReactElement | null | undefined)[] | null | undefined) => ReactElement<any, string | React.JSXElementConstructor<any>>[][];
3
+ export declare const getItemsFromFragments: <T extends ReactElement<unknown, string | React.JSXElementConstructor<any>>>(items: T[]) => T[];
4
+ export declare const regulatePageHeaderChildren: (children: ReactElement | ReactElement[] | (ReactElement | null | undefined)[] | null | undefined) => ReactElement<unknown, string | React.JSXElementConstructor<any>>[][];
@@ -16,8 +16,9 @@ const getItemsFromFragments = (items) => {
16
16
  const itemsArr = [];
17
17
  react_1.default.Children.forEach(items, (child) => {
18
18
  if (react_1.default.isValidElement(child) && child.type === react_1.default.Fragment) {
19
- if (child.props && child.props.children) {
20
- const fragmentArr = (0, headerHelpers_1.getArrayOfChildren)(child.props.children);
19
+ const fragmentProps = child.props;
20
+ if (fragmentProps && fragmentProps.children) {
21
+ const fragmentArr = (0, headerHelpers_1.getArrayOfChildren)(fragmentProps.children);
21
22
  itemsArr.push(...fragmentArr.filter((el) => react_1.default.isValidElement(el)));
22
23
  }
23
24
  }
@@ -1,7 +1,11 @@
1
- import * as React from "react";
1
+ import { RefObject } from "react";
2
2
  import { IZenComponentProps } from "../../commonHelpers/zenComponent";
3
3
  export interface IPageContentLayout extends IZenComponentProps {
4
4
  id?: string;
5
5
  oldStyle?: boolean;
6
+ ref?: RefObject<HTMLDivElement | null>;
6
7
  }
7
- export declare const PageContentLayout: React.ForwardRefExoticComponent<IPageContentLayout & React.RefAttributes<HTMLDivElement>>;
8
+ export declare const PageContentLayout: {
9
+ ({ id, className, children, oldStyle, ref }: IPageContentLayout): import("react/jsx-runtime").JSX.Element;
10
+ displayName: string;
11
+ };
@@ -1,39 +1,16 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
2
  Object.defineProperty(exports, "__esModule", { value: true });
26
3
  exports.PageContentLayout = void 0;
27
4
  const jsx_runtime_1 = require("react/jsx-runtime");
28
- const React = __importStar(require("react"));
29
5
  const classNames_1 = require("../../commonHelpers/classNames/classNames");
30
6
  // eslint-disable-next-line @typescript-eslint/naming-convention
31
- exports.PageContentLayout = React.forwardRef(function PageContentLayout({ id, className, children, oldStyle }, ref) {
7
+ const PageContentLayout = ({ id, className, children, oldStyle, ref }) => {
32
8
  const cssClassName = (0, classNames_1.classNames)([
33
9
  "zen-page-layout__content",
34
10
  oldStyle ? "zen-page-layout__content--old" : "",
35
11
  className || ""
36
12
  ]);
37
13
  return (0, jsx_runtime_1.jsx)("div", { id: id, className: cssClassName, ref: ref, children: children });
38
- });
14
+ };
15
+ exports.PageContentLayout = PageContentLayout;
39
16
  exports.PageContentLayout.displayName = "PageContentLayout";
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React, { RefObject } from "react";
2
2
  import "./pagination.less";
3
3
  import { IZenComponentProps } from "../commonHelpers/zenComponent";
4
4
  import { PaginationType } from "./paginationType";
@@ -7,15 +7,10 @@ export interface IPagination extends IZenComponentProps {
7
7
  total: number;
8
8
  perPage: number;
9
9
  onChange: (newActivePage: number) => void;
10
- /**
11
- * @deprecated
12
- * @param translate - will be removed in the next major release
13
- */
14
- translate?: (s: string) => string;
15
10
  className?: string;
16
11
  includeText?: boolean;
17
12
  type?: PaginationType;
18
- gridRef?: React.RefObject<HTMLElement>;
13
+ gridRef?: RefObject<HTMLElement | null>;
19
14
  disabled?: boolean;
20
15
  }
21
16
  export declare const Pagination: React.FC<IPagination>;
@@ -3,11 +3,6 @@ interface IPaginationText {
3
3
  amount: number;
4
4
  from: number;
5
5
  to: number;
6
- /**
7
- * @deprecated
8
- * @param translate - will be removed in the next major release
9
- */
10
- translate?: (s: string) => string;
11
6
  }
12
7
  export declare const PaginationText: React.FC<IPaginationText>;
13
8
  export declare const TRANSLATIONS: string[];