@dfds-ui/react-components 2.2.0-alpha.c2f773c5 → 2.2.0-alpha.c79adffa
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/accordion/Accordion.d.ts +2 -2
- package/accordion/Accordion.js +47 -65
- package/accordion/AccordionContent.d.ts +1 -2
- package/accordion/AccordionContent.js +5 -12
- package/accordion/AccordionSmall.d.ts +2 -3
- package/accordion/AccordionSmall.js +36 -49
- package/app-bar/AppBar.d.ts +3 -3
- package/app-bar/AppBar.js +38 -50
- package/app-bar/AppBarContext.d.ts +3 -3
- package/app-bar/AppBarContext.js +4 -5
- package/app-bar/AppBarDrawer.d.ts +2 -2
- package/app-bar/AppBarDrawer.js +5 -12
- package/app-bar/AppBarIconButton.d.ts +2 -2
- package/app-bar/AppBarIconButton.js +4 -9
- package/app-bar/AppBarItem.d.ts +4 -4
- package/app-bar/AppBarItem.js +59 -67
- package/app-bar/AppBarListItem.d.ts +12 -11
- package/assertions/banner/Banner.d.ts +3 -3
- package/assertions/banner/Banner.js +50 -62
- package/assertions/banner/BannerAction.d.ts +1 -1
- package/assertions/banner/BannerAction.js +3 -8
- package/assertions/banner/BannerTypography.d.ts +0 -2
- package/assertions/banner/BannerTypography.js +8 -11
- package/assertions/toast/Toast.d.ts +1 -2
- package/assertions/toast/Toast.js +22 -32
- package/assertions/toast/Toaster.d.ts +2 -2
- package/assertions/toast/Toaster.js +28 -33
- package/badge/Badge.d.ts +2 -2
- package/badge/Badge.js +9 -16
- package/button/BadgeIcon.d.ts +3 -3
- package/button/BadgeIcon.js +16 -18
- package/button/BaseButton.d.ts +6 -6
- package/button/BaseButton.js +1 -1
- package/button/Button.d.ts +4 -4
- package/button/Button.js +29 -36
- package/button/IconButton.d.ts +2 -2
- package/button/IconButton.js +13 -19
- package/button/LinkButton.d.ts +2 -2
- package/button/LinkButton.js +4 -9
- package/button/button-style.js +2 -1
- package/button-stack/ButtonStack.d.ts +3 -4
- package/button-stack/ButtonStack.js +20 -28
- package/card/Card.d.ts +2 -3
- package/card/Card.js +30 -44
- package/card/CardActions.js +4 -11
- package/card/CardContent.d.ts +2 -3
- package/card/CardContent.js +9 -19
- package/card/CardMedia.d.ts +3 -4
- package/card/CardMedia.js +7 -15
- package/card/CardPriceTag.d.ts +3 -3
- package/card/CardPriceTag.js +14 -26
- package/card/CardTitle.d.ts +2 -3
- package/card/CardTitle.js +13 -23
- package/chip/Chip.d.ts +5 -5
- package/chip/Chip.js +13 -20
- package/cjs/accordion/Accordion.d.ts +2 -2
- package/cjs/accordion/Accordion.js +71 -80
- package/cjs/accordion/AccordionContent.d.ts +1 -2
- package/cjs/accordion/AccordionContent.js +12 -12
- package/cjs/accordion/AccordionSmall.d.ts +2 -3
- package/cjs/accordion/AccordionSmall.js +49 -54
- package/cjs/accordion/index.js +3 -3
- package/cjs/app-bar/AppBar.d.ts +3 -3
- package/cjs/app-bar/AppBar.js +104 -92
- package/cjs/app-bar/AppBarContext.d.ts +3 -3
- package/cjs/app-bar/AppBarContext.js +19 -8
- package/cjs/app-bar/AppBarDrawer.d.ts +2 -2
- package/cjs/app-bar/AppBarDrawer.js +16 -16
- package/cjs/app-bar/AppBarIconButton.d.ts +2 -2
- package/cjs/app-bar/AppBarIconButton.js +14 -12
- package/cjs/app-bar/AppBarItem.d.ts +4 -4
- package/cjs/app-bar/AppBarItem.js +88 -78
- package/cjs/app-bar/AppBarListItem.d.ts +12 -11
- package/cjs/app-bar/index.js +8 -8
- package/cjs/assertions/banner/Banner.d.ts +3 -3
- package/cjs/assertions/banner/Banner.js +92 -79
- package/cjs/assertions/banner/BannerAction.d.ts +1 -1
- package/cjs/assertions/banner/BannerAction.js +13 -12
- package/cjs/assertions/banner/BannerTypography.d.ts +0 -2
- package/cjs/assertions/banner/BannerTypography.js +11 -11
- package/cjs/assertions/banner/index.js +3 -3
- package/cjs/assertions/index.js +2 -2
- package/cjs/assertions/toast/Toast.d.ts +1 -2
- package/cjs/assertions/toast/Toast.js +35 -36
- package/cjs/assertions/toast/Toaster.d.ts +2 -2
- package/cjs/assertions/toast/Toaster.js +66 -55
- package/cjs/assertions/toast/index.js +4 -4
- package/cjs/badge/Badge.d.ts +2 -2
- package/cjs/badge/Badge.js +23 -21
- package/cjs/badge/index.js +3 -3
- package/cjs/button/BadgeIcon.d.ts +3 -3
- package/cjs/button/BadgeIcon.js +15 -18
- package/cjs/button/BaseButton.d.ts +6 -6
- package/cjs/button/BaseButton.js +1 -1
- package/cjs/button/Button.d.ts +4 -4
- package/cjs/button/Button.js +48 -43
- package/cjs/button/IconButton.d.ts +2 -2
- package/cjs/button/IconButton.js +41 -34
- package/cjs/button/LinkButton.d.ts +2 -2
- package/cjs/button/LinkButton.js +5 -6
- package/cjs/button/button-style.js +2 -1
- package/cjs/button/index.js +8 -8
- package/cjs/button-stack/ButtonStack.d.ts +3 -4
- package/cjs/button-stack/ButtonStack.js +30 -29
- package/cjs/button-stack/index.js +1 -1
- package/cjs/card/Card.d.ts +2 -3
- package/cjs/card/Card.js +65 -61
- package/cjs/card/CardActions.js +12 -9
- package/cjs/card/CardContent.d.ts +2 -3
- package/cjs/card/CardContent.js +17 -18
- package/cjs/card/CardMedia.d.ts +3 -4
- package/cjs/card/CardMedia.js +16 -16
- package/cjs/card/CardPriceTag.d.ts +3 -3
- package/cjs/card/CardPriceTag.js +24 -27
- package/cjs/card/CardTitle.d.ts +2 -3
- package/cjs/card/CardTitle.js +21 -24
- package/cjs/card/index.js +6 -6
- package/cjs/chip/Chip.d.ts +5 -5
- package/cjs/chip/Chip.js +45 -32
- package/cjs/chip/index.js +3 -3
- package/cjs/common/LockBodyScroll.d.ts +2 -2
- package/cjs/common/LockBodyScroll.js +15 -18
- package/cjs/common/arrow.d.ts +1 -1
- package/cjs/common/arrow.js +4 -2
- package/cjs/common/emotionCloneElement.d.ts +1 -0
- package/cjs/common/emotionCloneElement.js +8 -5
- package/cjs/common/intent.d.ts +1 -1
- package/cjs/common/polymorphic.d.ts +5 -5
- package/cjs/common/polymorphic.js +8 -12
- package/cjs/common/use-media.js +10 -1
- package/cjs/common/useOnClickOutside.d.ts +2 -1
- package/cjs/counter/Counter.d.ts +1 -1
- package/cjs/counter/Counter.js +62 -56
- package/cjs/counter/PluralCounter.d.ts +1 -1
- package/cjs/counter/PluralCounter.js +32 -22
- package/cjs/counter/index.js +2 -2
- package/cjs/data-table/DataTable.d.ts +2 -3
- package/cjs/data-table/DataTable.js +57 -55
- package/cjs/data-table/index.js +1 -1
- package/cjs/date-range-picker/DatePickerDefaultStyles.d.ts +2 -0
- package/cjs/date-range-picker/DatePickerDefaultStyles.js +19 -0
- package/cjs/date-range-picker/DatePickerDfdsStyles.d.ts +2 -0
- package/cjs/date-range-picker/DatePickerDfdsStyles.js +10 -0
- package/cjs/date-range-picker/DateRangePicker.d.ts +5 -5
- package/cjs/date-range-picker/DateRangePicker.js +252 -295
- package/cjs/date-range-picker/index.js +1 -1
- package/cjs/divider/Divider.d.ts +3 -3
- package/cjs/divider/Divider.js +13 -14
- package/cjs/divider/index.js +1 -1
- package/cjs/drawer/Drawer.d.ts +4 -4
- package/cjs/drawer/Drawer.js +20 -18
- package/cjs/drawer/index.js +1 -1
- package/cjs/dropdown-menu/Dropdown.d.ts +3 -3
- package/cjs/dropdown-menu/Dropdown.js +59 -50
- package/cjs/dropdown-menu/DropdownContext.d.ts +4 -4
- package/cjs/dropdown-menu/DropdownContext.js +5 -6
- package/cjs/dropdown-menu/MenuCheckbox.d.ts +1 -1
- package/cjs/dropdown-menu/MenuCheckbox.js +23 -26
- package/cjs/dropdown-menu/MenuItem.d.ts +1 -1
- package/cjs/dropdown-menu/MenuItem.js +66 -52
- package/cjs/dropdown-menu/MenuTitle.d.ts +1 -1
- package/cjs/dropdown-menu/MenuTitle.js +14 -18
- package/cjs/dropdown-menu/index.js +6 -6
- package/cjs/elevation/index.d.ts +1 -1
- package/cjs/elevation/index.js +6 -3
- package/cjs/flexbox/FlexBox.d.ts +5 -5
- package/cjs/flexbox/FlexBox.js +13 -5
- package/cjs/flexbox/index.js +1 -1
- package/cjs/footer/Footer.d.ts +2 -2
- package/cjs/footer/Footer.js +7 -12
- package/cjs/footer/index.js +1 -1
- package/cjs/forms/assistive-text/AssistiveText.d.ts +4 -3
- package/cjs/forms/asterisk/Asterisk.d.ts +2 -2
- package/cjs/forms/asterisk/Asterisk.js +2 -4
- package/cjs/forms/checkbox/Checkbox.d.ts +5 -5
- package/cjs/forms/checkbox/Checkbox.js +54 -54
- package/cjs/forms/checkbox/ExampleControlComponent.d.ts +1 -2
- package/cjs/forms/checkbox/ExampleControlComponent.js +22 -12
- package/cjs/forms/checkbox/index.js +1 -1
- package/cjs/forms/email-field/EmailField.d.ts +2 -2
- package/cjs/forms/email-field/EmailField.js +5 -6
- package/cjs/forms/error-text/ErrorText.d.ts +4 -3
- package/cjs/forms/error-text/ErrorText.js +4 -2
- package/cjs/forms/field/Field.d.ts +1 -2
- package/cjs/forms/field/Field.js +10 -12
- package/cjs/forms/index.d.ts +3 -3
- package/cjs/forms/index.js +18 -18
- package/cjs/forms/input/Input.d.ts +3 -3
- package/cjs/forms/input/Input.js +50 -43
- package/cjs/forms/input/InputComposition.d.ts +12 -12
- package/cjs/forms/input/InputComposition.js +54 -58
- package/cjs/forms/label/Label.d.ts +1 -2
- package/cjs/forms/label/Label.js +14 -14
- package/cjs/forms/number-field/NumberField.d.ts +2 -2
- package/cjs/forms/number-field/NumberField.js +6 -6
- package/cjs/forms/password-field/PasswordField.d.ts +1 -1
- package/cjs/forms/password-field/PasswordField.js +22 -13
- package/cjs/forms/radio/Radio.d.ts +4 -4
- package/cjs/forms/radio/Radio.js +30 -27
- package/cjs/forms/reactselect/ReactSelect.d.ts +15 -15
- package/cjs/forms/reactselect/ReactSelect.js +97 -100
- package/cjs/forms/searchable-select/AsyncSearchableSelect.d.ts +2 -2
- package/cjs/forms/searchable-select/AsyncSearchableSelect.js +66 -72
- package/cjs/forms/select/Select.d.ts +4 -4
- package/cjs/forms/select/Select.js +45 -42
- package/cjs/forms/select-field/SelectField.d.ts +3 -3
- package/cjs/forms/select-field/SelectField.js +48 -48
- package/cjs/forms/switch/Switch.d.ts +2 -2
- package/cjs/forms/switch/Switch.js +51 -51
- package/cjs/forms/tel-field/TelField.d.ts +2 -2
- package/cjs/forms/tel-field/TelField.js +5 -6
- package/cjs/forms/text-field/TextField.d.ts +4 -4
- package/cjs/forms/text-field/TextField.js +58 -57
- package/cjs/global-styles/GlobalStyles.d.ts +3 -3
- package/cjs/global-styles/GlobalStyles.js +2 -3
- package/cjs/global-styles/ResetStyles.d.ts +2 -2
- package/cjs/global-styles/ResetStyles.js +3 -3
- package/cjs/global-styles/sanitize.js +2 -1
- package/cjs/grid/Column.d.ts +1 -1
- package/cjs/grid/Column.js +15 -14
- package/cjs/grid/Container.d.ts +2 -2
- package/cjs/grid/Container.js +38 -42
- package/cjs/grid/index.js +2 -2
- package/cjs/hero/Hero.d.ts +2 -2
- package/cjs/hero/Hero.js +24 -41
- package/cjs/hero/index.js +1 -1
- package/cjs/hero/stripes.d.ts +2 -2
- package/cjs/hero/stripes.js +160 -176
- package/cjs/ie-banner/IEBanner.d.ts +1 -2
- package/cjs/ie-banner/IEBanner.js +25 -16
- package/cjs/ie-banner/index.js +1 -1
- package/cjs/index.js +45 -45
- package/cjs/layout/LayoutLegacy.d.ts +2 -2
- package/cjs/layout/LayoutLegacy.js +1 -2
- package/cjs/lists/FeatureList.d.ts +9 -7
- package/cjs/lists/FeatureList.js +19 -21
- package/cjs/lists/ListAddon.d.ts +2 -2
- package/cjs/lists/ListAddon.js +14 -15
- package/cjs/lists/ListDivider.d.ts +3 -3
- package/cjs/lists/ListDivider.js +13 -11
- package/cjs/lists/ListIcon.d.ts +3 -3
- package/cjs/lists/ListIcon.js +19 -17
- package/cjs/lists/ListItem.d.ts +2 -2
- package/cjs/lists/ListItem.js +28 -21
- package/cjs/lists/ListText.d.ts +4 -4
- package/cjs/lists/ListText.js +15 -13
- package/cjs/lists/ListTextGroup.d.ts +2 -2
- package/cjs/lists/ListTextGroup.js +17 -14
- package/cjs/lists/ListTitle.d.ts +2 -2
- package/cjs/lists/ListTitle.js +13 -10
- package/cjs/lists/index.js +8 -8
- package/cjs/loader/DfdsLoader.d.ts +1 -1
- package/cjs/loader/DfdsLoader.js +22 -28
- package/cjs/loader/Loader.d.ts +3 -3
- package/cjs/loader/Loader.js +3 -9
- package/cjs/loader/index.js +2 -2
- package/cjs/localization/LocaleFlag.d.ts +3 -3
- package/cjs/localization/LocaleFlag.js +16 -13
- package/cjs/localization/index.js +2 -2
- package/cjs/localization/locales.d.ts +2 -2
- package/cjs/logo/Logo.d.ts +3 -3
- package/cjs/logo/Logo.js +14 -16
- package/cjs/logo/index.js +1 -1
- package/cjs/menu/Menu.d.ts +1 -1
- package/cjs/menu/Menu.js +38 -44
- package/cjs/menu/index.js +3 -3
- package/cjs/mobile-stepper/MobileStepper.d.ts +3 -3
- package/cjs/mobile-stepper/MobileStepper.js +29 -26
- package/cjs/mobile-stepper/index.js +1 -1
- package/cjs/nav-bar/NavBar.d.ts +9 -11
- package/cjs/nav-bar/NavBar.js +67 -63
- package/cjs/nav-bar/index.js +3 -3
- package/cjs/nav-menu/NavMenuItem.d.ts +1 -1
- package/cjs/nav-menu/NavMenuItem.js +11 -13
- package/cjs/nav-menu/index.js +1 -1
- package/cjs/pagination/Pagination.d.ts +3 -3
- package/cjs/pagination/Pagination.js +46 -58
- package/cjs/pagination/Pagination.styles.js +2 -1
- package/cjs/pagination/index.js +1 -1
- package/cjs/popper/Popper.d.ts +4 -4
- package/cjs/popper/Popper.js +40 -40
- package/cjs/popper/index.js +1 -1
- package/cjs/progress-bar/ProgressBar.d.ts +3 -3
- package/cjs/progress-bar/ProgressBar.js +5 -4
- package/cjs/progress-bar/index.js +3 -3
- package/cjs/schedule/ScheduleItem.d.ts +10 -8
- package/cjs/schedule/ScheduleItem.js +4 -9
- package/cjs/schedule/ScheduleList.d.ts +3 -3
- package/cjs/schedule/ScheduleList.js +15 -13
- package/cjs/schedule/index.js +2 -2
- package/cjs/side-sheet/SideSheet.d.ts +5 -5
- package/cjs/side-sheet/SideSheet.js +86 -74
- package/cjs/side-sheet/SideSheetCloseButton.d.ts +2 -2
- package/cjs/side-sheet/SideSheetCloseButton.js +17 -13
- package/cjs/side-sheet/SideSheetContent.d.ts +3 -3
- package/cjs/side-sheet/SideSheetContent.js +13 -15
- package/cjs/side-sheet/SideSheetFooter.d.ts +3 -3
- package/cjs/side-sheet/SideSheetFooter.js +13 -15
- package/cjs/side-sheet/SideSheetHeader.d.ts +3 -3
- package/cjs/side-sheet/SideSheetHeader.js +16 -17
- package/cjs/side-sheet/SideSheetHeadline.d.ts +3 -3
- package/cjs/side-sheet/SideSheetHeadline.js +3 -5
- package/cjs/side-sheet/index.js +5 -5
- package/cjs/site-layout/SiteLayout.d.ts +11 -15
- package/cjs/site-layout/SiteLayout.js +47 -56
- package/cjs/site-layout/index.js +3 -3
- package/cjs/skeleton/Skeleton.d.ts +3 -3
- package/cjs/skeleton/Skeleton.js +15 -12
- package/cjs/skeleton/index.js +1 -1
- package/cjs/social-media-link-list/SocialMediaLinkList.d.ts +9 -7
- package/cjs/social-media-link-list/SocialMediaLinkList.js +69 -75
- package/cjs/social-media-link-list/index.js +1 -1
- package/cjs/spinner/Spinner.d.ts +9 -9
- package/cjs/spinner/Spinner.js +23 -20
- package/cjs/spinner/index.js +1 -1
- package/cjs/step/Step.d.ts +2 -2
- package/cjs/step/Step.js +47 -49
- package/cjs/step/Step.styles.js +2 -1
- package/cjs/step/StepButton.d.ts +2 -2
- package/cjs/step/StepButton.js +39 -43
- package/cjs/step/StepContent.d.ts +3 -3
- package/cjs/step/StepContent.js +14 -16
- package/cjs/step/StepContext.d.ts +1 -1
- package/cjs/step/StepLabel.d.ts +1 -1
- package/cjs/step/StepLabel.js +10 -13
- package/cjs/step/index.js +1 -1
- package/cjs/stepper/Stepper.d.ts +2 -2
- package/cjs/stepper/Stepper.js +34 -26
- package/cjs/stepper/StepperContext.d.ts +1 -1
- package/cjs/stepper/index.js +1 -1
- package/cjs/stepper-feedback-message/StepperFeedbackMessage.d.ts +2 -2
- package/cjs/stepper-feedback-message/StepperFeedbackMessage.js +7 -10
- package/cjs/stepper-feedback-message/index.js +1 -1
- package/cjs/styles/index.js +5 -5
- package/cjs/styles/media.d.ts +1 -1
- package/cjs/styles/style-helpers.js +2 -1
- package/cjs/styles/theme.d.ts +1 -1
- package/cjs/surface/Surface.d.ts +7 -7
- package/cjs/surface/Surface.js +31 -32
- package/cjs/surface/index.js +1 -1
- package/cjs/tab/Tab.d.ts +3 -3
- package/cjs/tab/Tab.js +21 -21
- package/cjs/tab/TabPanel.d.ts +2 -2
- package/cjs/tab/TabPanel.js +7 -9
- package/cjs/tab/Tabs.d.ts +3 -3
- package/cjs/tab/Tabs.js +67 -52
- package/cjs/tab/TabsContext.d.ts +3 -3
- package/cjs/tab/TabsContext.js +5 -6
- package/cjs/tab/index.js +4 -4
- package/cjs/table/Table.d.ts +3 -3
- package/cjs/table/Table.js +22 -20
- package/cjs/table/TableBody.d.ts +2 -2
- package/cjs/table/TableBody.js +12 -11
- package/cjs/table/TableDataCell.d.ts +2 -2
- package/cjs/table/TableDataCell.js +15 -13
- package/cjs/table/TableHead.d.ts +2 -2
- package/cjs/table/TableHead.js +16 -16
- package/cjs/table/TableHeaderCell.d.ts +3 -3
- package/cjs/table/TableHeaderCell.js +15 -13
- package/cjs/table/TableRow.d.ts +2 -2
- package/cjs/table/TableRow.js +18 -17
- package/cjs/table/index.js +6 -6
- package/cjs/test/Test.js +2 -4
- package/cjs/tooltip/Tooltip.d.ts +4 -4
- package/cjs/tooltip/Tooltip.js +35 -40
- package/cjs/tooltip/index.js +3 -3
- package/cjs/typography/Headlines.d.ts +40 -41
- package/cjs/typography/Headlines.js +28 -25
- package/cjs/typography/Text.d.ts +3 -2
- package/cjs/typography/Text.js +2 -1
- package/cjs/typography/index.js +2 -2
- package/common/LockBodyScroll.d.ts +2 -2
- package/common/LockBodyScroll.js +8 -18
- package/common/arrow.d.ts +1 -1
- package/common/arrow.js +4 -2
- package/common/emotionCloneElement.d.ts +1 -0
- package/common/intent.d.ts +1 -1
- package/common/polymorphic.d.ts +5 -5
- package/common/polymorphic.js +2 -8
- package/common/useOnClickOutside.d.ts +2 -1
- package/counter/Counter.d.ts +1 -1
- package/counter/Counter.js +50 -53
- package/counter/PluralCounter.d.ts +1 -1
- package/counter/PluralCounter.js +9 -17
- package/data-table/DataTable.d.ts +2 -3
- package/data-table/DataTable.js +36 -49
- package/date-range-picker/DatePickerDefaultStyles.d.ts +2 -0
- package/date-range-picker/DatePickerDefaultStyles.js +13 -0
- package/date-range-picker/DatePickerDfdsStyles.d.ts +2 -0
- package/date-range-picker/DatePickerDfdsStyles.js +4 -0
- package/date-range-picker/DateRangePicker.d.ts +5 -5
- package/date-range-picker/DateRangePicker.js +236 -317
- package/divider/Divider.d.ts +3 -3
- package/divider/Divider.js +3 -8
- package/drawer/Drawer.d.ts +4 -4
- package/drawer/Drawer.js +5 -14
- package/dropdown-menu/Dropdown.d.ts +3 -3
- package/dropdown-menu/Dropdown.js +28 -38
- package/dropdown-menu/DropdownContext.d.ts +4 -4
- package/dropdown-menu/DropdownContext.js +4 -5
- package/dropdown-menu/MenuCheckbox.d.ts +1 -1
- package/dropdown-menu/MenuCheckbox.js +17 -24
- package/dropdown-menu/MenuItem.d.ts +1 -1
- package/dropdown-menu/MenuItem.js +24 -27
- package/dropdown-menu/MenuTitle.d.ts +1 -1
- package/dropdown-menu/MenuTitle.js +13 -15
- package/elevation/index.d.ts +1 -1
- package/elevation/index.js +6 -3
- package/flexbox/FlexBox.d.ts +5 -5
- package/flexbox/FlexBox.js +2 -2
- package/footer/Footer.d.ts +2 -2
- package/footer/Footer.js +7 -12
- package/forms/assistive-text/AssistiveText.d.ts +4 -3
- package/forms/asterisk/Asterisk.d.ts +2 -2
- package/forms/asterisk/Asterisk.js +2 -4
- package/forms/checkbox/Checkbox.d.ts +5 -5
- package/forms/checkbox/Checkbox.js +38 -47
- package/forms/checkbox/ExampleControlComponent.d.ts +1 -2
- package/forms/checkbox/ExampleControlComponent.js +4 -11
- package/forms/email-field/EmailField.d.ts +2 -2
- package/forms/email-field/EmailField.js +4 -9
- package/forms/error-text/ErrorText.d.ts +4 -3
- package/forms/error-text/ErrorText.js +4 -2
- package/forms/field/Field.d.ts +1 -2
- package/forms/field/Field.js +10 -12
- package/forms/index.d.ts +3 -3
- package/forms/input/Input.d.ts +3 -3
- package/forms/input/Input.js +36 -35
- package/forms/input/InputComposition.d.ts +12 -12
- package/forms/input/InputComposition.js +27 -38
- package/forms/label/Label.d.ts +1 -2
- package/forms/label/Label.js +9 -15
- package/forms/number-field/NumberField.d.ts +2 -2
- package/forms/number-field/NumberField.js +6 -10
- package/forms/password-field/PasswordField.d.ts +1 -1
- package/forms/password-field/PasswordField.js +10 -15
- package/forms/radio/Radio.d.ts +4 -4
- package/forms/radio/Radio.js +21 -27
- package/forms/reactselect/ReactSelect.d.ts +15 -15
- package/forms/reactselect/ReactSelect.js +64 -71
- package/forms/searchable-select/AsyncSearchableSelect.d.ts +2 -2
- package/forms/searchable-select/AsyncSearchableSelect.js +37 -49
- package/forms/select/Select.d.ts +4 -4
- package/forms/select/Select.js +35 -38
- package/forms/select-field/SelectField.d.ts +3 -3
- package/forms/select-field/SelectField.js +35 -40
- package/forms/switch/Switch.d.ts +2 -2
- package/forms/switch/Switch.js +41 -50
- package/forms/tel-field/TelField.d.ts +2 -2
- package/forms/tel-field/TelField.js +4 -9
- package/forms/text-field/TextField.d.ts +4 -4
- package/forms/text-field/TextField.js +42 -47
- package/global-styles/GlobalStyles.d.ts +3 -3
- package/global-styles/GlobalStyles.js +3 -3
- package/global-styles/ResetStyles.d.ts +2 -2
- package/global-styles/ResetStyles.js +4 -3
- package/global-styles/sanitize.js +2 -1
- package/grid/Column.d.ts +1 -1
- package/grid/Column.js +5 -12
- package/grid/Container.d.ts +2 -2
- package/grid/Container.js +26 -33
- package/hero/Hero.d.ts +2 -2
- package/hero/Hero.js +24 -42
- package/hero/stripes.d.ts +2 -2
- package/hero/stripes.js +160 -176
- package/ie-banner/IEBanner.d.ts +1 -2
- package/ie-banner/IEBanner.js +6 -12
- package/layout/LayoutLegacy.d.ts +2 -2
- package/layout/LayoutLegacy.js +2 -2
- package/lists/FeatureList.d.ts +9 -7
- package/lists/FeatureList.js +9 -19
- package/lists/ListAddon.d.ts +2 -2
- package/lists/ListAddon.js +4 -11
- package/lists/ListDivider.d.ts +3 -3
- package/lists/ListDivider.js +3 -8
- package/lists/ListIcon.d.ts +3 -3
- package/lists/ListIcon.js +3 -8
- package/lists/ListItem.d.ts +2 -2
- package/lists/ListItem.js +4 -11
- package/lists/ListText.d.ts +4 -4
- package/lists/ListText.js +3 -8
- package/lists/ListTextGroup.d.ts +2 -2
- package/lists/ListTextGroup.js +3 -8
- package/lists/ListTitle.d.ts +2 -2
- package/lists/ListTitle.js +5 -9
- package/loader/DfdsLoader.d.ts +1 -1
- package/loader/DfdsLoader.js +21 -26
- package/loader/Loader.d.ts +3 -3
- package/loader/Loader.js +4 -9
- package/localization/LocaleFlag.d.ts +3 -3
- package/localization/LocaleFlag.js +3 -8
- package/localization/locales.d.ts +2 -2
- package/logo/Logo.d.ts +3 -3
- package/logo/Logo.js +5 -12
- package/menu/Menu.d.ts +1 -1
- package/menu/Menu.js +15 -28
- package/mobile-stepper/MobileStepper.d.ts +3 -3
- package/mobile-stepper/MobileStepper.js +19 -25
- package/nav-bar/NavBar.d.ts +9 -11
- package/nav-bar/NavBar.js +34 -49
- package/nav-menu/NavMenuItem.d.ts +1 -1
- package/nav-menu/NavMenuItem.js +12 -13
- package/package.json +22 -20
- package/pagination/Pagination.d.ts +3 -3
- package/pagination/Pagination.js +38 -54
- package/pagination/Pagination.styles.js +2 -1
- package/popper/Popper.d.ts +4 -4
- package/popper/Popper.js +16 -25
- package/progress-bar/ProgressBar.d.ts +3 -3
- package/progress-bar/ProgressBar.js +6 -4
- package/schedule/ScheduleItem.d.ts +10 -8
- package/schedule/ScheduleItem.js +4 -9
- package/schedule/ScheduleList.d.ts +3 -3
- package/schedule/ScheduleList.js +8 -14
- package/side-sheet/SideSheet.d.ts +5 -5
- package/side-sheet/SideSheet.js +40 -48
- package/side-sheet/SideSheetCloseButton.d.ts +2 -2
- package/side-sheet/SideSheetCloseButton.js +3 -8
- package/side-sheet/SideSheetContent.d.ts +3 -3
- package/side-sheet/SideSheetContent.js +6 -15
- package/side-sheet/SideSheetFooter.d.ts +3 -3
- package/side-sheet/SideSheetFooter.js +6 -15
- package/side-sheet/SideSheetHeader.d.ts +3 -3
- package/side-sheet/SideSheetHeader.js +6 -15
- package/side-sheet/SideSheetHeadline.d.ts +3 -3
- package/side-sheet/SideSheetHeadline.js +4 -5
- package/site-layout/SiteLayout.d.ts +11 -15
- package/site-layout/SiteLayout.js +16 -34
- package/skeleton/Skeleton.d.ts +3 -3
- package/skeleton/Skeleton.js +3 -8
- package/social-media-link-list/SocialMediaLinkList.d.ts +9 -7
- package/social-media-link-list/SocialMediaLinkList.js +53 -67
- package/spinner/Spinner.d.ts +9 -9
- package/spinner/Spinner.js +10 -16
- package/step/Step.d.ts +2 -2
- package/step/Step.js +18 -32
- package/step/Step.styles.js +2 -1
- package/step/StepButton.d.ts +2 -2
- package/step/StepButton.js +20 -26
- package/step/StepContent.d.ts +3 -3
- package/step/StepContent.js +13 -13
- package/step/StepContext.d.ts +1 -1
- package/step/StepLabel.d.ts +1 -1
- package/step/StepLabel.js +8 -9
- package/stepper/Stepper.d.ts +2 -2
- package/stepper/Stepper.js +13 -13
- package/stepper/StepperContext.d.ts +1 -1
- package/stepper-feedback-message/StepperFeedbackMessage.d.ts +2 -2
- package/stepper-feedback-message/StepperFeedbackMessage.js +8 -10
- package/styles/media.d.ts +1 -1
- package/styles/style-helpers.js +2 -1
- package/styles/theme.d.ts +1 -1
- package/surface/Surface.d.ts +7 -7
- package/surface/Surface.js +12 -15
- package/tab/Tab.d.ts +3 -3
- package/tab/Tab.js +10 -16
- package/tab/TabPanel.d.ts +2 -2
- package/tab/TabPanel.js +5 -6
- package/tab/Tabs.d.ts +3 -3
- package/tab/Tabs.js +36 -42
- package/tab/TabsContext.d.ts +3 -3
- package/tab/TabsContext.js +4 -5
- package/table/Table.d.ts +3 -3
- package/table/Table.js +11 -18
- package/table/TableBody.d.ts +2 -2
- package/table/TableBody.js +5 -11
- package/table/TableDataCell.d.ts +2 -2
- package/table/TableDataCell.js +6 -12
- package/table/TableHead.d.ts +2 -2
- package/table/TableHead.js +6 -8
- package/table/TableHeaderCell.d.ts +3 -3
- package/table/TableHeaderCell.js +6 -12
- package/table/TableRow.d.ts +2 -2
- package/table/TableRow.js +6 -8
- package/test/Test.js +2 -4
- package/tooltip/Tooltip.d.ts +4 -4
- package/tooltip/Tooltip.js +22 -31
- package/typography/Headlines.d.ts +40 -41
- package/typography/Headlines.js +17 -22
- package/typography/Text.d.ts +3 -2
- package/typography/Text.js +2 -1
- package/cjs/date-range-picker/DateRangePicker.styles.d.ts +0 -6
- package/cjs/date-range-picker/DateRangePicker.styles.js +0 -14
- package/date-range-picker/DateRangePicker.styles.d.ts +0 -6
- package/date-range-picker/DateRangePicker.styles.js +0 -9
package/cjs/hero/stripes.js
CHANGED
|
@@ -6,187 +6,171 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _theme = require("@dfds-ui/theme");
|
|
9
|
-
var
|
|
9
|
+
var _react2 = require("@emotion/react");
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
const Stripes = props => {
|
|
12
12
|
const stopColor = props.color ? props.color : _theme.theme.colors.primary.main;
|
|
13
|
-
return (0,
|
|
13
|
+
return (0, _react2.jsx)("svg", {
|
|
14
14
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15
15
|
width: "600",
|
|
16
16
|
height: "300",
|
|
17
|
-
viewBox: "0 0 600 300"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
fill: "url(#f)",
|
|
176
|
-
d: "M75.6063512 0L-2.86454823e-13 134.437093 -7.44558531e-13 0z",
|
|
177
|
-
opacity: "0.227"
|
|
178
|
-
}), (0, _jsxRuntime.jsx)("path", {
|
|
179
|
-
fill: "url(#g)",
|
|
180
|
-
d: "M69 0L7.10542736e-14 122.854849 -5.67508497e-13 0z"
|
|
181
|
-
}), (0, _jsxRuntime.jsx)("path", {
|
|
182
|
-
fill: "url(#h)",
|
|
183
|
-
d: "M-1.34467524e-13 118.657038L67 2.60208521e-16 4.26325641e-14 0z"
|
|
184
|
-
}), (0, _jsxRuntime.jsx)("path", {
|
|
185
|
-
fill: "url(#i)",
|
|
186
|
-
d: "M47 0L3.84619474e-13 83.119437 -2.4158453e-13 0z"
|
|
187
|
-
})]
|
|
188
|
-
})]
|
|
189
|
-
})]
|
|
190
|
-
});
|
|
17
|
+
viewBox: "0 0 600 300"
|
|
18
|
+
}, (0, _react2.jsx)("defs", null, (0, _react2.jsx)("linearGradient", {
|
|
19
|
+
id: "a",
|
|
20
|
+
x1: "34.045%",
|
|
21
|
+
x2: "60.664%",
|
|
22
|
+
y1: "27.872%",
|
|
23
|
+
y2: "57.624%"
|
|
24
|
+
}, (0, _react2.jsx)("stop", {
|
|
25
|
+
offset: "0%",
|
|
26
|
+
stopColor: stopColor
|
|
27
|
+
}), (0, _react2.jsx)("stop", {
|
|
28
|
+
offset: "100%",
|
|
29
|
+
stopColor: stopColor,
|
|
30
|
+
stopOpacity: "0"
|
|
31
|
+
})), (0, _react2.jsx)("linearGradient", {
|
|
32
|
+
id: "b",
|
|
33
|
+
x1: "100%",
|
|
34
|
+
x2: "24.236%",
|
|
35
|
+
y1: "50%",
|
|
36
|
+
y2: "50%"
|
|
37
|
+
}, (0, _react2.jsx)("stop", {
|
|
38
|
+
offset: "0%",
|
|
39
|
+
stopColor: "#FFF",
|
|
40
|
+
stopOpacity: "0.5"
|
|
41
|
+
}), (0, _react2.jsx)("stop", {
|
|
42
|
+
offset: "100%",
|
|
43
|
+
stopColor: "#FFF",
|
|
44
|
+
stopOpacity: "0"
|
|
45
|
+
})), (0, _react2.jsx)("linearGradient", {
|
|
46
|
+
id: "c",
|
|
47
|
+
x1: "100%",
|
|
48
|
+
x2: "0%",
|
|
49
|
+
y1: "50%",
|
|
50
|
+
y2: "50%"
|
|
51
|
+
}, (0, _react2.jsx)("stop", {
|
|
52
|
+
offset: "0%",
|
|
53
|
+
stopColor: "#FFF"
|
|
54
|
+
}), (0, _react2.jsx)("stop", {
|
|
55
|
+
offset: "100%",
|
|
56
|
+
stopColor: "#FFF",
|
|
57
|
+
stopOpacity: "0"
|
|
58
|
+
})), (0, _react2.jsx)("linearGradient", {
|
|
59
|
+
id: "d",
|
|
60
|
+
x1: "100%",
|
|
61
|
+
x2: "0%",
|
|
62
|
+
y1: "50.002%",
|
|
63
|
+
y2: "50.002%"
|
|
64
|
+
}, (0, _react2.jsx)("stop", {
|
|
65
|
+
offset: "0%",
|
|
66
|
+
stopColor: "#FFF",
|
|
67
|
+
stopOpacity: "0.3"
|
|
68
|
+
}), (0, _react2.jsx)("stop", {
|
|
69
|
+
offset: "100%",
|
|
70
|
+
stopColor: "#FFF",
|
|
71
|
+
stopOpacity: "0"
|
|
72
|
+
})), (0, _react2.jsx)("linearGradient", {
|
|
73
|
+
id: "e",
|
|
74
|
+
x1: "0%",
|
|
75
|
+
x2: "32.615%",
|
|
76
|
+
y1: "50%",
|
|
77
|
+
y2: "50%"
|
|
78
|
+
}, (0, _react2.jsx)("stop", {
|
|
79
|
+
offset: "0%",
|
|
80
|
+
stopColor: stopColor
|
|
81
|
+
}), (0, _react2.jsx)("stop", {
|
|
82
|
+
offset: "100%",
|
|
83
|
+
stopColor: stopColor,
|
|
84
|
+
stopOpacity: "0.4"
|
|
85
|
+
})), (0, _react2.jsx)("linearGradient", {
|
|
86
|
+
id: "f",
|
|
87
|
+
x1: "56.707%",
|
|
88
|
+
x2: "74.064%",
|
|
89
|
+
y1: "50%",
|
|
90
|
+
y2: "0%"
|
|
91
|
+
}, (0, _react2.jsx)("stop", {
|
|
92
|
+
offset: "0%",
|
|
93
|
+
stopColor: "#FFF"
|
|
94
|
+
}), (0, _react2.jsx)("stop", {
|
|
95
|
+
offset: "100%",
|
|
96
|
+
stopColor: "#FFF",
|
|
97
|
+
stopOpacity: "0"
|
|
98
|
+
})), (0, _react2.jsx)("linearGradient", {
|
|
99
|
+
id: "g",
|
|
100
|
+
x1: "100%",
|
|
101
|
+
x2: "24.236%",
|
|
102
|
+
y1: "50%",
|
|
103
|
+
y2: "50%"
|
|
104
|
+
}, (0, _react2.jsx)("stop", {
|
|
105
|
+
offset: "0%",
|
|
106
|
+
stopColor: "#FFF",
|
|
107
|
+
stopOpacity: "0.5"
|
|
108
|
+
}), (0, _react2.jsx)("stop", {
|
|
109
|
+
offset: "100%",
|
|
110
|
+
stopColor: "#FFF",
|
|
111
|
+
stopOpacity: "0"
|
|
112
|
+
})), (0, _react2.jsx)("linearGradient", {
|
|
113
|
+
id: "h",
|
|
114
|
+
x1: "34.058%",
|
|
115
|
+
x2: "54.049%",
|
|
116
|
+
y1: "98.329%",
|
|
117
|
+
y2: "0%"
|
|
118
|
+
}, (0, _react2.jsx)("stop", {
|
|
119
|
+
offset: "0%",
|
|
120
|
+
stopColor: stopColor
|
|
121
|
+
}), (0, _react2.jsx)("stop", {
|
|
122
|
+
offset: "100%",
|
|
123
|
+
stopColor: stopColor,
|
|
124
|
+
stopOpacity: "0"
|
|
125
|
+
})), (0, _react2.jsx)("linearGradient", {
|
|
126
|
+
id: "i",
|
|
127
|
+
x1: "29.102%",
|
|
128
|
+
x2: "53.879%",
|
|
129
|
+
y1: "94.85%",
|
|
130
|
+
y2: "11.912%"
|
|
131
|
+
}, (0, _react2.jsx)("stop", {
|
|
132
|
+
offset: "0%",
|
|
133
|
+
stopColor: stopColor
|
|
134
|
+
}), (0, _react2.jsx)("stop", {
|
|
135
|
+
offset: "100%",
|
|
136
|
+
stopColor: stopColor,
|
|
137
|
+
stopOpacity: "0"
|
|
138
|
+
}))), (0, _react2.jsx)("g", {
|
|
139
|
+
fill: "none",
|
|
140
|
+
fillRule: "nonzero",
|
|
141
|
+
stroke: "none",
|
|
142
|
+
strokeWidth: "1"
|
|
143
|
+
}, (0, _react2.jsx)("g", null, (0, _react2.jsx)("path", {
|
|
144
|
+
fill: "url(#a)",
|
|
145
|
+
d: "M187 0L17.5623569 300 5.02504288e-13 300 3.0494357e-13 0z"
|
|
146
|
+
}), (0, _react2.jsx)("path", {
|
|
147
|
+
fill: "url(#b)",
|
|
148
|
+
d: "M225 0L56 300 9.09494702e-13 300 1.10134124e-13 260.381378 147 0z"
|
|
149
|
+
}), (0, _react2.jsx)("path", {
|
|
150
|
+
fill: "url(#c)",
|
|
151
|
+
d: "M251.606351 0L83 300 8 300 176.606351 0z",
|
|
152
|
+
opacity: "0.1"
|
|
153
|
+
}), (0, _react2.jsx)("path", {
|
|
154
|
+
fill: "url(#d)",
|
|
155
|
+
d: "M197.071475 0L28 300 17.5623569 300 187.071475 0z"
|
|
156
|
+
}), (0, _react2.jsx)("path", {
|
|
157
|
+
fill: "url(#e)",
|
|
158
|
+
d: "M1.56235689 300L171 0 -2.08832951e-13 0 -2.08832951e-13 300z"
|
|
159
|
+
})), (0, _react2.jsx)("g", {
|
|
160
|
+
transform: "rotate(180 300 150)"
|
|
161
|
+
}, (0, _react2.jsx)("path", {
|
|
162
|
+
fill: "url(#f)",
|
|
163
|
+
d: "M75.6063512 0L-2.86454823e-13 134.437093 -7.44558531e-13 0z",
|
|
164
|
+
opacity: "0.227"
|
|
165
|
+
}), (0, _react2.jsx)("path", {
|
|
166
|
+
fill: "url(#g)",
|
|
167
|
+
d: "M69 0L7.10542736e-14 122.854849 -5.67508497e-13 0z"
|
|
168
|
+
}), (0, _react2.jsx)("path", {
|
|
169
|
+
fill: "url(#h)",
|
|
170
|
+
d: "M-1.34467524e-13 118.657038L67 2.60208521e-16 4.26325641e-14 0z"
|
|
171
|
+
}), (0, _react2.jsx)("path", {
|
|
172
|
+
fill: "url(#i)",
|
|
173
|
+
d: "M47 0L3.84619474e-13 83.119437 -2.4158453e-13 0z"
|
|
174
|
+
}))));
|
|
191
175
|
};
|
|
192
176
|
var _default = exports.default = Stripes;
|
|
@@ -6,17 +6,32 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _banner = require("./../assertions/banner");
|
|
9
|
-
var
|
|
10
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
9
|
+
var _react2 = require("@emotion/react");
|
|
10
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
11
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
12
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
13
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
14
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
15
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
16
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
11
17
|
const IEBanner = ({
|
|
12
18
|
heading,
|
|
13
19
|
openInEdge,
|
|
14
20
|
className,
|
|
15
21
|
children
|
|
16
22
|
}) => {
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
23
|
+
const _useState = (0, _react.useState)(false),
|
|
24
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
25
|
+
getIE = _useState2[0],
|
|
26
|
+
setIE = _useState2[1];
|
|
27
|
+
const _useState3 = (0, _react.useState)(false),
|
|
28
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
29
|
+
getIsWin10 = _useState4[0],
|
|
30
|
+
setIsWin10 = _useState4[1];
|
|
31
|
+
const _useState5 = (0, _react.useState)(''),
|
|
32
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
33
|
+
getLink = _useState6[0],
|
|
34
|
+
setLink = _useState6[1];
|
|
20
35
|
(0, _react.useEffect)(() => {
|
|
21
36
|
if (typeof navigator !== 'undefined') {
|
|
22
37
|
setIE(navigator.userAgent.includes('MSIE ') || navigator.userAgent.includes('Trident/'));
|
|
@@ -35,19 +50,13 @@ const IEBanner = ({
|
|
|
35
50
|
document.location.href = getLink;
|
|
36
51
|
}
|
|
37
52
|
};
|
|
38
|
-
return getIE ? (0,
|
|
53
|
+
return getIE ? (0, _react2.jsx)(_banner.Banner, {
|
|
39
54
|
intent: 'warning',
|
|
40
55
|
className: className,
|
|
41
|
-
actions: (0,
|
|
56
|
+
actions: (0, _react2.jsx)(_banner.BannerAction, {
|
|
42
57
|
variation: "primary",
|
|
43
|
-
onClick: getIsWin10 ? () => navigate() : undefined
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
children: [heading && (0, _jsxRuntime.jsx)(_banner.BannerHeadline, {
|
|
47
|
-
children: heading
|
|
48
|
-
}), (0, _jsxRuntime.jsx)(_banner.BannerParagraph, {
|
|
49
|
-
children: children
|
|
50
|
-
})]
|
|
51
|
-
}) : null;
|
|
58
|
+
onClick: getIsWin10 ? () => navigate() : undefined
|
|
59
|
+
}, openInEdge)
|
|
60
|
+
}, heading && (0, _react2.jsx)(_banner.BannerHeadline, null, heading), (0, _react2.jsx)(_banner.BannerParagraph, null, children)) : null;
|
|
52
61
|
};
|
|
53
62
|
var _default = exports.default = IEBanner;
|