@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 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../webpack/universalModuleDefinition","../webpack/bootstrap","../external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}","../node_modules/classnames/index.js","components/Link/Link.js"],"names":["root","factory","exports","module","require","define","amd","a","i","this","__WEBPACK_EXTERNAL_MODULE__0__","installedModules","__webpack_require__","moduleId","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","hasOwn","classNames","classes","arguments","length","arg","appendClass","parseValue","Array","isArray","apply","toString","includes","newClass","default","Link","className","children","color","isInverse","tag","href","other","Element","cx","console","warn","React","createElement","assign","defaultProps","displayName"],"mappings":";CAAA,SAA2CA,EAAMC,GAChD,GAAsB,kBAAZC,SAA0C,kBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,eAC7B,GAAqB,oBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,CAAC,SAAUJ,OACd,CACJ,IAAIM,EAAuB,kBAAZL,QAAuBD,EAAQG,QAAQ,UAAYH,EAAQD,EAAY,OACtF,IAAI,IAAIQ,KAAKD,GAAuB,kBAAZL,QAAuBA,QAAUF,GAAMQ,GAAKD,EAAEC,IAPxE,CASGC,MAAM,SAASC,GAClB,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUX,QAGnC,IAAIC,EAASQ,EAAiBE,GAAY,CACzCL,EAAGK,EACHC,GAAG,EACHZ,QAAS,IAUV,OANAa,EAAQF,GAAUG,KAAKb,EAAOD,QAASC,EAAQA,EAAOD,QAASU,GAG/DT,EAAOW,GAAI,EAGJX,EAAOD,QA0Df,OArDAU,EAAoBK,EAA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,EAAI,EAAGA,EAAIwC,UAAUC,OAAQzC,IAAK,CAC1C,IAAI0C,EAAMF,UAAUxC,GAChB0C,IACHH,EAAUI,EAAYJ,EAASK,EAAWF,KAI5C,OAAOH,EAGR,SAASK,EAAYF,GACpB,GAAmB,kBAARA,GAAmC,kBAARA,EACrC,OAAOA,EAGR,GAAmB,kBAARA,EACV,MAAO,GAGR,GAAIG,MAAMC,QAAQJ,GACjB,OAAOJ,EAAWS,MAAM,KAAML,GAG/B,GAAIA,EAAIM,WAAajC,OAAOkB,UAAUe,WAAaN,EAAIM,SAASA,WAAWC,SAAS,iBACnF,OAAOP,EAAIM,WAGZ,IAAIT,EAAU,GAEd,IAAK,IAAIX,KAAOc,EACXL,EAAO7B,KAAKkC,EAAKd,IAAQc,EAAId,KAChCW,EAAUI,EAAYJ,EAASX,IAIjC,OAAOW,EAGR,SAASI,EAAarB,EAAO4B,GAC5B,OAAKA,EAID5B,EACIA,EAAQ,IAAM4B,EAGf5B,EAAQ4B,EAPP5B,EAU4B3B,EAAOD,SAC3C4C,EAAWa,QAAUb,EACrB3C,EAAOD,QAAU4C,QAKhB,KAFwB,EAAF,WACtB,OAAOA,GACP,QAFoB,OAEpB,aAjEF,I,2HCHD,MAiBMc,EAAOA,EACXC,YACAC,WACAC,QACAC,YACAC,MACAC,UACGC,MAEH,MAAMC,EAAUH,EAEVlB,EAAUsB,IA5BC,OA8Bf,CACE,mBAA+BL,EAC/B,CAAE,SAAiBD,GAAUA,GAE/BF,GASF,MANY,MAARI,GAAgBC,GAClBI,QAAQC,KACN,mKAKFC,IAAAC,cAACL,EAAO7C,OAAAmD,OAAA,CAACR,KAAMA,EAAML,UAAWd,GAAaoB,GAC1CL,IAMPF,EAAKe,aAtCgB,CACnBV,IAAK,KAsCPL,EAAKgB,YAAc,OAEJhB,S","file":"components/Link/index.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse {\n\t\tvar a = typeof exports === 'object' ? factory(require(\"react\")) : factory(root[\"React\"]);\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})(this, function(__WEBPACK_EXTERNAL_MODULE__0__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 132);\n","module.exports = __WEBPACK_EXTERNAL_MODULE__0__;","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import React from 'react';\nimport { string, oneOf, bool } from 'prop-types';\nimport cx from 'classnames';\n\nconst CLASS_ROOT = 'link';\n\nconst propTypes = {\n /** link color. default color is black, and inverts to white */\n color: oneOf(['default', 'orange', 'black']),\n /** destination address */\n href: string,\n /** invert link color for dark background */\n isInverse: bool,\n /** rendereded HTML element */\n tag: oneOf(['a', 'button']),\n};\n\nconst defaultProps = {\n tag: 'a',\n};\n\nconst Link = ({\n className,\n children,\n color,\n isInverse,\n tag,\n href,\n ...other\n}) => {\n const Element = tag;\n\n const classes = cx(\n CLASS_ROOT,\n {\n [`${CLASS_ROOT}--is-inverse`]: isInverse,\n [`${CLASS_ROOT}--${color}`]: color,\n },\n className\n );\n\n if (tag === 'a' && !href) {\n console.warn(\n 'Anchor element requires a valid address. Provide a valid, navigable address as the href value. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#href'\n );\n }\n\n return (\n <Element href={href} className={classes} {...other}>\n {children}\n </Element>\n );\n};\n\nLink.propTypes = propTypes;\nLink.defaultProps = defaultProps;\nLink.displayName = 'Link';\n\nexport default Link;\n"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
.link,a:not(.link,.btn,.mm-link,.list__control,.tab-list__tab,.stepbar__link,.osk-breadcrumbs__link,.skip-link,.dropdown__item,.carousel-promotions__slide,.osk-footer a,.mm-header a){font-weight:700;text-decoration:underline;color:#000}dd .link,dd a:not(.link,.btn,.mm-link,.list__control,.tab-list__tab,.stepbar__link,.osk-breadcrumbs__link,.skip-link,.dropdown__item,.carousel-promotions__slide,.osk-footer a,.mm-header a),dt .link,dt a:not(.link,.btn,.mm-link,.list__control,.tab-list__tab,.stepbar__link,.osk-breadcrumbs__link,.skip-link,.dropdown__item,.carousel-promotions__slide,.osk-footer a,.mm-header a),li .link,li a:not(.link,.btn,.mm-link,.list__control,.tab-list__tab,.stepbar__link,.osk-breadcrumbs__link,.skip-link,.dropdown__item,.carousel-promotions__slide,.osk-footer a,.mm-header a),p .link,p a:not(.link,.btn,.mm-link,.list__control,.tab-list__tab,.stepbar__link,.osk-breadcrumbs__link,.skip-link,.dropdown__item,.carousel-promotions__slide,.osk-footer a,.mm-header a){font-weight:inherit}.link:hover,a:not(.link,.btn,.mm-link,.list__control,.tab-list__tab,.stepbar__link,.osk-breadcrumbs__link,.skip-link,.dropdown__item,.carousel-promotions__slide,.osk-footer a,.mm-header a):hover{color:#f16e00}.link:focus,a:not(.link,.btn,.mm-link,.list__control,.tab-list__tab,.stepbar__link,.osk-breadcrumbs__link,.skip-link,.dropdown__item,.carousel-promotions__slide,.osk-footer a,.mm-header a):focus{color:#fff;background-color:#527edb;box-shadow:0 2px 0 0 #000;text-decoration:none;outline-width:0!important;outline-color:transparent!important}.bg-black .link,.bg-black a:not(.link,.btn,.mm-link,.list__control,.tab-list__tab,.stepbar__link,.osk-breadcrumbs__link,.skip-link,.dropdown__item,.carousel-promotions__slide,.osk-footer a,.mm-header a){color:#fff}.bg-black .link:hover,.bg-black a:not(.link,.btn,.mm-link,.list__control,.tab-list__tab,.stepbar__link,.osk-breadcrumbs__link,.skip-link,.dropdown__item,.carousel-promotions__slide,.osk-footer a,.mm-header a):hover{color:#ff7900}.bg-black .link:focus,.bg-black a:not(.link,.btn,.mm-link,.list__control,.tab-list__tab,.stepbar__link,.osk-breadcrumbs__link,.skip-link,.dropdown__item,.carousel-promotions__slide,.osk-footer a,.mm-header a):focus{box-shadow:0 2px 0 0 #fff}.link>.icon,a:not(.link,.btn,.mm-link,.list__control,.tab-list__tab,.stepbar__link,.osk-breadcrumbs__link,.skip-link,.dropdown__item,.carousel-promotions__slide,.osk-footer a,.mm-header a)>.icon{vertical-align:middle;transform:translateY(-4%)}.link--is-inverse{color:#fff!important}.link--is-inverse:hover{color:#ff7900!important}.link--is-inverse:focus{box-shadow:0 2px 0 0 #fff!important}.link--default{color:#000!important}.link--default:hover{color:#f16e00!important}.link--default:focus{color:#fff!important;box-shadow:0 2px 0 0 #000!important}.link--black,.link--black:hover{color:#000!important}.link--black:focus{color:#fff!important;box-shadow:0 2px 0 0 #fff!important}.link--orange{color:#f16e00!important}.link--orange:hover{color:#000!important}.bg-black .link--orange,.link--orange.link--is-inverse{color:#ff7900!important}.bg-black .link--orange:focus,.bg-black .link--orange:hover,.link--orange.link--is-inverse:focus,.link--orange.link--is-inverse:hover{color:#fff!important}.link__icon-left{margin-right:.3125rem}.link__icon-right{margin-left:.3125rem}
|
|
2
|
-
/*# sourceMappingURL=style.css.map */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["style.scss","mixins.scss","../../../styles/tools/generate.scss"],"names":[],"mappings":"AAGA,uLCEE,eAAA,CACA,yBAAA,CCqBE,UAAA,CDjBF,kvBAIE,mBAAA,CAOF,mMCME,aAAA,CDFF,mMCEE,UAAA,CAAA,wBAAA,CAAA,yBAAA,CAAA,oBAAA,CAAA,yBAAA,CAAA,mCAAA,CFLF,2MEKE,UAAA,CDNF,uNCME,aAAA,CDFF,uNCEE,yBAAA,CFDF,mMCKA,qBAAA,CACA,yBAAA,CDDF,kBEJI,oBAAA,CDNF,wBCME,uBAAA,CDFF,wBCEE,mCAAA,CFQJ,eERI,oBAAA,CDNF,qBCME,uBAAA,CDFF,qBCEE,oBAAA,CAAA,mCAAA,CDNF,gCCME,oBAAA,CDFF,mBCEE,oBAAA,CAAA,mCAAA,CFgBJ,cEhBI,uBAAA,CDNF,oBCME,oBAAA,CFoBJ,uDEpBI,uBAAA,CDFF,sICEE,oBAAA,CFyBJ,iBChBE,qBAAA,CDoBF,kBChBE,oBAAA","file":"style.css","sourcesContent":["@use 'config';\n@use 'mixins';\n\na:not(\n.link,\n.btn,\n.mm-link,\n.list__control,\n.tab-list__tab,\n.stepbar__link,\n.osk-breadcrumbs__link,\n.skip-link,\n.dropdown__item,\n.carousel-promotions__slide,\n.osk-footer a,\n.mm-header a),\n.link {\n\n @include mixins.base();\n @include mixins.base-inherit();\n @include mixins.color-variant('default');\n\n .bg-black & {\n @include mixins.color-variant('default-inverse');\n }\n\n > .icon {\n @include mixins.icon;\n }\n}\n\n.link--is-inverse {\n @include mixins.color-variant('inverse-important');\n}\n\n.link--default {\n @include mixins.color-variant('default-important');\n}\n\n.link--black {\n @include mixins.color-variant('black');\n}\n\n.link--orange {\n @include mixins.color-variant('orange');\n}\n\n.bg-black .link--orange,\n.link--orange.link--is-inverse {\n @include mixins.color-variant('orange-inverse');\n}\n\n.link__icon-left {\n @include mixins.icon-left;\n}\n\n.link__icon-right {\n @include mixins.icon-right;\n}\n","@use '../../../styles/tokens/space';\n@use '../../../styles/tools/generate';\n@use 'config';\n\n@mixin base {\n font-weight: bold;\n text-decoration: underline;\n}\n\n@mixin base-inherit {\n p &,\n li &,\n dt &,\n dd & {\n font-weight: inherit;\n }\n}\n\n@mixin color-variant($variant, $config: config.$variants) {\n @include generate.css-map($config, $variant, 'default');\n\n &:hover {\n @include generate.css-map($config, $variant, 'hover');\n }\n\n &:focus {\n @include generate.css-map($config, $variant, 'focus');\n }\n}\n\n@mixin icon {\n vertical-align: middle;\n transform: translateY(-4%);\n}\n\n@mixin icon-left {\n margin-right: space.get('xsmall');\n}\n\n@mixin icon-right {\n margin-left: space.get('xsmall');\n}\n","@use '../tokens/breakpoint';\n@use './map' as *;\n\n/// Get css propeties from map\n///\n/// @param {Map} $map - Map\n/// @param {Arglist} $keys - Keys to fetch\n///\n/// @example\n/// $map: (\n/// background-color: #fff,\n/// color: #000\n/// );\n///\n/// .example {\n/// @include css-map($map);\n/// }\n///\n/// Output:\n/// .example {\n/// background-color: #fff;\n/// color: #000;\n/// }\n@mixin css-map($_map, $keys...) {\n $map: if($keys, map-deep-get($_map, $keys...), $_map);\n\n @each $prop, $value in $map {\n #{$prop}: #{$value};\n }\n}\n\n/// Get responsive css propeties from map\n///\n/// @param {Map} $map - Map\n/// @param {Arglist} $keys - Keys to fetch\n///\n/// @example\n/// $map: (\n/// default: (\n/// color: red,\n/// ),\n/// xl: (\n/// color: blue,\n/// ),\n/// );\n///\n/// .example {\n/// @include responsive-css-map($map);\n/// }\n///\n/// Output:\n/// .example {\n/// color: red;\n/// @media only screen and (min-width: 1240px) {\n/// color: blue;\n/// }\n/// }\n@mixin responsive-css-map($map) {\n @each $breakpoint, $props in $map {\n @include breakpoint.get($breakpoint) {\n @include css-map($props);\n }\n }\n}\n\n/// Get variants of elemnt from map\n///\n/// @param {Map} $map - map\n/// @param {Map} $className - class name of element\n/// @param {Map} $classSuffix - suffix for class name of element\n@mixin variants($map, $className: '', $classSuffix: '') {\n @each $variant, $props in $map {\n #{if(&, \"&\", \"\")}#{$className + variant-name($variant) + $classSuffix} {\n @include css-map($props);\n }\n }\n}\n\n/// Get responsive variants of elemnt from map\n///\n/// @param {Map} $map - map\n/// @param {Map} $className - class name of element\n/// @param {Map} $classSuffix - suffix for class name of element\n@mixin responsive-variants($map, $className: '', $classSuffix: '') {\n @each $breakpoint, $props in $map {\n @include breakpoint.get($breakpoint) {\n @include variants($props, $className, $classSuffix);\n }\n }\n}\n\n/// Get prefixed variant name\n/// @param {String} $name - Variant name\n/// @return {String} - Return a prefixed variant name or empty string, for default variants\n/// @example scss\n/// variant-name('primary')\n/// // -primary\n/// variant-name('default')\n///\n@function variant-name($name, $prefix: '--', $suffix: '') {\n @if not $name or $name == default or $name == xs {\n @return '';\n }\n\n @return #{$prefix + $name + $suffix};\n}\n"]}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){if("object"===typeof exports&&"object"===typeof module)module.exports=t(require("react"));else if("function"===typeof define&&define.amd)define(["react"],t);else{var n="object"===typeof exports?t(require("react")):t(e.React);for(var r in n)("object"===typeof exports?exports:e)[r]=n[r]}}(this,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=118)}({0:function(t,n){t.exports=e},1:function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},118:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return s})),n.d(t,"ListItem",(function(){return m}));n(158);var r=n(0),o=n.n(r),i=n(1),a=n.n(i);const c=({color:e,isEnclosed:t,size:n,className:r,children:i,...c})=>{const s=a()("list",{["list--"+n]:n,["list--"+e]:e,"list--enclosed":t},r);return o.a.createElement("ul",Object.assign({className:s},c),i)};c.displayName="List";var s=c,u=n(13),l=n(3);const f=({href:e,className:t,children:n,...r})=>{const i=e?"a":"button",c="button"===i?"button":void 0,s=a()("list__control",t);return o.a.createElement(i,Object.assign({className:s,type:c,href:e},r),n,o.a.createElement(l.default,{name:"chevron-right",size:"medium",className:"list__indicator"}))};f.displayName="ListItemClickableControl";var d=f;const p=({controlProps:e,className:t,children:n,...r})=>{const i=a()("list__item",t);return o.a.createElement("li",Object.assign({className:i},r),o.a.createElement(u.a,{condition:void 0!==e,wrapper:o.a.createElement(d,e)},n))};p.displayName="ListItem";var m=p},13:function(e,t,n){"use strict";var r=n(0);t.a=({condition:e,wrapper:t,children:n})=>e?Object(r.cloneElement)(t,t.props,n):n},158:function(e,t,n){},17:function(e,t,n){},3:function(e,t,n){"use strict";n.r(t),n.d(t,"SpritePathContext",(function(){return u}));var r=n(0),o=n.n(r),i=n(1),a=n.n(i);const c=({className:e,alt:t,color:n,name:i,size:c,spritePath:s="/sprite.svg",...l})=>{const f=Object(r.useContext)(u),d=a()("icon",{["icon--"+c]:c,["icon--"+n]:n},e);return o.a.createElement("svg",Object.assign({className:d,"aria-hidden":void 0!==t?void 0:"true",role:void 0!==t?"img":void 0,title:void 0!==t&&t.length>0?t:void 0},l),o.a.createElement("use",{xlinkHref:"/sprite.svg"!==s||"undefined"===typeof f?`${s}#${i}`:`${f}#${i}`}))};c.displayName="Icon";var s=c,u=(n(17),o.a.createContext());t.default=s}})}));
|
|
3
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../webpack/universalModuleDefinition","../webpack/bootstrap","../external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}","../node_modules/classnames/index.js","components/List/List.js","components/List/ClickableControl.js","components/List/ListItem.js","utils/ConditionalWrapper.js","components/Icon/Icon.js","components/Icon/SpritePathContext.js","components/Icon/index.js"],"names":["root","factory","exports","module","require","define","amd","a","i","this","__WEBPACK_EXTERNAL_MODULE__0__","installedModules","__webpack_require__","moduleId","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","hasOwn","classNames","classes","arguments","length","arg","appendClass","parseValue","Array","isArray","apply","toString","includes","newClass","default","List","color","isEnclosed","size","className","children","other","cx","React","createElement","assign","displayName","ClickableControl","href","Tag","type","undefined","Icon","ListItem","controlProps","ConditionalWrapper","condition","wrapper","cloneElement","props","alt","spritePath","contextPath","useContext","SpritePathContext","aria-hidden","role","title","xlinkHref","createContext"],"mappings":";CAAA,SAA2CA,EAAMC,GAChD,GAAsB,kBAAZC,SAA0C,kBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,eAC7B,GAAqB,oBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,CAAC,SAAUJ,OACd,CACJ,IAAIM,EAAuB,kBAAZL,QAAuBD,EAAQG,QAAQ,UAAYH,EAAQD,EAAY,OACtF,IAAI,IAAIQ,KAAKD,GAAuB,kBAAZL,QAAuBA,QAAUF,GAAMQ,GAAKD,EAAEC,IAPxE,CASGC,MAAM,SAASC,GAClB,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUX,QAGnC,IAAIC,EAASQ,EAAiBE,GAA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,QAOhCyD,EAAKN,YAAc,OAGJM,QCxDAT,G,MAAAA,IAAM0B,iBCENjB","file":"components/List/index.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse {\n\t\tvar a = typeof exports === 'object' ? factory(require(\"react\")) : factory(root[\"React\"]);\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})(this, function(__WEBPACK_EXTERNAL_MODULE__0__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 118);\n","module.exports = __WEBPACK_EXTERNAL_MODULE__0__;","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import React from 'react';\nimport { bool, oneOf } from 'prop-types';\nimport cx from 'classnames';\n\nconst propTypes = {\n /** Size determines color of list items and color of their borders*/\n color: oneOf(['gray']),\n /** Spacious lists have horizontal spacing */\n isEnclosed: bool,\n /** Size determines vertical spacing */\n size: oneOf(['small']),\n};\n\nconst CLASS_ROOT = 'list';\n\nconst List = ({ color, isEnclosed, size, className, children, ...other }) => {\n const classes = cx(\n CLASS_ROOT,\n {\n [`${CLASS_ROOT}--${size}`]: size,\n [`${CLASS_ROOT}--${color}`]: color,\n [`${CLASS_ROOT}--enclosed`]: isEnclosed,\n },\n className\n );\n\n return (\n <ul className={classes} {...other}>\n {children}\n </ul>\n );\n};\n\nList.displayName = 'List';\nList.propTypes = propTypes;\n\nexport default List;\n","import React from 'react';\nimport { string } from 'prop-types';\nimport cx from 'classnames';\n\nimport Icon from '../Icon';\n\nconst CLASS_ROOT = 'list__control';\n\nconst propTypes = {\n href: string,\n};\n\nconst ClickableControl = ({ href, className, children, ...other }) => {\n const Tag = href ? 'a' : 'button';\n const type = Tag === 'button' ? 'button' : undefined;\n const classes = cx(CLASS_ROOT, className);\n\n return (\n <Tag className={classes} type={type} href={href} {...other}>\n {children}\n <Icon name=\"chevron-right\" size=\"medium\" className=\"list__indicator\" />\n </Tag>\n );\n};\n\nClickableControl.propTypes = propTypes;\nClickableControl.displayName = 'ListItemClickableControl';\n\nexport default ClickableControl;\n","import React from 'react';\nimport { object } from 'prop-types';\nimport cx from 'classnames';\n\nimport ConditionalWrapper from '../../utils/ConditionalWrapper';\n\nimport ClickableControl from './ClickableControl';\n\nconst propTypes = {\n /** Item with control props automatically creates a clickable item and renders an interactive element. If the object contains a href property, it renders an anchor element. If not, it renders a button of type=\"button\" instead. */\n controlProps: object,\n};\n\nconst CLASS_ROOT = 'list__item';\n\nconst ListItem = ({ controlProps, className, children, ...other }) => {\n const classes = cx(CLASS_ROOT, className);\n\n return (\n <li className={classes} {...other}>\n <ConditionalWrapper\n condition={controlProps !== undefined}\n wrapper={<ClickableControl {...controlProps} />}\n >\n {children}\n </ConditionalWrapper>\n </li>\n );\n};\n\nListItem.displayName = 'ListItem';\nListItem.propTypes = propTypes;\n\nexport default ListItem;\n","import { cloneElement } from 'react';\nimport { bool, element } from 'prop-types';\n\nconst propTypes = {\n /** When to wrap children */\n condition: bool,\n /** Wrapper element */\n wrapper: element,\n};\n\nconst ConditionalWrapper = ({ condition, wrapper, children }) =>\n condition ? cloneElement(wrapper, wrapper.props, children) : children;\n\nConditionalWrapper.propTypes = propTypes;\nexport default ConditionalWrapper;\n","import React, { useContext } from 'react';\nimport { string, oneOf } from 'prop-types';\nimport cx from 'classnames';\n\nimport { SpritePathContext } from '.';\n\nconst propTypes = {\n alt: string,\n color: oneOf(['info', 'success', 'warning', 'danger']),\n name: string.isRequired,\n size: oneOf(['small', 'medium', 'large', 'xlarge', 'xxlarge', 'huge']),\n spritePath: string,\n};\n\nconst CLASS_ROOT = 'icon';\n\nconst Icon = ({\n className,\n alt,\n color,\n name,\n size,\n spritePath = '/sprite.svg',\n ...other\n}) => {\n const contextPath = useContext(SpritePathContext);\n\n const classes = cx(\n CLASS_ROOT,\n {\n [`${CLASS_ROOT}--${size}`]: size,\n [`${CLASS_ROOT}--${color}`]: color,\n },\n className\n );\n\n return (\n <svg\n className={classes}\n aria-hidden={alt !== undefined ? undefined : 'true'}\n role={alt !== undefined ? 'img' : undefined}\n title={alt !== undefined && alt.length > 0 ? alt : undefined}\n {...other}\n >\n <use\n xlinkHref={\n spritePath !== '/sprite.svg' || typeof contextPath === 'undefined'\n ? `${spritePath}#${name}`\n : `${contextPath}#${name}`\n }\n />\n </svg>\n );\n};\n\nIcon.displayName = 'Icon';\nIcon.propTypes = propTypes;\n\nexport default Icon;\n","import React from 'react';\n\nexport default React.createContext();\n","import Icon from './Icon';\n\nimport './styles/style.scss';\n\nexport default Icon;\nexport { default as SpritePathContext } from './SpritePathContext';\n"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
.list{list-style:none;list-style-type:none!important;max-width:none;padding:0;margin:0 0 1.25rem}.list>li{margin-bottom:0}.list>li:before{content:" ";position:absolute;width:0;height:0}.list>*{border-top:2px solid}.list>:last-child{border-bottom:2px solid}.list--spacious>:first-child{border-top-width:0}.list--spacious>:last-child{border-bottom-width:0}.list__item{position:relative}.list__item>:last-child{margin-bottom:0}.list__item ul{list-style-type:square}.list__item ul ul{list-style-type:disc}.list__item ul ul ul{list-style-type:circle}.list--enclosed>.list__item{padding-left:1.25rem;padding-right:1.25rem}.list>.list__item{background-color:#fff;border-color:#eee}.list--gray>.list__item{background-color:#eee;border-color:#ddd}.list>.list__item{padding-top:1.25rem;padding-bottom:1.25rem}.list--small>.list__item{padding-top:.625rem;padding-bottom:.625rem}.list__control{display:flex;flex-wrap:nowrap;width:100%;text-align:left;font-weight:700;color:#000}.list__control:focus,.list__control:hover{color:#f16e00;text-decoration:none}.list__control:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%}.list__indicator{margin-left:auto;flex-shrink:0;align-self:center;margin-top:-2px;margin-bottom:-2px}.list--nested-enclosed>.list__item:not(:first-child){border-width:1px}.list--nested-enclosed>.list__item:last-child{border-bottom:0}.icon{fill:currentColor;width:1em;height:1em;vertical-align:text-bottom}.icon--small{width:1rem;height:1rem}.icon--medium{width:1.5rem;height:1.5rem}.icon--large{width:2rem;height:2rem}.icon--xlarge{width:2.5rem;height:2.5rem}.icon--xxlarge{width:3rem;height:3rem}.icon--huge{width:3.5rem;height:3.5rem}@media screen and (min-width:768px){.icon--xlarge{width:3rem;height:3rem}.icon--xxlarge{width:4rem;height:4rem}.icon--huge{width:5rem;height:5rem}}.icon--info{color:#527edb}.icon--success{color:#32c832}.icon--warning{color:#fc0}.icon--danger{color:#cd3c14}.icon--orange{color:#ff7900}use{pointer-events:none}
|
|
2
|
-
/*# sourceMappingURL=style.css.map */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["style.scss","../../Typography/styles/mixins.scss","mixins.scss","config.scss","../../../styles/tools/generate.scss","../../../styles/tokens/breakpoint.scss"],"names":[],"mappings":"AAIA,MCsEE,eAAA,CACA,8BAAA,CACA,cAAA,CAEA,SAAA,CCrEA,kBAAA,CDuEA,SACE,eAAA,CAGA,gBACE,WAAA,CACA,iBAAA,CACA,OAAA,CACA,QAAA,CC7EJ,QACE,oBCDK,CDGL,kBACE,uBCJG,CDUP,6BACE,kBAAA,CAGF,4BACE,qBAAA,CFdF,YEmBA,iBAAA,CAEA,wBACE,eAAA,CAGF,eDyEA,sBAAA,CACA,kBACE,oBAAA,CACA,qBACE,sBAAA,CDnGF,4BEqCF,oBC3CiB,CD4CjB,qBC5CiB,CHYf,kBIMA,qBAAA,CAAA,iBAAA,CJNA,wBIMA,qBAAA,CAAA,iBAAA,CAAA,kBFoBF,mBAAA,CACA,sBAAA,CFrBE,yBEoBF,mBAAA,CACA,sBAAA,CFhBA,eEyBA,YAAA,CACA,gBAAA,CACA,UAAA,CACA,eAAA,CEjCE,eAAA,CAAA,UAAA,CFyCF,0CEzCE,aAAA,CAAA,oBAAA,CF6CF,sBACE,UAAA,CACA,iBAAA,CACA,KAAA,CACA,MAAA,CACA,UAAA,CACA,WAAA,CF1CF,iBEyDA,gBAAA,CACA,aAAA,CACA,iBAAA,CACA,eAAA,CACA,kBAAA,CAdA,qDACE,gBAAA,CAGF,8CACE,eAAA,CFpFJ,MECE,iBAAA,CACA,SAAA,CACA,UAAA,CACA,0BAAA,CAOM,aACE,UCbF,CDcE,WCdF,CDYA,cACE,YCbF,CDcE,aCdF,CDYA,aACE,UCbF,CDcE,WCdF,CDYA,cACE,YCbF,CDcE,aCdF,CDYA,eACE,UCbF,CDcE,WCdF,CDYA,YACE,YCbF,CDcE,aCdF,CE6BF,oCHjBE,cACE,UCbF,CDcE,WCdF,CDYA,eACE,UCbF,CDcE,WCdF,CDYA,YACE,UCbF,CDcE,WCdF,CAAA,CDuBJ,YACE,aCRG,CDOL,eACE,aCRG,CDOL,eACE,UCRG,CDOL,cACE,aCRG,CDOL,cACE,aCRG,CHTT,IACE,mBAAA","file":"style.css","sourcesContent":["@use './mixins';\n@use '../../../styles/tools/convert';\n@use '../../../styles/tokens/space';\n\n.icon {\n @include mixins.base;\n @include mixins.sizes;\n @include mixins.colors;\n}\n\nuse {\n pointer-events: none;\n}\n","@use 'sass:map';\n@use 'sass:list';\n@use '../../../styles/tools/generate';\n@use '../../../styles/tools/text';\n@use '../../../styles/tools/convert';\n@use '../../../styles/tokens/space';\n@use '../../../styles/tokens/color';\n@use 'config';\n\n@mixin text-readable {\n max-width: 35em;\n}\n\n@mixin text-narrow {\n max-width: 22em;\n}\n\n@mixin text-fullwidth {\n max-width: none;\n}\n\n@mixin headings-base($heading-config, $selector-pattern, $base-styles) {\n $selector: ();\n\n @each $heading-level in map.keys($heading-config) {\n $selector: list.append(\n $selector,\n #{text.str-replace($selector-pattern, '$', $heading-level)},\n 'comma'\n );\n }\n\n #{$selector} {\n @include generate.css-map($base-styles);\n }\n}\n\n@mixin headings($config, $selector-pattern) {\n @each $heading, $breakpoints in $config {\n #{text.str-replace($selector-pattern, '$', $heading)} {\n @include generate.responsive-css-map($breakpoints);\n }\n }\n}\n\n@mixin body-text($config) {\n html {\n @include generate.css-map(map.get($config, default));\n }\n\n p {\n margin-top: 0;\n margin-bottom: space.get();\n }\n\n cite {\n font-style: normal;\n }\n\n hr {\n margin-top: space.get();\n margin-bottom: space.get();\n border: 0;\n border-top: 1px solid color.$gray-300;\n }\n}\n\n@mixin readability() {\n p {\n @include text-readable;\n }\n}\n\n@mixin list-unstyled() {\n list-style: none;\n list-style-type: none !important;\n max-width: none;\n margin: 0;\n padding: 0;\n\n > li {\n margin-bottom: 0;\n\n /* Fixes VoiceOver no announcing unordered lists */\n &::before {\n content: ' ';\n position: absolute;\n width: 0;\n height: 0;\n }\n }\n}\n\n@mixin list-base() {\n margin: 0 0 space.get() 0;\n padding-left: space.get('large');\n @include text-readable;\n}\n\n@mixin list-spacing($space, $config: config.$list-spacing) {\n > *:where(li) {\n margin-bottom: map.get($config, $space);\n\n > *:where(ul, ol) {\n margin-top: map.get($config, $space);\n }\n }\n}\n\n@mixin ul-list-base() {\n list-style-type: square;\n ul {\n list-style-type: disc;\n ul {\n list-style-type: circle;\n } \n } \n}\n\n@mixin list-circle() {\n list-style-type: disc !important;\n ul {\n list-style-type: circle;\n ul {\n list-style-type: square;\n } \n } \n}\n\n@mixin list-square() {\n list-style-type: square !important;\n ul {\n list-style-type: disc;\n ul {\n list-style-type: circle;\n } \n } \n}\n\n@mixin list-no-offset() {\n padding-left: space.get();\n list-style-position: outside;\n}\n\n@mixin list-inline() {\n @include list-unstyled();\n\n > li {\n display: inline-block;\n\n &:not(:last-child) {\n margin-right: space.get('small');\n }\n }\n}\n","@use './config';\n@use '../../../styles/tokens/breakpoint';\n@use '../../../styles/tools/generate';\n\n@mixin base() {\n fill: currentColor;\n width: 1em;\n height: 1em;\n vertical-align: text-bottom;\n}\n\n@mixin sizes($sizes: config.$sizes) {\n @each $breakpoint, $props in $sizes {\n @include breakpoint.get($breakpoint) {\n @each $variant, $size in $props {\n &#{generate.variant-name($variant)} {\n width: $size;\n height: $size;\n }\n }\n }\n }\n}\n\n@mixin colors($colors: config.$colors) {\n @each $variant, $color in $colors {\n &#{generate.variant-name($variant)} {\n color: $color;\n }\n }\n}\n","@use '../../../styles/tools/convert';\n@use '../../../styles/tokens/color';\n\n$sizes: (\n default: (\n small: convert.to-rem(16px),\n medium: convert.to-rem(24px),\n large: convert.to-rem(32px),\n xlarge: convert.to-rem(40px),\n xxlarge: convert.to-rem(48px),\n huge: convert.to-rem(56px),\n ),\n md: (\n xlarge: convert.to-rem(48px),\n xxlarge: convert.to-rem(64px),\n huge: convert.to-rem(80px),\n ),\n);\n\n$colors: (\n info: color.$info,\n success: color.$success,\n warning: color.$warning,\n danger: color.$danger,\n 'orange': color.$orange,\n);\n","@use '../tokens/breakpoint';\n@use './map' as *;\n\n/// Get css propeties from map\n///\n/// @param {Map} $map - Map\n/// @param {Arglist} $keys - Keys to fetch\n///\n/// @example\n/// $map: (\n/// background-color: #fff,\n/// color: #000\n/// );\n///\n/// .example {\n/// @include css-map($map);\n/// }\n///\n/// Output:\n/// .example {\n/// background-color: #fff;\n/// color: #000;\n/// }\n@mixin css-map($_map, $keys...) {\n $map: if($keys, map-deep-get($_map, $keys...), $_map);\n\n @each $prop, $value in $map {\n #{$prop}: #{$value};\n }\n}\n\n/// Get responsive css propeties from map\n///\n/// @param {Map} $map - Map\n/// @param {Arglist} $keys - Keys to fetch\n///\n/// @example\n/// $map: (\n/// default: (\n/// color: red,\n/// ),\n/// xl: (\n/// color: blue,\n/// ),\n/// );\n///\n/// .example {\n/// @include responsive-css-map($map);\n/// }\n///\n/// Output:\n/// .example {\n/// color: red;\n/// @media only screen and (min-width: 1240px) {\n/// color: blue;\n/// }\n/// }\n@mixin responsive-css-map($map) {\n @each $breakpoint, $props in $map {\n @include breakpoint.get($breakpoint) {\n @include css-map($props);\n }\n }\n}\n\n/// Get variants of elemnt from map\n///\n/// @param {Map} $map - map\n/// @param {Map} $className - class name of element\n/// @param {Map} $classSuffix - suffix for class name of element\n@mixin variants($map, $className: '', $classSuffix: '') {\n @each $variant, $props in $map {\n #{if(&, \"&\", \"\")}#{$className + variant-name($variant) + $classSuffix} {\n @include css-map($props);\n }\n }\n}\n\n/// Get responsive variants of elemnt from map\n///\n/// @param {Map} $map - map\n/// @param {Map} $className - class name of element\n/// @param {Map} $classSuffix - suffix for class name of element\n@mixin responsive-variants($map, $className: '', $classSuffix: '') {\n @each $breakpoint, $props in $map {\n @include breakpoint.get($breakpoint) {\n @include variants($props, $className, $classSuffix);\n }\n }\n}\n\n/// Get prefixed variant name\n/// @param {String} $name - Variant name\n/// @return {String} - Return a prefixed variant name or empty string, for default variants\n/// @example scss\n/// variant-name('primary')\n/// // -primary\n/// variant-name('default')\n///\n@function variant-name($name, $prefix: '--', $suffix: '') {\n @if not $name or $name == default or $name == xs {\n @return '';\n }\n\n @return #{$prefix + $name + $suffix};\n}\n","@use \"sass:list\";\n@use \"sass:meta\";\n@use 'sass:map' as sassmap;\n@use '../tools/map';\n\n$map: (\n xs: 0,\n sm: 480px,\n md: 768px,\n lg: 992px,\n xl: 1240px,\n xxl: 1380px,\n);\n\n@mixin get( $breakpoint, $param: false) {\n @if (not sassmap.has-key($map, $breakpoint) and $breakpoint != 'default') {\n @warn 'Breakpoint \"#{$breakpoint}\" is not defined.';\n\n @debug 'Available breakpoints:'; // stylelint-disable-line at-rule-disallowed-list\n @debug $map; // stylelint-disable-line at-rule-disallowed-list\n }\n\n @if (\n ($breakpoint == list.nth(sassmap.keys($map), 1) and not $param) or\n ( not $breakpoint ) or\n ( $breakpoint == 'default' )\n ) {\n @content;\n } @else if not $param {\n // no param, just a standard mobile first media query\n @if sassmap.has-key( $map, $breakpoint ) {\n // breakpoint is in breakpoint map, let's use stored value\n @media screen and (min-width: sassmap.get($map, $breakpoint)) { @content; };\n } @else {\n // breakpoint is not in breakpoint map, let's use custom value\n @media screen and (min-width: $breakpoint) { @content; };\n }\n } @else if (\n $param == 'down' and\n map.next($map, $breakpoint)\n ) {\n @media screen and (max-width: map.next($map, $breakpoint) - 0.02px) {\n @content;\n }\n } @else if (\n $param == 'down' and\n not sassmap.has-key($map, $breakpoint)\n ) {\n @media screen and (max-width: $breakpoint) { @content; };\n } @else if (\n $param == 'only' and\n map.next($map, $breakpoint)\n ) {\n @media screen and\n (min-width: sassmap.get($map, $breakpoint)) and\n (max-width: map.next($map, $breakpoint) - 0.02px) { @content; };\n } @else if (\n sassmap.has-key( $map, $param) and\n sassmap.has-key( $map, $breakpoint)\n ) {\n @media screen and\n (min-width: sassmap.get($map, $breakpoint)) and\n (max-width: sassmap.get($map, $param) - 0.02px) { @content; };\n } @else if (\n $param == 'downfrom' and\n sassmap.get($map, $breakpoint) > 0 and\n $breakpoint != 'xs'\n ) {\n @media screen and (max-width: sassmap.get($map, $breakpoint) - 0.02px) {\n @content;\n } // -1\n } @else if (meta.type-of($param) == 'number') {\n @if sassmap.has-key($map, $breakpoint) {\n // breakpoint is in breakpoint map\n @media screen and\n (min-width: sassmap.get($map, $breakpoint)) and\n (max-width: $param) { @content; };\n } @else {\n // breakpoint is not in breakpoint map, let's use custom value\n @media screen and (min-width: $breakpoint) and (max-width: $param) { @content; }\n }\n } @else if (\n not ($breakpoint == list.nth(sassmap.keys($map), -1) and $param == 'down') and\n not ($breakpoint == list.nth(sassmap.keys($map), -1) and $param == 'only') and\n not ($breakpoint == list.nth(sassmap.keys($map), 1) and $param == 'downfrom')\n ) {\n // do nothing on known edge cases. we just dont generate any code.\n @warn 'Breakpoint is not configured properly #{$breakpoint}, #{$param}';\n }\n}\n\n@mixin each() {\n @each $breakpoint, $size in $map {\n @include get($breakpoint) {\n @content($breakpoint);\n }\n }\n}\n"]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
!function(e,t){if("object"===typeof exports&&"object"===typeof module)module.exports=t();else if("function"===typeof define&&define.amd)define([],t);else{var n=t();for(var s in n)("object"===typeof exports?exports:e)[s]=n[s]}}(this,(function(){return function(e){var t={};function n(s){if(t[s])return t[s].exports;var i=t[s]={i:s,l:!1,exports:{}};return e[s].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,s){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(s,i,function(t){return e[t]}.bind(null,i));return s},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=79)}({79:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));const s={cycleDuration:4e3,delay:5e3};class i{constructor(e,t){this.element=e,this.config={...s,...t},this.interval=null,this.delay=null,this.currentMessageIndex=0,this.messages=[],this.cycleMessages=this.cycleMessages.bind(this),this.element.ODS_Loader=this,this.init()}initBody(){this.messages=JSON.parse(this.element.getAttribute("data-loader-messages")),this.messages.length&&(this.interval=window.setInterval(this.cycleMessages,this.config.cycleDuration))}init(){this.element.hasAttribute("data-loader-delayed")?this.delay=window.setTimeout(()=>{this.element.parentNode.classList.remove("hide"),this.initBody()},this.config.delay):this.initBody()}destroy(){this.interval&&window.clearInterval(this.interval),this.delay&&window.clearInterval(this.delay)}cycleMessages(){this.currentMessageIndex<this.messages.length?(this.element.innerText=this.messages[this.currentMessageIndex],this.currentMessageIndex+=1):this.destroy()}static getInstance(e){return e&&e.ODS_Loader?e.ODS_Loader:null}}}})}));
|
|
2
|
-
//# sourceMappingURL=Loader.static.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../webpack/universalModuleDefinition","../webpack/bootstrap","components/Loader/Loader.static.js"],"names":["root","factory","exports","module","define","amd","a","i","this","installedModules","__webpack_require__","moduleId","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","defaultConfig","cycleDuration","delay","Loader","constructor","element","config","interval","currentMessageIndex","messages","cycleMessages","ODS_Loader","init","initBody","JSON","parse","getAttribute","length","window","setInterval","hasAttribute","setTimeout","parentNode","classList","remove","destroy","clearInterval","innerText","el"],"mappings":"CAAA,SAA2CA,EAAMC,GAChD,GAAsB,kBAAZC,SAA0C,kBAAXC,OACxCA,OAAOD,QAAUD,SACb,GAAqB,oBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,OACP,CACJ,IAAIK,EAAIL,IACR,IAAI,IAAIM,KAAKD,GAAuB,kBAAZJ,QAAuBA,QAAUF,GAAMO,GAAKD,EAAEC,IAPxE,CASGC,MAAM,WACT,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUT,QAGnC,IAAIC,EAASM,EAAiBE,GAAY,CACzCJ,EAAGI,EACHC,GAAG,EACHV,QAAS,IAUV,OANAW,EAAQF,GAAUG,KAAKX,EAAOD,QAASC,EAAQA,EAAOD,QAASQ,GAG/DP,EAAOS,GAAI,EAGJT,EAAOD,QA0Df,OArDAQ,EAAoBK,EAAIF,EAGxBH,EAAoBM,EAAIP,EAGxBC,EAAoBO,EAAI,SAASf,EAASgB,EAAMC,GAC3CT,EAAoBU,EAAElB,EAASgB,IAClCG,OAAOC,eAAep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5C,KAAK6C,cAAgB7C,KAAK6C,cAAclB,KAAK3B,MAE7CA,KAAKwC,QAAQM,WAAa9C,KAE1BA,KAAK+C,OAGPC,WACEhD,KAAK4C,SAAWK,KAAKC,MACnBlD,KAAKwC,QAAQW,aAAa,yBAGxBnD,KAAK4C,SAASQ,SAChBpD,KAAK0C,SAAWW,OAAOC,YACrBtD,KAAK6C,cACL7C,KAAKyC,OAAOL,gBAKlBW,OACM/C,KAAKwC,QAAQe,aAAa,uBAC5BvD,KAAKqC,MAAQgB,OAAOG,WAAW,KAC7BxD,KAAKwC,QAAQiB,WAAWC,UAAUC,OAAO,QACzC3D,KAAKgD,YACJhD,KAAKyC,OAAOJ,OAEfrC,KAAKgD,WAITY,UACM5D,KAAK0C,UACPW,OAAOQ,cAAc7D,KAAK0C,UAExB1C,KAAKqC,OACPgB,OAAOQ,cAAc7D,KAAKqC,OAI9BQ,gBACM7C,KAAK2C,oBAAsB3C,KAAK4C,SAASQ,QAC3CpD,KAAKwC,QAAQsB,UAAY9D,KAAK4C,SAAS5C,KAAK2C,qBAC5C3C,KAAK2C,qBAAuB,GAE5B3C,KAAK4D,UAIT,mBAAmBG,GACjB,OAAOA,GAAMA,EAAGjB,WAAaiB,EAAGjB,WAAa","file":"components/Loader/Loader.static.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse {\n\t\tvar a = factory();\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})(this, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 79);\n","const defaultConfig = {\n cycleDuration: 4000,\n delay: 5000,\n};\n\nexport default class Loader {\n constructor(element, config) {\n this.element = element;\n this.config = { ...defaultConfig, ...config };\n\n this.interval = null;\n this.delay = null;\n this.currentMessageIndex = 0;\n this.messages = [];\n this.cycleMessages = this.cycleMessages.bind(this);\n\n this.element.ODS_Loader = this;\n\n this.init();\n }\n\n initBody() {\n this.messages = JSON.parse(\n this.element.getAttribute('data-loader-messages')\n );\n\n if (this.messages.length) {\n this.interval = window.setInterval(\n this.cycleMessages,\n this.config.cycleDuration\n );\n }\n }\n\n init() {\n if (this.element.hasAttribute('data-loader-delayed')) {\n this.delay = window.setTimeout(() => {\n this.element.parentNode.classList.remove('hide');\n this.initBody();\n }, this.config.delay);\n } else {\n this.initBody();\n }\n }\n\n destroy() {\n if (this.interval) {\n window.clearInterval(this.interval);\n }\n if (this.delay) {\n window.clearInterval(this.delay);\n }\n }\n\n cycleMessages() {\n if (this.currentMessageIndex < this.messages.length) {\n this.element.innerText = this.messages[this.currentMessageIndex];\n this.currentMessageIndex += 1;\n } else {\n this.destroy();\n }\n }\n\n static getInstance(el) {\n return el && el.ODS_Loader ? el.ODS_Loader : null;\n }\n}\n"],"sourceRoot":""}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){if("object"===typeof exports&&"object"===typeof module)module.exports=t(require("react"));else if("function"===typeof define&&define.amd)define(["react"],t);else{var r="object"===typeof exports?t(require("react")):t(e.React);for(var n in r)("object"===typeof exports?exports:e)[n]=r[n]}}(this,(function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,r),s.l=!0,s.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)r.d(n,s,function(t){return e[t]}.bind(null,s));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=133)}({0:function(t,r){t.exports=e},1:function(e,t,r){var n;!function(){"use strict";var r={}.hasOwnProperty;function s(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,i(r)))}return e}function i(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return s.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(s.default=s,e.exports=s):void 0===(n=function(){return s}.apply(t,[]))||(e.exports=n)}()},133:function(e,t,r){"use strict";r.r(t);r(159);var n=r(0),s=r.n(n),i=r(1),a=r.n(i),o=r(79);const l=({messages:e,size:t,className:r,colour:i,isDelayed:l,children:u,...c})=>{let d=Object(n.useRef)(null);Object(n.useEffect)(()=>{const t=e&&new o.default(d);return()=>{e&&t.destroy()}},[d,e]);const f=a()("loader",{["loader--"+t]:"default"!==t,["loader--"+i]:"default"!==i,hide:l},r);return s.a.createElement("div",Object.assign({className:f},c),s.a.createElement("div",{className:a()("loader__body",{"loader__body--inverse":"default"!==i})},s.a.createElement("div",{className:a()("loader__line",{"loader__line--inverse":"default"!==i})})),e&&s.a.createElement("div",{"data-loader":!0,"data-loader-delayed":l,"data-loader-messages":JSON.stringify(e),className:"loader__messages",ref:e=>{d=e}},u))};l.defaultProps={size:"default",colour:"default"},l.displayName="Loader";var u=l;t.default=u},159:function(e,t,r){},79:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return s}));const n={cycleDuration:4e3,delay:5e3};class s{constructor(e,t){this.element=e,this.config={...n,...t},this.interval=null,this.delay=null,this.currentMessageIndex=0,this.messages=[],this.cycleMessages=this.cycleMessages.bind(this),this.element.ODS_Loader=this,this.init()}initBody(){this.messages=JSON.parse(this.element.getAttribute("data-loader-messages")),this.messages.length&&(this.interval=window.setInterval(this.cycleMessages,this.config.cycleDuration))}init(){this.element.hasAttribute("data-loader-delayed")?this.delay=window.setTimeout(()=>{this.element.parentNode.classList.remove("hide"),this.initBody()},this.config.delay):this.initBody()}destroy(){this.interval&&window.clearInterval(this.interval),this.delay&&window.clearInterval(this.delay)}cycleMessages(){this.currentMessageIndex<this.messages.length?(this.element.innerText=this.messages[this.currentMessageIndex],this.currentMessageIndex+=1):this.destroy()}static getInstance(e){return e&&e.ODS_Loader?e.ODS_Loader:null}}}})}));
|
|
3
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../webpack/universalModuleDefinition","../webpack/bootstrap","../external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}","../node_modules/classnames/index.js","components/Loader/Loader.js","components/Loader/index.js","components/Loader/Loader.static.js"],"names":["root","factory","exports","module","require","define","amd","a","i","this","__WEBPACK_EXTERNAL_MODULE__0__","installedModules","__webpack_require__","moduleId","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","hasOwn","classNames","classes","arguments","length","arg","appendClass","parseValue","Array","isArray","apply","toString","includes","newClass","default","Loader","messages","size","className","colour","isDelayed","children","other","loaderRef","useRef","useEffect","loader","LoaderStatic","destroy","cx","hide","React","createElement","assign","data-loader","data-loader-delayed","data-loader-messages","JSON","stringify","ref","defaultProps","displayName","defaultConfig","cycleDuration","delay","constructor","element","config","interval","currentMessageIndex","cycleMessages","ODS_Loader","init","initBody","parse","getAttribute","window","setInterval","hasAttribute","setTimeout","parentNode","classList","remove","clearInterval","innerText","el"],"mappings":";CAAA,SAA2CA,EAAMC,GAChD,GAAsB,kBAAZC,SAA0C,kBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,eAC7B,GAAqB,oBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,CAAC,SAAUJ,OACd,CACJ,IAAIM,EAAuB,kBAAZL,QAAuBD,EAAQG,QAAQ,UAAYH,EAAQD,EAAY,OACtF,IAAI,IAAIQ,KAAKD,GAAuB,kBAAZL,QAAuBA,QAAUF,GAAMQ,GAAKD,EAAEC,IAPxE,CASGC,MAAM,SAASC,GAClB,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUX,QAGnC,IAAIC,EAASQ,EAAiBE,GAAY,CACzCL,EAAGK,EACHC,GAAG,EACHZ,QAAS,IAUV,OANAa,EAAQF,GAAUG,KAAKb,EAAOD,QAASC,EAAQA,EAAOD,QAASU,GAG/DT,EAAOW,GAAI,EAGJX,EAAOD,QA0Df,OArDAU,EAAoBK,EAAIF,EAGxBH,EAAoBM,EAAIP,EAGxBC,EAAoBO,EAAI,SAASjB,EAASkB,EAAMC,GAC3CT,EAAoBU,EAAEpB,EAASkB,IAClCG,OAAOC,eAAetB,EAASkB,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhET,EAAoBe,EAAI,SAASzB,GACX,qBAAX0B,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAetB,EAAS0B,OAAO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EAAO0B,YAAc,SAEN1B,QClFAA,a,sDCHf,qDAAM2B,EAAgB,CACpBC,cAAe,IACfC,MAAO,KAGM,MAAM7B,EACnB8B,YAAYC,EAASC,GACnBnF,KAAKkF,QAAUA,EACflF,KAAKmF,OAAS,IAAKL,KAAkBK,GAErCnF,KAAKoF,SAAW,KAChBpF,KAAKgF,MAAQ,KACbhF,KAAKqF,oBAAsB,EAC3BrF,KAAKoD,SAAW,GAChBpD,KAAKsF,cAAgBtF,KAAKsF,cAAc1D,KAAK5B,MAE7CA,KAAKkF,QAAQK,WAAavF,KAE1BA,KAAKwF,OAGPC,WACEzF,KAAKoD,SAAWqB,KAAKiB,MACnB1F,KAAKkF,QAAQS,aAAa,yBAGxB3F,KAAKoD,SAASZ,SAChBxC,KAAKoF,SAAWQ,OAAOC,YACrB7F,KAAKsF,cACLtF,KAAKmF,OAAOJ,gBAKlBS,OACMxF,KAAKkF,QAAQY,aAAa,uBAC5B9F,KAAKgF,MAAQY,OAAOG,WAAW,KAC7B/F,KAAKkF,QAAQc,WAAWC,UAAUC,OAAO,QACzClG,KAAKyF,YACJzF,KAAKmF,OAAOH,OAEfhF,KAAKyF,WAITzB,UACMhE,KAAKoF,UACPQ,OAAOO,cAAcnG,KAAKoF,UAExBpF,KAAKgF,OACPY,OAAOO,cAAcnG,KAAKgF,OAI9BM,gBACMtF,KAAKqF,oBAAsBrF,KAAKoD,SAASZ,QAC3CxC,KAAKkF,QAAQkB,UAAYpG,KAAKoD,SAASpD,KAAKqF,qBAC5CrF,KAAKqF,qBAAuB,GAE5BrF,KAAKgE,UAIT,mBAAmBqC,GACjB,OAAOA,GAAMA,EAAGd,WAAac,EAAGd,WAAa","file":"components/Loader/index.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse {\n\t\tvar a = typeof exports === 'object' ? factory(require(\"react\")) : factory(root[\"React\"]);\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})(this, function(__WEBPACK_EXTERNAL_MODULE__0__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 133);\n","module.exports = __WEBPACK_EXTERNAL_MODULE__0__;","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import React, { useEffect, useRef } from 'react';\nimport { arrayOf, string, oneOf, bool } from 'prop-types';\nimport cx from 'classnames';\n\nimport LoaderStatic from './Loader.static';\n\nconst CLASS_ROOT = 'loader';\n\nconst propTypes = {\n colour: oneOf(['default', 'inverse']),\n isDelayed: bool,\n /** Messages that the loader will cycle until done */\n messages: arrayOf(string),\n /** Size variants */\n size: oneOf(['default', 'large']),\n};\n\nconst defaultProps = {\n size: 'default',\n colour: 'default',\n};\n\nconst Loader = ({\n messages,\n size,\n className,\n colour,\n isDelayed,\n children,\n ...other\n}) => {\n let loaderRef = useRef(null);\n\n useEffect(() => {\n const loader = messages && new LoaderStatic(loaderRef);\n\n return () => {\n messages && loader.destroy();\n };\n }, [loaderRef, messages]);\n\n const classes = cx(\n CLASS_ROOT,\n {\n [`${CLASS_ROOT}--${size}`]: size !== 'default',\n [`${CLASS_ROOT}--${colour}`]: colour !== 'default',\n hide: isDelayed,\n },\n className\n );\n\n return (\n <div className={classes} {...other}>\n <div\n className={cx(`${CLASS_ROOT}__body`, {\n [`${CLASS_ROOT}__body--inverse`]: colour !== 'default',\n })}\n >\n <div\n className={cx(`${CLASS_ROOT}__line`, {\n [`${CLASS_ROOT}__line--inverse`]: colour !== 'default',\n })}\n />\n </div>\n {messages && (\n <div\n data-loader\n data-loader-delayed={isDelayed}\n data-loader-messages={JSON.stringify(messages)}\n className={`${CLASS_ROOT}__messages`}\n ref={ref => {\n loaderRef = ref;\n }}\n >\n {children}\n </div>\n )}\n </div>\n );\n};\n\nLoader.propTypes = propTypes;\nLoader.defaultProps = defaultProps;\nLoader.displayName = 'Loader';\n\nexport default Loader;\n","import './styles/style.scss';\nimport Loader from './Loader';\n\nexport default Loader;\n","const defaultConfig = {\n cycleDuration: 4000,\n delay: 5000,\n};\n\nexport default class Loader {\n constructor(element, config) {\n this.element = element;\n this.config = { ...defaultConfig, ...config };\n\n this.interval = null;\n this.delay = null;\n this.currentMessageIndex = 0;\n this.messages = [];\n this.cycleMessages = this.cycleMessages.bind(this);\n\n this.element.ODS_Loader = this;\n\n this.init();\n }\n\n initBody() {\n this.messages = JSON.parse(\n this.element.getAttribute('data-loader-messages')\n );\n\n if (this.messages.length) {\n this.interval = window.setInterval(\n this.cycleMessages,\n this.config.cycleDuration\n );\n }\n }\n\n init() {\n if (this.element.hasAttribute('data-loader-delayed')) {\n this.delay = window.setTimeout(() => {\n this.element.parentNode.classList.remove('hide');\n this.initBody();\n }, this.config.delay);\n } else {\n this.initBody();\n }\n }\n\n destroy() {\n if (this.interval) {\n window.clearInterval(this.interval);\n }\n if (this.delay) {\n window.clearInterval(this.delay);\n }\n }\n\n cycleMessages() {\n if (this.currentMessageIndex < this.messages.length) {\n this.element.innerText = this.messages[this.currentMessageIndex];\n this.currentMessageIndex += 1;\n } else {\n this.destroy();\n }\n }\n\n static getInstance(el) {\n return el && el.ODS_Loader ? el.ODS_Loader : null;\n }\n}\n"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
@keyframes logo-line{0%{transform:translateX(-150%)}30%{transform:translateX(0)}70%{transform:translateX(0)}to{transform:translateX(150%)}}.loader{display:flex;align-items:flex-end}.loader__body{flex:0 0 auto;overflow:hidden;background-color:#ff7900;width:2.5rem;height:2.5rem;margin-right:.625rem}.loader--large .loader__body{width:3.125rem;height:3.125rem;margin-right:1.25rem}.bg-orange .loader__body,.loader__body--inverse,.loader__line{background-color:#fff}.loader__line{height:15%;margin-left:15%;margin-right:15%;margin-top:70%;will-change:transform;animation:logo-line 1.2s infinite}.bg-orange .loader__line,.loader__line--inverse{background-color:#ff7900}.loader__messages{max-width:100%;flex:0 1 15.625rem;font-weight:700}.loader--large .loader__messages{font-size:1.125rem}
|
|
2
|
-
/*# sourceMappingURL=style.css.map */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["mixins.scss","style.scss","../../../styles/tokens/color.scss","../../../styles/tools/generate.scss"],"names":[],"mappings":"AAMA,qBACE,GACE,2BAAA,CAGF,IACE,uBAAA,CAGF,IACE,uBAAA,CAGF,GACE,0BAAA,CAAA,CClBJ,QDuBE,YAAA,CACA,oBAAA,CCrBA,cDyBA,aAAA,CACA,eAAA,CACA,wBE/BO,CC0BL,YAAA,CAAA,aAAA,CAAA,oBAAA,CFlBA,6BEkBA,cAAA,CAAA,eAAA,CAAA,oBAAA,CFRF,8DD+BA,qBAJA,CC3BA,cDqBA,UAAA,CACA,eAAA,CACA,gBAAA,CACA,cAAA,CAEA,qBAAA,CACA,iCAAA,CCxBE,gDDgCF,wBErDO,CD2BP,kBD8BA,cAAA,CACA,kBAAA,CACA,eAAA,CC7BE,iCDiCF,kBAAA","file":"style.css","sourcesContent":["@use \"sass:map\";\n@use '../../../styles/tools/generate';\n@use '../../../styles/tools/convert';\n@use '../../../styles/tokens/color';\n@use './config';\n\n@keyframes logo-line {\n 0% {\n transform: translateX(-150%);\n }\n\n 30% {\n transform: translateX(0);\n }\n\n 70% {\n transform: translateX(0);\n }\n\n 100% {\n transform: translateX(150%);\n }\n}\n\n@mixin base {\n display: flex;\n align-items: flex-end;\n}\n\n@mixin body-base {\n flex: 0 0 auto;\n overflow: hidden;\n background-color: color.$orange;\n}\n\n@mixin size($size: default) {\n @include generate.css-map(map.get(config.$sizes, $size));\n}\n\n@mixin line-base {\n height: 15%;\n margin-left: 15%;\n margin-right: 15%;\n margin-top: 70%;\n background-color: color.$white;\n will-change: transform;\n animation: logo-line 1200ms infinite;\n}\n\n@mixin color-inverse {\n background-color: color.$white;\n}\n\n@mixin line-color-inverse {\n background-color: color.$orange;\n}\n\n@mixin messages-base {\n max-width: 100%;\n flex: 0 1 convert.to-rem(250px);\n font-weight: bold;\n}\n\n@mixin messages-large {\n font-size: convert.to-rem(18px);\n}\n","@use './mixins';\n\n.loader {\n @include mixins.base;\n\n &__body {\n @include mixins.body-base;\n @include mixins.size;\n\n .loader--large & {\n @include mixins.size(large);\n }\n \n &--inverse,\n .bg-orange & {\n @include mixins.color-inverse();\n }\n }\n\n &__line {\n @include mixins.line-base;\n\n &--inverse,\n .bg-orange & {\n @include mixins.line-color-inverse();\n }\n }\n\n &__messages {\n @include mixins.messages-base;\n\n .loader--large & {\n @include mixins.messages-large;\n }\n }\n}\n","// core (brand)\n$orange: #ff7900;\n$orange-dark: #f16e00;\n$black: #000;\n$white: #fff;\n\n// supporting color\n$blue: #4bb4e6;\n$green: #50be87;\n$pink: #ffb4e6;\n$violet: #a885d8;\n$yellow: #ffd200;\n$yellow-lighter: #fff6b6;\n$red: #ff4d4d;\n\n// functional\n$gray-300: #eee;\n$gray-400: #ddd;\n$gray-500: #ccc;\n$gray-600: #999;\n$gray-700: #666;\n$gray-800: #595959;\n$gray-900: #333;\n$success: #32c832;\n$danger: #cd3c14;\n$info: #527edb;\n$warning: #fc0;\n","@use '../tokens/breakpoint';\n@use './map' as *;\n\n/// Get css propeties from map\n///\n/// @param {Map} $map - Map\n/// @param {Arglist} $keys - Keys to fetch\n///\n/// @example\n/// $map: (\n/// background-color: #fff,\n/// color: #000\n/// );\n///\n/// .example {\n/// @include css-map($map);\n/// }\n///\n/// Output:\n/// .example {\n/// background-color: #fff;\n/// color: #000;\n/// }\n@mixin css-map($_map, $keys...) {\n $map: if($keys, map-deep-get($_map, $keys...), $_map);\n\n @each $prop, $value in $map {\n #{$prop}: #{$value};\n }\n}\n\n/// Get responsive css propeties from map\n///\n/// @param {Map} $map - Map\n/// @param {Arglist} $keys - Keys to fetch\n///\n/// @example\n/// $map: (\n/// default: (\n/// color: red,\n/// ),\n/// xl: (\n/// color: blue,\n/// ),\n/// );\n///\n/// .example {\n/// @include responsive-css-map($map);\n/// }\n///\n/// Output:\n/// .example {\n/// color: red;\n/// @media only screen and (min-width: 1240px) {\n/// color: blue;\n/// }\n/// }\n@mixin responsive-css-map($map) {\n @each $breakpoint, $props in $map {\n @include breakpoint.get($breakpoint) {\n @include css-map($props);\n }\n }\n}\n\n/// Get variants of elemnt from map\n///\n/// @param {Map} $map - map\n/// @param {Map} $className - class name of element\n/// @param {Map} $classSuffix - suffix for class name of element\n@mixin variants($map, $className: '', $classSuffix: '') {\n @each $variant, $props in $map {\n #{if(&, \"&\", \"\")}#{$className + variant-name($variant) + $classSuffix} {\n @include css-map($props);\n }\n }\n}\n\n/// Get responsive variants of elemnt from map\n///\n/// @param {Map} $map - map\n/// @param {Map} $className - class name of element\n/// @param {Map} $classSuffix - suffix for class name of element\n@mixin responsive-variants($map, $className: '', $classSuffix: '') {\n @each $breakpoint, $props in $map {\n @include breakpoint.get($breakpoint) {\n @include variants($props, $className, $classSuffix);\n }\n }\n}\n\n/// Get prefixed variant name\n/// @param {String} $name - Variant name\n/// @return {String} - Return a prefixed variant name or empty string, for default variants\n/// @example scss\n/// variant-name('primary')\n/// // -primary\n/// variant-name('default')\n///\n@function variant-name($name, $prefix: '--', $suffix: '') {\n @if not $name or $name == default or $name == xs {\n @return '';\n }\n\n @return #{$prefix + $name + $suffix};\n}\n"]}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see Modal.static.js.LICENSE.txt */
|
|
2
|
-
!function(t,e){if("object"===typeof exports&&"object"===typeof module)module.exports=e();else if("function"===typeof define&&define.amd)define([],e);else{var o=e();for(var n in o)("object"===typeof exports?exports:t)[n]=o[n]}}(this,(function(){return function(t){var e={};function o(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/",o(o.s=81)}({81:function(t,e,o){"use strict";o.r(e),o.d(e,"default",(function(){return S}));var n=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"])','input[type="radio"]:not([disabled]):not([tabindex^="-"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','iframe:not([tabindex^="-"])','audio[controls]:not([tabindex^="-"])','video[controls]:not([tabindex^="-"])','[contenteditable]:not([tabindex^="-"])','[tabindex]:not([tabindex^="-"])'];function i(t){this._show=this.show.bind(this),this._hide=this.hide.bind(this),this._maintainFocus=this._maintainFocus.bind(this),this._bindKeypress=this._bindKeypress.bind(this),this.$el=t,this.shown=!1,this._id=this.$el.getAttribute("data-a11y-dialog")||this.$el.id,this._previouslyFocused=null,this._listeners={},this.create()}function s(t,e){return o=(e||document).querySelectorAll(t),Array.prototype.slice.call(o);var o}function r(t){(t.querySelector("[autofocus]")||t).focus()}function d(){s("[data-a11y-dialog]").forEach((function(t){new i(t)}))}i.prototype.create=function(){this.$el.setAttribute("aria-hidden",!0),this.$el.setAttribute("aria-modal",!0),this.$el.setAttribute("tabindex",-1),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),this._openers=s('[data-a11y-dialog-show="'+this._id+'"]'),this._openers.forEach(function(t){t.addEventListener("click",this._show)}.bind(this));const t=this.$el;return this._closers=s("[data-a11y-dialog-hide]",this.$el).filter((function(e){return e.closest('[aria-modal="true"], [data-a11y-dialog]')===t})).concat(s('[data-a11y-dialog-hide="'+this._id+'"]')),this._closers.forEach(function(t){t.addEventListener("click",this._hide)}.bind(this)),this._fire("create"),this},i.prototype.show=function(t){if(this.shown)return this;this._previouslyFocused=document.activeElement;const e=t&&t.target?t.target:null;return e&&Object.is(this._previouslyFocused,document.body)&&(this._previouslyFocused=e),this.$el.removeAttribute("aria-hidden"),this.shown=!0,r(this.$el),document.body.addEventListener("focus",this._maintainFocus,!0),document.addEventListener("keydown",this._bindKeypress),this._fire("show",t),this},i.prototype.hide=function(t){return this.shown?(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),this._previouslyFocused&&this._previouslyFocused.focus&&this._previouslyFocused.focus(),document.body.removeEventListener("focus",this._maintainFocus,!0),document.removeEventListener("keydown",this._bindKeypress),this._fire("hide",t),this):this},i.prototype.destroy=function(){return this.hide(),this._openers.forEach(function(t){t.removeEventListener("click",this._show)}.bind(this)),this._closers.forEach(function(t){t.removeEventListener("click",this._hide)}.bind(this)),this._fire("destroy"),this._listeners={},this},i.prototype.on=function(t,e){return"undefined"===typeof this._listeners[t]&&(this._listeners[t]=[]),this._listeners[t].push(e),this},i.prototype.off=function(t,e){var o=(this._listeners[t]||[]).indexOf(e);return o>-1&&this._listeners[t].splice(o,1),this},i.prototype._fire=function(t,e){var o=this._listeners[t]||[],n=new CustomEvent(t,{detail:e});this.$el.dispatchEvent(n),o.forEach(function(t){t(this.$el,e)}.bind(this))},i.prototype._bindKeypress=function(t){const e=document.activeElement;e&&e.closest('[aria-modal="true"]')!==this.$el||(this.shown&&"Escape"===t.key&&"alertdialog"!==this.$el.getAttribute("role")&&(t.preventDefault(),this.hide(t)),this.shown&&"Tab"===t.key&&function(t,e){var o=function(t){return s(n.join(","),t).filter((function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}))}(t),i=o.indexOf(document.activeElement);e.shiftKey&&0===i?(o[o.length-1].focus(),e.preventDefault()):e.shiftKey||i!==o.length-1||(o[0].focus(),e.preventDefault())}(this.$el,t))},i.prototype._maintainFocus=function(t){!this.shown||t.target.closest('[aria-modal="true"]')||t.target.closest("[data-a11y-dialog-ignore-focus-trap]")||r(this.$el)},"undefined"!==typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16));var a=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],l=a.join(","),c="undefined"===typeof Element,u=c?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,h=!c&&Element.prototype.getRootNode?function(t){var e;return null===t||void 0===t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}:function(t){return null===t||void 0===t?void 0:t.ownerDocument},f=function t(e,o){var n;void 0===o&&(o=!0);var i=null===e||void 0===e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===i||"true"===i||o&&e&&t(e.parentNode)},y=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},p=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||function(t){var e,o=null===t||void 0===t||null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"contenteditable");return""===o||"true"===o}(t))&&!y(t)?0:t.tabIndex},m=function(t){return"INPUT"===t.tagName},b=function(t){return function(t){return m(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,o=t.form||h(t),n=function(t){return o.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!==typeof window&&"undefined"!==typeof window.CSS&&"function"===typeof window.CSS.escape)e=n(window.CSS.escape(t.name));else try{e=n(t.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var i=function(t,e){for(var o=0;o<t.length;o++)if(t[o].checked&&t[o].form===e)return t[o]}(e,t.form);return!i||i===t}(t)},v=function(t){var e=t.getBoundingClientRect(),o=e.width,n=e.height;return 0===o&&0===n},g=function(t,e){var o=e.displayCheck,n=e.getShadowRoot;if("hidden"===getComputedStyle(t).visibility)return!0;var i=u.call(t,"details>summary:first-of-type")?t.parentElement:t;if(u.call(i,"details:not([open]) *"))return!0;if(o&&"full"!==o&&"legacy-full"!==o){if("non-zero-area"===o)return v(t)}else{if("function"===typeof n){for(var s=t;t;){var r=t.parentElement,d=h(t);if(r&&!r.shadowRoot&&!0===n(r))return v(t);t=t.assignedSlot?t.assignedSlot:r||d===t.ownerDocument?r:d.host}t=s}if(function(t){var e,o,n,i,s=t&&h(t),r=null===(e=s)||void 0===e?void 0:e.host,d=!1;if(s&&s!==t)for(d=!!(null!==(o=r)&&void 0!==o&&null!==(n=o.ownerDocument)&&void 0!==n&&n.contains(r)||null!==t&&void 0!==t&&null!==(i=t.ownerDocument)&&void 0!==i&&i.contains(t));!d&&r;){var a,l,c;d=!(null===(l=r=null===(a=s=h(r))||void 0===a?void 0:a.host)||void 0===l||null===(c=l.ownerDocument)||void 0===c||!c.contains(r))}return d}(t))return!t.getClientRects().length;if("legacy-full"!==o)return!0}return!1},w=function(t,e){return!(e.disabled||f(e)||function(t){return m(t)&&"hidden"===t.type}(e)||g(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var o=0;o<e.children.length;o++){var n=e.children.item(o);if("LEGEND"===n.tagName)return!!u.call(e,"fieldset[disabled] *")||!n.contains(t)}return!0}e=e.parentElement}return!1}(e))},_=function(t,e){return!(b(e)||p(e)<0||!w(t,e))};class S{constructor(t,e){return this.element=t,this.config={classModalIsOpen:"is-active",classModalIsOpenBody:"has-modal",root:"#root",modalsRoot:"#root-modals",...e},this.handleShow=this.handleShow.bind(this),this.handleHide=this.handleHide.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.headerFirstItemSpacing=this.headerFirstItemSpacing.bind(this),S.moveToModalRoot=S.moveToModalRoot.bind(this),S.lockBody=S.lockBody.bind(this),S.unlockBody=S.unlockBody.bind(this),this.element.ODS_Modal=this,this.init(),this}static getInstance(t){return t&&t.ODS_Modal?t.ODS_Modal:null}handleShow(t){this.constructor.lockBody(),t&&t.classList.add(this.config.classModalIsOpen);const e=t.querySelector("[data-a11y-dialog-initial-focus]");e&&(function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==u.call(t,l)&&_(e,t)}(e)||e.setAttribute("tabindex","-1"),e.focus())}handleHide(t){this.constructor.unlockBody(),t&&t.classList.remove(this.config.classModalIsOpen)}show(){this.instance.show()}hide(){this.instance.hide()}headerFirstItemSpacing(){const t=this.element.querySelector(".modal__header");if(t){const e=Array.from(t.children).find(t=>!t.classList.contains("btn"));e&&(e.style.marginRight="40px")}}init(){this.config.modalsRoot&&S.moveToModalRoot(this.element,document.querySelector(this.config.modalsRoot)),this.instance=new i(this.element,document.querySelector(this.config.root)),this.instance.on("show",this.handleShow),this.instance.on("hide",this.handleHide),this.headerFirstItemSpacing()}destroy(){this.instance.destroy(),this.element.ODS_Modal=this}update(){this.destroy(),this.init()}static moveToModalRoot(t,e){e?e.appendChild(t):console.warn(`\`modalsRoot: ${this.config.modalsRoot}\` element is not present in DOM. Modal will be placed inside content which can affect it's styling. Please provide \`modalsRoot\` selector (should be placed outside of main contant, usualy in end of <body /> tag)`)}static lockBody(t=this.config.classModalIsOpenBody,e=this.config.root){const o=document.querySelector(e),n=document.documentElement.scrollTop||document.body.scrollTop;document.body.setAttribute("data-lock-scrolltop",n),document.body.style.height="100%",document.body.style.width="100%",document.body.style.overflow="hidden",document.body.style.position="fixed",o&&(o.style.height="100%",o.style.width="100%",o.style.overflow="hidden",o.style.position="fixed",o.scrollTop=n),document.body.classList.add(t),window.requestAnimationFrame(()=>{window.scrollTo(0,n)})}static unlockBody(t=this.config.classModalIsOpenBody,e=this.config.root){const o=document.querySelector(e),n=document.body.getAttribute("data-lock-scrolltop");document.body.style.height="",document.body.style.width="",document.body.style.overflow="",document.body.style.position="",document.body.classList.remove(t),o&&(o.style.height="",o.style.width="",o.style.overflow="",o.style.position=""),window.requestAnimationFrame(()=>{window.scrollTo({left:0,top:n,behavior:"instant"})})}}}})}));
|
|
3
|
-
//# sourceMappingURL=Modal.static.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../webpack/universalModuleDefinition","../webpack/bootstrap","../node_modules/a11y-dialog/dist/a11y-dialog.esm.js","../../src/index.js","components/Modal/Modal.static.js"],"names":["root","factory","exports","module","define","amd","a","i","this","installedModules","__webpack_require__","moduleId","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","focusableSelectors","A11yDialog","element","_show","show","_hide","hide","_maintainFocus","_bindKeypress","$el","shown","_id","getAttribute","id","_previouslyFocused","_listeners","$$","selector","context","collection","document","querySelectorAll","Array","slice","moveFocusToDialog","node","querySelector","focus","instantiateDialogs","forEach","setAttribute","hasAttribute","_openers","opener","addEventListener","_closers","filter","closer","closest","concat","_fire","event","activeElement","target","is","body","removeAttribute","removeEventListener","destroy","on","type","handler","push","off","index","indexOf","splice","listeners","domEvent","CustomEvent","detail","dispatchEvent","listener","focused","preventDefault","focusableChildren","join","child","offsetWidth","offsetHeight","getClientRects","length","getFocusableChildren","focusedItemIndex","shiftKey","trapTabKey","readyState","window","requestAnimationFrame","setTimeout","candidateSelectors","candidateSelector","NoElement","Element","matches","msMatchesSelector","webkitMatchesSelector","getRootNode","_element$getRootNode","ownerDocument","isInert","lookUp","_node$getAttribute","inertAtt","parentNode","hasTabIndex","isNaN","parseInt","getTabIndex","Error","tabIndex","test","tagName","_node$getAttribute2","attValue","isContentEditable","isInput","isNonTabbableRadio","isRadio","radioSet","radioScope","form","queryRadios","CSS","escape","err","console","error","message","checked","nodes","getCheckedRadio","isTabbableRadio","isZeroArea","_node$getBoundingClie","getBoundingClientRect","width","height","isHidden","_ref","displayCheck","getShadowRoot","getComputedStyle","visibility","nodeUnderDetails","parentElement","originalNode","rootNode","shadowRoot","assignedSlot","host","_nodeRoot","_nodeRootHost","_nodeRootHost$ownerDo","_node$ownerDocument","nodeRoot","nodeRootHost","attached","contains","_nodeRoot2","_nodeRootHost2","_nodeRootHost2$ownerD","isNodeAttached","isNodeMatchingSelectorFocusable","options","disabled","isHiddenInput","apply","children","some","isDetailsWithSummary","item","isDisabledFromFieldset","isNodeMatchingSelectorTabbable","Modal","constructor","config","classModalIsOpen","classModalIsOpenBody","modalsRoot","handleShow","handleHide","headerFirstItemSpacing","moveToModalRoot","lockBody","unlockBody","ODS_Modal","init","el","classList","add","initialFocusEl","isTabbable","remove","instance","modalHeader","firstNonBtnElement","from","find","style","marginRight","update","container","appendChild","warn","className","scrollTop","documentElement","overflow","position","scrollTo","left","top","behavior"],"mappings":";CAAA,SAA2CA,EAAMC,GAChD,GAAsB,kBAAZC,SAA0C,kBAAXC,OACxCA,OAAOD,QAAUD,SACb,GAAqB,oBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,OACP,CACJ,IAAIK,EAAIL,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J,MAAM9D,OAAS,OAC7B3G,SAASyB,KAAKgJ,MAAM/D,MAAQ,OAC5B1G,SAASyB,KAAKgJ,MAAMS,SAAW,SAC/BlL,SAASyB,KAAKgJ,MAAMU,SAAW,QAG3BP,IAEFA,EAAUH,MAAM9D,OAAS,OACzBiE,EAAUH,MAAM/D,MAAQ,OACxBkE,EAAUH,MAAMS,SAAW,SAC3BN,EAAUH,MAAMU,SAAW,QAE3BP,EAAUI,UAAYA,GAKxBhL,SAASyB,KAAKsI,UAAUC,IAAIe,GAG5BtH,OAAOC,sBAAsB,KAC3BD,OAAO2H,SAAS,EAAGJ,KAIvB,kBACED,EAAYtO,KAAKyM,OAAOE,qBACxBnN,EAAOQ,KAAKyM,OAAOjN,MAEnB,MAAM2O,EAAY5K,SAASM,cAAcrE,GACnC+O,EAAYhL,SAASyB,KAAKjC,aAAa,uBAG7CQ,SAASyB,KAAKgJ,MAAM9D,OAAS,GAC7B3G,SAASyB,KAAKgJ,MAAM/D,MAAQ,GAC5B1G,SAASyB,KAAKgJ,MAAMS,SAAW,GAC/BlL,SAASyB,KAAKgJ,MAAMU,SAAW,GAG/BnL,SAASyB,KAAKsI,UAAUI,OAAOY,GAG3BH,IAEFA,EAAUH,MAAM9D,OAAS,GACzBiE,EAAUH,MAAM/D,MAAQ,GACxBkE,EAAUH,MAAMS,SAAW,GAC3BN,EAAUH,MAAMU,SAAW,IAK7B1H,OAAOC,sBAAsB,KAC3BD,OAAO2H,SAAS,CAAEC,KAAM,EAAGC,IAAKN,EAAWO,SAAU","file":"components/Modal/Modal.static.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse {\n\t\tvar a = factory();\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})(this, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 81);\n","var focusableSelectors = [\n 'a[href]:not([tabindex^=\"-\"])',\n 'area[href]:not([tabindex^=\"-\"])',\n 'input:not([type=\"hidden\"]):not([type=\"radio\"]):not([disabled]):not([tabindex^=\"-\"])',\n 'input[type=\"radio\"]:not([disabled]):not([tabindex^=\"-\"])',\n 'select:not([disabled]):not([tabindex^=\"-\"])',\n 'textarea:not([disabled]):not([tabindex^=\"-\"])',\n 'button:not([disabled]):not([tabindex^=\"-\"])',\n 'iframe:not([tabindex^=\"-\"])',\n 'audio[controls]:not([tabindex^=\"-\"])',\n 'video[controls]:not([tabindex^=\"-\"])',\n '[contenteditable]:not([tabindex^=\"-\"])',\n '[tabindex]:not([tabindex^=\"-\"])',\n];\n\nvar TAB_KEY = 'Tab';\nvar ESCAPE_KEY = 'Escape';\n\n/**\n * Define the constructor to instantiate a dialog\n *\n * @constructor\n * @param {Element} element\n */\nfunction A11yDialog(element) {\n // Prebind the functions that will be bound in addEventListener and\n // removeEventListener to avoid losing references\n this._show = this.show.bind(this);\n this._hide = this.hide.bind(this);\n this._maintainFocus = this._maintainFocus.bind(this);\n this._bindKeypress = this._bindKeypress.bind(this);\n\n this.$el = element;\n this.shown = false;\n this._id = this.$el.getAttribute('data-a11y-dialog') || this.$el.id;\n this._previouslyFocused = null;\n this._listeners = {};\n\n // Initialise everything needed for the dialog to work properly\n this.create();\n}\n\n/**\n * Set up everything necessary for the dialog to be functioning\n *\n * @param {(NodeList | Element | string)} targets\n * @return {this}\n */\nA11yDialog.prototype.create = function () {\n this.$el.setAttribute('aria-hidden', true);\n this.$el.setAttribute('aria-modal', true);\n this.$el.setAttribute('tabindex', -1);\n\n if (!this.$el.hasAttribute('role')) {\n this.$el.setAttribute('role', 'dialog');\n }\n\n // Keep a collection of dialog openers, each of which will be bound a click\n // event listener to open the dialog\n this._openers = $$('[data-a11y-dialog-show=\"' + this._id + '\"]');\n this._openers.forEach(\n function (opener) {\n opener.addEventListener('click', this._show);\n }.bind(this)\n );\n\n // Keep a collection of dialog closers, each of which will be bound a click\n // event listener to close the dialog\n const $el = this.$el;\n\n this._closers = $$('[data-a11y-dialog-hide]', this.$el)\n // This filter is necessary in case there are nested dialogs, so that\n // only closers from the current dialog are retrieved and effective\n .filter(function (closer) {\n // Testing for `[aria-modal=\"true\"]` is not enough since this attribute\n // and the collect of closers is done at instantation time, when nested\n // dialogs might not have yet been instantiated. Note that if the dialogs\n // are manually instantiated, this could still fail because none of these\n // selectors would match; this would cause closers to close all parent\n // dialogs instead of just the current one\n return closer.closest('[aria-modal=\"true\"], [data-a11y-dialog]') === $el\n })\n .concat($$('[data-a11y-dialog-hide=\"' + this._id + '\"]'));\n\n this._closers.forEach(\n function (closer) {\n closer.addEventListener('click', this._hide);\n }.bind(this)\n );\n\n // Execute all callbacks registered for the `create` event\n this._fire('create');\n\n return this\n};\n\n/**\n * Show the dialog element, disable all the targets (siblings), trap the\n * current focus within it, listen for some specific key presses and fire all\n * registered callbacks for `show` event\n *\n * @param {CustomEvent} event\n * @return {this}\n */\nA11yDialog.prototype.show = function (event) {\n // If the dialog is already open, abort\n if (this.shown) {\n return this\n }\n\n // Keep a reference to the currently focused element to be able to restore\n // it later\n this._previouslyFocused = document.activeElement;\n\n // Due to a long lasting bug in Safari, clicking an interactive element (like\n // a <button>) does *not* move the focus to that element, which means\n // `document.activeElement` is whatever element is currently focused (like an\n // <input>), or the <body> element otherwise. We can work around that problem\n // by checking whether the focused element is the <body>, and if it, store the\n // click event target.\n // See: https://bugs.webkit.org/show_bug.cgi?id=22261\n const target = event && event.target ? event.target : null;\n if (target && Object.is(this._previouslyFocused, document.body)) {\n this._previouslyFocused = target;\n }\n\n this.$el.removeAttribute('aria-hidden');\n this.shown = true;\n\n // Set the focus to the dialog element\n moveFocusToDialog(this.$el);\n\n // Bind a focus event listener to the body element to make sure the focus\n // stays trapped inside the dialog while open, and start listening for some\n // specific key presses (TAB and ESC)\n document.body.addEventListener('focus', this._maintainFocus, true);\n document.addEventListener('keydown', this._bindKeypress);\n\n // Execute all callbacks registered for the `show` event\n this._fire('show', event);\n\n return this\n};\n\n/**\n * Hide the dialog element, enable all the targets (siblings), restore the\n * focus to the previously active element, stop listening for some specific\n * key presses and fire all registered callbacks for `hide` event\n *\n * @param {CustomEvent} event\n * @return {this}\n */\nA11yDialog.prototype.hide = function (event) {\n // If the dialog is already closed, abort\n if (!this.shown) {\n return this\n }\n\n this.shown = false;\n this.$el.setAttribute('aria-hidden', 'true');\n\n // If there was a focused element before the dialog was opened (and it has a\n // `focus` method), restore the focus back to it\n // See: https://github.com/KittyGiraudel/a11y-dialog/issues/108\n if (this._previouslyFocused && this._previouslyFocused.focus) {\n this._previouslyFocused.focus();\n }\n\n // Remove the focus event listener to the body element and stop listening\n // for specific key presses\n document.body.removeEventListener('focus', this._maintainFocus, true);\n document.removeEventListener('keydown', this._bindKeypress);\n\n // Execute all callbacks registered for the `hide` event\n this._fire('hide', event);\n\n return this\n};\n\n/**\n * Destroy the current instance (after making sure the dialog has been hidden)\n * and remove all associated listeners from dialog openers and closers\n *\n * @return {this}\n */\nA11yDialog.prototype.destroy = function () {\n // Hide the dialog to avoid destroying an open instance\n this.hide();\n\n // Remove the click event listener from all dialog openers\n this._openers.forEach(\n function (opener) {\n opener.removeEventListener('click', this._show);\n }.bind(this)\n );\n\n // Remove the click event listener from all dialog closers\n this._closers.forEach(\n function (closer) {\n closer.removeEventListener('click', this._hide);\n }.bind(this)\n );\n\n // Execute all callbacks registered for the `destroy` event\n this._fire('destroy');\n\n // Keep an object of listener types mapped to callback functions\n this._listeners = {};\n\n return this\n};\n\n/**\n * Register a new callback for the given event type\n *\n * @param {string} type\n * @param {Function} handler\n */\nA11yDialog.prototype.on = function (type, handler) {\n if (typeof this._listeners[type] === 'undefined') {\n this._listeners[type] = [];\n }\n\n this._listeners[type].push(handler);\n\n return this\n};\n\n/**\n * Unregister an existing callback for the given event type\n *\n * @param {string} type\n * @param {Function} handler\n */\nA11yDialog.prototype.off = function (type, handler) {\n var index = (this._listeners[type] || []).indexOf(handler);\n\n if (index > -1) {\n this._listeners[type].splice(index, 1);\n }\n\n return this\n};\n\n/**\n * Iterate over all registered handlers for given type and call them all with\n * the dialog element as first argument, event as second argument (if any). Also\n * dispatch a custom event on the DOM element itself to make it possible to\n * react to the lifecycle of auto-instantiated dialogs.\n *\n * @access private\n * @param {string} type\n * @param {CustomEvent} event\n */\nA11yDialog.prototype._fire = function (type, event) {\n var listeners = this._listeners[type] || [];\n var domEvent = new CustomEvent(type, { detail: event });\n\n this.$el.dispatchEvent(domEvent);\n\n listeners.forEach(\n function (listener) {\n listener(this.$el, event);\n }.bind(this)\n );\n};\n\n/**\n * Private event handler used when listening to some specific key presses\n * (namely ESCAPE and TAB)\n *\n * @access private\n * @param {Event} event\n */\nA11yDialog.prototype._bindKeypress = function (event) {\n // This is an escape hatch in case there are nested dialogs, so the keypresses\n // are only reacted to for the most recent one\n const focused = document.activeElement;\n if (focused && focused.closest('[aria-modal=\"true\"]') !== this.$el) return\n\n // If the dialog is shown and the ESCAPE key is being pressed, prevent any\n // further effects from the ESCAPE key and hide the dialog, unless its role\n // is 'alertdialog', which should be modal\n if (\n this.shown &&\n event.key === ESCAPE_KEY &&\n this.$el.getAttribute('role') !== 'alertdialog'\n ) {\n event.preventDefault();\n this.hide(event);\n }\n\n // If the dialog is shown and the TAB key is being pressed, make sure the\n // focus stays trapped within the dialog element\n if (this.shown && event.key === TAB_KEY) {\n trapTabKey(this.$el, event);\n }\n};\n\n/**\n * Private event handler used when making sure the focus stays within the\n * currently open dialog\n *\n * @access private\n * @param {Event} event\n */\nA11yDialog.prototype._maintainFocus = function (event) {\n // If the dialog is shown and the focus is not within a dialog element (either\n // this one or another one in case of nested dialogs) or within an element\n // with the `data-a11y-dialog-focus-trap-ignore` attribute, move it back to\n // its first focusable child.\n // See: https://github.com/KittyGiraudel/a11y-dialog/issues/177\n if (\n this.shown &&\n !event.target.closest('[aria-modal=\"true\"]') &&\n !event.target.closest('[data-a11y-dialog-ignore-focus-trap]')\n ) {\n moveFocusToDialog(this.$el);\n }\n};\n\n/**\n * Convert a NodeList into an array\n *\n * @param {NodeList} collection\n * @return {Array<Element>}\n */\nfunction toArray(collection) {\n return Array.prototype.slice.call(collection)\n}\n\n/**\n * Query the DOM for nodes matching the given selector, scoped to context (or\n * the whole document)\n *\n * @param {String} selector\n * @param {Element} [context = document]\n * @return {Array<Element>}\n */\nfunction $$(selector, context) {\n return toArray((context || document).querySelectorAll(selector))\n}\n\n/**\n * Set the focus to the first element with `autofocus` with the element or the\n * element itself\n *\n * @param {Element} node\n */\nfunction moveFocusToDialog(node) {\n var focused = node.querySelector('[autofocus]') || node;\n\n focused.focus();\n}\n\n/**\n * Get the focusable children of the given element\n *\n * @param {Element} node\n * @return {Array<Element>}\n */\nfunction getFocusableChildren(node) {\n return $$(focusableSelectors.join(','), node).filter(function (child) {\n return !!(\n child.offsetWidth ||\n child.offsetHeight ||\n child.getClientRects().length\n )\n })\n}\n\n/**\n * Trap the focus inside the given element\n *\n * @param {Element} node\n * @param {Event} event\n */\nfunction trapTabKey(node, event) {\n var focusableChildren = getFocusableChildren(node);\n var focusedItemIndex = focusableChildren.indexOf(document.activeElement);\n\n // If the SHIFT key is being pressed while tabbing (moving backwards) and\n // the currently focused item is the first one, move the focus to the last\n // focusable item from the dialog element\n if (event.shiftKey && focusedItemIndex === 0) {\n focusableChildren[focusableChildren.length - 1].focus();\n event.preventDefault();\n // If the SHIFT key is not being pressed (moving forwards) and the currently\n // focused item is the last one, move the focus to the first focusable item\n // from the dialog element\n } else if (\n !event.shiftKey &&\n focusedItemIndex === focusableChildren.length - 1\n ) {\n focusableChildren[0].focus();\n event.preventDefault();\n }\n}\n\nfunction instantiateDialogs() {\n $$('[data-a11y-dialog]').forEach(function (node) {\n new A11yDialog(node);\n });\n}\n\nif (typeof document !== 'undefined') {\n if (document.readyState === 'loading') {\n document.addEventListener('DOMContentLoaded', instantiateDialogs);\n } else {\n if (window.requestAnimationFrame) {\n window.requestAnimationFrame(instantiateDialogs);\n } else {\n window.setTimeout(instantiateDialogs, 16);\n }\n }\n}\n\nexport { A11yDialog as default };\n","// NOTE: separate `:not()` selectors has broader browser support than the newer\n// `:not([inert], [inert] *)` (Feb 2023)\n// CAREFUL: JSDom does not support `:not([inert] *)` as a selector; using it causes\n// the entire query to fail, resulting in no nodes found, which will break a lot\n// of things... so we have to rely on JS to identify nodes inside an inert container\nconst candidateSelectors = [\n 'input:not([inert])',\n 'select:not([inert])',\n 'textarea:not([inert])',\n 'a[href]:not([inert])',\n 'button:not([inert])',\n '[tabindex]:not(slot):not([inert])',\n 'audio[controls]:not([inert])',\n 'video[controls]:not([inert])',\n '[contenteditable]:not([contenteditable=\"false\"]):not([inert])',\n 'details>summary:first-of-type:not([inert])',\n 'details:not([inert])',\n];\nconst candidateSelector = /* #__PURE__ */ candidateSelectors.join(',');\n\nconst NoElement = typeof Element === 'undefined';\n\nconst matches = NoElement\n ? function () {}\n : Element.prototype.matches ||\n Element.prototype.msMatchesSelector ||\n Element.prototype.webkitMatchesSelector;\n\nconst getRootNode =\n !NoElement && Element.prototype.getRootNode\n ? (element) => element?.getRootNode?.()\n : (element) => element?.ownerDocument;\n\n/**\n * Determines if a node is inert or in an inert ancestor.\n * @param {Element} [node]\n * @param {boolean} [lookUp] If true and `node` is not inert, looks up at ancestors to\n * see if any of them are inert. If false, only `node` itself is considered.\n * @returns {boolean} True if inert itself or by way of being in an inert ancestor.\n * False if `node` is falsy.\n */\nconst isInert = function (node, lookUp = true) {\n // CAREFUL: JSDom does not support inert at all, so we can't use the `HTMLElement.inert`\n // JS API property; we have to check the attribute, which can either be empty or 'true';\n // if it's `null` (not specified) or 'false', it's an active element\n const inertAtt = node?.getAttribute?.('inert');\n const inert = inertAtt === '' || inertAtt === 'true';\n\n // NOTE: this could also be handled with `node.matches('[inert], :is([inert] *)')`\n // if it weren't for `matches()` not being a function on shadow roots; the following\n // code works for any kind of node\n // CAREFUL: JSDom does not appear to support certain selectors like `:not([inert] *)`\n // so it likely would not support `:is([inert] *)` either...\n const result = inert || (lookUp && node && isInert(node.parentNode)); // recursive\n\n return result;\n};\n\n/**\n * Determines if a node's content is editable.\n * @param {Element} [node]\n * @returns True if it's content-editable; false if it's not or `node` is falsy.\n */\nconst isContentEditable = function (node) {\n // CAREFUL: JSDom does not support the `HTMLElement.isContentEditable` API so we have\n // to use the attribute directly to check for this, which can either be empty or 'true';\n // if it's `null` (not specified) or 'false', it's a non-editable element\n const attValue = node?.getAttribute?.('contenteditable');\n return attValue === '' || attValue === 'true';\n};\n\n/**\n * @param {Element} el container to check in\n * @param {boolean} includeContainer add container to check\n * @param {(node: Element) => boolean} filter filter candidates\n * @returns {Element[]}\n */\nconst getCandidates = function (el, includeContainer, filter) {\n // even if `includeContainer=false`, we still have to check it for inertness because\n // if it's inert, all its children are inert\n if (isInert(el)) {\n return [];\n }\n\n let candidates = Array.prototype.slice.apply(\n el.querySelectorAll(candidateSelector)\n );\n if (includeContainer && matches.call(el, candidateSelector)) {\n candidates.unshift(el);\n }\n candidates = candidates.filter(filter);\n return candidates;\n};\n\n/**\n * @callback GetShadowRoot\n * @param {Element} element to check for shadow root\n * @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.\n */\n\n/**\n * @callback ShadowRootFilter\n * @param {Element} shadowHostNode the element which contains shadow content\n * @returns {boolean} true if a shadow root could potentially contain valid candidates.\n */\n\n/**\n * @typedef {Object} CandidateScope\n * @property {Element} scopeParent contains inner candidates\n * @property {Element[]} candidates list of candidates found in the scope parent\n */\n\n/**\n * @typedef {Object} IterativeOptions\n * @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;\n * if a function, implies shadow support is enabled and either returns the shadow root of an element\n * or a boolean stating if it has an undisclosed shadow root\n * @property {(node: Element) => boolean} filter filter candidates\n * @property {boolean} flatten if true then result will flatten any CandidateScope into the returned list\n * @property {ShadowRootFilter} shadowRootFilter filter shadow roots;\n */\n\n/**\n * @param {Element[]} elements list of element containers to match candidates from\n * @param {boolean} includeContainer add container list to check\n * @param {IterativeOptions} options\n * @returns {Array.<Element|CandidateScope>}\n */\nconst getCandidatesIteratively = function (\n elements,\n includeContainer,\n options\n) {\n const candidates = [];\n const elementsToCheck = Array.from(elements);\n while (elementsToCheck.length) {\n const element = elementsToCheck.shift();\n if (isInert(element, false)) {\n // no need to look up since we're drilling down\n // anything inside this container will also be inert\n continue;\n }\n\n if (element.tagName === 'SLOT') {\n // add shadow dom slot scope (slot itself cannot be focusable)\n const assigned = element.assignedElements();\n const content = assigned.length ? assigned : element.children;\n const nestedCandidates = getCandidatesIteratively(content, true, options);\n if (options.flatten) {\n candidates.push(...nestedCandidates);\n } else {\n candidates.push({\n scopeParent: element,\n candidates: nestedCandidates,\n });\n }\n } else {\n // check candidate element\n const validCandidate = matches.call(element, candidateSelector);\n if (\n validCandidate &&\n options.filter(element) &&\n (includeContainer || !elements.includes(element))\n ) {\n candidates.push(element);\n }\n\n // iterate over shadow content if possible\n const shadowRoot =\n element.shadowRoot ||\n // check for an undisclosed shadow\n (typeof options.getShadowRoot === 'function' &&\n options.getShadowRoot(element));\n\n // no inert look up because we're already drilling down and checking for inertness\n // on the way down, so all containers to this root node should have already been\n // vetted as non-inert\n const validShadowRoot =\n !isInert(shadowRoot, false) &&\n (!options.shadowRootFilter || options.shadowRootFilter(element));\n\n if (shadowRoot && validShadowRoot) {\n // add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed\n // shadow exists, so look at light dom children as fallback BUT create a scope for any\n // child candidates found because they're likely slotted elements (elements that are\n // children of the web component element (which has the shadow), in the light dom, but\n // slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,\n // _after_ we return from this recursive call\n const nestedCandidates = getCandidatesIteratively(\n shadowRoot === true ? element.children : shadowRoot.children,\n true,\n options\n );\n\n if (options.flatten) {\n candidates.push(...nestedCandidates);\n } else {\n candidates.push({\n scopeParent: element,\n candidates: nestedCandidates,\n });\n }\n } else {\n // there's not shadow so just dig into the element's (light dom) children\n // __without__ giving the element special scope treatment\n elementsToCheck.unshift(...element.children);\n }\n }\n }\n return candidates;\n};\n\n/**\n * @private\n * Determines if the node has an explicitly specified `tabindex` attribute.\n * @param {HTMLElement} node\n * @returns {boolean} True if so; false if not.\n */\nconst hasTabIndex = function (node) {\n return !isNaN(parseInt(node.getAttribute('tabindex'), 10));\n};\n\n/**\n * Determine the tab index of a given node.\n * @param {HTMLElement} node\n * @returns {number} Tab order (negative, 0, or positive number).\n * @throws {Error} If `node` is falsy.\n */\nconst getTabIndex = function (node) {\n if (!node) {\n throw new Error('No node provided');\n }\n\n if (node.tabIndex < 0) {\n // in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default\n // `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,\n // yet they are still part of the regular tab order; in FF, they get a default\n // `tabIndex` of 0; since Chrome still puts those elements in the regular tab\n // order, consider their tab index to be 0.\n // Also browsers do not return `tabIndex` correctly for contentEditable nodes;\n // so if they don't have a tabindex attribute specifically set, assume it's 0.\n if (\n (/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) ||\n isContentEditable(node)) &&\n !hasTabIndex(node)\n ) {\n return 0;\n }\n }\n\n return node.tabIndex;\n};\n\n/**\n * Determine the tab index of a given node __for sort order purposes__.\n * @param {HTMLElement} node\n * @param {boolean} [isScope] True for a custom element with shadow root or slot that, by default,\n * has tabIndex -1, but needs to be sorted by document order in order for its content to be\n * inserted into the correct sort position.\n * @returns {number} Tab order (negative, 0, or positive number).\n */\nconst getSortOrderTabIndex = function (node, isScope) {\n const tabIndex = getTabIndex(node);\n\n if (tabIndex < 0 && isScope && !hasTabIndex(node)) {\n return 0;\n }\n\n return tabIndex;\n};\n\nconst sortOrderedTabbables = function (a, b) {\n return a.tabIndex === b.tabIndex\n ? a.documentOrder - b.documentOrder\n : a.tabIndex - b.tabIndex;\n};\n\nconst isInput = function (node) {\n return node.tagName === 'INPUT';\n};\n\nconst isHiddenInput = function (node) {\n return isInput(node) && node.type === 'hidden';\n};\n\nconst isDetailsWithSummary = function (node) {\n const r =\n node.tagName === 'DETAILS' &&\n Array.prototype.slice\n .apply(node.children)\n .some((child) => child.tagName === 'SUMMARY');\n return r;\n};\n\nconst getCheckedRadio = function (nodes, form) {\n for (let i = 0; i < nodes.length; i++) {\n if (nodes[i].checked && nodes[i].form === form) {\n return nodes[i];\n }\n }\n};\n\nconst isTabbableRadio = function (node) {\n if (!node.name) {\n return true;\n }\n const radioScope = node.form || getRootNode(node);\n const queryRadios = function (name) {\n return radioScope.querySelectorAll(\n 'input[type=\"radio\"][name=\"' + name + '\"]'\n );\n };\n\n let radioSet;\n if (\n typeof window !== 'undefined' &&\n typeof window.CSS !== 'undefined' &&\n typeof window.CSS.escape === 'function'\n ) {\n radioSet = queryRadios(window.CSS.escape(node.name));\n } else {\n try {\n radioSet = queryRadios(node.name);\n } catch (err) {\n // eslint-disable-next-line no-console\n console.error(\n 'Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s',\n err.message\n );\n return false;\n }\n }\n\n const checked = getCheckedRadio(radioSet, node.form);\n return !checked || checked === node;\n};\n\nconst isRadio = function (node) {\n return isInput(node) && node.type === 'radio';\n};\n\nconst isNonTabbableRadio = function (node) {\n return isRadio(node) && !isTabbableRadio(node);\n};\n\n// determines if a node is ultimately attached to the window's document\nconst isNodeAttached = function (node) {\n // The root node is the shadow root if the node is in a shadow DOM; some document otherwise\n // (but NOT _the_ document; see second 'If' comment below for more).\n // If rootNode is shadow root, it'll have a host, which is the element to which the shadow\n // is attached, and the one we need to check if it's in the document or not (because the\n // shadow, and all nodes it contains, is never considered in the document since shadows\n // behave like self-contained DOMs; but if the shadow's HOST, which is part of the document,\n // is hidden, or is not in the document itself but is detached, it will affect the shadow's\n // visibility, including all the nodes it contains). The host could be any normal node,\n // or a custom element (i.e. web component). Either way, that's the one that is considered\n // part of the document, not the shadow root, nor any of its children (i.e. the node being\n // tested).\n // To further complicate things, we have to look all the way up until we find a shadow HOST\n // that is attached (or find none) because the node might be in nested shadows...\n // If rootNode is not a shadow root, it won't have a host, and so rootNode should be the\n // document (per the docs) and while it's a Document-type object, that document does not\n // appear to be the same as the node's `ownerDocument` for some reason, so it's safer\n // to ignore the rootNode at this point, and use `node.ownerDocument`. Otherwise,\n // using `rootNode.contains(node)` will _always_ be true we'll get false-positives when\n // node is actually detached.\n // NOTE: If `nodeRootHost` or `node` happens to be the `document` itself (which is possible\n // if a tabbable/focusable node was quickly added to the DOM, focused, and then removed\n // from the DOM as in https://github.com/focus-trap/focus-trap-react/issues/905), then\n // `ownerDocument` will be `null`, hence the optional chaining on it.\n let nodeRoot = node && getRootNode(node);\n let nodeRootHost = nodeRoot?.host;\n\n // in some cases, a detached node will return itself as the root instead of a document or\n // shadow root object, in which case, we shouldn't try to look further up the host chain\n let attached = false;\n if (nodeRoot && nodeRoot !== node) {\n attached = !!(\n nodeRootHost?.ownerDocument?.contains(nodeRootHost) ||\n node?.ownerDocument?.contains(node)\n );\n\n while (!attached && nodeRootHost) {\n // since it's not attached and we have a root host, the node MUST be in a nested shadow DOM,\n // which means we need to get the host's host and check if that parent host is contained\n // in (i.e. attached to) the document\n nodeRoot = getRootNode(nodeRootHost);\n nodeRootHost = nodeRoot?.host;\n attached = !!nodeRootHost?.ownerDocument?.contains(nodeRootHost);\n }\n }\n\n return attached;\n};\n\nconst isZeroArea = function (node) {\n const { width, height } = node.getBoundingClientRect();\n return width === 0 && height === 0;\n};\nconst isHidden = function (node, { displayCheck, getShadowRoot }) {\n // NOTE: visibility will be `undefined` if node is detached from the document\n // (see notes about this further down), which means we will consider it visible\n // (this is legacy behavior from a very long way back)\n // NOTE: we check this regardless of `displayCheck=\"none\"` because this is a\n // _visibility_ check, not a _display_ check\n if (getComputedStyle(node).visibility === 'hidden') {\n return true;\n }\n\n const isDirectSummary = matches.call(node, 'details>summary:first-of-type');\n const nodeUnderDetails = isDirectSummary ? node.parentElement : node;\n if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {\n return true;\n }\n\n if (\n !displayCheck ||\n displayCheck === 'full' ||\n displayCheck === 'legacy-full'\n ) {\n if (typeof getShadowRoot === 'function') {\n // figure out if we should consider the node to be in an undisclosed shadow and use the\n // 'non-zero-area' fallback\n const originalNode = node;\n while (node) {\n const parentElement = node.parentElement;\n const rootNode = getRootNode(node);\n if (\n parentElement &&\n !parentElement.shadowRoot &&\n getShadowRoot(parentElement) === true // check if there's an undisclosed shadow\n ) {\n // node has an undisclosed shadow which means we can only treat it as a black box, so we\n // fall back to a non-zero-area test\n return isZeroArea(node);\n } else if (node.assignedSlot) {\n // iterate up slot\n node = node.assignedSlot;\n } else if (!parentElement && rootNode !== node.ownerDocument) {\n // cross shadow boundary\n node = rootNode.host;\n } else {\n // iterate up normal dom\n node = parentElement;\n }\n }\n\n node = originalNode;\n }\n // else, `getShadowRoot` might be true, but all that does is enable shadow DOM support\n // (i.e. it does not also presume that all nodes might have undisclosed shadows); or\n // it might be a falsy value, which means shadow DOM support is disabled\n\n // Since we didn't find it sitting in an undisclosed shadow (or shadows are disabled)\n // now we can just test to see if it would normally be visible or not, provided it's\n // attached to the main document.\n // NOTE: We must consider case where node is inside a shadow DOM and given directly to\n // `isTabbable()` or `isFocusable()` -- regardless of `getShadowRoot` option setting.\n\n if (isNodeAttached(node)) {\n // this works wherever the node is: if there's at least one client rect, it's\n // somehow displayed; it also covers the CSS 'display: contents' case where the\n // node itself is hidden in place of its contents; and there's no need to search\n // up the hierarchy either\n return !node.getClientRects().length;\n }\n\n // Else, the node isn't attached to the document, which means the `getClientRects()`\n // API will __always__ return zero rects (this can happen, for example, if React\n // is used to render nodes onto a detached tree, as confirmed in this thread:\n // https://github.com/facebook/react/issues/9117#issuecomment-284228870)\n //\n // It also means that even window.getComputedStyle(node).display will return `undefined`\n // because styles are only computed for nodes that are in the document.\n //\n // NOTE: THIS HAS BEEN THE CASE FOR YEARS. It is not new, nor is it caused by tabbable\n // somehow. Though it was never stated officially, anyone who has ever used tabbable\n // APIs on nodes in detached containers has actually implicitly used tabbable in what\n // was later (as of v5.2.0 on Apr 9, 2021) called `displayCheck=\"none\"` mode -- essentially\n // considering __everything__ to be visible because of the innability to determine styles.\n //\n // v6.0.0: As of this major release, the default 'full' option __no longer treats detached\n // nodes as visible with the 'none' fallback.__\n if (displayCheck !== 'legacy-full') {\n return true; // hidden\n }\n // else, fallback to 'none' mode and consider the node visible\n } else if (displayCheck === 'non-zero-area') {\n // NOTE: Even though this tests that the node's client rect is non-zero to determine\n // whether it's displayed, and that a detached node will __always__ have a zero-area\n // client rect, we don't special-case for whether the node is attached or not. In\n // this mode, we do want to consider nodes that have a zero area to be hidden at all\n // times, and that includes attached or not.\n return isZeroArea(node);\n }\n\n // visible, as far as we can tell, or per current `displayCheck=none` mode, we assume\n // it's visible\n return false;\n};\n\n// form fields (nested) inside a disabled fieldset are not focusable/tabbable\n// unless they are in the _first_ <legend> element of the top-most disabled\n// fieldset\nconst isDisabledFromFieldset = function (node) {\n if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {\n let parentNode = node.parentElement;\n // check if `node` is contained in a disabled <fieldset>\n while (parentNode) {\n if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {\n // look for the first <legend> among the children of the disabled <fieldset>\n for (let i = 0; i < parentNode.children.length; i++) {\n const child = parentNode.children.item(i);\n // when the first <legend> (in document order) is found\n if (child.tagName === 'LEGEND') {\n // if its parent <fieldset> is not nested in another disabled <fieldset>,\n // return whether `node` is a descendant of its first <legend>\n return matches.call(parentNode, 'fieldset[disabled] *')\n ? true\n : !child.contains(node);\n }\n }\n // the disabled <fieldset> containing `node` has no <legend>\n return true;\n }\n parentNode = parentNode.parentElement;\n }\n }\n\n // else, node's tabbable/focusable state should not be affected by a fieldset's\n // enabled/disabled state\n return false;\n};\n\nconst isNodeMatchingSelectorFocusable = function (options, node) {\n if (\n node.disabled ||\n // we must do an inert look up to filter out any elements inside an inert ancestor\n // because we're limited in the type of selectors we can use in JSDom (see related\n // note related to `candidateSelectors`)\n isInert(node) ||\n isHiddenInput(node) ||\n isHidden(node, options) ||\n // For a details element with a summary, the summary element gets the focus\n isDetailsWithSummary(node) ||\n isDisabledFromFieldset(node)\n ) {\n return false;\n }\n return true;\n};\n\nconst isNodeMatchingSelectorTabbable = function (options, node) {\n if (\n isNonTabbableRadio(node) ||\n getTabIndex(node) < 0 ||\n !isNodeMatchingSelectorFocusable(options, node)\n ) {\n return false;\n }\n return true;\n};\n\nconst isValidShadowRootTabbable = function (shadowHostNode) {\n const tabIndex = parseInt(shadowHostNode.getAttribute('tabindex'), 10);\n if (isNaN(tabIndex) || tabIndex >= 0) {\n return true;\n }\n // If a custom element has an explicit negative tabindex,\n // browsers will not allow tab targeting said element's children.\n return false;\n};\n\n/**\n * @param {Array.<Element|CandidateScope>} candidates\n * @returns Element[]\n */\nconst sortByOrder = function (candidates) {\n const regularTabbables = [];\n const orderedTabbables = [];\n candidates.forEach(function (item, i) {\n const isScope = !!item.scopeParent;\n const element = isScope ? item.scopeParent : item;\n const candidateTabindex = getSortOrderTabIndex(element, isScope);\n const elements = isScope ? sortByOrder(item.candidates) : element;\n if (candidateTabindex === 0) {\n isScope\n ? regularTabbables.push(...elements)\n : regularTabbables.push(element);\n } else {\n orderedTabbables.push({\n documentOrder: i,\n tabIndex: candidateTabindex,\n item: item,\n isScope: isScope,\n content: elements,\n });\n }\n });\n\n return orderedTabbables\n .sort(sortOrderedTabbables)\n .reduce((acc, sortable) => {\n sortable.isScope\n ? acc.push(...sortable.content)\n : acc.push(sortable.content);\n return acc;\n }, [])\n .concat(regularTabbables);\n};\n\nconst tabbable = function (container, options) {\n options = options || {};\n\n let candidates;\n if (options.getShadowRoot) {\n candidates = getCandidatesIteratively(\n [container],\n options.includeContainer,\n {\n filter: isNodeMatchingSelectorTabbable.bind(null, options),\n flatten: false,\n getShadowRoot: options.getShadowRoot,\n shadowRootFilter: isValidShadowRootTabbable,\n }\n );\n } else {\n candidates = getCandidates(\n container,\n options.includeContainer,\n isNodeMatchingSelectorTabbable.bind(null, options)\n );\n }\n return sortByOrder(candidates);\n};\n\nconst focusable = function (container, options) {\n options = options || {};\n\n let candidates;\n if (options.getShadowRoot) {\n candidates = getCandidatesIteratively(\n [container],\n options.includeContainer,\n {\n filter: isNodeMatchingSelectorFocusable.bind(null, options),\n flatten: true,\n getShadowRoot: options.getShadowRoot,\n }\n );\n } else {\n candidates = getCandidates(\n container,\n options.includeContainer,\n isNodeMatchingSelectorFocusable.bind(null, options)\n );\n }\n\n return candidates;\n};\n\nconst isTabbable = function (node, options) {\n options = options || {};\n if (!node) {\n throw new Error('No node provided');\n }\n if (matches.call(node, candidateSelector) === false) {\n return false;\n }\n return isNodeMatchingSelectorTabbable(options, node);\n};\n\nconst focusableCandidateSelector = /* #__PURE__ */ candidateSelectors\n .concat('iframe')\n .join(',');\n\nconst isFocusable = function (node, options) {\n options = options || {};\n if (!node) {\n throw new Error('No node provided');\n }\n if (matches.call(node, focusableCandidateSelector) === false) {\n return false;\n }\n return isNodeMatchingSelectorFocusable(options, node);\n};\n\nexport { tabbable, focusable, isTabbable, isFocusable, getTabIndex };\n","import A11yDialog from 'a11y-dialog';\nimport { isTabbable } from 'tabbable';\n\nconst defaultConfig = () => ({\n /** Class which indicates that modal is open */\n classModalIsOpen: 'is-active',\n /** Class on body which indicates that modal is open */\n classModalIsOpenBody: 'has-modal',\n /** Root of page content which should be hidden when modal is open */\n root: '#root',\n /** Move modal into this element selector (must be unique in DOM) */\n modalsRoot: '#root-modals',\n});\n\nexport default class Modal {\n constructor(element, config) {\n this.element = element;\n this.config = { ...defaultConfig(), ...config };\n\n this.handleShow = this.handleShow.bind(this);\n this.handleHide = this.handleHide.bind(this);\n this.show = this.show.bind(this);\n this.hide = this.hide.bind(this);\n this.headerFirstItemSpacing = this.headerFirstItemSpacing.bind(this);\n\n Modal.moveToModalRoot = Modal.moveToModalRoot.bind(this);\n Modal.lockBody = Modal.lockBody.bind(this);\n Modal.unlockBody = Modal.unlockBody.bind(this);\n\n this.element.ODS_Modal = this;\n\n this.init();\n\n return this;\n }\n\n static getInstance(el) {\n return el && el.ODS_Modal ? el.ODS_Modal : null;\n }\n\n handleShow(el) {\n this.constructor.lockBody();\n if (el) el.classList.add(this.config.classModalIsOpen);\n\n // Long modals can have first focusabble element under the fold, so static content above the fold should be focused instead to prevent undesirable scrolling\n const initialFocusEl = el.querySelector('[data-a11y-dialog-initial-focus]');\n\n if (!initialFocusEl) {\n return;\n }\n\n // set tabindex to -1 so element can't be focused via keyboard\n if (!isTabbable(initialFocusEl)) {\n initialFocusEl.setAttribute('tabindex', '-1');\n }\n\n initialFocusEl.focus();\n }\n\n handleHide(el) {\n this.constructor.unlockBody();\n if (el) el.classList.remove(this.config.classModalIsOpen);\n }\n\n show() {\n this.instance.show();\n }\n\n hide() {\n this.instance.hide();\n }\n\n headerFirstItemSpacing() {\n /**\n * Target the first element which is not .btn inside .modal__header and add margin-right 40px.\n * css has its limitations and it is not possible with pseudo selectors\n */\n const modalHeader = this.element.querySelector('.modal__header');\n if (modalHeader) {\n const firstNonBtnElement = Array.from(modalHeader.children).find(\n child => !child.classList.contains('btn')\n );\n if (firstNonBtnElement) {\n firstNonBtnElement.style.marginRight = '40px';\n }\n }\n }\n\n init() {\n if (this.config.modalsRoot) {\n Modal.moveToModalRoot(\n this.element,\n document.querySelector(this.config.modalsRoot)\n );\n }\n\n this.instance = new A11yDialog(\n this.element,\n document.querySelector(this.config.root)\n );\n\n this.instance.on('show', this.handleShow);\n\n this.instance.on('hide', this.handleHide);\n\n this.headerFirstItemSpacing();\n }\n\n destroy() {\n this.instance.destroy();\n this.element.ODS_Modal = this;\n }\n\n update() {\n this.destroy();\n this.init();\n }\n\n static moveToModalRoot(el, container) {\n if (container) {\n container.appendChild(el);\n } else {\n // eslint-disable-next-line no-console\n console.warn(\n `\\`modalsRoot: ${this.config.modalsRoot}\\` element is not present in DOM. Modal will be placed inside content which can affect it's styling. Please provide \\`modalsRoot\\` selector (should be placed outside of main contant, usualy in end of <body /> tag)`\n );\n }\n }\n\n static lockBody(\n className = this.config.classModalIsOpenBody,\n root = this.config.root\n ) {\n const container = document.querySelector(root);\n // store current scrollTop value\n const scrollTop =\n document.documentElement.scrollTop || document.body.scrollTop;\n document.body.setAttribute('data-lock-scrolltop', scrollTop);\n\n // add locking styles to body\n document.body.style.height = '100%';\n document.body.style.width = '100%';\n document.body.style.overflow = 'hidden';\n document.body.style.position = 'fixed';\n\n // add locking styles to scrollTop\n if (container) {\n /* eslint-disable no-param-reassign */\n container.style.height = '100%';\n container.style.width = '100%';\n container.style.overflow = 'hidden';\n container.style.position = 'fixed';\n // scroll page-container to scrollTop position\n container.scrollTop = scrollTop;\n /* eslint-enable no-param-reassign */\n }\n\n // add modal class\n document.body.classList.add(className);\n\n // attempt to scroll top fixed position\n window.requestAnimationFrame(() => {\n window.scrollTo(0, scrollTop);\n });\n }\n\n static unlockBody(\n className = this.config.classModalIsOpenBody,\n root = this.config.root\n ) {\n const container = document.querySelector(root);\n const scrollTop = document.body.getAttribute('data-lock-scrolltop');\n\n // remove locking styles from body\n document.body.style.height = '';\n document.body.style.width = '';\n document.body.style.overflow = '';\n document.body.style.position = '';\n\n // add modal class\n document.body.classList.remove(className);\n\n // remove locking styles from page-container\n if (container) {\n /* eslint-disable no-param-reassign */\n container.style.height = '';\n container.style.width = '';\n container.style.overflow = '';\n container.style.position = '';\n /* eslint-enable no-param-reassign */\n }\n\n // set scroll position back\n window.requestAnimationFrame(() => {\n window.scrollTo({ left: 0, top: scrollTop, behavior: 'instant' });\n });\n }\n}\n"],"sourceRoot":""}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
!function(t,e){if("object"===typeof exports&&"object"===typeof module)module.exports=e(require("react"));else if("function"===typeof define&&define.amd)define(["react"],e);else{var n="object"===typeof exports?e(require("react")):e(t.React);for(var i in n)("object"===typeof exports?exports:t)[i]=n[i]}}(this,(function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=117)}({0:function(e,n){e.exports=t},1:function(t,e,n){var i;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(t=s(t,r(n)))}return t}function r(t){if("string"===typeof t||"number"===typeof t)return t;if("object"!==typeof t)return"";if(Array.isArray(t))return o.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var i in t)n.call(t,i)&&t[i]&&(e=s(e,i));return e}function s(t,e){return e?t?t+" "+e:t+e:t}t.exports?(o.default=o,t.exports=o):void 0===(i=function(){return o}.apply(e,[]))||(t.exports=i)}()},117:function(t,e,n){"use strict";n.r(e),n.d(e,"ModalBody",(function(){return p}));var i=n(0),o=n.n(i),r=n(1),s=n.n(r),a=n(21),l=n(13),d=n(16),c=n(62),u=n(81);var h=t=>o.a.createElement(d.IconButton,Object.assign({iconName:"delete",type:"ghost",isSquare:!0,size:"small",className:"modal__close","data-a11y-dialog-hide":!0,"aria-label":"Zatvori\u0165"},t));const f=({size:t,children:e,...n})=>o.a.createElement("h2",Object.assign({className:s()({"display-3":"large"===t,h2:"small"===t})},n),e);f.displayName="ModalTitle";var m=f;const y=({color:t,className:e,children:n,...i})=>o.a.createElement("div",Object.assign({className:s()("modal__body",e,{["bg-"+t]:t,"modal__body--colorful":t})},i),n);y.displayName="ModalBody";var p=y;const b={actions:[o.a.createElement(d.default,{key:"1","data-a11y-dialog-hide":!0},"Zatvori\u0165")],noInit:!1},v=({actions:t,className:e,children:n,hasStickyFooter:r,id:d,noInit:f,isActive:y,size:b,title:v,renderBody:g,renderTitle:w,renderFooter:_,fullHeight:E,...S})=>{const[N,O]=Object(a.a)(u.default);Object(i.useEffect)(()=>{y&&O.current.show()},[O,y]);const x=s()("modal__dialog",{["modal__dialog--"+b]:b,"modal__dialog--full-height":E},e),j=d+"-title",A=w?w(d):o.a.createElement(m,{id:j,size:b,"data-a11y-dialog-initial-focus":!0},v);return o.a.createElement("div",{id:d,"data-modal":!f,className:"modal",ref:N,role:"dialog","aria-hidden":"true","aria-modal":"true","aria-labelledby":j},o.a.createElement("div",{className:"modal__overlay",tabIndex:"-1","data-a11y-dialog-hide":!0}),o.a.createElement("div",Object.assign({className:x,role:"document"},S),o.a.createElement("div",{className:"modal__header"},o.a.createElement(h,null),A),g?g():o.a.createElement(p,null,n),o.a.createElement("div",{className:s()("modal__footer",{"modal__footer--sticky":r})},_?_():o.a.createElement(l.a,{condition:t.length>1,wrapper:o.a.createElement(c.default,null)},t.map(t=>t)))))};v.defaultProps=b,v.displayName="Modal";var g=v;n(160),e.default=g},13:function(t,e,n){"use strict";var i=n(0);e.a=({condition:t,wrapper:e,children:n})=>t?Object(i.cloneElement)(e,e.props,n):n},16:function(t,e,n){"use strict";n.r(e),n.d(e,"ButtonPrimary",(function(){return h})),n.d(e,"ButtonFill",(function(){return f})),n.d(e,"ButtonGhost",(function(){return m})),n.d(e,"IconButton",(function(){return u}));var i=n(0),o=n.n(i),r=n(1),s=n.n(r);const a=o.a.forwardRef(({className:t,children:e,htmlType:n,href:i,isActive:r,isDefault:a,isDisabled:l,isInverse:d,size:c,isSquare:u,type:h,elemRef:f,...m},y)=>{let p="button";i&&(p="a");const b={"aria-disabled":l,href:i,type:i?null:n,className:s()("btn",{"btn--square":u,["btn--"+c]:c,["btn--"+h]:h,"btn--default":a,"btn--inverse":d,"is-active":r},t),ref:f,...m};return o.a.createElement(p,Object.assign({ref:y},b),e)});a.displayName="Button",a.defaultProps={htmlType:"button"};var l=a,d=n(3);const c=o.a.forwardRef(({iconName:t,iconPosition:e,iconClassName:n,children:i,size:r,isSquare:a,...c},u)=>{const h=({className:e,...i})=>o.a.createElement(d.default,Object.assign({name:t,size:null!==r&&void 0!==r?r:"medium",className:s()(n,e)},i));return a?o.a.createElement(l,Object.assign({size:r,isSquare:!0},c),o.a.createElement(h,null),o.a.createElement("span",{className:"visually-hidden"},i)):o.a.createElement(l,Object.assign({ref:u,size:r},c),"left"===e&&o.a.createElement(h,{className:"btn__icon-left"}),i,"right"===e&&o.a.createElement(h,{className:"btn__icon-right"}))});c.defaultProps={iconPosition:"left"},c.displayName="IconButton";var u=c;n(67),e.default=l;const h=t=>o.a.createElement(l,Object.assign({type:"primary"},t));h.displayName="ButtonPrimary";const f=t=>o.a.createElement(l,Object.assign({type:"fill"},t));f.displayName="ButtonFill";const m=t=>o.a.createElement(l,Object.assign({type:"ghost"},t));m.displayName="ButtonGhost"},160:function(t,e,n){},17:function(t,e,n){},21:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n(0);n(6);const o=(t,e={})=>{const n=Object(i.useRef)(null),o=Object(i.useRef)(e);Object(i.useEffect)(()=>{o.current=null!==e&&void 0!==e?e:{}},[e]);const r=Object(i.useCallback)(e=>{const i=o.current;var r,s;e&&(null===n.current?n.current=new t(e,i):null===(r=(s=n.current).update)||void 0===r||r.call(s,i))},[t]);return Object(i.useEffect)(()=>()=>{var t,e;n.current&&(null===(t=(e=n.current).destroy)||void 0===t||t.call(e),n.current=null)},[]),[r,n]}},3:function(t,e,n){"use strict";n.r(e),n.d(e,"SpritePathContext",(function(){return d}));var i=n(0),o=n.n(i),r=n(1),s=n.n(r);const a=({className:t,alt:e,color:n,name:r,size:a,spritePath:l="/sprite.svg",...c})=>{const u=Object(i.useContext)(d),h=s()("icon",{["icon--"+a]:a,["icon--"+n]:n},t);return o.a.createElement("svg",Object.assign({className:h,"aria-hidden":void 0!==e?void 0:"true",role:void 0!==e?"img":void 0,title:void 0!==e&&e.length>0?e:void 0},c),o.a.createElement("use",{xlinkHref:"/sprite.svg"!==l||"undefined"===typeof u?`${l}#${r}`:`${u}#${r}`}))};a.displayName="Icon";var l=a,d=(n(17),o.a.createContext());e.default=l},6:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));let i=0;function o(t){return`id${t?"-"+t:""}-${i+=1}`}},62:function(t,e,n){"use strict";n.r(e);var i=n(0),o=n.n(i),r=n(1),s=n.n(r);const a=({isStackedOnXs:t,children:e,className:n,...i})=>o.a.createElement("div",Object.assign({className:s()("buttons",{"buttons--stack-on-xs":t},n)},i),e);a.displayName="Buttons";var l=a;n(91),e.default=l},67:function(t,e,n){},81:function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return E}));var i=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"])','input[type="radio"]:not([disabled]):not([tabindex^="-"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','iframe:not([tabindex^="-"])','audio[controls]:not([tabindex^="-"])','video[controls]:not([tabindex^="-"])','[contenteditable]:not([tabindex^="-"])','[tabindex]:not([tabindex^="-"])'];function o(t){this._show=this.show.bind(this),this._hide=this.hide.bind(this),this._maintainFocus=this._maintainFocus.bind(this),this._bindKeypress=this._bindKeypress.bind(this),this.$el=t,this.shown=!1,this._id=this.$el.getAttribute("data-a11y-dialog")||this.$el.id,this._previouslyFocused=null,this._listeners={},this.create()}function r(t,e){return n=(e||document).querySelectorAll(t),Array.prototype.slice.call(n);var n}function s(t){(t.querySelector("[autofocus]")||t).focus()}function a(){r("[data-a11y-dialog]").forEach((function(t){new o(t)}))}o.prototype.create=function(){this.$el.setAttribute("aria-hidden",!0),this.$el.setAttribute("aria-modal",!0),this.$el.setAttribute("tabindex",-1),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),this._openers=r('[data-a11y-dialog-show="'+this._id+'"]'),this._openers.forEach(function(t){t.addEventListener("click",this._show)}.bind(this));const t=this.$el;return this._closers=r("[data-a11y-dialog-hide]",this.$el).filter((function(e){return e.closest('[aria-modal="true"], [data-a11y-dialog]')===t})).concat(r('[data-a11y-dialog-hide="'+this._id+'"]')),this._closers.forEach(function(t){t.addEventListener("click",this._hide)}.bind(this)),this._fire("create"),this},o.prototype.show=function(t){if(this.shown)return this;this._previouslyFocused=document.activeElement;const e=t&&t.target?t.target:null;return e&&Object.is(this._previouslyFocused,document.body)&&(this._previouslyFocused=e),this.$el.removeAttribute("aria-hidden"),this.shown=!0,s(this.$el),document.body.addEventListener("focus",this._maintainFocus,!0),document.addEventListener("keydown",this._bindKeypress),this._fire("show",t),this},o.prototype.hide=function(t){return this.shown?(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),this._previouslyFocused&&this._previouslyFocused.focus&&this._previouslyFocused.focus(),document.body.removeEventListener("focus",this._maintainFocus,!0),document.removeEventListener("keydown",this._bindKeypress),this._fire("hide",t),this):this},o.prototype.destroy=function(){return this.hide(),this._openers.forEach(function(t){t.removeEventListener("click",this._show)}.bind(this)),this._closers.forEach(function(t){t.removeEventListener("click",this._hide)}.bind(this)),this._fire("destroy"),this._listeners={},this},o.prototype.on=function(t,e){return"undefined"===typeof this._listeners[t]&&(this._listeners[t]=[]),this._listeners[t].push(e),this},o.prototype.off=function(t,e){var n=(this._listeners[t]||[]).indexOf(e);return n>-1&&this._listeners[t].splice(n,1),this},o.prototype._fire=function(t,e){var n=this._listeners[t]||[],i=new CustomEvent(t,{detail:e});this.$el.dispatchEvent(i),n.forEach(function(t){t(this.$el,e)}.bind(this))},o.prototype._bindKeypress=function(t){const e=document.activeElement;e&&e.closest('[aria-modal="true"]')!==this.$el||(this.shown&&"Escape"===t.key&&"alertdialog"!==this.$el.getAttribute("role")&&(t.preventDefault(),this.hide(t)),this.shown&&"Tab"===t.key&&function(t,e){var n=function(t){return r(i.join(","),t).filter((function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}))}(t),o=n.indexOf(document.activeElement);e.shiftKey&&0===o?(n[n.length-1].focus(),e.preventDefault()):e.shiftKey||o!==n.length-1||(n[0].focus(),e.preventDefault())}(this.$el,t))},o.prototype._maintainFocus=function(t){!this.shown||t.target.closest('[aria-modal="true"]')||t.target.closest("[data-a11y-dialog-ignore-focus-trap]")||s(this.$el)},"undefined"!==typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",a):window.requestAnimationFrame?window.requestAnimationFrame(a):window.setTimeout(a,16));var l=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],d=l.join(","),c="undefined"===typeof Element,u=c?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,h=!c&&Element.prototype.getRootNode?function(t){var e;return null===t||void 0===t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}:function(t){return null===t||void 0===t?void 0:t.ownerDocument},f=function t(e,n){var i;void 0===n&&(n=!0);var o=null===e||void 0===e||null===(i=e.getAttribute)||void 0===i?void 0:i.call(e,"inert");return""===o||"true"===o||n&&e&&t(e.parentNode)},m=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},y=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||function(t){var e,n=null===t||void 0===t||null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"contenteditable");return""===n||"true"===n}(t))&&!m(t)?0:t.tabIndex},p=function(t){return"INPUT"===t.tagName},b=function(t){return function(t){return p(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||h(t),i=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!==typeof window&&"undefined"!==typeof window.CSS&&"function"===typeof window.CSS.escape)e=i(window.CSS.escape(t.name));else try{e=i(t.name)}catch(r){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",r.message),!1}var o=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]}(e,t.form);return!o||o===t}(t)},v=function(t){var e=t.getBoundingClientRect(),n=e.width,i=e.height;return 0===n&&0===i},g=function(t,e){var n=e.displayCheck,i=e.getShadowRoot;if("hidden"===getComputedStyle(t).visibility)return!0;var o=u.call(t,"details>summary:first-of-type")?t.parentElement:t;if(u.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return v(t)}else{if("function"===typeof i){for(var r=t;t;){var s=t.parentElement,a=h(t);if(s&&!s.shadowRoot&&!0===i(s))return v(t);t=t.assignedSlot?t.assignedSlot:s||a===t.ownerDocument?s:a.host}t=r}if(function(t){var e,n,i,o,r=t&&h(t),s=null===(e=r)||void 0===e?void 0:e.host,a=!1;if(r&&r!==t)for(a=!!(null!==(n=s)&&void 0!==n&&null!==(i=n.ownerDocument)&&void 0!==i&&i.contains(s)||null!==t&&void 0!==t&&null!==(o=t.ownerDocument)&&void 0!==o&&o.contains(t));!a&&s;){var l,d,c;a=!(null===(d=s=null===(l=r=h(s))||void 0===l?void 0:l.host)||void 0===d||null===(c=d.ownerDocument)||void 0===c||!c.contains(s))}return a}(t))return!t.getClientRects().length;if("legacy-full"!==n)return!0}return!1},w=function(t,e){return!(e.disabled||f(e)||function(t){return p(t)&&"hidden"===t.type}(e)||g(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n<e.children.length;n++){var i=e.children.item(n);if("LEGEND"===i.tagName)return!!u.call(e,"fieldset[disabled] *")||!i.contains(t)}return!0}e=e.parentElement}return!1}(e))},_=function(t,e){return!(b(e)||y(e)<0||!w(t,e))};class E{constructor(t,e){return this.element=t,this.config={classModalIsOpen:"is-active",classModalIsOpenBody:"has-modal",root:"#root",modalsRoot:"#root-modals",...e},this.handleShow=this.handleShow.bind(this),this.handleHide=this.handleHide.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.headerFirstItemSpacing=this.headerFirstItemSpacing.bind(this),E.moveToModalRoot=E.moveToModalRoot.bind(this),E.lockBody=E.lockBody.bind(this),E.unlockBody=E.unlockBody.bind(this),this.element.ODS_Modal=this,this.init(),this}static getInstance(t){return t&&t.ODS_Modal?t.ODS_Modal:null}handleShow(t){this.constructor.lockBody(),t&&t.classList.add(this.config.classModalIsOpen);const e=t.querySelector("[data-a11y-dialog-initial-focus]");e&&(function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==u.call(t,d)&&_(e,t)}(e)||e.setAttribute("tabindex","-1"),e.focus())}handleHide(t){this.constructor.unlockBody(),t&&t.classList.remove(this.config.classModalIsOpen)}show(){this.instance.show()}hide(){this.instance.hide()}headerFirstItemSpacing(){const t=this.element.querySelector(".modal__header");if(t){const e=Array.from(t.children).find(t=>!t.classList.contains("btn"));e&&(e.style.marginRight="40px")}}init(){this.config.modalsRoot&&E.moveToModalRoot(this.element,document.querySelector(this.config.modalsRoot)),this.instance=new o(this.element,document.querySelector(this.config.root)),this.instance.on("show",this.handleShow),this.instance.on("hide",this.handleHide),this.headerFirstItemSpacing()}destroy(){this.instance.destroy(),this.element.ODS_Modal=this}update(){this.destroy(),this.init()}static moveToModalRoot(t,e){e?e.appendChild(t):console.warn(`\`modalsRoot: ${this.config.modalsRoot}\` element is not present in DOM. Modal will be placed inside content which can affect it's styling. Please provide \`modalsRoot\` selector (should be placed outside of main contant, usualy in end of <body /> tag)`)}static lockBody(t=this.config.classModalIsOpenBody,e=this.config.root){const n=document.querySelector(e),i=document.documentElement.scrollTop||document.body.scrollTop;document.body.setAttribute("data-lock-scrolltop",i),document.body.style.height="100%",document.body.style.width="100%",document.body.style.overflow="hidden",document.body.style.position="fixed",n&&(n.style.height="100%",n.style.width="100%",n.style.overflow="hidden",n.style.position="fixed",n.scrollTop=i),document.body.classList.add(t),window.requestAnimationFrame(()=>{window.scrollTo(0,i)})}static unlockBody(t=this.config.classModalIsOpenBody,e=this.config.root){const n=document.querySelector(e),i=document.body.getAttribute("data-lock-scrolltop");document.body.style.height="",document.body.style.width="",document.body.style.overflow="",document.body.style.position="",document.body.classList.remove(t),n&&(n.style.height="",n.style.width="",n.style.overflow="",n.style.position=""),window.requestAnimationFrame(()=>{window.scrollTo({left:0,top:i,behavior:"instant"})})}}},91:function(t,e,n){}})}));
|
|
3
|
-
//# sourceMappingURL=index.js.map
|