@geotab/zenith 3.14.1 → 3.15.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 +28 -2
- package/dist/advancedGroupsFilter/advancedGroupsFilterFormSection.js +17 -7
- package/dist/alert/banner.d.ts +2 -3
- package/dist/alert/hooks/useAlertState.d.ts +0 -1
- package/dist/banner/bannerMultipLine.d.ts +0 -1
- package/dist/banner/bannerSingleLine.d.ts +0 -1
- package/dist/banner/utils/isSummaryErrorElement.d.ts +1 -2
- package/dist/calendar/dateUtils.js +2 -2
- package/dist/card/card.js +17 -7
- package/dist/card/components/content.d.ts +0 -1
- package/dist/cardContainer/helpers/getSizeClass.js +1 -2
- package/dist/chart/accessibleChart/accessibleChart.js +1 -1
- package/dist/chart/accessibleChart/accessibleChartNarrative.d.ts +1 -1
- package/dist/chart/accessibleChart/accessibleChartNarrative.js +11 -5
- package/dist/chart/accessibleChart/generatePieNarrative.d.ts +7 -0
- package/dist/chart/accessibleChart/generatePieNarrative.js +179 -0
- package/dist/chart/accessibleChart/interfaces.d.ts +1 -0
- package/dist/chart/barChart/getDefaultOptions.js +5 -6
- package/dist/chart/barChart.js +152 -50
- package/dist/chart/interfaces.d.ts +0 -1
- package/dist/chart/lineChart/getDefaultOptions.js +5 -6
- package/dist/chart/lineChart/useChartTicks.d.ts +0 -1
- package/dist/chart/lineChart/useSummary.d.ts +7 -8
- package/dist/chart/lineChart.js +167 -59
- package/dist/chart/pieChart.js +174 -76
- package/dist/chart/plugins/linePlugin/getInterpolatedValue.js +1 -2
- package/dist/chart/plugins/linePlugin/linePlugin.js +29 -7
- package/dist/chart/utils/convertDates.d.ts +1 -1
- package/dist/chart/utils/getFormattedLabel.js +1 -2
- package/dist/chart/utils/getNiceAxisRange.d.ts +21 -0
- package/dist/chart/utils/getNiceAxisRange.js +76 -0
- package/dist/chart/utils/getRange.js +2 -2
- package/dist/chart/utils/getYAxisMeta.d.ts +2 -5
- package/dist/chart/utils/getYAxisMeta.js +17 -2
- package/dist/chart/utils/getYAxisTickCount.d.ts +15 -0
- package/dist/chart/utils/getYAxisTickCount.js +19 -0
- package/dist/chart/utils/resampleArrayEvenly.js +1 -2
- package/dist/checkbox/checkbox.js +17 -7
- package/dist/checkboxListWithAction/checkboxListWithAction.d.ts +0 -1
- package/dist/chip/chip.d.ts +0 -1
- package/dist/chip/utils/useChip.d.ts +0 -1
- package/dist/commonHelpers/HOC/reducerLogger/reducerLogger.d.ts +1 -1
- package/dist/commonHelpers/arrowNavigation/components/arrowButton/arrowButton.d.ts +0 -1
- package/dist/commonHelpers/arrowNavigation/hooks/useHoldOnScroll.d.ts +0 -1
- package/dist/commonHelpers/generateId.js +1 -2
- package/dist/commonHelpers/hooks/breakpoints.d.ts +4 -0
- package/dist/commonHelpers/hooks/breakpoints.js +7 -0
- package/dist/commonHelpers/hooks/fetch.reducer.d.ts +1 -1
- package/dist/commonHelpers/hooks/fetch.reducer.js +1 -2
- package/dist/commonHelpers/hooks/useDebouncedMemo.d.ts +0 -1
- package/dist/commonHelpers/hooks/useDebouncedMemo.js +1 -2
- package/dist/commonHelpers/hooks/useDeviceType.js +2 -2
- package/dist/commonHelpers/hooks/useEscape.d.ts +1 -1
- package/dist/commonHelpers/hooks/useGridSize.d.ts +0 -1
- package/dist/commonHelpers/hooks/useMobileOrTablet.d.ts +1 -0
- package/dist/commonHelpers/hooks/useMobileOrTablet.js +21 -0
- package/dist/commonHelpers/hooks/usePillSize.d.ts +0 -1
- package/dist/{gridLayout → commonHelpers}/hooks/useTablet.js +8 -11
- package/dist/commonHelpers/utils.js +3 -3
- package/dist/commonStyles/colors/colors.less +1 -0
- package/dist/dataFeed/dataFeed.d.ts +1 -1
- package/dist/dataFeed/dataFeed.js +2 -2
- package/dist/dataFeed/dataFeedCell/dataFeedCell.d.ts +3 -1
- package/dist/dataFeed/dataFeedColumnsItems.d.ts +2 -2
- package/dist/dataGrid/cell/cell.d.ts +3 -1
- package/dist/dataGrid/columns/actionsColumn/actionsButton.js +1 -2
- package/dist/dataGrid/columns/actionsColumn/actionsColumn.d.ts +3 -3
- package/dist/dataGrid/dataGrid.d.ts +13 -1
- package/dist/dataGrid/dataGrid.js +48 -3
- package/dist/dataGrid/emptySearchList/emptySearchList.d.ts +0 -1
- package/dist/dataGrid/row/row.d.ts +3 -1
- package/dist/dataGrid/withActions/withActions.d.ts +1 -1
- package/dist/dataGrid/withFlexibleColumns/components/columnSettingsList.js +1 -2
- package/dist/dataGrid/withFlexibleColumns/withFlexibleColumns.d.ts +1 -1
- package/dist/dataGrid/withLoading/withLoading.d.ts +1 -1
- package/dist/dataGrid/withSelectableRows/withLimitedSelectableRows.d.ts +1 -1
- package/dist/dataGrid/withSelectableRows/withSelectableRows.d.ts +1 -1
- package/dist/dataGrid/withSortableColumns/withSortableColumns.d.ts +1 -1
- package/dist/dateInputInner/dateInputInnerReducer.js +2 -2
- package/dist/dateRangeRaw/utils/areMapsEqual.js +1 -2
- package/dist/dialog/dialog.d.ts +0 -1
- package/dist/dropdown/dropdown.js +1 -1
- package/dist/dropdown/useDropdownState.d.ts +0 -1
- package/dist/dropdownRaw/dropdownHelper.js +2 -2
- package/dist/dropdownRaw/dropdownList.d.ts +3 -2
- package/dist/dropdownRaw/dropdownList.js +31 -49
- package/dist/dropdownRaw/dropdownRaw.js +34 -13
- package/dist/dropdownRaw/stateReducer/stateReducer.d.ts +4 -1
- package/dist/dropdownRaw/stateReducer/stateReducer.js +33 -23
- package/dist/dropdownRaw/stateReducer/stateReducerHelper.d.ts +1 -2
- package/dist/dropdownRaw/stateReducer/stateReducerHelper.js +8 -13
- package/dist/dropdownRaw/types.d.ts +20 -0
- package/dist/feedbackContainer/feedbackContainer.js +17 -7
- package/dist/feedbackContainer/hooks/useFeedbackAlert.d.ts +0 -1
- package/dist/feedbackContainer/hooks/useFeedbackToast.d.ts +0 -1
- package/dist/filters/components/filtersDropdown.js +2 -2
- package/dist/filters/components/filtersItem.d.ts +2 -2
- package/dist/filters/components/filtersSearchList.d.ts +0 -1
- package/dist/filters/components/filtersSelect.d.ts +0 -1
- package/dist/filters/components/filtersSelectCompact.d.ts +0 -1
- package/dist/filters/components/filtersSelectListItem.d.ts +0 -1
- package/dist/filters/components/filtersSelectUnfoldingPill.d.ts +0 -1
- package/dist/filters/components/filtersSidePanelItem.js +17 -7
- package/dist/filters/filtersHelper.d.ts +1 -1
- package/dist/filters/filtersHelper.js +5 -5
- package/dist/filters/filtersHooks.d.ts +0 -1
- package/dist/filtersBar/components/filtersBarDropdownWithCheckbox/filtersBarDropdownWithCheckbox.js +1 -1
- package/dist/filtersBar/components/filtersBarPeriodPicker/getRangeOption.js +2 -2
- package/dist/filtersBar/filtersBar.js +2 -2
- package/dist/filtersBar/filtersBarActions/filtersBarActions.d.ts +0 -1
- package/dist/filtersBar/filtersBarInterfaces.d.ts +0 -1
- package/dist/filtersBar/filtersBarReducer.js +2 -2
- package/dist/filtersBar/filtersBarSidePanel/components/filtersBarSidePanelDropdownWithCheckbox/filtersBarSidePanelDropdownWithCheckbox.d.ts +4 -10
- package/dist/filtersBar/filtersBarSidePanel/sidePanelReducer.js +2 -2
- package/dist/filtersBar/utils/getNumberOfChangedFilters.js +1 -2
- package/dist/footerButtons/footerButtons.js +17 -7
- package/dist/formField/components/formFieldAdditionalInfo.d.ts +0 -1
- package/dist/formField/components/formFieldCounter.d.ts +0 -1
- package/dist/formField/components/formFieldLoading.d.ts +0 -1
- package/dist/formField/components/formFieldSkeleton.d.ts +0 -1
- package/dist/formField/components/formFieldWithLabel.d.ts +0 -1
- package/dist/formField/components/formFieldWithoutLabel.d.ts +0 -1
- package/dist/formField/formField.d.ts +1 -1
- package/dist/formField/hooks/useBanner.d.ts +0 -1
- package/dist/formField/hooks/useDisabled.d.ts +1 -1
- package/dist/formGroup/components/customRow/customRow.d.ts +0 -1
- package/dist/formGroup/formGroup.js +17 -7
- package/dist/formGroup/hooks/listHooks/useStateToElements.d.ts +0 -1
- package/dist/formGroup/hooks/listHooks/useStateToElements.js +1 -1
- package/dist/formGroup/utils/formGroupProvider.d.ts +0 -1
- package/dist/formGroup/utils/isFormLabel.d.ts +1 -1
- package/dist/formGroupItem/formGroupItem.d.ts +0 -1
- package/dist/formLayout/components/layoutColumn/layoutColum.d.ts +0 -1
- package/dist/formLayout/hooks/useFormButtons.d.ts +1 -1
- package/dist/formLayout/types.d.ts +0 -1
- package/dist/formLayout/utils/attachHeadings.d.ts +1 -1
- package/dist/formLayout/utils/attachSeparators.d.ts +0 -1
- package/dist/formLayout/utils/getChildrenWithCustomColumns.d.ts +1 -2
- package/dist/formLayout/utils/getChildrenWithCustomColumns.js +2 -2
- package/dist/formLayout/utils/getFieldLabel.js +5 -5
- package/dist/formSection/components/actions.d.ts +0 -1
- package/dist/formSection/components/additional.d.ts +0 -1
- package/dist/formSection/utils/isFormSection.d.ts +2 -4
- package/dist/formStepper/components/formStepRaw.d.ts +0 -1
- package/dist/formStepper/formStepper.d.ts +0 -1
- package/dist/formStepper/formStepper.js +5 -5
- package/dist/formStepperButtons/formStepperButtons.js +3 -3
- package/dist/gridLayout/hooks/useStretch.js +1 -1
- package/dist/gridLayout/utils/convertStateToClasses.js +1 -2
- package/dist/gridLayout/utils/gridLayoutProvider.d.ts +0 -1
- package/dist/gridLayout/utils/gridLayoutProvider.js +1 -1
- package/dist/gridLayout/utils/isGridItem.d.ts +1 -1
- package/dist/groupsFilter/groupsHelper.d.ts +5 -5
- package/dist/groupsFilterRaw/groupsFilterHelper.js +16 -16
- package/dist/groupsFilterRaw/groupsHelper.d.ts +1 -1
- package/dist/groupsFilterRaw/groupsHelper.js +4 -4
- package/dist/groupsFilterRaw/stateReducer/stateReducer.d.ts +1 -1
- package/dist/groupsFilterRaw/stateReducer/stateReducer.js +2 -2
- package/dist/groupsFilterRaw/testData.js +3 -4
- package/dist/groupsFilterRaw/uiStateReducer/uiStateReducer.js +2 -2
- package/dist/header/components/collapsedItemsControl/utils/handleCustomMenuWrapper.js +5 -0
- package/dist/header/components/mobileFilterControl/mobileFilterControl.d.ts +0 -1
- package/dist/header/components/mobileSearchControl/mobileSearchControl.d.ts +0 -1
- package/dist/header/header.js +17 -7
- package/dist/header/headerButton.d.ts +0 -1
- package/dist/header/headerContext.d.ts +1 -2
- package/dist/header/headerHelpers.d.ts +5 -5
- package/dist/header/headerHelpers.js +17 -7
- package/dist/header/hooks/useNonFittingElements.d.ts +3 -4
- package/dist/headerTitle/headerTitle.d.ts +0 -1
- package/dist/icons/iconAce.d.ts +3 -0
- package/dist/icons/iconAce.js +12 -0
- package/dist/icons/iconBreak.d.ts +3 -0
- package/dist/icons/iconBreak.js +12 -0
- package/dist/icons/iconChevronStepper.d.ts +3 -0
- package/dist/icons/iconChevronStepper.js +12 -0
- package/dist/icons/iconPotato.d.ts +3 -0
- package/dist/icons/iconPotato.js +12 -0
- package/dist/icons/iconToggleLarge.d.ts +3 -0
- package/dist/icons/iconToggleLarge.js +12 -0
- package/dist/icons/iconToggleSmall.d.ts +3 -0
- package/dist/icons/iconToggleSmall.js +12 -0
- package/dist/icons/iconTrendNeutral.d.ts +3 -0
- package/dist/icons/iconTrendNeutral.js +12 -0
- package/dist/icons/iconTruck.d.ts +3 -0
- package/dist/icons/iconTruck.js +12 -0
- package/dist/index.css +219 -169
- package/dist/index.d.ts +8 -0
- package/dist/index.js +30 -13
- package/dist/layout/layout.d.ts +2 -1
- package/dist/layout/layout.js +17 -7
- package/dist/layout/layoutBanner.d.ts +0 -1
- package/dist/lineChart/lineChart.d.ts +1 -0
- package/dist/lineChart/lineChart.js +135 -70
- package/dist/lineChartMini/lineChartMini.d.ts +1 -0
- package/dist/lineChartMini/lineChartMini.js +141 -73
- package/dist/list/itemData/itemData.d.ts +2 -1
- package/dist/list/itemData/itemDataInternal.d.ts +2 -1
- package/dist/list/list.d.ts +0 -1
- package/dist/list/utils/changeOrder.js +1 -2
- package/dist/list/utils/isDataListitem.d.ts +1 -1
- package/dist/list/viewportProvider/viewportContext.d.ts +0 -1
- package/dist/menu/components/controlledMenuList/controlledMenuList.d.ts +2 -4
- package/dist/menu/components/controlledMenuList/controlledMenuList.js +3 -1
- package/dist/menu/components/createControlledMenuList.js +1 -2
- package/dist/menu/components/createMenuItem.js +1 -2
- package/dist/menu/contexts/usePathContext.js +1 -2
- package/dist/menu/utils/buildMenuContent.js +1 -2
- package/dist/menu/utils/findPrevFocusable.js +1 -2
- package/dist/menu/utils/useDisplayContent.d.ts +21 -0
- package/dist/menu/utils/useDisplayContent.js +35 -0
- package/dist/menu/utils/useMenuItemKeyboardNav.js +1 -2
- package/dist/miniTabs/miniTabsHelper.js +17 -7
- package/dist/mobileSheet/components/mobileSheetTitle.d.ts +0 -1
- package/dist/modal/modal.js +17 -7
- package/dist/nav/context/nav.context.d.ts +0 -1
- package/dist/nav/navFooter/navEditFooter/navEditFooter.d.ts +0 -1
- package/dist/nav/navFooter/navFooter.d.ts +1 -1
- package/dist/nav/navFooter/navFooterAction/navFooterAction.d.ts +2 -1
- package/dist/nav/navFooter/navFooterAction/navFooterAction.js +3 -1
- package/dist/nav/navItem/navItem.d.ts +2 -0
- package/dist/nav/navItem/navItem.js +56 -47
- package/dist/nav/navItem/navItemContent.d.ts +19 -0
- package/dist/nav/navItem/navItemContent.js +21 -0
- package/dist/nav/navItem/navItemType.d.ts +7 -0
- package/dist/nav/navItem/navItemType.js +9 -0
- package/dist/nav/utils/navUtils.d.ts +2 -4
- package/dist/nav/utils/navUtils.js +2 -2
- package/dist/overview/overview.d.ts +0 -1
- package/dist/pageHeader/pageHeader.d.ts +1 -1
- package/dist/pageHeader/pageHeaderButton.d.ts +0 -1
- package/dist/pageHeader/pageHeaderHelpers.d.ts +1 -1
- package/dist/pageHeader/pageHeaderMenu.d.ts +0 -1
- package/dist/pagination/paginationArrow.d.ts +0 -1
- package/dist/pill/interfaces/pill.interface.d.ts +0 -1
- package/dist/pillBox/components/pillBoxItem.d.ts +1 -2
- package/dist/popup/popup.js +17 -7
- package/dist/progressIndicator/progressIndicator.d.ts +39 -0
- package/dist/progressIndicator/progressIndicator.js +30 -0
- package/dist/progressIndicator/progressIndicatorUtils.d.ts +12 -0
- package/dist/progressIndicator/progressIndicatorUtils.js +30 -0
- package/dist/radioGroupRaw/radioGroupRaw.js +17 -7
- package/dist/radioGroupRaw/types.d.ts +0 -1
- package/dist/react-chartjs/dateFns/dateFns.js +10 -11
- package/dist/react-chartjs/utils.d.ts +3 -3
- package/dist/react-chartjs/utils.js +8 -9
- package/dist/searchInputRaw/searchInputRaw.js +17 -7
- package/dist/searchInputRaw/types.d.ts +0 -1
- package/dist/selectField/selectField.d.ts +2 -3
- package/dist/selectList/selectList.d.ts +0 -1
- package/dist/selectRaw/hooks/usePopupWidth.js +17 -7
- package/dist/selectRaw/selectRaw.js +20 -7
- package/dist/sidePanel/sidePanelCell/sidePanelCell.d.ts +0 -1
- package/dist/summaries/utils/splitIntoPairs.js +1 -2
- package/dist/summaryTile/summaryTile.js +17 -7
- package/dist/summaryTile/summaryTileTrigger.js +17 -7
- package/dist/table/actions/actionsMenu.d.ts +0 -1
- package/dist/table/children/useTableChildren.d.ts +7 -7
- package/dist/table/detailPanel/interfaces.d.ts +0 -1
- package/dist/table/flexible/columnsList.js +1 -2
- package/dist/table/loading/useLoading.d.ts +10 -10
- package/dist/table/nested/nestedData.d.ts +3 -1
- package/dist/table/nested/useNestedRows.d.ts +2 -2
- package/dist/table/selectable/selectableHeader.d.ts +2 -1
- package/dist/table/selectable/selectableHeader.js +4 -3
- package/dist/table/selectable/useSelectableRows.d.ts +1 -1
- package/dist/table/selectable/useSelectableRows.js +7 -4
- package/dist/table/table.d.ts +16 -1
- package/dist/table/table.js +101 -5
- package/dist/tag/tag.d.ts +19 -0
- package/dist/tag/tag.js +14 -0
- package/dist/textIconButton/textIconButton.js +17 -7
- package/dist/toastRaw/toastRaw.d.ts +1 -1
- package/dist/toastRaw/toastRaw.js +3 -1
- package/dist/toggleButtonRaw/toggleButtonRaw.js +17 -7
- package/dist/toggleButtonRaw/types.d.ts +0 -1
- package/dist/tooltip/tooltip.js +17 -7
- package/dist/tooltipInfo/tooltipInfo.d.ts +0 -1
- package/dist/tsconfig.cjs.tsbuildinfo +1 -0
- package/dist/utils/compareElementsUtils/isArraysEqualDeeply.js +1 -2
- package/dist/utils/compareElementsUtils/isElementsEqual.js +2 -2
- package/dist/utils/escapeHtml.js +1 -2
- package/dist/utils/localization/directionContext.d.ts +0 -1
- package/dist/utils/localization/languageContext.d.ts +0 -1
- package/dist/utils/localization/translations/en.json +12 -1
- package/dist/utils/theme/themeContext.d.ts +0 -1
- package/dist/utils/topWindow/topWindowContext.d.ts +0 -1
- package/dist/utils/useFadeComponent.d.ts +0 -1
- package/dist/utils/userFormat/userFormatContext.d.ts +0 -1
- package/dist/waiting/waiting.d.ts +2 -1
- package/dist/waiting/waiting.js +23 -6
- package/esm/alert/banner.d.ts +2 -3
- package/esm/alert/hooks/useAlertState.d.ts +0 -1
- package/esm/banner/bannerMultipLine.d.ts +0 -1
- package/esm/banner/bannerSingleLine.d.ts +0 -1
- package/esm/banner/utils/isSummaryErrorElement.d.ts +1 -2
- package/esm/card/components/content.d.ts +0 -1
- package/esm/chart/accessibleChart/accessibleChart.js +1 -1
- package/esm/chart/accessibleChart/accessibleChartNarrative.d.ts +1 -1
- package/esm/chart/accessibleChart/accessibleChartNarrative.js +8 -2
- package/esm/chart/accessibleChart/generatePieNarrative.d.ts +7 -0
- package/esm/chart/accessibleChart/generatePieNarrative.js +167 -0
- package/esm/chart/accessibleChart/interfaces.d.ts +1 -0
- package/esm/chart/barChart/getDefaultOptions.js +5 -6
- package/esm/chart/barChart.js +147 -50
- package/esm/chart/interfaces.d.ts +0 -1
- package/esm/chart/lineChart/getDefaultOptions.js +5 -6
- package/esm/chart/lineChart/useChartTicks.d.ts +0 -1
- package/esm/chart/lineChart/useSummary.d.ts +7 -8
- package/esm/chart/lineChart.js +162 -59
- package/esm/chart/pieChart.js +169 -76
- package/esm/chart/plugins/linePlugin/linePlugin.js +29 -7
- package/esm/chart/utils/convertDates.d.ts +1 -1
- package/esm/chart/utils/getNiceAxisRange.d.ts +21 -0
- package/esm/chart/utils/getNiceAxisRange.js +72 -0
- package/esm/chart/utils/getRange.js +2 -2
- package/esm/chart/utils/getYAxisMeta.d.ts +2 -5
- package/esm/chart/utils/getYAxisMeta.js +17 -2
- package/esm/chart/utils/getYAxisTickCount.d.ts +15 -0
- package/esm/chart/utils/getYAxisTickCount.js +15 -0
- package/esm/checkboxListWithAction/checkboxListWithAction.d.ts +0 -1
- package/esm/chip/chip.d.ts +0 -1
- package/esm/chip/utils/useChip.d.ts +0 -1
- package/esm/commonHelpers/HOC/reducerLogger/reducerLogger.d.ts +1 -1
- package/esm/commonHelpers/arrowNavigation/components/arrowButton/arrowButton.d.ts +0 -1
- package/esm/commonHelpers/arrowNavigation/hooks/useHoldOnScroll.d.ts +0 -1
- package/esm/commonHelpers/hooks/breakpoints.d.ts +4 -0
- package/esm/commonHelpers/hooks/breakpoints.js +4 -0
- package/esm/commonHelpers/hooks/fetch.reducer.d.ts +1 -1
- package/esm/commonHelpers/hooks/useDebouncedMemo.d.ts +0 -1
- package/esm/commonHelpers/hooks/useDeviceType.js +2 -2
- package/esm/commonHelpers/hooks/useEscape.d.ts +1 -1
- package/esm/commonHelpers/hooks/useGridSize.d.ts +0 -1
- package/esm/commonHelpers/hooks/useMobileOrTablet.d.ts +1 -0
- package/esm/commonHelpers/hooks/useMobileOrTablet.js +17 -0
- package/esm/commonHelpers/hooks/usePillSize.d.ts +0 -1
- package/esm/commonHelpers/hooks/useTablet.js +17 -0
- package/esm/dataFeed/dataFeed.d.ts +1 -1
- package/esm/dataFeed/dataFeed.js +2 -2
- package/esm/dataFeed/dataFeedCell/dataFeedCell.d.ts +3 -1
- package/esm/dataFeed/dataFeedColumnsItems.d.ts +2 -2
- package/esm/dataGrid/cell/cell.d.ts +3 -1
- package/esm/dataGrid/columns/actionsColumn/actionsColumn.d.ts +3 -3
- package/esm/dataGrid/dataGrid.d.ts +13 -1
- package/esm/dataGrid/dataGrid.js +48 -3
- package/esm/dataGrid/emptySearchList/emptySearchList.d.ts +0 -1
- package/esm/dataGrid/row/row.d.ts +3 -1
- package/esm/dataGrid/withActions/withActions.d.ts +1 -1
- package/esm/dataGrid/withFlexibleColumns/withFlexibleColumns.d.ts +1 -1
- package/esm/dataGrid/withLoading/withLoading.d.ts +1 -1
- package/esm/dataGrid/withSelectableRows/withLimitedSelectableRows.d.ts +1 -1
- package/esm/dataGrid/withSelectableRows/withSelectableRows.d.ts +1 -1
- package/esm/dataGrid/withSortableColumns/withSortableColumns.d.ts +1 -1
- package/esm/dialog/dialog.d.ts +0 -1
- package/esm/dropdown/dropdown.js +1 -1
- package/esm/dropdown/useDropdownState.d.ts +0 -1
- package/esm/dropdownRaw/dropdownList.d.ts +3 -2
- package/esm/dropdownRaw/dropdownList.js +14 -42
- package/esm/dropdownRaw/dropdownRaw.js +35 -14
- package/esm/dropdownRaw/stateReducer/stateReducer.d.ts +4 -1
- package/esm/dropdownRaw/stateReducer/stateReducer.js +32 -22
- package/esm/dropdownRaw/stateReducer/stateReducerHelper.d.ts +1 -2
- package/esm/dropdownRaw/stateReducer/stateReducerHelper.js +5 -10
- package/esm/dropdownRaw/types.d.ts +20 -0
- package/esm/feedbackContainer/hooks/useFeedbackAlert.d.ts +0 -1
- package/esm/feedbackContainer/hooks/useFeedbackToast.d.ts +0 -1
- package/esm/filters/components/filtersItem.d.ts +2 -2
- package/esm/filters/components/filtersSearchList.d.ts +0 -1
- package/esm/filters/components/filtersSelect.d.ts +0 -1
- package/esm/filters/components/filtersSelectCompact.d.ts +0 -1
- package/esm/filters/components/filtersSelectListItem.d.ts +0 -1
- package/esm/filters/components/filtersSelectUnfoldingPill.d.ts +0 -1
- package/esm/filters/filtersHelper.d.ts +1 -1
- package/esm/filters/filtersHooks.d.ts +0 -1
- package/esm/filtersBar/components/filtersBarDropdownWithCheckbox/filtersBarDropdownWithCheckbox.js +1 -1
- package/esm/filtersBar/filtersBar.js +2 -2
- package/esm/filtersBar/filtersBarActions/filtersBarActions.d.ts +0 -1
- package/esm/filtersBar/filtersBarInterfaces.d.ts +0 -1
- package/esm/filtersBar/filtersBarSidePanel/components/filtersBarSidePanelDropdownWithCheckbox/filtersBarSidePanelDropdownWithCheckbox.d.ts +4 -10
- package/esm/formField/components/formFieldAdditionalInfo.d.ts +0 -1
- package/esm/formField/components/formFieldCounter.d.ts +0 -1
- package/esm/formField/components/formFieldLoading.d.ts +0 -1
- package/esm/formField/components/formFieldSkeleton.d.ts +0 -1
- package/esm/formField/components/formFieldWithLabel.d.ts +0 -1
- package/esm/formField/components/formFieldWithoutLabel.d.ts +0 -1
- package/esm/formField/formField.d.ts +1 -1
- package/esm/formField/hooks/useBanner.d.ts +0 -1
- package/esm/formField/hooks/useDisabled.d.ts +1 -1
- package/esm/formGroup/components/customRow/customRow.d.ts +0 -1
- package/esm/formGroup/hooks/listHooks/useStateToElements.d.ts +0 -1
- package/esm/formGroup/hooks/listHooks/useStateToElements.js +1 -1
- package/esm/formGroup/utils/formGroupProvider.d.ts +0 -1
- package/esm/formGroup/utils/isFormLabel.d.ts +1 -1
- package/esm/formGroupItem/formGroupItem.d.ts +0 -1
- package/esm/formLayout/components/layoutColumn/layoutColum.d.ts +0 -1
- package/esm/formLayout/hooks/useFormButtons.d.ts +1 -1
- package/esm/formLayout/types.d.ts +0 -1
- package/esm/formLayout/utils/attachHeadings.d.ts +1 -1
- package/esm/formLayout/utils/attachSeparators.d.ts +0 -1
- package/esm/formLayout/utils/getChildrenWithCustomColumns.d.ts +1 -2
- package/esm/formLayout/utils/getChildrenWithCustomColumns.js +2 -2
- package/esm/formLayout/utils/getFieldLabel.js +5 -5
- package/esm/formSection/components/actions.d.ts +0 -1
- package/esm/formSection/components/additional.d.ts +0 -1
- package/esm/formSection/utils/isFormSection.d.ts +2 -4
- package/esm/formStepper/components/formStepRaw.d.ts +0 -1
- package/esm/formStepper/formStepper.d.ts +0 -1
- package/esm/formStepper/formStepper.js +5 -5
- package/esm/formStepperButtons/formStepperButtons.js +3 -3
- package/esm/gridLayout/hooks/useStretch.js +1 -1
- package/esm/gridLayout/utils/gridLayoutProvider.d.ts +0 -1
- package/esm/gridLayout/utils/gridLayoutProvider.js +1 -1
- package/esm/gridLayout/utils/isGridItem.d.ts +1 -1
- package/esm/groupsFilter/groupsHelper.d.ts +5 -5
- package/esm/groupsFilterRaw/groupsHelper.d.ts +1 -1
- package/esm/groupsFilterRaw/stateReducer/stateReducer.d.ts +1 -1
- package/esm/groupsFilterRaw/testData.js +1 -2
- package/esm/header/components/collapsedItemsControl/utils/handleCustomMenuWrapper.js +5 -0
- package/esm/header/components/mobileFilterControl/mobileFilterControl.d.ts +0 -1
- package/esm/header/components/mobileSearchControl/mobileSearchControl.d.ts +0 -1
- package/esm/header/headerButton.d.ts +0 -1
- package/esm/header/headerContext.d.ts +1 -2
- package/esm/header/headerHelpers.d.ts +5 -5
- package/esm/header/hooks/useNonFittingElements.d.ts +3 -4
- package/esm/headerTitle/headerTitle.d.ts +0 -1
- package/esm/icons/iconAce.d.ts +3 -0
- package/esm/icons/iconAce.js +8 -0
- package/esm/icons/iconBreak.d.ts +3 -0
- package/esm/icons/iconBreak.js +8 -0
- package/esm/icons/iconChevronStepper.d.ts +3 -0
- package/esm/icons/iconChevronStepper.js +8 -0
- package/esm/icons/iconPotato.d.ts +3 -0
- package/esm/icons/iconPotato.js +8 -0
- package/esm/icons/iconToggleLarge.d.ts +3 -0
- package/esm/icons/iconToggleLarge.js +8 -0
- package/esm/icons/iconToggleSmall.d.ts +3 -0
- package/esm/icons/iconToggleSmall.js +8 -0
- package/esm/icons/iconTrendNeutral.d.ts +3 -0
- package/esm/icons/iconTrendNeutral.js +8 -0
- package/esm/icons/iconTruck.d.ts +3 -0
- package/esm/icons/iconTruck.js +8 -0
- package/esm/index.d.ts +8 -0
- package/esm/index.js +8 -0
- package/esm/layout/layout.d.ts +2 -1
- package/esm/layout/layoutBanner.d.ts +0 -1
- package/esm/lineChart/lineChart.d.ts +1 -0
- package/esm/lineChart/lineChart.js +129 -69
- package/esm/lineChartMini/lineChartMini.d.ts +1 -0
- package/esm/lineChartMini/lineChartMini.js +136 -73
- package/esm/list/itemData/itemData.d.ts +2 -1
- package/esm/list/itemData/itemDataInternal.d.ts +2 -1
- package/esm/list/list.d.ts +0 -1
- package/esm/list/utils/isDataListitem.d.ts +1 -1
- package/esm/list/viewportProvider/viewportContext.d.ts +0 -1
- package/esm/menu/components/controlledMenuList/controlledMenuList.d.ts +2 -4
- package/esm/menu/components/controlledMenuList/controlledMenuList.js +3 -1
- package/esm/menu/utils/useDisplayContent.d.ts +21 -0
- package/esm/menu/utils/useDisplayContent.js +31 -0
- package/esm/mobileSheet/components/mobileSheetTitle.d.ts +0 -1
- package/esm/nav/context/nav.context.d.ts +0 -1
- package/esm/nav/navFooter/navEditFooter/navEditFooter.d.ts +0 -1
- package/esm/nav/navFooter/navFooter.d.ts +1 -1
- package/esm/nav/navFooter/navFooterAction/navFooterAction.d.ts +2 -1
- package/esm/nav/navFooter/navFooterAction/navFooterAction.js +3 -1
- package/esm/nav/navItem/navItem.d.ts +2 -0
- package/esm/nav/navItem/navItem.js +57 -48
- package/esm/nav/navItem/navItemContent.d.ts +19 -0
- package/esm/nav/navItem/navItemContent.js +17 -0
- package/esm/nav/navItem/navItemType.d.ts +7 -0
- package/esm/nav/navItem/navItemType.js +6 -0
- package/esm/nav/utils/navUtils.d.ts +2 -4
- package/esm/overview/overview.d.ts +0 -1
- package/esm/pageHeader/pageHeader.d.ts +1 -1
- package/esm/pageHeader/pageHeaderButton.d.ts +0 -1
- package/esm/pageHeader/pageHeaderHelpers.d.ts +1 -1
- package/esm/pageHeader/pageHeaderMenu.d.ts +0 -1
- package/esm/pagination/paginationArrow.d.ts +0 -1
- package/esm/pill/interfaces/pill.interface.d.ts +0 -1
- package/esm/pillBox/components/pillBoxItem.d.ts +1 -2
- package/esm/progressIndicator/progressIndicator.d.ts +39 -0
- package/esm/progressIndicator/progressIndicator.js +26 -0
- package/esm/progressIndicator/progressIndicatorUtils.d.ts +12 -0
- package/esm/progressIndicator/progressIndicatorUtils.js +25 -0
- package/esm/radioGroupRaw/types.d.ts +0 -1
- package/esm/react-chartjs/utils.d.ts +3 -3
- package/esm/searchInputRaw/types.d.ts +0 -1
- package/esm/selectField/selectField.d.ts +2 -3
- package/esm/selectList/selectList.d.ts +0 -1
- package/esm/selectRaw/selectRaw.js +3 -0
- package/esm/sidePanel/sidePanelCell/sidePanelCell.d.ts +0 -1
- package/esm/table/actions/actionsMenu.d.ts +0 -1
- package/esm/table/children/useTableChildren.d.ts +7 -7
- package/esm/table/detailPanel/interfaces.d.ts +0 -1
- package/esm/table/loading/useLoading.d.ts +10 -10
- package/esm/table/nested/nestedData.d.ts +3 -1
- package/esm/table/nested/useNestedRows.d.ts +2 -2
- package/esm/table/selectable/selectableHeader.d.ts +2 -1
- package/esm/table/selectable/selectableHeader.js +4 -3
- package/esm/table/selectable/useSelectableRows.d.ts +1 -1
- package/esm/table/selectable/useSelectableRows.js +7 -4
- package/esm/table/table.d.ts +16 -1
- package/esm/table/table.js +102 -6
- package/esm/tag/tag.d.ts +19 -0
- package/esm/tag/tag.js +10 -0
- package/esm/testHelpers/geotab-axe/index.d.ts +0 -1
- package/esm/toastRaw/toastRaw.d.ts +1 -1
- package/esm/toastRaw/toastRaw.js +3 -1
- package/esm/toggleButtonRaw/types.d.ts +0 -1
- package/esm/tooltipInfo/tooltipInfo.d.ts +0 -1
- package/esm/tsconfig.esm.tsbuildinfo +1 -0
- package/esm/utils/localization/directionContext.d.ts +0 -1
- package/esm/utils/localization/languageContext.d.ts +0 -1
- package/esm/utils/localization/translations/en.json +12 -1
- package/esm/utils/theme/themeContext.d.ts +0 -1
- package/esm/utils/topWindow/topWindowContext.d.ts +0 -1
- package/esm/utils/useFadeComponent.d.ts +0 -1
- package/esm/utils/userFormat/userFormatContext.d.ts +0 -1
- package/esm/waiting/waiting.d.ts +2 -1
- package/esm/waiting/waiting.js +24 -7
- package/package.json +13 -6
- package/esm/gridLayout/hooks/useTablet.js +0 -20
- /package/dist/{gridLayout → commonHelpers}/hooks/useTablet.d.ts +0 -0
- /package/esm/{gridLayout → commonHelpers}/hooks/useTablet.d.ts +0 -0
|
@@ -2,8 +2,8 @@ import { injectString } from "../utils/localization/translationsDictionary";
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useCallback, useMemo } from "react";
|
|
4
4
|
import { FormStep } from "./components/formStep";
|
|
5
|
-
import { useMobile } from "../commonHelpers/hooks/useMobile";
|
|
6
5
|
import { useLanguage } from "../utils/localization/useLanguage";
|
|
6
|
+
import { useMobileOrTablet } from "../commonHelpers/hooks/useMobileOrTablet";
|
|
7
7
|
injectString("cs", "Step {0} of {1}", "Krok {0} z {1}");
|
|
8
8
|
injectString("da-DK", "Step {0} of {1}", "Trin {0} af {1}");
|
|
9
9
|
injectString("de", "Step {0} of {1}", "Schritt {0} von {1}");
|
|
@@ -70,7 +70,7 @@ injectString("ka-GE", "Optional", "\u10E1\u10E3\u10E0\u10D5\u10D8\u10DA\u10D8\u1
|
|
|
70
70
|
injectString("el-GR", "Optional", "\u03A0\u03C1\u03BF\u03B1\u03B9\u03C1\u03B5\u03C4\u03B9\u03BA\u03CC");
|
|
71
71
|
injectString("et-EE", "Optional", "Valikuline");
|
|
72
72
|
injectString("bg-BG", "Optional", "\u041F\u043E \u0438\u0437\u0431\u043E\u0440");
|
|
73
|
-
const MAX_STEPS =
|
|
73
|
+
const MAX_STEPS = 8;
|
|
74
74
|
export const STEPPER_LAST_STEP = "lastStep";
|
|
75
75
|
export const FormStepper = ({
|
|
76
76
|
steps,
|
|
@@ -88,7 +88,7 @@ export const FormStepper = ({
|
|
|
88
88
|
}
|
|
89
89
|
return steps.findIndex(step => step.id === current) || 0;
|
|
90
90
|
}, [steps, current]);
|
|
91
|
-
const
|
|
91
|
+
const isMobileOrTablet = useMobileOrTablet();
|
|
92
92
|
const {
|
|
93
93
|
translate
|
|
94
94
|
} = useLanguage();
|
|
@@ -108,12 +108,12 @@ export const FormStepper = ({
|
|
|
108
108
|
}
|
|
109
109
|
setCurrent(id);
|
|
110
110
|
}, [setCurrent, isStepperNonClickable, onStepClicked]);
|
|
111
|
-
const isCompactMode = mode === "compact" ||
|
|
111
|
+
const isCompactMode = mode === "compact" || isMobileOrTablet;
|
|
112
112
|
const isOptionalStep = isCompactMode && ((_a = adjustedSteps[activeStepIndex]) === null || _a === void 0 ? void 0 : _a.optional);
|
|
113
113
|
const stepNumber = current === STEPPER_LAST_STEP ? adjustedSteps.length : activeStepIndex + 1;
|
|
114
114
|
const stepLabel = current === STEPPER_LAST_STEP ? (_b = adjustedSteps[activeStepIndex - 1]) === null || _b === void 0 ? void 0 : _b.label : (_c = adjustedSteps[activeStepIndex]) === null || _c === void 0 ? void 0 : _c.label;
|
|
115
115
|
return _jsxs("div", {
|
|
116
|
-
className: `zen-form-stepper ${
|
|
116
|
+
className: `zen-form-stepper ${isMobileOrTablet ? "zen-form-stepper--mobile" : ""} ${className}`,
|
|
117
117
|
role: "tablist",
|
|
118
118
|
children: [_jsx("div", {
|
|
119
119
|
className: "zen-form-stepper__steps",
|
|
@@ -9,7 +9,7 @@ import { TextIconButton } from "../textIconButton/textIconButton";
|
|
|
9
9
|
import { useLanguage } from "../utils/localization/useLanguage";
|
|
10
10
|
import { STEPPER_LAST_STEP } from "../formStepper/formStepper";
|
|
11
11
|
import { getCurrentIndex } from "./utils/getCurrentIndex";
|
|
12
|
-
import {
|
|
12
|
+
import { useMobileOrTablet } from "../commonHelpers/hooks/useMobileOrTablet";
|
|
13
13
|
injectString("cs", "Previous step", "P\u0159edchoz\xED krok");
|
|
14
14
|
injectString("da-DK", "Previous step", "Forrige trin");
|
|
15
15
|
injectString("de", "Previous step", "Vorheriger Schritt");
|
|
@@ -156,7 +156,7 @@ export const FormStepperButtons = ({
|
|
|
156
156
|
const {
|
|
157
157
|
translate
|
|
158
158
|
} = useLanguage();
|
|
159
|
-
const
|
|
159
|
+
const isMobileOrTablet = useMobileOrTablet();
|
|
160
160
|
const BackChevronIcon = useDirectionalIcon(IconChevronLeft, IconChevronRight);
|
|
161
161
|
const onPreviousHandler = useCallback(() => {
|
|
162
162
|
const currIndex = getCurrentIndex(steps, current);
|
|
@@ -191,7 +191,7 @@ export const FormStepperButtons = ({
|
|
|
191
191
|
const isFirstStep = steps[0].id === current;
|
|
192
192
|
const isLastStep = steps[steps.length - 1].id === current || current === STEPPER_LAST_STEP;
|
|
193
193
|
return _jsxs("div", {
|
|
194
|
-
className: `zen-form-step-buttons ${
|
|
194
|
+
className: `zen-form-step-buttons ${isMobileOrTablet ? "zen-form-step-buttons--mobile" : ""} ${className}`,
|
|
195
195
|
children: [_jsx("div", {
|
|
196
196
|
className: "zen-form-step-buttons__left",
|
|
197
197
|
children: !isFirstStep && _jsx(TextIconButton, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cloneElement, useCallback, useEffect, useLayoutEffect, useState } from "react";
|
|
2
2
|
import { classNames } from "../../commonHelpers/classNames/classNames";
|
|
3
3
|
import { getGridRows } from "../utils/getGridRows";
|
|
4
|
-
import { useTablet } from "
|
|
4
|
+
import { useTablet } from "../../commonHelpers/hooks/useTablet";
|
|
5
5
|
import { useMobile } from "../../commonHelpers/hooks/useMobile";
|
|
6
6
|
export const useStretch = (stretch, childrenArr, ref, setChildrenArrState) => {
|
|
7
7
|
const [elHeight, setElHeight] = useState([]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createContext } from "react";
|
|
3
3
|
import { useMobile } from "../../commonHelpers/hooks/useMobile";
|
|
4
|
-
import { useTablet } from "
|
|
4
|
+
import { useTablet } from "../../commonHelpers/hooks/useTablet";
|
|
5
5
|
export const GridLayoutContext = createContext({
|
|
6
6
|
screen: "desktop"
|
|
7
7
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ReactElement } from "react";
|
|
2
2
|
import { IZenGridItem } from "../../commonHelpers/zenComponent";
|
|
3
|
-
export declare const isGridItem: (element?: ReactElement) => element is ReactElement<IZenGridItem
|
|
3
|
+
export declare const isGridItem: (element?: ReactElement) => element is ReactElement<IZenGridItem>;
|
|
@@ -15,10 +15,10 @@ export declare const getGroupDescription: (group: import("..").IEntityWithId & P
|
|
|
15
15
|
export declare const createLinkedTree: typeof createLinkedTreeRaw;
|
|
16
16
|
export declare const isIdEntity: (entity: any) => entity is import("..").IEntityWithId;
|
|
17
17
|
export declare const isEntireOrganization: typeof isEntireOrganizationRaw;
|
|
18
|
-
export declare const isFilterState: <T, U>(item:
|
|
18
|
+
export declare const isFilterState: <T, U>(item: import("../groupsFilterRaw/groupsFilterInterfaces").IFilterState<T> | U) => item is import("../groupsFilterRaw/groupsFilterInterfaces").IFilterState<T>;
|
|
19
19
|
export declare const mapFilterState: <TSource, TResult>(state: import("../groupsFilterRaw/groupsFilterInterfaces").IFilterState<TSource>, mapFunc: (item: TSource) => TResult) => import("../groupsFilterRaw/groupsFilterInterfaces").IFilterState<TResult>;
|
|
20
|
-
export declare const getId: (entity:
|
|
21
|
-
export declare const mergeItems: <TSource extends string | import("..").IEntityWithId>(items: (
|
|
20
|
+
export declare const getId: (entity: import("..").IEntityWithId | string) => string;
|
|
21
|
+
export declare const mergeItems: <TSource extends string | import("..").IEntityWithId>(items: (import("../groupsFilterRaw/groupsFilterInterfaces").IFilterState<TSource> | TSource)[][]) => (TSource | import("../groupsFilterRaw/groupsFilterInterfaces").IFilterState<TSource>)[];
|
|
22
22
|
export declare const simplifyFilterState: <TSource extends string | import("..").IEntityWithId>(state: import("../groupsFilterRaw/groupsFilterInterfaces").IFilterState<TSource>) => import("../groupsFilterRaw/groupsFilterInterfaces").IFilterState<TSource>;
|
|
23
|
-
export declare const toFilterState: (state:
|
|
24
|
-
export declare const compareFilters: <T extends
|
|
23
|
+
export declare const toFilterState: (state: import("../groupsFilterRaw/groupsFilterInterfaces").IFilterState<import("..").IEntityWithId | string> | unknown[]) => import("../groupsFilterRaw/groupsFilterInterfaces").IFilterState;
|
|
24
|
+
export declare const compareFilters: <T extends import("..").IEntityWithId | string, U extends import("..").IEntityWithId | string>(filter1: import("../groupsFilterRaw/groupsFilterInterfaces").TFilterVal<T>, filter2: import("../groupsFilterRaw/groupsFilterInterfaces").TFilterVal<U>) => boolean;
|
|
@@ -24,5 +24,5 @@ type TEntity = IEntityWithId | string;
|
|
|
24
24
|
export declare const mergeItems: <TSource extends TEntity>(items: (IFilterState<TSource> | TSource)[][]) => (TSource | IFilterState<TSource>)[];
|
|
25
25
|
export declare const simplifyFilterState: <TSource extends string | IEntityWithId>(state: IFilterState<TSource>) => IFilterState<TSource>;
|
|
26
26
|
export declare const toFilterState: (state: IFilterState<IEntityWithId | string> | unknown[]) => IFilterState;
|
|
27
|
-
export declare const compareFilters: <T extends
|
|
27
|
+
export declare const compareFilters: <T extends IEntityWithId | string, U extends IEntityWithId | string>(filter1: TFilterVal<T>, filter2: TFilterVal<U>) => boolean;
|
|
28
28
|
export {};
|
|
@@ -43,6 +43,6 @@ export declare function stateReducer(state: IGroupsFilterState, action: TStateAc
|
|
|
43
43
|
sideWideState: boolean;
|
|
44
44
|
relation: RelationOperator;
|
|
45
45
|
selectedIds: string[];
|
|
46
|
-
advancedFilterState:
|
|
46
|
+
advancedFilterState: ILeafStateItem | IFilterState;
|
|
47
47
|
globalChanges: boolean;
|
|
48
48
|
};
|
|
@@ -32927,7 +32927,6 @@ function generateName(prefix, index) {
|
|
|
32927
32927
|
return `${prefix}-${index}`;
|
|
32928
32928
|
}
|
|
32929
32929
|
export function createData(count, hasChildren) {
|
|
32930
|
-
var _a;
|
|
32931
32930
|
const data = [];
|
|
32932
32931
|
const allIds = [];
|
|
32933
32932
|
const childItems = [];
|
|
@@ -32961,7 +32960,7 @@ export function createData(count, hasChildren) {
|
|
|
32961
32960
|
if (!data[parentIndex].children) {
|
|
32962
32961
|
data[parentIndex].children = [];
|
|
32963
32962
|
}
|
|
32964
|
-
|
|
32963
|
+
data[parentIndex].children.push(...children);
|
|
32965
32964
|
}
|
|
32966
32965
|
return [...data, ...childItems];
|
|
32967
32966
|
}
|
|
@@ -3,6 +3,7 @@ import { ControlledMenu } from "../../../../menu/controlledMenu";
|
|
|
3
3
|
import { Menu } from "../../../../menu/menu";
|
|
4
4
|
import { Children, createElement, isValidElement } from "react";
|
|
5
5
|
import { HeaderButton } from "../../../headerButton";
|
|
6
|
+
import { ToggleButton } from "../../../../toggleButton/toggleButton";
|
|
6
7
|
export const handleCustomMenuWrapper = (reactNode, content, menuItems) => {
|
|
7
8
|
if (isNamedChildComponent(reactNode, HeaderCustomMenuWrapper)) {
|
|
8
9
|
const customContent = content === null || content === void 0 ? void 0 : content[reactNode.props.id];
|
|
@@ -11,6 +12,10 @@ export const handleCustomMenuWrapper = (reactNode, content, menuItems) => {
|
|
|
11
12
|
}
|
|
12
13
|
let menu;
|
|
13
14
|
let isOnlyButton = false;
|
|
15
|
+
if (customContent.type === ToggleButton) {
|
|
16
|
+
menuItems.push(customContent);
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
14
19
|
if (customContent.type === Menu || customContent.type === ControlledMenu || customContent.type === HeaderButton) {
|
|
15
20
|
menu = customContent;
|
|
16
21
|
isOnlyButton = customContent.type === HeaderButton;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TAlignment } from "../absolute/absolute";
|
|
3
2
|
export declare const MenuAlignmentContext: import("react").Context<{
|
|
4
|
-
alignment?: TAlignment
|
|
3
|
+
alignment?: TAlignment;
|
|
5
4
|
}>;
|
|
6
5
|
export declare const HeaderMenuProvider: ({ alignment, children }: {
|
|
7
6
|
alignment: TAlignment;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { ReactElement } from "react";
|
|
2
2
|
export declare const HeaderCustomMenuWrapper = "HeaderCustomMenuWrapper";
|
|
3
3
|
export declare const getArrayOfChildren: <T>(children: T | T[] | undefined) => T[];
|
|
4
|
-
export declare const isNamedChildComponent: <T>(item: any, componentName: string) => item is React.ReactElement<T
|
|
5
|
-
export declare const getItemsForRender: <T extends
|
|
6
|
-
export declare const getItemsForMeasure: <T extends
|
|
7
|
-
export declare const filterItems: <T extends
|
|
4
|
+
export declare const isNamedChildComponent: <T>(item: any, componentName: string) => item is React.ReactElement<T>;
|
|
5
|
+
export declare const getItemsForRender: <T extends ReactElement>(items: T[], isMobile: boolean) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>>[];
|
|
6
|
+
export declare const getItemsForMeasure: <T extends ReactElement>(items: T[], isMobile: boolean) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>>[];
|
|
7
|
+
export declare const filterItems: <T extends ReactElement>(items: T[], isMobile: boolean) => {
|
|
8
8
|
resizableElements: React.ReactElement<unknown, string | React.JSXElementConstructor<any>>[];
|
|
9
9
|
leftElements: T[];
|
|
10
10
|
rightElements: T[];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
interface INonFittingElementProps<T extends {
|
|
3
2
|
props?: {
|
|
4
3
|
id?: string;
|
|
@@ -12,9 +11,9 @@ interface INonFittingElementProps<T extends {
|
|
|
12
11
|
}
|
|
13
12
|
export declare const useNonFittingElements: <T extends {
|
|
14
13
|
props?: {
|
|
15
|
-
id?: string
|
|
16
|
-
inContextMenu?: boolean
|
|
17
|
-
}
|
|
14
|
+
id?: string;
|
|
15
|
+
inContextMenu?: boolean;
|
|
16
|
+
};
|
|
18
17
|
}>({ maxWidth, data, hiddenElementsCountToRender, widthDelta, reverseOrderOfVisible }: INonFittingElementProps<T>) => {
|
|
19
18
|
visibleElements: T[];
|
|
20
19
|
nonFittingElements: T[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, useId } from "react";
|
|
3
|
+
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
4
|
+
export const IconAce = ({ className, size, title, description, focusable = false }) => {
|
|
5
|
+
const uniqueId = useId();
|
|
6
|
+
const classes = useMemo(() => classNames(["zen-icon", size ? `zen-icon--${size}` : "", className !== null && className !== void 0 ? className : ""]), [size, className]);
|
|
7
|
+
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", focusable: focusable ? "true" : undefined, tabIndex: focusable ? 0 : undefined, role: focusable || title || description ? undefined : "presentation", className: classes, "aria-labelledby": title && focusable ? uniqueId : undefined, "data-name": "IconAce", children: [title ? _jsx("title", { id: uniqueId, children: title }) : null, description ? _jsx("desc", { children: description }) : null, _jsx("path", { d: "M13.6611 4.30664L13.8945 4.33789L13.915 4.3418L14 4.36133C14.0207 4.36593 14.0414 4.37148 14.0615 4.37793L14.1377 4.40234C14.1501 4.40633 14.1626 4.41036 14.1748 4.41504C14.4779 4.53142 14.735 4.7523 14.8916 5.04297L14.9531 5.17188L15.752 7.1543C17.618 11.8336 19.4882 16.8472 21.4102 21.3096C21.4207 21.334 21.4305 21.3609 21.4404 21.3887L21.6221 21.8945C21.7731 22.3166 21.7019 22.7824 21.4375 23.1406C21.2074 23.4523 20.8582 23.6467 20.4834 23.6904C20.4702 23.692 20.4566 23.6936 20.4434 23.6943L20.3623 23.6992C20.3487 23.7 20.3349 23.7002 20.3213 23.7002H16.9971C16.4866 23.7001 16.0077 23.4208 15.7695 22.9629L15.7256 22.8682C15.4522 22.2265 15.2162 21.5119 15.002 20.8652C14.8897 20.5266 14.7802 20.2053 14.6729 19.9014H10.0869C9.74066 20.7858 9.47222 21.7369 9.11426 22.7783C8.92074 23.3411 8.38582 23.7001 7.80762 23.7002H4.67871C4.23995 23.7001 3.81999 23.4933 3.55762 23.1328C3.29372 22.7701 3.22679 22.3 3.38477 21.877C5.37214 16.5555 7.10753 12.4177 9.2998 7.36914C9.47546 6.96466 9.76874 6.57892 10.0479 6.26758C10.3434 5.93792 10.6984 5.60875 11.0713 5.32031C11.4387 5.03614 11.8645 4.75987 12.3076 4.56836C12.6361 4.42648 13.1238 4.26462 13.6611 4.30664ZM13.1406 6.45117C12.9064 6.55234 12.6311 6.72223 12.3516 6.93848C12.0746 7.15269 11.8129 7.39729 11.6035 7.63086C11.3857 7.87384 11.2585 8.06803 11.21 8.17969C9.15711 12.9072 7.5172 16.8149 5.69238 21.6445H7.30371C7.65518 20.5726 8.02548 19.3151 8.5459 18.2412L8.5957 18.1543C8.72453 17.9634 8.94124 17.8458 9.17578 17.8457H15.6289L15.7324 17.8535C15.9703 17.8891 16.1762 18.0458 16.2725 18.2715C16.5176 18.8469 16.7329 19.4874 16.9365 20.1016C17.1163 20.6438 17.2887 21.1651 17.4717 21.6445H19.2979C17.3053 16.9703 15.3168 11.6199 13.418 6.91016L13.2197 6.4209C13.1953 6.43014 13.1686 6.43911 13.1406 6.45117ZM12.4688 9.24707C12.7482 9.2402 13.0052 9.40029 13.1221 9.6543C14.1073 11.796 14.8137 13.8473 15.502 16.0986C15.5667 16.3108 15.5275 16.5414 15.3955 16.7197C15.2635 16.8981 15.054 17.0029 14.832 17.0029H10.1533C9.92392 17.0028 9.70884 16.8897 9.57812 16.7012C9.44765 16.5127 9.41777 16.2723 9.49805 16.0576C10.2824 13.9622 10.9869 11.8059 11.8359 9.68652L11.8818 9.59277C12.003 9.38584 12.2242 9.2532 12.4688 9.24707ZM12.54 13.7402C12.398 14.1394 12.2547 14.54 12.1094 14.9473H12.957C12.8218 14.5392 12.6825 14.138 12.54 13.7402Z" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8 1C8.30125 1 8.54545 1.24421 8.54545 1.54545C8.54545 2.33114 8.71991 2.77239 8.97376 3.02624C9.22761 3.28009 9.66886 3.45455 10.4545 3.45455C10.7558 3.45455 11 3.69875 11 4C11 4.30125 10.7558 4.54545 10.4545 4.54545C9.66886 4.54545 9.22761 4.71991 8.97376 4.97376C8.71991 5.22761 8.54545 5.66886 8.54545 6.45455C8.54545 6.75579 8.30125 7 8 7C7.69875 7 7.45455 6.75579 7.45455 6.45455C7.45455 5.66886 7.28009 5.22761 7.02624 4.97376C6.77239 4.71991 6.33114 4.54545 5.54545 4.54545C5.24421 4.54545 5 4.30125 5 4C5 3.69875 5.24421 3.45455 5.54545 3.45455C6.33114 3.45455 6.77239 3.28009 7.02624 3.02624C7.28009 2.77239 7.45455 2.33114 7.45455 1.54545C7.45455 1.24421 7.69875 1 8 1ZM8 3C7.8591 3.1881 7.70462 3.36688 7.53575 3.53575C7.36688 3.70462 7.1881 3.8591 7 4C7.1881 4.14091 7.36688 4.29538 7.53575 4.46425C7.70462 4.63313 7.8591 4.8119 8 5C8.14091 4.8119 8.29538 4.63313 8.46425 4.46425C8.63313 4.29538 8.8119 4.14091 9 4C8.8119 3.8591 8.63313 3.70462 8.46425 3.53575C8.29538 3.36688 8.14091 3.1881 8 3Z" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.5 6C5.75104 6 5.95455 6.20351 5.95455 6.45455C5.95455 7.10929 6.09993 7.47699 6.31147 7.68853C6.52301 7.90007 6.89071 8.04545 7.54545 8.04545C7.79649 8.04545 8 8.24896 8 8.5C8 8.75104 7.79649 8.95455 7.54545 8.95455C6.89071 8.95455 6.52301 9.09993 6.31147 9.31147C6.09993 9.52301 5.95455 9.89071 5.95455 10.5455C5.95455 10.7965 5.75104 11 5.5 11C5.24896 11 5.04545 10.7965 5.04545 10.5455C5.04545 9.89071 4.90007 9.52301 4.68853 9.31147C4.47699 9.09993 4.10929 8.95455 3.45455 8.95455C3.20351 8.95455 3 8.75104 3 8.5C3 8.24896 3.20351 8.04545 3.45455 8.04545C4.10929 8.04545 4.47699 7.90007 4.68853 7.68853C4.90007 7.47699 5.04545 7.10929 5.04545 6.45455C5.04545 6.20351 5.24896 6 5.5 6ZM5.5 8C5.42955 8.09405 5.35231 8.18344 5.26787 8.26787C5.18344 8.35231 5.09405 8.42955 5 8.5C5.09405 8.57045 5.18344 8.64769 5.26787 8.73213C5.35231 8.81656 5.42955 8.90595 5.5 9C5.57045 8.90595 5.64769 8.81656 5.73213 8.73213C5.81656 8.64769 5.90595 8.57045 6 8.5C5.90595 8.42955 5.81656 8.35231 5.73213 8.26787C5.64769 8.18344 5.57045 8.09405 5.5 8Z" })] }));
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, useId } from "react";
|
|
3
|
+
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
4
|
+
export const IconBreak = ({ className, size, title, description, focusable = false }) => {
|
|
5
|
+
const uniqueId = useId();
|
|
6
|
+
const classes = useMemo(() => classNames(["zen-icon", size ? `zen-icon--${size}` : "", className !== null && className !== void 0 ? className : ""]), [size, className]);
|
|
7
|
+
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", focusable: focusable ? "true" : undefined, tabIndex: focusable ? 0 : undefined, role: focusable || title || description ? undefined : "presentation", className: classes, "aria-labelledby": title && focusable ? uniqueId : undefined, "data-name": "IconBreak", children: [title ? _jsx("title", { id: uniqueId, children: title }) : null, description ? _jsx("desc", { children: description }) : null, _jsx("path", { d: "M5 21C4.71667 21 4.47917 20.9042 4.2875 20.7125C4.09583 20.5208 4 20.2833 4 20C4 19.7167 4.09583 19.4792 4.2875 19.2875C4.47917 19.0958 4.71667 19 5 19H19C19.2833 19 19.5208 19.0958 19.7125 19.2875C19.9042 19.4792 20 19.7167 20 20C20 20.2833 19.9042 20.5208 19.7125 20.7125C19.5208 20.9042 19.2833 21 19 21H5ZM8 17C6.9 17 5.95833 16.6083 5.175 15.825C4.39167 15.0417 4 14.1 4 13V5C4 4.45 4.19583 3.97917 4.5875 3.5875C4.97917 3.19583 5.45 3 6 3H20C20.55 3 21.0208 3.19583 21.4125 3.5875C21.8042 3.97917 22 4.45 22 5V8C22 8.55 21.8042 9.02083 21.4125 9.4125C21.0208 9.80417 20.55 10 20 10H18V13C18 14.1 17.6083 15.0417 16.825 15.825C16.0417 16.6083 15.1 17 14 17H8ZM8 15H14C14.55 15 15.0208 14.8042 15.4125 14.4125C15.8042 14.0208 16 13.55 16 13V5H6V13C6 13.55 6.19583 14.0208 6.5875 14.4125C6.97917 14.8042 7.45 15 8 15ZM18 8H20V5H18V8ZM8 15H6H16H8Z" })] }));
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, useId } from "react";
|
|
3
|
+
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
4
|
+
export const IconChevronStepper = ({ className, size, title, description, focusable = false }) => {
|
|
5
|
+
const uniqueId = useId();
|
|
6
|
+
const classes = useMemo(() => classNames(["zen-icon", size ? `zen-icon--${size}` : "", className !== null && className !== void 0 ? className : ""]), [size, className]);
|
|
7
|
+
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", focusable: focusable ? "true" : undefined, tabIndex: focusable ? 0 : undefined, role: focusable || title || description ? undefined : "presentation", className: classes, "aria-labelledby": title && focusable ? uniqueId : undefined, "data-name": "IconChevronStepper", children: [title ? _jsx("title", { id: uniqueId, children: title }) : null, description ? _jsx("desc", { children: description }) : null, _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.7071 23.7071C12.3166 24.0976 11.6834 24.0976 11.2929 23.7071L7.29289 19.7071C6.90237 19.3166 6.90237 18.6834 7.29289 18.2929C7.68342 17.9024 8.31658 17.9024 8.70711 18.2929L12 21.5858L15.2929 18.2929C15.6834 17.9024 16.3166 17.9024 16.7071 18.2929C17.0976 18.6834 17.0976 19.3166 16.7071 19.7071L12.7071 23.7071Z" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.2929 0.292893C11.6834 -0.0976311 12.3166 -0.0976311 12.7071 0.292893L16.7071 4.29289C17.0976 4.68342 17.0976 5.31658 16.7071 5.70711C16.3166 6.09763 15.6834 6.09763 15.2929 5.70711L12 2.41421L8.70711 5.70711C8.31658 6.09763 7.68342 6.09763 7.29289 5.70711C6.90237 5.31658 6.90237 4.68342 7.29289 4.29289L11.2929 0.292893Z" })] }));
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, useId } from "react";
|
|
3
|
+
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
4
|
+
export const IconPotato = ({ className, size, title, description, focusable = false }) => {
|
|
5
|
+
const uniqueId = useId();
|
|
6
|
+
const classes = useMemo(() => classNames(["zen-icon", size ? `zen-icon--${size}` : "", className !== null && className !== void 0 ? className : ""]), [size, className]);
|
|
7
|
+
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", focusable: focusable ? "true" : undefined, tabIndex: focusable ? 0 : undefined, role: focusable || title || description ? undefined : "presentation", className: classes, "aria-labelledby": title && focusable ? uniqueId : undefined, "data-name": "IconPotato", children: [title ? _jsx("title", { id: uniqueId, children: title }) : null, description ? _jsx("desc", { children: description }) : null, _jsx("path", { d: "M10.3899 11.289C9.89584 11.289 9.49536 10.8885 9.49536 10.3945C9.49536 9.90049 9.89584 9.5 10.3899 9.5C10.8839 9.5 11.2844 9.90048 11.2844 10.3945C11.2844 10.8885 10.8839 11.289 10.3899 11.289Z" }), _jsx("path", { d: "M13.6101 11.289C13.1161 11.289 12.7156 10.8885 12.7156 10.3945C12.7156 9.90049 13.1161 9.5 13.6101 9.5C14.1041 9.5 14.5046 9.90048 14.5046 10.3945C14.5046 10.8885 14.1041 11.289 13.6101 11.289Z" }), _jsx("path", { d: "M11.0684 12.6198C11.245 12.9704 11.6083 13.211 12.0277 13.211C12.4471 13.211 12.8103 12.9705 12.9869 12.6199C13.1111 12.3734 13.3247 12.1381 13.6006 12.138L14.0044 12.1378C14.2806 12.1377 14.5098 12.3638 14.4553 12.6346C14.2259 13.7742 13.223 14.6337 12.0179 14.6422C10.8091 14.6376 9.8022 13.7766 9.57234 12.6344C9.51786 12.3637 9.74693 12.1376 10.0231 12.1376H10.4543C10.7304 12.1376 10.9442 12.3731 11.0684 12.6198Z" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.9873 22.4883L13.5 22.5C16.4407 22.5 18.8869 20.3841 19.4004 17.5918C19.5323 16.8744 19.42 16.1408 19.2617 15.4287L18.9766 14.1436C18.6996 12.8971 18.5427 11.6271 18.5078 10.3516L18.5 9.80469V6.5C18.5 3.73858 16.2614 1.5 13.5 1.5C10.7335 1.5 8.43995 2.53321 6.85645 4.43262L6.57227 4.79297C5.19547 6.63968 4.5 9.1268 4.5 12C4.5 15.0646 5.29128 17.6898 6.85645 19.5674C8.34107 21.3482 10.4498 22.3679 12.9873 22.4883ZM16.5 9.80469V6.5C16.5 4.84314 15.1569 3.5 13.5 3.5C11.2662 3.5 9.55971 4.31436 8.39355 5.71289C7.2091 7.13364 6.5 9.25864 6.5 12C6.5 14.7414 7.2091 16.8664 8.39355 18.2871C9.55971 19.6856 11.2662 20.5 13.5 20.5C15.4583 20.5 17.0914 19.0907 17.4336 17.2305C17.4892 16.9282 17.4567 16.5245 17.3096 15.8623L17.0234 14.5771C16.6752 13.0102 16.5 11.4098 16.5 9.80469Z" })] }));
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, useId } from "react";
|
|
3
|
+
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
4
|
+
export const IconToggleLarge = ({ className, size, title, description, focusable = false }) => {
|
|
5
|
+
const uniqueId = useId();
|
|
6
|
+
const classes = useMemo(() => classNames(["zen-icon", size ? `zen-icon--${size}` : "", className !== null && className !== void 0 ? className : ""]), [size, className]);
|
|
7
|
+
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", focusable: focusable ? "true" : undefined, tabIndex: focusable ? 0 : undefined, role: focusable || title || description ? undefined : "presentation", className: classes, "aria-labelledby": title && focusable ? uniqueId : undefined, "data-name": "IconToggleLarge", children: [title ? _jsx("title", { id: uniqueId, children: title }) : null, description ? _jsx("desc", { children: description }) : null, _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1 12C1 8.68629 3.68629 6 7 6H17C20.3137 6 23 8.68629 23 12C23 15.3137 20.3137 18 17 18H7C3.68629 18 1 15.3137 1 12ZM17 16C19.2091 16 21 14.2091 21 12C21 9.79086 19.2091 8 17 8C14.7909 8 13 9.79086 13 12C13 14.2091 14.7909 16 17 16ZM12.5278 8C11.5777 9.06151 11 10.4633 11 12C11 13.5367 11.5777 14.9385 12.5278 16H7C4.79086 16 3 14.2091 3 12C3 9.79086 4.79086 8 7 8H12.5278Z" })] }));
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, useId } from "react";
|
|
3
|
+
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
4
|
+
export const IconToggleSmall = ({ className, size, title, description, focusable = false }) => {
|
|
5
|
+
const uniqueId = useId();
|
|
6
|
+
const classes = useMemo(() => classNames(["zen-icon", size ? `zen-icon--${size}` : "", className !== null && className !== void 0 ? className : ""]), [size, className]);
|
|
7
|
+
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", focusable: focusable ? "true" : undefined, tabIndex: focusable ? 0 : undefined, role: focusable || title || description ? undefined : "presentation", className: classes, "aria-labelledby": title && focusable ? uniqueId : undefined, "data-name": "IconToggleSmall", children: [title ? _jsx("title", { id: uniqueId, children: title }) : null, description ? _jsx("desc", { children: description }) : null, _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1 12C1 8.13401 4.13401 5 8 5H16C19.866 5 23 8.13401 23 12C23 15.866 19.866 19 16 19H8C4.13401 19 1 15.866 1 12ZM8 7C5.23858 7 3 9.23858 3 12C3 14.7614 5.23858 17 8 17H16C18.7614 17 21 14.7614 21 12C21 9.23858 18.7614 7 16 7H8ZM12 12C12 9.79086 13.7909 8 16 8C18.2091 8 20 9.79086 20 12C20 14.2091 18.2091 16 16 16C13.7909 16 12 14.2091 12 12ZM16 10C14.8954 10 14 10.8954 14 12C14 13.1046 14.8954 14 16 14C17.1046 14 18 13.1046 18 12C18 10.8954 17.1046 10 16 10Z" })] }));
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, useId } from "react";
|
|
3
|
+
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
4
|
+
export const IconTrendNeutral = ({ className, size, title, description, focusable = false }) => {
|
|
5
|
+
const uniqueId = useId();
|
|
6
|
+
const classes = useMemo(() => classNames(["zen-icon", size ? `zen-icon--${size}` : "", className !== null && className !== void 0 ? className : ""]), [size, className]);
|
|
7
|
+
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", focusable: focusable ? "true" : undefined, tabIndex: focusable ? 0 : undefined, role: focusable || title || description ? undefined : "presentation", className: classes, "aria-labelledby": title && focusable ? uniqueId : undefined, "data-name": "IconTrendNeutral", children: [title ? _jsx("title", { id: uniqueId, children: title }) : null, description ? _jsx("desc", { children: description }) : null, _jsx("path", { fillRule: "evenodd", d: "M7 12a1 1 0 0 1 1-1h8a1 1 0 1 1 0 2H8a1 1 0 0 1-1-1", clipRule: "evenodd" })] }));
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, useId } from "react";
|
|
3
|
+
import { classNames } from "../commonHelpers/classNames/classNames";
|
|
4
|
+
export const IconTruck = ({ className, size, title, description, focusable = false }) => {
|
|
5
|
+
const uniqueId = useId();
|
|
6
|
+
const classes = useMemo(() => classNames(["zen-icon", size ? `zen-icon--${size}` : "", className !== null && className !== void 0 ? className : ""]), [size, className]);
|
|
7
|
+
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", focusable: focusable ? "true" : undefined, tabIndex: focusable ? 0 : undefined, role: focusable || title || description ? undefined : "presentation", className: classes, "aria-labelledby": title && focusable ? uniqueId : undefined, "data-name": "IconTruck", children: [title ? _jsx("title", { id: uniqueId, children: title }) : null, description ? _jsx("desc", { children: description }) : null, _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8 5C8 4.44772 8.44772 4 9 4H21C21.5523 4 22 4.44772 22 5V16C22 16.5523 21.5523 17 21 17H19.9646C19.7219 18.6961 18.2632 20 16.5 20C14.7368 20 13.2781 18.6961 13.0354 17H10.9646C10.7219 18.6961 9.26324 20 7.5 20C5.73676 20 4.27806 18.6961 4.03544 17H3C2.44772 17 2 16.5523 2 16V10C2 9.80258 2.05844 9.60957 2.16795 9.4453L4.16795 6.4453C4.35342 6.1671 4.66565 6 5 6H8V5ZM8 8H5.53518L4 10.3028V15H4.33682C4.89855 13.8175 6.1038 13 7.5 13C7.66976 13 7.8367 13.0121 8 13.0354V8ZM9.94949 14C10.2424 14.2871 10.4851 14.6252 10.6632 15H13.3368C13.8985 13.8175 15.1038 13 16.5 13C17.8962 13 19.1015 13.8175 19.6632 15H20V6H10V14H9.94949ZM7.5 15C6.67157 15 6 15.6716 6 16.5C6 17.3284 6.67157 18 7.5 18C8.32843 18 9 17.3284 9 16.5C9 15.6716 8.32843 15 7.5 15ZM16.5 15C15.6716 15 15 15.6716 15 16.5C15 17.3284 15.6716 18 16.5 18C17.3284 18 18 17.3284 18 16.5C18 15.6716 17.3284 15 16.5 15Z" })] }));
|
|
8
|
+
};
|
package/esm/index.d.ts
CHANGED
|
@@ -174,6 +174,7 @@ export { type IHeaderButton, HeaderButtonDisplayName, HeaderButton } from "./hea
|
|
|
174
174
|
export { type IHeaderMenu, HeaderMenuDisplayName, HeaderMenu } from "./header/headerMenu";
|
|
175
175
|
export { useCustomMenu } from "./header/hooks/useCustomMenu";
|
|
176
176
|
export { type IIcon } from "./icons/icon";
|
|
177
|
+
export { IconAce } from "./icons/iconAce";
|
|
177
178
|
export { IconActivity } from "./icons/iconActivity";
|
|
178
179
|
export { IconAddPeople } from "./icons/iconAddPeople";
|
|
179
180
|
export { IconAiImages } from "./icons/iconAiImages";
|
|
@@ -243,6 +244,7 @@ export { IconBookmarkFill } from "./icons/iconBookmarkFill";
|
|
|
243
244
|
export { IconBookmarkPlus } from "./icons/iconBookmarkPlus";
|
|
244
245
|
export { IconBookmarkSelectedHover } from "./icons/iconBookmarkSelectedHover";
|
|
245
246
|
export { IconBranches } from "./icons/iconBranches";
|
|
247
|
+
export { IconBreak } from "./icons/iconBreak";
|
|
246
248
|
export { IconBrokenLink } from "./icons/iconBrokenLink";
|
|
247
249
|
export { IconBrowser } from "./icons/iconBrowser";
|
|
248
250
|
export { IconBrush } from "./icons/iconBrush";
|
|
@@ -294,6 +296,7 @@ export { IconChevronLeft } from "./icons/iconChevronLeft";
|
|
|
294
296
|
export { IconChevronLeftSmall } from "./icons/iconChevronLeftSmall";
|
|
295
297
|
export { IconChevronRight } from "./icons/iconChevronRight";
|
|
296
298
|
export { IconChevronRightSmall } from "./icons/iconChevronRightSmall";
|
|
299
|
+
export { IconChevronStepper } from "./icons/iconChevronStepper";
|
|
297
300
|
export { IconChevronTop } from "./icons/iconChevronTop";
|
|
298
301
|
export { IconChevronTopSmall } from "./icons/iconChevronTopSmall";
|
|
299
302
|
export { IconChromecast } from "./icons/iconChromecast";
|
|
@@ -567,6 +570,7 @@ export { IconPlusCircle } from "./icons/iconPlusCircle";
|
|
|
567
570
|
export { IconPlusFile } from "./icons/iconPlusFile";
|
|
568
571
|
export { IconPlusLines } from "./icons/iconPlusLines";
|
|
569
572
|
export { IconPlusSquare } from "./icons/iconPlusSquare";
|
|
573
|
+
export { IconPotato } from "./icons/iconPotato";
|
|
570
574
|
export { IconPound } from "./icons/iconPound";
|
|
571
575
|
export { IconPrinter } from "./icons/iconPrinter";
|
|
572
576
|
export { IconProcessor } from "./icons/iconProcessor";
|
|
@@ -647,7 +651,11 @@ export { IconThermograph } from "./icons/iconThermograph";
|
|
|
647
651
|
export { IconThermometer } from "./icons/iconThermometer";
|
|
648
652
|
export { IconThumbsDown } from "./icons/iconThumbsDown";
|
|
649
653
|
export { IconThumbsUp } from "./icons/iconThumbsUp";
|
|
654
|
+
export { IconToggleLarge } from "./icons/iconToggleLarge";
|
|
655
|
+
export { IconToggleSmall } from "./icons/iconToggleSmall";
|
|
650
656
|
export { IconTrailer } from "./icons/iconTrailer";
|
|
657
|
+
export { IconTrendNeutral } from "./icons/iconTrendNeutral";
|
|
658
|
+
export { IconTruck } from "./icons/iconTruck";
|
|
651
659
|
export { IconUmbrella } from "./icons/iconUmbrella";
|
|
652
660
|
export { IconUnderline } from "./icons/iconUnderline";
|
|
653
661
|
export { IconUndo } from "./icons/iconUndo";
|
package/esm/index.js
CHANGED
|
@@ -163,6 +163,7 @@ export { HeaderBackDisplayName, HeaderBack } from "./header/headerBack";
|
|
|
163
163
|
export { HeaderButtonDisplayName, HeaderButton } from "./header/headerButton";
|
|
164
164
|
export { HeaderMenuDisplayName, HeaderMenu } from "./header/headerMenu";
|
|
165
165
|
export { useCustomMenu } from "./header/hooks/useCustomMenu";
|
|
166
|
+
export { IconAce } from "./icons/iconAce";
|
|
166
167
|
export { IconActivity } from "./icons/iconActivity";
|
|
167
168
|
export { IconAddPeople } from "./icons/iconAddPeople";
|
|
168
169
|
export { IconAiImages } from "./icons/iconAiImages";
|
|
@@ -232,6 +233,7 @@ export { IconBookmarkFill } from "./icons/iconBookmarkFill";
|
|
|
232
233
|
export { IconBookmarkPlus } from "./icons/iconBookmarkPlus";
|
|
233
234
|
export { IconBookmarkSelectedHover } from "./icons/iconBookmarkSelectedHover";
|
|
234
235
|
export { IconBranches } from "./icons/iconBranches";
|
|
236
|
+
export { IconBreak } from "./icons/iconBreak";
|
|
235
237
|
export { IconBrokenLink } from "./icons/iconBrokenLink";
|
|
236
238
|
export { IconBrowser } from "./icons/iconBrowser";
|
|
237
239
|
export { IconBrush } from "./icons/iconBrush";
|
|
@@ -283,6 +285,7 @@ export { IconChevronLeft } from "./icons/iconChevronLeft";
|
|
|
283
285
|
export { IconChevronLeftSmall } from "./icons/iconChevronLeftSmall";
|
|
284
286
|
export { IconChevronRight } from "./icons/iconChevronRight";
|
|
285
287
|
export { IconChevronRightSmall } from "./icons/iconChevronRightSmall";
|
|
288
|
+
export { IconChevronStepper } from "./icons/iconChevronStepper";
|
|
286
289
|
export { IconChevronTop } from "./icons/iconChevronTop";
|
|
287
290
|
export { IconChevronTopSmall } from "./icons/iconChevronTopSmall";
|
|
288
291
|
export { IconChromecast } from "./icons/iconChromecast";
|
|
@@ -556,6 +559,7 @@ export { IconPlusCircle } from "./icons/iconPlusCircle";
|
|
|
556
559
|
export { IconPlusFile } from "./icons/iconPlusFile";
|
|
557
560
|
export { IconPlusLines } from "./icons/iconPlusLines";
|
|
558
561
|
export { IconPlusSquare } from "./icons/iconPlusSquare";
|
|
562
|
+
export { IconPotato } from "./icons/iconPotato";
|
|
559
563
|
export { IconPound } from "./icons/iconPound";
|
|
560
564
|
export { IconPrinter } from "./icons/iconPrinter";
|
|
561
565
|
export { IconProcessor } from "./icons/iconProcessor";
|
|
@@ -635,7 +639,11 @@ export { IconThermograph } from "./icons/iconThermograph";
|
|
|
635
639
|
export { IconThermometer } from "./icons/iconThermometer";
|
|
636
640
|
export { IconThumbsDown } from "./icons/iconThumbsDown";
|
|
637
641
|
export { IconThumbsUp } from "./icons/iconThumbsUp";
|
|
642
|
+
export { IconToggleLarge } from "./icons/iconToggleLarge";
|
|
643
|
+
export { IconToggleSmall } from "./icons/iconToggleSmall";
|
|
638
644
|
export { IconTrailer } from "./icons/iconTrailer";
|
|
645
|
+
export { IconTrendNeutral } from "./icons/iconTrendNeutral";
|
|
646
|
+
export { IconTruck } from "./icons/iconTruck";
|
|
639
647
|
export { IconUmbrella } from "./icons/iconUmbrella";
|
|
640
648
|
export { IconUnderline } from "./icons/iconUnderline";
|
|
641
649
|
export { IconUndo } from "./icons/iconUndo";
|
package/esm/layout/layout.d.ts
CHANGED
|
@@ -22,5 +22,6 @@ interface ILayoutComponents {
|
|
|
22
22
|
FullScreenButton: React.FC<IFullScreenButton>;
|
|
23
23
|
}
|
|
24
24
|
export declare const getContentPaddings: (isMobile: boolean, startWithToolbar: boolean) => number;
|
|
25
|
-
|
|
25
|
+
declare const LayoutInner: ({ id, className, pageScrolling, children }: ILayout) => import("react/jsx-runtime").JSX.Element | null;
|
|
26
|
+
export declare const Layout: typeof LayoutInner & ILayoutComponents;
|
|
26
27
|
export {};
|
|
@@ -2,6 +2,7 @@ import { IZenComponentProps } from "../commonHelpers/zenComponent";
|
|
|
2
2
|
import type { ChartData, ChartOptions, Plugin, PluginOptionsByType } from "chart.js/auto";
|
|
3
3
|
import "../react-chartjs/dateAdapter";
|
|
4
4
|
import { ILegendOptions } from "./plugins/htmlLegend";
|
|
5
|
+
import "./lineChart.less";
|
|
5
6
|
interface ILineChartPluginOptions extends Partial<PluginOptionsByType<"line">> {
|
|
6
7
|
htmlLegend?: ILegendOptions;
|
|
7
8
|
}
|