@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,5 +1,5 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import cx from "classnames";
|
|
2
|
+
import React from "react";
|
|
3
3
|
|
|
4
4
|
import { Icon } from "../Icon";
|
|
5
5
|
import { Button, ButtonSize } from "./Button";
|
|
@@ -54,9 +54,13 @@ const IconButton = React.forwardRef<HTMLButtonElement, IconButtonProps>(
|
|
|
54
54
|
|
|
55
55
|
return (
|
|
56
56
|
<Button ref={ref} size={size} {...other}>
|
|
57
|
-
{iconPosition === "left" &&
|
|
57
|
+
{iconPosition === "left" && (
|
|
58
|
+
<IconComponent className="btn__icon-left" />
|
|
59
|
+
)}
|
|
58
60
|
{children}
|
|
59
|
-
{iconPosition === "right" &&
|
|
61
|
+
{iconPosition === "right" && (
|
|
62
|
+
<IconComponent className="btn__icon-right" />
|
|
63
|
+
)}
|
|
60
64
|
</Button>
|
|
61
65
|
);
|
|
62
66
|
},
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
1
|
import { Button, ButtonProps } from "./Button";
|
|
4
2
|
import { IconButton } from "./IconButton";
|
|
5
3
|
|
|
@@ -18,4 +16,4 @@ export const ButtonGhost = (props: ButtonProps) => (
|
|
|
18
16
|
);
|
|
19
17
|
ButtonGhost.displayName = "ButtonGhost";
|
|
20
18
|
|
|
21
|
-
export {
|
|
19
|
+
export { Button, IconButton };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { render } from "@testing-library/react";
|
|
2
|
-
import { axe } from
|
|
2
|
+
import { axe } from "vitest-axe";
|
|
3
3
|
|
|
4
|
-
import { Card,
|
|
4
|
+
import { Card, CardProductHeader, CardSection } from "../";
|
|
5
5
|
|
|
6
6
|
const example = (
|
|
7
7
|
<>
|
|
@@ -42,7 +42,7 @@ describe("rendering CardProductHeader", () => {
|
|
|
42
42
|
"card__product-header--space-small",
|
|
43
43
|
);
|
|
44
44
|
});
|
|
45
|
-
|
|
45
|
+
|
|
46
46
|
it("does not have card__product-header--space-small class when space is not set", () => {
|
|
47
47
|
const { getByTestId } = render(<CardProductHeader data-testid="test-id" />);
|
|
48
48
|
expect(getByTestId("test-id")).not.toHaveClass(
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { Swiper } from "swiper";
|
|
2
|
-
import type { SwiperOptions } from "swiper/types";
|
|
3
2
|
import {
|
|
4
|
-
Navigation,
|
|
5
|
-
Pagination,
|
|
6
|
-
Scrollbar,
|
|
7
3
|
A11y,
|
|
8
4
|
Keyboard,
|
|
9
5
|
Mousewheel,
|
|
6
|
+
Navigation,
|
|
7
|
+
Pagination,
|
|
8
|
+
Scrollbar,
|
|
10
9
|
} from "swiper/modules";
|
|
10
|
+
import type { SwiperOptions } from "swiper/types";
|
|
11
11
|
|
|
12
12
|
import Tooltip from "../Tooltip/Tooltip.static";
|
|
13
13
|
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
SELECTOR_VIEWPORT,
|
|
19
|
-
SELECTOR_TRACK,
|
|
15
|
+
CLASS_ACTIVE,
|
|
16
|
+
CLASS_BLEED_RIGHT,
|
|
17
|
+
CLASS_DOT,
|
|
20
18
|
CLASS_SCROLLBAR_DRAG,
|
|
21
|
-
SELECTOR_SCROLLBAR,
|
|
22
19
|
CLASS_SCROLLBAR_HORIZONTAL,
|
|
23
|
-
CLASS_TRACK,
|
|
24
20
|
CLASS_SLIDE,
|
|
25
|
-
CLASS_DOT,
|
|
26
|
-
CLASS_ACTIVE,
|
|
27
|
-
SELECTOR_ACTIVE,
|
|
28
21
|
CLASS_SLIDE_NEXT,
|
|
29
22
|
CLASS_SLIDE_PREV,
|
|
30
|
-
|
|
23
|
+
CLASS_TRACK,
|
|
31
24
|
CLASS_VIEWPORT_WRAPPER,
|
|
25
|
+
SELECTOR_ACTIVE,
|
|
26
|
+
SELECTOR_DOTS,
|
|
27
|
+
SELECTOR_NEXT,
|
|
28
|
+
SELECTOR_PREV,
|
|
29
|
+
SELECTOR_SCROLLBAR,
|
|
30
|
+
SELECTOR_TRACK,
|
|
31
|
+
SELECTOR_VIEWPORT,
|
|
32
32
|
} from "./constants";
|
|
33
33
|
|
|
34
34
|
export const defaultConfig: SwiperOptions = {
|
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import React, { ReactNode, HTMLAttributes } from "react";
|
|
4
3
|
import cx from "classnames";
|
|
5
|
-
|
|
4
|
+
import React, { HTMLAttributes, ReactNode } from "react";
|
|
5
|
+
import { useStatic } from "@/utils/hooks";
|
|
6
6
|
import { Icon } from "../Icon";
|
|
7
|
-
|
|
8
|
-
import { CarouselItem } from "./CarouselItem";
|
|
9
7
|
import CarouselStatic from "./Carousel.static";
|
|
8
|
+
import { CarouselItem } from "./CarouselItem";
|
|
10
9
|
import {
|
|
11
|
-
|
|
12
|
-
CLASS_VIEWPORT_WRAPPER,
|
|
13
|
-
CLASS_VIEWPORT,
|
|
10
|
+
CLASS_DOTS,
|
|
14
11
|
CLASS_NEXT,
|
|
15
12
|
CLASS_PREV,
|
|
16
|
-
|
|
17
|
-
CLASS_TRACK,
|
|
18
|
-
CLASS_SCROLLBAR_DRAG,
|
|
13
|
+
CLASS_ROOT,
|
|
19
14
|
CLASS_SCROLLBAR,
|
|
15
|
+
CLASS_SCROLLBAR_DRAG,
|
|
16
|
+
CLASS_TRACK,
|
|
17
|
+
CLASS_VIEWPORT,
|
|
18
|
+
CLASS_VIEWPORT_WRAPPER,
|
|
20
19
|
} from "./constants";
|
|
21
|
-
import { useStatic } from "@/utils/hooks";
|
|
22
20
|
|
|
23
21
|
interface CarouselProps extends HTMLAttributes<HTMLDivElement> {
|
|
24
22
|
/** Swiper.js (https://swiperjs.com/) options object */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { render } from "@testing-library/react";
|
|
2
|
-
import { axe } from
|
|
2
|
+
import { axe } from "vitest-axe";
|
|
3
3
|
|
|
4
4
|
import { Carousel } from "..";
|
|
5
5
|
|
|
@@ -8,9 +8,7 @@ const example = (
|
|
|
8
8
|
<Carousel
|
|
9
9
|
items={Array(5)
|
|
10
10
|
.fill()
|
|
11
|
-
.map((_, index) => (
|
|
12
|
-
<div key={index.toString()}>slide {index}</div>
|
|
13
|
-
))}
|
|
11
|
+
.map((_, index) => <div key={index.toString()}>slide {index}</div>)}
|
|
14
12
|
/>
|
|
15
13
|
</>
|
|
16
14
|
);
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Swiper } from "swiper";
|
|
2
2
|
import {
|
|
3
|
-
Navigation,
|
|
4
|
-
Pagination,
|
|
5
3
|
A11y,
|
|
6
|
-
Keyboard,
|
|
7
4
|
Autoplay,
|
|
5
|
+
Keyboard,
|
|
6
|
+
Navigation,
|
|
7
|
+
Pagination,
|
|
8
8
|
} from "swiper/modules";
|
|
9
|
-
import {
|
|
9
|
+
import type { SwiperOptions } from "swiper/types";
|
|
10
10
|
|
|
11
11
|
import {
|
|
12
|
-
CLASS_SLIDE,
|
|
13
|
-
CLASS_TRACK,
|
|
14
12
|
CLASS_ACTIVE,
|
|
15
|
-
|
|
13
|
+
CLASS_PAGINATION_CIRCLE,
|
|
14
|
+
CLASS_PAGINATION_ITEM,
|
|
15
|
+
CLASS_PAGINATION_SVG,
|
|
16
16
|
CLASS_PAUSED,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
CLASS_PLAYING,
|
|
18
|
+
CLASS_SLIDE,
|
|
19
|
+
CLASS_TRACK,
|
|
19
20
|
SELECTOR_NEXT,
|
|
21
|
+
SELECTOR_PAGINATION,
|
|
20
22
|
SELECTOR_PLAY_PAUSE,
|
|
21
|
-
|
|
23
|
+
SELECTOR_PREV,
|
|
22
24
|
SELECTOR_TAB,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
CLASS_PAGINATION_SVG,
|
|
26
|
-
CLASS_PAGINATION_CIRCLE,
|
|
25
|
+
SELECTOR_TABS,
|
|
26
|
+
SELECTOR_VIEWPORT,
|
|
27
27
|
} from "./constants";
|
|
28
28
|
|
|
29
29
|
export const defaultConfig: SwiperOptions = {
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import React, { ReactNode } from "react";
|
|
4
3
|
import cx from "classnames";
|
|
5
|
-
|
|
6
|
-
import {
|
|
4
|
+
import React, { ReactNode } from "react";
|
|
5
|
+
import { useStatic } from "@/utils/hooks";
|
|
7
6
|
import { Container } from "../Container";
|
|
8
|
-
import {
|
|
7
|
+
import { Controls } from "../Controls";
|
|
9
8
|
import CarouselHeroStatic from "./CarouselHero.static";
|
|
9
|
+
import { CarouselHeroItem } from "./CarouselHeroItem";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
CLASS_VIEWPORT_WRAPPER,
|
|
13
|
-
CLASS_VIEWPORT,
|
|
14
|
-
CLASS_PREV,
|
|
11
|
+
CLASS_NAVIGATION,
|
|
15
12
|
CLASS_NEXT,
|
|
13
|
+
CLASS_PAGINATION,
|
|
16
14
|
CLASS_PLAY_PAUSE,
|
|
17
|
-
|
|
15
|
+
CLASS_PREV,
|
|
16
|
+
CLASS_ROOT,
|
|
18
17
|
CLASS_TAB,
|
|
19
|
-
|
|
18
|
+
CLASS_TABS,
|
|
20
19
|
CLASS_TRACK,
|
|
21
|
-
|
|
20
|
+
CLASS_VIEWPORT,
|
|
21
|
+
CLASS_VIEWPORT_WRAPPER,
|
|
22
22
|
} from "./constants";
|
|
23
|
-
import { useStatic } from "@/utils/hooks";
|
|
24
23
|
|
|
25
24
|
interface TabItem {
|
|
26
25
|
label: string;
|
|
@@ -135,5 +134,5 @@ const CarouselHero: React.FC<CarouselHeroProps> = ({
|
|
|
135
134
|
|
|
136
135
|
CarouselHero.displayName = "CarouselHero";
|
|
137
136
|
|
|
138
|
-
export { CarouselHero, CarouselHeroItem };
|
|
139
137
|
export type { CarouselHeroProps, TabItem };
|
|
138
|
+
export { CarouselHero, CarouselHeroItem };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React, { ReactNode, HTMLAttributes } from "react";
|
|
2
1
|
import cx from "classnames";
|
|
2
|
+
import React, { HTMLAttributes, ReactNode } from "react";
|
|
3
3
|
import { Image } from "@/components/Image";
|
|
4
|
+
import { Container } from "../Container";
|
|
4
5
|
import {
|
|
5
6
|
CLASS_SLIDE,
|
|
6
7
|
CLASS_SLIDE_CONTAINER,
|
|
7
8
|
CLASS_SLIDE_CONTENT,
|
|
8
9
|
CLASS_SLIDE_IMAGE,
|
|
9
10
|
} from "./constants";
|
|
10
|
-
import { Container } from "../Container";
|
|
11
11
|
|
|
12
12
|
const CLASS_ROOT = CLASS_SLIDE;
|
|
13
13
|
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { Swiper } from "swiper";
|
|
2
|
-
import type { SwiperOptions } from "swiper/types";
|
|
3
2
|
import {
|
|
4
|
-
Navigation,
|
|
5
|
-
Pagination,
|
|
6
3
|
A11y,
|
|
7
|
-
Keyboard,
|
|
8
4
|
Autoplay,
|
|
5
|
+
Keyboard,
|
|
6
|
+
Navigation,
|
|
7
|
+
Pagination,
|
|
9
8
|
} from "swiper/modules";
|
|
9
|
+
import type { SwiperOptions } from "swiper/types";
|
|
10
10
|
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
CLASS_ACTIVE,
|
|
13
|
+
CLASS_AUTOPLAY,
|
|
14
|
+
CLASS_DOT,
|
|
14
15
|
CLASS_DOT_CIRCLE,
|
|
15
16
|
CLASS_DOT_SVG,
|
|
16
|
-
CLASS_AUTOPLAY,
|
|
17
17
|
CLASS_SHOWING_INVERTED_SLIDE,
|
|
18
|
-
CLASS_TRACK,
|
|
19
18
|
CLASS_SLIDE,
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
CLASS_TRACK,
|
|
20
|
+
SELECTOR_DOTS,
|
|
21
|
+
SELECTOR_VIEWPORT,
|
|
22
22
|
} from "./constants";
|
|
23
23
|
|
|
24
24
|
export const defaultConfig: SwiperOptions = {
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import React, { ReactNode } from "react";
|
|
4
3
|
import cx from "classnames";
|
|
5
|
-
|
|
4
|
+
import React, { ReactNode } from "react";
|
|
5
|
+
import { useStatic } from "@/utils/hooks";
|
|
6
6
|
import CarouselPromotionsStatic from "./CarouselPromotions.static";
|
|
7
7
|
import {
|
|
8
|
-
CLASS_ROOT,
|
|
9
|
-
CLASS_VIEWPORT_WRAPPER,
|
|
10
|
-
CLASS_VIEWPORT,
|
|
11
|
-
CLASS_NEXT,
|
|
12
8
|
CLASS_DOTS,
|
|
9
|
+
CLASS_NEXT,
|
|
10
|
+
CLASS_ROOT,
|
|
13
11
|
CLASS_TRACK,
|
|
12
|
+
CLASS_VIEWPORT,
|
|
13
|
+
CLASS_VIEWPORT_WRAPPER,
|
|
14
14
|
} from "./constants";
|
|
15
|
-
import { useStatic } from "@/utils/hooks";
|
|
16
15
|
|
|
17
16
|
interface CarouselPromotionsProps {
|
|
18
17
|
className?: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React, { ReactElement } from "react";
|
|
2
1
|
import cx from "classnames";
|
|
2
|
+
import React, { ReactElement } from "react";
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
|
-
CLASS_SLIDE,
|
|
6
|
-
CLASS_TITLE,
|
|
7
5
|
CLASS_IMAGE,
|
|
6
|
+
CLASS_SLIDE,
|
|
8
7
|
CLASS_SLIDE_CONTENT,
|
|
8
|
+
CLASS_TITLE,
|
|
9
9
|
} from "./constants";
|
|
10
10
|
|
|
11
11
|
const CLASS_ROOT = CLASS_SLIDE;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { render } from "@testing-library/react";
|
|
2
2
|
import { axe } from "vitest-axe";
|
|
3
|
-
|
|
4
|
-
import { CarouselPromotions } from "..";
|
|
5
|
-
import { CarouselPromotionsItem } from "..";
|
|
6
3
|
import { Image } from "../../Image";
|
|
4
|
+
import { CarouselPromotions, CarouselPromotionsItem } from "..";
|
|
7
5
|
|
|
8
6
|
const example = (
|
|
9
7
|
<>
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { render } from "@testing-library/react";
|
|
2
|
-
|
|
2
|
+
import { Image } from "../../Image";
|
|
3
3
|
import { CarouselPromotions } from "../CarouselPromotions";
|
|
4
4
|
import { CarouselPromotionsItem } from "../CarouselPromotionsItem";
|
|
5
|
-
import { Image } from "../../Image";
|
|
6
5
|
|
|
7
6
|
describe("rendering CarouselPromotions", () => {
|
|
8
7
|
describe("initial state", () => {
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import React from "react";
|
|
4
3
|
import cx from "classnames";
|
|
4
|
+
import React from "react";
|
|
5
5
|
|
|
6
6
|
import { capitalize } from "../../utils";
|
|
7
7
|
import { Table } from "../Table";
|
|
8
|
-
|
|
9
|
-
import generateRow from "./generateRow";
|
|
8
|
+
import type { Footer, Labels } from "./generateFooter";
|
|
10
9
|
import generateFooter from "./generateFooter";
|
|
10
|
+
import generateRow from "./generateRow";
|
|
11
11
|
import type { Item } from "./generateTotal";
|
|
12
|
-
import type { Footer, Labels } from "./generateFooter";
|
|
13
12
|
|
|
14
13
|
const CLASS_ROOT = "cart-table";
|
|
15
14
|
|
|
@@ -4,8 +4,8 @@ import React from "react";
|
|
|
4
4
|
|
|
5
5
|
import NameColumn from "./FooterNameColumn";
|
|
6
6
|
import PriceColumn from "./FooterPriceColumn";
|
|
7
|
+
import type { FormattedPeriod, Item } from "./generateTotal";
|
|
7
8
|
import generateTotal from "./generateTotal";
|
|
8
|
-
import type { Item, FormattedPeriod } from "./generateTotal";
|
|
9
9
|
|
|
10
10
|
export interface Footer {
|
|
11
11
|
name?: string;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import cx from "classnames";
|
|
3
|
-
|
|
4
|
-
import { Bar, BarItem } from "../Bar";
|
|
5
|
-
import { Image } from "../Image";
|
|
6
|
-
import { InfoTooltip } from "../Tooltip/InfoTooltip";
|
|
2
|
+
import React from "react";
|
|
7
3
|
import ConditionalWrapper from "../../utils/ConditionalWrapper";
|
|
8
|
-
import {
|
|
4
|
+
import { Bar, BarItem } from "../Bar";
|
|
9
5
|
import { IconButton } from "../Button";
|
|
6
|
+
import { Icon } from "../Icon";
|
|
7
|
+
import { Image } from "../Image";
|
|
10
8
|
import { Tag } from "../Tag";
|
|
11
|
-
|
|
12
|
-
import Price from "./Price";
|
|
9
|
+
import { InfoTooltip } from "../Tooltip/InfoTooltip";
|
|
13
10
|
import type { Item } from "./generateTotal";
|
|
11
|
+
import Price from "./Price";
|
|
14
12
|
|
|
15
13
|
export interface Labels {
|
|
16
14
|
[key: string]: string;
|