@orangesk/orange-design-system 2.0.0-beta.36 → 2.0.0-beta.38
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 +8 -2
- package/build/components/Icon/style.css +1 -1
- package/build/components/Icon/style.css.map +1 -1
- package/build/components/Loader/style.css +1 -1
- package/build/components/Loader/style.css.map +1 -1
- package/build/components/PromoBanner/style.css +1 -1
- package/build/components/PromoBanner/style.css.map +1 -1
- package/build/components/Table/style.css +1 -1
- package/build/components/Table/style.css.map +1 -1
- package/build/components/index.js +1 -1
- package/build/components/index.js.map +1 -1
- package/build/components/tsconfig.tsbuildinfo +1 -1
- package/build/components/types/index.d.ts +737 -729
- package/build/components/types/src/components/Accordion/Accordion.static.d.ts +2 -0
- package/build/components/types/src/components/Bar/index.d.ts +1 -1
- package/build/components/types/src/components/BlockAction/Context.d.ts +1 -1
- package/build/components/types/src/components/BlockAction/index.d.ts +2 -4
- package/build/components/types/src/components/Button/index.d.ts +1 -1
- package/build/components/types/src/components/Card/index.d.ts +2 -2
- package/build/components/types/src/components/Carousel/Carousel.d.ts +1 -1
- package/build/components/types/src/components/Carousel/CarouselItem.d.ts +1 -1
- package/build/components/types/src/components/CarouselHero/CarouselHero.d.ts +1 -1
- package/build/components/types/src/components/CarouselHero/CarouselHero.static.d.ts +1 -1
- package/build/components/types/src/components/CarouselHero/CarouselHeroItem.d.ts +1 -1
- package/build/components/types/src/components/CarouselHero/index.d.ts +1 -1
- package/build/components/types/src/components/CartTable/CartTable.d.ts +1 -1
- package/build/components/types/src/components/CartTable/data.d.ts +1 -1
- package/build/components/types/src/components/Code/Code.d.ts +1 -1
- package/build/components/types/src/components/Divider/Divider.d.ts +1 -1
- package/build/components/types/src/components/DocumentationSidebar/index.d.ts +1 -1
- package/build/components/types/src/components/Dropdown/index.d.ts +1 -1
- package/build/components/types/src/components/Forms/Autocomplete/Autocomplete.d.ts +3 -1
- package/build/components/types/src/components/Forms/Autocomplete/Autocomplete.static.d.ts +1 -0
- package/build/components/types/src/components/Forms/Group/Group.d.ts +1 -1
- package/build/components/types/src/components/Forms/Group/Item.d.ts +1 -1
- package/build/components/types/src/components/Forms/index.d.ts +1 -1
- package/build/components/types/src/components/Grid/GridCol.d.ts +3 -3
- package/build/components/types/src/components/Icon/iconSearchTags.d.ts +1 -0
- package/build/components/types/src/components/Icon/index.d.ts +1 -2
- package/build/components/types/src/components/IconList/Item.d.ts +1 -1
- package/build/components/types/src/components/List/ClickableControl.d.ts +1 -1
- package/build/components/types/src/components/List/List.d.ts +3 -3
- package/build/components/types/src/components/List/ListItem.d.ts +1 -1
- package/build/components/types/src/components/Loader/LoaderFullscreen.d.ts +7 -0
- package/build/components/types/src/components/Loader/index.d.ts +1 -0
- package/build/components/types/src/components/Megamenu/index.d.ts +1 -1
- package/build/components/types/src/components/Modal/ModalCloseButton.d.ts +1 -1
- package/build/components/types/src/components/Modal/index.d.ts +2 -2
- package/build/components/types/src/components/Pagination/helpers.d.ts +1 -1
- package/build/components/types/src/components/Pill/Pill.d.ts +1 -1
- package/build/components/types/src/components/Preview/Preview.d.ts +1 -1
- package/build/components/types/src/components/Preview/PreviewGenerator.d.ts +1 -1
- package/build/components/types/src/components/PromotionCard/PromotionCardContent.d.ts +1 -1
- package/build/components/types/src/components/PromotionCard/PromotionCardImageWrapper.d.ts +1 -1
- package/build/components/types/src/components/PromotionCard/PromotionCardTitle.d.ts +1 -1
- package/build/components/types/src/components/Sticker/Sticker.d.ts +3 -3
- package/build/components/types/src/components/Table/Table.d.ts +1 -1
- package/build/components/types/src/components/Table/index.d.ts +1 -1
- package/build/components/types/src/components/Tabs/index.d.ts +2 -2
- package/build/components/types/src/components/Tag/index.d.ts +1 -1
- package/build/components/types/src/components/Testimonial/Testimonial.d.ts +2 -2
- package/build/components/types/src/components/Tooltip/Tooltip.static.d.ts +6 -2
- package/build/components/types/src/components/Tooltip/index.d.ts +1 -1
- package/build/components/types/src/components/index.d.ts +21 -21
- package/build/components/types/src/scripts/index.d.ts +5 -5
- package/build/components/types/src/scripts/modules/SpacePreview/index.d.ts +1 -1
- package/build/components/types/src/utils/hooks.d.ts +1 -1
- package/build/components/types/src/utils/index.d.ts +2 -2
- package/build/lib/base.css +1 -1
- package/build/lib/base.css.map +1 -1
- package/build/lib/components.css +1 -1
- package/build/lib/components.css.map +1 -1
- package/build/lib/footer.js +1 -1
- package/build/lib/footer.js.map +1 -1
- package/build/lib/megamenu.js +1 -1
- package/build/lib/megamenu.js.map +1 -1
- package/build/lib/scripts.js +1 -1
- package/build/lib/scripts.js.map +1 -1
- package/build/lib/style.css +1 -1
- package/build/lib/style.css.map +1 -1
- package/build/lib/tsconfig.tsbuildinfo +1 -1
- package/build/sprite.svg +1 -1
- package/package.json +39 -30
- package/src/assets/icons/discount-price.svg +4 -0
- package/src/components/Accordion/Accordion.static.ts +44 -1
- package/src/components/Accordion/Accordion.tsx +2 -3
- package/src/components/Accordion/AccordionHeader.tsx +1 -1
- package/src/components/Accordion/AccordionItem.tsx +2 -1
- package/src/components/Accordion/HeadingContext.tsx +1 -1
- package/src/components/Accordion/tests/Accordion.unit.test.jsx +112 -4
- package/src/components/Alert/Alert.tsx +3 -4
- package/src/components/Alert/tests/Alert.conformance.test.jsx +2 -3
- package/src/components/Alert/tests/Alert.test.jsx +1 -1
- package/src/components/Alert/tests/Alert.visual.test.jsx +1 -2
- package/src/components/AnchorNavigation/AnchorNavigation.tsx +3 -3
- package/src/components/AnchorNavigation/tests/AnchorNavigation.conformance.test.jsx +1 -1
- package/src/components/Bar/Bar.tsx +1 -1
- package/src/components/Bar/BarBreak.tsx +1 -1
- package/src/components/Bar/BarItem.tsx +1 -1
- package/src/components/Bar/index.ts +1 -1
- package/src/components/Bar/tests/Bar.conformance.test.jsx +1 -1
- package/src/components/BlockAction/BlockAction.tsx +1 -1
- package/src/components/BlockAction/BlockActionControl.tsx +2 -3
- package/src/components/BlockAction/BlockActionIndicator.tsx +2 -3
- package/src/components/BlockAction/CloneElementWithClassName.tsx +1 -1
- package/src/components/BlockAction/Context.tsx +1 -1
- package/src/components/BlockAction/index.tsx +3 -8
- package/src/components/BlockAction/styles/config.scss +6 -6
- package/src/components/BlockAction/tests/BlockActionControl.unit.test.jsx +1 -1
- package/src/components/BodyBanner/BodyBanner.tsx +2 -2
- package/src/components/BodyBanner/tests/BodyBanner.conformance.test.jsx +1 -1
- package/src/components/Breadcrumbs/BreadcrumbItem.tsx +1 -1
- package/src/components/Breadcrumbs/tests/Breadcrumbs.conformance.test.jsx +1 -1
- package/src/components/Button/Button.tsx +1 -1
- package/src/components/Button/IconButton.tsx +7 -3
- package/src/components/Button/index.tsx +1 -3
- package/src/components/Button/tests/Button.conformance.test.jsx +1 -2
- package/src/components/Button/tests/Button.test.jsx +0 -1
- package/src/components/Button/tests/IconButton.unit.test.jsx +0 -1
- package/src/components/Buttons/tests/Buttons.conformance.test.jsx +1 -1
- package/src/components/Card/Card.tsx +1 -1
- package/src/components/Card/CardProductHeader.tsx +1 -1
- package/src/components/Card/CardSection.tsx +1 -1
- package/src/components/Card/index.ts +2 -2
- package/src/components/Card/tests/Card.conformance.test.jsx +2 -2
- package/src/components/Card/tests/CardProductHeader.unit.test.jsx +1 -1
- package/src/components/Carousel/Carousel.static.ts +15 -15
- package/src/components/Carousel/Carousel.tsx +9 -11
- package/src/components/Carousel/CarouselItem.tsx +1 -1
- package/src/components/Carousel/tests/Carousel.conformance.test.jsx +2 -4
- package/src/components/CarouselHero/CarouselHero.static.ts +15 -15
- package/src/components/CarouselHero/CarouselHero.tsx +12 -13
- package/src/components/CarouselHero/CarouselHeroItem.tsx +2 -2
- package/src/components/CarouselHero/index.ts +1 -1
- package/src/components/CarouselHero/tests/CarouselHeroItem.conformance.test.jsx +1 -1
- package/src/components/CarouselPromotions/CarouselPromotions.static.ts +10 -10
- package/src/components/CarouselPromotions/CarouselPromotions.tsx +6 -7
- package/src/components/CarouselPromotions/CarouselPromotionsItem.tsx +3 -3
- package/src/components/CarouselPromotions/tests/CarouselPromotions.conformance.test.jsx +1 -3
- package/src/components/CarouselPromotions/tests/CarouselPromotions.unit.test.jsx +1 -2
- package/src/components/CartTable/CartTable.tsx +3 -4
- package/src/components/CartTable/FooterPriceColumn.tsx +1 -1
- package/src/components/CartTable/Price.tsx +1 -1
- package/src/components/CartTable/data.ts +1 -1
- package/src/components/CartTable/generateFooter.tsx +1 -1
- package/src/components/CartTable/generateRow.tsx +6 -8
- package/src/components/CartTable/styles/mixins.scss +46 -49
- package/src/components/CartTable/tests/CartTable.conformance.test.jsx +1 -1
- package/src/components/Code/Code.tsx +1 -1
- package/src/components/Container/Container.tsx +1 -1
- package/src/components/Container/styles/config.scss +2 -2
- package/src/components/Container/styles/mixins.scss +4 -4
- package/src/components/Container/tests/Container.unit.test.jsx +3 -2
- package/src/components/Controls/Controls.tsx +1 -1
- package/src/components/Controls/tests/Controls.test.jsx +2 -2
- package/src/components/Cover/Cover.tsx +1 -1
- package/src/components/Cover/index.ts +1 -0
- package/src/components/Cover/tests/Cover.conformance.test.jsx +8 -9
- package/src/components/Cover/tests/Cover.unit.test.jsx +0 -1
- package/src/components/Divider/Divider.tsx +1 -1
- package/src/components/Divider/tests/Divider.conformance.test.jsx +1 -1
- package/src/components/DocumentationSidebar/DocumentationSidebar.tsx +7 -7
- package/src/components/DocumentationSidebar/index.ts +2 -2
- package/src/components/Dropdown/Dropdown.static.ts +1 -1
- package/src/components/Dropdown/Dropdown.tsx +3 -5
- package/src/components/Dropdown/DropdownDivider.tsx +1 -1
- package/src/components/Dropdown/DropdownItem.tsx +1 -1
- package/src/components/Dropdown/DropdownToggleButton.tsx +1 -1
- package/src/components/Dropdown/index.ts +1 -1
- package/src/components/Dropdown/tests/Dropdown.conformance.test.jsx +2 -2
- package/src/components/Dropdown/tests/Dropdown.unit.test.jsx +1 -2
- package/src/components/Expander/Expander.tsx +1 -1
- package/src/components/Expander/tests/Expander.conformance.test.jsx +2 -4
- package/src/components/Expander/tests/Expander.unit.test.jsx +2 -4
- package/src/components/FeatureAccordion/FeatureAccordion.tsx +2 -2
- package/src/components/FeatureAccordion/FeatureAccordionItem.tsx +2 -1
- package/src/components/FeatureAccordion/tests/FeatureAccordion.conformance.test.jsx +1 -1
- package/src/components/FeatureAccordion/tests/FeatureAccordion.unit.test.jsx +2 -3
- package/src/components/Footer/Footer.tsx +4 -5
- package/src/components/Footer/static.ts +2 -2
- package/src/components/Footer/tests/Footer.unit.test.jsx +1 -1
- package/src/components/Forms/Autocomplete/Autocomplete.static.ts +1 -0
- package/src/components/Forms/Autocomplete/Autocomplete.tsx +8 -3
- package/src/components/Forms/Autocomplete/styles/config.scss +3 -3
- package/src/components/Forms/Checkbox/Checkbox.tsx +1 -1
- package/src/components/Forms/Checkbox/styles/mixins.scss +2 -2
- package/src/components/Forms/DatePicker/DatePicker.tsx +1 -2
- package/src/components/Forms/Field/Control.tsx +3 -3
- package/src/components/Forms/Field/Description.tsx +1 -1
- package/src/components/Forms/Field/Field.tsx +4 -4
- package/src/components/Forms/Field/Label.tsx +1 -1
- package/src/components/Forms/Field/Messages.tsx +2 -2
- package/src/components/Forms/Field/tests/Autocomplete.Field.conformance.test.jsx +1 -1
- package/src/components/Forms/Field/tests/Checkbox.Field.conformance.test.jsx +1 -1
- package/src/components/Forms/Field/tests/File.Field.conformance.test.jsx +1 -1
- package/src/components/Forms/Field/tests/Group.Field.conformance.test.jsx +1 -1
- package/src/components/Forms/Field/tests/Radio.Field.conformance.test.jsx +1 -1
- package/src/components/Forms/Field/tests/Rangeslider.Field.test.jsx +1 -1
- package/src/components/Forms/Field/tests/Select.Field.conformance.test.jsx +1 -1
- package/src/components/Forms/Field/tests/Text.Field.conformance.test.jsx +1 -1
- package/src/components/Forms/Field/tests/Textarea.Field.conformance.test.jsx +1 -1
- package/src/components/Forms/Field/tests/Tooltip.unit.test.jsx +1 -2
- package/src/components/Forms/Fieldset/Fieldset.tsx +1 -1
- package/src/components/Forms/File/File.tsx +4 -7
- package/src/components/Forms/File/styles/config.scss +5 -5
- package/src/components/Forms/Group/Group.tsx +2 -3
- package/src/components/Forms/Group/Item.tsx +1 -1
- package/src/components/Forms/Hint/Hint.tsx +1 -1
- package/src/components/Forms/Hint/styles/config.scss +1 -1
- package/src/components/Forms/Hint/styles/mixins.scss +2 -2
- package/src/components/Forms/InputStepper/InputStepper.tsx +1 -1
- package/src/components/Forms/Label/Label.tsx +1 -1
- package/src/components/Forms/Label/styles/mixins.scss +2 -2
- package/src/components/Forms/Message/Message.tsx +9 -5
- package/src/components/Forms/Radio/Radio.tsx +1 -1
- package/src/components/Forms/Radio/styles/mixins.scss +2 -2
- package/src/components/Forms/RangeSlider/RangeSlider.tsx +1 -1
- package/src/components/Forms/Select/Select.tsx +1 -1
- package/src/components/Forms/Select/styles/mixins.scss +6 -6
- package/src/components/Forms/TextArea/TextArea.tsx +1 -1
- package/src/components/Forms/TextInput/TextInput.tsx +3 -5
- package/src/components/Forms/TextInput/styles/mixins.scss +10 -10
- package/src/components/Forms/index.ts +1 -1
- package/src/components/Gauge/Gauge.tsx +1 -1
- package/src/components/Gauge/GaugeMaker.tsx +3 -3
- package/src/components/Gauge/tests/Gauge.unit.test.jsx +0 -1
- package/src/components/Grid/Grid.tsx +1 -1
- package/src/components/Grid/GridCol.tsx +21 -10
- package/src/components/Grid/tests/Grid.unit.test.jsx +0 -1
- package/src/components/Grid/tests/GridCol.unit.test.jsx +0 -1
- package/src/components/Hero/Hero.tsx +1 -1
- package/src/components/Hero/styles/config.scss +0 -1
- package/src/components/Hero/tests/Hero.conformance.test.jsx +1 -2
- package/src/components/Hero/tests/Hero.unit.test.jsx +0 -1
- package/src/components/Hero/tests/data.js +26 -26
- package/src/components/Icon/Icon.tsx +1 -1
- package/src/components/Icon/IconSearch.jsx +4 -4
- package/src/components/Icon/PictogramSearch.jsx +3 -14
- package/src/components/Icon/iconSearchTags.ts +1 -0
- package/src/components/Icon/index.ts +1 -2
- package/src/components/Icon/styles/export/size.scss +2 -2
- package/src/components/Icon/styles/mixins.scss +3 -3
- package/src/components/Icon/styles/style.scss +30 -0
- package/src/components/Icon/tests/Icon.conformance.test.jsx +1 -2
- package/src/components/Icon/tests/Icon.unit.test.jsx +1 -3
- package/src/components/Icon/tests/Pictogram.unit.test.jsx +1 -2
- package/src/components/IconList/IconList.tsx +1 -1
- package/src/components/IconList/Item.tsx +15 -11
- package/src/components/IconList/styles/config.scss +2 -2
- package/src/components/IconList/styles/style.scss +1 -1
- package/src/components/IconList/tests/IconList.conformance.test.jsx +1 -2
- package/src/components/IconList/tests/IconList.unit.test.jsx +29 -26
- package/src/components/Image/Image.tsx +1 -1
- package/src/components/Image/tests/Image.conformance.test.jsx +1 -1
- package/src/components/Image/tests/Image.unit.test.jsx +0 -1
- package/src/components/Link/Link.tsx +1 -1
- package/src/components/Link/tests/Link.conformance.test.jsx +1 -1
- package/src/components/Link/tests/Link.unit.test.jsx +1 -1
- package/src/components/List/ClickableControl.tsx +12 -12
- package/src/components/List/List.tsx +13 -13
- package/src/components/List/ListItem.tsx +11 -11
- package/src/components/List/tests/ClickableControl.unit.test.jsx +0 -1
- package/src/components/List/tests/List.conformance.test.jsx +16 -17
- package/src/components/List/tests/ListItem.unit.test.jsx +46 -47
- package/src/components/Loader/Loader.tsx +1 -1
- package/src/components/Loader/LoaderFullscreen.tsx +32 -0
- package/src/components/Loader/index.ts +1 -0
- package/src/components/Loader/styles/config.scss +5 -5
- package/src/components/Loader/styles/mixins.scss +24 -0
- package/src/components/Loader/styles/style.scss +9 -0
- package/src/components/Loader/tests/Loader.conformance.test.jsx +1 -1
- package/src/components/Loader/tests/LoaderFullscreen.conformance.test.jsx +21 -0
- package/src/components/Loader/tests/LoaderFullscreen.unit.test.jsx +41 -0
- package/src/components/Loader/tests/test.scss +1 -1
- package/src/components/Megamenu/MegaMenuIcon.tsx +1 -1
- package/src/components/Megamenu/Megamenu.static.ts +5 -5
- package/src/components/Megamenu/Megamenu.tsx +28 -29
- package/src/components/Megamenu/MegamenuBlog.tsx +17 -19
- package/src/components/Megamenu/MegamenuSearchContent.tsx +2 -2
- package/src/components/Megamenu/MyOrangeMobilePanel.tsx +11 -12
- package/src/components/Megamenu/index.ts +1 -1
- package/src/components/Megamenu/static.ts +2 -2
- package/src/components/Modal/Modal.tsx +3 -4
- package/src/components/Modal/ModalBody.tsx +1 -1
- package/src/components/Modal/ModalCloseButton.tsx +1 -1
- package/src/components/Modal/ModalProductFooter.tsx +1 -1
- package/src/components/Modal/ModalProductHeader.tsx +1 -1
- package/src/components/Modal/index.ts +2 -2
- package/src/components/Modal/tests/Modal.conformance.test.jsx +2 -3
- package/src/components/Modal/tests/Modal.unit.test.jsx +0 -1
- package/src/components/Modal/tests/ModalProductHeader.unit.test.jsx +0 -1
- package/src/components/Modal/tests/ModalTitle.unit.test.jsx +0 -1
- package/src/components/Pagination/Pagination.tsx +2 -3
- package/src/components/Pagination/PaginationItem.tsx +1 -1
- package/src/components/Pagination/Separator.tsx +1 -1
- package/src/components/Pagination/helpers.ts +6 -1
- package/src/components/Pagination/tests/Item.unit.test.jsx +38 -39
- package/src/components/Pagination/tests/Pagination.conformance.test.jsx +7 -8
- package/src/components/Pagination/tests/Pagination.unit.test.jsx +39 -40
- package/src/components/Pagination/tests/Separator.unit.test.jsx +10 -11
- package/src/components/Pill/Pill.tsx +1 -1
- package/src/components/Pill/tests/Pill.conformance.test.jsx +1 -1
- package/src/components/Preview/CodeExample.tsx +6 -9
- package/src/components/Preview/Preview.tsx +2 -1
- package/src/components/Preview/PreviewGenerator.tsx +8 -8
- package/src/components/Preview/PreviewTitleBar.tsx +1 -1
- package/src/components/Preview/index.tsx +1 -1
- package/src/components/Progress/Progress.tsx +1 -1
- package/src/components/Progress/index.ts +1 -1
- package/src/components/Progress/tests/Progress.conformance.test.jsx +6 -7
- package/src/components/Progress/tests/Progress.unit.test.jsx +42 -39
- package/src/components/PromoBanner/PromoBanner.tsx +1 -1
- package/src/components/PromoBanner/styles/style.scss +2 -2
- package/src/components/PromoBanner/tests/PromoBanner.conformance.test.jsx +1 -2
- package/src/components/PromoBanner/tests/PromoBanner.unit.test.jsx +0 -1
- package/src/components/PromotionCard/PromotionCard.tsx +1 -1
- package/src/components/PromotionCard/PromotionCardContent.tsx +8 -8
- package/src/components/PromotionCard/PromotionCardImageWrapper.tsx +7 -9
- package/src/components/PromotionCard/PromotionCardSection.tsx +1 -1
- package/src/components/PromotionCard/PromotionCardTitle.tsx +11 -11
- package/src/components/PromotionCard/constants.ts +2 -2
- package/src/components/PromotionCard/styles/config.scss +2 -4
- package/src/components/PromotionCard/tests/PromotionCard.conformance.test.jsx +1 -2
- package/src/components/PromotionCard/tests/PromotionCard.unit.test.jsx +0 -1
- package/src/components/Section/Section.tsx +1 -1
- package/src/components/Section/tests/Section.conformance.test.jsx +1 -2
- package/src/components/Section/tests/Section.unit.test.jsx +0 -1
- package/src/components/Skeleton/Skeleton.tsx +1 -1
- package/src/components/Skeleton/styles/mixins.scss +3 -3
- package/src/components/Skeleton/tests/Skeleton.conformance.test.jsx +1 -1
- package/src/components/SkipLink/SkipLink.tsx +1 -1
- package/src/components/SkipLink/tests/SkipLink.unit.test.jsx +0 -4
- package/src/components/SocialButton/SocialButton.tsx +1 -1
- package/src/components/SocialButton/tests/SocialButton.unit.test.jsx +1 -1
- package/src/components/Stepbar/Stepbar.tsx +1 -1
- package/src/components/Stepbar/tests/Stepbar.conformance.test.jsx +1 -1
- package/src/components/Sticker/Sticker.tsx +14 -8
- package/src/components/Sticker/index.ts +1 -0
- package/src/components/Sticker/styles/mixins.scss +2 -2
- package/src/components/Sticker/tests/Sticker.conformance.test.jsx +5 -6
- package/src/components/Sticker/tests/Sticker.unit.test.jsx +16 -19
- package/src/components/Table/Header.tsx +1 -2
- package/src/components/Table/Row.tsx +1 -2
- package/src/components/Table/Rows.tsx +1 -2
- package/src/components/Table/Table.tsx +4 -5
- package/src/components/Table/docsData.ts +0 -1
- package/src/components/Table/index.ts +1 -1
- package/src/components/Table/styles/mixins.scss +5 -0
- package/src/components/Table/tests/Footer.unit.test.jsx +1 -2
- package/src/components/Table/tests/Header.unit.test.jsx +1 -2
- package/src/components/Table/tests/Row.unit.test.jsx +1 -2
- package/src/components/Table/tests/Rows.unit.test.jsx +1 -2
- package/src/components/Table/tests/Table.conformance.test.jsx +6 -6
- package/src/components/Table/tests/Table.unit.test.jsx +1 -1
- package/src/components/Tabs/Tabs.tsx +2 -2
- package/src/components/Tabs/index.ts +2 -2
- package/src/components/Tabs/tests/Tabs.unit.test.jsx +2 -3
- package/src/components/Tag/Tag.tsx +1 -1
- package/src/components/Tag/TagButton.tsx +1 -1
- package/src/components/Tag/index.ts +1 -1
- package/src/components/Tag/styles/mixins.scss +1 -1
- package/src/components/Tag/tests/Tag.conformance.test.jsx +2 -3
- package/src/components/Tag/tests/Tag.unit.test.jsx +1 -3
- package/src/components/Tag/tests/TagButton.conformance.test.jsx +1 -1
- package/src/components/Tag/tests/TagButton.unit.test.jsx +1 -1
- package/src/components/Testimonial/Testimonial.tsx +15 -15
- package/src/components/Testimonial/styles/config.scss +25 -22
- package/src/components/Testimonial/styles/mixins.scss +36 -32
- package/src/components/Testimonial/tests/Testimonial.conformance.test.jsx +5 -6
- package/src/components/Testimonial/tests/Testimonial.unit.test.jsx +22 -23
- package/src/components/Tile/Tile.tsx +2 -3
- package/src/components/Tile/tests/Tile.conformance.test.jsx +1 -1
- package/src/components/Tooltip/InfoTooltip.tsx +1 -1
- package/src/components/Tooltip/Tooltip.static.ts +100 -66
- package/src/components/Tooltip/Tooltip.tsx +2 -3
- package/src/components/Tooltip/index.ts +1 -1
- package/src/components/Tooltip/styles/mixins.scss +14 -13
- package/src/components/Tooltip/tests/Tooltip.conformance.test.jsx +1 -1
- package/src/components/Tooltip/tests/Tooltip.unit.test.jsx +43 -34
- package/src/components/index.ts +41 -40
- package/src/styles/base/globals.scss +17 -1
- package/src/styles/export/breakpoint.scss +1 -1
- package/src/styles/export/breakpoint.ts +7 -7
- package/src/styles/export/space.scss +1 -1
- package/src/styles/tokens/breakpoint.scss +64 -49
- package/src/styles/tokens/space.scss +9 -9
- package/src/styles/tools/generate.scss +6 -6
- package/src/styles/tools/layout.scss +3 -3
- package/src/styles/tools/map.scss +2 -2
- package/src/styles/tools/text.scss +1 -1
- package/src/styles/utilities/index.scss +7 -7
- package/build/search-index.json +0 -426
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { axe } from 'vitest-axe';
|
|
1
|
+
import { render } from "@testing-library/react";
|
|
2
|
+
import { axe } from "vitest-axe";
|
|
4
3
|
|
|
5
|
-
import { List, ListItem } from
|
|
4
|
+
import { List, ListItem } from "../";
|
|
6
5
|
|
|
7
6
|
const items = [
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
"Cras justo odio, dapibus ac facilisis in, egestas eget quam.",
|
|
8
|
+
"Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
9
|
+
"Praesent commodo cursus magna, vel scelerisque nisl consectetur et.",
|
|
11
10
|
];
|
|
12
11
|
|
|
13
12
|
const defaultExample = (
|
|
14
13
|
<List>
|
|
15
|
-
{items.map(item => (
|
|
14
|
+
{items.map((item) => (
|
|
16
15
|
<ListItem key={item}>{item}</ListItem>
|
|
17
16
|
))}
|
|
18
17
|
</List>
|
|
@@ -20,8 +19,8 @@ const defaultExample = (
|
|
|
20
19
|
|
|
21
20
|
const clickableAnchor = (
|
|
22
21
|
<List>
|
|
23
|
-
{items.map(item => (
|
|
24
|
-
<ListItem key={item} controlProps={{ href:
|
|
22
|
+
{items.map((item) => (
|
|
23
|
+
<ListItem key={item} controlProps={{ href: "#" }}>
|
|
25
24
|
{item}
|
|
26
25
|
</ListItem>
|
|
27
26
|
))}
|
|
@@ -30,7 +29,7 @@ const clickableAnchor = (
|
|
|
30
29
|
|
|
31
30
|
const clickableButton = (
|
|
32
31
|
<List>
|
|
33
|
-
{items.map(item => (
|
|
32
|
+
{items.map((item) => (
|
|
34
33
|
<ListItem key={item} controlProps={{}}>
|
|
35
34
|
{item}
|
|
36
35
|
</ListItem>
|
|
@@ -38,32 +37,32 @@ const clickableButton = (
|
|
|
38
37
|
</List>
|
|
39
38
|
);
|
|
40
39
|
|
|
41
|
-
it(
|
|
40
|
+
it("default is valid html", () => {
|
|
42
41
|
const { container } = render(defaultExample);
|
|
43
42
|
expect(container).toHTMLValidate();
|
|
44
43
|
});
|
|
45
44
|
|
|
46
|
-
it(
|
|
45
|
+
it("default is accessible", async () => {
|
|
47
46
|
const { container } = render(defaultExample);
|
|
48
47
|
expect(await axe(container)).toHaveNoViolations();
|
|
49
48
|
});
|
|
50
49
|
|
|
51
|
-
it(
|
|
50
|
+
it("clickableAnchor is valid html", () => {
|
|
52
51
|
const { container } = render(clickableAnchor);
|
|
53
52
|
expect(container).toHTMLValidate();
|
|
54
53
|
});
|
|
55
54
|
|
|
56
|
-
it(
|
|
55
|
+
it("clickableAnchor is accessible", async () => {
|
|
57
56
|
const { container } = render(clickableAnchor);
|
|
58
57
|
expect(await axe(container)).toHaveNoViolations();
|
|
59
58
|
});
|
|
60
59
|
|
|
61
|
-
it(
|
|
60
|
+
it("clickableButton is valid html", () => {
|
|
62
61
|
const { container } = render(clickableButton);
|
|
63
62
|
expect(container).toHTMLValidate();
|
|
64
63
|
});
|
|
65
64
|
|
|
66
|
-
it(
|
|
65
|
+
it("clickableButton is accessible", async () => {
|
|
67
66
|
const { container } = render(clickableButton);
|
|
68
67
|
expect(await axe(container)).toHaveNoViolations();
|
|
69
68
|
});
|
|
@@ -1,104 +1,103 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { render } from '@testing-library/react';
|
|
1
|
+
import { render } from "@testing-library/react";
|
|
3
2
|
|
|
4
|
-
import { ListItem } from
|
|
3
|
+
import { ListItem } from "../ListItem";
|
|
5
4
|
|
|
6
5
|
const controlProps1 = {
|
|
7
|
-
className:
|
|
6
|
+
className: "test-class",
|
|
8
7
|
};
|
|
9
8
|
const controlProps2 = {
|
|
10
|
-
className:
|
|
11
|
-
href:
|
|
9
|
+
className: "test-class",
|
|
10
|
+
href: "test",
|
|
12
11
|
};
|
|
13
12
|
|
|
14
13
|
//conditional wrapper component inside ListItem requires child to render
|
|
15
|
-
describe(
|
|
16
|
-
describe(
|
|
17
|
-
it(
|
|
14
|
+
describe("rendering ListItem", () => {
|
|
15
|
+
describe("initial state", () => {
|
|
16
|
+
it("has default class list__item", () => {
|
|
18
17
|
const { getByTestId } = render(
|
|
19
|
-
<ListItem data-testid="test-id">test-child</ListItem
|
|
18
|
+
<ListItem data-testid="test-id">test-child</ListItem>,
|
|
20
19
|
);
|
|
21
|
-
expect(getByTestId(
|
|
20
|
+
expect(getByTestId("test-id")).toHaveClass("list__item");
|
|
22
21
|
});
|
|
23
22
|
});
|
|
24
|
-
describe(
|
|
25
|
-
it(
|
|
23
|
+
describe("passed props", () => {
|
|
24
|
+
it("renders children", () => {
|
|
26
25
|
const { getByText } = render(
|
|
27
|
-
<ListItem data-testid="test-id">test-child</ListItem
|
|
26
|
+
<ListItem data-testid="test-id">test-child</ListItem>,
|
|
28
27
|
);
|
|
29
|
-
expect(getByText(
|
|
28
|
+
expect(getByText("test-child")).toBeInTheDocument();
|
|
30
29
|
});
|
|
31
|
-
it(
|
|
30
|
+
it("has additional class when className is set", () => {
|
|
32
31
|
const { getByTestId } = render(
|
|
33
32
|
<ListItem data-testid="test-id" className="test-class">
|
|
34
33
|
test-child
|
|
35
|
-
</ListItem
|
|
34
|
+
</ListItem>,
|
|
36
35
|
);
|
|
37
|
-
expect(getByTestId(
|
|
38
|
-
expect(getByTestId(
|
|
36
|
+
expect(getByTestId("test-id")).toHaveClass("list__item");
|
|
37
|
+
expect(getByTestId("test-id")).toHaveClass("test-class");
|
|
39
38
|
});
|
|
40
|
-
it(
|
|
39
|
+
it("renders button with type button when controlProps without href is passed", () => {
|
|
41
40
|
const { getByRole } = render(
|
|
42
41
|
<ListItem data-testid="test-id" controlProps={controlProps1}>
|
|
43
42
|
test-child
|
|
44
|
-
</ListItem
|
|
43
|
+
</ListItem>,
|
|
45
44
|
);
|
|
46
|
-
expect(getByRole(
|
|
47
|
-
expect(getByRole(
|
|
45
|
+
expect(getByRole("button")).toBeInTheDocument();
|
|
46
|
+
expect(getByRole("button").getAttribute("type")).toBe("button");
|
|
48
47
|
});
|
|
49
|
-
it(
|
|
48
|
+
it("renders button with class from controlProps.className when passed", () => {
|
|
50
49
|
const { getByRole } = render(
|
|
51
50
|
<ListItem data-testid="test-id" controlProps={controlProps1}>
|
|
52
51
|
test-child
|
|
53
|
-
</ListItem
|
|
52
|
+
</ListItem>,
|
|
54
53
|
);
|
|
55
|
-
expect(getByRole(
|
|
56
|
-
expect(getByRole(
|
|
54
|
+
expect(getByRole("button")).toBeInTheDocument();
|
|
55
|
+
expect(getByRole("button")).toHaveClass("test-class");
|
|
57
56
|
});
|
|
58
|
-
it(
|
|
57
|
+
it("renders button with class from controlProps.className when passed", () => {
|
|
59
58
|
const { getByRole } = render(
|
|
60
59
|
<ListItem data-testid="test-id" controlProps={controlProps1}>
|
|
61
60
|
test-child
|
|
62
|
-
</ListItem
|
|
61
|
+
</ListItem>,
|
|
63
62
|
);
|
|
64
|
-
expect(getByRole(
|
|
65
|
-
expect(getByRole(
|
|
63
|
+
expect(getByRole("button")).toBeInTheDocument();
|
|
64
|
+
expect(getByRole("button")).toHaveClass("test-class");
|
|
66
65
|
});
|
|
67
|
-
it(
|
|
66
|
+
it("children are rendered inside button element when button is rendered", () => {
|
|
68
67
|
const { getByRole } = render(
|
|
69
68
|
<ListItem data-testid="test-id" controlProps={controlProps1}>
|
|
70
69
|
test-child
|
|
71
|
-
</ListItem
|
|
70
|
+
</ListItem>,
|
|
72
71
|
);
|
|
73
|
-
expect(getByRole(
|
|
74
|
-
expect(getByRole(
|
|
72
|
+
expect(getByRole("button")).toBeInTheDocument();
|
|
73
|
+
expect(getByRole("button").textContent).toBe("test-child");
|
|
75
74
|
});
|
|
76
|
-
it(
|
|
75
|
+
it("renders anchor without type when controlProps with href is passed", () => {
|
|
77
76
|
const { getByRole } = render(
|
|
78
77
|
<ListItem data-testid="test-id" controlProps={controlProps2}>
|
|
79
78
|
test-child
|
|
80
|
-
</ListItem
|
|
79
|
+
</ListItem>,
|
|
81
80
|
);
|
|
82
|
-
expect(getByRole(
|
|
83
|
-
expect(getByRole(
|
|
81
|
+
expect(getByRole("link")).toBeInTheDocument();
|
|
82
|
+
expect(getByRole("link").getAttribute("type")).toBeFalsy();
|
|
84
83
|
});
|
|
85
|
-
it(
|
|
84
|
+
it("renders anchor with class from controlProps.className when passed", () => {
|
|
86
85
|
const { getByRole } = render(
|
|
87
86
|
<ListItem data-testid="test-id" controlProps={controlProps2}>
|
|
88
87
|
test-child
|
|
89
|
-
</ListItem
|
|
88
|
+
</ListItem>,
|
|
90
89
|
);
|
|
91
|
-
expect(getByRole(
|
|
92
|
-
expect(getByRole(
|
|
90
|
+
expect(getByRole("link")).toBeInTheDocument();
|
|
91
|
+
expect(getByRole("link")).toHaveClass("test-class");
|
|
93
92
|
});
|
|
94
|
-
it(
|
|
93
|
+
it("children are rendered inside anchor element when anchor is rendered", () => {
|
|
95
94
|
const { getByRole } = render(
|
|
96
95
|
<ListItem data-testid="test-id" controlProps={controlProps2}>
|
|
97
96
|
test-child
|
|
98
|
-
</ListItem
|
|
97
|
+
</ListItem>,
|
|
99
98
|
);
|
|
100
|
-
expect(getByRole(
|
|
101
|
-
expect(getByRole(
|
|
99
|
+
expect(getByRole("link")).toBeInTheDocument();
|
|
100
|
+
expect(getByRole("link").textContent).toBe("test-child");
|
|
102
101
|
});
|
|
103
102
|
});
|
|
104
103
|
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import cx from "classnames";
|
|
2
|
+
import React, { ReactNode } from "react";
|
|
3
|
+
import { Container } from "../Container";
|
|
4
|
+
import { Loader } from "./Loader";
|
|
5
|
+
|
|
6
|
+
const CLASS_ROOT = "loader-fullscreen";
|
|
7
|
+
|
|
8
|
+
interface LoaderFullscreenProps {
|
|
9
|
+
className?: string;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const LoaderFullscreen: React.FC<LoaderFullscreenProps> = ({
|
|
14
|
+
className,
|
|
15
|
+
children,
|
|
16
|
+
...other
|
|
17
|
+
}) => {
|
|
18
|
+
const classes = cx(CLASS_ROOT, className);
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<div className={classes} role="status" aria-live="polite" {...other}>
|
|
22
|
+
<Container>
|
|
23
|
+
{children}
|
|
24
|
+
<Loader size="large" />
|
|
25
|
+
</Container>
|
|
26
|
+
</div>
|
|
27
|
+
);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
LoaderFullscreen.displayName = "LoaderFullscreen";
|
|
31
|
+
|
|
32
|
+
export { LoaderFullscreen };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
@use
|
|
2
|
-
@use
|
|
3
|
-
@use
|
|
1
|
+
@use "../../../styles/tokens/color";
|
|
2
|
+
@use "../../../styles/tokens/space";
|
|
3
|
+
@use "../../../styles/tools/convert";
|
|
4
4
|
|
|
5
5
|
$sizes: (
|
|
6
6
|
default: (
|
|
7
7
|
width: convert.to-rem(40px),
|
|
8
8
|
height: convert.to-rem(40px),
|
|
9
|
-
margin-right: space.get(
|
|
9
|
+
margin-right: space.get("small"),
|
|
10
10
|
),
|
|
11
11
|
large: (
|
|
12
12
|
width: convert.to-rem(50px),
|
|
13
13
|
height: convert.to-rem(50px),
|
|
14
14
|
margin-right: space.get(),
|
|
15
|
-
)
|
|
15
|
+
),
|
|
16
16
|
);
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@use "../../../styles/tools/generate";
|
|
3
3
|
@use "../../../styles/tools/convert";
|
|
4
4
|
@use "../../../styles/tokens/color";
|
|
5
|
+
@use "../../../styles/tokens/space";
|
|
5
6
|
@use "./config";
|
|
6
7
|
|
|
7
8
|
@keyframes logo-line {
|
|
@@ -31,6 +32,10 @@
|
|
|
31
32
|
flex: 0 0 auto;
|
|
32
33
|
overflow: hidden;
|
|
33
34
|
background-color: var(--color-surface-secondary);
|
|
35
|
+
|
|
36
|
+
&:only-child {
|
|
37
|
+
margin-right: 0 !important;
|
|
38
|
+
}
|
|
34
39
|
}
|
|
35
40
|
|
|
36
41
|
@mixin size($size: default) {
|
|
@@ -64,3 +69,22 @@
|
|
|
64
69
|
@mixin messages-large {
|
|
65
70
|
font-size: convert.to-rem(18px);
|
|
66
71
|
}
|
|
72
|
+
|
|
73
|
+
@mixin fullscreen-base {
|
|
74
|
+
position: fixed;
|
|
75
|
+
display: flex;
|
|
76
|
+
top: 0;
|
|
77
|
+
right: 0;
|
|
78
|
+
bottom: 0;
|
|
79
|
+
left: 0;
|
|
80
|
+
z-index: 500;
|
|
81
|
+
background-color: #eeeeeef2; // color.$surface-subtle opacity 95%
|
|
82
|
+
|
|
83
|
+
.container {
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
align-items: center;
|
|
87
|
+
justify-content: center;
|
|
88
|
+
text-align: center;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use "./mixins";
|
|
2
|
+
@use "../../../styles/tokens/color";
|
|
2
3
|
|
|
3
4
|
@layer components {
|
|
4
5
|
.loader {
|
|
@@ -37,4 +38,12 @@
|
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
40
|
}
|
|
41
|
+
|
|
42
|
+
.loader-fullscreen {
|
|
43
|
+
@include mixins.fullscreen-base;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.is-dark .loader-fullscreen {
|
|
47
|
+
background-color: #333333f2; // color.$surface-subtle opacity 95%
|
|
48
|
+
}
|
|
40
49
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { render } from "@testing-library/react";
|
|
2
|
+
import { axe } from "vitest-axe";
|
|
3
|
+
|
|
4
|
+
import { LoaderFullscreen } from "../";
|
|
5
|
+
|
|
6
|
+
const example = (
|
|
7
|
+
<>
|
|
8
|
+
<LoaderFullscreen />
|
|
9
|
+
<LoaderFullscreen>Loading...</LoaderFullscreen>
|
|
10
|
+
</>
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
it("is valid html", () => {
|
|
14
|
+
const { container } = render(example);
|
|
15
|
+
expect(container).toHTMLValidate();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it("is accessible", async () => {
|
|
19
|
+
const { container } = render(example);
|
|
20
|
+
expect(await axe(container)).toHaveNoViolations();
|
|
21
|
+
});
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { render } from "@testing-library/react";
|
|
2
|
+
|
|
3
|
+
import { LoaderFullscreen } from "../";
|
|
4
|
+
|
|
5
|
+
describe("LoaderFullscreen", () => {
|
|
6
|
+
describe("initial state", () => {
|
|
7
|
+
it("has default class loader-fullscreen", () => {
|
|
8
|
+
const { getByTestId } = render(
|
|
9
|
+
<LoaderFullscreen data-testid="test-id" />,
|
|
10
|
+
);
|
|
11
|
+
expect(getByTestId("test-id")).toHaveClass("loader-fullscreen");
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
it("renders a Loader inside", () => {
|
|
15
|
+
const { container } = render(<LoaderFullscreen />);
|
|
16
|
+
expect(container.getElementsByClassName("loader").length).toBe(1);
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
it("renders a large Loader by default", () => {
|
|
20
|
+
const { container } = render(<LoaderFullscreen />);
|
|
21
|
+
expect(container.getElementsByClassName("loader--large").length).toBe(1);
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
it("has role status", () => {
|
|
25
|
+
const { getByTestId } = render(
|
|
26
|
+
<LoaderFullscreen data-testid="test-id" />,
|
|
27
|
+
);
|
|
28
|
+
expect(getByTestId("test-id")).toHaveAttribute("role", "status");
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
describe("passed props", () => {
|
|
33
|
+
it("has additional class when className is set", () => {
|
|
34
|
+
const { getByTestId } = render(
|
|
35
|
+
<LoaderFullscreen data-testid="test-id" className="test-class" />,
|
|
36
|
+
);
|
|
37
|
+
expect(getByTestId("test-id")).toHaveClass("loader-fullscreen");
|
|
38
|
+
expect(getByTestId("test-id")).toHaveClass("test-class");
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
CLASS_ACCORDION_BUTTON,
|
|
3
|
+
CLASS_ACCORDION_ICON,
|
|
4
|
+
CLASS_HIDE_LG_UP,
|
|
4
5
|
CLASS_MOBILE,
|
|
5
6
|
CLASS_MOBILE_OVERLAY,
|
|
6
|
-
|
|
7
|
+
CLASS_NAV_BUTTON,
|
|
8
|
+
CLASS_NAV_DROPDOWN,
|
|
7
9
|
CLASS_OVERLAY,
|
|
8
|
-
CLASS_ACCORDION_BUTTON,
|
|
9
|
-
CLASS_ACCORDION_ICON,
|
|
10
10
|
} from "./constants";
|
|
11
11
|
|
|
12
12
|
interface MegamenuConfig {
|
|
@@ -1,18 +1,29 @@
|
|
|
1
1
|
import cx from "classnames";
|
|
2
|
-
|
|
3
|
-
import { MegamenuIcon } from "./MegaMenuIcon";
|
|
4
|
-
import { MyOrangeMobilePanel } from "./MyOrangeMobilePanel";
|
|
5
|
-
import { MegamenuSearchContent } from "./MegamenuSearchContent";
|
|
6
|
-
import { getMegamenuIds } from "./ids";
|
|
2
|
+
import React from "react";
|
|
7
3
|
import {
|
|
4
|
+
CLASS_ACCORDION,
|
|
5
|
+
CLASS_ACCORDION_BODY,
|
|
6
|
+
CLASS_ACCORDION_BUTTON,
|
|
7
|
+
CLASS_ACCORDION_HEADER,
|
|
8
|
+
CLASS_ACCORDION_ICON,
|
|
9
|
+
CLASS_ACCORDION_ITEM,
|
|
10
|
+
CLASS_ACCORDION_TITLE,
|
|
11
|
+
CLASS_CAPTION,
|
|
12
|
+
CLASS_CARD,
|
|
8
13
|
CLASS_CONTAINER,
|
|
9
14
|
CLASS_GRID,
|
|
10
|
-
CLASS_HIDE_MD_DOWN,
|
|
11
15
|
CLASS_HIDE_LG_UP,
|
|
16
|
+
CLASS_HIDE_MD_DOWN,
|
|
12
17
|
CLASS_MAIN,
|
|
18
|
+
CLASS_MOBILE,
|
|
19
|
+
CLASS_MOBILE_BODY,
|
|
20
|
+
CLASS_MOBILE_HEADER,
|
|
21
|
+
CLASS_MOBILE_OVERLAY,
|
|
22
|
+
CLASS_MOBILE_WRAPPER,
|
|
13
23
|
CLASS_NAV,
|
|
14
24
|
CLASS_NAV_BUTTON,
|
|
15
25
|
CLASS_NAV_BUTTON_INDICATOR,
|
|
26
|
+
CLASS_NAV_CART_ICON,
|
|
16
27
|
CLASS_NAV_DROPDOWN,
|
|
17
28
|
CLASS_NAV_ICON,
|
|
18
29
|
CLASS_NAV_ITEM,
|
|
@@ -20,39 +31,27 @@ import {
|
|
|
20
31
|
CLASS_NAV_ITEM_MAIN,
|
|
21
32
|
CLASS_NAV_LINK,
|
|
22
33
|
CLASS_NAV_LINK_LOCALE,
|
|
23
|
-
CLASS_NAV_MOBILE_LOCALE,
|
|
24
34
|
CLASS_NAV_LOGO,
|
|
35
|
+
CLASS_NAV_MOBILE_LOCALE,
|
|
36
|
+
CLASS_NAV_SPACE_SMALL,
|
|
25
37
|
CLASS_NAV_SPACER,
|
|
26
|
-
CLASS_ROOT,
|
|
27
|
-
CLASS_SUBNAV,
|
|
28
|
-
CLASS_SUBNAV_ITEM,
|
|
29
|
-
CLASS_TEXT_LARGE,
|
|
30
|
-
CLASS_CAPTION,
|
|
31
|
-
CLASS_TOP,
|
|
32
|
-
CLASS_MOBILE,
|
|
33
|
-
CLASS_MOBILE_OVERLAY,
|
|
34
|
-
CLASS_MOBILE_WRAPPER,
|
|
35
|
-
CLASS_MOBILE_HEADER,
|
|
36
|
-
CLASS_MOBILE_BODY,
|
|
37
38
|
CLASS_NAV_VERTICAL,
|
|
38
39
|
CLASS_OVERLAY,
|
|
39
|
-
|
|
40
|
-
CLASS_ACCORDION_ITEM,
|
|
41
|
-
CLASS_ACCORDION_HEADER,
|
|
42
|
-
CLASS_ACCORDION_BUTTON,
|
|
43
|
-
CLASS_ACCORDION_TITLE,
|
|
44
|
-
CLASS_ACCORDION_ICON,
|
|
45
|
-
CLASS_ACCORDION_BODY,
|
|
46
|
-
CLASS_CARD,
|
|
47
|
-
CLASS_NAV_SPACE_SMALL,
|
|
48
|
-
CLASS_NAV_CART_ICON,
|
|
40
|
+
CLASS_ROOT,
|
|
49
41
|
CLASS_SPACER,
|
|
42
|
+
CLASS_SUBNAV,
|
|
43
|
+
CLASS_SUBNAV_ITEM,
|
|
50
44
|
CLASS_TAG,
|
|
51
45
|
CLASS_TAG_ORANGE,
|
|
52
46
|
CLASS_TAG_SMALL,
|
|
47
|
+
CLASS_TEXT_LARGE,
|
|
48
|
+
CLASS_TOP,
|
|
53
49
|
} from "./constants";
|
|
54
|
-
import React from "react";
|
|
55
50
|
import { MenuItem, MenuSection, menuSections } from "./data";
|
|
51
|
+
import { getMegamenuIds } from "./ids";
|
|
52
|
+
import { MegamenuIcon } from "./MegaMenuIcon";
|
|
53
|
+
import { MegamenuSearchContent } from "./MegamenuSearchContent";
|
|
54
|
+
import { MyOrangeMobilePanel } from "./MyOrangeMobilePanel";
|
|
56
55
|
|
|
57
56
|
export type MegamenuProps = {
|
|
58
57
|
className?: string;
|
|
@@ -1,45 +1,43 @@
|
|
|
1
1
|
import cx from "classnames";
|
|
2
|
-
|
|
3
|
-
import { MegamenuIcon } from "./MegaMenuIcon";
|
|
4
|
-
import { MegamenuSearchContent } from "./MegamenuSearchContent";
|
|
5
|
-
import { MyOrangeMobilePanel } from "./MyOrangeMobilePanel";
|
|
6
|
-
import { getMegamenuIds } from "./ids";
|
|
7
2
|
import {
|
|
3
|
+
CLASS_CAPTION,
|
|
8
4
|
CLASS_CONTAINER,
|
|
9
|
-
CLASS_HIDE_MD_DOWN,
|
|
10
5
|
CLASS_HIDE_LG_UP,
|
|
6
|
+
CLASS_HIDE_MD_DOWN,
|
|
7
|
+
CLASS_LIST_GAP_SMALL,
|
|
8
|
+
CLASS_LIST_INLINE,
|
|
11
9
|
CLASS_MAIN,
|
|
10
|
+
CLASS_MOBILE,
|
|
11
|
+
CLASS_MOBILE_BODY,
|
|
12
|
+
CLASS_MOBILE_HEADER,
|
|
13
|
+
CLASS_MOBILE_OVERLAY,
|
|
14
|
+
CLASS_MOBILE_WRAPPER,
|
|
12
15
|
CLASS_NAV,
|
|
13
16
|
CLASS_NAV_BUTTON,
|
|
14
17
|
CLASS_NAV_DROPDOWN,
|
|
15
18
|
CLASS_NAV_ICON,
|
|
16
19
|
CLASS_NAV_ICON_NO_GAP_MD_DOWN,
|
|
17
20
|
CLASS_NAV_ITEM,
|
|
18
|
-
CLASS_NAV_VERTICAL,
|
|
19
21
|
CLASS_NAV_ITEM_MAIN,
|
|
20
22
|
CLASS_NAV_LINK,
|
|
21
23
|
CLASS_NAV_LINK_NO_LINE,
|
|
22
24
|
CLASS_NAV_LOGO,
|
|
25
|
+
CLASS_NAV_SPACE_SMALL,
|
|
23
26
|
CLASS_NAV_SPACER,
|
|
24
|
-
|
|
25
|
-
CLASS_SUBNAV,
|
|
26
|
-
CLASS_SUBNAV_ITEM,
|
|
27
|
-
CLASS_MOBILE,
|
|
28
|
-
CLASS_MOBILE_OVERLAY,
|
|
29
|
-
CLASS_MOBILE_WRAPPER,
|
|
30
|
-
CLASS_MOBILE_HEADER,
|
|
31
|
-
CLASS_MOBILE_BODY,
|
|
27
|
+
CLASS_NAV_VERTICAL,
|
|
32
28
|
CLASS_OVERLAY,
|
|
33
|
-
|
|
29
|
+
CLASS_ROOT,
|
|
34
30
|
CLASS_SPACER_SMALL,
|
|
35
|
-
|
|
36
|
-
CLASS_LIST_GAP_SMALL,
|
|
31
|
+
CLASS_SUBNAV,
|
|
37
32
|
CLASS_TAG,
|
|
38
33
|
CLASS_TAG_LARGE,
|
|
39
34
|
CLASS_TAG_TRANSPARENT,
|
|
40
|
-
CLASS_CAPTION,
|
|
41
35
|
} from "./constants";
|
|
36
|
+
import { getMegamenuIds } from "./ids";
|
|
37
|
+
import { MegamenuIcon } from "./MegaMenuIcon";
|
|
42
38
|
import { MegamenuProps } from "./Megamenu";
|
|
39
|
+
import { MegamenuSearchContent } from "./MegamenuSearchContent";
|
|
40
|
+
import { MyOrangeMobilePanel } from "./MyOrangeMobilePanel";
|
|
43
41
|
|
|
44
42
|
const blogCategories = [
|
|
45
43
|
"Kategória 1",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import cx from "classnames";
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
+
CLASS_CAPTION,
|
|
4
5
|
CLASS_INPUT,
|
|
5
6
|
CLASS_INPUT_WRAPPER,
|
|
6
|
-
CLASS_INPUT_WRAPPER_SEARCH_RESPONSIVE,
|
|
7
7
|
CLASS_INPUT_WRAPPER_SEARCH_ICON_WITH_PLACEHOLDER,
|
|
8
|
+
CLASS_INPUT_WRAPPER_SEARCH_RESPONSIVE,
|
|
8
9
|
CLASS_LIST_INLINE,
|
|
9
10
|
CLASS_SUBNAV,
|
|
10
11
|
CLASS_SUBNAV_ITEM,
|
|
11
12
|
CLASS_TAG,
|
|
12
|
-
CLASS_CAPTION,
|
|
13
13
|
} from "./constants";
|
|
14
14
|
import { searchResultItems, searchTerms } from "./data";
|
|
15
15
|
|