@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.
- package/README.md +40 -0
- package/dist/absolute/absolute.d.ts +2 -2
- package/dist/accordion/accordionItem/accordionItem.d.ts +2 -2
- package/dist/accordion/accordionItem/accordionItem.js +9 -1
- package/dist/advancedGroupsFilter/advancedGroupsFilter.d.ts +0 -5
- package/dist/advancedGroupsFilter/advancedGroupsFilterForm.d.ts +0 -5
- package/dist/advancedGroupsFilter/advancedGroupsFilterFormSection.d.ts +0 -5
- package/dist/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.d.ts +0 -5
- package/dist/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.js +1 -2
- package/dist/alert/hooks/useAlertState.d.ts +1 -1
- package/dist/alertRaw/alertRaw.d.ts +4 -2
- package/dist/alertRaw/alertRaw.js +3 -4
- package/dist/banner/banner.d.ts +0 -15
- package/dist/banner/bannerUtils.d.ts +0 -2
- package/dist/banner/bannerUtils.js +1 -0
- package/dist/betaPill/betaPill.d.ts +0 -5
- package/dist/bulkEditControl/bulkEditControl.d.ts +0 -5
- package/dist/button/button.d.ts +6 -1
- package/dist/button/button.js +4 -27
- package/dist/calendar/calendar.d.ts +0 -5
- package/dist/card/card.d.ts +4 -7
- package/dist/card/card.js +7 -4
- package/dist/card/components/status.d.ts +0 -5
- package/dist/card/components/title.d.ts +2 -0
- package/dist/card/components/title.js +11 -6
- package/dist/card/hooks/useCardSize.d.ts +2 -1
- package/dist/cardContainer/cardContainer.d.ts +3 -2
- package/dist/cardContainer/cardContainer.js +3 -4
- package/dist/chart/lineChart/useChartTicks.d.ts +1 -1
- package/dist/chart/lineChart/useSummary.d.ts +1 -1
- package/dist/checkboxListWithAction/checkboxListWithAction.d.ts +0 -5
- package/dist/chip/utils/useChip.d.ts +1 -1
- package/dist/columnsSelector/columnsSelector.d.ts +0 -5
- package/dist/columnsSelector/columnsTab/columnsTab.d.ts +0 -5
- package/dist/columnsSelector/columnsTabGroup/columnsTabGroup.d.ts +0 -5
- package/dist/comboboxSelected/comboboxSelected.d.ts +0 -5
- package/dist/commonHelpers/arrowNavigation/hooks/useClearTimers.d.ts +3 -3
- package/dist/commonHelpers/arrowNavigation/hooks/useHoldOnScroll.d.ts +1 -1
- package/dist/commonHelpers/arrowNavigation/hooks/useManualScrolling.d.ts +2 -2
- package/dist/commonHelpers/arrowNavigation/hooks/useScrollWhileHolding.d.ts +2 -2
- package/dist/commonHelpers/hooks/useArrowKey.d.ts +2 -1
- package/dist/commonHelpers/hooks/useContainerTypeObserver.d.ts +2 -2
- package/dist/commonHelpers/hooks/useEscape.d.ts +2 -1
- package/dist/commonHelpers/hooks/useGridSize.d.ts +1 -1
- package/dist/commonHelpers/hooks/usePillSize.d.ts +1 -1
- package/dist/commonHelpers/hooks/useResizeObserver.d.ts +1 -1
- package/dist/commonHelpers/hooks/useTrapFocus.d.ts +2 -1
- package/dist/commonHelpers/ref.d.ts +2 -0
- package/dist/controlledPopup/controlledPopup.d.ts +2 -2
- package/dist/dataFeed/dataFeed.d.ts +2 -2
- package/dist/dataFeed/dataFeedColumnsItems.d.ts +2 -2
- package/dist/dataFeed/feedSelectControl/feedSelectControl.d.ts +6 -2
- package/dist/dataFeed/feedSelectControl/feedSelectControl.js +3 -3
- package/dist/dataGrid/cell/cell.js +1 -1
- package/dist/dataGrid/columns/actionLinkColumn/actionButtonsMobileWrapper.js +1 -1
- package/dist/dataGrid/columns/actionLinkColumn/actionLinkColumnWrapper.js +1 -1
- package/dist/dataGrid/columns/actionsColumn/actionsButton.d.ts +0 -5
- package/dist/dataGrid/columns/actionsColumn/actionsColumn.d.ts +4 -4
- package/dist/dataGrid/columns/actionsColumn/actionsColumnCell.d.ts +3 -2
- package/dist/dataGrid/columns/actionsColumn/actionsColumnCell.js +4 -3
- package/dist/dataGrid/columns/basicColumn.d.ts +1 -1
- package/dist/dataGrid/columns/checkboxColumn/checkboxColumnWrapper.d.ts +3 -3
- package/dist/dataGrid/columns/checkboxColumn/checkboxHeaderCell.d.ts +4 -4
- package/dist/dataGrid/columns/checkboxColumn/checkboxHeaderCell.js +2 -2
- package/dist/dataGrid/columns/checkboxColumn/limitedCheckboxColumnWrapper.d.ts +2 -2
- package/dist/dataGrid/columns/mainColumn/mainColumnWrapper.d.ts +1 -1
- package/dist/dataGrid/dataGrid.d.ts +1 -1
- package/dist/dataGrid/emptySearchList/emptySearchList.d.ts +0 -5
- package/dist/dataGrid/entitiesListActions/actions/columnsListButton.d.ts +4 -5
- package/dist/dataGrid/entitiesListActions/actions/columnsListButton.js +2 -4
- package/dist/dataGrid/entitiesListActions/actions/fullscreenButton.d.ts +4 -7
- package/dist/dataGrid/entitiesListActions/entitiesListActions.d.ts +1 -1
- package/dist/dataGrid/withActions/withActions.d.ts +6 -2
- package/dist/dataGrid/withActions/withActions.js +18 -16
- package/dist/dataGrid/withFlexibleColumns/components/columnSettings.d.ts +4 -4
- package/dist/dataGrid/withFlexibleColumns/components/columnSettings.js +2 -3
- package/dist/dataGrid/withFlexibleColumns/components/columnSettingsSidePanel.js +1 -1
- package/dist/dataGrid/withFlexibleColumns/withFlexibleColumns.d.ts +6 -7
- package/dist/dataGrid/withFlexibleColumns/withFlexibleColumns.js +123 -121
- package/dist/dataGrid/withLoading/withLoading.d.ts +7 -4
- package/dist/dataGrid/withLoading/withLoading.js +34 -32
- package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActionButton/bulkActionButton.d.ts +3 -2
- package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActionButton/bulkActionButton.js +3 -3
- package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActionLink/bulkActionLink.d.ts +3 -2
- package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActionLink/bulkActionLink.js +3 -3
- package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActions.d.ts +7 -8
- package/dist/dataGrid/withSelectableRows/components/bulkActions/bulkActions.js +6 -1
- package/dist/dataGrid/withSelectableRows/withLimitedSelectableRows.d.ts +6 -2
- package/dist/dataGrid/withSelectableRows/withLimitedSelectableRows.js +38 -36
- package/dist/dataGrid/withSelectableRows/withSelectableRows.d.ts +6 -5
- package/dist/dataGrid/withSelectableRows/withSelectableRows.js +165 -163
- package/dist/dataGrid/withSortableColumns/columns/sortableColumnWrapper.d.ts +0 -5
- package/dist/dataGrid/withSortableColumns/withSortableColumns.d.ts +3 -7
- package/dist/dataGrid/withSortableColumns/withSortableColumns.js +3 -3
- package/dist/dateInput/dateInput.d.ts +0 -4
- package/dist/dateInputInner/dateInputInner.d.ts +0 -5
- package/dist/dateInputInner/dateInputInnerControlBlock.d.ts +3 -3
- package/dist/dateInputInner/dateInputInnerControlBlock.js +4 -8
- package/dist/dateSelectionWrapper/dateSelectionWrapper.d.ts +0 -5
- package/dist/dialog/dialogContent.js +1 -1
- package/dist/dropdown/dropdown.d.ts +0 -5
- package/dist/dropdown/dropdownList.d.ts +1 -6
- package/dist/dropdown/dropdownPopup.d.ts +4 -4
- package/dist/dropdown/dropdownSearchableTrigger.d.ts +7 -8
- package/dist/dropdown/dropdownSearchableTrigger.js +5 -27
- package/dist/dropdown/dropdownTrigger.d.ts +2 -7
- package/dist/feedbackContainer/feedbackContext.d.ts +3 -3
- package/dist/feedbackContainer/hooks/useFeedbackAlert.d.ts +1 -1
- package/dist/feedbackContainer/hooks/useFeedbackAlertState.d.ts +1 -1
- package/dist/feedbackContainer/hooks/useFeedbackToast.d.ts +1 -1
- package/dist/feedbackContainer/hooks/useFeedbackToastState.d.ts +1 -1
- package/dist/filterButton/filterButton.d.ts +3 -2
- package/dist/filterButton/filterButton.js +4 -4
- package/dist/filters/components/filtersContainer.js +8 -4
- package/dist/filters/components/filtersDateRange.d.ts +1 -2
- package/dist/filters/components/filtersDropdown.d.ts +1 -1
- package/dist/filters/components/filtersItem.d.ts +2 -2
- package/dist/filters/components/filtersSearch.d.ts +6 -2
- package/dist/filters/components/filtersSearch.js +3 -2
- package/dist/filters/filters.js +20 -11
- package/dist/filters/filtersHelper.d.ts +1 -1
- package/dist/filters/filtersHelper.js +20 -14
- package/dist/filtersBar/components/filtersBarGroupsFilter/filtersBarGroupsFilter.d.ts +1 -1
- package/dist/filtersBar/components/filtersBarPeriodPicker/filtersBarPeriodPicker.d.ts +0 -5
- package/dist/filtersBar/components/resetComponentButton.d.ts +0 -5
- package/dist/filtersBar/filtersBar.d.ts +0 -5
- package/dist/filtersBar/filtersBar.js +3 -2
- package/dist/filtersBar/filtersBarActions/filtersBarActions.d.ts +1 -6
- package/dist/filtersBar/filtersBarProviderTrigger.d.ts +3 -3
- package/dist/filtersBar/filtersBarSidePanel/filtersBarSidePanel.d.ts +1 -6
- package/dist/filtersBar/filtersBarSidePanel/filtersBarSidePanel.js +1 -0
- package/dist/filtersBar/filtersContainer/filtersContainer.d.ts +0 -5
- package/dist/filtersBar/filtersContainer/filtersContainer.js +2 -2
- package/dist/filtersBar/utils/isCustomElementValid.js +7 -1
- package/dist/formField/formField.d.ts +6 -3
- package/dist/formField/formField.js +5 -9
- package/dist/formStepper/components/formStep.d.ts +2 -1
- package/dist/formStepper/components/formStep.js +3 -2
- package/dist/formStepper/components/formStepRaw.d.ts +2 -2
- package/dist/formStepper/components/formStepRaw.js +6 -4
- package/dist/formStepper/formStepper.d.ts +4 -1
- package/dist/formStepper/formStepper.js +20 -7
- package/dist/formStepper/utils/getOnClick.d.ts +1 -1
- package/dist/formStepper/utils/getOnClick.js +1 -1
- package/dist/formStepper/utils/getTabIndex.d.ts +1 -1
- package/dist/formStepper/utils/getTabIndex.js +4 -1
- package/dist/formStepperButtons/formStepperButtons.js +3 -2
- package/dist/gridLayout/hooks/useStretch.d.ts +1 -1
- package/dist/gridLayout/hooks/useStretch.js +3 -2
- package/dist/gridLayout/utils/isGridItem.d.ts +1 -1
- package/dist/groupsFilter/groupsFilter.d.ts +1 -16
- package/dist/groupsFilter/groupsFilter.js +6 -6
- package/dist/groupsFilter/groupsFilterAdjustmentState.d.ts +0 -5
- package/dist/groupsFilter/groupsFilterBox.d.ts +0 -5
- package/dist/groupsFilter/groupsFilterCommon.d.ts +0 -5
- package/dist/groupsFilter/groupsFilterCurrentlySelectedState.d.ts +0 -5
- package/dist/groupsFilter/groupsFilterCurrentlySelectedState.js +1 -3
- package/dist/groupsFilter/groupsFilterInitialState.d.ts +0 -5
- package/dist/groupsFilter/groupsFilterInitialState.js +1 -3
- package/dist/groupsFilter/groupsFilterMenu.d.ts +0 -5
- package/dist/groupsFilter/groupsFilterTrigger.d.ts +6 -7
- package/dist/groupsFilter/groupsFilterTrigger.js +5 -27
- package/dist/header/components/basicToolbar/basicToolbar.d.ts +2 -2
- package/dist/header/components/collapsedItemsControl/collapsedItemsControl.d.ts +1 -6
- package/dist/header/components/collapsedItemsControl/utils/handleCustomMenuWrapper.js +3 -3
- package/dist/header/components/mobileFilterControl/mobileFilterControl.d.ts +3 -8
- package/dist/header/components/mobileFilterControl/mobileFilterControl.js +3 -6
- package/dist/header/components/mobileSearchControl/mobileSearchControl.d.ts +0 -5
- package/dist/header/header.d.ts +0 -10
- package/dist/header/header.js +15 -2
- package/dist/header/headerHelpers.d.ts +3 -3
- package/dist/header/headerHelpers.js +20 -16
- package/dist/header/hooks/useNonFittingElements.d.ts +1 -1
- package/dist/headerTitle/headerTitle.d.ts +0 -5
- package/dist/index.css +313 -933
- package/dist/index.d.ts +2 -9
- package/dist/index.js +15 -30
- package/dist/inputAdornments/inputAdornments.d.ts +6 -2
- package/dist/inputAdornments/inputAdornments.js +3 -26
- package/dist/layout/layout.js +1 -1
- package/dist/layout/layoutSummaryTiles.d.ts +3 -3
- package/dist/layout/layoutSummaryTiles.js +3 -2
- package/dist/list/hooks/useLazyLoading.d.ts +2 -1
- package/dist/list/hooks/useVirtualScroll.d.ts +2 -2
- package/dist/list/list.js +1 -0
- package/dist/menu/components/menuButton.d.ts +3 -2
- package/dist/menu/components/menuButton.js +3 -4
- package/dist/menu/components/menuItem.d.ts +1 -0
- package/dist/menu/components/menuItem.js +32 -7
- package/dist/menu/components/menuSeparator.d.ts +2 -1
- package/dist/menu/components/menuSeparator.js +15 -1
- package/dist/menu/controlledMenu.d.ts +1 -1
- package/dist/menu/controlledMenu.js +11 -10
- package/dist/menu/menu.d.ts +1 -1
- package/dist/menu/menu.js +3 -1
- package/dist/menu/utils/findContent.js +4 -3
- package/dist/miniTabs/miniTabsHeaderItem.d.ts +2 -2
- package/dist/miniTabs/miniTabsHelper.d.ts +1 -1
- package/dist/miniTabs/miniTabsHelper.js +55 -10
- package/dist/mobileSheet/mobileSheet.d.ts +0 -5
- package/dist/mobileSheet/mobileSheet.js +4 -4
- package/dist/modal/modal.js +3 -0
- package/dist/nav/nav.js +2 -1
- package/dist/nav/navHeader/navHeader.js +4 -1
- package/dist/nav/utils/navUtils.d.ts +1 -1
- package/dist/nav/utils/navUtils.js +6 -7
- package/dist/notification/notification.d.ts +3 -2
- package/dist/notification/notification.js +3 -4
- package/dist/oldPill/pill.d.ts +3 -2
- package/dist/oldPill/pill.js +4 -27
- package/dist/pageHeader/pageHeaderActions.js +1 -1
- package/dist/pageHeader/pageHeaderHelpers.d.ts +2 -2
- package/dist/pageHeader/pageHeaderHelpers.js +3 -2
- package/dist/pageLayout/pageContentLayout/pageContentLayout.d.ts +6 -2
- package/dist/pageLayout/pageContentLayout/pageContentLayout.js +3 -26
- package/dist/pagination/pagination.d.ts +2 -7
- package/dist/pagination/paginationText/paginationText.d.ts +0 -5
- package/dist/parallelSelection/parallelSelection.d.ts +4 -3
- package/dist/parallelSelection/parallelSelection.js +5 -27
- package/dist/pillBox/components/pillBoxItem.d.ts +0 -5
- package/dist/pillBox/pillBox.d.ts +0 -5
- package/dist/pillExpandable/pillExpandable.js +4 -2
- package/dist/pillExpandable/pillExpandableSimple.d.ts +6 -2
- package/dist/pillExpandable/pillExpandableSimple.js +3 -2
- package/dist/popup/popup.d.ts +2 -2
- package/dist/popup/popup.js +3 -1
- package/dist/primaryIcon/renderIcon.d.ts +1 -1
- package/dist/radio/radio.d.ts +3 -2
- package/dist/radio/radio.js +4 -3
- package/dist/radioGroup/radioGroup.js +1 -1
- package/dist/range/rangeField.d.ts +2 -2
- package/dist/react-chartjs/chart.js +1 -1
- package/dist/react-chartjs/types.d.ts +2 -2
- package/dist/searchInput/searchInput.d.ts +4 -2
- package/dist/searchInput/searchInput.js +4 -7
- package/dist/searchInputRaw/searchInputRaw.d.ts +6 -6
- package/dist/searchInputRaw/searchInputRaw.js +3 -2
- package/dist/searchList/searchList.d.ts +0 -22
- package/dist/searchList/searchList.js +0 -157
- package/dist/select/select.d.ts +4 -4
- package/dist/selectField/selectField.d.ts +4 -4
- package/dist/selectList/selectList.js +2 -2
- package/dist/selectRaw/hooks/usePopupWidth.d.ts +2 -2
- package/dist/selectRaw/selectRaw.d.ts +6 -7
- package/dist/selectRaw/selectRaw.js +5 -4
- package/dist/sidePanel/sidePanel.d.ts +2 -2
- package/dist/sidePanel/sidePanelCell/sidePanelCell.d.ts +1 -1
- package/dist/sortControl/sortControl.d.ts +0 -5
- package/dist/stepper/stepper.d.ts +4 -2
- package/dist/stepper/stepper.js +4 -7
- package/dist/stepperRaw/stepperRaw.d.ts +3 -2
- package/dist/stepperRaw/stepperRaw.js +3 -4
- package/dist/summaryTile/summaryTile.d.ts +0 -5
- package/dist/summaryTile/summaryTileTrigger.d.ts +3 -1
- package/dist/summaryTile/summaryTileTrigger.js +4 -3
- package/dist/table/actions/actionsMenu.d.ts +3 -3
- package/dist/table/actions/useActions.d.ts +2 -3
- package/dist/table/children/useTableChildren.d.ts +7 -7
- package/dist/table/children/useTableChildren.js +10 -9
- package/dist/table/flexible/columnsPopup.d.ts +2 -2
- package/dist/table/flexible/useFlexibleColumns.d.ts +1 -1
- package/dist/table/nested/nestedData.js +2 -0
- package/dist/textIconButton/textIconButton.d.ts +1 -1
- package/dist/textIconButton/textIconButton.js +4 -3
- package/dist/textInput/textInput.d.ts +7 -3
- package/dist/textInput/textInput.js +4 -27
- package/dist/textInputRaw/textInputRaw.d.ts +3 -1
- package/dist/textInputRaw/textInputRaw.js +4 -29
- package/dist/textarea/textarea.d.ts +4 -2
- package/dist/textarea/textarea.js +4 -27
- package/dist/textareaRaw/textareaRaw.d.ts +6 -1
- package/dist/textareaRaw/textareaRaw.js +3 -26
- package/dist/timePicker/timePicker.d.ts +0 -5
- package/dist/toast/hooks/useToast.js +9 -4
- package/dist/toast/hooks/useToastState.d.ts +2 -2
- package/dist/toastRaw/toastRaw.d.ts +4 -3
- package/dist/toastRaw/toastRaw.js +3 -4
- package/dist/toggleButton/toggleButton.d.ts +1 -1
- package/dist/toggleButton/toggleButton.js +2 -1
- package/dist/toolbar/toolbarContent.d.ts +3 -2
- package/dist/toolbar/toolbarContent.js +8 -5
- package/dist/tooltip/helpers/calculateArrowPosition.d.ts +2 -1
- package/dist/tooltip/tooltip.d.ts +2 -7
- package/dist/tooltip/tooltip.js +12 -7
- package/dist/utils/positioningUtils/calculatePosition.d.ts +2 -1
- package/dist/utils/positioningUtils/calculatePosition.js +21 -9
- package/dist/utils/useNodeText.d.ts +2 -1
- package/esm/absolute/absolute.d.ts +2 -2
- package/esm/accordion/accordionItem/accordionItem.d.ts +2 -2
- package/esm/accordion/accordionItem/accordionItem.js +9 -1
- package/esm/advancedGroupsFilter/advancedGroupsFilter.d.ts +0 -5
- package/esm/advancedGroupsFilter/advancedGroupsFilterForm.d.ts +0 -5
- package/esm/advancedGroupsFilter/advancedGroupsFilterFormSection.d.ts +0 -5
- package/esm/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.d.ts +0 -5
- package/esm/advancedGroupsFilter/advancedGroupsFilterSectionTooltip.js +1 -2
- package/esm/alert/hooks/useAlertState.d.ts +1 -1
- package/esm/alertRaw/alertRaw.d.ts +4 -2
- package/esm/alertRaw/alertRaw.js +3 -5
- package/esm/banner/banner.d.ts +0 -15
- package/esm/banner/bannerUtils.d.ts +0 -2
- package/esm/banner/bannerUtils.js +1 -0
- package/esm/betaPill/betaPill.d.ts +0 -5
- package/esm/bulkEditControl/bulkEditControl.d.ts +0 -5
- package/esm/button/button.d.ts +6 -1
- package/esm/button/button.js +3 -4
- package/esm/calendar/calendar.d.ts +0 -5
- package/esm/card/card.d.ts +4 -7
- package/esm/card/card.js +7 -4
- package/esm/card/components/status.d.ts +0 -5
- package/esm/card/components/title.d.ts +2 -0
- package/esm/card/components/title.js +12 -7
- package/esm/card/hooks/useCardSize.d.ts +2 -1
- package/esm/cardContainer/cardContainer.d.ts +3 -2
- package/esm/cardContainer/cardContainer.js +3 -5
- package/esm/chart/lineChart/useChartTicks.d.ts +1 -1
- package/esm/chart/lineChart/useSummary.d.ts +1 -1
- package/esm/checkboxListWithAction/checkboxListWithAction.d.ts +0 -5
- package/esm/chip/utils/useChip.d.ts +1 -1
- package/esm/columnsSelector/columnsSelector.d.ts +0 -5
- package/esm/columnsSelector/columnsTab/columnsTab.d.ts +0 -5
- package/esm/columnsSelector/columnsTabGroup/columnsTabGroup.d.ts +0 -5
- package/esm/comboboxSelected/comboboxSelected.d.ts +0 -5
- package/esm/commonHelpers/arrowNavigation/hooks/useClearTimers.d.ts +3 -3
- package/esm/commonHelpers/arrowNavigation/hooks/useHoldOnScroll.d.ts +1 -1
- package/esm/commonHelpers/arrowNavigation/hooks/useManualScrolling.d.ts +2 -2
- package/esm/commonHelpers/arrowNavigation/hooks/useScrollWhileHolding.d.ts +2 -2
- package/esm/commonHelpers/hooks/useArrowKey.d.ts +2 -1
- package/esm/commonHelpers/hooks/useContainerTypeObserver.d.ts +2 -2
- package/esm/commonHelpers/hooks/useEscape.d.ts +2 -1
- package/esm/commonHelpers/hooks/useGridSize.d.ts +1 -1
- package/esm/commonHelpers/hooks/usePillSize.d.ts +1 -1
- package/esm/commonHelpers/hooks/useResizeObserver.d.ts +1 -1
- package/esm/commonHelpers/hooks/useTrapFocus.d.ts +2 -1
- package/esm/commonHelpers/ref.d.ts +2 -0
- package/esm/controlledPopup/controlledPopup.d.ts +2 -2
- package/esm/dataFeed/dataFeed.d.ts +2 -2
- package/esm/dataFeed/dataFeedColumnsItems.d.ts +2 -2
- package/esm/dataFeed/feedSelectControl/feedSelectControl.d.ts +6 -2
- package/esm/dataFeed/feedSelectControl/feedSelectControl.js +2 -3
- package/esm/dataGrid/cell/cell.js +1 -1
- package/esm/dataGrid/columns/actionLinkColumn/actionButtonsMobileWrapper.js +1 -1
- package/esm/dataGrid/columns/actionLinkColumn/actionLinkColumnWrapper.js +1 -1
- package/esm/dataGrid/columns/actionsColumn/actionsButton.d.ts +0 -5
- package/esm/dataGrid/columns/actionsColumn/actionsColumn.d.ts +4 -4
- package/esm/dataGrid/columns/actionsColumn/actionsColumnCell.d.ts +3 -2
- package/esm/dataGrid/columns/actionsColumn/actionsColumnCell.js +4 -4
- package/esm/dataGrid/columns/basicColumn.d.ts +1 -1
- package/esm/dataGrid/columns/checkboxColumn/checkboxColumnWrapper.d.ts +3 -3
- package/esm/dataGrid/columns/checkboxColumn/checkboxHeaderCell.d.ts +4 -4
- package/esm/dataGrid/columns/checkboxColumn/checkboxHeaderCell.js +3 -3
- package/esm/dataGrid/columns/checkboxColumn/limitedCheckboxColumnWrapper.d.ts +2 -2
- package/esm/dataGrid/columns/mainColumn/mainColumnWrapper.d.ts +1 -1
- package/esm/dataGrid/dataGrid.d.ts +1 -1
- package/esm/dataGrid/emptySearchList/emptySearchList.d.ts +0 -5
- package/esm/dataGrid/entitiesListActions/actions/columnsListButton.d.ts +4 -5
- package/esm/dataGrid/entitiesListActions/actions/columnsListButton.js +2 -4
- package/esm/dataGrid/entitiesListActions/actions/fullscreenButton.d.ts +4 -7
- package/esm/dataGrid/entitiesListActions/entitiesListActions.d.ts +1 -1
- package/esm/dataGrid/withActions/withActions.d.ts +6 -2
- package/esm/dataGrid/withActions/withActions.js +19 -17
- package/esm/dataGrid/withFlexibleColumns/components/columnSettings.d.ts +4 -4
- package/esm/dataGrid/withFlexibleColumns/components/columnSettings.js +2 -3
- package/esm/dataGrid/withFlexibleColumns/components/columnSettingsSidePanel.js +1 -1
- package/esm/dataGrid/withFlexibleColumns/withFlexibleColumns.d.ts +6 -7
- package/esm/dataGrid/withFlexibleColumns/withFlexibleColumns.js +124 -122
- package/esm/dataGrid/withLoading/withLoading.d.ts +7 -4
- package/esm/dataGrid/withLoading/withLoading.js +35 -33
- package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActionButton/bulkActionButton.d.ts +3 -2
- package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActionButton/bulkActionButton.js +2 -3
- package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActionLink/bulkActionLink.d.ts +3 -2
- package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActionLink/bulkActionLink.js +2 -3
- package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActions.d.ts +7 -8
- package/esm/dataGrid/withSelectableRows/components/bulkActions/bulkActions.js +6 -1
- package/esm/dataGrid/withSelectableRows/withLimitedSelectableRows.d.ts +6 -2
- package/esm/dataGrid/withSelectableRows/withLimitedSelectableRows.js +39 -37
- package/esm/dataGrid/withSelectableRows/withSelectableRows.d.ts +6 -5
- package/esm/dataGrid/withSelectableRows/withSelectableRows.js +166 -164
- package/esm/dataGrid/withSortableColumns/columns/sortableColumnWrapper.d.ts +0 -5
- package/esm/dataGrid/withSortableColumns/withSortableColumns.d.ts +3 -7
- package/esm/dataGrid/withSortableColumns/withSortableColumns.js +4 -4
- package/esm/dateInput/dateInput.d.ts +0 -4
- package/esm/dateInputInner/dateInputInner.d.ts +0 -5
- package/esm/dateInputInner/dateInputInnerControlBlock.d.ts +3 -3
- package/esm/dateInputInner/dateInputInnerControlBlock.js +3 -5
- package/esm/dateSelectionWrapper/dateSelectionWrapper.d.ts +0 -5
- package/esm/dialog/dialogContent.js +1 -1
- package/esm/dropdown/dropdown.d.ts +0 -5
- package/esm/dropdown/dropdownList.d.ts +1 -6
- package/esm/dropdown/dropdownPopup.d.ts +4 -4
- package/esm/dropdown/dropdownSearchableTrigger.d.ts +7 -8
- package/esm/dropdown/dropdownSearchableTrigger.js +4 -4
- package/esm/dropdown/dropdownTrigger.d.ts +2 -7
- package/esm/feedbackContainer/feedbackContext.d.ts +3 -3
- package/esm/feedbackContainer/hooks/useFeedbackAlert.d.ts +1 -1
- package/esm/feedbackContainer/hooks/useFeedbackAlertState.d.ts +1 -1
- package/esm/feedbackContainer/hooks/useFeedbackToast.d.ts +1 -1
- package/esm/feedbackContainer/hooks/useFeedbackToastState.d.ts +1 -1
- package/esm/filterButton/filterButton.d.ts +3 -2
- package/esm/filterButton/filterButton.js +4 -5
- package/esm/filters/components/filtersContainer.js +8 -4
- package/esm/filters/components/filtersDateRange.d.ts +1 -2
- package/esm/filters/components/filtersDropdown.d.ts +1 -1
- package/esm/filters/components/filtersItem.d.ts +2 -2
- package/esm/filters/components/filtersSearch.d.ts +6 -2
- package/esm/filters/components/filtersSearch.js +2 -2
- package/esm/filters/filters.js +20 -11
- package/esm/filters/filtersHelper.d.ts +1 -1
- package/esm/filters/filtersHelper.js +20 -14
- package/esm/filtersBar/components/filtersBarGroupsFilter/filtersBarGroupsFilter.d.ts +1 -1
- package/esm/filtersBar/components/filtersBarPeriodPicker/filtersBarPeriodPicker.d.ts +0 -5
- package/esm/filtersBar/components/resetComponentButton.d.ts +0 -5
- package/esm/filtersBar/filtersBar.d.ts +0 -5
- package/esm/filtersBar/filtersBar.js +3 -2
- package/esm/filtersBar/filtersBarActions/filtersBarActions.d.ts +1 -6
- package/esm/filtersBar/filtersBarProviderTrigger.d.ts +3 -3
- package/esm/filtersBar/filtersBarSidePanel/filtersBarSidePanel.d.ts +1 -6
- package/esm/filtersBar/filtersBarSidePanel/filtersBarSidePanel.js +1 -0
- package/esm/filtersBar/filtersContainer/filtersContainer.d.ts +0 -5
- package/esm/filtersBar/filtersContainer/filtersContainer.js +2 -2
- package/esm/filtersBar/utils/isCustomElementValid.js +7 -1
- package/esm/formField/formField.d.ts +6 -3
- package/esm/formField/formField.js +5 -6
- package/esm/formStepper/components/formStep.d.ts +2 -1
- package/esm/formStepper/components/formStep.js +3 -2
- package/esm/formStepper/components/formStepRaw.d.ts +2 -2
- package/esm/formStepper/components/formStepRaw.js +6 -4
- package/esm/formStepper/formStepper.d.ts +4 -1
- package/esm/formStepper/formStepper.js +19 -6
- package/esm/formStepper/utils/getOnClick.d.ts +1 -1
- package/esm/formStepper/utils/getOnClick.js +1 -1
- package/esm/formStepper/utils/getTabIndex.d.ts +1 -1
- package/esm/formStepper/utils/getTabIndex.js +4 -1
- package/esm/formStepperButtons/formStepperButtons.js +3 -2
- package/esm/gridLayout/hooks/useStretch.d.ts +1 -1
- package/esm/gridLayout/hooks/useStretch.js +3 -2
- package/esm/gridLayout/utils/isGridItem.d.ts +1 -1
- package/esm/groupsFilter/groupsFilter.d.ts +1 -16
- package/esm/groupsFilter/groupsFilter.js +6 -6
- package/esm/groupsFilter/groupsFilterAdjustmentState.d.ts +0 -5
- package/esm/groupsFilter/groupsFilterBox.d.ts +0 -5
- package/esm/groupsFilter/groupsFilterCommon.d.ts +0 -5
- package/esm/groupsFilter/groupsFilterCurrentlySelectedState.d.ts +0 -5
- package/esm/groupsFilter/groupsFilterCurrentlySelectedState.js +1 -3
- package/esm/groupsFilter/groupsFilterInitialState.d.ts +0 -5
- package/esm/groupsFilter/groupsFilterInitialState.js +1 -3
- package/esm/groupsFilter/groupsFilterMenu.d.ts +0 -5
- package/esm/groupsFilter/groupsFilterTrigger.d.ts +6 -7
- package/esm/groupsFilter/groupsFilterTrigger.js +4 -4
- package/esm/header/components/basicToolbar/basicToolbar.d.ts +2 -2
- package/esm/header/components/collapsedItemsControl/collapsedItemsControl.d.ts +1 -6
- package/esm/header/components/collapsedItemsControl/utils/handleCustomMenuWrapper.js +4 -4
- package/esm/header/components/mobileFilterControl/mobileFilterControl.d.ts +3 -8
- package/esm/header/components/mobileFilterControl/mobileFilterControl.js +2 -3
- package/esm/header/components/mobileSearchControl/mobileSearchControl.d.ts +0 -5
- package/esm/header/header.d.ts +0 -10
- package/esm/header/header.js +15 -2
- package/esm/header/headerHelpers.d.ts +3 -3
- package/esm/header/headerHelpers.js +20 -16
- package/esm/header/hooks/useNonFittingElements.d.ts +1 -1
- package/esm/headerTitle/headerTitle.d.ts +0 -5
- package/esm/index.d.ts +2 -9
- package/esm/index.js +1 -9
- package/esm/inputAdornments/inputAdornments.d.ts +6 -2
- package/esm/inputAdornments/inputAdornments.js +2 -3
- package/esm/layout/layout.js +1 -1
- package/esm/layout/layoutSummaryTiles.d.ts +3 -3
- package/esm/layout/layoutSummaryTiles.js +3 -3
- package/esm/list/hooks/useLazyLoading.d.ts +2 -1
- package/esm/list/hooks/useVirtualScroll.d.ts +2 -2
- package/esm/list/list.js +1 -0
- package/esm/menu/components/menuButton.d.ts +3 -2
- package/esm/menu/components/menuButton.js +3 -5
- package/esm/menu/components/menuItem.d.ts +1 -0
- package/esm/menu/components/menuItem.js +31 -7
- package/esm/menu/components/menuSeparator.d.ts +2 -1
- package/esm/menu/components/menuSeparator.js +13 -0
- package/esm/menu/controlledMenu.d.ts +1 -1
- package/esm/menu/controlledMenu.js +13 -12
- package/esm/menu/menu.d.ts +1 -1
- package/esm/menu/menu.js +3 -1
- package/esm/menu/utils/findContent.js +4 -3
- package/esm/miniTabs/miniTabsHeaderItem.d.ts +2 -2
- package/esm/miniTabs/miniTabsHelper.d.ts +1 -1
- package/esm/miniTabs/miniTabsHelper.js +33 -8
- package/esm/mobileSheet/mobileSheet.d.ts +0 -5
- package/esm/mobileSheet/mobileSheet.js +5 -5
- package/esm/modal/modal.js +3 -0
- package/esm/nav/nav.js +2 -1
- package/esm/nav/navHeader/navHeader.js +4 -1
- package/esm/nav/utils/navUtils.d.ts +1 -1
- package/esm/nav/utils/navUtils.js +7 -8
- package/esm/notification/notification.d.ts +3 -2
- package/esm/notification/notification.js +3 -5
- package/esm/oldPill/pill.d.ts +3 -2
- package/esm/oldPill/pill.js +3 -4
- package/esm/pageHeader/pageHeaderActions.js +3 -3
- package/esm/pageHeader/pageHeaderHelpers.d.ts +2 -2
- package/esm/pageHeader/pageHeaderHelpers.js +3 -2
- package/esm/pageLayout/pageContentLayout/pageContentLayout.d.ts +6 -2
- package/esm/pageLayout/pageContentLayout/pageContentLayout.js +2 -3
- package/esm/pagination/pagination.d.ts +2 -7
- package/esm/pagination/paginationText/paginationText.d.ts +0 -5
- package/esm/parallelSelection/parallelSelection.d.ts +4 -3
- package/esm/parallelSelection/parallelSelection.js +4 -4
- package/esm/pillBox/components/pillBoxItem.d.ts +0 -5
- package/esm/pillBox/pillBox.d.ts +0 -5
- package/esm/pillExpandable/pillExpandable.js +4 -2
- package/esm/pillExpandable/pillExpandableSimple.d.ts +6 -2
- package/esm/pillExpandable/pillExpandableSimple.js +3 -3
- package/esm/popup/popup.d.ts +2 -2
- package/esm/popup/popup.js +3 -1
- package/esm/primaryIcon/renderIcon.d.ts +1 -1
- package/esm/radio/radio.d.ts +3 -2
- package/esm/radio/radio.js +3 -3
- package/esm/radioGroup/radioGroup.js +1 -1
- package/esm/range/rangeField.d.ts +2 -2
- package/esm/react-chartjs/chart.js +1 -1
- package/esm/react-chartjs/types.d.ts +2 -2
- package/esm/searchInput/searchInput.d.ts +4 -2
- package/esm/searchInput/searchInput.js +3 -4
- package/esm/searchInputRaw/searchInputRaw.d.ts +6 -6
- package/esm/searchInputRaw/searchInputRaw.js +2 -2
- package/esm/searchList/searchList.d.ts +0 -22
- package/esm/searchList/searchList.js +1 -154
- package/esm/select/select.d.ts +4 -4
- package/esm/selectField/selectField.d.ts +4 -4
- package/esm/selectList/selectList.js +3 -3
- package/esm/selectRaw/hooks/usePopupWidth.d.ts +2 -2
- package/esm/selectRaw/selectRaw.d.ts +6 -7
- package/esm/selectRaw/selectRaw.js +5 -5
- package/esm/sidePanel/sidePanel.d.ts +2 -2
- package/esm/sidePanel/sidePanelCell/sidePanelCell.d.ts +1 -1
- package/esm/sortControl/sortControl.d.ts +0 -5
- package/esm/stepper/stepper.d.ts +4 -2
- package/esm/stepper/stepper.js +3 -4
- package/esm/stepperRaw/stepperRaw.d.ts +3 -2
- package/esm/stepperRaw/stepperRaw.js +3 -5
- package/esm/storybookHelpers/dataGridWithDifferentCellOptions/components/EntitiesListAction.d.ts +2 -7
- package/esm/summaryTile/summaryTile.d.ts +0 -5
- package/esm/summaryTile/summaryTileTrigger.d.ts +3 -1
- package/esm/summaryTile/summaryTileTrigger.js +3 -3
- package/esm/table/actions/actionsMenu.d.ts +3 -3
- package/esm/table/actions/useActions.d.ts +2 -3
- package/esm/table/children/useTableChildren.d.ts +7 -7
- package/esm/table/children/useTableChildren.js +11 -10
- package/esm/table/flexible/columnsPopup.d.ts +2 -2
- package/esm/table/flexible/useFlexibleColumns.d.ts +1 -1
- package/esm/table/nested/nestedData.js +2 -0
- package/esm/textIconButton/textIconButton.d.ts +1 -1
- package/esm/textIconButton/textIconButton.js +3 -3
- package/esm/textInput/textInput.d.ts +7 -3
- package/esm/textInput/textInput.js +3 -4
- package/esm/textInputRaw/textInputRaw.d.ts +3 -1
- package/esm/textInputRaw/textInputRaw.js +3 -6
- package/esm/textarea/textarea.d.ts +4 -2
- package/esm/textarea/textarea.js +3 -4
- package/esm/textareaRaw/textareaRaw.d.ts +6 -1
- package/esm/textareaRaw/textareaRaw.js +2 -3
- package/esm/timePicker/timePicker.d.ts +0 -5
- package/esm/toast/hooks/useToast.js +9 -4
- package/esm/toast/hooks/useToastState.d.ts +2 -2
- package/esm/toastRaw/toastRaw.d.ts +4 -3
- package/esm/toastRaw/toastRaw.js +3 -5
- package/esm/toggleButton/toggleButton.d.ts +1 -1
- package/esm/toggleButton/toggleButton.js +3 -2
- package/esm/toolbar/toolbarContent.d.ts +3 -2
- package/esm/toolbar/toolbarContent.js +8 -6
- package/esm/tooltip/helpers/calculateArrowPosition.d.ts +2 -1
- package/esm/tooltip/tooltip.d.ts +2 -7
- package/esm/tooltip/tooltip.js +12 -7
- package/esm/utils/positioningUtils/calculatePosition.d.ts +2 -1
- package/esm/utils/positioningUtils/calculatePosition.js +21 -9
- package/esm/utils/useNodeText.d.ts +2 -1
- package/package.json +8 -8
- package/dist/bottomSection/bottomSection.d.ts +0 -13
- package/dist/bottomSection/bottomSection.js +0 -48
- package/dist/bottomSection/bottomSectionType.d.ts +0 -4
- package/dist/bottomSection/bottomSectionType.js +0 -8
- package/dist/comboList/comboList.d.ts +0 -24
- package/dist/comboList/comboList.js +0 -30
- package/dist/comboList/comboListHook.d.ts +0 -4
- package/dist/comboList/comboListHook.js +0 -14
- package/dist/combobox/combobox.d.ts +0 -27
- package/dist/combobox/combobox.js +0 -190
- package/dist/combobox/comboboxNavigation.d.ts +0 -3
- package/dist/combobox/comboboxNavigation.js +0 -26
- package/dist/commonHelpers/translatable.d.ts +0 -11
- package/dist/dropdownOld/dropdownOld.d.ts +0 -17
- package/dist/dropdownOld/dropdownOld.js +0 -54
- package/dist/dropdownOld/dropdownOldHelpers/isDropdownStateTheSame.d.ts +0 -1
- package/dist/dropdownOld/dropdownOldHelpers/isDropdownStateTheSame.js +0 -10
- package/dist/icons/deprecated/iconActivity.d.ts +0 -7
- package/dist/icons/deprecated/iconActivity.js +0 -20
- package/dist/icons/deprecated/iconArchive.d.ts +0 -7
- package/dist/icons/deprecated/iconArchive.js +0 -20
- package/dist/icons/deprecated/iconArrowBottom.d.ts +0 -7
- package/dist/icons/deprecated/iconArrowBottom.js +0 -20
- package/dist/icons/deprecated/iconArrowDown.d.ts +0 -7
- package/dist/icons/deprecated/iconArrowDown.js +0 -20
- package/dist/icons/deprecated/iconArrowTop.d.ts +0 -7
- package/dist/icons/deprecated/iconArrowTop.js +0 -20
- package/dist/icons/deprecated/iconAssetInactive.d.ts +0 -7
- package/dist/icons/deprecated/iconAssetInactive.js +0 -20
- package/dist/icons/deprecated/iconBookmark.d.ts +0 -7
- package/dist/icons/deprecated/iconBookmark.js +0 -20
- package/dist/icons/deprecated/iconBookmarkFill.d.ts +0 -7
- package/dist/icons/deprecated/iconBookmarkFill.js +0 -20
- package/dist/icons/deprecated/iconCalendar.d.ts +0 -7
- package/dist/icons/deprecated/iconCalendar.js +0 -20
- package/dist/icons/deprecated/iconChevronDownSmall.d.ts +0 -7
- package/dist/icons/deprecated/iconChevronDownSmall.js +0 -20
- package/dist/icons/deprecated/iconChevronLeftSmall.d.ts +0 -7
- package/dist/icons/deprecated/iconChevronLeftSmall.js +0 -20
- package/dist/icons/deprecated/iconChevronRightSmall.d.ts +0 -7
- package/dist/icons/deprecated/iconChevronRightSmall.js +0 -20
- package/dist/icons/deprecated/iconCircleOk.d.ts +0 -7
- package/dist/icons/deprecated/iconCircleOk.js +0 -20
- package/dist/icons/deprecated/iconCogSettings.d.ts +0 -7
- package/dist/icons/deprecated/iconCogSettings.js +0 -20
- package/dist/icons/deprecated/iconConditions.d.ts +0 -7
- package/dist/icons/deprecated/iconConditions.js +0 -20
- package/dist/icons/deprecated/iconDelete.d.ts +0 -7
- package/dist/icons/deprecated/iconDelete.js +0 -20
- package/dist/icons/deprecated/iconDownload.d.ts +0 -7
- package/dist/icons/deprecated/iconDownload.js +0 -20
- package/dist/icons/deprecated/iconDragAndDrop.d.ts +0 -7
- package/dist/icons/deprecated/iconDragAndDrop.js +0 -20
- package/dist/icons/deprecated/iconEdit.d.ts +0 -7
- package/dist/icons/deprecated/iconEdit.js +0 -20
- package/dist/icons/deprecated/iconError.d.ts +0 -7
- package/dist/icons/deprecated/iconError.js +0 -20
- package/dist/icons/deprecated/iconErrorNew.d.ts +0 -7
- package/dist/icons/deprecated/iconErrorNew.js +0 -20
- package/dist/icons/deprecated/iconExclude.d.ts +0 -7
- package/dist/icons/deprecated/iconExclude.js +0 -20
- package/dist/icons/deprecated/iconFilterOutline.d.ts +0 -7
- package/dist/icons/deprecated/iconFilterOutline.js +0 -20
- package/dist/icons/deprecated/iconFolderNew.d.ts +0 -7
- package/dist/icons/deprecated/iconFolderNew.js +0 -20
- package/dist/icons/deprecated/iconFullscreen.d.ts +0 -7
- package/dist/icons/deprecated/iconFullscreen.js +0 -20
- package/dist/icons/deprecated/iconInfoCircled.d.ts +0 -7
- package/dist/icons/deprecated/iconInfoCircled.js +0 -20
- package/dist/icons/deprecated/iconLeftBracketLg.d.ts +0 -7
- package/dist/icons/deprecated/iconLeftBracketLg.js +0 -20
- package/dist/icons/deprecated/iconLocation.d.ts +0 -7
- package/dist/icons/deprecated/iconLocation.js +0 -20
- package/dist/icons/deprecated/iconLocationPin.d.ts +0 -7
- package/dist/icons/deprecated/iconLocationPin.js +0 -20
- package/dist/icons/deprecated/iconLvlUp.d.ts +0 -7
- package/dist/icons/deprecated/iconLvlUp.js +0 -20
- package/dist/icons/deprecated/iconMap.d.ts +0 -7
- package/dist/icons/deprecated/iconMap.js +0 -20
- package/dist/icons/deprecated/iconNarrowArrowRight.d.ts +0 -7
- package/dist/icons/deprecated/iconNarrowArrowRight.js +0 -20
- package/dist/icons/deprecated/iconNotificationBell.d.ts +0 -7
- package/dist/icons/deprecated/iconNotificationBell.js +0 -20
- package/dist/icons/deprecated/iconOptionsIcon.d.ts +0 -7
- package/dist/icons/deprecated/iconOptionsIcon.js +0 -20
- package/dist/icons/deprecated/iconPlus.d.ts +0 -7
- package/dist/icons/deprecated/iconPlus.js +0 -20
- package/dist/icons/deprecated/iconReportError.d.ts +0 -7
- package/dist/icons/deprecated/iconReportError.js +0 -20
- package/dist/icons/deprecated/iconRightArrow.d.ts +0 -7
- package/dist/icons/deprecated/iconRightArrow.js +0 -20
- package/dist/icons/deprecated/iconSelectArrow.d.ts +0 -7
- package/dist/icons/deprecated/iconSelectArrow.js +0 -20
- package/dist/icons/deprecated/iconSettings6SliderThree.d.ts +0 -7
- package/dist/icons/deprecated/iconSettings6SliderThree.js +0 -20
- package/dist/icons/deprecated/iconShrink.d.ts +0 -7
- package/dist/icons/deprecated/iconShrink.js +0 -20
- package/dist/icons/deprecated/iconSortAsc.d.ts +0 -7
- package/dist/icons/deprecated/iconSortAsc.js +0 -20
- package/dist/icons/deprecated/iconSortDec.d.ts +0 -7
- package/dist/icons/deprecated/iconSortDec.js +0 -20
- package/dist/icons/deprecated/iconSpinner.d.ts +0 -7
- package/dist/icons/deprecated/iconSpinner.js +0 -20
- package/dist/icons/deprecated/iconStatusNoComm.d.ts +0 -7
- package/dist/icons/deprecated/iconStatusNoComm.js +0 -20
- package/dist/icons/deprecated/iconSuccessNew.d.ts +0 -7
- package/dist/icons/deprecated/iconSuccessNew.js +0 -20
- package/dist/icons/deprecated/iconTick.d.ts +0 -7
- package/dist/icons/deprecated/iconTick.js +0 -20
- package/dist/icons/deprecated/iconVerticalEllipsis.d.ts +0 -7
- package/dist/icons/deprecated/iconVerticalEllipsis.js +0 -20
- package/dist/icons/deprecated/iconWarningNew.d.ts +0 -7
- package/dist/icons/deprecated/iconWarningNew.js +0 -20
- package/dist/icons/deprecated/iconZoneGeofence.d.ts +0 -7
- package/dist/icons/deprecated/iconZoneGeofence.js +0 -18
- package/dist/icons/iconAddPeople2.d.ts +0 -8
- package/dist/icons/iconAddPeople2.js +0 -21
- package/dist/icons/iconCalendar2.d.ts +0 -8
- package/dist/icons/iconCalendar2.js +0 -21
- package/dist/icons/iconCornerUpRight2.d.ts +0 -8
- package/dist/icons/iconCornerUpRight2.js +0 -21
- package/dist/icons/iconImac2.d.ts +0 -8
- package/dist/icons/iconImac2.js +0 -21
- package/dist/icons/iconInbox2.d.ts +0 -8
- package/dist/icons/iconInbox2.js +0 -21
- package/dist/icons/iconMenuCircle2.d.ts +0 -8
- package/dist/icons/iconMenuCircle2.js +0 -21
- package/dist/icons/iconShare2.d.ts +0 -8
- package/dist/icons/iconShare2.js +0 -21
- package/dist/icons/iconVolumeOf.d.ts +0 -8
- package/dist/icons/iconVolumeOf.js +0 -21
- package/dist/reportPopup/groupedReportsItem.d.ts +0 -7
- package/dist/reportPopup/groupedReportsItem.js +0 -10
- package/dist/reportPopup/notificationTemplates/errorNotification.d.ts +0 -9
- package/dist/reportPopup/notificationTemplates/errorNotification.js +0 -19
- package/dist/reportPopup/notificationTemplates/infoNotification.d.ts +0 -9
- package/dist/reportPopup/notificationTemplates/infoNotification.js +0 -19
- package/dist/reportPopup/notificationTemplates/successNotification.d.ts +0 -10
- package/dist/reportPopup/notificationTemplates/successNotification.js +0 -20
- package/dist/reportPopup/reportPopup.d.ts +0 -23
- package/dist/reportPopup/reportPopup.js +0 -56
- package/dist/reportPopup/reportPopupContent.d.ts +0 -12
- package/dist/reportPopup/reportPopupContent.js +0 -29
- package/dist/reportPopup/reports.d.ts +0 -7
- package/dist/reportPopup/reports.js +0 -11
- package/dist/reportPopup/reportsItem.d.ts +0 -12
- package/dist/reportPopup/reportsItem.js +0 -18
- package/dist/reportPopup/reportsItemFormats.d.ts +0 -10
- package/dist/reportPopup/reportsItemFormats.js +0 -14
- package/dist/searchList/searchListHelpers.d.ts +0 -20
- package/dist/searchList/searchListHelpers.js +0 -90
- package/dist/searchableField/searchableField.d.ts +0 -28
- package/dist/searchableField/searchableField.js +0 -31
- package/dist/static/icons/icons.d.ts +0 -67
- package/dist/static/icons/icons.js +0 -76
- package/dist/svgIcon/svgIcon.d.ts +0 -16
- package/dist/svgIcon/svgIcon.js +0 -43
- package/esm/bottomSection/bottomSection.d.ts +0 -13
- package/esm/bottomSection/bottomSection.js +0 -21
- package/esm/bottomSection/bottomSectionType.d.ts +0 -4
- package/esm/bottomSection/bottomSectionType.js +0 -5
- package/esm/comboList/comboList.d.ts +0 -24
- package/esm/comboList/comboList.js +0 -26
- package/esm/comboList/comboListHook.d.ts +0 -4
- package/esm/comboList/comboListHook.js +0 -10
- package/esm/combobox/combobox.d.ts +0 -27
- package/esm/combobox/combobox.js +0 -163
- package/esm/combobox/comboboxNavigation.d.ts +0 -3
- package/esm/combobox/comboboxNavigation.js +0 -21
- package/esm/commonHelpers/translatable.d.ts +0 -11
- package/esm/dropdownOld/dropdownOld.d.ts +0 -17
- package/esm/dropdownOld/dropdownOld.js +0 -50
- package/esm/dropdownOld/dropdownOldHelpers/isDropdownStateTheSame.d.ts +0 -1
- package/esm/dropdownOld/dropdownOldHelpers/isDropdownStateTheSame.js +0 -6
- package/esm/icons/deprecated/iconActivity.d.ts +0 -7
- package/esm/icons/deprecated/iconActivity.js +0 -16
- package/esm/icons/deprecated/iconArchive.d.ts +0 -7
- package/esm/icons/deprecated/iconArchive.js +0 -16
- package/esm/icons/deprecated/iconArrowBottom.d.ts +0 -7
- package/esm/icons/deprecated/iconArrowBottom.js +0 -16
- package/esm/icons/deprecated/iconArrowDown.d.ts +0 -7
- package/esm/icons/deprecated/iconArrowDown.js +0 -16
- package/esm/icons/deprecated/iconArrowTop.d.ts +0 -7
- package/esm/icons/deprecated/iconArrowTop.js +0 -16
- package/esm/icons/deprecated/iconAssetInactive.d.ts +0 -7
- package/esm/icons/deprecated/iconAssetInactive.js +0 -16
- package/esm/icons/deprecated/iconBookmark.d.ts +0 -7
- package/esm/icons/deprecated/iconBookmark.js +0 -16
- package/esm/icons/deprecated/iconBookmarkFill.d.ts +0 -7
- package/esm/icons/deprecated/iconBookmarkFill.js +0 -16
- package/esm/icons/deprecated/iconCalendar.d.ts +0 -7
- package/esm/icons/deprecated/iconCalendar.js +0 -16
- package/esm/icons/deprecated/iconChevronDownSmall.d.ts +0 -7
- package/esm/icons/deprecated/iconChevronDownSmall.js +0 -16
- package/esm/icons/deprecated/iconChevronLeftSmall.d.ts +0 -7
- package/esm/icons/deprecated/iconChevronLeftSmall.js +0 -16
- package/esm/icons/deprecated/iconChevronRightSmall.d.ts +0 -7
- package/esm/icons/deprecated/iconChevronRightSmall.js +0 -16
- package/esm/icons/deprecated/iconCircleOk.d.ts +0 -7
- package/esm/icons/deprecated/iconCircleOk.js +0 -16
- package/esm/icons/deprecated/iconCogSettings.d.ts +0 -7
- package/esm/icons/deprecated/iconCogSettings.js +0 -16
- package/esm/icons/deprecated/iconConditions.d.ts +0 -7
- package/esm/icons/deprecated/iconConditions.js +0 -16
- package/esm/icons/deprecated/iconDelete.d.ts +0 -7
- package/esm/icons/deprecated/iconDelete.js +0 -16
- package/esm/icons/deprecated/iconDownload.d.ts +0 -7
- package/esm/icons/deprecated/iconDownload.js +0 -16
- package/esm/icons/deprecated/iconDragAndDrop.d.ts +0 -7
- package/esm/icons/deprecated/iconDragAndDrop.js +0 -16
- package/esm/icons/deprecated/iconEdit.d.ts +0 -7
- package/esm/icons/deprecated/iconEdit.js +0 -16
- package/esm/icons/deprecated/iconError.d.ts +0 -7
- package/esm/icons/deprecated/iconError.js +0 -16
- package/esm/icons/deprecated/iconErrorNew.d.ts +0 -7
- package/esm/icons/deprecated/iconErrorNew.js +0 -16
- package/esm/icons/deprecated/iconExclude.d.ts +0 -7
- package/esm/icons/deprecated/iconExclude.js +0 -16
- package/esm/icons/deprecated/iconFilterOutline.d.ts +0 -7
- package/esm/icons/deprecated/iconFilterOutline.js +0 -16
- package/esm/icons/deprecated/iconFolderNew.d.ts +0 -7
- package/esm/icons/deprecated/iconFolderNew.js +0 -16
- package/esm/icons/deprecated/iconFullscreen.d.ts +0 -7
- package/esm/icons/deprecated/iconFullscreen.js +0 -16
- package/esm/icons/deprecated/iconInfoCircled.d.ts +0 -7
- package/esm/icons/deprecated/iconInfoCircled.js +0 -16
- package/esm/icons/deprecated/iconLeftBracketLg.d.ts +0 -7
- package/esm/icons/deprecated/iconLeftBracketLg.js +0 -16
- package/esm/icons/deprecated/iconLocation.d.ts +0 -7
- package/esm/icons/deprecated/iconLocation.js +0 -16
- package/esm/icons/deprecated/iconLocationPin.d.ts +0 -7
- package/esm/icons/deprecated/iconLocationPin.js +0 -16
- package/esm/icons/deprecated/iconLvlUp.d.ts +0 -7
- package/esm/icons/deprecated/iconLvlUp.js +0 -16
- package/esm/icons/deprecated/iconMap.d.ts +0 -7
- package/esm/icons/deprecated/iconMap.js +0 -16
- package/esm/icons/deprecated/iconNarrowArrowRight.d.ts +0 -7
- package/esm/icons/deprecated/iconNarrowArrowRight.js +0 -16
- package/esm/icons/deprecated/iconNotificationBell.d.ts +0 -7
- package/esm/icons/deprecated/iconNotificationBell.js +0 -16
- package/esm/icons/deprecated/iconOptionsIcon.d.ts +0 -7
- package/esm/icons/deprecated/iconOptionsIcon.js +0 -16
- package/esm/icons/deprecated/iconPlus.d.ts +0 -7
- package/esm/icons/deprecated/iconPlus.js +0 -16
- package/esm/icons/deprecated/iconReportError.d.ts +0 -7
- package/esm/icons/deprecated/iconReportError.js +0 -16
- package/esm/icons/deprecated/iconRightArrow.d.ts +0 -7
- package/esm/icons/deprecated/iconRightArrow.js +0 -16
- package/esm/icons/deprecated/iconSelectArrow.d.ts +0 -7
- package/esm/icons/deprecated/iconSelectArrow.js +0 -16
- package/esm/icons/deprecated/iconSettings6SliderThree.d.ts +0 -7
- package/esm/icons/deprecated/iconSettings6SliderThree.js +0 -16
- package/esm/icons/deprecated/iconShrink.d.ts +0 -7
- package/esm/icons/deprecated/iconShrink.js +0 -16
- package/esm/icons/deprecated/iconSortAsc.d.ts +0 -7
- package/esm/icons/deprecated/iconSortAsc.js +0 -16
- package/esm/icons/deprecated/iconSortDec.d.ts +0 -7
- package/esm/icons/deprecated/iconSortDec.js +0 -16
- package/esm/icons/deprecated/iconSpinner.d.ts +0 -7
- package/esm/icons/deprecated/iconSpinner.js +0 -16
- package/esm/icons/deprecated/iconStatusNoComm.d.ts +0 -7
- package/esm/icons/deprecated/iconStatusNoComm.js +0 -16
- package/esm/icons/deprecated/iconSuccessNew.d.ts +0 -7
- package/esm/icons/deprecated/iconSuccessNew.js +0 -16
- package/esm/icons/deprecated/iconTick.d.ts +0 -7
- package/esm/icons/deprecated/iconTick.js +0 -16
- package/esm/icons/deprecated/iconVerticalEllipsis.d.ts +0 -7
- package/esm/icons/deprecated/iconVerticalEllipsis.js +0 -16
- package/esm/icons/deprecated/iconWarningNew.d.ts +0 -7
- package/esm/icons/deprecated/iconWarningNew.js +0 -16
- package/esm/icons/deprecated/iconZoneGeofence.d.ts +0 -7
- package/esm/icons/deprecated/iconZoneGeofence.js +0 -14
- package/esm/icons/iconAddPeople2.d.ts +0 -8
- package/esm/icons/iconAddPeople2.js +0 -17
- package/esm/icons/iconCalendar2.d.ts +0 -8
- package/esm/icons/iconCalendar2.js +0 -17
- package/esm/icons/iconCornerUpRight2.d.ts +0 -8
- package/esm/icons/iconCornerUpRight2.js +0 -17
- package/esm/icons/iconImac2.d.ts +0 -8
- package/esm/icons/iconImac2.js +0 -17
- package/esm/icons/iconInbox2.d.ts +0 -8
- package/esm/icons/iconInbox2.js +0 -17
- package/esm/icons/iconMenuCircle2.d.ts +0 -8
- package/esm/icons/iconMenuCircle2.js +0 -17
- package/esm/icons/iconShare2.d.ts +0 -8
- package/esm/icons/iconShare2.js +0 -17
- package/esm/icons/iconVolumeOf.d.ts +0 -8
- package/esm/icons/iconVolumeOf.js +0 -17
- package/esm/reportPopup/groupedReportsItem.d.ts +0 -7
- package/esm/reportPopup/groupedReportsItem.js +0 -6
- package/esm/reportPopup/notificationTemplates/errorNotification.d.ts +0 -9
- package/esm/reportPopup/notificationTemplates/errorNotification.js +0 -16
- package/esm/reportPopup/notificationTemplates/infoNotification.d.ts +0 -9
- package/esm/reportPopup/notificationTemplates/infoNotification.js +0 -16
- package/esm/reportPopup/notificationTemplates/successNotification.d.ts +0 -10
- package/esm/reportPopup/notificationTemplates/successNotification.js +0 -17
- package/esm/reportPopup/reportPopup.d.ts +0 -23
- package/esm/reportPopup/reportPopup.js +0 -52
- package/esm/reportPopup/reportPopupContent.d.ts +0 -12
- package/esm/reportPopup/reportPopupContent.js +0 -26
- package/esm/reportPopup/reports.d.ts +0 -7
- package/esm/reportPopup/reports.js +0 -7
- package/esm/reportPopup/reportsItem.d.ts +0 -12
- package/esm/reportPopup/reportsItem.js +0 -14
- package/esm/reportPopup/reportsItemFormats.d.ts +0 -10
- package/esm/reportPopup/reportsItemFormats.js +0 -10
- package/esm/searchList/searchListHelpers.d.ts +0 -20
- package/esm/searchList/searchListHelpers.js +0 -79
- package/esm/searchableField/searchableField.d.ts +0 -28
- package/esm/searchableField/searchableField.js +0 -27
- package/esm/static/icons/icons.d.ts +0 -67
- package/esm/static/icons/icons.js +0 -73
- package/esm/svgIcon/svgIcon.d.ts +0 -16
- package/esm/svgIcon/svgIcon.js +0 -16
- /package/dist/commonHelpers/{translatable.js → ref.js} +0 -0
- /package/esm/commonHelpers/{translatable.js → ref.js} +0 -0
package/README.md
CHANGED
|
@@ -40,6 +40,46 @@ Zenith library provides components defined in Zenith Design System. It includes
|
|
|
40
40
|
|
|
41
41
|
## Change log
|
|
42
42
|
|
|
43
|
+
### 3.0.0
|
|
44
|
+
|
|
45
|
+
* Zenith uses React 19
|
|
46
|
+
* Clean up deprecated components and properties:
|
|
47
|
+
* method `translate` is removed in all React components. Translations are built-in, no needs to pass the method from outside.
|
|
48
|
+
* removed deprecated components:
|
|
49
|
+
* `ComboList`
|
|
50
|
+
* `combobox`
|
|
51
|
+
* `DropdownOld`
|
|
52
|
+
* `ReportPopup`
|
|
53
|
+
* `SearchList`
|
|
54
|
+
* `SearchableField`
|
|
55
|
+
* `BottomSection`
|
|
56
|
+
* `IconAddPeople2`
|
|
57
|
+
* `IconCalendar2`
|
|
58
|
+
* `IconCornerUpRight2`
|
|
59
|
+
* `IconImac2`
|
|
60
|
+
* `IconInbox2`
|
|
61
|
+
* `IconMenuCircle2`
|
|
62
|
+
* `IconShare2`
|
|
63
|
+
* `IconVolumeOf`
|
|
64
|
+
* deprecated icons (@geotab/zenith/dist/icons/deprecated)
|
|
65
|
+
|
|
66
|
+
* removed deprecated props:
|
|
67
|
+
* `Banner` - `center`, `close`
|
|
68
|
+
* `DateInput` - `hasApplyButton`
|
|
69
|
+
* `GroupsFilter` - `advancedDialog`
|
|
70
|
+
* `Header` - `useMobileVersion`
|
|
71
|
+
* `SearchInputRaw` - `withNewSearchIcon`
|
|
72
|
+
* `SelectRaw` - `maxPopupHeight`
|
|
73
|
+
* `ActionsButton` - `isMobile`
|
|
74
|
+
* `GroupsFilter` - `options.placeholder`
|
|
75
|
+
* Fix global styles on body when `Modal` is unmounted
|
|
76
|
+
* Fix `onChange` interface in `ToggleButton`
|
|
77
|
+
* Add property `onClick` to `Card` title
|
|
78
|
+
* Fix truncation in list items
|
|
79
|
+
* Improve positioning logic for popup
|
|
80
|
+
* Improve API of `FormStepper`
|
|
81
|
+
* Improve horizontal scroll animation in FiltersBar
|
|
82
|
+
|
|
43
83
|
### 2.0.0
|
|
44
84
|
|
|
45
85
|
We're excited to announce that **Zenith now supports EcmaScript Modules** (ESM)! This major release brings modern JavaScript module support to help you build better, more efficient applications.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { RefObject } from "react";
|
|
2
2
|
import "./absolute.less";
|
|
3
3
|
import { IZenComponentProps } from "../commonHelpers/zenComponent";
|
|
4
4
|
import { IAlignment } from "../utils/positioningUtils/alignments";
|
|
5
5
|
export type TAlignment = "top" | "top-left" | "top-right" | "left" | "left-top" | "left-bottom" | "right" | "right-top" | "right-bottom" | "bottom" | "bottom-left" | "bottom-right";
|
|
6
6
|
export type TTrapFocus = "on" | "off" | "withTrigger";
|
|
7
7
|
export interface IAbsolute extends IZenComponentProps {
|
|
8
|
-
triggerRef:
|
|
8
|
+
triggerRef: RefObject<HTMLElement | null>;
|
|
9
9
|
alignment?: TAlignment;
|
|
10
10
|
stateFullChilds?: boolean;
|
|
11
11
|
id: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
2
|
export interface IAccordionItem {
|
|
3
3
|
id: string;
|
|
4
4
|
title: string;
|
|
5
|
-
content:
|
|
5
|
+
content: ReactNode;
|
|
6
6
|
isActive: boolean;
|
|
7
7
|
onClick: React.MouseEventHandler<HTMLButtonElement>;
|
|
8
8
|
className?: string;
|
|
@@ -7,6 +7,14 @@ const classNames_1 = require("../../commonHelpers/classNames/classNames");
|
|
|
7
7
|
const iconChevronBottom_1 = require("../../icons/iconChevronBottom");
|
|
8
8
|
const AccordionItem = ({ title, content, isActive, onClick, id }) => {
|
|
9
9
|
const ariaControlsId = (0, react_1.useId)();
|
|
10
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("h3", { className: "zen-accordion__header", children: (0, jsx_runtime_1.jsxs)("button", { type: "button", "aria-expanded": isActive, "aria-controls": ariaControlsId, className: "zen-accordion__header-button", id: id, onClick: onClick, children: [title, (0, jsx_runtime_1.jsx)(iconChevronBottom_1.IconChevronBottom, { size: "large", className: (0, classNames_1.classNames)([
|
|
10
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("h3", { className: "zen-accordion__header", children: (0, jsx_runtime_1.jsxs)("button", { type: "button", "aria-expanded": isActive, "aria-controls": ariaControlsId, className: "zen-accordion__header-button", id: id, onClick: onClick, children: [title, (0, jsx_runtime_1.jsx)(iconChevronBottom_1.IconChevronBottom, { size: "large", className: (0, classNames_1.classNames)([
|
|
11
|
+
"zen-accordion__header-arrow",
|
|
12
|
+
isActive
|
|
13
|
+
? "zen-accordion__header-arrow--rotated"
|
|
14
|
+
: ""
|
|
15
|
+
]) })] }) }), (0, jsx_runtime_1.jsx)("div", { id: ariaControlsId, "aria-labelledby": id, role: "region", className: (0, classNames_1.classNames)([
|
|
16
|
+
"zen-accordion__content",
|
|
17
|
+
isActive ? "" : "zen-accordion__content--hidden"
|
|
18
|
+
]), children: content })] }));
|
|
11
19
|
};
|
|
12
20
|
exports.AccordionItem = AccordionItem;
|
|
@@ -8,11 +8,6 @@ export interface IAdvancedGroupsFilter extends IZenComponentProps {
|
|
|
8
8
|
onClose: () => void;
|
|
9
9
|
onApply: (state: IFilterState) => void;
|
|
10
10
|
state?: IFilterState;
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated
|
|
13
|
-
* @param translate - will be removed in the next major release
|
|
14
|
-
*/
|
|
15
|
-
translate?: (s: string) => string;
|
|
16
11
|
getData: (signal?: AbortSignal, searchValue?: string) => Promise<IDropdownItem[]>;
|
|
17
12
|
errorHandler: (e: Error) => void;
|
|
18
13
|
dataItems?: IDropdownItem[];
|
|
@@ -6,11 +6,6 @@ export interface IAdvancedGroupsFilterForm {
|
|
|
6
6
|
state: ICurrentAdvancedState[];
|
|
7
7
|
dataItems: IDropdownItem[];
|
|
8
8
|
onStateChange: (value: ICurrentAdvancedState[]) => void;
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated
|
|
11
|
-
* @param translate - will be removed in the next major release
|
|
12
|
-
*/
|
|
13
|
-
translate?: (s: string) => string;
|
|
14
9
|
getData: (signal?: AbortSignal, searchValue?: string) => Promise<IDropdownItem[]>;
|
|
15
10
|
errorHandler: (e: Error) => void;
|
|
16
11
|
tooltipText?: string;
|
|
@@ -11,11 +11,6 @@ export interface IAdvancedGroupsFilterFormSection extends IZenComponentProps {
|
|
|
11
11
|
onRelationChange: (itemId: number) => void;
|
|
12
12
|
onRemoveCondition: (e: any) => void;
|
|
13
13
|
onStateChange: (ind: number, value: string[]) => void;
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated
|
|
16
|
-
* @param translate - will be removed in the next major release
|
|
17
|
-
*/
|
|
18
|
-
translate?: (s: string) => string;
|
|
19
14
|
getData: (signal?: AbortSignal, searchValue?: string) => Promise<IDropdownItem[]>;
|
|
20
15
|
errorHandler: (e: Error) => void;
|
|
21
16
|
isHasRemoveConditionButton: boolean;
|
|
@@ -6,11 +6,6 @@ interface IAdvancedGroupsFilterSectionTooltip {
|
|
|
6
6
|
className?: string;
|
|
7
7
|
size?: TooltipSize;
|
|
8
8
|
alignment?: TAlignment;
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated
|
|
11
|
-
* @param translate - will be removed in the next major release
|
|
12
|
-
*/
|
|
13
|
-
translate?: (key: string) => string;
|
|
14
9
|
text?: string;
|
|
15
10
|
ariaLabel: string;
|
|
16
11
|
}
|
|
@@ -11,8 +11,7 @@ const AdvancedGroupsFilterSectionTooltip = ({ ariaLabel, className = "", size =
|
|
|
11
11
|
const { translate } = (0, useLanguage_1.useLanguage)();
|
|
12
12
|
const triggerRef = (0, react_1.useRef)(null);
|
|
13
13
|
const defaultTooltipText = "Use multiple operators when searching for a specific group. For example, filtering for assets that belong to the Tractor group and the Toronto group displays a list of tractors that belong to the Toronto branch.";
|
|
14
|
-
|
|
15
|
-
return ((0, jsx_runtime_1.jsx)(tooltip_1.Tooltip, { className: (0, classNames_1.classNames)(["zen-advanced-groups-filter-section-tooltip__item", className || ""]), size: size, alignment: alignment, trigger: getTrigger(triggerRef, translate(ariaLabel)), children: text || translate(defaultTooltipText) }));
|
|
14
|
+
return ((0, jsx_runtime_1.jsx)(tooltip_1.Tooltip, { className: (0, classNames_1.classNames)(["zen-advanced-groups-filter-section-tooltip__item", className || ""]), size: size, alignment: alignment, trigger: (0, jsx_runtime_1.jsx)("button", { type: "button", "aria-label": translate(ariaLabel), className: "zen-advanced-groups-filter-section-tooltip__trigger", ref: triggerRef, children: (0, jsx_runtime_1.jsx)(iconInfoCircle_1.IconInfoCircle, { className: "zen-advanced-groups-filter-section-tooltip__trigger-icon", size: "large" }) }), children: text || translate(defaultTooltipText) }));
|
|
16
15
|
};
|
|
17
16
|
exports.AdvancedGroupsFilterSectionTooltip = AdvancedGroupsFilterSectionTooltip;
|
|
18
17
|
exports.TRANSLATIONS = [
|
|
@@ -3,6 +3,6 @@ import { IAlertItem } from "../../feedbackContainer/types";
|
|
|
3
3
|
export interface IUseAlertState {
|
|
4
4
|
alerts: IAlertItem[];
|
|
5
5
|
setAlerts: React.Dispatch<React.SetStateAction<IAlertItem[]>>;
|
|
6
|
-
targetEvent: React.
|
|
6
|
+
targetEvent: React.RefObject<EventTarget>;
|
|
7
7
|
}
|
|
8
8
|
export declare const useAlertState: () => IUseAlertState;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ReactElement, RefObject } from "react";
|
|
1
2
|
import { IZenComponentProps } from "../commonHelpers/zenComponent";
|
|
2
3
|
import "./alertRaw.less";
|
|
3
4
|
import { TAnimationType } from "../feedbackContainer/types";
|
|
@@ -19,14 +20,15 @@ interface IFooterButtons {
|
|
|
19
20
|
}
|
|
20
21
|
export interface IAlertRaw extends IZenComponentProps {
|
|
21
22
|
id: string;
|
|
22
|
-
text: string |
|
|
23
|
+
text: string | ReactElement;
|
|
23
24
|
onClose: () => void;
|
|
24
25
|
isOpen: boolean;
|
|
25
26
|
header?: string;
|
|
26
27
|
type?: TAlertType;
|
|
27
28
|
animation?: TAnimationType;
|
|
28
29
|
buttons: IFooterButtons;
|
|
30
|
+
ref?: RefObject<HTMLDivElement>;
|
|
29
31
|
}
|
|
30
|
-
export declare const AlertRaw:
|
|
32
|
+
export declare const AlertRaw: ({ id, type, header, text, buttons, className, onClose, animation, isOpen, ref }: IAlertRaw) => import("react/jsx-runtime").JSX.Element;
|
|
31
33
|
export declare const TRANSLATIONS: string[];
|
|
32
34
|
export {};
|
|
@@ -27,9 +27,7 @@ const typedIcons = {
|
|
|
27
27
|
info: iconInfoCircle_1.IconInfoCircle
|
|
28
28
|
};
|
|
29
29
|
const getIcon = (t) => typedIcons[t];
|
|
30
|
-
|
|
31
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention, complexity
|
|
32
|
-
(0, react_1.forwardRef)(function InnerAlertRaw({ id, type, header, text, buttons, className, onClose, animation, isOpen }, ref) {
|
|
30
|
+
const AlertRaw = ({ id, type, header, text, buttons, className, onClose, animation, isOpen, ref }) => {
|
|
33
31
|
const { translate } = (0, useLanguage_1.useLanguage)();
|
|
34
32
|
const isDrive = (0, useDrive_1.useDrive)();
|
|
35
33
|
const isMobile = (0, useMobile_1.useMobile)();
|
|
@@ -72,7 +70,8 @@ exports.AlertRaw =
|
|
|
72
70
|
size: isDrive ? "huge" : "large",
|
|
73
71
|
className: `zen-alert__icon--${type || "info"}`
|
|
74
72
|
}) }), (0, jsx_runtime_1.jsxs)("div", { className: "zen-alert__body", children: [header && (0, jsx_runtime_1.jsx)("div", { className: `zen-alert__title zen-alert__title--${type || "info"}`, children: header }), (0, jsx_runtime_1.jsx)("div", { className: "zen-alert__text", children: text })] }), (0, jsx_runtime_1.jsx)("div", { className: "zen-alert__actions", children: (0, jsx_runtime_1.jsx)("button", { type: "button", className: (0, classNames_1.classNames)(["zen-alert__close-button", `zen-alert__close-button--${type || "info"}`]), onClick: onClose, title: translate("Close"), "aria-label": translate("Close"), children: (0, jsx_runtime_1.jsx)(iconClose_1.IconClose, { size: isDrive ? "huge" : "large" }) }) })] }) }) }), (0, jsx_runtime_1.jsxs)("div", { className: "zen-alert__body-actions", children: [tertiaryButton, primaryButton] })] }) }) });
|
|
75
|
-
}
|
|
73
|
+
};
|
|
74
|
+
exports.AlertRaw = AlertRaw;
|
|
76
75
|
exports.TRANSLATIONS = [
|
|
77
76
|
"Close"
|
|
78
77
|
];
|
package/dist/banner/banner.d.ts
CHANGED
|
@@ -18,21 +18,6 @@ export interface IBanner {
|
|
|
18
18
|
action?: IBannerAction;
|
|
19
19
|
onClose?: (e: any) => void;
|
|
20
20
|
size?: TBannerSize;
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated
|
|
23
|
-
* @param translate - will be removed in the next major release
|
|
24
|
-
*/
|
|
25
|
-
translate?: (s: string) => string;
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated
|
|
28
|
-
* @param center - will be removed in the next major release
|
|
29
|
-
*/
|
|
30
|
-
center?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* @deprecated
|
|
33
|
-
* @param close - will be removed in the next major release
|
|
34
|
-
*/
|
|
35
|
-
close?: boolean;
|
|
36
21
|
role?: string;
|
|
37
22
|
ariaAtomic?: "true" | "false";
|
|
38
23
|
ariaLive?: "off" | "assertive" | "polite";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { TIconId } from "../static/icons/icons";
|
|
2
1
|
export type TBannerSize = "XXL" | "XL" | "L" | "M" | "S" | "XS";
|
|
3
2
|
export declare const DEFAULT_BANNER_SIZE: TBannerSize;
|
|
4
3
|
export declare const DEFAULT_BANNER_UPSELL_SIZE: TBannerSize;
|
|
@@ -21,5 +20,4 @@ export declare const options: {
|
|
|
21
20
|
};
|
|
22
21
|
export declare const getBannerOptions: (type: string) => {
|
|
23
22
|
blockClassName: string;
|
|
24
|
-
iconId: TIconId;
|
|
25
23
|
};
|
|
@@ -20,5 +20,6 @@ exports.options = {
|
|
|
20
20
|
blockClassName: "zen-banner--upsell"
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
23
24
|
const getBannerOptions = (type) => exports.options[type] || exports.options.warning;
|
|
24
25
|
exports.getBannerOptions = getBannerOptions;
|
|
@@ -9,11 +9,6 @@ export interface IBetaPillActions {
|
|
|
9
9
|
}
|
|
10
10
|
export interface IBetaPill {
|
|
11
11
|
className?: string;
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated
|
|
14
|
-
* @param translate - will be removed in the next major release
|
|
15
|
-
*/
|
|
16
|
-
translate?: (s: string) => string;
|
|
17
12
|
feedbackAction?: IBetaPillActions;
|
|
18
13
|
betaOptionAction?: IBetaPillActions;
|
|
19
14
|
}
|
|
@@ -11,11 +11,6 @@ export interface IBulkEditControl extends IZenComponentProps {
|
|
|
11
11
|
value?: BulkEditItemType;
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
onChange: (optionId: string | undefined) => void;
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated
|
|
16
|
-
* @param translate - will be removed in the next major release
|
|
17
|
-
*/
|
|
18
|
-
translate?: (s: string) => string;
|
|
19
14
|
}
|
|
20
15
|
/**
|
|
21
16
|
* @deprecated - will be removed in future releases
|
package/dist/button/button.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import { TButton, THTMLButtonType } from "./buttonType";
|
|
3
3
|
import "./button.less";
|
|
4
4
|
import { IZenComponentProps } from "../commonHelpers/zenComponent";
|
|
5
|
+
import { RefObject } from "react";
|
|
5
6
|
export interface IButton extends IZenComponentProps {
|
|
6
7
|
id?: string;
|
|
7
8
|
title?: string;
|
|
@@ -18,5 +19,9 @@ export interface IButton extends IZenComponentProps {
|
|
|
18
19
|
htmlType?: THTMLButtonType;
|
|
19
20
|
target?: React.HTMLAttributeAnchorTarget;
|
|
20
21
|
rel?: string;
|
|
22
|
+
ref?: RefObject<HTMLButtonElement | null>;
|
|
21
23
|
}
|
|
22
|
-
export declare const Button:
|
|
24
|
+
export declare const Button: {
|
|
25
|
+
({ className, type, disabled, id, title, onClick, onMouseOver, onMouseOut, onMouseDown, onMouseUp, onKeyDown, onKeyUp, children, link, target, htmlType, rel, ref, ...other }: IButton): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
displayName: string;
|
|
27
|
+
};
|
package/dist/button/button.js
CHANGED
|
@@ -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,13 +13,12 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
36
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
14
|
exports.Button = void 0;
|
|
38
15
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
|
-
const React = __importStar(require("react"));
|
|
40
16
|
const buttonType_1 = require("./buttonType");
|
|
41
17
|
const classNames_1 = require("../commonHelpers/classNames/classNames");
|
|
42
18
|
const useDriveClassName_1 = require("../utils/theme/useDriveClassName");
|
|
43
19
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
44
|
-
|
|
45
|
-
var { className, type, disabled, id, title, onClick, onMouseOver, onMouseOut, onMouseDown, onMouseUp, onKeyDown, onKeyUp, children, link, target, htmlType, rel } = _a, other = __rest(_a, ["className", "type", "disabled", "id", "title", "onClick", "onMouseOver", "onMouseOut", "onMouseDown", "onMouseUp", "onKeyDown", "onKeyUp", "children", "link", "target", "htmlType", "rel"]);
|
|
20
|
+
const Button = (_a) => {
|
|
21
|
+
var { className, type, disabled, id, title, onClick, onMouseOver, onMouseOut, onMouseDown, onMouseUp, onKeyDown, onKeyUp, children, link, target, htmlType, rel, ref } = _a, other = __rest(_a, ["className", "type", "disabled", "id", "title", "onClick", "onMouseOver", "onMouseOut", "onMouseDown", "onMouseUp", "onKeyDown", "onKeyUp", "children", "link", "target", "htmlType", "rel", "ref"]);
|
|
46
22
|
const modifierClassName = type && type !== buttonType_1.ButtonType.Secondary ? `zen-button--${type}` : "";
|
|
47
23
|
const disabledClassName = disabled ? "zen-button--disabled" : "";
|
|
48
24
|
const driveClasses = (0, useDriveClassName_1.useDriveClassName)("zen-button");
|
|
@@ -62,5 +38,6 @@ exports.Button = React.forwardRef(function Button(_a, ref) {
|
|
|
62
38
|
return (0, jsx_runtime_1.jsx)("a", Object.assign({ role: "link", rel: rel, target: target, href: disabled ? undefined : link, "aria-disabled": disabled, onKeyDown: onKeyDown, onKeyUp: onKeyUp, onMouseOver: onMouseOver, onMouseOut: onMouseOut, onClick: onClick }, commonArgs, other, { children: children }));
|
|
63
39
|
}
|
|
64
40
|
return (0, jsx_runtime_1.jsx)("button", Object.assign({ onClick: onClick, onMouseOver: onMouseOver, onMouseOut: onMouseOut, onMouseDown: onMouseDown, onMouseUp: onMouseUp, onKeyDown: onKeyDown, onKeyUp: onKeyUp, ref: ref, type: htmlType, disabled: disabled }, commonArgs, other, { children: children }));
|
|
65
|
-
}
|
|
41
|
+
};
|
|
42
|
+
exports.Button = Button;
|
|
66
43
|
exports.Button.displayName = "Button";
|
|
@@ -10,11 +10,6 @@ export interface ICalendar extends IZenComponentProps {
|
|
|
10
10
|
id: string;
|
|
11
11
|
value: ICalendarRange;
|
|
12
12
|
onChange: (value: ICalendarRange, active?: "start" | "end") => void;
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated
|
|
15
|
-
* @param translate - will be removed in the next major release
|
|
16
|
-
*/
|
|
17
|
-
translate?: (key: string) => string;
|
|
18
13
|
disableFutureDates?: boolean;
|
|
19
14
|
disablePastDates?: boolean;
|
|
20
15
|
disableDatesAfter?: string;
|
package/dist/card/card.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC, FunctionComponent, ReactNode } from "react";
|
|
1
|
+
import React, { FC, FunctionComponent, ReactNode } from "react";
|
|
2
2
|
import { IAbsoluteSize, TContainerSize } from "../cardContainer/cardContainer";
|
|
3
3
|
import { TCardStatus } from "./components/status";
|
|
4
4
|
import { TIconType } from "./components/title";
|
|
@@ -21,10 +21,12 @@ export interface ICard extends IZenComponentProps, IZenGridItem {
|
|
|
21
21
|
title?: string;
|
|
22
22
|
icon?: FunctionComponent<IIcon>;
|
|
23
23
|
iconType?: TIconType;
|
|
24
|
-
secondary?:
|
|
24
|
+
secondary?: ReactNode;
|
|
25
25
|
tooltip?: ReactNode;
|
|
26
26
|
titleIconClasses?: string;
|
|
27
27
|
link?: string;
|
|
28
|
+
target?: React.HTMLAttributeAnchorTarget;
|
|
29
|
+
onClick?: () => void;
|
|
28
30
|
/**
|
|
29
31
|
* @deprecated
|
|
30
32
|
* @param date - will be removed in the next major release
|
|
@@ -38,11 +40,6 @@ export interface ICard extends IZenComponentProps, IZenGridItem {
|
|
|
38
40
|
fullWidth?: boolean;
|
|
39
41
|
scrollableContent?: boolean;
|
|
40
42
|
autoHeight?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* @deprecated
|
|
43
|
-
* @param translate - will be removed in the next major release
|
|
44
|
-
*/
|
|
45
|
-
translate?: (s: string) => string;
|
|
46
43
|
fullHeight?: boolean;
|
|
47
44
|
}
|
|
48
45
|
export declare const Card: FC<ICard> & {
|
package/dist/card/card.js
CHANGED
|
@@ -58,7 +58,7 @@ exports.DEFAULT_CARD_SIZE = "S";
|
|
|
58
58
|
const Card =
|
|
59
59
|
// eslint-disable-next-line complexity
|
|
60
60
|
(props) => {
|
|
61
|
-
const { size, children, title, icon, iconType, secondary, status, date, tooltip, className = "", link, cardContentClasses = "", tooltipAlignment, tooltipSize, fullWidth, scrollableContent = true, autoHeight = false, fullHeight = false } = props;
|
|
61
|
+
const { size, children, title, icon, iconType, secondary, status, date, tooltip, className = "", link, target, onClick, cardContentClasses = "", tooltipAlignment, tooltipSize, fullWidth, scrollableContent = true, autoHeight = false, fullHeight = false } = props;
|
|
62
62
|
const { translate } = (0, useLanguage_1.useLanguage)();
|
|
63
63
|
const [deviceType, setDeviceType] = (0, react_1.useState)(deviceType_1.DeviceType.Mobile);
|
|
64
64
|
const [cardSize, setCardSize] = (0, react_1.useState)((0, isAbsoluteSize_1.isAbsoluteSize)(size) ? (0, getContainerSize_1.getContainerSize)(size.width) : (size || exports.DEFAULT_CARD_SIZE));
|
|
@@ -93,7 +93,7 @@ const Card =
|
|
|
93
93
|
acts.push(...actionChildren.filter((child) => (child === null || child === void 0 ? void 0 : child.type) === exports.Card.Button));
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
96
|
-
if (typeof actionChildren === "object" && actionChildren.type === exports.Card.Button) {
|
|
96
|
+
if (typeof actionChildren === "object" && react_1.default.isValidElement(actionChildren) && actionChildren.type === exports.Card.Button) {
|
|
97
97
|
acts.push(actionChildren);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
@@ -150,9 +150,12 @@ const Card =
|
|
|
150
150
|
titleIconType: iconType
|
|
151
151
|
};
|
|
152
152
|
}, [icon, iconType, status]);
|
|
153
|
-
const isHeaderPrimaryVisible = title || icon || link || !!headerActions.length || date || !!favoriteButton || !!tooltip || !!menuActions.length;
|
|
153
|
+
const isHeaderPrimaryVisible = title || icon || link || onClick || !!headerActions.length || date || !!favoriteButton || !!tooltip || !!menuActions.length;
|
|
154
154
|
const isHeaderVisible = isHeaderPrimaryVisible || secondary;
|
|
155
|
-
return (0, jsx_runtime_1.jsxs)(cardContainer_1.CardContainer, { isMobile: isMobile, fullWidth: isFullWidth, fullHeight: isFullHeight, autoHeight: isAutoHeight, scrollable: isScrollable, ref: containerRef, size: size || "S", className: (0, classNames_1.classNames)(["zen-card", !isHeaderVisible ? "zen-card--no-header" : "", className]), children: [isHeaderVisible ? (0, jsx_runtime_1.jsxs)("div", { className: "zen-card__header", ref: headerRef, children: [isHeaderPrimaryVisible && (0, jsx_runtime_1.jsxs)("div", { className: "zen-card__header-primary", children: [title && (0, jsx_runtime_1.jsx)(title_1.Title, { id: titleId, link: link, isMobile: isMobile, title: title, icon: titleIcon, iconType: titleIconType }), (0, jsx_runtime_1.jsxs)("div", { className: "zen-card__header-right", children: [!!headerActions.length && headerActions, date ? (0, jsx_runtime_1.jsx)("span", { className: dateClassName, children: date }) : null, favoriteButton, tooltip && (0, jsx_runtime_1.jsx)(status_1.Status, { title: title, status: status, isMobile: isMobile, tooltip: tooltip, tooltipAlignment: tooltipAlignment, tooltipSize: tooltipSize }), !!menuActions.length && (0, jsx_runtime_1.jsx)(menu_1.Menu, { trigger: menuTrigger, title: title || translate("Actions"), children: menuActions.map(
|
|
155
|
+
return (0, jsx_runtime_1.jsxs)(cardContainer_1.CardContainer, { isMobile: isMobile, fullWidth: isFullWidth, fullHeight: isFullHeight, autoHeight: isAutoHeight, scrollable: isScrollable, ref: containerRef, size: size || "S", className: (0, classNames_1.classNames)(["zen-card", !isHeaderVisible ? "zen-card--no-header" : "", className]), children: [isHeaderVisible ? (0, jsx_runtime_1.jsxs)("div", { className: "zen-card__header", ref: headerRef, children: [isHeaderPrimaryVisible && (0, jsx_runtime_1.jsxs)("div", { className: "zen-card__header-primary", children: [title && (0, jsx_runtime_1.jsx)(title_1.Title, { id: titleId, link: link, target: target, onClick: onClick, isMobile: isMobile, title: title, icon: titleIcon, iconType: titleIconType }), (0, jsx_runtime_1.jsxs)("div", { className: "zen-card__header-right", children: [!!headerActions.length && headerActions, date ? (0, jsx_runtime_1.jsx)("span", { className: dateClassName, children: date }) : null, favoriteButton, tooltip && (0, jsx_runtime_1.jsx)(status_1.Status, { title: title, status: status, isMobile: isMobile, tooltip: tooltip, tooltipAlignment: tooltipAlignment, tooltipSize: tooltipSize }), !!menuActions.length && (0, jsx_runtime_1.jsx)(menu_1.Menu, { trigger: menuTrigger, title: title || translate("Actions"), children: menuActions.map((action, index) => {
|
|
156
|
+
const actionProps = action.props;
|
|
157
|
+
return (0, react_1.createElement)(menu_1.Menu.Item, Object.assign({ key: actionProps.id || index, id: actionProps.id || `action-${index}`, name: actionProps.name || "" }, actionProps));
|
|
158
|
+
}) })] })] }), secondary ? (0, jsx_runtime_1.jsx)("div", { className: "zen-card__secondary", children: secondary }) : null] }) : null, (0, jsx_runtime_1.jsx)("div", { className: cardContentClassName, children: content })] });
|
|
156
159
|
};
|
|
157
160
|
exports.Card = Card;
|
|
158
161
|
exports.TRANSLATIONS = [
|
|
@@ -14,11 +14,6 @@ interface IStatus extends IZenComponentProps {
|
|
|
14
14
|
tooltipAlignment?: TAlignment;
|
|
15
15
|
tooltipSize?: TooltipSize;
|
|
16
16
|
title?: string;
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated
|
|
19
|
-
* @param translate - will be removed in the next major release
|
|
20
|
-
*/
|
|
21
|
-
translate?: (s: string) => string;
|
|
22
17
|
}
|
|
23
18
|
export declare const Status: FC<IStatus>;
|
|
24
19
|
export {};
|
|
@@ -8,8 +8,10 @@ interface ITitle {
|
|
|
8
8
|
id: string;
|
|
9
9
|
className?: string;
|
|
10
10
|
link?: string;
|
|
11
|
+
target?: React.HTMLAttributeAnchorTarget;
|
|
11
12
|
icon?: FunctionComponent<IIcon>;
|
|
12
13
|
iconType?: TIconType;
|
|
14
|
+
onClick?: () => void;
|
|
13
15
|
}
|
|
14
16
|
export declare const Title: FC<ITitle>;
|
|
15
17
|
export {};
|
|
@@ -7,15 +7,20 @@ const classNames_1 = require("../../commonHelpers/classNames/classNames");
|
|
|
7
7
|
const useDriveClassName_1 = require("../../utils/theme/useDriveClassName");
|
|
8
8
|
const useDrive_1 = require("../../utils/theme/useDrive");
|
|
9
9
|
const iconChevronRightSmall_1 = require("../../icons/iconChevronRightSmall");
|
|
10
|
-
const Title = ({ isMobile, link, title, id, icon, iconType, className = "" }) => {
|
|
10
|
+
const Title = ({ isMobile, link, target, title, id, icon, iconType, className = "", onClick }) => {
|
|
11
11
|
const driveClassNames = (0, useDriveClassName_1.useDriveClassName)("zen-card-title");
|
|
12
12
|
const isDrive = (0, useDrive_1.useDrive)();
|
|
13
13
|
const iconClassName = iconType ? `zen-card-title__icon--${iconType}` : "";
|
|
14
14
|
const iconSize = (0, react_1.useMemo)(() => isDrive ? "huge" : "large", [isDrive]);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
const iconElement = (0, react_1.useMemo)(() => icon
|
|
16
|
+
? (0, jsx_runtime_1.jsx)("div", { className: (0, classNames_1.classNames)(["zen-card-title__icon", iconClassName]), children: (0, react_1.createElement)(icon, { size: iconSize }) })
|
|
17
|
+
: null, [icon, iconSize, iconClassName]);
|
|
18
|
+
const chevron = (0, react_1.useMemo)(() => (0, jsx_runtime_1.jsx)("div", { className: "zen-card-title__link-chevron", children: (0, jsx_runtime_1.jsx)(iconChevronRightSmall_1.IconChevronRightSmall, { size: iconSize, className: "zen-card-title__chevron-icon" }) }), [iconSize]);
|
|
19
|
+
const roleProp = onClick ? "button" : undefined;
|
|
20
|
+
const tabIndexProp = onClick ? 0 : undefined;
|
|
21
|
+
const titleClasses = (0, classNames_1.classNames)(["zen-card-title", driveClassNames || "", onClick ? "zen-card-title__clickable" : ""]);
|
|
22
|
+
return (0, jsx_runtime_1.jsxs)("div", { className: titleClasses, role: roleProp, onClick: onClick, tabIndex: tabIndexProp, children: [iconElement, link && !onClick
|
|
23
|
+
? (0, jsx_runtime_1.jsxs)("a", { id: id, className: (0, classNames_1.classNames)(["zen-card-title__link"]), href: link, target: target, children: [(0, jsx_runtime_1.jsx)("span", { title: title, className: (0, classNames_1.classNames)(["zen-card-title__link-text"]), children: title }), chevron] })
|
|
24
|
+
: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { title: title, id: id, className: (0, classNames_1.classNames)(["zen-card-title__text", (isMobile && !isDrive) ? "zen-card-title__text--mobile" : "", className]), children: title }), onClick ? chevron : null] })] });
|
|
20
25
|
};
|
|
21
26
|
exports.Title = Title;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { RefObject } from "react";
|
|
1
2
|
import { TContainerSize } from "../../cardContainer/cardContainer";
|
|
2
|
-
export declare const useCardSize: (callback: (deviceType: TContainerSize) => void, elem:
|
|
3
|
+
export declare const useCardSize: (callback: (deviceType: TContainerSize) => void, elem: RefObject<HTMLDivElement | null>, size: TContainerSize) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { RefObject } from "react";
|
|
2
2
|
import { IZenComponentProps, IZenGridItem } from "../commonHelpers/zenComponent";
|
|
3
3
|
import "./cardContainer.less";
|
|
4
4
|
export type TContainerSize = "XXL" | "XL" | "L" | "M" | "S" | "XS" | "XXS";
|
|
@@ -13,5 +13,6 @@ export interface ICardContainer extends IZenComponentProps, IZenGridItem {
|
|
|
13
13
|
autoHeight?: boolean;
|
|
14
14
|
scrollable?: boolean;
|
|
15
15
|
isMobile?: boolean;
|
|
16
|
+
ref?: RefObject<HTMLDivElement | null>;
|
|
16
17
|
}
|
|
17
|
-
export declare const CardContainer:
|
|
18
|
+
export declare const CardContainer: ({ size, children, fullWidth, className, isMobile, fullHeight, autoHeight, scrollable, ref }: ICardContainer) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,9 +7,7 @@ const isAbsoluteSize_1 = require("./helpers/isAbsoluteSize");
|
|
|
7
7
|
const classNames_1 = require("../commonHelpers/classNames/classNames");
|
|
8
8
|
const getSizeClass_1 = require("./helpers/getSizeClass");
|
|
9
9
|
const useAbsoluteSize_1 = require("./hooks/useAbsoluteSize");
|
|
10
|
-
|
|
11
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
12
|
-
function CardContainerInner({ size, children, fullWidth = false, className = "", isMobile = false, fullHeight = false, autoHeight = false, scrollable = true }, ref) {
|
|
10
|
+
const CardContainer = ({ size, children, fullWidth = false, className = "", isMobile = false, fullHeight = false, autoHeight = false, scrollable = true, ref }) => {
|
|
13
11
|
const isDesktop = !isMobile;
|
|
14
12
|
const isAbsolute = (0, isAbsoluteSize_1.isAbsoluteSize)(size);
|
|
15
13
|
const containerClassNames = (0, react_1.useMemo)(() => (0, classNames_1.classNames)([
|
|
@@ -24,4 +22,5 @@ function CardContainerInner({ size, children, fullWidth = false, className = "",
|
|
|
24
22
|
]), [size, fullWidth, className, isMobile, isDesktop, isAbsolute, fullHeight, autoHeight, scrollable]);
|
|
25
23
|
const style = (0, useAbsoluteSize_1.useAbsoluteSize)(size, isMobile, autoHeight, fullWidth);
|
|
26
24
|
return ((0, jsx_runtime_1.jsx)("div", { ref: ref, style: style, className: containerClassNames, children: children }));
|
|
27
|
-
}
|
|
25
|
+
};
|
|
26
|
+
exports.CardContainer = CardContainer;
|
|
@@ -12,7 +12,7 @@ export declare const useSummary: (chartSummary: IChartSummary | false | undefine
|
|
|
12
12
|
more?: import("react").ReactNode;
|
|
13
13
|
isEnabled?: boolean | undefined;
|
|
14
14
|
onToggle?: (() => void) | undefined;
|
|
15
|
-
description?: string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined;
|
|
15
|
+
description?: string | number | bigint | boolean | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | null | undefined;
|
|
16
16
|
label?: string | undefined;
|
|
17
17
|
onClick?: (() => void) | undefined;
|
|
18
18
|
isHidden?: boolean | undefined;
|
|
@@ -24,11 +24,6 @@ export interface ICheckboxListWithAction extends IZenComponentProps {
|
|
|
24
24
|
search?: string[];
|
|
25
25
|
onChange: (value: IChangeCheckbox) => void;
|
|
26
26
|
onClick: (id: string) => void;
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated
|
|
29
|
-
* @param translate - will be removed in the next major release
|
|
30
|
-
*/
|
|
31
|
-
translate?: (s: string) => string;
|
|
32
27
|
}
|
|
33
28
|
export declare const CheckboxListWithAction: React.FC<ICheckboxListWithAction>;
|
|
34
29
|
export declare const TRANSLATIONS: string[];
|
|
@@ -4,7 +4,7 @@ interface ITriggerModeProps {
|
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
}
|
|
6
6
|
export declare const useChip: (initialTitle?: string, triggerModeProps?: ITriggerModeProps) => {
|
|
7
|
-
ref: import("react").RefObject<HTMLElement>;
|
|
7
|
+
ref: import("react").RefObject<HTMLElement | null>;
|
|
8
8
|
title: string;
|
|
9
9
|
};
|
|
10
10
|
export {};
|
|
@@ -4,11 +4,6 @@ import { IColumnsGroup } from "./columnsTabGroup/columnsTabGroup";
|
|
|
4
4
|
import "./columnsSelector.less";
|
|
5
5
|
export interface IColumnsSelector {
|
|
6
6
|
id: string;
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated
|
|
9
|
-
* @param translate - will be removed in the next major release
|
|
10
|
-
*/
|
|
11
|
-
translate?: (s: string) => string;
|
|
12
7
|
columns?: IColumnItem[];
|
|
13
8
|
onColumnToggle?: (columnsState: IColumnItem[]) => void;
|
|
14
9
|
additionalColumns?: IColumnsGroup[];
|
|
@@ -9,11 +9,6 @@ interface IColumnsTab {
|
|
|
9
9
|
id: string;
|
|
10
10
|
columns: IColumnItem[];
|
|
11
11
|
onColumnToggle: (state: IColumnItem[]) => void;
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated
|
|
14
|
-
* @param translate - will be removed in the next major release
|
|
15
|
-
*/
|
|
16
|
-
translate?: (s: string) => string;
|
|
17
12
|
}
|
|
18
13
|
export declare const ColumnsTab: React.FC<IColumnsTab>;
|
|
19
14
|
export declare const TRANSLATIONS: string[];
|
|
@@ -8,11 +8,6 @@ export interface IColumnsGroup {
|
|
|
8
8
|
interface IColumnsTabGroup {
|
|
9
9
|
columns: IColumnsGroup[];
|
|
10
10
|
onColumnToggle: (state: IColumnsGroup[]) => void;
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated
|
|
13
|
-
* @param translate - will be removed in the next major release
|
|
14
|
-
*/
|
|
15
|
-
translate?: (s: string) => string;
|
|
16
11
|
}
|
|
17
12
|
export declare const ColumnsTabGroup: React.FC<IColumnsTabGroup>;
|
|
18
13
|
export declare const TRANSLATIONS: string[];
|