@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
package/src/components/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../styles/before-components.scss";
|
|
2
1
|
import { Accordion, AccordionItem } from "./Accordion";
|
|
3
2
|
import { Alert } from "./Alert";
|
|
3
|
+
import { AnchorNavigation } from "./AnchorNavigation";
|
|
4
4
|
import { Tag, TagButton } from "./Tag";
|
|
5
5
|
import { Bar, BarBreak, BarItem } from "./Bar";
|
|
6
6
|
import {
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
} from "./Button";
|
|
21
21
|
import { Buttons } from "./Buttons";
|
|
22
22
|
import { Carousel } from "./Carousel";
|
|
23
|
+
import { CarouselHero, CarouselHeroItem } from "./CarouselHero";
|
|
23
24
|
import { CarouselPromotions } from "./CarouselPromotions";
|
|
24
25
|
import { CartTable } from "./CartTable";
|
|
25
26
|
import { Container } from "./Container";
|
|
@@ -33,7 +34,6 @@ import {
|
|
|
33
34
|
} from "./Dropdown";
|
|
34
35
|
import { Expander } from "./Expander/Expander";
|
|
35
36
|
import { FeatureAccordion, FeatureAccordionItem } from "./FeatureAccordion";
|
|
36
|
-
import { Footer } from "./Footer";
|
|
37
37
|
import { Card, CardSection, CardProductHeader } from "./Card";
|
|
38
38
|
import { Icon, Pictogram } from "./Icon";
|
|
39
39
|
import { Gauge } from "./Gauge";
|
|
@@ -41,7 +41,6 @@ import { Grid, GridCol } from "./Grid";
|
|
|
41
41
|
import { Image } from "./Image";
|
|
42
42
|
import { Link } from "./Link";
|
|
43
43
|
import { Loader } from "./Loader";
|
|
44
|
-
import { MegamenuDropdown } from "./Megamenu";
|
|
45
44
|
import {
|
|
46
45
|
Modal,
|
|
47
46
|
ModalBody,
|
|
@@ -87,7 +86,6 @@ import { Tab, TabPanel, Tabs } from "./Tabs";
|
|
|
87
86
|
import { Table } from "./Table";
|
|
88
87
|
import { Tile } from "./Tile";
|
|
89
88
|
import { Tooltip, InfoTooltip } from "./Tooltip";
|
|
90
|
-
import "../styles/after-components.scss";
|
|
91
89
|
import { Cover } from "./Cover";
|
|
92
90
|
import { Testimonial } from "./Testimonial";
|
|
93
91
|
import { Hero } from "./Hero";
|
|
@@ -97,6 +95,7 @@ export {
|
|
|
97
95
|
Accordion,
|
|
98
96
|
AccordionItem,
|
|
99
97
|
Alert,
|
|
98
|
+
AnchorNavigation,
|
|
100
99
|
Autocomplete,
|
|
101
100
|
Bar,
|
|
102
101
|
BarBreak,
|
|
@@ -116,6 +115,8 @@ export {
|
|
|
116
115
|
CardProductHeader,
|
|
117
116
|
CardSection,
|
|
118
117
|
Carousel,
|
|
118
|
+
CarouselHero,
|
|
119
|
+
CarouselHeroItem,
|
|
119
120
|
CarouselPromotions,
|
|
120
121
|
CartTable,
|
|
121
122
|
Checkbox,
|
|
@@ -133,7 +134,6 @@ export {
|
|
|
133
134
|
Field,
|
|
134
135
|
Fieldset,
|
|
135
136
|
File,
|
|
136
|
-
Footer,
|
|
137
137
|
Gauge,
|
|
138
138
|
Grid,
|
|
139
139
|
GridCol,
|
|
@@ -152,7 +152,6 @@ export {
|
|
|
152
152
|
List,
|
|
153
153
|
ListItem,
|
|
154
154
|
Loader,
|
|
155
|
-
MegamenuDropdown,
|
|
156
155
|
Message,
|
|
157
156
|
Modal,
|
|
158
157
|
ModalBody,
|
|
@@ -28,8 +28,27 @@
|
|
|
28
28
|
color: var(--color-text-default);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
:root {
|
|
32
|
+
--extra-scroll-margin: 0;
|
|
33
|
+
--header-height: 80px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@media screen and (min-width: 992px) {
|
|
37
|
+
:root {
|
|
38
|
+
--header-height: 120px;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:target {
|
|
43
|
+
scroll-margin-top: calc(
|
|
44
|
+
var(--header-height) + var(--extra-scroll-margin) - 1px
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
31
48
|
html {
|
|
32
49
|
font-size: base.$font-size;
|
|
50
|
+
scroll-padding-top: unset;
|
|
51
|
+
overflow-x: hidden;
|
|
33
52
|
}
|
|
34
53
|
|
|
35
54
|
html,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
@use
|
|
2
|
-
@use
|
|
3
|
-
@use
|
|
4
|
-
@use
|
|
5
|
-
@use
|
|
6
|
-
@use
|
|
7
|
-
@use
|
|
8
|
-
@use
|
|
1
|
+
@use "../tokens/color";
|
|
2
|
+
@use "../tokens/space";
|
|
3
|
+
@use "../tools/convert";
|
|
4
|
+
@use "../tools/text";
|
|
5
|
+
@use "../tools/generate";
|
|
6
|
+
@use "../tools/layout";
|
|
7
|
+
@use "../typography/config" as typographyConfig;
|
|
8
|
+
@use "sass:map" as sassmap;
|
|
9
9
|
|
|
10
10
|
main {
|
|
11
11
|
min-height: 100vh;
|
|
@@ -13,9 +13,9 @@ main {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.l-debug {
|
|
16
|
-
padding: space.get(
|
|
17
|
-
background-color: color
|
|
18
|
-
border: 1px solid color
|
|
16
|
+
padding: space.get("small");
|
|
17
|
+
background-color: var(--color-surface-subtle);
|
|
18
|
+
border: 1px solid var(--color-border-strong);
|
|
19
19
|
|
|
20
20
|
@include layout.reset-last-child-margin-bottom;
|
|
21
21
|
}
|
|
@@ -29,7 +29,7 @@ main {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.code-wrapper {
|
|
32
|
-
border: 1px solid color
|
|
32
|
+
border: 1px solid var(--color-border-strong);
|
|
33
33
|
|
|
34
34
|
pre {
|
|
35
35
|
margin-bottom: 0 !important;
|
|
@@ -57,17 +57,17 @@ main {
|
|
|
57
57
|
width: convert.to-rem(220px);
|
|
58
58
|
min-height: convert.to-rem(40px);
|
|
59
59
|
margin-bottom: space.get();
|
|
60
|
-
margin-right: space.get(
|
|
60
|
+
margin-right: space.get("xsmall");
|
|
61
61
|
overflow-wrap: anywhere;
|
|
62
62
|
|
|
63
63
|
.icon {
|
|
64
64
|
cursor: pointer;
|
|
65
65
|
flex-shrink: 0;
|
|
66
|
-
margin-right: space.get(
|
|
66
|
+
margin-right: space.get("small");
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.icon:hover {
|
|
70
|
-
color: color
|
|
70
|
+
color: var(--color-text-accent);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
}
|
|
@@ -122,7 +122,7 @@ main > div {
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
> h4 {
|
|
125
|
-
@include generate.css-map(typographyConfig.$body-text,
|
|
125
|
+
@include generate.css-map(typographyConfig.$body-text, "large");
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
|
|
@@ -130,5 +130,5 @@ main > div {
|
|
|
130
130
|
main > div > h1 + p,
|
|
131
131
|
main > div > h1 + p + p,
|
|
132
132
|
main > div > h1 + p + p + p {
|
|
133
|
-
@include generate.css-map(typographyConfig.$body-text,
|
|
133
|
+
@include generate.css-map(typographyConfig.$body-text, "large");
|
|
134
134
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
// Do not edit this file directly - edit the SCSS source instead
|
|
3
3
|
|
|
4
4
|
export const exports = {
|
|
5
|
-
"font-family": "
|
|
5
|
+
"font-family": "OrangeSK Neue, Helvetica Neue, helvetica, arial, sans-serif",
|
|
6
6
|
"font-size": "16px",
|
|
7
7
|
"line-height": "1.25",
|
|
8
8
|
"background": "var(--color-background-primary)",
|
|
9
9
|
"text-color": "var(--color-text-default)",
|
|
10
10
|
"focus-outline": "2px solid var(--color-border-contrast)",
|
|
11
|
-
"selection-background": "rgba(241,
|
|
11
|
+
"selection-background": "rgba(241, 94, 0, 0.9)"
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
export default exports;
|
package/src/styles/shame.scss
CHANGED
|
@@ -5,16 +5,18 @@ $colors-light: (
|
|
|
5
5
|
background-secondary: #f4f4f4,
|
|
6
6
|
background-contrast: #141414,
|
|
7
7
|
background-accent: #fff6ed,
|
|
8
|
+
background-accent1-blog: #fff6cc,
|
|
9
|
+
background-accent2-blog: #eee7f7,
|
|
8
10
|
surface-primary: #ffffff,
|
|
9
11
|
surface-secondary: #ff7900,
|
|
10
|
-
surface-tertiary: #
|
|
12
|
+
surface-tertiary: #f15e00,
|
|
11
13
|
surface-subtle: #eeeeee,
|
|
12
14
|
surface-moderate: #dddddd,
|
|
13
15
|
surface-contrast: #141414,
|
|
14
16
|
surface-accent: #fff6ed,
|
|
15
17
|
fill-primary: #ffffff,
|
|
16
18
|
fill-secondary: #ff7900,
|
|
17
|
-
fill-tertiary: #
|
|
19
|
+
fill-tertiary: #f15e00,
|
|
18
20
|
fill-subtle: #eeeeee,
|
|
19
21
|
fill-moderate: #dddddd,
|
|
20
22
|
fill-disabled: #cccccc,
|
|
@@ -31,14 +33,14 @@ $colors-light: (
|
|
|
31
33
|
border-subtle: #dddddd,
|
|
32
34
|
border-strong: #cccccc,
|
|
33
35
|
border-contrast: #000000,
|
|
34
|
-
border-accent: #
|
|
36
|
+
border-accent: #f15e00,
|
|
35
37
|
border-information: #4170d8,
|
|
36
38
|
border-positive: #228722,
|
|
37
39
|
border-warning: #ffcc00,
|
|
38
40
|
border-negative: #cd3c14,
|
|
39
41
|
icon-default: #000000,
|
|
40
42
|
icon-inverse: #ffffff,
|
|
41
|
-
icon-brand: #
|
|
43
|
+
icon-brand: #f15e00,
|
|
42
44
|
icon-accent: #ffc48f,
|
|
43
45
|
icon-disabled: #cccccc,
|
|
44
46
|
icon-information: #4170d8,
|
|
@@ -46,10 +48,10 @@ $colors-light: (
|
|
|
46
48
|
icon-warning: #ffcc00,
|
|
47
49
|
icon-negative: #cd3c14,
|
|
48
50
|
text-default: #000000,
|
|
49
|
-
text-secondary: #
|
|
51
|
+
text-secondary: #666666,
|
|
50
52
|
text-disabled: #cccccc,
|
|
51
53
|
text-inverse: #ffffff,
|
|
52
|
-
text-accent: #
|
|
54
|
+
text-accent: #f15e00,
|
|
53
55
|
);
|
|
54
56
|
|
|
55
57
|
$colors-dark: (
|
|
@@ -57,16 +59,18 @@ $colors-dark: (
|
|
|
57
59
|
background-secondary: #333333,
|
|
58
60
|
background-contrast: #ffffff,
|
|
59
61
|
background-accent: #2b1a10,
|
|
62
|
+
background-accent1-blog: #62342d,
|
|
63
|
+
background-accent2-blog: #2b1a10,
|
|
60
64
|
surface-primary: #141414,
|
|
61
65
|
surface-secondary: #ff7900,
|
|
62
|
-
surface-tertiary: #
|
|
66
|
+
surface-tertiary: #f15e00,
|
|
63
67
|
surface-subtle: #333333,
|
|
64
68
|
surface-moderate: #595959,
|
|
65
69
|
surface-contrast: #ffffff,
|
|
66
70
|
surface-accent: #2b1a10,
|
|
67
71
|
fill-primary: #000000,
|
|
68
72
|
fill-secondary: #ff7900,
|
|
69
|
-
fill-tertiary: #
|
|
73
|
+
fill-tertiary: #f15e00,
|
|
70
74
|
fill-subtle: #333333,
|
|
71
75
|
fill-moderate: #595959,
|
|
72
76
|
fill-disabled: #666666,
|
|
@@ -120,6 +120,8 @@
|
|
|
120
120
|
margin: 0 0 space.get() 0;
|
|
121
121
|
padding-left: space.get("large");
|
|
122
122
|
@include text-readable;
|
|
123
|
+
// Apply the same font styles as paragraphs
|
|
124
|
+
@include generate.responsive-css-map(config.$body-text);
|
|
123
125
|
}
|
|
124
126
|
|
|
125
127
|
@mixin list-spacing($space, $config: config.$list-spacing) {
|
|
@@ -181,9 +183,8 @@
|
|
|
181
183
|
|
|
182
184
|
@mixin list-marker-orange() {
|
|
183
185
|
> li {
|
|
184
|
-
|
|
185
186
|
&::marker {
|
|
186
187
|
color: var(--color-icon-accent);
|
|
187
188
|
}
|
|
188
189
|
}
|
|
189
|
-
}
|
|
190
|
+
}
|
|
@@ -1,35 +1,94 @@
|
|
|
1
1
|
@use "../tokens/color";
|
|
2
|
-
|
|
3
|
-
// TODO premyslieť, či je potrebné tieto farby nahradiť tokenmi, alebo hardcodovat aby neboli nepredvidatelne
|
|
2
|
+
@use "sass:map";
|
|
4
3
|
|
|
5
4
|
@layer utilities {
|
|
5
|
+
// Background utilities
|
|
6
|
+
@each $name, $value in color.$colors-light {
|
|
7
|
+
@if str-index($name, "background-") == 1 {
|
|
8
|
+
.#{$name} {
|
|
9
|
+
background-color: var(--color-#{$name}) !important;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// Surface utilities
|
|
15
|
+
@each $name, $value in color.$colors-light {
|
|
16
|
+
@if str-index($name, "surface-") == 1 {
|
|
17
|
+
.#{$name} {
|
|
18
|
+
background-color: var(--color-#{$name}) !important;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Fill utilities
|
|
24
|
+
@each $name, $value in color.$colors-light {
|
|
25
|
+
@if str-index($name, "fill-") == 1 {
|
|
26
|
+
.#{$name} {
|
|
27
|
+
background-color: var(--color-#{$name}) !important;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Border utilities
|
|
33
|
+
@each $name, $value in color.$colors-light {
|
|
34
|
+
@if str-index($name, "border-") == 1 {
|
|
35
|
+
.#{$name} {
|
|
36
|
+
border-color: var(--color-#{$name}) !important;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// Text color utilities
|
|
42
|
+
@each $name, $value in color.$colors-light {
|
|
43
|
+
@if str-index($name, "text-") == 1 {
|
|
44
|
+
.#{$name} {
|
|
45
|
+
color: var(--color-#{$name}) !important;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// Icon color utilities
|
|
51
|
+
@each $name, $value in color.$colors-light {
|
|
52
|
+
@if str-index($name, "icon-") == 1 {
|
|
53
|
+
.#{$name} {
|
|
54
|
+
color: var(--color-#{$name}) !important;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Legacy classes - DEPRECATED (add deprecation warnings)
|
|
6
60
|
.color-black {
|
|
7
|
-
|
|
61
|
+
@warn "Deprecated: Use .text-default instead of .color-black";
|
|
8
62
|
color: color.$black !important;
|
|
9
63
|
}
|
|
64
|
+
|
|
10
65
|
.color-orange {
|
|
11
|
-
|
|
66
|
+
@warn "Deprecated: Use .text-accent instead of .color-orange";
|
|
12
67
|
color: var(--color-text-accent) !important;
|
|
13
68
|
}
|
|
69
|
+
|
|
14
70
|
.color-gray {
|
|
15
|
-
|
|
71
|
+
@warn "Deprecated: Use .text-secondary instead of .color-gray";
|
|
16
72
|
color: color.$gray-800 !important;
|
|
17
73
|
}
|
|
74
|
+
|
|
18
75
|
.color-white {
|
|
19
|
-
|
|
76
|
+
@warn "Deprecated: Use .text-inverse instead of .color-white";
|
|
20
77
|
color: color.$white !important;
|
|
21
78
|
}
|
|
79
|
+
|
|
22
80
|
.color-blue {
|
|
81
|
+
@warn "Deprecated: Use .icon-information instead of .color-blue";
|
|
23
82
|
color: var(--color-icon-information) !important;
|
|
24
83
|
}
|
|
25
84
|
|
|
26
85
|
.color-danger {
|
|
27
|
-
|
|
86
|
+
@warn "Deprecated: Use .icon-negative instead of .color-danger";
|
|
28
87
|
color: var(--color-icon-negative) !important;
|
|
29
88
|
}
|
|
30
89
|
|
|
31
90
|
.bg-white {
|
|
32
|
-
|
|
91
|
+
@warn "Deprecated: Use .background-primary instead of .bg-white";
|
|
33
92
|
background-color: color.$white !important;
|
|
34
93
|
color: var(--color-text-default);
|
|
35
94
|
|
|
@@ -40,10 +99,9 @@
|
|
|
40
99
|
}
|
|
41
100
|
|
|
42
101
|
.bg-black {
|
|
43
|
-
|
|
44
|
-
// background-color: color.$black !important;
|
|
102
|
+
@warn "Deprecated: Use .background-contrast instead of .bg-black";
|
|
45
103
|
background-color: #141414 !important;
|
|
46
|
-
color: var(--color-text-
|
|
104
|
+
color: var(--color-text-inverse);
|
|
47
105
|
|
|
48
106
|
.color-gray,
|
|
49
107
|
&.color-gray {
|
|
@@ -57,64 +115,92 @@
|
|
|
57
115
|
}
|
|
58
116
|
|
|
59
117
|
.bg-orange {
|
|
118
|
+
@warn "Deprecated: Use .surface-secondary instead of .bg-orange";
|
|
60
119
|
background-color: var(--color-surface-secondary) !important;
|
|
61
|
-
// TODO: replace with new token when available
|
|
62
120
|
color: color.$black !important;
|
|
63
121
|
}
|
|
64
122
|
|
|
65
123
|
.bg-orange-dark {
|
|
124
|
+
@warn "Deprecated: Use .surface-tertiary instead of .bg-orange-dark";
|
|
66
125
|
background-color: var(--color-surface-tertiary) !important;
|
|
67
126
|
color: var(--color-text-inverse) !important;
|
|
68
127
|
}
|
|
69
128
|
|
|
70
129
|
.bg-gray {
|
|
130
|
+
@warn "Deprecated: Use .surface-subtle instead of .bg-gray";
|
|
71
131
|
background-color: var(--color-surface-subtle) !important;
|
|
72
132
|
}
|
|
73
133
|
|
|
134
|
+
.bg-gray-lighter {
|
|
135
|
+
@warn "Deprecated: Use .background-secondary instead of .bg-gray-lighter";
|
|
136
|
+
background-color: var(--color-background-secondary) !important;
|
|
137
|
+
}
|
|
138
|
+
|
|
74
139
|
.bg-blue {
|
|
140
|
+
@warn "Deprecated: Use .fill-accent1 instead of .bg-blue";
|
|
75
141
|
background-color: var(--color-fill-accent1) !important;
|
|
76
|
-
// TODO: replace with new token when available
|
|
77
142
|
color: color.$black !important;
|
|
78
143
|
}
|
|
79
144
|
|
|
80
145
|
.bg-green {
|
|
146
|
+
@warn "Deprecated: Use .fill-accent2 instead of .bg-green";
|
|
81
147
|
background-color: var(--color-fill-accent2) !important;
|
|
82
|
-
// TODO: replace with new token when available
|
|
83
148
|
color: color.$black !important;
|
|
84
149
|
}
|
|
85
150
|
|
|
86
151
|
.bg-pink {
|
|
152
|
+
@warn "Deprecated: Use .fill-accent3 instead of .bg-pink";
|
|
87
153
|
background-color: var(--color-fill-accent3) !important;
|
|
88
|
-
// TODO: replace with new token when available
|
|
89
154
|
color: color.$black !important;
|
|
90
155
|
}
|
|
91
156
|
|
|
92
157
|
.bg-violet {
|
|
158
|
+
@warn "Deprecated: Use .fill-accent4 instead of .bg-violet";
|
|
93
159
|
background-color: var(--color-fill-accent4) !important;
|
|
94
|
-
// TODO: replace with new token when available
|
|
95
160
|
color: color.$black !important;
|
|
96
161
|
}
|
|
97
162
|
|
|
98
163
|
.bg-yellow {
|
|
164
|
+
@warn "Deprecated: Use .fill-accent5 instead of .bg-yellow";
|
|
99
165
|
background-color: var(--color-fill-accent5) !important;
|
|
100
|
-
// TODO: replace with new token when available
|
|
101
166
|
color: color.$black !important;
|
|
102
167
|
}
|
|
103
168
|
|
|
104
169
|
.bg-yellow-lighter {
|
|
105
|
-
|
|
170
|
+
@warn "Deprecated: This class will be removed in future versions";
|
|
106
171
|
background-color: color.$yellow-lighter !important;
|
|
107
172
|
color: color.$black !important;
|
|
108
173
|
}
|
|
109
174
|
|
|
110
175
|
.bg-red {
|
|
111
|
-
|
|
176
|
+
@warn "Deprecated: Use .fill-negative instead of .bg-red";
|
|
112
177
|
background-color: color.$red !important;
|
|
113
178
|
color: color.$black !important;
|
|
114
179
|
}
|
|
115
180
|
|
|
181
|
+
.bg-accent {
|
|
182
|
+
@warn "Deprecated: Use .background-accent instead of .bg-accent";
|
|
183
|
+
background-color: var(--color-background-accent) !important;
|
|
184
|
+
color: var(--color-text-default) !important;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.bg-accent1-blog {
|
|
188
|
+
@warn "Deprecated: Use .background-accent1-blog instead of .bg-accent1-blog";
|
|
189
|
+
background-color: var(--color-background-accent1-blog) !important;
|
|
190
|
+
color: var(--color-text-default) !important;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.bg-accent2-blog {
|
|
194
|
+
@warn "Deprecated: Use .background-accent2-blog instead of .bg-accent2-blog";
|
|
195
|
+
background-color: var(--color-background-accent2-blog) !important;
|
|
196
|
+
color: var(--color-text-default) !important;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// Legacy selection styles
|
|
116
200
|
.bg-orange,
|
|
117
|
-
.bg-orange-dark
|
|
201
|
+
.bg-orange-dark,
|
|
202
|
+
.surface-secondary,
|
|
203
|
+
.surface-tertiary {
|
|
118
204
|
&::selection {
|
|
119
205
|
background-color: var(--color-background-contrast);
|
|
120
206
|
color: var(--color-text-inverse);
|
|
@@ -125,7 +211,14 @@
|
|
|
125
211
|
color: var(--color-text-default);
|
|
126
212
|
}
|
|
127
213
|
|
|
214
|
+
// Legacy classes - continued
|
|
128
215
|
.bg-none {
|
|
216
|
+
@warn "Deprecated: Use .background-none instead of .bg-none";
|
|
217
|
+
background: none !important;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
// Utility for removing background
|
|
221
|
+
.background-none {
|
|
129
222
|
background: none !important;
|
|
130
223
|
}
|
|
131
224
|
}
|
|
@@ -151,6 +151,12 @@
|
|
|
151
151
|
border: 0;
|
|
152
152
|
aspect-ratio: 1 / 1;
|
|
153
153
|
}
|
|
154
|
+
|
|
155
|
+
.aspect-ratio-3-2 {
|
|
156
|
+
max-width: 100%;
|
|
157
|
+
border: 0;
|
|
158
|
+
aspect-ratio: 3 / 2;
|
|
159
|
+
}
|
|
154
160
|
}
|
|
155
161
|
|
|
156
162
|
@include aspect-ratio-classes;
|
|
@@ -171,6 +177,9 @@
|
|
|
171
177
|
.d-inline-flex {
|
|
172
178
|
display: inline-flex;
|
|
173
179
|
}
|
|
180
|
+
.flex-column {
|
|
181
|
+
flex-direction: column;
|
|
182
|
+
}
|
|
174
183
|
}
|
|
175
184
|
|
|
176
185
|
@include display-classes;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
@use "sass:map" as sassmap;
|
|
2
|
+
@use "../tokens/breakpoint";
|
|
3
|
+
@use "../tools/map";
|
|
4
|
+
@use "../tools/generate";
|
|
5
|
+
|
|
6
|
+
@mixin order-classes($max: 12) {
|
|
7
|
+
// xs (default) classes
|
|
8
|
+
@for $order from 1 through $max {
|
|
9
|
+
// .order-{n}
|
|
10
|
+
.order-#{$order} {
|
|
11
|
+
order: #{$order} !important;
|
|
12
|
+
}
|
|
13
|
+
// .order-{n}-xs-only
|
|
14
|
+
.order-#{$order}-xs-only {
|
|
15
|
+
@include breakpoint.get(xs, only) {
|
|
16
|
+
order: #{$order} !important;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Responsive classes for each breakpoint (except xs)
|
|
22
|
+
@each $breakpoint, $size in breakpoint.$map {
|
|
23
|
+
@if $breakpoint != "xs" {
|
|
24
|
+
@for $order from 1 through $max {
|
|
25
|
+
// .order-{n}-{breakpoint}
|
|
26
|
+
.order-#{$order}#{generate.variant-name($breakpoint, "-")} {
|
|
27
|
+
@include breakpoint.get($breakpoint) {
|
|
28
|
+
order: #{$order} !important;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
// .order-{n}-{breakpoint}-only
|
|
32
|
+
.order-#{$order}#{generate.variant-name($breakpoint, "-")}-only {
|
|
33
|
+
@include breakpoint.get($breakpoint, only) {
|
|
34
|
+
order: #{$order} !important;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@layer utilities {
|
|
43
|
+
@include order-classes(2);
|
|
44
|
+
}
|