@orangesk/orange-design-system 1.11.0 → 2.0.0-alpha.0
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 +29 -10
- package/build/404.html +1 -0
- package/build/_next/static/chunks/4bd1b696-67ee12fb04071d3b.js +1 -0
- package/build/_next/static/chunks/684-2d117c50cbadadca.js +1 -0
- package/build/_next/static/chunks/app/_not-found/page-f08302ee705a96b1.js +1 -0
- package/build/_next/static/chunks/app/components/badge/page-bbcffd5558aeab06.js +1 -0
- package/build/_next/static/chunks/app/layout-69efc42b1696abf9.js +1 -0
- package/build/_next/static/chunks/app/page-687dfdffc8d1b6e5.js +1 -0
- package/build/_next/static/chunks/framework-f593a28cde54158e.js +1 -0
- package/build/_next/static/chunks/main-43608b6b4bb05f8f.js +1 -0
- package/build/_next/static/chunks/main-app-ce2a2222e012907f.js +1 -0
- package/build/_next/static/chunks/pages/_app-da15c11dea942c36.js +1 -0
- package/build/_next/static/chunks/pages/_error-cc3f077a18ea1793.js +1 -0
- package/build/_next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
- package/build/_next/static/chunks/webpack-778f3ec87f8d2826.js +1 -0
- package/build/_next/static/css/08a2fcd6f5aac3e0.css +1 -0
- package/build/_next/static/css/d2fc2f581fe4b371.css +1 -0
- package/build/_next/static/rsiMOOYAxBtOjvpzBN4vJ/_buildManifest.js +1 -0
- package/build/_next/static/rsiMOOYAxBtOjvpzBN4vJ/_ssgManifest.js +1 -0
- package/build/components/Badge/index.js +616 -3
- package/build/components/Badge/index.js.map +1 -1
- package/build/components/Badge/style.css +1 -1
- package/build/components/Badge/style.css.map +1 -1
- package/build/components/badge.html +1 -0
- package/build/components/badge.txt +19 -0
- package/build/components/index.css +2 -0
- package/build/components/index.css.map +1 -0
- package/build/components/index.js +616 -3
- package/build/components/index.js.map +1 -1
- package/build/components/static.js +1200 -3
- package/build/components/static.js.map +1 -1
- package/build/components/types/Badge/Badge.d.ts +12 -0
- package/build/components/types/Badge/index.d.ts +2 -0
- package/build/components/types/index.d.ts +4 -0
- package/build/index.html +46 -1
- package/build/index.txt +18 -0
- package/build/lib/after-components.css +1 -1
- package/build/lib/after-components.css.map +1 -1
- package/build/lib/after-components.js +3 -2
- package/build/lib/before-components.css +1 -1
- package/build/lib/before-components.css.map +1 -1
- package/build/lib/before-components.js +3 -2
- package/build/lib/breadcrumbs.css +2 -2
- package/build/lib/breadcrumbs.css.map +1 -1
- package/build/lib/breadcrumbs.js +3 -2
- package/build/lib/components.css +1 -1
- package/build/lib/components.css.map +1 -1
- package/build/lib/components.js +3 -2
- package/build/lib/fonts.css +1 -1
- package/build/lib/fonts.css.map +1 -1
- package/build/lib/fonts.js +3 -2
- package/build/lib/scripts.js +1202 -3
- 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/style.js +3 -2
- package/package.json +50 -130
- package/src/components/Badge/Badge.test.js +16 -20
- package/src/components/Badge/Badge.tsx +45 -0
- package/src/components/Badge/index.ts +3 -0
- package/src/components/Badge/styles/config.scss +11 -11
- package/src/components/Badge/styles/mixins.scss +5 -5
- package/src/components/Badge/styles/style.scss +3 -4
- package/src/components/Badge/tests/Badge.unit.test.js +18 -22
- package/src/components/Typography/styles/style.scss +9 -9
- package/src/components/index.ts +7 -0
- package/src/components/static.ts +1 -0
- package/build/app.css +0 -3
- package/build/app.css.map +0 -1
- package/build/app.js +0 -3
- package/build/app.js.LICENSE.txt +0 -78
- package/build/app.js.map +0 -1
- package/build/asset-manifest.json +0 -442
- package/build/components/Accordion/Accordion.static.js +0 -2
- package/build/components/Accordion/Accordion.static.js.map +0 -1
- package/build/components/Accordion/index.js +0 -3
- package/build/components/Accordion/index.js.LICENSE.txt +0 -5
- package/build/components/Accordion/index.js.map +0 -1
- package/build/components/Accordion/style.css +0 -2
- package/build/components/Accordion/style.css.map +0 -1
- package/build/components/Alert/index.js +0 -3
- package/build/components/Alert/index.js.LICENSE.txt +0 -5
- package/build/components/Alert/index.js.map +0 -1
- package/build/components/Alert/style.css +0 -2
- package/build/components/Alert/style.css.map +0 -1
- package/build/components/Badge/index.js.LICENSE.txt +0 -5
- package/build/components/Bar/index.js +0 -3
- package/build/components/Bar/index.js.LICENSE.txt +0 -5
- package/build/components/Bar/index.js.map +0 -1
- package/build/components/Bar/style.css +0 -2
- package/build/components/Bar/style.css.map +0 -1
- package/build/components/BlockAction/BlockAction.static.js +0 -2
- package/build/components/BlockAction/BlockAction.static.js.map +0 -1
- package/build/components/BlockAction/index.js +0 -3
- package/build/components/BlockAction/index.js.LICENSE.txt +0 -5
- 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/Breadcrumbs/index.js +0 -3
- package/build/components/Breadcrumbs/index.js.LICENSE.txt +0 -5
- package/build/components/Breadcrumbs/index.js.map +0 -1
- package/build/components/Breadcrumbs/style.css +0 -2
- package/build/components/Breadcrumbs/style.css.map +0 -1
- package/build/components/Button/index.js +0 -3
- package/build/components/Button/index.js.LICENSE.txt +0 -5
- 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/Buttons/index.js +0 -3
- package/build/components/Buttons/index.js.LICENSE.txt +0 -5
- package/build/components/Buttons/index.js.map +0 -1
- package/build/components/Buttons/style.css +0 -2
- package/build/components/Buttons/style.css.map +0 -1
- package/build/components/Card/index.js +0 -3
- package/build/components/Card/index.js.LICENSE.txt +0 -5
- package/build/components/Card/index.js.map +0 -1
- package/build/components/Card/style.css +0 -2
- package/build/components/Card/style.css.map +0 -1
- package/build/components/Carousel/Carousel.static.css +0 -2
- package/build/components/Carousel/Carousel.static.css.map +0 -1
- package/build/components/Carousel/Carousel.static.js +0 -3
- package/build/components/Carousel/Carousel.static.js.LICENSE.txt +0 -15
- package/build/components/Carousel/Carousel.static.js.map +0 -1
- package/build/components/Carousel/index.js +0 -3
- package/build/components/Carousel/index.js.LICENSE.txt +0 -21
- 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/CarouselPromotions/CarouselPromotions.static.js +0 -3
- package/build/components/CarouselPromotions/CarouselPromotions.static.js.LICENSE.txt +0 -15
- package/build/components/CarouselPromotions/CarouselPromotions.static.js.map +0 -1
- package/build/components/CarouselPromotions/index.js +0 -3
- package/build/components/CarouselPromotions/index.js.LICENSE.txt +0 -21
- package/build/components/CarouselPromotions/index.js.map +0 -1
- package/build/components/CarouselPromotions/style.css +0 -2
- package/build/components/CarouselPromotions/style.css.map +0 -1
- package/build/components/CartTable/index.js +0 -3
- package/build/components/CartTable/index.js.LICENSE.txt +0 -5
- 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/Container/index.js +0 -3
- package/build/components/Container/index.js.LICENSE.txt +0 -5
- package/build/components/Container/index.js.map +0 -1
- package/build/components/Container/style.css +0 -2
- package/build/components/Container/style.css.map +0 -1
- package/build/components/ContentBlock/index.js +0 -3
- package/build/components/ContentBlock/index.js.LICENSE.txt +0 -5
- package/build/components/ContentBlock/index.js.map +0 -1
- package/build/components/ContentBlock/style.css +0 -2
- package/build/components/ContentBlock/style.css.map +0 -1
- package/build/components/Cover/index.js +0 -3
- package/build/components/Cover/index.js.LICENSE.txt +0 -5
- 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/Divider/index.js +0 -3
- package/build/components/Divider/index.js.LICENSE.txt +0 -5
- package/build/components/Divider/index.js.map +0 -1
- package/build/components/Divider/style.css +0 -2
- package/build/components/Divider/style.css.map +0 -1
- package/build/components/Dropdown/Dropdown.static.css +0 -2
- package/build/components/Dropdown/Dropdown.static.css.map +0 -1
- package/build/components/Dropdown/Dropdown.static.js +0 -2
- package/build/components/Dropdown/Dropdown.static.js.map +0 -1
- package/build/components/Dropdown/index.js +0 -3
- package/build/components/Dropdown/index.js.LICENSE.txt +0 -5
- 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/Expander/Expander.static.js +0 -2
- package/build/components/Expander/Expander.static.js.map +0 -1
- package/build/components/Expander/index.js +0 -3
- package/build/components/Expander/index.js.LICENSE.txt +0 -5
- package/build/components/Expander/index.js.map +0 -1
- package/build/components/Expander/style.css +0 -2
- package/build/components/Expander/style.css.map +0 -1
- package/build/components/Forms/Autocomplete/Autocomplete.static.js +0 -2
- package/build/components/Forms/Autocomplete/Autocomplete.static.js.map +0 -1
- package/build/components/Forms/Autocomplete/index.js +0 -3
- package/build/components/Forms/Autocomplete/index.js.LICENSE.txt +0 -5
- package/build/components/Forms/Autocomplete/index.js.map +0 -1
- package/build/components/Forms/Autocomplete/style.css +0 -2
- package/build/components/Forms/Autocomplete/style.css.map +0 -1
- package/build/components/Forms/Checkbox/index.js +0 -3
- package/build/components/Forms/Checkbox/index.js.LICENSE.txt +0 -5
- package/build/components/Forms/Checkbox/index.js.map +0 -1
- package/build/components/Forms/Checkbox/style.css +0 -2
- package/build/components/Forms/Checkbox/style.css.map +0 -1
- package/build/components/Forms/DatePicker/DatePicker.static.css +0 -2
- package/build/components/Forms/DatePicker/DatePicker.static.css.map +0 -1
- package/build/components/Forms/DatePicker/DatePicker.static.js +0 -2
- package/build/components/Forms/DatePicker/DatePicker.static.js.map +0 -1
- package/build/components/Forms/DatePicker/index.js +0 -2
- package/build/components/Forms/DatePicker/index.js.map +0 -1
- package/build/components/Forms/DatePicker/style.css +0 -2
- package/build/components/Forms/DatePicker/style.css.map +0 -1
- package/build/components/Forms/Field/index.js +0 -3
- package/build/components/Forms/Field/index.js.LICENSE.txt +0 -7
- package/build/components/Forms/Field/index.js.map +0 -1
- package/build/components/Forms/Field/style.css +0 -2
- package/build/components/Forms/Field/style.css.map +0 -1
- package/build/components/Forms/Fieldset/index.js +0 -3
- package/build/components/Forms/Fieldset/index.js.LICENSE.txt +0 -5
- package/build/components/Forms/Fieldset/index.js.map +0 -1
- package/build/components/Forms/Fieldset/style.css +0 -2
- package/build/components/Forms/Fieldset/style.css.map +0 -1
- package/build/components/Forms/File/File.static.js +0 -3
- package/build/components/Forms/File/File.static.js.LICENSE.txt +0 -1
- package/build/components/Forms/File/File.static.js.map +0 -1
- package/build/components/Forms/File/index.js +0 -3
- package/build/components/Forms/File/index.js.LICENSE.txt +0 -7
- package/build/components/Forms/File/index.js.map +0 -1
- package/build/components/Forms/File/style.css +0 -2
- package/build/components/Forms/File/style.css.map +0 -1
- package/build/components/Forms/Group/index.js +0 -3
- package/build/components/Forms/Group/index.js.LICENSE.txt +0 -5
- package/build/components/Forms/Group/index.js.map +0 -1
- package/build/components/Forms/Group/style.css +0 -2
- package/build/components/Forms/Group/style.css.map +0 -1
- package/build/components/Forms/Hint/index.js +0 -3
- package/build/components/Forms/Hint/index.js.LICENSE.txt +0 -5
- package/build/components/Forms/Hint/index.js.map +0 -1
- package/build/components/Forms/Hint/style.css +0 -2
- package/build/components/Forms/Hint/style.css.map +0 -1
- package/build/components/Forms/InputStepper/InputStepper.static.js +0 -2
- package/build/components/Forms/InputStepper/InputStepper.static.js.map +0 -1
- package/build/components/Forms/InputStepper/index.js +0 -3
- package/build/components/Forms/InputStepper/index.js.LICENSE.txt +0 -5
- package/build/components/Forms/InputStepper/index.js.map +0 -1
- package/build/components/Forms/InputStepper/style.css +0 -2
- package/build/components/Forms/InputStepper/style.css.map +0 -1
- package/build/components/Forms/Label/index.js +0 -3
- package/build/components/Forms/Label/index.js.LICENSE.txt +0 -5
- package/build/components/Forms/Label/index.js.map +0 -1
- package/build/components/Forms/Label/style.css +0 -2
- package/build/components/Forms/Label/style.css.map +0 -1
- package/build/components/Forms/Message/index.js +0 -3
- package/build/components/Forms/Message/index.js.LICENSE.txt +0 -5
- package/build/components/Forms/Message/index.js.map +0 -1
- package/build/components/Forms/Message/style.css +0 -2
- package/build/components/Forms/Message/style.css.map +0 -1
- package/build/components/Forms/Radio/index.js +0 -3
- package/build/components/Forms/Radio/index.js.LICENSE.txt +0 -5
- package/build/components/Forms/Radio/index.js.map +0 -1
- package/build/components/Forms/Radio/style.css +0 -2
- package/build/components/Forms/Radio/style.css.map +0 -1
- package/build/components/Forms/RangeSlider/RangeSlider.static.js +0 -2
- package/build/components/Forms/RangeSlider/RangeSlider.static.js.map +0 -1
- package/build/components/Forms/RangeSlider/index.js +0 -3
- package/build/components/Forms/RangeSlider/index.js.LICENSE.txt +0 -5
- package/build/components/Forms/RangeSlider/index.js.map +0 -1
- package/build/components/Forms/RangeSlider/style.css +0 -2
- package/build/components/Forms/RangeSlider/style.css.map +0 -1
- package/build/components/Forms/Select/index.js +0 -3
- package/build/components/Forms/Select/index.js.LICENSE.txt +0 -5
- package/build/components/Forms/Select/index.js.map +0 -1
- package/build/components/Forms/Select/style.css +0 -2
- package/build/components/Forms/Select/style.css.map +0 -1
- package/build/components/Forms/TextArea/index.js +0 -3
- package/build/components/Forms/TextArea/index.js.LICENSE.txt +0 -5
- package/build/components/Forms/TextArea/index.js.map +0 -1
- package/build/components/Forms/TextArea/style.css +0 -2
- package/build/components/Forms/TextArea/style.css.map +0 -1
- package/build/components/Forms/TextInput/index.js +0 -3
- package/build/components/Forms/TextInput/index.js.LICENSE.txt +0 -5
- package/build/components/Forms/TextInput/index.js.map +0 -1
- package/build/components/Forms/TextInput/style.css +0 -2
- package/build/components/Forms/TextInput/style.css.map +0 -1
- package/build/components/Forms/index.js +0 -3
- package/build/components/Forms/index.js.LICENSE.txt +0 -7
- 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/Gauge/index.js +0 -3
- package/build/components/Gauge/index.js.LICENSE.txt +0 -5
- package/build/components/Gauge/index.js.map +0 -1
- package/build/components/Gauge/style.css +0 -2
- package/build/components/Gauge/style.css.map +0 -1
- package/build/components/Grid/index.js +0 -3
- package/build/components/Grid/index.js.LICENSE.txt +0 -5
- 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/Heading/index.js +0 -2
- package/build/components/Heading/index.js.map +0 -1
- package/build/components/Hero/index.js +0 -3
- package/build/components/Hero/index.js.LICENSE.txt +0 -5
- 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/Icon/index.js +0 -3
- package/build/components/Icon/index.js.LICENSE.txt +0 -5
- package/build/components/Icon/index.js.map +0 -1
- package/build/components/Icon/style.css +0 -2
- package/build/components/Icon/style.css.map +0 -1
- package/build/components/IconList/index.js +0 -3
- package/build/components/IconList/index.js.LICENSE.txt +0 -5
- 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/Image/index.js +0 -3
- package/build/components/Image/index.js.LICENSE.txt +0 -5
- package/build/components/Image/index.js.map +0 -1
- package/build/components/Image/style.css +0 -2
- package/build/components/Image/style.css.map +0 -1
- package/build/components/Link/index.js +0 -3
- package/build/components/Link/index.js.LICENSE.txt +0 -5
- package/build/components/Link/index.js.map +0 -1
- package/build/components/Link/style.css +0 -2
- package/build/components/Link/style.css.map +0 -1
- package/build/components/List/index.js +0 -3
- package/build/components/List/index.js.LICENSE.txt +0 -5
- 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/Loader/Loader.static.js +0 -2
- package/build/components/Loader/Loader.static.js.map +0 -1
- package/build/components/Loader/index.js +0 -3
- package/build/components/Loader/index.js.LICENSE.txt +0 -5
- package/build/components/Loader/index.js.map +0 -1
- package/build/components/Loader/style.css +0 -2
- package/build/components/Loader/style.css.map +0 -1
- package/build/components/Modal/Modal.static.js +0 -3
- package/build/components/Modal/Modal.static.js.LICENSE.txt +0 -4
- package/build/components/Modal/Modal.static.js.map +0 -1
- package/build/components/Modal/index.js +0 -3
- package/build/components/Modal/index.js.LICENSE.txt +0 -10
- 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/PageTitle/index.js +0 -3
- package/build/components/PageTitle/index.js.LICENSE.txt +0 -5
- package/build/components/PageTitle/index.js.map +0 -1
- package/build/components/PageTitle/style.css +0 -2
- package/build/components/PageTitle/style.css.map +0 -1
- package/build/components/Pagination/index.js +0 -3
- package/build/components/Pagination/index.js.LICENSE.txt +0 -5
- package/build/components/Pagination/index.js.map +0 -1
- package/build/components/Pagination/style.css +0 -2
- package/build/components/Pagination/style.css.map +0 -1
- package/build/components/Pill/index.js +0 -3
- package/build/components/Pill/index.js.LICENSE.txt +0 -5
- package/build/components/Pill/index.js.map +0 -1
- package/build/components/Pill/style.css +0 -2
- package/build/components/Pill/style.css.map +0 -1
- package/build/components/Progress/index.js +0 -3
- package/build/components/Progress/index.js.LICENSE.txt +0 -5
- package/build/components/Progress/index.js.map +0 -1
- package/build/components/Progress/style.css +0 -2
- package/build/components/Progress/style.css.map +0 -1
- package/build/components/PromotionCard/index.js +0 -3
- package/build/components/PromotionCard/index.js.LICENSE.txt +0 -5
- package/build/components/PromotionCard/index.js.map +0 -1
- package/build/components/PromotionCard/style.css +0 -2
- package/build/components/PromotionCard/style.css.map +0 -1
- package/build/components/Section/index.js +0 -3
- package/build/components/Section/index.js.LICENSE.txt +0 -5
- package/build/components/Section/index.js.map +0 -1
- package/build/components/Section/style.css +0 -2
- package/build/components/Section/style.css.map +0 -1
- package/build/components/Skeleton/index.js +0 -3
- package/build/components/Skeleton/index.js.LICENSE.txt +0 -5
- package/build/components/Skeleton/index.js.map +0 -1
- package/build/components/Skeleton/style.css +0 -2
- package/build/components/Skeleton/style.css.map +0 -1
- package/build/components/SkipLink/index.js +0 -3
- package/build/components/SkipLink/index.js.LICENSE.txt +0 -5
- package/build/components/SkipLink/index.js.map +0 -1
- package/build/components/SkipLink/style.css +0 -2
- package/build/components/SkipLink/style.css.map +0 -1
- package/build/components/Stepbar/index.js +0 -3
- package/build/components/Stepbar/index.js.LICENSE.txt +0 -5
- package/build/components/Stepbar/index.js.map +0 -1
- package/build/components/Stepbar/style.css +0 -2
- package/build/components/Stepbar/style.css.map +0 -1
- package/build/components/Sticker/index.js +0 -3
- package/build/components/Sticker/index.js.LICENSE.txt +0 -5
- package/build/components/Sticker/index.js.map +0 -1
- package/build/components/Sticker/style.css +0 -2
- package/build/components/Sticker/style.css.map +0 -1
- package/build/components/Table/Table.static.js +0 -2
- package/build/components/Table/Table.static.js.map +0 -1
- package/build/components/Table/index.js +0 -3
- package/build/components/Table/index.js.LICENSE.txt +0 -5
- 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/Tabs/Tabs.static.js +0 -2
- package/build/components/Tabs/Tabs.static.js.map +0 -1
- package/build/components/Tabs/index.js +0 -3
- package/build/components/Tabs/index.js.LICENSE.txt +0 -5
- package/build/components/Tabs/index.js.map +0 -1
- package/build/components/Tabs/style.css +0 -2
- package/build/components/Tabs/style.css.map +0 -1
- package/build/components/Testimonial/index.js +0 -3
- package/build/components/Testimonial/index.js.LICENSE.txt +0 -5
- package/build/components/Testimonial/index.js.map +0 -1
- package/build/components/Testimonial/style.css +0 -2
- package/build/components/Testimonial/style.css.map +0 -1
- package/build/components/Tile/index.js +0 -3
- package/build/components/Tile/index.js.LICENSE.txt +0 -5
- package/build/components/Tile/index.js.map +0 -1
- package/build/components/Tile/style.css +0 -2
- package/build/components/Tile/style.css.map +0 -1
- package/build/components/Tooltip/Tooltip.static.css +0 -2
- package/build/components/Tooltip/Tooltip.static.css.map +0 -1
- package/build/components/Tooltip/Tooltip.static.js +0 -2
- package/build/components/Tooltip/Tooltip.static.js.map +0 -1
- package/build/components/Tooltip/index.js +0 -3
- package/build/components/Tooltip/index.js.LICENSE.txt +0 -5
- 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/index.js.LICENSE.txt +0 -28
- package/build/components/static.css +0 -2
- package/build/components/static.css.map +0 -1
- package/build/components/static.js.LICENSE.txt +0 -22
- package/build/components/style.css +0 -2
- package/build/components/style.css.map +0 -1
- package/build/index.css +0 -2
- package/build/index.css.map +0 -1
- package/build/index.js +0 -3
- package/build/index.js.LICENSE.txt +0 -150
- package/build/index.js.map +0 -1
- package/build/lib/after-components.js.map +0 -1
- package/build/lib/before-components.js.map +0 -1
- package/build/lib/breadcrumbs.js.map +0 -1
- package/build/lib/components.js.map +0 -1
- package/build/lib/fonts.js.map +0 -1
- package/build/lib/scripts.css +0 -2
- package/build/lib/scripts.css.map +0 -1
- package/build/lib/scripts.js.LICENSE.txt +0 -22
- package/build/lib/style.js.map +0 -1
- package/build/lib/testAutocomplete.js +0 -2
- package/build/lib/testAutocomplete.js.map +0 -1
- package/build/media/hands-with-phones.2646b120f1bbbbbdf4b4105fad34c34d.svg +0 -90
- package/build/media/logo-small.abe814cc06cf7383d3769293d27f8895.svg +0 -45
- package/build/media/logo.086916e9e2d8f8c38d2ecfba359ab991.svg +0 -1
- package/build/media/phones.a022d93942179e66616ee71d4e37e532.png +0 -0
- package/build/pages/hello-react-world.html +0 -1
- package/build/pages/hello-world.html +0 -1
- package/build/pages/hero-playground.html +0 -1
- package/build/pages/index.html +0 -1
- package/build/pages/test-autocomplete.html +0 -1
- package/build/precache-manifest.bcec161b6e91c0dcdd3c56db0841babe.js +0 -842
- package/build/precache-manifest.bf99fc5050abfcf4f6af584e5a612315.js +0 -146
- package/build/service-worker.js +0 -39
- package/build/sprite.svg +0 -1
- package/build/static.css +0 -2
- package/build/static.css.map +0 -1
- package/build/static.js +0 -3
- package/build/static.js.LICENSE.txt +0 -22
- package/build/static.js.map +0 -1
- package/build/tests/index.html +0 -1
- package/src/assets/icons/4g.svg +0 -1
- package/src/assets/icons/5g.svg +0 -1
- package/src/assets/icons/accessibility-mobility.svg +0 -1
- package/src/assets/icons/accessibility-motor.svg +0 -1
- package/src/assets/icons/accessibility-vision.svg +0 -1
- package/src/assets/icons/accessibility.svg +0 -1
- package/src/assets/icons/add.svg +0 -1
- package/src/assets/icons/advertising.svg +0 -1
- package/src/assets/icons/aeroplane.svg +0 -1
- package/src/assets/icons/age-rating-3.svg +0 -1
- package/src/assets/icons/airbox-auto.svg +0 -1
- package/src/assets/icons/alias-numbers.svg +0 -1
- package/src/assets/icons/android-manage.svg +0 -1
- package/src/assets/icons/antenna.svg +0 -1
- package/src/assets/icons/apartment-building.svg +0 -1
- package/src/assets/icons/apps.svg +0 -1
- package/src/assets/icons/assistance.svg +0 -1
- package/src/assets/icons/assistent.svg +0 -1
- package/src/assets/icons/at.svg +0 -1
- package/src/assets/icons/avatar.svg +0 -1
- package/src/assets/icons/backup-internet.svg +0 -1
- package/src/assets/icons/bank.svg +0 -1
- package/src/assets/icons/battery-charging.svg +0 -1
- package/src/assets/icons/battery-full.svg +0 -1
- package/src/assets/icons/battery-status-1-3.svg +0 -1
- package/src/assets/icons/battery-status-charging.svg +0 -1
- package/src/assets/icons/battery-status-full.svg +0 -1
- package/src/assets/icons/bed.svg +0 -1
- package/src/assets/icons/birth.svg +0 -1
- package/src/assets/icons/birthday.svg +0 -1
- package/src/assets/icons/bluetooth.svg +0 -1
- package/src/assets/icons/boarding-pass.svg +0 -1
- package/src/assets/icons/book-award.svg +0 -1
- package/src/assets/icons/book.svg +0 -1
- package/src/assets/icons/boxes.svg +0 -1
- package/src/assets/icons/briefcase.svg +0 -1
- package/src/assets/icons/browser-plug-in.svg +0 -1
- package/src/assets/icons/business-advisor.svg +0 -1
- package/src/assets/icons/business-consultant.svg +0 -1
- package/src/assets/icons/business-lounge.svg +0 -1
- package/src/assets/icons/buy.svg +0 -1
- package/src/assets/icons/calendar-30.svg +0 -1
- package/src/assets/icons/calendar-alarm.svg +0 -1
- package/src/assets/icons/calendar-day.svg +0 -1
- package/src/assets/icons/calendar-month.svg +0 -1
- package/src/assets/icons/call-in.svg +0 -1
- package/src/assets/icons/call-out.svg +0 -1
- package/src/assets/icons/call.svg +0 -1
- package/src/assets/icons/camera.svg +0 -1
- package/src/assets/icons/car-park.svg +0 -1
- package/src/assets/icons/car.svg +0 -1
- package/src/assets/icons/card-reader.svg +0 -1
- package/src/assets/icons/casting.svg +0 -1
- package/src/assets/icons/cest-ici.svg +0 -1
- package/src/assets/icons/charger.svg +0 -1
- package/src/assets/icons/chatbot.svg +0 -1
- package/src/assets/icons/check-your-balance.svg +0 -1
- package/src/assets/icons/checked.svg +0 -1
- package/src/assets/icons/chevron-down.svg +0 -1
- package/src/assets/icons/chevron-end.svg +0 -1
- package/src/assets/icons/chevron-left.svg +0 -1
- package/src/assets/icons/chevron-right.svg +0 -1
- package/src/assets/icons/chevron-start.svg +0 -1
- package/src/assets/icons/chevron-up.svg +0 -1
- package/src/assets/icons/child.svg +0 -1
- package/src/assets/icons/children-channel.svg +0 -1
- package/src/assets/icons/childrens-content.svg +0 -1
- package/src/assets/icons/christmas-tree.svg +0 -1
- package/src/assets/icons/cinema-ticket-2-for-1.svg +0 -1
- package/src/assets/icons/cle-pc.svg +0 -1
- package/src/assets/icons/clock.svg +0 -1
- package/src/assets/icons/closed-captions.svg +0 -1
- package/src/assets/icons/cloud-backup.svg +0 -1
- package/src/assets/icons/cloud-security.svg +0 -1
- package/src/assets/icons/collective-class-training.svg +0 -1
- package/src/assets/icons/community-sms.svg +0 -1
- package/src/assets/icons/company-structure.svg +0 -1
- package/src/assets/icons/connections.svg +0 -1
- package/src/assets/icons/control-centre.svg +0 -1
- package/src/assets/icons/control-my-data.svg +0 -3
- package/src/assets/icons/cpu.svg +0 -1
- package/src/assets/icons/currency-euro.svg +0 -1
- package/src/assets/icons/cyber-shield.svg +0 -1
- package/src/assets/icons/dashboard-display.svg +0 -1
- package/src/assets/icons/data-analytics.svg +0 -1
- package/src/assets/icons/data-centre.svg +0 -1
- package/src/assets/icons/data-services.svg +0 -1
- package/src/assets/icons/data-traffic.svg +0 -1
- package/src/assets/icons/data.svg +0 -1
- package/src/assets/icons/delete.svg +0 -1
- package/src/assets/icons/desk-phone.svg +0 -1
- package/src/assets/icons/desktop-pc.svg +0 -1
- package/src/assets/icons/device-fixed-line-phone.svg +0 -1
- package/src/assets/icons/device-laptop-computer-connected.svg +0 -1
- package/src/assets/icons/device-laptop-computer.svg +0 -1
- package/src/assets/icons/device-smart-phone.svg +0 -1
- package/src/assets/icons/device-tablet.svg +0 -1
- package/src/assets/icons/device-tv.svg +0 -1
- package/src/assets/icons/diagnostic.svg +0 -1
- package/src/assets/icons/digital-frame.svg +0 -1
- package/src/assets/icons/discussion-more.svg +0 -1
- package/src/assets/icons/doctor.svg +0 -1
- package/src/assets/icons/documentary.svg +0 -1
- package/src/assets/icons/donation.svg +0 -1
- package/src/assets/icons/download-file.svg +0 -1
- package/src/assets/icons/download.svg +0 -1
- package/src/assets/icons/e-reader.svg +0 -1
- package/src/assets/icons/e-shop.svg +0 -1
- package/src/assets/icons/easy-internet.svg +0 -1
- package/src/assets/icons/eco-mode.svg +0 -1
- package/src/assets/icons/edit.svg +0 -1
- package/src/assets/icons/electrcar.svg +0 -1
- package/src/assets/icons/email.svg +0 -1
- package/src/assets/icons/employees.svg +0 -1
- package/src/assets/icons/empty-trash.svg +0 -1
- package/src/assets/icons/entertainment.svg +0 -1
- package/src/assets/icons/epg.svg +0 -1
- package/src/assets/icons/error-severe.svg +0 -1
- package/src/assets/icons/ethernet.svg +0 -1
- package/src/assets/icons/euro.svg +0 -1
- package/src/assets/icons/exit.svg +0 -1
- package/src/assets/icons/facebook-2.svg +0 -1
- package/src/assets/icons/facebook.svg +0 -1
- package/src/assets/icons/factory.svg +0 -1
- package/src/assets/icons/family-place.svg +0 -1
- package/src/assets/icons/fashion.svg +0 -1
- package/src/assets/icons/fast-delivery.svg +0 -1
- package/src/assets/icons/file-compressed.svg +0 -1
- package/src/assets/icons/file-copy.svg +0 -1
- package/src/assets/icons/file-document-compose.svg +0 -1
- package/src/assets/icons/file-download.svg +0 -1
- package/src/assets/icons/file-draft-edit.svg +0 -1
- package/src/assets/icons/file-pdf.svg +0 -1
- package/src/assets/icons/file-terms-and-conditions.svg +0 -1
- package/src/assets/icons/files.svg +0 -1
- package/src/assets/icons/film.svg +0 -1
- package/src/assets/icons/filter.svg +0 -1
- package/src/assets/icons/finance.svg +0 -1
- package/src/assets/icons/firewall.svg +0 -1
- package/src/assets/icons/flag.svg +0 -1
- package/src/assets/icons/flashlight.svg +0 -1
- package/src/assets/icons/flexible-storage.svg +0 -1
- package/src/assets/icons/folder.svg +0 -1
- package/src/assets/icons/football-match.svg +0 -1
- package/src/assets/icons/football-quiz.svg +0 -1
- package/src/assets/icons/football.svg +0 -1
- package/src/assets/icons/form-tick.svg +0 -1
- package/src/assets/icons/front-end-dashboard.svg +0 -1
- package/src/assets/icons/funny.svg +0 -1
- package/src/assets/icons/futher-education.svg +0 -1
- package/src/assets/icons/games.svg +0 -1
- package/src/assets/icons/garage-closed.svg +0 -1
- package/src/assets/icons/gauge-rate.svg +0 -1
- package/src/assets/icons/gears.svg +0 -1
- package/src/assets/icons/geolocation.svg +0 -1
- package/src/assets/icons/guide-info.svg +0 -1
- package/src/assets/icons/hammer.svg +0 -1
- package/src/assets/icons/hand-shake.svg +0 -1
- package/src/assets/icons/hard-drive.svg +0 -1
- package/src/assets/icons/hdmi-key.svg +0 -1
- package/src/assets/icons/headphones.svg +0 -1
- package/src/assets/icons/health-app.svg +0 -1
- package/src/assets/icons/health-monitor.svg +0 -1
- package/src/assets/icons/health-patient.svg +0 -1
- package/src/assets/icons/heart.svg +0 -1
- package/src/assets/icons/home-appliance.svg +0 -1
- package/src/assets/icons/home.svg +0 -1
- package/src/assets/icons/homelive.svg +0 -1
- package/src/assets/icons/hourglass.svg +0 -1
- package/src/assets/icons/house.svg +0 -1
- package/src/assets/icons/id-card.svg +0 -1
- package/src/assets/icons/image.svg +0 -1
- package/src/assets/icons/important.svg +0 -1
- package/src/assets/icons/improvement.svg +0 -1
- package/src/assets/icons/inbox.svg +0 -1
- package/src/assets/icons/info.svg +0 -1
- package/src/assets/icons/information-data.svg +0 -1
- package/src/assets/icons/instagram.svg +0 -1
- package/src/assets/icons/international-globe.svg +0 -1
- package/src/assets/icons/internet-browser.svg +0 -1
- package/src/assets/icons/internet-security-desktop.svg +0 -1
- package/src/assets/icons/internet-security-mobile.svg +0 -1
- package/src/assets/icons/internet-security-password.svg +0 -1
- package/src/assets/icons/internet-usage.svg +0 -1
- package/src/assets/icons/internet.svg +0 -1
- package/src/assets/icons/invoice-euro.svg +0 -1
- package/src/assets/icons/invoices-euro.svg +0 -1
- package/src/assets/icons/iso.svg +0 -1
- package/src/assets/icons/it-infrastructure.svg +0 -1
- package/src/assets/icons/keyboard.svg +0 -1
- package/src/assets/icons/la-cle-tv.svg +0 -1
- package/src/assets/icons/laptop-connected.svg +0 -1
- package/src/assets/icons/laptop.svg +0 -1
- package/src/assets/icons/le-vote.svg +0 -1
- package/src/assets/icons/link.svg +0 -1
- package/src/assets/icons/linkedin-2.svg +0 -1
- package/src/assets/icons/linkedin.svg +0 -1
- package/src/assets/icons/location-on-map.svg +0 -1
- package/src/assets/icons/location-pin.svg +0 -1
- package/src/assets/icons/lock-open.svg +0 -1
- package/src/assets/icons/lock.svg +0 -1
- package/src/assets/icons/logistics.svg +0 -1
- package/src/assets/icons/love-logo.svg +0 -1
- package/src/assets/icons/mahali.svg +0 -1
- package/src/assets/icons/maintenance-man.svg +0 -1
- package/src/assets/icons/map-pin.svg +0 -1
- package/src/assets/icons/map.svg +0 -1
- package/src/assets/icons/medal.svg +0 -1
- package/src/assets/icons/medical-app.svg +0 -1
- package/src/assets/icons/medical-chart.svg +0 -1
- package/src/assets/icons/medicine.svg +0 -1
- package/src/assets/icons/menu-arrow.svg +0 -1
- package/src/assets/icons/menu-grid.svg +0 -1
- package/src/assets/icons/menu.svg +0 -1
- package/src/assets/icons/message-alert.svg +0 -1
- package/src/assets/icons/messages.svg +0 -1
- package/src/assets/icons/micro-sd-card.svg +0 -1
- package/src/assets/icons/microphone-mute.svg +0 -1
- package/src/assets/icons/microphone.svg +0 -1
- package/src/assets/icons/mini-games.svg +0 -1
- package/src/assets/icons/mobile-applications.svg +0 -1
- package/src/assets/icons/mobile-data-toggle.svg +0 -1
- package/src/assets/icons/mobile-insurance.svg +0 -1
- package/src/assets/icons/mobile-network-coverage.svg +0 -1
- package/src/assets/icons/mobile-payment.svg +0 -1
- package/src/assets/icons/mobile-security.svg +0 -1
- package/src/assets/icons/mobile-setup.svg +0 -1
- package/src/assets/icons/modem.svg +0 -1
- package/src/assets/icons/modifier-delete.svg +0 -1
- package/src/assets/icons/modifier-done.svg +0 -1
- package/src/assets/icons/modifier-download.svg +0 -1
- package/src/assets/icons/modifier-upload.svg +0 -1
- package/src/assets/icons/money-box.svg +0 -1
- package/src/assets/icons/more-dots.svg +0 -1
- package/src/assets/icons/multi-sim.svg +0 -1
- package/src/assets/icons/music.svg +0 -1
- package/src/assets/icons/my-account.svg +0 -1
- package/src/assets/icons/my-orange.svg +0 -1
- package/src/assets/icons/my-skills.svg +0 -1
- package/src/assets/icons/my-vacation.svg +0 -1
- package/src/assets/icons/network-dslam.svg +0 -1
- package/src/assets/icons/network-gatekeeper.svg +0 -1
- package/src/assets/icons/network-gateway.svg +0 -1
- package/src/assets/icons/network-optical-amplifier.svg +0 -1
- package/src/assets/icons/network-optical-transport.svg +0 -1
- package/src/assets/icons/network-wan-optimisation-engine.svg +0 -1
- package/src/assets/icons/networks.svg +0 -1
- package/src/assets/icons/newspaper.svg +0 -1
- package/src/assets/icons/not-checked.svg +0 -1
- package/src/assets/icons/notification-alert.svg +0 -1
- package/src/assets/icons/office.svg +0 -1
- package/src/assets/icons/online-help.svg +0 -1
- package/src/assets/icons/orange-assistant.svg +0 -1
- package/src/assets/icons/orange-cash.svg +0 -1
- package/src/assets/icons/orange-detente.svg +0 -1
- package/src/assets/icons/orange-dialler.svg +0 -1
- package/src/assets/icons/orange-events.svg +0 -1
- package/src/assets/icons/orange-experts-expert.svg +0 -1
- package/src/assets/icons/orange-experts-insurance.svg +0 -1
- package/src/assets/icons/orange-experts-orange-business-consultant.svg +0 -1
- package/src/assets/icons/orange-experts-recycle.svg +0 -1
- package/src/assets/icons/orange-experts-repair.svg +0 -1
- package/src/assets/icons/orange-football-club.svg +0 -1
- package/src/assets/icons/orange-games.svg +0 -1
- package/src/assets/icons/orange-messenger.svg +0 -1
- package/src/assets/icons/orange-money-nfc.svg +0 -1
- package/src/assets/icons/orange-reflect.svg +0 -1
- package/src/assets/icons/orange-rewards.svg +0 -1
- package/src/assets/icons/orange-tv.svg +0 -1
- package/src/assets/icons/orange-vr-experience.svg +0 -1
- package/src/assets/icons/outbox.svg +0 -1
- package/src/assets/icons/package-content.svg +0 -1
- package/src/assets/icons/package-services.svg +0 -1
- package/src/assets/icons/package.svg +0 -1
- package/src/assets/icons/packaging-icon-hd.svg +0 -1
- package/src/assets/icons/parabole-tv.svg +0 -1
- package/src/assets/icons/parental-control.svg +0 -1
- package/src/assets/icons/pause.svg +0 -1
- package/src/assets/icons/payment-card.svg +0 -1
- package/src/assets/icons/payment-euro.svg +0 -1
- package/src/assets/icons/pda.svg +0 -1
- package/src/assets/icons/pdf-file.svg +0 -1
- package/src/assets/icons/pencil.svg +0 -1
- package/src/assets/icons/personal-hotspot.svg +0 -1
- package/src/assets/icons/personal-smartphone-trainer.svg +0 -1
- package/src/assets/icons/phone-advisor.svg +0 -1
- package/src/assets/icons/play-and-win.svg +0 -1
- package/src/assets/icons/play.svg +0 -1
- package/src/assets/icons/plug-socket.svg +0 -1
- package/src/assets/icons/power.svg +0 -1
- package/src/assets/icons/powerstation.svg +0 -1
- package/src/assets/icons/presentation.svg +0 -1
- package/src/assets/icons/print.svg +0 -1
- package/src/assets/icons/printer.svg +0 -1
- package/src/assets/icons/real-time.svg +0 -1
- package/src/assets/icons/recycle-device.svg +0 -1
- package/src/assets/icons/recycle.svg +0 -1
- package/src/assets/icons/reduction.svg +0 -1
- package/src/assets/icons/reload.svg +0 -1
- package/src/assets/icons/reminders.svg +0 -1
- package/src/assets/icons/remote-desktop-protocol.svg +0 -1
- package/src/assets/icons/remove.svg +0 -1
- package/src/assets/icons/repair.svg +0 -1
- package/src/assets/icons/reseau.svg +0 -1
- package/src/assets/icons/restaurant.svg +0 -1
- package/src/assets/icons/rewards.svg +0 -1
- package/src/assets/icons/running.svg +0 -1
- package/src/assets/icons/safety.svg +0 -1
- package/src/assets/icons/satallite.svg +0 -1
- package/src/assets/icons/save.svg +0 -1
- package/src/assets/icons/school.svg +0 -1
- package/src/assets/icons/science.svg +0 -1
- package/src/assets/icons/sd-card.svg +0 -1
- package/src/assets/icons/search.svg +0 -1
- package/src/assets/icons/security-status-good.svg +0 -1
- package/src/assets/icons/send.svg +0 -1
- package/src/assets/icons/senior-person.svg +0 -1
- package/src/assets/icons/server-storage-array.svg +0 -1
- package/src/assets/icons/server-tower.svg +0 -1
- package/src/assets/icons/session-enter.svg +0 -1
- package/src/assets/icons/session-leave.svg +0 -1
- package/src/assets/icons/settings.svg +0 -1
- package/src/assets/icons/share.svg +0 -1
- package/src/assets/icons/shop-pin.svg +0 -1
- package/src/assets/icons/shop.svg +0 -1
- package/src/assets/icons/showroom-mobile-pro.svg +0 -1
- package/src/assets/icons/signal-5-5.svg +0 -1
- package/src/assets/icons/silence.svg +0 -1
- package/src/assets/icons/sim-e.svg +0 -1
- package/src/assets/icons/sim.svg +0 -1
- package/src/assets/icons/simple-mode.svg +0 -1
- package/src/assets/icons/simplicity.svg +0 -1
- package/src/assets/icons/siren.svg +0 -1
- package/src/assets/icons/skiing.svg +0 -1
- package/src/assets/icons/skip-to-end.svg +0 -1
- package/src/assets/icons/skip-to-start.svg +0 -1
- package/src/assets/icons/sleep.svg +0 -1
- package/src/assets/icons/smart-care.svg +0 -1
- package/src/assets/icons/smart-home.svg +0 -1
- package/src/assets/icons/smart-tap.svg +0 -1
- package/src/assets/icons/smart-watch.svg +0 -1
- package/src/assets/icons/sms-alert.svg +0 -1
- package/src/assets/icons/sms-message-compose.svg +0 -1
- package/src/assets/icons/sms-message.svg +0 -1
- package/src/assets/icons/social-network.svg +0 -1
- package/src/assets/icons/sofa.svg +0 -1
- package/src/assets/icons/sort.svg +0 -1
- package/src/assets/icons/stadium.svg +0 -1
- package/src/assets/icons/star-empty.svg +0 -1
- package/src/assets/icons/star-favourite-half.svg +0 -1
- package/src/assets/icons/star-favourite.svg +0 -1
- package/src/assets/icons/startover.svg +0 -1
- package/src/assets/icons/statistics.svg +0 -1
- package/src/assets/icons/stop-secret.svg +0 -1
- package/src/assets/icons/storage-cloud.svg +0 -1
- package/src/assets/icons/store-locator.svg +0 -1
- package/src/assets/icons/street.svg +0 -1
- package/src/assets/icons/subscription-package.svg +0 -1
- package/src/assets/icons/suitcase.svg +0 -1
- package/src/assets/icons/support.svg +0 -1
- package/src/assets/icons/surveillance-camera.svg +0 -1
- package/src/assets/icons/syncronise.svg +0 -1
- package/src/assets/icons/tag-advertising.svg +0 -1
- package/src/assets/icons/tag.svg +0 -1
- package/src/assets/icons/target-location.svg +0 -1
- package/src/assets/icons/tarif.svg +0 -1
- package/src/assets/icons/task-list.svg +0 -1
- package/src/assets/icons/team-connect.svg +0 -1
- package/src/assets/icons/thumb-up.svg +0 -1
- package/src/assets/icons/tick.svg +0 -1
- package/src/assets/icons/ticket.svg +0 -1
- package/src/assets/icons/top-up-card-euro.svg +0 -1
- package/src/assets/icons/top-up-euro.svg +0 -1
- package/src/assets/icons/top-up-time.svg +0 -1
- package/src/assets/icons/town.svg +0 -1
- package/src/assets/icons/townhall.svg +0 -1
- package/src/assets/icons/train.svg +0 -1
- package/src/assets/icons/training-session.svg +0 -1
- package/src/assets/icons/tranquility.svg +0 -1
- package/src/assets/icons/transfer-data.svg +0 -1
- package/src/assets/icons/transfers.svg +0 -1
- package/src/assets/icons/trash.svg +0 -1
- package/src/assets/icons/tv-channel-list.svg +0 -1
- package/src/assets/icons/tv-commande.svg +0 -1
- package/src/assets/icons/unlimited-calls.svg +0 -1
- package/src/assets/icons/upload.svg +0 -1
- package/src/assets/icons/usb-hard-drive.svg +0 -1
- package/src/assets/icons/usb-key.svg +0 -1
- package/src/assets/icons/user-manual.svg +0 -1
- package/src/assets/icons/user.svg +0 -1
- package/src/assets/icons/video-call.svg +0 -1
- package/src/assets/icons/video-live.svg +0 -1
- package/src/assets/icons/video-phone.svg +0 -1
- package/src/assets/icons/video-record.svg +0 -1
- package/src/assets/icons/video.svg +0 -1
- package/src/assets/icons/vip-contact.svg +0 -1
- package/src/assets/icons/virtual-gamepad.svg +0 -1
- package/src/assets/icons/vod-portrait.svg +0 -1
- package/src/assets/icons/volte.svg +0 -1
- package/src/assets/icons/volume-status-4-4.svg +0 -1
- package/src/assets/icons/vowifi.svg +0 -1
- package/src/assets/icons/wallet.svg +0 -1
- package/src/assets/icons/warning-important.svg +0 -1
- package/src/assets/icons/washroom.svg +0 -1
- package/src/assets/icons/watch.svg +0 -1
- package/src/assets/icons/water.svg +0 -1
- package/src/assets/icons/weather.svg +0 -1
- package/src/assets/icons/web-browser.svg +0 -1
- package/src/assets/icons/web-camera.svg +0 -1
- package/src/assets/icons/weighing-scales.svg +0 -1
- package/src/assets/icons/widget.svg +0 -1
- package/src/assets/icons/wifi-home.svg +0 -1
- package/src/assets/icons/wifi.svg +0 -1
- package/src/assets/icons/x.svg +0 -1
- package/src/assets/icons/your-balance.svg +0 -1
- package/src/assets/icons/youtube.svg +0 -1
- package/src/assets/icons/zoom-in.svg +0 -1
- package/src/assets/icons/zoom-out.svg +0 -1
- package/src/assets/images/developers/hands-with-phones.svg +0 -90
- package/src/assets/images/developers/iphone-size-2x.png +0 -0
- package/src/assets/images/developers/iphone-xr-white-select.png +0 -0
- package/src/assets/images/developers/phones.png +0 -0
- package/src/assets/images/developers/router.png +0 -0
- package/src/assets/images/developers/rule-component-block.png +0 -0
- package/src/assets/images/developers/rule-component-inline.png +0 -0
- package/src/assets/images/developers/rule-container.png +0 -0
- package/src/assets/images/developers/rule-content.png +0 -0
- package/src/assets/images/developers/two-phones.png +0 -0
- package/src/assets/images/styleguide/all-other-brand-guidelines.png +0 -0
- package/src/assets/images/styleguide/components.png +0 -0
- package/src/assets/images/styleguide/core-guidelines.png +0 -0
- package/src/assets/images/styleguide/foundation.png +0 -0
- package/src/assets/images/styleguide/icons.png +0 -0
- package/src/assets/images/styleguide/illustrations.png +0 -0
- package/src/assets/images/styleguide/orange-logo.png +0 -0
- package/src/assets/images/styleguide/patterns.png +0 -0
- package/src/assets/images/styleguide/photos.png +0 -0
- package/src/assets/images/styleguide/principles.png +0 -0
- package/src/assets/images/styleguide/promo-posters.png +0 -0
- package/src/assets/images/styleguide/sketch-ui-kit.png +0 -0
- package/src/assets/logo/logo-small.svg +0 -45
- package/src/assets/logo/logo-white.svg +0 -66
- package/src/assets/logo/logo-with-tagline-white.svg +0 -84
- package/src/assets/logo/logo-with-tagline.svg +0 -84
- package/src/assets/logo/logo.svg +0 -1
- package/src/components/Accordion/Accordion.js +0 -67
- package/src/components/Accordion/Accordion.mdx +0 -222
- package/src/components/Accordion/Accordion.static.js +0 -96
- package/src/components/Accordion/AccordionHeader.js +0 -46
- package/src/components/Accordion/AccordionItem.js +0 -60
- package/src/components/Accordion/HeadingContext.js +0 -3
- package/src/components/Accordion/index.js +0 -4
- package/src/components/Accordion/styles/config.scss +0 -8
- package/src/components/Accordion/styles/mixins.scss +0 -91
- package/src/components/Accordion/styles/style.scss +0 -47
- package/src/components/Accordion/tests/Accordion.conformance.test.js +0 -37
- package/src/components/Accordion/tests/Accordion.unit.test.js +0 -164
- package/src/components/Accordion/tests/AccordionHeader.unit.test.js +0 -118
- package/src/components/Accordion/tests/AccordionItem.unit.test.js +0 -153
- package/src/components/Accordion/tests/data.js +0 -18
- package/src/components/Alert/Alert.js +0 -96
- package/src/components/Alert/Alert.mdx +0 -141
- package/src/components/Alert/data.js +0 -6
- package/src/components/Alert/index.js +0 -5
- package/src/components/Alert/styles/config.scss +0 -26
- package/src/components/Alert/styles/mixins.scss +0 -38
- package/src/components/Alert/styles/style.scss +0 -34
- package/src/components/Alert/tests/Alert.conformance.test.js +0 -24
- package/src/components/Alert/tests/Alert.test.js +0 -69
- package/src/components/Badge/Badge.js +0 -37
- package/src/components/Badge/index.js +0 -3
- package/src/components/Bar/Bar.js +0 -59
- package/src/components/Bar/Bar.mdx +0 -203
- package/src/components/Bar/BarBreak.js +0 -28
- package/src/components/Bar/BarItem.js +0 -38
- package/src/components/Bar/index.js +0 -8
- package/src/components/Bar/styles/config.scss +0 -10
- package/src/components/Bar/styles/mixins.scss +0 -84
- package/src/components/Bar/styles/style.scss +0 -60
- package/src/components/Bar/tests/Bar.conformance.test.js +0 -30
- package/src/components/Bar/tests/Bar.unit.test.js +0 -59
- package/src/components/Bar/tests/BarBreak.unit.test.js +0 -33
- package/src/components/Bar/tests/BarItem.unit.test.js +0 -52
- package/src/components/BlockAction/BlockAction.js +0 -27
- package/src/components/BlockAction/BlockAction.mdx +0 -244
- package/src/components/BlockAction/BlockAction.static.js +0 -88
- package/src/components/BlockAction/BlockActionControl.js +0 -30
- package/src/components/BlockAction/BlockActionIndicator.js +0 -30
- package/src/components/BlockAction/CloneElementWithClassName.js +0 -9
- package/src/components/BlockAction/Context.js +0 -26
- package/src/components/BlockAction/index.js +0 -29
- package/src/components/BlockAction/styles/config.scss +0 -10
- package/src/components/BlockAction/styles/mixins.scss +0 -27
- package/src/components/BlockAction/styles/style.scss +0 -33
- package/src/components/BlockAction/tests/BlockAction.conformance.test.js +0 -115
- package/src/components/BlockAction/tests/BlockAction.unit.test.js +0 -45
- package/src/components/BlockAction/tests/BlockActionControl.unit.test.js +0 -147
- package/src/components/BlockAction/tests/BlockActionIndicator.unit.test.js +0 -69
- package/src/components/BlockAction/tests/CloneElementWithClassName.unit.test.js +0 -34
- package/src/components/Breadcrumbs/BreadcrumbItem.js +0 -43
- package/src/components/Breadcrumbs/Breadcrumbs.js +0 -56
- package/src/components/Breadcrumbs/Breadcrumbs.mdx +0 -84
- package/src/components/Breadcrumbs/index.js +0 -5
- package/src/components/Breadcrumbs/styles/config.scss +0 -2
- package/src/components/Breadcrumbs/styles/mixins.scss +0 -105
- package/src/components/Breadcrumbs/styles/style.scss +0 -37
- package/src/components/Breadcrumbs/tests/BreadcrumbItem.unit.test.js +0 -57
- package/src/components/Breadcrumbs/tests/Breadcrumbs.conformance.test.js +0 -53
- package/src/components/Breadcrumbs/tests/Breadcrumbs.unit.test.js +0 -80
- package/src/components/Button/Button.js +0 -93
- package/src/components/Button/Button.mdx +0 -273
- package/src/components/Button/IconButton.js +0 -75
- package/src/components/Button/index.js +0 -19
- package/src/components/Button/styles/config.scss +0 -250
- package/src/components/Button/styles/mixins.scss +0 -120
- package/src/components/Button/styles/style.scss +0 -54
- package/src/components/Button/tests/Button.conformance.test.js +0 -35
- package/src/components/Button/tests/Button.test.js +0 -114
- package/src/components/Button/tests/IconButton.unit.test.js +0 -107
- package/src/components/Buttons/Buttons.js +0 -30
- package/src/components/Buttons/Buttons.mdx +0 -39
- package/src/components/Buttons/index.js +0 -5
- package/src/components/Buttons/styles/config.scss +0 -3
- package/src/components/Buttons/styles/mixins.scss +0 -33
- package/src/components/Buttons/styles/style.scss +0 -10
- package/src/components/Buttons/tests/Buttons.conformance.test.js +0 -23
- package/src/components/Buttons/tests/Buttons.unit.test.js +0 -27
- package/src/components/Card/Card.js +0 -37
- package/src/components/Card/Card.mdx +0 -334
- package/src/components/Card/CardHeader.js +0 -50
- package/src/components/Card/CardSection.js +0 -30
- package/src/components/Card/index.js +0 -7
- package/src/components/Card/styles/config.scss +0 -31
- package/src/components/Card/styles/mixins.scss +0 -54
- package/src/components/Card/styles/style.scss +0 -33
- package/src/components/Card/tests/Card.conformance.test.js +0 -32
- package/src/components/Card/tests/Card.unit.test.js +0 -48
- package/src/components/Card/tests/CardHeader.unit.test.js +0 -41
- package/src/components/Card/tests/CardSection.unit.test.js +0 -50
- package/src/components/Card/tests/data.js +0 -42
- package/src/components/Carousel/Carousel.js +0 -92
- package/src/components/Carousel/Carousel.mdx +0 -163
- package/src/components/Carousel/Carousel.static.js +0 -188
- package/src/components/Carousel/CarouselItem.js +0 -20
- package/src/components/Carousel/constants.js +0 -18
- package/src/components/Carousel/index.js +0 -7
- package/src/components/Carousel/styles/config.scss +0 -63
- package/src/components/Carousel/styles/mixins.scss +0 -241
- package/src/components/Carousel/styles/style.scss +0 -71
- package/src/components/Carousel/tests/Carousel.conformance.test.js +0 -27
- package/src/components/Carousel/tests/Carousel.unit.test.js +0 -153
- package/src/components/Carousel/tests/CarouselItem.unit.test.js +0 -28
- package/src/components/CarouselPromotions/CarouselPromotions.js +0 -74
- package/src/components/CarouselPromotions/CarouselPromotions.mdx +0 -246
- package/src/components/CarouselPromotions/CarouselPromotions.static.js +0 -233
- package/src/components/CarouselPromotions/CarouselPromotionsItem.js +0 -55
- package/src/components/CarouselPromotions/constants.js +0 -21
- package/src/components/CarouselPromotions/index.js +0 -7
- package/src/components/CarouselPromotions/styles/config.scss +0 -112
- package/src/components/CarouselPromotions/styles/mixins.scss +0 -321
- package/src/components/CarouselPromotions/styles/style.scss +0 -57
- package/src/components/CarouselPromotions/tests/CarouselPromotions.conformance.test.js +0 -31
- package/src/components/CarouselPromotions/tests/CarouselPromotions.unit.test.js +0 -94
- package/src/components/CarouselPromotions/tests/CarouselPromotionsItem.unit.test.js +0 -34
- package/src/components/CartTable/CartTable.js +0 -144
- package/src/components/CartTable/CartTable.mdx +0 -129
- package/src/components/CartTable/FooterNameColumn.js +0 -32
- package/src/components/CartTable/FooterPriceColumn.js +0 -52
- package/src/components/CartTable/Price.js +0 -46
- package/src/components/CartTable/data.js +0 -118
- package/src/components/CartTable/generateFooter.js +0 -71
- package/src/components/CartTable/generateRow.js +0 -171
- package/src/components/CartTable/generateTotal.js +0 -134
- package/src/components/CartTable/index.js +0 -4
- package/src/components/CartTable/styles/config.scss +0 -19
- package/src/components/CartTable/styles/mixins.scss +0 -141
- package/src/components/CartTable/styles/style.scss +0 -37
- package/src/components/CartTable/tests/CartTable.conformance.test.js +0 -17
- package/src/components/Container/Container.js +0 -17
- package/src/components/Container/Container.mdx +0 -18
- package/src/components/Container/index.js +0 -5
- package/src/components/Container/styles/config.scss +0 -11
- package/src/components/Container/styles/mixins.scss +0 -22
- package/src/components/Container/styles/style.scss +0 -5
- package/src/components/Container/tests/Container.conformance.test.js +0 -17
- package/src/components/Container/tests/Container.unit.test.js +0 -27
- package/src/components/ContentBlock/ContentBlock.js +0 -102
- package/src/components/ContentBlock/ContentBlock.mdx +0 -140
- package/src/components/ContentBlock/index.js +0 -3
- package/src/components/ContentBlock/styles/config.scss +0 -15
- package/src/components/ContentBlock/styles/mixins.scss +0 -37
- package/src/components/ContentBlock/styles/style.scss +0 -39
- package/src/components/ContentBlock/tests/ContentBlock.conformance.test.js +0 -27
- package/src/components/ContentBlock/tests/ContentBlock.unit.test.js +0 -123
- package/src/components/Cover/Cover.js +0 -80
- package/src/components/Cover/Cover.mdx +0 -87
- package/src/components/Cover/index.js +0 -5
- package/src/components/Cover/styles/config.scss +0 -55
- package/src/components/Cover/styles/mixins.scss +0 -43
- package/src/components/Cover/styles/style.scss +0 -32
- package/src/components/Cover/tests/Cover.conformance.test.js +0 -28
- package/src/components/Cover/tests/Cover.unit.test.js +0 -116
- package/src/components/Divider/Divider.js +0 -51
- package/src/components/Divider/Divider.mdx +0 -65
- package/src/components/Divider/index.js +0 -5
- package/src/components/Divider/styles/config.scss +0 -22
- package/src/components/Divider/styles/mixins.scss +0 -38
- package/src/components/Divider/styles/style.scss +0 -31
- package/src/components/Divider/tests/Divider.conformance.test.js +0 -24
- package/src/components/Divider/tests/Divider.unit.test.js +0 -81
- package/src/components/Dropdown/Dropdown.js +0 -111
- package/src/components/Dropdown/Dropdown.mdx +0 -260
- package/src/components/Dropdown/Dropdown.static.js +0 -182
- package/src/components/Dropdown/DropdownDivider.js +0 -17
- package/src/components/Dropdown/DropdownItem.js +0 -37
- package/src/components/Dropdown/DropdownToggleButton.js +0 -33
- package/src/components/Dropdown/index.js +0 -6
- package/src/components/Dropdown/styles/config.scss +0 -41
- package/src/components/Dropdown/styles/mixins.scss +0 -82
- package/src/components/Dropdown/styles/style.scss +0 -31
- package/src/components/Dropdown/tests/Dropdown.conformance.test.js +0 -49
- package/src/components/Expander/Expander.js +0 -86
- package/src/components/Expander/Expander.mdx +0 -153
- package/src/components/Expander/Expander.static.js +0 -46
- package/src/components/Expander/index.js +0 -3
- package/src/components/Expander/styles/style.scss +0 -65
- package/src/components/Expander/tests/Expander.conformance.test.js +0 -59
- package/src/components/Expander/tests/Expander.unit.test.js +0 -124
- package/src/components/Forms/Autocomplete/Autocomplete.js +0 -70
- package/src/components/Forms/Autocomplete/Autocomplete.mdx +0 -198
- package/src/components/Forms/Autocomplete/Autocomplete.static.js +0 -65
- package/src/components/Forms/Autocomplete/index.js +0 -3
- package/src/components/Forms/Autocomplete/styles/config.scss +0 -7
- package/src/components/Forms/Autocomplete/styles/mixins.scss +0 -77
- package/src/components/Forms/Autocomplete/styles/style.scss +0 -64
- package/src/components/Forms/Checkbox/Checkbox.js +0 -74
- package/src/components/Forms/Checkbox/Checkbox.mdx +0 -139
- package/src/components/Forms/Checkbox/index.js +0 -3
- package/src/components/Forms/Checkbox/styles/config.scss +0 -26
- package/src/components/Forms/Checkbox/styles/mixins.scss +0 -2
- package/src/components/Forms/Checkbox/styles/style.scss +0 -80
- package/src/components/Forms/Checkbox/tests/Checkbox.unit.test.js +0 -96
- package/src/components/Forms/DatePicker/DatePicker.js +0 -39
- package/src/components/Forms/DatePicker/DatePicker.mdx +0 -149
- package/src/components/Forms/DatePicker/DatePicker.static.js +0 -136
- package/src/components/Forms/DatePicker/index.js +0 -3
- package/src/components/Forms/DatePicker/styles/style.scss +0 -159
- package/src/components/Forms/DatePicker/tests/DatePicker.unit.test.js +0 -263
- package/src/components/Forms/Field/Control.js +0 -111
- package/src/components/Forms/Field/Description.js +0 -27
- package/src/components/Forms/Field/Field.js +0 -137
- package/src/components/Forms/Field/Field.mdx +0 -383
- package/src/components/Forms/Field/FieldContext.js +0 -3
- package/src/components/Forms/Field/Label.js +0 -41
- package/src/components/Forms/Field/Messages.js +0 -22
- package/src/components/Forms/Field/Tooltip.js +0 -29
- package/src/components/Forms/Field/index.js +0 -3
- package/src/components/Forms/Field/styles/config.scss +0 -25
- package/src/components/Forms/Field/styles/mixins.scss +0 -43
- package/src/components/Forms/Field/styles/style.scss +0 -35
- package/src/components/Forms/Field/tests/Autocomplete.Field.conformance.test.js +0 -52
- package/src/components/Forms/Field/tests/Checkbox.Field.conformance.test.js +0 -43
- package/src/components/Forms/Field/tests/Field.unit.test.js +0 -12
- package/src/components/Forms/Field/tests/File.Field.conformance.test.js +0 -47
- package/src/components/Forms/Field/tests/Group.Field.conformance.test.js +0 -47
- package/src/components/Forms/Field/tests/Label.unit.test.js +0 -164
- package/src/components/Forms/Field/tests/Messages.unit.test.js +0 -104
- package/src/components/Forms/Field/tests/Radio.Field.conformance.test.js +0 -43
- package/src/components/Forms/Field/tests/Rangeslider.Field.test.js +0 -60
- package/src/components/Forms/Field/tests/Select.Field.conformance.test.js +0 -45
- package/src/components/Forms/Field/tests/Text.Field.conformance.test.js +0 -43
- package/src/components/Forms/Field/tests/Textarea.Field.conformance.test.js +0 -43
- package/src/components/Forms/Field/tests/Tooltip.unit.test.js +0 -39
- package/src/components/Forms/Field/utils.js +0 -14
- package/src/components/Forms/Fieldset/Fieldset.js +0 -51
- package/src/components/Forms/Fieldset/Fieldset.mdx +0 -178
- package/src/components/Forms/Fieldset/FieldsetContext.js +0 -3
- package/src/components/Forms/Fieldset/docsData.js +0 -75
- package/src/components/Forms/Fieldset/index.js +0 -5
- package/src/components/Forms/Fieldset/styles/mixins.scss +0 -6
- package/src/components/Forms/Fieldset/styles/style.scss +0 -6
- package/src/components/Forms/Fieldset/tests/Fieldset.unit.test.js +0 -64
- package/src/components/Forms/File/File.js +0 -90
- package/src/components/Forms/File/File.mdx +0 -88
- package/src/components/Forms/File/File.static.js +0 -154
- package/src/components/Forms/File/index.js +0 -3
- package/src/components/Forms/File/styles/config.scss +0 -12
- package/src/components/Forms/File/styles/mixins.scss +0 -87
- package/src/components/Forms/File/styles/style.scss +0 -49
- package/src/components/Forms/FormTooltip.mdx +0 -51
- package/src/components/Forms/Forms.mdx +0 -48
- package/src/components/Forms/Group/Group.js +0 -59
- package/src/components/Forms/Group/Group.mdx +0 -146
- package/src/components/Forms/Group/Item.js +0 -31
- package/src/components/Forms/Group/index.js +0 -3
- package/src/components/Forms/Group/styles/config.scss +0 -9
- package/src/components/Forms/Group/styles/mixins.scss +0 -38
- package/src/components/Forms/Group/styles/style.scss +0 -17
- package/src/components/Forms/Group/tests/Group.unit.test.js +0 -172
- package/src/components/Forms/Group/tests/Item.unit.test.js +0 -32
- package/src/components/Forms/Hint/Hint.js +0 -16
- package/src/components/Forms/Hint/Hint.mdx +0 -40
- package/src/components/Forms/Hint/index.js +0 -3
- package/src/components/Forms/Hint/styles/config.scss +0 -5
- package/src/components/Forms/Hint/styles/mixins.scss +0 -6
- package/src/components/Forms/Hint/styles/style.scss +0 -5
- package/src/components/Forms/Hint/tests/Hint.unit.test.js +0 -36
- package/src/components/Forms/InputStepper/InputStepper.js +0 -83
- package/src/components/Forms/InputStepper/InputStepper.mdx +0 -147
- package/src/components/Forms/InputStepper/InputStepper.static.js +0 -162
- package/src/components/Forms/InputStepper/index.js +0 -3
- package/src/components/Forms/InputStepper/styles/style.scss +0 -206
- package/src/components/Forms/InputStepper/tests/InputStepper.unit.test.js +0 -59
- package/src/components/Forms/Label/Label.js +0 -20
- package/src/components/Forms/Label/Label.mdx +0 -95
- package/src/components/Forms/Label/index.js +0 -3
- package/src/components/Forms/Label/styles/config.scss +0 -4
- package/src/components/Forms/Label/styles/mixins.scss +0 -6
- package/src/components/Forms/Label/styles/style.scss +0 -9
- package/src/components/Forms/Label/tests/Label.unit.test.js +0 -43
- package/src/components/Forms/Message/Message.js +0 -58
- package/src/components/Forms/Message/Message.mdx +0 -40
- package/src/components/Forms/Message/index.js +0 -3
- package/src/components/Forms/Message/styles/config.scss +0 -20
- package/src/components/Forms/Message/styles/mixins.scss +0 -23
- package/src/components/Forms/Message/styles/style.scss +0 -10
- package/src/components/Forms/Message/tests/Message.unit.test.js +0 -84
- package/src/components/Forms/Radio/Radio.js +0 -67
- package/src/components/Forms/Radio/Radio.mdx +0 -98
- package/src/components/Forms/Radio/index.js +0 -3
- package/src/components/Forms/Radio/styles/config.scss +0 -26
- package/src/components/Forms/Radio/styles/mixins.scss +0 -6
- package/src/components/Forms/Radio/styles/style.scss +0 -20
- package/src/components/Forms/Radio/tests/Radio.unit.test.js +0 -110
- package/src/components/Forms/RangeSlider/RangeSlider.js +0 -106
- package/src/components/Forms/RangeSlider/RangeSlider.mdx +0 -304
- package/src/components/Forms/RangeSlider/RangeSlider.static.js +0 -90
- package/src/components/Forms/RangeSlider/data.js +0 -48
- package/src/components/Forms/RangeSlider/index.js +0 -4
- package/src/components/Forms/RangeSlider/styles/config.scss +0 -32
- package/src/components/Forms/RangeSlider/styles/mixins.scss +0 -139
- package/src/components/Forms/RangeSlider/styles/style.scss +0 -95
- package/src/components/Forms/Select/Select.js +0 -101
- package/src/components/Forms/Select/Select.mdx +0 -106
- package/src/components/Forms/Select/index.js +0 -10
- package/src/components/Forms/Select/styles/config.scss +0 -53
- package/src/components/Forms/Select/styles/mixins.scss +0 -34
- package/src/components/Forms/Select/styles/style.scss +0 -20
- package/src/components/Forms/Select/tests/Select.unit.test.js +0 -103
- package/src/components/Forms/TextArea/TextArea.js +0 -79
- package/src/components/Forms/TextArea/TextArea.mdx +0 -109
- package/src/components/Forms/TextArea/index.js +0 -3
- package/src/components/Forms/TextArea/styles/config.scss +0 -35
- package/src/components/Forms/TextArea/styles/mixins.scss +0 -48
- package/src/components/Forms/TextArea/styles/style.scss +0 -20
- package/src/components/Forms/TextArea/tests/TextArea.unit.test.js +0 -132
- package/src/components/Forms/TextInput/TextInput.js +0 -96
- package/src/components/Forms/TextInput/TextInput.mdx +0 -153
- package/src/components/Forms/TextInput/index.js +0 -3
- package/src/components/Forms/TextInput/styles/config.scss +0 -60
- package/src/components/Forms/TextInput/styles/mixins.scss +0 -80
- package/src/components/Forms/TextInput/styles/style.scss +0 -28
- package/src/components/Forms/TextInput/tests/TextInput.unit.test.js +0 -109
- package/src/components/Forms/index.js +0 -16
- package/src/components/Forms/styles/config.scss +0 -41
- package/src/components/Forms/styles/mixins.scss +0 -44
- package/src/components/Gauge/Gauge.js +0 -68
- package/src/components/Gauge/Gauge.mdx +0 -35
- package/src/components/Gauge/GaugeMaker.js +0 -82
- package/src/components/Gauge/index.js +0 -5
- package/src/components/Gauge/styles/style.scss +0 -32
- package/src/components/Gauge/tests/Gauge.unit.test.js +0 -35
- package/src/components/Grid/Grid.js +0 -53
- package/src/components/Grid/Grid.mdx +0 -245
- package/src/components/Grid/GridCol.js +0 -38
- package/src/components/Grid/index.js +0 -9
- package/src/components/Grid/styles/config.scss +0 -10
- package/src/components/Grid/styles/mixins.scss +0 -126
- package/src/components/Grid/styles/style.scss +0 -41
- package/src/components/Grid/tests/Grid.conformance.test.js +0 -26
- package/src/components/Grid/tests/Grid.unit.test.js +0 -72
- package/src/components/Grid/tests/GridCol.unit.test.js +0 -62
- package/src/components/Grid/tests/testData.js +0 -24
- package/src/components/Heading/Heading.js +0 -23
- package/src/components/Heading/Heading.mdx +0 -17
- package/src/components/Heading/index.js +0 -1
- package/src/components/Heading/tests/Heading.conformance.test.js +0 -26
- package/src/components/Heading/tests/Heading.unit.test.js +0 -41
- package/src/components/Hero/Hero.js +0 -181
- package/src/components/Hero/Hero.mdx +0 -168
- package/src/components/Hero/HeroPlayground.js +0 -297
- package/src/components/Hero/IframePreview.js +0 -40
- package/src/components/Hero/index.js +0 -3
- package/src/components/Hero/styles/config.scss +0 -13
- package/src/components/Hero/styles/mixins.scss +0 -185
- package/src/components/Hero/styles/style.scss +0 -65
- package/src/components/Hero/tests/Hero.conformance.test.js +0 -29
- package/src/components/Hero/tests/Hero.unit.test.js +0 -271
- package/src/components/Hero/tests/data.js +0 -40
- package/src/components/Icon/Icon.js +0 -59
- package/src/components/Icon/Icon.mdx +0 -172
- package/src/components/Icon/IconSearch.js +0 -234
- package/src/components/Icon/SpritePathContext.js +0 -3
- package/src/components/Icon/iconSearchTags.js +0 -437
- package/src/components/Icon/icons.js +0 -1
- package/src/components/Icon/index.js +0 -6
- package/src/components/Icon/styles/config.scss +0 -26
- package/src/components/Icon/styles/export/color.scss +0 -8
- package/src/components/Icon/styles/export/size.scss +0 -13
- package/src/components/Icon/styles/mixins.scss +0 -31
- package/src/components/Icon/styles/style.scss +0 -13
- package/src/components/Icon/tests/Icon.conformance.test.js +0 -22
- package/src/components/Icon/tests/Icon.unit.test.js +0 -108
- package/src/components/IconList/IconList.js +0 -33
- package/src/components/IconList/IconList.mdx +0 -53
- package/src/components/IconList/Item.js +0 -41
- package/src/components/IconList/index.js +0 -3
- package/src/components/IconList/styles/config.scss +0 -3
- package/src/components/IconList/styles/mixins.scss +0 -33
- package/src/components/IconList/styles/style.scss +0 -21
- package/src/components/IconList/tests/IconList.conformance.test.js +0 -45
- package/src/components/IconList/tests/IconList.unit.test.js +0 -74
- package/src/components/IconList/tests/Item.unit.test.js +0 -131
- package/src/components/Image/Image.js +0 -80
- package/src/components/Image/Image.mdx +0 -98
- package/src/components/Image/index.js +0 -7
- package/src/components/Image/styles/mixins.scss +0 -12
- package/src/components/Image/styles/style.scss +0 -9
- package/src/components/Image/tests/Image.conformance.test.js +0 -46
- package/src/components/Image/tests/Image.unit.test.js +0 -138
- package/src/components/Link/Link.js +0 -59
- package/src/components/Link/Link.mdx +0 -153
- package/src/components/Link/index.js +0 -3
- package/src/components/Link/styles/config.scss +0 -85
- package/src/components/Link/styles/mixins.scss +0 -42
- package/src/components/Link/styles/style.scss +0 -59
- package/src/components/Link/tests/Link.conformance.test.js +0 -24
- package/src/components/Link/tests/Link.unit.test.js +0 -58
- package/src/components/List/ClickableControl.js +0 -29
- package/src/components/List/List.js +0 -37
- package/src/components/List/List.mdx +0 -216
- package/src/components/List/ListItem.js +0 -34
- package/src/components/List/index.js +0 -5
- package/src/components/List/styles/config.scss +0 -38
- package/src/components/List/styles/mixins.scss +0 -99
- package/src/components/List/styles/style.scss +0 -46
- package/src/components/List/tests/ClickableControl.unit.test.js +0 -100
- package/src/components/List/tests/List.conformance.test.js +0 -69
- package/src/components/List/tests/List.unit.test.js +0 -56
- package/src/components/List/tests/ListItem.unit.test.js +0 -104
- package/src/components/Loader/Loader.js +0 -86
- package/src/components/Loader/Loader.mdx +0 -148
- package/src/components/Loader/Loader.static.js +0 -67
- package/src/components/Loader/index.js +0 -4
- package/src/components/Loader/styles/config.scss +0 -16
- package/src/components/Loader/styles/mixins.scss +0 -66
- package/src/components/Loader/styles/style.scss +0 -36
- package/src/components/Loader/tests/Loader.conformance.test.js +0 -23
- package/src/components/Loader/tests/Loader.unit.test.js +0 -60
- package/src/components/Loader/tests/test.scss +0 -5
- package/src/components/Modal/Body.js +0 -37
- package/src/components/Modal/CloseButton.js +0 -18
- package/src/components/Modal/Modal.js +0 -138
- package/src/components/Modal/Modal.mdx +0 -449
- package/src/components/Modal/Modal.static.js +0 -198
- package/src/components/Modal/Title.js +0 -24
- package/src/components/Modal/index.js +0 -7
- package/src/components/Modal/styles/config.scss +0 -42
- package/src/components/Modal/styles/mixins.scss +0 -199
- package/src/components/Modal/styles/style.scss +0 -97
- package/src/components/Modal/tests/Body.unit.test.js +0 -40
- package/src/components/Modal/tests/CloseButton.unit.test.js +0 -81
- package/src/components/Modal/tests/Modal.conformance.test.js +0 -41
- package/src/components/Modal/tests/Modal.unit.test.js +0 -56
- package/src/components/Modal/tests/Title.unit.test.js +0 -25
- package/src/components/PageTitle/PageTitle.js +0 -94
- package/src/components/PageTitle/PageTitle.mdx +0 -185
- package/src/components/PageTitle/index.js +0 -1
- package/src/components/PageTitle/tests/PageTitle.conformance.test.js +0 -39
- package/src/components/PageTitle/tests/PageTitle.unit.test.js +0 -208
- package/src/components/PageTitle/tests/data.js +0 -26
- package/src/components/Pagination/Item.js +0 -63
- package/src/components/Pagination/Pagination.js +0 -70
- package/src/components/Pagination/Pagination.mdx +0 -45
- package/src/components/Pagination/Separator.js +0 -18
- package/src/components/Pagination/helpers.js +0 -47
- package/src/components/Pagination/index.js +0 -3
- package/src/components/Pagination/styles/mixins.scss +0 -38
- package/src/components/Pagination/styles/style.scss +0 -27
- package/src/components/Pagination/tests/Item.unit.test.js +0 -96
- package/src/components/Pagination/tests/Pagination.conformance.test.js +0 -41
- package/src/components/Pagination/tests/Pagination.unit.test.js +0 -108
- package/src/components/Pagination/tests/Separator.unit.test.js +0 -25
- package/src/components/Pagination/tests/utils.js +0 -12
- package/src/components/Pill/Pill.js +0 -14
- package/src/components/Pill/Pill.mdx +0 -41
- package/src/components/Pill/index.js +0 -3
- package/src/components/Pill/styles/config.scss +0 -8
- package/src/components/Pill/styles/mixins.scss +0 -19
- package/src/components/Pill/styles/style.scss +0 -7
- package/src/components/Pill/tests/Pill.conformance.test.js +0 -32
- package/src/components/Pill/tests/Pill.unit.test.js +0 -39
- package/src/components/Progress/Progress.js +0 -52
- package/src/components/Progress/Progress.mdx +0 -119
- package/src/components/Progress/index.js +0 -5
- package/src/components/Progress/styles/config.scss +0 -19
- package/src/components/Progress/styles/mixins.scss +0 -40
- package/src/components/Progress/styles/style.scss +0 -29
- package/src/components/Progress/tests/Progress.conformance.test.js +0 -27
- package/src/components/Progress/tests/Progress.unit.test.js +0 -108
- package/src/components/PromotionCard/PromotionCard.js +0 -32
- package/src/components/PromotionCard/PromotionCard.mdx +0 -148
- package/src/components/PromotionCard/PromotionCardContent.js +0 -23
- package/src/components/PromotionCard/PromotionCardImageWrapper.js +0 -23
- package/src/components/PromotionCard/PromotionCardSection.js +0 -31
- package/src/components/PromotionCard/PromotionCardTitle.js +0 -19
- package/src/components/PromotionCard/constants.js +0 -5
- package/src/components/PromotionCard/index.js +0 -9
- package/src/components/PromotionCard/styles/config.scss +0 -4
- package/src/components/PromotionCard/styles/mixins.scss +0 -83
- package/src/components/PromotionCard/styles/style.scss +0 -23
- package/src/components/Section/Section.js +0 -52
- package/src/components/Section/Section.mdx +0 -254
- package/src/components/Section/index.js +0 -4
- package/src/components/Section/styles/config.scss +0 -38
- package/src/components/Section/styles/mixins.scss +0 -30
- package/src/components/Section/styles/style.scss +0 -35
- package/src/components/Section/tests/Section.conformance.test.js +0 -17
- package/src/components/Section/tests/Section.unit.test.js +0 -57
- package/src/components/Skeleton/Skeleton.js +0 -18
- package/src/components/Skeleton/Skeleton.mdx +0 -90
- package/src/components/Skeleton/index.js +0 -4
- package/src/components/Skeleton/styles/config.scss +0 -29
- package/src/components/Skeleton/styles/mixins.scss +0 -22
- package/src/components/Skeleton/styles/style.scss +0 -5
- package/src/components/Skeleton/tests/Skeleton.conformance.test.js +0 -17
- package/src/components/Skeleton/tests/Skeleton.unit.test.js +0 -23
- package/src/components/SkipLink/SkipLink.js +0 -25
- package/src/components/SkipLink/SkipLink.mdx +0 -23
- package/src/components/SkipLink/index.js +0 -3
- package/src/components/SkipLink/styles/style.scss +0 -18
- package/src/components/SkipLink/tests/SkipLink.unit.test.js +0 -74
- package/src/components/Stepbar/Stepbar.js +0 -96
- package/src/components/Stepbar/Stepbar.mdx +0 -137
- package/src/components/Stepbar/index.js +0 -3
- package/src/components/Stepbar/styles/config.scss +0 -106
- package/src/components/Stepbar/styles/mixins.scss +0 -140
- package/src/components/Stepbar/styles/style.scss +0 -76
- package/src/components/Stepbar/tests/Stepbar.conformance.test.js +0 -35
- package/src/components/Stepbar/tests/Stepbar.unit.test.js +0 -93
- package/src/components/Sticker/Sticker.js +0 -32
- package/src/components/Sticker/Sticker.mdx +0 -50
- package/src/components/Sticker/index.js +0 -4
- package/src/components/Sticker/styles/config.scss +0 -31
- package/src/components/Sticker/styles/mixins.scss +0 -25
- package/src/components/Sticker/styles/style.scss +0 -20
- package/src/components/Sticker/tests/Sticker.conformance.test.js +0 -17
- package/src/components/Sticker/tests/Sticker.unit.test.js +0 -35
- package/src/components/Table/Cell.js +0 -23
- package/src/components/Table/Footer.js +0 -17
- package/src/components/Table/Header.js +0 -60
- package/src/components/Table/Row.js +0 -52
- package/src/components/Table/Rows.js +0 -29
- package/src/components/Table/Table.js +0 -153
- package/src/components/Table/Table.mdx +0 -199
- package/src/components/Table/Table.static.js +0 -129
- package/src/components/Table/TableContext.js +0 -3
- package/src/components/Table/docsData.js +0 -189
- package/src/components/Table/index.js +0 -5
- package/src/components/Table/styles/config.scss +0 -4
- package/src/components/Table/styles/mixins.scss +0 -115
- package/src/components/Table/styles/style.scss +0 -101
- package/src/components/Table/tests/Cell.unit.test.js +0 -60
- package/src/components/Table/tests/Footer.unit.test.js +0 -71
- package/src/components/Table/tests/Header.unit.test.js +0 -121
- package/src/components/Table/tests/Row.unit.test.js +0 -207
- package/src/components/Table/tests/Rows.unit.test.js +0 -93
- package/src/components/Table/tests/Table.conformance.test.js +0 -77
- package/src/components/Table/tests/Table.unit.test.js +0 -276
- package/src/components/Tabs/Tab.js +0 -55
- package/src/components/Tabs/TabPanel.js +0 -51
- package/src/components/Tabs/Tabs.js +0 -128
- package/src/components/Tabs/Tabs.mdx +0 -373
- package/src/components/Tabs/Tabs.static.js +0 -164
- package/src/components/Tabs/index.js +0 -5
- package/src/components/Tabs/styles/config.scss +0 -78
- package/src/components/Tabs/styles/mixins.scss +0 -107
- package/src/components/Tabs/styles/style.scss +0 -64
- package/src/components/Tabs/tests/Tab.unit.test.js +0 -90
- package/src/components/Tabs/tests/TabPanel.unit.test.js +0 -58
- package/src/components/Tabs/tests/Tabs.unit.test.js +0 -264
- package/src/components/Testimonial/Testimonial.js +0 -37
- package/src/components/Testimonial/Testimonial.mdx +0 -41
- package/src/components/Testimonial/index.js +0 -5
- package/src/components/Testimonial/styles/config.scss +0 -39
- package/src/components/Testimonial/styles/mixins.scss +0 -40
- package/src/components/Testimonial/styles/style.scss +0 -14
- package/src/components/Testimonial/tests/Testimonial.conformance.test.js +0 -17
- package/src/components/Testimonial/tests/Testimonial.unit.test.js +0 -44
- package/src/components/Tile/Tile.js +0 -69
- package/src/components/Tile/Tile.mdx +0 -163
- package/src/components/Tile/index.js +0 -5
- package/src/components/Tile/styles/config.scss +0 -19
- package/src/components/Tile/styles/style.scss +0 -49
- package/src/components/Tile/tests/Tile.conformance.test.js +0 -17
- package/src/components/Tile/tests/Tile.unit.test.js +0 -164
- package/src/components/Tooltip/InfoTooltip.js +0 -29
- package/src/components/Tooltip/Tooltip.js +0 -107
- package/src/components/Tooltip/Tooltip.mdx +0 -227
- package/src/components/Tooltip/Tooltip.static.js +0 -252
- package/src/components/Tooltip/index.js +0 -4
- package/src/components/Tooltip/styles/config.scss +0 -47
- package/src/components/Tooltip/styles/mixins.scss +0 -94
- package/src/components/Tooltip/styles/style.scss +0 -28
- package/src/components/Tooltip/tests/BaseWrapper.js +0 -10
- package/src/components/Tooltip/tests/InfoTooltip.unit.test.js +0 -99
- package/src/components/Tooltip/tests/Tooltip.conformance.test.js +0 -43
- package/src/components/Tooltip/tests/Tooltip.unit.test.js +0 -298
- package/src/components/Typography/docs/BodyCopy.mdx +0 -95
- package/src/components/Typography/docs/DisplayHeadings.mdx +0 -124
- package/src/components/Typography/docs/Headings.mdx +0 -162
- package/src/components/Typography/docs/Lists.mdx +0 -205
- package/src/components/Typography/docs/Typeface.mdx +0 -14
- package/src/components/_templates/component/new/Component.docs.ejs.t +0 -127
- package/src/components/_templates/component/new/Component.ejs.t +0 -68
- package/src/components/_templates/component/new/Component.static.ejs.t +0 -21
- package/src/components/_templates/component/new/config.ejs.t +0 -5
- package/src/components/_templates/component/new/index.ejs.t +0 -7
- package/src/components/_templates/component/new/prompt.js +0 -34
- package/src/components/_templates/component/new/style.ejs.t +0 -5
- package/src/components/index.js +0 -155
- package/src/components/static.js +0 -1
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import { ComponentDocs, Code } from '@lighting-beetle/lighter-styleguide';
|
|
2
|
-
|
|
3
|
-
import { Preview } from './../../styleguide';
|
|
4
|
-
import PageTitle from './PageTitle';
|
|
5
|
-
|
|
6
|
-
# PageTitle
|
|
7
|
-
|
|
8
|
-
Styled title for pages that need less than a [Hero](/components/hero).
|
|
9
|
-
|
|
10
|
-
## Composition
|
|
11
|
-
|
|
12
|
-
PageTitle combines [Section](/components/section), [Grid](/components/grid), and [Image](/components/image) with [Text Alignment](/utilities/text#alignment), [Vertical Flex Alignment](/utilities/flex-alignment#vertical) and [Visibility](/utilities/visibility) utilities. It essentialy a wrapper component that renders these components in a consistent and managed structure.
|
|
13
|
-
|
|
14
|
-
### Title
|
|
15
|
-
|
|
16
|
-
- Always `<h1>`
|
|
17
|
-
- Can be configured to use two sizes - display-1 and display-2 (default).
|
|
18
|
-
|
|
19
|
-
### Description (optional)
|
|
20
|
-
|
|
21
|
-
- A short explainer
|
|
22
|
-
- Usually a paragraph.
|
|
23
|
-
|
|
24
|
-
### Sticker (optional)
|
|
25
|
-
|
|
26
|
-
- Highlight or promotion
|
|
27
|
-
- Always make sure 30px space between sticker and preceeding description text. This space is added on the preceeding text element using `.mb-large` [spacing utility](/utilities/spacing#bottom-margin).
|
|
28
|
-
|
|
29
|
-
### Image (optional)
|
|
30
|
-
|
|
31
|
-
- Always aligned to the bottom right
|
|
32
|
-
- Can be stuck to the bottom of the section
|
|
33
|
-
- Usually an SVG illustration
|
|
34
|
-
- Can be shown only on larger viewports (e.g. hidden on mobile screens)
|
|
35
|
-
|
|
36
|
-
## Title only
|
|
37
|
-
|
|
38
|
-
This is the simplest page title.
|
|
39
|
-
|
|
40
|
-
<Preview>
|
|
41
|
-
<PageTitle title="Title of the page" />
|
|
42
|
-
</Preview>
|
|
43
|
-
|
|
44
|
-
## Title + description
|
|
45
|
-
|
|
46
|
-
Page title with a description.
|
|
47
|
-
|
|
48
|
-
<Preview>
|
|
49
|
-
<PageTitle
|
|
50
|
-
title="Title of the page"
|
|
51
|
-
description="Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede."
|
|
52
|
-
/>
|
|
53
|
-
</Preview>
|
|
54
|
-
|
|
55
|
-
## Title + description + sticker
|
|
56
|
-
|
|
57
|
-
Page title with a description.
|
|
58
|
-
|
|
59
|
-
<Preview>
|
|
60
|
-
<PageTitle
|
|
61
|
-
title="Title of the page"
|
|
62
|
-
description="Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede."
|
|
63
|
-
sticker={{ children: 'Sticker', className: 'large', color: 'orange' }}
|
|
64
|
-
/>
|
|
65
|
-
</Preview>
|
|
66
|
-
|
|
67
|
-
## Title + description + image
|
|
68
|
-
|
|
69
|
-
Page title with an image. Content (title + description) and Image use separate Grid columns for alignment.
|
|
70
|
-
|
|
71
|
-
<Preview>
|
|
72
|
-
<PageTitle
|
|
73
|
-
title="Title of the page"
|
|
74
|
-
description="Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede."
|
|
75
|
-
imageProps={{
|
|
76
|
-
width: 300,
|
|
77
|
-
src: {
|
|
78
|
-
default: 'https://placehold.co/300x178',
|
|
79
|
-
md: 'https://placehold.co/227x135',
|
|
80
|
-
lg: 'https://placehold.co/366x217',
|
|
81
|
-
xl: 'https://placehold.co/430x255',
|
|
82
|
-
},
|
|
83
|
-
alt: '',
|
|
84
|
-
}}
|
|
85
|
-
/>
|
|
86
|
-
</Preview>
|
|
87
|
-
|
|
88
|
-
## Image stuck to bottom
|
|
89
|
-
|
|
90
|
-
Some page titles need to stuck image to the bottom of element so you can do it
|
|
91
|
-
by passing `.section__image-stuck-to-bottom` to element which we want to be stuck.
|
|
92
|
-
|
|
93
|
-
<Preview>
|
|
94
|
-
<PageTitle
|
|
95
|
-
title="Title of the page"
|
|
96
|
-
description="Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede."
|
|
97
|
-
imageProps={{
|
|
98
|
-
width: 300,
|
|
99
|
-
src: {
|
|
100
|
-
default: 'https://placehold.co/300x263',
|
|
101
|
-
md: 'https://placehold.co/178x157',
|
|
102
|
-
lg: 'https://placehold.co/242x214',
|
|
103
|
-
xl: 'https://placehold.co/274x244',
|
|
104
|
-
},
|
|
105
|
-
alt: '',
|
|
106
|
-
}}
|
|
107
|
-
hasImageStuckToBottom
|
|
108
|
-
/>
|
|
109
|
-
</Preview>
|
|
110
|
-
|
|
111
|
-
## Hide image on mobile
|
|
112
|
-
|
|
113
|
-
If you need to hide image on smaller displays you can use this feature like this.
|
|
114
|
-
Change viewport size to mobile size to see functionality of this example.
|
|
115
|
-
|
|
116
|
-
<Preview>
|
|
117
|
-
<PageTitle
|
|
118
|
-
title="Title of the page"
|
|
119
|
-
description="Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede."
|
|
120
|
-
imageProps={{
|
|
121
|
-
width: 300,
|
|
122
|
-
src: {
|
|
123
|
-
default: 'https://placehold.co/300x263',
|
|
124
|
-
md: 'https://placehold.co/178x157',
|
|
125
|
-
lg: 'https://placehold.co/242x214',
|
|
126
|
-
xl: 'https://placehold.co/274x244',
|
|
127
|
-
},
|
|
128
|
-
alt: '',
|
|
129
|
-
}}
|
|
130
|
-
imageShowFromBreakpoint="sm"
|
|
131
|
-
/>
|
|
132
|
-
</Preview>
|
|
133
|
-
|
|
134
|
-
## Colors
|
|
135
|
-
|
|
136
|
-
<Preview>
|
|
137
|
-
<PageTitle
|
|
138
|
-
title="Title of the page"
|
|
139
|
-
description="Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede."
|
|
140
|
-
imageProps={{
|
|
141
|
-
width: 300,
|
|
142
|
-
src: {
|
|
143
|
-
default: 'https://placehold.co/300x263',
|
|
144
|
-
md: 'https://placehold.co/178x157',
|
|
145
|
-
lg: 'https://placehold.co/242x214',
|
|
146
|
-
xl: 'https://placehold.co/274x244',
|
|
147
|
-
},
|
|
148
|
-
alt: '',
|
|
149
|
-
}}
|
|
150
|
-
/>
|
|
151
|
-
<PageTitle
|
|
152
|
-
title="Title of the page"
|
|
153
|
-
description="Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede."
|
|
154
|
-
color="white"
|
|
155
|
-
imageProps={{
|
|
156
|
-
width: 300,
|
|
157
|
-
src: {
|
|
158
|
-
default: 'https://placehold.co/300x263',
|
|
159
|
-
md: 'https://placehold.co/178x157',
|
|
160
|
-
lg: 'https://placehold.co/242x214',
|
|
161
|
-
xl: 'https://placehold.co/274x244',
|
|
162
|
-
},
|
|
163
|
-
alt: '',
|
|
164
|
-
}}
|
|
165
|
-
/>
|
|
166
|
-
<PageTitle
|
|
167
|
-
title="Title of the page"
|
|
168
|
-
description="Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede."
|
|
169
|
-
color="orange"
|
|
170
|
-
imageProps={{
|
|
171
|
-
width: 300,
|
|
172
|
-
src: {
|
|
173
|
-
default: 'https://placehold.co/300x263',
|
|
174
|
-
md: 'https://placehold.co/178x157',
|
|
175
|
-
lg: 'https://placehold.co/242x214',
|
|
176
|
-
xl: 'https://placehold.co/274x244',
|
|
177
|
-
},
|
|
178
|
-
alt: '',
|
|
179
|
-
}}
|
|
180
|
-
/>
|
|
181
|
-
</Preview>
|
|
182
|
-
|
|
183
|
-
## Props
|
|
184
|
-
|
|
185
|
-
<ComponentDocs title="<PageTitle />" component={PageTitle} />
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './PageTitle';
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { render } from '@testing-library/react';
|
|
3
|
-
import { axe } from 'jest-axe';
|
|
4
|
-
|
|
5
|
-
import PageTitle from '../';
|
|
6
|
-
|
|
7
|
-
const example = (
|
|
8
|
-
<>
|
|
9
|
-
<PageTitle title="Title of the page" />
|
|
10
|
-
<PageTitle
|
|
11
|
-
title="Title of the page"
|
|
12
|
-
description="Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede."
|
|
13
|
-
/>
|
|
14
|
-
<PageTitle
|
|
15
|
-
title="Title of the page"
|
|
16
|
-
description="Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede."
|
|
17
|
-
imageProps={{
|
|
18
|
-
width: 300,
|
|
19
|
-
src: {
|
|
20
|
-
default: 'https://placehold.co/300x178',
|
|
21
|
-
md: 'https://placehold.co/227x135',
|
|
22
|
-
lg: 'https://placehold.co/366x217',
|
|
23
|
-
xl: 'https://placehold.co/430x255',
|
|
24
|
-
},
|
|
25
|
-
alt: '',
|
|
26
|
-
}}
|
|
27
|
-
/>
|
|
28
|
-
</>
|
|
29
|
-
);
|
|
30
|
-
|
|
31
|
-
it('is valid html', () => {
|
|
32
|
-
const { container } = render(example);
|
|
33
|
-
expect(container).toHTMLValidate();
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
it('is accessible', async () => {
|
|
37
|
-
const { container } = render(example);
|
|
38
|
-
expect(await axe(container)).toHaveNoViolations();
|
|
39
|
-
});
|
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { render } from '@testing-library/react';
|
|
3
|
-
|
|
4
|
-
import PageTitle from '../PageTitle';
|
|
5
|
-
|
|
6
|
-
describe('rendering PageTitle', () => {
|
|
7
|
-
describe('initial state', () => {
|
|
8
|
-
it('section component has class bg-black', () => {
|
|
9
|
-
const { getByTestId } = render(<PageTitle data-testid="test-id" />);
|
|
10
|
-
expect(getByTestId('test-id')).toHaveClass('bg-black');
|
|
11
|
-
});
|
|
12
|
-
it('h1 heading element is rendered', () => {
|
|
13
|
-
const { container } = render(<PageTitle />);
|
|
14
|
-
expect(container.querySelector('h1')).toBeTruthy();
|
|
15
|
-
});
|
|
16
|
-
it('h1 heading element has class display-2', () => {
|
|
17
|
-
const { container } = render(<PageTitle />);
|
|
18
|
-
expect(container.querySelector('h1')).toHaveClass('display-2');
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
describe('heading props title and titleSize are passed', () => {
|
|
22
|
-
it("h1 heading element has class display-1 when titleSize is set to 'large'", () => {
|
|
23
|
-
const { container } = render(<PageTitle titleSize="large" />);
|
|
24
|
-
expect(container.querySelector('h1')).toHaveClass('display-1');
|
|
25
|
-
});
|
|
26
|
-
it('title of type Node is rendered inside h1', () => {
|
|
27
|
-
const { container } = render(
|
|
28
|
-
<PageTitle title={<a>title-link-test</a>} />
|
|
29
|
-
);
|
|
30
|
-
expect(container.querySelector('h1').querySelector('a')).toBeTruthy();
|
|
31
|
-
expect(container.querySelector('h1').querySelector('a').textContent).toBe(
|
|
32
|
-
'title-link-test'
|
|
33
|
-
);
|
|
34
|
-
});
|
|
35
|
-
it('title of type string is rendered inside h1', () => {
|
|
36
|
-
const { container } = render(<PageTitle title="title-link-test" />);
|
|
37
|
-
expect(container.querySelector('h1').textContent).toBe('title-link-test');
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
describe('description prop is passed', () => {
|
|
41
|
-
it('description of type Node is rendered', () => {
|
|
42
|
-
const { container } = render(
|
|
43
|
-
<PageTitle description={<a>description-link-test</a>} />
|
|
44
|
-
);
|
|
45
|
-
expect(container.querySelector('a')).toBeTruthy();
|
|
46
|
-
expect(container.querySelector('a').textContent).toBe(
|
|
47
|
-
'description-link-test'
|
|
48
|
-
);
|
|
49
|
-
});
|
|
50
|
-
it('description of type string is rendered inside paragraph element', () => {
|
|
51
|
-
const { container } = render(
|
|
52
|
-
<PageTitle description="description-link-test" />
|
|
53
|
-
);
|
|
54
|
-
expect(container.querySelector('p')).toBeTruthy();
|
|
55
|
-
expect(container.querySelector('p').textContent).toBe(
|
|
56
|
-
'description-link-test'
|
|
57
|
-
);
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
describe('color prop is passed', () => {
|
|
61
|
-
['black', 'orange'].map(color => {
|
|
62
|
-
it(`section component has class bg-${color} when color prop is ${color}`, () => {
|
|
63
|
-
const { getByTestId } = render(
|
|
64
|
-
<PageTitle data-testid="test-id" color={color} />
|
|
65
|
-
);
|
|
66
|
-
expect(getByTestId('test-id')).toHaveClass(`bg-${color}`);
|
|
67
|
-
});
|
|
68
|
-
});
|
|
69
|
-
it('section component doesnt have class bg-white when color prop is white', () => {
|
|
70
|
-
const { getByTestId } = render(
|
|
71
|
-
<PageTitle data-testid="test-id" color="white" />
|
|
72
|
-
);
|
|
73
|
-
expect(
|
|
74
|
-
getByTestId('test-id').getElementsByClassName('bg-white').length
|
|
75
|
-
).toBe(0);
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
describe('image props hasImageStuckToBottom, imageProps and imageShowFromBreakpoint are passed', () => {
|
|
79
|
-
const image1 = {
|
|
80
|
-
src: 'image1',
|
|
81
|
-
alt: 'img-alt',
|
|
82
|
-
className: 'test-image-class',
|
|
83
|
-
};
|
|
84
|
-
const image2 = {
|
|
85
|
-
src: { default: 'image2', md: 'image2-md' },
|
|
86
|
-
alt: 'img-alt',
|
|
87
|
-
className: 'test-image-class',
|
|
88
|
-
};
|
|
89
|
-
it('title and description is rendered when imageProps prop is passed', () => {
|
|
90
|
-
const { getByText } = render(
|
|
91
|
-
<PageTitle
|
|
92
|
-
imageProps={image1}
|
|
93
|
-
title="test-title"
|
|
94
|
-
description="test-description"
|
|
95
|
-
/>
|
|
96
|
-
);
|
|
97
|
-
expect(getByText('test-title')).toBeInTheDocument();
|
|
98
|
-
expect(getByText('test-description')).toBeInTheDocument();
|
|
99
|
-
});
|
|
100
|
-
it('img element with src=imageProps.src is rendered when imageProps.src has type string', () => {
|
|
101
|
-
const { container } = render(<PageTitle imageProps={image1} />);
|
|
102
|
-
expect(container.querySelector('img')).toBeInTheDocument();
|
|
103
|
-
expect(container.querySelector('img').getAttribute('src')).toBe('image1');
|
|
104
|
-
});
|
|
105
|
-
it('img element with alt=imageProps.alt is rendered when imageProps.alt is passed', () => {
|
|
106
|
-
const { container } = render(<PageTitle imageProps={image1} />);
|
|
107
|
-
expect(container.querySelector('img')).toBeInTheDocument();
|
|
108
|
-
expect(container.querySelector('img').getAttribute('alt')).toBe(
|
|
109
|
-
'img-alt'
|
|
110
|
-
);
|
|
111
|
-
});
|
|
112
|
-
it('img element with additional class is rendered when imageProps.className is passed', () => {
|
|
113
|
-
const { container } = render(<PageTitle imageProps={image1} />);
|
|
114
|
-
expect(container.querySelector('img')).toBeInTheDocument();
|
|
115
|
-
expect(container.querySelector('img')).toHaveClass('test-image-class');
|
|
116
|
-
});
|
|
117
|
-
['xxl', 'xl', 'lg', 'md', 'sm'].map(breakpoint => {
|
|
118
|
-
it(`image wrapper column with additional class show-${breakpoint} is rendered when imageShowFromBreakpoint=${breakpoint} is passed`, () => {
|
|
119
|
-
const { container } = render(
|
|
120
|
-
<PageTitle imageProps={image1} imageShowFromBreakpoint={breakpoint} />
|
|
121
|
-
);
|
|
122
|
-
expect(container.querySelector('img')).toBeInTheDocument();
|
|
123
|
-
expect(container.querySelector('img').parentElement).toHaveClass(
|
|
124
|
-
`show-${breakpoint}`
|
|
125
|
-
);
|
|
126
|
-
});
|
|
127
|
-
});
|
|
128
|
-
it('img el. with src=imageProps.src.default is rendered inside picture el. when imageProps.src has type object', () => {
|
|
129
|
-
const { container } = render(<PageTitle imageProps={image2} />);
|
|
130
|
-
const img = container.querySelector('img');
|
|
131
|
-
expect(img.parentElement.tagName).toBe('PICTURE');
|
|
132
|
-
expect(container.querySelector('img').getAttribute('src')).toBe('image2');
|
|
133
|
-
});
|
|
134
|
-
it('when imageProps.src.md is passed, picture has source element with srcSet=imageProps.src.md in it', () => {
|
|
135
|
-
const { container } = render(<PageTitle imageProps={image2} />);
|
|
136
|
-
const picture = container.querySelector('picture');
|
|
137
|
-
expect(picture).toBeInTheDocument();
|
|
138
|
-
for (let child of picture.children) {
|
|
139
|
-
if (child.tagName === 'SOURCE') {
|
|
140
|
-
expect(child.getAttribute('srcSet')).toBe('image2-md');
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
it('div wrapper around image has class grid__col--auto and additional classes passed in its className prop', () => {
|
|
145
|
-
const { container } = render(<PageTitle imageProps={image1} />);
|
|
146
|
-
const img = container.querySelector('img');
|
|
147
|
-
expect(img).toBeInTheDocument();
|
|
148
|
-
const div = img.parentElement;
|
|
149
|
-
expect(div.tagName).toBe('DIV');
|
|
150
|
-
expect(div.className).toBe(
|
|
151
|
-
'grid__col--auto align-md-right align-self-bottom'
|
|
152
|
-
);
|
|
153
|
-
});
|
|
154
|
-
it('div wrapper around image has additional class passed when hasImageStuckToBottom prop is passed', () => {
|
|
155
|
-
const { container } = render(
|
|
156
|
-
<PageTitle imageProps={image1} hasImageStuckToBottom />
|
|
157
|
-
);
|
|
158
|
-
const img = container.querySelector('img');
|
|
159
|
-
expect(img).toBeInTheDocument();
|
|
160
|
-
const div = img.parentElement;
|
|
161
|
-
expect(div.tagName).toBe('DIV');
|
|
162
|
-
expect(div.className).toBe(
|
|
163
|
-
'grid__col--auto align-md-right align-self-bottom section__image-stuck-to-bottom'
|
|
164
|
-
);
|
|
165
|
-
});
|
|
166
|
-
it('div wrapper around picture has class grid__col--auto and additional classes passed in its className prop', () => {
|
|
167
|
-
const { container } = render(<PageTitle imageProps={image2} />);
|
|
168
|
-
const picture = container.querySelector('picture');
|
|
169
|
-
expect(picture).toBeInTheDocument();
|
|
170
|
-
const div = picture.parentElement;
|
|
171
|
-
expect(div.tagName).toBe('DIV');
|
|
172
|
-
expect(div.className).toBe(
|
|
173
|
-
'grid__col--auto align-md-right align-self-bottom'
|
|
174
|
-
);
|
|
175
|
-
});
|
|
176
|
-
it('div wrapper around picture has additional class passed when hasImageStuckToBottom prop is passed', () => {
|
|
177
|
-
const { container } = render(
|
|
178
|
-
<PageTitle imageProps={image2} hasImageStuckToBottom />
|
|
179
|
-
);
|
|
180
|
-
const picture = container.querySelector('picture');
|
|
181
|
-
expect(picture).toBeInTheDocument();
|
|
182
|
-
const div = picture.parentElement;
|
|
183
|
-
expect(div.tagName).toBe('DIV');
|
|
184
|
-
expect(div.className).toBe(
|
|
185
|
-
'grid__col--auto align-md-right align-self-bottom section__image-stuck-to-bottom'
|
|
186
|
-
);
|
|
187
|
-
});
|
|
188
|
-
it('renders sticker', () => {
|
|
189
|
-
const { container } = render(
|
|
190
|
-
<PageTitle sticker={{ children: 'Sticker', color: 'orange' }} />
|
|
191
|
-
);
|
|
192
|
-
const sticker = container.querySelector('.sticker');
|
|
193
|
-
expect(sticker).toBeInTheDocument();
|
|
194
|
-
expect(sticker).toHaveClass('sticker--orange');
|
|
195
|
-
expect(sticker.innerHTML).toBe('Sticker');
|
|
196
|
-
});
|
|
197
|
-
it('has correct space between description and sticker', () => {
|
|
198
|
-
const { container } = render(
|
|
199
|
-
<PageTitle
|
|
200
|
-
sticker={{ children: 'Sticker', color: 'orange' }}
|
|
201
|
-
description="Description"
|
|
202
|
-
/>
|
|
203
|
-
);
|
|
204
|
-
const description = container.querySelector('p');
|
|
205
|
-
expect(description).toHaveClass('mb-large');
|
|
206
|
-
});
|
|
207
|
-
});
|
|
208
|
-
});
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export const img = {
|
|
2
|
-
alt: '',
|
|
3
|
-
src: 'https://placehold.co/300x300?text=<img+/>+300x300',
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
export const responsiveImg = {
|
|
7
|
-
alt: '',
|
|
8
|
-
src: {
|
|
9
|
-
default: 'https://placehold.co/300x300?text=<picture+/>+300x300',
|
|
10
|
-
sm: 'https://placehold.co/300x300?text=<picture+/>+300x300',
|
|
11
|
-
md: 'https://placehold.co/200x200?text=<picture+/>+200x200',
|
|
12
|
-
lg: 'https://placehold.co/250x200?text=<picture+/>+250x200',
|
|
13
|
-
xl: 'https://placehold.co/400x300?text=<picture+/>+400x300',
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export const titleSizes = [undefined, 'large'];
|
|
18
|
-
export const titles = [
|
|
19
|
-
'Short title',
|
|
20
|
-
'Title that is longer to showcase wrapping.',
|
|
21
|
-
];
|
|
22
|
-
export const description =
|
|
23
|
-
'Pretty long description but still ok if we really need to say something very important and it cannot be said in matter of 5 words. We also use it to showcase proper wrapping and image alignment.';
|
|
24
|
-
|
|
25
|
-
export const imagePropsArr = [img, responsiveImg];
|
|
26
|
-
export const colors = [undefined, 'white', 'orange'];
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { bool, string } from 'prop-types';
|
|
3
|
-
import cx from 'classnames';
|
|
4
|
-
|
|
5
|
-
import Icon from '../Icon/index';
|
|
6
|
-
|
|
7
|
-
const propTypes = {
|
|
8
|
-
/** aria-label of page item */
|
|
9
|
-
ariaLabel: string,
|
|
10
|
-
/** Text label inside page item */
|
|
11
|
-
label: string,
|
|
12
|
-
/** Show icon as label */
|
|
13
|
-
hasIcon: bool,
|
|
14
|
-
/** Link href */
|
|
15
|
-
href: string,
|
|
16
|
-
/** Active state */
|
|
17
|
-
isActive: bool,
|
|
18
|
-
/** Is first item */
|
|
19
|
-
isFirst: bool,
|
|
20
|
-
/** Is last item */
|
|
21
|
-
isLast: bool,
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
const ITEM_CLASS_ROOT = 'pagination__item';
|
|
25
|
-
const ANCHOR_CLASS_ROOT = 'pagination__link';
|
|
26
|
-
|
|
27
|
-
const Item = ({
|
|
28
|
-
ariaLabel,
|
|
29
|
-
className,
|
|
30
|
-
hasIcon,
|
|
31
|
-
href,
|
|
32
|
-
isActive,
|
|
33
|
-
isFirst,
|
|
34
|
-
isLast,
|
|
35
|
-
label,
|
|
36
|
-
...other
|
|
37
|
-
}) => {
|
|
38
|
-
const itemClasses = cx(ITEM_CLASS_ROOT, className);
|
|
39
|
-
|
|
40
|
-
const anchorClasses = cx(ANCHOR_CLASS_ROOT, 'btn btn--square', {
|
|
41
|
-
[`${ANCHOR_CLASS_ROOT}--active`]: isActive,
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
return (
|
|
45
|
-
<li className={itemClasses} {...other}>
|
|
46
|
-
<a
|
|
47
|
-
href={href}
|
|
48
|
-
className={anchorClasses}
|
|
49
|
-
aria-current={isActive ? 'page' : null}
|
|
50
|
-
aria-label={ariaLabel || undefined}
|
|
51
|
-
>
|
|
52
|
-
{hasIcon && isFirst && <Icon name="chevron-start" />}
|
|
53
|
-
{!hasIcon && label}
|
|
54
|
-
{hasIcon && isLast && <Icon name="chevron-end" />}
|
|
55
|
-
</a>
|
|
56
|
-
</li>
|
|
57
|
-
);
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
Item.displayName = 'PaginationItem';
|
|
61
|
-
Item.propTypes = propTypes;
|
|
62
|
-
|
|
63
|
-
export default Item;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { string, shape, bool, arrayOf } from 'prop-types';
|
|
3
|
-
import cx from 'classnames';
|
|
4
|
-
|
|
5
|
-
import Item from './Item';
|
|
6
|
-
import Separator from './Separator';
|
|
7
|
-
import { getItemState } from './helpers';
|
|
8
|
-
|
|
9
|
-
const itemShape = {
|
|
10
|
-
/** Page link href */
|
|
11
|
-
href: string.isRequired,
|
|
12
|
-
/** Text label inside page item */
|
|
13
|
-
label: string.isRequired,
|
|
14
|
-
/** Active state. */
|
|
15
|
-
isActive: bool,
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
const propTypes = {
|
|
19
|
-
/** Collapsed version */
|
|
20
|
-
isCompact: bool,
|
|
21
|
-
/** All pagination items - buttons & numbers */
|
|
22
|
-
items: arrayOf(shape(itemShape)).isRequired,
|
|
23
|
-
/** Accessibility label */
|
|
24
|
-
label: string,
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
const CLASS_ROOT = 'pagination';
|
|
28
|
-
|
|
29
|
-
const Pagination = ({ className, label, isCompact, items, ...other }) => {
|
|
30
|
-
const classes = cx(CLASS_ROOT, className);
|
|
31
|
-
|
|
32
|
-
const activeIndex = items.findIndex(({ isActive }) => isActive);
|
|
33
|
-
|
|
34
|
-
return (
|
|
35
|
-
<nav aria-label={label}>
|
|
36
|
-
<ul className={classes} {...other}>
|
|
37
|
-
{items.map((item, index) => {
|
|
38
|
-
const {
|
|
39
|
-
isFirst,
|
|
40
|
-
isHidden,
|
|
41
|
-
isLast,
|
|
42
|
-
isSecond,
|
|
43
|
-
isSecondFromEnd,
|
|
44
|
-
hasIcon,
|
|
45
|
-
showSeparator,
|
|
46
|
-
} = getItemState({ activeIndex, items, isCompact, index });
|
|
47
|
-
|
|
48
|
-
return (
|
|
49
|
-
<React.Fragment key={index.toString()}>
|
|
50
|
-
{!isCompact && showSeparator && isSecond && <Separator />}
|
|
51
|
-
<Item
|
|
52
|
-
{...item}
|
|
53
|
-
isFirst={isFirst}
|
|
54
|
-
isLast={isLast}
|
|
55
|
-
className={cx({ hide: isHidden })}
|
|
56
|
-
hasIcon={hasIcon}
|
|
57
|
-
/>
|
|
58
|
-
{!isCompact && showSeparator && isSecondFromEnd && <Separator />}
|
|
59
|
-
</React.Fragment>
|
|
60
|
-
);
|
|
61
|
-
})}
|
|
62
|
-
</ul>
|
|
63
|
-
</nav>
|
|
64
|
-
);
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
Pagination.displayName = 'Pagination';
|
|
68
|
-
Pagination.propTypes = propTypes;
|
|
69
|
-
|
|
70
|
-
export default Pagination;
|
|
@@ -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,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import cx from 'classnames';
|
|
3
|
-
|
|
4
|
-
const CLASS_ROOT = 'pagination__separator';
|
|
5
|
-
|
|
6
|
-
const Separator = ({ className, ...other }) => {
|
|
7
|
-
const itemClasses = cx(CLASS_ROOT, className);
|
|
8
|
-
|
|
9
|
-
return (
|
|
10
|
-
<li className={itemClasses} {...other}>
|
|
11
|
-
…
|
|
12
|
-
</li>
|
|
13
|
-
);
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
Separator.displayName = 'PaginationSeparator';
|
|
17
|
-
|
|
18
|
-
export default Separator;
|