@orangesk/orange-design-system 2.0.0-beta.0 → 2.0.0-beta.10
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/build/components/index.css +1 -2
- package/build/components/index.css.map +1 -1
- package/build/components/index.js +7 -7
- package/build/components/index.js.map +1 -1
- package/build/components/tsconfig.tsbuildinfo +1 -1
- package/build/components/types/index.d.ts +1508 -0
- package/build/components/types/src/components/Accordion/Accordion.d.ts +2 -0
- package/build/components/types/src/components/Accordion/AccordionHeader.d.ts +2 -1
- package/build/components/types/src/components/Accordion/AccordionItem.d.ts +2 -1
- package/build/components/types/src/components/AnchorNavigation/AnchorNavigation.d.ts +1 -1
- package/build/components/types/src/components/AnchorNavigation/AnchorNavigation.static.d.ts +19 -17
- package/build/components/types/src/components/AnchorNavigation/index.d.ts +0 -1
- package/build/components/types/src/components/BlockAction/index.d.ts +0 -1
- package/build/components/types/src/components/BodyBanner/index.d.ts +0 -1
- package/build/components/types/src/components/Button/Button.d.ts +1 -0
- package/build/components/types/src/components/Button/index.d.ts +0 -1
- package/build/components/types/src/components/Card/Card.d.ts +2 -4
- package/build/components/types/src/components/Card/CardSection.d.ts +2 -2
- package/build/components/types/src/components/Carousel/Carousel.d.ts +4 -0
- package/build/components/types/src/components/Carousel/Carousel.static.d.ts +1 -0
- package/build/components/types/src/components/Carousel/constants.d.ts +2 -0
- package/build/components/types/src/components/CarouselHero/CarouselHero.d.ts +18 -0
- package/build/components/types/src/components/CarouselHero/CarouselHero.static.d.ts +47 -0
- package/build/components/types/src/components/CarouselHero/CarouselHeroItem.d.ts +8 -0
- package/build/components/types/src/components/CarouselHero/constants.d.ts +33 -0
- package/build/components/types/src/components/CarouselHero/index.d.ts +2 -0
- package/build/components/types/src/components/Cover/index.d.ts +1 -2
- package/build/components/types/src/components/Divider/Divider.d.ts +0 -4
- package/build/components/types/src/components/Expander/Expander.d.ts +2 -2
- package/build/components/types/src/components/Footer/Footer.d.ts +1 -5
- package/build/components/types/src/components/Footer/constants.d.ts +9 -0
- package/build/components/types/src/components/Forms/Select/index.d.ts +0 -1
- package/build/components/types/src/components/Icon/iconSearchTags.d.ts +253 -251
- package/build/components/types/src/components/IconList/index.d.ts +2 -3
- package/build/components/types/src/components/List/index.d.ts +2 -3
- package/build/components/types/src/components/Megamenu/MegaMenuIcon.d.ts +13 -0
- package/build/components/types/src/components/Megamenu/Megamenu.d.ts +1 -9
- package/build/components/types/src/components/Megamenu/Megamenu.static.d.ts +47 -0
- package/build/components/types/src/components/Megamenu/MegamenuBlog.d.ts +1 -0
- package/build/components/types/src/components/Megamenu/constants.d.ts +48 -0
- package/build/components/types/src/components/Megamenu/index.d.ts +2 -3
- package/build/components/types/src/components/Megamenu/static.d.ts +22 -0
- package/build/components/types/src/components/Modal/Modal.d.ts +6 -0
- package/build/components/types/src/components/Modal/ModalBody.d.ts +4 -3
- package/build/components/types/src/components/Modal/ModalProductBody.d.ts +10 -0
- package/build/components/types/src/components/Modal/ModalProductFooter.d.ts +10 -0
- package/build/components/types/src/components/Modal/index.d.ts +2 -0
- package/build/components/types/src/components/Pagination/Pagination.d.ts +2 -3
- package/build/components/types/src/components/Pill/Pill.d.ts +4 -1
- package/build/components/types/src/components/Preview/PreviewGenerator.d.ts +1 -1
- package/build/components/types/src/components/PromoBanner/PromoBanner.d.ts +9 -5
- package/build/components/types/src/components/PromotionCard/PromotionCard.d.ts +2 -2
- package/build/components/types/src/components/Section/Section.d.ts +4 -1
- package/build/components/types/src/components/Tag/Tag.d.ts +9 -2
- package/build/components/types/src/components/index.d.ts +3 -5
- package/build/components/types/src/scripts/index.d.ts +10 -0
- package/build/lib/after-components.css +1 -1
- package/build/lib/after-components.css.map +1 -1
- package/build/lib/before-components.css +1 -1
- package/build/lib/before-components.css.map +1 -1
- package/build/lib/components.css +1 -1
- package/build/lib/components.css.map +1 -1
- package/build/lib/footer.css +2 -0
- package/build/lib/footer.css.map +1 -0
- package/build/lib/megamenu.css +2 -0
- package/build/lib/megamenu.css.map +1 -0
- package/build/lib/megamenu.js +2 -0
- package/build/lib/megamenu.js.map +1 -0
- package/build/lib/scripts.css +1 -1
- package/build/lib/scripts.css.map +1 -1
- package/build/lib/scripts.js +5 -5
- 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/logo-line.svg +5 -0
- package/build/sprite.svg +1 -1
- package/package.json +35 -29
- package/src/assets/icons/ai.svg +6 -0
- package/src/assets/icons/article.svg +7 -0
- package/src/assets/icons/pictogram-activation--dark.svg +10 -11
- package/src/assets/icons/pictogram-activation-free--dark.svg +4 -5
- package/src/assets/icons/pictogram-activation-free.svg +4 -5
- package/src/assets/icons/pictogram-activation.svg +10 -11
- package/src/assets/icons/pictogram-archive--dark.svg +3 -4
- package/src/assets/icons/pictogram-archive.svg +3 -4
- package/src/assets/icons/pictogram-calling-minutes--dark.svg +3 -4
- package/src/assets/icons/pictogram-calling-minutes.svg +3 -4
- package/src/assets/icons/pictogram-canal-plus--dark.svg +3 -4
- package/src/assets/icons/pictogram-canal-plus.svg +3 -4
- package/src/assets/icons/pictogram-competition-tickets--dark.svg +11 -12
- package/src/assets/icons/pictogram-competition-tickets.svg +11 -12
- package/src/assets/icons/pictogram-device-discount--dark.svg +7 -6
- package/src/assets/icons/pictogram-device-discount.svg +5 -6
- package/src/assets/icons/pictogram-discount-general--dark.svg +5 -6
- package/src/assets/icons/pictogram-discount-general.svg +5 -6
- package/src/assets/icons/pictogram-discount-price--dark.svg +5 -6
- package/src/assets/icons/pictogram-discount-price.svg +5 -6
- package/src/assets/icons/pictogram-extra-data--dark.svg +6 -7
- package/src/assets/icons/pictogram-extra-data.svg +6 -7
- package/src/assets/icons/pictogram-free-payment--dark.svg +5 -6
- package/src/assets/icons/pictogram-free-payment.svg +3 -6
- package/src/assets/icons/pictogram-gift--dark.svg +12 -13
- package/src/assets/icons/pictogram-gift-one-benefit--dark.svg +7 -8
- package/src/assets/icons/pictogram-gift-one-benefit.svg +7 -8
- package/src/assets/icons/pictogram-gift-two-benefits--dark.svg +8 -9
- package/src/assets/icons/pictogram-gift-two-benefits.svg +8 -9
- package/src/assets/icons/pictogram-gift.svg +3 -4
- package/src/assets/icons/pictogram-hbo-max--dark.svg +5 -6
- package/src/assets/icons/pictogram-hbo-max.svg +5 -6
- package/src/assets/icons/pictogram-infinite-sms--dark.svg +3 -4
- package/src/assets/icons/pictogram-infinite-sms.svg +3 -4
- package/src/assets/icons/pictogram-installation--dark.svg +4 -5
- package/src/assets/icons/pictogram-installation-free--dark.svg +4 -5
- package/src/assets/icons/pictogram-installation-free.svg +4 -5
- package/src/assets/icons/pictogram-installation.svg +4 -5
- package/src/assets/icons/pictogram-max--dark.svg +3 -4
- package/src/assets/icons/pictogram-max-canal-plus--dark.svg +5 -6
- package/src/assets/icons/pictogram-max-canal-plus.svg +5 -6
- package/src/assets/icons/pictogram-max.svg +3 -4
- package/src/assets/icons/pictogram-moj-orange-app--dark.svg +3 -4
- package/src/assets/icons/pictogram-moj-orange-app.svg +3 -4
- package/src/assets/icons/pictogram-movie-storage--dark.svg +4 -5
- package/src/assets/icons/pictogram-movie-storage.svg +4 -5
- package/src/assets/icons/pictogram-online-protection--dark.svg +3 -4
- package/src/assets/icons/pictogram-online-protection.svg +3 -4
- package/src/assets/icons/pictogram-random-damage--dark.svg +4 -8
- package/src/assets/icons/pictogram-random-damage.svg +4 -8
- package/src/assets/icons/pictogram-recycling--dark.svg +7 -8
- package/src/assets/icons/pictogram-recycling.svg +14 -15
- package/src/assets/icons/pictogram-repair--dark.svg +12 -13
- package/src/assets/icons/pictogram-repair.svg +12 -13
- package/src/assets/icons/pictogram-roaming--dark.svg +3 -4
- package/src/assets/icons/pictogram-roaming-discount--dark.svg +3 -16
- package/src/assets/icons/pictogram-roaming-discount.svg +15 -16
- package/src/assets/icons/pictogram-roaming.svg +3 -4
- package/src/assets/icons/pictogram-skylink--dark.svg +10 -11
- package/src/assets/icons/pictogram-skylink-live-tv--dark.svg +7 -8
- package/src/assets/icons/pictogram-skylink-live-tv.svg +7 -8
- package/src/assets/icons/pictogram-skylink.svg +10 -11
- package/src/assets/icons/pictogram-sms--dark.svg +5 -6
- package/src/assets/icons/pictogram-sms.svg +5 -6
- package/src/assets/icons/pictogram-theft--dark.svg +3 -7
- package/src/assets/icons/pictogram-theft.svg +3 -7
- package/src/assets/icons/pictogram-three-devices--dark.svg +4 -8
- package/src/assets/icons/pictogram-three-devices.svg +4 -8
- package/src/assets/icons/pictogram-trust--dark.svg +3 -4
- package/src/assets/icons/pictogram-trust.svg +3 -4
- package/src/assets/icons/pictogram-water-damage--dark.svg +5 -6
- package/src/assets/icons/pictogram-water-damage.svg +5 -6
- package/src/components/Accordion/Accordion.tsx +4 -0
- package/src/components/Accordion/AccordionHeader.tsx +9 -2
- package/src/components/Accordion/AccordionItem.tsx +5 -2
- package/src/components/Accordion/styles/config.scss +4 -4
- package/src/components/Accordion/styles/mixins.scss +9 -3
- package/src/components/Accordion/styles/style.scss +4 -0
- package/src/components/Accordion/tests/Accordion.unit.test.js +11 -0
- package/src/components/AnchorNavigation/AnchorNavigation.static.ts +253 -73
- package/src/components/AnchorNavigation/AnchorNavigation.tsx +20 -16
- package/src/components/AnchorNavigation/index.tsx +0 -2
- package/src/components/AnchorNavigation/styles/mixins.scss +14 -27
- package/src/components/AnchorNavigation/tests/AnchorNavigation.conformance.test.js +67 -0
- package/src/components/AnchorNavigation/tests/AnchorNavigation.unit.test.js +163 -0
- package/src/components/Bar/styles/config.scss +4 -5
- package/src/components/BlockAction/index.tsx +0 -2
- package/src/components/BlockAction/styles/mixins.scss +0 -6
- package/src/components/BodyBanner/index.tsx +0 -2
- package/src/components/Breadcrumbs/styles/mixins.scss +2 -4
- package/src/components/Button/Button.tsx +2 -2
- package/src/components/Button/index.tsx +0 -2
- package/src/components/Button/styles/config.scss +1 -1
- package/src/components/Button/styles/mixins.scss +5 -0
- package/src/components/Button/styles/style.scss +4 -0
- package/src/components/Card/Card.tsx +20 -8
- package/src/components/Card/CardSection.tsx +7 -11
- package/src/components/Card/styles/config.scss +1 -1
- package/src/components/Card/styles/mixins.scss +8 -6
- package/src/components/Card/styles/style.scss +4 -0
- package/src/components/Card/tests/Card.unit.test.js +45 -11
- package/src/components/Card/tests/CardSection.unit.test.js +36 -3
- package/src/components/Carousel/Carousel.static.ts +67 -1
- package/src/components/Carousel/Carousel.tsx +41 -19
- package/src/components/Carousel/constants.ts +2 -0
- package/src/components/Carousel/styles/config.scss +1 -2
- package/src/components/Carousel/styles/mixins.scss +35 -2
- package/src/components/Carousel/styles/style.scss +8 -0
- package/src/components/CarouselHero/CarouselHero.static.ts +528 -0
- package/src/components/CarouselHero/CarouselHero.tsx +147 -0
- package/src/components/CarouselHero/CarouselHeroItem.tsx +40 -0
- package/src/components/CarouselHero/constants.ts +36 -0
- package/src/components/CarouselHero/index.ts +2 -0
- package/src/components/CarouselHero/styles/config.scss +54 -0
- package/src/components/CarouselHero/styles/mixins.scss +278 -0
- package/src/components/CarouselHero/styles/style.scss +63 -0
- package/src/components/CarouselHero/tests/CarouselHero.conformance.test.js +130 -0
- package/src/components/CarouselHero/tests/CarouselHero.unit.test.js +346 -0
- package/src/components/CarouselHero/tests/CarouselHeroItem.conformance.test.js +135 -0
- package/src/components/CarouselHero/tests/CarouselHeroItem.unit.test.js +143 -0
- package/src/components/CarouselPromotions/styles/mixins.scss +10 -3
- package/src/components/CartTable/FooterPriceColumn.tsx +5 -3
- package/src/components/CartTable/Price.tsx +1 -1
- package/src/components/Controls/styles/config.scss +2 -2
- package/src/components/Controls/tests/Controls.test.js +0 -9
- package/src/components/Cover/index.ts +1 -2
- package/src/components/Divider/Divider.tsx +2 -16
- package/src/components/Divider/styles/config.scss +0 -17
- package/src/components/Divider/styles/mixins.scss +8 -10
- package/src/components/Divider/styles/style.scss +2 -16
- package/src/components/Divider/tests/Divider.conformance.test.js +1 -1
- package/src/components/Divider/tests/Divider.unit.test.js +0 -17
- package/src/components/Dropdown/styles/mixins.scss +1 -1
- package/src/components/Expander/Expander.tsx +4 -2
- package/src/components/Expander/styles/style.scss +7 -0
- package/src/components/Footer/Footer.tsx +86 -70
- package/src/components/Footer/constants.ts +10 -0
- package/src/components/Footer/styles/config.scss +1 -0
- package/src/components/Footer/styles/mixins.scss +172 -0
- package/src/components/Footer/styles/style.scss +48 -0
- package/src/components/Footer/tests/Footer.conformance.test.js +133 -8
- package/src/components/Footer/tests/Footer.unit.test.js +71 -6
- package/src/components/Forms/DatePicker/styles/style.scss +1 -1
- package/src/components/Forms/File/styles/mixins.scss +1 -1
- package/src/components/Forms/InputStepper/styles/style.scss +0 -66
- package/src/components/Forms/RangeSlider/styles/mixins.scss +1 -1
- package/src/components/Forms/Select/index.tsx +0 -2
- package/src/components/Forms/TextInput/styles/config.scss +1 -1
- package/src/components/Forms/styles/config.scss +3 -3
- package/src/components/Icon/iconSearchTags.ts +434 -432
- package/src/components/Icon/styles/style.scss +15 -0
- package/src/components/Icon/tests/Pictogram.unit.test.js +38 -0
- package/src/components/IconList/index.ts +2 -3
- package/src/components/Link/styles/style.scss +6 -2
- package/src/components/Link/tests/Link.conformance.test.js +5 -20
- package/src/components/Link/tests/Link.unit.test.js +1 -10
- package/src/components/List/index.ts +2 -3
- package/src/components/Loader/Loader.tsx +2 -10
- package/src/components/Loader/styles/mixins.scss +1 -1
- package/src/components/Loader/styles/style.scss +6 -4
- package/src/components/Megamenu/MegaMenuIcon.tsx +48 -0
- package/src/components/Megamenu/Megamenu.static.ts +600 -0
- package/src/components/Megamenu/Megamenu.tsx +799 -356
- package/src/components/Megamenu/MegamenuBlog.tsx +309 -0
- package/src/components/Megamenu/constants.ts +56 -0
- package/src/components/Megamenu/index.ts +2 -5
- package/src/components/Megamenu/static.ts +73 -0
- package/src/components/Megamenu/styles/config.scss +2 -13
- package/src/components/Megamenu/styles/mixins.scss +647 -208
- package/src/components/Megamenu/styles/style.scss +173 -61
- package/src/components/Modal/Modal.tsx +17 -2
- package/src/components/Modal/ModalBody.tsx +29 -14
- package/src/components/Modal/ModalProductBody.tsx +52 -0
- package/src/components/Modal/ModalProductFooter.tsx +38 -0
- package/src/components/Modal/index.ts +2 -0
- package/src/components/Modal/styles/config.scss +7 -0
- package/src/components/Modal/styles/mixins.scss +121 -14
- package/src/components/Modal/styles/style.scss +28 -0
- package/src/components/Modal/tests/Modal.unit.test.js +73 -0
- package/src/components/Modal/tests/ModalBody.unit.test.js +28 -12
- package/src/components/Pagination/Pagination.tsx +2 -2
- package/src/components/Pill/Pill.tsx +8 -3
- package/src/components/Pill/styles/config.scss +22 -2
- package/src/components/Pill/styles/style.scss +7 -3
- package/src/components/Pill/tests/Pill.conformance.test.js +7 -3
- package/src/components/Pill/tests/Pill.unit.test.js +45 -7
- package/src/components/Preview/PreviewGenerator.tsx +78 -34
- package/src/components/PromoBanner/PromoBanner.tsx +52 -34
- package/src/components/PromoBanner/styles/mixins.scss +37 -20
- package/src/components/PromoBanner/styles/style.scss +5 -11
- package/src/components/PromoBanner/tests/PromoBanner.conformance.test.js +781 -0
- package/src/components/PromoBanner/tests/PromoBanner.unit.test.js +529 -0
- package/src/components/PromotionCard/PromotionCard.tsx +13 -12
- package/src/components/PromotionCard/tests/PromotionCard.conformance.test.js +567 -0
- package/src/components/PromotionCard/tests/PromotionCard.unit.test.js +500 -0
- package/src/components/Section/Section.tsx +20 -4
- package/src/components/Section/styles/config.scss +18 -16
- package/src/components/Section/styles/mixins.scss +16 -13
- package/src/components/Section/styles/style.scss +1 -0
- package/src/components/Section/tests/Section.conformance.test.js +27 -10
- package/src/components/Section/tests/Section.unit.test.js +73 -25
- package/src/components/Tag/Tag.tsx +27 -3
- package/src/components/Tag/styles/config.scss +31 -0
- package/src/components/Tag/styles/mixins.scss +39 -3
- package/src/components/Tag/styles/style.scss +28 -2
- package/src/components/Tag/tests/Tag.conformance.test.js +19 -1
- package/src/components/Tag/tests/Tag.unit.test.js +93 -0
- package/src/components/Tile/styles/style.scss +1 -1
- package/src/components/index.ts +5 -6
- package/src/styles/base/globals.scss +19 -0
- package/src/styles/base/styleguide.scss +17 -17
- package/src/styles/export/base.js +2 -2
- package/src/styles/export/color.js +2 -2
- package/src/styles/shame.scss +2 -1
- package/src/styles/tokens/base.scss +1 -1
- package/src/styles/tokens/color.scss +12 -8
- package/src/styles/typography/mixins.scss +3 -2
- package/src/styles/utilities/border.scss +1 -1
- package/src/styles/utilities/color.scss +113 -20
- package/src/styles/utilities/index.scss +1 -0
- package/src/styles/utilities/layout.scss +9 -0
- package/src/styles/utilities/ordering.scss +44 -0
- package/build/components/Accordion/index.js +0 -16
- package/build/components/Accordion/index.js.map +0 -1
- package/build/components/Accordion/tsconfig.tsbuildinfo +0 -1
- package/build/components/Alert/index.js +0 -16
- package/build/components/Alert/index.js.map +0 -1
- package/build/components/Alert/tsconfig.tsbuildinfo +0 -1
- package/build/components/AnchorNavigation/index.js +0 -16
- package/build/components/AnchorNavigation/index.js.map +0 -1
- package/build/components/AnchorNavigation/style.css +0 -2
- package/build/components/AnchorNavigation/style.css.map +0 -1
- package/build/components/AnchorNavigation/tsconfig.tsbuildinfo +0 -1
- package/build/components/Bar/index.js +0 -16
- package/build/components/Bar/index.js.map +0 -1
- package/build/components/Bar/tsconfig.tsbuildinfo +0 -1
- package/build/components/BlockAction/index.js +0 -16
- package/build/components/BlockAction/index.js.map +0 -1
- package/build/components/BlockAction/style.css +0 -2
- package/build/components/BlockAction/style.css.map +0 -1
- package/build/components/BlockAction/tsconfig.tsbuildinfo +0 -1
- package/build/components/BodyBanner/index.js +0 -16
- package/build/components/BodyBanner/index.js.map +0 -1
- package/build/components/BodyBanner/style.css +0 -2
- package/build/components/BodyBanner/style.css.map +0 -1
- package/build/components/BodyBanner/tsconfig.tsbuildinfo +0 -1
- package/build/components/Breadcrumbs/index.js +0 -16
- package/build/components/Breadcrumbs/index.js.map +0 -1
- package/build/components/Breadcrumbs/tsconfig.tsbuildinfo +0 -1
- package/build/components/Button/index.js +0 -16
- package/build/components/Button/index.js.map +0 -1
- package/build/components/Button/style.css +0 -2
- package/build/components/Button/style.css.map +0 -1
- package/build/components/Button/tsconfig.tsbuildinfo +0 -1
- package/build/components/Buttons/index.js +0 -16
- package/build/components/Buttons/index.js.map +0 -1
- package/build/components/Buttons/tsconfig.tsbuildinfo +0 -1
- package/build/components/Card/index.js +0 -16
- package/build/components/Card/index.js.map +0 -1
- package/build/components/Card/tsconfig.tsbuildinfo +0 -1
- package/build/components/Carousel/index.js +0 -16
- package/build/components/Carousel/index.js.map +0 -1
- package/build/components/Carousel/style.css +0 -2
- package/build/components/Carousel/style.css.map +0 -1
- package/build/components/Carousel/tsconfig.tsbuildinfo +0 -1
- package/build/components/CarouselPromotions/index.js +0 -16
- package/build/components/CarouselPromotions/index.js.map +0 -1
- package/build/components/CarouselPromotions/tsconfig.tsbuildinfo +0 -1
- package/build/components/CartTable/index.js +0 -16
- package/build/components/CartTable/index.js.map +0 -1
- package/build/components/CartTable/style.css +0 -2
- package/build/components/CartTable/style.css.map +0 -1
- package/build/components/CartTable/tsconfig.tsbuildinfo +0 -1
- package/build/components/Code/index.js +0 -11
- package/build/components/Code/index.js.map +0 -1
- package/build/components/Code/style.css +0 -2
- package/build/components/Code/style.css.map +0 -1
- package/build/components/Code/tsconfig.tsbuildinfo +0 -1
- package/build/components/Container/index.js +0 -16
- package/build/components/Container/index.js.map +0 -1
- package/build/components/Container/tsconfig.tsbuildinfo +0 -1
- package/build/components/Controls/index.js +0 -16
- package/build/components/Controls/index.js.map +0 -1
- package/build/components/Controls/tsconfig.tsbuildinfo +0 -1
- package/build/components/Cover/index.js +0 -16
- package/build/components/Cover/index.js.map +0 -1
- package/build/components/Cover/style.css +0 -2
- package/build/components/Cover/style.css.map +0 -1
- package/build/components/Cover/tsconfig.tsbuildinfo +0 -1
- package/build/components/Divider/index.js +0 -16
- package/build/components/Divider/index.js.map +0 -1
- package/build/components/Divider/tsconfig.tsbuildinfo +0 -1
- package/build/components/DocumentationSidebar/index.js +0 -16
- package/build/components/DocumentationSidebar/index.js.map +0 -1
- package/build/components/DocumentationSidebar/style.css +0 -2
- package/build/components/DocumentationSidebar/style.css.map +0 -1
- package/build/components/DocumentationSidebar/tsconfig.tsbuildinfo +0 -1
- package/build/components/Dropdown/index.js +0 -16
- package/build/components/Dropdown/index.js.map +0 -1
- package/build/components/Dropdown/style.css +0 -2
- package/build/components/Dropdown/style.css.map +0 -1
- package/build/components/Dropdown/tsconfig.tsbuildinfo +0 -1
- package/build/components/Expander/index.js +0 -16
- package/build/components/Expander/index.js.map +0 -1
- package/build/components/Expander/tsconfig.tsbuildinfo +0 -1
- package/build/components/FeatureAccordion/index.js +0 -16
- package/build/components/FeatureAccordion/index.js.map +0 -1
- package/build/components/FeatureAccordion/style.css +0 -2
- package/build/components/FeatureAccordion/style.css.map +0 -1
- package/build/components/FeatureAccordion/tsconfig.tsbuildinfo +0 -1
- package/build/components/Footer/index.js +0 -16
- package/build/components/Footer/index.js.map +0 -1
- package/build/components/Footer/style.css +0 -2
- package/build/components/Footer/style.css.map +0 -1
- package/build/components/Footer/tsconfig.tsbuildinfo +0 -1
- package/build/components/Forms/index.js +0 -20
- package/build/components/Forms/index.js.map +0 -1
- package/build/components/Forms/style.css +0 -2
- package/build/components/Forms/style.css.map +0 -1
- package/build/components/Forms/tsconfig.tsbuildinfo +0 -1
- package/build/components/Gauge/index.js +0 -16
- package/build/components/Gauge/index.js.map +0 -1
- package/build/components/Gauge/tsconfig.tsbuildinfo +0 -1
- package/build/components/Grid/index.js +0 -16
- package/build/components/Grid/index.js.map +0 -1
- package/build/components/Grid/style.css +0 -2
- package/build/components/Grid/style.css.map +0 -1
- package/build/components/Grid/tsconfig.tsbuildinfo +0 -1
- package/build/components/Hero/index.js +0 -16
- package/build/components/Hero/index.js.map +0 -1
- package/build/components/Hero/style.css +0 -2
- package/build/components/Hero/style.css.map +0 -1
- package/build/components/Hero/tsconfig.tsbuildinfo +0 -1
- package/build/components/Icon/index.js +0 -11
- package/build/components/Icon/index.js.map +0 -1
- package/build/components/Icon/tsconfig.tsbuildinfo +0 -1
- package/build/components/IconList/index.js +0 -16
- package/build/components/IconList/index.js.map +0 -1
- package/build/components/IconList/style.css +0 -2
- package/build/components/IconList/style.css.map +0 -1
- package/build/components/IconList/tsconfig.tsbuildinfo +0 -1
- package/build/components/Image/index.js +0 -16
- package/build/components/Image/index.js.map +0 -1
- package/build/components/Image/tsconfig.tsbuildinfo +0 -1
- package/build/components/Link/index.js +0 -7
- package/build/components/Link/index.js.map +0 -1
- package/build/components/Link/tsconfig.tsbuildinfo +0 -1
- package/build/components/List/index.js +0 -16
- package/build/components/List/index.js.map +0 -1
- package/build/components/List/style.css +0 -2
- package/build/components/List/style.css.map +0 -1
- package/build/components/List/tsconfig.tsbuildinfo +0 -1
- package/build/components/Loader/index.js +0 -16
- package/build/components/Loader/index.js.map +0 -1
- package/build/components/Loader/tsconfig.tsbuildinfo +0 -1
- package/build/components/Megamenu/index.js +0 -20
- package/build/components/Megamenu/index.js.map +0 -1
- package/build/components/Megamenu/style.css +0 -2
- package/build/components/Megamenu/style.css.map +0 -1
- package/build/components/Megamenu/tsconfig.tsbuildinfo +0 -1
- package/build/components/Modal/index.js +0 -20
- package/build/components/Modal/index.js.map +0 -1
- package/build/components/Modal/style.css +0 -2
- package/build/components/Modal/style.css.map +0 -1
- package/build/components/Modal/tsconfig.tsbuildinfo +0 -1
- package/build/components/Pagination/index.js +0 -16
- package/build/components/Pagination/index.js.map +0 -1
- package/build/components/Pagination/tsconfig.tsbuildinfo +0 -1
- package/build/components/Pill/index.js +0 -16
- package/build/components/Pill/index.js.map +0 -1
- package/build/components/Pill/tsconfig.tsbuildinfo +0 -1
- package/build/components/Preview/index.js +0 -77
- package/build/components/Preview/index.js.map +0 -1
- package/build/components/Preview/style.css +0 -2
- package/build/components/Preview/style.css.map +0 -1
- package/build/components/Preview/tsconfig.tsbuildinfo +0 -1
- package/build/components/Progress/index.js +0 -16
- package/build/components/Progress/index.js.map +0 -1
- package/build/components/Progress/tsconfig.tsbuildinfo +0 -1
- package/build/components/PromoBanner/index.js +0 -16
- package/build/components/PromoBanner/index.js.map +0 -1
- package/build/components/PromoBanner/style.css +0 -2
- package/build/components/PromoBanner/style.css.map +0 -1
- package/build/components/PromoBanner/tsconfig.tsbuildinfo +0 -1
- package/build/components/PromotionCard/index.js +0 -16
- package/build/components/PromotionCard/index.js.map +0 -1
- package/build/components/PromotionCard/tsconfig.tsbuildinfo +0 -1
- package/build/components/Section/index.js +0 -16
- package/build/components/Section/index.js.map +0 -1
- package/build/components/Section/tsconfig.tsbuildinfo +0 -1
- package/build/components/Skeleton/index.js +0 -16
- package/build/components/Skeleton/index.js.map +0 -1
- package/build/components/Skeleton/tsconfig.tsbuildinfo +0 -1
- package/build/components/SkipLink/index.js +0 -16
- package/build/components/SkipLink/index.js.map +0 -1
- package/build/components/SkipLink/tsconfig.tsbuildinfo +0 -1
- package/build/components/Stepbar/index.js +0 -16
- package/build/components/Stepbar/index.js.map +0 -1
- package/build/components/Stepbar/tsconfig.tsbuildinfo +0 -1
- package/build/components/Sticker/index.js +0 -16
- package/build/components/Sticker/index.js.map +0 -1
- package/build/components/Sticker/tsconfig.tsbuildinfo +0 -1
- package/build/components/Table/index.js +0 -16
- package/build/components/Table/index.js.map +0 -1
- package/build/components/Table/style.css +0 -2
- package/build/components/Table/style.css.map +0 -1
- package/build/components/Table/tsconfig.tsbuildinfo +0 -1
- package/build/components/Tabs/index.js +0 -16
- package/build/components/Tabs/index.js.map +0 -1
- package/build/components/Tabs/tsconfig.tsbuildinfo +0 -1
- package/build/components/Tag/index.js +0 -16
- package/build/components/Tag/index.js.map +0 -1
- package/build/components/Tag/tsconfig.tsbuildinfo +0 -1
- package/build/components/Testimonial/index.js +0 -16
- package/build/components/Testimonial/index.js.map +0 -1
- package/build/components/Testimonial/tsconfig.tsbuildinfo +0 -1
- package/build/components/Tile/index.js +0 -16
- package/build/components/Tile/index.js.map +0 -1
- package/build/components/Tile/tsconfig.tsbuildinfo +0 -1
- package/build/components/Tooltip/index.js +0 -16
- package/build/components/Tooltip/index.js.map +0 -1
- package/build/components/Tooltip/style.css +0 -2
- package/build/components/Tooltip/style.css.map +0 -1
- package/build/components/Tooltip/tsconfig.tsbuildinfo +0 -1
- package/build/components/static.css +0 -2
- package/build/components/static.css.map +0 -1
- package/build/components/static.js +0 -10
- package/build/components/static.js.map +0 -1
- package/build/components/types/src/components/Hero/HeroPlayground.d.ts +0 -2
- package/build/components/types/src/components/Megamenu/MegamenuDropdown.d.ts +0 -17
- package/src/components/Accordion/Accordion.mdx +0 -222
- package/src/components/Alert/Alert.mdx +0 -141
- package/src/components/Bar/Bar.mdx +0 -203
- package/src/components/BlockAction/BlockAction.mdx +0 -244
- package/src/components/BodyBanner/BodyBanner.mdx +0 -268
- package/src/components/Breadcrumbs/Breadcrumbs.mdx +0 -84
- package/src/components/Button/Button.mdx +0 -273
- package/src/components/Buttons/Buttons.mdx +0 -39
- package/src/components/Card/Card.mdx +0 -334
- package/src/components/Carousel/Carousel.mdx +0 -159
- package/src/components/CarouselPromotions/CarouselPromotions.mdx +0 -246
- package/src/components/CartTable/CartTable.mdx +0 -129
- package/src/components/Container/Container.mdx +0 -73
- package/src/components/Controls/Controls.mdx +0 -469
- package/src/components/Cover/Cover.mdx +0 -87
- package/src/components/Divider/Divider.mdx +0 -65
- package/src/components/Dropdown/Dropdown.mdx +0 -260
- package/src/components/Expander/Expander.mdx +0 -153
- package/src/components/FeatureAccordion/FeatureAccordion.mdx +0 -33
- package/src/components/Forms/Autocomplete/Autocomplete.mdx +0 -198
- package/src/components/Forms/Checkbox/Checkbox.mdx +0 -139
- package/src/components/Forms/DatePicker/DatePicker.mdx +0 -149
- package/src/components/Forms/Field/Field.mdx +0 -383
- package/src/components/Forms/Fieldset/Fieldset.mdx +0 -178
- package/src/components/Forms/File/File.mdx +0 -88
- package/src/components/Forms/FormTooltip.mdx +0 -51
- package/src/components/Forms/Forms.mdx +0 -48
- package/src/components/Forms/Group/Group.mdx +0 -146
- package/src/components/Forms/Hint/Hint.mdx +0 -40
- package/src/components/Forms/InputStepper/InputStepper.mdx +0 -147
- package/src/components/Forms/Label/Label.mdx +0 -95
- package/src/components/Forms/Message/Message.mdx +0 -40
- package/src/components/Forms/Radio/Radio.mdx +0 -98
- package/src/components/Forms/RangeSlider/RangeSlider.mdx +0 -304
- package/src/components/Forms/Select/Select.mdx +0 -106
- package/src/components/Forms/TextArea/TextArea.mdx +0 -109
- package/src/components/Forms/TextInput/TextInput.mdx +0 -153
- package/src/components/Gauge/Gauge.mdx +0 -35
- package/src/components/Grid/Grid.mdx +0 -320
- package/src/components/Hero/Hero.mdx +0 -168
- package/src/components/Hero/HeroPlayground.tsx +0 -369
- package/src/components/Icon/Icon.mdx +0 -172
- package/src/components/IconList/IconList.mdx +0 -53
- package/src/components/Image/Image.mdx +0 -175
- package/src/components/Link/Link.mdx +0 -224
- package/src/components/List/List.mdx +0 -216
- package/src/components/Loader/Loader.mdx +0 -148
- package/src/components/Megamenu/MegamenuDropdown.tsx +0 -64
- package/src/components/Modal/Modal.mdx +0 -565
- package/src/components/Pagination/Pagination.mdx +0 -45
- package/src/components/Pill/Pill.mdx +0 -41
- package/src/components/Progress/Progress.mdx +0 -119
- package/src/components/PromotionCard/PromotionCard.mdx +0 -191
- package/src/components/Section/Section.mdx +0 -397
- package/src/components/Skeleton/Skeleton.mdx +0 -90
- package/src/components/SkipLink/SkipLink.mdx +0 -23
- package/src/components/Stepbar/Stepbar.mdx +0 -137
- package/src/components/Sticker/Sticker.mdx +0 -50
- package/src/components/Table/Table.mdx +0 -199
- package/src/components/Tabs/Tabs.mdx +0 -373
- package/src/components/Tag/Tag.mdx +0 -52
- package/src/components/Testimonial/Testimonial.mdx +0 -41
- package/src/components/Tile/Tile.mdx +0 -163
- package/src/components/Tooltip/Tooltip.mdx +0 -227
|
@@ -22,8 +22,8 @@ $base: (
|
|
|
22
22
|
$states: (
|
|
23
23
|
default: (
|
|
24
24
|
color: var(--color-text-default),
|
|
25
|
-
background-color: var(--color-fill-
|
|
26
|
-
border-color: var(--color-fill-
|
|
25
|
+
background-color: var(--color-fill-moderate),
|
|
26
|
+
border-color: var(--color-fill-moderate),
|
|
27
27
|
),
|
|
28
28
|
hover: (
|
|
29
29
|
color: var(--color-text-inverse),
|
|
@@ -16,15 +16,6 @@ describe("Controls Component", () => {
|
|
|
16
16
|
expect(button).toHaveClass("controls");
|
|
17
17
|
});
|
|
18
18
|
|
|
19
|
-
it("should render with default styling classes", () => {
|
|
20
|
-
// Test that default CSS classes are applied correctly
|
|
21
|
-
render(<Controls icon="menu" />);
|
|
22
|
-
|
|
23
|
-
const button = screen.getByRole("button");
|
|
24
|
-
expect(button).toHaveClass("controls");
|
|
25
|
-
expect(button).not.toHaveClass("controls--inverse");
|
|
26
|
-
});
|
|
27
|
-
|
|
28
19
|
it("should render with custom className", () => {
|
|
29
20
|
// Test that custom CSS classes can be added
|
|
30
21
|
render(<Controls icon="search" className="custom-class" />);
|
|
@@ -5,36 +5,22 @@ import { Icon } from "../Icon";
|
|
|
5
5
|
|
|
6
6
|
export interface DividerProps
|
|
7
7
|
extends Omit<HTMLAttributes<HTMLDivElement>, "content"> {
|
|
8
|
-
/** Custom background color */
|
|
9
|
-
color?: "black" | "white";
|
|
10
8
|
/** Custom content inside divider */
|
|
11
9
|
content?: ReactNode;
|
|
12
10
|
/** Icon which will be rendered inside divider */
|
|
13
11
|
icon?: string;
|
|
14
|
-
/** Divider line has width of 1px */
|
|
15
|
-
thinLine?: boolean;
|
|
16
12
|
}
|
|
17
13
|
|
|
18
14
|
const CLASS_ROOT = "divider";
|
|
19
15
|
|
|
20
16
|
const Divider: React.FC<DividerProps> = ({
|
|
21
17
|
className,
|
|
22
|
-
color,
|
|
23
18
|
icon,
|
|
24
19
|
content,
|
|
25
|
-
thinLine,
|
|
26
20
|
...other
|
|
27
21
|
}) => {
|
|
28
|
-
const classes = cx(
|
|
29
|
-
|
|
30
|
-
{
|
|
31
|
-
[`${CLASS_ROOT}--${color}`]: color,
|
|
32
|
-
},
|
|
33
|
-
className,
|
|
34
|
-
);
|
|
35
|
-
const lineClass = cx(`${CLASS_ROOT}__line`, {
|
|
36
|
-
[`${CLASS_ROOT}__line--thin`]: thinLine,
|
|
37
|
-
});
|
|
22
|
+
const classes = cx(CLASS_ROOT, className);
|
|
23
|
+
const lineClass = `${CLASS_ROOT}__line`;
|
|
38
24
|
const contentClass = `${CLASS_ROOT}__content`;
|
|
39
25
|
|
|
40
26
|
return (
|
|
@@ -1,26 +1,9 @@
|
|
|
1
|
-
@use "../../../styles/tokens/color";
|
|
2
1
|
@use "../../../styles/tokens/space";
|
|
3
2
|
|
|
4
3
|
$base: (
|
|
5
4
|
font-weight: bold,
|
|
6
5
|
);
|
|
7
6
|
|
|
8
|
-
$colors: (
|
|
9
|
-
"default": (
|
|
10
|
-
// TODO: Use color tokens instead of hardcoded values
|
|
11
|
-
content: color.$gray-700,
|
|
12
|
-
line: var(--color-border-subtle),
|
|
13
|
-
),
|
|
14
|
-
"black": (
|
|
15
|
-
content: color.$black,
|
|
16
|
-
line: color.$black,
|
|
17
|
-
),
|
|
18
|
-
"white": (
|
|
19
|
-
content: color.$white,
|
|
20
|
-
line: color.$white,
|
|
21
|
-
),
|
|
22
|
-
);
|
|
23
|
-
|
|
24
7
|
$spacing: (
|
|
25
8
|
default: space.get(),
|
|
26
9
|
md: space.get("large"),
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@use "../../../styles/tools/generate";
|
|
3
3
|
@use "../../../styles/tools/map";
|
|
4
4
|
@use "../../../styles/tokens/breakpoint";
|
|
5
|
+
@use "../../../styles/tokens/color";
|
|
5
6
|
|
|
6
7
|
@mixin divider-base($base: config.$base) {
|
|
7
8
|
display: flex;
|
|
@@ -14,7 +15,8 @@
|
|
|
14
15
|
|
|
15
16
|
@each $breakpoint, $value in config.$spacing {
|
|
16
17
|
@include breakpoint.get($breakpoint) {
|
|
17
|
-
padding: $value;
|
|
18
|
+
padding-top: $value;
|
|
19
|
+
padding-bottom: $value;
|
|
18
20
|
}
|
|
19
21
|
}
|
|
20
22
|
}
|
|
@@ -26,20 +28,16 @@
|
|
|
26
28
|
justify-content: center;
|
|
27
29
|
}
|
|
28
30
|
|
|
29
|
-
@mixin divider-content-color(
|
|
30
|
-
color:
|
|
31
|
+
@mixin divider-content-color() {
|
|
32
|
+
color: var(--color-text-secondary);
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
@mixin divider-line() {
|
|
34
|
-
border-width: 0 0
|
|
36
|
+
border-width: 0 0 1px;
|
|
35
37
|
border-style: solid;
|
|
36
38
|
flex-grow: 1;
|
|
37
39
|
}
|
|
38
40
|
|
|
39
|
-
@mixin divider-line-
|
|
40
|
-
border-
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
@mixin divider-line-color($color, $config: config.$colors) {
|
|
44
|
-
border-color: map.map-deep-get($config, $color, "line");
|
|
41
|
+
@mixin divider-line-color() {
|
|
42
|
+
border-color: var(--color-border-strong);
|
|
45
43
|
}
|
|
@@ -8,26 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
&__content {
|
|
10
10
|
@include mixins.divider-content;
|
|
11
|
-
|
|
12
|
-
@each $color, $values in config.$colors {
|
|
13
|
-
#{generate.variant-name($color, ".divider--")} & {
|
|
14
|
-
@include mixins.divider-content-color($color);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
11
|
+
@include mixins.divider-content-color();
|
|
17
12
|
}
|
|
18
13
|
|
|
19
14
|
&__line {
|
|
20
15
|
@include mixins.divider-line;
|
|
21
|
-
|
|
22
|
-
&--thin {
|
|
23
|
-
@include mixins.divider-line-thin;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
@each $color, $values in config.$colors {
|
|
27
|
-
#{generate.variant-name($color, ".divider--")} & {
|
|
28
|
-
@include mixins.divider-line-color($color);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
16
|
+
@include mixins.divider-line-color();
|
|
31
17
|
}
|
|
32
18
|
}
|
|
33
19
|
}
|
|
@@ -22,23 +22,6 @@ describe("rendering Divider", () => {
|
|
|
22
22
|
expect(getByTestId("test-id")).toHaveClass("divider");
|
|
23
23
|
expect(getByTestId("test-id")).toHaveClass("test-class");
|
|
24
24
|
});
|
|
25
|
-
|
|
26
|
-
it("child div has class divider__line--thin when thinLine is set to true", () => {
|
|
27
|
-
const { container } = render(<Divider thinLine={true} />);
|
|
28
|
-
expect(
|
|
29
|
-
container.getElementsByClassName("divider__line--thin").length,
|
|
30
|
-
).toBe(1);
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
["black", "white"].map((color) => {
|
|
34
|
-
it(`has divider--${color} class when color is set to ${color}`, () => {
|
|
35
|
-
const { getByTestId } = render(
|
|
36
|
-
<Divider color={color} data-testid="test-id" />,
|
|
37
|
-
);
|
|
38
|
-
expect(getByTestId("test-id")).toHaveClass("divider");
|
|
39
|
-
expect(getByTestId("test-id")).toHaveClass(`divider--${color}`);
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
25
|
it("has class divider__content when content prop is set", () => {
|
|
43
26
|
const { container } = render(<Divider content="test-content" />);
|
|
44
27
|
expect(container.getElementsByClassName("divider__content").length).toBe(
|
|
@@ -26,8 +26,8 @@ interface ExpanderProps {
|
|
|
26
26
|
className?: string;
|
|
27
27
|
/** Child elements */
|
|
28
28
|
children?: React.ReactNode;
|
|
29
|
-
/**
|
|
30
|
-
|
|
29
|
+
/** Expander takes full width of its container */
|
|
30
|
+
isFullWidth?: boolean;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
export const Expander: React.FC<ExpanderProps> = (props) => {
|
|
@@ -39,6 +39,7 @@ export const Expander: React.FC<ExpanderProps> = (props) => {
|
|
|
39
39
|
renderSummary,
|
|
40
40
|
renderSummaryOpened,
|
|
41
41
|
colorScheme,
|
|
42
|
+
isFullWidth,
|
|
42
43
|
...other
|
|
43
44
|
} = props;
|
|
44
45
|
const [expanderRef] = useStatic(ExpanderStatic);
|
|
@@ -46,6 +47,7 @@ export const Expander: React.FC<ExpanderProps> = (props) => {
|
|
|
46
47
|
const classes = cx(
|
|
47
48
|
CLASS_ROOT,
|
|
48
49
|
{
|
|
50
|
+
[`${CLASS_ROOT}--fullwidth`]: isFullWidth,
|
|
49
51
|
"is-dark": colorScheme === "dark",
|
|
50
52
|
"is-light": colorScheme === "light",
|
|
51
53
|
},
|
|
@@ -1,90 +1,106 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import cx from "classnames";
|
|
3
3
|
|
|
4
|
-
import { Section } from "../Section";
|
|
5
|
-
import { SectionProps } from "../Section/Section";
|
|
6
|
-
import { Image } from "../Image";
|
|
7
|
-
import { Grid, GridCol } from "../Grid";
|
|
8
|
-
import { Link } from "../Link";
|
|
9
4
|
import footerData from "./data";
|
|
10
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
CLASS_BOTTOM,
|
|
7
|
+
CLASS_BOTTOM_COPYRIGHT,
|
|
8
|
+
CLASS_CONTAINER,
|
|
9
|
+
CLASS_GRID,
|
|
10
|
+
CLASS_LIST,
|
|
11
|
+
CLASS_LIST_INLINE,
|
|
12
|
+
CLASS_LOGO,
|
|
13
|
+
CLASS_ROOT,
|
|
14
|
+
CLASS_TITLE,
|
|
15
|
+
} from "./constants";
|
|
11
16
|
|
|
12
17
|
interface FooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
13
|
-
/** Sets Footer to use inverse color scheme */
|
|
14
|
-
isInverse?: boolean;
|
|
15
|
-
/** Custom data to override default footer data */
|
|
16
18
|
data?: typeof footerData;
|
|
17
19
|
className?: string;
|
|
18
20
|
}
|
|
19
21
|
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
const Footer: React.FC<FooterProps & SectionProps> = ({
|
|
23
|
-
className,
|
|
24
|
-
isInverse,
|
|
25
|
-
data = footerData,
|
|
26
|
-
...other
|
|
27
|
-
}) => {
|
|
28
|
-
const classes = cx(
|
|
29
|
-
CLASS_ROOT,
|
|
30
|
-
{
|
|
31
|
-
[`${CLASS_ROOT}--inverse`]: isInverse,
|
|
32
|
-
},
|
|
33
|
-
className,
|
|
34
|
-
);
|
|
35
|
-
|
|
22
|
+
const Footer: React.FC<FooterProps> = ({ className, data = footerData }) => {
|
|
36
23
|
return (
|
|
37
|
-
<
|
|
38
|
-
<
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
xs: 12,
|
|
47
|
-
}}
|
|
48
|
-
key={`footer-column-${index}`}
|
|
24
|
+
<footer className={cx(CLASS_ROOT, className)}>
|
|
25
|
+
<div className={CLASS_CONTAINER}>
|
|
26
|
+
<a href="/" aria-label="Odkaz na úvodnú stránku" className={CLASS_LOGO}>
|
|
27
|
+
<svg
|
|
28
|
+
width="48"
|
|
29
|
+
height="48"
|
|
30
|
+
viewBox="0 0 48 48"
|
|
31
|
+
fill="none"
|
|
32
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
49
33
|
>
|
|
50
|
-
<
|
|
51
|
-
<
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
34
|
+
<path d="M48 0H0V48H48V0Z" fill="black" />
|
|
35
|
+
<path
|
|
36
|
+
fillRule="evenodd"
|
|
37
|
+
clipRule="evenodd"
|
|
38
|
+
d="M48 48H0V0H48V48Z"
|
|
39
|
+
fill="#FF7900"
|
|
40
|
+
/>
|
|
41
|
+
<path
|
|
42
|
+
d="M5.9078 44.1298C4.1702 44.1298 2.60156 43.0229 2.60156 40.6047C2.60156 38.1855 4.16924 37.0796 5.9078 37.0796C7.6454 37.0796 9.21116 38.1865 9.21116 40.6047C9.21116 43.0229 7.64636 44.1298 5.9078 44.1298ZM5.9078 38.5657C4.59356 38.5657 4.35356 39.7494 4.35356 40.6047C4.35356 41.4591 4.59356 42.6457 5.9078 42.6457C7.22204 42.6457 7.46204 41.4601 7.46204 40.6047C7.46204 39.7503 7.22204 38.5657 5.9078 38.5657Z"
|
|
43
|
+
fill="white"
|
|
44
|
+
/>
|
|
45
|
+
<path
|
|
46
|
+
fillRule="evenodd"
|
|
47
|
+
clipRule="evenodd"
|
|
48
|
+
d="M10.418 37.2559H12.0912V38.0412C12.41 37.6179 13.1952 37.1196 13.9316 37.1196C14.0016 37.1196 14.088 37.1196 14.16 37.1283V38.7795H14.0736C13.3095 38.7795 12.4733 38.8985 12.2026 39.4927V43.9356H10.418V37.2559Z"
|
|
49
|
+
fill="white"
|
|
50
|
+
/>
|
|
51
|
+
<path
|
|
52
|
+
d="M18.831 43.3547C18.1777 43.7913 17.4087 44.0223 16.623 44.0181C15.375 44.0181 14.6367 43.1887 14.6367 42.0751C14.6367 40.5794 16.0114 39.7903 18.8444 39.4706V39.0981C18.8444 38.6133 18.4767 38.3291 17.7961 38.3291C17.1164 38.3291 16.5634 38.5989 16.165 39.0971L14.9794 38.4223C15.6015 37.5506 16.55 37.1147 17.8239 37.1147C19.5673 37.1147 20.5455 37.8703 20.5455 39.0981C20.5455 39.0981 20.5436 43.9269 20.5455 43.9394H18.9865L18.831 43.3547ZM16.3686 41.9474C16.3686 42.3967 16.6498 42.8162 17.1606 42.8162C17.7126 42.8162 18.2511 42.5877 18.7887 42.1125V40.5304C17.1471 40.733 16.3686 41.1573 16.3686 41.9474Z"
|
|
53
|
+
fill="white"
|
|
54
|
+
/>
|
|
55
|
+
<path
|
|
56
|
+
fillRule="evenodd"
|
|
57
|
+
clipRule="evenodd"
|
|
58
|
+
d="M21.9336 37.4342L23.3899 37.2336L23.5512 38.0256C24.371 37.4246 25.0229 37.1059 25.8437 37.1059C27.2184 37.1059 27.9288 37.8355 27.9288 39.2793V43.9296H26.1691V39.5846C26.1691 38.7667 25.9579 38.399 25.3214 38.399C24.7973 38.399 24.2731 38.6361 23.6741 39.1392V43.9296H21.9336V37.4342Z"
|
|
59
|
+
fill="white"
|
|
60
|
+
/>
|
|
61
|
+
<path
|
|
62
|
+
d="M32.2317 42.5003C33.5642 42.4907 33.6784 41.1323 33.6784 40.2491C33.6784 39.2008 33.1677 38.355 32.2192 38.355C31.5885 38.355 30.8819 38.8158 30.8819 40.3221C30.8819 41.1438 30.9405 42.5118 32.2317 42.5003ZM35.3671 37.2328V43.5582C35.3671 44.6718 35.2787 46.515 32.0983 46.5314C30.785 46.541 29.5658 46.013 29.3239 44.8677L31.0567 44.5874C31.1296 44.9166 31.3322 45.2421 32.3152 45.2421C33.2263 45.2421 33.664 44.8072 33.664 43.7637V42.9851L33.641 42.9611C33.3616 43.4622 32.9373 43.9355 31.9168 43.9355C30.3578 43.9355 29.1328 42.8546 29.1328 40.5966C29.1328 38.3627 30.3981 37.1118 31.817 37.109C33.1514 37.107 33.6429 37.7147 33.76 38.0334L33.736 38.0315L33.8829 37.2328H35.3671ZM39.5709 44.0584C37.6029 44.0584 36.4279 42.7912 36.4279 40.5928C36.4279 38.3704 37.6163 37.1051 39.5431 37.1051C41.4698 37.1051 42.616 38.3339 42.616 40.5045C42.616 40.6216 42.6016 40.7349 42.6016 40.8501H38.1539C38.1664 42.1173 38.6925 42.7557 39.7274 42.7557C40.3907 42.7557 40.8314 42.4869 41.2442 41.9003L42.5306 42.6136C41.9642 43.5611 40.9427 44.0584 39.5709 44.0584ZM40.8899 39.7096C40.8899 38.8178 40.3773 38.2917 39.5431 38.2917C38.7482 38.2917 38.2519 38.8062 38.1827 39.7106L40.8899 39.7096ZM45.6256 34.7214L44.9776 36.3966L44.3191 34.7214H43.7546V36.9294H44.1203V35.0872H44.1299L44.8547 36.9304H45.088L45.808 35.0872H45.8195V36.9304H46.1824V34.7224L45.6256 34.7214ZM41.56 34.7214V35.0152H42.2503V36.9304H42.6151V35.0152H43.3072V34.7214H41.56Z"
|
|
63
|
+
fill="white"
|
|
64
|
+
/>
|
|
65
|
+
</svg>
|
|
66
|
+
</a>
|
|
67
|
+
|
|
68
|
+
<div className={CLASS_GRID}>
|
|
69
|
+
{data.columns.map((column, index) => (
|
|
70
|
+
<div key={`footer-column-${index}`}>
|
|
71
|
+
<h5 className={CLASS_TITLE}>{column.title}</h5>
|
|
72
|
+
<ul className={CLASS_LIST}>
|
|
73
|
+
{column.links.map((link, linkIndex) => (
|
|
74
|
+
<li
|
|
75
|
+
className="mb-small"
|
|
76
|
+
key={`footer-link-${index}-${linkIndex}`}
|
|
77
|
+
>
|
|
78
|
+
<a href={link.url}>{link.label}</a>
|
|
79
|
+
</li>
|
|
80
|
+
))}
|
|
81
|
+
</ul>
|
|
82
|
+
</div>
|
|
83
|
+
))}
|
|
84
|
+
</div>
|
|
66
85
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
86
|
+
<hr />
|
|
87
|
+
{/* TODO - socky siete */}
|
|
88
|
+
<p>Sledujte nás</p>
|
|
70
89
|
|
|
71
|
-
|
|
90
|
+
<hr />
|
|
72
91
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
<Bar className="mb-none" space="small">
|
|
92
|
+
<div className={CLASS_BOTTOM}>
|
|
93
|
+
<ul className={cx(CLASS_LIST, CLASS_LIST_INLINE)}>
|
|
76
94
|
{data.bottomLinks?.map((link, index) => (
|
|
77
|
-
<
|
|
78
|
-
<
|
|
79
|
-
|
|
80
|
-
</Link>
|
|
81
|
-
</BarItem>
|
|
95
|
+
<li className="mr-small" key={`footer-legal-link-${index}`}>
|
|
96
|
+
<a href={link.url}>{link.label}</a>
|
|
97
|
+
</li>
|
|
82
98
|
))}
|
|
83
|
-
</
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
</
|
|
87
|
-
</
|
|
99
|
+
</ul>
|
|
100
|
+
<span className={CLASS_BOTTOM_COPYRIGHT}>{data.copyright}</span>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
</footer>
|
|
88
104
|
);
|
|
89
105
|
};
|
|
90
106
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const CLASS_ROOT = "footer";
|
|
2
|
+
|
|
3
|
+
export const CLASS_CONTAINER = `${CLASS_ROOT}__container`;
|
|
4
|
+
export const CLASS_GRID = `${CLASS_ROOT}__grid`;
|
|
5
|
+
export const CLASS_LOGO = `${CLASS_ROOT}__logo`;
|
|
6
|
+
export const CLASS_TITLE = `${CLASS_ROOT}__title`;
|
|
7
|
+
export const CLASS_LIST = `${CLASS_ROOT}__list`;
|
|
8
|
+
export const CLASS_LIST_INLINE = `${CLASS_ROOT}__list--inline`;
|
|
9
|
+
export const CLASS_BOTTOM = `${CLASS_ROOT}__bottom`;
|
|
10
|
+
export const CLASS_BOTTOM_COPYRIGHT = `${CLASS_ROOT}__bottom-copyright`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$class-root: ".footer" !default;
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../../../styles/tools/convert";
|
|
3
|
+
@use "../../../styles/tokens/color";
|
|
4
|
+
@use "../../../styles/tokens/base";
|
|
5
|
+
@use "../../../styles/tokens/breakpoint";
|
|
6
|
+
@use "../../../styles/tools/generate";
|
|
7
|
+
@use "../../../styles/tools/visibility" as visibility;
|
|
8
|
+
@use "../../Container/styles/mixins" as container;
|
|
9
|
+
@use "../../../styles/typography/mixins" as typography;
|
|
10
|
+
@use "../../../styles/typography/config" as typographyConfig;
|
|
11
|
+
|
|
12
|
+
@mixin globals {
|
|
13
|
+
.sr-only {
|
|
14
|
+
@include visibility.visually-hidden;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
a {
|
|
18
|
+
color: var(--color-text-default);
|
|
19
|
+
text-decoration: none;
|
|
20
|
+
font-size: inherit;
|
|
21
|
+
|
|
22
|
+
&:hover,
|
|
23
|
+
&:focus,
|
|
24
|
+
&:active {
|
|
25
|
+
text-decoration: underline;
|
|
26
|
+
text-underline-offset: convert.to-rem(4px);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:focus-visible {
|
|
30
|
+
outline: 2px solid var(--color-border-accent);
|
|
31
|
+
outline-offset: 2px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
a[href],
|
|
36
|
+
area[href],
|
|
37
|
+
input,
|
|
38
|
+
select,
|
|
39
|
+
textarea,
|
|
40
|
+
button,
|
|
41
|
+
[type="button"],
|
|
42
|
+
iframe,
|
|
43
|
+
[tabindex]:not([tabindex="-1"]),
|
|
44
|
+
[contentEditable="true"] {
|
|
45
|
+
@include base.focusring;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
* {
|
|
49
|
+
box-sizing: border-box;
|
|
50
|
+
letter-spacing: convert.to-rem(-0.1px);
|
|
51
|
+
line-height: convert.to-rem(18px);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
::selection {
|
|
55
|
+
background-color: base.$selection-background;
|
|
56
|
+
color: base.$text-color;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
hr {
|
|
60
|
+
margin-top: convert.to-rem(30px);
|
|
61
|
+
margin-bottom: convert.to-rem(30px);
|
|
62
|
+
border: 0;
|
|
63
|
+
border-top: 1px solid var(--color-border-subtle);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
p,
|
|
67
|
+
ul {
|
|
68
|
+
font-size: convert.to-rem(14px);
|
|
69
|
+
line-height: convert.to-rem(17.5px);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@mixin base {
|
|
74
|
+
font-size: 1rem;
|
|
75
|
+
color: var(--color-text-default);
|
|
76
|
+
background-color: var(--color-surface-primary);
|
|
77
|
+
box-sizing: border-box;
|
|
78
|
+
font-family: #{base.$font-family};
|
|
79
|
+
padding: convert.to-rem(60px) 0;
|
|
80
|
+
|
|
81
|
+
@include breakpoint.get("md", "down") {
|
|
82
|
+
padding: convert.to-rem(30px) 0;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@mixin container {
|
|
87
|
+
@include container.base;
|
|
88
|
+
|
|
89
|
+
margin-top: 0;
|
|
90
|
+
margin-bottom: 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@mixin grid {
|
|
94
|
+
display: grid;
|
|
95
|
+
gap: convert.to-rem(30px);
|
|
96
|
+
row-gap: convert.to-rem(40px);
|
|
97
|
+
grid-template-columns: repeat(1, 1fr);
|
|
98
|
+
|
|
99
|
+
@include breakpoint.get("sm") {
|
|
100
|
+
grid-template-columns: repeat(2, 1fr);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@include breakpoint.get("md") {
|
|
104
|
+
grid-template-columns: repeat(3, 1fr);
|
|
105
|
+
gap: convert.to-rem(15px);
|
|
106
|
+
row-gap: convert.to-rem(20px);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@include breakpoint.get("lg") {
|
|
110
|
+
grid-template-columns: repeat(4, 1fr);
|
|
111
|
+
gap: convert.to-rem(30px);
|
|
112
|
+
row-gap: convert.to-rem(40px);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@mixin logo {
|
|
117
|
+
display: inline-flex;
|
|
118
|
+
margin-bottom: convert.to-rem(60px);
|
|
119
|
+
|
|
120
|
+
@include breakpoint.get("md", "down") {
|
|
121
|
+
margin-bottom: convert.to-rem(30px);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@mixin title {
|
|
126
|
+
@include generate.responsive-css-map(map.get(typographyConfig.$headings, 5));
|
|
127
|
+
margin-top: 0;
|
|
128
|
+
margin-bottom: convert.to-rem(30px);
|
|
129
|
+
color: var(--color-text-default);
|
|
130
|
+
|
|
131
|
+
@include breakpoint.get("md", "down") {
|
|
132
|
+
margin-bottom: convert.to-rem(25px);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@mixin list {
|
|
137
|
+
@include typography.list-unstyled;
|
|
138
|
+
|
|
139
|
+
li {
|
|
140
|
+
margin-bottom: convert.to-rem(10px);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
@mixin list-inline {
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-wrap: wrap;
|
|
147
|
+
gap: convert.to-rem(10px);
|
|
148
|
+
|
|
149
|
+
li {
|
|
150
|
+
margin: 0;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@mixin bottom {
|
|
155
|
+
display: grid;
|
|
156
|
+
gap: convert.to-rem(30px);
|
|
157
|
+
row-gap: convert.to-rem(40px);
|
|
158
|
+
grid-template-columns: repeat(1, 1fr);
|
|
159
|
+
align-items: end;
|
|
160
|
+
|
|
161
|
+
@include breakpoint.get("md") {
|
|
162
|
+
grid-template-columns: 3fr 1fr;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
@mixin bottom-copyright {
|
|
167
|
+
text-align: right;
|
|
168
|
+
|
|
169
|
+
@include breakpoint.get("md", "down") {
|
|
170
|
+
text-align: inherit;
|
|
171
|
+
}
|
|
172
|
+
}
|