@foodpilot/foods 0.4.0 → 0.5.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/dist/components/Accordion/FormAccordion.d.ts +23 -23
- package/dist/components/Accordion/GenericAccordion.d.ts +0 -1
- package/dist/components/Accordion/ProductAccordion.d.ts +17 -17
- package/dist/components/Accordion/index.d.ts +3 -3
- package/dist/components/Badge/Badge.d.ts +7 -2
- package/dist/components/Badge/ComingSoonBadge.d.ts +5 -0
- package/dist/components/Badge/FoodsBadge.d.ts +2 -2
- package/dist/components/Badge/ScoreContainer.d.ts +8 -0
- package/dist/components/Badge/index.d.ts +4 -2
- package/dist/components/Box/AdditionalContentBox.d.ts +1 -1
- package/dist/components/Box/ContextualContentBox.d.ts +1 -1
- package/dist/components/Box/DottedBox.d.ts +0 -1
- package/dist/components/Box/HelperBox.d.ts +1 -1
- package/dist/components/Box/InfoBox.d.ts +4 -3
- package/dist/components/Box/LineGroupBox.d.ts +0 -1
- package/dist/components/Box/QuoteBox.d.ts +0 -1
- package/dist/components/Box/SectionBox.d.ts +2 -2
- package/dist/components/Box/SolidGreyBox.d.ts +1 -2
- package/dist/components/Box/WarningBox.d.ts +0 -1
- package/dist/components/Box/WhiteBox.d.ts +1 -1
- package/dist/components/Box/index.d.ts +12 -12
- package/dist/components/Button/FoodsIconButton.d.ts +14 -4
- package/dist/components/Button/FoodsToggleButton.d.ts +16 -9
- package/dist/components/Button/IconTooltips/FoodsIconButtonTooltip.d.ts +2 -0
- package/dist/components/Button/TertiaryToggleButton.d.ts +4 -5
- package/dist/components/Button/TertiaryToggleButtonNodeTitle.d.ts +5 -5
- package/dist/components/Button/index.d.ts +4 -3
- package/dist/components/CMS/ArticleBlock/Article.d.ts +11 -0
- package/dist/components/CMS/ArticleBlock/ArticleContent.d.ts +12 -0
- package/dist/components/CMS/ArticleBlock/ArticlesBox.d.ts +8 -0
- package/dist/components/CMS/ArticleBlock/index.d.ts +2 -0
- package/dist/components/CMS/HeroBlock/HeroBlock.d.ts +12 -0
- package/dist/components/CMS/HeroBlock/index.d.ts +1 -0
- package/dist/components/CMS/IndicatorBlock/IndicatorBlock.d.ts +11 -0
- package/dist/components/CMS/IndicatorBlock/LightIndicatorBlock.d.ts +6 -0
- package/dist/components/CMS/IndicatorBlock/index.d.ts +2 -0
- package/dist/components/CMS/index.d.ts +3 -0
- package/dist/components/Cards/ScoreCard/Header/ScoreCardHeader.d.ts +17 -0
- package/dist/components/Cards/ScoreCard/Header/ValueSwitcher/ValuePopover.d.ts +10 -0
- package/dist/components/Cards/ScoreCard/Header/ValueSwitcher/ValueSwitcher.d.ts +16 -0
- package/dist/components/Cards/ScoreCard/ScoreCard.d.ts +9 -0
- package/dist/components/Cards/SeeMoreCard/SeeMoreCard.d.ts +10 -0
- package/dist/components/Cards/TrajectoryCards/Blocks/horizontal/index.d.ts +2 -0
- package/dist/components/Cards/TrajectoryCards/Blocks/types.d.ts +40 -0
- package/dist/components/Cards/TrajectoryCards/Blocks/vertical/index.d.ts +2 -0
- package/dist/components/Cards/TrajectoryCards/TrajectoryCards.d.ts +13 -0
- package/dist/components/Cards/TrajectoryCards/components/Comparisons.d.ts +3 -0
- package/dist/components/Cards/TrajectoryCards/components/Step.d.ts +18 -0
- package/dist/components/Cards/TrajectoryCards/components/TargetToGoalComparison/HorizontalTargetToGoalComparison.d.ts +12 -0
- package/dist/components/Cards/TrajectoryCards/components/TargetToGoalComparison/VerticalTargetToGoalComparison.d.ts +11 -0
- package/dist/components/Cards/TrajectoryCards/components/TargetToGoalComparison.d.ts +17 -0
- package/dist/components/Cards/TrajectoryCards/components/TrajectoryComparison.d.ts +9 -0
- package/dist/components/Cards/TrajectoryCards/styles/index.d.ts +33 -0
- package/dist/components/Cards/index.d.ts +5 -0
- package/dist/components/Chart/DoughnutChart/DoughnutChart.d.ts +24 -0
- package/dist/components/Chart/DoughnutChart/DoughnutChartLegend.d.ts +21 -0
- package/dist/components/Chart/DoughnutChart/DoughnutChartLegendBottom.d.ts +16 -0
- package/dist/components/Chart/DoughnutChart/DoughnutChartLegendRight.d.ts +17 -0
- package/dist/components/Chart/DoughnutChart/DoughnutChartLegendSeeMoreLink.d.ts +6 -0
- package/dist/components/Chart/DoughnutChart/RenderItemMarker.d.ts +10 -0
- package/dist/components/Chart/DoughnutChart/doughnutChartAdditions.d.ts +356 -0
- package/dist/components/Chart/EvolutionChart/Legend.d.ts +14 -0
- package/dist/components/Chart/EvolutionChart/Popover.d.ts +15 -0
- package/dist/components/Chart/EvolutionChart/lineRepositionPlugin.d.ts +2 -0
- package/dist/components/Chart/EvolutionChart/utils.d.ts +8 -0
- package/dist/components/Chart/EvolutionChart.d.ts +22 -0
- package/dist/components/Chart/HorizontalGauge/HorizontalGaugeChart.d.ts +2 -0
- package/dist/components/Chart/HorizontalGauge/components/GaugeBackground.d.ts +2 -0
- package/dist/components/Chart/HorizontalGauge/components/GaugeBorders.d.ts +2 -0
- package/dist/components/Chart/HorizontalGauge/components/GaugeLabels.d.ts +2 -0
- package/dist/components/Chart/HorizontalGauge/components/GaugeMarkers.d.ts +2 -0
- package/dist/components/Chart/HorizontalGauge/components/GaugeTooltip.d.ts +10 -0
- package/dist/components/Chart/HorizontalGauge/constants.d.ts +42 -0
- package/dist/components/Chart/HorizontalGauge/hooks/useContainerWidth.d.ts +4 -0
- package/dist/components/Chart/HorizontalGauge/hooks/useGaugeCalculations.d.ts +2 -0
- package/dist/components/Chart/HorizontalGauge/types.d.ts +118 -0
- package/dist/components/Chart/HorizontalGauge/utils/formatters.d.ts +1 -0
- package/dist/components/Chart/HorizontalGauge/utils/utils.d.ts +6 -0
- package/dist/components/Chart/ScatterPlot.d.ts +1 -2
- package/dist/components/Chart/TrajectoryChart/TrajectoryChart.d.ts +13 -0
- package/dist/components/Chart/TrajectoryChart/TrajectoryLegend/LegendBlockComponent.d.ts +2 -0
- package/dist/components/Chart/TrajectoryChart/TrajectoryLegend/TrajectoryLegend.d.ts +10 -0
- package/dist/components/Chart/TrajectoryChart/TrajectoryLegend/index.d.ts +1 -0
- package/dist/components/Chart/TrajectoryChart/TrajectoryLegend/types.d.ts +37 -0
- package/dist/components/Chart/TrajectoryChart/TrajectoryLegend/useBuildLegendBlocks.d.ts +9 -0
- package/dist/components/Chart/TrajectoryChart/TrajectoryLegend/utils.d.ts +4 -0
- package/dist/components/Chart/TrajectoryChart/formatChart.d.ts +27 -0
- package/dist/components/Chart/TrajectoryChart/useBars.d.ts +17 -0
- package/dist/components/Chart/TrajectoryChart/useChartResize.d.ts +5 -0
- package/dist/components/Chart/WaterfallChart/WaterfallLegend/LegendBlockComponent.d.ts +2 -0
- package/dist/components/Chart/WaterfallChart/WaterfallLegend/WaterfallLegend.d.ts +12 -0
- package/dist/components/Chart/WaterfallChart/WaterfallLegend/index.d.ts +2 -0
- package/dist/components/Chart/WaterfallChart/WaterfallLegend/types.d.ts +13 -0
- package/dist/components/Chart/WaterfallChart/WaterfallLegend/useBuildLegendBlocks.d.ts +14 -0
- package/dist/components/Chart/WaterfallChart.d.ts +37 -0
- package/dist/components/Chart/common/chart.d.ts +15 -0
- package/dist/components/Chart/index.d.ts +13 -2
- package/dist/components/Checkbox/BaseCheckbox.d.ts +1 -1
- package/dist/components/Checkbox/FoodsCheckbox.d.ts +1 -1
- package/dist/components/Checkbox/PrimaryCheckbox.d.ts +2 -2
- package/dist/components/Checkbox/helperFunctions.d.ts +1 -1
- package/dist/components/Checkbox/index.d.ts +4 -4
- package/dist/components/ComparisonBlock/Blocks/HorizontalLargeBlock.d.ts +18 -0
- package/dist/components/ComparisonBlock/Blocks/HorizontalMediumBlock.d.ts +19 -0
- package/dist/components/ComparisonBlock/Blocks/HorizontalSmallBlock.d.ts +12 -0
- package/dist/components/ComparisonBlock/Blocks/VerticalLargeBlock.d.ts +18 -0
- package/dist/components/ComparisonBlock/Blocks/VerticalMediumBlock.d.ts +18 -0
- package/dist/components/ComparisonBlock/ComparisonBlock.d.ts +24 -0
- package/dist/components/ComparisonBlock/index.d.ts +1 -0
- package/dist/components/ComparisonBlock/useColorAndArrow.d.ts +12 -0
- package/dist/components/CustomTypography/CustomTypography.d.ts +1 -1
- package/dist/components/CustomTypography/TypographyList.d.ts +1 -1
- package/dist/components/CustomTypography/index.d.ts +2 -2
- package/dist/components/Dialog/PrimaryDialog.d.ts +2 -2
- package/dist/components/Dialog/index.d.ts +1 -1
- package/dist/components/Experimental/RichTextEditor/RichTextEditor.d.ts +7 -0
- package/dist/components/Experimental/RichTextEditor/Toolbar.d.ts +1 -0
- package/dist/components/Experimental/RichTextEditor/index.d.ts +1 -0
- package/dist/components/Experimental/RichTextEditor/styles.d.ts +18 -0
- package/dist/components/Field/NumberField.d.ts +7 -1
- package/dist/components/Field/TextField.d.ts +2 -3
- package/dist/components/Field/index.d.ts +2 -2
- package/dist/components/Filter/index.d.ts +2 -2
- package/dist/components/Form/FoodsFormBase/ConfirmDialog.d.ts +1 -1
- package/dist/components/Form/FoodsFormBase/FoodsFormBase.d.ts +1 -1
- package/dist/components/Form/FoodsFormBase/FormBaseContext.d.ts +3 -4
- package/dist/components/Form/FoodsFormBase/FormTopBar/index.d.ts +1 -1
- package/dist/components/Form/FoodsFormBase/index.d.ts +3 -3
- package/dist/components/Form/FoodsFormFields/FoodsTextInput.d.ts +22 -0
- package/dist/components/Form/FoodsFormFields/index.d.ts +1 -0
- package/dist/components/Form/FormBase.d.ts +2 -2
- package/dist/components/Form/FormBox.d.ts +1 -2
- package/dist/components/Form/FormPropertyBox.d.ts +2 -2
- package/dist/components/Form/FormTopBar.d.ts +1 -1
- package/dist/components/Form/FormUnit.d.ts +1 -1
- package/dist/components/Form/index.d.ts +7 -6
- package/dist/components/Grid/Cell/GreyCell.d.ts +1 -1
- package/dist/components/Grid/Cell/index.d.ts +3 -3
- package/dist/components/Grid/MRTGrid.d.ts +1 -1
- package/dist/components/Grid/index.d.ts +2 -2
- package/dist/components/Icons/FoodsIcon.d.ts +1 -1
- package/dist/components/Icons/FoodsIllustrations.d.ts +3 -2
- package/dist/components/Icons/IllustrationBackgrounds.d.ts +8 -0
- package/dist/components/Icons/Illustrations/Actions.d.ts +2 -1
- package/dist/components/Icons/Illustrations/Carbon emissions reduction.d.ts +2 -1
- package/dist/components/Icons/Illustrations/Carbon neutrality.d.ts +2 -1
- package/dist/components/Icons/Illustrations/Communities and local development.d.ts +2 -0
- package/dist/components/Icons/Illustrations/Congratulations.d.ts +2 -0
- package/dist/components/Icons/Illustrations/Data analysis.d.ts +2 -1
- package/dist/components/Icons/Illustrations/Default.d.ts +2 -0
- package/dist/components/Icons/Illustrations/Environment.d.ts +2 -0
- package/dist/components/Icons/Illustrations/Filiere a forte VA.d.ts +2 -0
- package/dist/components/Icons/Illustrations/Inputs & chemicals.d.ts +2 -1
- package/dist/components/Icons/Illustrations/Not enough data.d.ts +2 -0
- package/dist/components/Icons/Illustrations/Questionnaire.d.ts +2 -1
- package/dist/components/Icons/Illustrations/Relationships and working conditions.d.ts +2 -0
- package/dist/components/Icons/Illustrations/Scores & indicators.d.ts +2 -1
- package/dist/components/Icons/Illustrations/Select action.d.ts +2 -0
- package/dist/components/Icons/Illustrations/Select starting year.d.ts +2 -0
- package/dist/components/Icons/Illustrations/Trajectory & actions plans.d.ts +2 -0
- package/dist/components/Icons/Illustrations/Under construction.d.ts +2 -1
- package/dist/components/Icons/Illustrations/contact-support.d.ts +2 -0
- package/dist/components/Icons/iconConfig.d.ts +315 -241
- package/dist/components/Icons/illustrationProps.d.ts +10 -0
- package/dist/components/Icons/illustrationsConfig.d.ts +19 -8
- package/dist/components/Icons/index.d.ts +4 -4
- package/dist/components/Input/RoundInput.d.ts +6 -4
- package/dist/components/Input/RoundNumberInput.d.ts +1 -1
- package/dist/components/Input/index.d.ts +3 -3
- package/dist/components/Layout/BlockList/BlockListContainer.d.ts +5 -0
- package/dist/components/Layout/BlockList/Blocks/Common/LeftComparisonPart.d.ts +15 -0
- package/dist/components/Layout/BlockList/Blocks/Common/ValueDisplay.d.ts +5 -0
- package/dist/components/Layout/BlockList/Blocks/Common/index.d.ts +2 -0
- package/dist/components/Layout/BlockList/Blocks/Container/BlockItemContainer.d.ts +7 -0
- package/dist/components/Layout/BlockList/Blocks/Container/BlockItemInner.d.ts +11 -0
- package/dist/components/Layout/BlockList/Blocks/Container/index.d.ts +2 -0
- package/dist/components/Layout/BlockList/Blocks/InnerInfoBlocks/EmptyForm.d.ts +6 -0
- package/dist/components/Layout/BlockList/Blocks/InnerInfoBlocks/SuggestionBlock.d.ts +5 -0
- package/dist/components/Layout/BlockList/Blocks/InnerInfoBlocks/index.d.ts +2 -0
- package/dist/components/Layout/BlockList/Blocks/InnerInputBlocks/CheckboxBlock.d.ts +7 -0
- package/dist/components/Layout/BlockList/Blocks/InnerInputBlocks/NumericalBlock.d.ts +7 -0
- package/dist/components/Layout/BlockList/Blocks/InnerInputBlocks/RadioBlock.d.ts +7 -0
- package/dist/components/Layout/BlockList/Blocks/InnerInputBlocks/SelectBlock.d.ts +7 -0
- package/dist/components/Layout/BlockList/Blocks/InnerInputBlocks/TextBlock.d.ts +7 -0
- package/dist/components/Layout/BlockList/Blocks/InnerInputBlocks/index.d.ts +5 -0
- package/dist/components/Layout/BlockList/Blocks/index.d.ts +4 -0
- package/dist/components/Layout/BlockList/Headers/EditHeader.d.ts +12 -0
- package/dist/components/Layout/BlockList/Headers/InitHeader.d.ts +8 -0
- package/dist/components/Layout/BlockList/Headers/ListHeader.d.ts +14 -0
- package/dist/components/Layout/BlockList/Headers/index.d.ts +3 -0
- package/dist/components/Layout/BlockList/index.d.ts +4 -0
- package/dist/components/Layout/InfoHeaderWithIllustration.d.ts +11 -0
- package/dist/components/Layout/index.d.ts +2 -0
- package/dist/components/LinearProgress.d.ts +1 -1
- package/dist/components/Navigation/FoodsNavBar/FoodsNavbar.d.ts +9 -2
- package/dist/components/Navigation/FoodsNavBar/NavbarTooltip.d.ts +2 -0
- package/dist/components/Navigation/FoodsNavBar/{Footer → Plugin}/DefaultUserAction.d.ts +0 -1
- package/dist/components/Navigation/FoodsNavBar/Sections/ExpandButton/ExpandButton.d.ts +8 -0
- package/dist/components/Navigation/FoodsNavBar/Sections/Organization/ButtonPopover.d.ts +10 -0
- package/dist/components/Navigation/FoodsNavBar/Sections/Organization/Organization.d.ts +6 -0
- package/dist/components/Navigation/FoodsNavBar/{Footer → Sections/Profile}/UserButton.d.ts +1 -2
- package/dist/components/Navigation/FoodsNavBar/{Footer → Sections/Profile}/UserPopover.d.ts +1 -2
- package/dist/components/Navigation/FoodsNavBar/Sections/UserButtons/Button/DrawerAction.d.ts +8 -0
- package/dist/components/Navigation/FoodsNavBar/Sections/UserButtons/Button/LinkAction.d.ts +7 -0
- package/dist/components/Navigation/FoodsNavBar/Sections/UserButtons/Button/TopLinkAction.d.ts +11 -0
- package/dist/components/Navigation/FoodsNavBar/Sections/UserButtons/UserButtons.d.ts +7 -0
- package/dist/components/Navigation/FoodsNavBar/index.d.ts +2 -2
- package/dist/components/Navigation/IconThread.d.ts +1 -1
- package/dist/components/Navigation/Navbar.d.ts +2 -2
- package/dist/components/Navigation/index.d.ts +3 -3
- package/dist/components/Number/NumberWithUnit.d.ts +7 -0
- package/dist/components/Number/index.d.ts +2 -2
- package/dist/components/Popover/AnchoredPopover.d.ts +2 -2
- package/dist/components/Popover/BigPopoverLayout.d.ts +3 -1
- package/dist/components/Popover/CoordinatePopover.d.ts +4 -1
- package/dist/components/Popover/OptionsPopover.d.ts +4 -1
- package/dist/components/Popover/WhitePopover.d.ts +1 -1
- package/dist/components/Popover/WhitePopoverOnIcon.d.ts +0 -1
- package/dist/components/Popover/index.d.ts +6 -6
- package/dist/components/Radio/BaseRadio.d.ts +2 -2
- package/dist/components/Radio/FoodsRadioList.d.ts +1 -1
- package/dist/components/Radio/RadioBoolean.d.ts +1 -1
- package/dist/components/Radio/RadioList.d.ts +2 -2
- package/dist/components/Radio/index.d.ts +3 -3
- package/dist/components/RichTextEditor/RichTextEditor.d.ts +36 -0
- package/dist/components/RichTextEditor/components/ColorInput/index.d.ts +8 -0
- package/dist/components/RichTextEditor/components/ColorInput/style/index.d.ts +23 -0
- package/dist/components/RichTextEditor/components/Editor/style/index.d.ts +14 -0
- package/dist/components/RichTextEditor/components/Toolbar/style/index.d.ts +36 -0
- package/dist/components/RichTextEditor/constants/index.d.ts +3 -0
- package/dist/components/RichTextEditor/constants/textStyles.d.ts +10 -0
- package/dist/components/RichTextEditor/constants/toolbar.d.ts +21 -0
- package/dist/components/RichTextEditor/constants/typography.d.ts +20 -0
- package/dist/components/RichTextEditor/editor/EditorOutput.d.ts +7 -0
- package/dist/components/RichTextEditor/extensions/FontSize.d.ts +34 -0
- package/dist/components/RichTextEditor/extensions/SvgIconExtension.d.ts +14 -0
- package/dist/components/RichTextEditor/index.d.ts +1 -0
- package/dist/components/RichTextEditor/style/index.d.ts +2 -0
- package/dist/components/RichTextEditor/toolbar/AlignmentCommands.d.ts +16 -0
- package/dist/components/RichTextEditor/toolbar/FontControls.d.ts +16 -0
- package/dist/components/RichTextEditor/toolbar/IconSelector.d.ts +12 -0
- package/dist/components/RichTextEditor/toolbar/ListCommands.d.ts +15 -0
- package/dist/components/RichTextEditor/toolbar/TextCommands.d.ts +15 -0
- package/dist/components/RichTextEditor/toolbar/Toolbar.d.ts +16 -0
- package/dist/components/Search/index.d.ts +1 -1
- package/dist/components/Select/FoodsSelect/Context/Provider.d.ts +10 -7
- package/dist/components/Select/FoodsSelect/Context/useSelect.d.ts +1 -4
- package/dist/components/Select/FoodsSelect/FoodsSelect.d.ts +8 -4
- package/dist/components/Select/FoodsSelect/Options/Header/OptionHeader.d.ts +0 -1
- package/dist/components/Select/FoodsSelect/Options/Line/Default.d.ts +0 -1
- package/dist/components/Select/FoodsSelect/Options/Line/LineBox.d.ts +1 -1
- package/dist/components/Select/FoodsSelect/Options/Line/OptionLine.d.ts +0 -1
- package/dist/components/Select/FoodsSelect/Options/Line/Selected.d.ts +0 -1
- package/dist/components/Select/FoodsSelect/Options/SelectOptions.d.ts +0 -1
- package/dist/components/Select/FoodsSelect/Select.d.ts +2 -1
- package/dist/components/Select/FoodsSelect/index.d.ts +1 -1
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/components/Ssq/SsqCard.d.ts +1 -1
- package/dist/components/Ssq/index.d.ts +1 -1
- package/dist/components/Tabs/ButtonTabs.d.ts +2 -2
- package/dist/components/Tabs/SecondaryTabs.d.ts +20 -0
- package/dist/components/Tabs/SectionTabs.d.ts +3 -2
- package/dist/components/Tabs/index.d.ts +3 -2
- package/dist/components/Tags/FoodsTags.d.ts +11 -0
- package/dist/components/Tags/FoodsUserTags.d.ts +10 -0
- package/dist/components/Tags/index.d.ts +2 -0
- package/dist/components/Text/TextTitle.d.ts +2 -2
- package/dist/components/Text/TextTitleGreyIcon.d.ts +1 -2
- package/dist/components/Text/index.d.ts +3 -4
- package/dist/components/Textarea/Textarea.d.ts +1 -1
- package/dist/components/Textarea/index.d.ts +1 -0
- package/dist/components/Tooltip/FoodsTooltip.d.ts +6 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/Treeview/Item.d.ts +3 -0
- package/dist/components/Treeview/Label.d.ts +8 -0
- package/dist/components/Treeview/Treeview.d.ts +23 -0
- package/dist/components/Treeview/index.d.ts +1 -0
- package/dist/components/Treeview/utils.d.ts +8 -0
- package/dist/components/index.d.ts +34 -26
- package/dist/innerComponents/FlexibleButton.d.ts +11 -0
- package/dist/innerComponents/FlexibleTypography.d.ts +8 -0
- package/dist/innerComponents/chartUtils.d.ts +7 -0
- package/dist/main.d.ts +3 -3
- package/dist/main.js +59938 -36095
- package/dist/main.umd.cjs +253 -186
- package/dist/themes/FoodsThemeProvider.d.ts +2 -1
- package/dist/themes/common/MUIComponents/avatars.d.ts +26 -0
- package/dist/themes/common/MUIComponents/buttons.d.ts +16 -0
- package/dist/themes/common/MUIComponents/index.d.ts +3 -0
- package/dist/themes/common/MUIComponents/typography.d.ts +16 -0
- package/dist/themes/common/colors.d.ts +352 -0
- package/dist/themes/common/components.d.ts +2 -0
- package/dist/themes/common/custom.d.ts +27 -0
- package/dist/themes/common/index.d.ts +5 -0
- package/dist/themes/common/spacing.d.ts +2 -0
- package/dist/themes/index.d.ts +9 -3
- package/dist/themes/themes/BredTheme.d.ts +1 -0
- package/dist/themes/themes/CollectiveTheme.d.ts +1 -0
- package/dist/themes/themes/FoodPilotTheme.d.ts +1 -0
- package/dist/themes/themes/WinePilotTheme.d.ts +1 -0
- package/dist/themes/themes/index.d.ts +4 -0
- package/package.json +111 -91
- package/dist/components/Chart/DoughnutChart.d.ts +0 -11
- package/dist/components/Indicator/ComparaisonIndicator.d.ts +0 -4
- package/dist/components/Indicator/index.d.ts +0 -1
- package/dist/components/Navigation/FoodsNavBar/Footer/Footer.d.ts +0 -12
- package/dist/components/Navigation/FoodsNavBar/Footer/index.d.ts +0 -1
- package/dist/components/Navigation/FoodsNavBar/NavbarAction.d.ts +0 -8
- package/dist/components/Navigation/FoodsNavBar/Organization.d.ts +0 -7
- package/dist/components/Number/NumberUnit.d.ts +0 -7
- package/dist/components/Text/TextBlock.d.ts +0 -13
- package/dist/themes/FoodPilotTheme.d.ts +0 -5
- package/dist/themes/ThemeExtensions.d.ts +0 -150
- package/dist/themes/WinePilotTheme.d.ts +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
export type FormAccordionContent = {
|
|
3
3
|
title: ReactNode;
|
|
4
4
|
content: ReactNode;
|
|
@@ -10,30 +10,30 @@ export type FormAccordionContent = {
|
|
|
10
10
|
export type FormAccordionProps = {
|
|
11
11
|
pages: FormAccordionContent[];
|
|
12
12
|
};
|
|
13
|
-
export declare const StyledFormAccordion: import(
|
|
14
|
-
children: NonNullable<ReactNode>;
|
|
15
|
-
classes?: Partial<import(
|
|
16
|
-
defaultExpanded?: boolean
|
|
17
|
-
disabled?: boolean
|
|
18
|
-
disableGutters?: boolean
|
|
19
|
-
expanded?: boolean
|
|
20
|
-
onChange?: (
|
|
21
|
-
sx?: import(
|
|
22
|
-
TransitionComponent?:
|
|
23
|
-
children?:
|
|
24
|
-
}
|
|
25
|
-
TransitionProps?: import(
|
|
26
|
-
} & import(
|
|
27
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import(
|
|
28
|
-
}, keyof import(
|
|
29
|
-
theme?: import(
|
|
13
|
+
export declare const StyledFormAccordion: import('@emotion/styled').StyledComponent<{
|
|
14
|
+
children: NonNullable<React.ReactNode>;
|
|
15
|
+
classes?: Partial<import('@mui/material').AccordionClasses>;
|
|
16
|
+
defaultExpanded?: boolean;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
disableGutters?: boolean;
|
|
19
|
+
expanded?: boolean;
|
|
20
|
+
onChange?: (event: React.SyntheticEvent, expanded: boolean) => void;
|
|
21
|
+
sx?: import('@mui/system').SxProps<import('@mui/material').Theme>;
|
|
22
|
+
TransitionComponent?: React.JSXElementConstructor<import('@mui/material/transitions').TransitionProps & {
|
|
23
|
+
children?: React.ReactElement<any, any>;
|
|
24
|
+
}>;
|
|
25
|
+
TransitionProps?: import('@mui/material/transitions').TransitionProps;
|
|
26
|
+
} & import('@mui/material').AccordionSlotsAndSlotProps & Omit<import('@mui/material').PaperOwnProps, "classes" | "onChange"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
27
|
+
ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
28
|
+
}, keyof import('@mui/material/OverridableComponent').CommonProps | "children" | "sx" | "onChange" | "elevation" | "disabled" | "variant" | "square" | "defaultExpanded" | "disableGutters" | "expanded" | "TransitionComponent" | "TransitionProps" | keyof import('@mui/material').AccordionSlotsAndSlotProps> & {
|
|
29
|
+
theme?: import('@emotion/react').Theme;
|
|
30
30
|
}, {}, {}>;
|
|
31
|
-
export declare const StyledFormAccordionSummary: import(
|
|
32
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import(
|
|
31
|
+
export declare const StyledFormAccordionSummary: import('@emotion/styled').StyledComponent<import('@mui/material').AccordionSummaryOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
32
|
+
ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
33
33
|
}, "className" | "style" | "classes" | "children" | "sx" | "tabIndex" | "disabled" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "expandIcon"> & {
|
|
34
|
-
theme?: import(
|
|
34
|
+
theme?: import('@emotion/react').Theme;
|
|
35
35
|
}, {}, {}>;
|
|
36
|
-
export declare const StyledFormAccordionDetails: import(
|
|
37
|
-
theme?: import(
|
|
36
|
+
export declare const StyledFormAccordionDetails: import('@emotion/styled').StyledComponent<import('@mui/material').AccordionDetailsProps & {
|
|
37
|
+
theme?: import('@emotion/react').Theme;
|
|
38
38
|
}, {}, {}>;
|
|
39
39
|
export declare const FormAccordion: (props: FormAccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
export declare const StyledAccordion: import(
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare const StyledAccordion: import('@emotion/styled').StyledComponent<{
|
|
3
3
|
children: NonNullable<React.ReactNode>;
|
|
4
|
-
classes?: Partial<import(
|
|
5
|
-
defaultExpanded?: boolean
|
|
6
|
-
disabled?: boolean
|
|
7
|
-
disableGutters?: boolean
|
|
8
|
-
expanded?: boolean
|
|
9
|
-
onChange?: (
|
|
10
|
-
sx?: import(
|
|
11
|
-
TransitionComponent?: React.JSXElementConstructor<import(
|
|
12
|
-
children?: React.ReactElement<any, any
|
|
13
|
-
}
|
|
14
|
-
TransitionProps?: import(
|
|
15
|
-
} & import(
|
|
16
|
-
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
17
|
-
}, keyof import(
|
|
18
|
-
theme?: import(
|
|
4
|
+
classes?: Partial<import('@mui/material').AccordionClasses>;
|
|
5
|
+
defaultExpanded?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
disableGutters?: boolean;
|
|
8
|
+
expanded?: boolean;
|
|
9
|
+
onChange?: (event: React.SyntheticEvent, expanded: boolean) => void;
|
|
10
|
+
sx?: import('@mui/system').SxProps<import('@mui/material').Theme>;
|
|
11
|
+
TransitionComponent?: React.JSXElementConstructor<import('@mui/material/transitions').TransitionProps & {
|
|
12
|
+
children?: React.ReactElement<any, any>;
|
|
13
|
+
}>;
|
|
14
|
+
TransitionProps?: import('@mui/material/transitions').TransitionProps;
|
|
15
|
+
} & import('@mui/material').AccordionSlotsAndSlotProps & Omit<import('@mui/material').PaperOwnProps, "classes" | "onChange"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
16
|
+
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
17
|
+
}, keyof import('@mui/material/OverridableComponent').CommonProps | "children" | "sx" | "onChange" | "elevation" | "disabled" | "variant" | "square" | "defaultExpanded" | "disableGutters" | "expanded" | "TransitionComponent" | "TransitionProps" | keyof import('@mui/material').AccordionSlotsAndSlotProps> & {
|
|
18
|
+
theme?: import('@emotion/react').Theme;
|
|
19
19
|
}, {}, {}>;
|
|
20
20
|
export type AccordionContent = {
|
|
21
21
|
title: JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from './FormAccordion';
|
|
2
|
+
export * from './ProductAccordion';
|
|
3
|
+
export * from './GenericAccordion';
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { BoxProps } from
|
|
2
|
-
import { ReactNode } from
|
|
1
|
+
import { BoxProps } from '@mui/material';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
3
|
export type BadgeProps = Omit<BoxProps, "content"> & {
|
|
4
4
|
size?: "small" | "medium" | "big";
|
|
5
5
|
children: ReactNode;
|
|
6
|
+
tooltip?: string;
|
|
7
|
+
};
|
|
8
|
+
export type BagdeTooltipProps = {
|
|
9
|
+
tooltip?: string;
|
|
10
|
+
children: JSX.Element;
|
|
6
11
|
};
|
|
7
12
|
export declare const Badge: (props: BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BoxProps } from
|
|
2
|
-
import { FoodsIconProps } from
|
|
1
|
+
import { BoxProps } from '@mui/material';
|
|
2
|
+
import { FoodsIconProps } from '../Icons/FoodsIcon';
|
|
3
3
|
export type FoodsBadgeProps = {
|
|
4
4
|
size: number;
|
|
5
5
|
icon: FoodsIconProps["icon"];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { BoxProps } from '@mui/material';
|
|
3
|
+
type ScoreContainerProps = {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
boxProps?: BoxProps;
|
|
6
|
+
};
|
|
7
|
+
export declare const ScoreContainer: (props: ScoreContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BoxProps } from
|
|
1
|
+
import { BoxProps } from '@mui/material';
|
|
2
2
|
export declare const HelperBox: (props: BoxProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export type InfoBoxProps = {
|
|
3
|
-
|
|
2
|
+
header: JSX.Element;
|
|
3
|
+
info?: JSX.Element;
|
|
4
|
+
children: JSX.Element;
|
|
4
5
|
};
|
|
5
|
-
export declare const InfoBox: (
|
|
6
|
+
export declare const InfoBox: (_props: InfoBoxProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BoxProps } from
|
|
1
|
+
import { BoxProps } from '@mui/material';
|
|
2
2
|
export declare const WhiteBox: (props: BoxProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
1
|
+
export * from './AdditionalContentBox';
|
|
2
|
+
export * from './CategoryBox';
|
|
3
|
+
export * from './ContextualContentBox';
|
|
4
|
+
export * from './DottedBox';
|
|
5
|
+
export * from './HelperBox';
|
|
6
|
+
export * from './InfoBox';
|
|
7
|
+
export * from './LineGroupBox';
|
|
8
|
+
export * from './QuoteBox';
|
|
9
|
+
export * from './SectionBox';
|
|
10
|
+
export * from './SolidGreyBox';
|
|
11
|
+
export * from './WarningBox';
|
|
12
|
+
export * from './WhiteBox';
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { ButtonProps, TooltipProps } from '@mui/material';
|
|
2
|
+
import { IconMapping } from '../Icons';
|
|
3
|
+
type IconButtonSize = "xs" | "s" | "m";
|
|
4
|
+
export type FoodsIconButtonProps = {
|
|
5
|
+
size: IconButtonSize;
|
|
6
|
+
withBackground?: boolean;
|
|
7
|
+
icon: keyof IconMapping;
|
|
8
|
+
buttonProps: Omit<ButtonProps, "variant"> | undefined;
|
|
9
|
+
tooltip?: {
|
|
10
|
+
text?: string;
|
|
11
|
+
props?: Omit<TooltipProps, "children" | "title">;
|
|
12
|
+
};
|
|
4
13
|
};
|
|
5
|
-
export declare const FoodsIconButton: (props:
|
|
14
|
+
export declare const FoodsIconButton: (props: FoodsIconButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -1,14 +1,21 @@
|
|
|
1
|
-
import { ToggleButtonProps } from
|
|
2
|
-
|
|
3
|
-
type
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { ToggleButtonProps } from '@mui/material';
|
|
2
|
+
import { IconMapping } from '../Icons';
|
|
3
|
+
type ToggleButtonsPropsWithoutEnforcedKeys = Omit<ToggleButtonProps, "key" | "value" | "onClick" | "selected" | "unselectable">;
|
|
4
|
+
export type FoodsToggleButtonType = {
|
|
5
|
+
id: number | string;
|
|
6
|
+
label?: string;
|
|
7
|
+
endIcon?: keyof IconMapping;
|
|
8
|
+
startIcon?: keyof IconMapping;
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
disabled?: boolean;
|
|
6
11
|
};
|
|
7
12
|
export type FoodsToggleButtonProps = ToggleButtonsPropsWithoutEnforcedKeys & {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
onSelection: (selectedChoiceId: number) => void;
|
|
13
|
+
buttons: FoodsToggleButtonType[];
|
|
14
|
+
initialSelected?: FoodsToggleButtonType;
|
|
11
15
|
ToggleButtonProps?: ToggleButtonsPropsWithoutEnforcedKeys;
|
|
16
|
+
buttonGroup?: boolean;
|
|
17
|
+
unselectable?: boolean;
|
|
18
|
+
className?: string;
|
|
12
19
|
};
|
|
13
|
-
export declare const FoodsToggleButton: (
|
|
20
|
+
export declare const FoodsToggleButton: import('react').ForwardRefExoticComponent<Omit<FoodsToggleButtonProps, "ref"> & import('react').RefAttributes<unknown>>;
|
|
14
21
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}, "size" | "className" | "style" | "classes" | "color" | "children" | "sx" | "tabIndex" | "onChange" | "onClick" | "disabled" | "value" | "action" | "selected" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "fullWidth"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
1
|
+
import { ToggleButtonProps } from '@mui/material';
|
|
2
|
+
export declare const CustomToggleButton: import('@emotion/styled').StyledComponent<import('@mui/material').ToggleButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLButtonElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLButtonElement> | null | undefined;
|
|
4
|
+
}, "value" | "size" | "className" | "style" | "classes" | "color" | "children" | "sx" | "tabIndex" | "onChange" | "onClick" | "disabled" | "action" | "selected" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "fullWidth"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
6
5
|
type ToggleButtonsPropsWithoutEnforcedKeys = Omit<ToggleButtonProps, "value" | "onClick" | "selected">;
|
|
7
6
|
export type TertiaryToggleButtonProps = ToggleButtonsPropsWithoutEnforcedKeys & {
|
|
8
7
|
choices: string[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ToggleButtonProps } from
|
|
2
|
-
import { ReactNode } from
|
|
3
|
-
export declare const CustomToggleButtonNodeTitle: import(
|
|
4
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import(
|
|
5
|
-
}, "size" | "className" | "style" | "classes" | "color" | "children" | "sx" | "tabIndex" | "onChange" | "onClick" | "disabled" | "
|
|
1
|
+
import { ToggleButtonProps } from '@mui/material';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export declare const CustomToggleButtonNodeTitle: import('@emotion/styled').StyledComponent<import('@mui/material').ToggleButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
4
|
+
ref?: ((instance: HTMLButtonElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLButtonElement> | null | undefined;
|
|
5
|
+
}, "value" | "size" | "className" | "style" | "classes" | "color" | "children" | "sx" | "tabIndex" | "onChange" | "onClick" | "disabled" | "action" | "selected" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "fullWidth"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
6
6
|
type ToggleButtonsPropsWithoutEnforcedKeys = Omit<ToggleButtonProps, "value" | "onClick" | "selected">;
|
|
7
7
|
export type TertiaryToggleButtonPropsNodeTitle = ToggleButtonsPropsWithoutEnforcedKeys & {
|
|
8
8
|
choices: ReactNode[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from './TertiaryToggleButton';
|
|
2
|
+
export * from './TertiaryToggleButtonNodeTitle';
|
|
3
|
+
export * from './FoodsToggleButton';
|
|
4
|
+
export * from './FoodsIconButton';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type ArticleProps = {
|
|
2
|
+
title: string;
|
|
3
|
+
description: string;
|
|
4
|
+
imageSrc: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
content?: string;
|
|
7
|
+
isMain?: boolean;
|
|
8
|
+
readMoreText?: string;
|
|
9
|
+
isFirst?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const Article: (props: ArticleProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface ArticleContentProps {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
article: {
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
imageSrc: string;
|
|
8
|
+
content: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare const ArticleContent: ({ isOpen, onClose, article }: ArticleContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SxProps } from '@mui/system';
|
|
2
|
+
import { ArticleProps } from './Article.tsx';
|
|
3
|
+
type ArticlesBoxProps = {
|
|
4
|
+
articles: ArticleProps[];
|
|
5
|
+
sxProps?: SxProps;
|
|
6
|
+
};
|
|
7
|
+
export declare const ArticlesBox: (props: ArticlesBoxProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SxProps } from '@mui/system';
|
|
2
|
+
import { FlexibleString } from '../../../innerComponents/FlexibleTypography';
|
|
3
|
+
import { FlexibleButtonType } from '../../../innerComponents/FlexibleButton';
|
|
4
|
+
export type HeroBlockProps = {
|
|
5
|
+
title: FlexibleString;
|
|
6
|
+
subtitle?: FlexibleString;
|
|
7
|
+
description?: JSX.Element;
|
|
8
|
+
callToAction?: FlexibleButtonType;
|
|
9
|
+
imageUrl?: string;
|
|
10
|
+
sxProps?: SxProps;
|
|
11
|
+
};
|
|
12
|
+
export declare const HeroBlock: (props: HeroBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './HeroBlock';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type IndicatorBlockProps = {
|
|
2
|
+
title: string;
|
|
3
|
+
children: JSX.Element | JSX.Element[];
|
|
4
|
+
objectives: {
|
|
5
|
+
objective: string;
|
|
6
|
+
component: JSX.Element;
|
|
7
|
+
}[];
|
|
8
|
+
tooltipMessage?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const IndicatorBlock: (props: IndicatorBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Orientation } from '@mui/material';
|
|
2
|
+
import { Variant } from './ValueSwitcher/ValueSwitcher';
|
|
3
|
+
import { OptionsPopoverOption } from '../../../Popover';
|
|
4
|
+
export type HeaderOptions = {
|
|
5
|
+
id: number;
|
|
6
|
+
label: string;
|
|
7
|
+
group: string;
|
|
8
|
+
onClick?: OptionsPopoverOption["onClick"];
|
|
9
|
+
};
|
|
10
|
+
export type ScoreCardHeaderProps = {
|
|
11
|
+
selectedItemId?: number | null;
|
|
12
|
+
options: HeaderOptions[];
|
|
13
|
+
information?: string;
|
|
14
|
+
variant?: Variant;
|
|
15
|
+
orientation?: Orientation;
|
|
16
|
+
};
|
|
17
|
+
export declare const ScoreCardHeader: (props: ScoreCardHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SxProps } from '@mui/material';
|
|
2
|
+
type Anchor = HTMLElement | null;
|
|
3
|
+
type ValuePopoverProps = {
|
|
4
|
+
anchor: Anchor;
|
|
5
|
+
setAnchor: (elementToAttachTo: Anchor) => void;
|
|
6
|
+
children: JSX.Element | undefined;
|
|
7
|
+
paperOverrides: SxProps | undefined;
|
|
8
|
+
};
|
|
9
|
+
export declare const ValuePopover: (props: ValuePopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OptionsPopoverSection } from '../../../../Popover';
|
|
2
|
+
import { HeaderOptions } from '../ScoreCardHeader';
|
|
3
|
+
export type Orientation = "horizontal" | "vertical";
|
|
4
|
+
export type Variant = "primary" | "secondary";
|
|
5
|
+
export type OptionsPopoverType = {
|
|
6
|
+
content: OptionsPopoverSection[];
|
|
7
|
+
onChange: (optionId: number) => void;
|
|
8
|
+
};
|
|
9
|
+
export type ValueSwitcherProps = {
|
|
10
|
+
selectedItem: HeaderOptions | null;
|
|
11
|
+
setSelectedItem: (newItemId: number) => void;
|
|
12
|
+
optionsProps: OptionsPopoverType;
|
|
13
|
+
variant?: Variant;
|
|
14
|
+
orientation?: Orientation;
|
|
15
|
+
};
|
|
16
|
+
export declare const ValueSwitcher: (props: ValueSwitcherProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ScoreCardHeaderProps } from './Header/ScoreCardHeader';
|
|
2
|
+
export type ScoreCardProps = {
|
|
3
|
+
header: ScoreCardHeaderProps;
|
|
4
|
+
moreDetailAction?: () => void;
|
|
5
|
+
soonAvailableText?: string;
|
|
6
|
+
disableFooter?: boolean;
|
|
7
|
+
children?: JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
export declare const ScoreCard: (props: ScoreCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type SeeMoreCardProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
seeMoreText: string;
|
|
5
|
+
seeLessText: string;
|
|
6
|
+
hidden?: ReactNode;
|
|
7
|
+
defaultVisible?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const SeeMoreCard: (props: SeeMoreCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { FlexibleString } from '../../../../innerComponents/FlexibleTypography';
|
|
2
|
+
import { Improvement } from '../../../ComparisonBlock/ComparisonBlock';
|
|
3
|
+
import { StepType } from '../components/Step';
|
|
4
|
+
export type TrajectoryPosition = "horizontal" | "vertical";
|
|
5
|
+
export type TrajectorySteps = {
|
|
6
|
+
start: StepType;
|
|
7
|
+
endWithoutAction?: StepType;
|
|
8
|
+
endWithAction: StepType;
|
|
9
|
+
};
|
|
10
|
+
export type OrientedTrajectoryCardsProps = {
|
|
11
|
+
completionPercentage: number | null;
|
|
12
|
+
steps: TrajectorySteps;
|
|
13
|
+
unit?: string;
|
|
14
|
+
textOptions: TrajectoryStepsText;
|
|
15
|
+
improvement: Improvement;
|
|
16
|
+
valueFormatterFn?: (value: number) => string | number;
|
|
17
|
+
};
|
|
18
|
+
export interface ComparisonProps {
|
|
19
|
+
currentValue: number | null;
|
|
20
|
+
targetValue: number | null;
|
|
21
|
+
orientation?: TrajectoryPosition;
|
|
22
|
+
improvement: Improvement;
|
|
23
|
+
}
|
|
24
|
+
export interface TargetComparisonProps {
|
|
25
|
+
currentValue: number | null;
|
|
26
|
+
targetValue: number | null;
|
|
27
|
+
label?: FlexibleString;
|
|
28
|
+
noObjectiveLabel?: string;
|
|
29
|
+
orientation?: TrajectoryPosition;
|
|
30
|
+
improvement: Improvement;
|
|
31
|
+
outsideContainer?: boolean;
|
|
32
|
+
completionPercent: number | null;
|
|
33
|
+
}
|
|
34
|
+
export type TrajectoryStepsText = {
|
|
35
|
+
startingStep: FlexibleString;
|
|
36
|
+
targetWithoutPlanStep: FlexibleString;
|
|
37
|
+
targetWithPlanStep: FlexibleString;
|
|
38
|
+
goalStep: FlexibleString;
|
|
39
|
+
noGoalLabel?: string;
|
|
40
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OrientedTrajectoryCardsProps, TrajectoryPosition } from './Blocks/types.ts';
|
|
2
|
+
export type TrajectoryCardSteps = {
|
|
3
|
+
start: number | null;
|
|
4
|
+
endWithoutAction?: number | null;
|
|
5
|
+
endWithAction: number | null;
|
|
6
|
+
};
|
|
7
|
+
export type TrajectoryCardsProps = Omit<OrientedTrajectoryCardsProps, "completionPercentage" | "steps"> & {
|
|
8
|
+
steps: TrajectoryCardSteps;
|
|
9
|
+
position: TrajectoryPosition;
|
|
10
|
+
goal?: number | null;
|
|
11
|
+
valueFormatterFn?: (value: number) => string | number;
|
|
12
|
+
};
|
|
13
|
+
export declare const TrajectoryCards: (props: TrajectoryCardsProps) => import("react/jsx-runtime").JSX.Element | undefined;
|