@orangesk/orange-design-system 2.0.0-alpha.1 → 2.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/components/Accordion/index.js +3 -1157
- package/build/components/Accordion/index.js.map +1 -1
- package/build/components/Accordion/style.css +1 -1
- package/build/components/Accordion/style.css.map +1 -1
- package/build/components/Alert/index.js +3 -1907
- package/build/components/Alert/index.js.map +1 -1
- package/build/components/Alert/style.css +1 -1
- package/build/components/Alert/style.css.map +1 -1
- package/build/components/AnchorNavigation/index.js +16 -0
- package/build/components/AnchorNavigation/index.js.map +1 -0
- package/build/components/AnchorNavigation/style.css +2 -0
- package/build/components/AnchorNavigation/style.css.map +1 -0
- package/build/components/Bar/index.js +16 -0
- package/build/components/Bar/index.js.map +1 -0
- package/build/components/Bar/style.css +2 -0
- package/build/components/Bar/style.css.map +1 -0
- package/build/components/BlockAction/index.js +16 -0
- package/build/components/BlockAction/index.js.map +1 -0
- package/build/components/BlockAction/style.css +2 -0
- package/build/components/BlockAction/style.css.map +1 -0
- package/build/components/BodyBanner/index.js +16 -0
- package/build/components/BodyBanner/index.js.map +1 -0
- package/build/components/BodyBanner/style.css +2 -0
- package/build/components/BodyBanner/style.css.map +1 -0
- package/build/components/Breadcrumbs/index.js +3 -674
- package/build/components/Breadcrumbs/index.js.map +1 -1
- package/build/components/Breadcrumbs/style.css +1 -1
- package/build/components/Breadcrumbs/style.css.map +1 -1
- package/build/components/Button/index.js +3 -721
- package/build/components/Button/index.js.map +1 -1
- package/build/components/Button/style.css +1 -1
- package/build/components/Button/style.css.map +1 -1
- package/build/components/Buttons/index.js +3 -601
- package/build/components/Buttons/index.js.map +1 -1
- package/build/components/Buttons/style.css +1 -1
- package/build/components/Buttons/style.css.map +1 -1
- package/build/components/Card/index.js +16 -0
- package/build/components/Card/index.js.map +1 -0
- package/build/components/Card/style.css +2 -0
- package/build/components/Card/style.css.map +1 -0
- package/build/components/Carousel/index.js +16 -0
- package/build/components/Carousel/index.js.map +1 -0
- package/build/components/Carousel/style.css +2 -0
- package/build/components/Carousel/style.css.map +1 -0
- package/build/components/CarouselPromotions/index.js +16 -0
- package/build/components/CarouselPromotions/index.js.map +1 -0
- package/build/components/CarouselPromotions/style.css +2 -0
- package/build/components/CarouselPromotions/style.css.map +1 -0
- package/build/components/CartTable/index.js +16 -0
- package/build/components/CartTable/index.js.map +1 -0
- package/build/components/CartTable/style.css +2 -0
- package/build/components/CartTable/style.css.map +1 -0
- package/build/components/Code/index.js +11 -0
- package/build/components/Code/index.js.map +1 -0
- package/build/components/Code/style.css +2 -0
- package/build/components/Code/style.css.map +1 -0
- package/build/components/Container/index.js +3 -598
- package/build/components/Container/index.js.map +1 -1
- package/build/components/Container/style.css +1 -1
- package/build/components/Container/style.css.map +1 -1
- package/build/components/Controls/index.js +16 -0
- package/build/components/Controls/index.js.map +1 -0
- package/build/components/Controls/style.css +2 -0
- package/build/components/Controls/style.css.map +1 -0
- package/build/components/Cover/index.js +16 -0
- package/build/components/Cover/index.js.map +1 -0
- package/build/components/Cover/style.css +2 -0
- package/build/components/Cover/style.css.map +1 -0
- package/build/components/Divider/index.js +16 -0
- package/build/components/Divider/index.js.map +1 -0
- package/build/components/Divider/style.css +2 -0
- package/build/components/Divider/style.css.map +1 -0
- package/build/components/DocumentationSidebar/index.js +16 -0
- package/build/components/DocumentationSidebar/index.js.map +1 -0
- package/build/components/DocumentationSidebar/style.css +2 -0
- package/build/components/DocumentationSidebar/style.css.map +1 -0
- package/build/components/Dropdown/index.js +16 -0
- package/build/components/Dropdown/index.js.map +1 -0
- package/build/components/Dropdown/style.css +2 -0
- package/build/components/Dropdown/style.css.map +1 -0
- package/build/components/Expander/index.js +16 -0
- package/build/components/Expander/index.js.map +1 -0
- package/build/components/Expander/style.css +2 -0
- package/build/components/Expander/style.css.map +1 -0
- package/build/components/FeatureAccordion/index.js +16 -0
- package/build/components/FeatureAccordion/index.js.map +1 -0
- package/build/components/FeatureAccordion/style.css +2 -0
- package/build/components/FeatureAccordion/style.css.map +1 -0
- package/build/components/Footer/index.js +16 -0
- package/build/components/Footer/index.js.map +1 -0
- package/build/components/Footer/style.css +2 -0
- package/build/components/Footer/style.css.map +1 -0
- package/build/components/Forms/index.js +18 -0
- package/build/components/Forms/index.js.map +1 -0
- package/build/components/Forms/style.css +2 -0
- package/build/components/Forms/style.css.map +1 -0
- package/build/components/Gauge/index.js +16 -0
- package/build/components/Gauge/index.js.map +1 -0
- package/build/components/Gauge/style.css +2 -0
- package/build/components/Gauge/style.css.map +1 -0
- package/build/components/Grid/index.js +3 -1069
- package/build/components/Grid/index.js.map +1 -1
- package/build/components/Grid/style.css +1 -1
- package/build/components/Grid/style.css.map +1 -1
- package/build/components/Hero/index.js +16 -0
- package/build/components/Hero/index.js.map +1 -0
- package/build/components/Hero/style.css +2 -0
- package/build/components/Hero/style.css.map +1 -0
- package/build/components/Icon/index.js +2 -619
- package/build/components/Icon/index.js.map +1 -1
- package/build/components/Icon/style.css +1 -1
- package/build/components/Icon/style.css.map +1 -1
- package/build/components/IconList/index.js +16 -0
- package/build/components/IconList/index.js.map +1 -0
- package/build/components/IconList/style.css +2 -0
- package/build/components/IconList/style.css.map +1 -0
- package/build/components/Image/index.js +3 -646
- package/build/components/Image/index.js.map +1 -1
- package/build/components/Image/style.css +1 -1
- package/build/components/Image/style.css.map +1 -1
- package/build/components/Link/index.js +2 -168
- package/build/components/Link/index.js.map +1 -1
- package/build/components/Link/style.css +1 -1
- package/build/components/Link/style.css.map +1 -1
- package/build/components/List/index.js +16 -0
- package/build/components/List/index.js.map +1 -0
- package/build/components/List/style.css +2 -0
- package/build/components/List/style.css.map +1 -0
- package/build/components/Loader/index.js +16 -0
- package/build/components/Loader/index.js.map +1 -0
- package/build/components/Loader/style.css +2 -0
- package/build/components/Loader/style.css.map +1 -0
- package/build/components/Modal/index.js +4 -3154
- package/build/components/Modal/index.js.map +1 -1
- package/build/components/Modal/style.css +1 -1
- package/build/components/Modal/style.css.map +1 -1
- package/build/components/Pagination/index.js +16 -0
- package/build/components/Pagination/index.js.map +1 -0
- package/build/components/Pagination/style.css +2 -0
- package/build/components/Pagination/style.css.map +1 -0
- package/build/components/Preview/index.js +83 -0
- package/build/components/Preview/index.js.map +1 -0
- package/build/components/Preview/style.css +2 -0
- package/build/components/Preview/style.css.map +1 -0
- package/build/components/Progress/index.js +16 -0
- package/build/components/Progress/index.js.map +1 -0
- package/build/components/Progress/style.css +2 -0
- package/build/components/Progress/style.css.map +1 -0
- package/build/components/PromoBanner/index.js +16 -0
- package/build/components/PromoBanner/index.js.map +1 -0
- package/build/components/PromoBanner/style.css +2 -0
- package/build/components/PromoBanner/style.css.map +1 -0
- package/build/components/PromotionCard/index.js +16 -0
- package/build/components/PromotionCard/index.js.map +1 -0
- package/build/components/PromotionCard/style.css +2 -0
- package/build/components/PromotionCard/style.css.map +1 -0
- package/build/components/Section/index.js +3 -619
- package/build/components/Section/index.js.map +1 -1
- package/build/components/Section/style.css +1 -1
- package/build/components/Section/style.css.map +1 -1
- package/build/components/Skeleton/index.js +16 -0
- package/build/components/Skeleton/index.js.map +1 -0
- package/build/components/Skeleton/style.css +2 -0
- package/build/components/Skeleton/style.css.map +1 -0
- package/build/components/SkipLink/index.js +16 -0
- package/build/components/SkipLink/index.js.map +1 -0
- package/build/components/SkipLink/style.css +2 -0
- package/build/components/SkipLink/style.css.map +1 -0
- package/build/components/Stepbar/index.js +16 -0
- package/build/components/Stepbar/index.js.map +1 -0
- package/build/components/Stepbar/style.css +2 -0
- package/build/components/Stepbar/style.css.map +1 -0
- package/build/components/Sticker/index.js +16 -0
- package/build/components/Sticker/index.js.map +1 -0
- package/build/components/Sticker/style.css +2 -0
- package/build/components/Sticker/style.css.map +1 -0
- package/build/components/Table/index.js +16 -0
- package/build/components/Table/index.js.map +1 -0
- package/build/components/Table/style.css +2 -0
- package/build/components/Table/style.css.map +1 -0
- package/build/components/Tabs/index.js +3 -1043
- package/build/components/Tabs/index.js.map +1 -1
- package/build/components/Tabs/style.css +1 -1
- package/build/components/Tabs/style.css.map +1 -1
- package/build/components/Tag/index.js +16 -0
- package/build/components/Tag/index.js.map +1 -0
- package/build/components/Tag/style.css +2 -0
- package/build/components/Tag/style.css.map +1 -0
- package/build/components/Testimonial/index.js +16 -0
- package/build/components/Testimonial/index.js.map +1 -0
- package/build/components/Testimonial/style.css +2 -0
- package/build/components/Testimonial/style.css.map +1 -0
- package/build/components/Tile/index.js +16 -0
- package/build/components/Tile/index.js.map +1 -0
- package/build/components/Tile/style.css +2 -0
- package/build/components/Tile/style.css.map +1 -0
- package/build/components/Tooltip/index.js +16 -0
- package/build/components/Tooltip/index.js.map +1 -0
- package/build/components/Tooltip/style.css +2 -0
- package/build/components/Tooltip/style.css.map +1 -0
- package/build/components/index.css +2 -1
- package/build/components/index.css.map +1 -1
- package/build/components/index.js +6 -3662
- package/build/components/index.js.map +1 -1
- package/build/components/static.css +2 -0
- package/build/components/static.css.map +1 -0
- package/build/components/static.js +4 -2440
- package/build/components/static.js.map +1 -1
- package/build/components/types/mdx-components.d.ts +2 -0
- package/build/components/types/next.config.d.ts +3 -0
- package/build/components/types/src/app/ODSLib.d.ts +1 -0
- package/build/components/types/src/app/components/accordion/AccordionClientWrapper.d.ts +1 -0
- package/build/components/types/src/app/components/alert/AlertClientWrapper.d.ts +1 -0
- package/build/components/types/src/app/components/anchor-navigation/AnchorNavigationClientWrapper.d.ts +2 -0
- package/build/components/types/src/app/components/body-banner/BodyBannerClientWrapper.d.ts +1 -0
- package/build/components/types/src/app/components/code/CodeClientWrapper.d.ts +1 -0
- package/build/components/types/src/app/components/cover/CoverClientWrapper.d.ts +1 -0
- package/build/components/types/src/app/components/expander/ExpanderClientWrapper.d.ts +1 -0
- package/build/components/types/src/app/components/feature-accordion/FeatureAccordionClientWrapper.d.ts +1 -0
- package/build/components/types/src/app/components/forms/autocomplete/AutocompleteClientWrapper.d.ts +1 -0
- package/build/components/types/src/app/components/forms/datepicker/DatePickerClientWrapper.d.ts +1 -0
- package/build/components/types/src/app/components/forms/radio/RadioClientWrapper.d.ts +1 -0
- package/build/components/types/src/app/components/gauge/GaugeClientWrapper.d.ts +1 -0
- package/build/components/types/src/app/components/hero/HeroClientWrapper.d.ts +1 -0
- package/build/components/types/src/app/components/icon-list/IconListClientWrapper.d.ts +1 -0
- package/build/components/types/src/app/components/list/ListClientWrapper.d.ts +1 -0
- package/build/components/types/src/app/components/pagination/PaginationClientWrapper.d.ts +1 -0
- package/build/components/types/src/app/components/progress/ProgressClientWrapper.d.ts +1 -0
- package/build/components/types/src/app/components/promo-banner/PromoBannerClientWrapper.d.ts +1 -0
- package/build/components/types/src/app/components/promotion-card/PromotionCardWrapper.d.ts +1 -0
- package/build/components/types/src/app/components/sticker/StickerClientWrapper.d.ts +1 -0
- package/build/components/types/src/app/components/tag/TagClientWrapper.d.ts +1 -0
- package/build/components/types/src/app/components/testimonial/TestimonialClientWrapper.d.ts +1 -0
- package/build/components/types/src/app/layout.d.ts +4 -0
- package/build/components/types/src/app/menuItems.d.ts +24 -0
- package/build/components/types/src/components/Accordion/Accordion.d.ts +17 -0
- package/build/components/types/src/components/Accordion/Accordion.static.d.ts +17 -0
- package/build/components/types/src/components/Accordion/AccordionHeader.d.ts +15 -0
- package/build/components/types/src/components/Accordion/AccordionItem.d.ts +19 -0
- package/build/components/types/src/components/Accordion/HeadingContext.d.ts +2 -0
- package/build/components/types/src/components/Accordion/index.d.ts +3 -0
- package/build/components/types/src/components/Accordion/tests/data.d.ts +5 -0
- package/build/components/types/{components → src/components}/Alert/Alert.d.ts +2 -2
- package/build/components/types/src/components/AnchorNavigation/AnchorNavigation.d.ts +17 -0
- package/build/components/types/src/components/AnchorNavigation/AnchorNavigation.static.d.ts +24 -0
- package/build/components/types/src/components/AnchorNavigation/index.d.ts +2 -0
- package/build/components/types/src/components/Bar/Bar.d.ts +22 -0
- package/build/components/types/src/components/Bar/BarBreak.d.ts +12 -0
- package/build/components/types/src/components/Bar/BarItem.d.ts +16 -0
- package/build/components/types/src/components/Bar/index.d.ts +4 -0
- package/build/components/types/src/components/BlockAction/BlockAction.d.ts +9 -0
- package/build/components/types/src/components/BlockAction/BlockAction.static.d.ts +19 -0
- package/build/components/types/src/components/BlockAction/BlockActionControl.d.ts +9 -0
- package/build/components/types/src/components/BlockAction/BlockActionIndicator.d.ts +9 -0
- package/build/components/types/src/components/BlockAction/CloneElementWithClassName.d.ts +8 -0
- package/build/components/types/src/components/BlockAction/Context.d.ts +13 -0
- package/build/components/types/src/components/BlockAction/index.d.ts +16 -0
- package/build/components/types/src/components/BodyBanner/BodyBanner.d.ts +20 -0
- package/build/components/types/src/components/BodyBanner/index.d.ts +2 -0
- package/build/components/types/src/components/Breadcrumbs/BreadcrumbItem.d.ts +15 -0
- package/build/components/types/src/components/Breadcrumbs/Breadcrumbs.d.ts +20 -0
- package/build/components/types/src/components/Breadcrumbs/index.d.ts +2 -0
- package/build/components/types/{components → src/components}/Button/Button.d.ts +1 -1
- package/build/components/types/src/components/Card/Card.d.ts +13 -0
- package/build/components/types/src/components/Card/CardProductHeader.d.ts +9 -0
- package/build/components/types/src/components/Card/CardSection.d.ts +14 -0
- package/build/components/types/src/components/Card/index.d.ts +4 -0
- package/build/components/types/src/components/Card/tests/data.d.ts +5 -0
- package/build/components/types/src/components/Carousel/Carousel.d.ts +12 -0
- package/build/components/types/src/components/Carousel/Carousel.static.d.ts +33 -0
- package/build/components/types/src/components/Carousel/CarouselItem.d.ts +7 -0
- package/build/components/types/src/components/Carousel/constants.d.ts +22 -0
- package/build/components/types/src/components/Carousel/index.d.ts +3 -0
- package/build/components/types/src/components/CarouselPromotions/CarouselPromotions.d.ts +10 -0
- package/build/components/types/src/components/CarouselPromotions/CarouselPromotions.static.d.ts +31 -0
- package/build/components/types/src/components/CarouselPromotions/CarouselPromotionsItem.d.ts +12 -0
- package/build/components/types/src/components/CarouselPromotions/constants.d.ts +20 -0
- package/build/components/types/src/components/CarouselPromotions/index.d.ts +3 -0
- package/build/components/types/src/components/CartTable/CartTable.d.ts +13 -0
- package/build/components/types/src/components/CartTable/FooterNameColumn.d.ts +7 -0
- package/build/components/types/src/components/CartTable/FooterPriceColumn.d.ts +9 -0
- package/build/components/types/src/components/CartTable/Price.d.ts +10 -0
- package/build/components/types/src/components/CartTable/data.d.ts +33 -0
- package/build/components/types/src/components/CartTable/generateFooter.d.ts +22 -0
- package/build/components/types/src/components/CartTable/generateRow.d.ts +21 -0
- package/build/components/types/src/components/CartTable/generateTotal.d.ts +45 -0
- package/build/components/types/src/components/CartTable/index.d.ts +2 -0
- package/build/components/types/src/components/Code/Code.d.ts +16 -0
- package/build/components/types/src/components/Code/index.d.ts +6 -0
- package/build/components/types/src/components/Code/oneDarkProTheme.d.ts +13 -0
- package/build/components/types/src/components/Container/Container.d.ts +3 -0
- package/build/components/types/src/components/Container/index.d.ts +2 -0
- package/build/components/types/src/components/Controls/Controls.d.ts +16 -0
- package/build/components/types/src/components/Controls/index.d.ts +2 -0
- package/build/components/types/src/components/Cover/Cover.d.ts +42 -0
- package/build/components/types/src/components/Cover/index.d.ts +3 -0
- package/build/components/types/src/components/Divider/Divider.d.ts +13 -0
- package/build/components/types/src/components/Divider/index.d.ts +2 -0
- package/build/components/types/src/components/DocumentationSidebar/DocumentationSidebar.d.ts +16 -0
- package/build/components/types/src/components/DocumentationSidebar/index.d.ts +3 -0
- package/build/components/types/src/components/Dropdown/Dropdown.d.ts +20 -0
- package/build/components/types/src/components/Dropdown/Dropdown.static.d.ts +28 -0
- package/build/components/types/src/components/Dropdown/DropdownDivider.d.ts +3 -0
- package/build/components/types/src/components/Dropdown/DropdownItem.d.ts +9 -0
- package/build/components/types/src/components/Dropdown/DropdownToggleButton.d.ts +7 -0
- package/build/components/types/src/components/Dropdown/index.d.ts +5 -0
- package/build/components/types/src/components/Expander/Expander.d.ts +22 -0
- package/build/components/types/src/components/Expander/Expander.static.d.ts +13 -0
- package/build/components/types/src/components/Expander/index.d.ts +2 -0
- package/build/components/types/src/components/FeatureAccordion/FeatureAccordion.d.ts +11 -0
- package/build/components/types/src/components/FeatureAccordion/FeatureAccordion.static.d.ts +23 -0
- package/build/components/types/src/components/FeatureAccordion/FeatureAccordionItem.d.ts +11 -0
- package/build/components/types/src/components/FeatureAccordion/index.d.ts +2 -0
- package/build/components/types/src/components/Footer/Footer.d.ts +12 -0
- package/build/components/types/src/components/Footer/data.d.ts +15 -0
- package/build/components/types/src/components/Footer/index.d.ts +1 -0
- package/build/components/types/src/components/Forms/Autocomplete/Autocomplete.d.ts +17 -0
- package/build/components/types/src/components/Forms/Autocomplete/Autocomplete.static.d.ts +21 -0
- package/build/components/types/src/components/Forms/Autocomplete/index.d.ts +2 -0
- package/build/components/types/src/components/Forms/Checkbox/Checkbox.d.ts +21 -0
- package/build/components/types/src/components/Forms/Checkbox/index.d.ts +2 -0
- package/build/components/types/src/components/Forms/DatePicker/DatePicker.d.ts +84 -0
- package/build/components/types/src/components/Forms/DatePicker/DatePicker.static.d.ts +69 -0
- package/build/components/types/src/components/Forms/DatePicker/index.d.ts +2 -0
- package/build/components/types/src/components/Forms/Field/Control.d.ts +6 -0
- package/build/components/types/src/components/Forms/Field/Description.d.ts +7 -0
- package/build/components/types/src/components/Forms/Field/Field.d.ts +17 -0
- package/build/components/types/src/components/Forms/Field/FieldContext.d.ts +18 -0
- package/build/components/types/src/components/Forms/Field/Label.d.ts +11 -0
- package/build/components/types/src/components/Forms/Field/Messages.d.ts +12 -0
- package/build/components/types/src/components/Forms/Field/Tooltip.d.ts +11 -0
- package/build/components/types/src/components/Forms/Field/index.d.ts +2 -0
- package/build/components/types/src/components/Forms/Field/utils.d.ts +16 -0
- package/build/components/types/src/components/Forms/Fieldset/Fieldset.d.ts +16 -0
- package/build/components/types/src/components/Forms/Fieldset/FieldsetContext.d.ts +7 -0
- package/build/components/types/src/components/Forms/Fieldset/docsData.d.ts +59 -0
- package/build/components/types/src/components/Forms/Fieldset/index.d.ts +2 -0
- package/build/components/types/src/components/Forms/File/File.d.ts +17 -0
- package/build/components/types/src/components/Forms/File/File.static.d.ts +27 -0
- package/build/components/types/src/components/Forms/File/index.d.ts +2 -0
- package/build/components/types/src/components/Forms/Group/Group.d.ts +14 -0
- package/build/components/types/src/components/Forms/Group/Item.d.ts +8 -0
- package/build/components/types/src/components/Forms/Group/index.d.ts +2 -0
- package/build/components/types/src/components/Forms/Hint/Hint.d.ts +7 -0
- package/build/components/types/src/components/Forms/Hint/index.d.ts +2 -0
- package/build/components/types/src/components/Forms/InputStepper/InputStepper.d.ts +20 -0
- package/build/components/types/src/components/Forms/InputStepper/InputStepper.static.d.ts +24 -0
- package/build/components/types/src/components/Forms/InputStepper/index.d.ts +2 -0
- package/build/components/types/src/components/Forms/Label/Label.d.ts +8 -0
- package/build/components/types/src/components/Forms/Label/index.d.ts +2 -0
- package/build/components/types/src/components/Forms/Message/Message.d.ts +12 -0
- package/build/components/types/src/components/Forms/Message/index.d.ts +2 -0
- package/build/components/types/src/components/Forms/Radio/Radio.d.ts +21 -0
- package/build/components/types/src/components/Forms/Radio/index.d.ts +2 -0
- package/build/components/types/src/components/Forms/RangeSlider/RangeSlider.d.ts +38 -0
- package/build/components/types/src/components/Forms/RangeSlider/RangeSlider.static.d.ts +24 -0
- package/build/components/types/src/components/Forms/RangeSlider/data.d.ts +49 -0
- package/build/components/types/src/components/Forms/RangeSlider/index.d.ts +2 -0
- package/build/components/types/src/components/Forms/Select/Select.d.ts +33 -0
- package/build/components/types/src/components/Forms/Select/index.d.ts +4 -0
- package/build/components/types/src/components/Forms/TextArea/TextArea.d.ts +29 -0
- package/build/components/types/src/components/Forms/TextArea/index.d.ts +2 -0
- package/build/components/types/src/components/Forms/TextInput/TextInput.d.ts +32 -0
- package/build/components/types/src/components/Forms/TextInput/index.d.ts +2 -0
- package/build/components/types/src/components/Forms/index.d.ts +16 -0
- package/build/components/types/src/components/Gauge/Gauge.d.ts +11 -0
- package/build/components/types/src/components/Gauge/GaugeMaker.d.ts +3 -0
- package/build/components/types/src/components/Gauge/index.d.ts +2 -0
- package/build/components/types/src/components/Grid/Grid.d.ts +14 -0
- package/build/components/types/src/components/Grid/GridCol.d.ts +12 -0
- package/build/components/types/src/components/Grid/index.d.ts +3 -0
- package/build/components/types/src/components/Hero/Hero.d.ts +52 -0
- package/build/components/types/src/components/Hero/HeroPlayground.d.ts +2 -0
- package/build/components/types/src/components/Hero/index.d.ts +2 -0
- package/build/components/types/{components → src/components}/Icon/Icon.d.ts +2 -2
- package/build/components/types/src/components/Icon/iconSearchTags.d.ts +419 -0
- package/build/components/types/src/components/IconList/IconList.d.ts +13 -0
- package/build/components/types/src/components/IconList/Item.d.ts +9 -0
- package/build/components/types/src/components/IconList/index.d.ts +3 -0
- package/build/components/types/src/components/Image/Image.d.ts +20 -0
- package/build/components/types/src/components/Image/index.d.ts +2 -0
- package/build/components/types/src/components/Link/Link.d.ts +18 -0
- package/build/components/types/src/components/Link/index.d.ts +2 -0
- package/build/components/types/src/components/List/ClickableControl.d.ts +9 -0
- package/build/components/types/src/components/List/List.d.ts +13 -0
- package/build/components/types/src/components/List/ListItem.d.ts +16 -0
- package/build/components/types/src/components/List/index.d.ts +3 -0
- package/build/components/types/src/components/Loader/Loader.d.ts +14 -0
- package/build/components/types/src/components/Loader/Loader.static.d.ts +19 -0
- package/build/components/types/src/components/Loader/index.d.ts +2 -0
- package/build/components/types/{components → src/components}/Modal/Modal.d.ts +2 -0
- package/build/components/types/src/components/Pagination/Pagination.d.ts +28 -0
- package/build/components/types/src/components/Pagination/PaginationItem.d.ts +21 -0
- package/build/components/types/src/components/Pagination/Separator.d.ts +6 -0
- package/build/components/types/src/components/Pagination/helpers.d.ts +23 -0
- package/build/components/types/src/components/Pagination/index.d.ts +4 -0
- package/build/components/types/src/components/Preview/CodeExample.d.ts +9 -0
- package/build/components/types/src/components/Preview/Interact/ButtonShowPropsGroup.d.ts +10 -0
- package/build/components/types/src/components/Preview/Interact/Interact.d.ts +17 -0
- package/build/components/types/src/components/Preview/Interact/PropCheckbox.d.ts +15 -0
- package/build/components/types/src/components/Preview/Interact/PropFormField.d.ts +7 -0
- package/build/components/types/src/components/Preview/Interact/PropInput.d.ts +17 -0
- package/build/components/types/src/components/Preview/Interact/PropLabelWithTooltip.d.ts +17 -0
- package/build/components/types/src/components/Preview/Interact/PropSelect.d.ts +15 -0
- package/build/components/types/src/components/Preview/Interact/PropsGroup.d.ts +10 -0
- package/build/components/types/src/components/Preview/Interact/Tooltip.d.ts +8 -0
- package/build/components/types/src/components/Preview/Interact/helpers.d.ts +19 -0
- package/build/components/types/src/components/Preview/Interact/state.d.ts +14 -0
- package/build/components/types/src/components/Preview/Preview.d.ts +26 -0
- package/build/components/types/src/components/Preview/PreviewTitleBar.d.ts +9 -0
- package/build/components/types/src/components/Preview/index.d.ts +7 -0
- package/build/components/types/src/components/Progress/Progress.d.ts +15 -0
- package/build/components/types/src/components/Progress/index.d.ts +2 -0
- package/build/components/types/src/components/PromoBanner/PromoBanner.d.ts +12 -0
- package/build/components/types/src/components/PromoBanner/index.d.ts +2 -0
- package/build/components/types/src/components/PromotionCard/PromotionCard.d.ts +9 -0
- package/build/components/types/src/components/PromotionCard/PromotionCardContent.d.ts +8 -0
- package/build/components/types/src/components/PromotionCard/PromotionCardImageWrapper.d.ts +8 -0
- package/build/components/types/src/components/PromotionCard/PromotionCardSection.d.ts +9 -0
- package/build/components/types/src/components/PromotionCard/PromotionCardTitle.d.ts +8 -0
- package/build/components/types/src/components/PromotionCard/constants.d.ts +5 -0
- package/build/components/types/src/components/PromotionCard/index.d.ts +6 -0
- package/build/components/types/src/components/Skeleton/Skeleton.d.ts +3 -0
- package/build/components/types/src/components/Skeleton/index.d.ts +2 -0
- package/build/components/types/src/components/SkipLink/SkipLink.d.ts +6 -0
- package/build/components/types/src/components/SkipLink/index.d.ts +2 -0
- package/build/components/types/src/components/Stepbar/Stepbar.d.ts +21 -0
- package/build/components/types/src/components/Stepbar/index.d.ts +2 -0
- package/build/components/types/src/components/Sticker/Sticker.d.ts +10 -0
- package/build/components/types/src/components/Sticker/index.d.ts +3 -0
- package/build/components/types/src/components/Table/Cell.d.ts +11 -0
- package/build/components/types/src/components/Table/Footer.d.ts +3 -0
- package/build/components/types/src/components/Table/Header.d.ts +3 -0
- package/build/components/types/src/components/Table/Row.d.ts +10 -0
- package/build/components/types/src/components/Table/Rows.d.ts +3 -0
- package/build/components/types/src/components/Table/Table.d.ts +24 -0
- package/build/components/types/src/components/Table/Table.static.d.ts +23 -0
- package/build/components/types/src/components/Table/TableContext.d.ts +4 -0
- package/build/components/types/src/components/Table/docsData.d.ts +39 -0
- package/build/components/types/src/components/Table/index.d.ts +3 -0
- package/build/components/types/src/components/Table/types.d.ts +34 -0
- package/build/components/types/{components → src/components}/Tabs/Tabs.d.ts +1 -3
- package/build/components/types/src/components/Tag/Tag.d.ts +24 -0
- package/build/components/types/src/components/Tag/TagButton.d.ts +12 -0
- package/build/components/types/src/components/Tag/index.d.ts +4 -0
- package/build/components/types/src/components/Testimonial/Testimonial.d.ts +10 -0
- package/build/components/types/src/components/Testimonial/index.d.ts +2 -0
- package/build/components/types/src/components/Tile/Tile.d.ts +23 -0
- package/build/components/types/src/components/Tile/index.d.ts +2 -0
- package/build/components/types/src/components/Tooltip/InfoTooltip.d.ts +8 -0
- package/build/components/types/src/components/Tooltip/Tooltip.d.ts +25 -0
- package/build/components/types/src/components/Tooltip/Tooltip.static.d.ts +26 -0
- package/build/components/types/src/components/Tooltip/index.d.ts +3 -0
- package/build/components/types/src/components/Tooltip/tests/BaseWrapper.d.ts +3 -0
- package/build/components/types/src/components/index.d.ts +49 -0
- package/build/components/types/src/components/static.d.ts +1 -0
- package/build/components/types/src/docs/utils/ToggleButton.d.ts +9 -0
- package/build/components/types/src/lib/scripts.d.ts +1 -0
- package/build/components/types/src/scripts/index.d.ts +102 -0
- package/build/components/types/src/scripts/lib/moduleFactory.d.ts +3 -0
- package/build/components/types/src/scripts/modules/SameHeight.d.ts +15 -0
- package/build/components/types/src/scripts/modules/Toggle.d.ts +39 -0
- package/build/components/types/src/scripts/modules/toggleUtil.d.ts +13 -0
- package/build/components/types/src/styles/export/breakpoint.d.ts +9 -0
- package/build/components/types/src/utils/ConditionalWrapper.d.ts +10 -0
- package/build/components/types/src/utils/classes.d.ts +5 -0
- package/build/components/types/src/utils/color.d.ts +20 -0
- package/build/components/types/src/utils/helpers.d.ts +11 -0
- package/build/components/types/{utils → src/utils}/hooks.d.ts +2 -1
- package/build/components/types/src/utils/index.d.ts +5 -0
- package/build/images/product-1.svg +10 -0
- package/build/images/product-2.svg +14 -0
- package/build/images/product-3.svg +9 -0
- package/build/lib/after-components.css +1 -1
- package/build/lib/after-components.css.map +1 -1
- package/build/lib/before-components.css +2 -1
- package/build/lib/before-components.css.map +1 -1
- package/build/lib/components.css +1 -1
- package/build/lib/components.css.map +1 -1
- package/build/lib/scripts.css +2 -0
- package/build/lib/scripts.css.map +1 -0
- package/build/lib/scripts.js +4 -2442
- package/build/lib/scripts.js.map +1 -1
- package/build/lib/style.css +2 -1
- package/build/lib/style.css.map +1 -1
- package/build/logo.svg +1 -0
- package/package.json +46 -29
- package/src/components/Accordion/Accordion.mdx +2 -2
- package/src/components/Accordion/Accordion.tsx +12 -20
- package/src/components/Accordion/AccordionItem.tsx +16 -26
- package/src/components/Accordion/index.ts +3 -3
- package/src/components/Accordion/styles/mixins.scss +11 -11
- package/src/components/Accordion/styles/style.scss +34 -32
- package/src/components/Accordion/tests/Accordion.unit.test.js +2 -2
- package/src/components/Accordion/tests/{data.js → data.ts} +9 -7
- package/src/components/Alert/Alert.tsx +6 -5
- package/src/components/Alert/CHANGELOG.md +33 -0
- package/src/components/Alert/styles/config.scss +6 -44
- package/src/components/Alert/styles/mixins.scss +20 -8
- package/src/components/Alert/styles/style.scss +22 -30
- package/src/components/Alert/tests/Alert.test.js +26 -0
- package/src/components/AnchorNavigation/AnchorNavigation.static.ts +115 -0
- package/src/components/AnchorNavigation/AnchorNavigation.tsx +81 -0
- package/src/components/AnchorNavigation/index.tsx +3 -0
- package/src/components/AnchorNavigation/styles/mixins.scss +126 -0
- package/src/components/AnchorNavigation/styles/style.scss +22 -0
- package/src/components/Bar/Bar.mdx +203 -0
- package/src/components/Bar/Bar.tsx +58 -0
- package/src/components/Bar/BarBreak.tsx +29 -0
- package/src/components/Bar/BarItem.tsx +50 -0
- package/src/components/Bar/index.ts +5 -0
- package/src/components/Bar/styles/config.scss +10 -0
- package/src/components/Bar/styles/mixins.scss +84 -0
- package/src/components/Bar/styles/style.scss +62 -0
- package/src/components/Bar/tests/Bar.conformance.test.js +29 -0
- package/src/components/Bar/tests/Bar.unit.test.js +58 -0
- package/src/components/Bar/tests/BarBreak.unit.test.js +32 -0
- package/src/components/Bar/tests/BarItem.unit.test.js +51 -0
- package/src/components/BlockAction/BlockAction.mdx +244 -0
- package/src/components/BlockAction/BlockAction.static.ts +104 -0
- package/src/components/BlockAction/BlockAction.tsx +27 -0
- package/src/components/BlockAction/BlockActionControl.tsx +32 -0
- package/src/components/BlockAction/BlockActionIndicator.tsx +32 -0
- package/src/components/BlockAction/CloneElementWithClassName.tsx +23 -0
- package/src/components/BlockAction/Context.tsx +39 -0
- package/src/components/BlockAction/index.tsx +29 -0
- package/src/components/BlockAction/styles/config.scss +10 -0
- package/src/components/BlockAction/styles/mixins.scss +33 -0
- package/src/components/BlockAction/styles/style.scss +35 -0
- package/src/components/BlockAction/tests/BlockAction.conformance.test.js +117 -0
- package/src/components/BlockAction/tests/BlockAction.unit.test.js +44 -0
- package/src/components/BlockAction/tests/BlockActionControl.unit.test.js +146 -0
- package/src/components/BlockAction/tests/BlockActionIndicator.unit.test.js +68 -0
- package/src/components/BlockAction/tests/CloneElementWithClassName.unit.test.js +33 -0
- package/src/components/BodyBanner/BodyBanner.mdx +268 -0
- package/src/components/BodyBanner/BodyBanner.tsx +102 -0
- package/src/components/BodyBanner/index.tsx +3 -0
- package/src/components/BodyBanner/styles/mixins.scss +106 -0
- package/src/components/BodyBanner/styles/style.scss +41 -0
- package/src/components/Breadcrumbs/BreadcrumbItem.tsx +13 -13
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +17 -16
- package/src/components/Breadcrumbs/index.ts +2 -4
- package/src/components/Breadcrumbs/styles/mixins.scss +16 -28
- package/src/components/Breadcrumbs/styles/style.scss +17 -26
- package/src/components/Breadcrumbs/tests/BreadcrumbItem.unit.test.js +1 -2
- package/src/components/Breadcrumbs/tests/Breadcrumbs.conformance.test.js +16 -17
- package/src/components/Breadcrumbs/tests/Breadcrumbs.integration.test.js +21 -19
- package/src/components/Breadcrumbs/tests/Breadcrumbs.unit.test.js +28 -21
- package/src/components/Button/Button.tsx +4 -3
- package/src/components/Button/styles/config.scss +34 -135
- package/src/components/Button/styles/mixins.scss +2 -11
- package/src/components/Button/styles/style.scss +28 -48
- package/src/components/Button/tests/Button.test.js +8 -3
- package/src/components/Buttons/styles/style.scss +6 -4
- package/src/components/Card/CHANGELOG.md +19 -0
- package/src/components/Card/Card.mdx +334 -0
- package/src/components/Card/Card.tsx +35 -0
- package/src/components/Card/CardProductHeader.tsx +36 -0
- package/src/components/Card/CardSection.tsx +44 -0
- package/src/components/Card/index.ts +5 -0
- package/src/components/Card/styles/config.scss +16 -0
- package/src/components/Card/styles/mixins.scss +68 -0
- package/src/components/Card/styles/style.scss +39 -0
- package/src/components/Card/tests/Card.conformance.test.js +31 -0
- package/src/components/Card/tests/Card.unit.test.js +47 -0
- package/src/components/Card/tests/CardProductHeader.unit.test.js +61 -0
- package/src/components/Card/tests/CardSection.unit.test.js +61 -0
- package/src/components/Card/tests/data.ts +44 -0
- package/src/components/Carousel/CHANGELOG.md +11 -0
- package/src/components/Carousel/Carousel.mdx +159 -0
- package/src/components/Carousel/Carousel.static.ts +261 -0
- package/src/components/Carousel/Carousel.tsx +98 -0
- package/src/components/Carousel/CarouselItem.tsx +29 -0
- package/src/components/Carousel/constants.ts +24 -0
- package/src/components/Carousel/index.ts +4 -0
- package/src/components/Carousel/styles/config.scss +31 -0
- package/src/components/Carousel/styles/mixins.scss +196 -0
- package/src/components/Carousel/styles/style.scss +65 -0
- package/src/components/Carousel/tests/Carousel.conformance.test.js +26 -0
- package/src/components/Carousel/tests/Carousel.unit.test.js +207 -0
- package/src/components/Carousel/tests/CarouselItem.unit.test.js +31 -0
- package/src/components/CarouselPromotions/CarouselPromotions.mdx +246 -0
- package/src/components/CarouselPromotions/CarouselPromotions.static.ts +287 -0
- package/src/components/CarouselPromotions/CarouselPromotions.tsx +66 -0
- package/src/components/CarouselPromotions/CarouselPromotionsItem.tsx +53 -0
- package/src/components/CarouselPromotions/constants.ts +23 -0
- package/src/components/CarouselPromotions/index.ts +4 -0
- package/src/components/CarouselPromotions/styles/config.scss +65 -0
- package/src/components/CarouselPromotions/styles/mixins.scss +286 -0
- package/src/components/CarouselPromotions/styles/style.scss +51 -0
- package/src/components/CarouselPromotions/tests/CarouselPromotions.conformance.test.js +30 -0
- package/src/components/CarouselPromotions/tests/CarouselPromotions.unit.test.js +244 -0
- package/src/components/CarouselPromotions/tests/CarouselPromotionsItem.unit.test.js +33 -0
- package/src/components/CartTable/CartTable.mdx +129 -0
- package/src/components/CartTable/CartTable.tsx +111 -0
- package/src/components/CartTable/FooterNameColumn.tsx +32 -0
- package/src/components/CartTable/FooterPriceColumn.tsx +50 -0
- package/src/components/CartTable/Price.tsx +48 -0
- package/src/components/CartTable/data.ts +147 -0
- package/src/components/CartTable/generateFooter.tsx +97 -0
- package/src/components/CartTable/generateRow.tsx +196 -0
- package/src/components/CartTable/generateTotal.ts +157 -0
- package/src/components/CartTable/index.ts +3 -0
- package/src/components/CartTable/styles/config.scss +19 -0
- package/src/components/CartTable/styles/mixins.scss +141 -0
- package/src/components/CartTable/styles/style.scss +37 -0
- package/src/components/CartTable/tests/CartTable.conformance.test.js +16 -0
- package/src/components/Code/Code.tsx +85 -0
- package/src/components/Code/index.tsx +16 -0
- package/src/components/Code/oneDarkProTheme.ts +70 -0
- package/src/components/Code/styles/style.scss +58 -0
- package/src/components/Container/Container.tsx +11 -9
- package/src/components/Container/index.ts +2 -4
- package/src/components/Container/styles/style.scss +5 -3
- package/src/components/Container/tests/Container.conformance.test.js +58 -53
- package/src/components/Container/tests/Container.unit.test.js +125 -134
- package/src/components/Controls/Controls.mdx +469 -0
- package/src/components/Controls/Controls.tsx +50 -0
- package/src/components/Controls/index.ts +3 -0
- package/src/components/Controls/styles/config.scss +52 -0
- package/src/components/Controls/styles/mixins.scss +70 -0
- package/src/components/Controls/styles/style.scss +16 -0
- package/src/components/Controls/tests/Controls.test.js +479 -0
- package/src/components/Cover/Cover.mdx +87 -0
- package/src/components/Cover/Cover.tsx +81 -0
- package/src/components/Cover/index.ts +5 -0
- package/src/components/Cover/styles/config.scss +55 -0
- package/src/components/Cover/styles/mixins.scss +43 -0
- package/src/components/Cover/styles/style.scss +32 -0
- package/src/components/Cover/tests/Cover.conformance.test.js +28 -0
- package/src/components/Cover/tests/Cover.unit.test.js +116 -0
- package/src/components/Divider/Divider.mdx +65 -0
- package/src/components/Divider/Divider.tsx +57 -0
- package/src/components/Divider/index.ts +3 -0
- package/src/components/Divider/styles/config.scss +27 -0
- package/src/components/Divider/styles/mixins.scss +45 -0
- package/src/components/Divider/styles/style.scss +33 -0
- package/src/components/{Badge/tests/Badge.conformance.test.js → Divider/tests/Divider.conformance.test.js} +5 -8
- package/src/components/Divider/tests/Divider.unit.test.js +80 -0
- package/src/components/DocumentationSidebar/DocumentationSidebar.tsx +171 -0
- package/src/components/DocumentationSidebar/index.ts +4 -0
- package/src/components/DocumentationSidebar/styles/style.scss +230 -0
- package/src/components/Dropdown/Dropdown.mdx +260 -0
- package/src/components/Dropdown/Dropdown.static.ts +198 -0
- package/src/components/Dropdown/Dropdown.tsx +107 -0
- package/src/components/Dropdown/DropdownDivider.tsx +17 -0
- package/src/components/Dropdown/DropdownItem.tsx +43 -0
- package/src/components/Dropdown/DropdownToggleButton.tsx +37 -0
- package/src/components/Dropdown/index.ts +6 -0
- package/src/components/Dropdown/styles/config.scss +41 -0
- package/src/components/Dropdown/styles/mixins.scss +79 -0
- package/src/components/Dropdown/styles/style.scss +33 -0
- package/src/components/Dropdown/tests/Dropdown.conformance.test.js +48 -0
- package/src/components/Dropdown/tests/Dropdown.unit.test.js +69 -0
- package/src/components/Expander/Expander.mdx +153 -0
- package/src/components/Expander/Expander.static.ts +59 -0
- package/src/components/Expander/Expander.tsx +99 -0
- package/src/components/Expander/index.ts +3 -0
- package/src/components/Expander/styles/style.scss +63 -0
- package/src/components/Expander/tests/Expander.conformance.test.js +59 -0
- package/src/components/Expander/tests/Expander.unit.test.js +124 -0
- package/src/components/FeatureAccordion/FeatureAccordion.mdx +33 -0
- package/src/components/FeatureAccordion/FeatureAccordion.static.ts +121 -0
- package/src/components/FeatureAccordion/FeatureAccordion.tsx +116 -0
- package/src/components/FeatureAccordion/FeatureAccordionItem.tsx +31 -0
- package/src/components/FeatureAccordion/index.ts +2 -0
- package/src/components/FeatureAccordion/styles/mixins.scss +74 -0
- package/src/components/FeatureAccordion/styles/style.scss +21 -0
- package/src/components/FeatureAccordion/tests/FeatureAccordion.conformance.test.js +92 -0
- package/src/components/FeatureAccordion/tests/FeatureAccordion.unit.test.js +80 -0
- package/src/components/Footer/Footer.tsx +93 -0
- package/src/components/Footer/data.ts +71 -0
- package/src/components/Footer/index.ts +1 -0
- package/src/components/Footer/tests/Footer.conformance.test.js +13 -0
- package/src/components/Footer/tests/Footer.unit.test.js +66 -0
- package/src/components/Forms/Autocomplete/Autocomplete.mdx +198 -0
- package/src/components/Forms/Autocomplete/Autocomplete.static.ts +90 -0
- package/src/components/Forms/Autocomplete/Autocomplete.tsx +66 -0
- package/src/components/Forms/Autocomplete/index.ts +3 -0
- package/src/components/Forms/Autocomplete/styles/config.scss +7 -0
- package/src/components/Forms/Autocomplete/styles/mixins.scss +78 -0
- package/src/components/Forms/Autocomplete/styles/style.scss +66 -0
- package/src/components/Forms/Checkbox/Checkbox.mdx +139 -0
- package/src/components/Forms/Checkbox/Checkbox.tsx +75 -0
- package/src/components/Forms/Checkbox/index.ts +3 -0
- package/src/components/Forms/Checkbox/styles/config.scss +25 -0
- package/src/components/Forms/Checkbox/styles/mixins.scss +2 -0
- package/src/components/Forms/Checkbox/styles/style.scss +89 -0
- package/src/components/Forms/Checkbox/tests/Checkbox.unit.test.js +95 -0
- package/src/components/Forms/DatePicker/DatePicker.mdx +149 -0
- package/src/components/Forms/DatePicker/DatePicker.static.ts +211 -0
- package/src/components/Forms/DatePicker/DatePicker.tsx +129 -0
- package/src/components/Forms/DatePicker/index.ts +3 -0
- package/src/components/Forms/DatePicker/styles/style.scss +183 -0
- package/src/components/Forms/DatePicker/tests/DatePicker.unit.test.js +262 -0
- package/src/components/Forms/Field/Control.tsx +129 -0
- package/src/components/Forms/Field/Description.tsx +40 -0
- package/src/components/Forms/Field/Field.mdx +383 -0
- package/src/components/Forms/Field/Field.tsx +104 -0
- package/src/components/Forms/Field/FieldContext.tsx +24 -0
- package/src/components/Forms/Field/Label.tsx +71 -0
- package/src/components/Forms/Field/Messages.tsx +36 -0
- package/src/components/Forms/Field/Tooltip.tsx +37 -0
- package/src/components/Forms/Field/index.ts +3 -0
- package/src/components/Forms/Field/styles/config.scss +25 -0
- package/src/components/Forms/Field/styles/mixins.scss +43 -0
- package/src/components/Forms/Field/styles/style.scss +37 -0
- package/src/components/Forms/Field/tests/Autocomplete.Field.conformance.test.js +52 -0
- package/src/components/Forms/Field/tests/Checkbox.Field.conformance.test.js +43 -0
- package/src/components/Forms/Field/tests/Field.unit.test.js +11 -0
- package/src/components/Forms/Field/tests/File.Field.conformance.test.js +47 -0
- package/src/components/Forms/Field/tests/Group.Field.conformance.test.js +47 -0
- package/src/components/Forms/Field/tests/Label.unit.test.js +163 -0
- package/src/components/Forms/Field/tests/Messages.unit.test.js +102 -0
- package/src/components/Forms/Field/tests/Radio.Field.conformance.test.js +43 -0
- package/src/components/Forms/Field/tests/Rangeslider.Field.test.js +60 -0
- package/src/components/Forms/Field/tests/Select.Field.conformance.test.js +45 -0
- package/src/components/Forms/Field/tests/Text.Field.conformance.test.js +43 -0
- package/src/components/Forms/Field/tests/Textarea.Field.conformance.test.js +43 -0
- package/src/components/Forms/Field/tests/Tooltip.unit.test.js +38 -0
- package/src/components/Forms/Field/utils.ts +36 -0
- package/src/components/Forms/Fieldset/Fieldset.mdx +178 -0
- package/src/components/Forms/Fieldset/Fieldset.tsx +62 -0
- package/src/components/Forms/Fieldset/FieldsetContext.ts +13 -0
- package/src/components/Forms/Fieldset/docsData.ts +75 -0
- package/src/components/Forms/Fieldset/index.ts +3 -0
- package/src/components/Forms/Fieldset/styles/mixins.scss +6 -0
- package/src/components/Forms/Fieldset/styles/style.scss +10 -0
- package/src/components/Forms/Fieldset/tests/Fieldset.unit.test.js +63 -0
- package/src/components/Forms/File/File.mdx +88 -0
- package/src/components/Forms/File/File.static.ts +164 -0
- package/src/components/Forms/File/File.tsx +77 -0
- package/src/components/Forms/File/index.ts +3 -0
- package/src/components/Forms/File/styles/config.scss +12 -0
- package/src/components/Forms/File/styles/mixins.scss +87 -0
- package/src/components/Forms/File/styles/style.scss +51 -0
- package/src/components/Forms/FormTooltip.mdx +51 -0
- package/src/components/Forms/Forms.mdx +48 -0
- package/src/components/Forms/Group/CHANGELOG.md +5 -0
- package/src/components/Forms/Group/Group.mdx +146 -0
- package/src/components/Forms/Group/Group.tsx +74 -0
- package/src/components/Forms/Group/Item.tsx +35 -0
- package/src/components/Forms/Group/index.ts +3 -0
- package/src/components/Forms/Group/styles/config.scss +9 -0
- package/src/components/Forms/Group/styles/mixins.scss +50 -0
- package/src/components/Forms/Group/styles/style.scss +19 -0
- package/src/components/Forms/Group/tests/Group.unit.test.js +171 -0
- package/src/components/Forms/Group/tests/Item.unit.test.js +31 -0
- package/src/components/Forms/Hint/Hint.mdx +40 -0
- package/src/components/Forms/Hint/Hint.tsx +21 -0
- package/src/components/Forms/Hint/index.ts +3 -0
- package/src/components/Forms/Hint/styles/config.scss +5 -0
- package/src/components/Forms/Hint/styles/mixins.scss +6 -0
- package/src/components/Forms/Hint/styles/style.scss +7 -0
- package/src/components/Forms/Hint/tests/Hint.unit.test.js +35 -0
- package/src/components/Forms/InputStepper/InputStepper.mdx +147 -0
- package/src/components/Forms/InputStepper/InputStepper.static.ts +187 -0
- package/src/components/Forms/InputStepper/InputStepper.tsx +86 -0
- package/src/components/Forms/InputStepper/index.ts +3 -0
- package/src/components/Forms/InputStepper/styles/style.scss +210 -0
- package/src/components/Forms/InputStepper/tests/InputStepper.unit.test.js +54 -0
- package/src/components/Forms/Label/Label.mdx +95 -0
- package/src/components/Forms/Label/Label.tsx +26 -0
- package/src/components/Forms/Label/index.ts +3 -0
- package/src/components/Forms/Label/styles/config.scss +4 -0
- package/src/components/Forms/Label/styles/mixins.scss +6 -0
- package/src/components/Forms/Label/styles/style.scss +11 -0
- package/src/components/Forms/Label/tests/Label.unit.test.js +42 -0
- package/src/components/Forms/Message/Message.mdx +40 -0
- package/src/components/Forms/Message/Message.tsx +58 -0
- package/src/components/Forms/Message/index.ts +3 -0
- package/src/components/Forms/Message/styles/config.scss +15 -0
- package/src/components/Forms/Message/styles/mixins.scss +12 -0
- package/src/components/Forms/Message/styles/style.scss +11 -0
- package/src/components/Forms/Message/tests/Message.unit.test.js +71 -0
- package/src/components/Forms/Radio/Radio.mdx +98 -0
- package/src/components/Forms/Radio/Radio.tsx +70 -0
- package/src/components/Forms/Radio/index.ts +3 -0
- package/src/components/Forms/Radio/styles/config.scss +25 -0
- package/src/components/Forms/Radio/styles/mixins.scss +6 -0
- package/src/components/Forms/Radio/styles/style.scss +25 -0
- package/src/components/Forms/Radio/tests/Radio.unit.test.js +105 -0
- package/src/components/Forms/RangeSlider/RangeSlider.mdx +304 -0
- package/src/components/Forms/RangeSlider/RangeSlider.static.ts +121 -0
- package/src/components/Forms/RangeSlider/RangeSlider.tsx +98 -0
- package/src/components/Forms/RangeSlider/data.ts +50 -0
- package/src/components/Forms/RangeSlider/index.ts +3 -0
- package/src/components/Forms/RangeSlider/styles/config.scss +32 -0
- package/src/components/Forms/RangeSlider/styles/mixins.scss +139 -0
- package/src/components/Forms/RangeSlider/styles/style.scss +97 -0
- package/src/components/Forms/Select/Select.mdx +106 -0
- package/src/components/Forms/Select/Select.tsx +97 -0
- package/src/components/Forms/Select/index.tsx +9 -0
- package/src/components/Forms/Select/styles/config.scss +53 -0
- package/src/components/Forms/Select/styles/mixins.scss +34 -0
- package/src/components/Forms/Select/styles/style.scss +22 -0
- package/src/components/Forms/Select/tests/Select.unit.test.js +98 -0
- package/src/components/Forms/TextArea/TextArea.mdx +109 -0
- package/src/components/Forms/TextArea/TextArea.tsx +84 -0
- package/src/components/Forms/TextArea/index.ts +3 -0
- package/src/components/Forms/TextArea/styles/config.scss +35 -0
- package/src/components/Forms/TextArea/styles/mixins.scss +48 -0
- package/src/components/Forms/TextArea/styles/style.scss +22 -0
- package/src/components/Forms/TextArea/tests/TextArea.unit.test.js +127 -0
- package/src/components/Forms/TextInput/TextInput.mdx +153 -0
- package/src/components/Forms/TextInput/TextInput.tsx +101 -0
- package/src/components/Forms/TextInput/index.ts +3 -0
- package/src/components/Forms/TextInput/styles/config.scss +60 -0
- package/src/components/Forms/TextInput/styles/mixins.scss +80 -0
- package/src/components/Forms/TextInput/styles/style.scss +30 -0
- package/src/components/Forms/TextInput/tests/TextInput.unit.test.js +108 -0
- package/src/components/Forms/index.ts +16 -0
- package/src/components/Forms/styles/config.scss +41 -0
- package/src/components/Forms/styles/mixins.scss +44 -0
- package/src/components/Gauge/Gauge.mdx +35 -0
- package/src/components/Gauge/Gauge.tsx +72 -0
- package/src/components/Gauge/GaugeMaker.tsx +90 -0
- package/src/components/Gauge/index.ts +3 -0
- package/src/components/Gauge/styles/style.scss +34 -0
- package/src/components/Gauge/tests/Gauge.conformance.test.js +25 -0
- package/src/components/Gauge/tests/Gauge.unit.test.js +35 -0
- package/src/components/Grid/Grid.mdx +20 -19
- package/src/components/Grid/Grid.tsx +27 -22
- package/src/components/Grid/index.ts +3 -5
- package/src/components/Grid/styles/style.scss +29 -27
- package/src/components/Grid/tests/Grid.unit.test.js +572 -0
- package/src/components/Grid/tests/GridCol.unit.test.js +223 -0
- package/src/components/Hero/Hero.mdx +168 -0
- package/src/components/Hero/Hero.tsx +182 -0
- package/src/components/Hero/HeroPlayground.tsx +369 -0
- package/src/components/Hero/index.ts +3 -0
- package/src/components/Hero/styles/config.scss +23 -0
- package/src/components/Hero/styles/mixins.scss +173 -0
- package/src/components/Hero/styles/style.scss +59 -0
- package/src/components/Hero/tests/Hero.conformance.test.js +29 -0
- package/src/components/Hero/tests/Hero.unit.test.js +272 -0
- package/src/components/Hero/tests/data.js +40 -0
- package/src/components/Icon/Icon.tsx +2 -2
- package/src/components/Icon/IconSearch.jsx +2 -0
- package/src/components/Icon/styles/config.scss +5 -5
- package/src/components/Icon/styles/style.scss +12 -10
- package/src/components/IconList/IconList.mdx +53 -0
- package/src/components/IconList/IconList.tsx +30 -0
- package/src/components/IconList/Item.tsx +39 -0
- package/src/components/IconList/index.ts +4 -0
- package/src/components/IconList/styles/config.scss +3 -0
- package/src/components/IconList/styles/mixins.scss +33 -0
- package/src/components/IconList/styles/style.scss +21 -0
- package/src/components/IconList/tests/IconList.conformance.test.js +55 -0
- package/src/components/IconList/tests/IconList.unit.test.js +79 -0
- package/src/components/IconList/tests/Item.unit.test.js +143 -0
- package/src/components/Image/Image.mdx +29 -20
- package/src/components/Image/Image.tsx +12 -13
- package/src/components/Image/index.ts +2 -6
- package/src/components/Image/styles/style.scss +9 -6
- package/src/components/Image/tests/Image.conformance.test.js +1 -1
- package/src/components/Image/tests/Image.unit.test.js +166 -188
- package/src/components/Link/CHANGELOG.md +25 -0
- package/src/components/Link/Link.tsx +14 -9
- package/src/components/Link/styles/mixins.scss +8 -17
- package/src/components/Link/styles/style.scss +37 -54
- package/src/components/Link/tests/Link.conformance.test.js +7 -25
- package/src/components/Link/tests/Link.unit.test.js +20 -33
- package/src/components/List/ClickableControl.tsx +33 -0
- package/src/components/List/List.mdx +216 -0
- package/src/components/List/List.tsx +40 -0
- package/src/components/List/ListItem.tsx +44 -0
- package/src/components/List/index.ts +5 -0
- package/src/components/List/styles/config.scss +38 -0
- package/src/components/List/styles/mixins.scss +99 -0
- package/src/components/List/styles/style.scss +48 -0
- package/src/components/List/tests/ClickableControl.unit.test.js +100 -0
- package/src/components/List/tests/List.conformance.test.js +69 -0
- package/src/components/List/tests/List.unit.test.js +47 -0
- package/src/components/List/tests/ListItem.unit.test.js +104 -0
- package/src/components/Loader/Loader.mdx +148 -0
- package/src/components/Loader/Loader.static.ts +85 -0
- package/src/components/Loader/Loader.tsx +75 -0
- package/src/components/Loader/index.ts +3 -0
- package/src/components/Loader/styles/config.scss +16 -0
- package/src/components/Loader/styles/mixins.scss +66 -0
- package/src/components/Loader/styles/style.scss +38 -0
- package/src/components/Loader/tests/Loader.conformance.test.js +22 -0
- package/src/components/Loader/tests/Loader.unit.test.js +59 -0
- package/src/components/Loader/tests/test.scss +5 -0
- package/src/components/Modal/Modal.mdx +86 -86
- package/src/components/Modal/Modal.tsx +5 -0
- package/src/components/Modal/styles/config.scss +7 -8
- package/src/components/Modal/styles/mixins.scss +2 -2
- package/src/components/Modal/styles/style.scss +65 -63
- package/src/components/Modal/tests/Modal.unit.test.js +22 -0
- package/src/components/Pagination/Pagination.mdx +45 -0
- package/src/components/Pagination/Pagination.tsx +86 -0
- package/src/components/Pagination/PaginationItem.tsx +61 -0
- package/src/components/Pagination/Separator.tsx +19 -0
- package/src/components/Pagination/helpers.ts +71 -0
- package/src/components/Pagination/index.ts +5 -0
- package/src/components/Pagination/styles/mixins.scss +43 -0
- package/src/components/Pagination/styles/style.scss +28 -0
- package/src/components/Pagination/tests/Item.unit.test.js +96 -0
- package/src/components/Pagination/tests/Pagination.conformance.test.js +41 -0
- package/src/components/Pagination/tests/Pagination.unit.test.js +108 -0
- package/src/components/Pagination/tests/Separator.unit.test.js +25 -0
- package/src/components/Pagination/tests/utils.js +12 -0
- package/src/components/Preview/CodeExample.tsx +238 -0
- package/src/components/Preview/Interact/ButtonShowPropsGroup.tsx +38 -0
- package/src/components/Preview/Interact/Interact.tsx +263 -0
- package/src/components/Preview/Interact/PropCheckbox.tsx +50 -0
- package/src/components/Preview/Interact/PropFormField.tsx +76 -0
- package/src/components/Preview/Interact/PropInput.tsx +72 -0
- package/src/components/Preview/Interact/PropLabelWithTooltip.tsx +77 -0
- package/src/components/Preview/Interact/PropSelect.tsx +60 -0
- package/src/components/Preview/Interact/PropsGroup.tsx +49 -0
- package/src/components/Preview/Interact/Tooltip.tsx +17 -0
- package/src/components/Preview/Interact/helpers.ts +60 -0
- package/src/components/Preview/Interact/state.ts +18 -0
- package/src/components/Preview/Preview.docs.mdx +153 -0
- package/src/components/Preview/Preview.test.js +66 -0
- package/src/components/Preview/Preview.tsx +273 -0
- package/src/components/Preview/PreviewTitleBar.tsx +32 -0
- package/src/components/Preview/index.tsx +16 -0
- package/src/components/Preview/styles/style.scss +340 -0
- package/src/components/Progress/Progress.mdx +119 -0
- package/src/components/Progress/Progress.tsx +60 -0
- package/src/components/Progress/index.ts +3 -0
- package/src/components/Progress/styles/config.scss +19 -0
- package/src/components/Progress/styles/mixins.scss +40 -0
- package/src/components/Progress/styles/style.scss +31 -0
- package/src/components/Progress/tests/Progress.conformance.test.js +27 -0
- package/src/components/Progress/tests/Progress.unit.test.js +108 -0
- package/src/components/PromoBanner/PromoBanner.tsx +65 -0
- package/src/components/PromoBanner/index.ts +2 -0
- package/src/components/PromoBanner/styles/mixins.scss +37 -0
- package/src/components/PromoBanner/styles/style.scss +23 -0
- package/src/components/PromotionCard/PromotionCard.mdx +191 -0
- package/src/components/PromotionCard/PromotionCard.tsx +31 -0
- package/src/components/PromotionCard/PromotionCardContent.tsx +25 -0
- package/src/components/PromotionCard/PromotionCardImageWrapper.tsx +25 -0
- package/src/components/PromotionCard/PromotionCardSection.tsx +29 -0
- package/src/components/PromotionCard/PromotionCardTitle.tsx +24 -0
- package/src/components/PromotionCard/constants.ts +5 -0
- package/src/components/PromotionCard/index.ts +7 -0
- package/src/components/PromotionCard/styles/config.scss +4 -0
- package/src/components/PromotionCard/styles/mixins.scss +89 -0
- package/src/components/PromotionCard/styles/style.scss +25 -0
- package/src/components/Section/Section.tsx +1 -1
- package/src/components/Section/styles/style.scss +28 -26
- package/src/components/Skeleton/Skeleton.mdx +90 -0
- package/src/components/Skeleton/Skeleton.tsx +21 -0
- package/src/components/Skeleton/index.ts +3 -0
- package/src/components/Skeleton/styles/config.scss +31 -0
- package/src/components/Skeleton/styles/mixins.scss +22 -0
- package/src/components/Skeleton/styles/style.scss +7 -0
- package/src/components/Skeleton/tests/Skeleton.conformance.test.js +16 -0
- package/src/components/Skeleton/tests/Skeleton.unit.test.js +22 -0
- package/src/components/SkipLink/SkipLink.mdx +23 -0
- package/src/components/SkipLink/SkipLink.tsx +25 -0
- package/src/components/SkipLink/index.ts +3 -0
- package/src/components/SkipLink/styles/style.scss +20 -0
- package/src/components/SkipLink/tests/SkipLink.unit.test.js +88 -0
- package/src/components/Stepbar/Stepbar.mdx +137 -0
- package/src/components/Stepbar/Stepbar.tsx +100 -0
- package/src/components/Stepbar/index.ts +3 -0
- package/src/components/Stepbar/styles/config.scss +91 -0
- package/src/components/Stepbar/styles/mixins.scss +132 -0
- package/src/components/Stepbar/styles/style.scss +77 -0
- package/src/components/Stepbar/tests/Stepbar.conformance.test.js +34 -0
- package/src/components/Stepbar/tests/Stepbar.unit.test.js +92 -0
- package/src/components/Sticker/Sticker.mdx +50 -0
- package/src/components/Sticker/Sticker.tsx +31 -0
- package/src/components/Sticker/index.ts +4 -0
- package/src/components/Sticker/styles/config.scss +31 -0
- package/src/components/Sticker/styles/mixins.scss +25 -0
- package/src/components/Sticker/styles/style.scss +22 -0
- package/src/components/Sticker/tests/Sticker.conformance.test.js +17 -0
- package/src/components/Sticker/tests/Sticker.unit.test.js +42 -0
- package/src/components/Table/Cell.tsx +22 -0
- package/src/components/Table/Footer.tsx +25 -0
- package/src/components/Table/Header.tsx +73 -0
- package/src/components/Table/Row.tsx +70 -0
- package/src/components/Table/Rows.tsx +36 -0
- package/src/components/Table/Table.mdx +199 -0
- package/src/components/Table/Table.static.ts +146 -0
- package/src/components/Table/Table.tsx +130 -0
- package/src/components/Table/TableContext.ts +9 -0
- package/src/components/Table/docsData.ts +210 -0
- package/src/components/Table/index.ts +4 -0
- package/src/components/Table/styles/config.scss +4 -0
- package/src/components/Table/styles/mixins.scss +115 -0
- package/src/components/Table/styles/style.scss +103 -0
- package/src/components/Table/tests/Cell.unit.test.js +59 -0
- package/src/components/Table/tests/Footer.unit.test.js +70 -0
- package/src/components/Table/tests/Header.unit.test.js +120 -0
- package/src/components/Table/tests/Row.unit.test.js +206 -0
- package/src/components/Table/tests/Rows.unit.test.js +92 -0
- package/src/components/Table/tests/Table.conformance.test.js +74 -0
- package/src/components/Table/tests/Table.unit.test.js +296 -0
- package/src/components/Table/types.ts +40 -0
- package/src/components/Tabs/Tabs.tsx +4 -5
- package/src/components/Tabs/styles/config.scss +29 -48
- package/src/components/Tabs/styles/mixins.scss +20 -29
- package/src/components/Tabs/styles/style.scss +34 -42
- package/src/components/Tabs/tests/Tabs.unit.test.js +8 -0
- package/src/components/Tag/CHANGELOG.md +93 -0
- package/src/components/Tag/Tag.mdx +52 -0
- package/src/components/Tag/Tag.tsx +118 -0
- package/src/components/Tag/TagButton.tsx +67 -0
- package/src/components/Tag/index.ts +5 -0
- package/src/components/Tag/styles/config.scss +132 -0
- package/src/components/Tag/styles/mixins.scss +54 -0
- package/src/components/Tag/styles/style.scss +69 -0
- package/src/components/Tag/tests/Tag.conformance.test.js +44 -0
- package/src/components/Tag/tests/Tag.unit.test.js +93 -0
- package/src/components/Tag/tests/TagButton.conformance.test.js +24 -0
- package/src/components/Tag/tests/TagButton.unit.test.js +96 -0
- package/src/components/Testimonial/Testimonial.mdx +41 -0
- package/src/components/Testimonial/Testimonial.tsx +38 -0
- package/src/components/Testimonial/index.ts +3 -0
- package/src/components/Testimonial/styles/config.scss +39 -0
- package/src/components/Testimonial/styles/mixins.scss +40 -0
- package/src/components/Testimonial/styles/style.scss +16 -0
- package/src/components/Testimonial/tests/Testimonial.conformance.test.js +17 -0
- package/src/components/Testimonial/tests/Testimonial.unit.test.js +44 -0
- package/src/components/Tile/CHANGELOG.md +14 -0
- package/src/components/Tile/Tile.mdx +163 -0
- package/src/components/Tile/Tile.tsx +86 -0
- package/src/components/Tile/index.ts +3 -0
- package/src/components/Tile/styles/config.scss +17 -0
- package/src/components/Tile/styles/mixins.scss +78 -0
- package/src/components/Tile/styles/style.scss +55 -0
- package/src/components/Tile/tests/Tile.conformance.test.js +16 -0
- package/src/components/Tile/tests/Tile.unit.test.js +126 -0
- package/src/components/Tooltip/InfoTooltip.tsx +40 -0
- package/src/components/Tooltip/TODO.md +1 -0
- package/src/components/Tooltip/Tooltip.mdx +227 -0
- package/src/components/Tooltip/Tooltip.static.ts +213 -0
- package/src/components/Tooltip/Tooltip.tsx +107 -0
- package/src/components/Tooltip/index.ts +4 -0
- package/src/components/Tooltip/styles/config.scss +59 -0
- package/src/components/Tooltip/styles/mixins.scss +94 -0
- package/src/components/Tooltip/styles/style.scss +30 -0
- package/src/components/Tooltip/tests/BaseWrapper.tsx +10 -0
- package/src/components/Tooltip/tests/InfoTooltip.unit.test.js +98 -0
- package/src/components/Tooltip/tests/Tooltip.conformance.test.js +44 -0
- package/src/components/Tooltip/tests/Tooltip.unit.test.js +326 -0
- package/src/components/index.ts +147 -3
- package/src/components/static.ts +1 -1
- package/src/styles/base/globals-forms.scss +15 -13
- package/src/styles/base/globals.scss +132 -103
- package/src/styles/before-components.scss +18 -4
- package/src/styles/export/base.scss +1 -1
- package/src/styles/export/color.scss +22 -22
- package/src/styles/shame.scss +10 -8
- package/src/styles/tokens/base.scss +4 -4
- package/src/styles/tokens/color.scss +11 -11
- package/src/styles/typography/mixins.scss +1 -1
- package/src/styles/typography/style.scss +43 -41
- package/src/styles/utilities/border.scss +16 -15
- package/src/styles/utilities/color.scss +115 -95
- package/src/styles/utilities/horizontal-scroll.scss +40 -36
- package/src/styles/utilities/layout.scss +159 -157
- package/src/styles/utilities/text.scss +98 -84
- package/src/styles/utilities/visibility.scss +66 -62
- package/build/404.html +0 -1
- package/build/_next/static/CRhIjUFtohDOfdDfzvfXM/_buildManifest.js +0 -1
- package/build/_next/static/CRhIjUFtohDOfdDfzvfXM/_ssgManifest.js +0 -1
- package/build/_next/static/chunks/4bd1b696-40a218329c8ae32b.js +0 -1
- package/build/_next/static/chunks/684-c72f8f73e7f2d568.js +0 -1
- package/build/_next/static/chunks/925.75d0c8afa7ab7cfa.js +0 -1
- package/build/_next/static/chunks/998-a45c3cf6f575e126.js +0 -1
- package/build/_next/static/chunks/app/_not-found/page-c799b4c91b89a5c2.js +0 -1
- package/build/_next/static/chunks/app/components/alert/page-d591b03a7394f81e.js +0 -1
- package/build/_next/static/chunks/app/components/badge/page-bbcffd5558aeab06.js +0 -1
- package/build/_next/static/chunks/app/components/button/page-b922a8f5114b0a69.js +0 -1
- package/build/_next/static/chunks/app/components/buttons/page-0a5bf7e5ac7991fb.js +0 -1
- package/build/_next/static/chunks/app/components/icon/page-dac6ba29b85d924d.js +0 -1
- package/build/_next/static/chunks/app/components/modal/page-4a249b6d271eea91.js +0 -1
- package/build/_next/static/chunks/app/components/tabs/page-7d82e8eafd25b86e.js +0 -1
- package/build/_next/static/chunks/app/layout-f74d44a2772d8d63.js +0 -1
- package/build/_next/static/chunks/app/page-9efa16a51ef59461.js +0 -1
- package/build/_next/static/chunks/framework-f593a28cde54158e.js +0 -1
- package/build/_next/static/chunks/main-43608b6b4bb05f8f.js +0 -1
- package/build/_next/static/chunks/main-app-ce2a2222e012907f.js +0 -1
- package/build/_next/static/chunks/pages/_app-da15c11dea942c36.js +0 -1
- package/build/_next/static/chunks/pages/_error-cc3f077a18ea1793.js +0 -1
- package/build/_next/static/chunks/polyfills-42372ed130431b0a.js +0 -1
- package/build/_next/static/chunks/webpack-623f6e616651e1c0.js +0 -1
- package/build/_next/static/css/14f3a3e0186fb7a8.css +0 -3
- package/build/_next/static/css/168dd2b7e791cf72.css +0 -1
- package/build/_next/static/css/28a41a1d7dcdbfd9.css +0 -1
- package/build/_next/static/css/291602d64f1f3570.css +0 -1
- package/build/_next/static/css/4c4366b3963177f0.css +0 -1
- package/build/_next/static/css/5481aeac9adca710.css +0 -1
- package/build/_next/static/css/73b136688c14b891.css +0 -1
- package/build/_next/static/css/91c8cf755bf9ff19.css +0 -1
- package/build/_next/static/css/c1b0424033f305ff.css +0 -1
- package/build/_next/static/css/eea9fd9ccdd56c76.css +0 -1
- package/build/_next/static/media/671791babd225be4-s.p.woff2 +0 -0
- package/build/_next/static/media/c62d990acddde5f0-s.p.woff2 +0 -0
- package/build/_next/static/media/dfdbb1c4973e0bd7-s.p.woff2 +0 -0
- package/build/components/Badge/index.js +0 -619
- package/build/components/Badge/index.js.map +0 -1
- package/build/components/Badge/style.css +0 -2
- package/build/components/Badge/style.css.map +0 -1
- package/build/components/alert.html +0 -2
- package/build/components/alert.txt +0 -30
- package/build/components/badge.html +0 -4
- package/build/components/badge.txt +0 -24
- package/build/components/button.html +0 -2
- package/build/components/button.txt +0 -27
- package/build/components/buttons.html +0 -1
- package/build/components/buttons.txt +0 -27
- package/build/components/icon.html +0 -1
- package/build/components/icon.txt +0 -23
- package/build/components/modal.html +0 -1
- package/build/components/modal.txt +0 -29
- package/build/components/tabs.html +0 -1
- package/build/components/tabs.txt +0 -27
- package/build/components/types/components/Badge/Badge.d.ts +0 -12
- package/build/components/types/components/Badge/index.d.ts +0 -2
- package/build/components/types/components/Container/Container.d.ts +0 -6
- package/build/components/types/components/Container/index.d.ts +0 -3
- package/build/components/types/components/index.d.ts +0 -11
- package/build/components/types/utils/ConditionalWrapper.d.ts +0 -13
- package/build/index.html +0 -11
- package/build/index.txt +0 -23
- package/src/components/Badge/Badge.mdx +0 -52
- package/src/components/Badge/Badge.tsx +0 -47
- package/src/components/Badge/index.ts +0 -3
- package/src/components/Badge/styles/config.scss +0 -88
- package/src/components/Badge/styles/mixins.scss +0 -26
- package/src/components/Badge/styles/style.scss +0 -21
- package/src/components/Badge/tests/Badge.unit.test.js +0 -50
- package/src/components/Grid/tests/Grid.unit.test.tsx +0 -533
- package/src/components/Grid/tests/GridCol.unit.test.tsx +0 -199
- package/src/components/Link/styles/config.scss +0 -85
- package/src/components/Link/tests/Link.integration.test.js +0 -393
- /package/build/components/types/{components → src/components}/Alert/data.d.ts +0 -0
- /package/build/components/types/{components → src/components}/Alert/index.d.ts +0 -0
- /package/build/components/types/{components → src/components}/Button/IconButton.d.ts +0 -0
- /package/build/components/types/{components → src/components}/Button/index.d.ts +0 -0
- /package/build/components/types/{components → src/components}/Buttons/Buttons.d.ts +0 -0
- /package/build/components/types/{components → src/components}/Buttons/index.d.ts +0 -0
- /package/build/components/types/{components → src/components}/Icon/SpritePathContext.d.ts +0 -0
- /package/build/components/types/{components → src/components}/Icon/index.d.ts +0 -0
- /package/build/components/types/{components → src/components}/Modal/Modal.static.d.ts +0 -0
- /package/build/components/types/{components → src/components}/Modal/ModalBody.d.ts +0 -0
- /package/build/components/types/{components → src/components}/Modal/ModalCloseButton.d.ts +0 -0
- /package/build/components/types/{components → src/components}/Modal/ModalTitle.d.ts +0 -0
- /package/build/components/types/{components → src/components}/Modal/index.d.ts +0 -0
- /package/build/components/types/{components → src/components}/Section/Section.d.ts +0 -0
- /package/build/components/types/{components → src/components}/Section/index.d.ts +0 -0
- /package/build/components/types/{components → src/components}/Tabs/Tab.d.ts +0 -0
- /package/build/components/types/{components → src/components}/Tabs/TabPanel.d.ts +0 -0
- /package/build/components/types/{components → src/components}/Tabs/Tabs.static.d.ts +0 -0
- /package/build/components/types/{components → src/components}/Tabs/index.d.ts +0 -0
- /package/build/components/types/{utils → src/utils}/constants.d.ts +0 -0
- /package/build/components/types/{utils → src/utils}/generateId.d.ts +0 -0
- /package/build/components/types/{utils → src/utils}/keyboard.d.ts +0 -0
|
@@ -1,649 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
function _arrayLikeToArray(r, a) {
|
|
4
|
-
(null == a || a > r.length) && (a = r.length);
|
|
5
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
6
|
-
return n;
|
|
7
|
-
}
|
|
8
|
-
function _arrayWithoutHoles(r) {
|
|
9
|
-
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
10
|
-
}
|
|
11
|
-
function _classCallCheck(a, n) {
|
|
12
|
-
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
13
|
-
}
|
|
14
|
-
function _defineProperties(e, r) {
|
|
15
|
-
for (var t = 0; t < r.length; t++) {
|
|
16
|
-
var o = r[t];
|
|
17
|
-
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
function _createClass(e, r, t) {
|
|
21
|
-
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
22
|
-
writable: false
|
|
23
|
-
}), e;
|
|
24
|
-
}
|
|
25
|
-
function _defineProperty(e, r, t) {
|
|
26
|
-
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
27
|
-
value: t,
|
|
28
|
-
enumerable: true,
|
|
29
|
-
configurable: true,
|
|
30
|
-
writable: true
|
|
31
|
-
}) : e[r] = t, e;
|
|
32
|
-
}
|
|
33
|
-
function _iterableToArray(r) {
|
|
34
|
-
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
35
|
-
}
|
|
36
|
-
function _nonIterableSpread() {
|
|
37
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
38
|
-
}
|
|
39
|
-
function ownKeys(e, r) {
|
|
40
|
-
var t = Object.keys(e);
|
|
41
|
-
if (Object.getOwnPropertySymbols) {
|
|
42
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
43
|
-
r && (o = o.filter(function (r) {
|
|
44
|
-
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
45
|
-
})), t.push.apply(t, o);
|
|
46
|
-
}
|
|
47
|
-
return t;
|
|
48
|
-
}
|
|
49
|
-
function _objectSpread2(e) {
|
|
50
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
51
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
|
52
|
-
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
53
|
-
_defineProperty(e, r, t[r]);
|
|
54
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
55
|
-
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
return e;
|
|
59
|
-
}
|
|
60
|
-
function _toConsumableArray(r) {
|
|
61
|
-
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
62
|
-
}
|
|
63
|
-
function _toPrimitive(t, r) {
|
|
64
|
-
if ("object" != typeof t || !t) return t;
|
|
65
|
-
var e = t[Symbol.toPrimitive];
|
|
66
|
-
if (void 0 !== e) {
|
|
67
|
-
var i = e.call(t, r);
|
|
68
|
-
if ("object" != typeof i) return i;
|
|
69
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
70
|
-
}
|
|
71
|
-
return (String )(t);
|
|
72
|
-
}
|
|
73
|
-
function _toPropertyKey(t) {
|
|
74
|
-
var i = _toPrimitive(t, "string");
|
|
75
|
-
return "symbol" == typeof i ? i : i + "";
|
|
76
|
-
}
|
|
77
|
-
function _unsupportedIterableToArray(r, a) {
|
|
78
|
-
if (r) {
|
|
79
|
-
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
80
|
-
var t = {}.toString.call(r).slice(8, -1);
|
|
81
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/******************************************************************************
|
|
86
|
-
Copyright (c) Microsoft Corporation.
|
|
87
|
-
|
|
88
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
89
|
-
purpose with or without fee is hereby granted.
|
|
90
|
-
|
|
91
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
92
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
93
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
94
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
95
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
96
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
97
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
98
|
-
***************************************************************************** */
|
|
99
|
-
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
function __rest(s, e) {
|
|
103
|
-
var t = {};
|
|
104
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
105
|
-
t[p] = s[p];
|
|
106
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
107
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
108
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
109
|
-
t[p[i]] = s[p[i]];
|
|
110
|
-
}
|
|
111
|
-
return t;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
115
|
-
var e = new Error(message);
|
|
116
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
function getDefaultExportFromCjs (x) {
|
|
120
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
var classnames = {exports: {}};
|
|
124
|
-
|
|
1
|
+
import e,{createContext as t,useRef as r,useEffect as n,useCallback as o,useContext as i}from"react";function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,p(n.key),n)}}function l(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t,r){return(t=p(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function v(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function b(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}"function"==typeof SuppressedError&&SuppressedError;var m,h={exports:{}};
|
|
125
2
|
/*!
|
|
126
3
|
Copyright (c) 2018 Jed Watson.
|
|
127
4
|
Licensed under the MIT License (MIT), see
|
|
128
5
|
http://jedwatson.github.io/classnames
|
|
129
|
-
*/
|
|
130
|
-
|
|
131
|
-
var hasRequiredClassnames;
|
|
132
|
-
|
|
133
|
-
function requireClassnames () {
|
|
134
|
-
if (hasRequiredClassnames) return classnames.exports;
|
|
135
|
-
hasRequiredClassnames = 1;
|
|
136
|
-
(function (module) {
|
|
137
|
-
/* global define */
|
|
138
|
-
|
|
139
|
-
(function () {
|
|
140
|
-
|
|
141
|
-
var hasOwn = {}.hasOwnProperty;
|
|
142
|
-
|
|
143
|
-
function classNames () {
|
|
144
|
-
var classes = '';
|
|
145
|
-
|
|
146
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
147
|
-
var arg = arguments[i];
|
|
148
|
-
if (arg) {
|
|
149
|
-
classes = appendClass(classes, parseValue(arg));
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
return classes;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
function parseValue (arg) {
|
|
157
|
-
if (typeof arg === 'string' || typeof arg === 'number') {
|
|
158
|
-
return arg;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
if (typeof arg !== 'object') {
|
|
162
|
-
return '';
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
if (Array.isArray(arg)) {
|
|
166
|
-
return classNames.apply(null, arg);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
170
|
-
return arg.toString();
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
var classes = '';
|
|
174
|
-
|
|
175
|
-
for (var key in arg) {
|
|
176
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
177
|
-
classes = appendClass(classes, key);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
return classes;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
function appendClass (value, newClass) {
|
|
185
|
-
if (!newClass) {
|
|
186
|
-
return value;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
if (value) {
|
|
190
|
-
return value + ' ' + newClass;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
return value + newClass;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
if (module.exports) {
|
|
197
|
-
classNames.default = classNames;
|
|
198
|
-
module.exports = classNames;
|
|
199
|
-
} else {
|
|
200
|
-
window.classNames = classNames;
|
|
201
|
-
}
|
|
202
|
-
}());
|
|
203
|
-
} (classnames));
|
|
204
|
-
return classnames.exports;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
var classnamesExports = requireClassnames();
|
|
208
|
-
var cx = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
209
|
-
|
|
210
|
-
// we use array to include old browser key names like IE11
|
|
211
|
-
// ie. navigation keys https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_key_values#navigation_keys
|
|
212
|
-
var keys = {
|
|
213
|
-
TAB: ['Tab'],
|
|
214
|
-
ARROWLEFT: ['Left', 'ArrowLeft'],
|
|
215
|
-
ARROWUP: ['Up', 'ArrowUp'],
|
|
216
|
-
ARROWRIGHT: ['Right', 'ArrowRight'],
|
|
217
|
-
ARROWDOWN: ['Down', 'ArrowDown']
|
|
218
|
-
};
|
|
219
|
-
|
|
220
|
-
var RovingTabindex = /*#__PURE__*/function () {
|
|
221
|
-
function RovingTabindex(elems) {
|
|
222
|
-
var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
223
|
-
direction: 'horizontal'
|
|
224
|
-
};
|
|
225
|
-
_classCallCheck(this, RovingTabindex);
|
|
226
|
-
this.elems = elems;
|
|
227
|
-
this.config = config;
|
|
228
|
-
this.isActive = false;
|
|
229
|
-
this.onKeydown = this.onKeydown.bind(this);
|
|
230
|
-
}
|
|
231
|
-
return _createClass(RovingTabindex, [{
|
|
232
|
-
key: "init",
|
|
233
|
-
value: function init() {
|
|
234
|
-
document.addEventListener('keydown', this.onKeydown);
|
|
235
|
-
this.isActive = true;
|
|
236
|
-
}
|
|
237
|
-
}, {
|
|
238
|
-
key: "destroy",
|
|
239
|
-
value: function destroy() {
|
|
240
|
-
document.removeEventListener('keydown', this.onKeydown);
|
|
241
|
-
this.isActive = false;
|
|
242
|
-
}
|
|
243
|
-
}, {
|
|
244
|
-
key: "update",
|
|
245
|
-
value: function update(elems) {
|
|
246
|
-
this.elems = elems;
|
|
247
|
-
}
|
|
248
|
-
}, {
|
|
249
|
-
key: "onKeydown",
|
|
250
|
-
value: function onKeydown(e) {
|
|
251
|
-
var activeElemIndex = this.elems.indexOf(document.activeElement);
|
|
252
|
-
if ((keys.ARROWUP.includes(e.key) || keys.ARROWDOWN.includes(e.key)) && this.config.direction === 'horizontal') {
|
|
253
|
-
return;
|
|
254
|
-
}
|
|
255
|
-
if ((keys.ARROWLEFT.includes(e.key) || keys.ARROWRIGHT.includes(e.key)) && this.config.direction === 'vertical') {
|
|
256
|
-
return;
|
|
257
|
-
}
|
|
258
|
-
if (keys.ARROWDOWN.includes(e.key) || keys.ARROWRIGHT.includes(e.key)) {
|
|
259
|
-
e.preventDefault();
|
|
260
|
-
if (activeElemIndex >= 0 && activeElemIndex < this.elems.length - 1) {
|
|
261
|
-
this.elems[activeElemIndex + 1].focus();
|
|
262
|
-
} else {
|
|
263
|
-
this.elems[0].focus();
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
if (keys.ARROWUP.includes(e.key) || keys.ARROWLEFT.includes(e.key)) {
|
|
267
|
-
e.preventDefault();
|
|
268
|
-
if (activeElemIndex >= 1) {
|
|
269
|
-
this.elems[activeElemIndex - 1].focus();
|
|
270
|
-
} else {
|
|
271
|
-
this.elems[this.elems.length - 1].focus();
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
if (keys.TAB.includes(e.key)) {
|
|
275
|
-
this.destroy();
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
}]);
|
|
279
|
-
}();
|
|
280
|
-
|
|
281
|
-
var TRIGGER_EVT = 'toggleTrigger';
|
|
282
|
-
var TOGGLE_EVT = 'toggle';
|
|
283
|
-
var defaultConfig$1 = {
|
|
284
|
-
activeClass: 'is-active',
|
|
285
|
-
settingsAttr: 'data-toggle'
|
|
286
|
-
};
|
|
287
|
-
var Toggle = /*#__PURE__*/function () {
|
|
288
|
-
function Toggle(element, config) {
|
|
289
|
-
_classCallCheck(this, Toggle);
|
|
290
|
-
this.element = element;
|
|
291
|
-
this.config = _objectSpread2(_objectSpread2({}, defaultConfig$1), config);
|
|
292
|
-
this.settings = {};
|
|
293
|
-
this.targets = [];
|
|
294
|
-
this.handleClick = this.handleClick.bind(this);
|
|
295
|
-
this.element.ODS_Toggle = this;
|
|
296
|
-
this.init();
|
|
297
|
-
return this;
|
|
298
|
-
}
|
|
299
|
-
return _createClass(Toggle, [{
|
|
300
|
-
key: "doToggle",
|
|
301
|
-
value: function doToggle(props) {
|
|
302
|
-
var _props$dispatchEvent = props.dispatchEvent,
|
|
303
|
-
dispatchEvent = _props$dispatchEvent === void 0 ? true : _props$dispatchEvent;
|
|
304
|
-
var element = props.element,
|
|
305
|
-
attribute = props.attribute,
|
|
306
|
-
value = props.value,
|
|
307
|
-
action = props.action;
|
|
308
|
-
var returnProps = _objectSpread2({}, props);
|
|
309
|
-
var eventDetail = {
|
|
310
|
-
trigger: this.element,
|
|
311
|
-
element: element
|
|
312
|
-
};
|
|
313
|
-
if (attribute === 'icon') {
|
|
314
|
-
attribute = 'xlink:href';
|
|
315
|
-
element = element.querySelector('use');
|
|
316
|
-
}
|
|
317
|
-
if (attribute === 'text') {
|
|
318
|
-
element = element.querySelector('[data-toggle-text-target]') || element;
|
|
319
|
-
}
|
|
320
|
-
if (typeof value === 'undefined') {
|
|
321
|
-
value = false;
|
|
322
|
-
}
|
|
323
|
-
returnProps.value = toggle({
|
|
324
|
-
element: element,
|
|
325
|
-
attribute: attribute,
|
|
326
|
-
action: action,
|
|
327
|
-
value: value,
|
|
328
|
-
dispatchEvent: dispatchEvent,
|
|
329
|
-
eventDetail: eventDetail
|
|
330
|
-
});
|
|
331
|
-
return returnProps;
|
|
332
|
-
}
|
|
333
|
-
}, {
|
|
334
|
-
key: "init",
|
|
335
|
-
value: function init() {
|
|
336
|
-
this.settings = this.parseSettings();
|
|
337
|
-
this.targets = this.setupTargets();
|
|
338
|
-
this.element.addEventListener('click', this.handleClick);
|
|
339
|
-
return this.targets;
|
|
340
|
-
}
|
|
341
|
-
}, {
|
|
342
|
-
key: "handleClick",
|
|
343
|
-
value: function handleClick() {
|
|
344
|
-
var _this = this;
|
|
345
|
-
this.targets = this.targets.map(function (target) {
|
|
346
|
-
return _this.doToggle(target);
|
|
347
|
-
});
|
|
348
|
-
this.element.dispatchEvent(new CustomEvent(TRIGGER_EVT, {
|
|
349
|
-
bubbles: true
|
|
350
|
-
}));
|
|
351
|
-
}
|
|
352
|
-
}, {
|
|
353
|
-
key: "destroy",
|
|
354
|
-
value: function destroy() {
|
|
355
|
-
this.element.removeEventListener('click', this.handleClick);
|
|
356
|
-
this.settings = [];
|
|
357
|
-
this.targets = [];
|
|
358
|
-
}
|
|
359
|
-
}, {
|
|
360
|
-
key: "update",
|
|
361
|
-
value: function update() {
|
|
362
|
-
this.removeNonExistentTargets();
|
|
363
|
-
this.addNewTargets();
|
|
364
|
-
}
|
|
365
|
-
}, {
|
|
366
|
-
key: "parseSettings",
|
|
367
|
-
value: function parseSettings() {
|
|
368
|
-
var jsonSettings = this.element.getAttribute(this.config.settingsAttr);
|
|
369
|
-
var ariaControls = this.element.getAttribute('aria-controls');
|
|
370
|
-
var settings = JSON.parse(jsonSettings);
|
|
371
|
-
if (ariaControls) {
|
|
372
|
-
var ariaExpanded = this.element.getAttribute('aria-expanded');
|
|
373
|
-
settings = [].concat(_toConsumableArray(ariaExpanded ? [{
|
|
374
|
-
target: 'self',
|
|
375
|
-
attribute: 'aria-expanded'
|
|
376
|
-
}] : []), [{
|
|
377
|
-
target: ariaControls.split(' ').map(function (a) {
|
|
378
|
-
return "#".concat(a);
|
|
379
|
-
}).join(','),
|
|
380
|
-
attribute: 'hidden'
|
|
381
|
-
}], _toConsumableArray(Array.isArray(settings) ? settings : []));
|
|
382
|
-
}
|
|
383
|
-
return settings;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
// get all the possible settings for all target elements
|
|
387
|
-
}, {
|
|
388
|
-
key: "setupTargets",
|
|
389
|
-
value: function setupTargets() {
|
|
390
|
-
var trigger = this.element;
|
|
391
|
-
return this.settings.reduce(function (allSettings, setting) {
|
|
392
|
-
return [].concat(_toConsumableArray(allSettings), _toConsumableArray(setting === null || setting === void 0 ? void 0 : setting.target.split(',') // separate target selectors
|
|
393
|
-
.reduce(function (targetSettings, target) {
|
|
394
|
-
return [].concat(_toConsumableArray(targetSettings), _toConsumableArray(Toggle
|
|
395
|
-
// get target elements from DOM
|
|
396
|
-
.getTargetElementsFromString({
|
|
397
|
-
target: target,
|
|
398
|
-
trigger: trigger
|
|
399
|
-
})
|
|
400
|
-
// duplicate setting for each DOM element
|
|
401
|
-
.map(function (element) {
|
|
402
|
-
return _objectSpread2(_objectSpread2({}, setting), {}, {
|
|
403
|
-
element: element
|
|
404
|
-
});
|
|
405
|
-
})));
|
|
406
|
-
}, [])));
|
|
407
|
-
}, []);
|
|
408
|
-
}
|
|
409
|
-
}, {
|
|
410
|
-
key: "removeNonExistentTargets",
|
|
411
|
-
value: function removeNonExistentTargets() {
|
|
412
|
-
this.targets = this.targets.filter(function (target) {
|
|
413
|
-
return document.contains(target.element);
|
|
414
|
-
});
|
|
415
|
-
}
|
|
416
|
-
}, {
|
|
417
|
-
key: "addNewTargets",
|
|
418
|
-
value: function addNewTargets() {
|
|
419
|
-
var _this2 = this;
|
|
420
|
-
var allTargets = this.setupTargets();
|
|
421
|
-
var newTargets = allTargets.filter(function (newTarget) {
|
|
422
|
-
return !_this2.targets.find(function (target) {
|
|
423
|
-
return target.element === newTarget.element && target.action === newTarget.action;
|
|
424
|
-
});
|
|
425
|
-
});
|
|
426
|
-
this.targets = [].concat(_toConsumableArray(this.targets), _toConsumableArray(newTargets));
|
|
427
|
-
}
|
|
428
|
-
}], [{
|
|
429
|
-
key: "getTargetElementsFromString",
|
|
430
|
-
value: function getTargetElementsFromString(_ref) {
|
|
431
|
-
var target = _ref.target,
|
|
432
|
-
trigger = _ref.trigger;
|
|
433
|
-
var selector = target.trim();
|
|
434
|
-
if (selector === 'self') {
|
|
435
|
-
return [trigger];
|
|
436
|
-
}
|
|
437
|
-
if (selector === 'parent') {
|
|
438
|
-
return [trigger.parentNode];
|
|
439
|
-
}
|
|
440
|
-
if (selector === 'previous') {
|
|
441
|
-
return [trigger.previousElementSibling];
|
|
442
|
-
}
|
|
443
|
-
if (selector === 'next') {
|
|
444
|
-
return [trigger.nextElementSibling];
|
|
445
|
-
}
|
|
446
|
-
if (typeof selector === 'string') {
|
|
447
|
-
// don't be tempted to remove this querySelectorAll
|
|
448
|
-
// selector like '.target-elements' whould not work as expected
|
|
449
|
-
return Array.from(document.querySelectorAll(selector));
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
// add log why we endup here
|
|
453
|
-
return selector;
|
|
454
|
-
}
|
|
455
|
-
}, {
|
|
456
|
-
key: "getInstance",
|
|
457
|
-
value: function getInstance(el) {
|
|
458
|
-
return el && el.ODS_Toggle ? el.ODS_Toggle : null;
|
|
459
|
-
}
|
|
460
|
-
}]);
|
|
461
|
-
}();
|
|
462
|
-
Toggle.getTargetElements;
|
|
463
|
-
Toggle.setTargets;
|
|
464
|
-
|
|
465
|
-
function toggle(props) {
|
|
466
|
-
var element = props.element,
|
|
467
|
-
attribute = props.attribute,
|
|
468
|
-
action = props.action,
|
|
469
|
-
value = props.value,
|
|
470
|
-
_props$dispatchEvent = props.dispatchEvent,
|
|
471
|
-
dispatchEvent = _props$dispatchEvent === void 0 ? true : _props$dispatchEvent,
|
|
472
|
-
eventDetail = props.eventDetail;
|
|
473
|
-
var returnValue = null;
|
|
474
|
-
if (!element || !(element instanceof Element)) {
|
|
475
|
-
return returnValue;
|
|
476
|
-
}
|
|
477
|
-
if (action === 'focus') {
|
|
478
|
-
setTimeout(element.focus(), 20);
|
|
479
|
-
}
|
|
480
|
-
if (action === 'click') {
|
|
481
|
-
element.click();
|
|
482
|
-
}
|
|
483
|
-
if (attribute === 'class') {
|
|
484
|
-
element.classList.toggle(value);
|
|
485
|
-
returnValue = value;
|
|
486
|
-
}
|
|
487
|
-
if (attribute === 'text') {
|
|
488
|
-
var oldText = element.textContent;
|
|
489
|
-
element.textContent = value;
|
|
490
|
-
returnValue = oldText;
|
|
491
|
-
}
|
|
492
|
-
if (attribute !== 'class' && attribute !== 'text' && typeof action === 'undefined') {
|
|
493
|
-
returnValue = element.getAttribute(attribute);
|
|
494
|
-
if (attribute === 'hidden') {
|
|
495
|
-
if (element.hasAttribute(attribute)) {
|
|
496
|
-
element.removeAttribute(attribute);
|
|
497
|
-
} else {
|
|
498
|
-
element.setAttribute(attribute, '');
|
|
499
|
-
}
|
|
500
|
-
} else if (!value) {
|
|
501
|
-
element.setAttribute(attribute, !(returnValue === 'true'));
|
|
502
|
-
} else {
|
|
503
|
-
element.setAttribute(attribute, value);
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
if (dispatchEvent) {
|
|
507
|
-
element.dispatchEvent(new CustomEvent(TOGGLE_EVT, {
|
|
508
|
-
detail: eventDetail,
|
|
509
|
-
bubbles: true
|
|
510
|
-
}));
|
|
511
|
-
}
|
|
512
|
-
return returnValue;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
var defaultConfig = {
|
|
516
|
-
buttonSelector: '[data-accordion-toggle]'
|
|
517
|
-
};
|
|
518
|
-
var Accordion$1 = /*#__PURE__*/function () {
|
|
519
|
-
function Accordion(element, config) {
|
|
520
|
-
_classCallCheck(this, Accordion);
|
|
521
|
-
this.element = element;
|
|
522
|
-
this.config = Object.assign(Object.assign({}, defaultConfig), config);
|
|
523
|
-
this.onFocus = this.onFocus.bind(this);
|
|
524
|
-
this.onClick = this.onClick.bind(this);
|
|
525
|
-
this.element.ODS_Accordion = this;
|
|
526
|
-
this.init();
|
|
527
|
-
return this;
|
|
528
|
-
}
|
|
529
|
-
return _createClass(Accordion, [{
|
|
530
|
-
key: "onFocus",
|
|
531
|
-
value: function onFocus(e) {
|
|
532
|
-
if (!this.rovingTabindex.isActive) {
|
|
533
|
-
this.rovingTabindex.init();
|
|
534
|
-
}
|
|
535
|
-
var button = e.currentTarget;
|
|
536
|
-
if (window.location.hash.substring(1) === button.getAttribute('id') && button.getAttribute('aria-expanded') === 'false') {
|
|
537
|
-
button.click();
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
}, {
|
|
541
|
-
key: "init",
|
|
542
|
-
value: function init() {
|
|
543
|
-
var _this = this;
|
|
544
|
-
this.buttons = Array.from(this.element.querySelectorAll(this.config.buttonSelector));
|
|
545
|
-
if (!this.rovingTabindex) {
|
|
546
|
-
this.rovingTabindex = new RovingTabindex(this.buttons, {
|
|
547
|
-
direction: 'vertical'
|
|
548
|
-
});
|
|
549
|
-
} else {
|
|
550
|
-
this.rovingTabindex.update(this.buttons);
|
|
551
|
-
}
|
|
552
|
-
this.buttons.forEach(function (button) {
|
|
553
|
-
button.addEventListener('focus', _this.onFocus);
|
|
554
|
-
// only add click events when there are no toggle actions defined
|
|
555
|
-
if (!button.getAttribute('data-toggle')) {
|
|
556
|
-
button.addEventListener('click', _this.onClick);
|
|
557
|
-
}
|
|
558
|
-
});
|
|
559
|
-
}
|
|
560
|
-
}, {
|
|
561
|
-
key: "onClick",
|
|
562
|
-
value: function onClick(e) {
|
|
563
|
-
var button = e.currentTarget;
|
|
564
|
-
var accordionSection = this.element.querySelector("#".concat(button.getAttribute('aria-controls')));
|
|
565
|
-
toggle({
|
|
566
|
-
element: button,
|
|
567
|
-
attribute: 'aria-expanded'
|
|
568
|
-
});
|
|
569
|
-
toggle({
|
|
570
|
-
element: accordionSection,
|
|
571
|
-
attribute: 'hidden'
|
|
572
|
-
});
|
|
573
|
-
}
|
|
574
|
-
}, {
|
|
575
|
-
key: "destroy",
|
|
576
|
-
value: function destroy() {
|
|
577
|
-
var _this2 = this;
|
|
578
|
-
this.rovingTabindex.destroy();
|
|
579
|
-
this.buttons.forEach(function (button) {
|
|
580
|
-
button.removeEventListener('focus', _this2.onFocus);
|
|
581
|
-
button.removeEventListener('click', _this2.onClick);
|
|
582
|
-
});
|
|
583
|
-
}
|
|
584
|
-
}, {
|
|
585
|
-
key: "update",
|
|
586
|
-
value: function update() {
|
|
587
|
-
this.destroy();
|
|
588
|
-
this.init();
|
|
589
|
-
}
|
|
590
|
-
}], [{
|
|
591
|
-
key: "getInstance",
|
|
592
|
-
value: function getInstance(el) {
|
|
593
|
-
return el && el.ODS_Accordion ? el.ODS_Accordion : null;
|
|
594
|
-
}
|
|
595
|
-
}]);
|
|
596
|
-
}();
|
|
597
|
-
|
|
598
|
-
var HeadingContext = /*#__PURE__*/createContext(null);
|
|
599
|
-
|
|
600
|
-
var jsxRuntime = {exports: {}};
|
|
601
|
-
|
|
602
|
-
var reactJsxRuntime_production = {};
|
|
603
|
-
|
|
604
|
-
/**
|
|
605
|
-
* @license React
|
|
606
|
-
* react-jsx-runtime.production.js
|
|
607
|
-
*
|
|
608
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
609
|
-
*
|
|
610
|
-
* This source code is licensed under the MIT license found in the
|
|
611
|
-
* LICENSE file in the root directory of this source tree.
|
|
612
|
-
*/
|
|
613
|
-
|
|
614
|
-
var hasRequiredReactJsxRuntime_production;
|
|
615
|
-
|
|
616
|
-
function requireReactJsxRuntime_production () {
|
|
617
|
-
if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
|
|
618
|
-
hasRequiredReactJsxRuntime_production = 1;
|
|
619
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
620
|
-
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
621
|
-
function jsxProd(type, config, maybeKey) {
|
|
622
|
-
var key = null;
|
|
623
|
-
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
624
|
-
void 0 !== config.key && (key = "" + config.key);
|
|
625
|
-
if ("key" in config) {
|
|
626
|
-
maybeKey = {};
|
|
627
|
-
for (var propName in config)
|
|
628
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
629
|
-
} else maybeKey = config;
|
|
630
|
-
config = maybeKey.ref;
|
|
631
|
-
return {
|
|
632
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
633
|
-
type: type,
|
|
634
|
-
key: key,
|
|
635
|
-
ref: void 0 !== config ? config : null,
|
|
636
|
-
props: maybeKey
|
|
637
|
-
};
|
|
638
|
-
}
|
|
639
|
-
reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
640
|
-
reactJsxRuntime_production.jsx = jsxProd;
|
|
641
|
-
reactJsxRuntime_production.jsxs = jsxProd;
|
|
642
|
-
return reactJsxRuntime_production;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
var reactJsxRuntime_development = {};
|
|
646
|
-
|
|
6
|
+
*/var g,O=b((m||(m=1,g=h,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=n(e,r(o)))}return e}function r(r){if("string"==typeof r||"number"==typeof r)return r;if("object"!=typeof r)return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var i in r)e.call(r,i)&&r[i]&&(o=n(o,i));return o}function n(e,t){return t?e?e+" "+t:e+t:e}g.exports?(t.default=t,g.exports=t):window.classNames=t}()),h.exports)),k={TAB:["Tab"],ARROWLEFT:["Left","ArrowLeft"],ARROWUP:["Up","ArrowUp"],ARROWRIGHT:["Right","ArrowRight"],ARROWDOWN:["Down","ArrowDown"]},j=function(){return l(function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{direction:"horizontal"};c(this,e),this.elems=t,this.config=r,this.isActive=!1,this.onKeydown=this.onKeydown.bind(this)},[{key:"init",value:function(){document.addEventListener("keydown",this.onKeydown),this.isActive=!0}},{key:"destroy",value:function(){document.removeEventListener("keydown",this.onKeydown),this.isActive=!1}},{key:"update",value:function(e){this.elems=e}},{key:"onKeydown",value:function(e){var t=this.elems.indexOf(document.activeElement);(k.ARROWUP.includes(e.key)||k.ARROWDOWN.includes(e.key))&&"horizontal"===this.config.direction||(k.ARROWLEFT.includes(e.key)||k.ARROWRIGHT.includes(e.key))&&"vertical"===this.config.direction||((k.ARROWDOWN.includes(e.key)||k.ARROWRIGHT.includes(e.key))&&(e.preventDefault(),t>=0&&t<this.elems.length-1?this.elems[t+1].focus():this.elems[0].focus()),(k.ARROWUP.includes(e.key)||k.ARROWLEFT.includes(e.key))&&(e.preventDefault(),t>=1?this.elems[t-1].focus():this.elems[this.elems.length-1].focus()),k.TAB.includes(e.key)&&this.destroy())}}])}();function w(e){var t=e.element,r=e.attribute,n=e.action,o=e.value,i=e.dispatchEvent,a=void 0===i||i,c=e.eventDetail,s=null;if(!(t&&t instanceof Element))return s;if("focus"===n&&setTimeout(function(){return t.focus()},20),"click"===n&&t.click(),"class"===r&&"string"==typeof o&&(t.classList.toggle(o),s=o),"text"===r){var l=t.textContent;t.textContent=(null==o?void 0:o.toString())||"",s=l}return"class"!==r&&"text"!==r&&void 0===n&&(s=t.getAttribute(r),"hidden"===r?t.hasAttribute(r)?t.removeAttribute(r):t.setAttribute(r,""):o?t.setAttribute(r,String(o)):t.setAttribute(r,String(!("true"===s)))),a&&t.dispatchEvent(new CustomEvent("toggle",{detail:c,bubbles:!0})),s}var A={buttonSelector:"[data-accordion-toggle]"},S=function(){return l(function e(t,r){return c(this,e),this.element=t,this.config=Object.assign(Object.assign({},A),r),this.onFocus=this.onFocus.bind(this),this.onClick=this.onClick.bind(this),this.element.ODS_Accordion=this,this.init(),this},[{key:"onFocus",value:function(e){this.rovingTabindex.isActive||this.rovingTabindex.init();var t=e.currentTarget;window.location.hash.substring(1)===t.getAttribute("id")&&"false"===t.getAttribute("aria-expanded")&&t.click()}},{key:"init",value:function(){var e=this;this.buttons=Array.from(this.element.querySelectorAll(this.config.buttonSelector)),this.rovingTabindex?this.rovingTabindex.update(this.buttons):this.rovingTabindex=new j(this.buttons,{direction:"vertical"}),this.buttons.forEach(function(t){t.addEventListener("focus",e.onFocus),t.getAttribute("data-toggle")||t.addEventListener("click",e.onClick)})}},{key:"onClick",value:function(e){var t=e.currentTarget,r=this.element.querySelector("#".concat(t.getAttribute("aria-controls")));w({element:t,attribute:"aria-expanded"}),w({element:r,attribute:"hidden"})}},{key:"destroy",value:function(){var e=this;this.rovingTabindex.destroy(),this.buttons.forEach(function(t){t.removeEventListener("focus",e.onFocus),t.removeEventListener("click",e.onClick)})}},{key:"update",value:function(){this.destroy(),this.init()}}],[{key:"getInstance",value:function(e){return e&&e.ODS_Accordion?e.ODS_Accordion:null}}])}(),x=t(null),_=0;function R(e){return"id".concat("","-").concat(_+=1)}var N,E={exports:{}},P={};var T,D,C={};
|
|
647
7
|
/**
|
|
648
8
|
* @license React
|
|
649
9
|
* react-jsx-runtime.development.js
|
|
@@ -652,519 +12,5 @@ var reactJsxRuntime_development = {};
|
|
|
652
12
|
*
|
|
653
13
|
* This source code is licensed under the MIT license found in the
|
|
654
14
|
* LICENSE file in the root directory of this source tree.
|
|
655
|
-
*/
|
|
656
|
-
|
|
657
|
-
var hasRequiredReactJsxRuntime_development;
|
|
658
|
-
|
|
659
|
-
function requireReactJsxRuntime_development () {
|
|
660
|
-
if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
|
|
661
|
-
hasRequiredReactJsxRuntime_development = 1;
|
|
662
|
-
"production" !== process.env.NODE_ENV &&
|
|
663
|
-
(function () {
|
|
664
|
-
function getComponentNameFromType(type) {
|
|
665
|
-
if (null == type) return null;
|
|
666
|
-
if ("function" === typeof type)
|
|
667
|
-
return type.$$typeof === REACT_CLIENT_REFERENCE
|
|
668
|
-
? null
|
|
669
|
-
: type.displayName || type.name || null;
|
|
670
|
-
if ("string" === typeof type) return type;
|
|
671
|
-
switch (type) {
|
|
672
|
-
case REACT_FRAGMENT_TYPE:
|
|
673
|
-
return "Fragment";
|
|
674
|
-
case REACT_PROFILER_TYPE:
|
|
675
|
-
return "Profiler";
|
|
676
|
-
case REACT_STRICT_MODE_TYPE:
|
|
677
|
-
return "StrictMode";
|
|
678
|
-
case REACT_SUSPENSE_TYPE:
|
|
679
|
-
return "Suspense";
|
|
680
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
681
|
-
return "SuspenseList";
|
|
682
|
-
case REACT_ACTIVITY_TYPE:
|
|
683
|
-
return "Activity";
|
|
684
|
-
}
|
|
685
|
-
if ("object" === typeof type)
|
|
686
|
-
switch (
|
|
687
|
-
("number" === typeof type.tag &&
|
|
688
|
-
console.error(
|
|
689
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
690
|
-
),
|
|
691
|
-
type.$$typeof)
|
|
692
|
-
) {
|
|
693
|
-
case REACT_PORTAL_TYPE:
|
|
694
|
-
return "Portal";
|
|
695
|
-
case REACT_CONTEXT_TYPE:
|
|
696
|
-
return (type.displayName || "Context") + ".Provider";
|
|
697
|
-
case REACT_CONSUMER_TYPE:
|
|
698
|
-
return (type._context.displayName || "Context") + ".Consumer";
|
|
699
|
-
case REACT_FORWARD_REF_TYPE:
|
|
700
|
-
var innerType = type.render;
|
|
701
|
-
type = type.displayName;
|
|
702
|
-
type ||
|
|
703
|
-
((type = innerType.displayName || innerType.name || ""),
|
|
704
|
-
(type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
|
|
705
|
-
return type;
|
|
706
|
-
case REACT_MEMO_TYPE:
|
|
707
|
-
return (
|
|
708
|
-
(innerType = type.displayName || null),
|
|
709
|
-
null !== innerType
|
|
710
|
-
? innerType
|
|
711
|
-
: getComponentNameFromType(type.type) || "Memo"
|
|
712
|
-
);
|
|
713
|
-
case REACT_LAZY_TYPE:
|
|
714
|
-
innerType = type._payload;
|
|
715
|
-
type = type._init;
|
|
716
|
-
try {
|
|
717
|
-
return getComponentNameFromType(type(innerType));
|
|
718
|
-
} catch (x) {}
|
|
719
|
-
}
|
|
720
|
-
return null;
|
|
721
|
-
}
|
|
722
|
-
function testStringCoercion(value) {
|
|
723
|
-
return "" + value;
|
|
724
|
-
}
|
|
725
|
-
function checkKeyStringCoercion(value) {
|
|
726
|
-
try {
|
|
727
|
-
testStringCoercion(value);
|
|
728
|
-
var JSCompiler_inline_result = !1;
|
|
729
|
-
} catch (e) {
|
|
730
|
-
JSCompiler_inline_result = true;
|
|
731
|
-
}
|
|
732
|
-
if (JSCompiler_inline_result) {
|
|
733
|
-
JSCompiler_inline_result = console;
|
|
734
|
-
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
735
|
-
var JSCompiler_inline_result$jscomp$0 =
|
|
736
|
-
("function" === typeof Symbol &&
|
|
737
|
-
Symbol.toStringTag &&
|
|
738
|
-
value[Symbol.toStringTag]) ||
|
|
739
|
-
value.constructor.name ||
|
|
740
|
-
"Object";
|
|
741
|
-
JSCompiler_temp_const.call(
|
|
742
|
-
JSCompiler_inline_result,
|
|
743
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
744
|
-
JSCompiler_inline_result$jscomp$0
|
|
745
|
-
);
|
|
746
|
-
return testStringCoercion(value);
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
function getTaskName(type) {
|
|
750
|
-
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
751
|
-
if (
|
|
752
|
-
"object" === typeof type &&
|
|
753
|
-
null !== type &&
|
|
754
|
-
type.$$typeof === REACT_LAZY_TYPE
|
|
755
|
-
)
|
|
756
|
-
return "<...>";
|
|
757
|
-
try {
|
|
758
|
-
var name = getComponentNameFromType(type);
|
|
759
|
-
return name ? "<" + name + ">" : "<...>";
|
|
760
|
-
} catch (x) {
|
|
761
|
-
return "<...>";
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
function getOwner() {
|
|
765
|
-
var dispatcher = ReactSharedInternals.A;
|
|
766
|
-
return null === dispatcher ? null : dispatcher.getOwner();
|
|
767
|
-
}
|
|
768
|
-
function UnknownOwner() {
|
|
769
|
-
return Error("react-stack-top-frame");
|
|
770
|
-
}
|
|
771
|
-
function hasValidKey(config) {
|
|
772
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
773
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
774
|
-
if (getter && getter.isReactWarning) return false;
|
|
775
|
-
}
|
|
776
|
-
return void 0 !== config.key;
|
|
777
|
-
}
|
|
778
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
779
|
-
function warnAboutAccessingKey() {
|
|
780
|
-
specialPropKeyWarningShown ||
|
|
781
|
-
((specialPropKeyWarningShown = true),
|
|
782
|
-
console.error(
|
|
783
|
-
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
784
|
-
displayName
|
|
785
|
-
));
|
|
786
|
-
}
|
|
787
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
788
|
-
Object.defineProperty(props, "key", {
|
|
789
|
-
get: warnAboutAccessingKey,
|
|
790
|
-
configurable: true
|
|
791
|
-
});
|
|
792
|
-
}
|
|
793
|
-
function elementRefGetterWithDeprecationWarning() {
|
|
794
|
-
var componentName = getComponentNameFromType(this.type);
|
|
795
|
-
didWarnAboutElementRef[componentName] ||
|
|
796
|
-
((didWarnAboutElementRef[componentName] = true),
|
|
797
|
-
console.error(
|
|
798
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
799
|
-
));
|
|
800
|
-
componentName = this.props.ref;
|
|
801
|
-
return void 0 !== componentName ? componentName : null;
|
|
802
|
-
}
|
|
803
|
-
function ReactElement(
|
|
804
|
-
type,
|
|
805
|
-
key,
|
|
806
|
-
self,
|
|
807
|
-
source,
|
|
808
|
-
owner,
|
|
809
|
-
props,
|
|
810
|
-
debugStack,
|
|
811
|
-
debugTask
|
|
812
|
-
) {
|
|
813
|
-
self = props.ref;
|
|
814
|
-
type = {
|
|
815
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
816
|
-
type: type,
|
|
817
|
-
key: key,
|
|
818
|
-
props: props,
|
|
819
|
-
_owner: owner
|
|
820
|
-
};
|
|
821
|
-
null !== (void 0 !== self ? self : null)
|
|
822
|
-
? Object.defineProperty(type, "ref", {
|
|
823
|
-
enumerable: false,
|
|
824
|
-
get: elementRefGetterWithDeprecationWarning
|
|
825
|
-
})
|
|
826
|
-
: Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
827
|
-
type._store = {};
|
|
828
|
-
Object.defineProperty(type._store, "validated", {
|
|
829
|
-
configurable: false,
|
|
830
|
-
enumerable: false,
|
|
831
|
-
writable: true,
|
|
832
|
-
value: 0
|
|
833
|
-
});
|
|
834
|
-
Object.defineProperty(type, "_debugInfo", {
|
|
835
|
-
configurable: false,
|
|
836
|
-
enumerable: false,
|
|
837
|
-
writable: true,
|
|
838
|
-
value: null
|
|
839
|
-
});
|
|
840
|
-
Object.defineProperty(type, "_debugStack", {
|
|
841
|
-
configurable: false,
|
|
842
|
-
enumerable: false,
|
|
843
|
-
writable: true,
|
|
844
|
-
value: debugStack
|
|
845
|
-
});
|
|
846
|
-
Object.defineProperty(type, "_debugTask", {
|
|
847
|
-
configurable: false,
|
|
848
|
-
enumerable: false,
|
|
849
|
-
writable: true,
|
|
850
|
-
value: debugTask
|
|
851
|
-
});
|
|
852
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
853
|
-
return type;
|
|
854
|
-
}
|
|
855
|
-
function jsxDEVImpl(
|
|
856
|
-
type,
|
|
857
|
-
config,
|
|
858
|
-
maybeKey,
|
|
859
|
-
isStaticChildren,
|
|
860
|
-
source,
|
|
861
|
-
self,
|
|
862
|
-
debugStack,
|
|
863
|
-
debugTask
|
|
864
|
-
) {
|
|
865
|
-
var children = config.children;
|
|
866
|
-
if (void 0 !== children)
|
|
867
|
-
if (isStaticChildren)
|
|
868
|
-
if (isArrayImpl(children)) {
|
|
869
|
-
for (
|
|
870
|
-
isStaticChildren = 0;
|
|
871
|
-
isStaticChildren < children.length;
|
|
872
|
-
isStaticChildren++
|
|
873
|
-
)
|
|
874
|
-
validateChildKeys(children[isStaticChildren]);
|
|
875
|
-
Object.freeze && Object.freeze(children);
|
|
876
|
-
} else
|
|
877
|
-
console.error(
|
|
878
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
879
|
-
);
|
|
880
|
-
else validateChildKeys(children);
|
|
881
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
882
|
-
children = getComponentNameFromType(type);
|
|
883
|
-
var keys = Object.keys(config).filter(function (k) {
|
|
884
|
-
return "key" !== k;
|
|
885
|
-
});
|
|
886
|
-
isStaticChildren =
|
|
887
|
-
0 < keys.length
|
|
888
|
-
? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
|
|
889
|
-
: "{key: someKey}";
|
|
890
|
-
didWarnAboutKeySpread[children + isStaticChildren] ||
|
|
891
|
-
((keys =
|
|
892
|
-
0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
|
|
893
|
-
console.error(
|
|
894
|
-
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
|
|
895
|
-
isStaticChildren,
|
|
896
|
-
children,
|
|
897
|
-
keys,
|
|
898
|
-
children
|
|
899
|
-
),
|
|
900
|
-
(didWarnAboutKeySpread[children + isStaticChildren] = true));
|
|
901
|
-
}
|
|
902
|
-
children = null;
|
|
903
|
-
void 0 !== maybeKey &&
|
|
904
|
-
(checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
|
|
905
|
-
hasValidKey(config) &&
|
|
906
|
-
(checkKeyStringCoercion(config.key), (children = "" + config.key));
|
|
907
|
-
if ("key" in config) {
|
|
908
|
-
maybeKey = {};
|
|
909
|
-
for (var propName in config)
|
|
910
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
911
|
-
} else maybeKey = config;
|
|
912
|
-
children &&
|
|
913
|
-
defineKeyPropWarningGetter(
|
|
914
|
-
maybeKey,
|
|
915
|
-
"function" === typeof type
|
|
916
|
-
? type.displayName || type.name || "Unknown"
|
|
917
|
-
: type
|
|
918
|
-
);
|
|
919
|
-
return ReactElement(
|
|
920
|
-
type,
|
|
921
|
-
children,
|
|
922
|
-
self,
|
|
923
|
-
source,
|
|
924
|
-
getOwner(),
|
|
925
|
-
maybeKey,
|
|
926
|
-
debugStack,
|
|
927
|
-
debugTask
|
|
928
|
-
);
|
|
929
|
-
}
|
|
930
|
-
function validateChildKeys(node) {
|
|
931
|
-
"object" === typeof node &&
|
|
932
|
-
null !== node &&
|
|
933
|
-
node.$$typeof === REACT_ELEMENT_TYPE &&
|
|
934
|
-
node._store &&
|
|
935
|
-
(node._store.validated = 1);
|
|
936
|
-
}
|
|
937
|
-
var React$1 = React,
|
|
938
|
-
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
939
|
-
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
940
|
-
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
941
|
-
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
942
|
-
REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
943
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
944
|
-
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
|
945
|
-
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
|
946
|
-
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
947
|
-
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
|
948
|
-
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
949
|
-
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
950
|
-
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
|
|
951
|
-
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
|
952
|
-
ReactSharedInternals =
|
|
953
|
-
React$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
954
|
-
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
955
|
-
isArrayImpl = Array.isArray,
|
|
956
|
-
createTask = console.createTask
|
|
957
|
-
? console.createTask
|
|
958
|
-
: function () {
|
|
959
|
-
return null;
|
|
960
|
-
};
|
|
961
|
-
React$1 = {
|
|
962
|
-
"react-stack-bottom-frame": function (callStackForError) {
|
|
963
|
-
return callStackForError();
|
|
964
|
-
}
|
|
965
|
-
};
|
|
966
|
-
var specialPropKeyWarningShown;
|
|
967
|
-
var didWarnAboutElementRef = {};
|
|
968
|
-
var unknownOwnerDebugStack = React$1["react-stack-bottom-frame"].bind(
|
|
969
|
-
React$1,
|
|
970
|
-
UnknownOwner
|
|
971
|
-
)();
|
|
972
|
-
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
973
|
-
var didWarnAboutKeySpread = {};
|
|
974
|
-
reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
975
|
-
reactJsxRuntime_development.jsx = function (type, config, maybeKey, source, self) {
|
|
976
|
-
var trackActualOwner =
|
|
977
|
-
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
978
|
-
return jsxDEVImpl(
|
|
979
|
-
type,
|
|
980
|
-
config,
|
|
981
|
-
maybeKey,
|
|
982
|
-
false,
|
|
983
|
-
source,
|
|
984
|
-
self,
|
|
985
|
-
trackActualOwner
|
|
986
|
-
? Error("react-stack-top-frame")
|
|
987
|
-
: unknownOwnerDebugStack,
|
|
988
|
-
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
989
|
-
);
|
|
990
|
-
};
|
|
991
|
-
reactJsxRuntime_development.jsxs = function (type, config, maybeKey, source, self) {
|
|
992
|
-
var trackActualOwner =
|
|
993
|
-
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
994
|
-
return jsxDEVImpl(
|
|
995
|
-
type,
|
|
996
|
-
config,
|
|
997
|
-
maybeKey,
|
|
998
|
-
true,
|
|
999
|
-
source,
|
|
1000
|
-
self,
|
|
1001
|
-
trackActualOwner
|
|
1002
|
-
? Error("react-stack-top-frame")
|
|
1003
|
-
: unknownOwnerDebugStack,
|
|
1004
|
-
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1005
|
-
);
|
|
1006
|
-
};
|
|
1007
|
-
})();
|
|
1008
|
-
return reactJsxRuntime_development;
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
|
-
var hasRequiredJsxRuntime;
|
|
1012
|
-
|
|
1013
|
-
function requireJsxRuntime () {
|
|
1014
|
-
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
1015
|
-
hasRequiredJsxRuntime = 1;
|
|
1016
|
-
|
|
1017
|
-
if (process.env.NODE_ENV === 'production') {
|
|
1018
|
-
jsxRuntime.exports = requireReactJsxRuntime_production();
|
|
1019
|
-
} else {
|
|
1020
|
-
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
1021
|
-
}
|
|
1022
|
-
return jsxRuntime.exports;
|
|
1023
|
-
}
|
|
1024
|
-
|
|
1025
|
-
var jsxRuntimeExports = requireJsxRuntime();
|
|
1026
|
-
|
|
1027
|
-
var CLASS_ROOT$3 = 'accordion';
|
|
1028
|
-
var Accordion = function Accordion(_a) {
|
|
1029
|
-
var className = _a.className,
|
|
1030
|
-
children = _a.children,
|
|
1031
|
-
_a$headingLevel = _a.headingLevel,
|
|
1032
|
-
headingLevel = _a$headingLevel === void 0 ? 3 : _a$headingLevel,
|
|
1033
|
-
size = _a.size,
|
|
1034
|
-
isEnclosed = _a.isEnclosed,
|
|
1035
|
-
other = __rest(_a, ["className", "children", "headingLevel", "size", "isEnclosed"]);
|
|
1036
|
-
var accordionRef = useRef(null);
|
|
1037
|
-
var classes = cx(CLASS_ROOT$3, _defineProperty(_defineProperty({}, "".concat(CLASS_ROOT$3, "--").concat(size), size), "".concat(CLASS_ROOT$3, "--enclosed"), isEnclosed), className);
|
|
1038
|
-
useEffect(function () {
|
|
1039
|
-
if (accordionRef.current) {
|
|
1040
|
-
var accordion = new Accordion$1(accordionRef.current);
|
|
1041
|
-
return function () {
|
|
1042
|
-
accordion.destroy();
|
|
1043
|
-
};
|
|
1044
|
-
}
|
|
1045
|
-
}, []);
|
|
1046
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(HeadingContext.Provider, {
|
|
1047
|
-
value: headingLevel,
|
|
1048
|
-
children: /*#__PURE__*/jsxRuntimeExports.jsx("ul", _objectSpread2(_objectSpread2({
|
|
1049
|
-
"data-accordion": true,
|
|
1050
|
-
className: classes,
|
|
1051
|
-
ref: accordionRef
|
|
1052
|
-
}, other), {}, {
|
|
1053
|
-
children: children
|
|
1054
|
-
}))
|
|
1055
|
-
});
|
|
1056
|
-
};
|
|
1057
|
-
Accordion.displayName = 'Accordion';
|
|
1058
|
-
|
|
1059
|
-
var idx = 0;
|
|
1060
|
-
var uuid = function uuid() {
|
|
1061
|
-
return idx += 1;
|
|
1062
|
-
};
|
|
1063
|
-
/**
|
|
1064
|
-
* Generates a unique ID string with an optional name prefix
|
|
1065
|
-
* @param name Optional prefix for the ID
|
|
1066
|
-
* @returns A unique ID string
|
|
1067
|
-
*/
|
|
1068
|
-
function generateId(name) {
|
|
1069
|
-
return "id".concat('', "-").concat(uuid());
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
var SpritePathContext = /*#__PURE__*/React.createContext("/sprite.svg");
|
|
1073
|
-
|
|
1074
|
-
var CLASS_ROOT$2 = "icon";
|
|
1075
|
-
var Icon = function Icon(_a) {
|
|
1076
|
-
var className = _a.className,
|
|
1077
|
-
alt = _a.alt,
|
|
1078
|
-
color = _a.color,
|
|
1079
|
-
name = _a.name,
|
|
1080
|
-
size = _a.size,
|
|
1081
|
-
_a$spritePath = _a.spritePath,
|
|
1082
|
-
spritePath = _a$spritePath === void 0 ? "/sprite.svg" : _a$spritePath,
|
|
1083
|
-
other = __rest(_a, ["className", "alt", "color", "name", "size", "spritePath"]);
|
|
1084
|
-
var contextPath = useContext(SpritePathContext);
|
|
1085
|
-
var classes = cx(CLASS_ROOT$2, _defineProperty(_defineProperty({}, "".concat(CLASS_ROOT$2, "--").concat(size), size), "".concat(CLASS_ROOT$2, "--").concat(color), color), className);
|
|
1086
|
-
return /*#__PURE__*/jsxRuntimeExports.jsxs("svg", _objectSpread2(_objectSpread2({
|
|
1087
|
-
className: classes,
|
|
1088
|
-
"aria-hidden": alt !== undefined ? undefined : "true",
|
|
1089
|
-
role: alt !== undefined ? "img" : undefined
|
|
1090
|
-
}, other), {}, {
|
|
1091
|
-
children: [alt !== undefined && alt.length > 0 && /*#__PURE__*/jsxRuntimeExports.jsx("title", {
|
|
1092
|
-
children: alt
|
|
1093
|
-
}), /*#__PURE__*/jsxRuntimeExports.jsx("use", {
|
|
1094
|
-
xlinkHref: spritePath !== "/sprite.svg" || typeof contextPath === "undefined" ? "".concat(spritePath, "#").concat(name) : "".concat(contextPath, "#").concat(name)
|
|
1095
|
-
})]
|
|
1096
|
-
}));
|
|
1097
|
-
};
|
|
1098
|
-
Icon.displayName = "Icon";
|
|
1099
|
-
|
|
1100
|
-
var CLASS_ROOT$1 = 'accordion';
|
|
1101
|
-
var AccordionHeader = function AccordionHeader(_a) {
|
|
1102
|
-
var className = _a.className,
|
|
1103
|
-
title = _a.title,
|
|
1104
|
-
id = _a.id,
|
|
1105
|
-
isActive = _a.isActive,
|
|
1106
|
-
other = __rest(_a, ["className", "title", "id", "isActive"]);
|
|
1107
|
-
var headingLevel = React.useContext(HeadingContext);
|
|
1108
|
-
var Heading = "h".concat(headingLevel || 3);
|
|
1109
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(Heading, {
|
|
1110
|
-
className: cx("".concat(CLASS_ROOT$1, "__header"), className),
|
|
1111
|
-
children: /*#__PURE__*/jsxRuntimeExports.jsxs("button", _objectSpread2(_objectSpread2({
|
|
1112
|
-
type: "button",
|
|
1113
|
-
"aria-expanded": isActive,
|
|
1114
|
-
className: "".concat(CLASS_ROOT$1, "__button"),
|
|
1115
|
-
"aria-controls": "".concat(id, "-section"),
|
|
1116
|
-
id: id,
|
|
1117
|
-
"data-accordion-toggle": true
|
|
1118
|
-
}, other), {}, {
|
|
1119
|
-
children: [/*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
1120
|
-
className: "accordion__title",
|
|
1121
|
-
children: title
|
|
1122
|
-
}), /*#__PURE__*/jsxRuntimeExports.jsx(Icon, {
|
|
1123
|
-
className: "".concat(CLASS_ROOT$1, "__icon"),
|
|
1124
|
-
name: "chevron-down",
|
|
1125
|
-
size: "medium"
|
|
1126
|
-
})]
|
|
1127
|
-
}))
|
|
1128
|
-
});
|
|
1129
|
-
};
|
|
1130
|
-
AccordionHeader.displayName = 'AccordionHeader';
|
|
1131
|
-
|
|
1132
|
-
var CLASS_ROOT = 'accordion__item';
|
|
1133
|
-
var AccordionItem = function AccordionItem(_a) {
|
|
1134
|
-
var id = _a.id,
|
|
1135
|
-
isActive = _a.isActive,
|
|
1136
|
-
title = _a.title,
|
|
1137
|
-
renderHeader = _a.renderHeader,
|
|
1138
|
-
children = _a.children,
|
|
1139
|
-
className = _a.className,
|
|
1140
|
-
other = __rest(_a, ["id", "isActive", "title", "renderHeader", "children", "className"]);
|
|
1141
|
-
var classes = cx(CLASS_ROOT, className);
|
|
1142
|
-
var currentId = id || generateId();
|
|
1143
|
-
return /*#__PURE__*/jsxRuntimeExports.jsxs("li", {
|
|
1144
|
-
className: classes,
|
|
1145
|
-
children: [renderHeader ? renderHeader(title, currentId, isActive || false) : /*#__PURE__*/jsxRuntimeExports.jsx(AccordionHeader, _objectSpread2({
|
|
1146
|
-
id: currentId,
|
|
1147
|
-
isActive: isActive,
|
|
1148
|
-
title: title
|
|
1149
|
-
}, other)), isActive ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
1150
|
-
id: "".concat(currentId, "-section"),
|
|
1151
|
-
"aria-labelledby": currentId,
|
|
1152
|
-
className: cx('accordion__body', {
|
|
1153
|
-
'is-active': isActive
|
|
1154
|
-
}),
|
|
1155
|
-
children: children
|
|
1156
|
-
}) : /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
1157
|
-
id: "".concat(currentId, "-section"),
|
|
1158
|
-
"aria-labelledby": currentId,
|
|
1159
|
-
className: cx('accordion__body', {
|
|
1160
|
-
'is-active': isActive
|
|
1161
|
-
}),
|
|
1162
|
-
hidden: true,
|
|
1163
|
-
children: children
|
|
1164
|
-
})]
|
|
1165
|
-
});
|
|
1166
|
-
};
|
|
1167
|
-
AccordionItem.displayName = 'AccordionItem';
|
|
1168
|
-
|
|
1169
|
-
export { AccordionItem, Accordion as default };
|
|
15
|
+
*/function W(){return T||(T=1,"production"!==process.env.NODE_ENV&&function(){function t(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===A?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case y:return"Fragment";case v:return"Profiler";case p:return"StrictMode";case g:return"Suspense";case O:return"SuspenseList";case w:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case d:return"Portal";case m:return(e.displayName||"Context")+".Provider";case b:return(e._context.displayName||"Context")+".Consumer";case h:var r=e.render;return(e=e.displayName)||(e=""!==(e=r.displayName||r.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case k:return null!==(r=e.displayName||null)?r:t(e.type)||"Memo";case j:r=e._payload,e=e._init;try{return t(e(r))}catch(e){}}return null}function r(e){return""+e}function n(e){try{r(e);var t=!1}catch(e){t=!0}if(t){var n=(t=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),r(e)}}function o(e){if(e===y)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===j)return"<...>";try{var r=t(e);return r?"<"+r+">":"<...>"}catch(e){return"<...>"}}function i(){return Error("react-stack-top-frame")}function a(){var e=t(this.type);return N[e]||(N[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function c(e,r,o,i,c,u,d,y){var p,v=r.children;if(void 0!==v)if(i)if(_(v)){for(i=0;i<v.length;i++)s(v[i]);Object.freeze&&Object.freeze(v)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else s(v);if(x.call(r,"key")){v=t(e);var b=Object.keys(r).filter(function(e){return"key"!==e});i=0<b.length?"{key: someKey, "+b.join(": ..., ")+": ...}":"{key: someKey}",T[v+i]||(b=0<b.length?"{"+b.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',i,v,b,v),T[v+i]=!0)}if(v=null,void 0!==o&&(n(o),v=""+o),function(e){if(x.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(r)&&(n(r.key),v=""+r.key),"key"in r)for(var m in o={},r)"key"!==m&&(o[m]=r[m]);else o=r;return v&&function(e,t){function r(){l||(l=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(o,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,t,r,n,o,i,c,s){return r=i.ref,e={$$typeof:f,type:e,key:t,props:i,_owner:o},null!==(void 0!==r?r:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:c}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:s}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,v,u,0,null===(p=S.A)?null:p.getOwner(),o,d,y)}function s(e){"object"==typeof e&&null!==e&&e.$$typeof===f&&e._store&&(e._store.validated=1)}var l,u=e,f=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),m=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),w=Symbol.for("react.activity"),A=Symbol.for("react.client.reference"),S=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,x=Object.prototype.hasOwnProperty,_=Array.isArray,R=console.createTask?console.createTask:function(){return null},N={},E=(u={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(u,i)(),P=R(o(i)),T={};C.Fragment=y,C.jsx=function(e,t,r,n,i){var a=1e4>S.recentlyCreatedOwnerStacks++;return c(e,t,r,!1,0,i,a?Error("react-stack-top-frame"):E,a?R(o(e)):P)},C.jsxs=function(e,t,r,n,i){var a=1e4>S.recentlyCreatedOwnerStacks++;return c(e,t,r,!0,0,i,a?Error("react-stack-top-frame"):E,a?R(o(e)):P)}}()),C}var L=(D||(D=1,"production"===process.env.NODE_ENV?E.exports=function(){if(N)return P;N=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(t,r,n){var o=null;if(void 0!==n&&(o=""+n),void 0!==r.key&&(o=""+r.key),"key"in r)for(var i in n={},r)"key"!==i&&(n[i]=r[i]);else n=r;return r=n.ref,{$$typeof:e,type:t,key:o,ref:void 0!==r?r:null,props:n}}return P.Fragment=t,P.jsx=r,P.jsxs=r,P}():E.exports=W()),E.exports),I="accordion",F=function(e){var t=e.className,i=e.children,a=e.headingLevel,c=void 0===a?3:a,s=e.size,l=e.isEnclosed,f=v(e,["className","children","headingLevel","size","isEnclosed"]),p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r(null),a=r(t);n(function(){a.current=null!=t?t:{}},[t]);var c=o(function(t){var r,n,o=a.current;t&&(null===i.current?i.current=new e(t,o):null===(n=(r=i.current).update)||void 0===n||n.call(r,o))},[e]);return n(function(){return function(){var e,t;i.current&&(null===(t=(e=i.current).destroy)||void 0===t||t.call(e),i.current=null)}},[]),[c,i]}(S),b=y(p,1)[0],m=O(I,u(u({},"".concat(I,"--").concat(s),s),"".concat(I,"--enclosed"),l),t);return L.jsx(x.Provider,{value:c,children:L.jsx("ul",d(d({className:m,ref:b,"data-accordion":"true"},f),{},{children:i}))})};F.displayName="Accordion";var z=e.createContext("/sprite.svg"),$="icon",U=function(e){var t=e.className,r=e.alt,n=e.color,o=e.name,a=e.size,c=e.spritePath,s=void 0===c?"/sprite.svg":c,l=v(e,["className","alt","color","name","size","spritePath"]),f=i(z),y=O($,u(u({},"".concat($,"--").concat(a),a),"".concat($,"--").concat(n),n),t);return L.jsxs("svg",d(d({className:y,"aria-hidden":void 0!==r?void 0:"true",role:void 0!==r?"img":void 0},l),{},{children:[void 0!==r&&r.length>0&&L.jsx("title",{children:r}),L.jsx("use",{xlinkHref:"/sprite.svg"!==s||void 0===f?"".concat(s,"#").concat(o):"".concat(f,"#").concat(o)})]}))};U.displayName="Icon";var H="accordion",K=function(t){var r=t.className,n=t.title,o=t.id,i=t.isActive,a=v(t,["className","title","id","isActive"]),c=e.useContext(x),s="h".concat(c||3);return L.jsx(s,{className:O("".concat(H,"__header"),r),children:L.jsxs("button",d(d({type:"button","aria-expanded":i,className:"".concat(H,"__button"),"aria-controls":"".concat(o,"-section"),id:o,"data-accordion-toggle":!0},a),{},{children:[L.jsx("span",{className:"accordion__title",children:n}),L.jsx(U,{className:"".concat(H,"__icon"),name:"chevron-down",size:"medium"})]}))})};K.displayName="AccordionHeader";var G=function(e){var t=e.id,r=e.isActive,n=e.title,o=e.renderHeader,i=e.children,a=e.className,c=v(e,["id","isActive","title","renderHeader","children","className"]),s=O("accordion__item",a),l=t||R();return L.jsxs("li",{className:s,children:[o?o(n,l,r||!1):L.jsx(K,d({id:l,isActive:r,title:n},c)),L.jsx("div",d(d({id:"".concat(l,"-section"),"aria-labelledby":l,className:O("accordion__body",{"is-active":r})},r?{}:{hidden:!0}),{},{children:i}))]})};G.displayName="AccordionItem";export{F as Accordion,G as AccordionItem};
|
|
1170
16
|
//# sourceMappingURL=index.js.map
|