@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
|
@@ -1,565 +0,0 @@
|
|
|
1
|
-
import { loremIpsum } from "lorem-ipsum";
|
|
2
|
-
import parse from "html-react-parser";
|
|
3
|
-
import {
|
|
4
|
-
Note,
|
|
5
|
-
ComponentDocs,
|
|
6
|
-
Preview,
|
|
7
|
-
DocsTable,
|
|
8
|
-
Code,
|
|
9
|
-
Link,
|
|
10
|
-
} from "@lighting-beetle/lighter-styleguide";
|
|
11
|
-
|
|
12
|
-
import Button, { ButtonSecondary } from "../Button";
|
|
13
|
-
import Buttons from "../Buttons";
|
|
14
|
-
import Grid, { GridCol } from "../Grid";
|
|
15
|
-
import Icon from "../Icon";
|
|
16
|
-
import IconList from "../IconList";
|
|
17
|
-
import { Image } from "../Image";
|
|
18
|
-
import Modal, {
|
|
19
|
-
ModalHeader,
|
|
20
|
-
ModalBody,
|
|
21
|
-
ModalFooter,
|
|
22
|
-
ModalProductHeader, ModalCloseButton
|
|
23
|
-
} from ".";
|
|
24
|
-
import { Divider } from "../Divider";
|
|
25
|
-
import { Bar, BarItem } from "../Bar";
|
|
26
|
-
import { Tag } from "../Tag";
|
|
27
|
-
|
|
28
|
-
export const actionButtons = [
|
|
29
|
-
<Button type="primary" data-a11y-dialog-hide key="1">
|
|
30
|
-
Potvrdiť
|
|
31
|
-
</Button>,
|
|
32
|
-
<Button data-a11y-dialog-hide key="2">
|
|
33
|
-
Zatvoriť
|
|
34
|
-
</Button>,
|
|
35
|
-
];
|
|
36
|
-
|
|
37
|
-
export const Checkmarks = ({ count, icon, content, ...other }) => (
|
|
38
|
-
<Grid className="mb-xlarge" {...other}>
|
|
39
|
-
{[...Array(count)].map((_, i) => (
|
|
40
|
-
<GridCol key={i.toString()} size={{ md: 4 }}>
|
|
41
|
-
<Icon name={icon} size="large" className="mb-small" />
|
|
42
|
-
{content}
|
|
43
|
-
</GridCol>
|
|
44
|
-
))}
|
|
45
|
-
</Grid>
|
|
46
|
-
);
|
|
47
|
-
|
|
48
|
-
export const PopulatedIconList = () => (
|
|
49
|
-
<IconList
|
|
50
|
-
items={[
|
|
51
|
-
{
|
|
52
|
-
icon: "money-box",
|
|
53
|
-
content: loremIpsum({ count: 1, units: "sentence" }),
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
icon: "antenna",
|
|
57
|
-
content: loremIpsum({ count: 1, units: "sentence" }),
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
icon: "buy",
|
|
61
|
-
content: loremIpsum({ count: 1, units: "sentence" }),
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
icon: "cinema-ticket-2-for-1",
|
|
65
|
-
content: loremIpsum({ count: 1, units: "sentence" }),
|
|
66
|
-
},
|
|
67
|
-
]}
|
|
68
|
-
/>
|
|
69
|
-
);
|
|
70
|
-
|
|
71
|
-
# Modal
|
|
72
|
-
|
|
73
|
-
Additional layer floating above the main content which temporarily interrupts current task.
|
|
74
|
-
Requires user interaction before they can proceed.
|
|
75
|
-
|
|
76
|
-
<Preview>
|
|
77
|
-
<Button data-a11y-dialog-show="modal">Open Modal</Button>
|
|
78
|
-
<Modal id="modal" title="Example modal">
|
|
79
|
-
{parse(loremIpsum({ count: 10, units: "paragraph", format: "html" }))}
|
|
80
|
-
</Modal>
|
|
81
|
-
</Preview>
|
|
82
|
-
|
|
83
|
-
## Sizes
|
|
84
|
-
|
|
85
|
-
Adjust spacing and maximum width. Each size comes with a default title size, which can
|
|
86
|
-
be customized when required.
|
|
87
|
-
|
|
88
|
-
### Small
|
|
89
|
-
|
|
90
|
-
<Preview>
|
|
91
|
-
<Button data-a11y-dialog-show="modal-small">Open small Modal</Button>
|
|
92
|
-
<Modal
|
|
93
|
-
id="modal-small"
|
|
94
|
-
size="small"
|
|
95
|
-
title="Small modal"
|
|
96
|
-
actions={actionButtons}
|
|
97
|
-
>
|
|
98
|
-
{parse(loremIpsum({ count: 1, units: "paragraph", format: "html" }))}
|
|
99
|
-
</Modal>
|
|
100
|
-
</Preview>
|
|
101
|
-
|
|
102
|
-
### Default
|
|
103
|
-
|
|
104
|
-
<Preview>
|
|
105
|
-
<Button data-a11y-dialog-show="modal-default">Open default Modal</Button>
|
|
106
|
-
<Modal id="modal-default" title="Default modal" actions={actionButtons}>
|
|
107
|
-
<Checkmarks
|
|
108
|
-
count={3}
|
|
109
|
-
icon="checked"
|
|
110
|
-
content={parse(
|
|
111
|
-
loremIpsum({ count: 1, units: "sentence", format: "html" }),
|
|
112
|
-
)}
|
|
113
|
-
/>
|
|
114
|
-
<PopulatedIconList />
|
|
115
|
-
</Modal>
|
|
116
|
-
</Preview>
|
|
117
|
-
|
|
118
|
-
### Large
|
|
119
|
-
|
|
120
|
-
<Preview>
|
|
121
|
-
<Button data-a11y-dialog-show="modal-large">Open large Modal</Button>
|
|
122
|
-
<Modal
|
|
123
|
-
id="modal-large"
|
|
124
|
-
title="Large modal"
|
|
125
|
-
actions={actionButtons}
|
|
126
|
-
size="large"
|
|
127
|
-
>
|
|
128
|
-
<p className="mb-xlarge">{loremIpsum({ count: 1, units: "paragraph" })}</p>
|
|
129
|
-
<Checkmarks
|
|
130
|
-
count={5}
|
|
131
|
-
icon="checked"
|
|
132
|
-
content={parse(
|
|
133
|
-
loremIpsum({ count: 1, units: "sentence", format: "html" }),
|
|
134
|
-
)}
|
|
135
|
-
/>
|
|
136
|
-
<PopulatedIconList />
|
|
137
|
-
</Modal>
|
|
138
|
-
</Preview>
|
|
139
|
-
|
|
140
|
-
## Custom title
|
|
141
|
-
|
|
142
|
-
Customize the title and other content inside header.
|
|
143
|
-
|
|
144
|
-
<Preview>
|
|
145
|
-
<Button data-a11y-dialog-show="modal-custom-title">
|
|
146
|
-
Open Modal with custom title
|
|
147
|
-
</Button>
|
|
148
|
-
<Modal
|
|
149
|
-
id="modal-custom-title"
|
|
150
|
-
actions={actionButtons}
|
|
151
|
-
renderTitle={() => (
|
|
152
|
-
<>
|
|
153
|
-
<a href="/" className="mb">
|
|
154
|
-
<Icon className="link__icon-left" name="chevron-left" />
|
|
155
|
-
Return to previous step
|
|
156
|
-
</a>
|
|
157
|
-
<h2>Modal with custom title and content.</h2>
|
|
158
|
-
<p className="mb-none">{loremIpsum({ count: 1, units: "sentence" })}</p>
|
|
159
|
-
</>
|
|
160
|
-
)}
|
|
161
|
-
>
|
|
162
|
-
{parse(loremIpsum({ count: 10, units: "paragraph", format: "html" }))}
|
|
163
|
-
</Modal>
|
|
164
|
-
</Preview>
|
|
165
|
-
|
|
166
|
-
## Custom footer
|
|
167
|
-
|
|
168
|
-
Customize the footer. Should be primary used for specific action button cases.
|
|
169
|
-
|
|
170
|
-
<Preview>
|
|
171
|
-
<Button data-a11y-dialog-show="modal-custom-footer">
|
|
172
|
-
Open Modal with custom footer
|
|
173
|
-
</Button>
|
|
174
|
-
<Modal
|
|
175
|
-
id="modal-custom-footer"
|
|
176
|
-
actions={actionButtons}
|
|
177
|
-
title="Modal with custom footer and content"
|
|
178
|
-
renderFooter={() => (
|
|
179
|
-
<>
|
|
180
|
-
<Buttons isStackedOnXs>
|
|
181
|
-
<Button type="primary">Log in</Button>
|
|
182
|
-
<Button>Continue as new customer</Button>
|
|
183
|
-
</Buttons>
|
|
184
|
-
<button className="link">Other action button</button>
|
|
185
|
-
</>
|
|
186
|
-
)}
|
|
187
|
-
>
|
|
188
|
-
{parse(loremIpsum({ count: 1, units: "paragraph", format: "html" }))}
|
|
189
|
-
</Modal>
|
|
190
|
-
</Preview>
|
|
191
|
-
|
|
192
|
-
## Product header
|
|
193
|
-
|
|
194
|
-
Use the product header to display product information with an optional image, similar to the Card component's product header.
|
|
195
|
-
|
|
196
|
-
<Preview>
|
|
197
|
-
<Button data-a11y-dialog-show="modal-product-header">
|
|
198
|
-
Open Modal with product header
|
|
199
|
-
</Button>
|
|
200
|
-
<Modal
|
|
201
|
-
id="modal-product-header"
|
|
202
|
-
actions={actionButtons}
|
|
203
|
-
renderHeader={() => (
|
|
204
|
-
<>
|
|
205
|
-
<ModalCloseButton />
|
|
206
|
-
<ModalProductHeader
|
|
207
|
-
image={<img src="/images/product-1.svg" alt="Product" />}
|
|
208
|
-
>
|
|
209
|
-
<p className="bold color-orange">Odporúčame</p>
|
|
210
|
-
<Bar space="small" className="mb-none">
|
|
211
|
-
<BarItem>
|
|
212
|
-
<h2 className="h4 mb-none">Prémiový paušál</h2>
|
|
213
|
-
</BarItem>
|
|
214
|
-
<BarItem>
|
|
215
|
-
<Tag color="black">5G</Tag>
|
|
216
|
-
</BarItem>
|
|
217
|
-
</Bar>
|
|
218
|
-
<p className="h2 color-orange mb-none thin">∞ GB</p>
|
|
219
|
-
</ModalProductHeader>
|
|
220
|
-
<Divider thinLine />
|
|
221
|
-
</>
|
|
222
|
-
)}
|
|
223
|
-
>
|
|
224
|
-
<p className="h5 mb">
|
|
225
|
-
V paušále získate 200 GB plnou rýchlosťou, potom 20 Mbit/s
|
|
226
|
-
</p>
|
|
227
|
-
<h3 className="h4">S paušálom</h3>
|
|
228
|
-
<ul className="list--marker-orange">
|
|
229
|
-
<li>
|
|
230
|
-
nekonečné dáta, po prečerpaní 200 GB pokračujete s rýchlosťou 20
|
|
231
|
-
Mbit/s, dáta v EÚ podliehajú regulácii
|
|
232
|
-
</li>
|
|
233
|
-
<li>
|
|
234
|
-
nekonečné volania v SR a v EÚ (Zóna 1), medzinárodné volania do EÚ
|
|
235
|
-
a do Zóny 1 sú spoplatnené sumou 0,03 € za minútu
|
|
236
|
-
</li>
|
|
237
|
-
<li>nekonečné SMS/MMS v SR/EÚ/Zóna 1</li>
|
|
238
|
-
<li>prístup do 5G siete</li>
|
|
239
|
-
<li>možnosť dokúpiť ďalších 5 GB len za 5,13 €</li>
|
|
240
|
-
<li>možnosť bezplatnej aktivácie služby Online ochrana Basic</li>
|
|
241
|
-
<li>bezplatné založenie skupiny Navzájom zadarmo</li>
|
|
242
|
-
</ul>
|
|
243
|
-
{parse(loremIpsum({ count: 2, units: "paragraph", format: "html" }))}
|
|
244
|
-
</Modal>
|
|
245
|
-
</Preview>
|
|
246
|
-
|
|
247
|
-
<Preview>
|
|
248
|
-
<Button data-a11y-dialog-show="modal-product-header-small">
|
|
249
|
-
Open Modal with compact product header
|
|
250
|
-
</Button>
|
|
251
|
-
<Modal
|
|
252
|
-
id="modal-product-header-small"
|
|
253
|
-
actions={actionButtons}
|
|
254
|
-
renderHeader={() => (
|
|
255
|
-
<>
|
|
256
|
-
<ModalCloseButton />
|
|
257
|
-
<ModalProductHeader
|
|
258
|
-
space="small"
|
|
259
|
-
image={<img src="/images/product-2.svg" alt="Product" />}
|
|
260
|
-
>
|
|
261
|
-
<Bar space="small" className="mb-none">
|
|
262
|
-
<BarItem>
|
|
263
|
-
<h2 className="h3 mb-none">Veľký paušál</h2>
|
|
264
|
-
</BarItem>
|
|
265
|
-
<BarItem>
|
|
266
|
-
<Tag color="black">5G</Tag>
|
|
267
|
-
</BarItem>
|
|
268
|
-
</Bar>
|
|
269
|
-
<p className="h2 color-orange mb-none thin">∞ GB</p>
|
|
270
|
-
</ModalProductHeader>
|
|
271
|
-
<Divider thinLine />
|
|
272
|
-
</>
|
|
273
|
-
)}
|
|
274
|
-
>
|
|
275
|
-
<p className="h5 mb">
|
|
276
|
-
V paušále získate 200 GB plnou rýchlosťou, potom 20 Mbit/s
|
|
277
|
-
</p>
|
|
278
|
-
<h3 className="h4">S paušálom</h3>
|
|
279
|
-
<ul className="list--marker-orange">
|
|
280
|
-
<li>
|
|
281
|
-
nekonečné dáta, po prečerpaní 200 GB pokračujete s rýchlosťou 20
|
|
282
|
-
Mbit/s, dáta v EÚ podliehajú regulácii
|
|
283
|
-
</li>
|
|
284
|
-
<li>
|
|
285
|
-
nekonečné volania v SR a v EÚ (Zóna 1), medzinárodné volania do EÚ
|
|
286
|
-
a do Zóny 1 sú spoplatnené sumou 0,03 € za minútu
|
|
287
|
-
</li>
|
|
288
|
-
<li>nekonečné SMS/MMS v SR/EÚ/Zóna 1</li>
|
|
289
|
-
<li>prístup do 5G siete</li>
|
|
290
|
-
<li>možnosť dokúpiť ďalších 5 GB len za 5,13 €</li>
|
|
291
|
-
<li>možnosť bezplatnej aktivácie služby Online ochrana Basic</li>
|
|
292
|
-
<li>bezplatné založenie skupiny Navzájom zadarmo</li>
|
|
293
|
-
</ul>
|
|
294
|
-
{parse(loremIpsum({ count: 1, units: "paragraph", format: "html" }))}
|
|
295
|
-
</Modal>
|
|
296
|
-
</Preview>
|
|
297
|
-
|
|
298
|
-
## Full height on XS
|
|
299
|
-
|
|
300
|
-
On XS screens (mobile devices), the modal will take the full height of the viewport to maintain a consistent height when the modal contains a flow or multiple steps.
|
|
301
|
-
|
|
302
|
-
<Preview>
|
|
303
|
-
<Button data-a11y-dialog-show="modal-full-height">
|
|
304
|
-
Open full height Modal on XS screen
|
|
305
|
-
</Button>
|
|
306
|
-
<Modal
|
|
307
|
-
id="modal-full-height"
|
|
308
|
-
title="Full height modal on XS screen"
|
|
309
|
-
fullHeight
|
|
310
|
-
actions={actionButtons}
|
|
311
|
-
>
|
|
312
|
-
{parse(loremIpsum({ count: 1, units: "paragraph", format: "html" }))}
|
|
313
|
-
</Modal>
|
|
314
|
-
</Preview>
|
|
315
|
-
|
|
316
|
-
## Sticky footer
|
|
317
|
-
|
|
318
|
-
Sticky footers do not stick in IE, as it [does not support `position: sticky`](https://caniuse.com/css-sticky).
|
|
319
|
-
|
|
320
|
-
<Preview>
|
|
321
|
-
<Button data-a11y-dialog-show="modal-sticky-footer">
|
|
322
|
-
Open Modal with sticky footer
|
|
323
|
-
</Button>
|
|
324
|
-
<Modal
|
|
325
|
-
id="modal-sticky-footer"
|
|
326
|
-
size="large"
|
|
327
|
-
title="Sticky footer"
|
|
328
|
-
hasStickyFooter
|
|
329
|
-
actions={actionButtons}
|
|
330
|
-
>
|
|
331
|
-
<p className="mb-xlarge">{loremIpsum({ count: 1, units: "paragraph" })}</p>
|
|
332
|
-
<Grid className="mb-xlarge">
|
|
333
|
-
<GridCol size="auto">
|
|
334
|
-
<Image alt="" src="https://placehold.co/300x300" />
|
|
335
|
-
</GridCol>
|
|
336
|
-
<GridCol size="fill">
|
|
337
|
-
<h3 className="h2" hasMdxLink={false}>
|
|
338
|
-
{loremIpsum({ count: 4, units: "word" })}
|
|
339
|
-
</h3>
|
|
340
|
-
<IconList
|
|
341
|
-
items={[...Array(4)].map((i) => ({
|
|
342
|
-
icon: "tick",
|
|
343
|
-
content: loremIpsum({ count: 5, units: "word" }),
|
|
344
|
-
}))}
|
|
345
|
-
/>
|
|
346
|
-
</GridCol>
|
|
347
|
-
</Grid>
|
|
348
|
-
<h3>{loremIpsum({ count: 3, units: "word" })}</h3>
|
|
349
|
-
<Checkmarks
|
|
350
|
-
count={5}
|
|
351
|
-
icon="checked"
|
|
352
|
-
content={parse(
|
|
353
|
-
loremIpsum({ count: 1, units: "sentence", format: "html" }),
|
|
354
|
-
)}
|
|
355
|
-
/>
|
|
356
|
-
<h3>{loremIpsum({ count: 3, units: "word" })}</h3>
|
|
357
|
-
<Checkmarks
|
|
358
|
-
count={3}
|
|
359
|
-
icon="battery-charging"
|
|
360
|
-
content={
|
|
361
|
-
<React.Fragment>
|
|
362
|
-
<h4 hasMdxLink={false}>{loremIpsum({ count: 3, units: "word" })}</h4>
|
|
363
|
-
<ul>
|
|
364
|
-
{[...Array(3)].map((_, i) => (
|
|
365
|
-
<li key={i.toString()}>
|
|
366
|
-
{loremIpsum({ count: 1, units: "sentence" })}
|
|
367
|
-
</li>
|
|
368
|
-
))}
|
|
369
|
-
</ul>
|
|
370
|
-
</React.Fragment>
|
|
371
|
-
}
|
|
372
|
-
/>
|
|
373
|
-
<PopulatedIconList />
|
|
374
|
-
</Modal>
|
|
375
|
-
</Preview>
|
|
376
|
-
|
|
377
|
-
## Colorful body
|
|
378
|
-
|
|
379
|
-
A modal can contain multiple body containers to divide it's content into multiple colorful sections.
|
|
380
|
-
Colorful body provides vertical spacing needed to visually divide each section. Color is added using
|
|
381
|
-
[background color utilities](utilities/color#background-color). Make sure to pick an
|
|
382
|
-
[accessible color combination](http://localhost:3000/fundamentals/color-palette#accessible-combinations).
|
|
383
|
-
|
|
384
|
-
Use [spacing utilities](/utilities/spacing#resets) to remove top/bottom padding
|
|
385
|
-
when the first/last body element is using default color (white).
|
|
386
|
-
|
|
387
|
-
<Preview>
|
|
388
|
-
<Button data-a11y-dialog-show="modal-colorful">
|
|
389
|
-
Open Modal with colorful body
|
|
390
|
-
</Button>
|
|
391
|
-
<Modal
|
|
392
|
-
id="modal-colorful"
|
|
393
|
-
title="Colorful modal"
|
|
394
|
-
size="large"
|
|
395
|
-
renderBody={(title) => (
|
|
396
|
-
<>
|
|
397
|
-
<ModalBody color="white" className="pt-none">
|
|
398
|
-
{title}
|
|
399
|
-
<p className="mb-xlarge">
|
|
400
|
-
{loremIpsum({ count: 1, units: "paragraph" })}
|
|
401
|
-
</p>
|
|
402
|
-
<Grid className="mb-large">
|
|
403
|
-
<GridCol size="auto">
|
|
404
|
-
<Image alt="" src="https://placehold.co/300x300" />
|
|
405
|
-
</GridCol>
|
|
406
|
-
<GridCol size="fill">
|
|
407
|
-
<h3 className="h2" hasMdxLink={false}>
|
|
408
|
-
{loremIpsum({ count: 4, units: "word" })}
|
|
409
|
-
</h3>
|
|
410
|
-
<IconList
|
|
411
|
-
items={[...Array(4)].map((i) => ({
|
|
412
|
-
icon: "tick",
|
|
413
|
-
content: loremIpsum({ count: 5, units: "word" }),
|
|
414
|
-
}))}
|
|
415
|
-
/>
|
|
416
|
-
</GridCol>
|
|
417
|
-
</Grid>
|
|
418
|
-
</ModalBody>
|
|
419
|
-
<ModalBody color="gray">
|
|
420
|
-
<Checkmarks
|
|
421
|
-
count={3}
|
|
422
|
-
icon="battery-charging"
|
|
423
|
-
className=""
|
|
424
|
-
content={
|
|
425
|
-
<React.Fragment>
|
|
426
|
-
<h4 hasMdxLink={false}>
|
|
427
|
-
{loremIpsum({ count: 3, units: "word" })}
|
|
428
|
-
</h4>
|
|
429
|
-
<ul>
|
|
430
|
-
{[...Array(3)].map((_, i) => (
|
|
431
|
-
<li key={i.toString()}>
|
|
432
|
-
{loremIpsum({ count: 1, units: "sentence" })}
|
|
433
|
-
</li>
|
|
434
|
-
))}
|
|
435
|
-
</ul>
|
|
436
|
-
</React.Fragment>
|
|
437
|
-
}
|
|
438
|
-
/>
|
|
439
|
-
</ModalBody>
|
|
440
|
-
</>
|
|
441
|
-
)}
|
|
442
|
-
/>
|
|
443
|
-
</Preview>
|
|
444
|
-
|
|
445
|
-
## Props
|
|
446
|
-
|
|
447
|
-
<ComponentDocs title="<Modal />" component={Modal} />
|
|
448
|
-
|
|
449
|
-
<ComponentDocs title="<ModalProductHeader />" component={ModalProductHeader} />
|
|
450
|
-
|
|
451
|
-
## JS module reference
|
|
452
|
-
|
|
453
|
-
Modal is backed with [a11y-dialog | see docs](https://github.com/edenspiekermann/a11y-dialog)
|
|
454
|
-
|
|
455
|
-
If you omit `data-modal` attribute on `<div class="modal" />` element, modal
|
|
456
|
-
won't be initialized and you need to initialize it manually. Then you will have
|
|
457
|
-
access to instance and you can handle modals programatically.
|
|
458
|
-
|
|
459
|
-
```js
|
|
460
|
-
const instance = new window.ODS.modules.Modal(
|
|
461
|
-
document.getElementById("my-modal"),
|
|
462
|
-
config,
|
|
463
|
-
);
|
|
464
|
-
```
|
|
465
|
-
|
|
466
|
-
### Config
|
|
467
|
-
|
|
468
|
-
<DocsTable
|
|
469
|
-
data={[
|
|
470
|
-
{
|
|
471
|
-
prop: "classModalIsOpen",
|
|
472
|
-
type: "string",
|
|
473
|
-
default: "is-active",
|
|
474
|
-
description: "Class which indicates that modal is open.",
|
|
475
|
-
},
|
|
476
|
-
{
|
|
477
|
-
prop: "classModalIsOpenBody",
|
|
478
|
-
type: "string",
|
|
479
|
-
default: "has-modal",
|
|
480
|
-
description: "Class on body which indicates that modal is open.",
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
prop: "root",
|
|
484
|
-
type: "string",
|
|
485
|
-
default: "#root",
|
|
486
|
-
description:
|
|
487
|
-
"Root of page content which should be hidden when modal is open.",
|
|
488
|
-
},
|
|
489
|
-
{
|
|
490
|
-
prop: "modalsRoot",
|
|
491
|
-
type: "string",
|
|
492
|
-
default: "#root-modals",
|
|
493
|
-
description:
|
|
494
|
-
"Element on page where modal is to be placed. This elements should placed outside main content (`'root'` option) and usually at the and of body tag.",
|
|
495
|
-
},
|
|
496
|
-
]}
|
|
497
|
-
/>
|
|
498
|
-
|
|
499
|
-
### Methods
|
|
500
|
-
|
|
501
|
-
```js
|
|
502
|
-
const instance = document.querySelector(elementSelector).ODS_Modal;
|
|
503
|
-
instance.method();
|
|
504
|
-
```
|
|
505
|
-
|
|
506
|
-
<DocsTable
|
|
507
|
-
data={[
|
|
508
|
-
{
|
|
509
|
-
prop: "init",
|
|
510
|
-
type: "func",
|
|
511
|
-
default: "() => {}",
|
|
512
|
-
description:
|
|
513
|
-
"Initialize instance. This is called automatically on `new Plugin(el, config)`",
|
|
514
|
-
},
|
|
515
|
-
{
|
|
516
|
-
prop: "destroy",
|
|
517
|
-
type: "func",
|
|
518
|
-
default: "() => {}",
|
|
519
|
-
description: "Destroy the instance - removes all listeners",
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
prop: "update",
|
|
523
|
-
type: "func",
|
|
524
|
-
default: "() => {}",
|
|
525
|
-
description: "Updates an instance.",
|
|
526
|
-
},
|
|
527
|
-
{
|
|
528
|
-
prop: "show",
|
|
529
|
-
type: "func",
|
|
530
|
-
default: "() => {}",
|
|
531
|
-
description: "Shows modal programmatically.",
|
|
532
|
-
},
|
|
533
|
-
{
|
|
534
|
-
prop: "hide",
|
|
535
|
-
type: "func",
|
|
536
|
-
default: "() => {}",
|
|
537
|
-
description: "Hides modal programmatically.",
|
|
538
|
-
},
|
|
539
|
-
{
|
|
540
|
-
prop: "static getInstance",
|
|
541
|
-
type: "func",
|
|
542
|
-
default: "element => {}",
|
|
543
|
-
description:
|
|
544
|
-
"Get instance of `Modal` attached to specific DOM element (usually `[data-modal]`).",
|
|
545
|
-
},
|
|
546
|
-
]}
|
|
547
|
-
/>
|
|
548
|
-
<Note title="Modal triggers">
|
|
549
|
-
<strong>a11y-dialog</strong> collects all modal openers/triggers with
|
|
550
|
-
querySelector and add them event listeners after page is loaded. Because of
|
|
551
|
-
that, is important to keep in mind, that every new opener/trigger added to DOM
|
|
552
|
-
programatically after page load <strong>will not work</strong>. Workaround is
|
|
553
|
-
to use instance of Modal component and call <strong>show()</strong> method to
|
|
554
|
-
open Modal window.
|
|
555
|
-
</Note>
|
|
556
|
-
|
|
557
|
-
## Accessibility
|
|
558
|
-
|
|
559
|
-
- Modals should only be opened by activating a `button` element.
|
|
560
|
-
- Opening a modal sets focus on element with `data-a11y-modal-initial-focus`
|
|
561
|
-
attribute (modal title by default). When not present, focus is set on first
|
|
562
|
-
focusable element, usually the close button.
|
|
563
|
-
- An open modal traps focus. It must always contain a close button.
|
|
564
|
-
- Pressing ESC or clicking the overlay closes the modal.
|
|
565
|
-
- Closing a modal sets focus back on the activating `button` element.
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import {ComponentDocs, Preview, Note, md } from '@lighting-beetle/lighter-styleguide';
|
|
2
|
-
import Pagination from './index';
|
|
3
|
-
|
|
4
|
-
# Pagination
|
|
5
|
-
|
|
6
|
-
export const getItems = (count = 10, current = Math.ceil(count / 2)) => [...Array(count).fill('').map((_, i) => i+1)].map(n => ({
|
|
7
|
-
label: `${n}`,
|
|
8
|
-
ariaLabel: `Strana ${n}`,
|
|
9
|
-
href: `/?page=${n}`,
|
|
10
|
-
...(current === n ? {isActive: true } : {}),
|
|
11
|
-
}));
|
|
12
|
-
|
|
13
|
-
export const label = "Výber stránok";
|
|
14
|
-
|
|
15
|
-
Pagination is used to separate long lists or pages into more readable chunks and reduce server load by rendering a limited amount of items.
|
|
16
|
-
|
|
17
|
-
The maximum of visible items is 5.
|
|
18
|
-
|
|
19
|
-
<Preview>
|
|
20
|
-
<Pagination label={label} items={getItems(10)} />
|
|
21
|
-
</Preview>
|
|
22
|
-
|
|
23
|
-
## Separators
|
|
24
|
-
|
|
25
|
-
Separators are used when there is more than 5 items and the active page is not near the first or last item.
|
|
26
|
-
|
|
27
|
-
<Preview>
|
|
28
|
-
<Pagination label={label} items={getItems(10, 3)} />
|
|
29
|
-
<Pagination label={label} items={getItems(10)} />
|
|
30
|
-
<Pagination label={label} items={getItems(10, 9)} />
|
|
31
|
-
</Preview>
|
|
32
|
-
|
|
33
|
-
## Compact
|
|
34
|
-
|
|
35
|
-
Compact pagination is used in confined spaces, such as cards. First and last elements are replaced with an icon and separators are removed.
|
|
36
|
-
|
|
37
|
-
<Preview>
|
|
38
|
-
<Pagination label={label} items={getItems(10, 1)} isCompact />
|
|
39
|
-
<Pagination label={label} items={getItems(10, 2)} isCompact />
|
|
40
|
-
<Pagination label={label} items={getItems(10)} isCompact />
|
|
41
|
-
<Pagination label={label} items={getItems(10, 9)} isCompact />
|
|
42
|
-
<Pagination label={label} items={getItems(10, 10)} isCompact />
|
|
43
|
-
</Preview>
|
|
44
|
-
|
|
45
|
-
<ComponentDocs title="<Pagination />" component={Pagination} />
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { ComponentDocs } from '@lighting-beetle/lighter-styleguide';
|
|
2
|
-
|
|
3
|
-
import { Preview } from '../../styleguide/';
|
|
4
|
-
import Icon from '../Icon';
|
|
5
|
-
|
|
6
|
-
import Pill from './Pill';
|
|
7
|
-
|
|
8
|
-
# Pill
|
|
9
|
-
|
|
10
|
-
Put numbers in it.
|
|
11
|
-
|
|
12
|
-
<Preview>
|
|
13
|
-
<Pill>1</Pill>
|
|
14
|
-
</Preview>
|
|
15
|
-
|
|
16
|
-
## Sizes
|
|
17
|
-
|
|
18
|
-
Pill size is determined by font size inherited from ancestor elements.
|
|
19
|
-
|
|
20
|
-
<Preview>
|
|
21
|
-
<h1>This many: <Pill>1</Pill></h1>
|
|
22
|
-
<h2>I have more: <Pill>2</Pill></h2>
|
|
23
|
-
<p><Pill className="large">3</Pill></p>
|
|
24
|
-
<p>Max 3 digits please. <Pill>123</Pill></p>
|
|
25
|
-
</Preview>
|
|
26
|
-
|
|
27
|
-
## Matching size with icons
|
|
28
|
-
|
|
29
|
-
While pill size is determined by typography, [icons have fixes sizes](/components/icon#sizes), icon images usually contain a bit of whitespace around the paths themselves. This makes it nearly impossible to match icon and pill sizes, especially when the icon path has an oval shape.
|
|
30
|
-
|
|
31
|
-
In case there is no way to alter the design, you might want to reuse icon sizing classes. Note that due to whitespace in the icon, the sizes will never match perfectly. Some icons work better than others. Icons with circular shape don't work well, as the size difference becomes more apparent.
|
|
32
|
-
|
|
33
|
-
<Preview>
|
|
34
|
-
<Pill className="icon--large">1</Pill>{' '}<Icon name="fast_delivery" size="large" />
|
|
35
|
-
<br /><br />
|
|
36
|
-
<Pill className="icon--large">2</Pill>{' '}<Icon name="funny" size="large" />
|
|
37
|
-
</Preview>
|
|
38
|
-
|
|
39
|
-
## Props
|
|
40
|
-
|
|
41
|
-
<ComponentDocs title="<Pill />" component={Pill} />
|