@orangesk/orange-design-system 2.0.0-beta.35 → 2.0.0-beta.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -2
- package/build/components/Icon/style.css +1 -1
- package/build/components/Icon/style.css.map +1 -1
- package/build/components/Megamenu/style.css +1 -1
- package/build/components/Megamenu/style.css.map +1 -1
- package/build/components/PromoBanner/style.css +1 -1
- package/build/components/PromoBanner/style.css.map +1 -1
- package/build/components/index.js +1 -1
- package/build/components/index.js.map +1 -1
- package/build/components/tsconfig.tsbuildinfo +1 -1
- package/build/components/types/index.d.ts +729 -729
- package/build/components/types/src/components/Bar/index.d.ts +1 -1
- package/build/components/types/src/components/BlockAction/Context.d.ts +1 -1
- package/build/components/types/src/components/BlockAction/index.d.ts +2 -4
- package/build/components/types/src/components/Button/index.d.ts +1 -1
- package/build/components/types/src/components/Card/index.d.ts +2 -2
- package/build/components/types/src/components/Carousel/Carousel.d.ts +1 -1
- package/build/components/types/src/components/Carousel/Carousel.static.d.ts +2 -0
- package/build/components/types/src/components/Carousel/CarouselItem.d.ts +1 -1
- package/build/components/types/src/components/CarouselHero/CarouselHero.d.ts +1 -1
- package/build/components/types/src/components/CarouselHero/CarouselHero.static.d.ts +1 -1
- package/build/components/types/src/components/CarouselHero/CarouselHeroItem.d.ts +1 -1
- package/build/components/types/src/components/CarouselHero/index.d.ts +1 -1
- package/build/components/types/src/components/CartTable/CartTable.d.ts +1 -1
- package/build/components/types/src/components/CartTable/data.d.ts +1 -1
- package/build/components/types/src/components/Code/Code.d.ts +1 -1
- package/build/components/types/src/components/Divider/Divider.d.ts +1 -1
- package/build/components/types/src/components/DocumentationSidebar/index.d.ts +1 -1
- package/build/components/types/src/components/Dropdown/index.d.ts +1 -1
- package/build/components/types/src/components/Forms/Group/Group.d.ts +1 -1
- package/build/components/types/src/components/Forms/Group/Item.d.ts +1 -1
- package/build/components/types/src/components/Forms/index.d.ts +1 -1
- package/build/components/types/src/components/Grid/GridCol.d.ts +3 -3
- package/build/components/types/src/components/Icon/iconSearchTags.d.ts +1 -0
- package/build/components/types/src/components/Icon/index.d.ts +1 -2
- package/build/components/types/src/components/IconList/Item.d.ts +1 -1
- package/build/components/types/src/components/List/ClickableControl.d.ts +1 -1
- package/build/components/types/src/components/List/List.d.ts +3 -3
- package/build/components/types/src/components/List/ListItem.d.ts +1 -1
- package/build/components/types/src/components/Megamenu/constants.d.ts +1 -0
- package/build/components/types/src/components/Megamenu/index.d.ts +1 -1
- package/build/components/types/src/components/Modal/ModalCloseButton.d.ts +1 -1
- package/build/components/types/src/components/Modal/index.d.ts +2 -2
- package/build/components/types/src/components/Pagination/helpers.d.ts +1 -1
- package/build/components/types/src/components/Pill/Pill.d.ts +1 -1
- package/build/components/types/src/components/Preview/Preview.d.ts +1 -1
- package/build/components/types/src/components/Preview/PreviewGenerator.d.ts +1 -1
- package/build/components/types/src/components/PromotionCard/PromotionCardContent.d.ts +1 -1
- package/build/components/types/src/components/PromotionCard/PromotionCardImageWrapper.d.ts +1 -1
- package/build/components/types/src/components/PromotionCard/PromotionCardTitle.d.ts +1 -1
- package/build/components/types/src/components/Sticker/Sticker.d.ts +3 -3
- package/build/components/types/src/components/Table/Table.d.ts +1 -1
- package/build/components/types/src/components/Table/index.d.ts +1 -1
- package/build/components/types/src/components/Tabs/index.d.ts +2 -2
- package/build/components/types/src/components/Tag/index.d.ts +1 -1
- package/build/components/types/src/components/Testimonial/Testimonial.d.ts +2 -2
- package/build/components/types/src/components/Tooltip/Tooltip.static.d.ts +6 -2
- package/build/components/types/src/components/Tooltip/index.d.ts +1 -1
- package/build/components/types/src/components/index.d.ts +20 -20
- package/build/components/types/src/scripts/index.d.ts +5 -5
- package/build/components/types/src/scripts/modules/SpacePreview/index.d.ts +1 -1
- package/build/components/types/src/utils/hooks.d.ts +1 -1
- package/build/components/types/src/utils/index.d.ts +2 -2
- package/build/lib/base.css +1 -1
- package/build/lib/base.css.map +1 -1
- package/build/lib/components.css +1 -1
- package/build/lib/components.css.map +1 -1
- package/build/lib/footer.js +1 -1
- package/build/lib/footer.js.map +1 -1
- package/build/lib/megamenu.css +1 -1
- package/build/lib/megamenu.css.map +1 -1
- package/build/lib/megamenu.js +1 -1
- package/build/lib/megamenu.js.map +1 -1
- package/build/lib/scripts.js +1 -1
- package/build/lib/scripts.js.map +1 -1
- package/build/lib/style.css +1 -1
- package/build/lib/style.css.map +1 -1
- package/build/lib/tsconfig.tsbuildinfo +1 -1
- package/build/search-index.json +3 -3
- package/build/sprite.svg +1 -1
- package/package.json +36 -26
- package/src/assets/icons/discount-price.svg +4 -0
- package/src/components/Accordion/Accordion.tsx +2 -3
- package/src/components/Accordion/AccordionHeader.tsx +1 -1
- package/src/components/Accordion/AccordionItem.tsx +2 -1
- package/src/components/Accordion/HeadingContext.tsx +1 -1
- package/src/components/Accordion/tests/Accordion.unit.test.jsx +3 -4
- package/src/components/Alert/Alert.tsx +3 -4
- package/src/components/Alert/tests/Alert.conformance.test.jsx +2 -3
- package/src/components/Alert/tests/Alert.test.jsx +1 -1
- package/src/components/Alert/tests/Alert.visual.test.jsx +137 -0
- package/src/components/Alert/tests/__screenshots__/Alert.visual.test.jsx/alert-preview-custom-title-chromium-linux.png +0 -0
- package/src/components/Alert/tests/__screenshots__/Alert.visual.test.jsx/alert-preview-danger-chromium-linux.png +0 -0
- package/src/components/Alert/tests/__screenshots__/Alert.visual.test.jsx/alert-preview-full-width-chromium-linux.png +0 -0
- package/src/components/Alert/tests/__screenshots__/Alert.visual.test.jsx/alert-preview-success-chromium-linux.png +0 -0
- package/src/components/Alert/tests/__screenshots__/Alert.visual.test.jsx/alert-preview-title-buttons-chromium-linux.png +0 -0
- package/src/components/Alert/tests/__screenshots__/Alert.visual.test.jsx/alert-preview-title-chromium-linux.png +0 -0
- package/src/components/Alert/tests/__screenshots__/Alert.visual.test.jsx/alert-preview-title-description-buttons-chromium-linux.png +0 -0
- package/src/components/Alert/tests/__screenshots__/Alert.visual.test.jsx/alert-preview-title-description-chromium-linux.png +0 -0
- package/src/components/Alert/tests/__screenshots__/Alert.visual.test.jsx/alert-preview-warning-chromium-linux.png +0 -0
- package/src/components/AnchorNavigation/AnchorNavigation.tsx +3 -3
- package/src/components/AnchorNavigation/tests/AnchorNavigation.conformance.test.jsx +1 -1
- package/src/components/Bar/Bar.tsx +1 -1
- package/src/components/Bar/BarBreak.tsx +1 -1
- package/src/components/Bar/BarItem.tsx +1 -1
- package/src/components/Bar/index.ts +1 -1
- package/src/components/Bar/tests/Bar.conformance.test.jsx +1 -1
- package/src/components/BlockAction/BlockAction.tsx +1 -1
- package/src/components/BlockAction/BlockActionControl.tsx +2 -3
- package/src/components/BlockAction/BlockActionIndicator.tsx +2 -3
- package/src/components/BlockAction/CloneElementWithClassName.tsx +1 -1
- package/src/components/BlockAction/Context.tsx +1 -1
- package/src/components/BlockAction/index.tsx +3 -8
- package/src/components/BlockAction/tests/BlockActionControl.unit.test.jsx +1 -1
- package/src/components/BodyBanner/BodyBanner.tsx +2 -2
- package/src/components/BodyBanner/tests/BodyBanner.conformance.test.jsx +1 -1
- package/src/components/Breadcrumbs/BreadcrumbItem.tsx +1 -1
- package/src/components/Breadcrumbs/tests/Breadcrumbs.conformance.test.jsx +1 -1
- package/src/components/Button/Button.tsx +1 -1
- package/src/components/Button/IconButton.tsx +7 -3
- package/src/components/Button/index.tsx +1 -3
- package/src/components/Button/tests/Button.conformance.test.jsx +1 -2
- package/src/components/Button/tests/Button.test.jsx +0 -1
- package/src/components/Button/tests/IconButton.unit.test.jsx +0 -1
- package/src/components/Buttons/tests/Buttons.conformance.test.jsx +1 -1
- package/src/components/Card/Card.tsx +1 -1
- package/src/components/Card/CardProductHeader.tsx +1 -1
- package/src/components/Card/CardSection.tsx +1 -1
- package/src/components/Card/index.ts +2 -2
- package/src/components/Card/tests/Card.conformance.test.jsx +2 -2
- package/src/components/Card/tests/CardProductHeader.unit.test.jsx +1 -1
- package/src/components/Carousel/Carousel.static.ts +55 -15
- package/src/components/Carousel/Carousel.tsx +9 -11
- package/src/components/Carousel/CarouselItem.tsx +1 -1
- package/src/components/Carousel/tests/Carousel.conformance.test.jsx +2 -4
- package/src/components/Carousel/tests/Carousel.static.test.jsx +29 -4
- package/src/components/CarouselHero/CarouselHero.static.ts +15 -15
- package/src/components/CarouselHero/CarouselHero.tsx +12 -13
- package/src/components/CarouselHero/CarouselHeroItem.tsx +2 -2
- package/src/components/CarouselHero/index.ts +1 -1
- package/src/components/CarouselHero/tests/CarouselHeroItem.conformance.test.jsx +1 -1
- package/src/components/CarouselPromotions/CarouselPromotions.static.ts +10 -10
- package/src/components/CarouselPromotions/CarouselPromotions.tsx +6 -7
- package/src/components/CarouselPromotions/CarouselPromotionsItem.tsx +3 -3
- package/src/components/CarouselPromotions/tests/CarouselPromotions.conformance.test.jsx +1 -3
- package/src/components/CarouselPromotions/tests/CarouselPromotions.unit.test.jsx +1 -2
- package/src/components/CartTable/CartTable.tsx +3 -4
- package/src/components/CartTable/FooterPriceColumn.tsx +1 -1
- package/src/components/CartTable/Price.tsx +1 -1
- package/src/components/CartTable/data.ts +1 -1
- package/src/components/CartTable/generateFooter.tsx +1 -1
- package/src/components/CartTable/generateRow.tsx +6 -8
- package/src/components/CartTable/tests/CartTable.conformance.test.jsx +1 -1
- package/src/components/Code/Code.tsx +1 -1
- package/src/components/Container/Container.tsx +1 -1
- package/src/components/Container/tests/Container.unit.test.jsx +3 -2
- package/src/components/Controls/Controls.tsx +1 -1
- package/src/components/Controls/tests/Controls.test.jsx +2 -2
- package/src/components/Cover/Cover.tsx +1 -1
- package/src/components/Cover/index.ts +1 -0
- package/src/components/Cover/tests/Cover.conformance.test.jsx +8 -9
- package/src/components/Cover/tests/Cover.unit.test.jsx +0 -1
- package/src/components/Divider/Divider.tsx +1 -1
- package/src/components/Divider/tests/Divider.conformance.test.jsx +1 -1
- package/src/components/DocumentationSidebar/DocumentationSidebar.tsx +7 -7
- package/src/components/DocumentationSidebar/index.ts +2 -2
- package/src/components/Dropdown/Dropdown.static.ts +1 -1
- package/src/components/Dropdown/Dropdown.tsx +3 -5
- package/src/components/Dropdown/DropdownDivider.tsx +1 -1
- package/src/components/Dropdown/DropdownItem.tsx +1 -1
- package/src/components/Dropdown/DropdownToggleButton.tsx +1 -1
- package/src/components/Dropdown/index.ts +1 -1
- package/src/components/Dropdown/tests/Dropdown.conformance.test.jsx +2 -2
- package/src/components/Dropdown/tests/Dropdown.unit.test.jsx +1 -2
- package/src/components/Expander/Expander.tsx +1 -1
- package/src/components/Expander/tests/Expander.conformance.test.jsx +2 -4
- package/src/components/Expander/tests/Expander.unit.test.jsx +2 -4
- package/src/components/FeatureAccordion/FeatureAccordion.tsx +2 -2
- package/src/components/FeatureAccordion/FeatureAccordionItem.tsx +2 -1
- package/src/components/FeatureAccordion/tests/FeatureAccordion.conformance.test.jsx +1 -1
- package/src/components/FeatureAccordion/tests/FeatureAccordion.unit.test.jsx +2 -3
- package/src/components/Footer/Footer.tsx +4 -5
- package/src/components/Footer/static.ts +2 -2
- package/src/components/Footer/tests/Footer.unit.test.jsx +1 -1
- package/src/components/Forms/Autocomplete/Autocomplete.tsx +2 -2
- package/src/components/Forms/Checkbox/Checkbox.tsx +1 -1
- package/src/components/Forms/DatePicker/DatePicker.tsx +1 -2
- package/src/components/Forms/Field/Control.tsx +3 -3
- package/src/components/Forms/Field/Description.tsx +1 -1
- package/src/components/Forms/Field/Field.tsx +4 -4
- package/src/components/Forms/Field/Label.tsx +1 -1
- package/src/components/Forms/Field/Messages.tsx +2 -2
- package/src/components/Forms/Field/tests/Autocomplete.Field.conformance.test.jsx +1 -1
- package/src/components/Forms/Field/tests/Checkbox.Field.conformance.test.jsx +1 -1
- package/src/components/Forms/Field/tests/File.Field.conformance.test.jsx +1 -1
- package/src/components/Forms/Field/tests/Group.Field.conformance.test.jsx +1 -1
- package/src/components/Forms/Field/tests/Radio.Field.conformance.test.jsx +1 -1
- package/src/components/Forms/Field/tests/Rangeslider.Field.test.jsx +1 -1
- package/src/components/Forms/Field/tests/Select.Field.conformance.test.jsx +1 -1
- package/src/components/Forms/Field/tests/Text.Field.conformance.test.jsx +1 -1
- package/src/components/Forms/Field/tests/Textarea.Field.conformance.test.jsx +1 -1
- package/src/components/Forms/Field/tests/Tooltip.unit.test.jsx +1 -2
- package/src/components/Forms/Fieldset/Fieldset.tsx +1 -1
- package/src/components/Forms/File/File.tsx +4 -7
- package/src/components/Forms/Group/Group.tsx +2 -3
- package/src/components/Forms/Group/Item.tsx +1 -1
- package/src/components/Forms/Hint/Hint.tsx +1 -1
- package/src/components/Forms/InputStepper/InputStepper.tsx +1 -1
- package/src/components/Forms/Label/Label.tsx +1 -1
- package/src/components/Forms/Message/Message.tsx +9 -5
- package/src/components/Forms/Radio/Radio.tsx +1 -1
- package/src/components/Forms/RangeSlider/RangeSlider.tsx +1 -1
- package/src/components/Forms/Select/Select.tsx +1 -1
- package/src/components/Forms/TextArea/TextArea.tsx +1 -1
- package/src/components/Forms/TextInput/TextInput.tsx +3 -5
- package/src/components/Forms/index.ts +1 -1
- package/src/components/Gauge/Gauge.tsx +1 -1
- package/src/components/Gauge/GaugeMaker.tsx +3 -3
- package/src/components/Gauge/tests/Gauge.unit.test.jsx +0 -1
- package/src/components/Grid/Grid.tsx +1 -1
- package/src/components/Grid/GridCol.tsx +21 -10
- package/src/components/Grid/tests/Grid.unit.test.jsx +0 -1
- package/src/components/Grid/tests/GridCol.unit.test.jsx +0 -1
- package/src/components/Hero/Hero.tsx +1 -1
- package/src/components/Hero/tests/Hero.conformance.test.jsx +1 -2
- package/src/components/Hero/tests/Hero.unit.test.jsx +0 -1
- package/src/components/Hero/tests/data.js +26 -26
- package/src/components/Icon/Icon.tsx +1 -1
- package/src/components/Icon/IconSearch.jsx +4 -4
- package/src/components/Icon/PictogramSearch.jsx +3 -14
- package/src/components/Icon/iconSearchTags.ts +1 -0
- package/src/components/Icon/index.ts +1 -2
- package/src/components/Icon/styles/style.scss +30 -0
- package/src/components/Icon/tests/Icon.conformance.test.jsx +1 -2
- package/src/components/Icon/tests/Icon.unit.test.jsx +1 -3
- package/src/components/Icon/tests/Pictogram.unit.test.jsx +1 -2
- package/src/components/IconList/IconList.tsx +1 -1
- package/src/components/IconList/Item.tsx +15 -11
- package/src/components/IconList/tests/IconList.conformance.test.jsx +1 -2
- package/src/components/IconList/tests/IconList.unit.test.jsx +29 -26
- package/src/components/Image/Image.tsx +1 -1
- package/src/components/Image/tests/Image.conformance.test.jsx +1 -1
- package/src/components/Image/tests/Image.unit.test.jsx +0 -1
- package/src/components/Link/Link.tsx +1 -1
- package/src/components/Link/tests/Link.conformance.test.jsx +1 -1
- package/src/components/Link/tests/Link.unit.test.jsx +1 -1
- package/src/components/List/ClickableControl.tsx +12 -12
- package/src/components/List/List.tsx +13 -13
- package/src/components/List/ListItem.tsx +11 -11
- package/src/components/List/tests/ClickableControl.unit.test.jsx +0 -1
- package/src/components/List/tests/List.conformance.test.jsx +16 -17
- package/src/components/List/tests/ListItem.unit.test.jsx +46 -47
- package/src/components/Loader/Loader.tsx +1 -1
- package/src/components/Loader/tests/Loader.conformance.test.jsx +1 -1
- package/src/components/Megamenu/MegaMenuIcon.tsx +1 -1
- package/src/components/Megamenu/Megamenu.static.ts +5 -5
- package/src/components/Megamenu/Megamenu.tsx +28 -29
- package/src/components/Megamenu/MegamenuBlog.tsx +22 -20
- package/src/components/Megamenu/MegamenuSearchContent.tsx +2 -2
- package/src/components/Megamenu/MyOrangeMobilePanel.tsx +11 -12
- package/src/components/Megamenu/constants.ts +1 -0
- package/src/components/Megamenu/index.ts +1 -1
- package/src/components/Megamenu/static.ts +2 -2
- package/src/components/Megamenu/styles/mixins.scss +15 -1
- package/src/components/Megamenu/styles/style.scss +4 -0
- package/src/components/Modal/Modal.tsx +3 -4
- package/src/components/Modal/ModalBody.tsx +1 -1
- package/src/components/Modal/ModalCloseButton.tsx +1 -1
- package/src/components/Modal/ModalProductFooter.tsx +1 -1
- package/src/components/Modal/ModalProductHeader.tsx +1 -1
- package/src/components/Modal/index.ts +2 -2
- package/src/components/Modal/tests/Modal.conformance.test.jsx +2 -3
- package/src/components/Modal/tests/Modal.unit.test.jsx +0 -1
- package/src/components/Modal/tests/ModalProductHeader.unit.test.jsx +0 -1
- package/src/components/Modal/tests/ModalTitle.unit.test.jsx +0 -1
- package/src/components/Pagination/Pagination.tsx +2 -3
- package/src/components/Pagination/PaginationItem.tsx +1 -1
- package/src/components/Pagination/Separator.tsx +1 -1
- package/src/components/Pagination/helpers.ts +6 -1
- package/src/components/Pagination/tests/Item.unit.test.jsx +38 -39
- package/src/components/Pagination/tests/Pagination.conformance.test.jsx +7 -8
- package/src/components/Pagination/tests/Pagination.unit.test.jsx +39 -40
- package/src/components/Pagination/tests/Separator.unit.test.jsx +10 -11
- package/src/components/Pill/Pill.tsx +1 -1
- package/src/components/Pill/tests/Pill.conformance.test.jsx +1 -1
- package/src/components/Preview/CodeExample.tsx +6 -9
- package/src/components/Preview/Preview.tsx +2 -1
- package/src/components/Preview/PreviewGenerator.tsx +8 -8
- package/src/components/Preview/PreviewTitleBar.tsx +1 -1
- package/src/components/Preview/index.tsx +1 -1
- package/src/components/Progress/Progress.tsx +1 -1
- package/src/components/Progress/index.ts +1 -1
- package/src/components/Progress/tests/Progress.conformance.test.jsx +6 -7
- package/src/components/Progress/tests/Progress.unit.test.jsx +42 -39
- package/src/components/PromoBanner/PromoBanner.tsx +1 -1
- package/src/components/PromoBanner/styles/style.scss +2 -2
- package/src/components/PromoBanner/tests/PromoBanner.conformance.test.jsx +1 -2
- package/src/components/PromoBanner/tests/PromoBanner.unit.test.jsx +0 -1
- package/src/components/PromotionCard/PromotionCard.tsx +1 -1
- package/src/components/PromotionCard/PromotionCardContent.tsx +8 -8
- package/src/components/PromotionCard/PromotionCardImageWrapper.tsx +7 -9
- package/src/components/PromotionCard/PromotionCardSection.tsx +1 -1
- package/src/components/PromotionCard/PromotionCardTitle.tsx +11 -11
- package/src/components/PromotionCard/constants.ts +2 -2
- package/src/components/PromotionCard/tests/PromotionCard.conformance.test.jsx +1 -2
- package/src/components/PromotionCard/tests/PromotionCard.unit.test.jsx +0 -1
- package/src/components/Section/Section.tsx +1 -1
- package/src/components/Section/tests/Section.conformance.test.jsx +1 -2
- package/src/components/Section/tests/Section.unit.test.jsx +0 -1
- package/src/components/Skeleton/Skeleton.tsx +1 -1
- package/src/components/Skeleton/tests/Skeleton.conformance.test.jsx +1 -1
- package/src/components/SkipLink/SkipLink.tsx +1 -1
- package/src/components/SkipLink/tests/SkipLink.unit.test.jsx +0 -4
- package/src/components/SocialButton/SocialButton.tsx +1 -1
- package/src/components/SocialButton/tests/SocialButton.unit.test.jsx +1 -1
- package/src/components/Stepbar/Stepbar.tsx +1 -1
- package/src/components/Stepbar/tests/Stepbar.conformance.test.jsx +1 -1
- package/src/components/Sticker/Sticker.tsx +14 -8
- package/src/components/Sticker/index.ts +1 -0
- package/src/components/Sticker/tests/Sticker.conformance.test.jsx +5 -6
- package/src/components/Sticker/tests/Sticker.unit.test.jsx +16 -19
- package/src/components/Table/Header.tsx +1 -2
- package/src/components/Table/Row.tsx +1 -2
- package/src/components/Table/Rows.tsx +1 -2
- package/src/components/Table/Table.tsx +4 -5
- package/src/components/Table/index.ts +1 -1
- package/src/components/Table/tests/Footer.unit.test.jsx +1 -2
- package/src/components/Table/tests/Header.unit.test.jsx +1 -2
- package/src/components/Table/tests/Row.unit.test.jsx +1 -2
- package/src/components/Table/tests/Rows.unit.test.jsx +1 -2
- package/src/components/Table/tests/Table.conformance.test.jsx +6 -6
- package/src/components/Table/tests/Table.unit.test.jsx +1 -1
- package/src/components/Tabs/Tabs.tsx +2 -2
- package/src/components/Tabs/index.ts +2 -2
- package/src/components/Tabs/tests/Tabs.unit.test.jsx +2 -3
- package/src/components/Tag/Tag.tsx +1 -1
- package/src/components/Tag/TagButton.tsx +1 -1
- package/src/components/Tag/index.ts +1 -1
- package/src/components/Tag/tests/Tag.conformance.test.jsx +2 -3
- package/src/components/Tag/tests/Tag.unit.test.jsx +1 -3
- package/src/components/Tag/tests/TagButton.conformance.test.jsx +1 -1
- package/src/components/Tag/tests/TagButton.unit.test.jsx +1 -1
- package/src/components/Testimonial/Testimonial.tsx +15 -15
- package/src/components/Testimonial/tests/Testimonial.conformance.test.jsx +5 -6
- package/src/components/Testimonial/tests/Testimonial.unit.test.jsx +22 -23
- package/src/components/Tile/Tile.tsx +2 -3
- package/src/components/Tile/tests/Tile.conformance.test.jsx +1 -1
- package/src/components/Tooltip/InfoTooltip.tsx +1 -1
- package/src/components/Tooltip/Tooltip.static.ts +100 -66
- package/src/components/Tooltip/Tooltip.tsx +2 -3
- package/src/components/Tooltip/index.ts +1 -1
- package/src/components/Tooltip/tests/Tooltip.conformance.test.jsx +1 -1
- package/src/components/Tooltip/tests/Tooltip.unit.test.jsx +43 -34
- package/src/components/index.ts +39 -39
- package/src/styles/base/globals.scss +17 -1
- package/src/styles/export/breakpoint.ts +7 -7
|
@@ -90,43 +90,6 @@ declare const AnchorNavigation: {
|
|
|
90
90
|
displayName: string;
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
-
type TagButtonProps = {
|
|
94
|
-
className?: string;
|
|
95
|
-
onClick?: React$1.MouseEventHandler<HTMLButtonElement>;
|
|
96
|
-
children?: React$1.ReactNode;
|
|
97
|
-
isDisabled?: boolean;
|
|
98
|
-
ariaLabel?: string;
|
|
99
|
-
iconName: string;
|
|
100
|
-
size?: string;
|
|
101
|
-
};
|
|
102
|
-
declare const TagButton: React$1.ForwardRefExoticComponent<TagButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
103
|
-
|
|
104
|
-
declare const colors: readonly ["black", "orange", "yellow", "green", "blue", "success", "info", "warning", "danger", "transparent"];
|
|
105
|
-
type TagColor = (typeof colors)[number];
|
|
106
|
-
type TagSize = "small" | "large";
|
|
107
|
-
interface CommonProps$3 {
|
|
108
|
-
color?: TagColor;
|
|
109
|
-
size?: TagSize;
|
|
110
|
-
isDisabled?: boolean;
|
|
111
|
-
className?: string;
|
|
112
|
-
children?: React$1.ReactNode;
|
|
113
|
-
actionButton?: React$1.ReactElement<TagButtonProps>;
|
|
114
|
-
}
|
|
115
|
-
type SpanProps = CommonProps$3 & Omit<React$1.HTMLAttributes<HTMLSpanElement>, keyof CommonProps$3> & {
|
|
116
|
-
onClick?: undefined;
|
|
117
|
-
href?: undefined;
|
|
118
|
-
};
|
|
119
|
-
type ButtonProps$2 = CommonProps$3 & Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, keyof CommonProps$3> & {
|
|
120
|
-
onClick: React$1.MouseEventHandler<HTMLButtonElement>;
|
|
121
|
-
href?: undefined;
|
|
122
|
-
};
|
|
123
|
-
type AnchorProps$1 = CommonProps$3 & Omit<React$1.AnchorHTMLAttributes<HTMLAnchorElement>, keyof CommonProps$3> & {
|
|
124
|
-
href: string;
|
|
125
|
-
onClick?: undefined;
|
|
126
|
-
};
|
|
127
|
-
type TagProps = SpanProps | ButtonProps$2 | AnchorProps$1;
|
|
128
|
-
declare const Tag: React$1.ForwardRefExoticComponent<TagProps & React$1.RefAttributes<HTMLElement>>;
|
|
129
|
-
|
|
130
93
|
type BarAlign = "start" | "end" | "center";
|
|
131
94
|
type BarSpace = "small" | "large";
|
|
132
95
|
interface BarProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
@@ -147,29 +110,29 @@ interface BarProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
|
147
110
|
}
|
|
148
111
|
declare const Bar: React$1.ForwardRefExoticComponent<BarProps & React$1.RefAttributes<HTMLElement>>;
|
|
149
112
|
|
|
150
|
-
interface
|
|
151
|
-
/**
|
|
152
|
-
canShrink?: boolean;
|
|
153
|
-
/** Bar item should fill empty space */
|
|
154
|
-
isFilling?: boolean;
|
|
155
|
-
/** Tag of the item */
|
|
113
|
+
interface BarBreakProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
114
|
+
/** HTML tag to render the compontent with */
|
|
156
115
|
tag?: React$1.ElementType;
|
|
157
|
-
/** Additional class
|
|
116
|
+
/** Additional class names */
|
|
158
117
|
className?: string;
|
|
159
118
|
/** Child content */
|
|
160
119
|
children?: React$1.ReactNode;
|
|
161
120
|
}
|
|
162
|
-
declare const
|
|
121
|
+
declare const BarBreak: React$1.ForwardRefExoticComponent<BarBreakProps & React$1.RefAttributes<HTMLElement>>;
|
|
163
122
|
|
|
164
|
-
interface
|
|
165
|
-
/**
|
|
123
|
+
interface CommonProps$3 {
|
|
124
|
+
/** Bar item could shrink and wrap content if there is not enough empty space */
|
|
125
|
+
canShrink?: boolean;
|
|
126
|
+
/** Bar item should fill empty space */
|
|
127
|
+
isFilling?: boolean;
|
|
128
|
+
/** Tag of the item */
|
|
166
129
|
tag?: React$1.ElementType;
|
|
167
|
-
/** Additional class
|
|
130
|
+
/** Additional class name */
|
|
168
131
|
className?: string;
|
|
169
132
|
/** Child content */
|
|
170
133
|
children?: React$1.ReactNode;
|
|
171
134
|
}
|
|
172
|
-
declare const
|
|
135
|
+
declare const BarItem: React$1.ForwardRefExoticComponent<CommonProps$3 & React$1.HTMLAttributes<HTMLElement> & React$1.RefAttributes<HTMLElement>>;
|
|
173
136
|
|
|
174
137
|
interface BlockActionProps {
|
|
175
138
|
/** 1 and only one single element */
|
|
@@ -245,7 +208,7 @@ declare const Breadcrumbs: React.FC<BreadcrumbsProps>;
|
|
|
245
208
|
|
|
246
209
|
type ButtonSize = "small" | "large";
|
|
247
210
|
type ButtonType = "primary" | "fill" | "ghost";
|
|
248
|
-
interface CommonProps$
|
|
211
|
+
interface CommonProps$2 {
|
|
249
212
|
elemRef?: React$1.Ref<any>;
|
|
250
213
|
htmlType?: "button" | "submit" | "reset";
|
|
251
214
|
isActive?: boolean;
|
|
@@ -258,14 +221,14 @@ interface CommonProps$1 {
|
|
|
258
221
|
children?: React$1.ReactNode;
|
|
259
222
|
preserveWidth?: boolean;
|
|
260
223
|
}
|
|
261
|
-
type AnchorProps = CommonProps$
|
|
224
|
+
type AnchorProps$1 = CommonProps$2 & Omit<React$1.AnchorHTMLAttributes<HTMLAnchorElement>, keyof CommonProps$2 | "type" | "ref"> & {
|
|
262
225
|
href: string;
|
|
263
226
|
};
|
|
264
|
-
type NativeButtonProps = CommonProps$
|
|
227
|
+
type NativeButtonProps = CommonProps$2 & Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, keyof CommonProps$2 | "href" | "ref"> & {
|
|
265
228
|
href?: undefined;
|
|
266
229
|
};
|
|
267
|
-
type ButtonProps$
|
|
268
|
-
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps$
|
|
230
|
+
type ButtonProps$2 = AnchorProps$1 | NativeButtonProps;
|
|
231
|
+
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps$2 & React$1.RefAttributes<any>>;
|
|
269
232
|
|
|
270
233
|
type IconPosition = "left" | "right";
|
|
271
234
|
interface IconButtonProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "ref"> {
|
|
@@ -284,15 +247,15 @@ interface IconButtonProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonEl
|
|
|
284
247
|
declare const IconButton: React$1.ForwardRefExoticComponent<IconButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
285
248
|
|
|
286
249
|
declare const ButtonPrimary: {
|
|
287
|
-
(props: ButtonProps$
|
|
250
|
+
(props: ButtonProps$2): react_jsx_runtime.JSX.Element;
|
|
288
251
|
displayName: string;
|
|
289
252
|
};
|
|
290
253
|
declare const ButtonFill: {
|
|
291
|
-
(props: ButtonProps$
|
|
254
|
+
(props: ButtonProps$2): react_jsx_runtime.JSX.Element;
|
|
292
255
|
displayName: string;
|
|
293
256
|
};
|
|
294
257
|
declare const ButtonGhost: {
|
|
295
|
-
(props: ButtonProps$
|
|
258
|
+
(props: ButtonProps$2): react_jsx_runtime.JSX.Element;
|
|
296
259
|
displayName: string;
|
|
297
260
|
};
|
|
298
261
|
|
|
@@ -304,6 +267,33 @@ interface ButtonsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
304
267
|
}
|
|
305
268
|
declare const Buttons: React.FC<ButtonsProps>;
|
|
306
269
|
|
|
270
|
+
declare const cardColors: readonly ["background-primary", "background-secondary", "background-contrast", "background-accent", "background-accent1-blog", "background-accent2-blog", "fill-subtle", "fill-accent1", "fill-accent2", "fill-accent3", "fill-accent4", "fill-accent5"];
|
|
271
|
+
type CardColor = (typeof cardColors)[number];
|
|
272
|
+
interface CardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
273
|
+
/** Custom background color */
|
|
274
|
+
color?: CardColor;
|
|
275
|
+
noBorder?: boolean;
|
|
276
|
+
}
|
|
277
|
+
declare const Card: React$1.ForwardRefExoticComponent<CardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
278
|
+
|
|
279
|
+
interface CardProductHeaderProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
280
|
+
image?: React$1.ReactNode;
|
|
281
|
+
/** Use small spacing */
|
|
282
|
+
space?: "small";
|
|
283
|
+
}
|
|
284
|
+
declare const CardProductHeader: React$1.ForwardRefExoticComponent<CardProductHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
285
|
+
|
|
286
|
+
type CardSectionColor = (typeof cardColors)[number];
|
|
287
|
+
interface CardSectionProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
288
|
+
/** Custom background color */
|
|
289
|
+
color?: CardSectionColor;
|
|
290
|
+
/** Fill available space using flexbox */
|
|
291
|
+
isFilling?: boolean;
|
|
292
|
+
/** Use small spacing */
|
|
293
|
+
space?: "small";
|
|
294
|
+
}
|
|
295
|
+
declare const CardSection: React$1.ForwardRefExoticComponent<CardSectionProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
296
|
+
|
|
307
297
|
interface CarouselProps extends HTMLAttributes<HTMLDivElement> {
|
|
308
298
|
/** Swiper.js (https://swiperjs.com/) options object */
|
|
309
299
|
swiperOptions?: Record<string, any>;
|
|
@@ -406,6 +396,47 @@ declare const Controls: React$1.ForwardRefExoticComponent<IControlsProps & Omit<
|
|
|
406
396
|
href?: undefined;
|
|
407
397
|
} & React$1.RefAttributes<any>>;
|
|
408
398
|
|
|
399
|
+
interface CoverProps {
|
|
400
|
+
/** Background image source. URL string or an object of breakpoint: url pairs
|
|
401
|
+
*
|
|
402
|
+
* ```
|
|
403
|
+
{
|
|
404
|
+
default: string, // default image to load (fallback)
|
|
405
|
+
xxxl: string, // different image for each breakpoint (optional). while these are mobile first breakpoints, they MUST be ordered from largest to smallest
|
|
406
|
+
xxl: string,
|
|
407
|
+
xl: string,
|
|
408
|
+
lg: string,
|
|
409
|
+
md: string,
|
|
410
|
+
sm: string,
|
|
411
|
+
xs: string,
|
|
412
|
+
}
|
|
413
|
+
* ```
|
|
414
|
+
*/
|
|
415
|
+
bgSrc: string | {
|
|
416
|
+
default: string;
|
|
417
|
+
xs?: string;
|
|
418
|
+
sm?: string;
|
|
419
|
+
md?: string;
|
|
420
|
+
lg?: string;
|
|
421
|
+
xl?: string;
|
|
422
|
+
xxl?: string;
|
|
423
|
+
xxxl?: string;
|
|
424
|
+
};
|
|
425
|
+
/** Set vertical position of image */
|
|
426
|
+
bgPosition?: "top" | "center" | "bottom";
|
|
427
|
+
/** Applies custom classNames to overlay content */
|
|
428
|
+
contentClass?: string;
|
|
429
|
+
/** Cover size */
|
|
430
|
+
size?: "small" | "medium" | "large" | "xlarge";
|
|
431
|
+
/** Additional className for the cover container */
|
|
432
|
+
className?: string;
|
|
433
|
+
/** Children content */
|
|
434
|
+
children?: React$1.ReactNode;
|
|
435
|
+
/** Additional props passed to Image component */
|
|
436
|
+
[key: string]: any;
|
|
437
|
+
}
|
|
438
|
+
declare const Cover: React$1.FC<CoverProps>;
|
|
439
|
+
|
|
409
440
|
interface DividerProps extends Omit<HTMLAttributes<HTMLDivElement>, "content"> {
|
|
410
441
|
/** Custom content inside divider */
|
|
411
442
|
content?: ReactNode;
|
|
@@ -418,7 +449,7 @@ type DropdownButtonProps = {
|
|
|
418
449
|
className?: string;
|
|
419
450
|
children?: ReactNode;
|
|
420
451
|
iconName?: string;
|
|
421
|
-
type?: ButtonProps$
|
|
452
|
+
type?: ButtonProps$2["type"];
|
|
422
453
|
};
|
|
423
454
|
type DropdownProps = {
|
|
424
455
|
button: DropdownButtonProps;
|
|
@@ -433,6 +464,8 @@ type DropdownProps = {
|
|
|
433
464
|
};
|
|
434
465
|
declare const Dropdown: React$1.FC<DropdownProps>;
|
|
435
466
|
|
|
467
|
+
declare const DropdownDivider: React$1.FC<React$1.HTMLAttributes<HTMLDivElement>>;
|
|
468
|
+
|
|
436
469
|
interface DropdownItemProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
437
470
|
className?: string;
|
|
438
471
|
children?: ReactNode;
|
|
@@ -441,8 +474,6 @@ interface DropdownItemProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
|
441
474
|
}
|
|
442
475
|
declare const DropdownItem: React$1.FC<DropdownItemProps>;
|
|
443
476
|
|
|
444
|
-
declare const DropdownDivider: React$1.FC<React$1.HTMLAttributes<HTMLDivElement>>;
|
|
445
|
-
|
|
446
477
|
interface DropdownToggleButtonProps extends React$1.HTMLAttributes<HTMLButtonElement> {
|
|
447
478
|
id: string;
|
|
448
479
|
className?: string;
|
|
@@ -488,88 +519,316 @@ interface FeatureAccordionItemProps extends AccordionItemProps {
|
|
|
488
519
|
}
|
|
489
520
|
declare const FeatureAccordionItem: React$1.FC<FeatureAccordionItemProps>;
|
|
490
521
|
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
522
|
+
type AutocompleteOption = string | {
|
|
523
|
+
title: string;
|
|
524
|
+
value: string;
|
|
525
|
+
};
|
|
526
|
+
interface AutocompleteProps extends React$1.HTMLAttributes<HTMLSelectElement> {
|
|
527
|
+
/** Module config. For more see accessible-autocomplete docs */
|
|
528
|
+
autocompleteConfig?: Record<string, any>;
|
|
529
|
+
/** Array of string options */
|
|
530
|
+
options?: AutocompleteOption[];
|
|
531
|
+
/** Placeholder text */
|
|
532
|
+
placeholder?: string;
|
|
533
|
+
/** Additional CSS classes */
|
|
534
|
+
className?: string;
|
|
497
535
|
}
|
|
498
|
-
declare const
|
|
536
|
+
declare const Autocomplete: React$1.FC<AutocompleteProps>;
|
|
499
537
|
|
|
500
|
-
type
|
|
501
|
-
interface
|
|
502
|
-
/**
|
|
503
|
-
|
|
504
|
-
/**
|
|
505
|
-
|
|
506
|
-
/**
|
|
507
|
-
|
|
538
|
+
type CheckboxSize = "default" | "large";
|
|
539
|
+
interface CheckboxProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
540
|
+
/** Html id attribute */
|
|
541
|
+
id: string;
|
|
542
|
+
/** Checked state. */
|
|
543
|
+
isChecked?: boolean;
|
|
544
|
+
/** Disabled state. */
|
|
545
|
+
isDisabled?: boolean;
|
|
546
|
+
/** Invalid state */
|
|
547
|
+
isInvalid?: boolean;
|
|
548
|
+
/** Checkbox is displayed as Toggle */
|
|
549
|
+
isToggle?: boolean;
|
|
550
|
+
/** Html name attribute. Id is used when not set.*/
|
|
551
|
+
name?: string;
|
|
552
|
+
/** Size of element. */
|
|
553
|
+
size?: CheckboxSize;
|
|
554
|
+
className?: string;
|
|
508
555
|
}
|
|
509
|
-
declare const
|
|
556
|
+
declare const Checkbox: React$1.FC<CheckboxProps>;
|
|
510
557
|
|
|
511
|
-
interface
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
558
|
+
interface FieldContextType {
|
|
559
|
+
controlId?: string;
|
|
560
|
+
messages?: any[];
|
|
561
|
+
control?: {
|
|
562
|
+
type?: string;
|
|
563
|
+
control?: any;
|
|
564
|
+
renderControl?: (props: any) => React.ReactNode;
|
|
565
|
+
isToggle?: boolean;
|
|
566
|
+
[key: string]: any;
|
|
567
|
+
};
|
|
568
|
+
hint?: React.ReactNode;
|
|
569
|
+
label?: React.ReactNode;
|
|
570
|
+
labelAfter?: React.ReactNode;
|
|
571
|
+
tooltip?: React.ReactNode;
|
|
572
|
+
isRadioCheck?: boolean;
|
|
515
573
|
}
|
|
516
|
-
declare const CardProductHeader: React$1.ForwardRefExoticComponent<CardProductHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
517
574
|
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
575
|
+
interface InputFieldProps {
|
|
576
|
+
className?: string;
|
|
577
|
+
control: FieldContextType["control"];
|
|
578
|
+
hint?: React$1.ReactNode;
|
|
579
|
+
label?: React$1.ReactNode;
|
|
580
|
+
labelAfter?: React$1.ReactNode;
|
|
581
|
+
messages?: Array<{
|
|
582
|
+
type: string;
|
|
583
|
+
text: string;
|
|
584
|
+
}>;
|
|
585
|
+
tooltip?: React$1.ReactNode;
|
|
586
|
+
[key: string]: any;
|
|
522
587
|
}
|
|
523
|
-
declare const
|
|
588
|
+
declare const Field: React$1.FC<InputFieldProps>;
|
|
524
589
|
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
interface
|
|
529
|
-
/**
|
|
530
|
-
|
|
531
|
-
/**
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
/** Icon size. */
|
|
536
|
-
size?: IconSize;
|
|
537
|
-
/** Path to the SVG sprite. */
|
|
538
|
-
spritePath?: string;
|
|
539
|
-
/**
|
|
540
|
-
* Icon type. When set to "pictogram", the component will automatically
|
|
541
|
-
* switch between light and dark versions based on theme classes (.is-light/.is-dark).
|
|
542
|
-
*/
|
|
543
|
-
type?: IconType;
|
|
544
|
-
/**
|
|
545
|
-
* @deprecated Use type="pictogram" instead.
|
|
546
|
-
* Whether this icon should adapt to theme (light/dark).
|
|
547
|
-
* When true, the component will automatically switch between
|
|
548
|
-
* light and dark versions based on theme classes (.is-light/.is-dark).
|
|
549
|
-
*/
|
|
590
|
+
interface FieldsetMessage {
|
|
591
|
+
[key: string]: any;
|
|
592
|
+
}
|
|
593
|
+
interface FieldsetProps extends React$1.FieldsetHTMLAttributes<HTMLFieldSetElement> {
|
|
594
|
+
/** Required `<legend />` for fieldset */
|
|
595
|
+
legend: ReactNode;
|
|
596
|
+
/** Additional legend props */
|
|
597
|
+
legendProps?: React$1.HTMLAttributes<HTMLLegendElement>;
|
|
598
|
+
description?: ReactNode;
|
|
599
|
+
messages?: FieldsetMessage[];
|
|
550
600
|
className?: string;
|
|
601
|
+
children?: ReactNode;
|
|
551
602
|
}
|
|
552
|
-
declare const
|
|
603
|
+
declare const Fieldset: React$1.FC<FieldsetProps>;
|
|
553
604
|
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
605
|
+
type FileSize = "default" | "large";
|
|
606
|
+
interface FileProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
607
|
+
/** Html id attribute. Generated automatically if omitted. */
|
|
608
|
+
id?: string;
|
|
609
|
+
/** Disabled state. */
|
|
610
|
+
isDisabled?: boolean;
|
|
611
|
+
/** Invalid state */
|
|
612
|
+
isInvalid?: boolean;
|
|
613
|
+
/** Input name. */
|
|
614
|
+
name?: string;
|
|
615
|
+
/** Size of element. */
|
|
616
|
+
size?: FileSize;
|
|
617
|
+
className?: string;
|
|
618
|
+
}
|
|
619
|
+
declare const File: FC<FileProps>;
|
|
620
|
+
|
|
621
|
+
interface ControlShape {
|
|
622
|
+
type: "text" | "select";
|
|
623
|
+
[key: string]: any;
|
|
624
|
+
}
|
|
625
|
+
interface GroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
626
|
+
control: ControlShape;
|
|
627
|
+
addonPrefix?: ReactNode | ReactNode[];
|
|
628
|
+
size?: "large";
|
|
629
|
+
addonSuffix?: ReactNode | ReactNode[];
|
|
630
|
+
className?: string;
|
|
631
|
+
/** Invalid state */
|
|
632
|
+
isInvalid?: boolean;
|
|
633
|
+
}
|
|
634
|
+
declare const Group: React$1.FC<GroupProps>;
|
|
635
|
+
|
|
636
|
+
interface HintProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
|
|
637
|
+
className?: string;
|
|
638
|
+
children?: React$1.ReactNode;
|
|
639
|
+
}
|
|
640
|
+
declare const Hint: React$1.FC<HintProps>;
|
|
641
|
+
|
|
642
|
+
interface InputStepperConfig {
|
|
643
|
+
min?: number;
|
|
644
|
+
max?: number;
|
|
645
|
+
defaultValue?: number;
|
|
646
|
+
nonEditableInput?: boolean;
|
|
647
|
+
}
|
|
648
|
+
interface InputStepperProps {
|
|
649
|
+
config?: InputStepperConfig;
|
|
650
|
+
id: string;
|
|
651
|
+
inputClassName?: string;
|
|
652
|
+
isDisabled?: boolean;
|
|
653
|
+
/** Invalid state */
|
|
654
|
+
isInvalid?: boolean;
|
|
655
|
+
name?: string;
|
|
656
|
+
nonEditableInput?: boolean;
|
|
657
|
+
className?: string;
|
|
658
|
+
[key: string]: any;
|
|
659
|
+
}
|
|
660
|
+
declare const InputStepper: React$1.FC<InputStepperProps>;
|
|
661
|
+
|
|
662
|
+
interface LabelProps extends React$1.LabelHTMLAttributes<HTMLLabelElement> {
|
|
663
|
+
htmlFor: string;
|
|
664
|
+
className?: string;
|
|
665
|
+
children?: React$1.ReactNode;
|
|
666
|
+
}
|
|
667
|
+
declare const Label: React$1.FC<LabelProps>;
|
|
668
|
+
|
|
669
|
+
type MessageType = "info" | "warning" | "error" | "invalid";
|
|
670
|
+
interface MessageProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
|
|
671
|
+
/** Type of message */
|
|
672
|
+
type?: MessageType;
|
|
673
|
+
/** Additional CSS classes */
|
|
674
|
+
className?: string;
|
|
675
|
+
/** Message content */
|
|
676
|
+
children?: React$1.ReactNode;
|
|
677
|
+
}
|
|
678
|
+
declare const Message: React$1.FC<MessageProps>;
|
|
679
|
+
|
|
680
|
+
type RadioSize = "default" | "large";
|
|
681
|
+
interface RadioProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
682
|
+
/** Html id attribute */
|
|
683
|
+
id: string;
|
|
684
|
+
/** Checked state. */
|
|
685
|
+
isChecked?: boolean;
|
|
686
|
+
/** Disabled state. */
|
|
687
|
+
isDisabled?: boolean;
|
|
688
|
+
/** Invalid state */
|
|
689
|
+
isInvalid?: boolean;
|
|
690
|
+
/** Html name attribute. */
|
|
560
691
|
name: string;
|
|
692
|
+
/** Size of element. */
|
|
693
|
+
size?: RadioSize;
|
|
694
|
+
/** HTML value. Uses id when not set. */
|
|
695
|
+
value?: string;
|
|
696
|
+
className?: string;
|
|
561
697
|
}
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
698
|
+
declare const Radio: React$1.FC<RadioProps>;
|
|
699
|
+
|
|
700
|
+
type RangeSliderWidth = "default" | "fullwidth";
|
|
701
|
+
interface RangeSliderConfig {
|
|
702
|
+
connect?: boolean | boolean[];
|
|
703
|
+
format?: (value: number) => string;
|
|
704
|
+
handleAttributes?: Array<Record<string, any>>;
|
|
705
|
+
pips?: {
|
|
706
|
+
mode?: "positions" | "count" | "values";
|
|
707
|
+
filter?: (value: number) => boolean;
|
|
708
|
+
format?: (value: number) => string;
|
|
709
|
+
values?: number[] | number;
|
|
710
|
+
density?: number;
|
|
711
|
+
};
|
|
712
|
+
range: {
|
|
713
|
+
min: number | number[];
|
|
714
|
+
max: number | number[];
|
|
715
|
+
};
|
|
716
|
+
start: number[];
|
|
717
|
+
[key: string]: any;
|
|
718
|
+
}
|
|
719
|
+
interface RangeSliderProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
720
|
+
/** [noUiSlider config object](https://refreshless.com/nouislider/slider-options/) */
|
|
721
|
+
config: RangeSliderConfig;
|
|
722
|
+
/** insert arbitrary element after rangeslider */
|
|
723
|
+
elementAfter?: React$1.ReactNode;
|
|
724
|
+
/** insert arbitrary element before rangeslider */
|
|
725
|
+
elementBefore?: React$1.ReactNode;
|
|
726
|
+
/** render data-rangeslider attribute and initialize RangeSlider.static.js */
|
|
727
|
+
hasDataAttr?: boolean;
|
|
728
|
+
/** element id. required by RangeSlider.static.js and generated automatically in React environment. */
|
|
729
|
+
id?: string;
|
|
730
|
+
/** Invalid state */
|
|
731
|
+
isInvalid?: boolean;
|
|
732
|
+
/** width of the element */
|
|
733
|
+
width?: RangeSliderWidth;
|
|
734
|
+
/** Additional CSS classes */
|
|
735
|
+
className?: string;
|
|
736
|
+
}
|
|
737
|
+
declare const RangeSlider: React$1.FC<RangeSliderProps>;
|
|
738
|
+
|
|
739
|
+
type SelectOption = {
|
|
740
|
+
text: string;
|
|
741
|
+
value: string;
|
|
742
|
+
} | string;
|
|
743
|
+
type SelectSize = "default" | "large";
|
|
744
|
+
type SelectWidth = "default" | "12ch" | "shrink" | "fullwidth";
|
|
745
|
+
interface SelectProps extends Omit<React$1.SelectHTMLAttributes<HTMLSelectElement>, "size"> {
|
|
746
|
+
/** Forwarded DOM element ref. */
|
|
747
|
+
elemRef?: React$1.Ref<HTMLSelectElement>;
|
|
748
|
+
/** Html id attribute. */
|
|
749
|
+
id?: string;
|
|
750
|
+
/** Disabled state. */
|
|
751
|
+
isDisabled?: boolean;
|
|
752
|
+
/** Invalid state. */
|
|
753
|
+
isInvalid?: boolean;
|
|
754
|
+
/** Html name attribute. */
|
|
755
|
+
name?: string;
|
|
756
|
+
/** Select option can be specified via children or as options array */
|
|
757
|
+
options?: SelectOption[];
|
|
758
|
+
/** Size of element. */
|
|
759
|
+
size?: SelectSize;
|
|
760
|
+
/** Select value. */
|
|
761
|
+
value?: string | string[];
|
|
762
|
+
/** Element width */
|
|
763
|
+
width?: SelectWidth;
|
|
764
|
+
/** Additional CSS classes */
|
|
765
|
+
className?: string;
|
|
766
|
+
/** Child elements */
|
|
767
|
+
children?: React$1.ReactNode;
|
|
768
|
+
}
|
|
769
|
+
declare const Select: React$1.FC<SelectProps>;
|
|
770
|
+
|
|
771
|
+
type TextAreaSize = "default" | "large";
|
|
772
|
+
type TextAreaWidth = "default" | "fullwidth";
|
|
773
|
+
interface TextAreaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
774
|
+
/** Html id attribute. */
|
|
775
|
+
id: string;
|
|
776
|
+
/** Disabled state. */
|
|
777
|
+
isDisabled?: boolean;
|
|
778
|
+
/** Invalid state */
|
|
779
|
+
isInvalid?: boolean;
|
|
780
|
+
/** Readonly state. */
|
|
781
|
+
isReadonly?: boolean;
|
|
782
|
+
/** Valid state */
|
|
783
|
+
isValid?: boolean;
|
|
784
|
+
/** Html name attribute. If not present, id is used.*/
|
|
785
|
+
name?: string;
|
|
786
|
+
/** Placeholder text */
|
|
787
|
+
placeholder?: string;
|
|
788
|
+
/** Size of element. */
|
|
789
|
+
size?: TextAreaSize;
|
|
790
|
+
/** Input width */
|
|
791
|
+
width?: TextAreaWidth;
|
|
792
|
+
/** Additional CSS classes */
|
|
793
|
+
className?: string;
|
|
794
|
+
/** Child elements */
|
|
795
|
+
children?: React$1.ReactNode;
|
|
796
|
+
}
|
|
797
|
+
declare const TextArea: React$1.FC<TextAreaProps>;
|
|
798
|
+
|
|
799
|
+
type TextInputSize = "default" | "large";
|
|
800
|
+
type TextInputWidth = "3ch" | "8ch" | "12ch" | "default" | "fullwidth";
|
|
801
|
+
type TextInputType = "email" | "hidden" | "password" | "search" | "tel" | "number" | "text" | "url";
|
|
802
|
+
type TextInputSearchIcon = "none" | "transient" | "persistent";
|
|
803
|
+
interface TextInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
804
|
+
/** Input html type. */
|
|
805
|
+
htmlType?: TextInputType;
|
|
806
|
+
/** Html id attribute. */
|
|
807
|
+
id: string;
|
|
808
|
+
/** Disabled state. */
|
|
809
|
+
isDisabled?: boolean;
|
|
810
|
+
/** Invalid state */
|
|
811
|
+
isInvalid?: boolean;
|
|
812
|
+
/** Readonly state. */
|
|
813
|
+
isReadonly?: boolean;
|
|
814
|
+
/** Valid state */
|
|
815
|
+
isValid?: boolean;
|
|
816
|
+
/** Html name attribute. If not present, id is used.*/
|
|
817
|
+
name?: string;
|
|
818
|
+
/** Placeholder text */
|
|
819
|
+
placeholder?: string;
|
|
820
|
+
/** Size of element. */
|
|
821
|
+
size?: TextInputSize;
|
|
822
|
+
/** Input value. */
|
|
823
|
+
value?: string;
|
|
824
|
+
/** Input width */
|
|
825
|
+
width?: TextInputWidth;
|
|
826
|
+
/** Additional CSS classes */
|
|
827
|
+
className?: string;
|
|
828
|
+
/** Search icon mode. `transient` shows icon only on empty unfocused input, `persistent` keeps it visible with placeholder. */
|
|
829
|
+
searchIcon?: TextInputSearchIcon;
|
|
830
|
+
}
|
|
831
|
+
declare const TextInput: React$1.ForwardRefExoticComponent<TextInputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
573
832
|
|
|
574
833
|
interface GaugeProps {
|
|
575
834
|
/** Text inside the gauge */
|
|
@@ -595,8 +854,8 @@ interface GridProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
|
595
854
|
}
|
|
596
855
|
declare const Grid: React$1.ForwardRefExoticComponent<GridProps & React$1.RefAttributes<HTMLElement>>;
|
|
597
856
|
|
|
598
|
-
type GridColAlign =
|
|
599
|
-
type GridColSize = number |
|
|
857
|
+
type GridColAlign = "top" | "middle" | "bottom" | "stretch";
|
|
858
|
+
type GridColSize = number | "shrink" | "fill" | "auto" | Record<string, number | "shrink" | "fill" | "auto">;
|
|
600
859
|
interface GridColProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
601
860
|
align?: GridColAlign;
|
|
602
861
|
tag?: React$1.ElementType;
|
|
@@ -607,18 +866,143 @@ declare const GridCol: {
|
|
|
607
866
|
displayName: string;
|
|
608
867
|
};
|
|
609
868
|
|
|
610
|
-
|
|
869
|
+
type HeroTextSize = "medium" | "large";
|
|
870
|
+
type StickerColor = "black" | "orange";
|
|
871
|
+
interface HeroImageSrc {
|
|
872
|
+
src: string;
|
|
873
|
+
srcSet?: string;
|
|
874
|
+
}
|
|
875
|
+
interface HeroImageResponsive {
|
|
611
876
|
default: string;
|
|
612
|
-
xxxl?: string;
|
|
613
|
-
xxl?: string;
|
|
614
|
-
xl?: string;
|
|
615
|
-
lg?: string;
|
|
616
|
-
md?: string;
|
|
617
877
|
sm?: string;
|
|
618
|
-
|
|
878
|
+
lg?: string;
|
|
879
|
+
xl?: string;
|
|
880
|
+
xxl?: string;
|
|
619
881
|
[key: string]: string | undefined;
|
|
620
882
|
}
|
|
621
|
-
|
|
883
|
+
type HeroImage = HeroImageSrc | HeroImageResponsive;
|
|
884
|
+
interface HeroPriceObject {
|
|
885
|
+
amount: number;
|
|
886
|
+
prefix?: React$1.ReactNode;
|
|
887
|
+
suffix?: React$1.ReactNode;
|
|
888
|
+
}
|
|
889
|
+
type HeroPrice = string | HeroPriceObject;
|
|
890
|
+
interface HeroButtonProps {
|
|
891
|
+
children: React$1.ReactNode;
|
|
892
|
+
[key: string]: any;
|
|
893
|
+
}
|
|
894
|
+
interface HeroStickerProps {
|
|
895
|
+
color?: StickerColor;
|
|
896
|
+
children?: React$1.ReactNode;
|
|
897
|
+
className?: string;
|
|
898
|
+
}
|
|
899
|
+
interface HeroProps {
|
|
900
|
+
/** Action button props */
|
|
901
|
+
button?: HeroButtonProps;
|
|
902
|
+
/** Main text */
|
|
903
|
+
description?: React$1.ReactNode;
|
|
904
|
+
hasFullwidthImage?: boolean;
|
|
905
|
+
/** Gradient overlay ensures proper text readability */
|
|
906
|
+
hasGradientOverlay?: boolean;
|
|
907
|
+
/** Use svg illustrations, png for product images and jpg for photos */
|
|
908
|
+
image?: HeroImage;
|
|
909
|
+
price?: HeroPrice;
|
|
910
|
+
sticker?: HeroStickerProps;
|
|
911
|
+
/** Adjust title and description size. Medium sets display-2 title and 18px text, large uses display-1 title and 20px text. */
|
|
912
|
+
textSize?: HeroTextSize;
|
|
913
|
+
/** Hero title */
|
|
914
|
+
title: string;
|
|
915
|
+
}
|
|
916
|
+
declare const Hero: React$1.FC<HeroProps>;
|
|
917
|
+
|
|
918
|
+
type IconColor = "info" | "success" | "warning" | "danger" | "orange";
|
|
919
|
+
type IconSize = "small" | "medium" | "large" | "xlarge" | "xxlarge" | "huge";
|
|
920
|
+
type IconType = "icon" | "pictogram";
|
|
921
|
+
interface IconProps extends React$1.SVGAttributes<SVGSVGElement> {
|
|
922
|
+
/** Accessible label for the icon. */
|
|
923
|
+
alt?: string;
|
|
924
|
+
/** Icon color. */
|
|
925
|
+
color?: IconColor;
|
|
926
|
+
/** Icon name (required). */
|
|
927
|
+
name: string;
|
|
928
|
+
/** Icon size. */
|
|
929
|
+
size?: IconSize;
|
|
930
|
+
/** Path to the SVG sprite. */
|
|
931
|
+
spritePath?: string;
|
|
932
|
+
/**
|
|
933
|
+
* Icon type. When set to "pictogram", the component will automatically
|
|
934
|
+
* switch between light and dark versions based on theme classes (.is-light/.is-dark).
|
|
935
|
+
*/
|
|
936
|
+
type?: IconType;
|
|
937
|
+
/**
|
|
938
|
+
* @deprecated Use type="pictogram" instead.
|
|
939
|
+
* Whether this icon should adapt to theme (light/dark).
|
|
940
|
+
* When true, the component will automatically switch between
|
|
941
|
+
* light and dark versions based on theme classes (.is-light/.is-dark).
|
|
942
|
+
*/
|
|
943
|
+
className?: string;
|
|
944
|
+
}
|
|
945
|
+
declare const Icon: React$1.FC<IconProps>;
|
|
946
|
+
|
|
947
|
+
interface PictogramProps extends Omit<IconProps, "type"> {
|
|
948
|
+
/**
|
|
949
|
+
* Pictogram name. Should correspond to your pictogram sprite entries.
|
|
950
|
+
* For example: 'pictogram-skylink' will look for 'pictogram-skylink' (light)
|
|
951
|
+
* and 'pictogram-skylink--dark' (dark) in the sprite.
|
|
952
|
+
*/
|
|
953
|
+
name: string;
|
|
954
|
+
}
|
|
955
|
+
/**
|
|
956
|
+
* Pictogram component for theme-aware pictographic icons.
|
|
957
|
+
*
|
|
958
|
+
* This component automatically handles light/dark theme switching by using
|
|
959
|
+
* different sprite entries based on the current theme (.is-light/.is-dark classes).
|
|
960
|
+
*
|
|
961
|
+
* Your sprite should contain both light and dark versions:
|
|
962
|
+
* - Light version: Use the exact name provided (e.g., 'pictogram-skylink')
|
|
963
|
+
* - Dark version: Add '--dark' suffix (e.g., 'pictogram-skylink--dark')
|
|
964
|
+
*/
|
|
965
|
+
declare const Pictogram: React$1.FC<PictogramProps>;
|
|
966
|
+
|
|
967
|
+
declare const SpritePathContext: React$1.Context<string>;
|
|
968
|
+
interface SpritePathProviderProps {
|
|
969
|
+
children: ReactNode;
|
|
970
|
+
value?: string;
|
|
971
|
+
}
|
|
972
|
+
declare const SpritePathProvider: React$1.FC<SpritePathProviderProps>;
|
|
973
|
+
|
|
974
|
+
interface IconListItem {
|
|
975
|
+
icon: string;
|
|
976
|
+
content: React$1.ReactNode;
|
|
977
|
+
tooltip?: React$1.ReactNode;
|
|
978
|
+
}
|
|
979
|
+
interface IconListProps {
|
|
980
|
+
items?: IconListItem[];
|
|
981
|
+
className?: string;
|
|
982
|
+
[key: string]: any;
|
|
983
|
+
}
|
|
984
|
+
declare const IconList: React$1.FC<IconListProps>;
|
|
985
|
+
|
|
986
|
+
interface ItemProps {
|
|
987
|
+
icon: string;
|
|
988
|
+
children: React$1.ReactNode;
|
|
989
|
+
tooltip?: React$1.ReactNode;
|
|
990
|
+
[key: string]: any;
|
|
991
|
+
}
|
|
992
|
+
declare const Item: React$1.FC<ItemProps>;
|
|
993
|
+
|
|
994
|
+
interface ImageSrcObject {
|
|
995
|
+
default: string;
|
|
996
|
+
xxxl?: string;
|
|
997
|
+
xxl?: string;
|
|
998
|
+
xl?: string;
|
|
999
|
+
lg?: string;
|
|
1000
|
+
md?: string;
|
|
1001
|
+
sm?: string;
|
|
1002
|
+
xs?: string;
|
|
1003
|
+
[key: string]: string | undefined;
|
|
1004
|
+
}
|
|
1005
|
+
interface ImageProps {
|
|
622
1006
|
alt: string;
|
|
623
1007
|
src: string | ImageSrcObject;
|
|
624
1008
|
className?: string;
|
|
@@ -644,6 +1028,33 @@ interface LinkProps$1 {
|
|
|
644
1028
|
}
|
|
645
1029
|
declare const Link: React$1.FC<LinkProps$1 & React$1.HTMLAttributes<HTMLElement>>;
|
|
646
1030
|
|
|
1031
|
+
interface ListProps {
|
|
1032
|
+
/** Size determines color of list items and color of their borders*/
|
|
1033
|
+
color?: "gray";
|
|
1034
|
+
/** Spacious lists have horizontal spacing */
|
|
1035
|
+
isEnclosed?: boolean;
|
|
1036
|
+
/** Size determines vertical spacing */
|
|
1037
|
+
size?: "small";
|
|
1038
|
+
className?: string;
|
|
1039
|
+
children?: React$1.ReactNode;
|
|
1040
|
+
}
|
|
1041
|
+
declare const List: React$1.FC<ListProps>;
|
|
1042
|
+
|
|
1043
|
+
interface ControlProps {
|
|
1044
|
+
href?: string;
|
|
1045
|
+
className?: string;
|
|
1046
|
+
children?: React$1.ReactNode;
|
|
1047
|
+
[key: string]: any;
|
|
1048
|
+
}
|
|
1049
|
+
interface ListItemProps {
|
|
1050
|
+
/** Item with control props automatically creates a clickable item and renders an interactive element. If the object contains a href property, it renders an anchor element. If not, it renders a button of type="button" instead. */
|
|
1051
|
+
controlProps?: ControlProps;
|
|
1052
|
+
className?: string;
|
|
1053
|
+
children?: React$1.ReactNode;
|
|
1054
|
+
[key: string]: any;
|
|
1055
|
+
}
|
|
1056
|
+
declare const ListItem: React$1.FC<ListItemProps>;
|
|
1057
|
+
|
|
647
1058
|
interface LoaderProps {
|
|
648
1059
|
colour?: "default" | "inverse";
|
|
649
1060
|
isDelayed?: boolean;
|
|
@@ -717,30 +1128,12 @@ interface ModalBodyProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
717
1128
|
}
|
|
718
1129
|
declare const ModalBody: React$1.FC<ModalBodyProps>;
|
|
719
1130
|
|
|
720
|
-
declare const sizes: readonly ["small", "large"];
|
|
721
|
-
type TitleSize = (typeof sizes)[number];
|
|
722
|
-
interface ModalTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
723
|
-
size?: TitleSize;
|
|
724
|
-
className?: string;
|
|
725
|
-
children?: React.ReactNode;
|
|
726
|
-
}
|
|
727
|
-
declare const ModalTitle: React.FC<ModalTitleProps>;
|
|
728
|
-
|
|
729
1131
|
interface ExtendedIconButtonProps extends IconButtonProps {
|
|
730
1132
|
type?: ButtonType;
|
|
731
1133
|
}
|
|
732
1134
|
type ModalCloseButtonProps = Omit<ExtendedIconButtonProps, "iconName">;
|
|
733
1135
|
declare const ModalCloseButton: React.FC<ModalCloseButtonProps>;
|
|
734
1136
|
|
|
735
|
-
interface ModalProductHeaderProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
736
|
-
image?: React$1.ReactNode;
|
|
737
|
-
/** Use small spacing */
|
|
738
|
-
space?: "small";
|
|
739
|
-
/** Optional id for accessibility (e.g., for aria-labelledby) */
|
|
740
|
-
titleId?: string;
|
|
741
|
-
}
|
|
742
|
-
declare const ModalProductHeader: React$1.ForwardRefExoticComponent<ModalProductHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
743
|
-
|
|
744
1137
|
interface ModalProductFooterProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
745
1138
|
image?: React$1.ReactNode;
|
|
746
1139
|
/** Use small spacing */
|
|
@@ -749,86 +1142,23 @@ interface ModalProductFooterProps extends React$1.HTMLAttributes<HTMLDivElement>
|
|
|
749
1142
|
}
|
|
750
1143
|
declare const ModalProductFooter: React$1.ForwardRefExoticComponent<ModalProductFooterProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
751
1144
|
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
/**
|
|
757
|
-
|
|
758
|
-
/**
|
|
759
|
-
* Spacing between sections
|
|
760
|
-
*
|
|
761
|
-
* if two sections with different color meet
|
|
762
|
-
* use default (larger) spacing, if two section have same color
|
|
763
|
-
* use small spacing on second one. Use xsmall for specific
|
|
764
|
-
* cases e.g. as part of Megamenu
|
|
765
|
-
*/
|
|
766
|
-
spacing?: SectionSpacing;
|
|
767
|
-
/** Rendered HTML element */
|
|
768
|
-
tag?: React$1.ElementType;
|
|
769
|
-
/** Additional CSS classes */
|
|
770
|
-
className?: string;
|
|
771
|
-
/** Section content */
|
|
772
|
-
children?: React$1.ReactNode;
|
|
773
|
-
/** Additional classes passed to the container */
|
|
774
|
-
containerClassName?: string;
|
|
775
|
-
}
|
|
776
|
-
declare const Section: React$1.FC<SectionProps>;
|
|
777
|
-
|
|
778
|
-
interface StickerProps {
|
|
779
|
-
color?: 'black' | 'orange';
|
|
780
|
-
size?: 'small';
|
|
781
|
-
children?: React$1.ReactNode;
|
|
782
|
-
className?: string;
|
|
783
|
-
[key: string]: any;
|
|
784
|
-
}
|
|
785
|
-
declare const Sticker: React$1.FC<StickerProps>;
|
|
786
|
-
|
|
787
|
-
interface SkipLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
788
|
-
href?: string;
|
|
789
|
-
}
|
|
790
|
-
declare const SkipLink: React$1.FC<SkipLinkProps>;
|
|
791
|
-
|
|
792
|
-
interface ListProps {
|
|
793
|
-
/** Size determines color of list items and color of their borders*/
|
|
794
|
-
color?: 'gray';
|
|
795
|
-
/** Spacious lists have horizontal spacing */
|
|
796
|
-
isEnclosed?: boolean;
|
|
797
|
-
/** Size determines vertical spacing */
|
|
798
|
-
size?: 'small';
|
|
799
|
-
className?: string;
|
|
800
|
-
children?: React$1.ReactNode;
|
|
801
|
-
}
|
|
802
|
-
declare const List: React$1.FC<ListProps>;
|
|
803
|
-
|
|
804
|
-
interface ControlProps {
|
|
805
|
-
href?: string;
|
|
806
|
-
className?: string;
|
|
807
|
-
children?: React$1.ReactNode;
|
|
808
|
-
[key: string]: any;
|
|
809
|
-
}
|
|
810
|
-
interface ListItemProps {
|
|
811
|
-
/** Item with control props automatically creates a clickable item and renders an interactive element. If the object contains a href property, it renders an anchor element. If not, it renders a button of type="button" instead. */
|
|
812
|
-
controlProps?: ControlProps;
|
|
813
|
-
className?: string;
|
|
814
|
-
children?: React$1.ReactNode;
|
|
815
|
-
[key: string]: any;
|
|
1145
|
+
interface ModalProductHeaderProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1146
|
+
image?: React$1.ReactNode;
|
|
1147
|
+
/** Use small spacing */
|
|
1148
|
+
space?: "small";
|
|
1149
|
+
/** Optional id for accessibility (e.g., for aria-labelledby) */
|
|
1150
|
+
titleId?: string;
|
|
816
1151
|
}
|
|
817
|
-
declare const
|
|
1152
|
+
declare const ModalProductHeader: React$1.ForwardRefExoticComponent<ModalProductHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
818
1153
|
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
label: React$1.ReactNode;
|
|
824
|
-
/** Textual representation of the indicator */
|
|
825
|
-
value: React$1.ReactNode;
|
|
826
|
-
/** Width of the progress indicator where 0 = empty, 1 = full */
|
|
827
|
-
width?: number;
|
|
1154
|
+
declare const sizes: readonly ["small", "large"];
|
|
1155
|
+
type TitleSize = (typeof sizes)[number];
|
|
1156
|
+
interface ModalTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
1157
|
+
size?: TitleSize;
|
|
828
1158
|
className?: string;
|
|
829
|
-
children?: React
|
|
1159
|
+
children?: React.ReactNode;
|
|
830
1160
|
}
|
|
831
|
-
declare const
|
|
1161
|
+
declare const ModalTitle: React.FC<ModalTitleProps>;
|
|
832
1162
|
|
|
833
1163
|
interface PaginationItemProps {
|
|
834
1164
|
/** Page link href */
|
|
@@ -854,9 +1184,33 @@ interface PaginationProps {
|
|
|
854
1184
|
}
|
|
855
1185
|
declare const Pagination: React$1.FC<PaginationProps>;
|
|
856
1186
|
|
|
857
|
-
|
|
1187
|
+
declare const pillColors: readonly ["surface-primary", "surface-secondary", "surface-tertiary", "surface-subtle", "surface-moderate", "surface-contrast", "surface-accent", "fill-moderate", "fill-disabled", "transparent"];
|
|
1188
|
+
type PillColor = (typeof pillColors)[number];
|
|
1189
|
+
interface PillProps extends HTMLAttributes<HTMLSpanElement> {
|
|
858
1190
|
className?: string;
|
|
859
|
-
|
|
1191
|
+
children?: ReactNode;
|
|
1192
|
+
color?: PillColor;
|
|
1193
|
+
size?: "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
1194
|
+
}
|
|
1195
|
+
declare const Pill: React$1.FC<PillProps>;
|
|
1196
|
+
|
|
1197
|
+
interface ProgressProps {
|
|
1198
|
+
/** Color of the indicator */
|
|
1199
|
+
color?: "orange" | "green" | "yellow" | "red" | "blue";
|
|
1200
|
+
/** Provides clear instruction on what the horizontal bar represents */
|
|
1201
|
+
label: React$1.ReactNode;
|
|
1202
|
+
/** Textual representation of the indicator */
|
|
1203
|
+
value: React$1.ReactNode;
|
|
1204
|
+
/** Width of the progress indicator where 0 = empty, 1 = full */
|
|
1205
|
+
width?: number;
|
|
1206
|
+
className?: string;
|
|
1207
|
+
children?: React$1.ReactNode;
|
|
1208
|
+
}
|
|
1209
|
+
declare const Progress: React$1.FC<ProgressProps>;
|
|
1210
|
+
|
|
1211
|
+
interface PromoBannerProps {
|
|
1212
|
+
className?: string;
|
|
1213
|
+
image?: string;
|
|
860
1214
|
alignImage?: "bottom" | "top";
|
|
861
1215
|
/** Remove top padding from item on sm and smaller breakpoints */
|
|
862
1216
|
flushTopSmDown?: boolean;
|
|
@@ -910,345 +1264,135 @@ interface PromotionCardTitleProps {
|
|
|
910
1264
|
}
|
|
911
1265
|
declare const PromotionCardTitle: React$1.FC<PromotionCardTitleProps>;
|
|
912
1266
|
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
1267
|
+
declare const sectionColors: readonly ["background-secondary", "background-contrast", "background-accent", "background-accent1-blog", "background-accent2-blog", "background-none", "surface-subtle"];
|
|
1268
|
+
type SectionColor = (typeof sectionColors)[number];
|
|
1269
|
+
type SectionSpacing = "default" | "small" | "xsmall";
|
|
1270
|
+
interface SectionProps {
|
|
1271
|
+
/** Background color of section */
|
|
1272
|
+
color?: SectionColor;
|
|
1273
|
+
/**
|
|
1274
|
+
* Spacing between sections
|
|
1275
|
+
*
|
|
1276
|
+
* if two sections with different color meet
|
|
1277
|
+
* use default (larger) spacing, if two section have same color
|
|
1278
|
+
* use small spacing on second one. Use xsmall for specific
|
|
1279
|
+
* cases e.g. as part of Megamenu
|
|
1280
|
+
*/
|
|
1281
|
+
spacing?: SectionSpacing;
|
|
1282
|
+
/** Rendered HTML element */
|
|
1283
|
+
tag?: React$1.ElementType;
|
|
924
1284
|
/** Additional CSS classes */
|
|
925
1285
|
className?: string;
|
|
1286
|
+
/** Section content */
|
|
1287
|
+
children?: React$1.ReactNode;
|
|
1288
|
+
/** Additional classes passed to the container */
|
|
1289
|
+
containerClassName?: string;
|
|
926
1290
|
}
|
|
927
|
-
declare const
|
|
928
|
-
|
|
929
|
-
type CheckboxSize = "default" | "large";
|
|
930
|
-
interface CheckboxProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
931
|
-
/** Html id attribute */
|
|
932
|
-
id: string;
|
|
933
|
-
/** Checked state. */
|
|
934
|
-
isChecked?: boolean;
|
|
935
|
-
/** Disabled state. */
|
|
936
|
-
isDisabled?: boolean;
|
|
937
|
-
/** Invalid state */
|
|
938
|
-
isInvalid?: boolean;
|
|
939
|
-
/** Checkbox is displayed as Toggle */
|
|
940
|
-
isToggle?: boolean;
|
|
941
|
-
/** Html name attribute. Id is used when not set.*/
|
|
942
|
-
name?: string;
|
|
943
|
-
/** Size of element. */
|
|
944
|
-
size?: CheckboxSize;
|
|
945
|
-
className?: string;
|
|
946
|
-
}
|
|
947
|
-
declare const Checkbox: React$1.FC<CheckboxProps>;
|
|
948
|
-
|
|
949
|
-
interface FieldContextType {
|
|
950
|
-
controlId?: string;
|
|
951
|
-
messages?: any[];
|
|
952
|
-
control?: {
|
|
953
|
-
type?: string;
|
|
954
|
-
control?: any;
|
|
955
|
-
renderControl?: (props: any) => React.ReactNode;
|
|
956
|
-
isToggle?: boolean;
|
|
957
|
-
[key: string]: any;
|
|
958
|
-
};
|
|
959
|
-
hint?: React.ReactNode;
|
|
960
|
-
label?: React.ReactNode;
|
|
961
|
-
labelAfter?: React.ReactNode;
|
|
962
|
-
tooltip?: React.ReactNode;
|
|
963
|
-
isRadioCheck?: boolean;
|
|
964
|
-
}
|
|
965
|
-
|
|
966
|
-
interface InputFieldProps {
|
|
967
|
-
className?: string;
|
|
968
|
-
control: FieldContextType["control"];
|
|
969
|
-
hint?: React$1.ReactNode;
|
|
970
|
-
label?: React$1.ReactNode;
|
|
971
|
-
labelAfter?: React$1.ReactNode;
|
|
972
|
-
messages?: Array<{
|
|
973
|
-
type: string;
|
|
974
|
-
text: string;
|
|
975
|
-
}>;
|
|
976
|
-
tooltip?: React$1.ReactNode;
|
|
977
|
-
[key: string]: any;
|
|
978
|
-
}
|
|
979
|
-
declare const Field: React$1.FC<InputFieldProps>;
|
|
1291
|
+
declare const Section: React$1.FC<SectionProps>;
|
|
980
1292
|
|
|
981
|
-
|
|
982
|
-
[key: string]: any;
|
|
983
|
-
}
|
|
984
|
-
interface FieldsetProps extends React$1.FieldsetHTMLAttributes<HTMLFieldSetElement> {
|
|
985
|
-
/** Required `<legend />` for fieldset */
|
|
986
|
-
legend: ReactNode;
|
|
987
|
-
/** Additional legend props */
|
|
988
|
-
legendProps?: React$1.HTMLAttributes<HTMLLegendElement>;
|
|
989
|
-
description?: ReactNode;
|
|
990
|
-
messages?: FieldsetMessage[];
|
|
991
|
-
className?: string;
|
|
992
|
-
children?: ReactNode;
|
|
993
|
-
}
|
|
994
|
-
declare const Fieldset: React$1.FC<FieldsetProps>;
|
|
1293
|
+
declare const Skeleton: React$1.FC<React$1.HTMLAttributes<HTMLSpanElement>>;
|
|
995
1294
|
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
/** Html id attribute. Generated automatically if omitted. */
|
|
999
|
-
id?: string;
|
|
1000
|
-
/** Disabled state. */
|
|
1001
|
-
isDisabled?: boolean;
|
|
1002
|
-
/** Invalid state */
|
|
1003
|
-
isInvalid?: boolean;
|
|
1004
|
-
/** Input name. */
|
|
1005
|
-
name?: string;
|
|
1006
|
-
/** Size of element. */
|
|
1007
|
-
size?: FileSize;
|
|
1008
|
-
className?: string;
|
|
1295
|
+
interface SkipLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
1296
|
+
href?: string;
|
|
1009
1297
|
}
|
|
1010
|
-
declare const
|
|
1298
|
+
declare const SkipLink: React$1.FC<SkipLinkProps>;
|
|
1011
1299
|
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
}
|
|
1016
|
-
interface GroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
1017
|
-
control: ControlShape;
|
|
1018
|
-
addonPrefix?: ReactNode | ReactNode[];
|
|
1019
|
-
size?: "large";
|
|
1020
|
-
addonSuffix?: ReactNode | ReactNode[];
|
|
1300
|
+
type SocialName = "x" | "facebook-2" | "linkedin-2" | "instagram" | "pinterest" | "snapchat" | "tiktok" | "whatsapp" | "youtube" | "email";
|
|
1301
|
+
type CommonProps$1 = {
|
|
1302
|
+
name: SocialName;
|
|
1021
1303
|
className?: string;
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1304
|
+
};
|
|
1305
|
+
type ButtonProps$1 = CommonProps$1 & Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "type" | keyof CommonProps$1>;
|
|
1306
|
+
type LinkProps = CommonProps$1 & Omit<React$1.AnchorHTMLAttributes<HTMLAnchorElement>, keyof CommonProps$1> & {
|
|
1307
|
+
href: string;
|
|
1308
|
+
};
|
|
1309
|
+
type SocialButtonProps = ButtonProps$1 | LinkProps;
|
|
1310
|
+
declare const SocialButton: React$1.ForwardRefExoticComponent<SocialButtonProps & React$1.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
1026
1311
|
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1312
|
+
declare const showTitlesFromOptions: readonly ["md", "lg", "xl"];
|
|
1313
|
+
type ShowTitlesFrom = (typeof showTitlesFromOptions)[number];
|
|
1314
|
+
interface StepbarStep {
|
|
1315
|
+
href?: string;
|
|
1316
|
+
isCurrent?: boolean;
|
|
1317
|
+
title: React$1.ReactNode;
|
|
1030
1318
|
}
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1319
|
+
interface StepbarProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
1320
|
+
/** Arial label of nav element */
|
|
1321
|
+
label?: string;
|
|
1322
|
+
/** Titles of non-current steps are visible from this breakpoint */
|
|
1323
|
+
showTitlesFrom?: ShowTitlesFrom;
|
|
1324
|
+
/** Array of step objects */
|
|
1325
|
+
steps: StepbarStep[];
|
|
1037
1326
|
}
|
|
1038
|
-
declare const
|
|
1327
|
+
declare const Stepbar: React$1.FC<StepbarProps>;
|
|
1039
1328
|
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
type?: MessageType;
|
|
1044
|
-
/** Additional CSS classes */
|
|
1045
|
-
className?: string;
|
|
1046
|
-
/** Message content */
|
|
1329
|
+
interface StickerProps {
|
|
1330
|
+
color?: "black" | "orange";
|
|
1331
|
+
size?: "small";
|
|
1047
1332
|
children?: React$1.ReactNode;
|
|
1048
|
-
}
|
|
1049
|
-
declare const Message: React$1.FC<MessageProps>;
|
|
1050
|
-
|
|
1051
|
-
type RadioSize = "default" | "large";
|
|
1052
|
-
interface RadioProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
1053
|
-
/** Html id attribute */
|
|
1054
|
-
id: string;
|
|
1055
|
-
/** Checked state. */
|
|
1056
|
-
isChecked?: boolean;
|
|
1057
|
-
/** Disabled state. */
|
|
1058
|
-
isDisabled?: boolean;
|
|
1059
|
-
/** Invalid state */
|
|
1060
|
-
isInvalid?: boolean;
|
|
1061
|
-
/** Html name attribute. */
|
|
1062
|
-
name: string;
|
|
1063
|
-
/** Size of element. */
|
|
1064
|
-
size?: RadioSize;
|
|
1065
|
-
/** HTML value. Uses id when not set. */
|
|
1066
|
-
value?: string;
|
|
1067
1333
|
className?: string;
|
|
1334
|
+
[key: string]: any;
|
|
1068
1335
|
}
|
|
1069
|
-
declare const
|
|
1336
|
+
declare const Sticker: React$1.FC<StickerProps>;
|
|
1070
1337
|
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
format?: (value: number) => string;
|
|
1075
|
-
handleAttributes?: Array<Record<string, any>>;
|
|
1076
|
-
pips?: {
|
|
1077
|
-
mode?: "positions" | "count" | "values";
|
|
1078
|
-
filter?: (value: number) => boolean;
|
|
1079
|
-
format?: (value: number) => string;
|
|
1080
|
-
values?: number[] | number;
|
|
1081
|
-
density?: number;
|
|
1082
|
-
};
|
|
1083
|
-
range: {
|
|
1084
|
-
min: number | number[];
|
|
1085
|
-
max: number | number[];
|
|
1086
|
-
};
|
|
1087
|
-
start: number[];
|
|
1338
|
+
interface CellValue {
|
|
1339
|
+
value: React$1.ReactNode;
|
|
1340
|
+
rawValue?: number | string;
|
|
1088
1341
|
[key: string]: any;
|
|
1089
1342
|
}
|
|
1090
|
-
interface
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
/** render data-rangeslider attribute and initialize RangeSlider.static.js */
|
|
1098
|
-
hasDataAttr?: boolean;
|
|
1099
|
-
/** element id. required by RangeSlider.static.js and generated automatically in React environment. */
|
|
1100
|
-
id?: string;
|
|
1101
|
-
/** Invalid state */
|
|
1102
|
-
isInvalid?: boolean;
|
|
1103
|
-
/** width of the element */
|
|
1104
|
-
width?: RangeSliderWidth;
|
|
1105
|
-
/** Additional CSS classes */
|
|
1106
|
-
className?: string;
|
|
1343
|
+
interface TableHeader {
|
|
1344
|
+
key: string;
|
|
1345
|
+
label: React$1.ReactNode;
|
|
1346
|
+
isSortable?: boolean;
|
|
1347
|
+
sort?: "none" | "ascending" | "descending";
|
|
1348
|
+
cellProps?: React$1.HTMLAttributes<HTMLTableCellElement>;
|
|
1349
|
+
headCellProps?: React$1.HTMLAttributes<HTMLTableCellElement>;
|
|
1107
1350
|
}
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
value: string;
|
|
1113
|
-
} | string;
|
|
1114
|
-
type SelectSize = "default" | "large";
|
|
1115
|
-
type SelectWidth = "default" | "12ch" | "shrink" | "fullwidth";
|
|
1116
|
-
interface SelectProps extends Omit<React$1.SelectHTMLAttributes<HTMLSelectElement>, "size"> {
|
|
1117
|
-
/** Forwarded DOM element ref. */
|
|
1118
|
-
elemRef?: React$1.Ref<HTMLSelectElement>;
|
|
1119
|
-
/** Html id attribute. */
|
|
1351
|
+
interface TableRow {
|
|
1352
|
+
[key: string]: React$1.ReactNode | CellValue | TableRow[] | boolean | undefined;
|
|
1353
|
+
expand?: TableRow[];
|
|
1354
|
+
isExpanded?: boolean;
|
|
1120
1355
|
id?: string;
|
|
1121
|
-
/** Disabled state. */
|
|
1122
|
-
isDisabled?: boolean;
|
|
1123
|
-
/** Invalid state. */
|
|
1124
|
-
isInvalid?: boolean;
|
|
1125
|
-
/** Html name attribute. */
|
|
1126
|
-
name?: string;
|
|
1127
|
-
/** Select option can be specified via children or as options array */
|
|
1128
|
-
options?: SelectOption[];
|
|
1129
|
-
/** Size of element. */
|
|
1130
|
-
size?: SelectSize;
|
|
1131
|
-
/** Select value. */
|
|
1132
|
-
value?: string | string[];
|
|
1133
|
-
/** Element width */
|
|
1134
|
-
width?: SelectWidth;
|
|
1135
|
-
/** Additional CSS classes */
|
|
1136
|
-
className?: string;
|
|
1137
|
-
/** Child elements */
|
|
1138
|
-
children?: React$1.ReactNode;
|
|
1139
|
-
}
|
|
1140
|
-
declare const Select: React$1.FC<SelectProps>;
|
|
1141
|
-
|
|
1142
|
-
type TextAreaSize = "default" | "large";
|
|
1143
|
-
type TextAreaWidth = "default" | "fullwidth";
|
|
1144
|
-
interface TextAreaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
1145
|
-
/** Html id attribute. */
|
|
1146
|
-
id: string;
|
|
1147
|
-
/** Disabled state. */
|
|
1148
|
-
isDisabled?: boolean;
|
|
1149
|
-
/** Invalid state */
|
|
1150
|
-
isInvalid?: boolean;
|
|
1151
|
-
/** Readonly state. */
|
|
1152
|
-
isReadonly?: boolean;
|
|
1153
|
-
/** Valid state */
|
|
1154
|
-
isValid?: boolean;
|
|
1155
|
-
/** Html name attribute. If not present, id is used.*/
|
|
1156
|
-
name?: string;
|
|
1157
|
-
/** Placeholder text */
|
|
1158
|
-
placeholder?: string;
|
|
1159
|
-
/** Size of element. */
|
|
1160
|
-
size?: TextAreaSize;
|
|
1161
|
-
/** Input width */
|
|
1162
|
-
width?: TextAreaWidth;
|
|
1163
|
-
/** Additional CSS classes */
|
|
1164
|
-
className?: string;
|
|
1165
|
-
/** Child elements */
|
|
1166
|
-
children?: React$1.ReactNode;
|
|
1167
|
-
}
|
|
1168
|
-
declare const TextArea: React$1.FC<TextAreaProps>;
|
|
1169
|
-
|
|
1170
|
-
type TextInputSize = "default" | "large";
|
|
1171
|
-
type TextInputWidth = "3ch" | "8ch" | "12ch" | "default" | "fullwidth";
|
|
1172
|
-
type TextInputType = "email" | "hidden" | "password" | "search" | "tel" | "number" | "text" | "url";
|
|
1173
|
-
type TextInputSearchIcon = "none" | "transient" | "persistent";
|
|
1174
|
-
interface TextInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
1175
|
-
/** Input html type. */
|
|
1176
|
-
htmlType?: TextInputType;
|
|
1177
|
-
/** Html id attribute. */
|
|
1178
|
-
id: string;
|
|
1179
|
-
/** Disabled state. */
|
|
1180
|
-
isDisabled?: boolean;
|
|
1181
|
-
/** Invalid state */
|
|
1182
|
-
isInvalid?: boolean;
|
|
1183
|
-
/** Readonly state. */
|
|
1184
|
-
isReadonly?: boolean;
|
|
1185
|
-
/** Valid state */
|
|
1186
|
-
isValid?: boolean;
|
|
1187
|
-
/** Html name attribute. If not present, id is used.*/
|
|
1188
|
-
name?: string;
|
|
1189
|
-
/** Placeholder text */
|
|
1190
|
-
placeholder?: string;
|
|
1191
|
-
/** Size of element. */
|
|
1192
|
-
size?: TextInputSize;
|
|
1193
|
-
/** Input value. */
|
|
1194
|
-
value?: string;
|
|
1195
|
-
/** Input width */
|
|
1196
|
-
width?: TextInputWidth;
|
|
1197
|
-
/** Additional CSS classes */
|
|
1198
|
-
className?: string;
|
|
1199
|
-
/** Search icon mode. `transient` shows icon only on empty unfocused input, `persistent` keeps it visible with placeholder. */
|
|
1200
|
-
searchIcon?: TextInputSearchIcon;
|
|
1201
|
-
}
|
|
1202
|
-
declare const TextInput: React$1.ForwardRefExoticComponent<TextInputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
1203
|
-
|
|
1204
|
-
interface InputStepperConfig {
|
|
1205
|
-
min?: number;
|
|
1206
|
-
max?: number;
|
|
1207
|
-
defaultValue?: number;
|
|
1208
|
-
nonEditableInput?: boolean;
|
|
1209
1356
|
}
|
|
1210
|
-
interface
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
inputClassName?: string;
|
|
1214
|
-
isDisabled?: boolean;
|
|
1215
|
-
/** Invalid state */
|
|
1216
|
-
isInvalid?: boolean;
|
|
1217
|
-
name?: string;
|
|
1218
|
-
nonEditableInput?: boolean;
|
|
1219
|
-
className?: string;
|
|
1220
|
-
[key: string]: any;
|
|
1357
|
+
interface ExpandableRowsCaptions {
|
|
1358
|
+
header: string;
|
|
1359
|
+
emptyRow: string;
|
|
1221
1360
|
}
|
|
1222
|
-
declare const InputStepper: React$1.FC<InputStepperProps>;
|
|
1223
|
-
|
|
1224
|
-
declare const Skeleton: React$1.FC<React$1.HTMLAttributes<HTMLSpanElement>>;
|
|
1225
1361
|
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1362
|
+
interface TableProps extends React$1.TableHTMLAttributes<HTMLTableElement> {
|
|
1363
|
+
/** Caption helps users with screen readers to find a table and understand what it's about and decide if they want to read it. */
|
|
1364
|
+
caption?: React$1.ReactNode;
|
|
1365
|
+
expandableRowsCaptions?: ExpandableRowsCaptions;
|
|
1366
|
+
/** Foot element for table */
|
|
1367
|
+
footers?: TableRow[];
|
|
1368
|
+
/** Labels for headers in the table. Value of the key in headers match with the key name in rows */
|
|
1369
|
+
headers: TableHeader[];
|
|
1370
|
+
/** Compact table only takes spaced needed to display its content */
|
|
1371
|
+
isCompact?: boolean;
|
|
1372
|
+
/** Enable responsive card layout below md breakpoint for better accessibility */
|
|
1373
|
+
isResponsive?: boolean;
|
|
1374
|
+
/** If table has horizontal scrollbar */
|
|
1375
|
+
isScrollable?: boolean;
|
|
1376
|
+
/** Different colors for even and odd rows. */
|
|
1377
|
+
isStriped?: boolean;
|
|
1378
|
+
/** rows to print out in the table. */
|
|
1379
|
+
rows: TableRow[];
|
|
1229
1380
|
className?: string;
|
|
1230
|
-
children?: ReactNode;
|
|
1231
|
-
color?: PillColor;
|
|
1232
|
-
size?: "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
1233
1381
|
}
|
|
1234
|
-
declare const
|
|
1382
|
+
declare const Table: React$1.FC<TableProps>;
|
|
1235
1383
|
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1384
|
+
interface TabProps extends React.HTMLAttributes<HTMLButtonElement | HTMLAnchorElement> {
|
|
1385
|
+
/** Id of the tabpanel this tab controls. */
|
|
1386
|
+
controls?: string;
|
|
1239
1387
|
href?: string;
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
/** Titles of non-current steps are visible from this breakpoint */
|
|
1247
|
-
showTitlesFrom?: ShowTitlesFrom;
|
|
1248
|
-
/** Array of step objects */
|
|
1249
|
-
steps: StepbarStep[];
|
|
1388
|
+
/** Active state */
|
|
1389
|
+
isActive?: boolean;
|
|
1390
|
+
/** Disabled state. */
|
|
1391
|
+
isDisabled?: boolean;
|
|
1392
|
+
className?: string;
|
|
1393
|
+
children?: React.ReactNode;
|
|
1250
1394
|
}
|
|
1251
|
-
declare const
|
|
1395
|
+
declare const Tab: React.FC<TabProps>;
|
|
1252
1396
|
|
|
1253
1397
|
interface TabPanelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1254
1398
|
/** Optional href for the tab */
|
|
@@ -1290,64 +1434,51 @@ interface TabsProps extends React$1.HTMLAttributes<HTMLUListElement> {
|
|
|
1290
1434
|
}
|
|
1291
1435
|
declare const Tabs: React$1.FC<TabsProps>;
|
|
1292
1436
|
|
|
1293
|
-
|
|
1294
|
-
/** Id of the tabpanel this tab controls. */
|
|
1295
|
-
controls?: string;
|
|
1296
|
-
href?: string;
|
|
1297
|
-
/** Active state */
|
|
1298
|
-
isActive?: boolean;
|
|
1299
|
-
/** Disabled state. */
|
|
1300
|
-
isDisabled?: boolean;
|
|
1437
|
+
type TagButtonProps = {
|
|
1301
1438
|
className?: string;
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1439
|
+
onClick?: React$1.MouseEventHandler<HTMLButtonElement>;
|
|
1440
|
+
children?: React$1.ReactNode;
|
|
1441
|
+
isDisabled?: boolean;
|
|
1442
|
+
ariaLabel?: string;
|
|
1443
|
+
iconName: string;
|
|
1444
|
+
size?: string;
|
|
1445
|
+
};
|
|
1446
|
+
declare const TagButton: React$1.ForwardRefExoticComponent<TagButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1305
1447
|
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
cellProps?: React$1.HTMLAttributes<HTMLTableCellElement>;
|
|
1317
|
-
headCellProps?: React$1.HTMLAttributes<HTMLTableCellElement>;
|
|
1318
|
-
}
|
|
1319
|
-
interface TableRow {
|
|
1320
|
-
[key: string]: React$1.ReactNode | CellValue | TableRow[] | boolean | undefined;
|
|
1321
|
-
expand?: TableRow[];
|
|
1322
|
-
isExpanded?: boolean;
|
|
1323
|
-
id?: string;
|
|
1324
|
-
}
|
|
1325
|
-
interface ExpandableRowsCaptions {
|
|
1326
|
-
header: string;
|
|
1327
|
-
emptyRow: string;
|
|
1448
|
+
declare const colors: readonly ["black", "orange", "yellow", "green", "blue", "success", "info", "warning", "danger", "transparent"];
|
|
1449
|
+
type TagColor = (typeof colors)[number];
|
|
1450
|
+
type TagSize = "small" | "large";
|
|
1451
|
+
interface CommonProps {
|
|
1452
|
+
color?: TagColor;
|
|
1453
|
+
size?: TagSize;
|
|
1454
|
+
isDisabled?: boolean;
|
|
1455
|
+
className?: string;
|
|
1456
|
+
children?: React$1.ReactNode;
|
|
1457
|
+
actionButton?: React$1.ReactElement<TagButtonProps>;
|
|
1328
1458
|
}
|
|
1459
|
+
type SpanProps = CommonProps & Omit<React$1.HTMLAttributes<HTMLSpanElement>, keyof CommonProps> & {
|
|
1460
|
+
onClick?: undefined;
|
|
1461
|
+
href?: undefined;
|
|
1462
|
+
};
|
|
1463
|
+
type ButtonProps = CommonProps & Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, keyof CommonProps> & {
|
|
1464
|
+
onClick: React$1.MouseEventHandler<HTMLButtonElement>;
|
|
1465
|
+
href?: undefined;
|
|
1466
|
+
};
|
|
1467
|
+
type AnchorProps = CommonProps & Omit<React$1.AnchorHTMLAttributes<HTMLAnchorElement>, keyof CommonProps> & {
|
|
1468
|
+
href: string;
|
|
1469
|
+
onClick?: undefined;
|
|
1470
|
+
};
|
|
1471
|
+
type TagProps = SpanProps | ButtonProps | AnchorProps;
|
|
1472
|
+
declare const Tag: React$1.ForwardRefExoticComponent<TagProps & React$1.RefAttributes<HTMLElement>>;
|
|
1329
1473
|
|
|
1330
|
-
interface
|
|
1331
|
-
/** Caption helps users with screen readers to find a table and understand what it's about and decide if they want to read it. */
|
|
1332
|
-
caption?: React$1.ReactNode;
|
|
1333
|
-
expandableRowsCaptions?: ExpandableRowsCaptions;
|
|
1334
|
-
/** Foot element for table */
|
|
1335
|
-
footers?: TableRow[];
|
|
1336
|
-
/** Labels for headers in the table. Value of the key in headers match with the key name in rows */
|
|
1337
|
-
headers: TableHeader[];
|
|
1338
|
-
/** Compact table only takes spaced needed to display its content */
|
|
1339
|
-
isCompact?: boolean;
|
|
1340
|
-
/** Enable responsive card layout below md breakpoint for better accessibility */
|
|
1341
|
-
isResponsive?: boolean;
|
|
1342
|
-
/** If table has horizontal scrollbar */
|
|
1343
|
-
isScrollable?: boolean;
|
|
1344
|
-
/** Different colors for even and odd rows. */
|
|
1345
|
-
isStriped?: boolean;
|
|
1346
|
-
/** rows to print out in the table. */
|
|
1347
|
-
rows: TableRow[];
|
|
1474
|
+
interface TestimonialProps {
|
|
1348
1475
|
className?: string;
|
|
1476
|
+
children?: React$1.ReactNode;
|
|
1477
|
+
color?: "default" | "orange";
|
|
1478
|
+
isDiv?: boolean;
|
|
1479
|
+
[key: string]: any;
|
|
1349
1480
|
}
|
|
1350
|
-
declare const
|
|
1481
|
+
declare const Testimonial: React$1.FC<TestimonialProps>;
|
|
1351
1482
|
|
|
1352
1483
|
declare const tileColors: readonly ["surface-primary", "surface-subtle", "surface-contrast"];
|
|
1353
1484
|
type TileColor = (typeof tileColors)[number];
|
|
@@ -1400,135 +1531,4 @@ type InfoTooltipProps = Omit<TooltipProps, "onAbort"> & Omit<React$1.HTMLAttribu
|
|
|
1400
1531
|
};
|
|
1401
1532
|
declare const InfoTooltip: React$1.FC<InfoTooltipProps>;
|
|
1402
1533
|
|
|
1403
|
-
interface CoverProps {
|
|
1404
|
-
/** Background image source. URL string or an object of breakpoint: url pairs
|
|
1405
|
-
*
|
|
1406
|
-
* ```
|
|
1407
|
-
{
|
|
1408
|
-
default: string, // default image to load (fallback)
|
|
1409
|
-
xxxl: string, // different image for each breakpoint (optional). while these are mobile first breakpoints, they MUST be ordered from largest to smallest
|
|
1410
|
-
xxl: string,
|
|
1411
|
-
xl: string,
|
|
1412
|
-
lg: string,
|
|
1413
|
-
md: string,
|
|
1414
|
-
sm: string,
|
|
1415
|
-
xs: string,
|
|
1416
|
-
}
|
|
1417
|
-
* ```
|
|
1418
|
-
*/
|
|
1419
|
-
bgSrc: string | {
|
|
1420
|
-
default: string;
|
|
1421
|
-
xs?: string;
|
|
1422
|
-
sm?: string;
|
|
1423
|
-
md?: string;
|
|
1424
|
-
lg?: string;
|
|
1425
|
-
xl?: string;
|
|
1426
|
-
xxl?: string;
|
|
1427
|
-
xxxl?: string;
|
|
1428
|
-
};
|
|
1429
|
-
/** Set vertical position of image */
|
|
1430
|
-
bgPosition?: "top" | "center" | "bottom";
|
|
1431
|
-
/** Applies custom classNames to overlay content */
|
|
1432
|
-
contentClass?: string;
|
|
1433
|
-
/** Cover size */
|
|
1434
|
-
size?: "small" | "medium" | "large" | "xlarge";
|
|
1435
|
-
/** Additional className for the cover container */
|
|
1436
|
-
className?: string;
|
|
1437
|
-
/** Children content */
|
|
1438
|
-
children?: React$1.ReactNode;
|
|
1439
|
-
/** Additional props passed to Image component */
|
|
1440
|
-
[key: string]: any;
|
|
1441
|
-
}
|
|
1442
|
-
declare const Cover: React$1.FC<CoverProps>;
|
|
1443
|
-
|
|
1444
|
-
interface TestimonialProps {
|
|
1445
|
-
className?: string;
|
|
1446
|
-
children?: React$1.ReactNode;
|
|
1447
|
-
color?: 'default' | 'orange';
|
|
1448
|
-
isDiv?: boolean;
|
|
1449
|
-
[key: string]: any;
|
|
1450
|
-
}
|
|
1451
|
-
declare const Testimonial: React$1.FC<TestimonialProps>;
|
|
1452
|
-
|
|
1453
|
-
type HeroTextSize = "medium" | "large";
|
|
1454
|
-
type StickerColor = "black" | "orange";
|
|
1455
|
-
interface HeroImageSrc {
|
|
1456
|
-
src: string;
|
|
1457
|
-
srcSet?: string;
|
|
1458
|
-
}
|
|
1459
|
-
interface HeroImageResponsive {
|
|
1460
|
-
default: string;
|
|
1461
|
-
sm?: string;
|
|
1462
|
-
lg?: string;
|
|
1463
|
-
xl?: string;
|
|
1464
|
-
xxl?: string;
|
|
1465
|
-
[key: string]: string | undefined;
|
|
1466
|
-
}
|
|
1467
|
-
type HeroImage = HeroImageSrc | HeroImageResponsive;
|
|
1468
|
-
interface HeroPriceObject {
|
|
1469
|
-
amount: number;
|
|
1470
|
-
prefix?: React$1.ReactNode;
|
|
1471
|
-
suffix?: React$1.ReactNode;
|
|
1472
|
-
}
|
|
1473
|
-
type HeroPrice = string | HeroPriceObject;
|
|
1474
|
-
interface HeroButtonProps {
|
|
1475
|
-
children: React$1.ReactNode;
|
|
1476
|
-
[key: string]: any;
|
|
1477
|
-
}
|
|
1478
|
-
interface HeroStickerProps {
|
|
1479
|
-
color?: StickerColor;
|
|
1480
|
-
children?: React$1.ReactNode;
|
|
1481
|
-
className?: string;
|
|
1482
|
-
}
|
|
1483
|
-
interface HeroProps {
|
|
1484
|
-
/** Action button props */
|
|
1485
|
-
button?: HeroButtonProps;
|
|
1486
|
-
/** Main text */
|
|
1487
|
-
description?: React$1.ReactNode;
|
|
1488
|
-
hasFullwidthImage?: boolean;
|
|
1489
|
-
/** Gradient overlay ensures proper text readability */
|
|
1490
|
-
hasGradientOverlay?: boolean;
|
|
1491
|
-
/** Use svg illustrations, png for product images and jpg for photos */
|
|
1492
|
-
image?: HeroImage;
|
|
1493
|
-
price?: HeroPrice;
|
|
1494
|
-
sticker?: HeroStickerProps;
|
|
1495
|
-
/** Adjust title and description size. Medium sets display-2 title and 18px text, large uses display-1 title and 20px text. */
|
|
1496
|
-
textSize?: HeroTextSize;
|
|
1497
|
-
/** Hero title */
|
|
1498
|
-
title: string;
|
|
1499
|
-
}
|
|
1500
|
-
declare const Hero: React$1.FC<HeroProps>;
|
|
1501
|
-
|
|
1502
|
-
interface IconListItem {
|
|
1503
|
-
icon: string;
|
|
1504
|
-
content: React$1.ReactNode;
|
|
1505
|
-
tooltip?: React$1.ReactNode;
|
|
1506
|
-
}
|
|
1507
|
-
interface IconListProps {
|
|
1508
|
-
items?: IconListItem[];
|
|
1509
|
-
className?: string;
|
|
1510
|
-
[key: string]: any;
|
|
1511
|
-
}
|
|
1512
|
-
declare const IconList: React$1.FC<IconListProps>;
|
|
1513
|
-
|
|
1514
|
-
interface ItemProps {
|
|
1515
|
-
icon: string;
|
|
1516
|
-
children: React$1.ReactNode;
|
|
1517
|
-
tooltip?: React$1.ReactNode;
|
|
1518
|
-
[key: string]: any;
|
|
1519
|
-
}
|
|
1520
|
-
declare const Item: React$1.FC<ItemProps>;
|
|
1521
|
-
|
|
1522
|
-
type SocialName = "x" | "facebook-2" | "linkedin-2" | "instagram" | "pinterest" | "snapchat" | "tiktok" | "whatsapp" | "youtube" | "email";
|
|
1523
|
-
type CommonProps = {
|
|
1524
|
-
name: SocialName;
|
|
1525
|
-
className?: string;
|
|
1526
|
-
};
|
|
1527
|
-
type ButtonProps = CommonProps & Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "type" | keyof CommonProps>;
|
|
1528
|
-
type LinkProps = CommonProps & Omit<React$1.AnchorHTMLAttributes<HTMLAnchorElement>, keyof CommonProps> & {
|
|
1529
|
-
href: string;
|
|
1530
|
-
};
|
|
1531
|
-
type SocialButtonProps = ButtonProps | LinkProps;
|
|
1532
|
-
declare const SocialButton: React$1.ForwardRefExoticComponent<SocialButtonProps & React$1.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
1533
|
-
|
|
1534
1534
|
export { Accordion, AccordionItem, Alert, AnchorNavigation, Autocomplete, Bar, BarBreak, BarItem, BlockAction, BlockActionControl, BlockActionIndicator, BlockActionOverride, BodyBanner, Breadcrumbs, Button, ButtonFill, ButtonGhost, ButtonPrimary, Buttons, Card, CardProductHeader, CardSection, Carousel, CarouselHero, CarouselHeroItem, CarouselPromotions, CartTable, Checkbox, Container, Controls, Cover, Divider, Dropdown, DropdownDivider, DropdownItem, DropdownToggleButton, Expander, FeatureAccordion, FeatureAccordionItem, Field, Fieldset, File, Gauge, Grid, GridCol, Group, Hero, Hint, Icon, IconButton, IconList, Image, InfoTooltip, InputStepper, Item, Label, Link, List, ListItem, Loader, Megamenu, MegamenuBlog, Message, Modal, ModalBody, ModalCloseButton, ModalProductFooter, ModalProductHeader, ModalTitle, Pagination, Pictogram, Pill, Progress, PromoBanner, PromotionCard, PromotionCardContent, PromotionCardImageWrapper, PromotionCardSection, PromotionCardTitle, Radio, RangeSlider, Section, Select, Skeleton, SkipLink, SocialButton, SpritePathContext, SpritePathProvider, Stepbar, Sticker, Tab, TabPanel, Table, Tabs, Tag, TagButton, Testimonial, TextArea, TextInput, Tile, Tooltip };
|