@orangesk/orange-design-system 2.0.0-beta.2 → 2.0.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +346 -19
- package/build/components/Accordion/style.css +2 -0
- package/build/components/Accordion/style.css.map +1 -0
- package/build/components/Alert/style.css +2 -0
- package/build/components/Alert/style.css.map +1 -0
- package/build/components/AnchorNavigation/style.css +1 -1
- package/build/components/AnchorNavigation/style.css.map +1 -1
- package/build/components/Bar/style.css +2 -0
- package/build/components/Bar/style.css.map +1 -0
- package/build/components/BlockAction/style.css +2 -0
- package/build/components/BlockAction/style.css.map +1 -0
- package/build/components/BodyBanner/style.css +1 -1
- package/build/components/BodyBanner/style.css.map +1 -1
- package/build/components/Breadcrumbs/style.css +2 -0
- package/build/components/Breadcrumbs/style.css.map +1 -0
- package/build/components/Button/style.css +2 -0
- package/build/components/Button/style.css.map +1 -0
- package/build/components/Buttons/style.css +2 -0
- package/build/components/Buttons/style.css.map +1 -0
- package/build/components/Card/style.css +2 -0
- package/build/components/Card/style.css.map +1 -0
- package/build/components/Carousel/style.css +1 -1
- package/build/components/Carousel/style.css.map +1 -1
- package/build/components/CarouselHero/style.css +2 -0
- package/build/components/CarouselHero/style.css.map +1 -0
- package/build/components/CarouselPromotions/style.css +2 -0
- package/build/components/CarouselPromotions/style.css.map +1 -0
- package/build/components/CartTable/style.css +1 -1
- package/build/components/CartTable/style.css.map +1 -1
- package/build/components/Container/style.css +2 -0
- package/build/components/Container/style.css.map +1 -0
- package/build/components/Controls/style.css +2 -0
- package/build/components/Controls/style.css.map +1 -0
- package/build/components/Cover/style.css +2 -0
- package/build/components/Cover/style.css.map +1 -0
- package/build/components/Divider/style.css +2 -0
- package/build/components/Divider/style.css.map +1 -0
- package/build/components/DocumentationSidebar/style.css +1 -1
- package/build/components/DocumentationSidebar/style.css.map +1 -1
- package/build/components/Dropdown/style.css +1 -1
- package/build/components/Dropdown/style.css.map +1 -1
- package/build/components/Expander/style.css +2 -0
- package/build/components/Expander/style.css.map +1 -0
- package/build/components/FeatureAccordion/style.css +1 -1
- package/build/components/FeatureAccordion/style.css.map +1 -1
- package/build/components/Footer/style.css +1 -1
- package/build/components/Footer/style.css.map +1 -1
- package/build/components/Gauge/style.css +2 -0
- package/build/components/Gauge/style.css.map +1 -0
- package/build/components/Grid/style.css +1 -1
- package/build/components/Grid/style.css.map +1 -1
- package/build/components/Hero/style.css +1 -1
- package/build/components/Hero/style.css.map +1 -1
- package/build/components/Icon/style.css +2 -0
- package/build/components/Icon/style.css.map +1 -0
- package/build/components/IconList/style.css +1 -1
- package/build/components/IconList/style.css.map +1 -1
- package/build/components/Image/style.css +2 -0
- package/build/components/Image/style.css.map +1 -0
- package/build/components/Link/style.css +2 -0
- package/build/components/Link/style.css.map +1 -0
- package/build/components/List/style.css +2 -0
- package/build/components/List/style.css.map +1 -0
- package/build/components/Loader/style.css +2 -0
- package/build/components/Loader/style.css.map +1 -0
- package/build/components/Megamenu/style.css +2 -0
- package/build/components/Megamenu/style.css.map +1 -0
- package/build/components/Modal/style.css +2 -0
- package/build/components/Modal/style.css.map +1 -0
- package/build/components/Pagination/style.css +2 -0
- package/build/components/Pagination/style.css.map +1 -0
- package/build/components/Pill/style.css +2 -0
- package/build/components/Pill/style.css.map +1 -0
- package/build/components/Preview/style.css +1 -1
- package/build/components/Preview/style.css.map +1 -1
- package/build/components/Progress/style.css +2 -0
- package/build/components/Progress/style.css.map +1 -0
- package/build/components/PromoBanner/style.css +1 -1
- package/build/components/PromoBanner/style.css.map +1 -1
- package/build/components/PromotionCard/style.css +2 -0
- package/build/components/PromotionCard/style.css.map +1 -0
- package/build/components/Section/style.css +2 -0
- package/build/components/Section/style.css.map +1 -0
- package/build/components/Skeleton/style.css +2 -0
- package/build/components/Skeleton/style.css.map +1 -0
- package/build/components/SkipLink/style.css +2 -0
- package/build/components/SkipLink/style.css.map +1 -0
- package/build/components/Stepbar/style.css +2 -0
- package/build/components/Stepbar/style.css.map +1 -0
- package/build/components/Sticker/style.css +2 -0
- package/build/components/Sticker/style.css.map +1 -0
- package/build/components/Table/style.css +2 -0
- package/build/components/Table/style.css.map +1 -0
- package/build/components/Tabs/style.css +2 -0
- package/build/components/Tabs/style.css.map +1 -0
- package/build/components/Tag/style.css +2 -0
- package/build/components/Tag/style.css.map +1 -0
- package/build/components/Testimonial/style.css +2 -0
- package/build/components/Testimonial/style.css.map +1 -0
- package/build/components/Tile/style.css +2 -0
- package/build/components/Tile/style.css.map +1 -0
- package/build/components/Tooltip/style.css +1 -1
- package/build/components/Tooltip/style.css.map +1 -1
- package/build/components/index.js +1 -23
- package/build/components/index.js.map +1 -1
- package/build/components/tsconfig.tsbuildinfo +1 -1
- package/build/components/types/index.d.ts +1485 -0
- package/build/components/types/src/components/Accordion/Accordion.d.ts +2 -2
- package/build/components/types/src/components/Accordion/Accordion.static.d.ts +1 -0
- package/build/components/types/src/components/Alert/Alert.d.ts +0 -2
- package/build/components/types/src/components/AnchorNavigation/AnchorNavigation.d.ts +1 -2
- package/build/components/types/src/components/AnchorNavigation/AnchorNavigation.static.d.ts +20 -17
- package/build/components/types/src/components/BlockAction/BlockAction.d.ts +2 -0
- package/build/components/types/src/components/BlockAction/Context.d.ts +2 -0
- package/build/components/types/src/components/BodyBanner/BodyBanner.d.ts +10 -10
- package/build/components/types/src/components/Breadcrumbs/Breadcrumbs.d.ts +0 -2
- package/build/components/types/src/components/Button/Button.d.ts +1 -1
- package/build/components/types/src/components/Button/index.d.ts +3 -4
- package/build/components/types/src/components/Card/Card.d.ts +2 -1
- package/build/components/types/src/components/Card/CardSection.d.ts +2 -2
- package/build/components/types/src/components/Card/index.d.ts +1 -0
- package/build/components/types/src/components/Carousel/Carousel.d.ts +4 -2
- package/build/components/types/src/components/Carousel/Carousel.static.d.ts +61 -7
- package/build/components/types/src/components/Carousel/constants.d.ts +2 -0
- package/build/components/types/src/components/CarouselHero/CarouselHero.d.ts +17 -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/CarouselPromotions/CarouselPromotions.d.ts +0 -1
- package/build/components/types/src/components/Controls/Controls.d.ts +0 -1
- package/build/components/types/src/components/Cover/Cover.d.ts +3 -3
- package/build/components/types/src/components/Divider/Divider.d.ts +0 -4
- package/build/components/types/src/components/DocumentationSidebar/DocumentationSidebar.d.ts +1 -0
- package/build/components/types/src/components/Expander/Expander.d.ts +2 -5
- package/build/components/types/src/components/FeatureAccordion/FeatureAccordion.d.ts +1 -3
- 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/InputStepper/InputStepper.d.ts +0 -1
- package/build/components/types/src/components/Forms/Select/index.d.ts +1 -1
- package/build/components/types/src/components/Grid/Grid.d.ts +1 -1
- package/build/components/types/src/components/Grid/GridCol.d.ts +1 -1
- package/build/components/types/src/components/Hero/Hero.d.ts +0 -3
- package/build/components/types/src/components/Icon/IconSearch.d.ts +2 -2
- package/build/components/types/src/components/Icon/IconSearchWrapper.d.ts +1 -1
- package/build/components/types/src/components/Icon/iconSearchTags.d.ts +255 -252
- package/build/components/types/src/components/Link/Link.d.ts +2 -2
- package/build/components/types/src/components/Megamenu/Megamenu.d.ts +6 -1
- package/build/components/types/src/components/Megamenu/MegamenuBlog.d.ts +2 -1
- package/build/components/types/src/components/Megamenu/constants.d.ts +4 -0
- package/build/components/types/src/components/Megamenu/static.d.ts +2 -3
- package/build/components/types/src/components/Modal/Modal.d.ts +0 -4
- package/build/components/types/src/components/Modal/ModalBody.d.ts +3 -3
- package/build/components/types/src/components/Modal/ModalProductHeader.d.ts +2 -0
- package/build/components/types/src/components/Modal/index.d.ts +0 -1
- package/build/components/types/src/components/Pagination/Pagination.d.ts +2 -5
- package/build/components/types/src/components/Pagination/Separator.d.ts +2 -2
- package/build/components/types/src/components/Pill/Pill.d.ts +3 -1
- package/build/components/types/src/components/Preview/Preview.d.ts +1 -1
- package/build/components/types/src/components/Preview/PreviewGenerator.d.ts +1 -0
- package/build/components/types/src/components/Preview/index.d.ts +1 -1
- package/build/components/types/src/components/Progress/Progress.d.ts +0 -1
- package/build/components/types/src/components/PromoBanner/PromoBanner.d.ts +9 -6
- package/build/components/types/src/components/PromotionCard/PromotionCard.d.ts +3 -3
- package/build/components/types/src/components/Section/Section.d.ts +4 -1
- package/build/components/types/src/components/Stepbar/Stepbar.d.ts +0 -2
- package/build/components/types/src/components/Table/Row.d.ts +1 -2
- package/build/components/types/src/components/Table/Table.d.ts +2 -2
- package/build/components/types/src/components/Table/docsData.d.ts +2 -0
- package/build/components/types/src/components/Table/types.d.ts +1 -0
- package/build/components/types/src/components/Tabs/Tabs.d.ts +0 -2
- package/build/components/types/src/components/Tag/Tag.d.ts +0 -2
- package/build/components/types/src/components/Tile/Tile.d.ts +2 -1
- package/build/components/types/src/components/Tooltip/Tooltip.d.ts +0 -1
- package/build/components/types/src/components/Tooltip/tests/BaseWrapper.d.ts +1 -1
- package/build/components/types/src/components/index.d.ts +4 -5
- package/build/components/types/src/docs/utils/SpacePreview.d.ts +1 -2
- package/build/components/types/src/scripts/index.d.ts +12 -3
- package/build/components/types/src/scripts/modules/SameHeight.d.ts +3 -0
- package/build/components/types/src/styles/export/color.d.ts +105 -0
- package/build/fonts/HelveticaNeue-Bold.woff2 +0 -0
- package/build/fonts/HelveticaNeue-Light.woff2 +0 -0
- package/build/fonts/HelveticaNeue-Roman.woff2 +0 -0
- package/build/lib/base.css +3 -0
- package/build/lib/base.css.map +1 -0
- 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 +1 -1
- package/build/lib/megamenu.css.map +1 -1
- package/build/lib/megamenu.js +1 -1
- package/build/lib/megamenu.js.map +1 -1
- package/build/lib/scripts.js +1 -9
- 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/lib/utilities.css +2 -0
- package/build/lib/utilities.css.map +1 -0
- package/build/sprite.svg +1 -1
- package/package.json +46 -38
- package/public/fonts/HelveticaNeue-Bold.woff2 +0 -0
- package/public/fonts/HelveticaNeue-Light.woff2 +0 -0
- package/public/fonts/HelveticaNeue-Roman.woff2 +0 -0
- 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/assets/icons/play.svg +4 -1
- package/src/assets/icons/quote.svg +4 -0
- package/src/components/Accordion/Accordion.static.ts +36 -30
- package/src/components/Accordion/Accordion.tsx +4 -4
- package/src/components/Accordion/AccordionHeader.tsx +0 -10
- package/src/components/Accordion/AccordionItem.tsx +1 -0
- package/src/components/Accordion/styles/config.scss +5 -4
- package/src/components/Accordion/styles/mixins.scss +12 -11
- package/src/components/Accordion/styles/style.scss +2 -2
- package/src/components/Accordion/tests/Accordion.unit.test.js +12 -26
- package/src/components/Alert/Alert.tsx +0 -6
- package/src/components/Alert/styles/config.scss +1 -1
- package/src/components/Alert/styles/mixins.scss +3 -1
- package/src/components/Alert/tests/Alert.test.js +0 -14
- package/src/components/AnchorNavigation/AnchorNavigation.static.ts +296 -72
- package/src/components/AnchorNavigation/AnchorNavigation.tsx +21 -26
- package/src/components/AnchorNavigation/styles/mixins.scss +23 -32
- package/src/components/AnchorNavigation/tests/AnchorNavigation.conformance.test.js +58 -0
- package/src/components/AnchorNavigation/tests/AnchorNavigation.unit.test.js +163 -0
- package/src/components/Bar/styles/config.scss +4 -5
- package/src/components/Bar/styles/mixins.scss +11 -11
- package/src/components/BlockAction/BlockAction.tsx +10 -3
- package/src/components/BlockAction/Context.tsx +4 -0
- package/src/components/BlockAction/styles/mixins.scss +6 -6
- package/src/components/BlockAction/styles/style.scss +5 -0
- package/src/components/BodyBanner/BodyBanner.tsx +52 -73
- package/src/components/BodyBanner/styles/mixins.scss +39 -33
- package/src/components/BodyBanner/styles/style.scss +4 -18
- package/src/components/BodyBanner/tests/BodyBanner.conformance.test.js +67 -0
- package/src/components/BodyBanner/tests/BodyBanner.unit.test.js +194 -0
- package/src/components/Breadcrumbs/BreadcrumbItem.tsx +16 -7
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +4 -12
- package/src/components/Breadcrumbs/styles/mixins.scss +2 -4
- package/src/components/Breadcrumbs/tests/BreadcrumbItem.unit.test.js +14 -8
- package/src/components/Breadcrumbs/tests/Breadcrumbs.integration.test.js +14 -37
- package/src/components/Breadcrumbs/tests/Breadcrumbs.unit.test.js +19 -23
- package/src/components/Button/Button.tsx +2 -6
- package/src/components/Button/styles/config.scss +5 -5
- package/src/components/Button/styles/mixins.scss +6 -1
- package/src/components/Button/styles/style.scss +4 -0
- package/src/components/Button/tests/Button.test.js +0 -10
- package/src/components/Buttons/styles/mixins.scss +1 -1
- package/src/components/Card/Card.tsx +20 -3
- package/src/components/Card/CardSection.tsx +7 -11
- package/src/components/Card/index.ts +1 -0
- package/src/components/Card/styles/config.scss +2 -2
- 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 -6
- package/src/components/Card/tests/CardSection.unit.test.js +36 -3
- package/src/components/Carousel/Carousel.static.ts +371 -10
- package/src/components/Carousel/Carousel.tsx +41 -24
- package/src/components/Carousel/constants.ts +2 -0
- package/src/components/Carousel/styles/config.scss +1 -2
- package/src/components/Carousel/styles/mixins.scss +42 -3
- package/src/components/Carousel/styles/style.scss +8 -0
- package/src/components/Carousel/tests/Carousel.static.test.js +616 -0
- package/src/components/Carousel/tests/Carousel.unit.test.js +117 -12
- package/src/components/CarouselHero/CarouselHero.static.ts +528 -0
- package/src/components/CarouselHero/CarouselHero.tsx +139 -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 +129 -0
- package/src/components/CarouselHero/tests/CarouselHero.unit.test.js +332 -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/CarouselPromotions.tsx +1 -6
- package/src/components/CarouselPromotions/styles/mixins.scss +8 -5
- package/src/components/CarouselPromotions/tests/CarouselPromotions.unit.test.js +0 -17
- package/src/components/CartTable/FooterPriceColumn.tsx +5 -3
- package/src/components/CartTable/Price.tsx +1 -1
- package/src/components/Code/styles/style.scss +6 -5
- package/src/components/Controls/Controls.tsx +2 -7
- package/src/components/Controls/styles/config.scss +2 -2
- package/src/components/Controls/tests/Controls.test.js +0 -32
- package/src/components/Cover/Cover.tsx +22 -20
- package/src/components/Cover/styles/config.scss +23 -12
- package/src/components/Cover/styles/mixins.scss +6 -5
- package/src/components/Cover/tests/Cover.unit.test.js +52 -52
- 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/DocumentationSidebar/DocumentationSidebar.tsx +188 -2
- package/src/components/DocumentationSidebar/styles/style.scss +76 -3
- package/src/components/Dropdown/styles/mixins.scss +1 -1
- package/src/components/Expander/Expander.static.ts +11 -12
- package/src/components/Expander/Expander.tsx +4 -8
- package/src/components/Expander/styles/style.scss +12 -3
- package/src/components/Expander/tests/Expander.conformance.test.js +8 -12
- package/src/components/Expander/tests/Expander.unit.test.js +37 -47
- package/src/components/FeatureAccordion/FeatureAccordion.tsx +3 -13
- package/src/components/FeatureAccordion/styles/mixins.scss +6 -14
- package/src/components/FeatureAccordion/styles/style.scss +2 -4
- package/src/components/FeatureAccordion/tests/FeatureAccordion.conformance.test.js +2 -0
- package/src/components/FeatureAccordion/tests/FeatureAccordion.unit.test.js +0 -5
- 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 +173 -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/Field/styles/config.scss +8 -8
- package/src/components/Forms/Field/tests/Autocomplete.Field.conformance.test.js +1 -1
- package/src/components/Forms/Field/tests/Checkbox.Field.conformance.test.js +1 -0
- package/src/components/Forms/Field/tests/File.Field.conformance.test.js +1 -0
- package/src/components/Forms/Field/tests/Group.Field.conformance.test.js +1 -0
- package/src/components/Forms/Field/tests/Radio.Field.conformance.test.js +1 -0
- package/src/components/Forms/Field/tests/Rangeslider.Field.test.js +1 -0
- package/src/components/Forms/Field/tests/Select.Field.conformance.test.js +1 -0
- package/src/components/Forms/Field/tests/Text.Field.conformance.test.js +1 -0
- package/src/components/Forms/Field/tests/Textarea.Field.conformance.test.js +1 -0
- package/src/components/Forms/Fieldset/styles/mixins.scss +3 -3
- package/src/components/Forms/File/styles/mixins.scss +1 -1
- package/src/components/Forms/Group/styles/mixins.scss +14 -0
- package/src/components/Forms/InputStepper/InputStepper.tsx +0 -4
- package/src/components/Forms/InputStepper/styles/style.scss +0 -66
- package/src/components/Forms/Label/styles/config.scss +3 -0
- package/src/components/Forms/RangeSlider/styles/mixins.scss +1 -1
- package/src/components/Forms/TextInput/styles/config.scss +1 -1
- package/src/components/Forms/styles/config.scss +3 -3
- package/src/components/Gauge/styles/style.scss +1 -1
- package/src/components/Grid/Grid.tsx +1 -1
- package/src/components/Grid/styles/config.scss +5 -3
- package/src/components/Grid/styles/mixins.scss +29 -19
- package/src/components/Grid/tests/Grid.unit.test.js +11 -0
- package/src/components/Hero/Hero.tsx +2 -16
- package/src/components/Hero/styles/style.scss +0 -14
- package/src/components/Hero/tests/Hero.unit.test.js +109 -119
- package/src/components/Icon/iconSearchTags.ts +435 -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/styles/mixins.scss +5 -5
- package/src/components/Image/styles/mixins.scss +2 -2
- package/src/components/Link/Link.tsx +4 -5
- package/src/components/Link/styles/mixins.scss +9 -3
- package/src/components/Link/styles/style.scss +4 -2
- package/src/components/Link/tests/Link.conformance.test.js +6 -27
- package/src/components/Link/tests/Link.unit.test.js +1 -30
- package/src/components/List/styles/config.scss +12 -12
- package/src/components/List/styles/mixins.scss +16 -9
- 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/Megamenu.static.ts +2 -0
- package/src/components/Megamenu/Megamenu.tsx +730 -650
- package/src/components/Megamenu/MegamenuBlog.tsx +201 -183
- package/src/components/Megamenu/constants.ts +4 -0
- package/src/components/Megamenu/static.ts +5 -11
- package/src/components/Megamenu/styles/mixins.scss +50 -3
- package/src/components/Megamenu/styles/style.scss +10 -0
- package/src/components/Modal/Modal.tsx +1 -14
- package/src/components/Modal/ModalBody.tsx +26 -14
- package/src/components/Modal/ModalProductHeader.tsx +6 -2
- package/src/components/Modal/index.ts +0 -1
- package/src/components/Modal/styles/config.scss +4 -4
- package/src/components/Modal/styles/mixins.scss +18 -57
- package/src/components/Modal/styles/style.scss +1 -16
- package/src/components/Modal/tests/Modal.unit.test.js +0 -59
- package/src/components/Modal/tests/ModalBody.unit.test.js +21 -12
- package/src/components/Modal/tests/ModalProductHeader.unit.test.js +12 -0
- package/src/components/Pagination/Pagination.tsx +3 -13
- package/src/components/Pagination/styles/mixins.scss +1 -1
- package/src/components/Pill/Pill.tsx +17 -5
- package/src/components/Pill/styles/config.scss +2 -1
- package/src/components/Pill/styles/style.scss +17 -1
- package/src/components/Pill/tests/Pill.conformance.test.js +9 -3
- package/src/components/Pill/tests/Pill.unit.test.js +87 -9
- package/src/components/Preview/PreviewGenerator.tsx +50 -29
- package/src/components/Progress/Progress.tsx +1 -13
- package/src/components/Progress/styles/config.scss +4 -4
- package/src/components/Progress/styles/mixins.scss +9 -7
- package/src/components/PromoBanner/PromoBanner.tsx +70 -43
- package/src/components/PromoBanner/styles/mixins.scss +39 -17
- package/src/components/PromoBanner/styles/style.scss +5 -7
- package/src/components/PromoBanner/tests/PromoBanner.conformance.test.js +783 -0
- package/src/components/PromoBanner/tests/PromoBanner.unit.test.js +549 -0
- package/src/components/PromotionCard/PromotionCard.tsx +12 -13
- package/src/components/PromotionCard/styles/mixins.scss +2 -1
- package/src/components/PromotionCard/tests/PromotionCard.conformance.test.js +566 -0
- package/src/components/PromotionCard/tests/PromotionCard.unit.test.js +438 -0
- package/src/components/Section/Section.tsx +20 -10
- 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 +23 -12
- package/src/components/Section/tests/Section.unit.test.js +53 -32
- package/src/components/Stepbar/Stepbar.tsx +0 -5
- package/src/components/Stepbar/styles/mixins.scss +1 -1
- package/src/components/Table/Row.tsx +9 -3
- package/src/components/Table/Table.tsx +11 -6
- package/src/components/Table/TableContext.ts +1 -0
- package/src/components/Table/docsData.ts +25 -0
- package/src/components/Table/styles/mixins.scss +41 -5
- package/src/components/Table/styles/style.scss +6 -0
- package/src/components/Table/tests/Table.conformance.test.js +5 -1
- package/src/components/Table/tests/Table.unit.test.js +0 -31
- package/src/components/Table/types.ts +1 -0
- package/src/components/Tabs/Tabs.tsx +0 -5
- package/src/components/Tabs/styles/mixins.scss +1 -1
- package/src/components/Tabs/tests/Tabs.unit.test.js +0 -8
- package/src/components/Tag/Tag.tsx +0 -4
- package/src/components/Tag/styles/config.scss +19 -23
- package/src/components/Tag/styles/style.scss +33 -0
- package/src/components/Tile/CHANGELOG.md +15 -1
- package/src/components/Tile/Tile.tsx +11 -3
- package/src/components/Tile/styles/config.scss +0 -11
- package/src/components/Tile/styles/mixins.scss +1 -0
- package/src/components/Tile/styles/style.scss +1 -5
- package/src/components/Tile/tests/Tile.unit.test.js +10 -3
- package/src/components/Tooltip/InfoTooltip.tsx +1 -5
- package/src/components/Tooltip/Tooltip.tsx +1 -10
- package/src/components/Tooltip/tests/Tooltip.conformance.test.js +5 -1
- package/src/components/Tooltip/tests/Tooltip.unit.test.js +0 -29
- package/src/components/index.ts +7 -4
- package/src/styles/base/globals-forms.scss +8 -0
- package/src/styles/base/globals.scss +26 -22
- package/src/styles/base/styleguide.scss +22 -17
- package/src/styles/export/base.js +1 -1
- package/src/styles/export/color.js +102 -20
- package/src/styles/export/color.scss +10 -20
- package/src/styles/shame.scss +1 -0
- package/src/styles/tokens/color-vars.scss +39 -0
- package/src/styles/tokens/color.scss +14 -14
- package/src/styles/tokens/tag-colors.scss +20 -0
- package/src/styles/typography/config.scss +83 -37
- package/src/styles/typography/mixins.scss +29 -15
- package/src/styles/typography/style.scss +6 -3
- package/src/styles/utilities/border.scss +1 -1
- package/src/styles/utilities/color.scss +99 -20
- package/src/styles/utilities/horizontal-scroll.scss +1 -1
- package/src/styles/utilities/index.scss +1 -0
- package/src/styles/utilities/layout.scss +27 -0
- package/src/styles/utilities/ordering.scss +44 -0
- package/src/styles/utilities/text.scss +44 -2
- package/src/styles/utilities/visibility.scss +2 -4
- 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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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 -16
- package/build/components/Megamenu/index.js.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/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/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/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/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/tsconfig.tsbuildinfo +0 -1
- package/build/components/index.css +0 -3
- package/build/components/index.css.map +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/Modal/ModalProductBody.d.ts +0 -10
- package/build/lib/after-components.css +0 -2
- package/build/lib/after-components.css.map +0 -1
- package/build/lib/before-components.css +0 -3
- package/build/lib/before-components.css.map +0 -1
- package/build/lib/scripts.css +0 -2
- package/build/lib/scripts.css.map +0 -1
- package/src/components/Accordion/Accordion.mdx +0 -240
- 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 -238
- package/src/components/List/List.mdx +0 -216
- package/src/components/Loader/Loader.mdx +0 -148
- package/src/components/Modal/Modal.mdx +0 -565
- package/src/components/Modal/ModalProductBody.tsx +0 -52
- package/src/components/Pagination/Pagination.mdx +0 -45
- package/src/components/Pagination/tests/utils.js +0 -12
- 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/styles/after-components.scss +0 -2
- package/src/styles/before-components.scss +0 -18
- /package/build/lib/{after-components.js → base.js} +0 -0
- /package/build/lib/{before-components.js → utilities.js} +0 -0
|
@@ -1,397 +0,0 @@
|
|
|
1
|
-
import { ComponentDocs } from "@lighting-beetle/lighter-styleguide";
|
|
2
|
-
import { loremIpsum as lipsum } from "lorem-ipsum";
|
|
3
|
-
import Preview, { PreviewSpacing } from "../../styleguide/Preview/";
|
|
4
|
-
import cx from "classnames";
|
|
5
|
-
import Grid, { GridCol } from "../Grid";
|
|
6
|
-
import ToggleButton from "../../docs/utils/ToggleButton";
|
|
7
|
-
import Button from "../Button";
|
|
8
|
-
import { Section } from "./";
|
|
9
|
-
|
|
10
|
-
# Section
|
|
11
|
-
|
|
12
|
-
Section is an element that helps to separate page segments with consistent spacing. The content is automatically wrapped in a Container component for consistent layout and spacing.
|
|
13
|
-
|
|
14
|
-
<Preview>
|
|
15
|
-
<Section children="This is a section. You can use it to space out certain parts of the page with standardized spaces. The content is wrapped in a Container component." />
|
|
16
|
-
</Preview>
|
|
17
|
-
|
|
18
|
-
## Structure
|
|
19
|
-
|
|
20
|
-
Section automatically wraps its content in a Container component, which provides consistent layout constraints and spacing. This ensures that content is properly contained and aligned within the section.
|
|
21
|
-
|
|
22
|
-
<Preview>
|
|
23
|
-
<Section>
|
|
24
|
-
<div style={{ border: "1px dashed #ccc", padding: "10px" }}>
|
|
25
|
-
This content is wrapped in a Container component
|
|
26
|
-
</div>
|
|
27
|
-
</Section>
|
|
28
|
-
</Preview>
|
|
29
|
-
|
|
30
|
-
## Colors
|
|
31
|
-
|
|
32
|
-
<Preview>
|
|
33
|
-
<Section children="Gray Section" color="gray" />
|
|
34
|
-
<Section children="White (default) Section" />
|
|
35
|
-
<Section children="Black Section" color="black" />
|
|
36
|
-
<Section children="Orange Section" color="orange" />
|
|
37
|
-
</Preview>
|
|
38
|
-
|
|
39
|
-
## HTML Tags
|
|
40
|
-
|
|
41
|
-
Section can render as different HTML elements using the `tag` prop. This is useful for semantic HTML structure.
|
|
42
|
-
|
|
43
|
-
<Preview>
|
|
44
|
-
<Section children="Default div tag" />
|
|
45
|
-
<Section children="Section tag" tag="section" />
|
|
46
|
-
<Section children="Article tag" tag="article" />
|
|
47
|
-
<Section children="Main tag" tag="main" />
|
|
48
|
-
<Section children="Aside tag" tag="aside" />
|
|
49
|
-
<Section children="Header tag" tag="header" />
|
|
50
|
-
<Section children="Footer tag" tag="footer" />
|
|
51
|
-
</Preview>
|
|
52
|
-
|
|
53
|
-
## Spacing variants and rules
|
|
54
|
-
|
|
55
|
-
### Default
|
|
56
|
-
|
|
57
|
-
<PreviewSpacing>
|
|
58
|
-
<Section children="Default section" />
|
|
59
|
-
</PreviewSpacing>
|
|
60
|
-
|
|
61
|
-
### Small
|
|
62
|
-
|
|
63
|
-
A small section has smaller spacing on its top side.
|
|
64
|
-
|
|
65
|
-
<PreviewSpacing>
|
|
66
|
-
<Section children="Small section" spacing="small" />
|
|
67
|
-
</PreviewSpacing>
|
|
68
|
-
|
|
69
|
-
### Extra small
|
|
70
|
-
|
|
71
|
-
This section has 10 px spacings from both top and bottom.
|
|
72
|
-
|
|
73
|
-
<PreviewSpacing>
|
|
74
|
-
<Section children="Extra small section" spacing="xsmall" />
|
|
75
|
-
</PreviewSpacing>
|
|
76
|
-
|
|
77
|
-
### Rules
|
|
78
|
-
|
|
79
|
-
First section appearing in a group of sections is always `default`. Following sections of the same color
|
|
80
|
-
are `small`. Following sections of a different color are always `default`.
|
|
81
|
-
|
|
82
|
-
Default, white, gray, black, and orange sections have these rules applied automatically without specifying the sections's size.
|
|
83
|
-
|
|
84
|
-
<PreviewSpacing>
|
|
85
|
-
<Section children="Gray" color="gray" />
|
|
86
|
-
<Section children="Another gray" color="gray" />
|
|
87
|
-
<Section children="Black" color="black" />
|
|
88
|
-
<Section children="White" />
|
|
89
|
-
<Section children="Another white" />
|
|
90
|
-
</PreviewSpacing>
|
|
91
|
-
|
|
92
|
-
#### Breaking the rules
|
|
93
|
-
|
|
94
|
-
Spacing rules can be broken using `section--default` and `section--small` classNames.
|
|
95
|
-
|
|
96
|
-
<PreviewSpacing>
|
|
97
|
-
<Section
|
|
98
|
-
children="Small spacing breaking the rules (first section should be default)"
|
|
99
|
-
spacing="small"
|
|
100
|
-
/>
|
|
101
|
-
<Section
|
|
102
|
-
children="Default spacing breaking the rules (adjacent section of the same color should be small)"
|
|
103
|
-
spacing="default"
|
|
104
|
-
/>
|
|
105
|
-
</PreviewSpacing>
|
|
106
|
-
|
|
107
|
-
## Accessibility
|
|
108
|
-
|
|
109
|
-
Section supports various accessibility features through ARIA attributes and semantic HTML tags. The Container wrapper maintains accessibility while providing consistent layout.
|
|
110
|
-
|
|
111
|
-
### Semantic HTML
|
|
112
|
-
|
|
113
|
-
Use appropriate HTML tags for better accessibility:
|
|
114
|
-
|
|
115
|
-
<Preview>
|
|
116
|
-
<Section tag="main" aria-label="Main content">
|
|
117
|
-
<h1>Main Content</h1>
|
|
118
|
-
<p>
|
|
119
|
-
This section uses the main tag for semantic meaning and wraps content in a
|
|
120
|
-
Container.
|
|
121
|
-
</p>
|
|
122
|
-
</Section>
|
|
123
|
-
</Preview>
|
|
124
|
-
|
|
125
|
-
### ARIA Attributes
|
|
126
|
-
|
|
127
|
-
<Preview>
|
|
128
|
-
<Section
|
|
129
|
-
tag="section"
|
|
130
|
-
aria-labelledby="section-title"
|
|
131
|
-
aria-describedby="section-description"
|
|
132
|
-
>
|
|
133
|
-
<h2 id="section-title">Section Title</h2>
|
|
134
|
-
<p id="section-description">
|
|
135
|
-
This section has proper ARIA labeling and Container wrapper.
|
|
136
|
-
</p>
|
|
137
|
-
</Section>
|
|
138
|
-
</Preview>
|
|
139
|
-
|
|
140
|
-
### Interactive Elements
|
|
141
|
-
|
|
142
|
-
<Preview>
|
|
143
|
-
<Section>
|
|
144
|
-
<button type="button" onClick={() => alert("Button clicked!")}>
|
|
145
|
-
Interactive Button
|
|
146
|
-
</button>
|
|
147
|
-
<input type="text" aria-label="Search input" placeholder="Search..." />
|
|
148
|
-
</Section>
|
|
149
|
-
</Preview>
|
|
150
|
-
|
|
151
|
-
## Spacing problems and solutions
|
|
152
|
-
|
|
153
|
-
### 1. Last element
|
|
154
|
-
|
|
155
|
-
#### Problem:
|
|
156
|
-
|
|
157
|
-
If there is **just one element at the end** of the section and this element has
|
|
158
|
-
its **own bottom spacing** defined, these spaces would add up and we would lose spacing
|
|
159
|
-
consistency.
|
|
160
|
-
|
|
161
|
-
<PreviewSpacing>
|
|
162
|
-
<Section color="gray">
|
|
163
|
-
<p>
|
|
164
|
-
Et irure sit ut deserunt irure quis enim amet mollit. Adipisicing ullamco
|
|
165
|
-
adipisicing.
|
|
166
|
-
</p>
|
|
167
|
-
<Button type="primary">Button</Button>
|
|
168
|
-
</Section>
|
|
169
|
-
</PreviewSpacing>
|
|
170
|
-
|
|
171
|
-
#### Solution:
|
|
172
|
-
|
|
173
|
-
1. remove last element spacing
|
|
174
|
-
|
|
175
|
-
<PreviewSpacing>
|
|
176
|
-
<Section color="gray">
|
|
177
|
-
<p>
|
|
178
|
-
Et irure sit ut deserunt irure quis enim amet mollit. Adipisicing ullamco
|
|
179
|
-
adipisicing.
|
|
180
|
-
</p>
|
|
181
|
-
<Button type="primary" className="mb-none">
|
|
182
|
-
Button
|
|
183
|
-
</Button>
|
|
184
|
-
</Section>
|
|
185
|
-
</PreviewSpacing>
|
|
186
|
-
|
|
187
|
-
### 2. Stacking elements
|
|
188
|
-
|
|
189
|
-
#### Problem:
|
|
190
|
-
|
|
191
|
-
There are **multiple elements** in row at the end of a section and **they define their own
|
|
192
|
-
bottom spacing** (`p` in this case, uses default `medium` margin), because
|
|
193
|
-
they need to stack on smaller devices. The space of the section and elements
|
|
194
|
-
would add up and we would lose spacing consistency.
|
|
195
|
-
|
|
196
|
-
export const cols1 = [5, 2, 3, 4].map((count) => lipsum({ count }));
|
|
197
|
-
|
|
198
|
-
<PreviewSpacing>
|
|
199
|
-
<Section color="gray">
|
|
200
|
-
<Grid>
|
|
201
|
-
{cols1.map((content, index, arr) => (
|
|
202
|
-
<GridCol key={index.toString()} size={{ md: 3 }}>
|
|
203
|
-
<p>{content}</p>
|
|
204
|
-
</GridCol>
|
|
205
|
-
))}
|
|
206
|
-
</Grid>
|
|
207
|
-
</Section>
|
|
208
|
-
</PreviewSpacing>
|
|
209
|
-
|
|
210
|
-
#### Solution:
|
|
211
|
-
|
|
212
|
-
Use [Grid row gap](/components/grid#row-gap-size)
|
|
213
|
-
|
|
214
|
-
<PreviewSpacing>
|
|
215
|
-
<Section color="gray">
|
|
216
|
-
<Grid rowGapSize="medium">
|
|
217
|
-
{cols1.map((content, index, arr) => (
|
|
218
|
-
<GridCol key={index.toString()} size={{ md: 3 }}>
|
|
219
|
-
<p>{content}</p>
|
|
220
|
-
</GridCol>
|
|
221
|
-
))}
|
|
222
|
-
</Grid>
|
|
223
|
-
</Section>
|
|
224
|
-
</PreviewSpacing>
|
|
225
|
-
|
|
226
|
-
### 3. Dynamic visibility of a last element
|
|
227
|
-
|
|
228
|
-
#### Problem
|
|
229
|
-
|
|
230
|
-
If there is a possibility of **last element** of a section (`<button>` in this case) to disappear,
|
|
231
|
-
spacing of elements above this element would collide with a section spacing and we would lose spacing consistency.
|
|
232
|
-
|
|
233
|
-
export const cols2 = [1, 2, 3, 4, 5, 6, 7, 8].map((count) => lipsum({ count }));
|
|
234
|
-
|
|
235
|
-
<PreviewSpacing>
|
|
236
|
-
<Section color="gray">
|
|
237
|
-
<Grid>
|
|
238
|
-
{cols2.map((content, index, arr) => (
|
|
239
|
-
<GridCol
|
|
240
|
-
key={index.toString()}
|
|
241
|
-
size={{ md: 3 }}
|
|
242
|
-
className={
|
|
243
|
-
index < arr.length / 2 ? "" : "hidden-problem-element hide"
|
|
244
|
-
}
|
|
245
|
-
>
|
|
246
|
-
<p>{content}</p>
|
|
247
|
-
</GridCol>
|
|
248
|
-
))}
|
|
249
|
-
</Grid>
|
|
250
|
-
<ToggleButton
|
|
251
|
-
className="mb-none"
|
|
252
|
-
type="primary"
|
|
253
|
-
data-toggle={JSON.stringify([
|
|
254
|
-
{
|
|
255
|
-
target: ".hidden-problem-element.hide",
|
|
256
|
-
attribute: "class",
|
|
257
|
-
value: "hide",
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
target: "self",
|
|
261
|
-
attribute: "class",
|
|
262
|
-
value: "hide",
|
|
263
|
-
},
|
|
264
|
-
])}
|
|
265
|
-
>
|
|
266
|
-
Show more
|
|
267
|
-
</ToggleButton>
|
|
268
|
-
</Section>
|
|
269
|
-
</PreviewSpacing>
|
|
270
|
-
|
|
271
|
-
#### Solution:
|
|
272
|
-
|
|
273
|
-
1. Use [Grid row gap](/components/grid#row-gap-size)
|
|
274
|
-
2. Add additional spacing between grid and button and remove this spacing after
|
|
275
|
-
showing hidden element
|
|
276
|
-
|
|
277
|
-
##### Example:
|
|
278
|
-
|
|
279
|
-
<PreviewSpacing>
|
|
280
|
-
<Section color="gray">
|
|
281
|
-
<Grid rowGapSize="medium" className="mb-medium">
|
|
282
|
-
{cols2.map((content, index, arr) => (
|
|
283
|
-
<GridCol
|
|
284
|
-
key={index.toString()}
|
|
285
|
-
size={{ md: 3 }}
|
|
286
|
-
className={cx({
|
|
287
|
-
"hidden-solution-element hide": index >= arr.length / 2,
|
|
288
|
-
})}
|
|
289
|
-
>
|
|
290
|
-
<p>{content}</p>
|
|
291
|
-
</GridCol>
|
|
292
|
-
))}
|
|
293
|
-
</Grid>
|
|
294
|
-
<ToggleButton
|
|
295
|
-
className="mb-none"
|
|
296
|
-
type="primary"
|
|
297
|
-
data-toggle={JSON.stringify([
|
|
298
|
-
{
|
|
299
|
-
target: ".hidden-solution-element.hide",
|
|
300
|
-
attribute: "class",
|
|
301
|
-
value: "hide",
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
target: "previous",
|
|
305
|
-
attribute: "class",
|
|
306
|
-
value: "mb-medium",
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
target: "self",
|
|
310
|
-
attribute: "class",
|
|
311
|
-
value: "hide",
|
|
312
|
-
},
|
|
313
|
-
])}
|
|
314
|
-
>
|
|
315
|
-
<span>Show more</span>
|
|
316
|
-
</ToggleButton>
|
|
317
|
-
</Section>
|
|
318
|
-
</PreviewSpacing>
|
|
319
|
-
|
|
320
|
-
## Advanced Usage
|
|
321
|
-
|
|
322
|
-
### Container Integration
|
|
323
|
-
|
|
324
|
-
The Container wrapper provides consistent layout constraints. You can see this in action with complex content structures:
|
|
325
|
-
|
|
326
|
-
<Preview>
|
|
327
|
-
<Section tag="article" color="gray" spacing="small">
|
|
328
|
-
<header>
|
|
329
|
-
<h1>Article Title</h1>
|
|
330
|
-
<time dateTime="2024-01-01">January 1, 2024</time>
|
|
331
|
-
</header>
|
|
332
|
-
<main>
|
|
333
|
-
<p>
|
|
334
|
-
Article content with <a href="#link">links</a> and{" "}
|
|
335
|
-
<strong>emphasis</strong>.
|
|
336
|
-
</p>
|
|
337
|
-
<blockquote>
|
|
338
|
-
<p>This is a quote within the section, properly contained.</p>
|
|
339
|
-
</blockquote>
|
|
340
|
-
</main>
|
|
341
|
-
<footer>
|
|
342
|
-
<p>Article footer with additional information.</p>
|
|
343
|
-
</footer>
|
|
344
|
-
</Section>
|
|
345
|
-
</Preview>
|
|
346
|
-
|
|
347
|
-
### Custom Data Attributes
|
|
348
|
-
|
|
349
|
-
<Preview>
|
|
350
|
-
<Section
|
|
351
|
-
data-testid="custom-section"
|
|
352
|
-
data-analytics="section-tracking"
|
|
353
|
-
data-section-type="content"
|
|
354
|
-
>
|
|
355
|
-
<p>This section has custom data attributes for testing and analytics.</p>
|
|
356
|
-
</Section>
|
|
357
|
-
</Preview>
|
|
358
|
-
|
|
359
|
-
### Event Handling
|
|
360
|
-
|
|
361
|
-
<Preview>
|
|
362
|
-
<Section
|
|
363
|
-
onClick={() => alert("Section clicked!")}
|
|
364
|
-
onFocus={() => console.log("Section focused")}
|
|
365
|
-
role="button"
|
|
366
|
-
tabIndex={0}
|
|
367
|
-
>
|
|
368
|
-
<p>This section is clickable and focusable.</p>
|
|
369
|
-
</Section>
|
|
370
|
-
</Preview>
|
|
371
|
-
|
|
372
|
-
### Complex Content Structure
|
|
373
|
-
|
|
374
|
-
<Preview>
|
|
375
|
-
<Section tag="article" color="gray" spacing="small">
|
|
376
|
-
<header>
|
|
377
|
-
<h1>Article Title</h1>
|
|
378
|
-
<time dateTime="2024-01-01">January 1, 2024</time>
|
|
379
|
-
</header>
|
|
380
|
-
<main>
|
|
381
|
-
<p>
|
|
382
|
-
Article content with <a href="#link">links</a> and{" "}
|
|
383
|
-
<strong>emphasis</strong>.
|
|
384
|
-
</p>
|
|
385
|
-
<blockquote>
|
|
386
|
-
<p>This is a quote within the section.</p>
|
|
387
|
-
</blockquote>
|
|
388
|
-
</main>
|
|
389
|
-
<footer>
|
|
390
|
-
<p>Article footer with additional information.</p>
|
|
391
|
-
</footer>
|
|
392
|
-
</Section>
|
|
393
|
-
</Preview>
|
|
394
|
-
|
|
395
|
-
## Props
|
|
396
|
-
|
|
397
|
-
<ComponentDocs title="<Section />" component={Section} />
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { ComponentDocs, md } from '@lighting-beetle/lighter-styleguide';
|
|
3
|
-
import { Preview } from '../../styleguide/';
|
|
4
|
-
|
|
5
|
-
import Skeleton from './index';
|
|
6
|
-
import Card, { CardSection } from '../Card';
|
|
7
|
-
import Grid, { GridCol } from '../Grid';
|
|
8
|
-
|
|
9
|
-
# Skeleton
|
|
10
|
-
|
|
11
|
-
Basic loading indicator used as placeholder of the loaded component
|
|
12
|
-
|
|
13
|
-
<Preview>
|
|
14
|
-
<Skeleton />
|
|
15
|
-
</Preview>
|
|
16
|
-
|
|
17
|
-
## Usage
|
|
18
|
-
|
|
19
|
-
Feel free to adjust the size of the skeleton with [Grid component](/components/grid).
|
|
20
|
-
|
|
21
|
-
<Preview>
|
|
22
|
-
<Grid>
|
|
23
|
-
<GridCol size={6}>
|
|
24
|
-
<Skeleton className="h2" />
|
|
25
|
-
</GridCol>
|
|
26
|
-
</Grid>
|
|
27
|
-
<h2>
|
|
28
|
-
<Skeleton />
|
|
29
|
-
</h2>
|
|
30
|
-
</Preview>
|
|
31
|
-
|
|
32
|
-
To simulate the structure of the component being loaded, mix up some skeletons
|
|
33
|
-
|
|
34
|
-
<Preview>
|
|
35
|
-
<Card>
|
|
36
|
-
<CardSection>
|
|
37
|
-
<Grid>
|
|
38
|
-
<GridCol size={8}>
|
|
39
|
-
<Skeleton className="h2" />
|
|
40
|
-
</GridCol>
|
|
41
|
-
</Grid>
|
|
42
|
-
<Grid>
|
|
43
|
-
<GridCol><Skeleton /></GridCol>
|
|
44
|
-
<GridCol><Skeleton /></GridCol>
|
|
45
|
-
<GridCol><Skeleton /></GridCol>
|
|
46
|
-
<GridCol><Skeleton /></GridCol>
|
|
47
|
-
<GridCol size={6}><Skeleton /></GridCol>
|
|
48
|
-
</Grid>
|
|
49
|
-
</CardSection>
|
|
50
|
-
</Card>
|
|
51
|
-
</Preview>
|
|
52
|
-
|
|
53
|
-
<Preview>
|
|
54
|
-
<Grid>
|
|
55
|
-
{[1,2,3].map(item => (
|
|
56
|
-
<GridCol key={item.toString()} size={{ md: 6, lg: 4}}>
|
|
57
|
-
<Card>
|
|
58
|
-
<CardSection>
|
|
59
|
-
<Grid justifyHeight>
|
|
60
|
-
<GridCol size={6}>
|
|
61
|
-
<Skeleton />
|
|
62
|
-
</GridCol>
|
|
63
|
-
<GridCol size="auto">
|
|
64
|
-
<Grid>
|
|
65
|
-
<GridCol>
|
|
66
|
-
<Skeleton className="h2" />
|
|
67
|
-
</GridCol>
|
|
68
|
-
</Grid>
|
|
69
|
-
<Grid>
|
|
70
|
-
{[1,2,3,4,5,6,7].map(item => (
|
|
71
|
-
<GridCol key={item.toString()}><Skeleton /></GridCol>
|
|
72
|
-
))}
|
|
73
|
-
<GridCol size={6}><Skeleton /></GridCol>
|
|
74
|
-
</Grid>
|
|
75
|
-
</GridCol>
|
|
76
|
-
</Grid>
|
|
77
|
-
</CardSection>
|
|
78
|
-
</Card>
|
|
79
|
-
</GridCol>
|
|
80
|
-
))}
|
|
81
|
-
</Grid>
|
|
82
|
-
</Preview>
|
|
83
|
-
|
|
84
|
-
## Props
|
|
85
|
-
|
|
86
|
-
<ComponentDocs title="<Skeleton />" component={Skeleton} />
|
|
87
|
-
|
|
88
|
-
## Accessibility
|
|
89
|
-
|
|
90
|
-
You should announce the loading state using aria-busy in the appropriate live region
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentDocs } from '@lighting-beetle/lighter-styleguide';
|
|
2
|
-
import { Preview, Code } from '../../styleguide/';
|
|
3
|
-
import SkipLink from './';
|
|
4
|
-
|
|
5
|
-
# Skip link
|
|
6
|
-
|
|
7
|
-
Provides keyboard users to skip parts of a webpage. Usually a skip link is used as a first element of a page and points to main content. This allows users to skip main navigation and dive into subject matter of the requested page.
|
|
8
|
-
|
|
9
|
-
The link is visually hidden until it's focused by keyboard.
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
<Preview>
|
|
14
|
-
<SkipLink href="#example-skip-link-target" />
|
|
15
|
-
|
|
16
|
-
<div id="example-skip-link-target">
|
|
17
|
-
Skip link target element
|
|
18
|
-
</div>
|
|
19
|
-
</Preview>
|
|
20
|
-
|
|
21
|
-
## Props
|
|
22
|
-
|
|
23
|
-
<ComponentDocs component={SkipLink} />
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { ComponentDocs } from '@lighting-beetle/lighter-styleguide';
|
|
2
|
-
import { Preview } from '../../styleguide/';
|
|
3
|
-
|
|
4
|
-
import Stepbar from './index';
|
|
5
|
-
|
|
6
|
-
# Stepbar
|
|
7
|
-
|
|
8
|
-
Stepped navigation for multi step processes.
|
|
9
|
-
|
|
10
|
-
<Preview>
|
|
11
|
-
<Stepbar
|
|
12
|
-
steps={[
|
|
13
|
-
{
|
|
14
|
-
title: 'Paušál',
|
|
15
|
-
href: '#',
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
title: 'Internet',
|
|
19
|
-
href: '#',
|
|
20
|
-
isCurrent: true,
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
title: 'TV (nepovinné)',
|
|
24
|
-
href: '#',
|
|
25
|
-
},
|
|
26
|
-
]}
|
|
27
|
-
/>
|
|
28
|
-
</Preview>
|
|
29
|
-
|
|
30
|
-
## Dark variant
|
|
31
|
-
|
|
32
|
-
<Preview>
|
|
33
|
-
<div className="section bg-black mb-small">
|
|
34
|
-
<Stepbar
|
|
35
|
-
variant="dark"
|
|
36
|
-
steps={[
|
|
37
|
-
{
|
|
38
|
-
title: 'Paušál',
|
|
39
|
-
href: '#',
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
title: 'default behaviour on black background',
|
|
43
|
-
href: '#',
|
|
44
|
-
isCurrent: true,
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
title: 'TV (nepovinné)',
|
|
48
|
-
href: '#',
|
|
49
|
-
},
|
|
50
|
-
]}
|
|
51
|
-
/>
|
|
52
|
-
</div>
|
|
53
|
-
<Stepbar
|
|
54
|
-
variant="inverse"
|
|
55
|
-
steps={[
|
|
56
|
-
{
|
|
57
|
-
title: 'Paušál',
|
|
58
|
-
href: '#',
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
title: 'with class .stepbar--inverse',
|
|
62
|
-
href: '#',
|
|
63
|
-
isCurrent: true,
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
title: 'TV (nepovinné)',
|
|
67
|
-
href: '#',
|
|
68
|
-
},
|
|
69
|
-
]}
|
|
70
|
-
/>
|
|
71
|
-
</Preview>
|
|
72
|
-
|
|
73
|
-
## Step links
|
|
74
|
-
|
|
75
|
-
Previous step links must point to a related part of the stepped process, ideally the first interactive element.
|
|
76
|
-
|
|
77
|
-
<Preview>
|
|
78
|
-
<Stepbar
|
|
79
|
-
steps={[
|
|
80
|
-
{
|
|
81
|
-
title: 'Paušál',
|
|
82
|
-
href: '/components/stepbar#form-element',
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
title: 'Internet',
|
|
86
|
-
href: '#form-element',
|
|
87
|
-
isCurrent: true,
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
title: 'TV (nepovinné)',
|
|
91
|
-
href: '#',
|
|
92
|
-
},
|
|
93
|
-
]}
|
|
94
|
-
/>
|
|
95
|
-
<input type="text" id="form-element" placeholder="stepped form input" />
|
|
96
|
-
</Preview>
|
|
97
|
-
|
|
98
|
-
## Responsive behaviour
|
|
99
|
-
|
|
100
|
-
On small viewports, steps are displayed as rectangles without titles. As the width of screen increases, the title of the active element is shown, and arrows are added. Finnaly titles of non-active steps can be shown using the responsive `--wide-[md/lg/xl]` modifier.
|
|
101
|
-
|
|
102
|
-
- xs: item titles are hidden, only numbers are visible.
|
|
103
|
-
- sm: current item title is visible
|
|
104
|
-
- md and larger: optionally show all step titles
|
|
105
|
-
|
|
106
|
-
<Preview>
|
|
107
|
-
<Stepbar
|
|
108
|
-
showTitlesFrom="lg"
|
|
109
|
-
steps={[
|
|
110
|
-
{
|
|
111
|
-
title: 'Paušál',
|
|
112
|
-
href: '#',
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
title: 'Internet',
|
|
116
|
-
href: '#',
|
|
117
|
-
isCurrent: true,
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
title: 'Televízia',
|
|
121
|
-
href: '#',
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
title: 'Doručenie',
|
|
125
|
-
href: '#',
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
title: 'Platba',
|
|
129
|
-
href: '#',
|
|
130
|
-
},
|
|
131
|
-
]}
|
|
132
|
-
/>
|
|
133
|
-
</Preview>
|
|
134
|
-
|
|
135
|
-
## Props
|
|
136
|
-
|
|
137
|
-
<ComponentDocs title="<Stepbar />" component={Stepbar} />
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { ComponentDocs, md } from '@lighting-beetle/lighter-styleguide';
|
|
2
|
-
import { Preview } from '../../styleguide/';
|
|
3
|
-
|
|
4
|
-
import Sticker from './index';
|
|
5
|
-
import { Bar, BarItem } from '../';
|
|
6
|
-
|
|
7
|
-
# Sticker
|
|
8
|
-
|
|
9
|
-
<Preview bgTheme="black">
|
|
10
|
-
<Sticker>Some content inside</Sticker>
|
|
11
|
-
</Preview>
|
|
12
|
-
|
|
13
|
-
## Variants
|
|
14
|
-
|
|
15
|
-
### Colors
|
|
16
|
-
|
|
17
|
-
<Preview bgTheme="black">
|
|
18
|
-
<Bar>
|
|
19
|
-
<BarItem>
|
|
20
|
-
<Sticker>Default sticker</Sticker>
|
|
21
|
-
</BarItem>
|
|
22
|
-
<BarItem>
|
|
23
|
-
<Sticker color="black">Black sticker</Sticker>
|
|
24
|
-
</BarItem>
|
|
25
|
-
<BarItem>
|
|
26
|
-
<Sticker color="orange">Orange sticker</Sticker>
|
|
27
|
-
</BarItem>
|
|
28
|
-
</Bar>
|
|
29
|
-
</Preview>
|
|
30
|
-
|
|
31
|
-
### Sizes
|
|
32
|
-
|
|
33
|
-
<Preview bgTheme="black">
|
|
34
|
-
<Bar>
|
|
35
|
-
<BarItem>
|
|
36
|
-
<Sticker>Default sticker</Sticker>
|
|
37
|
-
</BarItem>
|
|
38
|
-
<BarItem>
|
|
39
|
-
<Sticker size="small">Small sticker</Sticker>
|
|
40
|
-
</BarItem>
|
|
41
|
-
</Bar>
|
|
42
|
-
</Preview>
|
|
43
|
-
|
|
44
|
-
## Props
|
|
45
|
-
|
|
46
|
-
<ComponentDocs title="<Sticker />" component={Sticker} />
|
|
47
|
-
|
|
48
|
-
## Accessibility
|
|
49
|
-
|
|
50
|
-
Make sure the information in the sticker is presented in logical order with other conent (e.g. if it shows price, make sure it's before the buy button).
|